/* ============================================================
   refine / video — product surface (video.codershack.com).
   CHASSIS: audio's stylesheet (refine_audio/static/audio.css, the
   pixel-checked chrome), retinted to the ion accent #b18cff per
   docs/design/claude_code_handoff/refine-video/README.md — every
   #a78bff / rgba(167,139,255) became #b18cff / rgba(177,140,255),
   nothing else in the chrome moved. Video-only components (.vd-*)
   are transcribed from the reference's .rv-* block + inline styles.
   Deliberate deviations are marked DEVIATION with a reason.
   ============================================================ */

:root { --ac: #b18cff; --ac-soft: rgba(177, 140, 255, .08);
        --ac-glow: rgba(177, 140, 255, .32); }
html { background: var(--void, #06070b); }
body { margin: 0; color: #e8eaf0;
       font-family: var(--font-sans, "Space Grotesk", system-ui, sans-serif); }

.rail { max-width: 1200px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 32px); }
main.rail { position: relative; z-index: 1; min-height: 60vh;
            padding-top: 28px; padding-bottom: 80px; }

.green { color: #7bd66f; }
.amber { color: #ffb454; }
.red   { color: #ff6b4a; }
.violet, .ion { color: #b18cff; }

@keyframes csPulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes raPlay { 0%, 100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }
.pulse { animation: csPulse 1.4s infinite; }

/* ---- header — ref: relative glass bar, NOT fixed ---- */
.sh-hdr {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 13px clamp(18px, 4vw, 32px);
  background: rgba(6, 7, 11, .72);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.sh-lk-wrap { min-width: 0; }
.sh-lk { display: flex; align-items: center; gap: 11px; background: none; border: 0;
         padding: 0; cursor: pointer; min-width: 0; }
.sh-mark { width: 24px; height: 24px; display: block; flex: none; }
.sh-mark path { stroke: #b18cff; }
.sh-lockup-word { display: flex; align-items: baseline; gap: 6px; white-space: nowrap;
  font-family: var(--font-display, "Chakra Petch", sans-serif); font-weight: 700;
  font-size: 14px; letter-spacing: .14em; color: #e8eaf0; }
.sh-lockup-word em { font-style: normal; letter-spacing: .06em; color: #b18cff; }
.sh-lockup-suffix { font-weight: 600; letter-spacing: .06em; color: #6b7286; }
.sh-caret { font-size: 9px; line-height: 1; color: #6b7286; flex: none;
            transition: transform .18s ease; }
.sh-lk:hover .sh-caret { color: #c9cedd; }
.sh-lk[aria-expanded="true"] .sh-caret { color: #b18cff; transform: translateY(1px) rotate(180deg); }

/* menu — 310px panel anchored below the header at the page's left pad */
.sh-menu { position: absolute; top: calc(100% + 10px); left: clamp(18px, 4vw, 32px);
  width: 310px; background: rgba(9, 10, 16, .97);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9); z-index: 60; }
.sh-mi { display: flex; align-items: flex-start; gap: 12px; padding: 13px 16px;
  text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.sh-mi:last-child { border-bottom: none; }
.sh-mi:hover { background: rgba(255, 255, 255, .03); }
.sh-mi.on, .sh-mi.on:hover { background: rgba(177, 140, 255, .08); }
.sh-mi.ghost { opacity: .45; cursor: default; }
.sh-mi.ghost:hover { background: none; }
.sh-mi-dot { width: 7px; height: 7px; margin-top: 5px; flex: none; background: #b18cff; }
.sh-mi.on .sh-mi-dot { box-shadow: 0 0 10px rgba(177, 140, 255, .5); }
.sh-mi-dot.ghost { background: none; border: 1px dashed rgba(255, 255, 255, .4); }
.sh-mi-txt { display: flex; flex-direction: column; gap: 4px; }
.sh-mi-name { font-family: var(--font-mono, "JetBrains Mono", monospace); font-size: 11px;
              letter-spacing: .14em; color: #c9cedd; }
.sh-mi.on .sh-mi-name { color: #b18cff; }
.sh-mi-role { font-size: 12.5px; line-height: 1.45; color: #828aa0; }

.sh-right { display: flex; align-items: center; gap: 12px; }
.sh-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px;
  background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .14);
  font-family: var(--font-mono, monospace); font-size: 11px; letter-spacing: .1em;
  text-decoration: none; color: #c9cedd;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px)); }
.sh-chip .sh-dot { width: 6px; height: 6px; border-radius: 50%; background: #b18cff;
  animation: csPulse 2.4s infinite; }
.sh-chip.low { border-color: rgba(255, 180, 84, .5); color: #ffb454; }
.sh-chip.low .sh-dot { background: #ffb454; }
.sh-chip-ask { color: #ffb454; }
.sh-acct { font-family: var(--font-mono, monospace); font-size: 11px; letter-spacing: .12em;
  color: #9aa1b6; text-decoration: none; }

.sh-ftr { display: flex; align-items: center; justify-content: space-between;
  padding-top: 22px; padding-bottom: 34px; border-top: 1px solid rgba(255, 255, 255, .07);
  font-family: var(--font-mono, monospace); font-size: 10px; letter-spacing: .14em;
  color: #6b7286; position: relative; z-index: 1; }
.sh-ftr-links { display: flex; gap: 18px; }
.sh-ftr-links a { color: #828aa0; text-decoration: none; }
.sh-ftr-links a:hover { color: #c9cedd; }

/* ---- project nav row ---- */
.au-projnav { display: flex; align-items: center; gap: 22px; position: relative; z-index: 4;
  max-width: none; border-bottom: 1px solid rgba(255, 255, 255, .06);
  padding: 0 clamp(18px, 4vw, 32px); margin: 0; }
.au-proj-label { font-family: var(--font-mono, monospace); font-size: 9.5px;
  letter-spacing: .12em; color: #4d5468; padding: 14px 0 12px; white-space: nowrap; }
.au-proj-label em { font-style: normal; color: #9aa1b6; }
.au-proj-div { width: 1px; height: 16px; background: rgba(255, 255, 255, .09); flex: none; }
.au-tabs { display: flex; gap: 22px; }
.au-tab { font-family: var(--font-mono, monospace); font-size: 9.5px; letter-spacing: .14em;
  color: #6b7286; text-decoration: none; padding: 14px 2px 12px;
  border-bottom: 2px solid transparent; background: none; border-top: 0;
  border-left: 0; border-right: 0; cursor: pointer; }
.au-tab:hover { color: #c9cedd; }
.au-tab.on { color: #b18cff; border-bottom-color: #b18cff; }
.au-tab.ghost { opacity: .4; cursor: default; }
.au-tab.ghost:hover { color: #6b7286; }

/* ---- shared page furniture ---- */
.au-head { display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; }
.au-eyebrow { font-family: var(--font-mono, monospace); font-size: 10px;
  letter-spacing: .16em; color: #b18cff; }
.au-h1 { font-family: var(--font-sans, "Space Grotesk", sans-serif); font-weight: 500;
  font-size: 26px; margin: 10px 0 0; text-transform: none; color: #e8eaf0; }
.au-sub { font-size: 13.5px; color: #9aa1b6; margin: 10px 0 0; max-width: 520px; }
.au-sub a { color: #b18cff; }
.au-label { font-family: var(--font-mono, monospace); font-size: 9px;
  letter-spacing: .14em; color: #6b7286; }
.au-seclabel { font-family: var(--font-mono, monospace); font-size: 9px;
  letter-spacing: .14em; color: #6b7286; margin: 20px 0 10px; }

/* buttons — ref .ra-btn: notched, mono 600; primary is SOLID violet */
.au-btn { display: inline-block; cursor: pointer; text-decoration: none;
  font-family: var(--font-mono, monospace); font-weight: 600; font-size: 10.5px;
  letter-spacing: .1em; padding: 10px 16px; background: transparent;
  border: 1px solid rgba(255, 255, 255, .14); color: #c9cedd;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px)); }
.au-btn:hover { border-color: rgba(255, 255, 255, .3); color: #e8eaf0; }
.au-btn.primary { background: #b18cff; border-color: #b18cff; color: #0a0812; }
.au-btn.primary:hover { filter: brightness(1.1); }
.au-btn.on { background: rgba(177, 140, 255, .14); border-color: #b18cff; color: #b18cff; }
.au-btn.primary:disabled, .au-btn:disabled { opacity: .35; cursor: not-allowed; filter: none; }
.au-btn.wide { display: block; width: 100%; text-align: center; margin-top: 16px; }
.au-btn.sm { padding: 8px 13px; font-size: 9.5px; }

/* cards — ref .ra-card */
.notch { border: 1px solid rgba(255, 255, 255, .09);
  background: linear-gradient(rgba(255, 255, 255, .022), rgba(255, 255, 255, .004)); }
a.au-card { transition: background .15s ease; }
a.au-card:hover { background: rgba(255, 255, 255, .03); }

/* small chips — ref .ra-chip */
.au-chip { display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono, monospace); font-size: 8.5px; letter-spacing: .1em;
  padding: 3px 8px; border: 1px solid rgba(255, 255, 255, .14); color: #828aa0;
  background: none; cursor: pointer; }
.au-chip.ok { color: #7bd66f; border-color: rgba(123, 214, 111, .45); }
.au-chip.warn { color: #ffb454; border-color: rgba(255, 180, 84, .45); }
.au-chip.viol, .au-chip.ion, .au-chip.on { color: #b18cff; border-color: rgba(177, 140, 255, .45); }
.au-chip-div { width: 1px; height: 20px; background: rgba(255, 255, 255, .09); margin: 0 4px; }

/* ---- library ---- */
.au-chips { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; align-items: center; }
.au-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-top: 16px; }
@media (max-width: 920px) { .au-grid { grid-template-columns: 1fr; } }
.au-card { display: block; padding: 16px; text-decoration: none; color: inherit; }
.au-card[hidden] { display: none; }
.au-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.au-card-name { font-family: var(--font-mono, monospace); font-size: 11px; color: #e8eaf0; }
.au-mini-wave { display: flex; align-items: flex-end; gap: 2px; height: 22px;
  margin-top: 12px; opacity: .8; }
.au-mini-wave span { width: 3px; flex: none; background: rgba(177, 140, 255, .42); }
.au-proc-line { height: 22px; margin-top: 12px; display: flex; align-items: center;
  font-family: var(--font-mono, monospace); font-size: 9px; letter-spacing: .1em;
  color: #b18cff; animation: csPulse 1.4s infinite; }
.au-card-meta { display: flex; gap: 12px; margin-top: 12px;
  font-family: var(--font-mono, monospace); font-size: 9px; letter-spacing: .08em;
  color: #6b7286; flex-wrap: wrap; }
.au-card-brief { font-size: 12px; color: #828aa0; margin: 8px 0 0; }
.au-card-note { font-size: 12px; margin: 8px 0 0; }
.au-card.drop { display: flex; align-items: center; justify-content: center; min-height: 140px;
  border: 1px dashed rgba(255, 255, 255, .14); background: none; color: #6b7286;
  font-family: var(--font-mono, monospace); font-size: 10px; letter-spacing: .12em; }
.au-card.drop:hover { border-color: rgba(177, 140, 255, .4); color: #b18cff; }

/* ---- new batch ---- */
.au-new { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; margin-top: 24px;
  align-items: start; }
@media (max-width: 920px) { .au-new { grid-template-columns: 1fr; } }
.au-dropzone { border: 1px dashed rgba(177, 140, 255, .4); background: rgba(177, 140, 255, .03);
  padding: 26px; text-align: center; cursor: pointer; }
.au-dropzone.over { background: rgba(177, 140, 255, .1); }
.au-drop-line { font-family: var(--font-mono, monospace); font-size: 10.5px;
  letter-spacing: .12em; color: #c9cedd; }
.au-drop-line .link { color: #b18cff; text-decoration: underline; }
.au-drop-sub { font-family: var(--font-mono, monospace); font-size: 9px;
  letter-spacing: .08em; color: #6b7286; margin-top: 8px; }
.au-upload-card { margin-top: 12px; }
.au-upload-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.au-up-name { font-family: var(--font-mono, monospace); font-size: 11px; color: #e8eaf0; flex: 1; }
.au-up-size { font-family: var(--font-mono, monospace); font-size: 9px; color: #6b7286; }
.au-up-bar { width: 120px; height: 3px; background: rgba(255, 255, 255, .08); }
.au-up-fill { display: block; height: 3px; width: 0%; background: #b18cff; transition: width .2s; }
.au-up-fill.done { background: #7bd66f; }
.au-up-pct { font-family: var(--font-mono, monospace); font-size: 9px; color: #b18cff; }
.au-up-pct.done { color: #7bd66f; }
.au-presets { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
@media (max-width: 920px) { .au-presets { grid-template-columns: 1fr; } }
.au-preset { cursor: pointer; text-align: left; border: 1px solid rgba(255, 255, 255, .09);
  background: transparent; padding: 14px; color: inherit; font-family: inherit; }
.au-preset:hover { border-color: rgba(177, 140, 255, .4); }
.au-preset.on { border-color: #b18cff; background: rgba(177, 140, 255, .07); }
.au-preset-name { font-family: var(--font-display, "Chakra Petch", sans-serif);
  font-weight: 700; font-size: 13px; letter-spacing: .04em; color: #b18cff; }
.au-preset-desc { font-size: 12px; line-height: 1.5; color: #9aa1b6; margin-top: 6px; }
.au-brief { padding: 16px; }
.au-brief textarea { width: 100%; background: rgba(0, 0, 0, .3);
  border: 1px solid rgba(255, 255, 255, .09); color: #e8eaf0;
  font-size: 13.5px; line-height: 1.6; font-family: inherit; padding: 12px; resize: vertical; }
.au-brief-chips { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.au-notify { display: flex; gap: 8px; align-items: center; margin-top: 14px;
  font-size: 12.5px; color: #9aa1b6; }
.au-quote { padding: 18px; position: sticky; top: 20px; }
.au-quote .au-label { letter-spacing: .16em; }
.au-quote-rows { display: flex; flex-direction: column; gap: 9px; margin: 14px 0 0; padding: 0;
  font-family: var(--font-mono, monospace); font-size: 11px; color: #9aa1b6; }
.au-quote-rows div { display: flex; justify-content: space-between; }
.au-quote-rows dt { font-weight: 400; }
.au-quote-rows dd { margin: 0; color: #e8eaf0; }
.au-quote-total { border-top: 1px solid rgba(255, 255, 255, .09); padding-top: 9px; }
.au-quote-total dd { color: #b18cff !important; font-weight: 600; }
.au-quote-foot { font-family: var(--font-mono, monospace); font-size: 8.5px; line-height: 1.6;
  letter-spacing: .04em; color: #6b7286; margin-top: 10px; }
.au-quote-err { font-size: 12px; margin-top: 10px; }

/* ---- progress ---- */
.au-prog-list { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.au-prog-card { padding: 16px 18px; }
.au-prog-top { display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap; }
.au-prog-name { font-family: var(--font-mono, monospace); font-size: 11.5px; color: #e8eaf0; }
.au-prog-status { font-family: var(--font-mono, monospace); font-size: 9px;
  letter-spacing: .1em; color: #6b7286; }
.au-prog-status.running { color: #b18cff; animation: csPulse 1.4s infinite; }
.au-stages { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px;
  font-family: var(--font-mono, monospace); font-size: 9px; letter-spacing: .1em; }
.au-stage { color: #4d5468; }
.au-stage.done { color: #7bd66f; }
.au-stage.cur { color: #b18cff; animation: csPulse 1.4s infinite; }
.au-prog-note { font-family: var(--font-mono, monospace); font-size: 9.5px;
  color: #ffb454; margin-top: 10px; }
.au-prog-note a { color: #b18cff; text-decoration: none; }
.au-prog-note.red { color: #ff6b4a; }

/* ---- review ---- */
.au-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.au-ctl-note { font-family: var(--font-mono, monospace); font-size: 8.5px;
  letter-spacing: .06em; color: #6b7286; }
.au-banner { display: flex; align-items: center; gap: 10px; padding: 11px 16px;
  margin-top: 18px; font-family: var(--font-mono, monospace); font-size: 10px;
  letter-spacing: .08em; }
.au-banner + .au-banner { margin-top: 10px; }
.au-banner.green { color: #7bd66f; border: 1px solid rgba(123, 214, 111, .35);
  background: rgba(123, 214, 111, .05); }
.au-banner.amber { color: #ffb454; border: 1px solid rgba(255, 180, 84, .4);
  background: rgba(255, 180, 84, .05); }
.au-banner.violet, .au-banner.ion { color: #b18cff; border: 1px solid rgba(177, 140, 255, .4);
  background: rgba(177, 140, 255, .06); }
.au-banner.violet.pulse { animation: csPulse 1.6s infinite; }
.au-review { display: grid; grid-template-columns: 1fr 320px; gap: 16px; margin-top: 18px;
  align-items: start; }
.au-review > div { min-width: 0; }  /* the 600-bar waveform must shrink, not blow the rail */
@media (max-width: 920px) { .au-review { grid-template-columns: 1fr; } }
.au-wave-card { padding: 18px; }
.au-wave-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.au-legend { display: flex; gap: 10px; font-family: var(--font-mono, monospace);
  font-size: 8.5px; letter-spacing: .08em; }
.au-srcmap { position: relative; height: 20px; margin-top: 14px;
  background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .06); }
.au-srcmap .cut { position: absolute; top: 0; bottom: 0;
  background: rgba(255, 107, 74, .18); border: 1px solid rgba(255, 107, 74, .6); }
.au-srcmap .shot { position: absolute; top: 0; bottom: 0;
  background: rgba(91, 184, 255, .16); border: 1px solid rgba(91, 184, 255, .55); }
.au-srcmap .loopwin { position: absolute; top: -4px; bottom: -4px;
  border: 1px dashed rgba(177, 140, 255, .7); }
.au-wave { position: relative; display: flex; align-items: flex-end; gap: 1px;
  height: 74px; margin-top: 14px; overflow: hidden; }
.au-wave span { flex: 1 1 0; min-width: 0; background: rgba(177, 140, 255, .42); }
.au-ruler { display: flex; justify-content: space-between; margin-top: 8px;
  font-family: var(--font-mono, monospace); font-size: 8.5px; color: #4d5468; }
.au-transport { display: flex; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.au-seam-note { font-family: var(--font-mono, monospace); font-size: 8.5px;
  letter-spacing: .06em; color: #6b7286; }
.au-seam-live { font-family: var(--font-mono, monospace); font-size: 9px;
  letter-spacing: .08em; color: #b18cff; }
.au-seam-bars { display: none; align-items: flex-end; gap: 2px; height: 16px; }
.au-seam-bars.playing { display: inline-flex; }
.au-seam-bars span { width: 3px; height: 16px; background: #b18cff;
  animation: raPlay .5s infinite; }
.au-seam-bars span:nth-child(2) { animation-delay: .12s; }
.au-seam-bars span:nth-child(3) { animation-delay: .24s; }
.au-cuts { padding: 0; }
.au-cut-row { display: flex; align-items: center; gap: 14px; padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .06); flex-wrap: wrap; }
.au-cut-dot { width: 8px; height: 8px; flex: none; background: #ff6b4a; }
.au-cut-dot.amber { background: #ffb454; }
.au-cut-span { font-family: var(--font-mono, monospace); font-size: 10.5px;
  color: #e8eaf0; min-width: 120px; }
.au-cut-kind { font-family: var(--font-mono, monospace); font-size: 8.5px;
  letter-spacing: .1em; color: #b18cff; text-transform: uppercase; white-space: nowrap; }
.au-cut-note { font-size: 12.5px; color: #9aa1b6; flex: 1; min-width: 180px; }
.au-cut-restored { color: #b18cff; }
.au-verdict { display: inline-flex; gap: 8px; }
.au-vbtn { cursor: pointer; font-family: var(--font-mono, monospace); font-weight: 600;
  font-size: 9px; letter-spacing: .1em; padding: 6px 11px; background: transparent;
  border: 1px solid rgba(255, 255, 255, .14); color: #c9cedd;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px)); }
.au-vbtn:hover:not(:disabled) { border-color: rgba(255, 255, 255, .3); color: #e8eaf0; }
.au-vbtn.on { background: rgba(177, 140, 255, .14); border-color: #b18cff; color: #b18cff; }
.au-vbtn:disabled { opacity: .4; cursor: default; }
.au-cuts-foot { padding: 10px 16px; font-family: var(--font-mono, monospace);
  font-size: 8.5px; letter-spacing: .06em; color: #6b7286; margin: 0; }
.au-qc-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 920px) { .au-qc-row { grid-template-columns: 1fr 1fr; } }
.au-qc-tile { border: 1px solid rgba(255, 255, 255, .09); padding: 12px 14px; }
.au-qc-tile.green { border-color: rgba(123, 214, 111, .35); background: rgba(123, 214, 111, .05); }
.au-qc-tile.amber { border-color: rgba(255, 180, 84, .35); background: rgba(255, 180, 84, .05); }
.au-qc-lab { font-family: var(--font-mono, monospace); font-size: 8.5px;
  letter-spacing: .1em; color: #6b7286; }
.au-qc-val { font-family: var(--font-display, "Chakra Petch", sans-serif); font-weight: 700;
  font-size: 17px; margin-top: 6px; }
.au-qc-val small { font-size: 10px; }
.au-qc-tile.green .au-qc-val { color: #7bd66f; }
.au-qc-tile.amber .au-qc-val { color: #ffb454; }
.au-qc-note { font-family: var(--font-mono, monospace); font-size: 8.5px;
  color: #6b7286; margin-top: 4px; }
.au-trail { padding: 0; position: sticky; top: 20px; }
.au-trail-head { padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, .07);
  font-family: var(--font-mono, monospace); font-size: 9px; letter-spacing: .14em;
  color: #6b7286; }
.au-pass { padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.au-pass-head { display: flex; justify-content: space-between;
  font-family: var(--font-mono, monospace); font-size: 9.5px; }
.au-pass-head .lab { color: #b18cff; }
.au-pass-head .lab.green { color: #7bd66f; }
.au-pass-head .lab.amber { color: #ffb454; }
.au-pass-head .delta { color: #4d5468; }
.au-pass-body { font-size: 12px; line-height: 1.55; color: #9aa1b6; margin-top: 8px; }
.au-pass-body div { margin: 3px 0; }
.au-pass-retune, .au-pass-meas { font-family: var(--font-mono, monospace); font-size: 8.5px;
  color: #6b7286; margin-top: 6px; }
.au-manifesto { padding: 14px 16px; font-family: var(--font-mono, monospace);
  font-size: 8.5px; line-height: 1.7; letter-spacing: .04em; color: #6b7286; margin: 0; }
.au-trail-cta { padding: 0 16px 16px; }
.au-trail-cta .au-btn { width: 100%; text-align: center; margin: 0; display: block; }

/* ---- pack ---- */
.au-pack { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; margin-top: 24px;
  align-items: start; }
@media (max-width: 920px) { .au-pack { grid-template-columns: 1fr; } }
.au-pack-main { padding: 0; }
.au-pack-head { display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.au-pack-rows { list-style: none; margin: 0; padding: 0; }
.au-pack-rows li { display: flex; align-items: center; gap: 12px; padding: 11px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  font-family: var(--font-mono, monospace); font-size: 10.5px; color: #e8eaf0; }
.au-pack-rows li:last-child { border-bottom: none; }
.au-pack-glyph { flex: none; }
.au-pack-meta { margin-left: auto; color: #6b7286; font-size: 9px; }
.au-pack-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.au-ci { margin-top: 20px; padding: 16px; }
.au-code { margin: 10px 0 0; font-family: var(--font-mono, monospace); font-size: 10.5px;
  line-height: 1.7; color: #c9cedd; background: #08090e;
  border: 1px solid rgba(255, 255, 255, .07); padding: 12px 14px; overflow: auto; }

/* ---- gate pages ---- */
.au-gatewrap { max-width: 560px; margin: 12vh auto 0; }
.au-gatewrap .au-sub { margin-top: 16px; max-width: none; }

/* ============================================================
   video-only components — ref RefineVideo.dc.html .rv-* + inline
   ============================================================ */
.sh-lk-wrap { display: flex; align-items: center; gap: 12px; }
.sh-ea { cursor: default; }
.vd-costline { margin-left: auto; font-family: var(--font-mono, monospace); font-size: 9px;
  letter-spacing: .12em; color: #6b7286; white-space: nowrap; padding: 14px 0 12px; }
.vd-strip { display: flex; gap: 22px; flex-wrap: wrap; padding: 7px clamp(18px, 4vw, 32px);
  background: rgba(177, 140, 255, .04); border-bottom: 1px solid rgba(255, 255, 255, .05);
  font-family: var(--font-mono, monospace); font-size: 8.5px; letter-spacing: .1em;
  color: #6b7286; position: relative; z-index: 3; }
.vd-strip span:last-child { margin-left: auto; color: #4d5468; letter-spacing: .06em; }
.vd-foot { font-family: var(--font-mono, monospace); font-size: 8.5px; letter-spacing: .06em;
  color: #4d5468; margin: 14px 0 0; }
.au-prog-note.ion { color: #b18cff; }
.vd-cardcost { font-family: var(--font-mono, monospace); font-size: 9px; letter-spacing: .1em;
  color: #6b7286; }

/* placeholder frame — ref .rv-ph */
.vd-ph { background: repeating-linear-gradient(45deg, rgba(177, 140, 255, .07) 0 8px,
  rgba(255, 255, 255, .015) 8px 16px); border: 1px solid rgba(255, 255, 255, .08); }

/* library: 5-frame filmstrip of STILLS (never autoplaying video) */
.vd-strip5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; margin-top: 12px; }
.vd-strip5 img, .vd-strip5 span { display: block; width: 100%; aspect-ratio: 16 / 9;
  object-fit: cover; background: #08090e; }

/* new job */
.vd-sel { background: transparent; border: 0; color: #b18cff; font: inherit;
  letter-spacing: .1em; cursor: pointer; padding: 0; }
.vd-sel option { background: #08090e; color: #e8eaf0; }
.au-preset:disabled { opacity: .45; cursor: not-allowed; }
.au-preset:disabled:hover { border-color: rgba(255, 255, 255, .09); }
.au-preset-desc em { font-style: normal; color: #b18cff; }
.au-quote-note { font-family: var(--font-mono, monospace); font-size: 8.5px; line-height: 1.6;
  letter-spacing: .04em; color: #9aa1b6; margin-top: 10px; }

/* review: player + filmstrip — ref 21:9 placeholder, frame-step, pins */
.vd-player-card { padding: 18px; }
.vd-player { display: block; width: 100%; aspect-ratio: 16 / 9; margin-top: 14px;
  background: #000; }
.vd-player.vd-ph { display: flex; align-items: center; justify-content: center; padding: 24px;
  text-align: center; font-family: var(--font-mono, monospace); font-size: 9.5px;
  letter-spacing: .08em; color: #6b7286; }
.vd-tc { font-family: var(--font-mono, monospace); font-size: 10.5px; color: #e8eaf0;
  min-width: 70px; }
.vd-filmstrip { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; margin-top: 14px; }
@media (max-width: 920px) { .vd-filmstrip { grid-template-columns: repeat(4, 1fr); } }
.vd-fr { position: relative; aspect-ratio: 16 / 9; cursor: pointer; padding: 0; border: 0;
  background: #08090e; overflow: hidden; }
.vd-fr img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vd-fr:hover { outline: 1px solid rgba(177, 140, 255, .5); }
.vd-fr.on { outline: 2px solid #b18cff; outline-offset: 1px; }
.vd-pin { position: absolute; top: 4px; right: 4px; width: 9px; height: 9px; }
.vd-pin + .vd-pin { right: 16px; }
.vd-pin.danger { background: #ff6b4a; box-shadow: 0 0 8px rgba(255, 107, 74, .6); }
.vd-pin.warn { background: #ffb454; box-shadow: 0 0 8px rgba(255, 180, 84, .6); }

/* review: iteration compare — ref .rv-it */
.vd-iters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 920px) { .vd-iters { grid-template-columns: 1fr; } }
.vd-it { border: 1px solid rgba(255, 255, 255, .09); padding: 12px 14px; }
.vd-it.on { border-color: #b18cff; background: rgba(177, 140, 255, .06); }
.vd-it-head { display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono, monospace); font-size: 9.5px; }
.vd-it-head .lab { color: #b18cff; }
.vd-it-cost { font-family: var(--font-display, "Chakra Petch", sans-serif); font-weight: 700;
  font-size: 15px; margin-top: 8px; color: #e8eaf0; }
.vd-it-meta { font-family: var(--font-mono, monospace); font-size: 8.5px; letter-spacing: .08em;
  color: #6b7286; margin-top: 4px; }
.vd-it-gaps { font-size: 12px; color: #9aa1b6; margin-top: 6px; }
.vd-jump { background: none; border: 0; padding: 0; cursor: pointer; color: #b18cff;
  text-align: left; }
.vd-jump:hover { text-decoration: underline; }
.vd-why { color: #6b7286; }
.au-vbtn.disagree.on { background: rgba(255, 180, 84, .14); border-color: #ffb454; color: #ffb454; }
.vd-qc6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 920px) { .vd-qc6 { grid-template-columns: 1fr 1fr 1fr; } }
.vd-cost3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 920px) { .vd-cost3 { grid-template-columns: 1fr; } }
.vd-cost3 .au-qc-tile .au-qc-val { color: #b18cff; }
.vd-cost3 .au-qc-tile.green .au-qc-val { color: #7bd66f; }
.vd-cost3 .au-qc-tile.amber .au-qc-val { color: #ffb454; }

/* pack: provenance */
.vd-prov .au-quote-rows { margin-top: 12px; }
.vd-prov .au-btn { margin-top: 10px; }
.vd-mono { font-family: var(--font-mono, monospace); }

/* pack: the disclosure line is one long sentence — it must wrap inside its
   grid column, never widen it (a long <pre> pushed the settle card off the
   rail in the first headless shot). */
.au-pack > div { min-width: 0; }
.vd-prov .au-code { white-space: pre-wrap; word-break: break-word; }
.au-quote-rows dd { text-align: right; }
