/* ZenOne.Space proje kabuğu ve içindeki ZenOne.Studio üretim yüzeyleri. */
:root {
  --paper: #f5f1ea; --surface: #fffcf7; --raised: #ffffff; --ink: #1d1a17; --ink-2: #4a443d;
  --mute: #8a8176; --line: #e6dfd4; --line-2: #d8cfc1;
  --accent: #b4532a; --accent-ink: #fff8f2; --accent-soft: #f4e3d8;
  --sage: #56715f; --sage-soft: #e3ebe4; --amber: #a36a14; --amber-soft: #f6ead3;
  --rose: #a4433b; --rose-soft: #f5e1de; --ocean: #33566b; --ocean-soft: #dfe8ee;
  --shadow: 0 1px 2px rgba(40, 30, 20, .05), 0 8px 24px -12px rgba(40, 30, 20, .12);
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #131210; --surface: #1b1917; --raised: #221f1c; --ink: #efe8dd; --ink-2: #c9c0b3;
    --mute: #8f867a; --line: #2e2a26; --line-2: #3b3631;
    --accent: #e2875c; --accent-ink: #1b1109; --accent-soft: #3a261c;
    --sage: #9fbea8; --sage-soft: #1f2b23; --amber: #e0b163; --amber-soft: #33291a;
    --rose: #e79a90; --rose-soft: #3a211e; --ocean: #9cc0d6; --ocean-soft: #1c2a33;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .6);
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font: 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent-soft); }

/* Yerleşim: solda sakin bir kenar çubuğu, sağda nefes alan içerik. */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; padding: 28px 18px; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 28px; background: var(--paper); }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 10px; }
.brand-mark { width: 26px; height: 26px; border-radius: 50%; background:
  radial-gradient(circle at 35% 35%, var(--accent) 0 38%, transparent 39%), conic-gradient(from 200deg, var(--sage), var(--ocean), var(--accent), var(--sage)); }
.brand-name { font: 500 19px/1 var(--serif); letter-spacing: .01em; }
.brand-name i { font-style: italic; color: var(--mute); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a, .nav span { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px;
  border-radius: 9px; color: var(--ink-2); font-size: 14px; }
.nav a:hover { background: var(--surface); color: var(--ink); }
.nav a.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); font-weight: 500; }
.nav span { color: var(--mute); cursor: default; }
.nav .soon { font-size: 11px; letter-spacing: .04em; color: var(--mute); border: 1px solid var(--line); border-radius: 99px; padding: 0 7px; }
.count { font-size: 12px; color: var(--accent); font-weight: 600; }
.side-foot { margin-top: auto; padding: 0 10px; font-size: 12px; color: var(--mute); line-height: 1.5; }
.side-foot b { display: block; color: var(--ink-2); font-weight: 500; font-size: 13px; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--sage); margin-right: 6px; vertical-align: 1px; }
.dot.live { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.main { padding: 44px clamp(20px, 5vw, 64px) 96px; max-width: 1180px; width: 100%; }
.eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
h1 { font: 400 clamp(30px, 4vw, 44px)/1.1 var(--serif); letter-spacing: -.01em; margin: 6px 0 10px; }
h1 em { font-style: italic; color: var(--accent); }
h2 { font: 500 22px/1.2 var(--serif); margin: 0; }
h3 { font: 600 14px/1.3 var(--sans); margin: 0; }
.lede { color: var(--ink-2); max-width: 62ch; margin: 0; }
.muted { color: var(--mute); font-size: 13px; }
.section { margin-top: 44px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }

/* Proje kartları: üretken kapak + sakin bilgi satırı. */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; display: flex; flex-direction: column; }
.pcard:hover { transform: translateY(-2px); }
.pcard .cover { height: 138px; display: block; }
.pcard .cover svg { width: 100%; height: 100%; display: block; }
.pcard .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.pcard .title { font: 500 19px/1.25 var(--serif); }
.meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; color: var(--mute); font-size: 12.5px; }
.pcard.new { border-style: dashed; box-shadow: none; background: transparent; justify-content: center; min-height: 220px; }
.pcard.new summary { list-style: none; cursor: pointer; padding: 22px; text-align: center; color: var(--ink-2); }
.pcard.new summary::-webkit-details-marker { display: none; }
.plus { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center;
  margin: 0 auto 10px; font: 300 24px/1 var(--sans); color: var(--accent); }
.pcard.new[open] { border-style: solid; background: var(--surface); }
.pcard.new form { padding: 0 18px 18px; display: flex; flex-direction: column; gap: 10px; }

/* Proje başlığı */
.hero { position: relative; border-radius: calc(var(--r) + 4px); overflow: hidden; min-height: 210px;
  display: flex; align-items: flex-end; box-shadow: var(--shadow); }
.hero svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .veil { position: relative; width: 100%; padding: 26px 30px; color: #fff;
  background: linear-gradient(to top, rgba(18, 14, 10, .62), rgba(18, 14, 10, 0)); }
.hero h1 { color: #fff; margin: 4px 0 4px; }
.hero .eyebrow { color: rgba(255, 255, 255, .78); }
.hero p { margin: 0; color: rgba(255, 255, 255, .88); max-width: 70ch; }
.crumbs { font-size: 13px; color: var(--mute); margin-bottom: 14px; }
.crumbs a:hover { color: var(--ink); }

.tabs { display: flex; gap: 4px; margin: 22px 0 6px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 10px 14px; font-size: 14px; color: var(--mute); border-bottom: 2px solid transparent; white-space: nowrap; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); border-color: var(--accent); font-weight: 500; }
.tabs .n { font-size: 11px; color: var(--accent); margin-left: 4px; font-weight: 600; }

/* Yüzeyler */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--shadow); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.cols-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }

