/* The website onboarding (pages/onboarding.html, onboard.js): a copy of the approved mockup v25's
   onboarding frame (scratchpad v25.css §1, 2026-10-17). Loaded only by that page, after styles.css.
   Corners: logo top-left with the progress bar on the same row over the content column, Help/Privacy
   bottom-left, Dansk/English bottom-right; only the content column (440px) is centred. The page grows
   and scrolls; on a tall desktop window the course and comment steps scroll only their list (.scroll).
   The colour tokens are the mockup's, light on :root and dark under prefers-color-scheme (unless
   data-theme="light") and again under data-theme="dark" (site.js sets it). Keep the two dark copies equal.
   Every rule is scoped to [data-onb], so styles.css's own .btn/.link/.tag/.field elsewhere are untouched. */
:root {
  color-scheme: light;
  --bg: #ffffff; --soft: #f6f6f7; --hover: #efeff1; --ink: #15171b; --ink-2: #5c636e; --ink-3: #69717b; /* 4.6:1 on --soft/--pane (the guide's "About 1 minute"), 4.9:1 on white */
  --line: #e6e7ea; --line-2: #d6d8dc; --accent: #c8402a; --btn: #c8402a; --btn-hover: #b13923; --accent-text: #b13923; --accent-soft: #fdeeea; --pane: #f6f6f7;
  --danger: #c4321f; --ok: #1d7a46; --ok-soft: #e8f3ec; --wait: #9a5b00;
  --bubble: #f0f0f2; --cite: #efefef; --cite-ink: #5d5d5d;
  --shadow: rgb(21 23 27 / .12); --shadow-2: rgb(21 23 27 / .28); --scrim: rgb(21 23 27 / .38);
  --btn-line: #8b919a;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}
/* dark --btn-hover: white text on it 4.7:1 (#d24a33 was 4.4:1, under WCAG AA for the 16-17px button text) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #1c1d20; --soft: #26282c; --hover: #303237; --ink: #f1f2f4; --ink-2: #b4b9c1; --ink-3: #9aa0a9;
    --line: #33363b; --line-2: #45484e; --accent: #e0573f; --btn: #c8402a; --btn-hover: #cd4530; --accent-text: #f08a74; --accent-soft: #3a231f; --pane: #121316;
    --danger: #f07a68; --ok: #5cc48a; --ok-soft: #1d2f24; --wait: #f2b65e;
    --bubble: #2c2e33; --cite: #33363b; --cite-ink: #c3c7ce;
    --shadow: rgb(0 0 0 / .4); --shadow-2: rgb(0 0 0 / .6); --scrim: rgb(0 0 0 / .6);
    --btn-line: #6e737b;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1c1d20; --soft: #26282c; --hover: #303237; --ink: #f1f2f4; --ink-2: #b4b9c1; --ink-3: #9aa0a9;
  --line: #33363b; --line-2: #45484e; --accent: #e0573f; --btn: #c8402a; --btn-hover: #cd4530; --accent-text: #f08a74; --accent-soft: #3a231f; --pane: #121316;
  --danger: #f07a68; --ok: #5cc48a; --ok-soft: #1d2f24; --wait: #f2b65e;
  --bubble: #2c2e33; --cite: #33363b; --cite-ink: #c3c7ce;
  --shadow: rgb(0 0 0 / .4); --shadow-2: rgb(0 0 0 / .6); --scrim: rgb(0 0 0 / .6);
  --btn-line: #6e737b;
}
body { background: var(--bg); color: var(--ink); }
[data-onb] [hidden] { display: none !important; }
[data-onb] .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[data-onb] svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[data-onb] .ic { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
[data-onb] .mark { width: 26px; height: 26px; display: inline-block; flex: none; }
[data-onb] .mark img { width: 100%; height: 100%; display: block; }
[data-onb] .brand { display: inline-flex; align-items: center; gap: 10px; padding: 0; font-weight: 800; font-size: 20px; letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; }

/* buttons: primary is a coral pill; secondary an outlined pill; text links only for small, quiet things */
[data-onb] .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: var(--r); border: 0; background: var(--btn); color: #fff; font: inherit; font-weight: 600; font-size: 16px; cursor: pointer; white-space: nowrap; text-decoration: none; box-shadow: none; }
[data-onb] .btn:hover { background: var(--btn-hover); }
[data-onb] .btn.big { height: 54px; font-size: 17px; border-radius: 14px; }
[data-onb] .btn.block { width: 100%; }
[data-onb] .btn.sec { background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1px var(--btn-line); }
[data-onb] .btn.sec:hover { background: var(--soft); }
[data-onb] .btn.sm { height: 38px; padding: 0 16px; font-size: 15px; border-radius: var(--r-sm); }
[data-onb] .btn:disabled { opacity: .45; cursor: default; color: #fff; }
[data-onb] .btn.sec:disabled { color: var(--ink); }
[data-onb] .link { font: inherit; font-weight: 600; font-size: 15.5px; color: var(--accent-text); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
[data-onb] .spin { width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--ink-2); animation: cd-spin .8s linear infinite; flex: none; display: inline-block; }
[data-onb] .okic { width: 20px; height: 20px; color: var(--ok); }
[data-onb] .warnic { width: 20px; height: 20px; color: var(--wait); }
@keyframes cd-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { [data-onb] .spin { animation: none; } }
[data-onb] .tag { font-size: 12px; font-weight: 600; letter-spacing: 0; padding: 2px 8px; border-radius: var(--r-tag); background: var(--soft); color: var(--ink-2); white-space: nowrap; flex: none; }
[data-onb] .tag.v { background: var(--ok-soft); color: var(--ok); }
[data-onb] .field { width: 100%; height: 54px; margin: 0; flex-direction: row; font-weight: 400; border: 1px solid var(--line-2); border-radius: 14px; display: flex; align-items: center; gap: 10px; padding: 0 16px; background: var(--bg); }
[data-onb] .field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
[data-onb] .field svg.i { color: var(--ink-2); }
[data-onb] .field input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 17px; color: var(--ink); height: 100%; }
[data-onb] .field input::placeholder { color: var(--ink-3); }
[data-onb] .field.sm { height: 44px; border-radius: var(--r); }
[data-onb] .field.sm input { font-size: 16px; }
[data-onb] .code { margin: 0; font: 16px/1.5 var(--sans); white-space: normal; overflow: visible; display: flex; gap: 8px; background: var(--soft); border-radius: var(--r); padding: 10px 10px 10px 14px; }
[data-onb] .code pre { flex: 1; min-width: 0; margin: 0; padding: 4px 0; font: 13.5px/1.5 var(--mono); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; background: none; border: 0; }
[data-onb] .code .btn { flex: none; }
[data-onb] code { font: 0.9em var(--mono); background: var(--soft); border-radius: var(--r-tag); padding: 1px 5px; overflow-wrap: anywhere; }
[data-onb] .small { font-size: 14px; color: var(--ink-2); margin: 0; }

/* ---- the frame ---- */
.frame[data-onb] { line-height: 1.5; display: grid; grid-template-columns: minmax(760px, 1fr) minmax(0, 1fr); height: 100vh; height: 100dvh; overflow: hidden; background: var(--bg); color: var(--ink); }
/* Desktop: the logo + progress row and the footer stay put; only the middle scrolls (its own scroll box,
   so the scrollbar sits at the column's edge). A step's main button sits in a bar pinned to its bottom. */
[data-onb] .fr-left { display: flex; flex-direction: column; height: 100vh; height: 100dvh; min-height: 0; padding: 28px 0; min-width: 0; }
[data-onb] .fr-top, [data-onb] .fr-foot { padding-inline: 40px; flex: none; }
[data-onb] .fr-top { position: relative; z-index: 3; padding-bottom: 16px; transition: box-shadow .15s; }
[data-onb] .fr-left.scrolled .fr-top { box-shadow: 0 1px 0 var(--line); }
[data-onb] .fr-top, [data-onb] .fr-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px) minmax(0, 1fr); }
[data-onb] .fr-top { align-items: start; min-height: 44px; }
[data-onb] .fr-top .brand { grid-column: 1; grid-row: 1; justify-self: start; }
[data-onb] .fr-top .obar { grid-column: 2; grid-row: 1; }
/* The account: the account page's avatar (dash.css .avatar), with the email, Log out and Delete account
   behind it, in the top right corner. */
