/* Race HoloBox911 v2 wireframe — web app styles. Built only on brand.css tokens (HoloBox911 Brand Guidelines v1.0).
   Light work surface: white page, Mist panels, Line dividers, Ink text, Slate body at 1.5.
   Colour is for accents only; the Headline gradient marks the ONE call to action per screen (.btn.cta, chosen in app.js). */
@font-face { font-family: 'Poppins'; src: url('/brand/v3/fonts/poppins-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/brand/v3/fonts/poppins-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/brand/v3/fonts/poppins-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  /* Legacy names used by the feature modules, mapped onto brand tokens (keep these; modules read them) */
  --bg: var(--hb-white); --card: var(--hb-white); --ink: var(--hb-ink); --muted: var(--hb-slate); --faint: var(--hb-slate);
  --line: var(--hb-line); --line2: var(--hb-mist);
  --blue: var(--hb-blue-deep); --purple: var(--hb-purple); --grad: var(--hb-headline);
  --ok: var(--hb-ok); --ok-bg: var(--hb-ok-bg); --warn: var(--hb-warn); --warn-bg: var(--hb-warn-bg); --bad: var(--hb-bad); --bad-bg: var(--hb-bad-bg);
  --spectrum: var(--hb-spectrum);
  --r: var(--hb-radius); --r-sm: var(--hb-radius-sm);
  --shadow: 0 1px 2px rgba(15,18,34,.04), 0 4px 14px rgba(15,18,34,.04);
  --wf: var(--hb-ink); --wf-ink: var(--hb-white);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { font-family: var(--hb-font); font-size: 14px; line-height: 1.5; color: var(--hb-slate); background: var(--hb-white); -webkit-font-smoothing: antialiased; }
a { color: var(--hb-blue-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.25; color: var(--hb-ink); }
h1 { font-size: 28px; letter-spacing: -.01em; } h2 { font-size: 20px; } h3 { font-size: 16px; } h4 { font-size: 14px; }
b, strong { color: var(--hb-ink); }
p { margin: 0; }
.muted, .faint { color: var(--hb-slate); } .small { font-size: 12.5px; }
.faint.small, .small.faint { opacity: 1; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--hb-blue-deep); outline-offset: 2px; }

/* Wireframe strip (review only; hidden in ?shot) */
.wfbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 12px; padding: 7px 16px; background: var(--hb-ink); color: var(--hb-white); font-size: 12.5px; }
.wfbar .tag { background: rgba(255,255,255,.12); padding: 2px 10px; border-radius: var(--hb-pill); font-weight: 600; letter-spacing: var(--hb-label-track); font-size: 11px; }
.wfbar .addr { font-family: ui-monospace, Consolas, monospace; opacity: .9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wfbar .faint { color: rgba(255,255,255,.7) !important; }
.wfbar .sp { flex: 1; }
.wfbar button { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); color: var(--hb-white); border-radius: var(--hb-pill); padding: 4px 12px; cursor: pointer; font-size: 12.5px; }
.wfbar button:hover { background: rgba(255,255,255,.16); }
.wfbar .count { background: var(--hb-magenta); color: #fff; border-radius: var(--hb-pill); padding: 0 6px; margin-left: 4px; font-size: 11px; }
.spectrum, .hb-spectrum-bar { height: 4px; background: var(--hb-spectrum); }

/* Buttons: secondary = white pill with Line border; .primary (not the screen's CTA) = Ink pill;
   .primary.cta = Headline gradient (one per screen); .danger = text in --hb-bad */
.btn { vertical-align: middle; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--hb-line); background: var(--hb-white); color: var(--hb-ink); border-radius: var(--hb-pill); padding: 9px 18px; cursor: pointer; font-weight: 500; white-space: nowrap; line-height: 1.3; transition: border-color .15s, background .15s, box-shadow .15s; }
.btn:hover { border-color: var(--hb-slate); text-decoration: none; }
.btn.primary { background: var(--hb-ink); color: var(--hb-white); border-color: var(--hb-ink); font-weight: 600; }
.btn.primary:hover { box-shadow: 0 4px 14px rgba(15,18,34,.18); }
.btn.primary.cta, .dialog .btn.primary, .btn.cta { background: var(--hb-cta-fill); border-color: transparent; color: var(--hb-white); font-weight: 600; letter-spacing: .01em; text-shadow: 0 1px 1px rgba(15,18,34,.28); }
.btn.cta:hover, .dialog .btn.primary:hover { box-shadow: 0 6px 18px rgba(123,42,144,.28); }
.btn.danger { color: var(--hb-bad); }
.btn.danger:hover { border-color: var(--hb-bad); background: var(--hb-bad-bg); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--hb-mist); }
.btn.sm { padding: 6px 13px; font-size: 13px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn .svg-i { width: 17px; height: 17px; }

/* The one "Play from your phone" pattern: phone icon, blue accent, same everywhere */
.btn[data-phone] { border-color: var(--hb-blue); color: var(--hb-ink); background: var(--hb-white); }
.btn[data-phone] .svg-i { color: var(--hb-blue-deep); }
.btn[data-phone]:hover { background: var(--hb-mist); border-color: var(--hb-blue-deep); }
.phone-note { background: var(--hb-mist) !important; color: var(--hb-ink) !important; border: 1px solid var(--hb-line) !important; border-left: 4px solid var(--hb-blue) !important; align-items: center !important; }
/* Gallery tiles: the same phone pattern as a compact pill */
.vw-play { border-radius: var(--hb-pill) !important; white-space: nowrap; font-size: 11.5px !important; gap: 5px !important; padding: 6px 10px !important; border: 1px solid var(--hb-blue) !important; background: var(--hb-white) !important; color: var(--hb-ink) !important; }
.vw-play .svg-i { color: var(--hb-blue-deep); flex: none; }
/* Module tab rows look like the section tabs */
.chips.vx-tabs { gap: 4px; border-bottom: 1px solid var(--hb-line); }
.chips.vx-tabs .chip { background: transparent; border: 0; border-radius: 0; padding: 10px 14px; font-size: 14px; color: var(--hb-slate); position: relative; }
.chips.vx-tabs .chip:hover { color: var(--hb-ink); }
.chips.vx-tabs .chip.on { background: transparent; color: var(--hb-ink); font-weight: 600; }
.chips.vx-tabs .chip.on::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px; background: var(--hb-headline); }
.phone-note > .svg-i:first-child { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--hb-white); color: var(--hb-blue-deep); border: 1px solid var(--hb-line); flex: none; }

