/* app2/ui/components.css — the components of the interface standard (screenplay 3.0, revised for R10): the page shell
   (the top bar over a centered column; app pages exactly the window), the top bar, Excel's KeyTips, the Account page's
   tab row, the scroll panel, the showcase placeholder, the moments (the celebration
   pop-out, the loading card) and the cell cursor. Tokens only (ui/tokens.css): no hex value, pixel size or duration
   appears here. Loaded after the older stylesheets, so it wins where they disagree. */

/* ---------- the page shell (R10): the top bar, then the page in a centered column of about 1200px ---------- */
body{padding-top:0; display:flex; flex-direction:column; min-height:100vh; min-height:100svh}
#navMount{flex:none; position:relative; z-index:50}
body > .app{flex:1 0 auto; align-self:stretch; box-sizing:border-box; width:100%; max-width:calc(var(--page-w) + 2 * var(--page-gutter)); margin:0 auto; padding:var(--frame-v) var(--page-gutter)}   /* the page frame (UI-14): the same air over the first row and under the last on every shell */
body > #footMount{flex:none; align-self:stretch}
/* the footer is the page's last thing: no strip of the body's own bottom padding shows under it (app.css keeps it for the
   pages without one) */
body:has(> #footMount > .site-footer){padding-bottom:0}
#footMount[hidden]{display:none}
/* an app page is exactly the window (rule 16): the document never scrolls; a page's long list scrolls in its own panel
   (.sp). Until each page is rebuilt to fit (R10's second phase), the column itself scrolls rather than cut anything */
html[data-shell="app"], html[data-shell="app"] body{height:100%; overflow:hidden}
/* one gutter policy for every shell: no gutter is kept for a scrollbar a page may never show, so the top bar runs to the
   window's edge on every page, and a page that does scroll shows its bar the way every site does */
html{scrollbar-gutter:auto}
/* running text never ends on one word alone; headings already balance. A table cell takes the longhand: the shorthand also
   set text-wrap-mode back to wrap, which beat the sheet's nowrap cells (app.css, a :where() rule of the same weight) and made
   every one of the grid's cells wrap, a far costlier table to lay out on each key (2026-11-13: Ctrl+Shift+Down 38 to 19 ms) */
p, li, dd, figcaption{text-wrap:pretty}
td{text-wrap-style:pretty}
html[data-shell="app"] body{min-height:0}
html[data-shell="app"] body{padding-bottom:0}
html[data-shell="app"] body > .app{flex:1 1 auto; min-height:0; overflow-y:auto; display:flex; flex-direction:column}   /* the column scrolls only while a page has not been rebuilt to fit; its air is the frame's (line 10) */
html[data-shell="app"] #root{flex:1 0 auto; display:flex; flex-direction:column; min-height:0}
/* a page's root keeps the column's width (an older page centers itself with auto margins, which would shrink it in a flex column) */
html[data-shell="app"] #root > *{width:100%; box-sizing:border-box}
/* a page rebuilt to fit takes the whole column and lays itself out inside it */
/* the frame's air (--frame-v) is the shell's own padding, so a page that fits adds none of its own (UI-14) */
.page-fit{flex:1 1 auto; min-height:0; display:flex; flex-direction:column; gap:var(--s5)}
/* the workspace: no top bar; the sheet gets the window (its own rules are workspace.css's) */
html[data-shell="workspace"] #navMount{display:none}
/* The one page change (UI-86, ui/route-fade.js): the fade through, on the theme's own ground. The old page fades out over
   --d-route-out; the new one fades in over --d-route-in from --d-route-lap, so the old is all but gone when the new starts.
   The site's bar is its own layer and never fades: the new page's bar shows at once. Reduced motion and Effects Off never start it */
html.route-fade #navMount{view-transition-name:site-bar}
html.route-fade::view-transition{background:var(--paper)}
html.route-fade::view-transition{pointer-events:none}   /* a click during the fade reaches the new page, never the overlay */
/* leaving full screen for a page (ui/fs-hold.js): the plain ground over the window while it gives back its size, then off over
   --d-route-in, so the page is seen once, at its final size */
.fs-hold{position:fixed; inset:0; z-index:95; background:var(--paper); pointer-events:none; opacity:1; transition:opacity var(--d-route-in) var(--ease-out)}
.fs-hold.is-off{opacity:0}
html.route-fade::view-transition-group(root){animation-duration:calc(var(--d-route-lap) + var(--d-route-in))}
html.route-fade::view-transition-image-pair(root){isolation:auto}
html.route-fade::view-transition-old(root){animation:route-out var(--d-route-out) linear both; mix-blend-mode:normal}
html.route-fade::view-transition-new(root){animation:route-in var(--d-route-in) var(--ease-out) var(--d-route-lap) both; mix-blend-mode:normal}
html.route-fade::view-transition-group(site-bar){animation:none}
html.route-fade::view-transition-old(site-bar){display:none}
html.route-fade::view-transition-new(site-bar){animation:none; mix-blend-mode:normal}
/* Start (round 5, M4, UI-92): the lesson comes in as one layer over the whole window while the landing, its bar and its
   footer stay solid under it, so no frame shows a bar and a footer with nothing between them (ui/route-fade.js fadeKind) */
html.route-fade:is(.route-start, .route-hold) #navMount{view-transition-name:none}
html.route-fade.route-hold::view-transition-group(root){animation:none}
html.route-fade.route-hold::view-transition-old(root), html.route-fade.route-hold::view-transition-new(root){animation:none}
html.route-fade.route-start::view-transition-group(root){animation-duration:calc(var(--d-acct-rise-gap) + var(--d-route-in))}
html.route-fade.route-start::view-transition-old(root){animation:none; opacity:1}
html.route-fade.route-start::view-transition-new(root){animation:route-in var(--d-route-in) var(--ease-out) var(--d-acct-rise-gap) both}
@keyframes route-out{to{opacity:0}}
@keyframes route-in{from{opacity:0}}
/* the workspace is the window, like Excel: the page itself never scrolls (the sheet scrolls inside its own frame) */
html[data-shell="workspace"], html[data-shell="workspace"] body{overflow:hidden}
html[data-shell="workspace"] body{padding-bottom:0}

/* ---------- the top bar ---------- */
.tb{background:var(--sheet); border-bottom:1px solid var(--line); font-family:var(--font)}
.tb-in{display:flex; align-items:center; gap:var(--tb-gap); height:var(--top-h); box-sizing:border-box; max-width:calc(var(--page-w) + 2 * var(--page-gutter)); margin:0 auto; padding:0 var(--page-gutter)}
/* the bar's own links and icon buttons start bare; a button from the design system (Sign in, Get Full Access) keeps its look */
.tb :where(a, button):not(.ui-btn){font:inherit; color:inherit; text-decoration:none}
.tb :where(button):not(.ui-btn){background:none; border:0; padding:0; cursor:pointer}
.tb .tb-mark{display:inline-flex; align-items:center; font-size:var(--fs-head); color:var(--ink); border-radius:var(--r-btn); white-space:nowrap}
.tb-tabs{display:flex; gap:var(--s1)}
.tb .tb-tab{display:flex; align-items:center; height:var(--ctl-h); padding:0 var(--tb-tab-pad); border-radius:var(--r-btn); font-weight:var(--fw-bold); font-size:var(--tb-fs-tab); line-height:1; color:var(--ink-2); white-space:nowrap; position:relative; transition:background var(--d-menu), color var(--d-menu), transform var(--d-release) var(--ease-out)}
@media (hover:hover){ .tb .tb-tab:hover{background:var(--chrome); color:var(--ink)} }
/* a tab presses as a button does (UI-52, Wolf 2026-11-06 "yes"): down --press-y and to --press-scale over --d-press, back over --d-release */
.tb .tb-tab:is(:active, .is-pressed){transform:translateY(var(--press-y)) scale(var(--press-scale)); transition-duration:var(--d-menu), var(--d-menu), var(--d-press)}
html[data-effects="off"] .tb .tb-tab{transition:none}
html[data-effects="off"] .tb .tb-tab:is(:active, .is-pressed){transform:none}
.tb .tb-tab.on{background:var(--ink); color:var(--sheet)}
/* the one visible door to the keys: the Alt keycap and a quiet label (Wolf, 2026-10-15: "it's so not obvious you can do that"),
   its one-line tip on hover and focus; clicking it shows the KeyTips, as pressing Alt does. Narrow bars keep the cap and the tip */
/* the Alt tip (Wolf chose option B, 2026-10-15: "B for alt shortcuts"). Docked to the tab row at the tabs' own gap, one hover ground for
   the whole control (as a tab's), its words at the tabs' size in the quieter weight, and the cap in the brand's tint, the one coloured
   thing in the row, so the eye finds it (learn-ink on learn-tint: CARD_PAIRS, 4.5 to 1 in every theme). A held Alt keeps its pressed look. */
.tb .tb-alt{position:relative; display:flex; align-items:center; gap:var(--s2); height:var(--ctl-h); margin-left:calc(var(--tb-alt-gap) - var(--tb-gap)); padding:0 var(--tb-alt-pad) 0 var(--s2); border-radius:var(--r-btn); transition:background var(--d-menu)}
.tb .tb-alt:hover{background:var(--chrome)}
.tb-alt-w{font-size:var(--tb-fs-tab); font-weight:var(--tb-alt-fw); color:var(--ink-2); white-space:nowrap}
.tb-alt:hover .tb-alt-w{color:var(--ink)}
.tb .tb-alt::after{content:attr(data-tip); position:absolute; top:calc(100% + var(--s1)); left:0; z-index:60; padding:var(--s1) var(--s3); border-radius:var(--r-btn); background:var(--rail); color:var(--rail-text); font-size:var(--fs-small); font-weight:var(--fw-semi); white-space:nowrap; opacity:0; pointer-events:none; transition:opacity var(--d-menu)}
.tb .tb-alt:hover::after, .tb .tb-alt:focus-visible::after{opacity:1}
body.keytips-on .tb .tb-alt::after{opacity:0}
@media (max-width:1180px){ .tb-alt-w{display:none} }
.tb .tb-alt[hidden]{display:none}
/* the tip on the frame's right-hand column line (UI-14; Wolf 2026-10-16 16:40, "move the alt shortcuts tip to be aligned left
   with the content we have on the right column of the site across pages"): its left edge is where Home's, Learn's, Practice's,
   Contact's and For teams' side cards start, on every page; a window too narrow for the tabs, the tip and the tools side by
   side keeps it docked after the tabs */
@media (min-width:1100px){ .tb .tb-alt{position:absolute; left:calc(100% - var(--page-gutter) - var(--frame-side-w) - var(--s2)); top:calc((var(--top-h) - var(--ctl-h)) / 2); margin-left:0}   /* the cap on the line; its hover ground reaches back by its own padding */ }
.tb-alt .ui-cap{--cap-face:var(--alt-cap-face); --cap-ink:var(--alt-cap-ink); --cap-rim:var(--alt-cap-rim); transition:background var(--d-menu)}   /* the kit's lg cap (components/topbar.js) in Learn's tint */
/* the nudge is a small card under the bar, never in the row: in the row it sat on the Alt key and squeezed the tabs (Wolf
   2026-10-17 06:42, "pops up and covers menu items"). It hangs at the right, clear of the tabs and of Learn's chapter row. */
.tb-nudge{position:absolute; right:var(--page-gutter); top:calc(100% + var(--s1)); z-index:60; display:flex; align-items:center; gap:var(--s1); margin:0; padding:var(--s1) var(--s3); background:var(--sheet); border:1px solid var(--line); border-radius:var(--r-btn); box-shadow:var(--lift); font-size:var(--fs-small); font-weight:var(--fw-bold); color:var(--ink-2); white-space:nowrap; pointer-events:none; animation:kt-fade var(--d-beat) ease-out both}
.tb-nudge[hidden]{display:none}
.tb-right{margin-left:auto; flex:none; display:flex; align-items:center; gap:var(--s2); white-space:nowrap}   /* measured 2026-10-15: at --s3 the signed-in bar ran 4px past the content's edge at 1440 and 1536 */
.tb-save{font-size:var(--tb-fs-tool); font-weight:var(--tb-fw-tool); color:var(--ink-2)}
.tb-save:empty{display:none}
/* Get Full Access: the bar's one gold element, a dark gold edge on the clock tint (one gold element a screen) */
/* one height for every control in the top bar (Wolf, 2026-10-15 03:59: "the sizing of the site header now feels off"): the
   menu kit's row (UI-31, --menu-row-h) with a button's corners for Full Access, the player's chip, the guest's Save
   progress and gear, Sign in, Try for free and the day and night switch; the page tabs keep their own height */
.tb .tb-full.ui-btn, .tb .tb-signin.ui-btn, .tb .tb-try.ui-btn{height:var(--menu-row-h); min-height:0; border-radius:var(--r-btn)}
.tb .tb-full.ui-btn{font-size:var(--tb-fs-tool); font-weight:var(--tb-fw-tool)}
/* the Daily Race button (UI-40): unplayed on an account, the bar's one filled button in the Daily's colour with its words (its dot
   waits for a phone); played, or a guest's, a quiet tool at the bar's height, its words grey like the other tools, its dot or tick
   in the Daily's colour */
.tb .tb-daily.ui-btn{height:var(--menu-row-h); min-height:0; border-radius:var(--r-btn); font-size:var(--tb-fs-tool); font-weight:var(--tb-fw-tool)}
.tb-daily-play{width:var(--mk-xs); height:var(--mk-xs)}   /* the filled button's play triangle: the cue that it is played (his words 2026-10-30 14:30, UI-44) */
.tb .tb-daily.ui-btn-quiet{color:var(--ink-2)}
.tb .tb-daily.ui-btn-quiet:hover{color:var(--ink)}
.tb-daily-tick{width:var(--mk-sm); height:var(--mk-sm); color:var(--daily-line)}   /* played today, the tick in the Daily's colour */
.tb-in:has(.tb-daily) .tb-alt-w{display:none}   /* the quiet Alt word goes first when the Daily button needs the room (the streak's rule, above) */
/* then, where Get Full Access sits beside the Daily (a free account), the streak line goes (Home's You block keeps it); the
   level's long words (L3) and the Daily's full words (Play the Daily Race to Daily Race, still filled) fall only where the bar
   would run past the Alt cap or the page's edge: the bar measures (components/topbar.js fitBar) and sets these classes */
.tb .tb-daily-time{font-variant-numeric:tabular-nums; color:var(--ink-2)}   /* played: today's time beside the tick (UI-40) */
.tb-in.tb-fit-daily .tb-daily .ui-btn-long{display:none}
.tb-in.tb-fit-daily .tb-daily .ui-btn-short{display:inline}
.tb-in.tb-fit-lv .lv-words .lv-long{display:none}
.tb-in.tb-fit-lv .lv-words .lv-abbr{display:inline}
/* the bar ends where the page ends (Wolf, 2026-10-15 04:55): the tabs and tools never run past the content's right edge; when they would, the quiet words go first */
.tb-in{container-type:inline-size}
.tb-in > *{min-width:0}
.tb-in > :is(.tb-mark, .tb-tabs, .tb-alt){flex:none}   /* the tabs never shrink under the Alt cap (a 683 or 800 wide window, QA C14): the bar's fit steps make the room (topbar.js fitBar) */
.tb-in.tb-fit-alt .tb-alt{display:none}
@container (max-width:1px){ .tb-save{display:none} }
@container (max-width:2px){ .tb-alt-w{display:none} }
/* Settings for a guest: a quiet pixel gear the height of the bar's controls; filled ink on the Settings page, as a lit tab */
.tb .tb-gear{display:grid; place-items:center; width:var(--menu-row-h); height:var(--menu-row-h); border-radius:var(--r-btn); color:var(--ink-2); transition:background var(--d-menu), color var(--d-menu)}
.tb .tb-gear:hover{background:var(--chrome); color:var(--ink)}
.tb .tb-gear.on{background:var(--ink); color:var(--sheet)}
.tb-gear-svg{display:block; width:var(--tb-gear-ico); height:var(--tb-gear-ico)}
/* the account chip (the identity design): one pill, the level chip then the tile, which opens the account menu; a guest's
   is one pill too, Sign in beside the dashed guest tile. No frame round the avatar (Wolf, 2026-10-10): hover, the Account
   page and the open menu are the control's ground, never a ring */
/* the pill's ground reaches to the tile's right edge, so the tile ends where the page's content ends (rule 5; measured 2026-10-15: 7.5px past it at 1440) */
.tb .tb-me{position:relative; flex:none; display:inline-flex; align-items:center; gap:var(--s2); min-width:var(--me-size); height:var(--me-size); padding:0 0 0 var(--s2); box-sizing:border-box; border-radius:var(--r-btn); transition:background var(--d-menu)}
.tb .tb-me:hover, .tb .tb-me.tb-me-here, .tb .tb-me.tb-me-open{background:var(--chrome)}
.tb .tb-me.tb-me-land{animation:tb-land var(--d-claim-land) ease-out}
@keyframes tb-land{from{background:var(--learn-tint)}}
.lv-words{display:inline-flex; align-items:center; height:var(--chip-h); padding:0 var(--chip-px); box-sizing:border-box; border:1px solid var(--edge); border-radius:var(--chip-r); background:var(--sheet); font-family:var(--font); font-size:var(--chip-fs); font-weight:var(--fw-bold); line-height:1; color:var(--ink); white-space:nowrap; font-variant-numeric:tabular-nums}
.tb-me .lv-words{height:auto; padding:0; border:0; background:none; font-size:var(--tb-fs-tool); font-weight:var(--tb-fw-tool); color:var(--ink-2)}
@media (max-width:1439px){ .tb-in:has(.tb-streak:not([hidden])) .tb-alt-w{display:none} }   /* the quiet Alt word goes first when the streak needs the room (measured at 1366 for a guest) */
.tb .tb-streak{display:inline-flex; align-items:center; gap:var(--s1); flex:none; font-size:var(--tb-fs-tool); font-weight:var(--tb-fw-tool); color:var(--ink-2); white-space:nowrap}   /* the flame and the count (AT-31); the words on hover */
.tb .tb-streak[hidden]{display:none}
.tb .tb-streak-n{font-variant-numeric:tabular-nums}
.tb .tb-streak.tb-streak-lit .tb-streak-flame{color:var(--daily); animation:tb-flicker var(--d-streak-lit) ease-in-out}   /* lit once, the moment the streak grows */
/* ---- the layout sprint's bar (UI-87, UI-84) ---- */
/* the logo (UI-96; components/logo.js): logo D's cell as it is, then the whole word one 8 px step after it, in the theme's
   colours. The bar's type is 19.8 px on a laptop, 22 at 1920 and on a phone and 24 at 2560 (tokens.css --k), and each gets the
   brand's whole pixel cut for it (--logo-a-sm, -md, -lg), so the cell's lines land on whole pixels; the media queries are
   tokens.css's own --k steps. A smaller type (the certificate's head) takes one cut grown with the type */
.wordmark{display:inline-flex; align-items:center; gap:var(--s2); font-family:var(--mono); font-weight:var(--fw-bold); line-height:1; white-space:nowrap}
.wordmark b{color:var(--learn); font-weight:var(--fw-bold)}
.wordmark-cell{display:block; flex:none}
.logo-edge{fill:var(--learn)}
.logo-face{fill:var(--sheet)}
.logo-h{fill:var(--ink)}
.logo-cut-sm{display:none; width:var(--logo-a-sm); height:var(--logo-a-sm)}
.logo-cut-md{width:var(--logo-a-md); height:var(--logo-a-md)}
.logo-cut-lg{display:none; width:var(--logo-a-lg); height:var(--logo-a-lg)}
@media (min-width:1100px) and (max-width:1700px) and (max-height:1000px){ .logo-cut-sm{display:block} .logo-cut-md{display:none} }
@media (min-width:2400px) and (min-height:1150px){ .logo-cut-lg{display:block} .logo-cut-md{display:none} }
.wordmark-small{gap:calc(var(--s3) / 2 * var(--k))}
.wordmark-small .logo-cut{width:calc(var(--s5) * var(--k)); height:calc(var(--s5) * var(--k))}
/* a tab's flat mark, in its word's own colour */
.tb .tb-tab{gap:var(--tpl-in)}
.tb-tab-i.art-flat{width:var(--tpl-tab-mark); height:var(--tpl-tab-mark)}
.tb-in.tb-fit-ico .tb-tab-i{display:none}
/* the one search box: one bar gap after Club, one width in every state; the bare Alt cap follows it */
.tb-q{display:inline-flex; flex:none; width:var(--tb-search-w)}
.tb-q .ui-field-box{width:100%}
.tb-q .ui-field-in{height:var(--menu-row-h); min-height:0; font-size:var(--tb-fs-tool)}
.tb .tb-q + .tb-alt{position:relative; left:auto; top:auto; margin-left:calc(var(--s2) - var(--tb-gap))}
.tb .tb-q + .tb-alt .tb-alt-w{display:none}
.tb-in > .tb-q{flex:none}
.tb-in.tb-fit-qi .tb-q{width:calc(var(--menu-row-h) + var(--s4))}   /* the squeeze's first step past the words: the box is its magnifier, before the tab marks go */
.tb-in.tb-fit-qi .tb-q .ui-field-in{padding-right:0; color:transparent}
.tb-in.tb-fit-qi .tb-q .ui-field-in::placeholder{color:transparent}
.tb-in.tb-fit-qi .tb-q .ui-field-cap{display:none}
/* the results: the menu kit's floating card at its lg width under the box, the page behind a veil (components/site-search.js) */
.tb-res{width:min(var(--pop-w-lg), calc(100vw - var(--s8))); max-height:calc(100vh - var(--top-h) - var(--s8)); animation:tb-res-in var(--d-menu) var(--ease-out)}
@keyframes tb-res-in{from{transform:translateY(calc(-1 * var(--s1)))}}
html[data-effects="off"] .tb-res{animation:none}
@media (prefers-reduced-motion: reduce){ .tb-res{animation:none} }
.tb-res .mk-popk .mk-chord{justify-content:flex-end; flex-wrap:nowrap; white-space:nowrap}
.tb-res .mk-popk .ui-caps{flex-wrap:nowrap; white-space:nowrap}
.tb-res .mk-popk{padding-block:var(--s1)}
.tb-res .mk-popk .mk-name{line-height:var(--lh-title)}
.tb-opt{display:block; color:inherit; text-decoration:none}
.tb-opt[aria-selected="true"]{background:var(--chrome); box-shadow:inset var(--focus-w) 0 0 var(--cell-cursor)}   /* the menu kit's keyboard row */
@media (hover:hover){ .tb-opt:hover{background:var(--chrome)} }
.tb-res-n{color:var(--ink-2); font-variant-numeric:tabular-nums}
.tb-res-none{box-sizing:border-box; display:flex; align-items:center; margin:0; min-height:var(--menu-row-h); padding-inline:var(--menu-pad); color:var(--ink-2)}
.tb-res .mk-foot{display:flex; gap:var(--tpl-group); text-align:left}
.tb-res .mk-link{color:var(--learn-ink)}
.tb-veil{position:fixed; inset:var(--top-h) 0 0 0; z-index:59; background:var(--veil-find)}
@media (max-width:760px){ .tb-q{width:calc(var(--menu-row-h) + var(--s4))} .tb-q .ui-field-in{padding-right:0; color:transparent} .tb-q .ui-field-in::placeholder{color:transparent} .tb-q .ui-field-cap{display:none} }
@keyframes tb-flicker{0%{transform:scale(1)} 20%{transform:scale(1.35) rotate(-7deg)} 45%{transform:scale(1.15) rotate(6deg)} 70%{transform:scale(1.3) rotate(-3deg)} 100%{transform:scale(1)}}
.lv-words .lv-abbr{display:none}
@media (max-width:1439px){ .lv-words .lv-long{display:none} .lv-words .lv-abbr{display:inline} }
/* the one line after the claim card's Done: under the bar at the right, quiet, gone by itself */
.tb-in{position:relative}
.tb-landed{position:absolute; right:var(--page-gutter); top:calc(100% + var(--s2)); z-index:60; margin:0; padding:var(--s2) var(--s3); background:var(--sheet); border:1px solid var(--line); border-radius:var(--r-btn); box-shadow:var(--lift); font-size:var(--fs-small); font-weight:var(--fw-semi); color:var(--ink); white-space:nowrap; animation:kt-fade var(--d-card) ease-out both}
.tb-landed[hidden]{display:none}
.pi{display:grid; place-items:center; line-height:0}
.pi svg{display:block; image-rendering:pixelated}
/* the bought pixel art (ui/art.js): a box of --art (grown to the image when a zoom draws it a little larger), the image at --art-px (a whole number of device pixels per
   art pixel, fitted to the zoom) and centered in it, never smoothed; a locked badge is the art's own outline in one gray */
.art{display:inline-grid; place-items:center; flex:none; width:max(var(--art), var(--art-px)); height:max(var(--art), var(--art-px)); line-height:0; vertical-align:middle}
.art img{position:relative; top:var(--art-dy, 0px); display:block; width:var(--art-px); height:var(--art-px); max-width:none; image-rendering:pixelated; -webkit-user-drag:none}
.pi .art img{image-rendering:pixelated}
/* a Fluency icon (ui/art.js iconHtml): a vector at its box's size, the thin edge on light themes, gray while locked */
.art-fl{position:relative}
.art-fl img{image-rendering:auto; filter:var(--art-edge)}
.art-fl.art-locked img{filter:var(--art-locked)}
.art-fl[data-art="fluency/full-access"] img{transform:rotate(var(--gem-turn))}
/* the state marks (components/state-mark.js, AT-26): one drawing for done, now, to do, locked and the challenge on every
   page. Its colour is --mk (a page or a caller sets it; Learn's green by default, so a chapter that sets --learn colours it),
   the done tick --mk-on (that colour's own label: white on a deep fill, the ink on Daily's tangerine and Arcade's teal), the
   now halo --mk-tint, a ring's inside --mk-bg (none, or the sheet where a line runs behind the mark) */
.mk{display:inline-block; flex:none; width:var(--mk-sm); height:var(--mk-sm); vertical-align:middle; overflow:visible; color:var(--mk, var(--learn))}
.mk-md{width:var(--mk-md); height:var(--mk-md)}
.mk-lg{width:var(--mk-lg); height:var(--mk-lg)}
.mk .mk-f{fill:currentColor}
.mk .mk-t{fill:none; stroke:var(--mk-on, var(--learn-on)); stroke-width:var(--mk-stroke); stroke-linecap:round; stroke-linejoin:round}
.mk .mk-r{fill:var(--mk-bg, none); stroke:currentColor; stroke-width:var(--mk-ring)}
.mk-todo .mk-r{stroke:var(--mk-todo, var(--edge))}
.mk .mk-h{fill:var(--mk-tint, var(--learn-tint))}
.mk-locked{color:var(--mk-lock, var(--ink-2))}
.mk .mk-sh{fill:none; stroke:currentColor; stroke-width:var(--mk-shackle); stroke-linecap:round}
.mk-challenge, .mk-challenge-done{color:var(--mk-ch, var(--challenges))}
.mk .mk-d{fill:var(--mk-bg, none); stroke:currentColor; stroke-width:var(--mk-ring); stroke-linejoin:round}
.mk-challenge-done .mk-d{fill:currentColor}
/* the tick alone (a Verified tab, a done chip, a ticked line) and the accordion's chevron: the current colour, the set's strokes */
.mk-tick{display:inline-block; flex:none; width:var(--mk-sm); height:var(--mk-sm); vertical-align:middle; overflow:visible}
.mk-tick path{fill:none; stroke:currentColor; stroke-width:var(--mk-stroke); stroke-linecap:round; stroke-linejoin:round}
.mk-cell{display:inline-block; flex:none; width:var(--mk-sm); height:var(--mk-sm); vertical-align:middle; overflow:visible}
.mk-cell path{fill:none; stroke:currentColor; stroke-width:var(--mk-stroke); stroke-linejoin:round}
.mk-cross{display:inline-block; flex:none; width:var(--mk-sm); height:var(--mk-sm); vertical-align:middle; overflow:visible}
.mk-cross path{fill:none; stroke:currentColor; stroke-width:var(--mk-stroke); stroke-linecap:round}
.mk-play{display:inline-block; flex:none; width:var(--mk-sm); height:var(--mk-sm); vertical-align:middle; overflow:visible}
.mk-play path, .mk-flame path{fill:none; stroke:currentColor; stroke-width:var(--mk-shackle); stroke-linejoin:round}   /* the line family (UI-85 (1)): only the done tick is filled */
.mk-flame{display:inline-block; flex:none; width:var(--mk-sm); height:var(--mk-sm); vertical-align:middle; overflow:visible; transform-origin:50% 90%}
.mk-chev{display:block; flex:none; width:var(--mk-chev-w); height:var(--mk-chev-h); overflow:visible}
.mk-chev path{fill:none; stroke:currentColor; stroke-width:var(--mk-chev-stroke); stroke-linecap:round; stroke-linejoin:round}
/* the certificate's seal (profile-marks.js certSeal): eight scallops round one check, an outline in ink-2 until it is issued,
   then the site's blue, filled, with a white check */
.cert-seal{display:block; flex:none; width:var(--cert-seal); height:var(--cert-seal); color:var(--ink-2)}
.cert-seal .ro{fill:var(--sheet); stroke:currentColor; stroke-width:1.5; stroke-linejoin:round}
.cert-seal .tk{fill:none; stroke:currentColor; stroke-width:2.6; stroke-linecap:round; stroke-linejoin:round; opacity:.55}
.cert-seal.is-on{color:var(--team-blue)}
.cert-seal.is-on .ro{fill:var(--team-blue); stroke:var(--team-blue-ink)}
.cert-seal.is-on .tk{stroke:var(--team-blue-on); opacity:1}
.art-n{position:absolute; right:0; bottom:0; display:grid; place-items:center; width:calc(var(--art) * var(--art-chip)); height:calc(var(--art) * var(--art-chip)); border-radius:50%; background:var(--art-chip-bg); color:var(--art-chip-ink); box-shadow:0 0 0 1px var(--art-chip-edge); font:normal var(--fw-bold) calc(var(--art) * var(--art-chip-k))/1 var(--font)}
.art-locked .art-n{opacity:.6}
/* the landing's bar: quiet links and Sign in */
.tb .tb-link{display:inline-flex; align-items:center; height:var(--ctl-h-sm); padding:0 var(--s3); border-radius:var(--r-btn); font-weight:var(--fw-bold); color:var(--ink)}
.tb .tb-link:hover{background:var(--chrome)}
.tb .tb-link.on{background:var(--ink); color:var(--sheet)}
/* narrow windows (761 to 1099px): the bar keeps its tabs and the one-word Upgrade */
@media (max-width:1099px){ .tb-in{gap:var(--s3)} .tb .tb-tab{padding:0 var(--s2)} .tb-save{display:none} }
/* a phone (the phone rule, app/shell.js; gap NEW-phone-topbar): the pages a phone opens keep the tabs. The first line is the wordmark,
   the Daily Race as its dot alone and the account chip (or a guest's gear and Save progress); the tabs are a second line inside the
   bar, edge to edge, that scrolls sideways inside itself when they run past (never the page). The Alt cap, the nudge, the streak,
   the save state and Get Full Access wait for a keyboard's window */
@media (max-width:760px), (any-hover:none) and (any-pointer:coarse){
  .tb .tb-alt, .tb-nudge, .tb .tb-full, .tb .tb-streak, .tb-save{display:none}
  .tb-in{flex-wrap:wrap; height:auto; min-height:var(--top-h); column-gap:var(--s2); row-gap:0; padding-top:calc((var(--top-h) - var(--ctl-h)) / 2)}
  .tb-in > .tb-tabs{order:9; flex:0 0 auto; width:calc(100% + 2 * var(--page-gutter)); box-sizing:border-box; margin:var(--s1) calc(-1 * var(--page-gutter)) 0; padding:0 var(--page-gutter) var(--s2); overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:none}
  .tb-in > .tb-tabs::-webkit-scrollbar{display:none}
  .tb .tb-tab{padding:0 var(--s2)}
  .tb .tb-daily.ui-btn{justify-content:center; width:var(--menu-row-h); padding:0; background:transparent; border-color:transparent; color:var(--ink-2)}
  .tb .tb-in .tb-daily.ui-btn > span:not(.ui-btn-icon){display:none}
  .tb .tb-daily.ui-btn > .ui-btn-icon{display:inline-grid}
  .tb-right{gap:var(--s1)}
  .tb .tb-guest .ui-btn-icon{display:none}   /* a guest's Level 1 gives way to Sign in, the door it is for */
}

/* a touch-only device (tokens.css, the touch block: 44px, --menu-set-h; UI-81): the controls sized by their words get the thumb's height; a link inside a
   sentence keeps its line (WCAG's inline exception) */
@media (any-hover:none) and (any-pointer:coarse){
  .ui-btn-link:not(p .ui-btn-link), .tpl-all, .footer-group a, .tb-mark, .tpl-crumbs a, .ms-sort, .ac-switch, .ac-lock, .ui-board-who .lb-nm{display:inline-flex; align-items:center; min-height:var(--menu-set-h)}
  .mk-box, .mk-field{--field-h:var(--menu-set-h)}
  button.ui-chip, a.tpl-row, .seg-btn, .dr-check, .tr-check, .mk-pick{min-height:var(--menu-set-h)}   /* a checkbox's label is its target */
  .footer-group{row-gap:0}
  /* a phone shows only what a phone can do (UI-6): no key to press, so a button keeps its label and drops its keycap (a key-only
     button keeps its cap, its label) */
  :is(.ui-btn, .btn2, .go):not(.ui-btn-keyonly) > .ui-cap{display:none}
  /* the bar on a phone keeps the wordmark, Club once signed in and the account (UI-6): Drills, Course, Compete, the search and the
     Daily open the showcase there, and a guest's gear opens keyboard settings */
  .tb .tb-tab:not([data-page="club"]), .tb .tb-q, .tb .tb-daily, .tb .tb-gear, .tb:not([data-user]) .tb-tabs{display:none}
  .ac-sec:is([data-group="keyboard"], [data-group="lessons"], [data-group="practice"]){display:none}   /* Account settings: the keyboard's, the lessons' and the drills' settings wait for a computer */
  .seg, .mk-box .seg, .ps .seg{height:auto}   /* the buttons set its height */
}

/* ---------- KeyTips (R10): Excel's small dark squares over every control while Alt is on, and the hint beside a control ---------- */
.kt-layer{position:fixed; inset:0; z-index:80; pointer-events:none}
.kt-tip{position:fixed; min-width:var(--kt-size); height:var(--kt-size); padding:0 var(--s1); box-sizing:border-box; display:flex; align-items:center; justify-content:center; border-radius:var(--kt-r); background:var(--keytip); color:var(--on-keytip); font-family:'Key Legend',var(--mono); font-weight:var(--fw-bold); font-size:var(--fs-key); line-height:1; box-shadow:0 0 0 var(--kt-ring) var(--sheet), var(--kt-shadow); animation:kt-in var(--d-hint) ease-out both}
.kt-hint{position:fixed; display:flex; align-items:center; gap:var(--s1); animation:kt-fade var(--d-hint) ease-out both}
.kt-hint .ui-cap{--cap-shadow:var(--hint-shadow)}
/* the Alt cue (HM-33; ui/components/alt-cue.js): one line in a small pop-out at the upper middle, over the page and beside the letters */
.alt-cue{position:fixed; z-index:81; display:flex; align-items:center; gap:var(--s3); max-width:calc(100vw - var(--s8)); box-sizing:border-box; padding:var(--s2) var(--s4); background:var(--sheet); color:var(--ink); border:var(--bw-2) solid var(--learn); border-radius:var(--r-plate); box-shadow:var(--lift); font-family:var(--font); animation:kt-fade var(--d-pop-in) ease both}
.alt-cue-line{margin:0; font-size:var(--fs-body); font-weight:var(--fw-bold); line-height:1.3}
.alt-cue-esc{display:flex; align-items:center; gap:var(--s1); font-size:var(--fs-small); color:var(--ink-2); white-space:nowrap}
@media (max-width:760px), (any-hover:none) and (any-pointer:coarse){ .alt-cue{display:none} }
.kt-pressed{transform:translateY(var(--bw-2))}
@keyframes kt-in{from{transform:scale(.8); opacity:0}}
@keyframes kt-fade{from{opacity:0}}

/* ---------- the Account page's tab row (pages-spec 2.3): the top bar has no menu ---------- */
.acct-tabs-wrap{flex:none; margin-bottom:var(--s5)}
.acct-tabs{align-items:center; margin-top:0; font-family:var(--font)}   /* the one tab (.lt-row, .lt); its row on the frame line (UI-14) */
.acct-tabs .lt:first-child{padding-left:0}   /* the first tab's words start on the card's left edge, so the tab row and the card line up (Wolf 2026-10-26); no negative margin, so the tab stays inside its row (layout audit C7) */
/* the tab row to the tab's cards: the room it had while each page added its own air (--fit-v) over its cards (UI-14 moved that air to the frame) */
#root > .acct-tabs-wrap{margin-bottom:calc(var(--hub-gap) + var(--fit-v))}
/* ---------- the footer (ui/footer.js; UI-14, UI-30 firm, Wolf 2026-10-28: the grey line on every page, the white band goes):
   one footer wherever a footer shows (the landing, Home, the reading pages and the Account page), closing the frame at the
   window's foot: a short page leaves its room above it. No band: the page's own ground, the links in one row with one even
   gap (Wolf, 2026-10-26 23:36: "the spacing on the links on the footer look off"), the small print under them at the
   smallest size. Its root runs the window's width and its column (.footer-in) is the page's (the landing's is its block's,
   front.css) ---------- */
.site-footer{box-sizing:border-box; margin:0; font-family:var(--font); background:transparent}
.footer-in{box-sizing:border-box; max-width:calc(var(--page-w) + 2 * var(--page-gutter)); margin:0 auto; padding:var(--footer-pad) var(--page-gutter); display:flex; flex-wrap:wrap; align-items:baseline; gap:var(--s2) var(--s5)}
.footer-links{flex:0 1 auto; max-width:100%; min-width:0; display:flex; flex-wrap:wrap; align-items:center; gap:var(--s1) var(--s5)}   /* the groups wrap on a narrow window, never run off it */
.footer-group{list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:var(--s1) var(--s5)}
.footer-links a, .footer-here{font-size:var(--fs-small); font-weight:var(--fw-bold); color:var(--ink-2); text-decoration:none; white-space:nowrap}
.footer-links a:hover{color:var(--ink); text-decoration:underline}
.footer-here{color:var(--ink); font-weight:var(--fw-heavy)}
.footer-lines{flex:1 1 100%; min-width:0; font-size:var(--fs-min); line-height:var(--lh-body); color:var(--ink-2)}
.footer-line{display:inline; margin:0; color:var(--ink-2); line-height:var(--lh-body); text-wrap:pretty}
.footer-line + .footer-line{margin-left:var(--s2)}
/* a short window (a laptop zoomed in, or a half-height window, QA C14 and UI-55): the footer steps aside to its one row of links, so
   the page keeps its room; the small print stays on every taller window and on the pages the links open */
@media (max-height:600px){ .site-footer .footer-lines{display:none} }

/* ---------- the scroll list (UI-59, UI-65; scroll-panel.js): a long list scrolls inside its own card, never the page. It takes
   what its column leaves, to the frame's foot; nothing trims it to a whole row (the cut row under the fade is the cue). The kit
   draws its edge cue, the same on every OS: a 4px rail with a thumb sized to the share in view, a fade at the foot while more
   is below, a short fade under the sticky head while rows are above. All three only while the list overflows ---------- */
.sp{position:relative; flex:1 1 auto; min-height:0; display:flex; flex-direction:column; --sp-ground:var(--sheet);
  --sp-list-l:0px; --sp-list-w:100%; --sp-rail-x:100%; --sp-head-h:0px; --sp-thumb-f:1; --sp-thumb-p:0}   /* each list's own cue, never one it sits in */
.sp-body{flex:1 1 auto; min-height:0; overflow-y:auto; overscroll-behavior:contain; outline:none; scrollbar-width:none}
.sp-body::-webkit-scrollbar{display:none}
.sp::before, .sp::after{content:''; position:absolute; left:var(--sp-list-l, 0); width:var(--sp-list-w, 100%); pointer-events:none; opacity:0; z-index:2; transition:opacity var(--d-menu)}
.sp::after{bottom:0; height:var(--fade-h); background:linear-gradient(to bottom, transparent, var(--sp-ground))}
.sp::before{top:var(--sp-head-h, 0); height:var(--sp-fade-top); background:linear-gradient(to top, transparent, var(--sp-ground))}
.sp.sp-more::after, .sp.sp-above::before{opacity:1}
.sp-rail{display:none; position:absolute; top:0; bottom:0; left:calc(var(--sp-rail-x, 100%) + var(--sp-rail-gap)); width:var(--sp-rail-w); border-radius:var(--sp-rail-w); background:var(--line); pointer-events:none; z-index:3}
.sp.sp-over > .sp-rail{display:block}
.sp-thumb{position:absolute; left:0; right:0; border-radius:var(--sp-rail-w); background:var(--edge);
  height:max(var(--s6), calc(var(--sp-thumb-f, 1) * 100%)); top:calc(var(--sp-thumb-p, 0) * (100% - max(var(--s6), calc(var(--sp-thumb-f, 1) * 100%))))}
@media (prefers-reduced-motion: reduce){ .sp::before, .sp::after{transition:none} .sp-body{scroll-behavior:auto} }
/* a settings row hands the focus to its control: the ring sits on the switch or the segment, never round the row */
.sp .mk-set.cursor-on{outline:none}
.sp .mk-set.cursor-on::after{content:none}


/* ---------- the showcase (R10's placeholder for phones) ---------- */
.showcase{max-width:calc(var(--side-col) * 2); margin:var(--s8) auto; display:flex; flex-direction:column; gap:var(--s4); font-family:var(--font)}
.showcase .link{font-weight:var(--fw-heavy); color:var(--learn-ink)}

/* ---------- the celebration pop-out (R10; ui/effects.js celebrate()): the screen dims, the card rises, its parts in order ----------
   Lesson complete, chapter complete, a level-up and Getting started complete. Parts marked data-step wait (.cel-wait)
   until their step; any key shows them all. Subtle and reduced motion fade in place (.cel-fade); Off shows the end state (.cel-still) */
/* the one backdrop (components/backdrop.js; Wolf, 2026-10-25: "blur out the sheet or background while showing the result cards
   and menus ... it helps feel like you're out or finished"): everything behind a finish moment blurs and dims; a full modal
   dialog, lighter. The overlays that are already one full-window element take the look here by their own class, so one rule
   holds every backdrop; `html` in front lifts it over each element's own background. The blur is on the one fixed layer,
   never on what is behind it. Small dropdowns, the Ribbon's menus, the account menu and hints get none. */
.ui-backdrop{position:fixed; inset:0; z-index:79; pointer-events:none; opacity:0; transition:opacity var(--d-backdrop) linear}
.ui-backdrop.ui-backdrop-on{opacity:1}
.ui-backdrop.ui-backdrop-cut{transition:none}
/* reduced motion and Effects Off keep a dialog's blur and drop its fade: the scrim is there at once (a finish keeps its fade, UI-86) */
@media (prefers-reduced-motion: reduce){ .ui-backdrop:not([data-backdrop="finish"]){transition:none} }
html[data-effects="off"] .ui-backdrop{transition:none}
/* the one scrim behind a dialog or a pop-out: the lighter dim plus --scrim-blur, set here once and never on a card (Wolf
   2026-11-15 04:42, over round 5's "dim, never blur") */
html :is(.ui-backdrop, .pop, .pop-out, .wl-veil:not(.wl-pass), .lg-sheet-open .lg-veil, .leave-wrap, .wsc-dialog-wrap){background:var(--backdrop-dim-dialog); -webkit-backdrop-filter:blur(var(--scrim-blur)); backdrop-filter:blur(var(--scrim-blur))}
html :is(.ui-backdrop[data-backdrop="finish"], .cel-veil){background:var(--backdrop-dim); -webkit-backdrop-filter:none; backdrop-filter:none}   /* a finish: dimmed, never blurred (UI-86) */
.cel-veil{position:fixed; inset:0; z-index:90; display:grid; place-items:center; padding:var(--s4); background:var(--veil-dim); animation:kt-fade var(--d-pop-in) ease both}
/* the card is the kit's pop-out card (menu-kit.css .ui-popcard: its width from data-size, its air, gap and corner); here only its scroll and motion */
.cel{position:relative; max-height:calc(100% - 2 * var(--s4)); overflow:auto; animation:cel-rise var(--d-pop-in) cubic-bezier(.2,.8,.2,1.1) both}
.cel[data-kind="keep"] .cel-line{font-weight:var(--fw-semi); color:var(--ink)}
/* a friend's time to beat (DY-13, his words 2026-11-05 22:07 "more vibrant ... spurring competition not burying the goal" and
   2026-11-06 "why are you messing with the spacing"): the kit's small card and its counter in the Daily's wash (data-wash,
   menu-kit.css); here only the number's colour and size */
.cel[data-kind="challenge"] .cel-nums small{color:var(--daily-ink)}
.cel[data-kind="challenge"] .cel-num.cel-txt{font-family:var(--mono); font-size:var(--fs-prompt); line-height:1.2; color:var(--daily-ink)}
.cel:focus, .cel:focus-visible{outline:none}
.cel-art{position:relative; display:grid; place-items:center; width:var(--pop-art); height:var(--pop-art); margin:0 auto var(--s2)}   /* over the title, inside the head group */
.cel-art svg{position:relative; z-index:1; display:block; image-rendering:pixelated}
.cel-burst{position:absolute; inset:0; pointer-events:none}
.cel-burst i{position:absolute; left:50%; top:50%; width:var(--burst-w); height:var(--burst-h); margin:calc(var(--burst-h) / -2) 0 0 calc(var(--burst-w) / -2); border-radius:var(--bw-2); background:var(--cel-c, var(--learn)); opacity:0; transform:rotate(var(--r)) translateY(var(--burst-from)); animation:cel-ray var(--d-burst) cubic-bezier(.2,.7,.2,1) both}
.cel-h{margin:0; font-size:var(--fs-title); line-height:1.2; font-weight:var(--fw-heavy); text-wrap:balance}
.cel-line{margin:0; font-size:var(--fs-item); line-height:1.4; font-weight:var(--fw-bold); color:var(--learn-ink); text-wrap:balance}
.cel-sub{margin:var(--s1) 0 0; font-size:var(--fs-body); line-height:var(--lh-body); font-weight:var(--fw-semi); color:var(--ink-2)}
.cel-nums{display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0, 1fr); width:100%; margin-top:var(--s5); padding:var(--s3) 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line)}
.cel-nums > div + div{border-left:1px solid var(--line)}
.cel-nums small, .cel-xp small{display:block; font-size:var(--fs-label); font-weight:var(--fw-bold); color:var(--ink-2)}
.cel-num{display:block; font-size:var(--fs-clock); line-height:1.2; font-weight:var(--fw-heavy); font-variant-numeric:tabular-nums}
.cel-num.cel-time{font-family:var(--mono)}
.cel-num-row{display:flex; justify-content:center; align-items:center; gap:var(--s2)}   /* the streak's flame beside its count (UI-46, AT-31); the count still counts up on its own */
.cel-num-mark{display:inline-flex; color:var(--daily)}
.cel-num-mark .mk-flame{width:var(--fs-clock); height:var(--fs-clock)}
.cel-num.cel-txt{font-size:var(--fs-item); line-height:var(--lh-landing); padding-top:var(--s2)}
.cel-note{margin:var(--s3) 0 0; font-size:var(--fs-small); font-weight:var(--fw-semi); color:var(--ink-2)}
.cel-xp{width:100%; margin-top:var(--s4); text-align:left}
.cel-xp-top{display:flex; align-items:baseline; justify-content:space-between}
.cel-xp-top b{font-size:var(--fs-panel); font-weight:var(--fw-heavy); color:var(--learn-ink); font-variant-numeric:tabular-nums}
.cel-bar{display:block; height:var(--pop-bar); margin-top:var(--s2); border-radius:var(--pop-bar); background:var(--line); overflow:hidden}
.cel-bar i{display:block; height:100%; width:0; background:var(--learn); transition:width var(--d-fill) cubic-bezier(.4,.1,.3,1)}
.cel-lv{margin:var(--s2) 0 0; font-size:var(--fs-small); color:var(--ink-2); font-variant-numeric:tabular-nums}
.cel-lv b{color:var(--ink); font-weight:var(--fw-heavy)}
/* the perfect-bonus moment: a row slides in under the XP, "Perfect lesson" and its "+20 XP", and the first time the line under it */
.cel-bonus{display:grid; grid-template-columns:minmax(0, 1fr) auto; align-items:baseline; gap:0 var(--s3); box-sizing:border-box; width:100%; margin-top:var(--s3); padding:var(--s2) var(--s4); border-radius:var(--r-card); background:var(--learn-tint); color:var(--ink); text-align:left}
.cel-bonus b{font-size:var(--fs-body); font-weight:var(--fw-heavy)}
.cel-bonus-r{font-size:var(--fs-body); font-weight:var(--fw-heavy); color:var(--learn-ink); font-variant-numeric:tabular-nums}
.cel-bonus .cel-first{grid-column:1 / -1; margin:var(--s1) 0 0; font-size:var(--fs-small); line-height:1.35; color:var(--ink)}
.cel .cel-bonus.cel-in{animation:cel-slide var(--d-perfect) cubic-bezier(.2,.8,.2,1) both}
@keyframes cel-slide{from{opacity:0; transform:translateY(calc(-1 * var(--s3)))}}
.cel-badges{display:flex; justify-content:center; gap:var(--s5); width:100%; margin-top:var(--s4)}
.cel-badge{display:flex; flex-direction:column; align-items:center; gap:var(--s1); font-size:var(--fs-label); font-weight:var(--fw-bold); line-height:1.25}
.cel-badge svg{display:block; image-rendering:pixelated}
.cel-row{display:grid; grid-template-columns:auto minmax(0, 1fr) auto; align-items:center; gap:var(--s3); box-sizing:border-box; width:100%; margin-top:var(--s3); padding:var(--s3) var(--s4); border-radius:var(--r-card); background:var(--learn-tint); text-align:left}
.cel-row b{display:block; font-size:var(--fs-body); font-weight:var(--fw-heavy); color:var(--ink)}
.cel-row p{margin:0; font-size:var(--fs-small); line-height:1.35; color:var(--ink)}
.cel-row-r{font-size:var(--fs-body); font-weight:var(--fw-heavy); color:var(--learn-ink)}
/* plain rows (How ranking works, the club welcome): no tinted box; a grey line mark tight at the left, the words across the rest
   of the row, one rhythm between the rows (UI-37, UI-85, layout rules 6 and 7) */
