/* R35 customer request — local prototype (kai.claude design, 2026-10-24)
   One card style, depth 1. Status colours only on dots, text and 3px left lines. Two button styles. */
:root { --head: var(--s-8); --gutter: 40px; color-scheme: light; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 15px/24px var(--font-sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 100; background: var(--night-1); color: var(--surface); padding: 8px 16px; border-radius: var(--r-input); }
.skip:focus { top: 8px; }
.wrap { width: min(1200px, calc(100% - var(--gutter) * 2)); margin: 0 auto; }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.i.sm { width: 16px; height: 16px; }
.i.lg { width: 24px; height: 24px; }
:focus-visible { outline: 2px solid var(--gold-600); outline-offset: 2px; }

/* ---------- Header: the home page's compact header (64px frosted navy + gold hairline with small lights) ---------- */
.hd { position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--head); background: color-mix(in srgb, var(--night-0) 72%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: background-color var(--d-panel) var(--ease-out); }
.hd.solid { background: color-mix(in srgb, var(--night-0) 90%, transparent); }
.hd-in { height: 100%; display: flex; align-items: center; gap: 24px; }
.hd-logo { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.hd-logo img { width: 148px; height: auto; }
.hd-sep { width: 1px; height: 24px; background: color-mix(in srgb, var(--surface) 18%, transparent); }
.hd-name { color: var(--on-dark-muted); font: 700 12px/16px var(--font-sans); letter-spacing: .18em; text-transform: uppercase; }
.hd-nav { margin-left: auto; display: flex; align-items: center; gap: 32px; }
.hd-nav a { color: var(--on-dark-text); text-decoration: none; font: 400 14px/20px var(--font-sans); display: inline-flex; align-items: center; gap: 8px; opacity: .92; }
.hd-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: color-mix(in srgb, var(--gold-400) 70%, transparent); }
.hd-nav .i { width: 18px; height: 18px; }
.hd-lights { position: absolute; left: 0; right: 0; bottom: -1px; height: 7px; pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--gold-soft) 95%, transparent) 0 1.2px, color-mix(in srgb, var(--gold-400) 38%, transparent) 1.9px, transparent 3.6px) 22px 50% / 92px 7px repeat-x,
    linear-gradient(90deg, transparent, color-mix(in srgb, var(--gold-400) 55%, transparent) 16%, color-mix(in srgb, var(--gold-400) 55%, transparent) 84%, transparent) 0 50% / 100% 1px no-repeat; }

/* ---------- Night band (260px below the header; the body overlaps its last 64px) ---------- */
.band { position: relative; color: var(--on-dark-text); padding-top: var(--head); background: linear-gradient(180deg, var(--night-0) 0%, var(--night-1) 38%, var(--night-1) 70%, var(--night-2) 100%); overflow: hidden; }
.band-sky { position: absolute; inset: 0; pointer-events: none; }
.snow { position: absolute; inset: 0; }
.snow.s1 { background-image: radial-gradient(1.1px 1.1px at 18px 26px, color-mix(in srgb, var(--ice-white) 70%, transparent) 50%, transparent 52%), radial-gradient(1px 1px at 96px 80px, color-mix(in srgb, var(--ice-white) 50%, transparent) 50%, transparent 52%), radial-gradient(1.4px 1.4px at 150px 140px, color-mix(in srgb, var(--ice-white) 55%, transparent) 50%, transparent 52%); background-size: 190px 170px; opacity: .55; }
.snow.s2 { background-image: radial-gradient(1.6px 1.6px at 40px 60px, color-mix(in srgb, var(--ice-white) 60%, transparent) 50%, transparent 52%), radial-gradient(1.2px 1.2px at 210px 30px, color-mix(in srgb, var(--ice-white) 45%, transparent) 50%, transparent 52%); background-size: 260px 230px; background-position: 70px 20px; opacity: .45; }
.snow.s3 { background-image: radial-gradient(2.2px 2.2px at 120px 90px, color-mix(in srgb, var(--ice-white) 50%, transparent) 45%, transparent 60%), radial-gradient(1.8px 1.8px at 330px 190px, color-mix(in srgb, var(--ice-white) 38%, transparent) 45%, transparent 60%); background-size: 420px 260px; opacity: .5; filter: blur(.3px); }
.glow { position: absolute; border-radius: 50%; filter: blur(2px); }
.glow.g1 { width: 760px; height: 420px; right: -140px; top: -200px; background: radial-gradient(closest-side, color-mix(in srgb, var(--gold-400) 16%, transparent), transparent); }
.glow.g2 { width: 640px; height: 360px; left: -180px; bottom: -220px; background: radial-gradient(closest-side, color-mix(in srgb, var(--ice) 12%, transparent), transparent); }
.bokeh { position: absolute; border-radius: 50%; filter: blur(6px); }
.bokeh.b1 { width: 120px; height: 120px; right: max(2%, calc(50% - 760px)); top: 120px; background: radial-gradient(closest-side, color-mix(in srgb, var(--gold-soft) 20%, transparent), transparent); }
.bokeh.b2 { width: 64px; height: 64px; right: max(9%, calc(50% - 650px)); top: 70px; background: radial-gradient(closest-side, color-mix(in srgb, var(--gold-400) 22%, transparent), transparent); }
.bokeh.b3 { width: 90px; height: 90px; left: 49%; top: 66px; background: radial-gradient(closest-side, color-mix(in srgb, var(--ice) 14%, transparent), transparent); }
.bokeh.b4 { width: 44px; height: 44px; left: max(2%, calc(50% - 700px)); top: 210px; background: radial-gradient(closest-side, color-mix(in srgb, var(--gold-400) 20%, transparent), transparent); }
.glow.g3 { width: 1200px; height: 120px; left: 50%; bottom: -70px; transform: translateX(-50%); background: radial-gradient(closest-side, color-mix(in srgb, var(--gold-soft) 10%, transparent), transparent); }
.band-in { position: relative; height: 260px; display: grid; grid-template-columns: minmax(0, 760px) 400px; column-gap: 40px; align-content: start; padding-top: 36px; }
.band-copy { min-width: 0; }
.eyebrow { font: 700 12px/16px var(--font-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-400); }
.band h1 { margin-top: 12px; font: 700 40px/48px var(--font-sans); letter-spacing: -.02em; color: var(--surface); }
.band h1 em { font: italic 400 44px/48px var(--font-serif); letter-spacing: -.01em; color: var(--gold-soft); padding-right: 2px; }
.band-sub { margin-top: 8px; max-width: 720px; color: var(--on-dark-muted); font: 400 15px/24px var(--font-sans); }

/* Progress: three segments; the current one fills in gold (and shows sub-progress inside "Your materials"). */
.progress { align-self: start; margin-top: 52px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; counter-reset: seg; }
.progress li { display: grid; gap: 12px; min-width: 0; }
.seg-label { display: flex; align-items: baseline; gap: 8px; font: 400 13px/20px var(--font-sans); color: var(--on-dark-muted); white-space: nowrap; }
.seg-n { font: 700 12px/20px var(--font-sans); letter-spacing: .08em; color: var(--on-dark-muted); }
.seg-bar { position: relative; height: 3px; border-radius: 3px; background: color-mix(in srgb, var(--surface) 16%, transparent); overflow: hidden; }
.seg-bar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--gold-400); transition: none; }
.progress li.cur .seg-bar i { width: 100%; }
.progress[data-progress-ready=true] .seg-bar i { transition: width var(--d-ui) var(--ease-out); }
.progress li.done .seg-bar i { width: 100%; background: color-mix(in srgb, var(--ice-white) 82%, transparent); }
.progress li.done .seg-label, .progress li.cur .seg-label { color: var(--surface); }
.progress li.cur .seg-label { font-weight: 700; }
.progress li.cur .seg-n { color: var(--gold-400); }
.progress li.done .seg-n { color: color-mix(in srgb, var(--ice-white) 90%, transparent); }
.progress li.done { cursor: pointer; }
.progress li.done:hover .seg-label { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: color-mix(in srgb, var(--gold-400) 70%, transparent); }

