/* VideoForge — “bulutlu gün / karanlık oda”
   Brygada 1918 (başlık) · Schibsted Grotesk (metin) · Spline Sans Mono (zaman kodu, kenar baskısı) */

/* ------------------------------------------------------------------ tokenlar */
:root {
  --fog: #DCDFDA;        /* zemin — kapalı gökyüzü */
  --paper: #EEEFEA;      /* yüzey */
  --paper-2: #E4E6E0;    /* çukur yüzey */
  --paper-3: #D2D6D0;
  --ink: #221D19;        /* toprak siyahı */
  --ink-2: #544E47;
  --ink-3: #6B645B;
  --rule: rgba(34, 29, 25, .13);
  --rule-2: rgba(34, 29, 25, .22);
  --ochre: #B97F1C;      /* sinyal / lamba */
  --ochre-ink: #875709;
  --ochre-soft: rgba(185, 127, 28, .14);
  --on-ochre: #1B1510;
  --sage: #5A7A58;
  --sage-ink: #3F5D3D;
  --sage-soft: rgba(90, 122, 88, .15);
  --slate: #3F5C78;
  --slate-soft: rgba(63, 92, 120, .12);
  --rust: #A5402A;
  --rust-soft: rgba(165, 64, 42, .12);
  --grease: #D4502A;     /* ışık masası kalemi */

  --sheet: #151311;      /* kontak baskı — iki temada da karanlık */
  --sheet-2: #1F1C19;
  --sheet-edge: #C9913A;
  --sheet-ink: #EAE2D2;

  --shadow-1: 0 1px 0 rgba(255,255,255,.6) inset, 0 1px 2px rgba(34,29,25,.06), 0 8px 24px -12px rgba(34,29,25,.18);
  --shadow-2: 0 24px 60px -20px rgba(34,29,25,.35);
  --focus: #1F5FA8;

  --f-display: 'Brygada 1918', 'Iowan Old Style', Georgia, serif;
  --f-body: 'Schibsted Grotesk', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --f-mono: 'Spline Sans Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --r-1: 6px;
  --r-2: 10px;
  --r-3: 16px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fog: #121416;
    --paper: #1A1D1F;
    --paper-2: #16181A;
    --paper-3: #24282A;
    --ink: #ECE5D8;
    --ink-2: #B5AD9E;
    --ink-3: #958D7F;
    --rule: rgba(236, 229, 216, .10);
    --rule-2: rgba(236, 229, 216, .18);
    --ochre: #E0A43E;
    --ochre-ink: #E8B45A;
    --ochre-soft: rgba(224, 164, 62, .14);
    --on-ochre: #1A140C;
    --sage: #8FAE89;
    --sage-ink: #A3C19C;
    --sage-soft: rgba(143, 174, 137, .14);
    --slate: #92ADC8;
    --slate-soft: rgba(146, 173, 200, .12);
    --rust: #E5846A;
    --rust-soft: rgba(229, 132, 106, .13);
    --grease: #EF6A3F;
    --sheet: #0C0B0A;
    --sheet-2: #171513;
    --shadow-1: 0 1px 0 rgba(255,255,255,.03) inset, 0 8px 24px -14px rgba(0,0,0,.6);
    --shadow-2: 0 30px 70px -20px rgba(0,0,0,.7);
    --focus: #8DB8F0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --fog: #121416;
  --paper: #1A1D1F;
  --paper-2: #16181A;
  --paper-3: #24282A;
  --ink: #ECE5D8;
  --ink-2: #B5AD9E;
  --ink-3: #958D7F;
  --rule: rgba(236, 229, 216, .10);
  --rule-2: rgba(236, 229, 216, .18);
  --ochre: #E0A43E;
  --ochre-ink: #E8B45A;
  --ochre-soft: rgba(224, 164, 62, .14);
  --on-ochre: #1A140C;
  --sage: #8FAE89;
  --sage-ink: #A3C19C;
  --sage-soft: rgba(143, 174, 137, .14);
  --slate: #92ADC8;
  --slate-soft: rgba(146, 173, 200, .12);
  --rust: #E5846A;
  --rust-soft: rgba(229, 132, 106, .13);
  --grease: #EF6A3F;
  --sheet: #0C0B0A;
  --sheet-2: #171513;
  --shadow-1: 0 1px 0 rgba(255,255,255,.03) inset, 0 8px 24px -14px rgba(0,0,0,.6);
  --shadow-2: 0 30px 70px -20px rgba(0,0,0,.7);
  --focus: #8DB8F0;
  color-scheme: dark;
}

/* --------------------------------------------------------------------- temel */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--fog);
  color: var(--ink);
  font: 400 16px/1.55 var(--f-body);
  font-feature-settings: "ss01", "tnum" 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--ochre); color: var(--on-ochre); }

.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--ink-2); }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.eyebrow { font: 500 11.5px/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: var(--r-1); text-decoration: none; }
.skip-link:focus { top: 12px; }
main { outline: none; }

/* -------------------------------------------------------------------- başlık */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: 10px var(--gutter);
  padding-top: max(10px, env(safe-area-inset-top));
  background: color-mix(in srgb, var(--fog) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; border-radius: 6px; }
.brand { flex: none; }
.brand-mark { width: 26px; height: 26px; fill: var(--ochre); flex: none; }
.brand-mark .brand-cut { fill: var(--fog); }
.brand-word { font: 500 21px/1 var(--f-display); letter-spacing: -.01em; }
.brand-word em { font-style: italic; font-weight: 600; color: var(--ochre-ink); }
.demo-badge {
  font: 500 10.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 7px 4px; border-radius: 4px; border: 1px dashed var(--ochre); color: var(--ochre-ink);
}
.bar-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 11px; border-radius: 999px;
  background: none; border: 0; text-decoration: none;
  font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  transition: background-color .15s, color .15s;
}
.nav-link:hover { background: var(--paper-2); color: var(--ink); }
.nav-link[aria-current="page"] { color: var(--ink); background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule); }
.nav-link.icon-only { width: 36px; padding: 0; justify-content: center; }
.nav-link.attention { color: var(--ochre-ink); }
.nav-link.attention::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ochre); margin-left: -2px; }

