/* ═══════════════════════════════════════════════════════════
   استودیو دوبله — پوسته
   حال‌وهوا: اتاق فرمان با نور تنگستنی. زمینه گرم و تیره،
   لهجه کهربایی برای کنترل‌ها، قرمز آنتن برای رندر.
   ═══════════════════════════════════════════════════════════ */

:root {
  --ink:        #100E0C;
  --panel:      #191512;
  --panel-2:    #211C18;
  --panel-3:    #2A231D;
  --line:       #342B24;
  --line-soft:  #493C32;

  --tungsten:   #E9A13B;
  --tungsten-d: #B87C25;
  --onair:      #D0452C;
  --signal:     #6FB1A0;

  --text:       #EDE6DC;
  --text-2:     #C4B7A8;
  --muted:      #91836F;

  --r-sm: 6px;
  --r:    10px;
  --r-lg: 16px;

  --shadow: 0 18px 40px -20px rgba(0,0,0,.85);
  --font: "Vazirmatn", "Segoe UI", Tahoma, system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
body {
  background-image:
    radial-gradient(1200px 500px at 80% -10%, rgba(233,161,59,.07), transparent 60%),
    radial-gradient(900px 400px at 10% 110%, rgba(111,177,160,.05), transparent 60%);
  min-height: 100vh;
}

h1,h2,h3,h4 { margin: 0; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 .5rem; }
code { font-family: var(--mono); font-size: .85em; background: var(--panel-3); padding: .1em .4em; border-radius: 4px; color: var(--tungsten); }
a { color: var(--tungsten); }

/* ─────────────────────────── نوار بالا */

.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 1rem;
  padding: .6rem 1.1rem;
  background: rgba(16,14,12,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.05rem; }
.brand-name { letter-spacing: -.02em; }

.lamp {
  width: 11px; height: 11px; border-radius: 50%;
  background: #4A3B30; border: 1px solid #5C4838;
  flex: none; transition: .25s;
}
.lamp.on   { background: var(--signal); border-color: var(--signal); box-shadow: 0 0 12px rgba(111,177,160,.7); }
.lamp.live { background: var(--onair);  border-color: var(--onair);  box-shadow: 0 0 16px rgba(208,69,44,.85); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .45; } }

.topbar-mid { display: flex; align-items: center; gap: .45rem; flex: 1 1 320px; min-width: 0; }
.topbar-end { display: flex; align-items: center; gap: .4rem; }

.proj-title {
  background: transparent; border: 1px solid transparent; color: var(--text);
  font-family: inherit; font-size: .95rem; font-weight: 600;
  padding: .3rem .55rem; border-radius: var(--r-sm); min-width: 0; flex: 1 1 140px;
}
.proj-title:hover  { border-color: var(--line); }
.proj-title:focus  { border-color: var(--tungsten-d); outline: none; background: var(--panel); }

.pill {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--panel-2); border: 1px solid var(--line);
  color: var(--text-2); font-family: inherit; font-size: .8rem;
  padding: .3rem .7rem; border-radius: 999px; cursor: pointer;
}
.pill:hover { border-color: var(--line-soft); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex: none; }
.pill.ok   .dot { background: var(--signal); box-shadow: 0 0 8px rgba(111,177,160,.6); }
.pill.bad  .dot { background: var(--onair); }
.pill.busy .dot { background: var(--tungsten); animation: pulse .9s infinite; }

/* ─────────────────────────── دکمه‌ها و فیلدها */

