/* q-node tanitim portali: sitedeki /demo/ ile ayni koyu konsol gorunumu (quantinel-aisoc src/styles/demo.css).
   Amber yalniz birincil dugme ve onay kutusu vurgusundadir (marka isaretindeki kare, demodaki gibi, haric).
   CSP style-src 'self': satir ici stil yok; her stil bu dosyadadir. */

@font-face {
  font-family: 'Instrument Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url(fonts/instrument-sans-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url(fonts/instrument-sans-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(fonts/jetbrains-mono-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(fonts/jetbrains-mono-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #14181d;
  --surface: #1b2027;
  --paper: #f2eee6;
  --muted: #a8a39a;
  --rust: #e0603f;
  --amber: #ee7a2a;
  --line: rgba(242, 238, 230, 0.12);
  --paper-2: #d6d1c7;
  --line-2: rgba(242, 238, 230, 0.32);
  --hover: rgba(242, 238, 230, 0.05);
  --chip: rgba(242, 238, 230, 0.07);
  --selected: rgba(242, 238, 230, 0.08);
  --font-sans: 'Instrument Sans Variable', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono Variable', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ol, ul, fieldset {
  margin: 0;
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 2px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--paper);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}
.mono {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}
.soluk {
  color: var(--muted);
}
.kap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 40px);
}

/* --- ust serit, marka, alt bilgi ------------------------------------------ */
.ust {
  border-bottom: 1px solid var(--line);
}
.strip {
  padding-block: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}
.brand {
  display: inline-flex;
  padding: 4px 0;
  color: var(--paper);
}
.mark-accent {
  fill: var(--amber); /* marka isareti: demodaki --mark-accent ile ayni */
}
.hesap {
  display: flex;
  align-items: center;
  gap: 4px;
}
.hesap a,
.linkvari {
  padding: 8px 12px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--paper-2);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}
.hesap a[aria-current='page'] {
  color: var(--paper);
  font-weight: 600;
}
.hesap a:hover,
.linkvari:hover {
  background: var(--hover);
  color: var(--paper);
}
main {
  flex: 1;
  padding-top: 32px;
  padding-bottom: 64px;
}
main:focus {
  outline: none;
}
.alt {
  padding-top: 20px;
  padding-bottom: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8125rem;
}
.alt a {
  color: var(--paper-2);
}
.alt a:hover {
  color: var(--paper);
}