.balances {
  display: inline-flex; align-items: center; gap: 12px;
  height: 36px; padding: 0 12px; margin-right: 6px;
  border-radius: 999px; border: 1px solid var(--rule); background: var(--paper);
  font: 500 12.5px/1 var(--f-mono); color: var(--ink-2); font-variant-numeric: tabular-nums;
  transition: border-color .15s;
}
.balances:hover { border-color: var(--rule-2); }
.bal { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.bal b { font-weight: 500; color: var(--ink); }
.bal-name { color: var(--ink-3); }
.bal-meter { width: 34px; height: 5px; border-radius: 3px; background: var(--paper-3); overflow: hidden; }
.bal-meter i { display: block; height: 100%; background: var(--sage); border-radius: inherit; }
.bal-meter.low i { background: var(--ochre); }
.bal-sep { width: 1px; height: 14px; background: var(--rule-2); }
.bal-warn { color: var(--ochre-ink); display: inline-flex; gap: 7px; align-items: center; }
.bal-warn::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ochre); }
.bal-loading { color: var(--ink-3); }

.notice {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  margin: 12px var(--gutter) 0; padding: 10px 14px;
  border-radius: var(--r-2); background: var(--ochre-soft); color: var(--ink);
  font-size: 14px; border: 1px solid color-mix(in srgb, var(--ochre) 30%, transparent);
}
.notice code { font-family: var(--f-mono); font-size: 12.5px; background: var(--paper); padding: 1px 5px; border-radius: 4px; }
.notice > span { flex: 1 1 260px; }
.notice .btn, .notice .icon-btn { margin-left: auto; }

/* ------------------------------------------------------------------ düğmeler */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid transparent; background: var(--paper-2); color: var(--ink);
  font-size: 14.5px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform .12s var(--ease-out), background-color .15s, border-color .15s, box-shadow .15s, opacity .15s;
}
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--ochre); color: var(--on-ochre); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 6px 18px -8px color-mix(in srgb, var(--ochre) 70%, transparent); }
.btn-primary:hover:not(:disabled) { background: color-mix(in srgb, var(--ochre) 88%, var(--ink)); }
.btn-quiet { background: transparent; border-color: var(--rule-2); }
.btn-quiet:hover:not(:disabled) { background: var(--paper-2); }
.btn-danger { background: var(--rust); color: var(--paper); }
.btn-danger:hover { background: color-mix(in srgb, var(--rust) 85%, #000); }
.btn-sm { min-height: 32px; padding: 0 12px; font-size: 13px; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 16.5px; }
.icon-btn {
  width: 36px; height: 36px; display: inline-grid; place-items: center;
  border-radius: 999px; border: 0; background: transparent; color: var(--ink-2);
}
.icon-btn:hover { background: var(--paper-2); color: var(--ink); }
.copy-btn { color: var(--ink-3); }
.copy-btn.copied { color: var(--sage-ink); }

/* ---------------------------------------------------------------- yerleşim */
.page { max-width: var(--max); margin: 0 auto; padding: 28px var(--gutter) 96px; }
.view-enter { animation: view-in .38s var(--ease-out) both; }
@keyframes view-in { from { opacity: 0; transform: translateY(6px); } }

/* ================================================================= ANA SAYFA */
.hero { max-width: 980px; margin: 0 auto; }
.frame {
  position: relative; height: clamp(170px, 34vh, 380px); overflow: hidden;
  border-radius: var(--r-2); background: #2a241f;
  box-shadow: var(--shadow-2);
  isolation: isolate;
}
.frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.6s var(--ease-in-out);
  transform-origin: 50% 45%;
}
.frame img.on { opacity: 1; }
.frame img.kb-a { animation: kb-a 9s linear both; }
.frame img.kb-b { animation: kb-b 9s linear both; }
@keyframes kb-a { from { transform: scale(1.04) translate(-1%, 0); } to { transform: scale(1.14) translate(1.2%, -1%); } }
@keyframes kb-b { from { transform: scale(1.14) translate(1%, -1%); } to { transform: scale(1.05) translate(-1%, .5%); } }
.frame::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(12,10,8,.55) 100%),
    linear-gradient(to top, rgba(12,10,8,.55), transparent 42%);
}
.karaoke {
  position: absolute; left: 0; right: 0; bottom: 9%; z-index: 2;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 0 .38em;
  padding: 0 6%;
  font: 800 clamp(15px, 2.6vw, 27px)/1.15 var(--f-body); letter-spacing: .01em;
  text-transform: uppercase; color: #fff;
  text-shadow: 0 2px 0 rgba(0,0,0,.55), 0 0 18px rgba(0,0,0,.4);
}
.karaoke span { transition: color .12s, transform .12s var(--ease-out); display: inline-block; }
.karaoke span.hit { color: #FFD24A; transform: scale(1.07); }
.frame-edge {
  display: flex; justify-content: space-between; gap: 12px; margin-top: 10px;
  font: 400 11px/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
}

.hero-copy { text-align: center; margin: clamp(22px, 4vh, 40px) auto 22px; max-width: 760px; }
.hero-copy h1 {
  font: 500 clamp(32px, 5.4vw, 58px)/1.02 var(--f-display);
  letter-spacing: -.022em; text-wrap: balance;
}
.hero-copy h1 em { font-style: italic; color: var(--ochre-ink); font-weight: 500; }
.hero-copy p { margin-top: 14px; color: var(--ink-2); font-size: 17px; text-wrap: pretty; }

.paste {
  position: relative; display: flex; align-items: center; gap: 8px;
  max-width: 760px; margin: 0 auto;
  padding: 8px 8px 8px 18px; border-radius: 999px;
  background: var(--paper); border: 1.5px solid var(--rule-2);
  box-shadow: var(--shadow-1);
  transition: border-color .2s, box-shadow .2s;
}
.paste:focus-within { border-color: var(--ochre); box-shadow: var(--shadow-1), 0 0 0 5px var(--ochre-soft); }
.paste.invalid { border-color: var(--rust); }
.paste > .i { width: 22px; height: 22px; color: var(--ink-3); }
.paste input {
  flex: 1; min-width: 0; height: 48px; border: 0; background: transparent; outline: none;
  font-size: 18px; font-weight: 500;
}
.paste input::placeholder { color: var(--ink-3); font-weight: 400; }
.paste input:focus-visible { outline: none; }
.paste-hint { max-width: 760px; margin: 10px auto 0; min-height: 22px; text-align: center; font-size: 14px; color: var(--ink-3); }
.paste-hint.err { color: var(--rust); }

.keys-callout {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  max-width: 760px; margin: 4px auto 0; padding: 14px 16px 14px 18px;
  border-radius: var(--r-3); background: var(--paper); border: 1px solid var(--rule);
  box-shadow: var(--shadow-1);
}
.keys-callout .kc-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ochre-soft); color: var(--ochre-ink); flex: none; }
.keys-callout .kc-text { flex: 1; min-width: 200px; }
.keys-callout strong { display: block; font-weight: 600; }
.keys-callout span { color: var(--ink-2); font-size: 14.5px; }