.cel-row.is-plain{grid-template-columns:auto minmax(0, 1fr); align-items:start; padding:0; border-radius:0; background:none}
.cel-row.is-plain p{text-wrap:wrap}
.cel-row-i{display:grid; place-items:center; height:calc(var(--fs-small) * 1.35)}
/* one rhythm (layout rule 7): the card's groups (the head, the line, the numbers, the XP, the rows, the buttons) sit --close-gap
   apart by the card's gap, so no group carries a margin of its own; inside a group its parts keep their small gaps */
.cel > *{margin-top:0; margin-bottom:0}
/* the rhythm (layout rule 7): the words sit the card's --pop-gap apart (the title, its line, the sub), and each new kind of thing (the numbers, the XP, a bonus, a note, the buttons) starts --close-gap under the last */
.cel > :is([data-step="body"], [data-step="nums"], [data-step="xp"], [data-step="bonus"], [data-step="note"], [data-step="btns"]){margin-top:calc(var(--close-gap) - var(--pop-gap))}
.cel-row:first-child{margin-top:0}
.cel [data-step].cel-wait{visibility:hidden}
.cel [data-step].cel-in{animation:cel-part var(--d-badge-pop) cubic-bezier(.2,.7,.2,1) both}
.cel .cel-badge.cel-in{animation:cel-pop var(--d-badge-pop) cubic-bezier(.2,.8,.2,1.2) both}
/* the level-up (Wolf 2026-11-18: "minimal animation"): the picture pops as a badge does, the new title's inset rises and its tag
   pops a beat later; the burst and the proud cell as before; all inside --d-close-level-fill (the finish card's level moment) */