/* ---------- Body ---------- */
.body { position: relative; z-index: 2; padding-bottom: 96px; }
.grid { display: grid; grid-template-columns: minmax(0, 760px) 400px; column-gap: 40px; align-items: start; margin-top: -64px; }
.main { min-width: 0; grid-column: 1; grid-row: 1; }
.side { grid-column: 2; grid-row: 1; position: sticky; top: 88px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: var(--e2); }
.stage { padding: 40px; outline: none; display: grid; }
.stage > .view { grid-area: 1 / 1; min-width: 0; }
.view[hidden] { display: none; }
.view.in { animation: view-in var(--d-ui) var(--ease-out) both; }
.view.out { animation: view-out var(--d-ui) ease both; pointer-events: none; }
.view.back.in { animation-name: view-in-back; }
.view.back.out { animation-name: view-out-back; }
@keyframes view-in { from { opacity: 0; transform: translateX(12px); } }
@keyframes view-in-back { from { opacity: 0; transform: translateX(-12px); } }
@keyframes view-out { to { opacity: 0; transform: translateX(-12px); } }
@keyframes view-out-back { to { opacity: 0; transform: translateX(12px); } }

.v-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.v-head h2 { font: 700 22px/30px var(--font-sans); color: var(--night-1); letter-spacing: -.005em; }
.v-lead { margin-top: 8px; color: var(--muted); font: 400 15px/24px var(--font-sans); max-width: 600px; }
.v-body { margin-top: 32px; }
.rule { height: 1px; background: var(--line); border: 0; margin: 32px 0; }

/* ---------- Buttons (exactly two styles) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 48px; padding: 0 22px; border-radius: var(--r-button); border: 1px solid transparent; font: 700 15px/20px var(--font-sans); text-decoration: none; white-space: nowrap; transition: background-color var(--d-micro) var(--ease-out), border-color var(--d-micro) var(--ease-out), box-shadow var(--d-micro) var(--ease-out); }
.btn.primary { background: var(--night-1); color: var(--surface); }
.btn.primary:hover { background: var(--night-2); }
.btn.secondary { background: var(--surface); color: var(--night-1); border-color: var(--line-strong); }
.btn.secondary:hover { border-color: var(--muted); background: var(--surface); }
.btn.small { height: 40px; padding: 0 16px; font-size: 14px; gap: 8px; }
.btn.icon { width: 40px; height: 40px; padding: 0; }
.btn.icon.xs { width: 32px; height: 32px; }
.btn[aria-disabled="true"] { cursor: progress; }
.btn .spin { display: none; }
.btn.locked .spin { display: block; animation: spin var(--d-hero) linear infinite; }
.btn.locked .go { display: none; }
.btn.locked.primary { background: var(--night-2); }
@keyframes spin { to { transform: rotate(360deg); } }
.actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.actions .note { color: var(--muted); font: 400 13px/20px var(--font-sans); margin-left: auto; text-align: right; max-width: 280px; }
.actions .note.err { color: var(--ink-2); }

/* ---------- Fields ---------- */
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { display: grid; gap: 8px; align-content: start; min-width: 0; }
.field > label, .lbl { font: 700 14px/20px var(--font-sans); color: var(--night-1); }
.field > label .opt { font-weight: 400; color: var(--muted); }
.ctl { position: relative; }
.inp { width: 100%; height: 48px; border: 1px solid var(--line-strong); border-radius: var(--r-button); background: var(--surface); padding: 0 44px 0 16px; font: 400 15px/24px var(--font-sans); color: var(--ink); transition: border-color var(--d-micro) var(--ease-out), box-shadow var(--d-micro) var(--ease-out); }
textarea.inp { height: auto; min-height: 72px; padding: 12px 16px; resize: vertical; display: block; }
.inp::placeholder { color: var(--muted); }
.inp:hover { border-color: var(--line-strong); }
.inp:focus { outline: none; border-color: var(--night-1); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold-600) 32%, transparent); }
.inp[aria-invalid="true"] { border-color: var(--error); box-shadow: inset 3px 0 0 var(--error); }
.ctl .tick { position: absolute; right: 14px; top: 14px; color: var(--ok); opacity: 0; transform: scale(.8); transition: opacity var(--d-micro) var(--ease-out), transform var(--d-micro) var(--ease-out); }
.ctl.ok .tick { opacity: 1; transform: none; }
.msg-err { display: flex; gap: 6px; align-items: center; color: var(--ink-2); font: 400 13px/20px var(--font-sans); }
.msg-err[hidden] { display: none; }
.msg-err .i { width: 16px; height: 16px; }
.privacy { margin-top: 24px; display: flex; align-items: center; gap: 8px; color: var(--muted); font: 400 13px/20px var(--font-sans); }
.privacy .i { width: 16px; height: 16px; }

/* ---------- Status (dot / icon + text) ---------- */
.st { display: inline-flex; align-items: center; gap: 8px; font: 400 13px/20px var(--font-sans); color: var(--muted); white-space: nowrap; }
.st::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.st.need { color: var(--ink-2); }
.st.need::before { background: var(--warn); }
.st.ok { color: var(--ink-2); }
.st.ok::before { display: none; }
.st.ok .i { width: 16px; height: 16px; color: var(--ok); stroke-width: 2.25; }
.st.err { color: var(--ink-2); white-space: normal; }
.st.err::before { display: none; }
.st.err .i { width: 16px; height: 16px; color: var(--error); }
.st.na::before { background: var(--line-strong); }

