/* CARTHEIST
   VOICE   a 70s heist planning room: playful to watch, straight-talking in its advice
   PALETTE navy/charcoal room, mustard / burnt orange / teal accents, cream text
   TYPE    Press Start 2P for titles and buttons, Silkscreen for labels, Inter for reading
   RULE    labels are UPPERCASE with "//" comment-style headers                         */

:root {
  --bg: #171A22;
  --panel: #0F1117;
  --panel-2: #13161e;
  --line: #3A3F4C;
  --mustard: #E0A52B;
  --orange: #D2622B;
  --teal: #2A9D8F;
  --cream: #F1E3C6;
  --muted: #a69d8a;
  --dim: #6f6a60;
  --red: #e5533d;
  --live: #5fd08a;
  --ink: #0b0c12;
  --f-title: 'Press Start 2P', ui-monospace, monospace;
  --f-label: 'Silkscreen', ui-monospace, monospace;
  --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --px: 3px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--cream); font: 16px/1.55 var(--f-body); overflow-x: hidden; }
img, svg, canvas { display: block; }
.px { image-rendering: pixelated; image-rendering: crisp-edges; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--teal); }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
::selection { background: var(--mustard); color: var(--bg); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* ---------- shared bits ---------- */
.kicker, .field-label, .sec-h { font-family: var(--f-label); text-transform: uppercase; letter-spacing: .04em; }
.kicker { margin: 0 0 10px; color: var(--teal); font-size: 14px; }
.sec-h { margin: 0 0 6px; color: var(--mustard); font-size: 17px; font-weight: 400; }
.sec-sub, .sec-lede { margin: 0 0 18px; color: var(--muted); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-title); font-size: 15px; color: var(--mustard); text-decoration: none; letter-spacing: .04em; }
.logo-mark { width: 26px; height: 23px; shape-rendering: crispEdges; }
.logo-sm { font-size: 11px; }
.logo-sm .logo-mark { width: 18px; height: 16px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--f-title); font-size: 12px; line-height: 1.4; text-transform: uppercase; letter-spacing: .02em;
  padding: 15px 18px; border: 2px solid var(--ink); border-radius: 0; cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink); transition: transform .08s, box-shadow .08s, background .15s, color .15s; white-space: nowrap;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn:disabled { opacity: .45; cursor: default; transform: none; box-shadow: 4px 4px 0 var(--ink); }