.cel[data-kind="level"] [data-step="head"].cel-in .cel-art > svg{animation:cel-pop var(--d-badge-pop) cubic-bezier(.2,.8,.2,1.2) both}
.cel[data-kind="level"] [data-step="body"].cel-in .title-tag{animation:cel-pop var(--d-badge-pop) cubic-bezier(.2,.8,.2,1.2) calc(var(--d-badge-pop) / 2) both}
.cel-prize{align-items:center; text-align:left}   /* the new title on the learner's nameplate, centred in its quiet inset (the bounty's won card, AT-35) */
.cel-veil.cel-fade .cel, .cel-veil.cel-fade [data-step].cel-in, .cel-veil.cel-fade .cel-badge.cel-in, .cel-veil.cel-fade .cel-bonus.cel-in, .cel-veil.cel-fade [data-step].cel-in :is(.cel-art > svg, .title-tag){animation-name:kt-fade}
.cel-veil.cel-fade .cel-burst, .cel-veil.cel-still .cel-burst{display:none}
.cel-veil.cel-still, .cel-veil.cel-still *, .cel-veil.cel-end *{animation:none; transition:none}
/* the new-best confetti (effects.js confetti): pieces thrown up from the top of the screen and falling, then gone; it takes no click */
.fx-confetti{position:fixed; inset:0; z-index:92; pointer-events:none; overflow:hidden}
.fx-confetti i{position:absolute; left:50%; top:var(--confetti-top, 30vh); width:var(--confetti-w); height:var(--confetti-h); border-radius:var(--bw-2); background:var(--c); opacity:0; animation:fx-confetti var(--d-confetti) cubic-bezier(.25,.6,.35,1) both; animation-delay:calc(var(--late) * var(--d-confetti))}
@keyframes fx-confetti{0%{opacity:1; transform:translate(0, 0) rotate(0)} 30%{opacity:1; transform:translate(calc(var(--k) * var(--confetti-spread) * .7), calc(-1 * var(--up) * var(--confetti-rise))) rotate(calc(var(--rot) * .4))} 100%{opacity:0; transform:translate(calc(var(--k) * var(--confetti-spread)), var(--confetti-fall)) rotate(var(--rot))}}
.fx-confetti-s{--confetti-spread:var(--confetti-spread-s); --confetti-rise:var(--confetti-rise-s); --confetti-fall:var(--confetti-fall-s)}   /* the Daily Race's sizes (DY-12) */
.fx-confetti-l{--confetti-spread:var(--confetti-spread-l); --confetti-rise:var(--confetti-rise-l)}
/* the Daily Race's rain (effects.js confetti from 'top', his pick 2026-11-06): pieces fall from above the screen across its width,
   swaying, under the result card (z 81) and over its backdrop (z 79), so the time stays clear */
.fx-confetti.fx-rain{z-index:80}
.fx-rain i{left:calc(50% + var(--k) * 48%); top:calc(-1 * var(--confetti-h) * 2); opacity:1; animation:fx-rain calc(var(--d-confetti-rain) * (1.3 - var(--up) * .5)) linear both; animation-delay:calc(var(--late) * var(--d-confetti-rain))}
@keyframes fx-rain{0%{transform:translate(0, 0) rotate(0)} 35%{transform:translate(calc(var(--k) * var(--confetti-sway)), calc(var(--confetti-rain) * .35)) rotate(calc(var(--rot) * .35))} 70%{opacity:1; transform:translate(calc(var(--k) * var(--confetti-sway) * -1), calc(var(--confetti-rain) * .7)) rotate(calc(var(--rot) * .7))} 100%{opacity:0; transform:translate(0, var(--confetti-rain)) rotate(var(--rot))}}
@media (prefers-reduced-motion: reduce){ .fx-confetti{display:none} }
@keyframes cel-rise{from{opacity:0; transform:translateY(var(--rise)) scale(.97)}}
@keyframes cel-part{from{opacity:0; transform:translateY(var(--s2))}}
@keyframes cel-pop{0%{opacity:0; transform:scale(.6)} 70%{transform:scale(1.08)}}
@keyframes cel-ray{0%{opacity:0; transform:rotate(var(--r)) translateY(var(--burst-from)) scaleY(.4)} 30%{opacity:1} 100%{opacity:0; transform:rotate(var(--r)) translateY(var(--burst-to)) scaleY(1)}}
@media (max-height:720px){ .cel-art{width:var(--pop-art-sprite); height:var(--pop-art-sprite)} .cel-h{font-size:var(--fs-head)} }   /* a short window: a smaller picture and title, the card's air as at every size (PS-41) */

/* ---------- the loading card (R10; ui/effects.js loadingCard()): before a lesson, a drill, the Daily Race, Rapid-fire ---------- */
.ld-veil{position:fixed; inset:0; z-index:85; display:flex; align-items:center; justify-content:center; padding:var(--s6) var(--s4); background:var(--veil-load); animation:kt-fade var(--d-beat) ease both}
/* the card is the kit's pop-out card at md (menu-kit.css .ui-popcard); here its mode's edge, its lift and motion */
.ld{border:var(--bw-2) solid var(--ld-c, var(--learn)); --pop-shadow:var(--lift); animation:ld-pop var(--d-beat) cubic-bezier(.2,.8,.2,1.2) both}
.ld:focus, .ld:focus-visible{outline:none}
.ld-art{display:block; line-height:0; animation:ld-hop var(--d-load-min) steps(2) 1}
.ld-art svg{display:block; image-rendering:pixelated}
.ld-label{font-size:var(--fs-small); font-weight:var(--fw-heavy); color:var(--ld-i, var(--learn-ink))}
.ld-title{margin:0; font-size:var(--fs-head); line-height:1.2; font-weight:var(--fw-heavy); color:var(--ink)}
.ld-sheet{display:grid; grid-template-columns:repeat(6, 1fr); gap:var(--kb-gap); width:100%; margin-top:var(--s1)}
.ld-sheet i{height:var(--load-cell-h); background:var(--grid); animation:ld-cell var(--d-beat) ease-out both; animation-delay:calc(var(--d-load-min) * var(--i) / 18)}
.ld-keys{display:flex; flex-wrap:wrap; justify-content:center; gap:var(--s1) var(--chord-apart); margin-top:var(--s1)}
.ld-keys:empty{display:none}
.ld-keys .ui-cap{min-width:var(--load-key); animation:ld-tap var(--d-load-min) ease both; animation-delay:calc(var(--d-load-min) * var(--i) / 8)}
.ld-bar{width:100%; height:var(--load-bar); background:var(--grid); overflow:hidden; margin-top:var(--s1)}
.ld-bar i{display:block; height:100%; width:100%; background:var(--ld-c, var(--learn)); animation:ld-fill var(--ld-ms, var(--d-load-min)) cubic-bezier(.4,.1,.3,1) both}
.ld-line{margin:var(--s1) 0 0; font-size:var(--fs-small); color:var(--ink-2)}
.ld-veil.ld-still, .ld-veil.ld-still *{animation:none}
@keyframes ld-pop{from{transform:scale(.94); opacity:0}}
@keyframes ld-hop{50%{transform:translateY(var(--load-hop))}}
@keyframes ld-cell{from{background:var(--grid); transform:scale(.85)} to{background:var(--ld-t, var(--learn-tint)); transform:none}}
@keyframes ld-tap{0%{transform:none} 35%{transform:translateY(var(--bw-3)); background:var(--ld-t, var(--learn-tint))} 100%{transform:none}}
@keyframes ld-fill{from{width:0}}

/* ---------- the cell, the mascot (AT-23; ui/components/cell.js): a flat box with a face, in the theme's own colours ----------
   Eight places only (AT-23, AT-29): it creeps out from behind the loading card, the level pop-out, the achievement banner,
   the 404 card and the sign-in and claim cards (.cell-behind), sits at the left of every empty state's row (the note kit's
   .ui-empty-mark) and in the pocket by the phone's headline (.cell-pocket). Every move
   stays in the card's width and lifts it a few pixels at most; lengths in the drawing are counted in --cell-u */
.cell{display:block; flex:none; overflow:visible; width:var(--cell-sm); height:var(--cell-sm)}
.cell.cell-md{width:var(--cell-md); height:var(--cell-md)}
.cell.cell-lg{width:var(--cell-lg); height:var(--cell-lg)}
.cell.cell-lean{transform:rotate(var(--cell-lean)); transform-origin:50% calc(var(--cell-show) * 100%)}
.cell .cell-box{fill:var(--sheet); stroke:var(--learn)}
.cell .cell-handle{fill:var(--learn); stroke:var(--sheet)}
.cell .cell-k{stroke:var(--ink)}
.cell .cell-g{stroke:var(--learn)}
.cell .cell-i{fill:var(--ink)}
.cell .cell-s{fill:var(--sheet)}
.cell .cell-body{transform-origin:calc(32 * var(--cell-u)) calc(54 * var(--cell-u))}
.cell:is([data-mood="puzzled"], [data-mood="think"]) .cell-body{transform:rotate(-5deg)}
.cell[data-mood="wink"] .cell-body{transform:rotate(6deg)}
/* the blink: the lids close for a frame now and then */
.cell .cell-lids{transform:scaleY(0); transform-origin:calc(32 * var(--cell-u)) calc(24 * var(--cell-u))}
.cell .cell-shut{opacity:0}
.cell.m-blink .cell-lids{animation:cell-blink var(--d-cell-blink) infinite}
.cell.m-blink .cell-shut{animation:cell-shut var(--d-cell-blink) infinite}
/* happy: a hop, and the fill handle pops */
.cell.m-happy .cell-body{animation:cell-hop var(--d-cell-hop) cubic-bezier(.3,1.4,.5,1) infinite}
.cell.m-happy .cell-handle{animation:cell-wag var(--d-cell-hop) ease-in-out infinite; transform-origin:calc(55 * var(--cell-u)) calc(51 * var(--cell-u))}
/* puzzled: a tilt and a look about */
.cell.m-puzzled .cell-body{animation:cell-tilt var(--d-cell-puzzled) ease-in-out infinite}
.cell.m-puzzled .cell-face{animation:cell-look var(--d-cell-puzzled) ease-in-out infinite}
/* watch: the eyes track */
.cell.m-watch .cell-face{animation:cell-track var(--d-cell-watch) ease-in-out infinite}
/* think (the loader): a sway, the eyes scan, three dots pop in one by one then clear, the handle ticks */
.cell.m-think .cell-body{animation:cell-ponder var(--d-cell-think) ease-in-out infinite}
.cell.m-think .cell-face{animation:cell-scan var(--d-cell-think) ease-in-out infinite}
.cell .cell-dots circle{transform-box:fill-box; transform-origin:center}
.cell.m-think .cell-dots circle{animation:cell-dot var(--d-cell-think) ease-out infinite}
.cell.m-think .cell-d2{animation-delay:var(--d-cell-dot)}
.cell.m-think .cell-d3{animation-delay:calc(2 * var(--d-cell-dot))}
.cell.m-think .cell-handle{animation:cell-tick var(--d-cell-think) ease-in-out infinite; transform-origin:calc(55 * var(--cell-u)) calc(51 * var(--cell-u))}
@keyframes cell-blink{0%, 94.5%, 100%{transform:scaleY(0)} 96%, 98%{transform:scaleY(1)}}
@keyframes cell-shut{0%, 94.5%, 100%{opacity:0} 96%, 98%{opacity:1}}
@keyframes cell-hop{0%, 100%{transform:translateY(0) scale(1, 1)} 18%{transform:translateY(0) scale(1.06, .92)} 45%{transform:translateY(calc(-6 * var(--cell-u))) scale(.97, 1.04)} 70%{transform:translateY(0) scale(1.03, .96)}}
@keyframes cell-wag{0%, 100%{transform:scale(1)} 45%{transform:scale(1.3)} 75%{transform:scale(.95)}}
@keyframes cell-tilt{0%, 100%{transform:rotate(0)} 35%, 65%{transform:rotate(-6deg)}}
@keyframes cell-look{0%, 100%{transform:translate(0, 0)} 35%, 65%{transform:translate(calc(-3 * var(--cell-u)), calc(-2 * var(--cell-u)))}}
@keyframes cell-track{0%, 100%{transform:translate(calc(-3 * var(--cell-u)), 0)} 50%{transform:translate(calc(4 * var(--cell-u)), var(--cell-u))}}
@keyframes cell-ponder{0%, 100%{transform:rotate(-5deg) translateY(0)} 28%{transform:rotate(-9deg) translateY(calc(-2 * var(--cell-u)))} 52%{transform:rotate(3deg) translateY(0)} 70%{transform:rotate(-1deg) translateY(calc(-5 * var(--cell-u)))} 84%{transform:rotate(-5deg) translateY(0)}}
@keyframes cell-scan{0%, 12%{transform:translate(calc(-3 * var(--cell-u)), calc(-3 * var(--cell-u)))} 30%, 42%{transform:translate(calc(4 * var(--cell-u)), calc(-3 * var(--cell-u)))} 54%, 62%{transform:translate(var(--cell-u), 0)} 70%, 100%{transform:translate(0, 0)}}
@keyframes cell-dot{0%{opacity:0; transform:scale(0)} 7%{opacity:1; transform:scale(1.5)} 13%{transform:scale(1)} 56%{opacity:1; transform:scale(1)} 66%, 100%{opacity:0; transform:scale(.3)}}
@keyframes cell-tick{0%, 62%, 80%, 100%{transform:scale(1)} 70%{transform:scale(1.35)}}
/* behind a card (cellBehind): a sibling just before the card, under it (the card is lifted to z 1), its centre at --cell-x
   and --cell-show of it over the card's top edge (--cell-y). It rises once from fully behind the card, after the card's own entry */
.cell-behind{position:absolute; z-index:0; display:block; line-height:0; pointer-events:none; left:calc(var(--cell-x) - var(--cell-px) / 2); top:calc(var(--cell-y) + 1px - var(--cell-px) * var(--cell-show)); animation:cell-rise var(--d-cell-rise) cubic-bezier(.2,1.1,.4,1) var(--cell-rise-wait, 0ms) both}
.cell-behind.cell-fixed{position:fixed}   /* behind a card fixed to the window (the achievement banner), one layer under it */
/* the pop shell's scrim round a card with the cell over its top edge (cellBehind marks it .cell-host): the air over and under the
   card is at least the cell's showing share, its lean and a gap, so a card that sits high or scrolls still shows the whole cell at
   every window size (AT-23 grammar: never clipped; Wolf 2026-11-15 04:42) */
