/* app2/ui/hub.css — the hub pages of the calm round (R10 phase 2; archive/docs-2026-10-14:docs/redesign/specs/briefs/calm-round.md): Practice,
   the Leaderboards, Reference and the Account page. Each is exactly the window (screenplay 3.0 rule 16): the page lays
   its cards out in the column the shell gives it, and a long list scrolls inside its own card with a soft fade, never
   the page. White cards on the paper ground, space as the separator, a mode's color as its sprite and one accent.
   Tokens only (ui/tokens.css): no hex value, pixel size or duration appears here. Loaded after screens.css. */

/* ---------- the fit: a page built to fit takes the column's height and no more ---------- */
html[data-shell="app"] #root:has(> .page-fit){flex:1 1 0; min-height:0; overflow:hidden}
.hub{font-family:var(--font); color:var(--ink); font-size:var(--fs-body); line-height:1.4; gap:var(--hub-gap)}
.hub-card{position:relative; display:block; flex-direction:row; gap:0; padding:0; min-width:0; box-sizing:border-box}   /* the hub pages' card is the kit's (.ui-card); its head and rows carry the hub's own padding (--hub-pad, --hub-pad-v) to its edges, so it keeps none of its own, and a card that lays itself out as a flex row keeps the row */
:where(.hub) :where(h1, h2, h3, h4, p, ul, dl){margin:0}
.hub button:not(.ui-btn, .ui-chip, [class^="mk-"]){font:inherit}   /* a bare button; a design-system button, a chip (a filter is a button) and a menu kit piece keep their own type (rule 3; UI-31) */
.hub :focus-visible:not([class^="mk-"]){outline:var(--focus-w) solid var(--cell-cursor); outline-offset:var(--focus-off)}
.lk{display:inline-block; width:calc(var(--hub-mark) * .8); height:var(--hub-mark); color:var(--ink-2); flex:none; vertical-align:middle}

/* ---------- the shared marks: the tier word, the times to beat, a drill's keys ---------- */
.tw{display:inline-flex; align-items:center; gap:var(--s1); font-weight:var(--fw-bold); white-space:nowrap; font-size:var(--fs-small)}
.tw .tiers i{border-color:currentColor}
.tw .tiers i.on{background:currentColor}
.tw-pass{color:var(--tier-pass)} .tw-pro{color:var(--tier-pro)} .tw-legendary{color:var(--tier-legendary)}
.tob{display:flex; gap:calc(var(--s4) * var(--k)); margin:0; font-size:var(--fs-small); font-weight:var(--fw-semi); color:var(--ink-2); white-space:nowrap; flex-wrap:wrap; row-gap:var(--s1)}   /* a narrow side card (UI-56) wraps a tier to the next line, never past the edge */
.tob-t{display:flex; align-items:baseline; gap:var(--s1)}
.tob dt, .tob dd{margin:0}
.tob dt{display:inline-flex; align-items:center; gap:var(--s1)}
.tob .tob-time{font-family:var(--mono); font-weight:var(--fw-bold); color:var(--ink); font-variant-numeric:tabular-nums}
.tob-stack .tob-t{flex-direction:column; gap:var(--s1)}
.tob-stack dt{display:inline-flex; align-items:center; gap:var(--s1); font-weight:var(--fw-bold)}
.tob-stack .tob-pass dt{color:var(--tier-pass)} .tob-stack .tob-pro dt{color:var(--tier-pro)} .tob-stack .tob-legendary dt{color:var(--tier-legendary)}
.ksum{display:flex; align-items:center; gap:var(--chord-apart); min-width:0; max-width:100%; overflow:hidden; white-space:nowrap}
.ksum > *{flex:none}
.ksum small{font-size:var(--fs-small); font-weight:var(--fw-semi); color:var(--ink-2)}
.ksum code.fn{font-family:var(--mono); font-size:var(--fs-key); font-weight:var(--fw-bold); color:var(--ink); background:var(--chrome); border-radius:var(--r-btn); padding:var(--s1) var(--s2)}

/* ---------- Learn ---------- */
/* on the app template (UI-35; ui/templates.css owns its layout): the chapter's modules as list rows in the scroll panel,
   the open one's lessons under it, the item in hand alone in the side column with its hotkeys and the certificate's row */