.btn {
  font-family: inherit; font-size: .88rem; font-weight: 600;
  padding: .5rem .95rem; border-radius: var(--r-sm);
  border: 1px solid var(--line-soft); background: var(--panel-2); color: var(--text);
  cursor: pointer; transition: .15s; white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
}
.btn:hover:not(:disabled) { background: var(--panel-3); border-color: var(--tungsten-d); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.sm      { font-size: .8rem; padding: .32rem .65rem; }
.btn.block   { width: 100%; }
.btn.primary { background: var(--tungsten); border-color: var(--tungsten); color: #221703; }
.btn.primary:hover:not(:disabled) { background: #F2AE4C; border-color: #F2AE4C; }
.btn.ghost   { background: transparent; }
.btn.danger  { color: #E88A76; border-color: #6A3126; }
.btn.danger:hover:not(:disabled) { background: #3A1D16; border-color: #8C3F2F; }
.btn.dashed  { background: transparent; border-style: dashed; color: var(--text-2); }
.btn.dashed:hover { color: var(--text); border-color: var(--tungsten-d); }

.btn.record {
  background: linear-gradient(180deg, #C74630, #A2331F);
  border-color: #8C2E1D; color: #FFF1EC;
  font-size: 1rem; padding: .8rem; letter-spacing: -.01em;
  box-shadow: 0 8px 24px -12px rgba(208,69,44,.9);
}
.btn.record:hover:not(:disabled) { background: linear-gradient(180deg, #D75239, #B03A24); }
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: #FFD9CF; }
.btn.record:disabled .rec-dot { animation: pulse .8s infinite; }

.mini-link {
  background: none; border: none; color: var(--tungsten);
  font-family: inherit; font-size: .75rem; cursor: pointer; padding: 0 .3rem;
  text-decoration: underline; text-underline-offset: 3px;
}
.mini-link:hover { color: #F5BA63; }

input, select, textarea {
  width: 100%; font-family: inherit; font-size: .88rem;
  background: var(--panel); border: 1px solid var(--line);
  color: var(--text); border-radius: var(--r-sm); padding: .5rem .65rem;
  transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--tungsten-d); background: var(--panel-2); }
input::placeholder, textarea::placeholder { color: #6E6155; }
textarea { resize: vertical; line-height: 1.8; }
select { cursor: pointer; }
input[type="color"] { padding: .2rem; height: 36px; cursor: pointer; }
input[type="range"] { accent-color: var(--tungsten); padding: 0; }

.field { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .85rem; }
.field > label { font-size: .78rem; color: var(--text-2); font-weight: 600; display: flex; align-items: center; gap: .4rem; }
.field > label em { font-style: normal; font-weight: 400; color: var(--muted); font-size: .95em; }
.field-row { display: flex; gap: .6rem; align-items: flex-start; flex-wrap: wrap; }
.field-row > .field { flex: 1 1 140px; }
.field-row > .field.grow { flex: 3 1 200px; }
.field-row > .field.w-emoji { flex: 0 0 76px; }
.field-row > .field.w-color { flex: 0 0 76px; }
.grow { flex: 1; }

.unit { display: flex; gap: .4rem; align-items: center; }
.unit > span { font-size: .75rem; color: var(--muted); white-space: nowrap; }
.unit > select, .unit > input { flex: 1; min-width: 0; }

.ghost-select { background: transparent; border-color: var(--line); font-size: .82rem; padding: .32rem .5rem; width: auto; max-width: 190px; }
.ghost-select.sm { font-size: .75rem; }

.hint { font-size: .75rem; color: var(--muted); line-height: 1.65; margin: .2rem 0 0; }

.seg { display: flex; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.seg button {
  flex: 1; background: transparent; border: none; color: var(--text-2);
  font-family: inherit; font-size: .82rem; font-weight: 600; padding: .45rem; cursor: pointer;
}
.seg button:hover { background: var(--panel-2); color: var(--text); }
.seg button.on { background: var(--panel-3); color: var(--tungsten); box-shadow: inset 0 -2px 0 var(--tungsten); }

/* ─────────────────────────── چیدمان */

.stage {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr) 330px;
  gap: .9rem;
  padding: .9rem 1.1rem 4rem;
  align-items: start;
  max-width: 1760px; margin: 0 auto;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1rem;
  box-shadow: var(--shadow);
}
.panel.cast, .panel.booth { position: sticky; top: 66px; max-height: calc(100vh - 84px); overflow-y: auto; }

.panel-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .5rem; flex-wrap: wrap; }
.panel-head h2 { font-size: .95rem; letter-spacing: -.02em; }
.panel-head h2::before {
  content: ""; display: inline-block; width: 3px; height: 13px;
  background: var(--tungsten); border-radius: 2px; margin-inline-end: .5rem; vertical-align: -1px;
}
.panel-head.sub { margin-top: 1.4rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.panel-head.sub h3 { font-size: .85rem; color: var(--text-2); }
.head-actions { display: flex; gap: .35rem; align-items: center; flex-wrap: wrap; }
.panel-hint { font-size: .75rem; color: var(--muted); margin-bottom: .8rem; line-height: 1.6; }

/* ─────────────────────────── کارت بازیگر */

.cast-list { display: flex; flex-direction: column; gap: .5rem; margin-bottom: .8rem; }

.cast-card {
  display: flex; gap: .6rem; align-items: flex-start;
  background: var(--panel-2); border: 1px solid var(--line);
  border-inline-start: 3px solid var(--tungsten);
  border-radius: var(--r); padding: .6rem .7rem; cursor: pointer; transition: .15s;
}
.cast-card:hover { border-color: var(--line-soft); background: var(--panel-3); }
.cast-avatar { font-size: 1.2rem; line-height: 1.4; flex: none; }
.cast-meta { min-width: 0; flex: 1; }
.cast-name { font-weight: 700; font-size: .88rem; }
.cast-sub  { font-size: .72rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cast-voice {
  font-size: .68rem; color: var(--tungsten); font-family: var(--mono);
  background: rgba(233,161,59,.1); border-radius: 4px; padding: .05rem .35rem; display: inline-block; margin-top: .15rem;
}
.cast-play { background: none; border: none; color: var(--text-2); cursor: pointer; font-size: 1rem; padding: 0 .2rem; }
.cast-play:hover { color: var(--tungsten); }

.empty {
  text-align: center; color: var(--muted); font-size: .8rem;
  padding: 1.4rem .8rem; border: 1px dashed var(--line); border-radius: var(--r); line-height: 1.7;
}

/* ─────────────────────────── فیلمنامه */

.scene-brief {
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: var(--r); padding: .8rem .9rem .2rem; margin-bottom: 1rem;
}
.scene-brief .field:last-child { margin-bottom: .7rem; }

.line-list { display: flex; flex-direction: column; gap: .6rem; margin-bottom: .8rem; }

/* کارت تیک — امضای بصری صفحه: شماره تیک در حاشیه، نوار رنگ بازیگر کنارش */
.take {
  position: relative;
  display: grid; grid-template-columns: 42px minmax(0,1fr);
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; transition: border-color .2s;
}
.take:focus-within { border-color: var(--tungsten-d); }
.take.busy   { border-color: var(--onair); }
.take.done   { border-color: rgba(111,177,160,.5); }
.take.failed { border-color: #8C3F2F; }

.take-gutter {
  background: var(--panel-3); border-inline-end: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .55rem 0;
}
.take-num { font-family: var(--mono); font-size: .72rem; color: var(--muted); }
.take-dur { font-family: var(--mono); font-size: .6rem; color: var(--signal); }
.take-grip { color: #5B4C40; cursor: grab; font-size: .8rem; user-select: none; }
.take-grip:active { cursor: grabbing; }

.take-body { padding: .55rem .7rem .6rem; min-width: 0; }
.take-top { display: flex; gap: .4rem; align-items: center; margin-bottom: .4rem; flex-wrap: wrap; }
.take-char { flex: 0 1 150px; font-size: .8rem; font-weight: 600; padding: .3rem .5rem; }
.take-dir  { flex: 1 1 200px; font-size: .8rem; }
.take-tools { display: flex; gap: .15rem; margin-inline-start: auto; }
.icon-btn {
  background: none; border: 1px solid transparent; color: var(--muted);
  cursor: pointer; font-size: .82rem; padding: .18rem .38rem; border-radius: 5px; font-family: inherit;
}
.icon-btn:hover { color: var(--text); background: var(--panel-3); border-color: var(--line); }
.icon-btn.go:hover { color: var(--tungsten); }
.icon-btn.rm:hover { color: #E88A76; }

.take-text { font-size: .93rem; line-height: 1.9; min-height: 42px; }

.take-tags { display: flex; gap: .25rem; flex-wrap: wrap; margin-top: .4rem; align-items: center; }
.tagchip {
  font-size: .68rem; font-family: var(--mono); color: var(--text-2);
  background: var(--panel-3); border: 1px solid var(--line);
  border-radius: 999px; padding: .1rem .5rem; cursor: pointer;
}
.tagchip:hover { border-color: var(--tungsten-d); color: var(--tungsten); }
.tag-more { font-size: .68rem; color: var(--muted); background: none; border: none; cursor: pointer; font-family: inherit; text-decoration: underline; }

.take-foot { display: flex; align-items: center; gap: .5rem; margin-top: .45rem; flex-wrap: wrap; }
.take-foot audio { height: 30px; flex: 1 1 190px; min-width: 150px; }
.pause-set { display: flex; align-items: center; gap: .25rem; font-size: .68rem; color: var(--muted); }
.pause-set input { width: 62px; padding: .18rem .3rem; font-size: .7rem; text-align: center; }
.take-error { font-size: .74rem; color: #E88A76; margin-top: .35rem; line-height: 1.6; }

/* ─────────────────────────── اتاق فرمان و خروجی */

.progress { margin-top: .6rem; }
.progress .bar { height: 4px; background: var(--panel-3); border-radius: 2px; overflow: hidden; position: relative; }
.progress .bar::after {
  content: ""; position: absolute; inset-block: 0; inset-inline-start: 0;
  width: var(--p, 0%); background: var(--tungsten); transition: width .3s;
}
.progress .ptext { font-size: .72rem; color: var(--muted); display: block; margin-top: .3rem; }
.hidden { display: none !important; }

.output:not(:empty) {
  margin-top: .8rem; padding: .7rem .8rem;
  background: linear-gradient(180deg, rgba(111,177,160,.08), transparent);
  border: 1px solid rgba(111,177,160,.35); border-radius: var(--r);
}
.output h4 { font-size: .82rem; margin-bottom: .35rem; }
.output audio { width: 100%; height: 34px; margin: .3rem 0; }
.out-meta { font-size: .7rem; color: var(--muted); font-family: var(--mono); }

.hist-list { display: flex; flex-direction: column; gap: .4rem; }
.hist-item {
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: .5rem .6rem;
}
.hist-top { display: flex; gap: .4rem; align-items: baseline; }
.hist-label { font-size: .78rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.hist-kind {
  font-size: .62rem; padding: .05rem .35rem; border-radius: 3px; flex: none;
  background: var(--panel-3); color: var(--muted); font-family: var(--mono);
}
.hist-kind.scene { color: var(--signal); }
.hist-kind.line  { color: var(--tungsten); }
.hist-meta { font-size: .66rem; color: var(--muted); font-family: var(--mono); margin-top: .1rem; }
.hist-item audio { width: 100%; height: 28px; margin-top: .3rem; }
.hist-acts { display: flex; gap: .3rem; margin-top: .2rem; }

.quota { font-size: .68rem; color: var(--muted); margin-top: .7rem; text-align: center; font-family: var(--mono); }

/* ─────────────────────────── کنسول */

.console {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 30;
  background: rgba(16,14,12,.97); border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.console-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: none; border: none; color: var(--text-2);
  font-family: inherit; font-size: .78rem; padding: .45rem 1.1rem; cursor: pointer;
}
.console-head:hover { color: var(--text); }
.console .chev { display: inline-block; transition: transform .2s; }
.console.collapsed .chev { transform: rotate(180deg); }
.console.collapsed .console-body { display: none; }
.console-body { padding: 0 1.1rem .7rem; }
.console-actions { display: flex; gap: .7rem; justify-content: flex-end; margin-bottom: .3rem; }
#logStream {
  margin: 0; max-height: 190px; overflow-y: auto;
  font-family: var(--mono); font-size: .72rem; line-height: 1.85;
  background: #0B0A09; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: .6rem .7rem; white-space: pre-wrap; word-break: break-word;
  direction: ltr; text-align: left;
}
.log-ok    { color: var(--signal); }
.log-error { color: #E88A76; }
.log-info  { color: var(--muted); }
.log-time  { color: #5B4C40; }

/* ─────────────────────────── پنجره‌ها */

.sheet {
  border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  background: var(--panel); color: var(--text); padding: 0;
  width: min(560px, 94vw); max-height: 90vh; box-shadow: 0 30px 80px -30px #000;
}
.sheet.lg { width: min(760px, 95vw); }
.sheet::backdrop { background: rgba(8,7,6,.78); backdrop-filter: blur(3px); }
.sheet[open] { display: flex; flex-direction: column; animation: rise .18s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

.sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); flex: none;
}
.sheet-head h3 { font-size: .98rem; }
.sheet-head .x {
  background: none; border: none; color: var(--muted);
  font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 0 .3rem;
}
.sheet-head .x:hover { color: var(--text); }
.sheet-body { padding: 1rem 1.1rem; overflow-y: auto; flex: 1; }
.sheet-body h4 { font-size: .82rem; color: var(--tungsten); margin: 1.2rem 0 .6rem; }
.sheet-body h4:first-child { margin-top: 0; }
.sheet-foot {
  display: flex; gap: .5rem; align-items: center;
  padding: .75rem 1.1rem; border-top: 1px solid var(--line); flex: none;
}

.assist-box {
  background: linear-gradient(180deg, rgba(233,161,59,.09), transparent);
  border: 1px solid rgba(233,161,59,.28);
  border-radius: var(--r); padding: .7rem .8rem; margin-bottom: 1rem;
}
.assist-box label { font-size: .78rem; color: var(--text-2); display: block; margin-bottom: .35rem; }

.preset-pick { width: auto; max-width: 160px; font-size: .72rem; padding: .15rem .35rem; margin-inline-start: auto; }

/* کتابخانه صداها */
.voice-toolbar { display: flex; gap: .5rem; margin-bottom: .6rem; flex-wrap: wrap; }
.voice-toolbar select { flex: 0 0 170px; }
.voice-toolbar input  { flex: 1 1 160px; }

.voice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: .5rem; margin-top: .7rem; }
.voice-card {
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: var(--r); padding: .6rem .7rem;
}
.voice-card.playing { border-color: var(--tungsten); }
.voice-top { display: flex; align-items: center; gap: .4rem; }
.voice-id { font-family: var(--mono); font-size: .82rem; font-weight: 600; color: var(--tungsten); direction: ltr; }
.voice-trait { font-size: .68rem; color: var(--signal); background: rgba(111,177,160,.1); border-radius: 3px; padding: 0 .3rem; }
.voice-g { font-size: .68rem; color: var(--muted); margin-inline-start: auto; }
.voice-desc { font-size: .74rem; color: var(--text-2); line-height: 1.65; margin: .25rem 0 .4rem; }
.voice-acts { display: flex; gap: .3rem; }

/* راهنما */
.guide .steps { padding-inline-start: 1.2rem; margin: 0 0 1rem; }
.guide .steps li { margin-bottom: .6rem; font-size: .85rem; line-height: 1.85; }
.guide .tips { padding-inline-start: 1.2rem; margin: 0; }
.guide .tips li { margin-bottom: .4rem; font-size: .84rem; }
.cmp { width: 100%; border-collapse: collapse; font-size: .84rem; }
.cmp th {
  text-align: start; vertical-align: top; width: 150px; padding: .5rem .6rem;
  color: var(--tungsten); font-weight: 700; border-top: 1px solid var(--line);
}
.cmp td { padding: .5rem .6rem; border-top: 1px solid var(--line); color: var(--text-2); line-height: 1.8; }

.syntax-card {
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: var(--r); padding: .7rem .85rem; margin-bottom: .8rem;
}
.syntax-card strong { font-size: .8rem; display: block; margin-bottom: .35rem; }
.syntax-card ul { margin: 0; padding-inline-start: 1.1rem; }
.syntax-card li { font-size: .78rem; color: var(--text-2); margin-bottom: .2rem; }

.prompt-view {
  font-family: var(--mono); font-size: .74rem; line-height: 1.85;
  background: #0B0A09; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: .8rem; white-space: pre-wrap; word-break: break-word; margin: 0; max-height: 60vh; overflow: auto;
}

/* ─────────────────────────── پیام‌ها */

.note {
  font-size: .8rem; padding: .55rem .75rem; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--panel-2); margin: .5rem 0; line-height: 1.7;
}
.note.good { border-color: rgba(111,177,160,.45); background: rgba(111,177,160,.08); color: #A9D6C9; }
.note.bad  { border-color: #6A3126; background: rgba(208,69,44,.09); color: #E8A493; }

.toasts { position: fixed; bottom: 3.2rem; inset-inline-start: 1.1rem; z-index: 90; display: flex; flex-direction: column; gap: .4rem; }
.toast {
  background: var(--panel-3); border: 1px solid var(--line-soft);
  border-inline-start: 3px solid var(--tungsten);
  border-radius: var(--r-sm); padding: .55rem .8rem; font-size: .82rem;
  box-shadow: var(--shadow); max-width: 380px; animation: rise .18s ease-out;
}
.toast.ok  { border-inline-start-color: var(--signal); }
.toast.bad { border-inline-start-color: var(--onair); }

/* ─────────────────────────── صفحه ورود و نصب */

body.gate { display: grid; place-items: center; min-height: 100vh; padding: 1.2rem; }
.gate-card {
  width: min(400px, 94vw); background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.8rem 1.6rem; box-shadow: var(--shadow);
}
.gate-card.wide { width: min(560px, 94vw); }
.gate-brand { display: flex; align-items: center; gap: .55rem; font-size: 1.15rem; font-weight: 800; margin-bottom: .3rem; }
.gate-sub { font-size: .82rem; color: var(--muted); margin-bottom: 1.2rem; }
.stack { display: flex; flex-direction: column; gap: .8rem; }
.stack label { font-size: .78rem; color: var(--text-2); display: flex; flex-direction: column; gap: .3rem; font-weight: 600; }

.checklist { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.checklist li {
  display: flex; justify-content: space-between; gap: .6rem; align-items: baseline;
  font-size: .82rem; padding: .35rem 0; border-bottom: 1px solid var(--line);
}
.checklist li em { font-style: normal; font-size: .72rem; font-family: var(--mono); }
.checklist li.pass em { color: var(--signal); }
.checklist li.fail em { color: #E88A76; }

/* ─────────────────────────── واکنش‌گرایی */

@media (max-width: 1280px) {
  .stage { grid-template-columns: 250px minmax(0,1fr) 300px; }
}
@media (max-width: 1080px) {
  .stage { grid-template-columns: minmax(0,1fr); }
  .panel.cast, .panel.booth { position: static; max-height: none; }
  .panel.cast  { order: 1; }
  .panel.script{ order: 2; }
  .panel.booth { order: 3; }
}
@media (max-width: 620px) {
  .topbar { gap: .5rem; padding: .55rem .7rem; }
  .topbar-mid { order: 3; flex-basis: 100%; }
  .stage { padding: .7rem .7rem 4rem; }
  .panel { padding: .8rem; border-radius: var(--r); }
  .take { grid-template-columns: 32px minmax(0,1fr); }
  .take-char, .take-dir { flex-basis: 100%; }
  .brand-name { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

:focus-visible { outline: 2px solid var(--tungsten); outline-offset: 2px; border-radius: 3px; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-soft); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #5E4E41; }
