/* The first run: the console's guided setup (js/onboarding.js) over the world it builds.

   The console's look, carried over: an aurora of three soft washes drifting behind one question at a
   time, the card that is waiting for an answer breathing (its glow rises and settles about every
   five seconds), answer cards with a lifted, glowing selected state that reads without colour alone
   (a check mark too), a quick slide between questions (a fade under reduced motion), and the
   assistant's pixel face as a small object with a rim light and a contact shadow. Sources:
   overblast-webconsole/assets/css/main.css lines 438–660 and tokens.css (`--aura-*`).

   What differs is where it sits. The console's interview fills a blank page; here the world is
   behind it and builds as you answer, so:
     · from 960 px the card is a column on the left over a frost that thins out to the right, and
       the camera frames the board in what the column leaves free;
     · under 960 px (phones) the interview is full screen at level 0 (mobile.css): a strip of the
       world at the top, and the questions in a sheet under it, which takes the whole screen while
       something is typed. Its answer cards have a hairline, not a shadow; fields are 16 px; every
       target reaches 44 px; the safe areas are kept.
   Glass follows the Theme menu (realistic, subtle, off) and the Night theme; the aurora's washes
   are the console's own colours in both themes. */

:root {
  --aura-1: 108 92 231;
  --aura-2: 236 72 153;
  --aura-3: 20 184 166;
  --aura-a: 0.2;
  --onb-accent: 108 92 231;
  --onb-accent-ink: #5141c9;
  --onb-soft: 0.12;
  --onb-surface: 255 255 255;
  --onb-shadow-3: 0 1px 2px rgba(20, 28, 40, 0.05), 0 10px 30px -12px rgba(20, 28, 40, 0.22);
  --onb-blur: 16px;
}
:root[data-theme='night'] {
  --aura-1: 125 111 240;
  --aura-2: 219 39 119;
  --aura-3: 13 148 136;
  --aura-a: 0.26;
  --onb-accent: 125 111 240;
  --onb-accent-ink: #b8b0ff;
  --onb-soft: 0.2;
  --onb-surface: 34 40 52;
  --onb-shadow-3: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
}
:root[data-glass='subtle'] { --onb-blur: 8px; }

/* While it is open, the prototype's own chrome steps aside: only the world (and its labels) shows. */
body.onb-open :is(.topbar, .rail, .side, .dock, .depthnav, .camctl, .crumbs, #onboard, .ticker, .hint, .planbar, .incident-card, .callstack, #sky-mode, .focus, .focus-bar, .route-handles) { visibility: hidden !important; }
body.onb-open #presence-layer { pointer-events: none; }
body.onb-open #toast { z-index: 96; }

.onb { position: fixed; inset: 0; z-index: 85; color: var(--ink); font-size: 14px; line-height: 1.45; }
.onb .sr-only { position: absolute; }
.onb-frost {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgb(var(--glass-tint) / 0.7) 0%, rgb(var(--glass-tint) / 0.5) 40%, rgb(var(--glass-tint) / 0.08) 66%, rgb(var(--glass-tint) / 0) 100%);
  -webkit-backdrop-filter: blur(var(--onb-blur)) saturate(1.2);
  backdrop-filter: blur(var(--onb-blur)) saturate(1.2);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 44%, rgba(0, 0, 0, 0.12) 70%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 44%, rgba(0, 0, 0, 0.12) 70%, transparent 100%);
}
:root[data-glass='off'] .onb-frost { -webkit-backdrop-filter: none; backdrop-filter: none; background: linear-gradient(90deg, var(--bg) 0%, var(--bg) 42%, color-mix(in srgb, var(--bg) 0%, transparent) 70%); -webkit-mask-image: none; mask-image: none; }
@media (prefers-reduced-transparency: reduce) { .onb-frost { -webkit-backdrop-filter: none; backdrop-filter: none; } }