/* ---------- Your video panel ---------- */
.panel { overflow: hidden; }
.pbar { display: none; }
.poster { position: relative; aspect-ratio: 16 / 9; background: var(--night-1); overflow: hidden; }
.poster img, .poster video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.poster video { opacity: 0; transition: opacity var(--d-panel) var(--ease-out); }
.poster.playing video { opacity: 1; }
.poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 52%, color-mix(in srgb, var(--night-0) 50%, transparent)); pointer-events: none; }
.poster .btn { position: absolute; left: 16px; bottom: 16px; z-index: 2; }
.poster .btn .i { width: 16px; height: 16px; fill: currentColor; }
.pbody { padding: 24px 28px 28px; }
.p-eyebrow { font: 700 12px/16px var(--font-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-800); }
.p-title { margin-top: 8px; font: 700 18px/26px var(--font-sans); color: var(--night-1); letter-spacing: -.005em; }
.p-meta { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font: 400 13px/20px var(--font-sans); }
.p-meta span { display: inline-flex; align-items: center; gap: 6px; }
.p-meta .i { width: 16px; height: 16px; }
.checklist { margin: 20px -12px 0; display: grid; gap: 2px; }
.checklist .row { width: 100%; display: grid; grid-template-columns: 40px 1fr 20px; align-items: center; gap: 12px; padding: 10px 12px; border: 0; border-radius: var(--r-button); background: transparent; text-align: left; transition: background-color var(--d-micro) var(--ease-out); }
.checklist .row:hover:not([aria-disabled="true"]) { background: var(--paper); }
.checklist .row[aria-current="step"] { background: var(--paper); }
.checklist .row[aria-disabled="true"] { cursor: default; }
.checklist .ic { width: 40px; height: 40px; border-radius: var(--r-button); display: grid; place-items: center; background: var(--paper); color: var(--night-1); }
.checklist .row[aria-current="step"] .ic { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.checklist .row[aria-disabled="true"] .ic { color: var(--muted); }
.checklist .txt { display: grid; min-width: 0; }
.checklist .txt b { font: 700 14px/20px var(--font-sans); color: var(--night-1); }
.checklist .txt .st { white-space: normal; }
.checklist .chev { color: var(--muted); }
.checklist .row[aria-disabled="true"] .chev { visibility: hidden; }
.checklist .row.flash { animation: flash var(--d-micro) ease-out 2 alternate; }
@keyframes flash { to { background: color-mix(in srgb, var(--gold-600) 14%, transparent); } }
.next { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.next h3 { font: 700 13px/20px var(--font-sans); color: var(--night-1); }
.next ol { margin-top: 12px; display: grid; gap: 0; counter-reset: nx; }
.next li { counter-increment: nx; position: relative; display: grid; grid-template-columns: 20px 1fr; gap: 12px; padding-bottom: 12px; font: 400 13px/20px var(--font-sans); color: var(--ink); }
.next li:last-child { padding-bottom: 0; }
.next li::before { content: counter(nx); width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 700 12px/1 var(--font-sans); color: var(--night-1); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); position: relative; z-index: 1; }
.next li:not(:last-child)::after { content: ""; position: absolute; left: 9.5px; top: 22px; bottom: 2px; width: 1px; background: var(--line); }
.next li span { color: var(--muted); }

/* ---------- Upload tiles ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
.tile { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); transition: border-color var(--d-micro) var(--ease-out), box-shadow var(--d-micro) var(--ease-out); min-width: 0; }
.tile.err { box-shadow: inset 3px 0 0 var(--error); }
.tile.drag { border-color: var(--gold-600); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold-600) 25%, transparent); }
.t-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 16px 12px; }
.tile[data-asset-slot="vehicle-4"] .t-head { display: grid; grid-template-columns: minmax(0,1fr) auto; }
.tile[data-asset-slot="vehicle-4"] .t-head > p { grid-column: 1 / -1; margin: 0; }
.t-name { font: 700 14px/20px var(--font-sans); color: var(--night-1); }
.t-name .n { color: var(--gold-800); font-weight: 700; margin-right: 2px; }
.t-req { font: 400 12px/20px var(--font-sans); color: var(--muted); white-space: nowrap; }
.t-req.req { color: var(--night-1); font-weight: 700; }
.t-media { position: relative; margin: 0 8px; border-radius: var(--r-input); overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper); border: 0; padding: 0; width: calc(100% - 16px); display: block; }
.t-media .ref { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: .26; filter: grayscale(1) contrast(1.05); mix-blend-mode: multiply; transition: opacity var(--d-ui) var(--ease-out); }
.t-media .mine { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--paper); }
.t-media .mine.settle { animation: settle var(--d-panel) var(--ease-out) both; }
@keyframes settle { from { transform: scale(1.02); opacity: .4; } }
.t-media .cta { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 4px; color: var(--night-1); text-align: center; padding: 14px 18px 12px; border-radius: var(--r-button); background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--line); white-space: nowrap; transition: border-color var(--d-micro) var(--ease-out), transform var(--d-ui) var(--ease-out); }
.t-media .cta .bub { display: grid; place-items: center; margin-bottom: 2px; }
.t-media .cta .bub .i { width: 24px; height: 24px; }
.t-media .cta b { font: 700 13px/20px var(--font-sans); }
.t-media .cta .touch { display: none; }
.t-media .cta small { font: 400 12px/16px var(--font-sans); color: var(--muted); }
.t-media:hover .ref, .tile.drag .t-media .ref { opacity: .36; }
.t-media:hover .cta, .tile.drag .t-media .cta { border-color: var(--gold-600); }
.t-media:focus-visible { outline: 2px solid var(--gold-600); outline-offset: 2px; }
.t-media.has .cta { display: none; }
.t-media .busy { position: absolute; inset: 0; display: none; place-items: center; background: color-mix(in srgb, var(--surface) 60%, transparent); }
.t-media.busy .busy { display: grid; }
.t-media.busy .busy .i { animation: spin var(--d-hero) linear infinite; }
.t-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 16px; min-height: 56px; }
.t-foot .st { min-width: 0; }
.t-foot .btn { flex: none; }
.tiles.off .t-media { opacity: .45; }
.tiles.off .t-name, .tiles.off .t-req { color: var(--muted); }
.t-media > .audio-script { position: absolute; inset: 0; display: grid; align-content: center; gap: 12px; padding: 20px 22px; text-align: left; }
.audio-script .i { color: var(--night-1); }
.audio-script q { quotes: "\201C" "\201D"; font: italic 400 14px/22px var(--font-serif); color: var(--ink); }
.t-media.has .audio-script { display: none; }
.t-media .audio-done { position: absolute; inset: 0; display: none; place-content: center; justify-items: center; gap: 8px; color: var(--night-1); }
.t-media.has .audio-done { display: grid; }
.t-media.audio .cta { left: 0; right: 0; top: auto; bottom: 0; transform: none; border-radius: 0; border-width: 1px 0 0; padding: 12px 16px; grid-auto-flow: column; justify-content: start; align-items: center; gap: 12px; background: color-mix(in srgb, var(--surface) 75%, transparent); }
.t-media.audio .cta .bub { margin: 0; }
.t-media.audio .cta .bub .i { width: 20px; height: 20px; }
.t-media.audio .audio-script { bottom: 57px; }
.done-head h2 { font: 700 22px/30px var(--font-sans); color: var(--night-1); outline: none; }
.v-head h2 { outline: none; }
/* trial: AINERGY card heading style (brand.css .ainergy-card h2 = Georgia 400) */
.v-head h2, .done-head h2 { font: 400 28px/36px var(--font-serif); letter-spacing: -.01em; }
.p-title { font: 400 22px/28px var(--font-serif); letter-spacing: -.005em; }

/* Toggle (People) */
.toggle { display: flex; align-items: flex-start; gap: 16px; padding: 20px 0 0; }
.switch { position: relative; flex: none; width: 48px; height: 28px; border-radius: var(--r-media); border: 0; padding: 0; background: var(--line-strong); transition: background-color var(--d-ui) var(--ease-out); }
.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 2px color-mix(in srgb, var(--night-1) 20%, transparent); transition: transform var(--d-ui) var(--ease-out); }
.switch[aria-checked="true"] { background: var(--night-1); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }
.toggle .lbl { display: block; }
.toggle p { margin-top: 4px; color: var(--muted); font: 400 13px/20px var(--font-sans); }
.toggle .switch.is-required:disabled{opacity:.45;cursor:not-allowed}
.toggle .people-required-lock{display:flex;align-items:center;gap:6px;color:var(--ink);font-weight:600}
.toggle .people-required-lock svg{width:14px;height:14px;flex:none}
.asset-panel[data-asset-panel="person"] > [data-r35-action="back"]{margin-top:20px}