.running-banner {
  display: flex; align-items: center; gap: 14px; max-width: 760px; margin: 0 auto 18px;
  padding: 10px 10px 10px 16px; border-radius: var(--r-3); text-decoration: none;
  background: var(--paper); border: 1px solid var(--rule); box-shadow: var(--shadow-1);
}
.running-banner img { width: 64px; aspect-ratio: 16/9; object-fit: cover; border-radius: 5px; }
.running-banner .rb-text { flex: 1; min-width: 0; }
.running-banner .rb-text b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.running-banner .rb-text span { font-size: 13.5px; color: var(--ink-2); }
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--grease); flex: none; animation: rec 1.6s ease-in-out infinite; }
@keyframes rec { 50% { opacity: .25; } }
.running-banner.review { border-color: color-mix(in srgb, var(--slate) 40%, transparent); background: color-mix(in srgb, var(--slate-soft) 60%, var(--paper)); }

/* ------------------------------------------------------------- yapım künyesi */
.brief {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 0;
  max-width: 980px; margin: 30px auto 0;
  border-radius: var(--r-3); overflow: hidden;
  background: var(--paper); border: 1px solid var(--rule); box-shadow: var(--shadow-2);
  animation: view-in .45s var(--ease-out) both;
}
.brief[hidden] { display: none; }
.source { padding: 22px; border-right: 1px solid var(--rule); display: flex; flex-direction: column; gap: 14px; background: var(--paper-2); }
.source-thumb { position: relative; aspect-ratio: 16/9; border-radius: var(--r-1); overflow: hidden; background: var(--paper-3); }
.source-thumb img { width: 100%; height: 100%; object-fit: cover; }
.source-thumb .dur { position: absolute; right: 8px; bottom: 8px; padding: 3px 6px; border-radius: 4px; background: rgba(0,0,0,.72); color: #fff; font: 500 12px/1 var(--f-mono); }
.source-title { font: 500 21px/1.2 var(--f-display); letter-spacing: -.01em; text-wrap: balance; }
.source-meta { display: flex; gap: 8px; align-items: center; color: var(--ink-2); font-size: 14px; }
.source-meta .lang { font: 500 10.5px/1 var(--f-mono); letter-spacing: .08em; padding: 4px 6px; border-radius: 4px; border: 1px solid var(--rule-2); }
.translate-note { margin-top: auto; display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.translate-note .i { color: var(--ochre-ink); }
.skeleton { background: linear-gradient(100deg, var(--paper-3) 40%, color-mix(in srgb, var(--paper-3) 50%, var(--paper)) 50%, var(--paper-3) 60%) 0 0 / 250% 100%; animation: shimmer 1.3s linear infinite; border-radius: 6px; }
@keyframes shimmer { to { background-position: -150% 0; } }
.sk-line { height: 14px; margin-top: 8px; }

.config { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 18px; }
.field-row { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: center; }
.field-row > .label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }

.seg { display: flex; padding: 3px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--rule); position: relative; }
.seg label { flex: 1; position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span {
  display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap;
  min-height: 36px; padding: 4px 12px; border-radius: 999px; text-align: center;
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  transition: background-color .18s, color .18s, box-shadow .18s;
}
.seg span small { font: 500 11.5px/1 var(--f-mono); color: var(--ink-3); font-weight: 500; }
.seg input:checked + span { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.1), 0 0 0 1px var(--rule); }
.seg input:checked + span small { color: var(--ochre-ink); }
.seg input:focus-visible + span { outline: 2.5px solid var(--focus); outline-offset: 1px; }
.seg label:hover input:not(:checked) + span { color: var(--ink); }

.adv summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); border-radius: 4px; }
.adv summary::-webkit-details-marker { display: none; }
.adv summary::before { content: ""; width: 6px; height: 6px; border-right: 1.7px solid currentColor; border-bottom: 1.7px solid currentColor; transform: rotate(-45deg); transition: transform .2s; margin-right: 4px; }
.adv[open] summary::before { transform: rotate(45deg); }
.adv-body { margin-top: 10px; display: grid; gap: 6px; }
.adv-body label { font-size: 13px; color: var(--ink-2); }
.text-input {
  width: 100%; height: 40px; padding: 0 12px; border-radius: var(--r-1);
  border: 1px solid var(--rule-2); background: var(--paper); font-family: var(--f-mono); font-size: 13.5px;
}
.text-input:focus { border-color: var(--ochre); outline: none; box-shadow: 0 0 0 3px var(--ochre-soft); }

/* maliyet fişi */
.slip { border-top: 1px dashed var(--rule-2); padding-top: 16px; }
.slip-rows { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; font-size: 14px; }
.slip-rows dt { color: var(--ink-2); display: flex; gap: 8px; align-items: baseline; }
.slip-rows dt small { font: 400 11.5px/1 var(--f-mono); color: var(--ink-3); }
.slip-rows dd { margin: 0; text-align: right; font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-size: 13.5px; }
.slip-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--rule); }
.slip-total .amt { font: 600 34px/1 var(--f-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums lining-nums; }
.slip-total .lbl { font-size: 13.5px; color: var(--ink-2); }
.slip-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font: 400 12.5px/1.4 var(--f-mono); color: var(--ink-2); }
.slip-facts span::before { content: "· "; color: var(--ink-3); }
.slip-facts span:first-child::before { content: ""; }
.slip.loading { opacity: .55; transition: opacity .2s; }
.start-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.start-row .btn-lg { flex: 1; }
.start-row .note { font-size: 13px; color: var(--ink-3); flex-basis: 100%; }

/* son işler / arşiv */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 64px auto 16px; max-width: 980px; }
.section-head h2 { font: 500 26px/1.1 var(--f-display); letter-spacing: -.01em; }
.section-head a { font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; border-radius: 4px; }
.section-head a:hover { color: var(--ink); text-decoration: underline; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; max-width: 980px; margin: 0 auto; }
.cards.wide { max-width: none; }
.card {
  display: flex; flex-direction: column; text-decoration: none; border-radius: var(--r-2); overflow: hidden;
  background: var(--paper); border: 1px solid var(--rule);
  transition: transform .2s var(--ease-out), box-shadow .2s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-1); }