:is(.pop, .pop-out).cell-host{padding-block:max(var(--s6), calc(var(--cell-host-px) * (var(--cell-host-show, var(--cell-show)) + var(--cell-lean-rise)) + var(--s2)))}
.cel-veil .cell-behind{--cell-rise-wait:var(--d-pop-in)}
.ld-veil .cell-behind{--cell-rise-wait:var(--d-beat)}
@keyframes cell-rise{0%{opacity:0; transform:translateY(100%)} 1%{opacity:1} 100%{opacity:1; transform:none}}
/* beside a line (the empty leaderboard): the cell, then the words */
/* in the pocket beside the phone's headline: at the column's right edge, a little over the headline's top, taking no room from
   its words; a phone too narrow to leave that pocket beside the first line shows no cell rather than cover a word */
.cell-pocket{position:absolute; right:0; top:calc(-1 * var(--cell-pocket-up)); line-height:0; pointer-events:none}
@media (max-width:374px){ .cell-pocket{display:none} }
/* reduced motion, the Effects setting at Reduced or Off, and a moment shown still (Subtle): the mood stays, every move and the rise go */
@media (prefers-reduced-motion: reduce){ .cell *, .cell-behind{animation:none !important} }
html:is([data-effects="off"], [data-effects="reduced"]) :is(.cell *, .cell-behind), :is(.ld-still, .cel-still) :is(.cell *, .cell-behind){animation:none !important}

/* ---------- the lesson door (ui/components/door.js): the start card, and the opening splash of a big workbook ----------
   Lesson complete's treatment (docs/specs/lesson-pane.md, "The lesson door"): no veil and no blur, a crisp card with
   a learn border and a hard --line offset. The splash sits centred until the workspace's pane mounts; then the card stands
   on the sheet band beside the pane (.door-placed: its left and top from the card's rule, complete-card.js bandBox), with goal
   1 already in the pane behind it. The title, one line, the keys it teaches, the big Start with Enter. While a workbook
   builds it shows "Opening <file>" with a bar whose run is a transform, so it moves while the page is busy */
.door-veil{position:fixed; inset:0; z-index:88; display:grid; place-items:center; padding:var(--s4); background:none}
.door-veil.door-placed{display:block; padding:0}
/* the card is the kit's pop-out card at md (menu-kit.css .ui-popcard); here its scroll, the lesson's edge and drop, its motion */
.door{position:relative; max-height:calc(100% - 2 * var(--s4)); overflow:auto; border:var(--cc-edge) solid var(--learn); --pop-shadow:0 var(--cc-drop) 0 var(--line); animation:cel-rise var(--d-pop-in) cubic-bezier(.2,.8,.2,1.1) both}
.door-veil.door-placed .door{position:fixed; max-height:none}
.door:focus, .door:focus-visible{outline:none}
.door-turned .door{animation:none}
.door-turned .ui-popfoot, .door-turned .door-line, .door-turned .door-lead{animation:cel-part var(--d-badge-pop) cubic-bezier(.2,.7,.2,1) both}
/* the hotkey rows come in once as the card reaches its start (opened there, or turned from the opening bar): each fades in and
   rises --door-row-rise over --d-door-row, --d-door-row-gap after the one before, the whole list within --d-door-rows (a long
   list closes the gaps up). Only the look moves: Enter, Start and every key work from the first frame. Reduced motion: still */
.door[data-state="start"] .door-keys .lk-row{animation:door-row var(--d-door-row) cubic-bezier(.2,.7,.2,1) both; animation-delay:calc(var(--i, 0) * min(var(--d-door-row-gap), (var(--d-door-rows) - var(--d-door-row)) / max(var(--n, 1) - 1, 1)))}
@keyframes door-row{from{opacity:0; transform:translateY(var(--door-row-rise))}}
@media (prefers-reduced-motion: reduce){ .door[data-state="start"] .door-keys .lk-row{animation:none} }
.door-art{display:grid; place-items:center; width:var(--pop-art); height:var(--pop-art)}
.door-art svg{display:block; image-rendering:pixelated}
.door-h{margin:0; font-size:var(--fs-title); line-height:1.2; font-weight:var(--fw-heavy); text-wrap:balance}
.door-lead{margin:0; font-size:var(--fs-item); line-height:1.35; font-weight:var(--fw-bold); color:var(--learn-ink); text-wrap:balance}
.door-line{margin:0; max-width:var(--door-measure); font-size:var(--fs-body); line-height:var(--lh-body); color:var(--ink-2); text-wrap:pretty; text-align:start}
/* the key the lesson teaches, large, with its one word name, and two fact chips (UI-86, proposal P1): the kit's lg caps with the
   learn rim, never a skin (LW-3) */