.onb-col {
  position: absolute; top: 0; bottom: 0; left: max(20px, 4vw); width: min(600px, 47vw);
  display: flex; flex-direction: column;
  padding-top: env(safe-area-inset-top);
}
/* Behind the column only: the world on the right stays in its own light. */
.onb-aurora { position: absolute; top: -10vmax; bottom: -10vmax; left: -8vmax; width: calc(min(600px, 47vw) + max(20px, 4vw) + 8vmax); pointer-events: none; filter: blur(60px);
  -webkit-mask-image: linear-gradient(90deg, #000 60%, transparent); mask-image: linear-gradient(90deg, #000 60%, transparent); }
.onb-aurora > span { position: absolute; width: 46vmax; height: 46vmax; border-radius: 9999px; animation: onb-drift 26s ease-in-out infinite alternate; }
.onb-aurora > span:nth-child(1) { left: 0; top: 0; background: radial-gradient(closest-side, rgb(var(--aura-1) / var(--aura-a)), transparent); }
.onb-aurora > span:nth-child(2) { right: -8vmax; top: 22%; background: radial-gradient(closest-side, rgb(var(--aura-2) / calc(var(--aura-a) * 0.7)), transparent); animation-duration: 32s; animation-delay: -8s; }
.onb-aurora > span:nth-child(3) { left: 18%; bottom: 0; background: radial-gradient(closest-side, rgb(var(--aura-3) / calc(var(--aura-a) * 0.7)), transparent); animation-duration: 38s; animation-delay: -16s; }
@keyframes onb-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(6vmax, -4vmax, 0) scale(1.08); }
  to { transform: translate3d(-5vmax, 5vmax, 0) scale(0.96); }
}

