/* The day-one stage (obstage.js): every onboarding card, Welcome to You're
   through setup, dead center of the full viewport on both axes (Conner,
   2026-11-03, round 3), sidebar and top strip ignored. Every card is fully
   on screen: at most the viewport less 64px. Cards cross-fade in place.
   Loads last, so it wins over the pop-up card's own placement. */
.ob-stage { position: fixed; z-index: 75; inset: 0; display: none; place-items: center; padding: 32px 16px; box-sizing: border-box; pointer-events: none; }
.ob-stage.on { display: grid; }
.ob-frame { position: relative; width: min(var(--ob-w, 480px), 100%); max-height: calc(100vh - 64px); transition: height 200ms ease, width 200ms ease; pointer-events: auto; }
:root body .ob-stage > .ob-frame > .pv-card.ob-card.ob-card,
:root body .ob-stage > .ob-frame > .pv-card.ob-out.ob-out {
  position: absolute !important; left: 0 !important; top: 0 !important; right: auto !important; bottom: auto !important;
  transform: none !important; translate: none !important; width: 100% !important; max-height: calc(100vh - 64px) !important;
  margin: 0 !important; border-radius: 20px !important; animation: none !important; transition: opacity 200ms ease;
}
/* Cards that grow as you go have a fixed height, so nothing moves as a step
   opens; their body scrolls inside. */
:root body .ob-stage > .ob-frame > .pv-card.ob-fixed { height: min(var(--ob-h, 640px), calc(100vh - 64px)) !important; }
:root body .ob-stage > .ob-frame > .pv-card.ob-in { opacity: 0; }
:root body .ob-stage > .ob-frame > .pv-card.ob-out { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .ob-frame, :root body .ob-stage > .ob-frame > .pv-card.ob-card.ob-card { transition: none; }
}

/* The top bar after day one (app.js setupBar): the ring with "Setup, N of
   5" and Finish setup (N skipped). On the Live tree they sit in the strip;
   on the regular layout, top right of the page. Brand tokens, light and dark. */
html:is([data-view="app"], :has(.rail.shell)) .ob-ring, html:is([data-view="app"], :has(.rail.shell)) .ob-finish {
  display: inline-flex !important; align-items: center; gap: 6px; width: auto !important; height: 36px; padding: 0 14px 0 10px !important; border: 0; border-radius: 999px;
  background: var(--bp-card); color: var(--bp-ink); box-shadow: var(--bp-shadow); font: 600 13px/1 var(--bp-sans); white-space: nowrap; cursor: pointer;
}
html:is([data-view="app"], :has(.rail.shell)) .ob-finish { padding: 0 14px !important; background: var(--bp-pill); color: var(--bp-pilltx); }
html:is([data-view="app"], :has(.rail.shell)) .ob-ring:hover, html:is([data-view="app"], :has(.rail.shell)) .ob-finish:hover { opacity: 0.88; }
.ob-ring-i { display: inline-flex; }
.ob-ring-i svg { display: block; color: var(--bp-ink, currentColor); }
.stage > main:has(> .ob-bar) { position: relative; }
.ob-bar { position: absolute; z-index: 5; top: 20px; right: 24px; display: flex; gap: 8px; align-items: center; }
@media (max-width: 639px) { .ob-bar { position: static; justify-content: flex-end; margin: 8px 12px 0; } .ob-ring-t { display: none; } }

/* Tall cards (Conner, 2026-11-02): the art, the heading and the buttons stay
   put; only the list (.ob-scroll) scrolls, and its scroll never reaches the
   page. The page behind is locked while a card is up. */
:root body .ob-stage > .ob-frame > .pv-card.ob-card:has(.ob-scroll) { display: flex !important; flex-direction: column; overflow: hidden !important; }
:root body .ob-stage .ob-card:has(.ob-scroll) > .pv-art { flex: none; }
:root body .ob-stage .ob-card:has(.ob-scroll) > .pv-pad { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
:root body .ob-stage .ob-card .ob-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; margin-right: -8px; padding-right: 8px; }
:root body .ob-stage .ob-card .ob-foot { flex: none; }
:root body .ob-stage .ob-card > .pv-pad > button.ob-foot { align-self: center; }
html:has(.ob-stage.on), html:has(.ob-stage.on) body { overflow: hidden !important; overscroll-behavior: none; }
@media (max-height: 760px) { :root body .ob-stage .ob-card:has(.ob-scroll) > .pv-art { height: 96px; } }