.learn{--tpl-cols:var(--learn-cols)}
.lcard{flex:1 1 auto; min-height:0; display:flex; flex-direction:column}
.lscroll{--sp-ground:var(--sheet)}
.lm-row .no, .li-row .li-no{color:var(--ink-2); font-weight:var(--fw-bold); font-variant-numeric:tabular-nums}
.lm-row .nm{font-weight:var(--fw-bold)}
.lm.open > .lm-row .nm, .lm.full > .lm-row .no{color:var(--learn-ink)}
.lm-items{border-top:0}
.li-row .nm{font-weight:var(--fw-body)}
.li-row.li-ch .li-no{color:var(--learn-ink)}
.li-row.li-done .nm{color:var(--ink-2)}
.li-row.li-next .nm{color:var(--learn-ink); font-weight:var(--fw-bold)}
.li-row[aria-selected="true"] .nm{font-weight:var(--fw-bold)}
.lpanel .tpl-act-eye{color:var(--learn-ink)}
.lp-what{font-size:var(--fs-small)}
.lp-full{font-size:var(--fs-small); font-weight:var(--fw-semi)}
.lp-full b{color:var(--ink); font-weight:var(--fw-bold)}
/* the certificate's row at the list's foot: its seal, its words and its link; the test-out and the fine line under them */
.crow{display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; column-gap:var(--tpl-group); row-gap:var(--s1)}
.crow-quiet .cr-guest{flex:1 1 100%}
.cr-seal{line-height:0}
.cr-seal svg{display:block; image-rendering:pixelated}
.cr-seal.off svg{filter:grayscale(1); opacity:.55}
.cr-words{font-size:var(--fs-small); font-weight:var(--fw-semi); color:var(--ink-2)}
.cr-words b{color:var(--ink); font-weight:var(--fw-bold)}
.crow .h-link{font-size:var(--fs-small)}
.cr-fine{grid-column:1 / -1; font-size:var(--fs-min); color:var(--ink-2)}
.cr-testout, .cr-first{grid-column:2 / 4}
/* ---------- Arcade (UI-40) ---------- */
/* on the app template (ui/templates.css owns its layout): the chapters as chips beside the search, the deck as list rows in two
   columns in the scroll panel, each the state mark (or the lock), the command over its keycaps and its hits (or not played yet)
   on the keycaps' line; Start a round with the lengths' best rounds alone in the side column */