/* Çıktı kartı */
.out { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.out-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.out-title { font: 500 17px/1.3 var(--serif); word-break: break-word; }
.wave { display: flex; align-items: center; gap: 12px; min-width: 0; }
.play { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 0; background: var(--ink); color: var(--paper); cursor: pointer; display: grid; place-items: center; }
.play svg { width: 14px; height: 14px; }
.play.on { background: var(--accent); }
.wave-track { position: relative; flex: 1; min-width: 0; height: 44px; }
.wave-bars { width: 100%; height: 44px; display: block; pointer-events: none; }
.wave-seek { position: absolute; inset: 0; width: 100%; height: 44px; margin: 0; padding: 0;
  border: 0; appearance: none; -webkit-appearance: none; background: transparent; cursor: ew-resize; }
.wave-seek:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.wave-seek::-webkit-slider-runnable-track { height: 44px; background: transparent; }
.wave-seek::-webkit-slider-thumb { width: 2px; height: 44px; margin: 0; border: 0;
  appearance: none; -webkit-appearance: none; background: transparent; }
.wave-seek::-moz-range-track { height: 44px; border: 0; background: transparent; }
.wave-seek::-moz-range-thumb { width: 2px; height: 44px; border: 0; border-radius: 0; background: transparent; }
.wave-bars rect { fill: var(--line-2); transition: fill .1s; }
.wave-bars rect.p { fill: var(--accent); }
.wave-position { stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; pointer-events: none; }
.wave-time { flex: none; min-width: 76px; color: var(--mute); text-align: right;
  font: 500 11px/1 var(--sans); font-variant-numeric: tabular-nums; }
.doc { font: 15px/1.7 var(--serif); color: var(--ink-2); background: var(--paper); border-radius: 10px; padding: 14px 16px;
  max-height: 300px; overflow: auto; white-space: pre-wrap; word-break: break-word; margin: 0; }
.thumb { max-width: 100%; border-radius: 10px; display: block; }
video.thumb { max-height: 320px; background: #000; }
.provenance { font-size: 12px; color: var(--mute); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.provenance code { font: 11.5px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink-2); }

/* Durum rozetleri */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.b-aday { background: var(--ocean-soft); color: var(--ocean); }
.b-incelemede, .b-queued, .b-leased, .b-retry_wait { background: var(--amber-soft); color: var(--amber); }
.b-running, .b-persisting, .b-validating { background: var(--amber-soft); color: var(--amber); }
.b-running::before, .b-persisting::before, .b-validating::before, .b-leased::before { animation: pulse 1.2s infinite; }
.b-kabul, .b-succeeded { background: var(--sage-soft); color: var(--sage); }
.b-revizyon_istendi, .b-failed { background: var(--rose-soft); color: var(--rose); }
.b-arsiv, .b-cancelled { background: var(--paper); color: var(--mute); }

/* İnceleme eylemleri */
.review { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; border-top: 1px solid var(--line); padding-top: 12px; }
.review input[name=note] { flex: 1; min-width: 160px; }
.history { font-size: 12.5px; color: var(--mute); }
.history summary { cursor: pointer; }
.history ol { margin: 8px 0 0; padding-left: 18px; }

/* İş satırları */
.jobs { display: flex; flex-direction: column; }
.job { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 14px 4px; border-bottom: 1px solid var(--line); align-items: center; }
.job:last-child { border-bottom: 0; }
.job .what { font-weight: 500; }
.job .err { grid-column: 1 / -1; font-size: 12.5px; color: var(--rose); }
.job .actions { display: flex; gap: 8px; align-items: center; }
.job-request-details { grid-column: 1 / -1; margin-top: 7px; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--raised) 72%, transparent); overflow: hidden; }
.job-request-details > summary { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 10px 13px; color: var(--ink-2); cursor: pointer; list-style: none; user-select: none; }
.job-request-details > summary::-webkit-details-marker { display: none; }
.job-request-details > summary::before { content: "+"; display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid var(--line-2); border-radius: 50%; color: var(--accent); font-size: 15px; line-height: 1; }
.job-request-details[open] > summary::before { content: "−"; }
.job-request-details > summary span { font-size: 12.5px; font-weight: 650; }
.job-request-details > summary small { margin-left: auto; color: var(--mute); font-size: 11px; font-weight: 400; }
.job-request-details > summary:hover { background: var(--paper); }
.job-request-details > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.job-request-body { padding: 0 13px 14px; border-top: 1px solid var(--line); }
.job-request-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 8px; padding: 13px 0; }
.job-request-fact { min-width: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.job-request-fact span, .job-request-section h4 { display: block; margin: 0 0 4px; color: var(--mute); font-size: 10px; font-weight: 650; letter-spacing: .055em; text-transform: uppercase; }
.job-request-fact b { display: block; overflow-wrap: anywhere; color: var(--ink); font-size: 12.5px; font-weight: 600; }
.job-request-section { padding: 12px 0; border-top: 1px solid var(--line); }
.job-request-copy { max-height: 260px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-2); font: 13px/1.65 var(--sans); }
.job-request-lyrics .job-request-copy { max-height: 420px; font-family: var(--serif); font-size: 14px; }
.job-request-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.job-request-chip { padding: 5px 9px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); background: var(--paper); font-size: 11.5px; }
.job-request-context, .job-request-empty { margin: 12px 0 0; color: var(--mute); font-size: 11.5px; line-height: 1.55; }

@media (max-width: 680px) {
  .job { grid-template-columns: 1fr; }
  .job .actions { justify-content: flex-start; flex-wrap: wrap; }
  .job-request-details { grid-column: 1; }
  .job-request-details > summary small { display: none; }
}

/* Karakter satırları (üst düzey kütüphane) */
.charrow { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 12px 4px; border-bottom: 1px solid var(--line); align-items: center; color: inherit; text-decoration: none; }
.charrow:last-child { border-bottom: 0; }
.charrow:hover .title { color: var(--accent); }
.charrow .title { font-weight: 500; }
.charrow .meta { display: flex; gap: 8px; font-size: 12.5px; color: var(--mute); align-items: center; flex-wrap: wrap; }

/* Formlar */
input, select, textarea, button { font: inherit; color: inherit; }
input, select, textarea { background: var(--raised); border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 12px; outline: none; width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.short { min-height: 80px; }
textarea { min-height: 140px; resize: vertical; font: 15px/1.7 var(--serif); }
label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--mute); }
.row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 120px; }
.row > button, .row > .btn { flex: none; }
.btn, button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent;
  border-radius: 99px; padding: 9px 18px; font-size: 14px; font-weight: 500; cursor: pointer; background: var(--accent); color: var(--accent-ink); transition: filter .15s, background .15s; }
.btn:hover, button:hover { filter: brightness(1.06); }
.btn.ghost, button.ghost { background: transparent; color: var(--ink-2); border-color: var(--line-2); }
.btn.ghost:hover, button.ghost:hover { background: var(--paper); filter: none; }
.btn.small, button.small { padding: 6px 13px; font-size: 13px; }
button.ok { background: var(--sage); color: #fff; }
button.warn { background: transparent; color: var(--rose); border-color: var(--rose-soft); }
.drop { border: 1.5px dashed var(--line-2); border-radius: var(--r); padding: 20px; text-align: center; color: var(--mute); }
.drop input[type=file] { border: 0; background: transparent; padding: 8px 0; }

/* Yardımcılar */
.empty { text-align: center; padding: 38px 20px; color: var(--mute); border: 1px dashed var(--line-2); border-radius: var(--r); }
.empty h3 { font: 500 18px var(--serif); color: var(--ink-2); margin-bottom: 4px; }
.kanban { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 16px; overflow-x: auto; }
.kanban .col { display: flex; flex-direction: column; gap: 12px; }
.kanban .col-head { display: flex; justify-content: space-between; font-size: 13px; color: var(--mute); padding: 0 4px; }
.task-kanban { display: grid; grid-template-columns: repeat(4, minmax(230px, 1fr)); gap: 16px; overflow-x: auto; }
.task-kanban .col { display: flex; flex-direction: column; gap: 10px; }
.task-kanban .col-head { display: flex; justify-content: space-between; color: var(--mute); font-size: 13px; padding: 0 4px; }
.task-card { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--line-2);
  border-radius: var(--r); padding: 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.task-card.priority-yuksek { border-top-color: var(--amber); }
.task-card.priority-acil { border-top-color: var(--rose); }
.task-card.priority-dusuk { border-top-color: var(--sage); }
.task-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.task-top h3 { font-size: 14px; line-height: 1.45; }
.task-card p { margin: 0; color: var(--ink-2); font-size: 13px; white-space: pre-wrap; }
.task-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--mute); font-size: 11.5px; }
.task-project { color: var(--accent); font-size: 12px; font-weight: 600; }
.task-actions { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 9px; border-top: 1px solid var(--line); }
.task-actions button { flex: 1; padding-inline: 9px; white-space: nowrap; }
.task-new summary { cursor: pointer; font-weight: 600; color: var(--accent); list-style: none; }
.task-new summary::-webkit-details-marker { display: none; }
.task-new[open] summary { margin-bottom: 14px; }
.b-yapilacak { background: var(--ocean-soft); color: var(--ocean); }
.b-yapiliyor, .b-incelemede { background: var(--amber-soft); color: var(--amber); }
.b-tamamlandi { background: var(--sage-soft); color: var(--sage); }
.notice { padding: 14px 18px; border-radius: var(--r); background: var(--rose-soft); color: var(--rose); }
.honest { font-size: 12px; color: var(--mute); border-left: 2px solid var(--line-2); padding-left: 10px; }
.strip { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; }
.strip .out { min-width: 300px; max-width: 340px; }