/* --- yazi ------------------------------------------------------------------ */
h1 {
  margin-bottom: 16px;
  font-size: 1.75rem;
  font-weight: 560;
  line-height: 1.2;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
h2 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.lead {
  max-width: 62ch;
  color: var(--paper-2);
  font-size: 1.0625rem;
}
.lead + .kart {
  margin-top: 24px;
}
.bitisik {
  white-space: nowrap;
}
.not {
  color: var(--muted);
  font-size: 0.875rem;
}
.geri {
  margin-bottom: 20px;
  font-size: 0.875rem;
}
.geri a {
  color: var(--muted);
}
.geri a:hover {
  color: var(--paper);
}
.ust-bilgi {
  margin-bottom: 6px;
  color: var(--muted);
}
.eylemler {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.uyari {
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--rust);
  border-radius: 6px;
  background: var(--chip);
  color: var(--paper);
}
.uyari a {
  font-weight: 600;
}

/* --- dugmeler -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 18px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: none;
  color: var(--paper);
  font: inherit;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover {
  border-color: var(--paper-2);
  background: var(--hover);
}
/* Amber karar icindir: birincil dugme. */
.btn-primary,
.btn-primary:hover {
  border-color: var(--amber);
  background: var(--amber);
  color: var(--bg);
}
.btn-primary:hover {
  filter: brightness(1.08);
}
.btn:disabled {
  opacity: 0.5;
  filter: none;
  cursor: not-allowed;
}
.btn-sil:hover {
  border-color: var(--rust);
}
.tam {
  width: 100%;
}

/* --- formlar --------------------------------------------------------------- */
label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.875rem;
  font-weight: 600;
}
input[type='email'],
input[type='password'],
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--bg);
  color: var(--paper);
  font: inherit;
}
textarea {
  min-height: 3.25rem;
  resize: vertical;
}
input[type='file'] {
  width: 100%;
  max-width: 100%;
  padding: 12px;
  border: 1px dashed var(--line-2);
  border-radius: 8px;
  background: var(--bg);
  color: var(--paper-2);
  font: inherit;
  font-size: 0.875rem;
}
input[type='file']::file-selector-button {
  margin-right: 12px;
  padding: 6px 14px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: var(--surface);
  color: var(--paper);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.kart {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.kart > * + * {
  margin-top: 18px;
}
.dar {
  max-width: 440px;
}
.orta {
  max-width: 760px;
}
.ayrac {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.8125rem;
}
.ayrac::before,
.ayrac::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.durum {
  color: var(--paper-2);
  font-size: 0.875rem;
}
.diger > * + * {
  margin-top: 18px;
}
/* Giris yolu degistirici (ekip sifresi <-> e-posta baglantisi): ikincil eylem, dugme agirligi tasimaz. */
.mod-gecis {
  display: block;
  min-height: 40px;
  margin-inline: auto;
  padding: 8px 12px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.875rem;
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 4px;
  cursor: pointer;
}
.mod-gecis:hover {
  color: var(--paper);
  text-decoration-color: currentColor;
}

/* Yeni analiz: iki radyo dugmesi sekme gibi gorunur; secili olmayan kaynagin alani gizlenir. */
.sekmeler {
  position: relative;
  display: flex;
  gap: 2px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
}
.sekmeler input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}
.sekmeler label {
  margin: 0 0 -1px;
  padding: 10px 14px 11px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
}
.sekmeler label:hover {
  background: var(--hover);
  color: var(--paper);
}
.sekmeler input:checked + label {
  border-bottom-color: var(--paper);
  color: var(--paper);
  font-weight: 600;
}
.sekmeler input:focus-visible + label {
  outline: 2px solid var(--paper);
  outline-offset: -2px;
}
.yukle:has(#k-metin:checked) .kaynak-dosya,
.yukle:has(#k-dosya:checked) .kaynak-metin {
  display: none;
}
.yukle textarea {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}
/* Onay: amberin ikinci (ve son) kullanimi. Istege bagli iletisim izni (.izin) ayni dizilis, vurgusuz. */
.onay,
.izin {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 12px;
}
.onay {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: 6px;
  background: var(--bg);
}
.izin {
  padding: 0 17px 0 19px; /* kutu, ustteki onay kutusuyla ayni hizada (1 + 3 px kenar, 16 px ic bosluk) */
}
.onay input,
.izin input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  cursor: pointer;
}
.onay input {
  accent-color: var(--amber);
}
.onay label,
.izin label {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 450;
  cursor: pointer;
}
.izin label {
  color: var(--paper-2);
}
.onay p {
  grid-column: 2;
  font-size: 0.875rem;
}

/* --- ana sayfa ------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding-top: 24px;
}
.hero h1 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 1.2rem + 3vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.hero-ornek {
  max-width: 380px;
  justify-self: end;
  width: 100%;
}
.adimlar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 64px 0 24px;
  padding: 0;
  list-style: none;
}
.adimlar li {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.adim-no {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}
.adimlar h2 {
  margin-bottom: 6px;
  font-size: 1rem;
}
.adimlar p {
  color: var(--paper-2);
  font-size: 0.875rem;
}
.adimlar + .not a {
  color: var(--paper-2);
}
.adimlar + .not a:hover {
  color: var(--paper);
}

/* --- panel ----------------------------------------------------------------- */
.baslik-satiri {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 6px;
}
.baslik-satiri h1 {
  margin: 0;
}
.haklar {
  margin-bottom: 24px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}
.haklar + .uyari {
  margin-bottom: 24px;
}
.tablo-kap {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}
table.analizler {
  width: 100%;
  border-collapse: collapse;
}
.analizler thead th {
  padding: 10px 16px;
  border-bottom: 1px solid var(--line-2);
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}
.analizler td,
.analizler tbody th {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
  text-align: left;
  vertical-align: top;
}
.analizler tbody tr:last-child > * {
  border-bottom: 0;
}
.analizler tbody tr {
  position: relative; /* tum satir baglantidir */
  transform: translateZ(0);
}
.analizler tbody tr:hover > * {
  background: var(--hover);
}
.ad a {
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.ad a::after {
  content: '';
  position: absolute;
  inset: 0;
}
.ad a:focus-visible {
  outline: none;
}
.ad a:focus-visible::after {
  outline: 2px solid var(--paper);
  outline-offset: -2px;
}
.alt-satir {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.8125rem;
  overflow-wrap: anywhere;
}
.tarih {
  color: var(--paper-2);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  white-space: nowrap;
}
.dar-ekran {
  display: none;
}
.bos p:first-child {
  font-weight: 600;
}

.badge {
  display: inline-block;
  padding: 1px 8px;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.5;
}
.onc-kritik {
  border-color: var(--rust);
  background: var(--rust);
  color: var(--bg);
}
.onc-yuksek {
  border-color: var(--rust);
  color: var(--rust);
}
.onc-orta {
  border-color: var(--paper-2);
}
.onc-dusuk {
  color: var(--muted);
}

.durum-etiket {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--paper-2);
}
.durum-etiket::before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--paper-2);
}
.durum-etiket.done {
  color: var(--paper);
  font-weight: 600;
}
.durum-etiket.done::before {
  background: var(--paper);
}
.durum-etiket.aktif::before {
  background: none;
  border: 1.5px solid var(--paper);
}
.durum-etiket.failed {
  color: var(--muted);
}
.durum-etiket.failed::before {
  border-radius: 1px;
  background: var(--muted);
}