.btn-go { background: var(--mustard); color: var(--bg); }
.btn-go:hover { background: #ecb646; }
.btn-ghost { background: transparent; color: var(--cream); border-color: var(--line); box-shadow: 3px 3px 0 var(--ink); }
.btn-ghost:hover { border-color: var(--mustard); color: var(--mustard); }
.btn-sm { font-size: 10px; padding: 9px 11px; }
.btn-block { width: 100%; }
.btn-send { background: var(--teal); color: var(--bg); font-size: 10px; padding: 11px 14px; }
.btn-stop { background: transparent; color: var(--red); border-color: var(--red); font-size: 10px; padding: 11px 12px; box-shadow: 3px 3px 0 var(--ink); }
.btn-stop:hover:not(:disabled) { background: var(--red); color: var(--bg); }

/* status chips (case file) */
.st { display: inline-block; font-family: var(--f-label); font-style: normal; font-size: 11px; line-height: 1; padding: 4px 6px 3px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.st-cracked { background: var(--orange); border-color: var(--orange); color: var(--panel); }
.st-on { border-color: var(--mustard); color: var(--mustard); }
.st-queued { color: var(--dim); }
.st-clear { border-color: var(--teal); color: #7fd3c7; }
.st-unclear { border-style: dashed; }
.lock { display: inline-block; width: 10px; height: 12px; color: var(--mustard); margin-left: 6px; vertical-align: -1px; flex: none; }
.redacted { color: #4a5060; letter-spacing: -1px; filter: blur(1.4px); user-select: none; word-break: break-all; }

/* ================= landing ================= */
.topbar { display: flex; align-items: center; gap: 18px; padding: 14px 24px; border-bottom: 2px solid var(--line); background: var(--panel); position: sticky; top: 0; z-index: 10; }
.topbar-tag { font-family: var(--f-label); font-size: 13px; color: var(--muted); }
.topbar-link { margin-left: auto; font-family: var(--f-label); font-size: 13px; text-transform: uppercase; color: var(--teal); text-decoration: none; }
.topbar-link:hover { color: var(--mustard); }
body[data-screen="hq"] .topbar { display: none; }

.hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; padding-top: 64px; padding-bottom: 56px; }
.hero h1 { margin: 0 0 22px; font-family: var(--f-title); font-weight: 400; font-size: clamp(21px, 2.9vw, 36px); line-height: 1.45; letter-spacing: .01em; }
.hero h1 em { font-style: normal; color: var(--mustard); }
.lede { margin: 0 0 28px; font-size: 18px; color: var(--muted); max-width: 58ch; }
.case-form { max-width: 600px; }
.field-label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.field { display: flex; gap: 12px; }
.field input { flex: 1; min-width: 0; font-size: 17px; padding: 14px 16px; background: var(--panel); border: 2px solid var(--line); border-radius: 0; color: var(--cream); }
.field input::placeholder { color: var(--dim); }
.field input:focus { outline: none; border-color: var(--mustard); }
.form-error { margin: 10px 0 0; color: #ff8a6b; font-size: 15px; }
.form-note { margin: 12px 0 0; color: var(--dim); font-size: 14px; }

.mini-file { background: var(--panel); border: 2px solid var(--line); box-shadow: 10px 10px 0 var(--ink); padding: 18px; }
.mf-head { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 14px; font-family: var(--f-label); font-size: 12px; color: var(--muted); }
.mf-live { color: var(--live); animation: blink 1.2s steps(2, jump-none) infinite; }
.mf-score { display: flex; align-items: center; gap: 12px; padding: 0 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.mf-score strong { font-family: var(--f-title); font-weight: 400; font-size: 32px; color: var(--mustard); }
.mf-score span { font-family: var(--f-label); font-size: 12px; color: var(--muted); line-height: 1.3; }
.mf-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mf-cards li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 10px; padding: 9px 10px; background: var(--panel-2); border: 1px solid var(--line); border-left: 4px solid var(--c); }
.mf-cards b { font-family: var(--f-label); font-size: 12px; color: var(--c); }
.mf-cards i { justify-self: end; grid-column: 3; }
.mf-cards span { grid-column: 1 / -1; font-size: 14px; }
.mf-cards .is-locked span { grid-column: 1 / 3; color: #4a5060; filter: blur(1.4px); }
.mf-cards .is-locked svg { width: 10px; height: 12px; color: var(--mustard); grid-column: 3; grid-row: 2; justify-self: end; }

.samples-block { padding-bottom: 56px; }
.samples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sample { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 18px; background: var(--panel); border: 2px solid var(--line); cursor: pointer; transition: border-color .15s, transform .1s; }
.sample:hover { border-color: var(--mustard); transform: translateY(-2px); }
.sample-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.sample-niche { font-family: var(--f-label); font-size: 12px; text-transform: uppercase; color: var(--muted); }
.sample-free { font-family: var(--f-label); font-size: 11px; padding: 2px 6px; background: var(--teal); color: var(--panel); }
.sample-name { font-family: var(--f-title); font-size: 13px; line-height: 1.5; color: var(--cream); }
.sample-domain { font-size: 14px; color: var(--dim); }
.sample-stats { font-size: 15px; color: var(--muted); margin-top: 6px; }
.sample-go { margin-top: 12px; font-family: var(--f-label); font-size: 13px; color: var(--mustard); }

.crew-band { background: var(--panel); border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); padding: 56px 0; }
.crew-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 18px; }
.crew-card { background: var(--bg); border: 2px solid var(--line); border-top: 4px solid var(--c); padding: 18px; }
.crew-pic { height: 108px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 10px; margin: 0 0 12px;
  background: linear-gradient(var(--panel-2), var(--panel-2)) padding-box, repeating-linear-gradient(90deg, transparent 0 8px, rgba(58,63,76,.35) 8px 9px); border-bottom: 3px solid var(--c); }
.crew-pic img { width: 60px; height: 80px; }
.bob { animation: bob 1.3s steps(1, end) infinite; }
.crew-card:nth-child(2) .bob { animation-delay: -.4s; } .crew-card:nth-child(3) .bob { animation-delay: -.8s; } .crew-card:nth-child(4) .bob { animation-delay: -1.1s; }
.crew-station { margin: 0; font-family: var(--f-label); font-size: 12px; color: var(--c); }
.crew-card h3 { margin: 6px 0 4px; font-family: var(--f-title); font-weight: 400; font-size: 11px; line-height: 1.6; }
.crew-role { margin: 0 0 10px; font-family: var(--f-label); font-size: 13px; color: var(--muted); text-transform: uppercase; }
.crew-card p:last-child { margin: 0; color: var(--muted); font-size: 15px; }

.how { padding-top: 56px; padding-bottom: 56px; }
.steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { padding: 18px; border: 2px dashed var(--line); }
.step-n { font-family: var(--f-title); font-size: 18px; color: var(--mustard); }
.steps h3 { margin: 12px 0 6px; font-family: var(--f-label); font-size: 16px; text-transform: uppercase; font-weight: 400; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }
.footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 40px; border-top: 2px solid var(--line); color: var(--dim); font-size: 14px; }

/* ================= the planning room ================= */
.hq { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.hq-bar { position: relative; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 16px 12px; background: var(--panel); border-bottom: 2px solid var(--line); }
.hq-bar .logo { font-size: 13px; }
.hq-tag { font-family: var(--f-label); font-size: 13px; color: var(--muted); }
.hq-spacer { flex: 1; }
.live-pill { display: inline-flex; align-items: center; gap: 7px; font-family: var(--f-label); font-size: 13px; color: var(--live); padding: 3px 8px; border: 1px solid rgba(95,208,138,.4); }
.live-pill i { width: 8px; height: 8px; background: var(--live); animation: blink 1s steps(2, jump-none) infinite; }
.live-pill span { animation: blink 1s steps(2, jump-none) infinite; }
.live-pill[data-state="done"] { color: var(--mustard); border-color: rgba(224,165,43,.45); }
.live-pill[data-state="done"] i { background: var(--mustard); }
.live-pill[data-state="stopped"] { color: var(--red); border-color: rgba(229,83,61,.5); }
.live-pill[data-state="stopped"] i { background: var(--red); }
.live-pill[data-state="done"] i, .live-pill[data-state="done"] span, .live-pill[data-state="stopped"] i, .live-pill[data-state="stopped"] span { animation: none; }
.job-timer { font-family: var(--f-title); font-size: 12px; color: var(--cream); }
.job-timer small { font-family: var(--f-label); font-size: 12px; color: var(--muted); }
.hq-progress { position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: transparent; }
.hq-progress div { height: 100%; width: 0; background: var(--mustard); transition: width .3s linear; }

.hq-main { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 380px; }
.panel-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0 0 8px; font-family: var(--f-label); font-weight: 400; font-size: 13px; color: var(--muted); text-transform: uppercase; }
.panel-h b { color: var(--mustard); font-weight: 400; word-break: break-all; }
.panel-h-file { color: var(--dim); }
.room-panel { display: flex; flex-direction: column; min-height: 0; padding: 12px 16px; border-right: 2px solid var(--line); }
.stage-wrap { position: relative; flex: 1; min-height: 0; }
.stage { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 2px var(--line), 8px 8px 0 2px var(--ink); }
.stage canvas { width: 100%; height: 100%; image-rendering: pixelated; image-rendering: crisp-edges; touch-action: manipulation; cursor: pointer; }
.overlay { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.room-hint { margin: 10px 0 0; text-align: center; font-family: var(--f-label); font-size: 12px; color: var(--dim); text-transform: uppercase; }

.tag { position: absolute; left: 0; top: 0; pointer-events: auto; cursor: pointer; display: flex; flex-direction: column; align-items: center; line-height: 1.05;
  font-family: var(--f-label); font-size: 11px; padding: 2px 5px 1px; background: rgba(11,12,18,.82); border: 1px solid rgba(58,63,76,.9); color: var(--c); white-space: nowrap; will-change: transform; }
.tag b { font-weight: 700; letter-spacing: .03em; }
.tag small { font-size: 9px; color: var(--muted); }
.tag.is-selected { border-color: var(--c); box-shadow: 0 0 0 1px var(--c); }
.bubble { position: absolute; left: 0; top: 0; max-width: 200px; padding: 5px 8px; font: 500 12.5px/1.3 var(--f-body); background: var(--cream); color: var(--bg);
  border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--c); will-change: transform; z-index: 2; }
.bubble::after { content: ''; position: absolute; left: calc(var(--tail, 50%) - 5px); bottom: -8px; border: 5px solid transparent; border-top: 5px solid var(--ink); border-bottom: 0; }
.st-label, .bp-label { position: absolute; transform: translateX(-50%); font-family: var(--f-label); white-space: nowrap; pointer-events: none; text-transform: uppercase; }
.st-label { font-size: clamp(8px, calc(var(--px) * 3), 12px); line-height: 1; color: rgba(241,227,198,.32); letter-spacing: .04em; transition: color .3s, text-shadow .3s; }
.st-label.is-on { color: var(--c); text-shadow: 0 0 6px var(--c); }
.bp-label { font-size: clamp(7px, calc(var(--px) * 2.3), 10px); line-height: 1.05; color: #bfe3ff; opacity: .8; text-align: center; white-space: normal; width: calc(var(--px) * 27); transition: color .3s, text-shadow .3s; }
.bp-label.is-on { color: var(--c); opacity: 1; text-shadow: 0 0 6px var(--c); }

.panel { position: absolute; right: 12px; top: 12px; width: 310px; max-height: calc(100% - 24px); overflow: auto; z-index: 5; padding: 14px; background: var(--panel); border: 2px solid var(--line); box-shadow: 6px 6px 0 var(--ink); }
.panel-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 2px solid var(--c, var(--line)); }
.panel-face { width: 36px; height: 48px; flex: none; }
.panel-head h3 { margin: 0; font-family: var(--f-title); font-weight: 400; font-size: 10px; line-height: 1.6; color: var(--c, var(--cream)); }
.panel-role { margin: 2px 0 0; font-family: var(--f-label); font-size: 12px; color: var(--muted); text-transform: uppercase; }
.panel-close { margin-left: auto; align-self: flex-start; background: none; border: 0; font-size: 24px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px; }
.panel-now { display: flex; gap: 10px; margin: 0 0 12px; font-size: 15px; }
.panel-now small { display: block; font-family: var(--f-label); font-size: 11px; color: var(--muted); }
.now-dot { width: 8px; height: 8px; margin-top: 6px; flex: none; background: var(--dim); }
.now-dot.is-busy { background: var(--live); animation: blink 1s steps(2, jump-none) infinite; }
.panel h4 { margin: 0 0 8px; font-family: var(--f-label); font-weight: 400; font-size: 12px; color: var(--mustard); }
.finds { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 14px; }
.finds li { display: flex; gap: 8px; align-items: flex-start; }
.find-dot { width: 7px; height: 7px; margin-top: 7px; flex: none; }
.find-bad .find-dot { background: var(--orange); }
.find-ok .find-dot { background: var(--teal); }
.find-ok { color: var(--muted); }
.panel-empty { margin: 0; color: var(--muted); font-size: 14px; }
.panel-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.casefile { min-height: 0; overflow: auto; padding: 12px 16px 16px; background: var(--panel-2); }
.casefile.flash { animation: flash .9s ease-out; }
.cf-counts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.cf-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cf-card { padding: 9px 11px; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--c); transition: opacity .3s, border-color .3s; }
.cf-card.is-queued { opacity: .55; }
.cf-card.is-on { border-color: var(--mustard); border-left-color: var(--c); box-shadow: inset 0 0 0 1px rgba(224,165,43,.35); }
.cf-card.is-on .st-on { animation: blink 1s steps(2, jump-none) infinite; }
.cf-card.is-free { border-color: var(--mustard); box-shadow: 0 0 0 1px var(--mustard); }
.cf-top { display: flex; align-items: center; gap: 8px; }
.cf-top b { font-family: var(--f-label); font-size: 12px; color: var(--c); }
.cf-what { flex: 1; min-width: 0; font-family: var(--f-label); font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: uppercase; }
.cf-card p { display: flex; flex-wrap: wrap; align-items: center; margin: 5px 0 0; font-size: 14px; line-height: 1.4; }
.is-queued p, .is-on p { color: var(--muted); }
.free-tag { font-family: var(--f-label); font-size: 11px; background: var(--mustard); color: var(--panel); padding: 2px 6px; margin-right: 8px; }
.cf-foot { margin-top: 14px; display: grid; gap: 10px; }
.cf-note { margin: 0; color: var(--dim); font-size: 13px; }
.cf-score { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--panel); border: 2px solid var(--mustard); }
.cf-score strong { font-family: var(--f-title); font-weight: 400; font-size: 30px; color: var(--mustard); }
.cf-score span { font-family: var(--f-label); font-size: 13px; color: var(--muted); line-height: 1.3; }