/* Pills: light = feature tags, dark = selected/tags, status chips always carry words */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: var(--hb-pill); font-size: 12px; font-weight: 500; background: var(--hb-mist); color: var(--hb-ink); border: 1px solid var(--hb-line); }
.chip.ok { background: var(--hb-ok-bg); color: var(--hb-ok); border-color: transparent; } .chip.warn { background: var(--hb-warn-bg); color: var(--hb-warn); border-color: transparent; } .chip.bad { background: var(--hb-bad-bg); color: var(--hb-bad); border-color: transparent; }
.chip.blue { background: var(--hb-white); color: var(--hb-blue-deep); border-color: var(--hb-line); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hb-ok); display: inline-block; }
.dot.off { background: var(--hb-slate); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips .chip { cursor: pointer; padding: 6px 15px; font-size: 13px; background: var(--hb-white); }
.chips .chip:hover { border-color: var(--hb-slate); }
.chips .chip.on { background: var(--hb-ink); color: var(--hb-white); border-color: var(--hb-ink); }

/* Cards and layout */
.card { background: var(--hb-white); border: 1px solid var(--hb-line); border-radius: var(--hb-radius); box-shadow: var(--shadow); }
.pad { padding: 20px; } .pad-lg { padding: 28px; }
.stack > * + * { margin-top: 16px; } .stack-sm > * + * { margin-top: 8px; } .stack-lg > * + * { margin-top: 28px; }
.row { display: flex; align-items: center; gap: 12px; } .row.wrap { flex-wrap: wrap; } .row.top { align-items: flex-start; } .row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0,1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 600px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
hr { border: 0; border-top: 1px solid var(--hb-line); margin: 0; }
.label { font-weight: 600; font-size: 11.5px; letter-spacing: var(--hb-label-track); text-transform: uppercase; color: var(--hb-slate); }

/* Top header (hub, documents, training, support) */
.top { background: var(--hb-white); border-bottom: 1px solid var(--hb-line); position: relative; }
.top .in { max-width: 1180px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none !important; }
.brand img.hb { width: 150px; height: auto; display: block; }
.brand .sep { width: 1px; height: 26px; background: var(--hb-line); }
.brand img.race { height: 28px; }
.topnav { display: flex; gap: 4px; margin-left: 16px; }
.topnav a { padding: 7px 15px; border-radius: var(--hb-pill); color: var(--hb-slate); font-weight: 500; }
.topnav a:hover { background: var(--hb-mist); color: var(--hb-ink); text-decoration: none; }
.topnav a.on { background: var(--hb-ink); color: var(--hb-white); text-decoration: none; }
.user { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--hb-ink); color: var(--hb-white); display: grid; place-items: center; font-weight: 600; font-size: 13px; border: 2px solid var(--hb-white); box-shadow: 0 0 0 1px var(--hb-line); cursor: pointer; }
.page { max-width: 1180px; margin: 0 auto; padding: 32px 20px 64px; }
@media (max-width: 700px) { .topnav { display: none; } .user .email { display: none; } }

