:root {
  color-scheme: dark;
  --bg: #08080a;
  --panel: #111114;
  --panel-2: #17171b;
  --line: #2b2b31;
  --ink: #f5f1f2;
  --muted: #98939a;
  --red: #e7264f;
  --red-2: #83152e;
  --green: #58d39b;
  --amber: #f0b65d;
  --blue: #8facff;
  --shadow: 0 24px 80px rgba(0, 0, 0, .45);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: radial-gradient(circle at 55% -10%, #26101a 0, #0b0b0e 34rem, var(--bg) 70rem); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .16; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.14'/%3E%3C/svg%3E"); }

.hero { min-height: 160px; padding: 34px clamp(22px, 4vw, 68px); display: flex; align-items: center; flex-wrap: wrap; gap: 24px; border-bottom: 1px solid rgba(255,255,255,.07); }
.brand-mark { position: relative; width: 58px; height: 58px; flex: 0 0 auto; border: 1px solid #65303e; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 30px #310612, 0 0 36px rgba(231,38,79,.12); }
.brand-mark::before, .brand-mark::after, .brand-mark span { content: ""; display: block; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 16px var(--red); }
.brand-mark::before { transform: translate(-13px, -4px); }
.brand-mark::after { transform: translate(13px, -4px); }
.brand-mark span { transform: translateY(12px); opacity: .55; }
.hero-copy { min-width: 0; }
.eyebrow, .label { color: var(--red); letter-spacing: .2em; font-weight: 760; font-size: 11px; margin: 0 0 8px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 6px; font-size: clamp(30px, 4vw, 52px); line-height: 1; letter-spacing: -.04em; }
h1 em { color: var(--red); font-style: normal; font-weight: 350; }
.project-line { margin: 0; color: var(--muted); }
.hero-actions { margin-left: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.hero-actions select { max-width: 260px; }

main { width: min(1500px, calc(100% - 44px)); margin: 30px auto 70px; }
.setup-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.setup-card { min-height: 116px; display: flex; align-items: center; gap: 16px; padding: 19px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(145deg, rgba(24,24,29,.94), rgba(13,13,16,.92)); box-shadow: var(--shadow); }
.setup-card h2 { margin: 0 0 5px; font-size: 17px; }
.setup-card p:last-child { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.setup-card.ok { border-color: rgba(88,211,155,.34); }
.setup-card.warn { border-color: rgba(240,182,93,.38); }
.setup-card.bad { border-color: rgba(231,38,79,.42); }
.status-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: 0 0 auto; background: #22131a; color: var(--red); font: 700 12px ui-monospace, monospace; }
.grow { flex: 1; min-width: 0; }

.button, .mini-button, .icon-button { border: 1px solid #383840; color: var(--ink); background: #1b1b20; border-radius: 10px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; font-weight: 720; transition: transform .16s ease, border-color .16s ease, background .16s ease; }
.button { min-height: 42px; padding: 0 16px; font-size: 13px; }
.mini-button { padding: 8px 11px; font-size: 12px; }
.icon-button { width: 42px; height: 42px; }
.button:hover, .mini-button:hover, .icon-button:hover { transform: translateY(-1px); border-color: #66636c; }
.button.accent { border-color: var(--red); background: linear-gradient(135deg, var(--red), #9f1837); }
.mini-button.accent-mini { border-color: #ab2140; background: #40121f; }
.button.ghost { background: transparent; }
.button.wide { width: 100%; }
.icon-button.danger { color: #ff7592; }
.button.danger { background: #5f1329; border-color: #b72c55; color: #ffd9e4; }
.button.danger:hover { background: #7a1834; }
button:disabled { opacity: .38; cursor: not-allowed; transform: none !important; }

.project-notice { margin: 18px 0 -4px; padding: 13px 16px; border: 1px solid rgba(240,182,93,.35); border-radius: 12px; color: #e6c895; background: rgba(72,48,17,.25); font-size: 13px; line-height: 1.5; }
.remote-session-banner { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.remote-session-banner .mini-button { flex: 0 0 auto; }
.autopilot-panel { margin: 22px 0; padding: clamp(22px, 4vw, 38px); border: 1px solid rgba(231,38,79,.48); border-radius: 22px; background: radial-gradient(circle at 88% 10%, rgba(231,38,79,.23), transparent 34%), linear-gradient(145deg, #171116, #0f0f12); box-shadow: 0 24px 80px rgba(0,0,0,.42), inset 0 1px rgba(255,255,255,.03); }
.autopilot-head { display: flex; align-items: start; justify-content: space-between; gap: 24px; }
.autopilot-head h2 { margin: 0 0 9px; font-size: clamp(23px, 3vw, 36px); letter-spacing: -.03em; }
.autopilot-head p:not(.eyebrow) { max-width: 850px; margin: 0; color: #b8b1b8; line-height: 1.55; }
.autopilot-head > strong { min-width: 84px; color: #fff; font-size: clamp(34px, 5vw, 58px); line-height: 1; text-align: right; letter-spacing: -.05em; }
.autopilot-track { height: 10px; margin-top: 24px; background: #2b2025; }
.autopilot-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 18px; }
.autopilot-actions, .autopilot-outputs { display: flex; flex-wrap: wrap; gap: 8px; }
.autopilot-outputs:empty { display: none; }
.control-deck { margin: 22px 0 42px; padding: 22px; display: grid; grid-template-columns: minmax(280px, 1fr) minmax(620px, auto); align-items: center; gap: 26px; border: 1px solid var(--line); border-radius: 16px; background: rgba(17,17,20,.82); }
.progress-copy { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin-bottom: 11px; }
.progress-copy strong { display: block; font-size: 18px; }
.active-text { color: var(--muted); font-size: 13px; }
.progress-track { height: 6px; overflow: hidden; border-radius: 9px; background: #2a2529; }
.progress-track span { height: 100%; width: 0; display: block; border-radius: inherit; background: linear-gradient(90deg, var(--red-2), var(--red)); transition: width .4s ease; box-shadow: 0 0 18px rgba(231,38,79,.4); }
.primary-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.queue-groups { display: flex; align-items: end; justify-content: flex-end; flex-wrap: wrap; gap: 14px; }
.action-group { display: flex; flex-wrap: wrap; gap: 7px; }
.action-group > span { width: 100%; color: #77727a; font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.queue-controls { display: flex; gap: 7px; }

.workspace-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.workspace-head h2, .export-panel h2 { margin: 0; font-size: clamp(22px, 2.5vw, 32px); letter-spacing: -.025em; }
.filters { display: flex; gap: 9px; }
.search-box { min-width: 220px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.search-box input { width: 100%; height: 40px; border: 0; outline: 0; color: var(--ink); background: transparent; }
select, input, textarea { color: var(--ink); border: 1px solid #35353c; border-radius: 9px; background: #101013; }
select { min-height: 42px; padding: 0 36px 0 12px; }

.shot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.shot-card { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--panel); transition: border-color .18s ease, transform .18s ease; }
.shot-card:hover { transform: translateY(-2px); border-color: #484850; }
.shot-card.selected { border-color: rgba(231,38,79,.7); }
.shot-card.rendering { border-color: rgba(143,172,255,.6); box-shadow: 0 0 34px rgba(90,118,203,.12); }
.shot-card.failed { border-color: rgba(231,38,79,.62); }
.shot-media { aspect-ratio: 16/8.5; position: relative; overflow: hidden; background: #050506; }
.shot-media img, .shot-media video { width: 100%; height: 100%; display: block; object-fit: cover; }
.shot-media video { background: black; }
.empty-frame { width: 100%; height: 100%; padding: 28px; display: grid; place-content: center; text-align: center; background: radial-gradient(circle at 50% 20%, #281019, #09090b 65%); }
.empty-frame strong { color: #d7d0d3; font-size: 14px; }
.empty-frame span { max-width: 250px; margin-top: 8px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.shot-select { position: absolute; top: 12px; left: 12px; width: 22px; height: 22px; margin: 0; accent-color: var(--red); filter: drop-shadow(0 2px 5px #000); }
.shot-number { position: absolute; right: 12px; top: 12px; padding: 5px 8px; border-radius: 7px; background: rgba(0,0,0,.68); font: 700 12px ui-monospace, monospace; }
.status-pill { position: absolute; bottom: 11px; left: 11px; padding: 5px 8px; border: 1px solid rgba(255,255,255,.13); border-radius: 999px; color: #ddd; background: rgba(6,6,8,.72); backdrop-filter: blur(7px); font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.status-pill.completed, .status-pill.approved { color: var(--green); }
.status-pill.rendering { color: var(--blue); }
.status-pill.queued { color: var(--amber); }
.status-pill.failed, .status-pill.rejected { color: #ff7592; }
.shot-body { padding: 16px; }
.shot-title-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.shot-title-row h3 { margin: 0; font-size: 17px; }
.timecode { color: var(--muted); font: 600 11px ui-monospace, monospace; white-space: nowrap; }
.prompt-label { margin: 11px 0 2px; color: var(--red); font-size: 8px; font-weight: 800; letter-spacing: .15em; }
.motion { min-height: 55px; margin: 2px 0 12px; color: #bbb6bc; font-size: 12.5px; line-height: 1.52; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.motion.compact { min-height: 36px; -webkit-line-clamp: 2; color: #9e99a0; font-size: 11.5px; }
.shot-meta { display: flex; gap: 8px; margin: 0 0 13px; color: #88838a; font-size: 11px; }
.shot-meta span { padding: 4px 6px; border-radius: 5px; background: #19191e; }
.shot-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.shot-actions .mini-button { flex: 1; min-width: 72px; }
.shot-actions.primary-row { margin-bottom: 7px; }
.error-copy { margin: 12px 0 0; padding: 9px 10px; border-left: 2px solid var(--red); color: #ff9bae; background: #210d13; font-size: 11px; line-height: 1.45; }
.prompt-editor { margin-top: 12px; }
.prompt-editor textarea { width: 100%; min-height: 130px; resize: vertical; padding: 10px; line-height: 1.45; font-size: 12px; }
.prompt-editor .mini-button { margin-top: 7px; }

.export-panel { margin-top: 46px; padding: clamp(24px, 4vw, 42px); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 28px; border: 1px solid #452431; border-radius: 20px; background: radial-gradient(circle at 90% 0, rgba(125,18,47,.23), transparent 40%), #121014; box-shadow: var(--shadow); }
.export-panel > div:first-child > p:last-child { max-width: 750px; margin: 12px 0 0; color: var(--muted); line-height: 1.55; }
.export-actions { display: grid; gap: 9px; min-width: 215px; }
.export-status { grid-column: 1 / -1; }
.export-status p { margin: 10px 0; color: var(--muted); }
.log-panel { margin-top: 20px; border: 1px solid var(--line); border-radius: 14px; background: #0e0e11; }
.log-panel summary { padding: 16px; cursor: pointer; color: var(--muted); font-size: 13px; }
.log-panel pre { max-height: 360px; overflow: auto; margin: 0; padding: 0 16px 18px; color: #a8a4aa; white-space: pre-wrap; font: 11px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; }

.drawer { position: fixed; inset: 0; z-index: 30; pointer-events: none; visibility: hidden; }
.drawer.open { pointer-events: auto; visibility: visible; }
.drawer-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(0,0,0,.64); opacity: 0; transition: opacity .2s; }
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer-sheet { position: absolute; top: 0; right: 0; width: min(560px, 94vw); height: 100%; overflow-y: auto; padding: 28px; background: #101013; border-left: 1px solid var(--line); box-shadow: -30px 0 90px #000; transform: translateX(100%); transition: transform .24s ease; }
.drawer-sheet.wide-sheet { width: min(720px, 96vw); }
.drawer-sheet.quick-create-sheet { width: min(780px, 98vw); }
.drawer.open .drawer-sheet { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: start; margin-bottom: 24px; }
.drawer-head h2 { margin: 0; font-size: 28px; }
.close-button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: transparent; cursor: pointer; font-size: 26px; }
.drawer form > label:not(.check-line), .field-row label, .card-upload-grid label { display: grid; gap: 7px; margin: 0 0 16px; color: #cbc7cc; font-size: 12px; font-weight: 700; }
.drawer form input, .drawer form textarea, .drawer form select, .card-upload-grid input { width: 100%; padding: 11px; }
.field-help { margin: -8px 0 18px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.field-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.field-row.two { grid-template-columns: repeat(2, 1fr); }
.field-row.three { grid-template-columns: repeat(3, 1fr); }
.check-line { display: flex; gap: 10px; align-items: start; margin: 14px 0; color: #b9b4bb; font-size: 12px; line-height: 1.4; }
.check-line input { width: auto !important; margin-top: 2px; accent-color: var(--red); }
.reason-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 0 0 20px; }
.reason-grid label { display: flex; align-items: center; gap: 9px; min-height: 48px; padding: 10px; border: 1px solid #35353c; border-radius: 9px; color: #c8c3c9; background: #151519; cursor: pointer; font-size: 12px; line-height: 1.3; }
.reason-grid label:has(input:checked) { border-color: var(--red); background: rgba(231,38,79,.12); }
.reason-grid input { width: auto !important; accent-color: var(--red); }
.learning-note { margin: 9px 0 12px; padding: 9px 10px; border-left: 2px solid var(--amber); color: #d4bb8f; background: rgba(92,61,18,.16); font-size: 11px; line-height: 1.45; }
.smart-plan { margin: -3px 0 10px; color: var(--green); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.smart-plan.medium { color: var(--amber); }
.smart-plan.high { color: #ff849d; }
.model-list { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.model-file { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; padding: 10px 0; border-bottom: 1px solid #222228; }
.model-file strong { overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.model-file span, .model-file small { color: var(--muted); font-size: 11px; }
.model-file .ready { color: var(--green); }
.model-heading { margin-top: 18px; }
.session-list { margin-top: 24px; }
.session-card { margin: 10px 0; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: #151419; }
.session-card > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.session-card p { margin: 8px 0; color: #d5d0d6; font-size: 12px; }
.session-card small { display: block; margin-bottom: 12px; color: var(--muted); }
.session-status { padding: 3px 7px; border-radius: 999px; color: var(--green); background: rgba(67,196,139,.14); font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.session-status.idle { color: var(--amber); background: rgba(240,182,93,.14); }
.session-status.disconnected { color: #ff849d; background: rgba(231,38,79,.14); }
.drawer-intro { margin: -8px 0 24px; color: var(--muted); line-height: 1.6; }
.quick-step { display: flex; align-items: center; gap: 12px; margin: 28px 0 16px; padding-top: 22px; border-top: 1px solid #28252a; }
.quick-step:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.quick-step > span { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--red), #84142e); font-weight: 850; }
.quick-step strong, .quick-step small { display: block; }
.quick-step strong { font-size: 15px; }
.quick-step small { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.quick-advanced { margin: 24px 0; padding: 0 16px 16px; border: 1px solid var(--line); border-radius: 12px; background: #141317; }
.quick-advanced summary { margin: 0 -16px 17px; padding: 15px 16px; color: #d4cfd5; cursor: pointer; font-size: 12px; font-weight: 800; }
.quick-launch { min-height: 54px; font-size: 15px; }
.quick-time-note { margin-top: 12px; text-align: center; }
.notice { padding: 12px 14px; border: 1px solid rgba(240,182,93,.35); border-radius: 10px; color: #e3c28d; background: #251a0e; font-size: 12px; line-height: 1.5; }
.form-status { min-height: 20px; margin: 12px 0 0; color: var(--amber); font-size: 12px; }
.form-divider { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.asset-section { margin-top: 28px; padding-top: 23px; border-top: 1px solid var(--line); }
.asset-copy { color: var(--muted); font-size: 12px; line-height: 1.5; }
.reference-grid { min-height: 70px; margin: 10px 0 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.reference-tile { position: relative; overflow: hidden; padding: 0; border: 2px solid var(--line); border-radius: 10px; color: var(--ink); background: #09090c; cursor: pointer; }
.reference-tile:hover { border-color: #7a4559; }
.reference-tile.primary { border-color: var(--red); box-shadow: 0 0 0 2px rgba(231,38,79,.18); }
.reference-tile img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.reference-tile span { position: absolute; left: 6px; right: 6px; bottom: 6px; padding: 4px 5px; border-radius: 5px; color: #fff; background: rgba(8,8,11,.84); font-size: 8px; font-weight: 900; letter-spacing: .12em; text-align: center; }
.reference-grid p { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.reference-lock-status { margin: 8px 0 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: #151419; font-size: 11px; font-weight: 700; line-height: 1.45; }
.reference-lock-status.ok { border-color: rgba(67,196,139,.35); color: var(--green); background: rgba(29,87,63,.16); }
.reference-lock-status.warn { border-color: rgba(240,182,93,.35); color: var(--amber); background: rgba(92,61,18,.16); }
.upload-button { width: max-content; }
.upload-button input { display: none; }
.card-upload-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.drawer-footer-actions { margin-top: 25px; display: flex; flex-wrap: wrap; gap: 9px; }
.empty-results { color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; max-width: min(620px, calc(100vw - 32px)); padding: 12px 16px; border: 1px solid #603143; border-radius: 11px; color: var(--ink); background: #211118; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.hidden { display: none !important; }

@media (max-width: 1250px) {
  .setup-grid { grid-template-columns: repeat(2, 1fr); }
  .control-deck, .export-panel { grid-template-columns: 1fr; }
  .primary-actions { justify-content: flex-start; }
  .queue-groups { justify-content: flex-start; }
  .export-actions { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .hero { align-items: flex-start; flex-wrap: wrap; padding: 24px 20px; }
  .hero-actions { width: 100%; margin: 0; }
  .hero-actions > * { flex: 1 1 145px; }
  .hero-actions select { max-width: none; }
  main { width: min(100% - 24px, 1500px); }
  .setup-grid { grid-template-columns: 1fr; }
  .workspace-head { align-items: stretch; flex-direction: column; }
  .filters { flex-direction: column; }
  .search-box { min-width: 0; }
  .shot-grid { grid-template-columns: 1fr; }
  .export-actions { grid-template-columns: 1fr; }
  .field-row, .field-row.two, .field-row.three, .card-upload-grid { grid-template-columns: 1fr; }
  .reason-grid { grid-template-columns: 1fr; }
  .queue-groups { display: grid; }
  .reference-grid { grid-template-columns: repeat(3, 1fr); }
  .remote-session-banner { align-items: stretch; flex-direction: column; }
  .autopilot-head, .autopilot-footer { align-items: stretch; flex-direction: column; }
  .autopilot-head > strong { text-align: left; }
  .autopilot-actions .button, .autopilot-outputs .button { flex: 1 1 145px; }
}

    .queue-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.queue-row{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:14px 18px}.queue-row h3,.queue-row p{margin:0}.queue-row .button{flex-shrink:0}
    .artist-field{display:grid;gap:6px;min-width:0}.artist-field label{font-weight:650}.artist-field small,.artist-field label span{color:#c1bbc3}.artist-field-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
    .room-panel .field-error{color:#ff9eb1;margin:0}.room-panel [aria-invalid=true]{border-color:#ff809a}.tracking-actions{display:flex;gap:8px;margin-top:6px}.tracking-actions input{min-width:0}.tracking-actions button{flex-shrink:0}.tracking-actions button[hidden]{display:none}#copy-status:empty{display:none}
    @media(max-width:580px){.artist-field-pair{grid-template-columns:1fr}.artist-form .accent{width:100%}.tracking-actions{flex-direction:column}}
    .track-labels{display:flex;flex-wrap:wrap;gap:6px;list-style:none;padding:0;margin:10px 0}.track-labels li{border:1px solid var(--line);border-radius:999px;padding:3px 10px;color:#ddd4df;font-size:.875rem}
    .queue-filters{margin:0 0 16px}.queue-filters form{grid-template-columns:repeat(2,minmax(0,1fr))}.queue-filter-actions{grid-column:1/-1;display:flex;align-items:center;gap:12px}
    @media(max-width:580px){.queue-filters form{grid-template-columns:1fr}}
    .review-player iframe{display:block;width:100%;border:0;border-radius:12px;background:#0b0b0e}
    .review-player .review-video{height:auto;aspect-ratio:16/9;min-height:200px}
    .review-player p{font-size:.875rem;margin:8px 0 16px}
    .audio-source{min-width:0;margin:0;padding:14px;border:1px solid var(--line);border-radius:10px}.audio-source .artist-field+.artist-field{margin-top:14px}.upload-meter progress,.review-player audio{width:100%}#upload-status:empty{display:none}#upload-errors{color:#ff9eb1}
    nav{margin-left:auto} a{color:#ffa3b6} main{max-width:880px}
    .room-panel{padding:clamp(18px,4vw,36px);margin-bottom:16px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(145deg,#18181d,#0d0d10);box-shadow:var(--shadow);overflow-wrap:anywhere}
    .room-panel p{color:#c1bbc3}.room-panel form{display:grid;gap:16px}.room-panel label{display:grid;gap:6px}.room-panel input:not([type=checkbox]),.room-panel textarea,.room-panel select{border:1px solid #383840;border-radius:10px;padding:12px;background:#0b0b0e;color:var(--ink);width:100%}.room-panel .consent{display:flex;align-items:center}.room-panel .button{justify-self:start}.room-panel .room-status{color:var(--green)}.preserve{white-space:pre-wrap}

    .site-header{min-height:0;padding:24px max(20px,calc((100% - 1000px)/2));gap:14px}
    .site-header .brand-mark{width:42px;height:42px}.site-header h1{font-size:clamp(1.65rem,4vw,2.65rem);margin:0}
    .site-header nav{font-size:.9rem;white-space:nowrap}.site-header .eyebrow{margin-bottom:5px}
    main{width:min(880px,calc(100% - 36px));margin:28px auto 56px}
    .room-panel{padding:clamp(16px,4vw,30px)}.room-panel h2{line-height:1.15;margin-bottom:10px}
    .room-panel p{line-height:1.55}.room-panel label:not(.consent){display:block}
    .artist-field label span{font-size:.82em;font-weight:500;white-space:nowrap}
    .artist-form input,.artist-form select,.artist-form textarea{font-size:1rem}
    .artist-form textarea{resize:vertical}
    .audio-source,.track-details{display:grid;gap:14px;min-width:0;margin:0;padding:14px;border:1px solid var(--line);border-radius:12px}
    .audio-source legend,.track-details legend{font-size:1rem;font-weight:750;padding:0 7px}
    .audio-source p{margin:0;font-size:.9rem}.source-switch{display:flex;gap:8px;flex-wrap:wrap}
    .source-switch button{flex:1;min-height:44px}.source-switch [aria-pressed=true]{background:#51182a;border-color:#e44772}
    .audio-source [hidden],.tracking-panel [hidden],.artist-form [hidden]{display:none}
    .artist-form input[type=file]::file-selector-button{margin-right:10px;padding:6px 10px;border:1px solid #49404a;border-radius:7px;background:#29212a;color:var(--ink);cursor:pointer}
    .artist-form .consent{min-height:44px;gap:10px}.artist-form .consent input{width:18px;height:18px;flex:none;accent-color:#e7264f}
    .tracking-heading,.queue-row-actions,.desk-settings{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
    .tracking-heading{justify-content:space-between;align-items:flex-start}
    .tracking-heading p,.tracking-notice{margin-bottom:0}.tracking-heading p{font-weight:680}
    .submission-badge{display:inline-block;width:max-content;border:1px solid #675127;background:#30251b;color:#f5d196;padding:4px 9px;border-radius:999px;font-size:.8125rem;font-weight:700}
    .submission-badge.active{border-color:#594473;background:#2b2039;color:#e3c8ff}
    .submission-badge.done{border-color:#31634c;background:#173128;color:#a3efca}
    .manual-link{margin-top:12px}.manual-link summary{cursor:pointer;color:#ffa3b6;width:max-content}
    .manual-link label{margin-top:8px}.tracking-notice{font-size:.875rem}.queue-tabs .button{min-height:44px}
    @media(max-width:580px){
      main{width:calc(100% - 24px);margin-top:16px}
      .site-header{padding:15px 14px}.site-header nav{margin-left:0;flex-basis:100%}
      .room-panel .artist-form .accent,.tracking-panel .accent{width:100%;min-height:46px}
      .queue-row-actions{width:100%;justify-content:space-between}
      .audio-source,.track-details{padding:11px}
    }

    .submission-intro{margin:0 0 22px}.submission-intro h2{font-size:clamp(1.6rem,4vw,2.25rem);margin-bottom:8px}.submission-intro p{color:#c1bbc3;line-height:1.5;margin:0}
    .artist-form,.form-tile,.submission-grid,.tracking-grid,.reviewer-tiles{display:grid;gap:14px;min-width:0}
    .submission-grid,.reviewer-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
    .form-tile,.artist-form fieldset.form-tile,.reviewer-tiles .room-panel,.tracking-grid>.room-panel{margin:0;background:linear-gradient(150deg,#1e1a23,#141317 68%);border:1px solid #403540;border-radius:12px;padding:clamp(14px,3vw,23px)}
    .form-tile,.room-panel.submission-footer{align-content:start;gap:14px}
    .form-tile h3{margin:0;font-size:1.05rem}.form-tile legend{color:#f6e7f1}
    .form-tile .artist-field label:not(.consent){margin:0;display:block}
    .artist-form .field-error{color:#ff9eb1}.submission-footer .accent{justify-self:start}
    .tracking-grid{grid-template-columns:1fr 1fr;align-items:start}
    .tracking-grid .tracking-panel{border-color:#744054;background:linear-gradient(150deg,#291923,#17131b 68%)}
    .reviewer-tiles .queue-row{display:grid;align-content:space-between;gap:14px}
    .reviewer-tiles .queue-row-actions{justify-content:space-between}
    .source-switch .button{border-radius:8px}
    @media(max-width:640px){
      .submission-grid,.tracking-grid,.reviewer-tiles{grid-template-columns:minmax(0,1fr)}
      .submission-footer .accent{width:100%}
    }
    .live-label{color:#ff9fbe!important;font-weight:750;margin-bottom:6px}
    .live-session-heading,.live-entry,.live-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
    .live-session-heading,.live-entry{justify-content:space-between}.live-session-heading h3,.live-entry p{margin:0}
    .live-lineup{list-style:none;padding:0}.live-entry{padding:14px 18px}
    .live-actions form,.live-session-heading form{display:inline-block;margin:0}
    .public-queue-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
    .public-lineup,.public-history{list-style:none;padding:0;margin:0}
    .public-lineup li,.public-history li{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--line)}
    .public-lineup li:last-child,.public-history li:last-child{border-bottom:0}
    .public-lineup li>div{flex:1}.public-lineup li>div>div,.public-history span{color:#c1bbc3;font-size:.9rem}
    .live-review{margin-top:14px}.live-review summary{cursor:pointer;color:#ffa3b6}.live-review[open] summary{margin-bottom:12px}
    .queue-position{font-size:.85rem;font-weight:750;color:#ff9fbe}.public-history li{justify-content:space-between;flex-wrap:wrap}
    @media(max-width:640px){.public-queue-grid{grid-template-columns:minmax(0,1fr);gap:0}}
    .site-header .site-nav{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:0;white-space:normal}
    .site-nav a{display:inline-flex;align-items:center;min-height:40px;padding:5px 10px;border:1px solid transparent;border-radius:8px;text-decoration:none}
    .site-nav a:hover,.site-nav a[aria-current=page]{background:#2e1925;border-color:#613244;color:#ffd6e5}
    @media(max-width:640px){.site-header .site-nav{flex-basis:100%;margin-left:0}.site-nav a{min-height:44px}}
  