.comms { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 8px 16px 12px; background: var(--panel); border-top: 2px solid var(--line); }
.comms-log { list-style: none; margin: 0; padding: 0; height: 62px; overflow: auto; font-size: 13px; scrollbar-width: thin; }
.comms-log li { display: flex; gap: 10px; align-items: baseline; padding: 1px 0; }
.comms-log time { font-family: var(--f-label); font-size: 11px; color: var(--dim); flex: none; }
.comms-log b { font-family: var(--f-label); font-size: 12px; flex: none; min-width: 58px; }
.comms-log span { color: #d9ccb0; }
.comms-log .tone-found span { color: #f0a07a; }
.comms-log .tone-clear span { color: #7fd3c7; }
.comms-log .tone-end span { color: var(--mustard); }
.comms-row { display: flex; align-items: center; gap: 10px; }
.comms-label { font-family: var(--f-label); font-size: 13px; color: var(--teal); }
.comms-row input { flex: 1; min-width: 0; padding: 10px 12px; background: var(--bg); border: 2px solid var(--line); border-radius: 0; color: var(--cream); font-size: 15px; }
.comms-row input:focus { outline: none; border-color: var(--teal); }

/* ================= the case file (report) ================= */
.report-sheet { position: fixed; inset: 0; z-index: 20; overflow: auto; background: rgba(6,7,11,.78); transform: translateY(100%); transition: transform .6s cubic-bezier(.2,.8,.2,1); overscroll-behavior: contain; }
.report-sheet.open { transform: none; }
.report-sheet > .wrap { max-width: 1000px; padding-top: 14px; padding-bottom: 80px; }
.sheet-bar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; gap: 10px; padding: 10px 0 14px; background: linear-gradient(rgba(6,7,11,.96) 75%, rgba(6,7,11,0)); }
.sheet-bar .btn { background: var(--panel); }
.dossier { background: var(--bg); border: 2px solid var(--line); box-shadow: 10px 10px 0 var(--ink); padding: clamp(18px, 4vw, 40px); }
.dossier-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 20px; border-bottom: 2px solid var(--line); }
.file-tab { margin: 0 0 10px; font-family: var(--f-label); font-size: 13px; color: var(--teal); }
.dossier-head h1 { margin: 0; font-family: var(--f-title); font-weight: 400; font-size: clamp(15px, 2.4vw, 24px); line-height: 1.4; word-break: break-word; }
.stamp { flex: none; font-family: var(--f-title); font-size: 10px; color: var(--mustard); border: 3px double var(--mustard); padding: 8px 10px; transform: rotate(-4deg); }
.verdict { display: grid; grid-template-columns: 160px 1fr; gap: 28px; align-items: center; padding: 26px 0 6px; }
.score-wrap { position: relative; width: 150px; height: 150px; }
.score-ring { width: 150px; height: 150px; }
.ring-bg { fill: none; stroke: var(--line); stroke-width: 12; }
.ring-fg { fill: none; stroke-width: 12; stroke-linecap: butt; transition: stroke-dashoffset 1.4s cubic-bezier(.2,.8,.2,1); }
.score-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.score-num strong { font-family: var(--f-title); font-weight: 400; font-size: 30px; }
.score-num span { font-family: var(--f-label); font-size: 13px; color: var(--muted); }
.verdict-word { margin: 0 0 14px; font-family: var(--f-title); font-size: 15px; line-height: 1.5; }
.chief-note { display: flex; gap: 14px; align-items: flex-start; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--mustard); }
.chief-face { width: 36px; height: 48px; flex: none; }
.chief-note p { margin: 0; font-size: 16px; }
.chief-note b { font-family: var(--f-label); color: var(--mustard); font-weight: 400; }
.sec { margin-top: 38px; }
.sec .sec-h + .sec-lede { margin-top: 4px; }
.sub { margin: 24px 0 8px; font-family: var(--f-label); font-weight: 400; font-size: 14px; text-transform: uppercase; color: var(--cream); }