/* Sign-in */
.auth { min-height: calc(100vh - 40px); display: grid; place-items: center; padding: 24px 16px; background: var(--hb-mist); position: relative; overflow: hidden; }
.auth::before, .auth::after { content: ''; position: absolute; width: 520px; height: 34px; border-radius: var(--hb-pill); transform: rotate(-45deg); opacity: .9; pointer-events: none; }
.auth::before { right: -150px; bottom: 120px; background: var(--hb-cool); }
.auth::after { right: -60px; bottom: 30px; background: var(--hb-warm); width: 380px; }
.auth .card { width: 100%; max-width: 440px; overflow: hidden; position: relative; z-index: 1; padding-top: 34px; }
.auth .card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--hb-spectrum); }
.auth .logos { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 8px; }
.auth .logos img.hb { width: 160px; height: auto; } .auth .logos img.race { height: 30px; }
.codebox { display: flex; gap: 8px; justify-content: center; }
.codebox input { width: 100%; max-width: 280px; height: 58px; text-align: center; font-size: 28px; font-weight: 600; letter-spacing: .5em; padding-left: .5em; border: 1px solid var(--hb-line); border-radius: var(--hb-radius-sm); font-variant-numeric: tabular-nums; color: var(--hb-ink); }
.codebox input:focus { outline: 2px solid var(--hb-blue-deep); border-color: transparent; }