/* The frame: the face, the name, where you are, and the quiet way out. */
.onb-head { display: flex; align-items: center; gap: 9px; height: 60px; padding: 0 6px; flex: none; min-width: 0; }
.onb-brand { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.onb-proto { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 999px; padding: 1px 7px; }
.onb-count { color: var(--ink-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.onb-pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 2px 9px; font-size: 11px; font-weight: 500; background: rgb(var(--onb-accent) / var(--onb-soft)); color: var(--onb-accent-ink); white-space: nowrap; overflow: hidden; }
.onb-pill i { width: 6px; height: 6px; border-radius: 50%; background: rgb(var(--onb-accent)); animation: onb-blinkdot 1s ease-in-out infinite; }
@keyframes onb-blinkdot { 50% { opacity: 0.3; } }
.onb-grow { flex: 1; }
.onb-later { border: 0; background: none; color: var(--ink-3); font-size: 12.5px; padding: 6px 8px; border-radius: 6px; cursor: pointer; white-space: nowrap; }
.onb-later:hover { color: var(--ink); text-decoration: underline; }
.onb-later .narrow { display: none; }
.onb-progress { height: 4px; margin: 0 6px; border-radius: 99px; background: color-mix(in srgb, var(--line-2) 70%, transparent); overflow: hidden; flex: none; }
.onb-progress i { display: block; height: 100%; border-radius: 99px; background: rgb(var(--onb-accent)); transition: width 500ms var(--ease); }

/* No bottom padding: the sticky action bar sticks to the scrollport's content edge, and padding
   there would leave the card's content showing under it. The card's own margin gives the room. */
.onb-scroll { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 26px 8px 0; scrollbar-width: thin; }
.onb-scroll > .onb-card { margin-bottom: 28px; }

/* The card waiting for an answer breathes. */
.onb-card {
  position: relative; border-radius: 20px; border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  background: rgb(var(--onb-surface) / 0.84);
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: var(--onb-shadow-3);
  padding: 28px 28px 0; outline: none;
  transition: opacity 200ms ease, transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.onb-card:not(.barred) { padding-bottom: 28px; }
:root[data-glass='off'] .onb-card { background: var(--card); -webkit-backdrop-filter: none; backdrop-filter: none; }
.onb-breathe { animation: onb-breathe 5.2s ease-in-out infinite; }
@keyframes onb-breathe {
  0%, 100% { box-shadow: var(--onb-shadow-3), 0 0 0 1px rgb(var(--aura-1) / 0.18), 0 0 24px -6px rgb(var(--aura-1) / 0.25); }
  50% { box-shadow: var(--onb-shadow-3), 0 0 0 1px rgb(var(--aura-1) / 0.32), 0 0 56px -4px rgb(var(--aura-1) / 0.38); }
}
/* Between questions: forward slides in from the right, back from the left, both fade; quick. */
.onb-card.onb-forward-leave { opacity: 0; transform: translateX(-12px); transition-duration: 120ms; }
.onb-card.onb-back-leave { opacity: 0; transform: translateX(12px); transition-duration: 120ms; }
.onb-card.onb-fade-leave { opacity: 0; transition-duration: 100ms; }
.onb-card.onb-forward-enter { opacity: 0; transform: translateX(16px); transition: none; }
.onb-card.onb-back-enter { opacity: 0; transform: translateX(-16px); transition: none; }
.onb-card.onb-fade-enter { opacity: 0; transition: none; }

.onb-card h1 { font-size: 24px; line-height: 1.22; font-weight: 600; letter-spacing: -0.015em; outline: none; }
.onb-card h2 { font-size: 15px; font-weight: 600; }
.onb-card h3 { font-size: 14px; font-weight: 600; }
.onb-sub { color: var(--ink-2); font-size: 14px; }
.onb-muted { color: var(--ink-3); font-weight: 400; }
.onb-muted.small, .small.onb-muted { font-size: 12px; }
.onb-stack { display: grid; gap: 16px; margin-top: 12px; }
.onb-stack.tight { gap: 8px; margin-top: 0; }
.onb-stack.wide { gap: 20px; margin-top: 16px; }
.onb-row { display: flex; align-items: center; gap: 8px; }
.onb-row.wrap { flex-wrap: wrap; }
.onb-row.top { align-items: flex-start; }
.onb-row.small { font-size: 13px; }
.grow { flex: 1; min-width: 0; }
.onb-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.onb-box { border: 1px solid var(--line); border-radius: 16px; background: rgb(var(--onb-surface) / 0.7); padding: 14px; }
.onb-face-row { display: flex; margin: 6px 0 22px; }
.onb-note, .onb-proto-note { display: flex; gap: 7px; align-items: flex-start; color: var(--ink-3); font-size: 12.5px; }
.onb-note .onb-i, .onb-proto-note .onb-i { flex: none; margin-top: 2px; }
.onb-proto-note { margin-top: 14px; }

/* Fields */
.onb-field { display: grid; gap: 6px; min-width: 0; }
.onb-label { font-size: 13px; font-weight: 500; color: var(--ink-2); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.onb-count-hint { margin-left: auto; font-weight: 400; color: var(--ink-3); font-size: 12px; }
.onb-input {
  width: 100%; min-width: 0; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--card); color: var(--ink); font-size: 14px; transition: border-color 140ms, box-shadow 140ms;
}
textarea.onb-input { height: auto; padding: 10px 12px; resize: vertical; font: inherit; }
.onb-input.lg { height: 48px; font-size: 16px; }
.onb-input.sm { height: 34px; font-size: 13px; padding: 0 8px; width: auto; }
.onb-input.xs { width: 76px; height: 36px; padding: 0 8px; }
.onb-input:focus { outline: none; border-color: rgb(var(--onb-accent)); box-shadow: 0 0 0 3px rgb(var(--onb-accent) / 0.2); }
.onb-details summary { cursor: pointer; font-size: 13px; font-weight: 500; color: var(--onb-accent-ink); padding: 2px 0; }
.onb-details[open] summary { margin-bottom: 8px; }
.onb-placeholder { display: grid; place-items: center; height: 72px; border: 1px dashed var(--line-2); border-radius: 16px; color: var(--ink-3); font-size: 13px; }
.onb-pin { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); }
.onb-pin.small { font-size: 12px; color: var(--ink-3); }
.onb-pin .onb-i { color: rgb(var(--onb-accent)); flex: none; }
.onb-from { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 1px 2px 1px 8px; font-size: 11px; font-weight: 500; background: rgb(var(--onb-accent) / var(--onb-soft)); color: var(--onb-accent-ink); }
.onb-from button { display: inline-flex; align-items: center; gap: 3px; border: 0; background: none; color: inherit; font: inherit; padding: 2px 7px; border-radius: 999px; cursor: pointer; }
.onb-from button:hover { background: rgb(var(--onb-accent) / 0.15); }
.onb-from-wrap { margin-top: 8px; }
.onb-hint.warn { color: var(--danger); font-size: 12.5px; margin-top: 4px; }

/* Buttons */
.onb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 16px; border-radius: 10px;
  border: 1px solid var(--line-2); background: var(--card); color: var(--ink); font-weight: 500; font-size: 14px; cursor: pointer;
  justify-self: start; transition: filter 140ms, background-color 140ms, transform 140ms;
}
.onb-btn:hover { background: var(--card-2); }
.onb-btn.primary { background: rgb(var(--onb-accent)); border-color: rgb(var(--onb-accent)); color: #fff; }
.onb-btn.primary:hover { filter: brightness(1.08); }
.onb-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.onb-btn.lg { height: 46px; font-size: 15px; padding: 0 20px; border-radius: 12px; }
.onb-btn.sm { height: 32px; padding: 0 10px; font-size: 13px; }
.onb-btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.onb-btn.ghost:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.onb-btn.block { width: 100%; justify-self: stretch; }
.onb-btn.center { justify-self: center; }
.onb-btn.start, .onb-link.start { justify-self: start; }
.onb-link { border: 0; background: none; color: var(--onb-accent-ink); font-weight: 500; font-size: 13.5px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.onb-link:hover { text-decoration: underline; }
.onb-link:disabled { opacity: 0.45; text-decoration: none; cursor: not-allowed; }
.onb-link.small { font-size: 12.5px; padding: 4px 6px; }
.onb-link.end { margin-left: auto; }
.onb-answers { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; }
.onb-pillbtn { border: 1px solid var(--line-2); background: transparent; border-radius: 999px; padding: 4px 12px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.onb-pillbtn:hover { background: var(--card-2); }
.onb-icon-btn, .onb-x { display: grid; place-items: center; width: 34px; height: 34px; border: 0; background: none; border-radius: 8px; color: var(--ink-3); cursor: pointer; flex: none; }
.onb-x { width: 28px; height: 28px; }
.onb-icon-btn:hover, .onb-x:hover { background: var(--card-2); color: var(--ink); }

/* Answer cards and chips: lifted and glowing when chosen, with a check as well as a colour. */
.onb-choices { display: grid; gap: 8px; margin-top: 16px; }
.onb-choices .onb-sub { margin-bottom: 4px; }
.onb-fs .onb-choices { margin-top: 0; }
.onb-choices.two { grid-template-columns: 1fr 1fr; }
.onb-choices.three { grid-template-columns: repeat(3, 1fr); }
.onb-choice {
  display: flex; align-items: flex-start; gap: 12px; width: 100%; text-align: left; padding: 14px; border-radius: 16px;
  border: 1px solid var(--line); background: rgb(var(--onb-surface) / 0.7); color: var(--ink); font: inherit; cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.onb-choice.center { align-items: center; }
.onb-choice:hover { border-color: var(--line-2); transform: translateY(-1px); }
.onb-choice:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px rgb(var(--onb-accent)); }
.onb-choice[aria-pressed='true'], .onb-choice[aria-checked='true'] {
  border-color: rgb(var(--onb-accent) / 0.6); background: rgb(var(--onb-accent) / var(--onb-soft));
  box-shadow: 0 8px 28px -12px rgb(var(--onb-accent) / 0.45);
}
.onb-tile { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--card-2); color: var(--onb-accent-ink); flex: none; }
.onb-tile.sm { width: 36px; height: 36px; }
.onb-tile.accent { background: rgb(var(--onb-accent) / var(--onb-soft)); }
.onb-choice-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.onb-choice-t b { font-weight: 600; font-size: 14px; }
.onb-choice-t small { color: var(--ink-3); font-size: 13px; }
.onb-check { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line-2); flex: none; color: #fff; }
[aria-checked='true'] > .onb-check { background: rgb(var(--onb-accent)); border-color: rgb(var(--onb-accent)); }
.onb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.onb-chip { width: auto; padding: 8px 14px; font-weight: 500; font-size: 13.5px; border-radius: 12px; }
.onb-chip[aria-pressed='true']::before { content: '✓'; margin-right: 0.35em; font-weight: 700; color: var(--onb-accent-ink); }
.onb-fs { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 8px; }
.onb-fs legend { font-size: 13.5px; font-weight: 500; margin-bottom: 8px; padding: 0; }
.onb-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.onb-tags li { display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; background: rgb(var(--onb-accent) / var(--onb-soft)); color: var(--onb-accent-ink); }
.onb-tags button, .onb-person button { display: grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; }
.onb-tags button:hover, .onb-person button:hover { background: rgb(var(--onb-accent) / 0.18); }
.onb-chan { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.onb-chan .onb-choice { flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px; font-size: 13px; font-weight: 500; text-align: center; }
.onb-chan .onb-i { color: var(--onb-accent-ink); }

/* Welcome */
.onb-welcome { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.onb-welcome li { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--ink-2); }
.onb-welcome li > .onb-i { color: var(--onb-accent-ink); opacity: 0.85; }
.onb-welcome .chev { color: var(--ink-3); opacity: 0.6; display: inline-flex; }
.onb-pop { animation: onb-pop 420ms cubic-bezier(0.2, 0.9, 0.3, 1.3) backwards; }
@keyframes onb-pop { from { opacity: 0; transform: translateY(6px) scale(0.96); } to { opacity: 1; transform: none; } }

/* The site read */
.onb-reading { border: 1px solid var(--line); border-radius: 16px; background: color-mix(in srgb, var(--card-2) 60%, transparent); padding: 14px; display: grid; gap: 10px; }
.onb-reading-head { display: flex; align-items: center; gap: 12px; font-size: 13.5px; font-weight: 500; }
.onb-link-row p { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-3); }
.onb-link-row p .onb-i { flex: none; }
.onb-link-row:has(.onb-i) p .onb-i { color: var(--ok); }
.onb-titles { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.onb-titles span { border-radius: 999px; background: var(--card); padding: 2px 9px; font-size: 12px; color: var(--ink-2); }
.onb-found { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.onb-found li { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; }
.onb-found .onb-i { color: var(--ok); flex: none; margin-top: 1px; }

/* The week */
.onb-week { display: grid; gap: 4px; }
.onb-day { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 6px 8px; border-radius: 12px; }
.onb-day.open { background: color-mix(in srgb, var(--card-2) 75%, transparent); }
.onb-switch { display: inline-flex; align-items: center; gap: 8px; width: 84px; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 500; color: var(--ink); cursor: pointer; padding: 4px 0; border-radius: 8px; flex: none; }
.onb-switch i { position: relative; width: 30px; height: 18px; border-radius: 99px; background: var(--line-2); transition: background-color 160ms; flex: none; }
.onb-switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); transition: left 160ms; }
.onb-switch[aria-checked='true'] i { background: rgb(var(--onb-accent)); }
.onb-switch[aria-checked='true'] i::after { left: 14px; }
.onb-span { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-3); }
.onb-span .onb-input { width: 100px; }

/* Orders, templates, groups */
.onb-item { align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px; cursor: default; }
.onb-item:hover, .onb-tpl:hover, .onb-group:hover, .onb-promise .onb-choice:hover { transform: none; }
.onb-item > .onb-input:first-child { flex: 1; min-width: 140px; height: 36px; }
.onb-cur { width: 34px; text-transform: uppercase; color: var(--ink-3); font-size: 12px; }
.dropped { opacity: 0.6; }
.dropped h3 { text-decoration: line-through; }
.onb-tpl, .onb-group { display: grid; gap: 12px; cursor: default; }
.onb-tpl-top { display: flex; gap: 12px; align-items: flex-start; }
.onb-tpl p { color: var(--ink-3); font-size: 13px; margin-top: 2px; }
.onb-fields { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px !important; }
.onb-fields span { border-radius: 999px; background: var(--card-2); padding: 2px 8px; font-size: 12px; color: var(--ink-2); }
.onb-tpl-foot { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.onb-check-label { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--ink-2); margin-right: auto; cursor: pointer; }
.onb-check-label input { margin-top: 2px; accent-color: rgb(var(--onb-accent)); width: 16px; height: 16px; }
.onb-people { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 42px; padding: 5px 8px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); cursor: text; }
.onb-people:focus-within { border-color: rgb(var(--onb-accent)); box-shadow: 0 0 0 3px rgb(var(--onb-accent) / 0.2); }
.onb-person { display: inline-flex; align-items: center; gap: 2px; padding: 2px 3px 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500; background: rgb(var(--onb-accent) / var(--onb-soft)); color: var(--onb-accent-ink); max-width: 100%; }
.onb-people-in { flex: 1; min-width: 160px; border: 0; background: transparent; outline: none; padding: 4px; font-size: 13.5px; color: var(--ink); }

/* Promise, summary, applying, plan, done */
.onb-promise { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.onb-promise .onb-choice { cursor: default; }
.onb-summary { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.onb-summary li { display: flex; align-items: flex-start; gap: 12px; border-radius: 12px; padding: 12px; background: color-mix(in srgb, var(--card-2) 70%, transparent); }
.onb-summary li > .onb-i { color: var(--onb-accent-ink); flex: none; margin-top: 1px; }
.onb-summary b { font-size: 13.5px; }
.onb-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; border-radius: 11px; background: var(--card-2); border: 1px solid var(--line); }
.onb-seg button { border: 0; border-radius: 8px; height: 34px; background: transparent; font: inherit; font-size: 13px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.onb-seg button[aria-checked='true'] { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
.onb-parts { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 6px; }
.onb-parts li { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 12px; font-size: 13.5px; color: var(--ink-3); transition: background-color 200ms, color 200ms; }
.onb-parts li.done { background: color-mix(in srgb, var(--card-2) 75%, transparent); color: var(--ink); }
.onb-dot { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--card-2); color: var(--ink-3); flex: none; }
.done > .onb-dot { background: var(--ok); color: #fff; }
.spin { display: inline-flex; animation: spin 0.8s linear infinite; }
.onb-terms { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; }
.onb-terms .onb-i { color: var(--ink-3); }
.onb-plan { display: grid; gap: 10px; }
.onb-plan .onb-row b { font-size: 15px; }
.onb-badge { margin-left: auto; font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--orange-soft); color: #9a5a1e; }
:root[data-theme='night'] .onb-badge { color: var(--orange-1); }
.onb-nexts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.onb-next { padding: 12px; position: relative; }
.onb-next .onb-choice-t b { font-size: 13.5px; }
.onb-next .onb-choice-t small { font-size: 12px; }
.onb-card section h2 + p { margin-top: 2px; font-size: 13px; }

/* THE ACTION BAR: Continue, Skip and Back always in reach, sticky at the card's foot. */
.onb-bar {
  position: sticky; bottom: 0; z-index: 2; display: flex; align-items: center; gap: 10px; margin: 24px -28px 0; padding: 14px 28px 18px;
  border-radius: 0 0 20px 20px;
  background: linear-gradient(180deg, rgb(var(--onb-surface) / 0) 0%, rgb(var(--onb-surface) / 0.94) 26%);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
:root[data-glass='off'] .onb-bar { background: var(--card); }
.onb-back { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink-2); cursor: pointer; flex: none; }
.onb-back:hover { color: var(--ink); background: var(--card-2); }
.onb-hint-keys { color: var(--ink-3); font-size: 12px; white-space: nowrap; }
.onb-skip { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--ink-3); font: inherit; font-size: 13.5px; padding: 10px 8px; border-radius: 10px; cursor: pointer; }
.onb-skip:hover { color: var(--ink); }
.onb-skip .onb-i { display: none; }

/* What the world just gained, beside the board (from 960 px), or under its strip (phones). */
.onb-built { position: absolute; right: 24px; bottom: 24px; width: 290px; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; font-size: 12.5px; }
.onb-built-h { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 12px; color: var(--ink-2); }
.onb-built ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 3px; color: var(--ink-2); }
.onb-built li::before { content: '+ '; color: rgb(var(--onb-accent)); font-weight: 600; }

/* The face: a dark tile with a rim light, a glow behind, a contact shadow that breathes with it. */
.onb-face { position: relative; display: inline-grid; place-items: center; flex: none; width: var(--s); height: var(--s); }
.onb-face-halo { position: absolute; inset: -45%; border-radius: 9999px; filter: blur(8px); animation: onb-halo 6.4s ease-in-out infinite;
  background: radial-gradient(closest-side, rgb(var(--aura-1) / 0.22), transparent 70%), radial-gradient(circle at 30% 75%, rgb(var(--aura-3) / 0.14), transparent 55%), radial-gradient(circle at 75% 70%, rgb(var(--aura-2) / 0.12), transparent 55%); }
/* The tile only holds 00next's hardware face (js/onboarding.js faceSvg), which draws its own shell,
   screen, pixels and glass; it keeps the console's slow rise. The drop shadow is 00next's, scaled with
   the size the way PixelFace.vue computes it. */
.onb-face-tile { position: relative; display: block; width: var(--s); height: var(--s); animation: onb-rise 6.4s ease-in-out infinite; }
.onb-face-svg { display: block; width: 100%; height: 100%; overflow: visible;
  filter: drop-shadow(0 max(0.5px, calc(var(--s) / 40)) max(1px, calc(var(--s) / 18)) rgba(0, 0, 0, 0.32)) drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.25)); }