/* Giriş yüzeyi */
body.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; position: relative; overflow: hidden; }
.auth-art { position: fixed; inset: 0; opacity: .55; }
.auth-art svg { width: 100%; height: 100%; }
@media (prefers-color-scheme: dark) { .auth-art { opacity: .28; } }
.auth-card { position: relative; width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 22px; padding: 34px 32px 26px; box-shadow: 0 30px 80px -30px rgba(30, 20, 10, .35); display: flex; flex-direction: column; gap: 14px; }
.auth-card .brand { padding: 0; margin-bottom: 10px; }
.auth-card h1 { font-size: 34px; margin: 0; }
.auth-card form.stack { margin-top: 6px; }
.auth-card button { width: 100%; padding: 11px 18px; }
.auth-card .resend { display: flex; gap: 12px; align-items: center; }
.auth-card .resend button { width: auto; }
.otp { font: 600 28px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .4em; text-align: center; padding: 14px; }
.auth-foot { margin: 8px 0 0; font: italic 14px var(--serif); color: var(--mute); text-align: center; }
.signout { margin-top: 10px; }

@media (max-width: 880px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; align-items: center; padding: 14px 16px; gap: 14px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .nav { flex-direction: row; }
  .nav span { display: none; }
  .side-foot { display: none; }
  .main { padding: 26px 16px 80px; }
  .cols { grid-template-columns: 1fr; }
  .kanban { grid-template-columns: repeat(4, 78vw); }
  .task-kanban { grid-template-columns: repeat(4, 82vw); }
  .hero .veil { padding: 20px; }
}

/* Var edilme aşamaları ve ekip sayfası (v0.3) */
.b-bekliyor { background: var(--ocean-soft); color: var(--ocean); }
.b-devam { background: var(--amber-soft); color: var(--amber); }
.b-tamam { background: var(--sage-soft); color: var(--sage); }
.b-owner { background: var(--amber-soft); color: var(--amber); }
.stages { gap: 12px; }
.stage { border: 1px solid var(--line-2); border-radius: var(--r); padding: 16px 18px; background: var(--raised); }
.stage.s-tamam { opacity: .72; }
.stage.s-devam { border-color: var(--amber-soft); }
.stage-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.stage-top h3 { font: 500 17px var(--serif); }
.reqs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 4px; font-size: 13px; }
.reqs .tick { display: inline-block; width: 16px; color: var(--sage); }
.reqs li.ok { color: var(--ink-2); }
.reqs li.miss { color: var(--mute); }
.stage .form { margin-top: 8px; }

/* Zaman akışı ve kuruluş sihirbazı (v0.4) */
.tl { gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips .form { display: inline-flex; }
.chip { border: 1px solid var(--line-2); background: var(--raised); color: var(--ink-2); border-radius: 99px;
  padding: 5px 12px; font-size: 12.5px; cursor: pointer; }
.chip:hover { border-color: var(--ocean); color: var(--ocean); }
fieldset.needs { border: 1px solid var(--line-2); border-radius: var(--r); padding: 10px 14px; display: grid;
  gap: 8px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
fieldset.needs legend { font-size: 13px; color: var(--mute); padding: 0 6px; }
label.check { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--ink-2); }
.actions-inline { display: flex; gap: 6px; margin-top: 8px; }
.actions-inline .form { display: inline-flex; }

/* GPU/model filo görünümü: gözlem ile beyanı aynı karta sıkıştırmadan gösterir. */
.fleet-title{display:flex;justify-content:space-between;gap:24px;align-items:flex-start}
.fleet-fresh{flex:none;text-align:right;color:var(--mute);font-size:12px;line-height:1.45}
.fleet-fresh b{color:var(--ink-2);font-weight:500}
.fleet-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:28px}
.fleet-kpi{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:16px 18px;box-shadow:var(--shadow);min-height:118px;display:flex;flex-direction:column;gap:5px}
.fleet-kpi>span{color:var(--mute);font-size:11px;letter-spacing:.08em;text-transform:uppercase}
.fleet-kpi b{font:500 25px/1.15 var(--serif);color:var(--ink);overflow-wrap:anywhere}
.fleet-kpi small{color:var(--mute);line-height:1.4}
.fleet-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start}
.fleet-node{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:18px;box-shadow:var(--shadow);min-width:0}
.fleet-node-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.fleet-node-head h2{margin-top:3px;font-size:20px}.fleet-node-head .eyebrow{margin:0}
.fleet-metrics{display:grid;gap:0;margin-top:16px;border-top:1px solid var(--line)}
.fleet-metric{display:grid;grid-template-columns:72px 1fr;gap:10px;padding:9px 0;border-bottom:1px solid var(--line)}
.fleet-metric span{color:var(--mute);font-size:12px}.fleet-metric b{color:var(--ink-2);font-size:12px;font-weight:500;overflow-wrap:anywhere}
.fleet-services{display:flex;flex-direction:column;gap:7px;margin-top:14px}
.fleet-service{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:9px 10px;background:var(--paper);border-radius:9px;border:1px solid var(--line)}
.fleet-service div{min-width:0;display:flex;flex-direction:column}.fleet-service b{font-size:12.5px;font-weight:600}
.fleet-service small{color:var(--mute);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:230px}
.fleet-service>span{color:var(--sage);font-size:11px;text-transform:uppercase;letter-spacing:.05em}
.fleet-service.declared>span,.fleet-service.cached>span{color:var(--amber)}
.fleet-empty{color:var(--mute);font-size:12.5px;padding:12px;border:1px dashed var(--line-2);border-radius:9px}
.fleet-verify{color:var(--mute);font:11px ui-monospace,SFMono-Regular,Menlo,monospace;margin:12px 0 0;overflow-wrap:anywhere}
.fleet-alert{display:flex;flex-direction:column;gap:3px;padding:14px 16px;border:1px solid var(--line);border-radius:var(--r);background:var(--surface)}
.fleet-alert b{font-size:13px}.fleet-alert span{color:var(--ink-2);font-size:12.5px}
.fleet-alert.warning{border-left:3px solid var(--amber)}.fleet-alert.unknown{border-left:3px solid var(--mute)}.fleet-alert.info{border-left:3px solid var(--ocean)}
@media(max-width:1050px){.fleet-kpis{grid-template-columns:repeat(2,1fr)}.fleet-grid{grid-template-columns:1fr}}
@media(max-width:620px){.fleet-title{flex-direction:column}.fleet-fresh{text-align:left}.fleet-kpis{grid-template-columns:1fr}}

/* Karakter Stüdyosu — sinematik yaratım alanı; diğer ekip ekranlarından bilinçli olarak ayrılır. */
body.studio-theme {
  --studio-bg: #11100f; --studio-surface: #181715; --studio-raised: #201e1b;
  --studio-ink: #f4eee5; --studio-ink-2: #c9c0b5; --studio-mute: #8f877d;
  --studio-line: #34302b; --studio-line-2: #4a433b; --studio-accent: #e18a5f;
  --studio-accent-deep: #b95d38; --studio-sage: #91aa96;
  background: var(--studio-bg); color: var(--studio-ink); min-width: 320px;
}
.studio-sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important;
  margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important; border: 0 !important; }