.door-trick{display:flex; flex-direction:column; align-items:center; gap:var(--s2)}
.door-trick .ui-cap{--cap-rim:var(--learn-line); --cap-foot-rim:var(--learn-line); --cap-ink:var(--learn-ink)}
.door-trick-name{font-size:var(--fs-label); line-height:1; font-weight:var(--fw-semi); color:var(--ink-2)}
.door-facts{display:flex; justify-content:center; gap:var(--s2)}
.door-keys.lk-list{align-self:stretch; width:100%; margin-top:calc(var(--close-gap) - var(--pop-gap)); text-align:start}   /* the rows span the card's inner width, edge to edge with it (PS-41 K6, rule 2) */
.door-keys{gap:var(--s2)}
.door-keys .lk-row{background:var(--learn-tint); min-height:0; padding:var(--s2) var(--s3); border-bottom:0; border-radius:var(--r-btn)}   /* the loading door keeps its tinted rows */
.door-knote{display:block; font-size:var(--fs-label); font-weight:var(--fw-semi); color:var(--ink-2)}
.door-chord{display:inline-flex; align-items:center; gap:var(--s2)}
.door-chord .ui-cap{min-width:var(--load-key)}
.door-alias{font-size:var(--fs-label); color:var(--ink-2); white-space:nowrap}   /* Excel's sheet key's note: "(Alt+PgDn on hotkey.gg in a browser)" */
.door-layout{display:flex; align-items:center; justify-content:center; gap:var(--s2); margin-top:var(--s1); font-size:var(--fs-label); color:var(--ink-2)}
/* full screen from the door (app/fullscreen-door.js, LW-24): every later door's quiet cue under Start, "Starts full screen" */
.door-full-cue{margin:var(--door-cue-gap) 0 0; font-size:var(--fs-label); line-height:var(--lh-body); color:var(--ink-2)}
.door-load{width:100%; margin-top:var(--s4)}
.door-load[hidden]{display:none}
.door-bar{display:block; width:100%; height:var(--door-bar); border-radius:var(--door-bar); background:var(--line); overflow:hidden}
.door-bar i{display:block; height:100%; width:100%; background:var(--learn); transform:scaleX(0); transform-origin:left center; transition:transform var(--d-beat) cubic-bezier(.15,.7,.3,1); will-change:transform}
.door-foot{display:flex; justify-content:space-between; align-items:center; gap:var(--s4); width:100%; margin-top:var(--s4); padding-top:var(--s3); border-top:1px solid var(--line); font-size:var(--fs-label); color:var(--ink-2)}
.door-file{display:inline-flex; align-items:center; gap:var(--s2); min-width:0}
.door-file-name{overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.door-doc{flex:none; width:var(--door-file-icon); height:var(--door-file-icon); color:var(--ink)}
.door-doc path{stroke:currentColor; stroke-width:1.5; stroke-linejoin:round; stroke-linecap:round; fill:none}
.door-esc{display:inline-flex; align-items:center; gap:var(--s2); flex:none}
.door-esc .ui-cap{--cap-fs:var(--fs-min)}
.door-veil[data-state="opening"] .door-file{color:var(--ink)}
.door-veil.door-out{animation:door-out var(--d-door-out) ease-in both; pointer-events:none}
.door-veil.door-out .door{animation:door-settle var(--d-door-out) ease-in both}
.door-veil.door-still, .door-veil.door-still *{animation:none; transition:none}
@keyframes door-out{to{opacity:0}}
@keyframes door-settle{to{opacity:0; transform:scale(.96)}}
/* the start: the title, one line, Start (Wolf picked A, 2026-10-16 03:52); the line centred under the title, the kit card's even air */
.door[data-state="start"] .door-line{text-align:center; text-wrap:balance}
@media (max-height:720px){ .door-art{width:var(--pop-art-sprite); height:var(--pop-art-sprite)} .door-h{font-size:var(--fs-head)} }   /* a short window: a smaller picture and title, the card's air as at every size (PS-41) */

/* ---------- the leave prompt (ui/components/chrome.js leavePrompt): Esc with nothing left to cancel ----------
   Small and calm, at the top of the sheet: Enter or Esc again leaves, any other key or a click keeps you playing */
.leave-wrap{position:fixed; inset:0; z-index:62; display:flex; justify-content:center; align-items:flex-start; padding-top:calc(var(--titlebar-h) + var(--ribbon-h) + var(--s8)); background:color-mix(in srgb, var(--ink) 12%, transparent); animation:kt-fade var(--d-menu) ease both}
.leave:focus, .leave:focus-visible{outline:none}   /* the card is the kit's dialog (PS-41, ui/components/menu-kit.js mkCard dialog) */
@media (prefers-reduced-motion: reduce){ .leave-wrap{animation:none} }

/* ---------- the switch (components/switch.js): Settings and the result panel's board line ---------- */
.ac-switch{display:inline-flex; align-items:center; gap:var(--s3); padding:0; border:0; background:none; cursor:pointer; font-size:var(--fs-small); font-weight:var(--fw-bold); color:var(--ink)}
.ac-switch i{position:relative; flex:none; width:var(--switch-w); height:var(--switch-h); border-radius:var(--switch-h); background:var(--chrome); box-shadow:inset 0 0 0 1px var(--edge); transition:background var(--d-key)}
.ac-switch i::after{content:""; position:absolute; top:calc((var(--switch-h) - var(--switch-dot)) / 2); left:calc((var(--switch-h) - var(--switch-dot)) / 2); width:var(--switch-dot); height:var(--switch-dot); border-radius:50%; background:var(--sheet); box-shadow:0 0 0 1px var(--edge); transition:left var(--d-key)}
.ac-switch.on i{background:var(--learn); box-shadow:none}
.ac-switch.on i::after{left:calc(var(--switch-w) - var(--switch-dot) - (var(--switch-h) - var(--switch-dot)) / 2); box-shadow:none}
.ac-switch span{min-width:var(--s6); text-align:left}
/* locked (a class keeps the name private, 0041): gray, as a disabled button, with the reason beside it */
.ac-switch[disabled]{cursor:default; color:var(--ink-3)}
.ac-switch[disabled] i{background:var(--chrome); box-shadow:inset 0 0 0 1px var(--line)}

/* ---------- the cell cursor: the focus mark on site pages ---------- */
[data-cursor]{position:relative; outline:none}
.cursor-on{outline:var(--focus-w) solid var(--cell-cursor); outline-offset:calc(-1 * var(--focus-w)); transition:outline-color var(--d-cursor)}
.cursor-on::after{content:''; position:absolute; right:calc(-1 * var(--cursor-w)); bottom:calc(-1 * var(--cursor-w)); width:var(--cursor-handle); height:var(--cursor-handle); background:var(--cell-cursor); border:1px solid var(--sheet); box-sizing:content-box; pointer-events:none}
tr.cursor-on{outline-offset:0}
tr.cursor-on > td:first-child, tr.cursor-on > th:first-child{box-shadow:inset var(--focus-w) 0 0 var(--cell-cursor)}
@media (prefers-reduced-motion: reduce){ .cursor-on, .tb .tb-tab, .tb .tb-me{transition:none} html:root .tb .tb-tab:is(:active, .is-pressed){transform:none} .kt-tip, .kt-hint, .tb-nudge, .alt-cue, .tb .tb-me.tb-me-land, .tb .tb-streak-flame{animation:none} .cel-veil .cel, .cel-veil [data-step].cel-in{animation-name:kt-fade} .cel-burst{display:none} .ld-veil *{animation:none} }


/* ==========================================================================================================================
   The design system (2026-10-09; Wolf: "pick a good style and re-use elements across the platform"): the one button, the
   one chip, the one progress mark and the layout primitives. ui/components/button.js, chip.js, progress.js and layout.js
   write the markup; every size is a --btn-*, --chip-*, --prog-*, --gap-* or --card-* token. The older class names (.btn2,
   .go and their variants) are listed beside the new ones until every page draws through the components (phase 2 of the
   consolidation; app2/tests/design-guard.js counts what is left). Shown whole at #/styleguide.
   ========================================================================================================================== */

/* ---------- the tab (design review 3b: one tab component, Learn's): a row over a hairline, each tab its words (an icon
   may lead), the open one inked with a bar of the chapter's green at its foot (Learn sets --learn to its chapter, HM-18).
   Learn's and Practice's chapters, the Leaderboards, the Account page, Your progress's shelves and the Teams choice ---------- */
.lt-row{flex:none; display:flex; gap:var(--s1); border-bottom:1px solid var(--line)}
.lt{position:relative; display:flex; align-items:center; gap:var(--s2); height:var(--learn-tab-h); padding:0 var(--tb-tab-pad); font:inherit; font-family:var(--font); font-size:var(--fs-body); font-weight:var(--fw-bold); color:var(--ink-2); white-space:nowrap; text-decoration:none; background:none; border:0; border-radius:var(--r-btn) var(--r-btn) 0 0; cursor:pointer}
.lt:hover{color:var(--ink); background:var(--chrome); text-decoration:none}
.lt[aria-selected="true"], .lt[aria-current="page"], .lt.on{color:var(--ink); font-weight:var(--fw-bold); background:none; box-shadow:inset 0 calc(-1 * var(--bw-2)) 0 var(--cell-cursor)}   /* the tab in hand (controls 2d): the word in the ink at 700 over a 2px underline in the cursor's green, as the Ribbon's and the sheet's tabs */
.lt:focus-visible{outline:var(--focus-w) solid var(--cell-cursor); outline-offset:calc(-1 * var(--focus-w))}
.lt svg{display:block; flex:none}
.lt > .art-fl img{filter:var(--art-row)}   /* a tab's mark (UI-38 rule 7): the one grey on every tab, the one in hand too; its underline carries the state (UI-37 r6) */
.lt > .ui-li{width:var(--tpl-tab-mark); height:var(--tpl-tab-mark)}   /* a tab's line mark at the top bar tabs' size (UI-85 (1)) */

/* ---------- the keycap kit (components/keycap.js, chord.js; docs/specs/design-kit.md, sprint 2): one cap for every key on the
   site. One cap per key (LW-4), no skins (LW-3): the mono legend at --fs-key, a 1px edge with a --bw-2 lower edge, --r-btn
   corners, the key's face and ink. Three sizes (sm 16, md 20 the default, lg 24 tall at k 1) and an inline mini cap for a key
   named in a sentence (1.3em). A row of caps is .ui-caps: a bold + between keys held together (.ui-cap-plus), the one
   chevron between keys pressed in turn (.chord-seq), a / between alternatives (.ui-cap-or). A state or a surface tunes a cap
   only through its properties, never by repainting it (the guard's cap count):
     --cap-face --cap-ink --cap-rim     its face, its legend, its edge         --cap-foot --cap-foot-rim   its lower edge
     --cap-bw --cap-dash                its edge's width and style             --cap-r --cap-shadow        corners, a ring or lift
     --cap-fs --cap-font --cap-fw       its legend's size, face and weight
   or the size tokens on its scope (--cap-h-*, --cap-min-w-*, --cap-px-*, --cap-fs-*, --cap-fs-join) ---------- */
.ui-cap{position:relative; flex:none; display:inline-flex; align-items:center; justify-content:center; box-sizing:border-box; height:var(--cap-h-md); min-width:var(--cap-min-w-md); padding:0 var(--cap-px-md); margin:0;
  font-family:var(--cap-font, 'Key Legend', var(--mono)); font-style:normal; font-weight:var(--cap-fw, var(--fw-key)); font-size:var(--cap-fs, var(--cap-fs-md)); line-height:1; text-align:center; white-space:nowrap; vertical-align:middle; text-decoration:none;
  color:var(--cap-ink, var(--key-ink)); background:var(--cap-face, var(--key-face));
  border:var(--cap-bw, 1px) var(--cap-dash, solid) var(--cap-rim, var(--key-rim)); border-bottom-color:var(--cap-foot-rim, var(--cap-rim, var(--key-rim))); border-bottom-width:var(--cap-foot, var(--bw-2));
  border-radius:var(--cap-r, var(--r-btn)); box-shadow:var(--cap-shadow, none)}
.cc[data-guard] :is(.ui-btn-primary, .ui-btn-gold) > .ui-cap{--cap-dash:dashed; --cap-foot:1px}   /* Enter not live yet: the cap a dashed hollow outline (UI-86) */
.ui-cap-sm{height:var(--cap-h-sm); min-width:var(--cap-min-w-sm); padding:0 var(--cap-px-sm); font-size:var(--cap-fs, var(--cap-fs-sm))}
.ui-cap-lg{height:var(--cap-h-lg); min-width:var(--cap-min-w-lg); padding:0 var(--cap-px-lg); font-size:var(--cap-fs, var(--cap-fs-lg))}
/* a key named in a sentence: an inline cap 1.3em tall centred on the line, so it adds no height; its legend a step under the
   line's, whatever the surface sets for its own caps */
.ui-cap-mini{height:var(--cap-h-mini); min-width:var(--cap-h-mini); padding:0 var(--cap-px-mini); font-size:var(--cap-fs-mini); border-radius:var(--cap-r, var(--cap-r-mini))}
.ui-cap-lgd{display:inline-flex; align-items:baseline; white-space:nowrap}
.ui-cap-arw{font-size:var(--cap-fs-arw); font-weight:var(--fw-bold); line-height:.8}   /* an arrow legend, drawn a size up */
/* the tones: dark (a KeyTip's face: the Alt key held, the menu kit's caps while Alt is down), quiet (no face: a cap in a row
   or on a coloured ground), on (pressed: it sits down by its lower edge, its face chrome), blank (a dashed place for a key not
   shown), fill (on a filled ground, a primary button or a mode's fill: the ground's ink, no face) */
/* a held key (chord.js heldRoles; UI-85 (3), Wolf 2026-11-14 "keys quietly held"): Ctrl, Alt and Shift (and the Mac's own)
   where they only hold, drawn as the quiet cap (grey legend, no face, the one cap weight so every cap stays one kind: layout rule R3), so the key that does the job is the one in full ink. Set
   before the tones, so a pressed, blank or collected cap still reads as its state */
.ui-cap-held{--cap-face:transparent; --cap-ink:var(--ink-2); --cap-rim:var(--edge)}
.ui-cap-dark{--cap-face:var(--keytip); --cap-ink:var(--on-keytip); --cap-rim:var(--keytip)}
.ui-cap-quiet{--cap-face:transparent; --cap-ink:var(--ink-2); --cap-rim:var(--edge)}
.ui-cap-on{--cap-face:var(--chrome); --cap-ink:var(--ink-2); --cap-rim:var(--edge); --cap-foot:1px; margin-top:var(--cap-sink)}
.ui-cap-blank{--cap-face:var(--sheet); --cap-ink:var(--ink-2); --cap-rim:var(--edge); --cap-dash:dashed}
.ui-cap-fill{--cap-face:transparent; --cap-ink:var(--on-fill); --cap-rim:var(--on-fill)}
.ui-cap-mode{--cap-face:var(--mode); --cap-ink:var(--mode-on); --cap-rim:var(--mode-line); --cap-foot-rim:var(--mode-line)}   /* a collected key (AT-30 mock, pass 2): the mode's fill, its label on it */
.ui-cap-held.ui-cap-mode{--cap-face:var(--mode-tint); --cap-ink:var(--mode-ink)}   /* a collected held key sits on the mode's tint, the job key on its fill (UI-85 (3), P-keys A) */
/* a row of caps: one chord (.ui-caps, never broken across lines), or several keys or chords that wrap (.ui-caps-row) */
.ui-caps{display:inline-flex; align-items:center; gap:var(--chord-gap); white-space:nowrap; vertical-align:middle}
.ui-caps-mini{gap:var(--bw-2)}
.ui-caps-row{display:inline-flex; flex-wrap:wrap; align-items:center; gap:var(--s1) var(--chord-apart)}
.ui-cap-plus, .ui-cap-or{position:relative; flex:none; font-style:normal; font-family:var(--font); font-size:var(--cap-fs-join); line-height:1; color:var(--ink-2)}
.ui-cap-plus{font-weight:var(--fw-bold); top:var(--chord-plus-lift)}
.ui-caps-mini :is(.ui-cap-plus, .ui-cap-or){font-size:var(--cap-fs-mini)}
.chord-seq{display:inline-flex; font-size:var(--cap-fs-join); color:var(--ink-2); position:relative; top:calc(var(--chord-then-nudge) * -1); left:var(--chord-then-nudge); margin-inline:calc(var(--chord-gap) / 4)}   /* a Ribbon route's steps sit a little apart on the chevron, a held chord close on its + (UI-85 (3)) */
.chord-seq svg{display:block; width:var(--chord-then-w); height:var(--chord-then-h); overflow:visible; fill:none; stroke:currentColor; stroke-width:var(--chord-then-stroke); stroke-linecap:round; stroke-linejoin:round}

/* ---------- the inline marks (components/inline-marks.js): where, what to type and what to press, on a lesson's line ----------
   One look each, in every place a line shows (UI-86). The cell is the one mark in colour: a tinted address chip, mono, the
   mode's ink on its tint, no border and no handle, so it never reads as a selection. What to type is a solid field with a drawn
   caret (the course lane's four conditions, 14 Nov: never a keycap's face, the caret drawn so the token's text stays exact, no
   blink, one line for words, numbers, formula starts and spaces up to about 20 characters). A key is the kit's mini cap; the lesson's trick (.im-trick) is the md
   cap, flashing green as the next key's cap by the cell does, then resting grey (workspace.css imTrickFlash) */
.im-cell{font-family:var(--mono); font-weight:var(--fw-bold); font-size:var(--cap-fs-mini); color:var(--learn-ink); background:var(--learn-tint); border:0; border-radius:var(--cap-r-mini); padding:var(--bw-2) var(--s1); white-space:nowrap}
body[data-mode="drills"] .im-cell{color:var(--drills-ink); background:var(--drills-tint)}   /* the mode's colour: blue in a drill (UI-86) */
kbd.im-type{display:inline; font-family:var(--mono); font-weight:var(--fw-semi); font-size:var(--cap-fs-mini); line-height:inherit; color:var(--ink); background:var(--sheet); border:1px solid var(--line); border-radius:var(--cap-r-mini); padding:0 var(--s1); white-space:nowrap; box-shadow:none}
kbd.im-type::after{content:''; display:inline-block; width:var(--bw-1-5); height:var(--cap-h-mini); margin-left:var(--bw-2); background:var(--ink); vertical-align:middle}
.im-key{margin:0 var(--bw-2)}
.im-key.im-trick{margin:0 var(--s1)}   /* the lit halo's room (a --bw-2 edge and an --s1 ground), kept beside the words at rest and in the flash */
/* the count drawn (the course lane's rule 6): a row of caps per entry, the long row over the short one, each count at the right;
   the caps come in one after another, the long row first */
.im-rows{display:grid; gap:var(--s2); justify-items:stretch}
.im-row{display:flex; align-items:center; gap:var(--s3)}
.im-row-caps{display:inline-flex; align-items:center; gap:var(--bw-2); flex-wrap:wrap; min-width:0}   /* a long row wraps inside a card that keeps its goal's width (Color-code the workbook: 9 caps in a 175 px card) */
.im-row-n{margin-left:auto; min-width:var(--s6); text-align:right; font-variant-numeric:tabular-nums; font-weight:var(--fw-bold); color:var(--ink)}
/* each cap comes in a --d-menu step after the one before; a long count's step shrinks so its last cap is drawn by --d-rows-in (--k,
   the steps from the first cap to the last, inline-marks.js keyRowsHtml; keyRowsMs sums the same) */
.im-press{display:inline-flex; align-items:center; animation:lf-key-in var(--d-menu) var(--ease-out) both; animation-delay:calc(var(--i, 0) * min(var(--d-menu), (var(--d-rows-in) - var(--d-menu)) / var(--k, 1)))}
.im-rep{font-size:var(--fs-min); font-weight:var(--fw-body); margin-left:var(--s1); white-space:nowrap}   /* a run of one press: one cap and its ×n, as the demo card's repeat (.tc-rep) */
@media (prefers-reduced-motion: reduce){ .im-press{animation:none} }
html[data-effects="off"] .im-press{animation:none}

/* ---------- the button (components/button.js): one height per size, the keycap closing the label ---------- */
.ui-btn, .btn2, .go{box-sizing:border-box; display:inline-flex; align-items:center; justify-content:center; gap:var(--btn-gap); height:var(--btn-h-md); padding:0 var(--btn-px-md); border:var(--btn-edge) solid var(--edge); border-radius:var(--btn-r); background:var(--chrome); color:var(--ink); font-family:var(--font); font-size:var(--btn-fs-md); font-weight:var(--btn-fw); line-height:1; white-space:nowrap; text-decoration:none; vertical-align:middle; cursor:pointer; box-shadow:none; transition:background var(--d-menu), border-color var(--d-menu), color var(--d-menu), transform var(--d-release) var(--ease-out)}
@media (hover:hover){ .ui-btn:hover, .btn2:hover{background:var(--line); text-decoration:none} }
/* the keycap closing a button is the keycap kit's cap at the button's own size (--btn-key-h-*: md on a small button, lg on the
   others), its legend --fs-key; a surface that resizes its own caps never reaches it */
.ui-btn > .ui-cap, .btn2 > .ui-cap, .go > .ui-cap{height:var(--btn-key-h-md); min-width:var(--btn-key-h-md); padding:0 var(--s2); font-size:var(--fs-key); border-bottom-width:var(--bw-2); box-shadow:none}
.ui-btn-icon{display:inline-grid; place-items:center; line-height:0}
.ui-btn-short{display:none}   /* a label's shorter words (btnHtml short): a surface shows them in its place where it runs short */
/* the sizes */
.ui-btn-sm{height:var(--btn-h-sm); padding:0 var(--btn-px-sm); gap:var(--btn-gap-sm); font-size:var(--btn-fs-sm)}
.ui-btn-sm > .ui-cap{height:var(--btn-key-h-sm); min-width:var(--btn-key-h-sm); font-size:var(--fs-min)}
.ui-btn-lg, .go-big{height:var(--btn-h-lg); padding:0 var(--btn-px-lg); font-size:var(--btn-fs-lg)}
.ui-btn-lg > .ui-cap, .go-big > .ui-cap{height:var(--btn-key-h-lg); min-width:var(--btn-key-h-lg)}
/* a keycap closes the label: the end padding tightens so the key sits as far from the edge as from the top */
@media not ((any-hover:none) and (any-pointer:coarse)){ .ui-btn:has(> .ui-cap), .btn2:has(> .ui-cap), .go:has(> .ui-cap){padding-right:var(--btn-px-key)} }   /* a phone shows no keycap (UI-6), so its buttons keep even ends */
.ui-btn-wide{display:flex; width:100%}
.ui-btn[hidden]{display:none}
.ui-btn-keyonly, .ui-btn-keyonly:has(> .ui-cap){padding:0 var(--btn-px-key)}
/* primary: the screen's main action, in the one primary color (--primary, Home's green; a chapter may set its own) */
.ui-btn-primary, .btn2-primary, .go{background:var(--primary); border-color:var(--primary); color:var(--primary-on)}
@media (hover:hover){ .ui-btn-primary:hover, .btn2-primary:hover, .go:hover{background:var(--primary-ink); border-color:var(--primary-ink)} }
.ui-btn-primary > .ui-cap, .btn2-primary > .ui-cap, .go > .ui-cap{--cap-face:transparent; --cap-ink:var(--primary-on); --cap-rim:var(--primary-on)}
.go-ch{--mode:var(--challenges); --mode-ink:var(--challenges-ink); --mode-tint:var(--challenges-tint); --mode-on:var(--challenges-on); --mode-hover:var(--challenges-hover); --mode-line:var(--challenges-line)}
/* gold: Full Access, the one gold element of a screen (the clock's ink on its tint, a gold edge) */
.ui-btn-gold, .go-gold{background:var(--clock-tint); border:var(--btn-gold-edge) solid var(--clock-ink); color:var(--clock-ink)}
@media (hover:hover){ .ui-btn-gold:hover, .go-gold:hover{background:var(--sheet); border-color:var(--clock-ink)} }
.ui-btn-gold > .ui-cap, .go-gold > .ui-cap{--cap-face:transparent; --cap-ink:var(--clock-ink); --cap-rim:var(--clock-ink)}
/* secondary is the base above (3.0's quiet button: a gray fill and an edge that passes 3 to 1) */
/* quiet: a step back or aside, with no fill and no edge until the pointer is over it */
.ui-btn-quiet{background:transparent; border-color:transparent}
@media (hover:hover){ .ui-btn-quiet:hover{background:var(--chrome)} }
/* link: words that act, in the mode's ink */
/* a link reads as words: it takes the type and the line of the row it sits in, whatever its size, and keeps no box */
.ui-btn-link{height:auto; padding:0; border:0; gap:var(--gap-inline); justify-content:flex-start; background:transparent; color:var(--mode-ink); font-size:inherit; font-weight:var(--fw-heavy); line-height:inherit; vertical-align:baseline}
@media (hover:hover){ .ui-btn-link:hover{background:transparent; text-decoration:underline} }
.ui-btn-link:has(> .ui-cap){padding-right:0}
/* danger: what cannot be undone, the reviewer's red on the sheet, never filled */
/* outline (UI-63): no ground, the mode's line as the edge, the words in the ink; hover takes the edge to the ink (the gold
   secondary's pattern); press is the kit's sink, disabled the kit's */
.ui-btn-outline{background:transparent; border-color:var(--mode-line, var(--edge)); color:var(--ink)}
@media (hover:hover){ .ui-btn-outline:hover{background:transparent; border-color:var(--ink)} }
.ui-btn-danger{background:var(--sheet); border-color:var(--red); color:var(--red)}
@media (hover:hover){ .ui-btn-danger:hover{background:var(--paper)} }
/* the focus ring: the cell cursor's width in the mode color, just outside; ink round a filled button */
/* the one ring (UI-71) on every button, filled or not: a filled green or gold button keeps the green ring, the 2px gap in the
   page's ground separates them; the mode's colour stays on the button itself, never on its ring */
.ui-btn:focus-visible, .btn2:focus-visible, .go:focus-visible, .ui-btn.cursor-on, .btn2.cursor-on, .go.cursor-on{outline:var(--focus-w) solid var(--cell-cursor); outline-offset:var(--focus-off)}
/* the press (UI-52, Wolf 2026-11-06 "all five go"): a click, a tap, Enter or Space (button.js wirePress puts .is-pressed on for
   the keys) sinks the button --press-y and to --press-scale over --d-press; it comes back over --d-release. The fill takes its
   hover shade. A link keeps still (it is words in a line); a disabled button never moves; Effects Off and reduced motion cut it */
:is(.ui-btn, .btn2, .go):not(.ui-btn-link, .skip-link, :disabled, [aria-disabled="true"]):is(:active, .is-pressed){transform:translateY(var(--press-y)) scale(var(--press-scale)); transition-duration:var(--d-menu), var(--d-menu), var(--d-menu), var(--d-press)}
:is(.ui-btn, .btn2):not(.ui-btn-primary, .btn2-primary, .ui-btn-gold, .ui-btn-quiet, .ui-btn-link, .ui-btn-danger, .ui-btn-outline, :disabled, [aria-disabled="true"]):is(:active, .is-pressed){background:var(--line)}
.ui-btn-quiet:not(:disabled):is(:active, .is-pressed){background:var(--chrome)}
.ui-btn-wide:not(:disabled, [aria-disabled="true"]):is(:active, .is-pressed){transform:translateY(var(--press-y))}   /* a full-width button only sinks: a scale would pull its edges in off the box it lines up with */
:is(.ui-btn-primary, .btn2-primary, .go):not(.ui-btn-gold, .go-gold, :disabled, [aria-disabled="true"]):is(:active, .is-pressed){background:var(--primary-hover); border-color:var(--primary-line)}
:is(.ui-btn-gold, .go-gold):not(.ui-btn-secondary, :disabled):is(:active, .is-pressed){border-color:var(--clock-on); box-shadow:inset 0 0 0 1px var(--clock-on)}
.ui-btn-secondary.ui-btn-gold:not(:disabled):is(:active, .is-pressed){background:var(--clock-tint); border-color:var(--clock-on)}
html[data-effects="off"] :is(.ui-btn, .btn2, .go){transition:none}
html[data-effects="off"] :is(.ui-btn, .btn2, .go):is(:active, .is-pressed){transform:none}
/* disabled: gray on chrome (it still passes contrast, unlike a faded button) */
.ui-btn:disabled, .ui-btn[aria-disabled="true"], .btn2:disabled, .btn2[aria-disabled="true"], .ui-btn:disabled:hover, .btn2:disabled:hover{background:var(--chrome); border-color:var(--line); color:var(--ink-2); cursor:default; opacity:1}
.ui-btn-quiet:disabled, .ui-btn-link:disabled{background:transparent; border-color:transparent}
.ui-btn:disabled > .ui-cap, .btn2:disabled > .ui-cap, .ui-btn[aria-disabled="true"] > .ui-cap{--cap-face:transparent; --cap-ink:var(--ink-2); --cap-rim:var(--line)}

/* ---------- the chip (components/chip.js): XP rewards in Learn's green, states and tags ---------- */
.ui-chip{box-sizing:border-box; display:inline-flex; align-items:center; gap:var(--s1); height:var(--chip-h); padding:0 var(--chip-px); border:1px solid transparent; border-radius:var(--chip-r); font-family:var(--font); font-size:var(--chip-fs); font-weight:var(--chip-fw); line-height:1; white-space:nowrap; font-variant-numeric:tabular-nums; vertical-align:middle}
.ui-chip-icon{display:inline-grid; place-items:center; line-height:0}
.ui-chip-icon svg{width:var(--chip-icon); height:var(--chip-icon)}
.ui-chip{flex:none}
.ui-chip-lg{height:var(--chip-h-lg); padding:0 var(--chip-px-lg); font-size:var(--chip-fs-lg)}
.ui-chip-earned{background:transparent; color:var(--ink-2)}
.ui-chip-xp{background:var(--xp-track); color:var(--xp-ink); border-color:var(--xp-edge)}
.ui-chip-mode{background:var(--mode-tint); color:var(--mode-ink)}
.ui-chip-done{background:var(--learn-tint); color:var(--learn-ink)}
.ui-chip-neutral{background:var(--chrome); color:var(--ink-2)}
.ui-chip-locked{background:transparent; color:var(--ink-2); border:1px dashed var(--edge)}
.ui-chip-danger{background:var(--sheet); color:var(--red); border-color:var(--red)}
/* a team's tag (UI-16): a block in the team's colour (its --tc properties, set with data-team-color by marks.js), the ink block without one */
.ui-chip-team{color:var(--team-tag-ink); background:var(--team-tag-bg); border-color:var(--team-tag-edge)}
.ui-chip-team[data-team-color]{--team-tag-ink:var(--tc-on); --team-tag-bg:var(--tc); --team-tag-edge:var(--tc)}
/* a club tag's earned flair (TC-44, 0100): outline at level 3 (the club's ink on the sheet in its line), two-tone at 5 (the
   club's ink on its tint, its fill as a bar down the chip's start), gold edge at 8 (the plain fill in a gold ring off the
   ground); every pair is the team colour's own tested one (contrast.test.js) */
.ui-chip-team[data-tag-style="outline"]{--team-tag-bg:var(--sheet); --team-tag-ink:var(--tc-ink, var(--ink)); --team-tag-edge:var(--tc-line, var(--ink)); border-width:var(--bw-2)}
.ui-chip-team[data-tag-style="twotone"]{--team-tag-bg:var(--tc-tint, var(--chrome)); --team-tag-ink:var(--tc-ink, var(--ink)); --team-tag-edge:var(--tc-line, var(--ink)); box-shadow:inset var(--s1) 0 0 var(--tc, var(--ink))}
.ui-chip-team[data-tag-style="gold"]{border:var(--bw-2) solid var(--team-gold-line); box-shadow:inset 0 0 0 1px var(--sheet)}
/* the rewards study's styles (0103; Wolf 2026-11-16 14:52 UTC, "your picks"): Double Border (level 10), Excel's double border:
   the club's ink on the sheet inside a double rule in its line; Fill Handle (13): the plain fill with Excel's fill handle, a
   square in the club's line ringed in the sheet, at the end corner; Totals (16): the plain fill with the double underline of a
   total under the letters, in the letters' colour; Podium (a club that has finished a week in the top 3): the club's ink on
   the sheet inside a thick ring in its best medal's metal (data-podium 1, 2 or 3) */
.ui-chip-team[data-tag-style="double"]{--team-tag-bg:var(--sheet); --team-tag-ink:var(--tc-ink, var(--ink)); --team-tag-edge:var(--tc-line, var(--ink)); border-style:double; border-width:var(--bw-3)}
.ui-chip-team[data-tag-style="handle"]{position:relative; overflow:visible}
.ui-chip-team[data-tag-style="handle"]::after{content:""; position:absolute; right:calc(-1 * var(--bw-3)); bottom:calc(-1 * var(--bw-3)); width:var(--s1); height:var(--s1); background:var(--tc-line, var(--ink)); box-shadow:0 0 0 1px var(--sheet)}
.ui-chip-team[data-tag-style="totals"], .ui-chip-team[data-tag-style="totals"] *{text-decoration:underline double; text-underline-offset:var(--bw-2); text-decoration-thickness:1px}
.ui-chip-team[data-tag-style="podium"]{--team-tag-bg:var(--sheet); --team-tag-ink:var(--tc-ink, var(--ink)); --team-tag-edge:var(--medal-1); border-width:var(--bw-3)}
.ui-chip-team[data-tag-style="podium"][data-podium="2"]{--team-tag-edge:var(--medal-2)}
.ui-chip-team[data-tag-style="podium"][data-podium="3"]{--team-tag-edge:var(--medal-3)}
/* the trophy finishes (TC-71, Wolf 2026-11-19: "A finish hex can't do"): a fill no colour pick can make, each with its own
   letters and edge whatever the club's colour. Gilt (10 records): gold foil, a light band crossing deep gold; Ember (1,000
   reps together): deep red fading into burnt orange; Plum (Goal 4 weeks running): deep plum fading into orchid */
.ui-chip-team[data-tag-style="gilt"]{--team-tag-ink:var(--finish-gilt-ink); --team-tag-edge:var(--team-gold-line);
  background:linear-gradient(to right, var(--finish-gilt-b) 0%, var(--finish-gilt-a) 38%, var(--finish-gilt-b) 62%, var(--finish-gilt-a) 100%)}
.ui-chip-team[data-tag-style="ember"]{--team-tag-ink:var(--finish-on); --team-tag-edge:var(--finish-ember-a);
  background:linear-gradient(to right, var(--finish-ember-a), var(--finish-ember-b))}
.ui-chip-team[data-tag-style="plum"]{--team-tag-ink:var(--finish-on); --team-tag-edge:var(--finish-plum-a);
  background:linear-gradient(to right, var(--finish-plum-a), var(--finish-plum-b))}
/* last week's medal beside a club's tag (TC-45): the line set's medal at a row's icon size in gold, silver or bronze; on the
   top bar's lit tab it takes the tab's own words colour */
.club-medal{display:inline-grid; place-items:center; flex:none; line-height:0}
.club-medal .ui-li{width:var(--tpl-mark); height:var(--tpl-mark); color:var(--medal, var(--ink-2))}
.club-medal[data-medal="1"]{--medal:var(--medal-1)} .club-medal[data-medal="2"]{--medal:var(--medal-2)} .club-medal[data-medal="3"]{--medal:var(--medal-3)}
.tb .tb-tab .club-medal{margin-left:var(--s1)}
.tb .tb-tab.on .club-medal{--medal:currentColor}
/* a player's title (UI-16): outlined, the team tag's sibling; it shrinks first in a row and cuts its words (.ui-chip-w) */
.ui-chip-title{flex:0 100 auto; min-width:var(--title-tag-min); max-width:var(--title-tag-max); color:var(--title-tag-ink); background:var(--title-tag-bg); border-color:var(--title-tag-edge)}
.ui-chip-title.ui-chip-rare{color:var(--title-tag-rare-ink); border-color:var(--title-tag-rare-edge)}
.ui-chip-w{min-width:0; overflow:hidden; text-overflow:ellipsis}
/* the filter (design review 3b: one chip for filters, Reference's): a button, outlined on the sheet in the ink, its count after
   its name, its group's dot before it, the chosen one inked; always the large chip (a control a pointer picks). A row of them
   is .ui-chips */
.ui-chips{display:flex; flex-wrap:wrap; gap:var(--s2)}
.ui-chip-filter{gap:var(--s2); border-color:var(--edge); background:var(--sheet); color:var(--ink); text-decoration:none; cursor:pointer}
.ui-chip-filter:hover{background:var(--paper)}
.ui-chip-filter.on{background:var(--ink); border-color:var(--ink); color:var(--sheet)}
.ui-chip-filter:focus-visible{outline:var(--focus-w) solid var(--cell-cursor); outline-offset:var(--focus-off)}
.ui-chip-dot{flex:none; width:var(--hub-mark); height:var(--hub-mark); border-radius:50%; background:var(--g, var(--ink-2))}
/* a state chip's dot (chipHtml dot): the state's colour on a grey chip (UI-38 rule 7) */
.ui-chip-dot[data-dot="learn"]{background:var(--learn)} .ui-chip-dot[data-dot="drills"]{background:var(--drills)} .ui-chip-dot[data-dot="daily"]{background:var(--daily)} .ui-chip-dot[data-dot="rapid"]{background:var(--rapid)} .ui-chip-dot[data-dot="challenges"]{background:var(--challenges)} .ui-chip-dot[data-dot="clock"]{background:var(--clock)} .ui-chip-dot[data-dot="right"]{background:var(--right)} .ui-chip-dot[data-dot="none"]{background:var(--line)}
.ui-chip-dot[data-dot="lvl-easy"]{background:var(--lvl-easy)} .ui-chip-dot[data-dot="lvl-medium"]{background:var(--lvl-medium)} .ui-chip-dot[data-dot="lvl-hard"]{background:var(--lvl-hard)}   /* a drill's Level: the grey ladder (drill-level.js LEVEL_DOT) */
.ui-chip-n{font-size:var(--fs-label); font-weight:var(--fw-semi); color:var(--ink-2)}
.ui-chip-filter.on .ui-chip-n{color:var(--sheet)}
/* the 'xp-fly' moment (Home's Getting started): a new row's gold XP chip rises into the level bar and fades; its place keeps
   the quiet earned chip. The flying copy is the chip's own words (data-xp) in the clock's gold */
.ui-chip.xp-fly{position:relative}
.flying .ui-chip.xp-fly::after{content:attr(data-xp); position:absolute; inset:0; display:inline-flex; align-items:center; justify-content:center; border-radius:inherit; background:var(--clock-tint); box-shadow:inset 0 0 0 1px var(--clock); color:var(--clock-ink); font-weight:var(--fw-heavy); animation:xp-fly var(--d-xp-fly) cubic-bezier(.4,0,.2,1) both; pointer-events:none}
@keyframes xp-fly{0%{transform:none; opacity:1} 60%{opacity:1} 100%{transform:translate(var(--fly-x, 0), var(--fly-y, 0)) scale(.8); opacity:0}}

/* ---------- the field kit (components/field.js; docs/specs/design-kit.md, sprint 3): the one text box, drop-down, note box
   and search box. The label above at --fs-label in the ink, the help under at --fs-small in the secondary ink, one error line
   in the pen's red; the control --field-h tall (a surface's own, else --ctl-h), a 1px edge, --r-btn corners, the sheet ground,
   the body size. :is(input, select, textarea) outranks the old element rule in site.css. The menu kit's mkField draws the same
   control and label (menu-kit.css sets --field-h to --menu-in-h on .mk-field). ---------- */
.ui-field{display:flex; flex-direction:column; gap:var(--s1); min-width:0}
.ui-field-label{font-size:var(--fs-label); font-weight:var(--fw-bold); color:var(--ink)}
:is(input, select, textarea).ui-field-in{box-sizing:border-box; width:100%; min-width:0; height:var(--field-h, var(--ctl-h)); margin:0; padding:0 var(--s3); border:1px solid var(--edge); border-radius:var(--r-btn); background:var(--sheet); color:var(--ink); font-family:var(--font); font-size:var(--fs-body); font-weight:var(--fw-body); line-height:normal; user-select:text; -webkit-user-select:text}
.ui-field-in::placeholder{color:var(--ink-2); opacity:1}
.ui-field-in:focus-visible{outline:var(--focus-w) solid var(--cell-cursor); outline-offset:var(--focus-off)}
/* a refused field (the kit's error field): the red edge and the red line under it; while it has the focus the green ring alone
   marks it, never the ring round a red edge (a double ring, Wolf 2026-11-15 04:42) */
.ui-field-in[aria-invalid="true"]:not(:focus-visible){border-color:var(--red)}
.ui-field-in:disabled{background:var(--chrome); color:var(--ink-2); cursor:default}
:is(input, select, textarea).ui-field-mono{font-family:var(--mono); font-variant-numeric:tabular-nums}
/* the drop-down: the browser's arrow off, the kit's chevron in the secondary ink at the right */
select.ui-field-sel{appearance:none; -webkit-appearance:none; cursor:pointer; padding-right:var(--s8);
  background-image:linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position:calc(100% - var(--s4) - var(--field-chev)) 50%, calc(100% - var(--s4)) 50%; background-size:var(--field-chev) var(--field-chev); background-repeat:no-repeat}
/* the note box: as tall as its rows, never shorter than a field */
textarea.ui-field-ta{height:auto; min-height:var(--field-h, var(--ctl-h)); padding:var(--s2) var(--s3); line-height:1.4; resize:vertical}
/* the search box: the magnifier inside at the left, the key that jumps to it inside at the right */
.ui-field-box{position:relative; display:flex; align-items:center; min-width:0}
.ui-field-icon{position:absolute; left:var(--s3); width:var(--s4); height:var(--s4); color:var(--ink-2); pointer-events:none}
.ui-field-box.has-icon .ui-field-in{padding-left:calc(var(--s3) + var(--s4) + var(--s2))}
.ui-field-box.has-cap .ui-field-in{padding-right:var(--s10)}
.ui-field-cap{position:absolute; right:var(--s2); display:inline-flex; pointer-events:none}
.ui-field-in[type="search"]::-webkit-search-decoration{-webkit-appearance:none}
.ui-field-help{font-size:var(--fs-small); color:var(--ink-2); line-height:1.35}
.ui-field-err{font-size:var(--fs-small); font-weight:var(--fw-semi); color:var(--red-ink); line-height:1.35}
.ui-field-err:empty{display:none}

/* ---------- the board kit (components/table.js tableHtml, components/board.js; docs/specs/design-kit.md, sprint 3): one table
   and one board row for every list of figures on the site. The table: a rule above the head, hairlines between rows, labels
   left and figures right in tabular numerals, at the row height (--row-h); its looks are classes tableHtml writes: board (a
   ranked board: roomier rows, the time in bold mono, your row tinted), sheet (a worksheet: the letters, the row numbers, the
   gridlines), read (a reading page's table inside a card or an inset, to its edges: the cells carry the padding), kv (key and
   value), loose (rows hug wrapped text), stack and fold (a phone: each row a card, or each row a grid line the page lays out),
   and the frame (a sheet scrolling in its box under a frozen head). The board row (board.js): place, player, figures, time and
   delta on the board's tracks (--board-cols), the head frozen above the scrolling rows. A page tunes a table's columns (their
   widths, alignment, wrapping) and a board's tracks; it never redraws the lines, grounds or row heights ---------- */
.ui-table{width:100%; border-collapse:collapse; font-family:var(--font); font-size:var(--fs-small); font-variant-numeric:tabular-nums}
.ui-table th, .ui-table td{text-align:left; padding:0 var(--s2); height:var(--row-h); vertical-align:middle; border:0; border-bottom:1px solid var(--line); white-space:nowrap; overflow:visible; position:static; font-family:inherit; transition:none; background:none}
.ui-table th{font-size:var(--fs-label); font-weight:var(--fw-semi); color:var(--ink-2); border-top:var(--bw-2) solid var(--ink); border-bottom:1px solid var(--line); height:auto; padding-top:var(--s2); padding-bottom:var(--s2)}
.ui-table td:first-child, .ui-table th:first-child{padding-left:var(--s3)}
.ui-table td:last-child, .ui-table th:last-child{padding-right:var(--s3)}
.ui-table .num{text-align:right}
.ui-table .mid{text-align:center}
.ui-table td[data-col="n"]{font-family:var(--font); font-variant-numeric:tabular-nums; font-size:var(--fs-key); color:var(--ink-2); width:1%}
.ui-table td[data-col="min"], .ui-table td[data-col="time"], .ui-table td[data-col="best"]{font-family:var(--mono); font-size:var(--fs-key)}
.ui-table td[data-col="min"], .ui-table th[data-col="min"]{width:1%}
.ui-table td[data-col="tier"]{width:1%}
.ui-table td[data-col="status"]{color:var(--ink-2)}
.ui-table td[data-col="act"]{width:1%; white-space:nowrap}
.ui-table td[data-col="act"] .ui-btn + .ui-btn{margin-left:var(--s2)}
.ui-table tr.current > td, .ui-table tr.next > td{background:var(--mode-tint)}
.ui-table tr.current > td{color:var(--ink)}
.ui-table tr.current > td:nth-child(2), .ui-table tr.current td[data-col="status"]{font-weight:var(--fw-semi); color:var(--ink)}
.ui-table tr[data-href]{cursor:pointer}
.ui-table tr[data-href]:hover > td{background:var(--chrome)}
.ui-table tr.later > td, .ui-table tr.pro > td{color:var(--ink-2)}
.ui-table tr.pro td[data-col="best"]{font-family:var(--font); font-weight:var(--fw-semi)}
.ui-table td .row-name{font-weight:var(--fw-semi)}
.ui-table th.num{text-align:right}
.ui-table td.mono{font-family:var(--mono)}
.ui-table td.name{font-weight:var(--fw-semi)}
.ui-table tr:last-child td{border-bottom:0}
.ui-table tr.you td{background:var(--mode-tint)}
/* a row that opens its actions (a team's seats and leaders): the pointer, the chrome under the pointer, the cursor's ring */
.ui-table tr[data-actions]{cursor:pointer}
.ui-table tr[data-actions]:hover > td:not(.sh-row){background:var(--chrome)}
.ui-table tr[data-actions]:focus-visible{outline:var(--focus-w) solid var(--cell-cursor); outline-offset:calc(-1 * var(--focus-w))}
/* the owner and the admins (TC-13, Wolf 2026-10-15 22:46): set apart from the members in the leaders' tint */
.ui-table tr.leader > td:not(.sh-row){background:var(--leader-tint)}
/* loose: a row hugs its text, which may wrap (the ops tables, the public pages' lists) */
.ui-table-loose td{height:auto; vertical-align:top; padding-top:var(--s2); padding-bottom:var(--s2); white-space:normal}
.ui-table-loose .row-sub{display:block; overflow-wrap:anywhere; white-space:normal}
/* key and value: the key in the secondary ink, no row height */
.ui-table-kv td{height:auto; padding:var(--s2) 0}
.ui-table-kv td:first-child{color:var(--ink-2); font-size:var(--fs-small)}
/* board: a ranked board drawn as a table (a team's board on its desk page) */
.ui-table-board td, .ui-table-board th{height:auto; padding-top:var(--s3); padding-bottom:var(--s3)}
.ui-table-board td[data-col="time"]{font-family:var(--mono); font-size:var(--fs-key); font-weight:var(--fw-bold)}
.ui-table-board tr.mine > td{background:var(--mode-tint); color:var(--ink)}
.ui-table-board tr.pinned > td{border-top:var(--cursor-w) solid var(--mode-line)}
.ui-table-board tr.mine td[data-col="n"]{color:var(--mode-ink)}
.ui-table-board .pi{display:inline-grid; vertical-align:middle; margin-right:var(--s2)}
/* on a phone the player's column is narrow (UI-16): the title tag takes a line of its own under the name, past the chip */
@media (max-width:760px){
  .ui-table-board .ui-board-who{display:grid; grid-template-columns:var(--hub-icon) auto minmax(0, 1fr); grid-auto-columns:auto; column-gap:var(--s2); row-gap:var(--s1); align-items:center; justify-items:start; justify-content:start}
  .ui-table-board .ui-board-who > :first-child{grid-row:1 / span 2}
  .ui-table-board .ui-board-who .title-tag{grid-row:2; grid-column:2 / -1; max-width:min(100%, var(--title-tag-max-sm))}
  /* the board kit's rows on a phone (A-grade pass, 2026-11-18; the club's leaderboard, the allowlist's "club page's phone pass"):
     the place, the keys and the time take their own width, the player the rest, and the player's chips take a second line under
     the name instead of running over the keys and the time (layout rule 9, C1) */
  .desk-board{--board-cols:auto minmax(0, 1fr) auto auto}
  .desk-board .ui-board-who{display:grid; grid-template-columns:var(--hub-icon) max-content minmax(0, 1fr); column-gap:var(--s2); row-gap:var(--s1); align-items:center; justify-items:start; padding-block:var(--s1)}
  .desk-board .ui-board-who > .av{grid-row:1 / span 3; grid-column:1}
  .desk-board .ui-board-who:not(:has(> .title-tag)) > .av{grid-row:1 / span 2}
  .desk-board .ui-board-who > .lb-nm{grid-row:1; grid-column:2 / -1; max-width:100%}
  .desk-board .ui-board-who > .ui-chip{grid-row:2; grid-column:auto; min-width:0; max-width:100%}   /* every chip in one place on every row: line two, under the name (rules 2 and 6) */
  .desk-board .ui-board-who > .title-tag{grid-row:3; grid-column:2 / -1}   /* the title, the widest, on the line under them, whole */
}
/* sheet: letters on the chrome strip, numbers down the left, gridlines; the selected row lights its number, as Excel does */
.ui-table-sheet{border:1px solid var(--grid); border-collapse:collapse}
.ui-table-sheet th.sh-col, .ui-table-sheet th.sh-corner{background:var(--chrome); color:var(--ink-2); font-size:var(--fs-min); font-weight:var(--fw-body); line-height:1; text-align:center; height:var(--sp-row); padding:0 var(--s2); border:1px solid var(--grid); border-top:0}
.ui-table-sheet th.sh-col.num{text-align:center}
.ui-table-sheet td{border-bottom:1px solid var(--grid); border-right:1px solid var(--grid)}
.ui-table-sheet td.sh-row{width:var(--s8); min-width:var(--s8); padding:0; text-align:center; background:var(--chrome); color:var(--ink-2); font-size:var(--fs-min); font-variant-numeric:tabular-nums}
.ui-table-sheet tr.sh-labels td:not(.sh-row){font-weight:var(--fw-bold); color:var(--ink); font-size:var(--fs-label)}
.ui-table-sheet td:first-child, .ui-table-sheet th:first-child{padding-left:0}
.ui-table-sheet td:nth-child(2){padding-left:var(--s3)}
.ui-table-sheet tr.cursor-on > td.sh-row, .ui-table-sheet tr.next > td.sh-row{background:var(--grid); color:var(--learn-ink); font-weight:var(--fw-bold); box-shadow:inset calc(-1 * var(--focus-w)) 0 0 var(--cell-cursor)}
.ui-table-sheet tr.cursor-on > td:first-child{box-shadow:inset calc(-1 * var(--focus-w)) 0 0 var(--cell-cursor)}
.ui-table-sheet tr.sh-blank td{height:var(--row-h)}
.ui-table-board.ui-table-sheet tr.mine > td.sh-row{color:var(--mode-ink); font-weight:var(--fw-bold)}
.ui-table.ui-table-sheet tr.sh-labels td[data-col]{font-family:var(--cellfont); font-size:var(--fs-label); font-weight:var(--fw-bold); color:var(--ink)}
/* the frame: a sheet scrolling inside its box, the letters and row 1 frozen (--table-head: the letters' height, set as it
   draws) and the row numbers held at the left (the member sheet) */
.ui-table-frame{position:absolute; inset:0; overflow:auto; overscroll-behavior:contain; border:1px solid var(--grid); background:var(--sheet); scrollbar-width:thin; scrollbar-color:var(--line) transparent; outline:none}
.ui-table-frame:focus-visible{outline:var(--focus-w) solid var(--cell-cursor); outline-offset:calc(-1 * var(--focus-w))}
.ui-table-frame .ui-table-sheet{border:0; min-width:100%; min-height:100%}
.ui-table-frame thead th{position:sticky; top:0; z-index:6; box-shadow:0 1px 0 var(--grid)}
.ui-table-frame tr.sh-labels td{position:sticky; top:var(--table-head, var(--sp-row)); z-index:5; background:var(--sheet); box-shadow:0 1px 0 var(--grid), 0 -1px 0 var(--grid)}
.ui-table-frame th.sh-corner{left:0; z-index:8}
.ui-table-frame td.sh-row{position:sticky; left:0; z-index:4}
.ui-table-frame tr.sh-labels td.sh-row{z-index:7}
/* read: a reading page's table inside its box (wrap: a card or an inset) and to its edges, the cells carrying the padding */
.ui-table-wrap:is(.ui-card, .ui-inset, div){display:block; max-width:100%; padding:0; overflow-x:auto}   /* beats the box's own padding and flex: the cells carry the padding */
.ui-table-read th, .ui-table-read td{height:auto; white-space:normal; vertical-align:top; padding:var(--s3) var(--table-read-px, var(--s4)); line-height:var(--table-read-lh, var(--lh-body)); color:var(--ink)}
.ui-table-read th:first-child, .ui-table-read td:first-child{padding-left:var(--table-read-px, var(--s4))}
.ui-table-read th:last-child, .ui-table-read td:last-child{padding-right:var(--table-read-px, var(--s4))}
.ui-table-read th{font-size:var(--fs-small); font-weight:var(--fw-bold); color:var(--ink-2); border-top:0; border-bottom:1px solid var(--line); background:var(--table-read-head, transparent)}
.ui-table-read td{border-bottom:0}
.ui-table-read tbody tr + tr td, .ui-table-read tfoot td{border-top:1px solid var(--line)}
.ui-table-read tfoot td{background:var(--paper); font-weight:var(--fw-heavy)}
@media (max-width:760px){
  /* stack: each row a card, its cells labelled from the head (data-label), the box around it let go */
  .ui-table-wrap:has(> .ui-table-stack){background:none; border:0; border-radius:0; overflow:visible}
  .ui-table-stack thead{display:none}
  .ui-table-stack, .ui-table-stack tbody, .ui-table-stack tr, .ui-table-stack td{display:block}
  .ui-table-stack tbody tr{background:var(--sheet); border:1px solid var(--line); border-radius:var(--r-plate); padding:var(--s3) var(--s4)}
  .ui-table-stack tbody tr + tr{margin-top:var(--s3)}
  .ui-table-stack tbody tr + tr td{border-top:0}
  .ui-table-stack td, .ui-table-stack td:first-child, .ui-table-stack td:last-child{padding:var(--s1) 0}
  .ui-table-stack td:first-child{font-size:var(--fs-body); padding-top:0}
  .ui-table-stack td:not(:first-child)::before{content:attr(data-label); display:block; font-size:var(--fs-label); font-weight:var(--fw-bold); color:var(--ink-2)}
  /* fold: each row a grid line (the page names its areas), the hairline between rows, the foot on the paper */
  .ui-table-fold thead{display:none}
  .ui-table-fold, .ui-table-fold tbody, .ui-table-fold tfoot{display:block}
  .ui-table-fold tr{display:grid; padding:var(--table-fold-pad, var(--s2) 0); border-top:1px solid var(--line)}
  .ui-table-fold tbody tr:first-child{border-top:0}
  .ui-table-fold td, .ui-table-fold td:first-child, .ui-table-fold td:last-child, .ui-table-fold tbody tr + tr td, .ui-table-fold tfoot td{display:block; height:auto; padding:0; border:0; width:auto; text-align:left; background:none}
  .ui-table-fold tfoot tr{background:var(--paper)}
}
/* the board row (board.js): the place a narrow track hugging the chip and name, the name taking the room left, then equal
   tracks for the figures (BG-13, Wolf 2026-10-16: "the eye reads one row as a unit"); the head frozen above the rows */
.ui-board-head, .ui-board-row{display:grid; grid-template-columns:var(--board-cols, var(--board-c-rank) var(--board-c-who) var(--board-c-numf) var(--board-c-numf)); column-gap:var(--s3); align-items:center; padding:0 var(--board-px)}
.ui-board-head{flex:none; min-height:var(--board-head-h); font-size:var(--fs-small); font-weight:var(--fw-bold); color:var(--ink-2); border-bottom:1px solid var(--line)}
.ui-board-head .ui-board-c-r, .ui-board-row > .ui-board-rank, .ui-board-row > .ui-board-time, .ui-board-n{text-align:right}
.ui-board-sp{--sp-ground:var(--sheet); background:var(--sheet)}
.ui-board-body:focus-visible{outline:var(--focus-w) solid var(--cell-cursor); outline-offset:calc(-1 * var(--focus-w))}
.ui-board-row{min-height:var(--board-row-h); font-size:var(--fs-small); font-variant-numeric:tabular-nums; border-bottom:1px solid var(--grid)}
.ui-board-rank{font-weight:var(--fw-bold); color:var(--ink-2)}
.ui-board-who{display:flex; align-items:center; gap:var(--s2); min-width:0}
.ui-board-who .pi{flex:none; width:var(--hub-icon); height:var(--hub-icon)}
.ui-board-who .lb-nm{min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:var(--fw-semi)}
.ui-board-who small{font-size:var(--fs-small); font-weight:var(--fw-semi); color:var(--ink-2); white-space:nowrap}
.ui-board-who a.lb-nm{color:inherit; text-decoration:none}
.ui-board-who a.lb-nm:hover{text-decoration:underline}
.ui-board-who .np-chip{margin-left:var(--s1)}
.ui-board-n{min-width:0; white-space:nowrap}
.ui-board-time{font-family:var(--mono); font-weight:var(--fw-bold); font-size:var(--fs-small); color:var(--ink); font-variant-numeric:tabular-nums}
.ui-board-delta{font-weight:var(--fw-bold); color:var(--learn-ink); white-space:nowrap; text-align:right}
/* the rows read in a quiet zebra (no filler rows under the last: the box hugs its content), the pointer's row the grid's grey */
.ui-board-body .ui-board-row:nth-child(even):not(.is-me):not(.is-ghost){background:var(--board-zebra)}
.ui-board-body .ui-board-row:hover:not(.is-me):not(.is-ghost){background:var(--grid)}
/* your row: the mode's tint, its rule at the left, the words in the ink at the heaviest weight */
.ui-board-row.is-me{background:var(--mt, var(--mode-tint)); box-shadow:inset var(--bw-3) 0 0 var(--mode), 0 -1px 0 var(--line)}
.ui-board-row.is-me .ui-board-rank, .ui-board-row.is-me .lb-nm, .ui-board-row.is-me .ui-board-time{color:var(--ink); font-weight:var(--fw-heavy)}
/* a guest's ghost row: the place the run would hold, dashed, its button where the figures go */
.ui-board-row.is-ghost{grid-template-columns:var(--board-c-rank) minmax(0, 1fr) auto var(--board-c-num); margin:var(--s1) var(--s2); padding:var(--s2) calc(var(--board-px) - var(--s2)); min-height:0; border:1px dashed var(--edge); border-radius:var(--r-btn)}
.ui-board-row.is-ghost .ui-board-rank, .ui-board-row.is-ghost .ui-board-time{color:var(--ink-2)}
.ui-board-row.is-ghost .ui-board-n{text-align:left; justify-self:start}
/* the rows near yours (Around you, under the board): no rule between them */
.ui-board-row.is-near{border-bottom:0}

/* ---------- progress (components/progress.js): segments for a small count, a bar for a large one; the mode's fill for
   progress (--pg-c and --pg-t, set on the mark), Learn's green for XP; sm, md and lg heights ---------- */
.pbar{--pg-c:var(--mode-line); --pg-t:var(--mode-tint); display:flex; gap:var(--prog-gap); height:var(--prog-h); min-width:0}
.pbar-sm{height:var(--prog-h-sm)}
.pbar-lg{height:var(--prog-h-lg)}
.pbar-segs i{flex:1 1 0; min-width:0; border-radius:var(--prog-r); background:var(--prog-track)}
.pbar-segs i.d{background:var(--pg-c)}
.pbar-segs i.now{background:var(--pg-t); box-shadow:inset 0 0 0 var(--bw-2) var(--pg-c)}
.pbar-line{background:var(--prog-track); border-radius:var(--prog-r); overflow:hidden}
.pbar-line i{display:block; height:100%; background:var(--pg-c); border-radius:inherit; transition:width var(--d-fill) cubic-bezier(.2,.8,.2,1)}
.pbar-xp{--pg-c:var(--xp-fill); --pg-t:var(--xp-track)}
/* the ring (shape 'ring'): the fill runs round what sits inside it, the track the rest; its ground is the card's (--pg-ground) */
.pbar-ring{position:relative; display:grid; place-items:center; flex:none; width:var(--prog-ring); height:var(--prog-ring); border-radius:50%; background:conic-gradient(var(--pg-c) var(--pg-p), var(--prog-track) 0)}
.pbar-ring.pbar-sm{width:var(--prog-ring-sm); height:var(--prog-ring-sm)}
.pbar-ring.pbar-lg{width:var(--prog-ring-lg); height:var(--prog-ring-lg)}
.pbar-ring::before{content:''; position:absolute; inset:var(--prog-ring-w); border-radius:50%; background:var(--pg-ground, var(--sheet))}
.pbar-ring > *{position:relative}
/* the level (progress.js levelHtml): the XP chip, the XP bar, the XP in words */
.lvl{display:flex; align-items:center; gap:var(--gap-cluster); font-size:var(--fs-small); white-space:nowrap}
.lvl .pbar-xp{width:var(--lvl-bar-w)}
.lvl-xp{font-weight:var(--fw-bold); color:var(--ink-2); font-variant-numeric:tabular-nums}

/* ---------- the layout primitives (components/layout.js): every gap is a --gap-* token ---------- */
.ui-stack{display:flex; flex-direction:column; gap:var(--gap-stack); min-width:0}
.ui-stack-sm{gap:var(--gap-stack-sm)}
.ui-stack-lg{gap:var(--gap-stack-lg)}
.ui-stack > :where(h1, h2, h3, h4, p, ul, ol){margin:0}
.ui-cluster{display:flex; flex-wrap:wrap; align-items:center; gap:var(--gap-cluster); min-width:0}
.ui-cluster-end{justify-content:flex-end}
.ui-cluster-between{justify-content:space-between}
.ui-head{display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:var(--gap-cluster) var(--gap-stack-lg); font-family:var(--font)}
.ui-head-text{display:flex; flex-direction:column; gap:var(--gap-stack-sm); min-width:0}
.ui-head-title{margin:0; font-size:var(--fs-title); font-weight:var(--fw-heavy); line-height:1.15; color:var(--ink)}
.ui-head-sub{margin:0; font-size:var(--fs-body); line-height:var(--lh-body); color:var(--ink-2)}
.ui-card{position:relative; box-sizing:border-box; display:flex; flex-direction:column; gap:var(--gap-stack); min-width:0; padding:var(--card-pad-y) var(--card-pad-x); background:var(--sheet); border:1px solid var(--line); border-radius:var(--card-r); font-family:var(--font); color:var(--ink)}
.ui-card-mode{border-top:var(--mode-rule) solid var(--mode)}
.ui-card-head{display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:var(--gap-stack-sm) var(--gap-stack)}
.ui-card-title{margin:0; font-size:var(--fs-panel); font-weight:var(--fw-heavy); line-height:1.25}
.ui-card-head > .ui-card-title{flex:0 1 auto; min-width:0; overflow-wrap:anywhere}
.ui-card-facts{display:inline-flex; flex-wrap:wrap; justify-content:flex-end; align-items:baseline; gap:var(--s1) var(--s3); min-width:0; text-align:right; font-size:var(--fs-label); font-weight:var(--fw-semi); color:var(--ink-2); font-variant-numeric:tabular-nums}
.ui-card-facts > *{white-space:nowrap}
.ui-card-facts a{color:var(--mode-ink); text-decoration:none}
.ui-card-facts a:hover{text-decoration:underline}
.ui-card-body{min-width:0; font-size:var(--fs-body); line-height:var(--lh-body)}
.ui-card-body > :where(p){margin:0}
.ui-card-foot{margin-top:auto}
.ui-sections{display:flex; flex-direction:column; gap:var(--gap-section); min-width:0}
.ui-card-tint{background:var(--plate-neutral); border-color:transparent}   /* the plate: a tint ground and no hairline (the border stays, unseen, so a tint card and a default one share their size) */
.ui-card-tint.ui-card-mode{background:var(--mode-tint); border-top-color:var(--mode)}
/* ---------- the inset (layout.js insetHtml; docs/specs/design-kit.md): the box inside a card or a column (a row of a list, a
   strip, a preview, a step, a stat). Plain is the sheet, quiet the paper, tint the mode's tint inside its line; a row inset is
   one menu row tall, its selected state the mode's tint and its focus the cursor's ring. No shadow. ---------- */
.ui-inset{position:relative; box-sizing:border-box; display:flex; flex-direction:column; gap:var(--gap-stack-sm); min-width:0; padding:var(--inset-pad-y) var(--inset-pad-x); background:var(--sheet); border:1px solid var(--line); border-radius:var(--r-card); font-family:var(--font); color:var(--ink)}
.ui-inset > :where(h1, h2, h3, h4, p, ul, ol){margin:0}
.ui-inset-quiet{background:var(--paper)}
.ui-inset-tint{background:var(--mode-tint); border-color:var(--mode-line)}
.ui-inset-row{flex-direction:row; align-items:center; gap:var(--gap-inline); min-height:var(--inset-row-h); padding-top:0; padding-bottom:0}
.ui-inset-row[aria-selected="true"]{background:var(--mode-tint); border-color:var(--mode-line)}
.ui-inset-row:focus-visible, .ui-inset-row.cursor-on{outline:var(--focus-w) solid var(--cell-cursor); outline-offset:calc(-1 * var(--focus-w))}
:is(a, button).ui-inset-row{cursor:pointer; font:inherit; color:inherit; text-align:left; text-decoration:none}

/* ---------- the note kit (ui/components/note.js; docs/specs/design-kit.md, sprint 2) ----------
   One note for the site: one line of help or status on the inset box, at --fs-small. quiet is the plain fact (the paper,
   --ink-2); warn a thing to know before acting (the note's yellow paper and its ink, the colours of Excel's own note);
   done a thing that went through (the verdict's tint and ink). A mark at the left, a quiet action at the right, the button
   kit's link or quiet button in the note's own ink. The empty state says a box has nothing in it yet, centred in it: the
   line, a sub line, a mark above (the cell mascot where AT-23 names it) and a button under it. */
.ui-note{flex-direction:row; align-items:center; gap:var(--gap-inline); margin:0; font-size:var(--fs-small); font-weight:var(--fw-semi); line-height:var(--lh-body); color:var(--ink-2); background:var(--paper)}
.ui-note-warn{color:var(--note-ink); background:var(--note); border-color:var(--note-edge); --mode-ink:var(--note-ink)}
.ui-note-done{color:var(--right-ink); background:var(--right-tint); border-color:var(--right-tint); --mode-ink:var(--right-ink)}
.ui-note-plain{display:flex; padding:0; background:none; margin-top:var(--s2)}   /* the plain tone: the note's grey line with no box, a short step under the controls it speaks for */
.ui-note-text{flex:1 1 auto; min-width:0}
.ui-note-mark{flex:none; display:inline-flex; align-items:center; gap:var(--s1); font-weight:var(--fw-bold)}
.ui-note > .ui-note-act{flex:none; margin-left:auto}
.ui-note-text a:not([class]){color:var(--mode-ink, var(--ink)); font-weight:var(--fw-bold)}   /* a link inside the line (the demo still's Open lesson 1.1.1) */
.ui-note[hidden], .ui-empty[hidden]{display:none}
/* a locked, empty or waiting state (stateRowHtml, UI-37 rule 4): one grey row on a hairline, its mark (the puzzled cell on an
   empty row, AT-29; a lock on a locked one), its line, a quiet button at its right */
.ui-empty{box-sizing:border-box; display:flex; align-items:center; gap:var(--s3); min-height:var(--row-list); padding:var(--s1) var(--s2); border-bottom:1px solid var(--grid); color:var(--ink-2)}
.ui-empty-line{margin:0; min-width:0; font-size:var(--fs-small); font-weight:var(--fw-semi); line-height:var(--lh-body)}
.ui-empty-sub{font-weight:var(--fw-body)}
.ui-empty-mark{flex:none; display:grid; place-items:center; line-height:0; color:var(--ink-2)}
.ui-empty-act{flex:none; margin-left:auto}
/* ---------- the pop (the menus thread's popHtml fills it): the floating shell over the page, the menu kit's numbers. A
   menu's rows carry their own side padding, so the shell has none at the sides. ---------- */
.ui-pop{box-sizing:border-box; padding:var(--s2) 0; background:var(--sheet); border:1px solid var(--line); border-radius:var(--r-card); box-shadow:var(--shadow-pop); font-family:var(--font); color:var(--ink)}
@media (prefers-reduced-motion: reduce){ .ui-btn, .btn2, .go, .pbar-line i{transition:none} html:root :is(.ui-btn, .btn2, .go):is(:active, .is-pressed){transform:none} }

/* ---------- the accordion (ui/components/accordion.js; the FAQ): a question a row, its answer under it ---------- */
.acc{display:flex; flex-direction:column; min-width:0}
.acc-item + .acc-item{border-top:1px solid var(--line)}
.acc .acc-h{margin:0; font:inherit}   /* over the legacy .page h3 */
.acc-q{display:flex; align-items:center; justify-content:space-between; gap:var(--gap-cluster); box-sizing:border-box; width:calc(100% + 2 * var(--s2)); min-height:var(--acc-q-h); margin:0 calc(-1 * var(--s2)); padding:var(--s2); border:0; border-radius:var(--r-btn); background:none; color:var(--ink); font-family:var(--font); font-size:var(--fs-body); font-weight:var(--fw-bold); line-height:var(--lh-body); text-align:left; cursor:pointer}
.acc-q:hover{background:var(--paper)}
.acc-q:focus-visible{outline:var(--focus-w) solid var(--cell-cursor); outline-offset:calc(-1 * var(--focus-w))}
.acc-chev{flex:none; color:var(--ink-2); transition:transform var(--d-menu) ease}   /* the set's chevron (.mk-chev, components/state-mark.js) */
.acc-item.open .acc-chev{transform:rotate(180deg)}
.acc-a{padding:0 0 var(--s3)}
.acc-a[hidden]{display:none}
.acc-a p{margin:0; max-width:var(--read-measure); font-size:var(--fs-body); font-weight:var(--fw-semi); line-height:var(--lh-read); color:var(--ink)}
.acc-a a{color:var(--learn-ink); font-weight:var(--fw-bold); text-decoration:none}
.acc-a a:hover{text-decoration:underline}
@media (prefers-reduced-motion: reduce){ .acc-chev{transition:none} }

/* ---------- the length fan (components/length-fan.js; the Rapid-fire design, 2026-10-13): a button that raises a row of
   keycaps over itself. No panel (Wolf: "I don't like the blocky white background and want the sub menu to be sleek"): the keys
   float on the page's own ground, each with its lift, and a thin halo of that ground (--lf-ground) covers a line of text
   behind them whole. The key under the focus is the one filled key, an Enter keycap hung under it; the length played last
   keeps the mode's tint while the focus is elsewhere. --lf is the mode it belongs to, with its ink, tint, label (--lf-on), hover and
   line (the palette pass: a bright lane's fill carries the ink, a thin stroke of it is its deeper line, 3 to 1 on the page). ---------- */
.lf{position:relative; min-width:0; display:flex; --lf-ground:var(--paper)}
.lf-go{position:relative}
.lf-go .ui-btn-trail{display:inline-grid; place-items:center; line-height:0}
/* open: the fill steps to its hover (its label holds) inside a doubled rim of its line, and the chevron flips */
.lf-fill .lf-go[aria-expanded="true"]{background:var(--primary-hover); border-color:var(--primary-line); box-shadow:inset 0 0 0 1px var(--primary-line)}
/* Practice's card: the quiet button in the mode's tint and edge; open darkens the edge and flips the chevron, nothing else */
.lf-tint .lf-go{background:var(--lf-tint); border:var(--bw-1-5) solid var(--lf-line); color:var(--lf-ink); font-weight:var(--fw-heavy)}
.lf-tint .lf-go:hover{background:var(--sheet)}
.lf-tint .lf-go[aria-expanded="true"]{border-color:var(--lf-ink)}
.lf-go:focus-visible{outline:var(--focus-w) solid var(--cell-cursor); outline-offset:var(--focus-off)}
/* the fan: over the button, centered on it (--lf-shift slides it when a short text unit would be cut), --lf-lift over its top */
.lf-fan{position:absolute; left:50%; bottom:calc(100% + var(--lf-lift, var(--lf-lift0))); translate:calc(-50% + var(--lf-shift, 0px)) 0; z-index:30;
  --lf-lift0:var(--s1); --lf-lift-max:calc(var(--s1) + var(--s3)); --lf-halo:var(--s1); border-radius:var(--r-btn)}
/* a line of text behind the keys: the page's own ground covers it whole (the placement says so); else the keys simply float */
.lf.lf-ground .lf-fan{background:var(--lf-ground); box-shadow:0 0 0 var(--lf-halo) var(--lf-ground)}
.lf-fan[hidden]{display:none}
.lf-keys{display:flex; gap:var(--lf-gap); padding-bottom:var(--lf-enter-room)}
/* a key: a real keycap (the mono face, the 3px bottom edge), one fixed width sized to "2 min", so nothing reflows */
.lf-key{position:relative; box-sizing:border-box; display:inline-flex; align-items:center; justify-content:center; width:var(--lf-key-w); height:var(--lf-key-h); padding:0;
  font-family:var(--mono); font-size:var(--fs-small); font-weight:var(--fw-bold); line-height:1; white-space:nowrap; text-decoration:none; font-variant-numeric:tabular-nums;
  color:var(--key-ink); background:var(--key-face); border:1px solid var(--key-rim); border-bottom-width:var(--key-edge); border-radius:var(--r-btn); box-shadow:var(--lf-shadow);
  transition:background var(--d-key), color var(--d-key), border-color var(--d-key), transform var(--d-key), opacity var(--d-key)}
.lf-key:hover{text-decoration:none}
.lf-key.lf-cur{background:var(--lf-tint); border-color:var(--lf-line); color:var(--lf-ink)}
.lf-key.lf-on{background:var(--lf); border-color:var(--lf-line); color:var(--lf-on)}
.lf-key.lf-on:hover{background:var(--lf-hover)}
.lf-key:focus-visible{outline:var(--focus-w) solid var(--cell-cursor); outline-offset:var(--focus-off)}
/* the Enter keycap: hung fully under the filled key, one pixel under its focus ring, so the key's edge and the ring stay whole */
.lf-key .lf-enter{display:none; position:absolute; left:50%; top:calc(100% + var(--focus-off) + var(--focus-w) + 1px); translate:-50% 0; box-sizing:border-box; height:var(--lf-enter-h); padding:0 var(--s1);
  --cap-fs:var(--fs-min); --cap-fw:var(--fw-semi)}
.lf-key.lf-on .lf-enter{display:inline-flex}
/* while the fan is open, its Enter is the page's only one: a primary button's own keycap (Home's Continue) steps back */
html[data-lf-open] .ui-btn:not(.lf-go) > .ui-cap{opacity:var(--key-dim)}
/* motion (fast and quiet): the keys fade up a step, the filled key first and the others one stagger step apart; the ground
   (when there is one) is whole from the first frame to the last, so a line it covers never shows through mid-fade */
.lf.open .lf-key{animation:lf-key-in var(--d-menu) cubic-bezier(.2,.8,.2,1) both; animation-delay:calc(var(--i, 0) * var(--lf-stagger))}
.lf.lf-closing .lf-key{animation:lf-out calc(var(--d-menu) * .7) ease-in both}
/* the pick presses in: the chosen key sinks and fills the mode's ink, its Enter goes; the other two dim and sink */
.lf.lf-picking .lf-key{transition:transform var(--d-menu) ease, opacity var(--d-menu) ease, background var(--d-menu), border-color var(--d-menu), color var(--d-menu); outline:none}
.lf.lf-picking .lf-enter{display:none}
.lf.lf-picking .lf-key.lf-press{transform:translateY(var(--bw-2)); border-bottom-width:1px; background:var(--lf-hover); border-color:var(--lf-line); color:var(--lf-on)}
.lf.lf-picking .lf-key:not(.lf-press){opacity:.3; transform:translateY(var(--s1))}
@keyframes lf-key-in{from{opacity:0; transform:translateY(var(--s1))}}
@keyframes lf-out{to{opacity:0; transform:translateY(var(--bw-2))}}
@keyframes lf-fade{from{opacity:0}}
/* Effects reduced: a fade, nothing moves. Effects off and the computer's reduced motion: in place, at once */
html[data-effects="reduced"] .lf.open .lf-key{animation-name:lf-fade}
html[data-effects="off"] :is(.lf-fan, .lf-key, .lf-go){animation:none !important; transition:none !important}
@media (prefers-reduced-motion: reduce){ :is(.lf-fan, .lf-key, .lf-go){animation:none !important; transition:none !important} }

/* ---------- #/styleguide (app/styleguide-page.js): the system on one page, laid out with its own primitives ---------- */
.sg{font-family:var(--font); color:var(--ink); padding-bottom:var(--gap-section)}
.sg-two{display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:var(--gap-stack); align-items:start}
.sg-kit{display:flex; flex-wrap:wrap; gap:var(--gap-stack); align-items:flex-start}   /* the menu kit's panel and card side by side (UI-31) */
.sg-code{font-family:var(--mono); font-size:var(--fs-key); color:var(--ink-2)}
.sg-grid{border-collapse:collapse; width:100%}
/* the bare table and its cells carry the sheet's look (app.css); these tables are the page's own */
.sg-grid th, .sg-grid td, .sg-scale th, .sg-scale td{height:auto; border:0; background:none; color:var(--ink); font-family:var(--font); font-size:var(--fs-small); overflow:visible; position:static}
.sg-grid th, .sg-grid td{padding:var(--s2) var(--s3); text-align:left; vertical-align:middle; border-bottom:1px solid var(--line); font-weight:var(--fw-semi)}
.sg-grid thead th{border-bottom:var(--bw-2) solid var(--ink)}
.sg-scale{border-collapse:collapse; width:100%}
.sg-scale th, .sg-scale td{padding:var(--s1) var(--s3) var(--s1) 0; text-align:left; vertical-align:middle; font-weight:var(--fw-semi)}
.sg-bar{display:block; height:var(--s3); background:var(--mode)}
.sg-type-s{display:block; line-height:var(--lh-tight); color:var(--ink); overflow-wrap:anywhere}
.sg-frame{padding:var(--gap-stack); border:1px dashed var(--edge)}
.sg-box{padding:var(--s2) var(--s3); background:var(--mode-tint); color:var(--mode-ink); font-weight:var(--fw-bold)}
.sg-prog{display:grid; grid-template-columns:var(--ref-key-col) minmax(0, 1fr); align-items:center; gap:var(--gap-cluster)}
.sg-chip{display:inline-flex; flex-direction:column; align-items:flex-start; gap:var(--s1)}
.sg-caps{display:flex; flex-wrap:wrap; align-items:center; gap:var(--gap-cluster)}   /* the Keycaps section's rows */
.sg-sentence{font-size:var(--fs-body); line-height:var(--lh-body)}
.sg-boxes{display:grid; grid-template-columns:repeat(auto-fill, minmax(min(100%, var(--sg-box-min)), 1fr)); gap:var(--gap-stack); align-items:start}
.sg-demo{display:flex; flex-direction:column; gap:var(--s2); min-width:0}
.sg-on-card{padding:var(--gap-stack); background:var(--sheet); border:1px dashed var(--edge)}
.sg-pop-row{display:flex; align-items:center; min-height:var(--inset-row-h); padding:0 var(--s3); font-size:var(--fs-body)}

/* ===================================================================================================================   Identity (docs/specs/identity.md; migration 0038): the tile and the nameplate drawn one way everywhere
   (components/nameplate.js), the account menu (components/account-menu.js), the claim card (components/claim-card.js)
   and the welcome-back card (components/welcome-back.js). Tokens only: --av-*, --d-claim-*,
   --d-welcome-drain.
   ========================================================================================================================== */
/* ---------- the tile: one rounded square on --chrome, sized by class; initials, the art, the guest, a locked icon ---------- */
.av{box-sizing:border-box; flex:none; display:inline-grid; place-items:center; width:var(--av); height:var(--av); border-radius:var(--r-btn); background:var(--chrome); color:var(--ink); line-height:0; overflow:hidden; font-size:var(--fs-min)}
.av-row{--av:var(--av-row)}
.av-md{--av:var(--av-md); font-size:var(--fs-small)}
.av-pick{--av:var(--av-pick); font-size:var(--fs-body)}
.av-lg{--av:var(--av-lg); font-size:var(--fs-head)}
.av-xl{--av:var(--av-xl); font-size:var(--fs-title)}
.av-ini{font-family:var(--font); font-weight:var(--fw-heavy); line-height:1; font-variant-numeric:tabular-nums}
/* the player's chip (AT-17): their initials on their colour (--pc-<id>, set inline as --chip and --chip-on by nameplate.js); a guest's the calm gray with a head and shoulders */
.av-chip{background:var(--chip, var(--pc-guest)); color:var(--chip-on, var(--pc-guest-on))}
.av-guest{--chip:var(--pc-guest); --chip-on:var(--pc-guest-on)}
.av-glyph{width:62%; height:62%}
/* ---------- the nameplate: tile, name, team tag, level chip, You or Private ---------- */
.np{display:inline-flex; align-items:center; gap:var(--s2); min-width:0; max-width:100%; vertical-align:middle}
.np-name{min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:var(--fw-bold); color:inherit; text-decoration:none}
a.np-name:hover{text-decoration:underline}
.np-chip{flex:none}
.am-np .np-name, .wb-np .np-name{font-size:var(--fs-item); font-weight:var(--fw-heavy)}
/* the menu's nameplate inside the kit's fixed panel width (--menu-panel-w, UI-31): the tile at the left, the name on its own
   line beside it (a long one wraps, never cut), the club and title tags on the line under the name and they wrap too, so
   no tag is ever cut to an ellipsis (rule 6) and the menu is as wide as its rows, never its longest name plus tags
   (Wolf 2026-10-26: "so wide horizontally just because ... fit to the longest text") */
.am-np{position:relative; display:flex; flex-wrap:wrap; align-items:center; gap:var(--s1) var(--s2); min-height:var(--av-md); max-width:100%; padding-left:calc(var(--av-md) + var(--s2))}
.am-np .av{position:absolute; left:0; top:0}
.am-np .np-name{flex:1 1 100%; white-space:normal; overflow-wrap:anywhere}
.am-np .ui-chip{max-width:100%}
.pp-np{gap:calc(var(--s5) * var(--k))}
.pp-np .np-name{font-size:var(--fs-hero); font-weight:var(--fw-heavy); line-height:1.1}
.am-dot{flex:none; display:inline-block; width:var(--hub-mark); height:var(--hub-mark); border-radius:50%; background:var(--edge)}
.am-dot.on{background:var(--learn)}

/* ---------- the account menu (components/account-menu.js): the menu kit's panel (ui/menu-kit.css, UI-31); here only what
   is its own ---------- */
.am-theme .dn{margin-left:auto}   /* the day and night row (UI-40): its word, the pill at the right as the status row's switch */

/* ---------- the claim card's own bits (the card itself is the menu kit's dialog): the chip, the live name line, the ideas ---------- */
.cl-chip{flex:none; display:flex}
.cl-line{margin:0; font-size:var(--fs-small); font-weight:var(--fw-semi); line-height:var(--lh-body); color:var(--ink-2)}
.cl-line-err{color:var(--red)}
.cl-ideas{display:flex; flex-wrap:wrap; gap:var(--s2)}
/* the colour picker on Your profile (AT-17; BG-32): two rows of chips with the player's initials, Color (the eight) over Finish (Plain,
   then the ladder, each on the colour you have now); the chosen one in each row ringed in the ink. A finish still locked is a quiet box
   with "Level n" and the finish itself as a bar along the foot */
.cpk-rows{display:flex; flex-direction:column; gap:var(--s2)}
.cpk-sub{display:grid; grid-template-columns:var(--pc-sub-w) 1fr; gap:var(--s3); align-items:center}
.cpk-sub-h{font-size:var(--fs-min); font-weight:var(--fw-bold); color:var(--learn-ink)}
.cpk-grid{display:flex; flex-wrap:wrap; gap:var(--s1)}
.cpk-lock{display:grid; place-items:center; padding:var(--s1); cursor:default}
.cpk-lock-box{position:relative; background:var(--sheet); border:1px dashed var(--edge); box-shadow:inset 0 calc(-1 * var(--pc-lock-bar)) 0 var(--chip); line-height:1.1; text-align:center}
.cpk-lock-box small{position:relative; padding:0 var(--s1) var(--pc-lock-bar); font-size:var(--fs-min); font-weight:var(--fw-bold); color:var(--ink-2)}
.cpk-lock-fin{box-shadow:none; overflow:hidden}
.cpk-lock-fin .cpk-foot{position:absolute; left:0; right:0; bottom:0; height:var(--pc-lock-bar); border-radius:0; border-width:0}
.cpk-lock-fin .cpk-foot.fin-rainbow{border:0; background:linear-gradient(90deg, var(--fin-rb-1), var(--fin-rb-2), var(--fin-rb-3), var(--fin-rb-4), var(--fin-rb-5))}
.pc-hint{display:inline-flex; align-items:center; gap:var(--s1); font-size:var(--fs-min); color:var(--ink-2)}
.pc-hint .ui-cap{--cap-fs:var(--fs-min)}

/* the finishes (BG-32, Fable round 2): a class on the chip over the player's own colour, so every finish works with every colour on every
   theme. The patterns are dark lines (--fin-line; themes.js FIN_PATTERN holds the initials at 4.5 over them); the foils carry their own
   letter colour; the rainbow is a ring. Silver's and gold's light and the ring move only where .fin-live is set (your own chip in the top
   bar and on Your profile), never on a board, never under reduced motion or with effects off: there the light rests on one corner */
@property --fin-ang{syntax:'<angle>'; inherits:false; initial-value:0deg}
.av-chip.fin-stripe{background-image:repeating-linear-gradient(135deg, transparent 0 var(--fin-stripe-gap), var(--fin-line) var(--fin-stripe-gap) calc(var(--fin-stripe-gap) + var(--fin-stripe-w)))}
.av-chip.fin-dots{background-image:radial-gradient(circle, var(--fin-line) 0 var(--fin-dot-r), transparent var(--fin-dot-soft)); background-size:var(--fin-dot-step) var(--fin-dot-step); background-position:calc(var(--fin-dot-step) / 2) calc(var(--fin-dot-step) / 2)}
.av-chip.fin-check{background-image:repeating-linear-gradient(0deg, transparent 0 var(--fin-check-step), var(--fin-line) var(--fin-check-step) calc(2 * var(--fin-check-step))), repeating-linear-gradient(90deg, transparent 0 var(--fin-check-step), var(--fin-line) var(--fin-check-step) calc(2 * var(--fin-check-step)))}
.av-chip.fin-bronze{background-color:var(--fin-bronze-3); color:var(--fin-bronze-on); background-image:linear-gradient(135deg, var(--fin-bronze-1), var(--fin-bronze-2) 48%, var(--fin-bronze-3))}
.av-chip.fin-silver{background-color:var(--fin-silver-3); color:var(--fin-silver-on); background-image:linear-gradient(135deg, var(--fin-silver-1), var(--fin-silver-2) 52%, var(--fin-silver-3)); box-shadow:inset 0 0 0 1px var(--line)}
.av-chip.fin-gold{background-color:var(--fin-gold-3); color:var(--fin-gold-on); background-image:linear-gradient(135deg, var(--fin-gold-1), var(--fin-gold-2) 52%, var(--fin-gold-3))}
.av-chip.fin-rainbow{border:var(--fin-ring) solid transparent; background:linear-gradient(var(--chip), var(--chip)) padding-box, conic-gradient(from var(--fin-ang), var(--fin-rb-1), var(--fin-rb-2), var(--fin-rb-3), var(--fin-rb-4), var(--fin-rb-5), var(--fin-rb-1)) border-box}
.av-lg.fin-rainbow, .av-xl.fin-rainbow{border-width:var(--fin-ring-lg)}
.fin-live:is(.fin-gold, .fin-silver){position:relative}
.fin-live:is(.fin-gold, .fin-silver)::after{content:''; position:absolute; inset:0; background:linear-gradient(115deg, transparent 38%, var(--fin-sheen) 50%, transparent 62%); transform:translateX(-100%); animation:finSheen var(--d-fin-sheen) ease-in-out infinite; pointer-events:none}
.fin-live.fin-rainbow{animation:finRing var(--d-fin-ring) linear infinite}
@keyframes finSheen{0%{transform:translateX(-100%)} 40%{transform:translateX(100%)} 100%{transform:translateX(100%)}}
@keyframes finRing{to{--fin-ang:360deg}}
@media (prefers-reduced-motion: reduce){ .fin-live:is(.fin-gold, .fin-silver)::after{animation:none; transform:translateX(var(--fin-sheen-rest))} .fin-live.fin-rainbow{animation:none} }
html:is([data-effects="off"], [data-effects="reduced"]) .fin-live:is(.fin-gold, .fin-silver)::after{animation:none; transform:translateX(var(--fin-sheen-rest))}
html:is([data-effects="off"], [data-effects="reduced"]) .fin-live.fin-rainbow{animation:none}

/* the day and night switch (BG-35): a pill with a sun and a moon in the top bar (Alt, M) and the workspace's title bar; the knob sits on
   the side that is on and moves over --d-switch; with reduced motion it jumps */
.dn{position:relative; flex:none; display:inline-flex; align-items:center; padding:0; border:0; background:none; cursor:pointer; color:var(--ink-2); border-radius:calc(var(--dn-h) / 2)}
.dn-pill{position:relative; display:block; width:var(--dn-w); height:var(--dn-h); box-sizing:border-box; border-radius:calc(var(--dn-h) / 2); background:var(--chrome); border:1px solid var(--line)}
.dn-pill i{position:absolute; top:calc(var(--dn-knob-inset) - 1px); left:calc(var(--dn-knob-inset) - 1px); width:calc(var(--dn-h) - 2 * var(--dn-knob-inset)); height:calc(var(--dn-h) - 2 * var(--dn-knob-inset)); border-radius:50%; background:var(--ink); transition:left var(--d-switch)}
.dn-pill svg{position:absolute; top:50%; transform:translateY(-50%); width:var(--dn-glyph); height:var(--dn-glyph); color:var(--ink-2)}
.dn-pill .dn-sun{left:var(--dn-glyph-inset)} .dn-pill .dn-moon{right:var(--dn-glyph-inset)}
.dn[aria-checked="true"] .dn-pill i{left:calc(100% - var(--dn-h) + var(--dn-knob-inset) - 1px)}
.dn:hover .dn-pill{border-color:var(--edge)}
.dn:focus-visible{outline:var(--focus-w) solid var(--cell-cursor); outline-offset:var(--focus-off)}
@media (prefers-reduced-motion: reduce){ .dn-pill i{transition:none} }
html[data-effects="off"] .dn-pill i{transition:none}
/* the one "Show my name on boards" block (ui/components/public-name.js, ID-5): the claim card, Your profile, Settings */
.pub-name{display:flex; flex-direction:column; gap:var(--s1); min-width:0; width:100%}
.pub-name-row{display:flex; align-items:center; justify-content:space-between; gap:var(--s4)}
.pub-name-label{font-size:var(--fs-body); font-weight:var(--fw-bold); color:var(--ink)}
.pub-name-line{margin:0; font-size:var(--fs-small); line-height:1.35; color:var(--ink-2)}
.pub-name-note{margin:0}

/* ---------- the welcome-back card: under the chip, opaque, a drain that pauses on hover or focus ---------- */
.wb{position:fixed; top:var(--top-h); right:var(--page-gutter); z-index:74; margin-top:var(--s2); overflow:hidden; border:1px solid var(--edge); --pop-shadow:var(--shadow-pop); animation:wb-in var(--d-claim-in) cubic-bezier(.2,.8,.2,1) both}   /* the kit's pop-out card at sm (PS-41): its width, air, gap and corner are the kit's; it hangs from the account chip with the menus' edge and shadow */
@keyframes wb-in{from{transform:translateY(calc(-1 * var(--s2)))}}
.wb.wb-still{animation:none}
.wb-title{margin:0; font-size:var(--fs-label); font-weight:var(--fw-bold); color:var(--learn-ink)}
.wb-level{margin:0; font-size:var(--fs-small)}
.wb-status{display:flex; align-items:center; gap:var(--s2); margin:0; font-size:var(--fs-small); font-weight:var(--fw-semi)}
.wb-merge{margin:0; padding-top:var(--s2); border-top:1px solid var(--line); align-self:stretch; font-size:var(--fs-small); font-weight:var(--fw-semi); color:var(--ink-2)}
.wb-drain{position:absolute; left:0; right:0; bottom:0; display:block; height:var(--drain-h); background:var(--line)}
.wb-drain i{display:block; height:100%; background:var(--learn); transform-origin:left; animation:wb-drain var(--d-welcome-drain) linear forwards}
.wb.wb-paused .wb-drain i{animation-play-state:paused}
@keyframes wb-drain{to{transform:scaleX(0)}}
@media (prefers-reduced-motion: reduce){ .wb{animation:none} }


/* (in the build these are lines 315 to 317 edited in place, on-fill to mode-on and mode-ink to mode-hover; the :not() here only keeps the
   appendix from overriding the gold rules) */
/* Round 2: a filled button wears its LINE as its 1px rim, so a bright door keeps a 3 to 1 edge on the page in every light theme (High
   Contrast's tangerine door was 2.3 to 1 with no edge); on the brand, and on every dark theme, the line is the fill and nothing shows */
:is(.ui-btn-primary, .btn2-primary, .go):where(:not(.ui-btn-gold, .go-gold)){color:var(--primary-on); border-color:var(--primary-line)}
@media (hover:hover){ :is(.ui-btn-primary, .btn2-primary, .go):where(:not(.ui-btn-gold, .go-gold)):hover{background:var(--primary-hover); border-color:var(--primary-line)} }
:is(.ui-btn-primary, .btn2-primary, .go):where(:not(.ui-btn-gold, .go-gold)) > .ui-cap{--cap-ink:var(--primary-on); --cap-rim:var(--primary-on)}
/* the site's KeyTips: the same dark keycap as the Ribbon's, ringed in a mode line. The colour rule (keytips.js TIP_MODES; Wolf,
   2026-10-26): the ring is the colour of what the letter opens, the same on every page: Home, Learn and Reference the brand
   green, Practice and the drills blue, Leaderboards and the Daily orange, Arcade teal, Challenges violet, Full Access and the
   certificate gold; a letter that opens nothing of a colour takes the page's own line (body[data-mode]) */
.kt-tip{background:var(--keytip); color:var(--on-keytip); border:1px solid var(--mode-line); border-bottom-width:var(--kt-bottom); box-shadow:0 0 0 var(--kt-ring) var(--sheet), var(--kt-shadow)}
.kt-tip[data-mode="learn"]{--mode-line:var(--learn-line)}
.kt-tip[data-mode="drills"]{--mode-line:var(--drills-line)}
.kt-tip[data-mode="daily"]{--mode-line:var(--daily-line)}
.kt-tip[data-mode="rapid"]{--mode-line:var(--rapid-line)}
.kt-tip[data-mode="challenges"]{--mode-line:var(--challenges-line)}
.kt-tip[data-mode="clock"]{--mode-line:var(--clock-ink)}
/* Round 2: on a selected or filled control (the top bar's current page, an open gear) the keycap takes the inverse face, so it reads as a
   key and not as a tab of the pill (the H under Workbook's dark Home pill was the pill's own colour) */
.kt-tip.kt-inv{background:var(--on-keytip); color:var(--keytip); border-color:var(--edge)}
/* the Alt key in the top bar while the KeyTips are on is a key held down: it drops 2px and its lower edge collapses (eye) */
body.keytips-on .tb-alt .ui-cap{--cap-face:var(--chrome); --cap-ink:var(--ink); --cap-rim:var(--edge); --cap-foot:1px; transform:translateY(var(--bw-2))}

.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)}
/* the gold button outlined (UI-40): while the top bar's one filled button is the Daily's, Get Full Access keeps its gold as an edge, its ink and its words */
.ui-btn-secondary.ui-btn-gold{background:var(--clock-tint); border-color:var(--clock); color:var(--clock-ink)}   /* amber is a surface, never text: its tint and its edge, the ink's words */
@media (hover:hover){ .ui-btn-secondary.ui-btn-gold:hover{background:var(--clock-tint); border-color:var(--clock-on); box-shadow:none} }