.card-thumb { position: relative; aspect-ratio: 16/9; background: var(--paper-3); overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-thumb .status { position: absolute; left: 8px; top: 8px; }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font: 500 17px/1.25 var(--f-display); text-wrap: balance; }
.card-sub { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-meta { margin-top: auto; padding-top: 6px; display: flex; gap: 4px 10px; flex-wrap: wrap; font: 400 12px/1.3 var(--f-mono); color: var(--ink-3); }
.card-progress { height: 3px; background: rgba(0,0,0,.35); position: absolute; left: 0; right: 0; bottom: 0; }
.card-progress i { display: block; height: 100%; background: var(--ochre); }

.status {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px;
  border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--paper); color: var(--ink-2); box-shadow: 0 1px 3px rgba(0,0,0,.18);
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.done { color: var(--sage-ink); }
.status.running, .status.queued { color: var(--ochre-ink); }
.status.running::before { background: var(--grease); animation: rec 1.6s ease-in-out infinite; }
.status.failed { color: var(--rust); }
.status.cancelled { color: var(--ink-3); }
.status.review { color: var(--slate); }

.empty {
  max-width: 560px; margin: 40px auto; padding: 40px 24px; text-align: center;
  border: 1.5px dashed var(--rule-2); border-radius: var(--r-3);
}
.empty h2 { font: 500 26px/1.2 var(--f-display); margin-bottom: 8px; }
.empty p { color: var(--ink-2); margin-bottom: 18px; }

/* =============================================================== ÜRETİM ODASI */
.job-top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; border-radius: 4px; }
.back:hover { color: var(--ink); }
.job-top .spacer { flex: 1; }

.job-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 32px; align-items: end; }
.job-kicker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.job-kicker .src { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); min-width: 0; }
.job-kicker .src img { width: 36px; aspect-ratio: 16/9; object-fit: cover; border-radius: 3px; }
.job-kicker .src span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 42ch; }
.job-title { font: 500 clamp(28px, 4.4vw, 48px)/1.04 var(--f-display); letter-spacing: -.02em; text-wrap: balance; }
.job-title.tr { font-style: italic; }
.job-sub { margin-top: 8px; color: var(--ink-2); font-size: 14.5px; }
.tags-inline { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { font: 500 11.5px/1 var(--f-mono); letter-spacing: .04em; padding: 5px 8px; border-radius: 999px; border: 1px solid var(--rule-2); color: var(--ink-2); }

.clock { text-align: right; }
.timecode {
  font: 400 clamp(30px, 4.6vw, 46px)/1 var(--f-mono); letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.timecode .ff { color: var(--ink-3); }
.clock-sub { margin-top: 6px; display: flex; gap: 10px; justify-content: flex-end; align-items: center; font-size: 13.5px; color: var(--ink-2); flex-wrap: wrap; }
.clock-sub b { font-weight: 600; color: var(--ink); }

.meter { margin: 22px 0 28px; position: relative; }
.meter-track { height: 8px; border-radius: 999px; background: var(--paper-3); overflow: hidden; position: relative; }
.meter-fill {
  position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit;
  background: var(--ochre); transition: width .9s var(--ease-out);
}
.meter.running .meter-fill::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent) 0 0 / 40% 100% no-repeat;
  animation: glint 2.4s var(--ease-in-out) infinite;
}
@keyframes glint { from { background-position: -60% 0; } to { background-position: 160% 0; } }
.meter.done .meter-fill { background: var(--sage); }
.meter.failed .meter-fill { background: var(--rust); }
.meter.cancelled .meter-fill { background: var(--ink-3); }
.meter.review .meter-fill { background: var(--slate); }
.meter-ticks { display: flex; justify-content: space-between; margin-top: 8px; font: 400 11px/1 var(--f-mono); color: var(--ink-3); letter-spacing: .06em; }

.job-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; }
.col-side { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 18px; }
.col-main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }

.panel { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-3); box-shadow: var(--shadow-1); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 0; }
.panel-head h2 { font: 600 13px/1.2 var(--f-body); letter-spacing: .02em; color: var(--ink-2); }

/* çekim planı */
.steps { list-style: none; margin: 0; padding: 8px 8px 10px; counter-reset: step; }
.step {
  position: relative; display: grid; grid-template-columns: 26px 1fr; gap: 0 10px;
  padding: 8px 8px; border-radius: var(--r-2);
  transition: background-color .3s;
}
.step::before {
  content: ""; position: absolute; left: 20px; top: 32px; bottom: -10px; width: 1.5px;
  background: var(--rule-2);
}
.step:last-child::before { display: none; }
.step.done::before { background: var(--sage); opacity: .55; }
.step-dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; position: relative; z-index: 1; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--rule-2); color: var(--ink-3); }
.step-dot .i { width: 14px; height: 14px; stroke-width: 2.4; }
.step-name { font-size: 14.5px; font-weight: 500; color: var(--ink-2); line-height: 24px; }
.step-detail { grid-column: 2; font: 400 12.5px/1.4 var(--f-mono); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.step-sub { grid-column: 2; height: 4px; margin-top: 7px; border-radius: 4px; background: var(--paper-3); overflow: hidden; }
.step-sub i { display: block; height: 100%; width: 0; background: var(--ochre); border-radius: inherit; transition: width .9s var(--ease-out); }
.step.done .step-dot { background: var(--sage); box-shadow: none; color: var(--paper); }
.step.done .step-name { color: var(--ink); }
.step.running { background: var(--ochre-soft); }
.step.running .step-dot { box-shadow: inset 0 0 0 2px var(--ochre); background: var(--paper); }
.step.running .step-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ochre); animation: breathe 1.4s ease-in-out infinite; }
.step.running .step-name { color: var(--ink); font-weight: 650; }
.step.running .step-detail { color: var(--ochre-ink); }
@keyframes breathe { 50% { transform: scale(.55); opacity: .6; } }
.step.skipped .step-name { text-decoration: line-through; text-decoration-color: var(--rule-2); color: var(--ink-3); }
.step.skipped .step-dot { box-shadow: inset 0 0 0 1.5px var(--rule-2); background: repeating-linear-gradient(-45deg, transparent 0 3px, var(--rule) 3px 4.5px), var(--paper); }
.step.failed { background: var(--rust-soft); }
.step.failed .step-dot { background: var(--rust); box-shadow: none; color: var(--paper); }
.step.failed .step-name { color: var(--rust); font-weight: 650; }
.step.failed .step-detail { color: var(--rust); }
.step.just-done .step-dot { animation: pop .45s var(--ease-out); }
@keyframes pop { 40% { transform: scale(1.22); } }