/* ---------- Message: film strip + five groups ---------- */
.film-dock { position: sticky; top: 64px; z-index: 5; background: var(--surface); padding: 16px 0 8px; margin: 16px 0 -8px; }
.film { background: var(--night-1); border-radius: var(--r-media); padding: 12px 12px 12px; color: var(--on-dark-muted); }
.film-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 0 2px 12px; }
.film-head b { font: 700 12px/16px var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); }
.film-head span { font: 400 12px/16px var(--font-sans); color: var(--on-dark-muted); }
.film-head span.on { color: var(--gold-soft); }
.frames { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
.frames li { min-width: 0; }
.frames .fr { transition: opacity var(--d-ui) var(--ease-out), box-shadow var(--d-ui) var(--ease-out); }
.frames .fr { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-input); overflow: hidden; background: var(--night-0); box-shadow: 0 0 0 1px color-mix(in srgb, var(--surface) 8%, transparent); transition: box-shadow var(--d-ui) var(--ease-out); }
.frames .fr img { width: 100%; height: 100%; object-fit: cover; }
.frames figcaption { margin-top: 6px; display: grid; font: 400 12px/14px var(--font-sans); color: var(--on-dark-muted); }
.frames figcaption b { font-weight: 700; color: var(--on-dark-muted); }
.film.focus li .fr { opacity: .38; }
.film.focus li.on .fr { opacity: 1; }
.film.focus li.on .fr { box-shadow: 0 0 0 2px var(--gold-400); }
.film.focus li.on figcaption b { color: var(--gold-soft); }
.groups { margin-top: 32px; }
.grp { padding: 24px 0; border-top: 1px solid var(--line); }
.grp:first-child { border-top: 0; padding-top: 0; }
.grp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 12px; }
.grp-head h3 { font: 700 16px/24px var(--font-sans); color: var(--night-1); }
.grp-foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-top: 12px; }
.where { flex: none; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font: 400 13px/20px var(--font-sans); white-space: nowrap; }
.where .i { width: 16px; height: 16px; }
.grp .inp { padding-right: 16px; }
.chip { display: inline-flex; align-items: flex-start; gap: 6px; max-width: 100%; min-height: 28px; padding: 4px 12px; border: 0; border-radius: var(--r-input); background: var(--paper); color: var(--ink); font: 400 13px/20px var(--font-sans); text-align: left; transition: background-color var(--d-micro) var(--ease-out); }
.chip:hover { background: var(--line); }
.chip .k { color: var(--muted); white-space: nowrap; }
.chip .i { width: 16px; height: 16px; margin-top: 2px; color: var(--ok); display: none; }
.chip[aria-pressed="true"] .i { display: block; }
.chip[aria-pressed="true"] { cursor: default; }
.opt { margin-top: 8px; border-top: 1px solid var(--line); }
.opt summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 20px 0 0; }
.opt summary::-webkit-details-marker { display: none; }
.opt summary .i { color: var(--night-1); transition: transform var(--d-ui) var(--ease-out); }
.opt[open] summary .chev { transform: rotate(180deg); }
.opt summary h3 { font: 700 16px/24px var(--font-sans); color: var(--night-1); }
.opt summary span { margin-left: auto; color: var(--muted); font: 400 13px/20px var(--font-sans); }
.opt-list { margin-top: 20px; display: grid; gap: 16px; }
.opt-row { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: start; }
.scene-tag { margin-top: 32px; display: inline-flex; justify-content: center; height: 24px; align-items: center; border-radius: var(--r-input); background: var(--night-1); color: var(--surface); font: 700 12px/1 var(--font-sans); letter-spacing: .04em; }
.opt-row .field { gap: 6px; }
.opt-row .field > label { font-size: 13px; }

/* ---------- Review ---------- */
.rv { padding: 24px 0; border-top: 1px solid var(--line); }
.rv:first-of-type { border-top: 0; padding-top: 0; }
.rv-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.rv-head .ic { width: 36px; height: 36px; border-radius: var(--r-input); display: grid; place-items: center; background: var(--paper); color: var(--night-1); }
.rv-head h3 { font: 700 16px/24px var(--font-sans); color: var(--night-1); }
.edit { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--night-1); font: 700 14px/20px var(--font-sans); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-strong); }
.edit:hover { text-decoration-color: var(--gold-600); }
.edit .i { width: 16px; height: 16px; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 10px 24px; padding-left: 48px; }
.kv dt { color: var(--muted); font: 400 14px/22px var(--font-sans); }
.kv dd { color: var(--ink); font: 400 14px/22px var(--font-sans); overflow-wrap: anywhere; }
.kv dd.missing { color: var(--ink-2); }
.thumbs { padding-left: 48px; display: grid; grid-template-columns: repeat(8, 64px); gap: 8px; }
.thumb { position: relative; width: 64px; aspect-ratio: 4 / 3; border-radius: var(--r-input); overflow: hidden; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb b { position: absolute; left: 4px; top: 4px; min-width: 16px; height: 16px; border-radius: var(--r-input); display: grid; place-items: center; background: color-mix(in srgb, var(--night-1) 82%, transparent); color: var(--surface); font: 700 12px/1 var(--font-sans); }
.thumb.empty b { background: transparent; color: var(--muted); left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 12px; }
.thumbs-note { padding-left: 48px; margin-top: 12px; color: var(--muted); font: 400 13px/20px var(--font-sans); }
.check { margin-top: 8px; display: flex; gap: 12px; align-items: flex-start; padding: 20px 0 0; border-top: 1px solid var(--line); font: 400 14px/22px var(--font-sans); color: var(--ink); cursor: pointer; }
.check input { appearance: none; flex: none; width: 20px; height: 20px; margin: 1px 0 0; border-radius: var(--r-input); border: 1.5px solid var(--muted); background: var(--surface); display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--night-1); border-color: var(--night-1); }
.check input:checked::after { content: ""; width: 12px; height: 6px; border: solid var(--surface); border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.check.err input { border-color: var(--error); }

/* ---------- Submitted ---------- */
.done-head { display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: center; }
.done-mark { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: var(--ok); background: var(--surface); box-shadow: inset 0 0 0 2px var(--ok); }
.done-mark .i { width: 28px; height: 28px; stroke-width: 2.25; }
.done-head p { color: var(--muted); font: 400 13px/20px var(--font-sans); }
.refline { margin-top: 28px; display: flex; align-items: center; gap: 16px; padding: 16px 16px 16px 20px; border-radius: var(--r-media); background: var(--paper); }
.refline .lbl { font: 400 13px/20px var(--font-sans); color: var(--muted); }
.refline code { font: 700 18px/24px var(--font-sans); letter-spacing: .06em; color: var(--night-1); }
.refline .btn { margin-left: auto; }
.timeline { margin-top: 16px; display: grid; }
.timeline li { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 16px; padding-bottom: 20px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 13.5px; top: 30px; bottom: 2px; width: 1px; background: var(--line); }
.timeline li.done:not(:last-child)::after { background: var(--ok); }
.tl-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-strong); color: var(--muted); font: 700 12px/1 var(--font-sans); }
.timeline li.done .tl-dot { background: var(--ok); box-shadow: none; color: var(--surface); }
.timeline li.done .tl-dot .i { width: 16px; height: 16px; stroke-width: 2.5; }
.timeline li.cur .tl-dot { box-shadow: inset 0 0 0 2px var(--gold-600); color: var(--night-1); }
.timeline b { display: block; font: 700 15px/24px var(--font-sans); color: var(--night-1); }
.timeline span { color: var(--muted); font: 400 13px/20px var(--font-sans); }
.sub-h { font: 700 16px/24px var(--font-sans); color: var(--night-1); }
.files { margin-top: 16px; display: grid; gap: 14px; }
.file { display: grid; grid-template-columns: 36px 1fr auto; gap: 4px 12px; align-items: center; }
.file .ic { grid-row: span 2; width: 36px; height: 36px; border-radius: var(--r-input); background: var(--paper); color: var(--night-1); display: grid; place-items: center; }
.file .nm { font: 700 13px/20px var(--font-sans); color: var(--ink); overflow-wrap: anywhere; }
.file .pct { font: 400 13px/20px var(--font-sans); color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.file .pct.ok { color: var(--ink-2); }
.file .bar { grid-column: 2 / 4; height: 4px; border-radius: var(--r-input); background: var(--paper); overflow: hidden; }
.file .bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--night-1); transition: width var(--d-ui) linear; }
.file.ok .bar i { background: var(--ok); }
.done-foot { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 24px; }
.done-foot p { color: var(--muted); font: 400 13px/20px var(--font-sans); }
.done-foot p b { color: var(--ink); font-weight: 700; }