.problems { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.problem { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px; background: var(--panel); border: 1px solid var(--line); }
.rank { font-family: var(--f-title); font-size: 18px; color: var(--mustard); }
.problem h3 { margin: 0 0 10px; font-size: 19px; line-height: 1.3; }
.problem-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.pill { font-family: var(--f-label); font-size: 12px; padding: 3px 7px; border: 1px solid var(--line); color: var(--muted); }
.pill-high { border-color: var(--orange); color: #f0a07a; }
.pill-med { border-color: var(--mustard); color: var(--mustard); }
.problem-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.problem-cols h4, .copy-card h4 { margin: 0 0 6px; font-family: var(--f-label); font-weight: 400; font-size: 13px; color: var(--teal); text-transform: uppercase; }
.problem-cols p { margin: 0; font-size: 15px; color: #e2d6bc; }
.fix { padding: 10px 12px; background: rgba(42,157,143,.09); border-left: 3px solid var(--teal); }
.chip-agent { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-label); font-size: 13px; color: var(--c); vertical-align: middle; }
.chip-agent img { width: 15px; height: 20px; }

.locked-list { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--line); }
.locked-list li { display: flex; align-items: center; gap: 14px; padding: 11px 4px; border-bottom: 1px solid var(--line); }
.locked-list b { font-family: var(--f-label); font-size: 12px; color: var(--c); width: 56px; flex: none; }
.lk-what { font-family: var(--f-label); font-size: 12px; color: var(--muted); width: 240px; flex: none; text-transform: uppercase; }
.locked-list .redacted { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; }
.unlock-box { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 22px; padding: 22px; border: 2px solid var(--mustard);
  background: repeating-linear-gradient(-45deg, rgba(224,165,43,.05) 0 10px, transparent 10px 20px), var(--panel); }
.unlock-box h3 { margin: 0 0 12px; font-family: var(--f-title); font-weight: 400; font-size: 13px; line-height: 1.7; }
.price { color: var(--mustard); }
.unlock-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15px; color: #e2d6bc; }
.unlock-list li::before { content: '+ '; font-family: var(--f-label); color: var(--teal); }

.ai-live { display: grid; grid-template-columns: 170px 1fr; gap: 22px; align-items: start; margin-top: 12px; }
.ai-score { padding: 16px; text-align: center; background: var(--panel); border: 2px solid var(--k); }
.ai-score strong { display: block; font-family: var(--f-title); font-weight: 400; font-size: 26px; color: var(--k); }
.ai-score strong small { font-size: 11px; color: var(--muted); }
.ai-score span { display: block; margin-top: 8px; font-family: var(--f-label); font-size: 13px; text-transform: uppercase; }
.ai-score em { display: block; margin-top: 4px; font-style: normal; font-size: 12px; color: var(--muted); }
.reasons { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 15px; }
.reasons li { padding-left: 16px; position: relative; }
.reasons li::before { content: ''; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; }
.r-good::before { background: var(--teal); }
.r-bad::before { background: var(--orange); }
.probe-about { font-size: 15px; color: #e2d6bc; }
.probe-about q { color: var(--muted); }
.scroll { overflow-x: auto; }
.ai-table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--panel); }
.ai-table th, .ai-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ai-table th { font-family: var(--f-label); font-weight: 400; font-size: 12px; color: var(--mustard); text-transform: uppercase; }
.ai-table .q { display: block; }
.ai-table small { display: block; color: var(--muted); margin-top: 3px; }
.res { font-family: var(--f-label); font-size: 12px; white-space: nowrap; }
.res-no { color: #f0a07a; }
.res-yes { color: #7fd3c7; }
.res-vague { color: var(--mustard); }
.bots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.bots li { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding: 9px 11px; background: var(--panel); border: 1px solid var(--line); }
.bots b { font-family: var(--f-label); font-weight: 400; font-size: 13px; }
.bots span { grid-column: 1; font-size: 13px; color: var(--muted); }
.bots i { grid-row: 1 / 3; grid-column: 2; align-self: center; font-style: normal; font-family: var(--f-label); font-size: 12px; }
.bot-ok i { color: #7fd3c7; }
.bot-no i { color: #f0a07a; }
.method-note { margin-top: 12px; font-size: 13px; color: var(--dim); }

.copy-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.copy-card { padding: 16px; background: var(--panel); border: 1px solid var(--line); }
.copy-before p { color: var(--muted); margin: 0; }
.copy-after { border-color: var(--cream); }
.copy-card-head { display: flex; justify-content: space-between; align-items: center; }
.after-lead { font-weight: 600; font-size: 17px; }
.copy-after ul { margin: 0; padding-left: 18px; }
.btn-copy { font-family: var(--f-label); font-size: 11px; padding: 4px 8px; background: transparent; color: var(--teal); border: 1px solid var(--teal); cursor: pointer; }
.btn-copy:hover { background: var(--teal); color: var(--panel); }
.hooks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hooks li { display: grid; grid-template-columns: 70px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); }
.hook-n { font-family: var(--f-label); font-size: 12px; color: var(--mustard); }
.hooks p { margin: 0; font-size: 16px; }
.also { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.also h3 { margin: 0 0 8px; font-family: var(--f-label); font-weight: 400; font-size: 14px; color: var(--mustard); text-transform: uppercase; }
.also ul { margin: 0; padding-left: 18px; font-size: 15px; color: #e2d6bc; display: grid; gap: 6px; }

.hire { margin-top: 48px; padding-top: 30px; border-top: 2px dashed var(--line); }
.hire-h { margin: 0 0 20px; font-family: var(--f-title); font-weight: 400; font-size: clamp(13px, 1.8vw, 18px); line-height: 1.6; }
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.service { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--panel); border: 2px solid var(--line); border-top: 4px solid var(--c); }
.service-top { display: flex; gap: 12px; align-items: flex-end; }
.service-top img { width: 36px; height: 48px; flex: none; }
.service-kind { margin: 0 0 4px; font-family: var(--f-label); font-size: 12px; color: var(--c); text-transform: uppercase; }
.service h3 { margin: 0; font-family: var(--f-title); font-weight: 400; font-size: 11px; line-height: 1.6; }
.service-lead { margin: 4px 0 0; font-family: var(--f-label); font-size: 11px; color: var(--muted); }
.service > p { margin: 0; font-size: 14px; color: #e2d6bc; }
.service .service-price { margin-top: auto; font-family: var(--f-title); font-size: 13px; color: var(--cream); }
.dossier-foot { margin-top: 40px; padding-top: 22px; border-top: 2px solid var(--line); display: grid; gap: 14px; justify-items: start; }
.demo-note { margin: 0; color: var(--dim); font-size: 13px; }

/* ================= modals ================= */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(5,6,10,.74); }
.modal-card { position: relative; width: min(500px, 100%); max-height: calc(100dvh - 32px); overflow: auto; padding: 24px; background: var(--bg); border: 2px solid var(--mustard); box-shadow: 8px 8px 0 #000; }
.modal-card h2 { margin: 0 0 16px; font-family: var(--f-title); font-weight: 400; font-size: 14px; line-height: 1.6; }
.modal-card > p { color: var(--muted); }
.modal-x { position: absolute; right: 10px; top: 6px; background: none; border: 0; font-size: 28px; line-height: 1; color: var(--muted); cursor: pointer; }
.hire-form { display: grid; gap: 12px; }
.hire-form label { display: grid; gap: 5px; font-family: var(--f-label); font-size: 13px; color: var(--muted); text-transform: uppercase; }
.hire-form label small { text-transform: none; color: var(--dim); }
.hire-form input, .hire-form select, .hire-form textarea { width: 100%; padding: 10px 12px; font-family: var(--f-body); font-size: 16px; text-transform: none; color: var(--cream); background: var(--panel); border: 2px solid var(--line); border-radius: 0; }
.hire-form input:focus, .hire-form select:focus, .hire-form textarea:focus { outline: none; border-color: var(--teal); }
.hire-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hire-form .btn { margin-top: 6px; }
.hire-done h3 { font-family: var(--f-title); font-weight: 400; font-size: 13px; color: var(--teal); }

/* ================= motion ================= */
@keyframes blink { 50% { opacity: .25; } }
@keyframes bob { 50% { transform: translateY(-5px); } }
@keyframes flash { 0% { box-shadow: inset 0 0 0 3px var(--mustard); } 100% { box-shadow: inset 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) {
  .bob, .mf-live, .live-pill i, .live-pill span, .now-dot.is-busy, .cf-card.is-on .st-on { animation: none !important; }
  .report-sheet { transition: none; }
}

/* ================= smaller screens ================= */
@media (max-width: 1100px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crew-grid { grid-template-columns: 1fr 1fr; }
  .hq-main { grid-template-columns: minmax(0, 1fr) 330px; }
}
@media (max-width: 899px) {
  .hq { height: auto; min-height: 100dvh; }
  .hq-main { display: block; }
  .room-panel { border-right: 0; padding: 10px 8px 8px; }
  .stage-wrap { flex: none; }
  .stage { position: relative; left: auto; top: auto; transform: none; margin: 0 auto; box-shadow: 0 0 0 2px var(--line); }
  .casefile { overflow: visible; border-top: 2px solid var(--line); padding: 14px 12px 20px; }
  .comms { position: sticky; bottom: 0; z-index: 8; padding: 6px 10px calc(8px + env(safe-area-inset-bottom)); }
  .comms-log { height: 44px; font-size: 12px; }
  .comms-log b { min-width: 0; }
  .comms-label { display: none; }
  .comms-row { gap: 6px; }
  .comms-row input { font-size: 16px; padding: 8px 10px; }
  .comms-row .btn { font-size: 10px; padding: 10px 8px; box-shadow: 3px 3px 0 var(--ink); }
  .hq-tag { display: none; }
  .hq-bar { gap: 8px 10px; padding: 8px 10px 10px; }
  .hq-bar .logo { font-size: 10px; }
  .hq-bar .logo-mark { width: 18px; height: 16px; }
  .live-pill, .job-timer small { font-size: 11px; }
  .job-timer { font-size: 10px; }
  .tag { font-size: 9px; padding: 1px 3px 0; }
  .tag small { display: none; }
  .bubble { font-size: 11px; max-width: 132px; padding: 3px 6px; }
  .st-label.is-minor { display: none; }
  .panel { position: fixed; left: 8px; right: 8px; top: auto; bottom: 96px; width: auto; max-height: 55dvh; z-index: 30; }
  .room-hint { margin-top: 8px; font-size: 11px; }

  .topbar { padding: 12px 16px; }
  .topbar-tag { display: none; }
  .wrap { padding: 0 16px; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 36px; padding-bottom: 40px; }
  .field { flex-direction: column; }
  .samples, .steps { grid-template-columns: 1fr; }
  .verdict, .ai-live { grid-template-columns: 1fr; }
  .problem-cols, .copy-cols { grid-template-columns: 1fr; }
  .problem { grid-template-columns: 1fr; gap: 6px; padding: 14px; }
  .unlock-box { flex-direction: column; align-items: stretch; }
  .lk-what { width: auto; flex: 1; }
  .locked-list .redacted { display: none; }
  .hooks li { grid-template-columns: 1fr auto; }
  .hook-n { grid-column: 1 / -1; }
  .dossier-head { flex-direction: column; }
  .ai-table.stack thead { display: none; }
  .ai-table.stack tr { display: block; border-bottom: 1px solid var(--line); padding: 6px 0; }
  .ai-table.stack td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 4px 12px; }
  .ai-table.stack td::before { content: attr(data-l); font-family: var(--f-label); font-size: 11px; color: var(--muted); text-transform: uppercase; flex: none; }
  .ai-table.stack td[data-l="Question"] { display: block; }
  .ai-table.stack td[data-l="Question"]::before { display: block; }
}
@media (max-width: 560px) {
  .services, .crew-grid { grid-template-columns: 1fr; }
  .crew-card { display: grid; grid-template-columns: 84px 1fr; gap: 0 14px; }
  .crew-pic { grid-row: 1 / 6; height: auto; margin: 0; }
  .hero h1 { font-size: 20px; }
  .lede { font-size: 16px; }
}

/* =================================================================
   PHASE 1: site-wide header & footer, pages, hire the crew,
   dashboard, onboarding, owner
   ================================================================= */
.topnav { display: flex; gap: 18px; margin-left: auto; }
.topnav a { font-family: var(--f-label); font-size: 13px; text-transform: uppercase; color: var(--cream); text-decoration: none; }
.topnav a:hover { color: var(--mustard); }
.topbar-account { flex: none; }
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 4px; width: 40px; height: 36px; padding: 0 9px; background: none; border: 2px solid var(--line); cursor: pointer; }
.nav-toggle i { display: block; height: 2px; background: var(--cream); }
body[data-screen="hq"] .site-footer, body[data-screen="hq"] .hero-ctas { display: none; }

.site-footer { margin-top: 24px; padding: 36px 0 28px; background: var(--panel); border-top: 2px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 28px; }
.footer-brand p { margin: 10px 0 0; }
.footer-mail a { color: var(--teal); }
.footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 18px; align-content: start; }
.footer-links a { font-family: var(--f-label); font-size: 13px; text-transform: uppercase; color: var(--cream); text-decoration: none; }
.footer-links a:hover { color: var(--mustard); }
.footer-copy { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }

.anchor { display: block; position: relative; top: -90px; }
.hero-ctas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: -24px; margin-bottom: 48px; }
.cta-card { display: grid; gap: 6px; padding: 18px 20px; background: var(--panel); border: 2px solid var(--line); box-shadow: 6px 6px 0 var(--ink); text-decoration: none; color: var(--cream); transition: border-color .15s, transform .1s; }
.cta-card:hover { border-color: var(--mustard); transform: translate(-1px, -1px); }
.cta-card b { font-family: var(--f-title); font-weight: 400; font-size: 13px; line-height: 1.6; }
.cta-card span:last-child { color: var(--muted); font-size: 15px; }
.cta-k { font-family: var(--f-label); font-size: 12px; text-transform: uppercase; color: var(--teal); }
.cta-case { border-color: var(--mustard); }
.cta-case b { color: var(--mustard); }
.crew-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.crew-card:nth-child(5) .bob { animation-delay: -.6s; } .crew-card:nth-child(6) .bob { animation-delay: -.2s; }
.how-more { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.sec-sub a { color: var(--teal); }

/* ---------- plain pages ---------- */
.page { min-height: 60vh; }
.page-head { padding-top: 48px; padding-bottom: 28px; }
.page-head h1 { margin: 0 0 16px; font-family: var(--f-title); font-weight: 400; font-size: clamp(18px, 2.6vw, 28px); line-height: 1.5; }
.narrow { max-width: 820px; }
.prose p { font-size: 18px; color: #e2d6bc; }
.about-crew { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: 28px 0; }
.mini-crew { display: grid; justify-items: center; gap: 4px; padding: 12px 6px; background: var(--panel); border: 2px solid var(--line); border-bottom: 4px solid var(--c); text-align: center; }
.mini-crew b { font-family: var(--f-label); font-size: 13px; color: var(--c); text-transform: uppercase; }
.mini-crew span { font-size: 12px; color: var(--muted); }
.faq { display: grid; gap: 10px; }
.faq-item { background: var(--panel); border: 2px solid var(--line); }
.faq-item summary { cursor: pointer; padding: 14px 16px; font-weight: 600; list-style: none; }
.faq-item summary::before { content: '+ '; color: var(--mustard); font-family: var(--f-title); font-size: 11px; }
.faq-item[open] summary::before { content: '– '; }
.faq-item p { margin: 0; padding: 0 16px 16px; color: #e2d6bc; }
.faq-more { margin-top: 22px; color: var(--muted); }
.linkish { background: none; border: 0; padding: 0; color: var(--teal); text-decoration: underline; cursor: pointer; }
.card-form { max-width: 560px; padding: 22px; background: var(--panel); border: 2px solid var(--line); }
.narrow-form { max-width: 420px; }
.form-done h2 { font-family: var(--f-title); font-weight: 400; font-size: 14px; }
.legal h2 { margin: 28px 0 8px; font-family: var(--f-label); font-weight: 400; font-size: 16px; text-transform: uppercase; color: var(--mustard); }
.legal p, .legal li { color: #e2d6bc; }
.legal-date { color: var(--dim) !important; font-size: 14px; }
.draft-note { padding: 10px 14px; border: 2px dashed var(--orange); color: var(--orange) !important; font-family: var(--f-label); font-size: 13px; text-transform: uppercase; }

/* ---------- hire the crew ---------- */
.hire-mount { position: relative; }
.hire-groups { display: grid; gap: 28px; }
.crew-group { border-top: 4px solid var(--c); padding-top: 16px; }
.crew-group-head { display: flex; gap: 14px; align-items: flex-end; margin-bottom: 14px; }
.crew-group-head img { width: 48px; height: 64px; flex: none; }
.crew-group-role { margin: 0 0 4px; font-family: var(--f-label); font-size: 12px; color: var(--c); text-transform: uppercase; }
.crew-group-head h3 { margin: 0; font-family: var(--f-title); font-weight: 400; font-size: 12px; line-height: 1.6; }
.crew-group-blurb { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.svc { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--panel); border: 2px solid var(--line); transition: border-color .15s, box-shadow .15s; }
.svc.is-on { border-color: var(--c); box-shadow: 0 0 0 2px var(--c) inset, 6px 6px 0 var(--ink); }
.svc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.svc-head h4 { margin: 0; font-family: var(--f-label); font-weight: 700; font-size: 15px; text-transform: uppercase; }
.svc-price { margin: 0; font-family: var(--f-title); font-size: 11px; color: var(--mustard); line-height: 1.6; }
.svc-desc { margin: 0; color: #e2d6bc; font-size: 15px; }
.svc-cols { display: grid; grid-template-columns: 1fr; gap: 10px; }
.svc-label { margin: 0 0 4px; font-family: var(--f-label); font-size: 11px; color: var(--c); }
.svc-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 3px; font-size: 14px; color: var(--muted); }
.svc-list li::before { content: '+ '; color: var(--teal); font-weight: 700; }
.svc-needs li::before { content: '› '; color: var(--orange); }
.svc-toggle { margin-top: auto; }
.btn-on { background: var(--c, var(--teal)); color: var(--ink); border-color: var(--c, var(--teal)); }
.talk-box { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 28px 0 8px; padding: 16px 18px; border: 2px dashed var(--mustard); }
.talk-box p { margin: 0; color: #e2d6bc; }
.your-crew { position: sticky; bottom: 0; z-index: 6; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 16px; padding: 12px 16px; background: var(--panel); border: 2px solid var(--line); border-top-color: var(--mustard); box-shadow: 0 -8px 24px rgba(0,0,0,.45); }
.your-crew.has-crew { border-color: var(--mustard); }
.yc-label { margin: 0 0 4px; font-family: var(--f-label); font-size: 12px; color: var(--mustard); }
.yc-faces { display: flex; gap: 6px; min-height: 36px; align-items: flex-end; }
.yc-faces img { width: 27px; height: 36px; }
.yc-empty { color: var(--dim); font-size: 14px; align-self: center; }
.yc-tot { display: flex; gap: 18px; margin-left: auto; }
.yc-tot span { display: grid; }
.yc-tot small { font-family: var(--f-label); font-size: 11px; color: var(--muted); }
.yc-tot b { font-family: var(--f-title); font-weight: 400; font-size: 14px; }
.yc-tot i { font-style: normal; font-size: 9px; color: var(--muted); }
.talk-head { display: flex; gap: 14px; align-items: flex-end; margin-bottom: 8px; }
.talk-head img { width: 48px; height: 64px; }
.talk-head h2 { margin: 0 !important; }
.modal-lede { margin: 0 0 14px; color: var(--muted); }
.hire-form .check { display: flex; gap: 8px; align-items: flex-start; text-transform: none; font-family: var(--f-body); font-size: 14px; }
.hire-form .check input { width: auto; margin-top: 3px; }
.form-ok { margin: 0; color: #7fd3c7; }
.auth-switch { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.auth-switch button { background: none; border: 0; padding: 0; color: var(--teal); text-decoration: underline; cursor: pointer; }
.fine { margin: 10px 0 0; color: var(--dim); font-size: 13px; }
.fine a { color: var(--muted); }

/* ---------- pricing ---------- */
.price-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 22px; margin-bottom: 32px; background: var(--panel); border: 2px solid var(--mustard); box-shadow: 8px 8px 0 var(--ink); }
.price-hero h2 { margin: 0 0 8px; font-family: var(--f-title); font-weight: 400; font-size: 15px; line-height: 1.6; }
.price-tag { color: var(--mustard); }
.price-hero p { margin: 0; color: #e2d6bc; }
.price-group { margin-bottom: 30px; border-top: 4px solid var(--c); padding-top: 14px; }
.price-rows { display: grid; gap: 8px; }
.price-row { display: flex; justify-content: space-between; gap: 18px; padding: 14px 16px; background: var(--panel); border: 2px solid var(--line); }
.pr-main h4 { margin: 0 0 4px; font-family: var(--f-label); font-size: 15px; text-transform: uppercase; }
.pr-main p { margin: 0 0 6px; color: var(--muted); font-size: 15px; }
.pr-main summary { cursor: pointer; font-family: var(--f-label); font-size: 12px; color: var(--teal); text-transform: uppercase; }
.pr-main details .svc-cols { grid-template-columns: 1fr 1fr; margin-top: 8px; }
.pr-price { margin: 0; flex: none; max-width: 40%; text-align: right; font-family: var(--f-title); font-size: 11px; line-height: 1.7; color: var(--mustard); }
.price-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--muted); padding-bottom: 32px; }

/* ---------- dashboard ---------- */
.dash-head { padding-bottom: 8px; }
.banner { margin: 8px 0 0; padding: 12px 16px; background: var(--panel); border: 2px solid var(--line); border-left: 6px solid var(--mustard); }
.banner[data-tone="ok"] { border-left-color: var(--live); }
.banner[data-tone="error"] { border-left-color: var(--red); }
.banner a { color: var(--mustard); font-weight: 600; }
.dash-nav { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 22px; position: sticky; top: 64px; z-index: 5; padding: 8px 0; background: var(--bg); }
.dash-nav a { font-family: var(--f-label); font-size: 13px; text-transform: uppercase; color: var(--cream); text-decoration: none; padding: 4px 10px; border: 1px solid var(--line); }
.dash-sec { margin-bottom: 40px; scroll-margin-top: 120px; }
.dash-sec .sec-h small { font-size: 12px; color: var(--muted); }
.dash-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dash-row { display: flex; align-items: center; gap: 16px; padding: 12px 14px; background: var(--panel); border: 2px solid var(--line); }
.dr-score { display: grid; place-items: center; width: 64px; flex: none; }
.dr-score b { font-family: var(--f-title); font-weight: 400; font-size: 18px; color: var(--k); }
.dr-score small { font-family: var(--f-label); font-size: 11px; color: var(--muted); }
.dr-main { flex: 1; min-width: 0; }
.dr-main h3 { margin: 0 0 4px; font-size: 17px; overflow-wrap: anywhere; }
.dr-main p { margin: 0; color: var(--muted); font-size: 14px; }
.dr-act, .btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.empty-box { display: grid; justify-items: start; gap: 12px; padding: 20px; background: var(--panel); border: 2px dashed var(--line); }
.empty-box p { margin: 0; color: var(--muted); }
.empty-box h2 { margin: 0; font-family: var(--f-title); font-weight: 400; font-size: 14px; }
.order-card { margin-bottom: 12px; padding: 16px; background: var(--panel); border: 2px solid var(--line); }
.order-card > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.order-card h3 { margin: 0 0 4px; font-family: var(--f-label); font-size: 15px; text-transform: uppercase; }
.order-card header p { margin: 0; color: var(--muted); font-size: 14px; }
.warn { color: var(--orange); }
.svc-progress { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.svc-progress li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; background: var(--bg); border-left: 4px solid var(--c); }
.svc-progress small { display: block; color: var(--muted); font-size: 13px; }
.svc-progress p { margin: 4px 0 0; font-size: 14px; color: #e2d6bc; }
.edit-bay { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; padding: 16px; background: var(--panel); border: 2px solid var(--line); }
.bay-station { display: grid; justify-items: center; align-content: start; gap: 8px; padding: 14px 8px; background: var(--bg); border: 2px solid var(--line); }
.edit-bay.is-busy .bay-station { border-color: var(--c); box-shadow: 0 0 18px -2px var(--c), inset 0 0 22px -8px var(--c); }
.bay-label { font-family: var(--f-label); font-size: 12px; color: var(--muted); }
.edit-bay.is-busy .bay-label { color: var(--c); }
.ad-job { padding: 12px 0; border-bottom: 1px solid var(--line); }
.ad-job:last-child { border-bottom: 0; }
.ad-job header { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.ad-job h3 { margin: 0; font-family: var(--f-label); font-size: 15px; text-transform: uppercase; }
.ad-say { margin: 6px 0 10px; color: #e2d6bc; }
.meters { display: grid; gap: 6px; max-width: 520px; }
.meter { display: grid; grid-template-columns: 150px minmax(0, 1fr) 54px; gap: 10px; align-items: center; font-family: var(--f-label); font-size: 12px; color: var(--muted); }
.meter i { height: 10px; background: var(--bg); border: 1px solid var(--line); position: relative; }
.meter i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--p); background: var(--c); transition: width .6s steps(8, end); }
.meter b { text-align: right; color: var(--cream); font-weight: 400; }
.ad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.ad-card { display: grid; gap: 6px; padding: 10px; background: var(--bg); border: 1px solid var(--line); }
.ad-card video { width: 100%; aspect-ratio: 9 / 16; background: #000; }
.ad-hook { margin: 0; font-weight: 700; }
.ad-cap, .ad-tags { margin: 0; font-size: 14px; color: var(--muted); }
.ad-tags { color: var(--teal); }
.ad-card small { color: var(--dim); font-family: var(--f-label); }
.crew-names { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.name-card { display: grid !important; justify-items: center; gap: 6px !important; padding: 12px; background: var(--bg); border: 2px solid var(--line); border-bottom: 4px solid var(--c); }
.name-card img { width: 48px; height: 64px; }
.nc-role { font-family: var(--f-label); font-size: 12px; color: var(--c); text-transform: uppercase; }
.name-card input { text-align: center; padding: 8px; background: var(--panel); border: 2px solid var(--line); color: var(--cream); width: 100%; font-size: 16px; }
.dash-sec > .crew-names { margin-bottom: 0; }
form.crew-names .btn-row { grid-column: 1 / -1; }
.bill-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.bill-list li { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 12px; padding: 10px 12px; background: var(--panel); border: 1px solid var(--line); font-size: 15px; }
.bill-list li span:first-child { color: var(--muted); }
.onb-services { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.onb-services li { display: flex; align-items: flex-end; gap: 8px; padding: 6px 10px; background: var(--panel); border-left: 4px solid var(--c); }
.onb-services img { width: 27px; height: 36px; }
#onb .card-form { max-width: none; }
#onb .sec-h { margin-top: 10px; }
#onb .sec-h small { color: var(--muted); font-size: 12px; }

/* ---------- owner ---------- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.checklist li { display: grid; grid-template-columns: 80px 220px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px 12px; background: var(--panel); border-left: 4px solid var(--live); }
.checklist li.no { border-left-color: var(--red); }
.checklist b { font-family: var(--f-label); font-size: 12px; color: var(--live); }
.checklist li.no b { color: var(--red); }
.checklist code { font-size: 13px; color: var(--mustard); overflow-wrap: anywhere; }
.checklist span { color: var(--muted); font-size: 14px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.kpis > div { display: grid; gap: 4px; padding: 12px; background: var(--panel); border: 2px solid var(--line); }
.kpis small { font-family: var(--f-label); font-size: 11px; color: var(--muted); }
.kpis b { font-family: var(--f-title); font-weight: 400; font-size: 15px; }
.owner-table { width: 100%; min-width: 760px; border-collapse: collapse; background: var(--panel); font-size: 14px; }
.owner-table th, .owner-table td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.owner-table th { font-family: var(--f-label); font-weight: 400; font-size: 12px; color: var(--mustard); text-transform: uppercase; }
.owner-table pre, .order-card pre { white-space: pre-wrap; font-size: 13px; color: var(--muted); }
.prog-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 6px; }
.prog-row b { flex-basis: 100%; }
.prog-row select, .prog-row input, .owner-ads input { padding: 4px 6px; background: var(--bg); border: 1px solid var(--line); color: var(--cream); font-size: 13px; }
.owner-ads { padding-left: 20px; display: grid; gap: 8px; font-size: 14px; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 18px; z-index: 60; max-width: min(520px, calc(100vw - 32px)); padding: 12px 16px; background: var(--panel); border: 2px solid var(--mustard); box-shadow: 6px 6px 0 #000;
  transform: translate(-50%, 160%); transition: transform .25s; font-size: 15px; }
.toast.show { transform: translate(-50%, 0); }
.toast[data-tone="error"] { border-color: var(--red); }

@media (max-width: 1100px) {
  .topbar-tag { display: none; }
}
@media (max-width: 899px) {
  .topbar { flex-wrap: wrap; gap: 10px; padding: 10px 16px; }
  .topbar-account { margin-left: auto; }
  .nav-toggle { display: flex; }
  .topnav { display: none; order: 9; flex-basis: 100%; flex-direction: column; gap: 0; margin: 0; }
  .topbar.nav-open .topnav { display: flex; }
  .topnav a { padding: 12px 0; border-top: 1px solid var(--line); }
  .hero-ctas { grid-template-columns: 1fr; margin-top: 0; }
  .footer-in { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crew-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-crew { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .price-hero { grid-template-columns: 1fr; }
  .price-row { flex-direction: column; gap: 6px; }
  .pr-price { max-width: none; text-align: left; }
  .pr-main details .svc-cols { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .your-crew { gap: 10px; padding: 10px 12px; }
  .yc-tot { margin-left: 0; }
  .yc-go { flex-basis: 100%; }
  .edit-bay { grid-template-columns: 1fr; }
  .bay-station { grid-auto-flow: column; justify-content: start; align-items: end; }
  .meter { grid-template-columns: 110px minmax(0, 1fr) 48px; }
  .crew-names { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-row { flex-wrap: wrap; }
  .dr-act { flex-basis: 100%; }
  .bill-list li { grid-template-columns: 1fr; gap: 2px; }
  .checklist li { grid-template-columns: 70px minmax(0, 1fr); }
  .checklist span { grid-column: 1 / -1; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-nav { top: 56px; }
}
@media (max-width: 560px) {
  .crew-grid { grid-template-columns: 1fr; }
}