/* the "and N more" line as the control that opens it: words in the card's own type, underlined on hover, a keycap hint (Alt, M) once Alt is taught */
/* the hotkey rows (app/learn-page.js keyRowsHtml): what it does on the left, its caps on the right, one shortcut a row on
   hairlines (UI-37 rule 6: never a coloured row); the loading door tints its own (.door-keys) */
.lk-list{list-style:none; margin:0; padding:0; display:flex; flex-direction:column}
.lk-row{display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; column-gap:var(--s4); row-gap:var(--s1); min-height:var(--row-list); padding:var(--s1) var(--s2); border-bottom:1px solid var(--grid); box-sizing:border-box}
.lk-what{flex:1 1 var(--lk-what-min); min-width:0; font-size:var(--fs-body); font-weight:var(--fw-bold); line-height:1.3}
.lk-keys{margin-left:auto; max-width:100%; display:flex; flex-wrap:wrap; justify-content:flex-end; align-items:center; row-gap:var(--s1)}
.lk-or{margin:0 var(--s2); color:var(--ink-2); font-weight:var(--fw-bold)}
.lk-more{align-self:flex-start; padding:0 var(--s3); font-size:var(--fs-small); font-weight:var(--fw-bold); color:var(--ink-2); line-height:1.3}
.lk-more .ui-btn-link{font-size:inherit; font-weight:inherit; color:inherit; cursor:pointer}
.lk-more .ui-btn-link:hover, .lk-more .ui-btn-link:focus-visible{color:var(--ink); text-decoration:underline; text-underline-offset:var(--bw-2)}
.lk-more .ui-btn-link[aria-expanded="true"]{color:var(--ink)}