/* Hub */
.hero { display: flex; align-items: center; gap: 28px; padding: 26px 28px; background: var(--hb-mist); border-radius: var(--hb-radius); position: relative; overflow: hidden; }
.hero::before, .hero::after { content: ''; position: absolute; height: 22px; border-radius: var(--hb-pill); transform: rotate(-45deg); pointer-events: none; }
.hero::before { right: -40px; bottom: 34px; width: 260px; background: var(--hb-cool); }
.hero::after { right: -90px; bottom: 10px; width: 220px; background: var(--hb-warm); }
.hero img { width: 120px; height: 120px; object-fit: cover; border-radius: var(--hb-radius); position: relative; z-index: 1; }
.hero > .stack-sm { position: relative; z-index: 1; }
.hero h1 { font-size: 32px; }
.hubcard { display: flex; flex-direction: column; gap: 12px; padding: 24px 22px 22px; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, border-color .15s; text-decoration: none !important; color: inherit; position: relative; overflow: hidden; }
.hubcard::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--accent, var(--hb-spectrum)); }
.hubcard:hover { transform: translateY(-2px); border-color: var(--hb-slate); box-shadow: 0 14px 30px rgba(15,18,34,.08); }
.hubcard .n { position: absolute; top: 18px; right: 20px; font-weight: 600; font-size: 11px; letter-spacing: var(--hb-label-track); color: var(--hb-slate); }
.hubcard .addr { font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: var(--hb-slate); background: var(--hb-mist); padding: 4px 10px; border-radius: var(--hb-pill); align-self: flex-start; word-break: break-all; }
.hubcard .foot { margin-top: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
/* Icon tiles: Mist tile, icon in a logo colour (accent, never a flat fill behind text) */
.ic, .hubcard .ic { width: 46px; height: 46px; border-radius: var(--hb-radius-sm); display: grid !important; place-items: center; background: var(--hb-mist) !important; border: 1px solid var(--hb-line); color: var(--icol, var(--hb-purple)) !important; }
.ic-display { --icol: var(--hb-blue); --accent: var(--hb-blue); } .ic-phone { --icol: var(--hb-magenta); --accent: var(--hb-magenta); }
.ic-studio { --icol: var(--hb-purple); --accent: var(--hb-purple); } .ic-docs { --icol: var(--hb-orange); --accent: var(--hb-orange); } .ic-training { --icol: var(--hb-green); --accent: var(--hb-green); }
.ic-live { --icol: var(--hb-cyan); --accent: var(--hb-cyan); } .hubcard.k-live { --accent: var(--hb-cyan); }
.hubcard.k-display { --accent: var(--hb-blue); } .hubcard.k-phone { --accent: var(--hb-magenta); } .hubcard.k-studio { --accent: var(--hb-purple); } .hubcard.k-docs { --accent: var(--hb-orange); } .hubcard.k-training { --accent: var(--hb-green); }
.qr { width: 92px; height: 92px; background: repeating-conic-gradient(var(--hb-ink) 0 25%, var(--hb-white) 0 50%) 0 0/12px 12px; border: 6px solid var(--hb-white); outline: 1px solid var(--hb-line); border-radius: 8px; flex: none; }

/* Tables and lists */
table.t { width: 100%; border-collapse: collapse; }
.card:has(> table.t) { overflow-x: auto; }
.t th { text-align: left; font-weight: 600; color: var(--hb-slate); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 11px 14px; border-bottom: 1px solid var(--hb-line); white-space: nowrap; background: var(--hb-mist); }
.t td { padding: 12px 14px; border-bottom: 1px solid var(--hb-line); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tr.click { cursor: pointer; } .t tr.click:hover td { background: var(--hb-mist); }
.thumb { width: 54px; height: 54px; border-radius: var(--hb-radius-sm); background: var(--hb-mist); border: 1px solid var(--hb-line); display: grid; place-items: center; color: var(--hb-purple); flex: none; }
.thumb.tall { width: 40px; height: 64px; }
.empty { text-align: center; padding: 40px 20px; color: var(--hb-slate); }
.empty .btn { margin-top: 14px; }

/* Studio shell */
.studio { display: grid; grid-template-columns: 252px 1fr; min-height: calc(100vh - 40px); }
.side { background: var(--hb-mist); border-right: 1px solid var(--hb-line); padding: 0 14px 20px; position: sticky; top: 40px; height: calc(100vh - 40px); overflow: auto; display: flex; flex-direction: column; }
.side > .hb-spectrum-bar { margin: 0 -14px; flex: none; }
.side .brand { padding: 20px 8px 6px; flex-direction: column; align-items: flex-start; gap: 6px; }
.side .brand img.hb { width: 150px; }
.side .brand .label { font-size: 11px; color: var(--hb-slate); }
.side .grp { margin-top: 16px; font-size: 10.5px; font-weight: 600; color: var(--hb-slate); text-transform: uppercase; letter-spacing: var(--hb-label-track); padding: 0 12px 6px; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side a { display: flex; align-items: center; gap: 11px; padding: 8px 12px; border-radius: var(--hb-pill); color: var(--hb-slate); font-weight: 500; position: relative; }
.side a .svg-i { color: var(--hb-slate); }
.side a:hover { background: var(--hb-white); color: var(--hb-ink); text-decoration: none; }
.side a.on { background: var(--hb-white); color: var(--hb-ink); font-weight: 600; box-shadow: 0 1px 2px rgba(15,18,34,.06); border: 1px solid var(--hb-line); padding: 7px 11px; }
.side a.on .svg-i { color: var(--hb-magenta); }
.side a.on::before { content: ''; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--hb-headline); }
.side .foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--hb-line); }
.side .foot a { font-size: 13px; padding: 6px 12px; }
.side a.hidden-sec { opacity: .4; }
.main { min-width: 0; background: var(--hb-white); }
.mhead { display: flex; align-items: center; gap: 10px; padding: 12px 32px; background: var(--hb-white); border-bottom: 1px solid var(--hb-line); position: sticky; top: 40px; z-index: 10; }
.mhead .crumbs { color: var(--hb-slate); font-size: 13px; }
.mhead .crumbs b { color: var(--hb-ink); font-weight: 600; }
.mbody { padding: 30px 32px 72px; max-width: 1240px; }
.shot .studio { min-height: 100vh; } .shot .side { top: 0; height: 100vh; } .shot .mhead { top: 0; } .shot .auth { min-height: 100vh; }
@media (max-width: 900px) { .studio { grid-template-columns: 1fr; } .side { position: static; height: auto; } }

