[hidden] { display: none !important; } /* the panel, its forms and the small buttons set display, which would show them while hidden */
html, body { margin: 0; height: 100%; background: #0f1115; color: #e8eaed; font: 16px/1.35 -apple-system, "Segoe UI", Roboto, sans-serif; }
main { position: relative; height: 100%; overflow: hidden; }
video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); background: #000; }
header, footer { position: absolute; left: 0; right: 0; padding: max(14px, env(safe-area-inset-top)) 16px 14px; display: flex; gap: 10px; align-items: center; }
header { top: 0; background: linear-gradient(#000a, #0000); }
footer { bottom: 0; flex-direction: column; padding-bottom: max(18px, env(safe-area-inset-bottom)); background: linear-gradient(#0000, #000c); }
.pill { padding: 6px 12px; border-radius: 999px; background: #23262d; font-weight: 600; font-size: 15px; }
.pill[data-state="live"] { background: #c62828; }
.pill[data-state="connecting"], .pill[data-state="reconnecting"] { background: #8a6d00; }
.pill[data-state="failed"], .pill[data-state="camera"] { background: #5f2120; }
.clock { font-variant-numeric: tabular-nums; color: #fff; text-shadow: 0 1px 2px #000; }
.line { margin: 0; text-align: center; max-width: 520px; text-shadow: 0 1px 2px #000; }
button { width: min(420px, 100%); height: 56px; border: 0; border-radius: 14px; background: #e53935; color: #fff; font-size: 19px; font-weight: 700; }
button[data-live="true"] { background: #2b2f38; }
button:disabled { opacity: .5; }
.stats { margin: 0; font-size: 12px; color: #b9bec7; font-variant-numeric: tabular-nums; text-align: center; min-height: 1em; }
header { flex-wrap: wrap; }
.rooms { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.rooms li { padding: 4px 10px; border-radius: 999px; background: #23262dcc; font-size: 13px; }
.rooms li[data-state="live"] { background: #c62828; }
.rooms li[data-state="starting"], .rooms li[data-state="recovering"], .rooms li[data-state="stopping"] { background: #8a6d00; }
.rooms li[data-state="lost"], .rooms li[data-state="unknown"] { background: #5f2120; }
.small { width: auto; height: 32px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: #23262dcc; }
.quiet { background: #2b2f38; }
.panel { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; background: #0f1115f2; overflow: auto; }
/* Her setup link's screens sit on HALO's mark over Cam's login gradient (CRM .creator-phone-preview; Shaan, 19 Oct:
   "feel nicer, like the background image on Cam's login"). Same-origin art: the page's CSP allows img-src 'self' only. */
.panel:has(#onb:not([hidden])) {
  background:
    url('/app/halo-door.svg') center 42% / min(78vw, 460px) auto no-repeat,
    radial-gradient(ellipse 75% 48% at 50% 20%, rgba(36, 39, 48, .38), transparent 72%),
    linear-gradient(180deg, #111217 0%, #08090c 46%, #040506 100%);
}
.panel:has(#onb:not([hidden])) form { padding: 22px 20px; border: 1px solid #ffffff17; border-radius: 18px; background: #08090ce0; box-shadow: 0 28px 80px #00000075; backdrop-filter: blur(6px); }
.hint { margin: -4px 0 0; font-size: 13px; color: #8b909a; min-height: 1em; }
.hint[data-ok="true"] { color: #7fd1a0; }
.onb-ask { margin: 8px 0 0; font-size: 13px; color: #8b909a; text-align: center; }
.panel form { width: min(420px, 100%); display: flex; flex-direction: column; gap: 12px; }
.panel h1 { margin: 0 0 4px; font-size: 22px; }
.panel label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: #b9bec7; }
.panel input { height: 44px; padding: 0 12px; border: 1px solid #3a3f4a; border-radius: 10px; background: #181b21; color: #e8eaed; font-size: 16px; }
.panel fieldset { border: 1px solid #2b2f38; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.panel legend { padding: 0 6px; font-weight: 600; }
.note { margin: 0; font-size: 13px; color: #b9bec7; min-height: 1em; }
.saved { font-size: 12px; color: #8fd19e; }
.saved[data-saved="false"] { color: #f5b545; }
.asked { width: min(420px, 100%); display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 14px; background: #23262df2; }
.asked p { margin: 0; text-align: center; font-weight: 600; }
.asked-row { display: flex; gap: 8px; }
.asked-row button { height: 48px; font-size: 17px; }
/* Her phone setup (onboarding group 4), in Cam's phone onboarding's pattern: a stage count and a thin progress line over
   one narrow column, HALO yellow on the button that moves her on. */
.onb { position: absolute; top: max(16px, env(safe-area-inset-top)); left: 50%; translate: -50% 0; width: min(420px, calc(100% - 32px)); display: flex; flex-direction: column; gap: 6px; }
.onb-top { display: flex; justify-content: space-between; font-size: 12px; color: #b9bec7; font-variant-numeric: tabular-nums; }
.onb-track { height: 6px; border-radius: 999px; background: #23262d; overflow: hidden; }
.onb-track i { display: block; height: 100%; width: 0; border-radius: inherit; background: #ffe433; transition: width 200ms; }
.panel form:is(#welcome, #setup, #photo, #done) button[type="submit"] { background: linear-gradient(135deg, #ffe433, #f5c518); color: #111; }
.panel form:is(#welcome, #setup, #photo, #done) button[type="submit"]:disabled { opacity: .45; }
.onb-logo { width: 56px; height: 56px; }
.onb-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: #e8eaed; font-size: 15px; }
.onb-shot { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; border: 1px dashed #3a3f4a; border-radius: 14px; background: #181b21; overflow: hidden; color: #8b909a; font-size: 14px; }
.onb-shot img { width: 100%; height: 100%; object-fit: contain; }
.onb-take { display: grid !important; place-items: center; height: 52px; border: 1px solid #3a3f4a; border-radius: 14px; background: #23262d; color: #e8eaed !important; font-size: 17px !important; font-weight: 600; cursor: pointer; }
.onb-take input { position: absolute; width: 1px; height: 1px; opacity: 0; }
@media (prefers-reduced-motion: reduce) { .onb-track i { transition: none; } }
/* Her other sign-up guides on her done step (onboarding): one quiet row each, a full-width tap target. */
.onb-sites { display: flex; flex-direction: column; gap: 8px; }
.onb-site { display: grid; place-items: center; height: 48px; border: 1px solid #3a3f4a; border-radius: 14px; background: #23262d; color: #e8eaed; font-size: 16px; font-weight: 600; text-decoration: none; }
.onb-site:focus-visible { outline: 2px solid #e8eaed; outline-offset: 2px; }