/* the shorter Pricing page (proposal behind ?pricing=short): the links under the one line of terms */
.pc-s-links{display:flex; flex-wrap:wrap; gap:var(--s2) var(--s6); margin:var(--s2) 0 0}

/* Skip to content (ui/components/skip-link.js): off screen until Tab reaches it, then at the top left over the top bar */
.ui-btn.skip-link{position:fixed; top:var(--s2); left:var(--s2); z-index:90; transform:translateY(calc(-100% - var(--s4)))}
.ui-btn.skip-link:focus-visible{transform:none}
#root:focus{outline:none}
/* ---------- the weekly goal (BG-22, ui/components/week-goal.js): a ring of four segments and its words ---------- */
.wg{display:flex; align-items:center; gap:var(--s3); min-width:0}
.wg-ring{position:relative; flex:none; width:var(--wg-ring); height:var(--wg-ring); display:grid; place-items:center}
.wg-sm .wg-ring{width:var(--wg-ring-sm); height:var(--wg-ring-sm)}
.wg-ring svg{position:absolute; inset:0; width:100%; height:100%}
.wg-seg{fill:none; stroke:var(--wg-track); stroke-width:var(--wg-stroke); stroke-linecap:round}
.wg-seg.on{stroke:var(--wg-fill)}
.wg-done .wg-seg.on{stroke:var(--wg-done)}
.wg-n{font-family:var(--mono); font-size:var(--fs-small); font-weight:var(--fw-heavy); color:var(--ink)}
.wg-text{display:flex; flex-direction:column; min-width:0}
.wg-title{font-size:var(--fs-body); font-weight:var(--fw-heavy); color:var(--ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.wg-line{font-size:var(--fs-small); color:var(--ink-2)}

/* ---- the line marks (ui/components/line-icon.js, ui/art.js LINE_OF; UI-85 (1), Wolf 2026-11-14 "go with one line family"):
        one 1.75 px stroke at every size (the stroke does not scale with the box), round ends, no fills. .ui-li is the one grey
        at rest; .art-flat (a tab's, a rail's or a head's mark) takes the colour of the words beside it ---- */
.ui-li, .art-flat{display:block; flex:none; width:var(--tpl-mark); height:var(--tpl-mark); fill:none; stroke:currentColor; stroke-width:1.75; stroke-linecap:round; stroke-linejoin:round}
.ui-li{color:var(--ink-2)}
:is(.ui-li, .art-flat) path{vector-effect:non-scaling-stroke}
.ui-li-sm{width:calc(var(--s4) * var(--k)); height:calc(var(--s4) * var(--k))}
.ui-btn .ui-li{color:inherit}
.ui-btn .ui-li{width:calc(var(--s4) * var(--k)); height:calc(var(--s4) * var(--k))}
.mk-row.mk-danger .mk-name{color:var(--red)}

/* ---------- the sheet thumbnail (ui/components/sheet-thumb.js; UI-107, the study's A4 round): a still of a drill's or a lesson's
   finished sheet in the landing demo's frame (front.css .lp-demo-in > .dp: the line, the card corner, the lift, the sheet's white).
   The slot is one size (--thumb-w by --thumb-h, growing with --k) so the card's words never move; the frame hugs the whole cells
   inside it; the sheet keeps the light sheet's tokens in every theme (tokens.css lists .ui-thumb-frame with the game's grid), and
   its edge is the theme's own line (--thumb-edge, read outside that scope). The replay slot's marker sits outside the frame,
   at its bottom right corner, hung in the gap beside the slot so the card's words keep that room (no words sit that low) ---------- */
.ui-thumb{--thumb-edge:var(--line); flex:none; display:flex; align-items:center; box-sizing:border-box;
  width:calc(var(--thumb-w) * var(--thumb-k)); height:calc(var(--thumb-h) * var(--thumb-k))}
.ui-thumb-at{position:relative; display:inline-flex}
.ui-thumb-in{position:relative; display:block}   /* the sheet and its edges, one box, so the edges sit on the cells whatever air the frame keeps */
.ui-thumb-frame{position:relative; display:block; box-sizing:border-box; max-width:calc(var(--thumb-w) * var(--thumb-k)); max-height:calc(var(--thumb-h) * var(--thumb-k)); overflow:hidden; border:1px solid var(--thumb-edge); border-radius:var(--r-card); box-shadow:var(--lift); background:var(--sheet)}
/* design-guard: keep the sheet's cells: the still draws the game grid's own cell text and padding (sheet-view.js CELL_FS, CELL_PAD) at its zoom, and a cell's own font size as the grid does */
.ui-thumb-sheet{border-collapse:collapse; table-layout:fixed; font-family:var(--cellfont); font-size:calc(var(--wb-cell-fs) * var(--tz)); line-height:1.15; color:var(--ink); background:var(--sheet)}
.ui-thumb-sheet td{position:relative; box-sizing:border-box; padding:0 calc(var(--wb-cell-pad) * var(--tz)); border:1px solid transparent; text-align:right; white-space:nowrap; overflow:hidden; vertical-align:middle}
.ui-thumb-sheet td[style*="--th-fz"]{font-size:var(--th-fz)}
/* design-guard: end */
.ui-thumb-sheet.th-grid td{border-color:var(--grid)}
.ui-thumb-sheet tr:first-child td{border-top-color:transparent}
.ui-thumb-sheet td:first-child{border-left-color:transparent}
.ui-thumb-sheet .th-pad{visibility:hidden}
/* the green range edge over the cells a drill changed (UI-118, UI-112's look): one rectangle over the cells, never a cell border */
.ui-thumb-edge{position:absolute; box-sizing:border-box; border:var(--bw-1-5) solid var(--cell-cursor); pointer-events:none}
.ui-thumb-edge[hidden]{display:none}
.ui-thumb-sheet .th-t{text-align:left} .ui-thumb-sheet .th-e{text-align:center}
.ui-thumb-sheet .th-al{text-align:left} .ui-thumb-sheet .th-ac{text-align:center} .ui-thumb-sheet .th-ar{text-align:right}
.ui-thumb-sheet .th-w{white-space:pre-line}
.ui-thumb-sheet .th-b{font-weight:700} .ui-thumb-sheet .th-i{font-style:italic}
.ui-thumb-sheet .th-u{text-decoration:underline} .ui-thumb-sheet .th-s{text-decoration:line-through}
.ui-thumb-sheet :is(.th-bt, .th-bb, .th-bl, .th-br, .th-ball, .th-bdbl)::after{content:''; position:absolute; inset:-1px; pointer-events:none; border:0 solid var(--ink)}
.ui-thumb-sheet .th-bt::after{border-top-width:var(--bw-2)} .ui-thumb-sheet .th-bb::after{border-bottom-width:var(--bw-2)}
.ui-thumb-sheet .th-bl::after{border-left-width:var(--bw-2)} .ui-thumb-sheet .th-br::after{border-right-width:var(--bw-2)}
.ui-thumb-sheet .th-ball::after{border-width:var(--bw-2)}
.ui-thumb-sheet .th-bdbl::after{border-bottom:var(--bw-3) double var(--ink)}
.ui-thumb-sheet .th-thick.th-bt::after{border-top-width:var(--bw-3)} .ui-thumb-sheet .th-thick.th-bb::after{border-bottom-width:var(--bw-3)}
.ui-thumb-sheet .th-f-blue{background:var(--xl-fill-blue); color:var(--xl-fill-blue-ink)} .ui-thumb-sheet .th-f-gray{background:var(--xl-fill-gray); color:var(--xl-fill-gray-ink)}
.ui-thumb-sheet .th-f-yellow{background:var(--xl-fill-yellow); color:var(--xl-fill-yellow-ink)} .ui-thumb-sheet .th-f-green{background:var(--xl-fill-green); color:var(--xl-fill-green-ink)}
.ui-thumb-sheet .th-f-red{background:var(--xl-fill-red); color:var(--xl-fill-red-ink)}
.ui-thumb-sheet .th-fc-black{color:var(--xl-fc-black)} .ui-thumb-sheet .th-fc-darkgray{color:var(--xl-fc-darkgray)} .ui-thumb-sheet .th-fc-gray{color:var(--xl-fc-gray)}
.ui-thumb-sheet .th-fc-white{color:var(--xl-fc-white)} .ui-thumb-sheet .th-fc-blue{color:var(--xl-fc-blue)} .ui-thumb-sheet .th-fc-red{color:var(--xl-fc-red)}
.ui-thumb-sheet .th-fc-orange{color:var(--xl-fc-orange)} .ui-thumb-sheet .th-fc-yellow{color:var(--xl-fc-yellow)} .ui-thumb-sheet .th-fc-green{color:var(--xl-fc-green)}
.ui-thumb-sheet .th-fc-purple{color:var(--xl-fc-purple)}