/* Consistent page header (built in studio.js): title with one gradient word, one-line purpose, the one primary action on the right */
.phead { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid var(--hb-line); margin-bottom: 26px; }
.phead + *, .stabs + * { margin-top: 0 !important; }
.ph-back { margin-bottom: 8px; }
.phead .ph-text { flex: 1; min-width: 280px; }
.phead .ph-text > * + * { margin-top: 6px; }
.phead h1 { font-size: 30px; }
.phead .ph-desc { color: var(--hb-slate); font-size: 15px; max-width: 780px; }
.phead .ph-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.phead .ph-actions input[type=text] { width: 260px; }
.hb-grad-word { background: var(--hb-headline); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* Section tabs (secondary pages of a section) */
.stabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--hb-line); margin-bottom: 26px; }
.phead:has(+ .stabs) { border-bottom: 0; padding-bottom: 10px; margin-bottom: 0; }
.stabs a { padding: 10px 14px; color: var(--hb-slate); font-weight: 500; position: relative; display: inline-flex; gap: 8px; align-items: center; }
.stabs a:hover { color: var(--hb-ink); text-decoration: none; }
.stabs a.on { color: var(--hb-ink); font-weight: 600; }
.stabs a.on::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px; background: var(--hb-headline); }

/* Studio Home */
.hm-status { display: flex; gap: 12px; flex-wrap: wrap; }
.hm-stat { display: flex; align-items: center; gap: 12px; padding: 12px 18px; background: var(--hb-mist); border: 1px solid var(--hb-line); border-radius: var(--hb-pill); color: var(--hb-ink); text-decoration: none !important; font-weight: 500; }
.hm-stat:hover { border-color: var(--hb-slate); }
.hm-stat .svg-i { color: var(--hb-blue-deep); }
.hm-stat .sv { font-weight: 600; }
.hm-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
@media (max-width: 1100px) { .hm-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) { .hm-grid { grid-template-columns: 1fr; } }
.hm-card { display: flex; flex-direction: column; gap: 10px; padding: 24px 22px 22px; position: relative; overflow: hidden; transition: transform .15s, box-shadow .15s, border-color .15s; }
.hm-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--accent); }
.hm-card:hover { transform: translateY(-2px); border-color: var(--hb-slate); box-shadow: 0 14px 30px rgba(15,18,34,.08); }
.hm-card h3 { font-size: 18px; margin-top: 6px; }
.hm-card p { color: var(--hb-slate); flex: 1; }
.hm-card .btn { align-self: flex-start; margin-top: 6px; }
.hm-card .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.hm-phone { display: grid; grid-template-columns: 1.1fr 2fr; gap: 28px; align-items: center; padding: 28px; background: var(--hb-mist); border: 1px solid var(--hb-line); border-radius: var(--hb-radius); position: relative; overflow: hidden; }
.hm-phone::after { content: ''; position: absolute; right: -80px; bottom: 26px; width: 300px; height: 20px; border-radius: var(--hb-pill); background: var(--hb-warm); transform: rotate(-45deg); opacity: .8; }
.hm-steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; position: relative; z-index: 1; }
.hm-step { background: var(--hb-white); border: 1px solid var(--hb-line); border-radius: var(--hb-radius-sm); padding: 16px; }
.hm-step .num { width: 28px; height: 28px; border-radius: 50%; background: var(--hb-ink); color: var(--hb-white); display: grid; place-items: center; font-weight: 600; font-size: 13px; margin-bottom: 8px; }
.hm-step b { display: block; margin-bottom: 2px; }
@media (max-width: 900px) { .hm-phone, .hm-steps { grid-template-columns: 1fr; } }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-weight: 500; color: var(--hb-ink); }
.field .hint { font-size: 12.5px; color: var(--hb-slate); }
.field .err { font-size: 12.5px; color: var(--hb-bad); display: none; }
.field.bad .err { display: block; }
.field.bad input, .field.bad textarea, .field.bad select, .field.bad .drop { border-color: var(--hb-bad); }
input[type=text], input[type=email], input[type=number], input[type=url], input[type=tel], input[type=password], input[type=date], select, textarea {
  border: 1px solid var(--hb-line); border-radius: var(--hb-radius-sm); padding: 10px 14px; background: var(--hb-white); width: 100%; color: var(--hb-ink); }