/* kontak baskı (imza) */
.sheet {
  position: relative; border-radius: var(--r-3); padding: 18px 18px 20px;
  background: radial-gradient(120% 80% at 50% 0%, var(--sheet-2), var(--sheet));
  color: var(--sheet-ink); box-shadow: var(--shadow-2);
}
.sheet-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.sheet-head h2 { font: italic 500 22px/1.1 var(--f-display); letter-spacing: -.01em; }
.sheet-head .count { font: 400 12px/1 var(--f-mono); color: var(--sheet-edge); letter-spacing: .08em; }
.frames { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px 10px; list-style: none; margin: 0; padding: 0; }
.fr { position: relative; }
.fr-btn {
  display: block; width: 100%; padding: 7px 0; border: 0; border-radius: 3px;
  background:
    radial-gradient(circle, #000 1.7px, transparent 2.1px) 3px 1.5px / 9px 5px repeat-x,
    radial-gradient(circle, #000 1.7px, transparent 2.1px) 3px calc(100% - 1.5px) / 9px 5px repeat-x,
    #2b2622;
  color: inherit; cursor: zoom-in;
}
.fr-btn:disabled { cursor: default; }
.fr-img { display: block; position: relative; aspect-ratio: 16/9; overflow: hidden; background: #0a0908; }
.fr-img img { width: 100%; height: 100%; object-fit: cover; }
.fr-edge { display: flex; justify-content: space-between; margin-top: 5px; padding: 0 2px; font: 400 10.5px/1 var(--f-mono); letter-spacing: .1em; color: var(--sheet-edge); opacity: .85; }
.fr.latent .fr-img { background: repeating-linear-gradient(135deg, #12100e 0 6px, #161310 6px 12px); }
.fr.latent .fr-edge { opacity: .35; }
.fr.developing .fr-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(201,145,58,.18), transparent) 0 0 / 50% 100% no-repeat;
  animation: glint 1.8s var(--ease-in-out) infinite;
}
.fr.waiting img { opacity: 0; }
.fr.fresh img { animation: develop 1.6s var(--ease-out) both; }
@keyframes develop {
  0%   { opacity: 0; filter: sepia(1) saturate(.4) brightness(1.9) contrast(.35) blur(6px); transform: scale(1.03); }
  45%  { opacity: 1; filter: sepia(.8) saturate(.7) brightness(1.25) contrast(.7) blur(2px); }
  100% { opacity: 1; filter: none; transform: none; }
}
.fr-btn:hover .fr-img img { filter: brightness(1.08); }
.fr-btn:focus-visible { outline-color: var(--sheet-edge); outline-offset: 3px; }
.grease { position: absolute; inset: -9px -12px; pointer-events: none; z-index: 2; overflow: visible; width: calc(100% + 24px); height: calc(100% + 18px); max-width: none; }
.grease path { fill: none; stroke: var(--grease); stroke-width: 2.6; stroke-linecap: round; opacity: .92; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw .9s .5s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.sheet-empty { padding: 26px 8px 18px; text-align: center; font-size: 14px; color: color-mix(in srgb, var(--sheet-ink) 70%, transparent); }

/* senaryo */
.excerpt { padding: 20px 22px 22px; }
.excerpt blockquote { margin: 10px 0 0; font: italic 400 19px/1.55 var(--f-display); color: var(--ink); text-wrap: pretty; }
.excerpt blockquote::before { content: "“"; color: var(--ochre); margin-right: 2px; }
.excerpt blockquote::after { content: "…”"; color: var(--ochre); }
.excerpt audio { width: 100%; margin-top: 14px; height: 36px; }

/* kayıt */
.console { overflow: hidden; }
.console-toggle {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  background: none; border: 0; text-align: left; border-radius: var(--r-3);
}
.console-toggle .title { font-size: 13px; font-weight: 600; color: var(--ink-2); flex: none; }
.console-toggle .last { flex: 1; min-width: 0; font: 400 12.5px/1.3 var(--f-mono); color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.console-toggle .chev { width: 8px; height: 8px; border-right: 1.7px solid var(--ink-3); border-bottom: 1.7px solid var(--ink-3); transform: rotate(45deg); transition: transform .2s; margin-top: -4px; flex: none; }
.console-toggle[aria-expanded="true"] .chev { transform: rotate(-135deg); margin-top: 4px; }
.console-body { border-top: 1px solid var(--rule); }
.console-body[hidden] { display: none; }
.log {
  max-height: 300px; overflow: auto; margin: 0; padding: 10px 0; list-style: none;
  font: 400 12.5px/1.6 var(--f-mono); background: var(--paper-2); overscroll-behavior: contain;
}
.log li { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 0 16px; }
.log time { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.log .msg { color: var(--ink-2); overflow-wrap: anywhere; }
.log .ok .msg { color: var(--sage-ink); }
.log .warn .msg { color: var(--ochre-ink); }
.log .error .msg { color: var(--rust); font-weight: 500; }
.log li.new { animation: log-in .3s var(--ease-out); }
@keyframes log-in { from { opacity: 0; transform: translateX(-4px); } }

/* sonuç */
.outcome { animation: view-in .5s var(--ease-out) both; }
.outcome-done { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 22px; margin-bottom: 28px; }
.player { border-radius: var(--r-3); overflow: hidden; background: #000; box-shadow: var(--shadow-2); aspect-ratio: 16/9; }
.player video { width: 100%; height: 100%; background: #000; }
.deliver { display: flex; flex-direction: column; gap: 14px; }
.thumb-card { padding: 12px; }
.thumb-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--r-1); }
.thumb-card .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.deliver .btn-lg { width: 100%; }

.seo { padding: 6px 0 4px; }
.seo-block { padding: 16px 20px; border-top: 1px solid var(--rule); }
.seo-block:first-of-type { border-top: 0; }
.seo-block h3 { display: flex; align-items: center; justify-content: space-between; gap: 10px; font: 600 13px/1.2 var(--f-body); color: var(--ink-2); margin-bottom: 10px; }
.titles { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; counter-reset: t; }
.titles li { display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 10px; border-radius: var(--r-1); transition: background-color .15s; }
.titles li:hover { background: var(--paper-2); }
.titles li::before { counter-increment: t; content: counter(t); font: 500 12px/1 var(--f-mono); color: var(--ink-3); width: 12px; }
.titles .t { flex: 1; font: 500 18px/1.3 var(--f-display); }
.titles .len { font: 400 11.5px/1 var(--f-mono); color: var(--ink-3); }
.desc { white-space: pre-wrap; font-size: 15px; line-height: 1.6; color: var(--ink); max-height: 220px; overflow: auto; padding-right: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--rule-2); background: var(--paper); font-size: 13.5px; cursor: pointer; transition: background-color .15s, border-color .15s; }
.chip:hover { background: var(--paper-2); border-color: var(--ink-3); }
.chip.copied { border-color: var(--sage); color: var(--sage-ink); }

.outcome-fail {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; padding: 20px 22px; margin-bottom: 26px;
  border-radius: var(--r-3); background: var(--rust-soft); border: 1px solid color-mix(in srgb, var(--rust) 35%, transparent);
}
.outcome-fail.cancelled { background: var(--paper); border-color: var(--rule); }
.outcome-fail .mark { grid-row: span 3; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--rust); color: var(--paper); }
.outcome-fail.cancelled .mark { background: var(--ink-3); }
.outcome-fail h2 { font: 500 24px/1.2 var(--f-display); }
.outcome-fail p { color: var(--ink); max-width: 70ch; }
.outcome-fail .tail { margin: 8px 0 4px; padding: 10px 12px; border-radius: var(--r-1); background: var(--paper); font: 400 12.5px/1.6 var(--f-mono); list-style: none; }
.outcome-fail .tail li { overflow-wrap: anywhere; color: var(--ink-2); }
.outcome-fail .tail li.error { color: var(--rust); }
.outcome-fail .tail li.warn { color: var(--ochre-ink); }
.outcome-fail .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

.not-found { max-width: 520px; margin: 60px auto; text-align: center; }
.not-found h1 { font: 500 34px/1.1 var(--f-display); margin-bottom: 10px; }
.not-found p { color: var(--ink-2); margin-bottom: 20px; }

/* ------------------------------------------------ yeni iş: senaryo onayı anahtarı */
.switch-row { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; padding: 10px 12px; border-radius: var(--r-2); border: 1px solid var(--rule); background: var(--paper-2); }
.switch-row:hover { border-color: var(--rule-2); }
.switch { position: relative; flex: none; width: 38px; height: 22px; margin-top: 1px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: var(--paper-3); border: 1px solid var(--rule-2); transition: background-color .18s; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .2s var(--ease-out); }
.switch input:checked + i { background: var(--ochre); border-color: transparent; }
.switch input:checked + i::after { transform: translateX(16px); }
.switch input:focus-visible + i { outline: 2.5px solid var(--focus); outline-offset: 2px; }
.switch-text { display: grid; gap: 3px; }
.switch-text b { font-size: 14px; font-weight: 600; }
.switch-text small { font-size: 13px; color: var(--ink-3); line-height: 1.4; }

/* ----------------------------------------------------------- senaryo onayı */
.review-card {
  margin-bottom: 26px; padding: 20px 22px 22px; border-radius: var(--r-3);
  background: color-mix(in srgb, var(--slate-soft) 70%, var(--paper));
  border: 1px solid color-mix(in srgb, var(--slate) 35%, transparent);
  animation: view-in .5s var(--ease-out) both;
}
.rv-head { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.rv-head .mark { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--slate); color: var(--paper); }
.rv-head h2 { font: 500 26px/1.15 var(--f-display); margin: 4px 0 6px; }
.rv-lede { color: var(--ink-2); max-width: 70ch; }
.rv-body { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.rv-promise { font: italic 400 17px/1.5 var(--f-display); display: grid; gap: 4px; }
.rv-titles { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.rv-titles legend { margin-bottom: 6px; }
.rv-titles label { display: flex; gap: 10px; align-items: baseline; padding: 8px 12px; border-radius: var(--r-1); background: var(--paper); border: 1px solid var(--rule); cursor: pointer; font: 500 17px/1.3 var(--f-display); }
.rv-titles label:has(input:checked) { border-color: var(--ochre); box-shadow: 0 0 0 3px var(--ochre-soft); }
.rv-titles input { accent-color: var(--ochre); }
.rv-text {
  width: 100%; min-height: 340px; resize: vertical; padding: 16px 18px; border-radius: var(--r-2);
  border: 1px solid var(--rule-2); background: var(--paper); color: var(--ink);
  font: 400 17px/1.65 var(--f-display); text-wrap: pretty;
}
.rv-text:focus { border-color: var(--ochre); outline: none; box-shadow: 0 0 0 3px var(--ochre-soft); }
.rv-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rv-count { font: 400 13px/1.3 var(--f-mono); color: var(--ink-2); }
.rv-count .chg { color: var(--ochre-ink); }
.rv-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ------------------------------------------------------------ araştırma */
.cost .cost-body { padding: 10px 16px 16px; border-top: 0; }
.cost .cost-body .muted { margin-top: 10px; }
.research .rs-body { padding: 10px 16px 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.rs-topic { font: 500 20px/1.25 var(--f-display); }
.rs-angle { display: grid; gap: 4px; padding-left: 12px; border-left: 3px solid var(--ochre); color: var(--ink); }
.rs-sub { display: grid; gap: 6px; }
.rs-surprises { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; line-height: 1.5; }
.rs-surprises li::marker { color: var(--ochre-ink); font: 500 12px var(--f-mono); }
.rs-sources ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; }
.rs-sources a { color: var(--ink); text-decoration-color: var(--rule-2); text-underline-offset: 3px; overflow-wrap: anywhere; }
.rs-sources a:hover { text-decoration-color: var(--ochre); }
.rs-sources small { display: block; font: 400 11.5px/1.3 var(--f-mono); color: var(--ink-3); }
.small { font-size: 13.5px; }

/* --------------------------------------------------------- yayın masası */
.lead-title { padding: 14px 16px; display: grid; gap: 6px; justify-items: start; }
.lead-title p { font: 500 20px/1.25 var(--f-display); }
.ai-note { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.ai-note .i { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--sage-ink); }
.desk { margin-bottom: 30px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; animation: view-in .6s var(--ease-out) both; }
.desk-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; border-top: 1px solid var(--rule-2); padding-top: 18px; }
.desk-head h2 { font: italic 500 30px/1.1 var(--f-display); letter-spacing: -.01em; }
.desk-head p { color: var(--ink-3); font-size: 14.5px; }
.desk-thumbs { padding-bottom: 16px; }
.tc-badge { font: 500 11.5px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; background: var(--ochre-soft); color: var(--ochre-ink); }
.desk-note { padding: 8px 16px 0; font-size: 13.5px; color: var(--ink-3); max-width: 90ch; }
.tcards { list-style: none; margin: 14px 0 0; padding: 0 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tcard { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-content: start; min-width: 0; }
.tcard-img { position: relative; border-radius: var(--r-1); overflow: hidden; background: var(--sheet); box-shadow: var(--shadow-1); }
.tcard-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.tcard-cap { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.tcard-key { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font: 600 12px/1 var(--f-mono); }
.tcard-title { font: 500 17px/1.3 var(--f-display); text-wrap: pretty; }
.tcard-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tcard-row .eyebrow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tcard-img { order: -1; }
.tcard-actions { display: flex; gap: 2px; flex: none; }
.desk-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: 22px; align-items: start; }
.desk-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; min-width: 0; }
.h-actions { display: inline-flex; align-items: center; gap: 10px; }
.h-actions .len { font: 400 11.5px/1 var(--f-mono); color: var(--ink-3); }
.desk .desc { max-height: 420px; overflow-wrap: anywhere; }
.chapters { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.chapters li { display: grid; grid-template-columns: 56px 1fr; gap: 10px; padding: 5px 6px; border-radius: var(--r-1); }
.chapters li:hover { background: var(--paper-2); }
.chapters time { font: 500 13px/1.5 var(--f-mono); color: var(--ochre-ink); }
.shorts-panel { padding-bottom: 16px; }
.shorts { list-style: none; margin: 12px 0 0; padding: 0 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; }
.shorts li { display: grid; gap: 8px; justify-items: stretch; }
.shorts video { width: 100%; aspect-ratio: 9/16; object-fit: cover; background: #000; border-radius: var(--r-2); box-shadow: var(--shadow-1); }

/* ================================================================ ÇEKMECE */
dialog { color: var(--ink); }
dialog::backdrop { background: rgba(14, 12, 10, .45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.drawer {
  margin: 0 0 0 auto; padding: 0; border: 0; height: 100%; max-height: 100dvh; min-height: 100dvh;
  width: min(500px, 100vw); max-width: 100vw;
  background: var(--paper); box-shadow: var(--shadow-2);
}
.drawer[open] { animation: drawer-in .32s var(--ease-out); }
.drawer[open]::backdrop { animation: fade-in .3s ease; }
.drawer.closing { animation: drawer-out .2s var(--ease-in-out) forwards; }
.drawer.closing::backdrop { animation: fade-out .2s ease forwards; }
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } }
@keyframes drawer-out { to { transform: translateX(40px); opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
.drawer-inner { display: flex; flex-direction: column; height: 100%; }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 22px 6px; }
.drawer-head h2 { font: 500 30px/1.1 var(--f-display); letter-spacing: -.015em; margin-top: 6px; }
.drawer-lede { padding: 4px 22px 16px; color: var(--ink-2); font-size: 14.5px; }
.key-fields { flex: 1; overflow: auto; padding: 4px 22px 20px; display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain; }
.kf { padding: 14px 0 16px; border-top: 1px solid var(--rule); }
.kf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.kf-head label { font-weight: 600; font-size: 15px; }
.kf-tag { font: 500 10.5px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.kf-tag.req { color: var(--ochre-ink); }
.kf-input { display: flex; gap: 4px; align-items: center; border: 1px solid var(--rule-2); border-radius: var(--r-1); background: var(--paper-2); padding-right: 3px; transition: border-color .15s, box-shadow .15s; }
.kf-input:focus-within { border-color: var(--ochre); box-shadow: 0 0 0 3px var(--ochre-soft); background: var(--paper); }
.kf-input input { flex: 1; min-width: 0; height: 40px; padding: 0 11px; border: 0; background: transparent; outline: none; font: 400 14px var(--f-mono); }
.kf-input input::placeholder { color: var(--ink-3); }
.kf-input .icon-btn { width: 32px; height: 32px; }
.kf-help { margin-top: 7px; font-size: 13px; color: var(--ink-3); line-height: 1.45; }
.kf-status { margin-top: 9px; display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; line-height: 1.4; }
.kf-status:empty { display: none; }
.kf-status .i { width: 16px; height: 16px; margin-top: 1px; stroke-width: 2.2; }
.kf-status.ok { color: var(--sage-ink); }
.kf-status.fail { color: var(--rust); }
.kf-status.idle { color: var(--ink-3); }
.kf-status.checking { color: var(--ink-3); }
.kf-extra { margin-top: 8px; display: grid; gap: 5px; font: 400 12px/1.3 var(--f-mono); color: var(--ink-2); }
.kf-extra .bar-line { height: 6px; border-radius: 4px; background: var(--paper-3); overflow: hidden; }
.kf-extra .bar-line i { display: block; height: 100%; background: var(--sage); border-radius: inherit; }
.kf.missing .kf-input { border-color: color-mix(in srgb, var(--ochre) 60%, transparent); }
.drawer-foot { padding: 14px 22px; padding-bottom: max(14px, env(safe-area-inset-bottom)); border-top: 1px solid var(--rule); background: var(--paper); display: flex; flex-direction: column; gap: 10px; }
.drawer-note { font-size: 12.5px; color: var(--ink-3); }
.drawer-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.modal { padding: 0; border: 0; border-radius: var(--r-3); background: var(--paper); box-shadow: var(--shadow-2); width: min(420px, calc(100vw - 32px)); }
.modal[open] { animation: modal-in .22s var(--ease-out); }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.modal-inner { padding: 22px; }
.modal h2 { font: 500 24px/1.2 var(--f-display); margin-bottom: 8px; }
.modal p { color: var(--ink-2); font-size: 15px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100dvh; width: 100vw; height: 100dvh; margin: 0; }
.lightbox::backdrop { background: rgba(8, 7, 6, .9); }
.lightbox[open] { display: grid; place-items: center; animation: fade-in .2s ease; }
.lb-figure { margin: 0; max-width: min(1200px, 92vw); }
.lb-figure img { max-height: 80dvh; width: auto; margin: 0 auto; border-radius: 4px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lb-figure figcaption { margin-top: 12px; text-align: center; font: 400 12px/1 var(--f-mono); letter-spacing: .1em; color: #C9913A; }
.lb-btn { position: fixed; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #fff; }
.lb-btn:hover { background: rgba(255,255,255,.2); }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-close { right: 16px; top: 16px; }

.toast {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 60;
  inset: auto auto max(20px, env(safe-area-inset-bottom)) 50%; margin: 0; border: 0; overflow: visible; width: max-content;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  padding: 11px 16px; border-radius: 999px; max-width: calc(100vw - 32px);
  background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-2);
  transition: opacity .2s, transform .25s var(--ease-out);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--rust); color: var(--paper); }

/* ================================================================ duyarlı */
/* ── arşiv: silme ── */
.head-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.head-actions .count { font: 500 12px/1 var(--f-mono); color: var(--ink-3); }
.card-wrap { position: relative; display: flex; flex-direction: column; transition: opacity .2s, transform .2s var(--ease-out); }
.card-wrap > .card { flex: 1; }
.card-wrap.leaving { opacity: 0; transform: scale(.97); }
.card-del {
  position: absolute; right: 8px; top: 8px; width: 32px; height: 32px; display: grid; place-items: center;
  border: 0; border-radius: 999px; cursor: pointer; color: #fff; background: rgba(14, 12, 10, .55);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .15s, background-color .15s;
}
.card-del .i { width: 17px; height: 17px; }
.card-wrap:hover .card-del, .card-del:focus-visible { opacity: 1; }
.card-del:hover { background: var(--rust); }
.card-del:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 2px; }
@media (hover: none) { .card-del { opacity: 1; } }
.del-files { margin-top: 16px; }

/* ── keşfet ── */
.trends-head { align-items: flex-end; flex-wrap: wrap; }
.trends-head .lede { color: var(--ink-2); font-size: 15px; margin-top: 6px; }
.trends-head .seg { min-width: 220px; }
.tr-status { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; min-height: 22px; margin: 0 0 16px; font: 400 12.5px/1.4 var(--f-mono); color: var(--ink-3); }
.tr-status .concept { font-family: inherit; color: var(--ink-3); flex-basis: 100%; }
.tcard:hover { transform: none; box-shadow: none; }
.tcard .card-thumb { display: block; }
.tcard .card-thumb .dur, .tcard .card-thumb .lang {
  position: absolute; bottom: 8px; padding: 2px 7px; border-radius: 5px;
  font: 500 12px/1.4 var(--f-mono); color: #fff; background: rgba(14, 12, 10, .72);
}
.tcard .card-thumb .dur { right: 8px; }
.tcard .card-thumb .lang { left: 8px; font-family: inherit; font-weight: 600; }
.tcard .card-title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tr-stats { display: flex; gap: 6px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-2); }
.tr-stats b { color: var(--ink); font-weight: 650; }
.tr-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.vbadge { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--paper-2); color: var(--ink-2); border: 1px solid var(--rule); }
.vbadge.hot { background: color-mix(in srgb, var(--ochre) 18%, var(--paper)); color: var(--ochre-ink); border-color: color-mix(in srgb, var(--ochre) 40%, transparent); }
.tr-why { font-size: 13px; color: var(--ink-3); line-height: 1.4; }
.tr-actions { margin-top: auto; padding-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }
.tr-actions .btn { text-decoration: none; }

/* yerel GPU motor seçimi */
.seg label.off span { opacity: .45; cursor: not-allowed; }
.seg label.off input { cursor: not-allowed; }
#engines { display: flex; flex-direction: column; gap: 18px; }
#engines:empty { display: none; }
.eng-why { margin-top: -8px; }

@media (max-width: 900px) {
  .job-grid { grid-template-columns: 1fr; }
  .col-side { position: static; }
  .outcome-done { grid-template-columns: 1fr; }
  .desk-grid { grid-template-columns: 1fr; }
  .tcards { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .brief { grid-template-columns: 1fr; }
  .source { border-right: 0; border-bottom: 1px solid var(--rule); flex-direction: row; align-items: flex-start; flex-wrap: wrap; }
  .source-thumb { width: 42%; min-width: 150px; flex: none; }
  .source-info { flex: 1; min-width: 160px; display: flex; flex-direction: column; gap: 8px; }
  .translate-note { flex-basis: 100%; }
}
@media (max-width: 720px) {
  .bar { gap: 8px; }
  .nav-link span { display: none; }
  .nav-link { width: 36px; padding: 0; justify-content: center; }
  .balances { gap: 8px; padding: 0 10px; margin-right: 2px; }
  .bal-name, .bal-meter { display: none; }
  .job-head { grid-template-columns: 1fr; }
  .clock { text-align: left; }
  .clock-sub { justify-content: flex-start; }
  .hero-copy { margin-top: 30px; }
  .frame-edge span:last-child { display: none; }
  .field-row { grid-template-columns: 1fr; gap: 6px; }
  .section-head { margin-top: 48px; }
}
@media (max-width: 480px) {
  .page { padding-top: 18px; }
  .brand-word { font-size: 19px; }
  .balances .bal-el, .balances .bal-sep { display: none; }
  .demo-badge { display: none; }
  .bar-nav { gap: 0; }
  .balances { padding: 0 9px; }
  .paste { padding-left: 14px; border-radius: 22px; flex-wrap: wrap; }
  .paste input { font-size: 16px; }
  .paste .btn { display: none; }
  .source { flex-direction: column; align-items: stretch; }
  .source .translate-note { flex-basis: auto; margin-top: 0; }
  .source-thumb { width: 100%; }
  .config { padding: 18px; }
  .frames { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 8px; }
  .titles .t { font-size: 16.5px; }
  .log li { grid-template-columns: 44px 1fr; padding: 0 12px; }
  .seo-block { padding: 14px 14px; }
  .tcards { grid-template-columns: 1fr; padding: 0 12px; }
  .review-card { padding: 16px; }
  .rv-head { grid-template-columns: 1fr; }
  .rv-head .mark { display: none; }
  .rv-actions, .rv-actions .btn { width: 100%; }
  .slip-total .amt { font-size: 30px; }
  .timecode { font-size: 34px; }
}

/* ============================================================ hareket azalt */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .frame img.kb-a, .frame img.kb-b { animation: none; transform: none; }
  .fr.fresh img { animation: fade-in .01ms both; }
  .grease path { stroke-dashoffset: 0; animation: none; }
  .meter.running .meter-fill::after, .fr.developing .fr-img::after { display: none; }
}