/* --- ilerleme -------------------------------------------------------------- */
.ilerleme {
  max-width: 640px;
}
.asamalar {
  padding: 0;
  list-style: none;
}
.asamalar li {
  position: relative;
  padding: 7px 0 7px 30px;
  color: var(--muted);
}
.asamalar li::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 13px;
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--line-2);
  border-radius: 50%;
  background: var(--surface);
}
.asamalar li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 8.5px;
  top: 27px;
  bottom: -11px;
  width: 1px;
  background: var(--line-2);
}
.asamalar .bitti {
  color: var(--paper-2);
}
.asamalar .bitti::before {
  border-color: var(--paper-2);
  background: var(--paper-2);
}
.asamalar .simdi {
  color: var(--paper);
  font-weight: 600;
}
.asamalar .simdi::before {
  border-color: var(--paper);
  box-shadow: 0 0 0 4px var(--selected);
}
@media (prefers-reduced-motion: no-preference) {
  .asamalar .simdi::before {
    animation: nabiz 1.4s ease-in-out infinite;
  }
}
@keyframes nabiz {
  50% {
    box-shadow: 0 0 0 7px var(--chip);
  }
}

/* --- rapor ----------------------------------------------------------------- */
.sil-hata {
  margin-bottom: 16px;
}
.rapor-ust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin: 8px 0 16px;
}
.ozet {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  min-width: 0;
}
.ozet-baslik {
  color: var(--paper-2);
  overflow-wrap: anywhere;
}
.araclar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
iframe.rapor {
  display: block;
  width: 100%;
  height: 80vh;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

/* --- Analiste Sor (demo AskAnalyst ile ayni sohbet bicimi) ------------------ */
.ask {
  max-width: 80ch;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.ask h2 {
  margin-bottom: 4px;
  font-size: 1.25rem;
}
.ask-log {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}
.ask-log:empty {
  margin: 0;
}
.ask-bot + .ask-user {
  margin-top: 20px;
}
.ask-msg {
  position: relative;
  min-width: 0;
  scroll-margin-top: 16px;
  overflow-wrap: anywhere;
}
.ask-user {
  justify-self: end;
  max-width: min(85%, 60ch);
  padding: 10px 14px;
  border: 1px solid var(--line-2);
  border-radius: 10px 10px 2px 10px;
  background: var(--selected);
  white-space: pre-wrap;
}
.ask-bot {
  padding: 14px 16px 12px;
  border: 1px solid var(--line);
  border-radius: 10px 10px 10px 2px;
  background: var(--surface);
}
.ask-bot.is-err {
  border-style: dashed;
  border-color: var(--line-2);
}
.ask-badge {
  margin-bottom: 10px;
}
.ask-pending {
  color: var(--muted);
}
@media (prefers-reduced-motion: no-preference) {
  .ask-pending {
    animation: soluk 1.4s ease-in-out infinite;
  }
}
@keyframes soluk {
  50% {
    opacity: 0.45;
  }
}
.ask-body > * + * {
  margin-top: 10px;
}
.ask-body ul,
.ask-body ol {
  padding-left: 22px;
}
.ask-body ul {
  list-style: disc;
}
.ask-body ol {
  list-style: decimal;
}
.ask-body li + li {
  margin-top: 4px;
}
.ask-body code {
  padding: 0 4px;
  border-radius: 3px;
  background: var(--chip);
  font-family: var(--font-mono);
  font-size: 0.875em;
}
.ask-body pre {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ask-body pre code {
  padding: 0;
  background: none;
}
.ask-status {
  margin-top: 10px;
  color: var(--paper-2);
}
.ask-bot.is-err .ask-status {
  margin-top: 0;
  color: var(--paper);
  font-weight: 600;
}
.ask-foot {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8125rem;
}
.ask-akis > .uyari {
  margin-top: 20px;
}
.ask-form {
  position: sticky;
  bottom: 0;
  z-index: 1;
  margin-top: 20px;
  padding: 14px 0 12px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.ask-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}
.ask-form textarea {
  max-height: 10rem;
  background: var(--surface);
  field-sizing: content;
}
.ask-form textarea:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.ask-keys {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.8125rem;
}

/* --- aydinlatma metni ------------------------------------------------------ */
.metin {
  max-width: 72ch;
}
.metin h2 {
  margin: 28px 0 8px;
}
.metin p,
.metin ul {
  color: var(--paper-2);
}
.metin ul {
  padding-left: 22px;
}
.metin li + li {
  margin-top: 6px;
}
.metin p + p,
.metin p + ul,
.metin ul + p {
  margin-top: 10px;
}
.metin strong {
  color: var(--paper);
}
.metin .uyari {
  color: var(--paper);
}

/* --- dar ekran ------------------------------------------------------------- */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-ornek {
    display: none;
  }
  .adimlar {
    margin-top: 40px;
  }
}
@media (max-width: 640px) {
  .analizler .genis {
    display: none;
  }
  .dar-ekran {
    display: block;
  }
  h1 {
    font-size: 1.5rem;
  }
}
@media (max-width: 560px) {
  .ask-field {
    grid-template-columns: minmax(0, 1fr);
  }
  .ask-field .btn {
    justify-self: end;
  }
  .ask-user {
    max-width: 92%;
  }
}
/* Turnstile kutusu en az 300 px: dar ekranda kart cercevesi kalkar, kutu sigar. */
@media (max-width: 480px) {
  .kart {
    padding: 0;
    border: 0;
    background: none;
  }
  .kart.ilerleme,
  .kart.bos {
    padding: 16px;
    border: 1px solid var(--line);
    background: var(--surface);
  }
}

/* --- hareket: yukleme, ilerleme, giris (hareket azaltma tercihinde durur) ------- */
/* Surukle-birak alani: etiketin tamami dosya secer; girdi gorunmez ama klavyeyle odaklanir. */
.birak {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 32px 20px;
  border: 1.5px dashed var(--line-2);
  border-radius: 10px;
  background: var(--bg);
  color: var(--paper-2);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s;
}
.birak:hover,
.birak.surukle {
  border-color: var(--amber);
  background: rgba(238, 122, 42, 0.06);
}
.birak.surukle {
  transform: scale(1.01);
}
.birak:focus-within {
  outline: 2px solid var(--paper);
  outline-offset: 2px;
}
.birak-ikon {
  color: var(--amber);
  transition: transform 0.25s;
}
.birak:hover .birak-ikon,
.birak.surukle .birak-ikon {
  transform: translateY(-3px);
}
.birak-baslik {
  color: var(--paper);
  font-weight: 550;
}
.birak-sec {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--amber);
}
.birak-not {
  color: var(--muted);
  font-size: 0.75rem;
}
.birak-girdi {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.dosya-kart {
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--amber);
  border-radius: 8px;
  background: var(--bg);
}
.dosya-kart > * + * {
  margin-top: 8px;
}
.dosya-ust {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.dosya-ad {
  overflow-wrap: anywhere;
  color: var(--paper);
  font-size: 0.875rem;
}
.dosya-bilgi {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
}
.dosya-onizleme {
  max-height: 9.5em;
  overflow: hidden;
  margin: 0;
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--paper-2);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.55;
  white-space: pre;
  -webkit-mask-image: linear-gradient(#000 70%, transparent);
  mask-image: linear-gradient(#000 70%, transparent);
}
/* Gonderilirken dugmede donen halka */
.btn.yukleniyor {
  gap: 10px;
}
.btn.yukleniyor::before {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: don 0.8s linear infinite;
}
@keyframes don {
  to {
    transform: rotate(360deg);
  }
}

/* Ilerleme: gecen sure, dolan cubuk, asamaya gore degisen ipucu */
.ilerleme-ust {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.ilerleme-ust h2,
.ilerleme-ust p {
  margin: 0;
}
.sure {
  color: var(--paper-2);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}
.cubuk {
  position: relative;
  height: 4px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--chip);
}
.cubuk span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  overflow: hidden;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--amber), var(--rust));
  transition: width 1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.cubuk span::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: translateX(-100%);
}
.ipucu {
  min-height: 1.5em;
  color: var(--muted);
  font-size: 0.875rem;
  transition: opacity 0.3s;
}
.ipucu.degisiyor {
  opacity: 0;
}
.asamalar li {
  transition: color 0.3s;
}
.asamalar li::before {
  transition: background-color 0.3s, border-color 0.3s;
}
.asamalar .bitti::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2 5.1 8.2 9 4' fill='none' stroke='%2314181d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 100%;
}
.asamalar .simdi::before {
  border-color: var(--amber);
}