[data-onb] .who { grid-column: 3; grid-row: 1; justify-self: end; position: relative; font-size: 14px; }
[data-onb] .who .avatar { width: 32px; height: 32px; margin-top: 1px; border-radius: 50%; border: 0; padding: 0; background: var(--btn); color: #fff; display: grid; place-items: center; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
[data-onb] .who .avatar:hover, [data-onb] .who .avatar[aria-expanded="true"] { background: var(--btn-hover); }
[data-onb] .who-m { position: absolute; right: 0; top: calc(100% + 6px); min-width: 180px; max-width: min(320px, calc(100vw - 32px)); display: flex; flex-direction: column; padding: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 12px 32px -12px var(--shadow-2); }
[data-onb] .who-m button { text-align: left; font: inherit; font-size: 14.5px; color: var(--ink); background: none; border: 0; border-radius: var(--r-sm); padding: 9px 10px; cursor: pointer; }
[data-onb] .who-m button:hover { background: var(--soft); }
[data-onb] .who-m button.danger { color: var(--danger); }
[data-onb] .who-e { margin: 0 0 4px; padding: 6px 10px 10px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); overflow-wrap: anywhere; }
[data-onb] .who-err { max-width: 240px; margin: 4px 10px 6px; font-size: 13.5px; line-height: 1.4; color: var(--danger); }
[data-onb] .dfield { display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; color: var(--ink-2); }
[data-onb] .dfield input { height: 46px; border: 1px solid var(--line-2); border-radius: var(--r); padding: 0 14px; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); }
[data-onb] #ob-del .dlg-f { justify-content: flex-end; }
[data-onb] #ob-del p { margin: 0; }
[data-onb] #ob-warn p { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
[data-onb] .warnlist { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: var(--r); }
[data-onb] .warnlist li { padding: 10px 14px; border-top: 1px solid var(--line); font-size: 15.5px; overflow-wrap: anywhere; }
[data-onb] .warnlist li:first-child { border-top: 0; }
[data-onb] .btn .spin { vertical-align: -2px; border-color: rgb(255 255 255 / .45); border-top-color: #fff; }
/* The form column starts at the same height on every step and in every state, so a title, field or
   button never jumps when a list, a status line or a result appears under it; a long list just grows down. */
[data-onb] .fr-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; align-content: start; padding: clamp(40px, 10vh, 100px) 40px 0; }
/* A step with nothing that grows under its button (step 1: one status line swaps for another) is
   centred in the height instead; `safe` keeps it top-anchored if the window is too short. */
[data-onb] .fr-body:has([data-s="s1"]:not([hidden])) { align-content: safe center; padding-bottom: clamp(40px, 10vh, 100px); }
[data-onb] .fr-col { grid-column: 2; min-width: 0; position: relative; }
[data-onb] .fr-foot { padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 14px; }
[data-onb] .fr-foot nav { display: flex; gap: 20px; }
[data-onb] .fr-foot a { color: var(--ink-3); }
/* The sync status in the footer row from step 5 on (beta run 2026-11-05, 11, option A; onboard.js
   footSync): the footer takes the body's three columns, so the status starts on the content column's
   left edge; it stops short of the theme and language controls, which may reach into that column. */