/* Round 2 bits, in the brand tokens. */
.fp-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fp-noai { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--bp-wash, rgba(15,17,21,.03)); box-shadow: inset 0 0 0 1px var(--bp-line, rgba(15,17,21,.07)); font: 600 14px var(--bp-sans, inherit); color: var(--bp-ink, inherit); }
.fp-gap { display: block; margin-top: 14px; text-align: left; }
.fp-gap b { display: block; margin-bottom: 6px; font: 600 14px var(--bp-sans, inherit); color: var(--bp-ink, inherit); }
.fp-missed textarea.fp-ans { width: 100%; min-height: 84px; resize: vertical; box-sizing: border-box; }
.fp-missed input.fp-ans { width: 100%; box-sizing: border-box; }
.fp-missed .fp-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.ob-ai { display: block; margin: 14px auto 0; }
.pv-qa li > span:nth-child(2) > span { display: block; font-size: 13px; line-height: 1.45; color: var(--bp-lab, #5E6570); }

/* Take a quick look, rebuilt (round 3): 560 wide, a compact header with the
   small mascot, hairline rows with 32px icon buttons, sticky topic labels,
   and a pinned footer. Brand tokens, light and dark. */
:root body .ob-stage .pv-card.fp-review { display: flex !important; flex-direction: column; overflow: hidden !important; padding: 0 !important; }
.ob-stage .fp-review .fp-head { flex: none; display: flex; align-items: flex-start; gap: 12px; padding: 20px 56px 10px 20px; position: relative; }
.ob-stage .fp-review .fp-head .pv-x { top: 16px !important; right: 16px !important; }
.ob-stage .fp-review .fp-mascot { flex: none; width: 32px; height: 32px; display: grid; place-items: center; }
.ob-stage .fp-review .fp-head-t h2 { margin: 2px 0 4px !important; font: 700 20px/1.2 var(--bp-tight, var(--head)) !important; color: var(--bp-ink) !important; letter-spacing: -0.01em; }
.ob-stage .fp-review .fp-head-t p { margin: 0; font: 400 14px/1.45 var(--bp-sans); color: var(--bp-soft); }
.ob-stage .fp-review .fp-prog { flex: none; display: flex; align-items: center; gap: 12px; margin: 0; padding: 4px 20px 12px; font: 500 13px var(--bp-sans); color: var(--bp-lab); }
.ob-stage .fp-review .fp-prog .fp-bar { flex: 1; }
.ob-stage .fp-review .fp-note { margin: 0 20px 10px; }
.ob-stage .fp-review .fp-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 0 0 8px; border-top: 1px solid var(--bp-line); }
.ob-stage .fp-review .fp-group { margin: 0; padding: 0; border: 0; background: none; }
.ob-stage .fp-review .fp-gh { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; margin: 0; padding: 8px 16px 6px; background: var(--bp-card); border-bottom: 1px solid var(--bp-line); }
.ob-stage .fp-review .fp-gh b { font: 600 11px/1 var(--bp-sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--bp-lab); }
.ob-stage .fp-review .fp-link { border: 0; background: none; padding: 4px 0; font: 600 13px var(--bp-sans); color: var(--bp-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ob-stage .fp-review .fp-list { list-style: none; margin: 0; padding: 0; }
.ob-stage .fp-review .fp-row { display: flex; align-items: flex-start; gap: 12px; margin: 0 !important; padding: 12px 16px !important; border: 0 !important; border-bottom: 1px solid var(--bp-line) !important; border-radius: 0 !important; background: none !important; transition: opacity 400ms ease 200ms; }
.ob-stage .fp-review .fp-text { flex: 1; min-width: 0; font: 400 15px/1.45 var(--bp-sans); color: var(--bp-ink); }
.ob-stage .fp-review .fp-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ob-stage .fp-review .fp-more { display: inline; margin-left: 4px; padding: 0; border: 0; background: none; font: 600 13px var(--bp-sans); color: var(--bp-soft); text-decoration: underline; cursor: pointer; }
.ob-stage .fp-review .fp-btns { flex: none; display: flex; gap: 8px; }
.ob-stage .fp-review .fp-ib { width: 32px; height: 32px; min-height: 0; padding: 0; display: grid; place-items: center; border: 0; border-radius: 10px; background: var(--bp-wash); color: var(--bp-soft); box-shadow: inset 0 0 0 1px var(--bp-line); cursor: pointer; }
.ob-stage .fp-review .fp-ib:hover { background: var(--bp-hover); color: var(--bp-ink); }
.ob-stage .fp-review .fp-ib-yes:hover, .ob-stage .fp-review .fp-ib.on { background: var(--bp-green); color: #fff; box-shadow: none; }
.ob-stage .fp-review .fp-gone { opacity: 0; pointer-events: none; }
.ob-stage .fp-review .fp-edit { flex-wrap: wrap; }
.ob-stage .fp-review .fp-edit .fp-input { flex: 1 1 100%; }
.ob-stage .fp-review .fp-empty { margin: 20px 16px; color: var(--bp-soft); font: 400 14px var(--bp-sans); }
.ob-stage .fp-review .fp-foot { flex: none; display: flex !important; align-items: center; justify-content: space-between; gap: 12px; margin: 0 !important; padding: 12px 16px 16px; border-top: 1px solid var(--bp-line); }
.ob-stage .fp-review .fp-foot .fp-btn, .ob-stage .fp-missed .fp-foot .fp-btn { height: 40px; min-height: 0; padding: 0 18px; border: 0; border-radius: 999px; background: var(--bp-pill) !important; color: var(--bp-pilltx) !important; font: 600 14px/1 var(--bp-sans); cursor: pointer; }
.ob-stage .fp-review .fp-foot .fp-ghost, .ob-stage .fp-missed .fp-foot .fp-ghost { height: 40px; min-height: 0; padding: 0 16px; border: 0; border-radius: 999px; background: var(--bp-card); color: var(--bp-ink); box-shadow: inset 0 0 0 1px var(--bp-line2); font: 600 14px/1 var(--bp-sans); cursor: pointer; }