/* Sohbet: yaziyor noktalari, yeni mesaj kayarak gelir */
.yaz {
  display: inline-flex;
  gap: 3px;
  margin-left: 6px;
}
.yaz i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

@media (prefers-reduced-motion: no-preference) {
  .cubuk span::after {
    animation: parilti 1.8s ease-in-out infinite;
  }
  .yaz i {
    animation: zipla 1s ease-in-out infinite;
  }
  .yaz i:nth-child(2) {
    animation-delay: 0.15s;
  }
  .yaz i:nth-child(3) {
    animation-delay: 0.3s;
  }
  .ask-msg {
    animation: kay 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .asamalar .bitti::before {
    animation: tik 0.35s ease-out both;
  }
  .giris-anim > *,
  .adimlar.giris-anim > li {
    animation: kay 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .giris-anim > :nth-child(2),
  .adimlar.giris-anim > li:nth-child(2) {
    animation-delay: 0.12s;
  }
  .adimlar.giris-anim > li:nth-child(3) {
    animation-delay: 0.24s;
  }
  .dosya-kart:not([hidden]),
  iframe.rapor {
    animation: kay 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .analizler tbody tr {
    animation: kay 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .analizler tbody tr:nth-child(2) {
    animation-delay: 0.05s;
  }
  .analizler tbody tr:nth-child(3) {
    animation-delay: 0.1s;
  }
  .analizler tbody tr:nth-child(n + 4) {
    animation-delay: 0.15s;
  }
}
@media (prefers-reduced-motion: reduce) {
  .btn.yukleniyor::before {
    animation: none;
    border-right-color: currentColor;
    opacity: 0.6;
  }
  .cubuk span,
  .ipucu,
  .birak,
  .birak-ikon {
    transition: none;
  }
}
@keyframes kay {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes parilti {
  to {
    transform: translateX(100%);
  }
}
@keyframes zipla {
  0%,
  60%,
  100% {
    transform: none;
    opacity: 0.5;
  }
  30% {
    transform: translateY(-3px);
    opacity: 1;
  }
}
@keyframes tik {
  from {
    transform: scale(0.4);
  }
  to {
    transform: none;
  }
}