.ar-sp{--sp-ground:var(--sheet)}
.ar-keys{display:inline-flex; align-items:center}
.ar-cmd .tpl-sub{display:flex; align-items:center; justify-content:space-between}
.ar-hits{font-weight:var(--fw-bold); color:var(--ink); font-variant-numeric:tabular-nums}
.ar-cmd.shut .tpl-t{font-weight:var(--fw-body); color:var(--ink-2)}   /* not taught yet: the name in grey beside its lock, as a shut drill */
.ar-box.shut .tpl-sec-h{color:var(--ink-2)}
/* ---------- Practice ---------- */
/* on the app template (UI-35; ui/templates.css owns its layout): the chapters as chips beside the search, the drills as list rows under their modules in the scroll panel, the drill in hand alone in the side column */
.pr{--tpl-cols:var(--pr-cols)}
.pr-cat{flex:1 1 auto; min-height:0; display:flex; flex-direction:column}
.pr-sp{--sp-ground:var(--sheet)}
.pr-list:focus-visible{outline:none}
.pr-row:is(.shut, .lock) .tpl-t{font-weight:var(--fw-body); color:var(--ink-2)}
.pr-box.shut .tpl-sec-h{color:var(--ink-2)}
.pr-us{color:var(--ink-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.pr-bt{justify-content:flex-end; flex-wrap:nowrap; white-space:nowrap}
.pr-row .tpl-end > :last-child{justify-self:end}
.pr-time, .ac-time{font-family:var(--mono); font-weight:var(--fw-bold); font-size:var(--fs-small); color:var(--ink); font-variant-numeric:tabular-nums}
.pr-panel .tpl-act-eye{color:var(--drills-ink)}
.pr-state{font-size:var(--fs-small); font-weight:var(--fw-semi)}
.pr .first-cue::after{inset:calc(var(--btn-edge) * -1); border-radius:var(--btn-r)}   /* the ring (HM-25) on the button's outer edge */
.pr-fn{font-weight:var(--fw-bold)}
/* a locked drill's upgrade panel, in the list's place; its button is the screen's one gold element */
.pr-pay{flex:1 1 auto; min-height:0; overflow:auto}
.pr-pay .paywall{max-width:none; padding:0; background:none; border:0}
.hub .paywall .btn2-primary{background:var(--clock-tint); color:var(--clock-ink); border:var(--bw-1-5) solid var(--clock-ink)}
.hub .paywall .btn2-primary:hover{background:var(--sheet)}
.hub .paywall .btn2-primary > .ui-cap{--cap-ink:var(--clock-ink); --cap-rim:var(--clock-ink)}
/* ---------- the Leaderboards ---------- */
/* on the app template (UI-35; ui/templates.css owns its layout), the board alone in the window: the boards as one chip
   row with the drill picker at its end, the board's box (the template's one box, its eyebrow in the mode's ink), then the
   board in its scroll panel (the board kit, components.css .ui-board) */
.lb .tpl-act-eye, .dp-host .tpl-act-eye{color:var(--mode-ink)}   /* the phone page for a shared Daily (daily-phone-page.js) wears the Daily's ink too */
.lb-count{font-size:var(--fs-small); font-weight:var(--fw-bold); color:var(--ink-2); white-space:nowrap; font-variant-numeric:tabular-nums}
.lb-best{font-size:var(--fs-small); font-weight:var(--fw-semi); color:var(--ink-2); white-space:nowrap}
.lb-best b{color:var(--ink); font-weight:var(--fw-bold)}
.lb-wrap{flex:1 1 auto; min-height:0; display:flex; flex-direction:column}
.lb-desk-link{font-size:var(--fs-small)}
.lb-desk-failed{color:var(--ink-2)}
.lb-host{--board-cols:var(--board-c-rank) minmax(0, 1fr) var(--board-c-num) var(--board-c-num)}   /* at the reading measure, the keys and the time sit beside the player */
.lb-overall{--board-cols:var(--board-c-rank) var(--board-c-who) var(--board-c-numf)}   /* Overall: place, player, XP */
.lb-foot, .lb-msg{flex:none}

/* ---------- Reference ---------- */
/* on the app template (UI-35; ui/templates.css owns its layout): the filter, the keys as list rows with columns in a scroll
   panel, the keyboard the side column when asked for. Colour only for state (UI-37 rule 3): the groups are grey, a key's
   state is its chip's dot, a collected key on the board Learn's tint. */
.ref{--tpl-cols:var(--ref-cols)}
/* .ref-board-on (set by reference-page.js with the side's hidden), not .ref:has(.tpl-side:not([hidden])): a :has() with a
   position test after it (the :last-child below) makes Chromium restyle the whole page on every DOM change on every page,
   about 60 ms a lesson key (perf-guards.test.js holds it off) */
.ref.ref-board-on{--tpl-cols:var(--ref-cols-n)}
.ref.ref-board-on :is(.ref-do, .tpl-head-row .tpl-end > :last-child, .ref-tn span){display:none}
.ref [data-g]{--g:var(--ink-2); --g-ink:var(--ink); --g-tint:var(--chrome); --g-on:var(--sheet); --g-edge:var(--ink-2)}
.ref :is(.tpl-lead, .tpl-filter-q) .ui-cap{--cap-fs:var(--fs-label)}   /* one key size on the page */
.ref-keys{flex:1 1 auto; min-height:0; display:flex; flex-direction:column}
.ref-list:focus-visible{outline:none}
.ref-row.not .tpl-t{font-weight:var(--fw-body)}
.ref-row .tpl-end{white-space:normal}
.ref-or{font-size:var(--fs-small); font-weight:var(--fw-semi); color:var(--ink-2)}
.ref-alias{flex-basis:100%; font-size:var(--fs-small); color:var(--ink-2)}   /* Excel's sheet keys, which a browser tab keeps: the alias that works there (sheet-keys.js) */
.ref-tn{display:flex; align-items:baseline; gap:var(--s2); min-width:0; font-size:var(--fs-small); font-weight:var(--fw-body); color:var(--ink-2); text-decoration:none}
.ref-tn b{flex:none; font-family:var(--mono); font-weight:var(--fw-bold); color:var(--ink)}
.ref-tn span{min-width:0; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; color:var(--ink)}
a.ref-tn:hover span{text-decoration:underline}
.ref-tn .ref-lk{align-self:center}
.ref-st{justify-self:start}
.ref-do{display:flex; justify-content:flex-end; visibility:hidden}
.ref-row:hover .ref-do, .ref-row.sel .ref-do{visibility:visible}
.ref-board .kb{--kb-u:var(--ref-kb-unit); flex:none; gap:calc(var(--ref-kb-unit) * .45)}
.ref-board .kb-key{align-items:center; justify-content:center; padding:0; overflow:hidden; --cap-fs:min(var(--fs-min), calc(var(--ref-kb-unit) * .48)); --cap-r:var(--kt-r); --cap-foot:var(--bw-2)}
.ref-board .kb-nav .kb-key{--cap-fs:min(var(--fs-min), calc(var(--ref-kb-unit) * .38))}
.ref-board .kb-key.kb-used{--cap-rim:var(--ink-2)}
.ref-board .kb-key.kb-used.kb-on{--cap-face:var(--learn-tint); --cap-ink:var(--learn-ink); --cap-fw:var(--fw-heavy)}
.ref-board .kb-key.kb-down{--cap-face:var(--ink); --cap-rim:var(--ink); --cap-ink:var(--sheet); --cap-fw:var(--fw-heavy)}
.ref-focus .ui-cluster .ui-cap{--cap-fs:var(--fs-body)}
.ref-focus .ui-btn-primary{--mode:var(--drills); --mode-ink:var(--drills-ink); --mode-tint:var(--drills-tint); --mode-on:var(--drills-on); --mode-hover:var(--drills-hover); --mode-line:var(--drills-line)}
.ref-focus .tpl-note b{color:var(--ink); font-weight:var(--fw-bold)}

/* ---------- the Account page (UI-35, UI-36): every tab on the settings template (templates.css lays out the sections and
   their rows); only what is the page's own lives here ---------- */
.ac-line{font-size:var(--fs-small); line-height:1.5; color:var(--ink-2); font-weight:var(--fw-semi)}
/* Plan and billing (PR-26): the next charge keeps its date and amount on one line; its Pause and Cancel drop under it on a phone */
.acct-billing [data-bill="next"] > .v{white-space:nowrap}
@media (max-width: 599px){ .acct-billing [data-bill="next"] > .a{grid-column:1 / -1; justify-self:start} }
.ac-btns{display:flex; flex-wrap:wrap; align-items:center; gap:var(--s3)}
.ac-ticks{list-style:none; margin:0; padding:0; display:flex; flex-direction:column}
.ac-ticks li{display:flex; align-items:center; gap:var(--s3); min-height:var(--list-row); border-bottom:1px solid var(--grid); font-size:var(--fs-small); font-weight:var(--fw-semi)}
.ac-ticks li:first-child{border-top:1px solid var(--grid)}
.ac-tick{flex:none; width:var(--s4); height:var(--s4); color:var(--ink-2)}   /* the one grey list mark (UI-37 r6) */
/* mastery: the chapter marks and the certificate, one row (ui/components/profile-marks.js; the cosmetics model, Wolf
   2026-10-10), on the public profile */
.pm-h{display:flex; align-items:baseline; gap:var(--s2); font-size:var(--fs-small); font-weight:var(--fw-bold); color:var(--ink-2)}
.pm-h span{font-weight:var(--fw-semi)}
.pm-mastery{display:flex; flex-direction:column; gap:var(--s2); min-width:0}
.pm-marks{list-style:none; margin:0; padding:0; display:flex; align-items:center; flex-wrap:wrap}
.pm-marks{gap:var(--s2)}
.pm-mark{display:grid; place-items:center; width:var(--pm-art); height:var(--pm-art)}
.pm-cert{margin-left:var(--s3)}
.pm-link{color:inherit; text-decoration:none; border-radius:var(--r-btn)}
.pm-link:hover .pm-h{color:var(--learn-ink)}
/* a player's public profile (#/p/<handle>; app/public-profile-page.js): one calm card in the centered column */
.pp-cert{margin-top:var(--s1); font-size:var(--fs-small); font-weight:var(--fw-semi); color:var(--ink-2)}
.pp-cert.on b{color:var(--learn-ink); font-weight:var(--fw-heavy)}
.pp-cert span{font-variant-numeric:tabular-nums}
/* ---------- the achievements case (app/progress-tab.js): a dense even grid of small round tiles, the words in a tip ---------- */
/* the tier mark (ui/badges.js tierHtml): one pip a tier, the badge's own lit in its tier's colour; the word, when shown, the same colour */
.tier{display:inline-flex; align-items:center; gap:var(--s2); font-size:var(--fs-min); font-weight:var(--fw-bold); line-height:1.2; color:var(--ink-2)}
.tier-pips{display:inline-flex; align-items:center; gap:var(--ach-pip-gap)}
.tier-pips i{display:block; box-sizing:border-box; width:var(--ach-pip); height:var(--ach-pip); border-radius:50%; border:1px solid var(--ach-pip-line); background:none}
.tier-common{--tier:var(--rar-common)} .tier-rare{--tier:var(--rar-rare)} .tier-epic{--tier:var(--rar-epic)} .tier-legendary{--tier:var(--rar-legendary)}
.tier-pips i.on{border-color:var(--tier); background:var(--tier)}
.tier-w{color:var(--tier)}
/* the case: as many tiles across as fit, spread to both edges; the row gap is set to the column gap that leaves (progress-tab.js fitGaps) */
.ach-case{display:grid; grid-template-columns:repeat(auto-fill, var(--ach-cell)); justify-content:space-between; gap:var(--ach-gap)}
/* a tile (BG-33): the cell holds a circle the size of the token, the art centred, and the badge's name under it, centred, at most two
   lines and never clipped (a long word breaks); earned in full colour with the ink name, locked muted (--art-locked) with the quiet name;
   under way, the ring (components.css .pbar-ring) is the circle's edge */
.ach-case .ach-tile{position:relative; display:flex; flex-direction:column; align-items:center; gap:var(--ach-name-gap); width:var(--ach-cell); box-sizing:border-box; padding:0; margin:0; border:0; border-radius:var(--r-btn); background:none; color:inherit; font:inherit; cursor:default}
.ach-t-disc{position:relative; display:grid; place-items:center; flex:none; width:var(--ach-tile); height:var(--ach-tile); box-sizing:border-box; border-radius:50%}
.ach-t-name{display:block; width:100%; font-size:var(--fs-min); line-height:var(--ach-name-lh); font-weight:var(--fw-semi); text-align:center; color:var(--ach-name-ink); overflow-wrap:anywhere; hyphens:none}
.ach-tile.locked .ach-t-name{color:var(--ach-name-ink-locked)}
.ach-t-art{display:grid; place-items:center; width:100%; height:100%; box-sizing:border-box; border-radius:50%; border:1px solid var(--line); background:var(--sheet)}
.ach-tile.locked .ach-t-art{background:var(--paper)}
.ach-tile .pbar-ring{width:100%; height:100%; --pg-ground:var(--sheet); --prog-track:var(--line)}   /* the track is the tile's edge, the same line as the others */
.ach-case .ach-tile:focus-visible{outline:var(--focus-w) solid var(--cell-cursor); outline-offset:var(--focus-off)}
/* a new badge: one small dot at the tile's top right, ringed in the ground so it reads on the art */
.ach-t-new{position:absolute; top:var(--bw-2); right:var(--bw-2); width:var(--ach-dot); height:var(--ach-dot); border-radius:50%; background:var(--learn); box-shadow:0 0 0 var(--bw-2) var(--sheet); pointer-events:none}
.ach-t-fa{position:absolute; right:calc(var(--bw-2) * -1); bottom:calc(var(--bw-2) * -1); display:grid; place-items:center; width:var(--ach-fa); height:var(--ach-fa); border-radius:50%; background:var(--sheet); box-shadow:0 0 0 var(--bw-2) var(--sheet); pointer-events:none}
/* the tip: the badge's name, then its tier, rule and count, under the tile you point at or focus (above it when the shelf has no room below) */
.ach-tip{position:absolute; z-index:2; box-sizing:border-box; width:max-content; max-width:var(--ach-tip-w); padding:var(--s2) var(--s3); border:1px solid var(--line); border-radius:var(--r-btn); background:var(--sheet); color:var(--ink); font-size:var(--fs-min); font-weight:var(--fw-semi); line-height:1.35; text-align:left; box-shadow:var(--lift); pointer-events:none}
.ach-tip b{display:block; font-weight:var(--fw-heavy); font-size:var(--fs-small); line-height:1.3}
/* the achievements case's tip sits over the case, in the section (progress-tab.js places it) */
.ac-shelf{position:relative}
/* Plan and billing: the plan's row, its words and buttons under it, the code box, Good to know (good-to-know.js) */
.ac-plan-body{display:flex; flex-direction:column; gap:var(--s3)}
.ac-plan-body:empty, .ac-plan .co-err:empty{display:none}
.ac-plan [data-bill="plan"] svg{display:block; image-rendering:pixelated}
/* Plan and billing's card (UI-37 r1): it stays in frame while the column scrolls, never taller than the view; its foot (the
   price line and the one button) fixed, its body scrolling above it on a short window */
.tpl-set-side:has(> .ac-price-card){position:sticky; top:0; align-self:start}
.tpl-set-side > .ac-price-card{display:flex; flex-direction:column; align-items:stretch; max-height:calc(var(--sp-view, 100vh) - var(--tpl-in))}   /* the column's view less the card's own top offset (measured 2026-10-31: the old --tpl-group left 22px unused) */
.tpl-set-side > .ac-price-card > .tpl-act-sp{flex:0 1 auto; min-height:0; --sp-ground:var(--plate-neutral)}   /* the body is the kit's scroll list on the card's plate: its rail and fade cue the scroll (UI-59) */
.tpl-set-side > .ac-price-card .tpl-act-body{flex-direction:column; align-items:flex-start; flex-wrap:nowrap}
.tpl-set-side > .ac-price-card .tpl-act-body > .tpl-stats{align-self:stretch}   /* side card X (PR-26): the stat rows span the card */
.tpl-set-side > .ac-price-card > :is(.tpl-act-h, .tpl-act-foot){flex:none}
.ac-price-foot{flex-wrap:wrap}
.ac-price{display:flex; align-items:baseline; gap:var(--s3)}
.ac-price b{font-size:var(--fs-title); font-weight:var(--fw-heavy); white-space:nowrap}   /* the figure and its tax mark never part (UI-65) */
.ac-price span{font-size:var(--fs-small); font-weight:var(--fw-semi); color:var(--ink-2)}
.ac-soon{display:inline-flex; align-items:center; height:var(--hub-btn-h); padding:0 var(--s4); border-radius:var(--r-btn); background:var(--clock-tint); border:1px solid var(--clock-ink); color:var(--clock-ink); font-size:var(--fs-body); font-weight:var(--fw-heavy)}
.ac-code{display:flex; flex-direction:column; gap:var(--s2)}
.ac-warn{color:var(--ink); font-weight:var(--fw-bold)}
.ac-know .gtk-list{columns:1}   /* Good to know: Pricing's list (good-to-know.js), one column in the section */
/* the certificate: the count's tip, the seal beside the course, the chapters' rings, the times, the padlock row */
.ac-count{cursor:help}
.ac-badge{display:block; width:calc(var(--acct-badge-sm) * var(--k)); height:calc(var(--acct-badge-sm) * var(--k)); color:var(--ink-2)}
.ac-paper.issued .ac-badge{color:var(--learn)}
.ac-st{display:inline-flex; align-items:center; gap:var(--s2)}
.ac-st .ac-tick{width:var(--s3); height:var(--s3); color:var(--learn-ink)}
.ac-cr .tpl-end .pbar{width:var(--tpl-meter-w); flex:0 1 auto; min-width:0}
.ac-cr .tpl-end{flex-shrink:1; min-width:0}
.ac-cr .tpl-txt{min-width:min-content}   /* a narrow row: the bar gives way, never draws over the chapter's name (rule 6) */
.ac-lock{display:inline-flex; align-items:center; gap:var(--s2); color:var(--ink-2); text-decoration:none}
.ac-lock:hover, .ac-lock:focus-visible{color:var(--learn-ink); text-decoration:underline; text-underline-offset:var(--acct-ul-off)}
.ac-st .ac-time{font-size:var(--fs-body)}
.ac-cred{color:inherit; text-decoration:none}
.ac-cred code{font-family:var(--mono); font-weight:var(--fw-bold)}
.ac-cred:hover code, .ac-cred:focus-visible code{text-decoration:underline; text-underline-offset:var(--bw-2)}
.ac-err{color:var(--red)}
/* the claim moment: the six times rise in, one after the other */
.ac-just .ac-time{animation:ac-rise var(--d-acct-rise) var(--ease-out) both; animation-delay:calc(var(--d-acct-thump) + var(--i) * var(--d-acct-rise-gap))}
@keyframes ac-rise{from{opacity:0; transform:translateY(var(--s1))} to{opacity:1; transform:none}}
@media (prefers-reduced-motion: reduce){ .ac-just .ac-time{animation:none} }
/* the issued certificate prints alone (Print, or Ctrl P on Certificate): the section on a white page, dark ink, any theme */
@media print{
  body:has(.ac-paper.issued) *{visibility:hidden}
  body:has(.ac-paper.issued){background:var(--print-paper)}
  body:has(.ac-paper.issued) :is(.ac-paper.issued, .ac-paper.issued *){visibility:visible}
  .ac-paper.issued{position:fixed; inset:0; overflow:visible; padding:var(--s6); background:var(--print-paper); color:var(--print-ink)}
  .ac-paper.issued :is(.mk-kv .k, .tpl-end, .tpl-sec-facts){color:var(--print-ink-2)}
  .ac-paper.issued :is(.mk-kv, .tpl-list, .tpl-li){border-color:var(--print-line)}
  .ac-paper.issued .ac-acts{display:none}
}

/* ---------- the Account page on a phone (the phone rule opens it so a member can always reach Plan and billing and
   cancel): the page scrolls (templates.css) and the tab row is one line that scrolls sideways ---------- */
@media (max-width:760px){
  /* the tab row is one line that scrolls sideways with the open tab whole at its start; no neighbour is cut mid-word */
  .acct-tabs{flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; -webkit-overflow-scrolling:touch; scroll-padding-inline-start:var(--s6); -webkit-mask-image:linear-gradient(90deg, transparent, var(--ink) var(--s6), var(--ink) calc(100% - var(--s6)), transparent); mask-image:linear-gradient(90deg, transparent, var(--ink) var(--s6), var(--ink) calc(100% - var(--s6)), transparent)}
  .acct-tabs::-webkit-scrollbar{display:none}
  .acct-tabs .lt{flex:none}
  .acct-tabs .lt:first-child{margin-left:0}   /* the strip's fade at its left edge would cut the first tab's words: no negative margin on a phone */
  .acct-tabs::after{content:""; flex:none; width:60vw}
  /* every tab keeps its name (A-grade round 3): a tab past the edge fades into the strip, which scrolls inside itself */
}

/* ---------- identity (docs/specs/identity.md) ---------- */
/* under the board: Around you at the foot and the private note (the zebra, your row and a guest's dashed ghost row are the
   board kit's) */
.lb-around{flex:none; border-top:1px solid var(--line)}
.lb-around-head{display:flex; flex-wrap:wrap; align-items:baseline; gap:var(--s1) var(--s3); padding:var(--s2) var(--s2) var(--s1)}
.lb-around-head h3{font-size:var(--fs-small); font-weight:var(--fw-heavy)}
.lb-around-facts{display:flex; flex-wrap:wrap; align-items:baseline; gap:var(--s1) var(--s3); font-size:var(--fs-small); font-weight:var(--fw-semi); color:var(--ink-2)}
.lb-around-facts b{color:var(--ink); font-weight:var(--fw-heavy)}
.lb-around-gap{font-style:normal; font-weight:var(--fw-bold); color:var(--learn-ink)}
.lb-around[hidden]{display:none}
.lb-foot > .ui-note{margin:var(--s2) var(--hub-pad)}   /* the board's foot lines (only you see this row; your best joins once the account has it): the note kit's quiet note */
.lb-ghost-words{display:flex; flex-direction:column; min-width:0}
.lb-ghost-words small{color:var(--ink-2); font-weight:var(--fw-semi)}
.lb-ghost-act{justify-self:start}

/* Profile: on the settings template (templates.css, UI-35), its key and value rows the menu kit's (ui/menu-kit.css). Only
   what is the page's own lives here: the Leaderboards row names its switch itself (the row's label), so the block's label
   is not printed again, and its locked line is the row's value, read out as the switch's description */
[data-you="public"] .pub-name-label, [data-you="public"] .pub-name-line, [data-you="public"] .ac-switch > span{display:none}   /* one state a row (menu kit §5): the value says Public or Private, the switch draws no On beside it */
[data-you="team"] .you-off{color:var(--ink-2)}   /* no team: one grey row, the lock and the condition (UI-37 r4) */

/* the public page: the owner's strip, the nameplate large, the facts and chapter marks, Best times beside Featured */
.pp-strip{display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:var(--s2) var(--s4); padding:var(--s2) var(--s3); border-radius:var(--r-btn); background:var(--learn-tint); color:var(--ink); font-size:var(--fs-small); font-weight:var(--fw-semi)}
.pp-strip-acts{display:flex; align-items:center; gap:var(--s2)}
.pp-title{margin-top:var(--s2); font-size:var(--fs-body)}
.pp-title span{margin-left:var(--s2); color:var(--ink-2); font-weight:var(--fw-semi)}
.pp-time, .pp-fast .tpl-fact-v{font-family:var(--mono)}
@media (max-width:760px){
  /* the public page's nameplate on a phone (UI-16): the name on the first line beside the chip, the team and title tags under it */
  .pp-np{display:grid; grid-template-columns:var(--av-xl) max-content minmax(0, 1fr); column-gap:var(--s3); row-gap:var(--s2); align-items:center; width:100%} .pp-np > :first-child{grid-row:1 / span 2} .pp-np .np-name{grid-column:2 / -1; align-self:end; line-height:1.25} .pp-np .ui-chip{align-self:start; justify-self:start} }

.ui-btn-gold, .go-gold, .hub .paywall .btn2-primary, .hub .lb-gold, .ac .ac-gold{background:var(--clock); border-color:var(--clock); color:var(--clock-on)}
@media (hover:hover){ .ui-btn-gold:hover, .go-gold:hover, .hub .paywall .btn2-primary:hover, .hub .lb-gold:hover, .ac .ac-gold:hover{background:var(--clock); border-color:var(--clock-on); box-shadow:inset 0 0 0 1px var(--clock-on)} }
.ui-btn-gold > .ui-cap, .go-gold > .ui-cap, .hub .paywall .btn2-primary > .ui-cap, .hub .lb-gold > .ui-cap, .ac .ac-gold > .ui-cap{--cap-face:transparent; --cap-ink:var(--clock-on); --cap-rim:var(--clock-on)}

.tw .tiers i, .tob .tiers i{border-color:var(--clock-ink)}
.tw .tiers i.on, .tob .tiers i.on{background:var(--clock)}
/* ---------- Report on a board row and a profile; a changed drill's earlier boards (migration 0042) ---------- */
.lb-who .lb-flag{margin-left:auto; flex:none; opacity:0; font-size:var(--fs-label)}
.lb-row:hover .lb-flag, .lb-row:focus-within .lb-flag{opacity:1}
.lb-ver-line{margin:0; font-size:var(--fs-small); color:var(--ink-2); flex:1 1 100%}
.pp-foot .pp-flag{margin-left:auto}

/* Everyone / My team (shown only to a player on a team or class) */
.lb-scope, .lb-span, .lb-dpick{flex:none}
.lb :is(.lb-scope, .lb-span, .lb-dpick) .seg-btn:focus-visible{outline:var(--focus-w) solid var(--cell-cursor); outline-offset:calc(-1 * var(--focus-w))}   /* in the clipped group: inset */


/* ---------- the certificate check (#/verify, app/verify-page.js) ---------- */
/* a chapter the certificate does not carry says so in grey at the row's end (B11) */
.verify .verify-not{color:var(--ink-2)}
/* it prints whole: the column's scroller opens to its full height, so chapter 6 never falls under the fold (B11) */
@media print{
  html:has(.verify), html:has(.verify) body{height:auto; overflow:visible}
  body:has(.verify) :is(#navMount, #footMount){display:none}
  .verify :is(.sp, .sp-body, .tpl-col){height:auto; max-height:none; overflow:visible}
  .verify .sp::before, .verify .sp::after{display:none}
}