/* ---------- Modals ---------- */
.modal { border: 0; padding: 0; background: transparent; max-width: calc(100vw - 32px); max-height: calc(100dvh - 48px); overflow: visible; color: var(--ink); }
.modal::backdrop { background: color-mix(in srgb, var(--night-0) 62%, transparent); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal[open] { animation: modal-in var(--d-ui) var(--ease-out) both; }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px); } }
.m-card { position: relative; width: 960px; max-width: 100%; max-height: calc(100dvh - 48px); overflow: auto; background: var(--surface); border-radius: var(--r-panel); box-shadow: 0 24px 64px color-mix(in srgb, var(--night-0) 30%, transparent); padding: 36px 40px 40px; }
.m-close { position: absolute; right: 20px; top: 20px; }
.m-card h2 { font: 400 28px/36px var(--font-serif); letter-spacing: -.01em; color: var(--night-1); padding-right: 56px; outline: none; }
.m-card .v-lead { max-width: 720px; }
.rules { margin-top: 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rules li { display: flex; align-items: center; gap: 12px; font: 700 14px/20px var(--font-sans); color: var(--night-1); }
.rules .ic { width: 40px; height: 40px; flex: none; border-radius: var(--r-button); display: grid; place-items: center; background: var(--paper); color: var(--night-1); }
.dodont { margin-top: 28px; display: grid; grid-template-columns: 340px 1fr; gap: 32px; }
.dd { padding-left: 20px; box-shadow: inset 3px 0 0 var(--ok); }
.dd.avoid { box-shadow: inset 3px 0 0 var(--error); }
.dd h3 { display: flex; align-items: center; gap: 8px; font: 700 16px/24px var(--font-sans); color: var(--ink-2); }
.dd.avoid h3 { color: var(--ink-2); }
.dd h3 .i { width: 18px; height: 18px; }
.dd .big { margin-top: 14px; border-radius: var(--r-button); overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper); }
.dd .big img { width: 100%; height: 100%; object-fit: cover; }
.dd ul.why { margin-top: 14px; display: grid; gap: 8px; }
.dd ul.why li { display: grid; grid-template-columns: 16px 1fr; gap: 12px; font: 400 14px/22px var(--font-sans); color: var(--ink); }
.dd ul.why .i { width: 16px; height: 16px; margin-top: 3px; color: var(--ok); stroke-width: 2.25; }
.bad { margin-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 12px; }
.bad figure { min-width: 0; }
.bad .ph { aspect-ratio: 4 / 3; border-radius: var(--r-input); overflow: hidden; background: var(--paper); }
.bad .ph img { width: 100%; height: 100%; object-fit: cover; }
.bad figcaption { margin-top: 8px; display: grid; grid-template-columns: 16px 1fr; gap: 6px; font: 400 13px/18px var(--font-sans); color: var(--ink); }
.bad figcaption .i { width: 16px; height: 16px; color: var(--error); margin-top: 1px; }
.m-foot { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--muted); font: 400 13px/20px var(--font-sans); }
.player .m-card { padding: 0; background: var(--night-0); overflow: hidden; }
.player video { width: 100%; aspect-ratio: 16 / 9; background: var(--night-0); }
.player .m-close { z-index: 2; }
.player .cap { background: var(--surface); padding: 16px 24px; display: flex; justify-content: space-between; gap: 16px; font: 400 13px/20px var(--font-sans); color: var(--muted); }
.player .cap b { color: var(--night-1); font-size: 15px; }

/* ---------- Mobile action bar ---------- */
.abar { display: none; }