/* Pixels: unlit #2c2c2c, lit #EDEDED (00next HARDWARE.offPixel00, DEFAULT_PIXEL), fading in 90 ms. */
.onb-face-svg .p { fill: #2c2c2c; transition: fill 90ms ease; }
.onb-face-svg .p.on { fill: #ededed; }
.onb-face-svg .h { fill: #ededed; opacity: 0; transition: opacity 90ms ease; pointer-events: none; }
.onb-face-svg .h.on { opacity: 0.3; }
/* While it thinks the halos breathe a little, in time with its faster rise. */
.onb-face.busy .onb-face-svg .h.on { animation: onb-glow 1.1s ease-in-out infinite; }
@keyframes onb-glow { 0%, 100% { opacity: 0.24; } 50% { opacity: 0.42; } }
.onb-face.busy > * { animation-duration: 2.2s; }
@keyframes onb-halo { 0%, 100% { opacity: 0.55; transform: scale(0.9); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes onb-rise { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7%); } }
@keyframes onb-contact { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.6; transform: scale(0.82); } }

/* "Applying": the column steps back a little while the camera turns to show the world. */
body.onb-revealing .onb-frost { opacity: 0.55; transition: opacity 900ms ease; }

@media (prefers-reduced-motion: reduce) {
  .onb-aurora > span, .onb-breathe, .onb-face-halo, .onb-face-tile, .onb-face-shadow, .onb-face-svg .h, .onb-pop, .onb-pill i, .spin { animation: none !important; }
  .onb-face-svg .p, .onb-face-svg .h { transition: none; }
  .onb-face-halo { opacity: 1; transform: none; }
  .onb-card.onb-fade-leave, .onb-card { transition: opacity 120ms linear; transform: none !important; }
  .onb-choice, .onb-choice:hover { transform: none; transition: none; }
}

/* ------------------------------------------------------------------ under 960 px: a sheet under a strip of the world
   Full screen, level 0: no shadows on the sheet or on its answer cards (a hairline instead), the
   world in a strip at the top (the camera frames it there), and the sheet taking the screen while
   something is typed. */
@media (max-width: 959.98px) {
  .onb { --onb-window: clamp(150px, 26vh, 260px); --onb-top: calc(env(safe-area-inset-top) + 56px); }
  .onb-frost { background: linear-gradient(180deg, rgb(var(--glass-tint) / 0.5) 0, rgb(var(--glass-tint) / 0.08) var(--onb-top), transparent 100%); -webkit-mask-image: none; mask-image: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .onb-col { left: 0; width: 100%; padding-top: env(safe-area-inset-top); }
  .onb-head { height: 56px; padding: 0 16px; background: rgb(var(--glass-tint) / 0.62); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--elev-line, var(--line)); }
  .onb-progress { position: absolute; left: 0; right: 0; top: calc(env(safe-area-inset-top) + 55px); margin: 0; border-radius: 0; height: 3px; z-index: 2; }
  .onb-aurora { top: calc(var(--onb-top) + var(--onb-window)); bottom: -10vh; left: -20vw; width: 140vw; -webkit-mask-image: none; mask-image: none; transition: top 260ms var(--ease); }
  .onb.typing .onb-aurora { top: 0; }
  .onb-scroll {
    margin-top: var(--onb-window); padding: 0; border-radius: 20px 20px 0 0;
    background: rgb(var(--onb-surface) / 0.86); -webkit-backdrop-filter: blur(20px) saturate(1.2); backdrop-filter: blur(20px) saturate(1.2);
    border-top: 1px solid var(--elev-line, var(--line)); box-shadow: none; transition: margin-top 260ms var(--ease);
  }
  :root[data-glass='off'] .onb-scroll { background: var(--card); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .onb.typing .onb-scroll, .onb[data-step='done'] .onb-scroll, .onb[data-step='summary'] .onb-scroll { margin-top: 8px; }
  .onb-scroll::before { content: ''; display: block; width: 36px; height: 4px; border-radius: 99px; background: var(--line-2); margin: 8px auto 0; }
  /* Level 0: the card is the sheet itself. The breathing becomes the sheet's top edge. */
  .onb-scroll > .onb-card { margin-bottom: 0; }
  /* The sheet is the card: the action bar sits at the sheet's foot even when a step is short. */
  .onb-scroll { display: flex; flex-direction: column; }
  .onb-scroll > .onb-card { flex: 1 0 auto; display: flex; flex-direction: column; }
  .onb-scroll > .onb-card > .onb-bar { margin-top: auto; }
  .onb-scroll > .onb-card > .onb-bar::before { content: ''; display: block; }
  .onb-card.barred > :nth-last-child(2) { margin-bottom: 20px; }
  body.dark .onb-scroll { background: rgb(var(--onb-surface) / 0.97); }
  .onb-card, .onb-card.onb-breathe { border: 0; border-radius: 0; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; padding: 14px 16px 0; animation: none; }
  .onb-card:not(.barred) { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .onb:has(.onb-breathe) .onb-scroll { animation: onb-breathe-edge 5.2s ease-in-out infinite; }
  @keyframes onb-breathe-edge { 0%, 100% { border-top-color: rgb(var(--aura-1) / 0.25); } 50% { border-top-color: rgb(var(--aura-1) / 0.6); } }
  .onb-card h1 { font-size: 21px; }
  .onb-face-row { margin: 2px 0 14px; }
  .onb-choice, .onb-choice:hover { box-shadow: none; transform: none; }
  .onb-choice[aria-pressed='true'], .onb-choice[aria-checked='true'] { box-shadow: none; border-color: rgb(var(--onb-accent) / 0.7); }
  .onb-box { background: transparent; }
  .onb-bar { margin: 20px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-radius: 0; background: rgb(var(--onb-surface) / 0.96); border-top: 1px solid var(--elev-line, var(--line)); -webkit-backdrop-filter: none; backdrop-filter: none; }
  :root[data-theme='night'] .onb-bar { background: rgb(var(--onb-surface) / 0.98); }
  .onb-hint-keys { display: none; }
  .onb-bar .onb-btn.primary { flex: 1; }
  .onb-later .wide { display: none; }
  .onb-later .narrow { display: inline; }
  .onb-later { min-height: 44px; padding: 0 10px; font-size: 14px; }
  .onb-built { right: 12px; left: auto; bottom: auto; top: calc(var(--onb-top) + var(--onb-window) - 44px); width: auto; max-width: calc(100vw - 24px); padding: 6px 10px; border-radius: 10px; box-shadow: var(--elev-1, none) !important; }
  .onb-built-h { display: none; }
  .onb-built ul { margin: 0; }
  .onb-built li:not(:last-child) { display: none; }
  .onb.typing .onb-built, .onb[data-step='done'] .onb-built, .onb[data-step='summary'] .onb-built { display: none; }
  .onb-nexts, .onb-promise { grid-template-columns: 1fr; }
}
@media (max-width: 599.98px) {
  .onb-chan { grid-template-columns: 1fr 1fr; }
  .onb-choices.two, .onb-choices.three, .onb-grid2 { grid-template-columns: 1fr; }
  .onb-proto { display: none; }
  .onb-welcome { display: grid; gap: 8px; }
  .onb-welcome .chev { display: none; }
}
/* Touch and small screens: 16 px fields (iOS does not zoom), 44 px targets. */
@media (max-width: 819.98px), (pointer: coarse) {
  .onb-input, .onb-input.sm, .onb-people-in, textarea.onb-input { font-size: 16px; }
  .onb-input, .onb-input.lg { height: 46px; }
  .onb-input.sm { height: 44px; }
  .onb-input.xs { height: 44px; }
  .onb-btn, .onb-btn.sm { min-height: 44px; }
  .onb-link, .onb-link.small, .onb-pillbtn { min-height: 44px; }
  .onb-chip { min-height: 44px; }
  .onb-icon-btn, .onb-x { width: 44px; height: 44px; }
  .onb-switch { min-height: 44px; }
  .onb-seg button { height: 44px; }
  .onb-tags button, .onb-person button, .onb-from button { position: relative; }
  .onb-tags button::after, .onb-person button::after, .onb-from button::after { content: ''; position: absolute; inset: -11px; }
  .onb-check-label { min-height: 44px; align-items: center; }
  .onb-choice, .onb-back, .onb-skip, .onb-later, button { touch-action: manipulation; }
}

/* In the sky (the channels and the voice steps rise to it) the frost darkens with it, and the
   frame's words turn light; the card itself stays the card. */
body.dark .onb-frost { background: linear-gradient(90deg, rgba(14, 19, 32, 0.72) 0%, rgba(14, 19, 32, 0.5) 40%, rgba(14, 19, 32, 0.08) 66%, transparent 100%); }
body.dark .onb-head, body.dark .onb-later, body.dark .onb-count { color: #e4e9f1; }
body.dark .onb-proto { color: #b6c0cf; border-color: rgba(255, 255, 255, 0.25); }
body.dark .onb-card { background: rgb(var(--onb-surface) / 0.95); }
@media (max-width: 959.98px) {
  body.dark .onb-frost { background: linear-gradient(180deg, rgba(14, 19, 32, 0.5), transparent 40%); }
  body.dark .onb-head { background: rgba(20, 26, 38, 0.6); }
}

/* A phone on its side: too short for a strip of the world above the questions, so the sheet takes
   the screen under the frame (the world shows again as soon as the setup is done). */
@media (max-width: 959.98px) and (max-height: 500px) {
  .onb { --onb-window: 0px; }
  .onb-built { display: none; }
  .onb-face-row { display: none; }
}