input::placeholder, textarea::placeholder { color: var(--hb-slate); opacity: .8; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--hb-blue); outline-offset: 0; border-color: transparent; }
.counter { font-size: 12px; color: var(--hb-slate); text-align: right; margin-top: -2px; }
.drop { border: 1.5px dashed var(--hb-line); border-radius: var(--hb-radius); padding: 24px; text-align: center; color: var(--hb-slate); background: var(--hb-mist); cursor: pointer; }
.drop .svg-i { color: var(--hb-blue-deep); }
.drop:hover, .drop.over { border-color: var(--hb-blue-deep); background: var(--hb-white); }
.files { margin-top: 10px; }
.files .f { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--hb-line); border-radius: var(--hb-radius-sm); margin-top: 6px; font-size: 13px; }
.files .f.bad { border-color: var(--hb-bad); background: var(--hb-bad-bg); }
.files .bar { height: 4px; background: var(--hb-mist); border-radius: 4px; overflow: hidden; flex: 0 0 120px; }
.files .bar i { display: block; height: 100%; background: var(--hb-cool); width: 0; transition: width .3s; }
.seg { display: inline-flex; border: 1px solid var(--hb-line); border-radius: var(--hb-pill); overflow: hidden; flex-wrap: wrap; background: var(--hb-white); padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 6px 14px; cursor: pointer; border-radius: var(--hb-pill); color: var(--hb-slate); font-weight: 500; }
.seg button:hover { color: var(--hb-ink); }
.seg button.on { background: var(--hb-ink); color: var(--hb-white); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--hb-line); border-radius: var(--hb-pill); overflow: hidden; }
.stepper button { border: 0; background: var(--hb-white); width: 42px; height: 40px; cursor: pointer; font-size: 18px; color: var(--hb-ink); }
.stepper button:hover { background: var(--hb-mist); }
.stepper span { min-width: 90px; text-align: center; font-weight: 600; color: var(--hb-ink); }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--hb-ink); }
.toggle { position: relative; width: 42px; height: 24px; flex: none; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle i { position: absolute; inset: 0; background: var(--hb-line); border-radius: var(--hb-pill); transition: .2s; cursor: pointer; }
.toggle i::after { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: var(--hb-white); border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(15,18,34,.25); }
.toggle input:checked + i { background: var(--hb-ok); }
.toggle input:checked + i::after { left: 21px; }
input[type=range] { accent-color: var(--hb-blue-deep); }

/* Wizard rail */
.rail { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.rail .s { display: flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border-radius: var(--hb-pill); background: var(--hb-mist); border: 1px solid var(--hb-line); color: var(--hb-slate); font-size: 13px; font-weight: 500; }
.rail .s i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--hb-white); border: 1px solid var(--hb-line); font-style: normal; font-size: 12px; font-weight: 600; }
.rail .s.on { background: var(--hb-ink); color: var(--hb-white); border-color: var(--hb-ink); } .rail .s.on i { background: var(--hb-white); color: var(--hb-ink); border-color: transparent; }
.rail .s.done { color: var(--hb-ok); background: var(--hb-white); } .rail .s.done i { background: var(--hb-ok); color: #fff; border-color: transparent; }
.wizfoot { display: flex; gap: 10px; justify-content: space-between; align-items: center; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--hb-line); }