/* ---------- ≤1023px: one column, collapsible "Your video" bar, fixed bottom actions ---------- */
@media (max-width: 1023px) {
  :root { --gutter: 24px; }
  .band-in { grid-template-columns: 1fr; height: auto; padding-top: 28px; padding-bottom: 72px; }
  .progress { margin-top: 24px; }
  .grid { grid-template-columns: minmax(0, 1fr); margin-top: -40px; row-gap: 16px; }
  .side { grid-column: 1; grid-row: 1; position: relative; top: auto; z-index: 3; }
  .main { grid-row: 2; }
  .pbar { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; width: 100%; padding: 12px 14px 12px 12px; border: 0; background: transparent; text-align: left; }
  .pbar .th { width: 64px; aspect-ratio: 16 / 9; border-radius: var(--r-input); overflow: hidden; background: var(--night-1); }
  .pbar .th img { width: 100%; height: 100%; object-fit: cover; }
  .pbar .tt { min-width: 0; display: grid; }
  .pbar .tt small { font: 700 12px/14px var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-800); }
  .pbar .tt b { font: 700 13px/18px var(--font-sans); color: var(--night-1); }
  .pbar .pr { display: flex; align-items: center; gap: 8px; color: var(--muted); font: 700 12px/16px var(--font-sans); }
  .pbar .pr .i { transition: transform var(--d-ui) var(--ease-out); color: var(--night-1); }
  .panel[data-open="true"] .pbar .pr .i { transform: rotate(180deg); }
  .panel:not([data-open="true"]) .pwrap { display: none; }
  .panel[data-open="true"] .pbar { border-bottom: 1px solid var(--line); }
  .stage { padding: 28px 24px; }
  .actions { display: none; }
  .abar { display: flex; position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 96%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px color-mix(in srgb, var(--night-1) 6%, transparent); }
  .abar .btn.primary { flex: 1; }
  .abar[hidden] { display: none; }
  .body { padding-bottom: 120px; }
  .film-dock { top: 64px; }
  .dodont { grid-template-columns: 1fr; }
  .rules { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .hd-name, .hd-sep, .hd-templates { display: none; }
  .hd-logo img { width: 112px; }
  .hd-nav { gap: 20px; }
  .hd-help .help-label { display: none; }
  .band h1 { font-size: 30px; line-height: 36px; }
  .band h1 em { font-size: 33px; line-height: 36px; }
  .band-sub { font-size: 14px; line-height: 22px; }
  .band-in { padding-top: 24px; padding-bottom: 64px; }
  .progress { gap: 8px; }
  .seg-label { font-size: 12px; gap: 6px; white-space: normal; line-height: 16px; align-items: flex-start; }
  .seg-n { line-height: 16px; }
  .grid { margin-top: -40px; }
  .stage { padding: 24px 18px; }
  .v-head { flex-wrap: wrap; gap: 12px; }
  .v-head h2 { font-size: 20px; line-height: 28px; }
  .v-lead { font-size: 14px; line-height: 22px; }
  .v-body { margin-top: 24px; }
  .fields { grid-template-columns: 1fr; gap: 20px; }
  .tiles { grid-template-columns: 1fr; gap: 12px; }
  .tile { grid-row: auto; grid-template-rows: auto 1fr; grid-template-columns: 132px minmax(0, 1fr); grid-template-areas: "media head" "media foot"; align-items: start; }
  .t-head { grid-area: head; flex-direction: column; gap: 2px; padding: 12px 12px 0 14px; }
  .t-name { font-size: 14px; line-height: 20px; }
  .t-req { line-height: 16px; }
  .t-media { grid-area: media; margin: 8px 0 8px 8px; width: 124px; align-self: center; }
  .t-media .cta { gap: 0; padding: 8px 10px 6px; }
  .t-media .cta .bub .i { width: 20px; height: 20px; }
  .t-media .cta small, .t-media .cta .desk { display: none; }
  .t-media .cta .touch { display: inline; }
  .t-media .cta b { font-size: 12px; line-height: 16px; }
  .t-foot { grid-area: foot; padding: 6px 10px 12px 14px; min-height: 0; gap: 8px; align-self: end; }
  .t-foot .st { font-size: 12px; line-height: 16px; white-space: normal; }
  .tile.wide { grid-template-columns: 1fr; grid-template-areas: "head" "media" "foot"; }
  .tile.wide .t-head { flex-direction: row; justify-content: space-between; padding-bottom: 8px; }
  .tile.wide .t-media { width: calc(100% - 16px); margin: 0 8px; aspect-ratio: auto; height: 236px; }
  .tile.wide .t-foot { padding-top: 12px; }
  .audio-script { padding: 16px 16px; }
  .audio-script q { font-size: 13px; line-height: 20px; }
  .film-dock { position: static; padding: 0; margin: 24px 0 0; }
  .film { padding: 10px 10px 8px; }
  .frames { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 12px; }
  .grp-foot { flex-direction: column; gap: 8px; }
  .opt summary { flex-wrap: wrap; }
  .opt summary span { margin-left: 32px; width: 100%; }
  .opt-row { grid-template-columns: 1fr; gap: 6px; }
  .scene-tag { margin-top: 0; justify-self: start; padding: 0 8px; }
  .kv { grid-template-columns: 1fr; gap: 2px; padding-left: 0; }
  .kv dd { margin-bottom: 12px; }
  .thumbs { padding-left: 0; grid-template-columns: repeat(4, 1fr); }
  .thumb { width: 100%; }
  .thumbs-note { padding-left: 0; }
  .refline { flex-wrap: wrap; gap: 4px 12px; }
  .refline code { font-size: 16px; }
  .done-foot { flex-direction: column; align-items: stretch; gap: 12px; }
  .m-card { padding: 28px 18px 24px; border-radius: var(--r-card); }
  .m-close { right: 12px; top: 12px; }
  .rules { gap: 12px; }
  .rules li { font-size: 13px; gap: 12px; }
  .rules .ic { width: 36px; height: 36px; }
  .bad { grid-template-columns: repeat(2, 1fr); }
  .dd .big { max-width: 300px; }
  .modal { max-width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .m-card { max-height: calc(100dvh - 16px); }
}

/* Reduced motion: every change is immediate. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* Operational controls use the prototype DOM, without the old clay stylesheets. */
:focus-visible { outline: none; box-shadow: var(--focus-on-light); }
.band :focus-visible,.hd :focus-visible { box-shadow: var(--focus-on-dark); }
.inp:focus-visible { box-shadow: var(--focus-on-light); }
.stage h2:focus { outline: none; box-shadow: none; }
.progress button { padding: 0; border: 0; background: transparent; color: inherit; text-align: left; display: grid; gap: 10px; width: 100%; }
.progress button:disabled { cursor: default; opacity: 1; }
.btn:disabled { cursor: progress; opacity: 1; }
.btn.primary:disabled { background: var(--night-2); color: var(--on-dark-text); }
.stage > form { min-width: 0; }
.form-step { min-width: 0; }
.stage > .view,.form-step { animation: none; opacity: 1; transform: none; }
.field > span:first-child { font-weight: 700; color: var(--ink); }
.field input:not([type=checkbox]),.field textarea,.field select { width: 100%; }
.asset-requirement-badge { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 8px; }
.grp { border-left: 0; border-right: 0; border-bottom: 0; min-width: 0; margin: 0; }
.grp > legend { width: 100%; padding: 0; }
.grp > .field > span:first-child { font-size: 13px; font-weight: 400; color: var(--muted); }
.grp > .asset-input-status { display: none; }
.asset-input-status { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 13px; line-height: 20px; }
.asset-input-status .i { width: 16px; height: 16px; }
[data-input-status=error] { border-left: 3px solid var(--error); }
[data-input-status=ok] > .asset-input-status .i { color: var(--ok); }
[data-input-status=error] > .asset-input-status .i { color: var(--error); }
[data-input-status=required-empty] > .asset-input-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }
.asset-panel { min-width: 0; }
.asset-panel > .v-lead { margin-bottom: 28px; }
.asset-workflow { display: block; }
.asset-substeps { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.asset-substeps button { min-height: 40px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-button); background: var(--surface); color: var(--ink); font-size: 13px; }
.asset-substeps button[aria-current=step] { border-color: var(--ink); }
.asset-substeps button:disabled { display: none; }
.asset-step-notice:not([hidden]) { margin-top: 20px; border-left: 3px solid var(--error); padding: 12px 16px; color: var(--ink-2); }
.asset-step-notice ul { margin-top: 8px; display: grid; gap: 8px; }
.asset-step-notice button { background: transparent; border: 0; color: var(--ink); text-decoration: underline; text-align: left; }
.tiles { margin-top: 24px; }
.tile input[type=file] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.tile .t-foot { display: grid; gap: 8px; padding: 12px 16px 16px; }
.tile .t-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tile .t-actions .btn { height: 32px; padding: 0 8px; font-size: 12px; }
.tile .file-detail { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.tile .mine { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--paper); }
.tile audio.mine { position: static; height: 48px; width: 100%; }
.tile .t-media > .mine-wrap:empty { display: none; }
.tile .t-media:has(.mine) .cta,.tile .t-media:has(.mine) .ref { display: none; }
.tile[data-input-status=ok] { border-left: 0; }
.tile[data-input-status=error] { border-left: 3px solid var(--error); }
.person-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; margin-top: 24px; }
.person-rows .tile.wide { grid-column: 1 / -1; grid-template-columns: minmax(0,1fr); }
.tile > .t-media.audio-script { position: relative; inset: auto; display: grid; align-content: start; gap: 12px; aspect-ratio: auto; height: auto; padding: 20px; background: var(--paper); color: var(--ink); }
.audio-script blockquote { margin: 8px 0; }
.kv > div { display: contents; }
.kv { padding-left: 0; }
.kv dt,.kv dd { min-width: 0; }
.rv .btn { margin-left: auto; }
.review-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.review-thumbs img { width: 64px; height: 48px; object-fit: cover; border-radius: var(--r-input); }
.request-reference-line code { overflow-wrap: anywhere; min-width: 0; letter-spacing: 0; }
.request-reference-line { flex-wrap: wrap; }
.request-reference-line > .eyebrow { color: var(--muted); }
.receipt-upload-list { display: grid; gap: 16px; margin-top: 20px; }
.receipt-upload-row { display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 12px; align-items: center; }
.receipt-upload-row img { width: 64px; height: 48px; object-fit: cover; border-radius: var(--r-input); }
.receipt-upload-row strong { display: block; overflow-wrap: anywhere; font-size: 13px; }
.receipt-upload-row small { display: block; color: var(--ink-2); }
progress { width: 100%; height: 5px; accent-color: var(--night-1); }
.receipt-upload-list progress { margin-top: 6px; }
.receipt-check { display: grid; }
#request-upload-progress { margin-top: 28px; }
#request-receipt > h2 { font-size: 22px; line-height: 30px; margin: 20px 0 8px; }
#request-receipt > p:not(.request-reference-line) { margin-top: 16px; color: var(--muted); }
#manage-saved-request { margin-top: 24px; }
#delivery-content > *,#access-panel > * { margin-top: 20px; }
#delivery-content > :first-child,#access-panel > :first-child { margin-top: 0; }
#delivery-content h2,#access-panel h2 { font-size: 22px; line-height: 30px; }
.access-form { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 16px; align-items: end; }
.access-form label,.saved-editor label { display: grid; gap: 8px; }
.saved-editor .fields { margin-top: 24px; }
.saved-editor h3 { font-size: 22px; line-height: 30px; }
.saved-editor > form > .btn { margin-top: 24px; }
.saved-editor [name=notes] { width: 100%; min-height: 72px; }
/* The shared progress helper owns real stage/date data; the customer surface keeps it flat. */
.request-progress { border-top: 1px solid var(--line); padding-top: 24px; }
.request-progress > h3 { margin: 8px 0 20px; font: 400 24px/32px var(--font-serif); color: var(--ink); }
.request-progress > .eyebrow { color: var(--ink-2); }
.progress-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 24px; }
.progress-metrics > div { min-width: 0; }
.progress-metrics dt { color: var(--muted); font-size: 13px; line-height: 20px; }
.progress-metrics dd { margin-top: 4px; color: var(--ink); font-weight: 700; overflow-wrap: anywhere; }
.progress-stages.timeline { margin: 28px 0 12px; }
.progress-stages li > div { color: var(--ink-2); }
.progress-stages .current > div { color: var(--ink); font-weight: 700; }
.progress-stages .complete > div { font-weight: 700; }
.progress-next { margin-top: 8px; font-weight: 700; color: var(--ink-2); }
.request-progress > p:not(.eyebrow) { margin-top: 12px; color: var(--ink-2); }
@media(max-width:600px){.progress-metrics { grid-template-columns: 1fr; }}
.heading-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
#order-edit-actions { display: flex; flex-wrap: wrap; gap: 12px; }
#order-details summary { cursor: pointer; font-weight: 700; padding-bottom: 16px; }
#order-detail-values { margin-top: 16px; }
.notice-line { color: var(--ink-2); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.notice-line:empty { display: none; }
.event-footer { margin-top: 40px; padding-bottom: 32px; color: var(--muted); font-size: 13px; }
.event-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.footer-brand { font-weight: 700; color: var(--ink); }
.sample-reference-dialog { border: 0; padding: 0; background: transparent; max-width: calc(100vw - 16px); max-height: calc(100dvh - 16px); color: var(--ink); }
.sample-reference-dialog::backdrop { background: color-mix(in srgb,var(--night-0) 62%,transparent); }
.sample-reference-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.sample-reference-head h2 { font: 400 28px/36px var(--font-serif); }
.sample-reference-content { padding-top: 16px; }
.sample-reference-content > .m-card { padding: 0; box-shadow: none; border-radius: 0; }
.sample-reference-shell { width: 960px; max-width: 100%; max-height: calc(100dvh - 32px); overflow: auto; padding: 36px 40px 40px; background: var(--surface); border-radius: var(--r-panel); box-shadow: var(--e3); }
.dd h3,.dd.avoid h3 { color: var(--ink-2); }
.bad figcaption { display: block; overflow-wrap: normal; }
.r35-player video { width: 100%; aspect-ratio: 16 / 9; background: var(--night-0); }
.r35-player .sample-reference-shell { width: 1000px; padding: 20px; }
[data-r35-title],.p-meta [data-r35-title],[data-r35-poster],[data-r35-requirement] { display: none; }
html[data-initial-index="0"] [data-r35-title="0"],html[data-initial-index="0"] [data-r35-poster="0"],html[data-initial-index="0"] [data-r35-requirement="0"] { display: revert; }
html[data-initial-index="1"] [data-r35-title="1"],html[data-initial-index="1"] [data-r35-poster="1"],html[data-initial-index="1"] [data-r35-requirement="1"] { display: revert; }
html[data-initial-index="2"] [data-r35-title="2"],html[data-initial-index="2"] [data-r35-poster="2"],html[data-initial-index="2"] [data-r35-requirement="2"] { display: revert; }
html[data-initial-index="3"] [data-r35-title="3"],html[data-initial-index="3"] [data-r35-poster="3"],html[data-initial-index="3"] [data-r35-requirement="3"] { display: revert; }
html[data-initial-index="4"] [data-r35-title="4"],html[data-initial-index="4"] [data-r35-poster="4"],html[data-initial-index="4"] [data-r35-requirement="4"] { display: revert; }
html[data-initial-index="5"] [data-r35-title="5"],html[data-initial-index="5"] [data-r35-poster="5"],html[data-initial-index="5"] [data-r35-requirement="5"] { display: revert; }
html[data-initial-index="6"] [data-r35-title="6"],html[data-initial-index="6"] [data-r35-poster="6"],html[data-initial-index="6"] [data-r35-requirement="6"] { display: revert; }
html[data-initial-index="7"] [data-r35-title="7"],html[data-initial-index="7"] [data-r35-poster="7"],html[data-initial-index="7"] [data-r35-requirement="7"] { display: revert; }
html[data-initial-index="8"] [data-r35-title="8"],html[data-initial-index="8"] [data-r35-poster="8"],html[data-initial-index="8"] [data-r35-requirement="8"] { display: revert; }
html[data-initial-index="9"] [data-r35-title="9"],html[data-initial-index="9"] [data-r35-poster="9"],html[data-initial-index="9"] [data-r35-requirement="9"] { display: revert; }
html[data-initial-index="10"] [data-r35-title="10"],html[data-initial-index="10"] [data-r35-poster="10"],html[data-initial-index="10"] [data-r35-requirement="10"] { display: revert; }

html[data-r35-panel-hydrated=true] [data-r35-title],html[data-r35-panel-hydrated=true] [data-r35-poster],html[data-r35-panel-hydrated=true] [data-r35-requirement] { display: none; }
@media(max-width:1023px){.asset-substeps { margin-top: 8px; }.actions[data-keep-mobile] { display: flex; }.person-rows { grid-template-columns: 1fr; }.event-footer { padding-bottom: 110px; }}
@media(max-width:600px){.access-form { grid-template-columns: 1fr; }.sample-reference-shell { padding: 28px 18px 24px; }.person-rows { grid-template-columns: 1fr; }.kv { grid-template-columns: 1fr; }.where { white-space: normal; }.bad figcaption { word-break: normal; }.hd-nav { flex-wrap: nowrap; }.hd-logo { min-width: 0; }.done-head { grid-template-columns: 40px minmax(0,1fr); }.done-mark { width: 40px; height: 40px; }}
@media(prefers-reduced-motion:reduce){*,*::before,*::after { animation: none!important; transition: none!important; }}

#runtime-banner,#submission-policy { display: none; }
.grp .field > .asset-input-status { display: none; }
.grp .field[data-input-status=error] > .asset-input-status { display: flex; }
.opt-list [data-input-status=optional-empty] > .asset-input-status { display: none; }
.grp > legend .lbl { font-size: 16px; line-height: 24px; }
.grp-foot { flex-wrap: wrap; }
.chip { white-space: normal; overflow-wrap: anywhere; }
.asset-review-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.asset-review-item { min-width: 0; display: grid; align-content: start; gap: 6px; }
.asset-review-item img { width: 100%; height: 84px; object-fit: cover; border-radius: var(--r-input); }
.asset-review-item audio { width: 100%; max-width: 100%; }
.asset-review-item figcaption { font-weight: 700; font-size: 13px; }
.asset-review-item span { display: flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 12px; }
.asset-review-item small { font-size: 12px; line-height: 18px; color: var(--muted); overflow-wrap: anywhere; }
.asset-review-item .i { width: 16px; height: 16px; color: var(--ok); }
.saved-editor .field input,.saved-editor textarea,.access-form input,#complete-brief-form input,#complete-brief-form textarea,#issue-form input,#issue-form textarea,#issue-form select { width: 100%; min-height: 48px; border: 1px solid var(--line-strong); border-radius: var(--r-input); padding: 12px 16px; background: var(--surface); }
.saved-editor input[type=checkbox] { width: 20px; min-height: 20px; }
.access-form .btn { align-self: end; }
#sample-contact-fields { margin-bottom: 24px; }
#sample-complete-brief > h3 { margin-bottom: 12px; }
#sample-complete-brief > p { color: var(--muted); }
#sample-complete-form > label { margin-top: 24px; }
#complete-brief-form .btn,#issue-form .btn { margin-top: 24px; }
#upload-area label { display: grid; gap: 12px; }
@media(max-width:600px){.asset-review-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.grp-foot { align-items: stretch; }.refline .request-reference { overflow-wrap: anywhere; font-size: 16px; }.person-rows .tile { grid-template-columns: 132px minmax(0,1fr); }}

[data-entry-copy=private] { display: none; }
html[data-initial-view=delivery] [data-entry-copy=request],html[data-mail-entry=opening] [data-entry-copy=request] { display: none; }
html[data-initial-view=delivery] [data-entry-copy=private],html[data-mail-entry=opening] [data-entry-copy=private] { display: inline; }

/* SEQ342: vehicle presentation only; native picker, slot state and upload gates stay in asset-steps. */
.tile.r35-vehicle-tile { grid-row: span 4; grid-template-rows: subgrid; grid-template-areas: "head" "media" "foot" "note"; }
.tile.r35-vehicle-tile > .t-head { grid-area: head; display: flex; }
.tile.r35-vehicle-tile > .t-media { grid-area: media; }
.tile.r35-vehicle-tile > .t-foot { grid-area: foot; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 16px; min-height: 56px; }
.tile.r35-vehicle-tile .t-foot > .st { min-width: 0; color: var(--ink-2); }
.tile.r35-vehicle-tile .t-foot > .st > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile.r35-vehicle-tile .st .i { flex: none; width: 16px; height: 16px; }
.tile.r35-vehicle-tile .st.err .i { color: var(--error); }
.tile.r35-vehicle-tile .st.err::before { display: none; }
.tile.r35-vehicle-tile .st.checking::before { display: none; }
.tile.r35-vehicle-tile .t-media .cta small { display: none; }
.tile.r35-vehicle-tile .t-foot > .btn { flex: none; width: 28px; height: 28px; min-height: 28px; padding: 0; }
.tile.r35-vehicle-tile .t-foot > .btn .i { width: 14px; height: 14px; }
.tile.r35-vehicle-tile[data-input-status=error] { border-left: 1px solid var(--line); }
.tile.r35-vehicle-tile > .t-foot[data-input-status=error] { border-left: 0; }
.tile.r35-vehicle-tile > .t-note { grid-area: note; margin: 0; padding: 0 14px 12px; color: var(--muted); font: 400 12px/16px var(--font-sans); }
.r35-material-review-cell { grid-column: 1 / -1; padding-left: 48px; }
.r35-material-review .thumbs,.r35-material-review .thumbs-note { padding-left: 0; }
.r35-material-review .thumbs { display: grid; grid-template-columns: repeat(8,minmax(0,1fr)); max-width: 568px; gap: 8px; }
.r35-material-review .thumb { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--r-input); overflow: hidden; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.r35-material-review .thumb img { width: 100%; height: 100%; object-fit: cover; }
.r35-material-review .thumb:not(.empty) b { position: absolute; left: 4px; top: 4px; min-width: 16px; height: 16px; border-radius: var(--r-input); display: grid; place-items: center; background: var(--night-1); color: var(--on-dark-text); font: 700 10px/1 var(--font-sans); }
.r35-material-review .thumbs + .thumbs,.r35-material-review .thumbs-note,.r35-material-review .review-voice { margin-top: 12px; }
.r35-material-review .thumbs-note,.r35-material-review .review-voice p { color: var(--muted); font: 400 13px/20px var(--font-sans); }
.r35-material-review .review-voice audio { display: block; width: 100%; height: 40px; margin-top: 8px; }
.r35-material-review .review-material-error { position: absolute; top: 4px; right: 4px; color: var(--error); }
.r35-material-review .review-material-error .i { width: 16px; height: 16px; }
@media(max-width:600px){
 .tile.r35-vehicle-tile { grid-row: auto; grid-template-rows: auto 1fr auto; grid-template-columns: 132px minmax(0,1fr); grid-template-areas: "media head" "media foot" "note note"; }
 .tile.r35-vehicle-tile > .t-head { flex-direction: column; gap: 2px; }
 .tile.r35-vehicle-tile > .t-foot { padding: 6px 10px 12px 14px; min-height: 0; gap: 8px; align-self: end; }
 .tile.r35-vehicle-tile .t-foot > .st { font-size: 12px; line-height: 16px; }
 .r35-material-review-cell { padding-left: 0; }
 .r35-material-review .thumbs { grid-template-columns: repeat(4,minmax(0,1fr)); }
 .r35-material-review .thumb { width: 100%; }
}

/* SEQ344: contain the missing-material notice and keep vehicle error text readable. */
html[data-customer-design="r35"] #stage > #view-request { min-width: 0; }
html[data-customer-design="r35"] #view-request #request-sample-fields .asset-step-notice:not([hidden]) button.btn { min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; height: auto; min-height: 40px; }
html[data-customer-design="r35"] #request-sample-fields .tile.r35-vehicle-tile[data-input-status="error"] .t-foot > .st.err > span { white-space: normal; text-overflow: clip; overflow-wrap: anywhere; max-height: 2lh; color: var(--muted); }
