/* ==========================================================================
   SCENE REEL -- ACT II: THE CAST
   Ported from the approved character-lock mockup. Only cast-specific rules
   live here; shared atoms (.btn/.tag/.eyebrow/.display/.lede) stay in
   scene-reel.css so this file can never restyle the other acts.
   ========================================================================== */
.act-head {
  display: flex; align-items: flex-end; gap: 28px;
  flex-wrap: wrap; margin-bottom: 22px;
}
.act-head .h-left { flex: 1 1 520px; min-width: 320px; }
/* ---------- mode switch ---------- */
.mode-switch {
  display: inline-flex; padding: 4px; gap: 4px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel); margin-bottom: 22px;
}
.mode-switch button {
  border: 0; background: transparent; cursor: pointer;
  padding: 9px 16px; border-radius: 9px;
  font-size: 12.5px; font-weight: 600; color: var(--dim);
  transition: .18s;
}
.mode-switch button:hover { color: var(--text); }
.mode-switch button.on {
  background: var(--panel-3); color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 4px 14px -6px #000;
}
.mode-switch button.on .dotmark { background: var(--dir); }
.dotmark {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--dim-2); margin-right: 8px; vertical-align: 1px;
}
/* ---------- layout ---------- */
.cast-grid {
  display: grid;
  grid-template-columns: minmax(0, 748px) 322px;
  justify-content: center;
  gap: 22px;
  align-items: start;
}
@media (max-width: 1080px) { .cast-grid { grid-template-columns: 1fr; }
}
.cast-col { display: flex; flex-direction: column; gap: 18px; }
/* ---------- character card ---------- */
.char {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: border-color .25s;
}
.char.is-locked { border-color: rgba(53,255,158,.30); }
.char-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.028), transparent);
}
.char-badge {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 800; color: #0a0c11; flex: 0 0 auto;
}
.char.dir .char-badge { background: var(--dir); box-shadow: 0 0 20px rgba(255,107,53,.35); }
.char.dp  .char-badge { background: var(--dp);  box-shadow: 0 0 20px rgba(0,177,251,.30); }
.char-id { display: flex; flex-direction: column; line-height: 1.2; }
.char-id b { font-size: 14px; font-weight: 650; }
.char-id span { font-size: 9px; letter-spacing: .18em; color: var(--dim-2); font-weight: 700; }
.chip {
  margin-left: auto;
  font-size: 9px; letter-spacing: .14em; font-weight: 800;
  padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--dim);
  background: rgba(255,255,255,.03); white-space: nowrap;
}
.chip.ok { color: var(--ok); border-color: rgba(53,255,158,.35); background: rgba(53,255,158,.08); }
.chip.warn { color: var(--gold); border-color: rgba(255,209,102,.32); background: rgba(255,209,102,.07); }
.char-body { padding: 18px; display: flex; flex-direction: column; gap: 20px; }
/* ---------- numbered step ---------- */
.step { display: flex; gap: 14px; }
.step-n {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 7px;
  display: grid; place-items: center; margin-top: 2px;
  font-size: 10px; font-weight: 800; font-family: var(--mono);
  color: var(--dim); border: 1px solid var(--line-2);
  background: rgba(255,255,255,.02);
}
.step-body { flex: 1 1 auto; min-width: 0; }
.step-t {
  font-size: 11px; letter-spacing: .16em; font-weight: 800;
  color: var(--dim); margin-bottom: 10px;
}
.step-t span { color: var(--dim-2); letter-spacing: .04em; font-weight: 500; text-transform: none; font-size: 12px; }
/* ---------- plate row ---------- */
.plate-row { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.plate {
  position: relative; width: 86px; height: 108px;
  border-radius: 10px; overflow: hidden; flex: 0 0 auto;
  border: 1px solid var(--line-2);
  background: var(--panel-3);
}
.plate img { width: 100%; height: 100%; object-fit: cover; display: block; }
.plate::after {
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  border-radius: 10px; pointer-events: none;
}
.plate-meta { flex: 1 1 200px; min-width: 180px; display: flex; flex-direction: column; gap: 8px; }
.plate-name {
  font-size: 12.5px; font-family: var(--mono); color: var(--text);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.plate-name i { font-style: normal; color: var(--dim-2); font-size: 11px; }
.plate-btns { display: flex; gap: 7px; flex-wrap: wrap; }
.mini {
  border: 1px solid var(--line-2); background: rgba(255,255,255,.03);
  border-radius: 8px; padding: 6px 11px; cursor: pointer;
  font-size: 11.5px; font-weight: 600; color: var(--dim);
  transition: .16s;
}
.mini:hover { color: var(--text); border-color: var(--dim-2); background: rgba(255,255,255,.06); }
.consent {
  display: flex; gap: 9px; align-items: flex-start;
  font-size: 11.5px; color: var(--dim-2); line-height: 1.45;
}
.consent input { margin: 2px 0 0; accent-color: var(--ok); width: 13px; height: 13px; flex: 0 0 auto; }
.consent b { color: var(--dim); font-weight: 600; }
/* ---------- turnaround ---------- */
.frame {
  position: relative; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line-2); background: #0a0c11;
  line-height: 0;
}
.frame img { width: 100%; display: block; }
.frame .views {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: linear-gradient(0deg, rgba(5,6,10,.92), rgba(5,6,10,0));
  padding: 20px 0 7px;
}
.frame .views span {
  text-align: center; font-size: 8.5px; letter-spacing: .16em;
  font-weight: 800; color: rgba(238,241,246,.72);
}
.frame .views span:first-child { color: var(--dir); }
.frame-corner {
  position: absolute; width: 12px; height: 12px;
  border: 1.5px solid rgba(255,107,53,.75);
}
.frame-corner.tl { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.frame-corner.tr { top: 8px; right: 8px; border-left: 0; border-bottom: 0; }
.frame-corner.bl { bottom: 8px; left: 8px; border-right: 0; border-top: 0; }
.frame-corner.br { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }
.frame .gen {
  position: absolute; top: 9px; left: 26px;
  font-size: 8.5px; letter-spacing: .14em; font-weight: 800;
  color: var(--ok); background: rgba(5,6,10,.72);
  padding: 3px 7px; border-radius: 5px;
  border: 1px solid rgba(53,255,158,.3);
}
.note {
  font-size: 11.5px; color: var(--dim-2); line-height: 1.5; margin-top: 9px;
}
.note b { color: var(--dim); font-weight: 600; }
/* ---------- lock slider ---------- */
.lock-wrap { padding: 2px 0 0; }
.lock-range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 26px; background: transparent; cursor: pointer;
  margin: 0;
}
.lock-range::-webkit-slider-runnable-track {
  height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, var(--dir) 0%, var(--gold) 50%, var(--ok) 100%);
  opacity: .85;
}
.lock-range::-moz-range-track {
  height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, var(--dir) 0%, var(--gold) 50%, var(--ok) 100%);
}
.lock-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 50%; margin-top: -7px;
  background: #f4f6fa; border: 3px solid #0a0c11;
  box-shadow: 0 0 0 1.5px rgba(255,255,255,.55), 0 4px 14px rgba(0,0,0,.7);
}
.lock-range::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: #f4f6fa; border: 3px solid #0a0c11;
  box-shadow: 0 0 0 1.5px rgba(255,255,255,.55);
}
.lock-ticks {
  display: flex; justify-content: space-between;
  font-size: 9px; letter-spacing: .13em; font-weight: 800;
  color: var(--dim-2); margin-top: 2px;
}
.lock-readout {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  margin-top: 11px; font-size: 12px; color: var(--dim);
}
.lock-readout b { color: var(--text); font-weight: 650; }
.lock-readout .pill {
  font-size: 9px; letter-spacing: .14em; font-weight: 800;
  padding: 3px 8px; border-radius: 999px;
  color: var(--ok); border: 1px solid rgba(53,255,158,.32);
  background: rgba(53,255,158,.08);
}
/* ---------- camera test ---------- */
.test-frame { position: relative; }
.test-meta {
  display: flex; align-items: center; gap: 10px;
  margin-top: 10px; font-size: 11.5px; color: var(--dim-2); flex-wrap: wrap;
}
.test-meta .sep { color: var(--line-2); }
.test-meta b { color: var(--dim); font-weight: 600; }
.test-meta .mini { margin-left: auto; }
/* ---------- card foot ---------- */
.char-foot {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-top: 1px solid var(--line);
  background: rgba(0,0,0,.22); flex-wrap: wrap;
}
.char-foot .hint { font-size: 11.5px; color: var(--dim-2); flex: 1 1 180px; }
.btn.ok {
  background: rgba(53,255,158,.10); border-color: rgba(53,255,158,.42);
  color: var(--ok);
}
/* ---------- rail ---------- */
.rail { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 0; }
.rcard {
  border: 1px solid var(--line); border-radius: var(--r);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  padding: 16px 17px;
}
.rcard h4 {
  margin: 0 0 11px; font-size: 10px; letter-spacing: .18em;
  font-weight: 800; color: var(--dim-2);
}
.rcard p { margin: 0 0 10px; font-size: 12.5px; color: var(--dim); line-height: 1.55; }
.rcard p:last-child { margin-bottom: 0; }
.rcard p b { color: var(--text); font-weight: 600; }
.rcard .why { display: flex; flex-direction: column; gap: 11px; }
.rcard .why div { display: flex; gap: 9px; font-size: 12.5px; color: var(--dim); line-height: 1.5; }
.rcard .why i {
  font-style: normal; flex: 0 0 auto; width: 17px; height: 17px; border-radius: 5px;
  display: grid; place-items: center; margin-top: 1px;
  font-size: 9px; font-weight: 800; font-family: var(--mono);
  color: var(--dir); background: rgba(255,107,53,.10);
  border: 1px solid rgba(255,107,53,.26);
}
/* ---------- flat fee + cost share ---------- */
.fee-hero {
  display: flex; align-items: baseline; gap: 8px;
  margin: 2px 0 8px;
}
.fee-hero b {
  font-family: var(--mono); font-size: 30px; font-weight: 700;
  letter-spacing: -.02em; color: var(--text); line-height: 1;
}
.fee-hero span {
  font-size: 11px; letter-spacing: .16em; font-weight: 800; color: var(--dir);
}
.fee-sub { font-size: 12px; color: var(--dim-2); line-height: 1.5; margin: 0 0 13px; }
.fee-sub b { color: var(--dim); font-weight: 600; }
/* ---------- inherited royalty split ---------- */
.split-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em;
  font-weight: 700; color: var(--ok);
  background: rgba(53,255,158,.08); border: 1px solid rgba(53,255,158,.24);
  border-radius: 999px; padding: 3px 8px; margin-bottom: 11px;
}
.split-tag::before { content: "\2713"; font-size: 10px; }
.fee-split { display: flex; flex-direction: column; gap: 0; margin: 0 0 4px; }
.fee-split-bar {
  display: flex; height: 10px; border-radius: 999px; overflow: hidden;
  border: 1px solid var(--line); background: var(--panel-3);
}
.fee-split-bar i { display: block; height: 100%; }
.fee-split-bar i.a { background: linear-gradient(90deg, #ff8b5c, var(--dir)); }
.fee-split-bar i.b { background: linear-gradient(90deg, var(--dp), #5cd2ff); }
.fee-split-legend {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-top: 9px; gap: 10px;
}
.fee-split-legend .who {
  display: flex; flex-direction: column; line-height: 1.25;
}
.fee-split-legend .who.r { text-align: right; align-items: flex-end; }
.fee-split-legend .nm {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em;
  font-weight: 700; color: var(--dim-2);
}
.fee-split-legend .amt {
  font-family: var(--mono); font-size: 15px; font-weight: 700;
  letter-spacing: -.01em; margin-top: 2px;
}
.fee-split-legend .who.l .amt { color: var(--dir); }
.fee-split-legend .who.r .amt { color: var(--dp); }
.fee-split-legend .pct { font-size: 10px; color: var(--dim-2); font-family: var(--mono); }
.split-note {
  margin-top: 12px; padding: 9px 11px; border-radius: 9px;
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,.025);
  font-size: 11.5px; color: var(--dim); line-height: 1.5;
}
.split-note b { color: var(--text); font-weight: 650; }
.split-note .lockline { display: flex; gap: 6px; margin-top: 7px; color: var(--dim-2); font-size: 11px; }
.split-note .lockline::before { content: "\1F512"; font-size: 10px; }
.warm-line {
  margin-top: 11px; padding: 9px 11px; border-radius: 9px;
  border: 1px solid rgba(53,255,158,.2);
  background: rgba(53,255,158,.05);
  font-size: 11px; color: var(--dim); line-height: 1.5;
}
.warm-line b { color: var(--ok); font-weight: 650; }
.warm-line .tag2 {
  font-family: var(--mono); font-size: 9px; letter-spacing: .1em;
  font-weight: 700; color: var(--ok); display: block; margin-bottom: 3px;
}
.rev-line {
  margin-top: 9px; padding: 9px 11px; border-radius: 9px;
  border: 1px solid rgba(120,170,255,.22);
  background: rgba(120,170,255,.05);
  font-size: 11px; color: var(--dim); line-height: 1.5;
}
.rev-line b { color: var(--text); font-weight: 650; }
.rev-line .tag2 {
  font-family: var(--mono); font-size: 9px; letter-spacing: .1em;
  font-weight: 700; color: #7fb0ff; display: block; margin-bottom: 3px;
}
.fee-fine {
  margin-top: 11px; font-size: 10.5px; color: var(--dim-2);
  line-height: 1.5; font-family: var(--mono);
}
.warn-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.warn-list li {
  font-size: 12px; color: var(--dim); line-height: 1.5;
  padding-left: 15px; position: relative;
}
.warn-list li::before {
  content: "—"; position: absolute; left: 0; color: var(--gold);
}
.warn-list li b { color: var(--text); font-weight: 600; }
/* ---------- auto mode panel ---------- */
.auto-panel {
  border: 1px dashed var(--line-2); border-radius: var(--r-lg);
  padding: 40px 30px; text-align: center;
  background: radial-gradient(600px 200px at 50% 0%, rgba(0,177,251,.07), transparent 70%);
}
.auto-panel .ico { font-size: 30px; margin-bottom: 12px; opacity: .85; }
.auto-panel h3 { margin: 0 0 8px; font-size: 17px; font-weight: 650; }
.auto-panel p { margin: 0 auto 18px; max-width: 52ch; font-size: 13px; color: var(--dim); }
/* ---------- act footer ---------- */
.act-foot {
  display: flex; align-items: center; gap: 14px;
  margin-top: 22px; padding-top: 20px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.act-foot .gate-note { font-size: 12px; color: var(--dim-2); flex: 1 1 240px; }
.act-foot .gate-note b { color: var(--dim); font-weight: 600; }
.act-foot .spacer { flex: 1 1 auto; }

/* ---------- responsive (cast only) ---------- */
@media (max-width: 900px) {
  .cast-grid { gap: 14px; }
  .char-body { padding: 15px; gap: 17px; }
  .char-head { padding: 12px 15px; }
  .char-foot { padding: 12px 15px; }
  .char-foot .btn { width: 100%; justify-content: center; }
  .plate { width: 72px; height: 90px; }
  .step { gap: 10px; }
  .step-n { width: 20px; height: 20px; }
  .act-foot { gap: 10px; }
  .act-foot .btn { flex: 1 1 100%; justify-content: center; }
  .act-foot .spacer { display: none; }
}
@media (max-width: 520px) {
  .cast-grid { gap: 12px; }
  .plate-row { gap: 10px; }
  .plate { width: 64px; height: 80px; }
}

/* ---------- fee accept (live) ---------- */
.fee-accept { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0 4px; }
.fee-accept .btn { padding: 8px 14px; font-size: 12px; }
.fee-accept .btn.ok { background: rgba(53,255,158,.12); border-color: rgba(53,255,158,.5); color: var(--ok); }
.fee-accept-note { color: var(--dim-2); font-size: 11px; line-height: 1.35; }
.fee-accept-note b { color: var(--text); font-weight: 650; }