/* Notices (status said in words; tinted status backgrounds only) */
.note { border-radius: var(--hb-radius-sm); padding: 12px 16px; display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; border: 1px solid transparent; }
.note > .svg-i:first-child { margin-top: 1px; }
.note.info { background: var(--hb-mist); color: var(--hb-ink); border-color: var(--hb-line); } .note.info > .svg-i:first-child { color: var(--hb-blue-deep); }
.note.warn { background: var(--hb-warn-bg); color: var(--hb-ink); } .note.warn > .svg-i:first-child { color: var(--hb-warn); }
.note.ok { background: var(--hb-ok-bg); color: var(--hb-ink); } .note.ok > .svg-i:first-child { color: var(--hb-ok); }
.note.bad { background: var(--hb-bad-bg); color: var(--hb-ink); } .note.bad > .svg-i:first-child { color: var(--hb-bad); }
.note.sample { background: var(--hb-white); color: var(--hb-slate); border: 1px dashed var(--hb-line); } .note.sample > .svg-i:first-child { color: var(--hb-purple); }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 8px 16px; font-size: 13.5px; }
.kv dt { color: var(--hb-slate); } .kv dd { margin: 0; color: var(--hb-ink); }
.stat { padding: 18px 20px; } .stat .v { font-size: 28px; font-weight: 600; color: var(--hb-ink); } .stat .l { color: var(--hb-slate); font-size: 12.5px; }
.barlist .b { display: grid; grid-template-columns: 130px 1fr 60px; gap: 12px; align-items: center; margin-top: 10px; font-size: 13px; }
.barlist .track { height: 8px; background: var(--hb-mist); border-radius: var(--hb-pill); overflow: hidden; }
.barlist .track i { display: block; height: 100%; background: var(--hb-cool); border-radius: var(--hb-pill); }