[data-onb] .fr-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px) minmax(0, 1fr); }
[data-onb] .fr-foot nav { grid-column: 1; grid-row: 1; }
[data-onb] .fr-foot .fend { grid-column: 3; grid-row: 1; justify-self: end; }
[data-onb] .fsync { grid-column: 2; grid-row: 1; position: relative; z-index: 4; min-width: 0; margin-right: 52px; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
/* The hover box reaches past the line (the step bars' 8px box); the bar hangs under it, so the line
   itself is centred on the footer row like Help and Dansk. */
[data-onb] .fs-btn { display: flex; flex-direction: column; gap: 5px; width: calc(100% + 16px); margin: -6px -8px -15px; padding: 6px 8px 7px; border: 0; border-radius: 8px; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
[data-onb] .fs-btn:hover, [data-onb] .fs-btn[aria-expanded="true"] { background: var(--hover); color: var(--ink); }
[data-onb] .fs-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
[data-onb] .fs-row { display: flex; align-items: center; gap: 9px; line-height: 21px; white-space: nowrap; }
[data-onb] .fs-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
[data-onb] .fs-t b { font-weight: 600; color: var(--ink); }
[data-onb] .fs-row .spin { width: 13px; height: 13px; margin-inline: 1.5px; }
[data-onb] .fs-row svg.i { width: 16px; height: 16px; }
[data-onb] .fs-row .okc { color: var(--ok); }
[data-onb] .fs-row .warnc { color: var(--wait); }
[data-onb] .fs-row svg.ch { color: var(--ink-3); transform: rotate(-90deg); }
[data-onb] .fs-btn[aria-expanded="true"] svg.ch { transform: rotate(90deg); }
[data-onb] .ftrk { display: block; height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; }
[data-onb] .ftrk i { display: block; height: 100%; background: var(--accent); border-radius: 2px; }
[data-onb] .ftrk.done i { background: var(--ok); }
/* The courses, upward from the line, as wide as its hover box: the account menu's box (.who-m). */
[data-onb] .spop { position: absolute; left: -8px; right: -8px; bottom: calc(100% + 16px); display: flex; flex-direction: column; max-height: min(560px, calc(100dvh - 140px)); padding: 16px 20px 4px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 12px 32px -12px var(--shadow-2); color: var(--ink); white-space: normal; }
[data-onb] .spop .grab { display: none; }
[data-onb] .sp-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); flex: none; }
[data-onb] .sp-h b { font-size: 16px; font-weight: 600; }
[data-onb] .sp-h span { font-size: 14px; color: var(--ink-3); white-space: nowrap; }
[data-onb] .sp-h span:empty { display: none; }
[data-onb] .spop .sy-list { margin-top: 0; border-top: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
[data-onb] .spop .sy-r:last-child { border-bottom: 0; }
[data-onb] .fs-scrim { display: none; }
[data-onb] .flang { display: flex; gap: 14px; }
[data-onb] .flang a[aria-current="true"] { color: var(--ink); font-weight: 600; }
/* the right part stays put while the left scrolls */
[data-onb] .fr-right { position: sticky; top: 0; height: 100vh; height: 100dvh; padding: 12px; align-self: start; }
[data-onb] .fr-right > div { height: 100%; border-radius: var(--r-xl); background: var(--accent-soft); display: grid; place-items: center; padding: 40px; overflow: hidden; }

/* progress bar: 5 steps, its line on the logo's centre line, spanning the content column */
[data-onb] .obar { list-style: none; margin: 0; padding: 11.5px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
[data-onb] .obar li { display: flex; flex-direction: column; gap: 9px; font-size: 12.5px; font-weight: 500; color: var(--ink-3); white-space: nowrap; min-width: 0; }
[data-onb] .obar i { height: 3px; border-radius: 2px; background: var(--line); }
[data-onb] .obar li.on { color: var(--ink-2); }
[data-onb] .obar li.on i { background: var(--ok); }
[data-onb] .obar li.now { color: var(--ink); font-weight: 600; }
[data-onb] .obar li.now i { background: var(--accent); }
/* A finished School or Courses bar is a button (board B5): the sidebar nav's hover box and a 2px accent
   ring, both radius 8 and drawn outside the bar, so nothing moves. The button lies over the bar. */
[data-onb] .obar { isolation: isolate; }
[data-onb] .obar li { position: relative; }
[data-onb] .obar li::before { content: ""; position: absolute; inset: -7px -3px -6px; border-radius: 8px; z-index: -1; }
[data-onb] .ob-go { position: absolute; inset: -7px -3px -6px; margin: 0; padding: 0; border: 0; border-radius: 8px; background: none; cursor: pointer; }
[data-onb] .ob-go:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
[data-onb] .obar li:has(> .ob-go:not([hidden]):hover)::before { background: var(--hover); }
[data-onb] .obar li:has(> .ob-go:not([hidden]):hover), [data-onb] .obar li:has(> .ob-go:focus-visible) { color: var(--ink); }

/* a step: title, its text, then its body. Same top on every step and state. A step whose text swaps
   with its state (a .st-text with data-when: steps 1, 2 and 5) keeps a two-line slot, so its body
   never jumps when a one-line text replaces a two-line one; a step with one fixed text (3, 3b, 4)
   keeps no empty line, so its body sits 28px under the text's last line (2026-11-05). */
[data-onb] .st h1 { font-size: 44px; line-height: 1.1; letter-spacing: -0.035em; font-weight: 800; margin: 0; text-wrap: balance; }
[data-onb] .st-text { font-size: 18px; line-height: 1.6; color: var(--ink-2); margin: 20px 0 0; }
[data-onb] .st:has(> .st-text[data-when]) > .st-text { min-height: 3.2em; }
[data-onb] .st-body { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
[data-onb] .st-sec { margin: 20px 0 0; font-size: 15.5px; display: flex; flex-wrap: wrap; gap: 6px 20px; }
[data-onb] .st-sec .link { font-weight: 500; }
[data-onb] .st-text .link { font-size: inherit; font-weight: 500; white-space: nowrap; }
[data-onb] .st-sec.showall { justify-content: center; margin-top: 16px; }
[data-onb] [data-s] { padding-bottom: 40px; }
[data-onb] .stick.full .btns { flex: 1; }
[data-onb] .stick.full .btn { flex: 1 1 0; }
[data-onb] .st-sec:not(:has(> :not([hidden]))) { display: none; }
/* one status slot per step, under the button (the column is top-anchored on steps that grow, so nothing above it moves); empty, it takes no room */
[data-onb] .status { display: flex; flex-direction: column; gap: 10px; }
[data-onb] .status:not(:has(> :not([hidden]))) { display: none; }
[data-onb] .sline { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 16px; color: var(--ink-2); line-height: 1.5; }
[data-onb] .sline > .spin, [data-onb] .sline > svg { margin-top: 3px; }
/* the spinner takes the icons' 20 px, so a waiting line's text starts where a done line's does */
[data-onb] .sline > .spin { margin: 4px 2.5px 0; }
[data-onb] .sline.ok { color: var(--ink); font-weight: 600; }
[data-onb] .sline.ok svg { color: var(--ok); }
[data-onb] .sline.err { color: var(--ink); }
[data-onb] .sline.err svg { color: var(--wait); }
[data-onb] .sline.quiet { font-size: 15px; color: var(--ink-3); }
[data-onb] .sline > span { min-width: 0; overflow-wrap: anywhere; }

/* back from Stripe: the note sits in the gap above the title, so the title stays where it is */
[data-onb] [data-paid] { padding: 0; background: none; border-radius: 0; position: absolute; left: 0; right: 0; bottom: calc(100% + 22px); display: flex; align-items: flex-start; gap: 9px; margin: 0; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
[data-onb] [data-paid].ok { color: var(--ink); font-weight: 600; }
[data-onb] [data-paid]::before { content: ""; width: 15px; height: 15px; margin-top: 1px; flex: none; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--ink-2); animation: cd-spin .8s linear infinite; }
[data-onb] [data-paid].ok::before, [data-onb] [data-paid]:has(a)::before { width: 18px; height: 18px; margin-top: 0; border: 0; border-radius: 0; animation: none; background: var(--ok);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10' cy='10' r='7.5'/%3E%3Cpath d='M6.8 10.2l2.2 2.2 4.2-4.6'/%3E%3C/svg%3E") center / contain no-repeat; }
[data-onb] [data-paid]:has(a)::before { background: var(--wait);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 3.5l7 12.5H3z'/%3E%3Cpath d='M10 8.5v3.5M10 14.2v.1'/%3E%3C/svg%3E"); }
[data-onb] [data-paid] a { font-weight: 600; }

/* chosen school or system: one line with Change at the right; a long name wraps */
[data-onb] .chosen { display: flex; align-items: center; gap: 10px; margin: 0; padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--r); font-size: 15.5px; }
[data-onb] .chosen b { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
[data-onb] .chosen .sys { color: var(--ink-2); white-space: nowrap; }
[data-onb] .chosen .link { margin-left: auto; font-weight: 500; font-size: 15px; flex: none; }
[data-onb] .chosen > span:first-child { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-width: 0; flex: 1; }

/* school results: under the field, at most 8, a long name wraps to two lines, a twin gets its address */
/* the frame is an outline, so the rows start on the column's edge and their text on the field's */
[data-onb] .res { outline: 1px solid var(--line); outline-offset: -1px; border-radius: var(--r-lg); overflow: hidden; }
[data-onb] .res button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 16px 11px 17px; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; cursor: pointer; font: inherit; font-size: 15.5px; color: var(--ink); }
[data-onb] .res button:first-child { border-top: 0; }
[data-onb] .res button:hover, [data-onb] .res button:focus-visible { background: var(--soft); }
[data-onb] .res .nm { flex: 1; min-width: 0; display: flex; flex-direction: column; }
[data-onb] .res .nm b { font-weight: 500; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
[data-onb] .res .nm small { font-size: 13.5px; color: var(--ink-2); overflow-wrap: anywhere; }
[data-onb] .res-more { margin: 12px 0 0; font-size: 13.5px; color: var(--ink-3); }
[data-onb] .res-more:empty { display: none; }
[data-onb] .sysgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
[data-onb] .sysgrid button { height: 44px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg); font: inherit; font-size: 14.5px; font-weight: 500; color: var(--ink); cursor: pointer; }
[data-onb] .sysgrid button:hover { background: var(--soft); }
[data-onb] .lbl-s { margin: 4px 0 0; font-size: 14px; font-weight: 600; color: var(--ink-2); }
[data-onb] .back { display: inline-flex; align-items: center; gap: 6px; }
[data-onb] .back svg { width: 16px; height: 16px; }

/* course picker: picker.css (shared with the dashboard) */

/* sync: the summary answers "how far", Continue sits right under it, the list is the page; done rows sink */
[data-onb] .sy-sum { display: flex; flex-direction: column; gap: 10px; }
[data-onb] .sy-sum .l1 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
[data-onb] .sy-sum .l3 { margin: 0; font-size: 15px; color: var(--ink-2); min-height: 1.5em; overflow-wrap: anywhere; }
[data-onb] .track { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
[data-onb] .track i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
[data-onb] .track.done i { background: var(--ok); }
[data-onb] .track.fail i { background: var(--wait); }
[data-onb] .acts { display: flex; flex-wrap: wrap; gap: 10px; }
[data-onb] .acts .btn { flex: 1 1 160px; }
[data-onb] .sy-list { display: flex; flex-direction: column; margin-top: 8px; border-top: 1px solid var(--line); }
[data-onb] .sy-list:empty { display: none; }
[data-onb] .sy-r { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
[data-onb] .sy-r > span:first-child { flex: 1; min-width: 0; overflow-wrap: anywhere; }
/* A row's status, the same in every state (owners, 2026-11-06): a 17px icon (the spinner drawn at the
   check's size) and its word, one weight and colour; only the icon's colour says the state. The icons
   stand in one column: the rows share the list's grid (subgrid), so a longer word moves no icon. */
[data-onb] .sy-r em { font-style: normal; display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--ink-2); white-space: nowrap; flex: none; margin-top: 1px; }
[data-onb] .sy-r em svg { width: 17px; height: 17px; }
[data-onb] .sy-r em .spin { width: 14.5px; height: 14.5px; margin: 1.25px; border-width: 1.7px; }
[data-onb] .sy-r em.ok svg { color: var(--ok); }
[data-onb] .sy-r em.wait svg { color: var(--ink-3); }
[data-onb] .sy-r em.err svg { color: var(--wait); }
@supports (grid-template-columns: subgrid) {
  [data-onb] .sy-list:not(:empty) { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; }
  [data-onb] .sy-r { display: grid; grid-template-columns: subgrid; grid-column: 1 / -1; align-items: start; }
}
[data-onb] .sy-r small { display: block; font-size: 13.5px; color: var(--ink-2); }
/* "Not synced · N courses": the head of the list under it, its line that list's top line (as a picker group) */
[data-onb] .grp { margin: 12px 0 -16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 15.5px; font-weight: 600; color: var(--ink); }
[data-onb] .grp + .sy-list { margin-top: 0; border-top: 0; }
[data-onb] .box { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }

/* AI choices: six plain rows; a click opens that AI's guide and marks the row (.on) */
[data-onb] .ai-l { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
[data-onb] .ai-o { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 4px 13px 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; font: inherit; color: var(--ink); }
[data-onb] .ai-o:hover > span > b { color: var(--accent-text); }
[data-onb] .ai-o > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
[data-onb] .ai-o > span > b { font-weight: 600; font-size: 16px; }
[data-onb] .ai-o small { font-size: 14px; color: var(--ink-2); }
[data-onb] .ai-o svg { width: 18px; height: 18px; color: var(--ink-3); }
[data-onb] .ai-o em { display: inline-flex; align-items: center; gap: 8px; font-style: normal; font-size: 14px; font-weight: 600; color: var(--ok); white-space: nowrap; }
[data-onb] .ai-o em svg { color: inherit; } /* the check, as account Connections' .word.ok */
/* on Free, the apps Free can't connect: greyed, with the plans that can; a click goes to the plans */
[data-onb] .ai-o .up, [data-onb] .ai-o .lk, [data-onb] .ai-o.off small:not(.up), [data-onb] .ai-o.off svg:not(.lk) { display: none; }
[data-onb] .ai-o.off .up { display: inline; }
[data-onb] .ai-o.off .lk { display: block; }
[data-onb] .ai-o.off > span > b, [data-onb] .ai-o.off:hover > span > b { color: var(--ink-3); }
[data-onb] .ai-o.on { width: calc(100% + 28px); margin-inline: -14px; padding-inline: 14px 18px; border-radius: var(--r); background: var(--soft); border-bottom-color: transparent; }
[data-onb] .ai-o:has(+ .ai-o.on), [data-onb] .ai-l:has(> .ai-o.on:first-child) { border-color: transparent; }

/* Design D (2026-11-05): the AI's guide. Desktop: onboard.js moves it into the right pane, which keeps
   its box and swaps the sample chat for the guide; narrower: a pane under the list. */
[data-onb] .guide, [data-onb] .g-head, [data-onb] .g-steps { display: flex; flex-direction: column; gap: 28px; }
[data-onb] .guide { margin-top: 8px; padding: 28px 22px; border-radius: var(--r-xl); background: var(--pane); }
[data-onb] .guide h2 { margin: 0; outline: none; font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 800; }
[data-onb] .g-t { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
[data-onb] .g-t span { font-size: 14px; color: var(--ink-3); white-space: nowrap; }
[data-onb] .g-add { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
[data-onb] .g-btns { display: flex; flex-wrap: wrap; gap: 12px; }
[data-onb] .g-add .btn { height: 50px; padding: 0 24px; font-size: 17px; }
[data-onb] .g-add .btn svg { width: 16px; height: 16px; }
[data-onb] .guide p { margin: 0; }
/* Waiting for the picked AI: the spinner in place of its row's chevron, and of Add to Claude's arrow once clicked. */
[data-onb] .ai-o > .spin, [data-onb] .g-add .btn .spin { display: none; }
[data-onb] .ai-o.wait > .spin, [data-onb] .g-add .btn.wait .spin { display: inline-block; }
[data-onb] .ai-o.wait > svg, [data-onb] .g-add .btn.wait > svg { display: none; }
[data-onb] .ai-o > .spin { flex: none; margin-inline: 1.5px; } /* not the row's text span (.ai-o > span) */
[data-onb] .g-add .btn .spin { width: 16px; height: 16px; vertical-align: 0; }
[data-onb] .g-add p { font-size: 15px; color: var(--ink-2); }
[data-onb] .g-step { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
[data-onb] .g-step > p { font-size: 17px; line-height: 1.5; }
[data-onb] .g-step b { font-weight: 600; }
[data-onb] .g-step > p > b:first-child { font-weight: 700; }
[data-onb] .g-step .link { font-size: inherit; font-weight: 500; }
[data-onb] .guide figure { margin: 0; }
/* A guide picture at its own size (they are cropped to the dialog at 1x), never wider than the column
   nor taller than 400px, scaled whole; the border gives a light picture on a light pane its edge.
   Each built-in figure has a dark (.sh-d) and a light (.sh-l) file: the theme's one shows. */
[data-onb] .guide figure img { display: block; width: auto; max-width: 100%; height: auto; max-height: 400px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
[data-onb] .guide figure .sh-d { display: none; }
:root[data-theme="dark"] [data-onb] .guide figure .sh-d { display: block; } :root[data-theme="dark"] [data-onb] .guide figure .sh-l { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) [data-onb] .guide figure .sh-d { display: block; } :root:not([data-theme="light"]) [data-onb] .guide figure .sh-l { display: none; } }
[data-onb] .guide .code, [data-onb] .guide .q { background: var(--bg); }
[data-onb] .g-man { margin-top: -12px; font-size: 14.5px; color: var(--ink-3); } /* under Add to Claude */
[data-onb] #g-hand > summary { display: none; } /* opened by Add it by hand beside Add to Claude */
[data-onb] #g-hand { margin-top: 0; }
[data-onb] .g-man summary { list-style: none; cursor: pointer; }
[data-onb] .g-man summary::-webkit-details-marker { display: none; }
[data-onb] .g-man summary .link { font-size: inherit; font-weight: 500; }
[data-onb] .g-man[open] summary { margin-bottom: 20px; }
[data-onb] .g-man .g-steps { gap: 20px; color: var(--ink); }
[data-onb] .s5-dash { margin-top: 28px; } /* Go to your dashboard, once an AI is connected (board B9-new) */
[data-onb] .st h1[tabindex] { outline: none; }
[data-onb] .dlg-ok .btn svg { width: 16px; height: 16px; }
[data-onb] .fr-right > div:has(> .guide:not([hidden])) { display: block; place-items: normal; padding: 48px; background: var(--pane); overflow-y: auto; overscroll-behavior: contain; } /* place-items: its centring would shrink the guide too */
[data-onb] .fr-right > div:has(> .guide:not([hidden])) > .chatdemo { display: none; }
[data-onb] .fr-right .guide { max-width: none; margin: 0; padding: 0; border-radius: 0; background: none; } /* styles.css .guide caps it at 760px */
/* Connected, the pane holds only Check that it works, a fixed size: centred top to bottom (the guide's
   steps grow, so they stay at the top). margin-block, not justify-content: it never clips an overflow. */
[data-onb] .fr-right > div:has(> .guide:not([hidden]) > [data-g-ok]:not([hidden])) { display: flex; flex-direction: column; }
[data-onb] .fr-right > div > .guide:has(> [data-g-ok]:not([hidden])) { margin-block: auto; }

/* the dialogs (Remove courses, Delete account) */
[data-onb] dialog { border: 0; padding: 0; background: transparent; color: var(--ink); max-width: none; max-height: none; }
[data-onb] dialog::backdrop { background: var(--scrim); }
[data-onb] .dlg { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); overflow-y: auto; background: var(--bg); border-radius: var(--r-xl); box-shadow: 0 30px 80px -20px var(--shadow-2); padding: 28px 28px 24px; }
[data-onb] .dlg > div { display: flex; flex-direction: column; gap: 18px; }
[data-onb] .dlg-h { min-width: 0; }
[data-onb] .dlg h2 { margin: 0; outline: none; font-size: 24px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 800; }
[data-onb] .dlg-f { display: flex; align-items: center; gap: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
[data-onb] .dlg-f .sline { flex: 1; }
[data-onb] .dlg-ok { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
[data-onb] .dlg-ok h2 { margin-bottom: 4px; }
[data-onb] .guide .acts2 { justify-content: flex-start; }
[data-onb] .dlg-ok .big-ok { width: 44px; height: 44px; color: var(--ok); }
[data-onb] .dlg-ok p { margin: 0; color: var(--ink-2); font-size: 16px; }
[data-onb] .dlg-ok .q { margin: 0; background: var(--soft); border-radius: var(--r); padding: 12px 16px; color: var(--ink); width: 100%; }
[data-onb] .acts2 { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
/* a new key: Copy sits inside the read-only field */
[data-onb] .keyrow { display: flex; flex-direction: column; gap: 8px; }
[data-onb] .keyfield { display: flex; align-items: center; gap: 8px; height: 48px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--soft); padding: 0 9px 0 13px; }
[data-onb] .keyfield .kf-v { flex: 1; min-width: 0; font: 14px var(--mono); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; user-select: all; }
[data-onb] .keyfield .btn { height: 38px; padding: 0 16px; font-size: 15px; flex: none; border-radius: var(--r-sm); }

/* sample chat on the right (as on the log-in page) */
[data-onb] .chatdemo { width: 100%; max-width: 560px; height: 100%; max-height: 760px; margin: 0; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--bg); box-shadow: 0 30px 80px -44px var(--shadow-2); display: flex; flex-direction: column; overflow: hidden; pointer-events: none; }
[data-onb] .cd-head { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 14px; }
[data-onb] .cd-head .mark { width: 22px; height: 22px; }
[data-onb] .cd-head b { font-weight: 600; }
[data-onb] .cd-head > span:last-child { margin-left: auto; color: var(--ink-3); font-size: 13px; }
[data-onb] .cd-thread { flex: 1; min-height: 0; height: auto; overflow: hidden; padding: 28px 32px 12px; display: flex; flex-direction: column; justify-content: flex-end; }
[data-onb] .cd-turn { display: flex; flex-direction: column; gap: 18px; }
[data-onb] .cd-user { align-self: flex-end; max-width: 85%; background: var(--bubble); border-radius: 20px; padding: 10px 16px; font-size: 16px; animation: none; }
[data-onb] .cd-ai { display: flex; flex-direction: column; gap: 10px; }
[data-onb] .cd-think { padding: 0; display: inline-flex; align-items: center; gap: 4px; font-size: 15px; color: var(--ink-2); }
[data-onb] .cd-think .chev { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[data-onb] .cd-answer { font-size: 17px; line-height: 1.65; }
[data-onb] .cite { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; margin: 0 1px; border-radius: var(--r-tag); background: var(--cite); color: var(--cite-ink); font-size: 12px; font-weight: 500; line-height: 1; vertical-align: 1px; white-space: nowrap; }
[data-onb] .cd-composer { padding: 10px 18px 18px; display: flex; flex-direction: column; gap: 10px; }
[data-onb] .cd-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px 0 12px; border: 1px solid var(--ink-3); border-radius: var(--r-sm); background: var(--bg); font-size: 14px; color: var(--ink); }
[data-onb] .cd-pill .ic { width: 15px; height: 15px; color: var(--ink-2); }
[data-onb] .cd-input { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 26px; padding: 7px 7px 7px 20px; box-shadow: 0 2px 10px -4px var(--shadow); }
[data-onb] .cd-input span:first-child { flex: 1; color: var(--ink-3); font-size: 16px; height: 36px; line-height: 36px; }
[data-onb] .cd-send { width: 36px; height: 36px; border-radius: 50%; background: var(--line); display: grid; place-items: center; flex: none; }
[data-onb] .cd-send svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* the comment step (beta run 2026-11-05, 13): a labelled field per picked course; its own sample chat on the right */
[data-onb] .cmts { display: flex; flex-direction: column; gap: 20px; }
[data-onb] .cmts label { display: flex; flex-direction: column; gap: 10px; font-size: 15.5px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
[data-onb] .cmts textarea { display: block; width: 100%; min-height: 48px; field-sizing: content; resize: none; margin: 0; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg); font: inherit; font-size: 16px; font-weight: 400; line-height: 1.5; color: var(--ink); }
[data-onb] .cmts textarea::placeholder { color: var(--ink-3); }
[data-onb] .cmts textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
[data-onb] .fr-right .chatdemo.cd-cmt { display: none; }
.frame[data-onb]:has([data-s="s3b"]:not([hidden])) .fr-right .chatdemo { display: none; }
.frame[data-onb]:has([data-s="s3b"]:not([hidden])) .fr-right .chatdemo.cd-cmt { display: flex; }

/* ---- the course step and the comment step: only the list scrolls (2026-11-05) ----
   On a desktop window from 760px tall (a 13" MacBook Air; the owners' pick, 2026-11-05), where the
   course step (with its filter) still shows the stuck semester header and 3 whole courses (measured
   2026-11-05 with the list running down to the bar: 241px box at 760px, 259 at 780, 223 at 740, 205
   at 720, 187 at 700; a course is 46px, 70 on two lines) and the comment step 3 notes (330px, a note
   81px), the title, the text, the filter and the bar stay still and the list scrolls in its own
   box; the column itself does not. The title stays where every step has it. Shorter windows and phones
   keep the whole column scrolling with the bar stuck to its bottom. The box reaches 20px past the
   column on the right, so its scroll bar sits outside the column (onboard.js sets --sbw, the bar's
   width, 0 where bars overlay), and 4px/8px to the left and top for the focus rings. */
[data-onb] [data-s="s3"] .scroll { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 761px) and (min-height: 760px) {
  [data-onb] .fr-body:has(> .fr-col > :is([data-s="s3"], [data-s="s3b"]):not([hidden])) { overflow: hidden; grid-template-rows: minmax(0, 1fr); }
  [data-onb] .fr-col:has(> :is([data-s="s3"], [data-s="s3b"]):not([hidden])) { display: flex; flex-direction: column; min-height: 0; }
  [data-onb] :is([data-s="s3"], [data-s="s3b"]) { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding-bottom: 0; }
  [data-onb] :is([data-s="s3"], [data-s="s3b"]) .st-body { flex: 1 1 auto; min-height: 0; }
  /* only the list gives way; the filter, the bar and the rows keep their height */
  [data-onb] :is([data-s="s3"], [data-s="s3b"]) > :not(.st-body), [data-onb] :is([data-s="s3"], [data-s="s3b"]) :is(.st-body, .scroll) > :not(.scroll) { flex: none; }
  [data-onb] .scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; margin: -8px -20px 0 -4px; padding: 8px calc(20px - var(--sbw, 0px)) 0 4px; }
  /* a semester's header stays at the top of the list while its courses scroll under it */
  [data-onb] .scroll .pk-h { position: sticky; top: -8px; z-index: 1; } /* -8px: the box's own top padding */
  /* the list runs down to the bar's line, as it does under the stuck bar on shorter windows */
  [data-onb] .scroll + .stick, [data-onb] .scroll + [hidden] + .stick { margin-top: -16px; }
  /* More below (onboard.js sets .more while the list can scroll further down): its last 28px fade
     out. A mask, so it fades to whatever is behind in light and dark and takes no clicks; the 20px
     past the column, where the scroll bar is, stay unmasked. */
  [data-onb] .scroll.more { -webkit-mask: linear-gradient(#000, #000) right / 20px 100% no-repeat, linear-gradient(#000 calc(100% - 28px), transparent); mask: linear-gradient(#000, #000) right / 20px 100% no-repeat, linear-gradient(#000 calc(100% - 28px), transparent); }
}

/* ---- narrower screens ---- */
@media (max-width: 1180px) {
  .frame[data-onb] { grid-template-columns: minmax(0, 1fr); }
  [data-onb] .fr-right { display: none; }
}
@media (max-width: 760px) {
  /* phone: the corners become the top and bottom of one column */
  .frame[data-onb] { height: auto; overflow: visible; }
  [data-onb] .fr-left { height: auto; min-height: 100vh; min-height: 100dvh; padding: 18px 24px 24px; }
  [data-onb] .fr-top, [data-onb] .fr-foot { padding-inline: 0; }
  [data-onb] .fr-body { overflow: visible; padding-inline: 0; }
  [data-onb] .fr-top, [data-onb] .fr-body { grid-template-columns: minmax(0, 1fr); }
  [data-onb] .fr-top { row-gap: 26px; }
  [data-onb] .fr-top .brand, [data-onb] .fr-top .obar, [data-onb] .fr-col { grid-column: 1; }
  [data-onb] .fr-top .obar { grid-row: 2; }
  [data-onb] .who { grid-column: 1; grid-row: 1; }
  [data-onb] .obar li > span { display: none; }
  [data-onb] .obar li.now > span { display: block; }
  [data-onb] .fr-body { padding-block: 40px; }
  [data-onb] .st h1 { font-size: 34px; }
  [data-onb] .st-text { font-size: 17px; }
  [data-onb] [data-paid] { font-size: 13.5px; }
  [data-onb] .fr-foot { padding-top: 8px; display: flex; }
  /* The footer is the page's end here, so the sync status is a bar pinned to the screen's bottom
     ("8 of 15 courses · about 6 min left": the spinner says it is syncing); a tap opens a sheet. */
  [data-onb] .fr-left:has(.fsync:not([hidden])) { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  [data-onb] .fsync { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; margin: 0; font-size: 14.5px; }
  [data-onb] .fs-btn { position: relative; width: 100%; height: calc(60px + env(safe-area-inset-bottom)); margin: 0; padding: 0 24px calc(4px + env(safe-area-inset-bottom)); justify-content: center; border-radius: 0; border-top: 1px solid var(--line); background: var(--bg); }
  [data-onb] .fs-btn:hover, [data-onb] .fs-btn[aria-expanded="true"] { background: var(--bg); color: var(--ink-2); }
  [data-onb] .fs-btn .ftrk { position: absolute; left: 0; right: 0; top: -1px; border-radius: 0; }
  [data-onb] .fs-btn .ftrk i { border-radius: 0; }
  [data-onb] .fs-btn[aria-expanded="true"] svg.ch { transform: rotate(-90deg); }
  [data-onb] .fs-t .fs-lead { display: none; }
  [data-onb] .fs-t .fs-n { font-weight: 600; color: var(--ink); }
  [data-onb] .fs-scrim { display: block; position: fixed; inset: 0; z-index: 19; background: var(--scrim); }
  [data-onb] .spop { position: fixed; left: 0; right: 0; bottom: 0; top: auto; max-height: 85dvh; padding: 10px 24px calc(20px + env(safe-area-inset-bottom)); border: 0; border-radius: var(--r-xl) var(--r-xl) 0 0; box-shadow: none; }
  [data-onb] .spop .grab { display: block; flex: none; width: 36px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 0 auto 16px; }
  [data-onb] .sp-h { flex-direction: column; align-items: flex-start; gap: 2px; }
  /* setup again (#579): the count on its own line, then Start sync above Keep your courses, full width */
  [data-onb] .stick:has([data-keep-courses]:not([hidden])) { flex-wrap: wrap; row-gap: 10px; }
  [data-onb] .stick:has([data-keep-courses]:not([hidden])) .btns { flex: 1 1 100%; flex-direction: column-reverse; }
  [data-onb] .sysgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  [data-onb] .guide h2 { font-size: 24px; }
  [data-onb] .dlg { padding: 22px 20px 20px; }
  [data-onb] .dlg-f { flex-direction: column; align-items: stretch; }
  [data-onb] .dlg-f .btn { width: 100%; }
  /* Tap targets of at least 44px (2026-11-05 design audit): the links that stand on their own line, the
     footer, the theme button, the avatar and its menu. Padding with the same negative margin, so nothing
     moves; the right-aligned Change keeps its margin-left: auto. */
  [data-onb] :is(.st-sec, .chosen, .pk-h) .link { padding-block: 11.5px; margin-block: -11.5px; }
  [data-onb] .chosen .link { padding-inline: 8px; margin-right: -8px; }
  [data-onb] .fr-foot a { padding: 11.5px 8px; margin: -11.5px -8px; }
  [data-onb] .ftheme { width: 44px; height: 44px; margin: -2px; }
  [data-onb] .who .avatar { position: relative; }
  [data-onb] .who .avatar::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; }
  [data-onb] .who-m button { min-height: 44px; }
}

/* A status line whose message is empty (e.g. no linking error) takes no room. */
[data-onb] .sline:has(> [data-s3err]:empty) { display: none; }

/* The sync step's callout (onboarding.html .dc, onboard.js syncHint; the approved mockup, 2026-11-05):
   the account menu's box, fixed to the page's top right, its notch pointing up at the browser bar.
   --ax = the notch's centre from the card's right edge, a fixed guess per browser: Chrome's puzzle
   piece and Firefox's Docta icon 78px, a pinned Docta icon in Chrome (left of the puzzle piece) 112px. */
[data-onb] .dc { position: fixed; top: 17px; right: 12px; z-index: 30; width: 336px; display: flex; align-items: flex-start; gap: 12px; padding: 14px 44px 15px 16px; background: var(--bg); color: var(--ink); border: 1px solid var(--line-2); border-radius: var(--r-lg); filter: drop-shadow(0 8px 14px var(--shadow)) drop-shadow(0 1px 2px var(--shadow)); font-size: 15px; line-height: 1.45; --ax: 78px; }
[data-onb] .dc.crpin { --ax: 112px; }
[data-onb] .dc::before { content: ""; position: absolute; top: -11px; right: calc(var(--ax) - 10px); width: 20px; height: 20px; background: var(--bg); border-left: 1px solid var(--line-2); border-top: 1px solid var(--line-2); border-top-left-radius: 3px; transform: rotate(45deg); }
/* Safari (.sf) puts extension icons directly left of its address field, and centres that field in the
   toolbar. Measured once in a 1915px window: the field ran 570-1350 (780px, ~40.8% of the window, its
   centre the window's), the Docta icon's centre at 544, 26px left of it. Assuming the field keeps that
   share of the width as the window changes, the icon's centre is at 50vw - 20.4vw - 26px; the notch
   sits there, --ax from the card's LEFT edge, and the card runs right from it: on screen at every
   width the callout shows (above 1180px: from x≈252), and its right edge clear of the account avatar
   at the left column's top right (measured 1181-2560px). */
[data-onb] .dc.sf { right: auto; left: calc(29.6vw - 26px - var(--ax)); --ax: 72px; }
[data-onb] .dc.sf::before { right: auto; left: calc(var(--ax) - 10px); }
[data-onb] .dc p { margin: 0; min-width: 0; }
[data-onb] .dc .dmark { width: 28px; height: 28px; flex: none; display: block; margin-top: 1px; }
[data-onb] .dc .ii { display: inline-grid; place-items: center; width: 20px; height: 20px; margin: 0 1px; vertical-align: -4px; border-radius: 6px; background: var(--soft); color: var(--ink); }
[data-onb] .dc .ii svg.i { width: 15px; height: 15px; }
[data-onb] .dc .dx { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: var(--r-sm); background: none; color: var(--ink-3); cursor: pointer; padding: 0; }
[data-onb] .dc .dx:hover { background: var(--hover); color: var(--ink); }
[data-onb] .dc .dx svg.i { width: 16px; height: 16px; }
[data-onb] .dc .dx:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
/* Only beside the right pane (wider than 1180px): there it sits over the pane, clear of the account
   avatar at the left column's top right. Narrower, the avatar is at the window's top right, under it;
   a phone has no extension at all. */
@media (max-width: 1180px) { [data-onb] .dc { display: none !important; } }