.studio-theme .material-symbols-rounded { font-size: 20px; font-variation-settings: "FILL" 0, "wght" 350, "GRAD" 0, "opsz" 24; line-height: 1; }
.studio-shell { display: grid; grid-template-columns: 205px minmax(0, 1fr); min-height: 100vh; }
.studio-rail { position: sticky; top: 0; height: 100vh; overflow: hidden; border-right: 1px solid var(--studio-line);
  background: #151412; display: flex; flex-direction: column; z-index: 5; }
.studio-brand { position: relative; z-index: 2; padding: 28px 24px 6px; font: 500 23px/1 var(--serif); color: var(--studio-ink); }
.studio-brand i { color: var(--studio-accent); font-style: italic; }
.studio-motto { position: relative; z-index: 2; margin: 10px 24px 26px; color: #958a7f; font-size: 10px; line-height: 1.55;
  letter-spacing: .18em; text-transform: uppercase; }
.studio-nav { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 4px; }
.studio-nav a { display: flex; align-items: center; gap: 13px; min-height: 54px; padding: 0 22px; color: #aaa196;
  border-left: 3px solid transparent; font-size: 13px; transition: color .16s, background .16s, border-color .16s; }
.studio-nav a:hover { color: var(--studio-ink); background: rgba(255,255,255,.035); }
.studio-nav a.on { color: var(--studio-ink); background: rgba(225,138,95,.08); border-color: var(--studio-accent); }
.studio-nav a.on .material-symbols-rounded { color: var(--studio-accent); font-variation-settings: "FILL" 1, "wght" 350, "GRAD" 0, "opsz" 24; }
.studio-rail-art { position: absolute; inset: 45% 0 0; background: linear-gradient(to bottom, #151412 0, transparent 18%),
  url('/static/character-studio/studio-rail.png') center bottom / cover no-repeat; opacity: .74; pointer-events: none; }
.studio-user { position: relative; z-index: 2; margin-top: auto; padding: 18px 24px 26px; color: var(--studio-ink-2);
  background: linear-gradient(to top, #151412 70%, transparent); display: flex; flex-direction: column; gap: 3px; }
.studio-user span { font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.studio-user small { color: var(--studio-mute); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.studio-main { width: 100%; min-width: 0; padding: 30px clamp(24px, 3vw, 48px) 72px; }
.studio-main h1 { color: var(--studio-ink); font-size: clamp(36px, 3.4vw, 52px); margin: 0; }
.studio-main h1 em { color: var(--studio-accent); }
.studio-main h2 { color: var(--studio-ink); }
.studio-main p { color: var(--studio-ink-2); }
.studio-kicker { margin: 0 0 7px !important; color: var(--studio-accent) !important; font-size: 10px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; }
.studio-primary, .studio-secondary { min-height: 52px; border-radius: 8px; border: 1px solid transparent; padding: 0 22px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; letter-spacing: .005em; }
.studio-primary { background: var(--studio-accent); color: #21120d; box-shadow: 0 14px 34px -22px rgba(225,138,95,.9); }
.studio-primary:hover { background: #ef986e; filter: none; }
.studio-primary:disabled, .studio-secondary:disabled { cursor: not-allowed; opacity: .66; box-shadow: none; }
.studio-primary:disabled:hover { background: var(--studio-accent); }
.studio-primary.compact, .studio-secondary.compact { min-height: 40px; padding: 0 16px; font-size: 13px; }
.studio-secondary { color: var(--studio-ink); background: transparent; border-color: var(--studio-line-2); }
.studio-secondary:hover { background: rgba(255,255,255,.04); filter: none; }
.studio-secondary:disabled:hover { background: transparent; }
.character-create-form[aria-busy="true"] > .studio-primary:disabled,
.character-ai-form[aria-busy="true"] button:disabled { cursor: wait; }

/* Kütüphane */
.studio-library-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; padding-bottom: 28px; }
.studio-library-head p:last-child { margin: 7px 0 0; max-width: 62ch; }
.character-toolbar { position: sticky; top: 0; z-index: 4; display: flex; justify-content: space-between; gap: 18px;
  padding: 14px 0 18px; background: rgba(17,16,15,.96); border-top: 1px solid var(--studio-line); }
.character-search { position: relative; width: min(310px, 100%); color: var(--studio-mute); }
.character-search .material-symbols-rounded { position: absolute; left: 13px; top: 11px; }
.studio-theme .character-search input { height: 42px; padding-left: 42px; color: var(--studio-ink); background: var(--studio-surface);
  border-color: var(--studio-line); border-radius: 8px; }
.studio-theme .character-search input::placeholder { color: var(--studio-mute); }
.scope-filters { display: flex; align-items: center; gap: 4px; overflow-x: auto; }
.scope-filters button { min-height: 39px; padding: 0 14px; color: var(--studio-mute); background: transparent; border: 0;
  border-radius: 7px; white-space: nowrap; font-size: 12px; }
.scope-filters button:hover, .scope-filters button.on { color: var(--studio-ink); background: var(--studio-raised); filter: none; }
.character-library { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; padding-top: 10px; }
.character-card { overflow: hidden; border: 1px solid var(--studio-line); border-radius: 11px; background: var(--studio-surface);
  transition: transform .18s, border-color .18s; }
.character-card:hover { transform: translateY(-3px); border-color: #66584c; }
.character-card-art { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #0c0c0b; }
/* Karakter kimliği taşıyan görsel, kart oranından bağımsız olarak daima eksiksiz görünür. */
.character-card-art > img { width: 100%; height: 100%; display: block; object-fit: contain; object-position: center; }
.character-empty-visual { height: 100%; display: grid; place-content: center; justify-items: center; gap: 9px; color: var(--studio-mute); }
.character-empty-visual .material-symbols-rounded { font-size: 54px; }
.character-empty-visual span { font-size: 12px; }
.character-scope { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 9px; color: #f8f1e8; background: rgba(16,15,14,.78); border: 1px solid rgba(255,255,255,.12);
  border-radius: 99px; backdrop-filter: blur(10px); font-size: 10px; }
.character-scope .material-symbols-rounded { font-size: 14px; }
.character-card-body { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 16px; }
.character-card-body > span:first-child { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.character-card-body b { color: var(--studio-ink); font: 500 18px/1.25 var(--serif); overflow: hidden; text-overflow: ellipsis; }
.character-card-body small { color: var(--studio-mute); font-size: 11px; }
.character-card-body .character-project-state { display: inline-flex; align-items: center; gap: 5px; margin-top: 5px; color: #cfb487; }
.character-card-body .character-project-state .material-symbols-outlined { font-size: 14px; }
.character-card-body .character-project-state.ready { color: #8fbf96; }
.character-arrow { color: var(--studio-mute); }
.character-no-results { text-align: center; margin: 80px 0 0 !important; }
.studio-empty-state { grid-column: 1 / -1; min-height: 420px; border: 1px dashed var(--studio-line-2); border-radius: 12px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 36px; }
.studio-empty-state.full { min-height: calc(100vh - 104px); }
.studio-empty-state > .material-symbols-rounded { color: var(--studio-accent); font-size: 54px; margin-bottom: 16px; }
.studio-empty-state h2, .studio-empty-state h1 { margin: 0 0 8px; }
.studio-empty-state p { max-width: 48ch; margin: 0 0 24px; }

/* Oluşturma ekranı */
.character-studio-head { display: flex; align-items: baseline; gap: 18px 26px; flex-wrap: wrap; padding: 0 0 22px; }
.character-studio-head .studio-kicker { flex-basis: 100%; margin-bottom: -8px !important; }
.character-studio-head h1 { font-size: clamp(34px, 3vw, 46px); }
.character-studio-head > p:last-child { margin: 0; font-size: 13px; }
.character-create-layout { display: grid; grid-template-columns: minmax(480px, .96fr) minmax(420px, 1.04fr); gap: 30px;
  border-top: 1px solid var(--studio-line); padding-top: 24px; align-items: start; }
.character-create-layout > section { min-width: 0; padding-right: 2px; }
.character-create-form { display: flex; flex-direction: column; gap: 21px; max-width: 650px; }
.studio-form-error { display: grid; grid-template-columns: auto 1fr; gap: 11px; padding: 13px 14px;
  color: #f4d8cb; border: 1px solid rgba(225,138,95,.55); border-radius: 8px; background: rgba(185,93,56,.13); }
.studio-form-error > .material-symbols-rounded { color: var(--studio-accent); margin-top: 1px; }
.studio-form-error b { color: var(--studio-ink); font-size: 12px; }
.studio-form-error p { margin: 3px 0 0; color: #d8b9aa; font-size: 11px; line-height: 1.5; }
.studio-progress { display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr auto; align-items: center; gap: 9px;
  color: var(--studio-mute); margin-bottom: 1px; }
.studio-progress span { display: flex; align-items: center; gap: 7px; font-size: 11px; white-space: nowrap; }
.studio-progress b { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--studio-line-2);
  border-radius: 50%; font-size: 10px; font-weight: 500; }
.studio-progress i { height: 1px; background: var(--studio-line); }
.studio-progress span.on { color: var(--studio-accent); }
.studio-progress span.on b { color: #20110c; border-color: var(--studio-accent); background: var(--studio-accent); }
.studio-field { position: relative; color: var(--studio-ink-2); font-size: 12px; gap: 8px; }
.studio-field > span, .studio-fieldset legend { color: var(--studio-ink); font-weight: 500; font-size: 12px; }
.studio-theme .studio-field input, .studio-theme .studio-field textarea, .studio-theme .studio-advanced select {
  color: var(--studio-ink); background: var(--studio-surface); border-color: var(--studio-line-2); border-radius: 8px; }
.studio-theme .studio-field input { height: 48px; font-size: 18px; }
.studio-theme .studio-field textarea { min-height: 116px; font: 14px/1.65 var(--sans); }
.studio-theme .studio-field input::placeholder, .studio-theme .studio-field textarea::placeholder { color: var(--studio-mute); opacity: 1; }
.studio-theme .studio-field input:focus, .studio-theme .studio-field textarea:focus, .studio-theme .studio-advanced select:focus {
  border-color: var(--studio-accent); box-shadow: 0 0 0 3px rgba(225,138,95,.12); }
.studio-field > small { position: absolute; right: 10px; bottom: 7px; color: var(--studio-mute); font-size: 11px; }
.studio-field > small b { font-weight: 400; }
.studio-fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.studio-fieldset legend { margin-bottom: 9px; }
.studio-fieldset legend small { color: var(--studio-mute); font-weight: 400; }
.style-choices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.style-choice input, .scope-choices input, .project-choice input { position: absolute; opacity: 0; pointer-events: none; }
.style-choice, .scope-choices label, .project-choice { position: relative; }
.style-choice input:focus-visible + span, .scope-choices input:focus-visible + span,
.project-choice input:focus-visible + span { outline: 2px solid var(--studio-accent); outline-offset: 2px; }
.style-choice > span { height: 84px; display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 10px 12px;
  border: 1px solid var(--studio-line); border-radius: 8px; background: var(--studio-surface); cursor: pointer; }
.style-choice .material-symbols-rounded { color: var(--studio-mute); margin-bottom: 2px; }
.style-choice b { color: var(--studio-ink-2); font-size: 12px; font-weight: 500; }
.style-choice small { color: var(--studio-mute); font-size: 10px; line-height: 1.35; }
.style-choice input:checked + span { border-color: var(--studio-accent); background: rgba(225,138,95,.06); }
.style-choice input:checked + span .material-symbols-rounded, .style-choice input:checked + span b { color: var(--studio-accent); }
.style-inline-preview { display: none; position: relative; width: min(560px, 100%); aspect-ratio: 16 / 9; overflow: hidden;
  border: 1px solid var(--studio-line); border-radius: 9px; background: #090909; }
.style-inline-preview img { width: 100%; height: 100%; display: block; object-fit: contain; object-position: center; }
.style-inline-preview span { position: absolute; left: 10px; bottom: 10px; padding: 5px 8px; color: #fff;
  border-radius: 99px; background: rgba(10,9,8,.76); font-size: 10px; backdrop-filter: blur(8px); }
.style-inline-preview b { font-weight: 600; }
.scope-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.scope-choices label > span { min-height: 74px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto;
  gap: 3px 8px; padding: 12px; border: 1px solid var(--studio-line); border-radius: 8px; background: var(--studio-surface); cursor: pointer; }
.scope-choices .material-symbols-rounded { grid-row: 1 / 3; align-self: center; color: var(--studio-mute); }
.scope-choices b { color: var(--studio-ink-2); font-size: 12px; font-weight: 500; }
.scope-choices small { color: var(--studio-mute); font-size: 10px; line-height: 1.35; }
.scope-choices input:checked + span { border-color: var(--studio-accent); background: rgba(225,138,95,.06); }
.scope-choices input:checked + span .material-symbols-rounded, .scope-choices input:checked + span b { color: var(--studio-accent); }
.project-choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; margin-top: 9px; padding: 10px;
  border: 1px solid var(--studio-line); border-radius: 8px; }
.studio-theme [hidden] { display: none !important; }
.project-choice span { min-height: 36px; display: flex; align-items: center; gap: 7px; padding: 0 9px; border-radius: 6px;
  color: var(--studio-mute); background: rgba(255,255,255,.025); cursor: pointer; font-size: 11px; }
.project-choice .material-symbols-rounded { font-size: 16px; }
.project-choice input:checked + span { color: var(--studio-ink); background: rgba(225,138,95,.12); }
.studio-upload { position: relative; display: block; min-height: 112px; border: 1px dashed var(--studio-line-2); border-radius: 9px;
  background: var(--studio-surface); cursor: pointer; outline: none; transition: border-color .16s, background .16s; }
.studio-upload:hover, .studio-upload:focus-within, .studio-upload.dragging { border-color: var(--studio-accent); background: rgba(225,138,95,.035); }
.studio-upload:focus-within { box-shadow: 0 0 0 3px rgba(225,138,95,.15); }
.studio-upload > input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 2; }
.upload-empty { min-height: 112px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--studio-mute); }
.upload-empty .material-symbols-rounded { margin-bottom: 3px; color: var(--studio-accent); font-size: 27px; }
.upload-empty b { color: var(--studio-ink-2); font-size: 12px; font-weight: 500; }
.upload-empty span { font-size: 11px; }
.upload-previews { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 10px; }
.upload-preview { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 7px; background: #090909; }
/* Kullanıcının kimlik kaynağı olarak verdiği dosya küçük önizlemede dahi kırpılmaz. */
.upload-preview img, .upload-preview video { width: 100%; height: 100%; display: block; object-fit: contain; background: #090909; }
.upload-preview span { position: absolute; right: 5px; bottom: 5px; padding: 4px 6px; border-radius: 99px; color: #fff;
  background: rgba(0,0,0,.7); font-size: 10px; }
.upload-preview button { position: absolute; right: 5px; top: 5px; z-index: 2; width: 24px; height: 24px; min-height: 0; padding: 0;
  border-radius: 50%; color: #fff; background: rgba(0,0,0,.72); border-color: rgba(255,255,255,.18); }
.upload-preview button .material-symbols-rounded { font-size: 15px; }
.character-create-form > .studio-primary:disabled { cursor: wait; opacity: .72; }
.studio-help { margin: 7px 0 0 !important; color: var(--studio-mute) !important; font-size: 11px; line-height: 1.5; }
.studio-advanced { color: var(--studio-mute); font-size: 11px; }
.studio-advanced summary { cursor: pointer; }
.advanced-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding-top: 10px; }
.advanced-grid label { color: var(--studio-mute); }
.studio-advanced select { height: 40px; font-size: 12px; }
.character-create-form > .studio-primary { width: 100%; }
.character-create-form > .studio-primary .material-symbols-rounded:last-child { margin-left: auto; }
.character-preview { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.preview-hero { position: relative; aspect-ratio: 16 / 9; overflow: hidden; isolation: isolate; border: 1px solid var(--studio-line);
  border-radius: 11px; background: #0b0b0a; }
.preview-hero-backdrop { position: absolute; z-index: 0; inset: -24px; width: calc(100% + 48px); height: calc(100% + 48px);
  display: block; object-fit: cover; filter: blur(24px) brightness(.48) saturate(.72); opacity: .7; transform: scale(1.03); }
/* Asıl stil örneği 16:9 alanda oranı korunarak bütünüyle gösterilir; dekor katmanı dışında kırpma yoktur. */
.preview-hero-media { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; display: block;
  object-fit: contain; object-position: center; }
.preview-hero::after { content: ""; position: absolute; z-index: 2; inset: 55% 0 0;
  background: linear-gradient(to top, rgba(10,9,8,.82), transparent); pointer-events: none; }
.preview-copy { position: absolute; z-index: 3; left: 30px; right: 24px; bottom: 24px; display: flex; flex-direction: column;
  max-width: min(62%, 520px); }
.preview-copy small { color: rgba(255,255,255,.72); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }
.preview-copy strong { max-width: 100%; overflow: hidden; color: #fff; font: italic clamp(28px, 3vw, 42px)/1.08 var(--serif);
  font-weight: 400; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.preview-copy span { color: rgba(255,255,255,.8); font-size: 11px; letter-spacing: .11em; text-transform: uppercase; }
.preview-copy span b { color: #fff; font-weight: 600; }
.preview-state { min-height: 62px; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--studio-line);
  border-radius: 8px; background: var(--studio-surface); }
.preview-state > .material-symbols-rounded { width: 34px; height: 34px; display: grid; place-items: center; color: var(--studio-accent);
  border: 1px solid var(--studio-line-2); border-radius: 50%; }
.preview-state div { display: flex; flex-direction: column; }
.preview-state b { color: var(--studio-ink-2); font-size: 11px; }
.preview-state span { color: var(--studio-mute); font-size: 11px; }
.preview-filmstrip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.preview-style-sample { position: relative; min-width: 0; padding: 0; overflow: hidden; cursor: pointer; color: #fff;
  border: 1px solid var(--studio-line); border-radius: 7px; background: #090909; transition: border-color .16s, transform .16s; }
.preview-style-sample:hover { border-color: #66584c; transform: translateY(-1px); }
.preview-style-sample:focus-visible { outline: 2px solid var(--studio-accent); outline-offset: 2px; }
.preview-style-sample.on { border-color: var(--studio-accent); box-shadow: 0 0 0 1px rgba(225,138,95,.25); }
.preview-style-sample img { width: 100%; aspect-ratio: 16 / 9; display: block; object-fit: contain; object-position: center;
  background: #090909; filter: saturate(.86); }
.preview-style-sample span { position: absolute; left: 6px; bottom: 6px; padding: 3px 6px; border-radius: 99px;
  background: rgba(10,9,8,.78); font-size: 9px; line-height: 1.2; backdrop-filter: blur(8px); }

/* Karakter ayrıntısı ve aday seçimi */
.character-detail-page { width: 100%; max-width: 1440px; margin-inline: auto; }
.character-detail-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.character-detail-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.studio-back { display: inline-flex; align-items: center; gap: 7px; color: var(--studio-mute); font-size: 12px; }
.studio-back:hover { color: var(--studio-ink); }
.character-scope-pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; color: var(--studio-ink-2);
  border: 1px solid var(--studio-line); border-radius: 99px; font-size: 10px; }
.character-scope-pill .material-symbols-rounded { font-size: 15px; }
.character-detail-hero { --detail-stage-height: clamp(520px, 42vw, 640px); display: grid;
  grid-template-columns: minmax(380px, 1.05fr) minmax(350px, .95fr); min-height: var(--detail-stage-height);
  border: 1px solid var(--studio-line); border-radius: 12px; overflow: hidden; background: var(--studio-surface); }
.detail-visual { position: relative; min-height: var(--detail-stage-height); overflow: hidden; isolation: isolate; background: #090909; }
.detail-visual { grid-column: 1; grid-row: 1; }
.detail-visual:not(.empty)::after { content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(9,9,9,.08), rgba(9,9,9,.24)); }
.detail-visual-backdrop { position: absolute; z-index: 0; inset: -32px; width: calc(100% + 64px); height: calc(100% + 64px);
  display: block; object-fit: cover; filter: blur(30px) saturate(.72) brightness(.42); opacity: .72; transform: scale(1.04); }
.detail-visual-media { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; padding: clamp(8px, 1vw, 16px);
  display: block; object-fit: contain; object-position: center; }
.detail-visual-label { position: absolute; z-index: 3; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 6px;
  max-width: calc(100% - 32px); padding: 7px 10px; color: #fff; border: 1px solid rgba(255,255,255,.16); border-radius: 99px;
  background: rgba(10,9,8,.76); backdrop-filter: blur(10px); font-size: 11px; line-height: 1.3; }
.detail-visual-label .material-symbols-rounded { flex: none; color: var(--studio-accent); font-size: 15px; }
.detail-visual-empty { height: 100%; min-height: var(--detail-stage-height); display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--studio-mute); }
.detail-visual-empty .material-symbols-rounded { font-size: 64px; }
.detail-copy { min-width: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(30px, 4vw, 58px); }
.detail-copy { grid-column: 2; grid-row: 1; }
.detail-copy h1 { max-width: 100%; margin-bottom: 14px; overflow-wrap: anywhere; }
.detail-copy > p:not(.studio-kicker) { margin: 0 0 22px; max-width: 48ch; white-space: pre-wrap; }
.detail-access { width: 100%; margin: -6px 0 20px; }
.detail-access > small { display: block; margin-bottom: 7px; color: var(--studio-mute); font-size: 11px; }
.detail-access > div { display: flex; flex-wrap: wrap; gap: 6px; }
.detail-access span { display: inline-flex; min-height: 28px; align-items: center; padding: 4px 9px; color: var(--studio-ink-2);
  max-width: 100%; overflow-wrap: anywhere; border: 1px solid var(--studio-line); border-radius: 99px;
  background: rgba(255,255,255,.025); font-size: 11px; }
.detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 28px; }
.detail-meta > span { padding: 6px 9px; color: var(--studio-mute); border: 1px solid var(--studio-line); border-radius: 99px; font-size: 11px; }
.character-job-warning { width: 100%; display: flex; align-items: flex-start; gap: 8px; margin: -12px 0 18px; padding: 10px 12px;
  color: #d8b9aa; border: 1px solid rgba(225,138,95,.34); border-radius: 8px; background: rgba(185,93,56,.08); font-size: 11px; line-height: 1.45; }
.character-job-warning .material-symbols-rounded { flex: none; color: var(--studio-accent); font-size: 17px; }
.generation-chip { display: inline-flex !important; align-items: center; gap: 5px; }
.generation-chip .material-symbols-rounded { font-size: 13px; }
.generation-chip.running .material-symbols-rounded, .generation-chip.leased .material-symbols-rounded,
.generation-chip.persisting .material-symbols-rounded, .generation-chip.validating .material-symbols-rounded { animation: studio-spin 1.2s linear infinite; }
@keyframes studio-spin { to { transform: rotate(360deg); } }
.character-detail-section { margin-top: 38px; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.section-title h2 { font: 500 24px/1.2 var(--serif); }
.section-title > span { color: var(--studio-mute); font-size: 11px; }
.candidate-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.candidate-card { overflow: hidden; border: 1px solid var(--studio-line); border-radius: 9px; background: var(--studio-surface); }
.candidate-card.selected { border-color: var(--studio-accent); }
/* Ana görünüm seçimi kompozisyon kararıdır; adayın tamamı görünür kalır. */
.candidate-card > img { width: 100%; aspect-ratio: 2 / 3; display: block; object-fit: contain; background: #090909; }
.candidate-card > div { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 11px; }
.candidate-card > div > span { color: var(--studio-mute); font-size: 11px; }
.candidate-card form { margin-left: auto; }
.candidate-card button { min-height: 36px !important; padding: 0 11px !important; font-size: 11px !important; }
.reference-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.reference-grid img, .reference-grid video { width: 100%; aspect-ratio: 1.25 / 1; display: block; object-fit: contain; object-position: center;
  border: 1px solid var(--studio-line);
  border-radius: 8px; background: #090909; }
.identity-ready { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid rgba(139,190,152,.28);
  border-radius: 99px; color: #a9cfb2 !important; background: rgba(100,157,113,.08); font-family: var(--sans); letter-spacing: .02em; }
.identity-ready .material-symbols-rounded { font-size: 15px; }
.identity-ready.source-reference { color: #e3b38e !important; border-color: rgba(225,138,95,.32); background: rgba(225,138,95,.08); }
.identity-ready.source-missing { color: var(--studio-mute) !important; border-color: var(--studio-line-2); background: rgba(255,255,255,.025); }
.character-model-studio { padding: clamp(20px, 3vw, 34px); border: 1px solid var(--studio-line); border-radius: 12px;
  background: radial-gradient(circle at 88% 0, rgba(225,138,95,.08), transparent 34%), var(--studio-surface); }
.model-form-error { margin-bottom: 14px; }
.character-model-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.model-tool-card { min-width: 0; padding: 18px; border: 1px solid var(--studio-line); border-radius: 10px;
  background: rgba(0,0,0,.16); }
.model-tool-card > div { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 16px; }
.model-tool-card > div > .material-symbols-rounded { display: grid; place-items: center; flex: 0 0 38px; height: 38px;
  color: var(--studio-accent); border: 1px solid var(--studio-line-2); border-radius: 9px; background: rgba(255,255,255,.025); }
.model-tool-card b, .model-tool-card small { display: block; }
.model-tool-card small { margin-top: 4px; color: var(--studio-mute); line-height: 1.45; }
.model-tool-card form { display: grid; gap: 12px; }
.model-tool-card label { display: grid; gap: 7px; color: var(--studio-ink-2); font-size: 11px; }
.model-tool-card textarea { width: 100%; min-height: 100px; resize: vertical; padding: 12px; color: var(--studio-ink);
  border: 1px solid var(--studio-line-2); border-radius: 8px; background: #0d0d0d; font: 13px/1.55 var(--sans); }
.model-tool-card textarea:focus { border-color: var(--studio-accent); outline: 2px solid rgba(225,138,95,.12); }
.video-production-controls { display: grid; gap: 12px; padding: 14px; border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px; background: linear-gradient(145deg, rgba(255,255,255,.025), rgba(0,0,0,.12)); }
.video-control-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.video-control-group legend { margin: 0 0 7px; color: var(--studio-mute); font-size: 10px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; }
.video-profile-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.model-tool-card .video-profile-choice,
.project-video-controls .video-profile-choice { display: block; min-width: 0; }
.video-profile-choice input, .video-pill-choices input { position: absolute; opacity: 0; pointer-events: none; }
.video-profile-choice > span { min-height: 70px; display: grid; grid-template-columns: 27px minmax(0, 1fr); gap: 9px;
  align-items: center; padding: 10px 11px; border: 1px solid var(--studio-line); border-radius: 8px;
  color: var(--studio-ink-2); background: rgba(8,8,8,.42); cursor: pointer; transition: border-color .16s, background .16s; }
.video-profile-choice > span > .material-symbols-rounded { color: var(--studio-mute); font-size: 21px; }
.video-profile-choice b { font-size: 11px; font-weight: 600; }
.video-profile-choice small { margin-top: 2px; font-size: 9px; line-height: 1.35; }
.video-profile-choice input:checked + span { border-color: var(--studio-accent); background: rgba(225,138,95,.09); }
.video-profile-choice input:checked + span > .material-symbols-rounded,
.video-profile-choice input:checked + span b { color: var(--studio-accent); }
.video-profile-choice input:disabled + span { cursor: not-allowed; opacity: .42; background: rgba(255,255,255,.012); }
.video-profile-choice input:focus-visible + span, .video-pill-choices input:focus-visible + span {
  outline: 2px solid var(--studio-accent); outline-offset: 2px; }
.video-pill-choices { display: grid; gap: 6px; }
.video-duration-choices { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.video-resolution-choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.video-aspect-choices, .video-audio-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.edit-framing-control { padding: 12px; border: 1px solid rgba(255,255,255,.06); border-radius: 10px;
  background: linear-gradient(145deg, rgba(255,255,255,.025), rgba(0,0,0,.12)); }
.edit-framing-choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.model-tool-card .video-pill-choices label,
.project-video-controls .video-pill-choices label { display: block; min-width: 0; }
.video-pill-choices label > span { min-height: 48px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 1px; padding: 6px; border: 1px solid var(--studio-line); border-radius: 7px;
  color: var(--studio-ink-2); background: rgba(8,8,8,.42); cursor: pointer; transition: border-color .16s, background .16s; }
.video-pill-choices b { font-size: 12px; font-weight: 600; }
.video-pill-choices small { margin: 0; color: var(--studio-mute); font-size: 8px; line-height: 1.3; text-align: center; }
.video-pill-choices input:checked + span { border-color: var(--studio-accent); color: var(--studio-accent);
  background: rgba(225,138,95,.09); }
.video-pill-choices input:disabled + span { cursor: not-allowed; opacity: .38; background: rgba(255,255,255,.012); }
.video-quality-note { margin: 6px 0 0 !important; color: var(--studio-mute) !important; font-size: 9px; line-height: 1.4; }
.model-tool-card button { width: 100%; }
.character-model-runs { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--studio-line); }
.character-model-runs h3 { margin-bottom: 10px; color: var(--studio-mute); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.character-model-run { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 320px); gap: 14px; align-items: center;
  padding: 11px 0; border-top: 1px solid rgba(255,255,255,.045); }
.character-model-run:first-of-type { border-top: 0; }
.character-model-run > div { display: flex; align-items: center; gap: 10px; min-width: 0; }
.character-model-run b, .character-model-run small { display: block; }
.character-model-run small { margin-top: 3px; color: var(--studio-mute); }
.model-run-icon { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border: 1px solid var(--studio-line);
  border-radius: 50%; color: var(--studio-accent); }
.model-run-icon .material-symbols-rounded { font-size: 17px; }
.character-model-run video, .model-run-output { width: 100%; max-height: 190px; border-radius: 8px; background: #090909; }
.character-model-run video { height: 190px; display: block; object-fit: contain; object-position: center; }
.model-run-output { position: relative; display: block; overflow: hidden; border: 1px solid var(--studio-line); }
.model-run-output img { width: 100%; height: 190px; display: block; object-fit: contain; background: #090909; }
.model-run-output span { position: absolute; left: 8px; bottom: 8px; padding: 5px 8px; color: #fff; border-radius: 99px;
  background: rgba(10,9,8,.76); font-size: 10px; }

/* Aday, referans ve AI çıktıları sayfadan çıkmadan eksiksiz incelemek için erişilebilir medya sahnesi. */
body.media-lightbox-open { overflow: hidden; overscroll-behavior: none; }
.media-lightbox-trigger { cursor: zoom-in; }
.media-lightbox-trigger:focus-visible { outline: 2px solid var(--studio-accent); outline-offset: 3px; }
.media-lightbox[hidden] { display: none; }
.media-lightbox { position: fixed; z-index: 3000; inset: 0; display: grid; place-items: center;
  padding: clamp(12px, 3vw, 36px); background: rgba(5,5,5,.9); backdrop-filter: blur(18px) saturate(.7); }
.media-lightbox-panel { width: min(1600px, 96vw); height: min(1100px, 92dvh); min-width: 0; min-height: 0;
  display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; border: 1px solid rgba(255,255,255,.15);
  border-radius: 14px; background: #090909; box-shadow: 0 28px 90px rgba(0,0,0,.68); }
.media-lightbox-toolbar { min-width: 0; min-height: 58px; display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 8px 10px 8px 18px; border-bottom: 1px solid rgba(255,255,255,.09);
  background: #121110; }
.media-lightbox-toolbar p { min-width: 0; display: flex; align-items: center; gap: 9px; margin: 0; color: var(--studio-ink-2);
  font-size: 12px; line-height: 1.35; }
.media-lightbox-toolbar p > .material-symbols-rounded { flex: none; color: var(--studio-accent); font-size: 20px; }
.media-lightbox-toolbar p > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-lightbox-toolbar button { width: 42px; height: 42px; display: grid; place-items: center; flex: none; padding: 0;
  color: var(--studio-ink); border: 1px solid rgba(255,255,255,.12); border-radius: 50%; background: rgba(255,255,255,.045);
  cursor: pointer; transition: color .16s, border-color .16s, background .16s; }
.media-lightbox-toolbar button:hover { color: #fff; border-color: rgba(225,138,95,.55); background: rgba(225,138,95,.12); }
.media-lightbox-toolbar button:focus-visible { outline: 2px solid var(--studio-accent); outline-offset: 2px; }
.media-lightbox-stage { min-width: 0; min-height: 0; display: grid; place-items: center; overflow: hidden;
  padding: clamp(8px, 1.4vw, 22px); background: #070707; }
.media-lightbox-stage img, .media-lightbox-stage video { width: 100%; height: 100%; max-width: 100%; max-height: 100%;
  display: block; object-fit: contain; object-position: center; background: #070707; }
.studio-empty-inline { grid-column: 1 / -1; padding: 26px; color: var(--studio-mute); border: 1px dashed var(--studio-line); border-radius: 8px; text-align: center; font-size: 11px; }
.detail-history ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--studio-line); }
.detail-history li { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; padding: 13px 3px; border-bottom: 1px solid var(--studio-line); }
.detail-history li b { color: var(--studio-accent); }
.detail-history li span { color: var(--studio-ink-2); }
.detail-history li small { color: var(--studio-mute); }

@media (max-width: 1220px) {
  .studio-shell { grid-template-columns: 78px minmax(0, 1fr); }
  .studio-brand { font-size: 0; padding-inline: 18px; }
  .studio-brand::first-letter { font-size: 25px; }
  .studio-motto, .studio-user, .studio-nav-label { display: none; }
  .studio-nav a { justify-content: center; padding: 0; }
  .studio-rail-art { top: 36%; }
  .character-create-layout { grid-template-columns: minmax(440px, 1fr) minmax(360px, .9fr); }
  .style-choices { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .studio-shell { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); align-content: start; }
  .studio-rail { position: sticky; height: auto; min-height: 62px; flex-direction: row; align-items: center; padding: 0 12px; border-right: 0;
    border-bottom: 1px solid var(--studio-line); }
  .studio-brand { display: block; padding: 0 12px; font-size: 18px; white-space: nowrap; }
  .studio-brand::first-letter { font-size: inherit; }
  .studio-nav { flex: 1; flex-direction: row; justify-content: flex-start; overflow-x: auto; scrollbar-width: thin;
    overscroll-behavior-inline: contain; scroll-snap-type: x proximity; padding-right: 24px;
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 24px), transparent 100%);
    mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 24px), transparent 100%); }
  .studio-nav a { min-width: 48px; min-height: 48px; border-left: 0; border-bottom: 2px solid transparent;
    scroll-snap-align: start; }
  .studio-nav a.on { border-bottom-color: var(--studio-accent); }
  .studio-rail-art { display: none; }
  .studio-main { padding-top: 24px; }
  .character-create-layout, .character-detail-hero { grid-template-columns: 1fr; }
  .character-create-form { max-width: none; }
  .character-preview { position: static; }
  .style-inline-preview { display: block; justify-self: center; }
  .character-preview .preview-hero { display: none; }
  .detail-copy, .detail-visual { grid-column: auto; grid-row: auto; }
  .character-toolbar { top: 62px; flex-direction: column; align-items: stretch; }
  .character-search { width: 100%; }
  .scope-filters { justify-content: flex-start; padding-right: 24px;
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 24px), transparent 100%);
    mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 24px), transparent 100%); }
}
@media (max-width: 620px) {
  .studio-main { padding: 20px 14px 60px; }
  .studio-brand { flex: 0 0 44px; width: 44px; padding-inline: 8px; font-size: 0; }
  .studio-brand::before { content: "Z"; font: 500 22px/1 var(--serif); color: var(--studio-ink); }
  .studio-brand i { display: none; }
  .studio-nav a { min-width: 44px; }
  .studio-library-head { align-items: flex-start; flex-direction: column; }
  .character-library { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .character-card-body { padding: 11px; }
  .character-card-body b { font-size: 15px; }
  .character-scope { left: 7px; top: 7px; max-width: calc(100% - 14px); overflow: hidden; }
  .character-studio-head { display: block; }
  .character-studio-head h1 { margin-bottom: 7px; }
  .character-create-layout { display: flex; flex-direction: column; }
  .preview-filmstrip { grid-template-columns: repeat(2, 1fr); }
  .preview-copy { left: 16px; right: 16px; bottom: 14px; max-width: 72%; }
  .studio-progress span { font-size: 0; }
  .studio-progress b { font-size: 10px; }
  .scope-choices, .style-choices { grid-template-columns: 1fr 1fr; }
  .project-choices, .advanced-grid { grid-template-columns: 1fr; }
  .upload-previews { grid-template-columns: repeat(3, 1fr); }
  .character-detail-hero { min-height: 0; }
  .detail-visual, .detail-visual-empty { min-height: 470px; }
  .detail-copy { padding: 26px 20px; }
  .candidate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-title { align-items: flex-start; flex-wrap: wrap; }
  .identity-ready { max-width: 100%; }
  .character-model-tools { grid-template-columns: 1fr; }
  .character-model-run { grid-template-columns: 1fr; }
  .media-lightbox { padding: 10px; }
  .media-lightbox-panel { width: calc(100vw - 20px); height: calc(100dvh - 20px); border-radius: 11px; }
  .media-lightbox-toolbar { min-height: 54px; padding-left: 13px; }
  .media-lightbox-stage { padding: 6px; }
  .detail-history li { grid-template-columns: 40px 1fr; }
  .detail-history li small { grid-column: 2; }
}
@media (max-width: 430px) {
  .studio-main { padding-inline: 12px; }
  .character-library, .candidate-grid, .scope-choices, .style-choices { grid-template-columns: 1fr; }
  .upload-previews { grid-template-columns: repeat(2, 1fr); }
  .character-detail-top { align-items: flex-start; flex-direction: column; gap: 10px; }
  .character-detail-actions { width: 100%; justify-content: flex-start; }
  .detail-visual.empty, .detail-visual.empty .detail-visual-empty { min-height: 230px; }
  .detail-visual-label { left: 10px; bottom: 10px; max-width: calc(100% - 20px); }
  .section-title { flex-direction: column; gap: 8px; }
  .character-model-studio { padding: 18px 14px; }
  .model-tool-card { padding: 15px; }
  .video-profile-choices { grid-template-columns: 1fr; }
  .video-duration-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .model-run-output { max-height: none; }
  .model-run-output img { height: auto; aspect-ratio: 1.3 / 1; }
}
@media (prefers-reduced-motion: reduce) {
  .studio-theme *, .studio-theme *::before, .studio-theme *::after {
    scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