/* Viewer and content posters (the HoloBox motion surface = night background) */
.viewer { height: calc(100vh - 220px); min-height: 520px; width: 100%; border: 1px solid var(--hb-line); border-radius: var(--hb-radius-sm); background: var(--hb-white); }
video.player { width: 100%; border-radius: var(--hb-radius-sm); background: #000; max-height: 70vh; }
.poster { aspect-ratio: 16/9; border-radius: var(--hb-radius-sm); background: var(--hb-night); color: #fff; display: grid; place-items: center; text-align: center; padding: 20px; }
.poster b, .poster strong { color: #fff; }

/* Dialog, toast, notes */
.backdrop { position: fixed; inset: 0; background: rgba(15,18,34,.45); display: grid; place-items: center; z-index: 80; padding: 16px; }
.dialog { background: var(--hb-white); border-radius: 20px; width: 100%; max-width: 540px; max-height: 88vh; overflow: auto; box-shadow: 0 30px 80px rgba(15,18,34,.25); }
.dialog::before { content: ''; display: block; height: 4px; background: var(--hb-spectrum); }
.dialog .dh { padding: 18px 22px; border-bottom: 1px solid var(--hb-line); display: flex; align-items: center; }
.dialog .db { padding: 20px 22px; }
.dialog .df { padding: 14px 22px; border-top: 1px solid var(--hb-line); display: flex; justify-content: flex-end; gap: 10px; background: var(--hb-mist); }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--hb-ink); color: #fff; padding: 10px 20px; border-radius: var(--hb-pill); z-index: 90; font-size: 13.5px; box-shadow: 0 8px 30px rgba(15,18,34,.25); }
.notes { position: fixed; right: 16px; bottom: 16px; width: 360px; max-width: calc(100vw - 32px); background: var(--hb-white); border-radius: var(--hb-radius); box-shadow: 0 20px 60px rgba(15,18,34,.22); z-index: 70; border: 1px solid var(--hb-line); }
.notes .nh { padding: 12px 14px; background: var(--hb-ink); color: #fff; border-radius: var(--hb-radius) var(--hb-radius) 0 0; display: flex; align-items: center; gap: 8px; font-size: 13px; }
.notes .nh b { color: #fff; }
.notes .nb { padding: 12px 14px; }
.notes textarea { min-height: 120px; font-size: 13px; }
.notes .old { max-height: 160px; overflow: auto; font-size: 12.5px; margin-bottom: 8px; }
.notes .old div { padding: 6px 8px; background: var(--hb-mist); border-radius: 8px; margin-bottom: 4px; }
.idx a { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: var(--hb-pill); color: var(--hb-ink); }
.idx a:hover { background: var(--hb-mist); text-decoration: none; }
.pill-num { background: var(--hb-magenta); color: #fff; border-radius: var(--hb-pill); padding: 0 7px; font-size: 11px; font-weight: 600; }
.svg-i { width: 20px; height: 20px; flex: none; }

/* Wireframe-only demo state bars injected by modules: neutral, clearly "not product" */
.cv-wf, .vx-state, .adwf { background: var(--hb-white) !important; border: 1px dashed var(--hb-line) !important; color: var(--hb-slate) !important; border-radius: var(--hb-radius-sm) !important; }
.cv-wf .tag, .vx-state b, .adwf > span:first-child { color: var(--hb-ink) !important; }
.cv-wf button, .vx-state button { border: 1px solid var(--hb-line) !important; background: var(--hb-white) !important; color: var(--hb-ink) !important; border-radius: var(--hb-pill) !important; }
.cv-wf button.on, .vx-state button.on { background: var(--hb-ink) !important; color: var(--hb-white) !important; border-color: var(--hb-ink) !important; }
.hm-grid.race4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.script-box { border: 1px solid var(--hb-line); border-radius: 18px; padding: 14px; background: var(--hb-white); display: flex; flex-direction: column; gap: 12px; }
.script-box textarea { border: 0; box-shadow: none; padding: 4px; }
.script-mic { display: flex; align-items: center; gap: 14px; padding-top: 12px; border-top: 1px solid var(--hb-line); }
.cv-hold.sm { width: 84px !important; height: 84px !important; flex: none; font-size: 11px; }
.vis-filter label { display: flex; flex-direction: column; gap: 6px; } .vis-filter input { min-width: 150px; }

/* ---- THE PAGE'S FOOT (A-126; Rrahul, 12 Nov 2026: "Copyright 2025-2026 All right reserved.", "no need to menton the company
   name for now"). One class for every page that is not the HoloBox's own glass; the words are in
   resources/views/partials/pagefoot.blade.php. Small and quiet, yet readable (4.5 to 1 or better on each page: PageFootTest).
   It stands in the page's flow after everything else, so it is never over a button. A dark page sets --pagefoot.
   A page with its own styles gets this same rule with the line: keep the two letter for letter the same. ---- */
.pagefoot { flex: none; margin: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); text-align: center; font-size: 12.5px; font-weight: 400; line-height: 1.4; letter-spacing: 0; color: var(--pagefoot, #5E6572); }
