/* app2/ui/workspace.css — the workspace of the interface standard (screenplay 3.0 "The workspace",
   "The task card", "Five ways the sheet talks", "The timed run", "Lesson complete"; M90, M91, M93).
   The chrome (ui/components/chrome.js), the sheet marks (sheet-marks.js), the dock (dock.js) with its two bodies, the
   lesson pane (lesson-pane.js) and the timed run's (run-panel.js), and the task card (task-card.js, now only the landing's
   demo and Reference's Show me). Tokens only (ui/tokens.css): no hex value,
   pixel size or duration appears here. Loaded last, so it wins where an older stylesheet disagrees. */

/* ---------- the workspace takes the window: no rail, no gutters, no footer ---------- */
body[data-route="lesson"] > .app, body[data-route="drill"] > .app, body[data-route="due"] > .app{padding:0; margin:0; max-width:none}
body[data-route="lesson"] > #footMount, body[data-route="drill"] > #footMount, body[data-route="due"] > #footMount{display:none}
body[data-route="lesson"], body[data-route="drill"], body[data-route="due"]{overflow:hidden}

/* ---------- one scale on big windows (docs/specs/lesson-pane.md, "Big screens"): the workspace and every surface it
   mounts on the page (the door, the .pd-backdrop dialogs, #ribbonDrop, the confirm dialog, the leave prompt, the toast) carry
   .ws-scaled and draw at --ws-z (tokens.css: 1 under 1800 by 880 and off the workspace). The workspace still takes the window:
   its height is the window's over z. Rects meet offsets only through ui/ws-scale.js toLocal ---------- */
.ws-scaled{zoom:var(--ws-z)}
.wsc{display:flex; flex-direction:column; height:calc(100vh / var(--ws-z)); width:100%; background:var(--sheet); color:var(--ink); font-family:var(--font); font-size:var(--fs-body); line-height:var(--lh-body); position:relative}
.wsc-sr{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap}

/* ---------- the title bar, as Excel's: Exit and the Quick Access Toolbar at the left, the title centred, the goal and More at the right ---------- */
.wsc-top{position:relative; flex:none; z-index:30}
/* R10: the title bar carries the run's mode color, as Excel's carries its green: the lesson green, the drills blue, the challenge violet, the Daily Race's orange; every word and mark on it is on-fill */
.wsc{--ws-bar:var(--learn); --ws-bar-ink:var(--on-fill); --ws-bar-dim:color-mix(in srgb, var(--on-fill) 82%, transparent); --ws-bar-hover:color-mix(in srgb, var(--on-fill) 16%, transparent); --ws-bar-line:color-mix(in srgb, var(--on-fill) 60%, transparent); --ws-bar-edge:color-mix(in srgb, var(--on-fill) 80%, transparent)}   /* a control's frame in the bar: 3 to 1 on every mode's fill */
.wsc[data-kind="challenge"]{--ws-bar:var(--challenges)}
.wsc[data-kind="drill"]{--ws-bar:var(--drills)}
.wsc[data-kind="daily"]{--ws-bar:var(--daily)}
/* the title sits on the window's axis (the close-out card's axis too: close-out.md): the two button groups take equal tracks */
.wsc-bar{position:relative; z-index:13; height:var(--titlebar-h); display:grid; grid-template-columns:minmax(auto, 1fr) auto minmax(auto, 1fr); align-items:stretch; background:var(--ws-bar); color:var(--ws-bar-ink); font-family:var(--font)}
.wsc-left, .wsc-right{display:flex; align-items:stretch; min-width:0}
.wsc-left{min-width:max-content}   /* the title keeps to the window's centre until the left cluster reaches it, then sits just after it, never over the Windows and Mac switch */
.wsc-right{justify-content:flex-end; padding-right:var(--s2)}
.wsc-bar button{font:inherit; color:inherit; background:transparent; border:0; cursor:pointer; display:inline-flex; align-items:center; gap:var(--s2); padding:0 var(--s3)}
/* the ways out, in words (Wolf, 2026-10-09): Exit is a plain button at the left; Full screen, or Exit full screen with its
   Esc while in it, at the right where Excel keeps its window buttons. Both are one look: a framed button in the bar */
.wsc-bar .wsc-exit, .wsc-bar .wsc-full{color:var(--ws-bar-ink); font-size:var(--fs-label); font-weight:var(--fw-semi); white-space:nowrap; margin:var(--s1) 0; padding:0 var(--s2); border:1px solid var(--ws-bar-edge); border-radius:var(--r-btn); background:transparent}
.wsc-bar .wsc-exit{margin-left:var(--s2); margin-right:var(--s1)}
.wsc-bar .wsc-full{margin-left:var(--s2)}
.wsc-exit svg, .wsc-full svg{width:var(--s4); height:var(--s4); flex:none}
.wsc-full[hidden], .wsc-restart[hidden]{display:none}
/* the key layout, in sight but quiet (Wolf, 2026-10-09: picked once, changed rarely): Windows | Mac with no frame, the
   one in use in full ink on a faint tint, the other dimmed; it never pulls the eye from the sheet */
.wsc-bar .wsc-keys{align-self:center; flex:none; height:calc(var(--titlebar-h) - var(--s2)); box-sizing:border-box; margin:0 var(--s1); background:transparent; border-color:transparent}
.wsc-bar .wsc-keys .seg-btn{height:100%; padding:0 var(--s2); font-size:var(--fs-label); font-weight:var(--fw-body); color:var(--ws-bar-dim); border-radius:var(--r-btn)}
.wsc-bar .wsc-keys .seg-btn + .seg-btn{border-left:0}
.wsc-bar .wsc-keys .seg-btn.on, .wsc-bar .wsc-keys .seg-btn.on:hover{background:var(--ink); color:var(--sheet); font-weight:var(--fw-semi)}   /* the site's segmented control (controls 2d): the ink's ground, the sheet's word */
.wsc-title{justify-self:center; max-width:min(calc(46vw / var(--ws-z)), 100%); min-width:0; margin:var(--s1) 0; border-radius:var(--r-btn)}
.wsc-title-text{flex:0 1 auto; min-width:0; font-family:var(--font); font-weight:var(--fw-bold); font-size:var(--fs-label); color:var(--ws-bar-ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
/* the place line gives way before the title does ("Lesson 3 of 5 in …") */
.wsc-sub{flex:0 100 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; font-family:var(--font); font-size:var(--fs-label); color:var(--ws-bar-dim); white-space:nowrap; margin-left:var(--s2)}
.wsc-title svg{width:var(--s3); height:var(--s3); color:var(--ws-bar-dim); flex:none}
.wsc-bar button:hover{background:var(--ws-bar-hover)}
.wsc-bar button:focus-visible{outline:var(--focus-w) solid var(--cell-cursor); outline-offset:calc(-1 * var(--focus-w))}   /* a control that fills the bar's height: inside it */
/* the title bar's, the menus' and the sheet tabs' keys are the keycap kit's caps (components/chrome.js): md, sm beside the tabs */
.wsc-progress{display:inline-flex; align-items:center; gap:var(--s3); padding:0 var(--s3); min-width:0}
.wsc-segs, .tc-segs{display:inline-flex; gap:var(--s1)}
.wsc-segs i, .tc-segs i{display:inline-block; width:var(--s6); height:var(--s1); background:var(--line); border-radius:1px}
.wsc-segs i{width:var(--s4)}
.wsc-segs i.done, .tc-segs i.done{background:var(--mode-line)}
.wsc-segs i.now, .tc-segs i.now{background:transparent; outline:1px solid var(--mode-line); outline-offset:-1px}
.wsc-fact{font-weight:var(--fw-bold); font-size:var(--fs-label); color:var(--ws-bar-ink); white-space:nowrap}
.wsc-bar .wsc-segs i{background:var(--ws-bar-line); opacity:.55}
.wsc-bar .wsc-segs i.done{background:var(--ws-bar-ink); opacity:1}
.wsc-bar .wsc-segs i.now{background:transparent; outline:1px solid var(--ws-bar-ink); opacity:1}
.wsc-icon{color:var(--ws-bar-ink)}
.wsc-icon svg{width:var(--s5); height:var(--s5)}
.wsc-icon[aria-expanded="true"]{background:var(--ws-bar-hover)}
/* a narrower window gives the lesson's title the room first: the goal segments go (the count stays), then the keys */
@media (max-width: 1366px){ .wsc-segs{display:none} }
@media (max-width: 1600px){ .wsc[data-full="1"] .wsc-segs{display:none} }
@media (max-width: 1180px){ .wsc-exit .wsc-exit-keys{display:none} .wsc:not([data-full="1"]) .wsc-full-word{display:none} }

/* the Quick Access Toolbar, in the title bar where Excel keeps it */
.wsc-qat{flex:none; display:flex; align-items:center; gap:var(--s1); padding:0 var(--s2)}
.wsc-qat .rf-qat{display:inline-flex; border:0; padding:0; margin:0; align-self:center}
.wsc-qat .rf-qbtn{width:var(--s6); height:var(--s6); color:var(--ws-bar-ink); background:transparent; border-color:transparent; border-radius:var(--r-btn)}
.wsc-qat .rf-qbtn:hover{background:var(--ws-bar-hover); border-color:transparent}
.wsc-qat .ri-key{position:absolute; top:calc(-1 * var(--s1)); right:calc(-1 * var(--s1)); font-family:'Key Legend',var(--mono); font-size:var(--fs-min); line-height:1; color:var(--on-fill); background:var(--xl-green); border-radius:1px; padding:0 var(--s1)}

/* ---------- the Ribbon, as Windows Excel draws it: the tab row from the window's left edge, File in green, a light body ---------- */
.wsc .ribbon-slot{position:relative; flex:none; height:calc(var(--xl-tabs-h) + var(--ribbon-groups-h)); --rib-h:calc(var(--xl-tabs-h) + var(--ribbon-groups-h)); z-index:12; background:var(--xl-body); border-bottom:1px solid var(--xl-line)}
.wsc .ribbon-slot[data-ribbon="tabs"]{height:var(--xl-tabs-h)}
.wsc .ribbon-slot > .ribbon{position:absolute; top:0; left:0; right:0}
.wsc .ribbon.ribbon-full{height:calc(var(--xl-tabs-h) + var(--ribbon-groups-h)); font-family:var(--xl-font); background:var(--xl-body); color:var(--xl-ink); border:0; border-radius:0}
.wsc .ribbon.ribbon-full.show{background-image:none}   /* its KeyTips state never tints it (3.0) */
.wsc .ribbon-slot.rib-collapsed .ribbon.ribbon-full{height:var(--xl-tabs-h)}
.wsc .ribbon-slot[data-ribbon="tabs"] .ribbon.ribbon-full:not(.rib-collapsed-self){box-shadow:none}
.wsc .ribbon-slot[data-ribbon="tabs"]:not(.rib-collapsed) .ribbon.ribbon-full{box-shadow:var(--shadow-float)}   /* Alt drops the groups over the sheet */
.wsc .ribbon-slot .rf-tabs, html[data-density] .wsc .ribbon-slot .rf-tabs{height:var(--xl-tabs-h); box-sizing:border-box; align-items:stretch; padding:0 var(--s2); gap:0; border-bottom:0; background:var(--xl-bar)}
.wsc .rf-tab, html[data-density] .wsc .rf-tab{font-family:var(--xl-font); font-size:var(--xl-fs-tab); font-weight:var(--fw-body); color:var(--xl-ink); border-radius:0; padding:0 var(--s3); margin:0; border:0; background:transparent; display:inline-flex; align-items:center; position:relative}
.wsc .rf-tab:hover{color:var(--xl-ink); background:var(--xl-hover)}
/* the tab in hand (controls 2d, one look for the site's tabs, the Ribbon's and the sheet's): the word in the ink at 700 over a 2px underline in the cursor's green */
.wsc .rf-tab.on, html[data-density] .wsc .rf-tab.on{color:var(--ink); background:var(--xl-body); font-weight:var(--fw-bold); margin:0; padding:0 var(--s3); border:0}
.wsc .rf-tab.on::after{content:''; position:absolute; left:var(--s3); right:var(--s3); bottom:0; height:var(--bw-2); border-radius:var(--bw-2) var(--bw-2) 0 0; background:var(--cell-cursor)}
/* a tab the run does not use is disabled (2d): the --ink-3 word, no hover, no pointer */
.wsc .rf-tab.dead{color:var(--ink-3); cursor:default}
.wsc .rf-tab.dead:hover{background:transparent}
html[data-density] .wsc .rf-tab.rf-file, .wsc .rf-tab.rf-file, .wsc .rf-tab.rf-file.dead, .wsc .rf-tab.rf-file.on{color:var(--xl-ink); background:transparent; font-weight:var(--fw-body)}   /* File reads as Excel 365's: a plain tab, never dimmed with the tabs a run doesn't use */
.wsc .rf-tab.rf-file::after{display:none}
html[data-density] .wsc .rf-tab.rf-file:hover, .wsc .rf-tab.rf-file:hover{background:var(--xl-hover); color:var(--xl-ink)}
.wsc .rf-tab k{bottom:calc(-1 * var(--s2))}
.wsc .rf-tools, .wsc .rf-tabs .rf-qat{display:none}   /* the toolbar lives in the title bar; the layout toggle is a setting */
.wsc .rf-body{background:var(--xl-body)}
.wsc .rf-grp{border-right-color:var(--xl-line)}
.wsc .rf-gname, html[data-density] .wsc .rf-gname{font-family:var(--xl-font); font-size:var(--xl-fs-group); font-weight:var(--fw-body); color:var(--xl-ink-2); text-transform:none; letter-spacing:0}
.wsc .rf-btn, .wsc .rf-box, html[data-density] .wsc .rf-btn, html[data-density] .wsc .rf-box{font-family:var(--xl-font); font-size:var(--xl-fs); color:var(--xl-ink); border-radius:var(--bw-2)}
.wsc .rf-btn .rf-lbl, .wsc .rf-btn .rf-ico{color:var(--xl-ink)}
/* Excel's proportions: three rows of small buttons and the group's name fit the body's height */
.wsc .rf-body, html[data-density] .wsc .rf-body{padding:1px var(--s1) 0}
.wsc .rf-cols, html[data-density] .wsc .rf-cols{gap:var(--bw-2)}
.wsc .rf-col, html[data-density] .wsc .rf-col{gap:1px}
.wsc .rf-btn:not(.big), .wsc .rf-box, html[data-density] .wsc .rf-btn:not(.big), html[data-density] .wsc .rf-box{height:var(--xl-btn-h)}
.wsc .rf-btn.big, html[data-density] .wsc .rf-btn.big{height:var(--xl-big-h)}
/* a big button fills the three small rows and its icon, gap and two-line label fit inside it at every density, so a
   two-line label ("Freeze Panes", "Calculation Options") never prints over the group name under it (review 2026-11-11, row 14) */
.wsc .rf-btn.big, html[data-density] .wsc .rf-btn.big, .wsc .rf-split.big .rf-face, html[data-density] .wsc .rf-split.big .rf-face{padding-top:var(--bw-3); gap:var(--bw-2)}
.wsc .rf-btn.big .rf-ico, html[data-density] .wsc .rf-btn.big .rf-ico, .wsc .rf-split.big .rf-face .rf-ico, html[data-density] .wsc .rf-split.big .rf-face .rf-ico{width:var(--s6); height:var(--s6)}
.wsc .rf-btn.big .rf-ico svg, html[data-density] .wsc .rf-btn.big .rf-ico svg, .wsc .rf-split.big .rf-face .rf-ico svg, html[data-density] .wsc .rf-split.big .rf-face .rf-ico svg{width:calc(var(--s6) - var(--bw-2)); height:calc(var(--s6) - var(--bw-2))}
.wsc .rf-btn.big .rf-lbl, html[data-density] .wsc .rf-btn.big .rf-lbl, .wsc .rf-split.big .rf-face .rf-lbl, html[data-density] .wsc .rf-split.big .rf-face .rf-lbl{line-height:var(--lh-tight)}
/* a big split: the icon's face on top, the label with its arrow below; together they fill the three rows, never past the group name */
.wsc .rf-split.big .rf-face, html[data-density] .wsc .rf-split.big .rf-face{height:calc(var(--bw-3) + var(--s6) + var(--bw-2)); padding-bottom:0}
.wsc .rf-split.big .rf-arrow, html[data-density] .wsc .rf-split.big .rf-arrow{height:calc(var(--xl-big-h) - var(--bw-3) - var(--s6) - var(--bw-2)); flex-direction:column; justify-content:flex-start; align-items:center; padding:0 var(--bw-2); white-space:normal; text-align:center}
.wsc .rf-split.big .rf-arrow .rf-lbl, html[data-density] .wsc .rf-split.big .rf-arrow .rf-lbl{font-size:var(--xl-fs-small); line-height:var(--lh-tight)}
.wsc .rf-split.big .rf-arrow .rf-ln{display:block; white-space:nowrap}
.wsc .rf-btn.big > .ri-key, .wsc .rf-split.big > .ri-key{top:calc(var(--bw-3) + var(--s6) - var(--kt-rib)); bottom:auto}   /* the KeyTip ends with the icon, so it never covers the label under it */
.wsc .rf-gname, html[data-density] .wsc .rf-gname{padding-top:0; padding-bottom:var(--bw-2)}
.wsc .rf-btn.big .rf-lbl, .wsc .rf-split.big .rf-face .rf-lbl, html[data-density] .wsc .rf-btn.big .rf-lbl, html[data-density] .wsc .rf-split.big .rf-face .rf-lbl{font-size:var(--xl-fs-small)}
.wsc .rf-btn:hover{background:var(--xl-hover); border-color:transparent}
.wsc .rf-btn.on{background:var(--xl-press); border-color:var(--xl-green); color:var(--xl-ink)}
.wsc .rf-btn.open, .wsc .rf-split.open .rf-arrow{background:var(--xl-hover); border-color:var(--xl-line)}
.wsc .rf-box{background:var(--sheet); border-color:var(--xl-line)}
.wsc .rf-btn .rf-caret, .wsc .rf-box .rf-caret{color:var(--xl-ink-2)}
.wsc .ribbon-full .ri-key{font-family:'Key Legend',var(--mono); color:var(--on-fill); background:var(--xl-ink); border-color:var(--xl-ink)}
.wsc .rf-tab k{background:var(--xl-ink); color:var(--on-fill)}
/* the workspace's two shells (C4; tokens.css --ws-*): one menu (the Ribbon's drop-downs, the menus at a cell, autocomplete) and
   one dialog (every Excel dialog and the Excel-look alert). Corner, edge, shadow and air are the tokens'; no motion, no scrim */
.rdrop, td.editing .ac-list{border:1px solid var(--ws-line); border-radius:var(--ws-r); box-shadow:var(--ws-shadow-menu); padding:var(--s1)}
.pd-box{border:1px solid var(--ws-line); border-radius:var(--ws-r); box-shadow:var(--ws-shadow-dlg)}
.pd-group, .wb-body, .pd-foot{padding:var(--s3)}
body[data-route="lesson"] .rdrop, body[data-route="drill"] .rdrop, body[data-route="due"] .rdrop{font-family:var(--xl-font); background:var(--xl-body); color:var(--xl-ink)}
body[data-route="lesson"] .rdrop-item, body[data-route="drill"] .rdrop-item, body[data-route="due"] .rdrop-item{font-family:var(--xl-font); font-size:var(--xl-fs); color:var(--xl-ink)}
/* step 2a, the workspace row (controls review 2b; UI-70): every Ribbon menu row is 28 tall, --s2 at the sides and between its
   parts, 12px Hanken Grotesk: the KeyTip badge, the icon, the label, then a submenu's chevron or a tick. Hover is the ink at 8%,
   the arrows' highlight (.hi) the ink at 14% (2d). The badge is the Ribbon's own Alt KeyTip, so one mark means one idea */
.rdrop-item, .wb-card .rdrop-item{height:var(--ws-row-h); box-sizing:border-box; padding:0 var(--s2); gap:var(--s2); border-radius:var(--kt-r); font-family:var(--xl-font); font-size:var(--xl-fs); font-weight:var(--fw-body); line-height:1; color:var(--xl-ink)}
.rdrop-item:hover, .wb-card .rdrop-item:hover{background:var(--xl-hover)}
.rdrop-item.hi, .rdrop-item.hi:hover{background:var(--sel-grey)}
/* a disabled row (2d, everywhere): the --ink-3 word, its KeyTip quiet, no hover, no pointer (the old fade took the whole row to 45%) */
.rdrop .rdrop-item.dis, .rdrop .rdrop-item.dis .rdrop-ico{color:var(--ink-3); opacity:1; cursor:default}
.rdrop-item.dis:hover{background:transparent}
.rdrop .rdrop-item.dis .ri-key{background:var(--chrome); color:var(--ink-3); border-color:var(--line); box-shadow:none}
.rdrop-item .rdrop-ico{width:var(--s4); height:var(--s4)}
.rdrop-item .rdrop-chev{margin-left:auto; padding-left:var(--s2); color:var(--xl-ink-2)}
.rdrop-item.on::after{content:'\2713'; margin-left:auto; padding-left:var(--s2); color:var(--xl-ink)}
.rdrop-item.on .rdrop-lbl{color:var(--xl-ink)}
.rdrop .rdrop-cap{font-family:var(--xl-font); font-size:var(--xl-fs-small); font-weight:var(--fw-semi); color:var(--ink-2); padding:var(--s1) var(--s2)}
.rdrop .rdrop-item .ri-key, .wb-card .rdrop-item .ri-key{position:static; transform:none; color:var(--on-keytip); background:var(--keytip); border:1px solid var(--ws-mode-line, var(--learn-line)); border-bottom-width:var(--kt-bottom); border-radius:var(--kt-r); box-shadow:0 0 0 1px var(--sheet), var(--kt-shadow); font-family:'Key Legend',var(--mono); font-weight:var(--fw-bold); font-size:var(--xl-kt-fs); line-height:1; min-width:var(--kt-rib); height:var(--kt-rib); padding:0 var(--bw-3); box-sizing:border-box; display:inline-grid; place-items:center; width:max-content; flex:none}
/* controls step 4, the in-cell controls (LW-35, controls review C12; ui/cell-controls.js): the menus at a cell are the workspace
   menu (2a: content wide, --ws-menu-min to --ws-menu-max); the in-cell list and autocomplete use the
   in-cell row (2b: --ws-cell-row-h, no badge, no icon). The buttons Excel draws on the sheet sit in the scroll box (.ic-layer) */
.ic-menu{max-width:var(--ws-menu-max); box-sizing:border-box; min-width:max(var(--ws-menu-min), var(--ic-anchor-w, 0px)); font-family:var(--xl-font); background:var(--xl-body); color:var(--xl-ink)}
.ic-menu.ic-list{max-height:calc(var(--ws-cell-row-h) * 8 + var(--s1) * 2); overflow-y:auto}
.rdrop-item.ic-cellrow{height:var(--ws-cell-row-h); white-space:nowrap}
.rdrop-item.ic-cellrow .rdrop-lbl{overflow:hidden; text-overflow:ellipsis}
.ic-layer{position:absolute; left:0; top:0; width:0; height:0; z-index:6}
.ic-dv, .ic-smart, .ic-ctrl, .ic-fillbox{position:absolute; box-sizing:border-box}
.ic-dv[hidden], .ic-smart[hidden], .ic-ctrl[hidden], .ic-fillbox[hidden]{display:none}
/* the validation list's arrow: Excel's small grey button against the cell's right edge, the row's height */
.ic-dv{display:inline-grid; place-items:center; width:var(--s4); background:var(--chrome); border:1px solid var(--edge); color:var(--ink); cursor:default}
.ic-dv:hover{background:var(--xl-hover)}
.ic-dv svg, .ic-smart svg{width:var(--s3); height:var(--s3)}
/* Paste Options and Auto Fill Options: the clipboard or the cells with a drop arrow, at the range's bottom right; (Ctrl) beside Paste's */
.ic-smart{display:inline-flex; align-items:center; height:var(--ws-cell-row-h); padding:0 var(--bw-2); gap:var(--bw-2); background:var(--sheet); border:1px solid var(--edge); border-radius:var(--kt-r); color:var(--ink); cursor:default; box-shadow:var(--ws-shadow-menu)}
.ic-smart .ic-ico svg{width:var(--s4); height:var(--s4)}
.ic-smart .ic-ico, .ic-smart .ic-caret{display:inline-grid; place-items:center}
.ic-smart:hover, .ic-smart.open{background:var(--xl-hover)}
.ic-ctrl{display:inline-flex; align-items:center; height:var(--ws-cell-row-h); padding:0 var(--s1); font-family:var(--xl-font); font-size:var(--xl-fs-small); color:var(--ink-2); white-space:nowrap; pointer-events:none}
/* the fill handle's drag: a grey outline round the cells the fill will cover; the handle reads as Excel's thin cross */
.ic-fillbox{border:1px dashed var(--edge); pointer-events:none}
.gridwrap td.fh::after{cursor:crosshair}

/* step 2a, the workspace dialog (controls review 2a, C7; UI-69: Excel's layout, our drawing): one shell for every Excel dialog,
   a 32px title bar with the name and an X, Hanken Grotesk at the Ribbon's 12px throughout (the mono face only on keys, cell
   references and number codes), three widths, one 24px control and one 28px button. The current control wears the kit's one
   ring (.ws-cur, UI-71); an access letter is underlined thick enough to read at 12px (u.ak; Wolf: "the underline is the key") */
.pd-box{font-family:var(--xl-font); font-size:var(--xl-fs); color:var(--xl-ink)}
.pd-box.pd-narrow{width:var(--ws-dlg-sm)}
.pd-box.pd-mid{width:var(--ws-dlg-md)}
.pd-box.pd-wide{width:var(--ws-dlg-lg)}
.pd-box.pd-narrow, .pd-box.pd-mid, .pd-box.pd-wide{max-width:calc(100vw / var(--ws-z) - var(--s4))}
.pd-title{height:var(--titlebar-h); box-sizing:border-box; padding:0 var(--s1) 0 var(--s3); display:flex; align-items:center; justify-content:space-between; gap:var(--s2); border-bottom:1px solid var(--ws-line); font-family:var(--xl-font); font-size:var(--xl-fs); font-weight:var(--fw-semi); color:var(--xl-ink)}
.pd-title:empty{display:flex}
.pd-cap{flex:1 1 auto; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.pd-x{display:inline-grid; place-items:center; flex:none; width:var(--ws-ctl-h); height:var(--ws-ctl-h); border-radius:var(--kt-r); color:var(--xl-ink-2); cursor:pointer}
.pd-x svg{width:var(--s3); height:var(--s3)}
.pd-x:hover{background:var(--xl-hover); color:var(--xl-ink)}
.pd-box .pd-btn{display:inline-flex; align-items:center; justify-content:center; box-sizing:border-box; height:var(--ws-row-h); padding:0 var(--s3); font-family:var(--xl-font); font-size:var(--xl-fs); font-weight:var(--fw-body); color:var(--xl-ink); white-space:nowrap}
/* the label runs as text (its underlined letter inline, no flex gap splits the word); the keycap sits one step off it */
.pd-box .pd-btn > kbd{margin-left:var(--s2)}
.pd-box .pd-btn.ok{font-weight:var(--fw-semi)}
.pd-box .pd-btn.dis{color:var(--ink-2)}
.pd-box .ps-tab, .pd-box .od-combo, .pd-box .wb-body, .pd-box .od-page{font-family:var(--xl-font)}
.pd-box .ps-tab, .pd-box .od-row, .pd-box .od-item, .pd-box .od-caplbl, .pd-box .od-sect, .pd-box .gt-ref label, .pd-box .od-page, .pd-box .od-combo{font-size:var(--xl-fs)}
.pd-box .od-row{min-height:var(--ws-ctl-h)}
.pd-box .od-field, .pd-box .od-combo{height:var(--ws-ctl-h); box-sizing:border-box}
.pd-box .pd-radio{display:inline-block; flex:none; width:var(--s3); height:var(--s3); box-sizing:border-box; border:1px solid var(--edge); border-radius:50%; background:var(--sheet)}
.pd-box .pd-radio.on{border-color:var(--cell-cursor); background:var(--cell-cursor); box-shadow:inset 0 0 0 var(--bw-2) var(--sheet)}
u.ak{text-decoration-line:underline; text-decoration-thickness:var(--ws-ul-w); text-underline-offset:var(--ws-ul-off); text-decoration-skip-ink:none}
.pd-box .ws-cur{outline:var(--focus-w) solid var(--cell-cursor); outline-offset:var(--focus-off)}
.pd-box .od-row.ws-cur{outline-offset:0}
.ws-stops .foc:not(.ws-cur){outline:none}
.ws-stops .od-field:not(.ws-cur) .od-caret{visibility:hidden}

/* the lesson menu grows from the title; More from its button (the menu moment) */
.wsc-menu{position:absolute; top:var(--titlebar-h); left:var(--s12); min-width:calc(var(--panel-w) + var(--s12) * 2); background:var(--sheet); border-radius:var(--r-card); box-shadow:var(--shadow-float); padding:var(--s2); z-index:40; transform-origin:top center; animation:wscMenu var(--d-menu) ease-out}
.wsc-menu-more{left:auto; right:var(--s2); min-width:calc(var(--side-col) - var(--s12)); transform-origin:top right}
.wsc-menu[hidden]{display:none}
@keyframes wscMenu{from{opacity:0; transform:scale(.96)} to{opacity:1; transform:none}}
.wsc-item{display:flex; align-items:center; gap:var(--s3); width:100%; padding:var(--s3) var(--s3); border-radius:var(--r-btn); font:inherit; font-size:var(--fs-small); color:var(--ink); text-decoration:none; background:transparent; border:0; cursor:pointer; text-align:left}
.wsc-fine{margin:var(--s2) 0 0; padding:var(--s2) var(--s3) var(--s1); border-top:1px solid var(--line); font-size:var(--fs-min); color:var(--ink-2)}
.wsc-item:hover{background:var(--chrome)}
.wsc-item.on{background:var(--mode-tint); font-weight:var(--fw-bold)}
.wsc-item.cursor-on{outline-offset:calc(-1 * var(--focus-w))}
/* More is the site kit's menu (controls 2d, C13): its highlighted row is the kit row's keyboard state, the hover's ground and the cursor's bar at the left edge */
.wsc-menu-more .wsc-item.cursor-on{outline:none; background:var(--chrome); box-shadow:inset var(--focus-w) 0 0 var(--cell-cursor)}
.wsc-menu-more .wsc-item.cursor-on::after{content:none}
.wsc-menu-more .wsc-item:focus-visible{outline:none}
.wsc-num{font-family:var(--mono); font-size:var(--fs-min); color:var(--ink-2); min-width:var(--s8)}
.wsc-item-title{flex:1 1 auto}
.wsc-item-right{font-size:var(--fs-label); font-weight:var(--fw-semi); color:var(--mode-ink)}
.wsc-item-key{margin-left:auto; --cap-ink:var(--ink-2)}
.wsc-menu-foot{display:flex; justify-content:space-between; align-items:center; gap:var(--s3); padding:var(--s3) var(--s3) var(--s1); border-top:1px solid var(--line); margin-top:var(--s2); font-size:var(--fs-label); color:var(--ink-2)}
.wsc-foot-k{display:inline-flex; align-items:center; gap:var(--s2)}
/* the one-line tip after going full screen: under the title bar's own full-screen control at the right, on the Ribbon's tab row,
   never over the sheet rows a task names */
.wsc-hint{position:absolute; top:calc(var(--titlebar-h) + var(--s1)); right:var(--s3); z-index:35; background:var(--ws-tip-bg); color:var(--ws-tip-ink); font-weight:var(--fw-semi); font-size:var(--fs-label); padding:var(--s2) var(--s4); border-radius:var(--r-btn); box-shadow:var(--shadow-float)}
.wsc-hint[hidden]{display:none}
/* a spare Esc's hint (UI-93) sits under the Exit button, the control it names */
.wsc-hint[data-at="exit"]{right:auto; left:var(--s2)}

/* ---------- the quiet formula bar, the sheet, and the one strip at its foot ---------- */
.wsc-main{flex:1 1 auto; min-height:0; display:flex; align-items:stretch}
.wsc-stage{flex:1 1 auto; min-width:0; min-height:0; display:flex; flex-direction:column; position:relative; outline:none}
.wsc-stage:focus, .wsc-stage:focus-visible, .wsc-stage[tabindex]:focus-visible{outline:none}
.wsc-sheet{flex:1 1 auto; min-height:0; display:flex; flex-direction:column}
.wsc-sheet > .sheet-view, .wsc-sheet.sheet-view{flex:1 1 auto}
.wsc .fbar{font-family:var(--mono); font-size:var(--fs-label); background:var(--sheet); border-bottom:1px solid var(--line)}
.wsc .namebox{color:var(--xl-ink); background:var(--sheet); font-family:var(--mono); font-weight:var(--fw-semi); font-size:var(--xl-fs-namebox); min-width:calc(var(--s12) * 2); display:flex; align-items:center; border-right:1px solid var(--xl-line)}
.wsc .fx{color:var(--ink-2); font-family:var(--font)}
.wsc .fcontent{color:var(--ink)}
.wsc .fcontent.isfx{color:var(--ink)}
.wsc .fcontent.empty{color:var(--edge)}
.wsc .gridwrap{position:relative}
/* Excel's foot: the sheet tabs at the left, the status at the right, one row */
.wsc-foot{flex:none; height:var(--foot-h); display:flex; align-items:stretch; background:var(--xl-bar); border-top:1px solid var(--xl-line); font-family:var(--xl-font); min-width:0}
.wsc-tabs{flex:0 1 auto; min-width:0; display:flex}
.wsc .wb-tabs{height:auto; align-self:stretch; background:transparent; border-top:0; padding:0 var(--s2); align-items:stretch; gap:0; font-family:var(--xl-font)}
.wsc .wb-tab, html[data-density] .wsc .wb-tabs .wb-tab{font-family:var(--xl-font); font-size:var(--xl-fs-tab); font-weight:var(--fw-body); color:var(--xl-ink); background:transparent; border:0; border-right:1px solid var(--xl-line); border-radius:0; display:inline-flex; align-items:center; padding:0 var(--s4); position:relative}
.wsc .wb-tab:hover{background:var(--xl-hover)}
.wsc .wb-tab.cur{color:var(--ink); background:var(--sheet); font-weight:var(--fw-bold)}   /* the sheet in hand: the tab's look (2d) */
.wsc .wb-tab.cur::after{content:''; position:absolute; left:var(--s3); right:var(--s3); bottom:0; height:var(--bw-2); border-radius:var(--bw-2) var(--bw-2) 0 0; background:var(--cell-cursor)}
.wsc .wb-tab.grp{background:var(--xl-press)}
.wsc .wb-add{align-self:center; margin-left:var(--s2); color:var(--xl-ink-2); background:transparent; border-color:var(--xl-line)}
.wsc .wb-lead{display:none}
.wsc-sheetkeys{flex:none; display:flex; align-items:center; gap:var(--s1); padding:0 var(--s3); font-size:var(--fs-min); color:var(--xl-ink-2); white-space:nowrap; border-left:1px solid var(--xl-line)}
.wsc-sheetkeys[hidden]{display:none}
.wsc-sk-label{margin-right:var(--s1)}
.wsc-sk-full{font:inherit; font-size:var(--fs-min); color:var(--xl-green-ink); background:transparent; border:1px solid var(--xl-line); border-radius:var(--r-btn); padding:1px var(--s2); margin-left:var(--s2); cursor:pointer}
.wsc-sk-full:hover{background:var(--xl-hover)}
.wsc-status{flex:1 1 auto; min-width:0; display:flex}
.wsc .sbar{flex:1 1 auto; min-width:0; border-top:0; font-family:var(--xl-font); font-size:var(--fs-min); background:transparent; color:var(--xl-ink-2); min-height:0; height:auto; align-self:stretch; padding:0 var(--s3); position:relative}
.wsc .sbar .sb-mode{color:var(--xl-ink); margin-left:var(--s2); order:2}
.wsc .sbar .sb-fill{order:1}
.wsc .sbar .sb-group{order:3}
.wsc .sbar .sb-stats{order:4}
/* the zoom, as a figure that is live: the sheet's zoom (Ctrl+Alt and + or -, View › Zoom), and a click puts it back to 100% (View › 100%) */
.wsc .sbar .sb-zoom{order:6; font:inherit; font-size:var(--fs-min); font-variant-numeric:tabular-nums; color:var(--xl-ink); background:transparent; border:1px solid transparent; border-radius:var(--r-btn); padding:0 var(--s2); margin:0; cursor:pointer}
.wsc .sbar .sb-zoom:hover{background:var(--xl-hover); border-color:var(--xl-line)}
/* a Save answers on the strip: Saved (or that this run keeps no draft), for --d-sb-saved, beside the mode word */
.wsc .sbar .sb-note{order:3; color:var(--xl-green-ink); margin-left:var(--s2); white-space:nowrap}
.wsc .sbar .sb-note:empty{display:none}
.wsc .sbar .sb-stats{overflow:hidden}
/* a status toast floats over the sheet just above the strip, never on it */
body[data-route="lesson"] #hkToast, body[data-route="due"] #hkToast, body[data-route="drill"] #hkToast{bottom:calc(var(--ws-foot-h) + var(--s3))}
/* over the dock's foot (toast.js sets its place): it wraps inside the pane's column, never over the sheet */
#hkToast.hk-toast-dock{border-radius:var(--r-card); white-space:normal; text-align:center; margin-bottom:var(--s2); width:max-content; box-sizing:border-box}
@media (prefers-reduced-motion: reduce){ .wsc-menu{animation:none} }

/* ---------- where you are: Excel's cursor, thicker, and the headers of the rows and columns it holds ---------- */
.wsc td.active{outline:var(--cursor-cell-w) solid var(--cell-cursor); outline-offset:calc(-1 * var(--bw-2))}
.wsc td.active.spill .sphi{outline:var(--cursor-cell-w) solid var(--cell-cursor); outline-offset:calc(-1 * var(--bw-2))}
.wsc .sel-edge{border-width:var(--sel-edge-w)}
.wsc td.fh::after{width:var(--s2); height:var(--s2); left:auto; top:auto; right:calc(-1 * var(--bw-2)); bottom:calc(-1 * var(--bw-2)); border:1px solid var(--sheet)}
.wsc :is(#grid, .grid-rh) th.hd-on{background:var(--xl-hdr); color:var(--xl-hdr-ink); font-weight:var(--fw-bold)}
.wsc :is(#grid, .grid-rh) tr.hdr th.hd-on{box-shadow:inset 0 calc(-1 * var(--bw-2)) 0 var(--cell-cursor)}
.wsc :is(#grid, .grid-rh) th.rowhdr.hd-on{box-shadow:inset calc(-1 * var(--bw-2)) 0 0 var(--cell-cursor)}
/* the ping: a ring that grows out of the active cell after a goal lands and when the window comes back (the cursor-ping moment) */
.sm-ping{border:var(--cursor-cell-w) solid var(--cell-cursor); border-radius:var(--bw-2); opacity:0; z-index:8}
.sm-ping.m-cursor-ping{animation:smPing var(--d-ping) ease-out}
.sm-ping.m-cursor-ping.m-fade{animation:smPingFade var(--d-ping) ease-out}
@keyframes smPing{0%{opacity:1; transform:scale(1)} 100%{opacity:0; transform:scale(2.4)}}
@keyframes smPingFade{0%{opacity:1} 100%{opacity:0}}
/* the target off the screen: a pill at the edge of the sheet with its address and the way to go */
.sm-addr{display:inline-flex; align-items:center; gap:var(--s1); width:auto; height:auto; font-family:var(--mono); font-weight:var(--fw-bold); font-size:var(--fs-min); line-height:1; color:var(--on-fill); background:var(--learn); border-radius:var(--r-btn); padding:var(--s1) var(--s2); box-shadow:var(--shadow-float); z-index:9; white-space:nowrap}

/* ---------- the focus veil: the window lost the keyboard; a click or any key gives it back without touching a cell ---------- */
.wsc-veil{position:absolute; inset:0; z-index:25; display:grid; place-items:center; background:color-mix(in srgb, var(--ink) 18%, transparent); cursor:pointer}
.wsc-veil[hidden]{display:none}
.wsc-veil-box{border:var(--cursor-w) solid var(--learn); --pop-shadow:var(--shadow-float)}   /* the kit's pop-out card at md (PS-41): its width, air, gap and corner are the kit's */
.wsc-veil-title{font-size:var(--fs-panel); font-weight:var(--fw-bold); line-height:1.35}
.wsc-veil-line{font-size:var(--fs-small); color:var(--ink-2)}
.wsc-veil-where{font-size:var(--fs-small); color:var(--ink-2)}
.wsc-veil-where .wsc-veil-addr{font-family:var(--mono); color:var(--learn-ink)}

/* ---------- the task card ----------
   Retired in the workspace (the dock talks there); it stays for the landing's demo and Reference's Show me (ui/demo-player.js):
   a mode-colored head strip with the goal count, a mode-colored edge, a lift that sets it off a white grid */
.tc{position:absolute; z-index:20; width:var(--card-w); background:var(--sheet); color:var(--ink); border:var(--cursor-w) solid var(--mode-line); border-radius:var(--r-card); box-shadow:var(--card-halo), var(--shadow-card); padding:0 var(--s5) var(--s3); box-sizing:border-box; display:flex; flex-direction:column; gap:var(--s3); overflow:auto; transition:left var(--d-card) ease-out, top var(--d-card) ease-out; font-family:var(--font)}
.tc[hidden]{display:none}
.tc::before{content:''; position:absolute; width:var(--s3); height:var(--s3); background:var(--sheet); border:var(--cursor-w) solid var(--mode-line); transform:rotate(45deg); display:none}
.tc[data-pointer="left"]::before{display:block; left:calc(-1 * var(--s2)); top:calc(var(--tc-at) - var(--s2)); border-top:0; border-right:0}
.tc[data-pointer="right"]::before{display:block; right:calc(-1 * var(--s2)); top:calc(var(--tc-at) - var(--s2)); border-bottom:0; border-left:0}
.tc[data-pointer="top"]::before{display:block; top:calc(-1 * var(--s2)); left:calc(var(--tc-at) - var(--s2)); border-bottom:0; border-right:0}
.tc[data-pointer="bottom"]::before{display:block; bottom:calc(-1 * var(--s2)); left:calc(var(--tc-at) - var(--s2)); border-top:0; border-left:0}
/* a pointer inside a corner's end gap (its target in that corner, the card unable to move off it: B1 as the first row in view, LW-28)
   squares that corner, so the pointer's base lies on a straight edge (task-card.js cardPointer, POINTER_TIGHT) */
.tc[data-corner="tl"], .tc[data-corner="tl"] .tc-head{border-top-left-radius:0}
.tc[data-corner="tr"], .tc[data-corner="tr"] .tc-head{border-top-right-radius:0}
.tc[data-corner="bl"]{border-bottom-left-radius:0}
.tc[data-corner="br"]{border-bottom-right-radius:0}
.tc-head{display:flex; align-items:center; justify-content:space-between; gap:var(--s3); margin:0 calc(-1 * var(--s5)); padding:var(--card-head-pad) var(--s5); background:var(--mode); color:var(--on-fill); font-size:var(--fs-label); font-weight:var(--fw-bold); position:sticky; top:0; z-index:1}
.tc[data-pointer="top"]::before{background:var(--mode)}
.tc-head .tc-segs i{background:color-mix(in srgb, var(--on-fill) 38%, transparent)}
.tc-head .tc-segs i.done{background:var(--on-fill)}
.tc-head .tc-segs i.now{background:transparent; outline-color:var(--on-fill)}
.tc-segs{flex:0 1 auto; min-width:0; overflow:hidden}   /* the segments give way first: "Goal 2 of 10" always shows whole */
.tc-segs i{width:var(--s5); flex:0 1 var(--s5); min-width:var(--s1)}
.tc-count{white-space:nowrap; flex:none}
.tc-goal{font-size:var(--fs-panel); font-weight:var(--fw-bold); line-height:1.35; color:var(--ink)}
.tc-goal, .tc-teach, .tc-intro, .tc-keys, .tc-type, .tc-live{overflow-wrap:anywhere; min-width:0}   /* a long formula breaks inside the card, never past its edge */
.tc-teach{font-size:var(--fs-small); color:var(--ink-2); line-height:var(--lh-body)}
.tc-intro{font-size:var(--fs-small); color:var(--learn-ink); line-height:var(--lh-body); padding-bottom:var(--s2); border-bottom:1px solid var(--line)}
.tc-keys{display:flex; flex-wrap:wrap; gap:var(--s2); align-items:center}
.tc-key{transition:background var(--d-key), color var(--d-key), transform var(--d-key)}   /* the kit's cap (components/task-card.js): lg on the route, md elsewhere */
.tc-key.on{--cap-face:var(--learn); --cap-ink:var(--on-fill); --cap-rim:var(--learn-ink)}
.tc-key.next{outline:var(--cursor-w) solid var(--learn); outline-offset:1px}
.tc-rep{font-size:var(--fs-min); font-weight:var(--fw-body); margin-left:var(--s1)}
/* a step of the route: its keycaps (components/chord.js), a run's count, Excel's sheet key's note on hotkey.gg's own, and
   the › to the next step; the ringed cap's outline keeps clear of the + */
.tc-keys{--chord-gap:var(--s2)}
.tc-step{display:inline-flex; align-items:center; gap:var(--s2); min-width:0}
.tc-step-aside{flex:1 1 auto}
.tc-alias{flex:1 1 0; min-width:var(--s8); font-size:var(--fs-min); line-height:1.3; color:var(--ink-2); overflow-wrap:normal}
.tc-more{font-size:var(--fs-min); color:var(--ink-2); align-self:center}
.tc-type{font-size:var(--fs-label); color:var(--ink-2)}
.tc-type.on{color:var(--learn-ink); font-weight:var(--fw-semi)}
.tc-live{font-size:var(--fs-small); font-weight:var(--fw-semi); color:var(--learn-ink); flex:1 1 auto; min-width:0; display:flex; align-items:center; gap:var(--s2)}
.tc-live-done, .tc-live-clean, .tc-live-works{color:var(--learn-ink)}
.tc-live .tc-tick{margin-right:0; flex:none}
.tc-live-wrong{color:var(--red)}
.tc-live-stuck, .tc-live-mouse, .tc-live-demo{color:var(--ink-2); font-weight:var(--fw-body)}
.tc-live-try{color:var(--ink); font-weight:var(--fw-semi)}   /* the gentle line after a pause off the route: never red */
.tc-live-near{color:var(--ink); font-weight:var(--fw-semi)}  /* why the goal has not landed (near-miss.js): never red */
.tc-exits{display:flex; flex-wrap:wrap; gap:var(--s2)}
.tc-exit{display:inline-flex; align-items:center; gap:var(--s1); font:inherit; font-size:var(--fs-label); font-weight:var(--fw-semi); color:var(--ink); background:var(--chrome); border:1px solid var(--line); border-radius:var(--r-btn); padding:var(--s1) var(--s2); cursor:pointer}
.tc-exit span{margin-left:var(--s1)}
.tc-exit:hover{background:var(--sheet)}
.tc-foot{display:flex; justify-content:space-between; align-items:center; gap:var(--s3); font-size:var(--fs-label); color:var(--ink-2)}
.tc-foot-k{display:inline-flex; align-items:center; gap:var(--s2); flex:none}
.tc-ring-help .tc-foot-k .tc-key{outline:var(--cursor-w) solid var(--learn); outline-offset:1px; animation:tcRing var(--d-streak) ease-in-out 3}
@keyframes tcRing{50%{outline-color:transparent}}
.tc[data-state="done"]{border-color:var(--learn)}
.tc-tick{display:inline-block; width:var(--s4); height:var(--s4); margin-right:var(--s2); vertical-align:calc(-1 * var(--bw-2)); background:var(--learn); border-radius:var(--r-btn); position:relative}
.tc-tick::after{content:''; position:absolute; left:var(--tick-check); top:var(--bw-2); width:var(--s1); height:var(--s2); border:solid var(--on-fill); border-width:0 var(--bw-2) var(--bw-2) 0; transform:rotate(45deg)}
.tc-pill{width:auto; max-width:var(--card-w); padding:var(--s2) var(--s3); gap:0; box-shadow:var(--shadow-card); border-radius:var(--s6); cursor:pointer; overflow:hidden}
.tc-pill::before{display:none}
.tc-pill .tc-goal{display:flex; align-items:center; gap:var(--s2); font-size:var(--fs-label); font-weight:var(--fw-semi); white-space:nowrap}
.tc-pill-text{overflow:hidden; text-overflow:ellipsis; min-width:0}
.tc-pill .tc-key{flex:none}
/* the first win's chip (the chip kit's xp chip): "+30 XP" rises from the goal segments and fades (the xp-chip moment) */
.tc-chip{pointer-events:none}
.tc-chip.m-xp-chip{animation:tcChip var(--d-xp-chip) ease-out both}
@keyframes tcChip{0%{opacity:0; transform:translateY(var(--s2))} 100%{opacity:1; transform:none}}
/* a clean run named: the segments shine left to right once (the clean-run moment) */
@keyframes tcShine{50%{background:var(--clock); transform:scaleY(1.8)}}
.tc-help{display:flex; flex-direction:column; border-top:1px solid var(--line); padding-top:var(--s2)}
.tc-help-row{display:flex; justify-content:flex-start; align-items:center; gap:var(--s3); width:100%; font:inherit; font-size:var(--fs-small); font-weight:var(--fw-semi); color:var(--ink); background:transparent; border:0; padding:var(--s2) var(--s1); cursor:pointer; text-align:left}
.tc-help-note{margin:var(--s2) 0 0; font-size:var(--fs-label); color:var(--ink-2); line-height:var(--lh-body)}
.tc-help-esc{display:flex; align-items:center; gap:var(--s2); margin-top:var(--s2); font-size:var(--fs-label); color:var(--ink-2)}
/* the Help keys in one column (Wolf's playtest, 2026-10-15: the letters sat out of line): every cap one box, its legend centred, Esc's row on the rows' inset */
.tc-help :is(.tc-help-row, .tc-help-esc) .tc-key{width:var(--help-key-w); height:var(--help-key-h); min-width:0; padding:0}
.tc-help-esc{gap:var(--s3); padding:0 var(--s1)}
.tc-help .tc-help-note{padding:0 var(--s1)}
.tc-help-row small{font-size:var(--fs-min); font-weight:var(--fw-body); color:var(--ink-2); white-space:nowrap}
.tc-help-row:hover{background:var(--chrome)}
.tc-help-row.cursor-on{outline-offset:calc(-1 * var(--focus-w))}
.tc-help-none{padding:var(--s3) 0; font-size:var(--fs-small); color:var(--ink-2)}
.tc-help .tc-foot{border-top:0; justify-content:flex-end}
@media (prefers-reduced-motion: reduce){ .tc{transition:none} .tc-ring-help .tc-key{animation:none} .tc-chip.m-xp-chip{animation:none; opacity:1} }

/* ---------- the four other forms, drawn inside the sheet's scroll box ---------- */
.sm{position:absolute; pointer-events:none; box-sizing:border-box; z-index:7}
/* ---------- an in-sheet dialog moves by its title bar, as Excel's do (ui/components/dialog-place.js) ---------- */
.pd-title.pd-drag{cursor:move; user-select:none; touch-action:none}
.pd-dragging .pd-box{box-shadow:var(--shadow-card)}
.sm-pill{position:absolute; font-family:var(--font); font-variant-numeric:tabular-nums; font-weight:var(--fw-key); font-size:var(--fs-min); line-height:1; color:var(--on-fill); background:var(--learn); border-radius:var(--r-btn); padding:var(--s1) var(--s2); white-space:nowrap; box-shadow:var(--shadow-float)}
.sm-note-corner{border:0; background:transparent}
.sm-note-corner::after{content:''; position:absolute; right:0; top:0; border-style:solid; border-width:0 var(--s2) var(--s2) 0; border-color:transparent var(--red) transparent transparent}
.sm-note-line{height:0; border-top:1px solid var(--note-edge); transform-origin:0 0; z-index:8}
.sm-note-box{background:var(--note); color:var(--note-ink); border:1px solid var(--note-edge); padding:var(--s2) var(--s3); font-family:var(--font); font-size:var(--fs-label); line-height:1.4; box-shadow:var(--shadow-float); z-index:9; animation:smNote var(--d-note) ease-out}
.sm-note-box b{font-weight:var(--fw-bold)}
@keyframes smNote{from{opacity:0; transform:translateX(calc(-1 * var(--s2)))} to{opacity:1; transform:none}}
.sm-probe{visibility:hidden}
.sm-pen-ring{border:var(--cursor-w) solid var(--red); border-radius:var(--s1) var(--s2) var(--s1) var(--s2); transform:rotate(-1deg); z-index:9}
.sm-pen-label{display:flex; align-items:center; gap:var(--s2); white-space:nowrap; z-index:9}
.sm-pen-chip{font-family:var(--font); font-variant-numeric:tabular-nums; font-size:var(--fs-min); font-weight:var(--fw-bold); color:var(--on-fill); background:var(--red); border-radius:var(--r-btn); padding:var(--s1) var(--s2); line-height:1}
.sm-pen-line{font-family:var(--font); font-size:var(--fs-label); color:var(--red); font-weight:var(--fw-semi); background:var(--sheet); padding:0 var(--s1); border-radius:var(--bw-2)}
.sm-check-diff{outline:var(--cursor-w) solid var(--red); outline-offset:-1px}
.sm-check-zero{outline:var(--cursor-w) solid var(--clock-ink); outline-offset:-1px}
.sm-check-ok{outline:var(--cursor-w) solid var(--learn); outline-offset:-1px; background:color-mix(in srgb, var(--learn) 12%, transparent)}
@media (prefers-reduced-motion: reduce){ .sm-note-box{animation:none} }

/* ---------- the timed run's body on the dock (run-panel.js): every timed run, and a due-today rep's completion. The dock gives
   the box (its head the column-letter row, its foot the tab row); the beat fills the body: its scroller, then its buttons ---------- */
.rp{color:var(--ink); font-family:var(--font); font-size:var(--fs-body); line-height:var(--lh-body)}
.rp-body{flex:1 1 auto; min-height:0; overflow-y:auto; padding:var(--s4) var(--s5); display:flex; flex-direction:column; gap:var(--s3); transition:opacity var(--d-beat)}
.rp-out .rp-body, .rp-out .rp-foot{opacity:0}
.rp-foot{flex:none; display:flex; flex-direction:column; gap:var(--s2); padding:var(--s3) var(--s5) var(--s4); transition:opacity var(--d-beat)}
.rp-foot[hidden]{display:none}
.rp-pinned{display:flex; flex-direction:column; gap:var(--s2); padding-top:var(--s3); border-top:1px solid var(--line)}   /* lesson complete: XP and quest ticks above Next, never scrolled away */
.rp-title{font-size:var(--fs-item); font-weight:var(--fw-heavy); line-height:1.25; color:var(--ink)}
.rp-para{margin:0; color:var(--ink); font-size:var(--fs-body)}
.rp-wow{font-weight:var(--fw-bold); font-size:var(--fs-body); color:var(--mode-ink)}
.rp-facts{display:flex; flex-wrap:wrap; gap:var(--s2) var(--s4); font-size:var(--fs-label); color:var(--ink-2); padding-bottom:var(--s3); border-bottom:1px solid var(--line)}
.rp-tasks{list-style:none; margin:0; padding:0; display:flex; flex-direction:column}
.rp-tasks li{display:flex; gap:var(--s3); align-items:baseline; padding:var(--s2) 0; border-bottom:1px solid var(--line); font-size:var(--fs-small); color:var(--ink)}   /* sentences: the reading floor (UI-58, UI-65) */
.rp-tasks li i, .rp-done i{font-style:normal; font-family:var(--font); font-variant-numeric:tabular-nums; color:var(--ink-2); min-width:var(--s5); flex:none}   /* a task's number at its line's size, as in the run's list */
.rp-track-labels b{font-weight:var(--fw-bold); color:var(--ink)}
.rp-start{padding:var(--s3) var(--s4)}   /* its look is the primary's, below (design review 3a) */
/* Run (Wolf, 2026-10-10; docs/specs/lesson-pane.md, question 1): the clock in its own row at the top of the body, on
   the clock's tint, the pace beside it, the track and the pars under it; the current task as the one large line with its tile in
   the run's color (the drills' blue, the Daily's, a challenge's), its keys under it after a stall or Help; the rest a quiet list */
.rp[data-beat="run"] .rp-body{padding:0; gap:0; -webkit-mask-image:linear-gradient(to bottom, var(--ink) calc(100% - var(--fade-h)), transparent); mask-image:linear-gradient(to bottom, var(--ink) calc(100% - var(--fade-h)), transparent)}   /* a short window: the quiet list runs on under a soft fade, the clock and the task in hand never move */
.rp-clockrow{padding:var(--s3) var(--lpn-pad); background:var(--clock-tint); color:var(--clock-ink); border-bottom:1px solid var(--line)}
/* the drill's ready panel (UI-86): the run's head is already in place on the neutral ground; the run gives it the pace tint, the layout
   unchanged. No list of the run's hotkeys (Wolf 2026-11-16 15:07): a task's keys show under it in the run */
.rp-clockrow.rp-clockrow-ready{background:var(--sheet); color:var(--ink); margin:calc(-1 * var(--s3)) calc(-1 * var(--lpn-pad)) 0}
.rp-head-row{display:flex; justify-content:space-between; align-items:baseline; gap:var(--s3)}
.rp-clock{font-family:var(--mono); font-weight:var(--fw-bold); font-size:var(--fs-clock); line-height:1.15; font-variant-numeric:tabular-nums; color:var(--ink)}
.rp-pace{font-weight:var(--fw-bold); font-size:var(--fs-label); color:var(--clock-ink)}
.rp-track{position:relative; height:var(--s2); margin-top:var(--s3); background:var(--line); border-radius:1px; overflow:visible}
.rp-band{position:absolute; top:0; height:100%}
.rp-band-legendary{background:var(--clock)}
.rp-band-pro{background:color-mix(in srgb, var(--clock) 60%, var(--sheet))}
.rp-band-pass{background:color-mix(in srgb, var(--clock) 30%, var(--sheet))}
.rp-band.rp-lost{background:var(--run-lost-band)}
.rp-track-labels .rp-lost, .rp-track-labels .rp-lost b{color:var(--run-lost-ink); font-weight:var(--fw-body)}
/* the marker moves by transform, never by left: a left transition laid the page out and repainted it on every frame of a run
   (about 3 ms a key in a drill, perf budget). Its box is the track's width, slid left of its place by the time still to run
   (run-panel.js markerX), so it never reaches past the track's right edge; the line is its right edge */
.rp-marker{position:absolute; top:calc(-1 * var(--s1)); left:0; width:100%; height:calc(100% + var(--s2)); pointer-events:none; transition:transform var(--d-cursor) linear}
.rp-marker::after{content:''; position:absolute; top:0; right:0; width:var(--cursor-w); height:100%; background:var(--ink); transform:translateX(50%)}
.rp-best{position:absolute; top:50%; width:var(--s2); height:var(--s2); background:var(--sheet); border:var(--cursor-w) solid var(--clock-ink); transform:translate(-50%, -50%) rotate(45deg)}
.rp-track-labels{display:flex; justify-content:space-between; gap:var(--s2); margin-top:var(--s2); font-size:var(--fs-min); color:var(--ink-2); font-variant-numeric:tabular-nums}
.rp-check{display:flex; flex-direction:column; flex:1 1 auto; min-height:0}
/* the goals (UI-117, Wolf 2026-11-18 16:20: "literally just the steps"): one plain checklist on Ready and in the run, no numbers,
   rules between, a box ticked as each goal lands; a long list scrolls inside its own box, the name, the start and the clock never move.
   The goal text is the site's body size, one step up from small (UI-133, Wolf 2026-11-19: easier to read on the long later drills) */
.rp-goals{list-style:none; margin:0; padding:0; flex:1 1 auto; min-height:0; overflow-y:auto}
.rp[data-beat="run"] .rp-goals{padding:0 var(--lpn-pad)}
.rp-goals li{display:grid; grid-template-columns:var(--s4) minmax(0, 1fr); column-gap:var(--s3); align-items:baseline; padding:var(--s2) 0; border-bottom:1px solid var(--line); font-size:var(--fs-body); line-height:var(--lh-head); color:var(--ink)}
@media (max-height:770px){ .rp-goals li{padding:var(--s1) 0} }   /* a short laptop keeps every goal in view (UI-117: no fold), so the rows close up */
.rp-goals li .rp-tickbox{align-self:start; margin-top:var(--bw-2)}
.rp-goals li[data-done] .rp-goal{color:var(--ink-2)}
.rp-goals .rp-tickbox:not(.on){background:transparent; box-shadow:inset 0 0 0 var(--bw-1-5) var(--edge)}
.rp-goals .rp-tickbox:not(.on)::after{display:none}
.rp-goal{display:flex; flex-direction:column; gap:var(--s2); min-width:0}
.rp[data-beat="ready"] .rp-body > .rp-goals{flex:1 1 auto}
.rp-start{gap:var(--s3)}
/* Ready's name and start in one row (UI-138, Wolf 2026-11-19): the list below keeps the run's height; a long name wraps beside the start */
.rp-ready-head{display:flex; align-items:center; justify-content:space-between; gap:var(--s3); flex:none}
.rp-ready-head .rp-title{min-width:0}
.rp-ready-head .rp-start{flex:none}
.rp-now{display:grid; grid-template-columns:var(--lpn-tile) minmax(0, 1fr); column-gap:var(--lpn-col); row-gap:var(--s3); align-content:start; padding:var(--lpn-slot-top) var(--lpn-pad) var(--s5); border-bottom:1px solid var(--line)}
.rp .lpn-tile{position:relative; display:grid; place-items:center; width:var(--lpn-tile); height:var(--lpn-tile); border-radius:var(--r-btn); background:var(--learn); color:var(--on-fill); font-weight:var(--fw-bold); font-size:var(--fs-body); line-height:1}
.rp .lpn-tile > *{grid-area:1 / 1}
.rp .lpn-tile .lpn-n{font-family:var(--mono)}
.rp .lpn-tile .lpn-tick{width:calc(var(--lpn-tile) * .22); height:calc(var(--lpn-tile) * .42)}
.rp .lpn-tile.rp-tile{background:var(--ws-bar)}
.rp-now-keys, .rp-now-why{grid-column:2}
.rp-now-keys{display:flex; flex-wrap:wrap; gap:var(--s2) var(--s3)}
.rp-now-keys .lpn-rail{flex-direction:row; flex-wrap:wrap; gap:var(--s2) var(--s4); margin-top:0}   /* a timed task's route: each leg as the lesson draws it, the legs flowing on as the strip did (item 7) */
.rp-now-keys .rp-kg{gap:var(--s1)}
.rp-rest{list-style:none; margin:0; padding:0 var(--lpn-pad)}
.rp-rest li{display:grid; grid-template-columns:var(--lpn-tile) minmax(0, 1fr); column-gap:var(--lpn-col); padding:var(--s3) 0; border-bottom:1px solid var(--line); font-size:var(--fs-small); line-height:1.4; color:var(--ink)}
.rp-rest li i{font-style:normal; font-family:var(--font); font-variant-numeric:tabular-nums; color:var(--ink-2); text-align:center}
.rp-rest li.rp-rest-more{border-bottom:0; color:var(--ink-2)}
.rp-done{display:flex; gap:var(--s3); align-items:center; padding:var(--s3) var(--lpn-pad); border-bottom:1px solid var(--line); font-size:var(--fs-label); font-weight:var(--fw-semi); color:var(--ink)}
/* the dock's foot in a run: Keys and the count at the left, [F1] Help at the right; on the other beats, [Esc] and the way back */
.rp .dk-foot .rp-keys{cursor:default}
.rp .dk-foot .rp-keys b{color:var(--ink); font-weight:var(--fw-bold)}
.rp-rep, .rp-type{font-size:var(--fs-min); color:var(--ink-2); margin-left:var(--s1); white-space:nowrap}
.rp-tickbox{display:inline-block; width:var(--s4); height:var(--s4); border-radius:var(--bw-2); background:var(--learn); position:relative; flex:none}
.rp-tickbox::after{content:''; position:absolute; left:var(--tick-check); top:var(--bw-2); width:var(--s1); height:var(--s2); border:solid var(--on-fill); border-width:0 var(--bw-2) var(--bw-2) 0; transform:rotate(45deg)}
/* Result: the time with the tier and its marks on one line; rows under it */
.rp-time{display:flex; align-items:baseline; gap:var(--s3); flex-wrap:wrap}
.rp-time-n{font-family:var(--mono); font-weight:var(--fw-heavy); font-size:var(--fs-time); font-variant-numeric:tabular-nums; color:var(--ink); letter-spacing:0}
.rp-tier{font-weight:var(--fw-heavy); font-size:var(--fs-item); color:var(--clock-ink)}
/* .rp-marks is the one tier component (.tiers, pages.css) placed in the panel */
.rp-newbest{font-weight:var(--fw-bold); color:var(--learn-ink); font-size:var(--fs-body)}
/* a clean run's tier word and marks in the tier's own color (Pass green, Expert blue, Legendary gold), as on the boards;
   with no tier the line stays the clock's amber */
.rp-time[data-tier="pass"]{--rp-tier:var(--tier-pass)} .rp-time[data-tier="pro"]{--rp-tier:var(--tier-pro)} .rp-time[data-tier="legendary"]{--rp-tier:var(--tier-legendary)}
.rp-time .rp-tier{color:var(--rp-tier, var(--clock-ink))}
.rp-row{display:flex; justify-content:space-between; align-items:center; gap:var(--s3); padding:var(--s3) 0; border-top:1px solid var(--line); font-size:var(--fs-small); color:var(--ink-2)}
.rp-row b{font-weight:var(--fw-bold); color:var(--ink); font-variant-numeric:tabular-nums; display:inline-flex; align-items:center; gap:var(--s2)}
.rp-xp .rp-bar{flex:1 1 auto; height:var(--s2); background:var(--line); border-radius:1px; overflow:hidden}
.rp-xp .rp-bar i{display:block; height:100%; width:var(--rp-w); background:var(--learn)}
.rp-xp b{font-family:var(--font); font-variant-numeric:tabular-nums; color:var(--learn-ink)}
.rp-levelup{display:flex; align-items:center; justify-content:flex-start; gap:var(--s3); padding:var(--s3) var(--s4); background:var(--learn-tint); color:var(--learn-ink); border-radius:var(--r-btn)}
.rp-levelup-text b{font-weight:var(--fw-heavy); color:var(--learn-ink)}
.rp-levelup-title{margin-left:var(--s2); font-size:var(--fs-label); color:var(--learn-ink)}
.rp-levelup-reward{font-size:var(--fs-label); color:var(--learn-ink)}
.rp-levelup-icon{display:flex; align-items:center; gap:var(--s2)}
.rp-quest{color:var(--ink)}
.rp-note{font-size:var(--fs-small); color:var(--ink-2)}
.rp-quiet{padding-top:var(--s2); border-top:1px solid var(--line)}
.rp-h{display:flex; justify-content:space-between; align-items:baseline; gap:var(--s3); font-size:var(--fs-panel); font-weight:var(--fw-heavy); color:var(--ink); border-top:1px solid var(--line); padding-top:var(--s3); margin-top:var(--s2)}
.rp-h-fact{font-size:var(--fs-label); font-weight:var(--fw-body); color:var(--ink-2)}
.rp-used-list{display:flex; flex-direction:column}
.rp-used{display:flex; justify-content:space-between; align-items:center; gap:var(--s3); padding:var(--s2) 0; border-bottom:1px solid var(--line); font-size:var(--fs-label)}
.rp-used b{font-weight:var(--fw-semi); color:var(--ink-2); font-variant-numeric:tabular-nums}
.rp-used .rp-key{margin-right:var(--s1)}
.rp-install{display:flex; flex-direction:column; gap:var(--s2); padding-top:var(--s3); border-top:1px solid var(--line)}
.rp-foot-row{display:flex; gap:var(--s2)}
/* the board's privacy line, pinned over the result's buttons (app/board-privacy.js): public as your handle with the switch, or
   private with the way to Settings on one row */
.rp-privacy{display:flex; flex-direction:column; gap:var(--s2); font-size:var(--fs-label); line-height:var(--lh-body); color:var(--ink-2)}
.rp-privacy[data-privacy="private"]{flex-direction:row; justify-content:space-between; align-items:baseline; gap:var(--s3)}
.rp-privacy-ctl{display:flex; justify-content:space-between; align-items:center; gap:var(--s3); color:var(--ink); font-weight:var(--fw-semi)}
.rp-privacy-link{flex:none; color:var(--ink); font-weight:var(--fw-bold); text-decoration:underline}
.rp-privacy-held{color:var(--ink); font-weight:var(--fw-semi)}
/* the buttons: one primary on Enter, the rest quiet with their keys */
.rp .ui-btn-wide{justify-content:space-between; text-align:left}
/* the result's moments, in order; any key skips them (rp-animate comes off) */
.rp-animate .rp-m{animation:rpRise var(--d-goal) ease-out both}
.rp-animate .rp-m2{animation-delay:var(--d-result-tier)}
.rp-animate .rp-m3{animation-delay:var(--d-result-best)}
.rp-animate .rp-m4{animation-delay:var(--d-result-track)}
.rp-animate .rp-m5{animation-delay:var(--d-result-board)}
.rp-animate .rp-m6{animation-delay:var(--d-result-xp)}
.rp-animate .rp-m7{animation-delay:var(--d-result-level)}
.rp-animate .rp-m8{animation-delay:var(--d-result-quest)}
.rp-animate .rp-pop i.on{animation:rpPop var(--d-goal) ease-out both}
.rp-animate .rp-pop i.on:nth-child(1){animation-delay:var(--d-result-tier)}
.rp-animate .rp-pop i.on:nth-child(2){animation-delay:calc(var(--d-result-tier) + var(--d-cursor))}
.rp-animate .rp-pop i.on:nth-child(3){animation-delay:calc(var(--d-result-tier) + var(--d-cursor) * 2)}
.rp-animate .rp-track.rp-anim .rp-marker{animation:rpSlide var(--d-combo) ease-out both; animation-delay:var(--d-result-track)}
.rp-animate .rp-bar.rp-anim i{animation:rpFill var(--d-combo) ease-out both; animation-delay:var(--d-result-xp)}
@keyframes rpRise{from{opacity:0; transform:translateY(var(--s2))} to{opacity:1; transform:none}}
@keyframes rpPop{from{transform:rotate(45deg) scale(.4)} to{transform:rotate(45deg) scale(1)}}
@keyframes rpSlide{from{transform:translateX(-100%)}}
@keyframes rpFill{from{width:0}}
@media (prefers-reduced-motion: reduce){ .rp-animate .rp-m, .rp-animate .rp-pop i.on, .rp-animate .rp-track.rp-anim .rp-marker, .rp-animate .rp-bar.rp-anim i{animation:none} .rp-body, .rp-foot{transition:none} }
html[data-effects="off"] .rp-animate .rp-m, html[data-effects="off"] .rp-animate .rp-pop i.on, html[data-effects="off"] .rp-animate .rp-track.rp-anim .rp-marker, html[data-effects="off"] .rp-animate .rp-bar.rp-anim i{animation:none}

/* ---------- the confirmation (ui/components/chrome.js confirmDialog): its scrim ---------- */
.wsc-dialog-wrap{position:fixed; inset:0; z-index:60; display:grid; place-items:center; background:color-mix(in srgb, var(--ink) 20%, transparent)}
/* the card is the kit's dialog (PS-41, ui/components/menu-kit.js mkCard dialog): the pop-out card at md */
/* the achievement banner keeps to the top right, under the title row, so the goal count, sound and More stay visible */
body[data-route="lesson"] .fx-banner, body[data-route="drill"] .fx-banner, body[data-route="due"] .fx-banner{top:calc(var(--titlebar-h) + var(--s2))}
body:is([data-route="lesson"], [data-route="drill"], [data-route="due"]) .fx-banner.fx-cell{top:calc(var(--titlebar-h) + var(--s2) + var(--cell-md) * var(--cell-show))}


/* the quest rows in the result (6.10, the quest loop): the name, a bar that fills to where the run left it, the count or the XP */
.rp-quest .rp-quest-name{flex:1 1 auto; min-width:0; color:var(--ink)}
.rp-quest b{white-space:nowrap}
.rp-quest .rp-tickbox:not(.on){background:transparent; box-shadow:inset 0 0 0 var(--bw-1-5) var(--edge)}
.rp-quest .rp-tickbox:not(.on)::after{display:none}
.rp-quest-bar{flex:0 0 calc(3 * var(--seg-w)); height:var(--bar-h); background:var(--line); border-radius:1px; overflow:hidden}
.rp-quest-bar i{display:block; height:100%; width:var(--rp-w); background:var(--learn); transition:width var(--d-quests) ease-out}
.rp-quest b{min-width:calc(2 * var(--seg-w)); justify-content:flex-end}
.rp-quest.done b{color:var(--learn-ink)}
.rp-bonus{background:var(--learn-tint); color:var(--learn-ink); padding:var(--s3) var(--s4); border-radius:var(--r-btn); border-top:0; margin-top:var(--s2)}
.rp-bonus > span{display:flex; flex-direction:column; gap:var(--s1); font-weight:var(--fw-semi)}
.rp-bonus b{color:var(--learn-ink)}
.rp-bonus-reward{font-weight:var(--fw-body); font-size:var(--fs-label)}
.rp-levelup-text{flex:1 1 auto}

/* ---------- R10 phase 2: the drill's Ready (the keys it uses), the run's foot, the result's splits ---------- */
.rp-sub{font-size:var(--fs-label); font-weight:var(--fw-bold); color:var(--ink); margin-top:var(--s1)}
.rp-sub-row{display:flex; align-items:baseline; gap:var(--s3)}
.rp-sub-row span:first-child{color:var(--ink-2); font-weight:var(--fw-semi); min-width:var(--s12)}
.rp-sub-row b{font-weight:var(--fw-bold); font-variant-numeric:tabular-nums}
.rp-sub-row span:last-child{color:var(--ink-2); font-weight:var(--fw-body); font-variant-numeric:tabular-nums}
.rp-kg{display:inline-flex; gap:var(--s1)}
.rp-num{font-family:var(--mono); font-variant-numeric:tabular-nums}
.rp-best-fact{display:inline-flex; align-items:center; gap:var(--s2)}
.rp-best-fact b{color:var(--ink)}
.rp-facts .rp-marks{margin-left:var(--s1)}
.rp-facts .rp-chip{align-self:flex-start}   /* a Daily ahead of the learner: where it comes from, the kit's chip at its own width */
.rp-splits li{align-items:baseline}
.rp-splits li span{flex:1 1 auto; min-width:0}   /* a task's words wrap where the dock has the height (F13) */
/* a short dock folds the result's splits before its XP and badges give way (run-panel.js fitBeat): one line each, the
   slowest alone, the summary row alone, then the track */
.rp.rp-fit-1line .rp-splits li span{overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.rp.rp-fit-slow .rp-splits li:not(.rp-slow){display:none}
.rp.rp-fit-nosplits .rp-splits{display:none}
.rp.rp-fit-notaskrow .rp-taskrow, .rp.rp-fit-noquests[data-beat="result"] .rp-quests{display:none}
.rp-badge-fold, .rp.rp-fit-badge1 .rp-badge ~ .rp-badge, .rp.rp-fit-badge1 .rp-badge-more:not(.rp-badge-fold){display:none}
.rp.rp-fit-badge1 .rp-badge-fold{display:inline}
.rp.rp-fit-badgerow .rp-badges{flex-direction:row; align-items:center}
.rp.rp-fit-gaps[data-beat="result"] .rp-body{gap:var(--s2)}
.rp.rp-fit-notrack .rp-track, .rp.rp-fit-notrack .rp-track-labels{display:none}
/* fitted, nothing runs on under a fade: the rows that fit whole and "n more after these" */
.rp.rp-fitted[data-beat] .rp-body{-webkit-mask-image:none; mask-image:none}
.rp-body .rp-fit-hide, .rp-tasks li.rp-fit-hide, .rp-rest li.rp-fit-hide{display:none}
.rp.rp-fitted[data-beat="ready"] .rp-body, .rp.rp-fitted[data-beat="result"] .rp-body{padding-bottom:var(--s2)}
.rp-splits li b{flex:none; font-weight:var(--fw-semi); color:var(--ink); font-size:var(--fs-label)}
.rp-splits li.rp-slow span, .rp-splits li.rp-slow b{font-weight:var(--fw-bold)}
.rp-splits li.rp-slow b{color:var(--clock-ink)}
.rp-keys b{color:var(--ink)}

/* ---------- zoom to fit scales the cells only: the column letters keep Excel's height ---------- */
:is(#grid, .grid-rh) tr.hdr th{height:var(--hdrh, var(--cellh))}

/* Ready is one stack at the body's rhythm from the top (layout rules 4 and 7): the pars and the start follow the tasks; on a short
   window the task list keeps its whole rows that fit and counts the rest, never dropped (run-panel.js fitBeat) */
.rp[data-beat="ready"] .rp-body > *{flex:none}
.rp[data-beat="ready"] .rp-tasks li{padding:var(--s1) 0}
.rp-badges{flex-direction:column; align-items:flex-start}   /* Earned, then its badges as a list under it, left-aligned (F13) */
.rp-badge-list{display:flex; flex-wrap:wrap; gap:var(--s2) var(--s3); justify-content:flex-start}
.rp-badge{display:inline-flex; align-items:center; gap:var(--s1)}
.rp-badge b{font-size:var(--fs-label)}
.rp-badge-more{font-size:var(--fs-label); color:var(--ink-2)}

/* a long panel body scrolls inside the panel with a soft fade where more is below (R10, the fit rule) */
.rp[data-beat="ready"] .rp-body, .rp[data-beat="result"] .rp-body{-webkit-mask-image:linear-gradient(to bottom, var(--ink) calc(100% - var(--fade-h)), transparent); mask-image:linear-gradient(to bottom, var(--ink) calc(100% - var(--fade-h)), transparent); padding-bottom:var(--fade-h)}
/* the result's quiet buttons share a row under the primary one when they fit, so a short window keeps the result in view;
   when their labels are too long for the panel each takes its own row, never wider than the panel (1366 clipped them) */
.rp-foot{flex-flow:row wrap}
.rp-foot > *{flex:1 1 100%; min-width:0}
.rp-foot > .rp-btn:not(.rp-primary){flex:1 1 auto; white-space:nowrap}
.rp-foot > .rp-btn.rp-primary + .rp-btn:last-child{flex-basis:100%}

/* ---------- the dock (ui/components/dock.js) and the lesson pane on it (ui/components/lesson-pane.js; docs/specs/
   lesson-pane.md). The dock runs from the column-letter row to the window's foot at the side of the grid; the grid and the
   tab row start at its edge (the setting's side), so it never covers a cell. Its head continues the column-letter row (the
   height the grid's header row measures, its ground and rule), its foot the tab row. Every state class is prefixed (lpn-on,
   lpn-next: .on and .next also exist on the task card's keys) ---------- */
.wsc{--dock-w:min(var(--dock-w-vw), var(--dock-w-max))}
.wsc:has(> .wsc-dock.rp), .wsc:has(.wsc-dock.rp){--dock-w-max:var(--ws-pane-w)}   /* the timed run's pane widens from the first big step (spec scaling-1118 section 4.3; tokens.css --ws-pane-w, before z): the sheet gives up the width */
.wsc-dock{position:absolute; top:var(--dock-top, 0); bottom:0; left:0; width:var(--dock-w); z-index:6; display:flex; flex-direction:column; background:var(--sheet); color:var(--ink); font-family:var(--font); border-right:1px solid var(--line); overflow:hidden}
.wsc-dock[hidden]{display:none}
.wsc-dock[data-side="right"]{left:auto; right:0; border-right:0; border-left:1px solid var(--line)}
.wsc-dock[data-veiled] .lpn-live > *{visibility:hidden}   /* behind the lesson door: goal 1 in place, no live line yet */
.wsc-dock[data-veiled] .lpn-chord.lpn-next::after{content:none}   /* and no bar: the door has the keys until Start */
.wsc-dock[data-veiled] .lpn-chord.lpn-next .ui-cap{transform:none; --cap-rim:var(--key-rim); --cap-foot-rim:var(--key-rim); --cap-foot:var(--key-edge)}
.wsc-dock.lpn-measure{visibility:hidden; pointer-events:none; z-index:-1}
.lpn{--land-hold:0ms; --carry-end:0ms; --pop-i:0}
.wsc[data-dock="left"] .wsc-sheet .gridwrap{margin-left:var(--dock-w)}
.wsc[data-dock="right"] .wsc-sheet .gridwrap{margin-right:var(--dock-w)}
.wsc[data-dock="left"] .wsc-foot{padding-left:var(--dock-w)}
.wsc[data-dock="right"] .wsc-foot{padding-right:var(--dock-w)}
.dk-head{flex:none; height:var(--dock-head-h, var(--cellh)); display:flex; align-items:center; gap:var(--s3); padding:0 var(--lpn-pad); background:var(--chrome); border-bottom:1px solid var(--line); min-width:0}
.dk-body{flex:1 1 auto; min-height:0; display:flex; flex-direction:column; overflow:hidden}
.lpn.lpn-scroll .dk-body{overflow-y:auto}
.lpn.lpn-scroll .lpn-step:not(.lpn-old) > .lpn-goal{position:sticky; top:0; z-index:1; background:var(--sheet)}   /* a goal the pane cannot hold scrolls under its goal line, every key row kept (pane-fit.js) */
/* its teach line held under the goal line and its live line at the body's foot, so the goal, what it teaches and the newest
   line are always in view while the route scrolls between them (the review of 2026-11-12, item 1) */
.lpn.lpn-scroll .lpn-step:not(.lpn-old) > .lpn-teach{position:sticky; top:var(--lpn-lid, 0px); z-index:1; background:var(--sheet)}
.lpn.lpn-scroll .lpn-step:not(.lpn-old) > .lpn-live:not(:has(> span:empty)){position:sticky; bottom:0; z-index:1; background:var(--sheet)}
.dk-foot{flex:none; height:var(--foot-h); display:flex; align-items:center; justify-content:space-between; gap:var(--s3); padding:0 var(--lpn-pad); background:var(--xl-bar); border-top:1px solid var(--xl-line); font-family:var(--xl-font); font-size:var(--xl-fs-tab); line-height:1; color:var(--ink-2)}
/* folded (Ctrl+Shift+K): the dock is its head row, a strip over the grid; the grid steps down under it and takes the full width */
.wsc[data-dock-fold="1"] .wsc-sheet .gridwrap{margin-left:0; margin-right:0; margin-top:var(--dock-head-h, var(--cellh))}
.wsc[data-dock-fold="1"] .wsc-foot{padding-left:0; padding-right:0}
.wsc[data-dock-fold="1"] .wsc-dock{left:0; right:0; bottom:auto; width:auto; height:var(--dock-head-h, var(--cellh)); border-left:0; border-right:0}
.wsc[data-dock-fold="1"] .wsc-dock .dk-body, .wsc[data-dock-fold="1"] .wsc-dock .dk-foot{display:none}
.wsc[data-dock-fold="1"] .dk-head .lpn-segs{flex:0 1 calc(var(--dock-w) - var(--lpn-pad) * 2)}

/* the head: "Goal 3 of 9" in a slot sized for the longest label, then the goal segments, always with their gaps */
.lpn-count{position:relative; display:grid; flex:none; font-size:var(--fs-label); font-weight:var(--fw-bold); color:var(--ink); font-variant-numeric:tabular-nums; white-space:nowrap; line-height:1}
.lpn-count > span{grid-area:1 / 1}
.lpn-count > .lpn-sizer{visibility:hidden}
.lpn-segs{flex:1 1 auto; min-width:0; display:flex}
.dk-head .segs{display:flex; flex:1 1 auto; gap:var(--s1); min-width:0}
.dk-head .segs i{flex:1 1 0; min-width:var(--s1); width:auto; height:var(--bar-h); background:var(--line); border-radius:var(--prog-r); box-shadow:none}
.dk-head .segs i.on{background:var(--learn)}
.dk-head .segs i.hand{background:var(--sheet); box-shadow:inset 0 0 0 var(--bw-2) var(--learn)}
.lpn.lpn-shine .dk-head .segs i.on{animation:tcShine var(--d-clean-run) ease-out both}
.lpn{--chip-fs:var(--fs-label)}   /* the pane's chip (the chip kit's xp chip) at the pane's label size */
.lpn-chip{animation:tcChip var(--d-xp-chip) ease-out both}
.lpn-show{display:inline-flex; align-items:center; gap:var(--s2); margin-left:auto; font-size:var(--fs-label); color:var(--ink-2); white-space:nowrap; cursor:pointer}
/* ---------- the strip as the goal bar (register LW-27; lesson-pane.js stripHtml): an inline lesson keeps the pane folded and its head
   grows to --strip-h: Goal n of m and the segments, then who is acting (the chip kit's instr or you tone), the line and the next key.
   The show's ground is Excel's note yellow, your turn's the right tint; the grid steps down under it. */
/* The band goes (UI-86, Wolf 2026-11-14 07:03): a Spotlight lesson's folded pane keeps its strip in the page (its count and its
   next key are read there) but draws nothing, and the grid takes the band's rows. The card beside the target cell holds the ask, its
   one line and the keys (show-marks.js tipHtml, the lane); Show pane is in More (chrome.js), its key unchanged */
.wsc[data-dock-fold="1"][data-strip] .wsc-dock{display:none}
.wsc[data-dock-fold="1"][data-strip] .wsc-dock .dk-head{height:var(--strip-h); gap:var(--s3)}
.wsc[data-dock-fold="1"][data-strip] .wsc-sheet .gridwrap{margin-top:0}
/* who is acting, with no label (his play of 13:05): the strip's edge and ground, the teacher's violet or the lesson's green */
.wsc[data-dock-fold="1"] .lpn[data-strip="show"] .dk-head{background:var(--instr-strip); border-bottom-color:color-mix(in srgb, var(--instr) 35%, transparent); box-shadow:inset var(--strip-edge) 0 0 var(--instr)}
.wsc[data-dock-fold="1"] .lpn[data-strip="you"] .dk-head{background:var(--right-tint); border-bottom-color:color-mix(in srgb, var(--right) 35%, transparent); box-shadow:inset var(--strip-edge) 0 0 var(--learn)}
.wsc[data-dock-fold="1"][data-strip] .dk-head .lpn-segs{flex:0 1 calc(var(--s12) * 3)}
.lpn-strip{display:flex; align-items:center; gap:var(--s3); flex:1 1 auto; min-width:0; margin-left:var(--s2); padding-left:var(--s4); border-left:1px solid color-mix(in srgb, var(--ink) 15%, transparent); font-size:var(--fs-body); color:var(--ink)}
.lpn-strip-line{display:block; min-width:0; font-weight:var(--fw-bold); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.lpn-strip-line .lpn-cap-tick{margin:0 var(--s2) 0 0; vertical-align:middle}
.lpn-strip-say .lpn-cap-num{margin-right:var(--s1)}
.lpn-strip-ref{font-family:var(--mono); font-weight:var(--fw-bold)}
.lpn-strip[data-tone="show"] .lpn-strip-ref{color:var(--instr-ink)}
.lpn-strip[data-tone="you"] .lpn-strip-ref{color:var(--right-ink)}
.lpn-strip-act{display:inline-flex; align-items:center; gap:var(--s2); margin-left:auto; padding-right:var(--s4); color:var(--ink-2); font-weight:var(--fw-semi); font-size:var(--fs-label); white-space:nowrap}
.lpn-strip-act .lpn-cap-ref{font-family:var(--mono); font-weight:var(--fw-bold); color:var(--ink)}
.wsc[data-dock-fold="1"][data-strip] .lpn-show{margin-left:0}
/* Spotlight: while the card beside the block shows Goal n of m and the segments, the strip keeps only its actions at the right
   (UI-37: progress shown once; lesson-view.js paintPop sets data-spot-card) */
.wsc[data-spot-card][data-dock-fold="1"] .lpn[data-strip] .dk-head :is(.lpn-count, .lpn-segs){display:none}
.wsc[data-spot-card][data-dock-fold="1"] .lpn[data-strip] .lpn-strip{margin-left:0; padding-left:0; border-left:0}

/* the body: the work (the goal and Next, one height for the lesson), the tray directly under it, calm space under that */
.lpn-work{flex:none; min-height:var(--lpn-workh, 0)}
.lpn-slot{position:relative; display:grid; grid-template-columns:minmax(0, 1fr); padding:var(--lpn-slot-top) var(--lpn-pad) var(--s4)}
.lpn-slot > .lpn-step{grid-area:1 / 1}
.lpn-step{display:grid; grid-template-columns:minmax(0, 1fr); row-gap:var(--s3); align-content:start}
.lpn-tick{display:block; box-sizing:border-box; border:solid var(--on-fill); border-width:0 var(--bw-2) var(--bw-2) 0; transform:translateY(-12%) rotate(45deg)}
.lpn-goal{font-size:var(--fs-item); font-weight:var(--fw-bold); line-height:var(--lpn-lh-goal); color:var(--ink); overflow-wrap:anywhere; text-wrap:pretty}
/* an address or formula in the goal, and a sheet it sends you to: one style for both (pane polish: learn ink, mono 700, no tinted
   chip), held to their punctuation in one nowrap run */
.lpn-addr, .lpn-tabchip{font-family:var(--mono); font-weight:var(--fw-bold); font-size:var(--fs-body); color:var(--learn-ink); white-space:nowrap}
.lpn-nw{white-space:nowrap}
.lpn-pn{margin-left:calc(var(--bw-2) * -1)}
.lpn-teach{font-size:var(--fs-body); line-height:var(--lh-inline); color:var(--ink-2); margin-top:calc(var(--s1) * -1)}

/* the route: one row per leg, its keys and then where it lands, the caption --s3 after its own keys (pane polish: no caption
   column set by the lesson's widest chord); a leg too wide for the pane breaks after a chevron, the caption under its keys */
.lpn-rail{display:flex; flex-direction:column; row-gap:var(--s5); margin-top:var(--s2)}
.lpn-leg{display:flex; flex-wrap:wrap; align-items:center; column-gap:var(--s3); row-gap:var(--s3)}
.lpn-keys{position:relative; display:flex; flex-wrap:wrap; align-items:center; row-gap:calc(var(--lpn-bar-gap) + var(--lpn-bar-h) + var(--s2)); padding:var(--lpn-lift) 0 calc(var(--lpn-bar-gap) + var(--lpn-bar-h)); min-width:0}
.lpn-leg.lpn-dense{display:flex; flex-direction:column; align-items:flex-start; gap:0}
.lpn-leg.lpn-dense .lpn-keys{column-gap:var(--s1)}
.lpn-chord{position:relative; display:inline-flex; align-items:center; border-radius:var(--r-btn)}
/* press this now: the cap stands up on a deep edge, its rim ink, and one short learn bar sits under the whole chord; that bar is
   the only green in the pane while you work (pane polish: no fill, no ring) */
.lpn-chord.lpn-next .ui-cap:not(.lpn-blank){transform:translateY(calc(var(--lpn-lift) * -1)); --cap-rim:var(--ink); --cap-foot-rim:var(--ink-2); --cap-foot:var(--lpn-due-edge)}
.lpn-chord.lpn-next::after{content:''; position:absolute; left:0; right:0; bottom:calc((var(--lpn-bar-gap) + var(--lpn-bar-h)) * -1); height:var(--lpn-bar-h); border-radius:var(--lpn-bar-h); background:var(--learn)}
/* after a wrong key the route stops asking: the key drops to rest and the live line carries the red */
.lpn-step:has(.lpn-live[data-kind="wrong"]) .lpn-chord.lpn-next .ui-cap{transform:none; --cap-rim:var(--key-rim); --cap-foot-rim:var(--key-rim); --cap-foot:var(--key-edge)}
.lpn-step:has(.lpn-live[data-kind="wrong"]) .lpn-chord.lpn-next::after{content:none}
/* keys held together: a bold + between their caps; one after another: the chevron (chord.js), never a bare gap */
.lpn-chord > .ui-cap-plus{margin:0 var(--s1)}   /* a split chord's caps sit loose in the chord, not in a .ui-caps row with its gap */
.lpn-keys{--cap-fs-join:var(--fs-body)}
.lpn .chord-seq, .cc .chord-seq, .cc-lane .chord-seq, .rp .chord-seq{display:inline-flex; flex:none; align-items:center; justify-content:center; width:var(--lpn-then-w); height:var(--lpn-then-h); margin:0 var(--s1); color:var(--ink-2); transform:translate(calc(var(--bw-2) / 2), calc(var(--bw-2) / -2))}
:is(.lpn, .cc, .cc-lane, .rp) .ui-caps > .chord-seq{margin:0}   /* in a row of caps the row's gap spaces it */
.lpn .chord-seq svg, .cc .chord-seq svg, .cc-lane .chord-seq svg, .rp .chord-seq svg{display:block; width:100%; height:100%; fill:none; stroke:currentColor; stroke-width:1.3; stroke-linecap:round; stroke-linejoin:round}
.lpn-pg{display:inline-flex; flex:none; align-items:center}
.lpn-keys > .lpn-pg > .chord-seq{margin:0 calc(var(--s1) + var(--bw-2)); transform:translate(calc(var(--bw-2) / 2), calc(var(--bw-2) / 2))}
/* the dock's caps (the lesson pane, the complete card, the run panel) are the keycap kit's (components.css .ui-cap) at the
   pane's sizes: md the route's cap (--lpn-cap-h, 34px), sm the tray's and the foot's (--lpn-cap-h-sm, 22px). The sizes are set
   on the scope, so a button's own cap keeps the button's size; a route cap stands on a deep edge with a lit top */
.lpn, .cc, .cc-lane, .rp{--cap-h-md:var(--lpn-cap-h); --cap-min-w-md:var(--lpn-cap-min); --cap-px-md:var(--lpn-cap-pad-x); --cap-fs-md:var(--fs-body);
  --cap-h-sm:var(--lpn-cap-h-sm); --cap-min-w-sm:var(--lpn-cap-h-sm); --cap-px-sm:calc(var(--s1) * 1.5); --cap-fs-sm:var(--fs-key); --cap-fs-join:var(--fs-label);
  --cap-fs-mini:var(--cap-fs-mini-whole); --cap-fs-arw:var(--cap-fs-arw-whole)}   /* the kit's mini cap and arrow at its ratios, to the whole px (UI-18): in the pane's lines and caps they land on the scale */
:is(.lpn, .cc, .cc-lane, .rp) .ui-cap{--cap-foot:var(--key-edge); --cap-shadow:inset 0 var(--bw-2) 0 var(--chrome); transition:transform var(--d-key) var(--ease-out)}
/* a pressed key: it sits down (a flat edge, a sunk inner shadow), its face chrome and its legend ink 2; its box never changes
   size, so nothing reflows */
:is(.lpn, .cc, .rp) .ui-cap.lpn-on{--cap-face:var(--chrome); --cap-ink:var(--ink-2); --cap-rim:var(--edge); --cap-foot:1px; margin-top:var(--key-sunk); --cap-shadow:inset 0 var(--bw-2) 0 var(--line)}
/* typed text: the word in a small field, the typed part bold, a caret where the next letter goes */
.lpn-typelbl{margin-right:var(--s2); font-size:var(--fs-label); font-weight:var(--fw-bold); color:var(--ink-2)}
.lpn-chord .lpn-field{display:inline-flex; align-items:center; min-height:var(--lpn-cap-h); box-sizing:border-box; max-width:100%; font-family:var(--mono); font-size:var(--fs-body); line-height:var(--lpn-lh-goal); color:var(--ink-2); background:var(--sheet); border:1px dashed var(--edge); border-radius:var(--r-btn); padding:0 var(--s2); overflow-wrap:anywhere}
.lpn-chord .lpn-field .lpn-typed{color:var(--ink); font-weight:var(--fw-bold)}
.lpn-chord .lpn-field.lpn-on{border-style:solid; border-color:var(--line); background:var(--chrome)}
.lpn-chord .lpn-field.lpn-on .lpn-typed{color:var(--ink-2)}
.lpn-caret{display:inline-block; width:var(--bw-2); height:var(--lpn-caret-h); vertical-align:text-bottom; background:var(--ink)}
.lpn-leg.lpn-dense .ui-cap{--cap-fs:var(--fs-body); padding:var(--s2); min-width:var(--lpn-cap-min-dense)}
/* the caption: where the leg lands; the current leg's turns ink; a finished one ticks */
.lpn-cap{display:flex; align-items:baseline; gap:calc(var(--s1) * 1.5); font-size:var(--fs-body); color:var(--ink-2); white-space:nowrap; line-height:1.2; padding-bottom:calc(var(--lpn-bar-gap) + var(--lpn-bar-h))}
.lpn-cap-num{font-family:var(--mono); font-weight:var(--fw-bold); color:var(--ink); font-variant-numeric:tabular-nums}
/* a repeat's count rides its cap (Wolf's playtest, 2026-10-15: the grey "×3" was easy to miss): a badge the cap's height in the
   pane's accent, "×3", then the presses left ("2 left"), quiet once done; it stands up with the cap it counts */
.lpn-rep-n{display:inline-flex; flex:none; align-items:center; box-sizing:border-box; height:var(--lpn-cap-h); margin-left:var(--lpn-rep-gap); padding:0 var(--lpn-rep-pad); border-radius:var(--r-btn); background:var(--learn); color:var(--learn-on); font-family:var(--mono); font-weight:var(--fw-bold); font-size:var(--fs-body); line-height:1; font-variant-numeric:tabular-nums; white-space:nowrap; transition:transform var(--d-key) var(--ease-out)}
.lpn-chord.lpn-next .lpn-rep-n{transform:translateY(calc(var(--lpn-lift) * -1))}
.lpn-step:has(.lpn-live[data-kind="wrong"]) .lpn-chord.lpn-next .lpn-rep-n{transform:none}
.lpn-rep-n.lpn-rep-done{background:var(--chrome); color:var(--ink-2); box-shadow:inset 0 0 0 1px var(--line)}
.lpn-step.lpn-f1 .lpn-rail .lpn-rep-n{font-size:var(--fs-body)}
.lpn-leg.lpn-dense .lpn-rep-n{font-size:var(--fs-body)}
.lpn-cap:empty{display:none}
.lpn-leg.lpn-dense .lpn-cap{white-space:normal; overflow-wrap:anywhere}
.lpn-keys .lpn-more{font-size:var(--fs-label); color:var(--ink-2); white-space:nowrap}
/* a folded route's quiet last row (UI-120): how many legs follow the next two, in the leg rows' rhythm, the captions' grey */
.lpn-rail > .lpn-fold-more{display:block}
.lpn-rail > .lpn-fold-more .lpn-more{font-size:var(--fs-label); color:var(--ink-2); white-space:nowrap}
.lpn-cap .lpn-cap-ref{font-family:var(--mono); font-weight:var(--fw-bold); color:var(--learn-ink)}
.lpn-cap-word{font-style:normal; font-weight:var(--fw-semi); color:var(--ink)}
.lpn-cap-tick{display:inline-block; flex:none; align-self:center; width:calc(var(--s1) * 1.4); height:calc(var(--s2) * 1.2); border:solid var(--learn); border-width:0 var(--bw-2) var(--bw-2) 0; transform:translateY(-15%) rotate(45deg); margin:0 calc(var(--s1) * .25) 0 calc(var(--s1) * .5)}
.lpn-leg.lpn-cur .lpn-cap{color:var(--ink)}
.lpn-leg.lpn-done .lpn-cap, .lpn-leg.lpn-done .lpn-cap-word{color:var(--ink-2)}
/* a key the browser keeps (M41), in a browser tab: two rows. "Excel" and Excel's key, the taught key (never ringed or pressed:
   it goes quiet with its leg), with the leg's caption; under it "Here" and the key that works in a browser tab, ringed, with a
   one-click Full screen at its end (hidden once the leg is done, its room kept). The labels hang in the gutter left of the rail */
.lpn-leg.lpn-aliasleg{row-gap:var(--s2)}
.lpn-leg.lpn-aliasleg::before{content:''; order:3; flex-basis:100%; height:0}
.lpn-leg.lpn-aliasleg > .lpn-excel{order:1}
.lpn-leg.lpn-aliasleg > .lpn-cap:not(.lpn-fs){order:2}
.lpn-leg.lpn-aliasleg > .lpn-here{order:4}
.lpn-leg.lpn-aliasleg > .lpn-fs{order:5}
.lpn-leg.lpn-aliasleg > .lpn-cap:not(.lpn-fs):empty{display:block}   /* a leg with no caption keeps its cell, so the Here row stays its own row */
/* drawn dense (its keys wider than the caption's room, the 1280 by 720 pane): the rows stack in one column, Excel's keys, its
   caption under them, then Here and Full screen; never a second column */
.lpn-leg.lpn-dense.lpn-aliasleg{flex-wrap:nowrap}
.lpn-leg.lpn-dense.lpn-aliasleg::before{content:none}
.lpn-lab{display:inline-block; min-width:var(--lpn-lab-w); margin-right:var(--lpn-lab-gap); font-family:var(--font); font-size:var(--fs-label); font-weight:var(--fw-bold); color:var(--ink-2); white-space:nowrap; line-height:1}
.lpn .lpn-chord.lpn-taught.lpn-quiet .ui-cap{--cap-ink:var(--ink-2); --cap-rim:var(--line)}
.lpn-chord.lpn-taught .ui-cap-plus{color:var(--ink-2)}
/* the Full screen button (button.js, its sm size) at the tab row's face and size: the button's own tokens, scoped to its slot */
.lpn-cap.lpn-fs{padding-bottom:0; --btn-h-sm:var(--lpn-fsb-h); --btn-px-sm:var(--lpn-fsb-px); --btn-gap-sm:var(--lpn-fsb-gap); --btn-fs-sm:var(--xl-fs-tab)}
.lpn-cap.lpn-fs .lpn-fsb{font-family:var(--xl-font); font-weight:var(--fw-semi)}
.lpn-cap.lpn-fs svg{display:block; width:var(--lpn-fsb-icon); height:var(--lpn-fsb-icon)}
.lpn-leg.lpn-done .lpn-cap.lpn-fs{visibility:hidden}
/* drawn wide (the lesson's caption column cannot hold it): each row keeps its caption beside its keys where the pane has
   room, else under them; the Here row always starts its own line */
/* a key asked for from memory: a dashed cap a route cap's height with "from memory" inside it; the legend replaces the words
   when the leg lands or the key is shown (its pop, --d-recall-reveal) */
.lpn .ui-cap.lpn-blank{--cap-dash:dashed; --cap-bw:var(--lpn-blank-bw); --cap-foot:var(--lpn-blank-bw); --cap-rim:var(--edge); --cap-face:var(--sheet); --cap-font:var(--font); --cap-fw:var(--fw-semi); --cap-fs:var(--fs-label); --cap-ink:var(--ink-2);
  min-height:calc(var(--fs-body) + 2 * var(--lpn-cap-pad-y) + 1px + var(--key-edge)); padding-top:0; padding-bottom:0}
.lpn-step.lpn-f1 .lpn-rail .ui-cap.lpn-blank{min-height:calc(var(--fs-body) + 2 * var(--lpn-cap-pad-y) + 1px + var(--key-edge)); --cap-fs:var(--fs-label)}
.lpn .ui-cap.lpn-reveal .ui-cap-lgd, .lpn-ti.lpn-reveal > .ui-cap{animation:lpnPop var(--d-recall-reveal) var(--ease-out) both}

/* the live line: a fixed two-line slot in ink, every key an inline mini cap; a landed line learn-ink with a tick */
.lpn-live{display:grid; grid-template-columns:minmax(0, 1fr); font-size:var(--fs-body); font-weight:var(--fw-body); color:var(--ink); line-height:var(--lh-inline); min-height:calc(var(--fs-body) * var(--lh-inline) * 2); margin-top:var(--s1)}
.lpn-live[data-kind="wrong"]{box-shadow:inset var(--bw-3) 0 0 var(--red); padding-left:var(--s3)}
.lpn-live > span{display:block; grid-area:1 / 1}
.lpn-live[data-kind="stuck"], .lpn-live[data-kind="mouse"], .lpn-live[data-kind="demo"], .lpn-live[data-kind="teach"]{color:var(--ink-2); font-weight:var(--fw-body)}
.lpn-live[data-kind="near"]{font-weight:var(--fw-body)}
.lpn-live[data-kind="done"] > span, .lpn-live[data-kind="clean"] > span, .lpn-live[data-kind="works"] > span{display:flex; align-items:baseline; gap:var(--s2); color:var(--learn-ink)}
.lpn-live[data-kind="done"] > span::before, .lpn-live[data-kind="clean"] > span::before, .lpn-live[data-kind="works"] > span::before{content:''; flex:none; width:calc(var(--s1) * 1.4); height:calc(var(--s2) * 1.2); border:solid var(--learn); border-width:0 var(--bw-2) var(--bw-2) 0; transform:translateY(-10%) rotate(45deg); margin:0 calc(var(--s1) * .5)}
.ui-caps-mini .chord-seq{width:calc(var(--lpn-then-w) * .85); height:calc(var(--lpn-then-h) * .85); margin:0}   /* a key in a sentence: the kit's mini cap (components.css .ui-cap-mini) */


/* the shortcuts learned, directly under the work: the heading and the bare count, the keys (what each does, where roomy) */
.lpn-tray{margin:0 var(--lpn-pad); padding:var(--s4) 0; border-top:1px solid var(--line)}
.lpn.lpn-traybottom .lpn-tray{margin-top:auto}
.lpn-tray-h{display:flex; justify-content:space-between; align-items:baseline; font-size:var(--fs-label); font-weight:var(--fw-bold); color:var(--ink)}
.lpn-tray-h > b{color:var(--ink-2); font-weight:var(--fw-semi); font-variant-numeric:tabular-nums}
.lpn-haul{display:flex; flex-wrap:wrap; gap:var(--s3) var(--s6); margin-top:var(--s3)}
.lpn-ti{position:relative; display:inline-flex; align-items:center}
.lpn-dot{position:absolute; right:calc(var(--bw-3) * -1); top:calc(var(--bw-3) * -1); width:var(--lpn-dot); height:var(--lpn-dot); border-radius:50%; background:var(--learn); box-shadow:0 0 0 var(--bw-2) var(--sheet)}

.lpn-ti.lpn-mask .ui-cap{--cap-dash:dashed; --cap-bw:var(--bw-1-5); --cap-foot:var(--bw-1-5); --cap-rim:var(--edge); --cap-face:var(--sheet); --cap-ink:transparent}

/* the foot: the tab row continued, [F1] Help and Hide pane */
.dk-foot > span{display:inline-flex; align-items:center; gap:var(--s2); white-space:nowrap; cursor:pointer}
:is(.lpn, .rp, .cc, .cc-lane) .ui-cap:is(.ui-cap-sm, .ui-cap-mini){--cap-foot:var(--bw-2); --cap-shadow:none}   /* a small cap and a key in a sentence: the kit's edge, no lit top */
:is(.lpn, .rp, .cc, .cc-lane) .ui-cap.ui-cap-sm.lpn-on{--cap-foot:1px; margin-top:var(--bw-1)}
.lpn-help.lpn-ring .ui-cap{--cap-rim:var(--ink); --cap-shadow:0 var(--bw-2) 0 var(--learn)}
/* the lit cap (the edge-case rules, 2026-11-02): the next key on the sheet and the strip's F1 after --d-help idle wear one look, the
   learner's green edge and halo on the sheet's own ground (a ring of --sheet past the halo), so it reads lit on the white sheet and
   on the mint strip alike (lead 2026-11-02: the lit F1 read quiet on the strip, its halo the strip's own mint) */
.sm.show-next .ui-cap, .lpn-strip-act.lpn-ring .ui-cap, .tc-lane.lpn-ring .ui-cap{--cap-rim:var(--learn-line); --cap-foot-rim:var(--learn-line); --cap-shadow:0 0 0 var(--bw-2) color-mix(in srgb, var(--learn) 30%, transparent), 0 0 0 var(--s1) var(--sheet)}
/* the foot's right half while the current stop is a tab or the new-sheet button: the ringed leg mirrored beside the tab the
   eye is going to, its tick drawing there when the stop is reached; it arrives with the next goal (foot-mirror) */
.dk-foot > .lpn-mirror{color:var(--ink); font-weight:var(--fw-semi); cursor:default; min-width:0}
.lpn-mirror .ui-cap{--cap-rim:var(--ink); --cap-shadow:0 var(--bw-2) 0 var(--learn)}
.lpn-mirror.lpn-done .ui-cap{--cap-shadow:none; --cap-rim:var(--key-rim)}
.lpn-mirror.lpn-done{color:var(--ink-2)}
.lpn-mirror .lpn-cap-tick{margin:0}
.lpn-mirror-cap{display:inline-flex; align-items:center; gap:calc(var(--s1) * 1.5)}
.lpn-mirror-cap .lpn-cap-word{font-style:normal; font-weight:var(--fw-semi); color:inherit}
.lpn-mirror-cap .lpn-cap-ref{font-family:var(--mono); font-weight:var(--fw-bold); color:var(--learn-ink)}
.dk-foot > .lpn-mirror.lpn-mirror-in{--mv:var(--step-rise); animation:lpnArrive var(--d-step-in) var(--ease-out) both}

/* Help, in the goal's place */
.lpn-helpbox{display:flex; flex-direction:column; border-top:1px solid var(--line); padding-top:var(--s2)}
.lpn-help-row{position:relative; display:flex; align-items:center; gap:var(--s3); font-size:var(--fs-small); font-weight:var(--fw-semi); color:var(--ink); padding:var(--s2) var(--s1); border-radius:var(--r-btn); cursor:pointer}
.lpn-help-row:hover{background:var(--chrome)}
.lpn-help-note{margin:var(--s2) 0 0; font-size:var(--fs-label); color:var(--ink-2); line-height:var(--lh-body)}
.lpn-help-esc{display:flex; align-items:center; gap:var(--s3); margin-top:var(--s2); padding:0 var(--s1); font-size:var(--fs-label); color:var(--ink-2)}
/* the Help keys in one column (Wolf's playtest, 2026-10-15): S, M, R, D and Esc one box each, so their labels line up */
.lpn-helpbox :is(.lpn-help-row, .lpn-help-esc) .ui-cap.ui-cap-sm{flex:none; width:var(--help-key-w); min-width:0; padding:0}
.lpn-helpbox .lpn-help-note{padding:0 var(--s1)}
.lpn-exits{display:flex; flex-wrap:wrap; gap:var(--s2)}
/* a way out's two keys in one row, in order: [F1] then [R] (never stacked in the icon slot) */
.lpn-exit-keys{display:inline-flex; align-items:center; gap:var(--s1); line-height:1}
.lpn-exit .lpn-then{font-size:var(--fs-min); font-weight:var(--fw-body); color:var(--ink-2)}

/* ---------- the goal flow (docs/specs/lesson-pane.md, "Motion"; lesson-pane.js answer(), startLanding()). Every
   length is a token; every exit where the eye is is a cut; reduced motion and Effects Subtle or Off play the cut variant
   (lpn-lv-cut, and no lpn-down, lpn-shake, lpn-rise or lpn-pop) ---------- */
/* a press: the cap sinks for --d-key-press (felt, not read), then sits down pressed; no green fill (pane polish) */
.lpn .ui-cap.lpn-press.lpn-down{transform:translateY(var(--lpn-sink))}
/* the landing's last key: solid from the key, then sunk */
/* a stop reached: its caption's tick draws */
.lpn-cap-tick.lpn-tick-in.lpn-mv-full{animation:lpnTickDraw var(--d-cap-tick) var(--ease-snap) var(--d-cap-tick-at) both}
@keyframes lpnTickDraw{from{opacity:0; transform:translateY(-15%) rotate(45deg) scale(0)} to{opacity:1; transform:translateY(-15%) rotate(45deg) scale(1)}}
/* a wrong key: the dropped modifier's cap outlined, still to hold (a white face, a bold legend); the pressed key red-edged in
   the line; the diagnosis in ink 400 and the fix in ink 600, each on its own line */
.lpn .ui-cap.lpn-dropped{--cap-rim:var(--ink); --cap-dash:dashed; --cap-fw:var(--fw-bold); --cap-face:var(--key-face)}
.ui-cap-mini.lpn-mk-bad{--cap-rim:var(--red); --cap-ink:var(--ink)}
.lpn-live:is([data-kind="wrong"], [data-kind="switched"], [data-kind="reveal"]) .lpn-diag{display:block; font-weight:var(--fw-body)}
.lpn-live:is([data-kind="wrong"], [data-kind="switched"], [data-kind="reveal"]) .lpn-fix{display:block; font-weight:var(--fw-semi)}
/* the live line never ends on one word alone (F11) */
.lpn-live > span, .lpn-live .lpn-diag, .lpn-live .lpn-fix{text-wrap:pretty}
/* a diagnosis and its fix are two lines whatever the line's kind now: a landing's previous line keeps them (F5, L15) */
.lpn-live .lpn-diag{display:block; font-weight:var(--fw-body)}
.lpn-live .lpn-diag + .lpn-fix{display:block; font-weight:var(--fw-semi)}
.lpn-chord.lpn-shake{animation:lpnShake var(--d-shake) linear}
.lpn-chord.lpn-shake2{animation:lpnShake2 var(--d-shake) linear}   /* the same shake under a second name: a kept ring swaps to it to play again (lesson-pane.js answer) */
.lpn-live > span.lpn-rise{animation:lpnArrive var(--d-diag-in) var(--ease-out) both; --mv:var(--diag-rise)}
.ui-cap-mini.lpn-pop{animation:lpnPop var(--d-wkey-pop) var(--ease-out) both}
@keyframes lpnShake{0%, 100%{transform:none} 20%{transform:translateX(calc(var(--shake-x) * -1))} 40%{transform:translateX(var(--shake-x))} 60%{transform:translateX(calc(var(--shake-x) * -.75))} 80%{transform:translateX(calc(var(--shake-x) * .5))}}
@keyframes lpnShake2{0%, 100%{transform:none} 20%{transform:translateX(calc(var(--shake-x) * -1))} 40%{transform:translateX(var(--shake-x))} 60%{transform:translateX(calc(var(--shake-x) * -.75))} 80%{transform:translateX(calc(var(--shake-x) * .5))}}
/* the long way's line and a read goal's hold: the long way is a landed kind (learn-ink, a tick); the hold is an instruction (ink) */
.lpn-live[data-kind="long"] > span{display:flex; align-items:baseline; gap:var(--s2); color:var(--learn-ink)}
.lpn-live[data-kind="long"] > span::before{content:''; flex:none; width:calc(var(--s1) * 1.4); height:calc(var(--s2) * 1.2); border:solid var(--learn); border-width:0 var(--bw-2) var(--bw-2) 0; transform:translateY(-10%) rotate(45deg); margin:0 calc(var(--s1) * .5)}
/* the live line a landing swaps out keeps its own look under the landed one */
/* a goal lands (pane polish, "A goal lands"): the finished goal lifts out of the slot; a tick disc pops in its place with the
   landed line at the goal's size and the keys that did it as small pressed caps under it; it holds, then the next goal rises
   into the same slot (both in the slot's one grid cell, the new one out of the flow until the swap, so nothing moves) */
.lpn-step.lpn-done-step{grid-template-columns:var(--lpn-ldisc) minmax(0, 1fr); column-gap:var(--s3); row-gap:var(--s2); align-items:start}
.lpn-ldisc{display:grid; place-items:center; width:var(--lpn-ldisc); height:var(--lpn-ldisc); margin-top:var(--lpn-ldisc-top); border-radius:50%; background:var(--learn)}
.lpn-ldisc .lpn-tick, .lpn-rtk .lpn-tick{width:calc(var(--lpn-ldisc) * .24); height:calc(var(--lpn-ldisc) * .46); border-width:0 var(--bw-2) var(--bw-2) 0; transform:translateY(-12%) rotate(45deg)}
.lpn-lline{font-size:var(--fs-item); font-weight:var(--fw-bold); line-height:var(--lpn-lh-goal); color:var(--ink); text-wrap:pretty}
.lpn-lline[data-kind="long"], .lpn-lline[data-kind="works"]{font-size:var(--fs-body); line-height:var(--lh-inline)}
.lpn-lline[data-kind="read"]{font-size:var(--fs-body); font-weight:var(--fw-body); line-height:var(--lh-inline); color:var(--ink-2)}
.lpn-lline[data-kind="long"] > span::before{content:none}
/* the pause after a step (LW-12, app/pacing.js): the landed line, then "Press [Enter] for the next step." in the teach line's
   type, a step under it; a sheet key's CP-2 aside in a line reads quieter than the line */
.lpn-lline .lpn-pause-line{display:block; margin-top:var(--lpn-pause-gap); font-size:var(--fs-body); font-weight:var(--fw-semi); line-height:var(--lh-inline); color:var(--ink)}
.lpn-lline .lpn-landed-say{display:block}
.lpn-aside{color:var(--ink-2); font-weight:var(--fw-body)}
.lpn-lkeys{grid-column:2; display:flex; flex-wrap:wrap; align-items:center; gap:var(--s2) 0}
.lpn-lkeys .lpn-gap{display:inline-block; width:var(--s6)}
.lpn-landing .lpn-count > span{grid-area:1 / 1}
.lpn-tray-h > b{display:inline-grid; justify-items:end}
.lpn-tray-h > b > span{grid-area:1 / 1}
/* the full landing, on the tokens: the old goal leaves at --d-land-out, the landed line holds, the next arrives at --d-land-swap */
.lpn-landing.lpn-lv-full .lpn-old .lpn-ldisc{animation:lpnPop var(--d-tick-pop) var(--ease-out) var(--d-land-tick) both}
.lpn-landing.lpn-lv-full .lpn-old .lpn-lline{--mv:var(--live-lift); animation:lpnArrive var(--d-step-in) var(--ease-out) var(--d-land-live) both}
.lpn-landing.lpn-lv-full .lpn-old .lpn-lkeys{--mv:var(--live-lift); animation:lpnArrive var(--d-step-in) var(--ease-out) var(--d-land-keys) both}
.lpn-landing.lpn-lv-full .lpn-old{--mv:var(--step-lift); animation:lpnLeave var(--d-step-out) var(--ease-in) calc(var(--d-land-out) + var(--land-hold)) forwards}
.lpn-landing.lpn-lv-full .lpn-new{--mv:var(--step-rise); animation:lpnArrive var(--d-step-in) var(--ease-out) calc(var(--d-land-swap) + var(--land-hold)) both}
.lpn-landing.lpn-lv-full .lpn-new .lpn-chord.lpn-next .ui-cap{animation:lpnStand var(--d-stand) var(--ease-spring) calc(var(--d-land-swap) + var(--d-step-in) + var(--land-hold)) both}
.lpn-landing.lpn-lv-full .lpn-new .lpn-chord.lpn-next::after{transform-origin:left center; animation:lpnFillX var(--d-stand) var(--ease-out) calc(var(--d-land-swap) + var(--d-step-in) + var(--land-hold)) both}
.lpn-landing.lpn-lv-full .lpn-count-old{--mv:var(--count-rise); animation:lpnLeave var(--d-step-out) var(--ease-in) calc(var(--d-land-out) + var(--land-hold)) forwards}
.lpn-landing.lpn-lv-full .lpn-count-now{--mv:var(--count-rise); animation:lpnArrive var(--d-step-in) var(--ease-out) calc(var(--d-land-swap) + var(--land-hold)) both}
.lpn-landing.lpn-lv-full .dk-head .segs i.lpn-seg-land{transform-origin:center; animation:lpnBump var(--d-seg-bump) var(--ease-out) var(--d-land-live) both}
.lpn-landing.lpn-lv-full .lpn-cnt-old{--mv:var(--count-rise); animation:lpnLeave var(--d-count-out) var(--ease-in) calc(var(--d-land-tray) + var(--land-hold)) forwards}
.lpn-landing.lpn-lv-full .lpn-cnt-new{--mv:var(--count-rise); animation:lpnArrive var(--d-count-in) var(--ease-out) calc(var(--d-land-tray) + var(--d-count-out) + var(--land-hold)) both}
.lpn-landing.lpn-lv-full .lpn-ti.lpn-pop > :not(.lpn-dot){animation:lpnPop var(--d-tray-pop) var(--ease-out) calc(var(--d-land-tray) + var(--land-hold) + var(--pop-i) * var(--d-tray-gap)) both}
.lpn-landing.lpn-lv-full .lpn-tray.lpn-tray-new .lpn-tray-h{--mv:var(--count-rise); animation:lpnArrive var(--d-count-in) var(--ease-out) calc(var(--d-land-tray) + var(--land-hold)) both}
/* the cut landing (reduced motion, Subtle, Off): the landed line whole at once in place of the goal; one cut to the next goal */
/* the last goal (finish()): its landed line is in at once with the tick popping, holds, and leaves whole before the receipt
   prints; the head already reads "All 5 goals done" */
.lpn.lpn-fin{--d-land-live:0ms; --d-land-keys:0ms; --d-land-tick:0ms; --d-land-out:var(--d-close-leave-at); --d-step-out:var(--d-close-leave)}
.lpn.lpn-fin.lpn-landing .lpn-count-now{animation:none}
.lpn-landing.lpn-lv-cut .lpn-new, .lpn-landing.lpn-lv-cut .lpn-count-now{animation:lpnOff var(--d-cut) step-end calc(var(--d-land-swap) + var(--land-hold)) backwards}
.lpn-landing.lpn-lv-cut .lpn-old, .lpn-landing.lpn-lv-cut .lpn-count-old{animation:lpnOff var(--d-cut) step-end calc(var(--d-land-swap) + var(--land-hold)) forwards}
.lpn-landing.lpn-lv-cut .lpn-cnt-old{display:none}
/* the last goal's segments drum once, left to right, as the lesson ends */
.lpn.lpn-drum .dk-head .segs i{transform-origin:center; animation:lpnBump var(--d-drum) var(--ease-out) calc(var(--seg-i, 0) * var(--d-drum-gap)) both}
@keyframes lpnLeave{from{opacity:1; transform:none} to{opacity:0; transform:translateY(calc(var(--mv) * -1))}}
@keyframes lpnArrive{from{opacity:0; transform:translateY(var(--mv))} to{opacity:1; transform:none}}
@keyframes lpnOff{from, to{opacity:0}}
@keyframes lpnIn{from{opacity:0}}
@keyframes lpnFillX{from{transform:scaleX(0)} to{transform:none}}
@keyframes lpnNudge{0%{transform:none} 40%{transform:scale(var(--pause-nudge))} 100%{transform:none}}
.lpn-pause-line .ui-cap-mini.lpn-nudge, .lpn-strip-act .ui-cap-sm.lpn-nudge{display:inline-block; animation:lpnNudge var(--d-pause-nudge) var(--ease-out)}
@media (prefers-reduced-motion: reduce){ .lpn-pause-line .ui-cap-mini.lpn-nudge, .lpn-strip-act .ui-cap-sm.lpn-nudge{animation:none} }
html[data-effects="off"] .lpn-pause-line .ui-cap-mini.lpn-nudge, html[data-effects="off"] .lpn-strip-act .ui-cap-sm.lpn-nudge{animation:none}
@keyframes lpnBump{0%{transform:none} 40%{transform:scaleY(var(--bump))} 100%{transform:none}}
@keyframes lpnStand{from{transform:translateY(var(--lpn-sink)); border-bottom-width:1px} to{transform:translateY(calc(var(--lpn-lift) * -1)); border-bottom-width:var(--lpn-due-edge)}}
@keyframes lpnPop{0%{opacity:0; transform:scale(var(--pop-from))} 60%{opacity:1; transform:scale(var(--pop-over))} 100%{opacity:1; transform:none}}

/* fitting a short window (ui/components/pane-fit.js), in this order; teaching copy is never cut mid-sentence or ellipsized */
.lpn-step.lpn-f1 .lpn-rail .ui-cap{--cap-fs:var(--fs-body); padding-left:var(--s2); padding-right:var(--s2)}
.lpn-step.lpn-f1 .lpn-leg.lpn-dense .ui-cap{--cap-fs:var(--fs-label)}
/* a browser-kept leg's taught key (the Excel row, never the one to press) drops to the tray's size with the rest of level 1 */
.lpn-step.lpn-f1 .lpn-aliasleg .lpn-excel .ui-cap{--cap-fs:var(--fs-key); padding:calc(var(--s1) * 1.5) var(--s2); min-width:0; --cap-foot:var(--bw-2)}
.lpn-step.lpn-f1 .lpn-aliasleg .lpn-excel{padding:0}
.lpn-step.lpn-f2{row-gap:var(--s2)}
.lpn-step.lpn-f2 .lpn-rail{row-gap:var(--s2)}
.lpn-step.lpn-f2 .lpn-leg{row-gap:var(--s1)}
/* 4 and 5 keep every key row (key flow): a leg still to come (4), then a finished one (5), draws its keys at the pane's small cap */
.lpn-step.lpn-f4 .lpn-leg:not(.lpn-done):not(.lpn-cur):not(.lpn-keep), .lpn-step.lpn-f5 .lpn-leg.lpn-done:not(.lpn-held){--lpn-cap-h:var(--lpn-cap-h-sm); --cap-h-md:var(--lpn-cap-h-sm); --cap-min-w-md:var(--lpn-cap-h-sm); --cap-px-md:var(--cap-px-sm)}
.lpn-step.lpn-f4 .lpn-leg:not(.lpn-done):not(.lpn-cur):not(.lpn-keep) .ui-cap, .lpn-step.lpn-f5 .lpn-leg.lpn-done:not(.lpn-held) .ui-cap{--cap-fs:var(--fs-key)}
.lpn.lpn-trayfold .lpn-tray{display:flex; align-items:center; gap:var(--s3); padding:var(--s2) 0; margin-top:auto}
.lpn.lpn-trayfold .lpn-slot{padding-top:var(--s3); padding-bottom:var(--s3)}   /* lesson-wide with the fold, so the tile never moves between goals */
.lpn.lpn-trayfold .lpn-tray-h{flex:1 1 auto; justify-content:flex-start; gap:var(--s2)}
.lpn.lpn-trayfold .lpn-haul{margin-top:0; flex-wrap:nowrap}
.lpn.lpn-trayfold .lpn-ti:not(.lpn-latest){display:none}
.lpn-step.lpn-f7 .lpn-teach .lpn-s2{display:none}
.lpn-step.lpn-f8 > .lpn-teach{display:none}
@media (prefers-reduced-motion: reduce){ .lpn-chip{animation:none} .lpn.lpn-shine .dk-head .segs i.on{animation:none} }

/* ---------- a lesson's marks (docs/specs/lesson-pane.md, "Marking the target", "The hit at the target"; ui/components/sheet-marks.js) ----------
   Drawn in the sheet's scroll box for cells, in the workspace's mark layer for the formula bar, a tab and the new-sheet button,
   and in a dialog for its field. Every size and length is a token; every exit is a cut. */
.sm-layer{position:absolute; left:0; top:0; right:0; bottom:0; pointer-events:none; z-index:14; overflow:hidden}
.sm-lit-host{position:absolute; left:0; top:0; right:0; bottom:0; pointer-events:none}   /* the lit goal tab's brackets (lesson-view.js paintLitTab) */
.pd-backdrop > .sm{z-index:3}
/* the brackets: four corner L's in learn, a 1px sheet keyline round every arm, a 10% tint over the target itself */
.sm-bracket{z-index:7}
.sm-b-tint{position:absolute; background:color-mix(in srgb, var(--mark) var(--bracket-tint), transparent)}
.sm-bracket.sm-ui .sm-b-tint{display:none}
.sm-c{position:absolute; width:var(--ax); height:var(--ay); box-sizing:border-box; border:0 solid var(--mark);
  filter:drop-shadow(var(--bracket-key) 0 0 var(--mark-key)) drop-shadow(calc(-1 * var(--bracket-key)) 0 0 var(--mark-key)) drop-shadow(0 var(--bracket-key) 0 var(--mark-key)) drop-shadow(0 calc(-1 * var(--bracket-key)) 0 var(--mark-key))}
.sm-c.sm-tl{left:0; top:0; border-width:var(--bracket-w) 0 0 var(--bracket-w); --lx:-1; --ly:-1}
.sm-c.sm-tr{right:0; top:0; border-width:var(--bracket-w) var(--bracket-w) 0 0; --lx:1; --ly:-1}
.sm-c.sm-bl{left:0; bottom:0; border-width:0 0 var(--bracket-w) var(--bracket-w); --lx:-1; --ly:1}
.sm-c.sm-br{right:0; bottom:0; border-width:0 var(--bracket-w) var(--bracket-w) 0; --lx:1; --ly:1}
/* a timed run's brackets (a drill's, the Daily's) take its own color: --mark-run, read on the bracket itself, so the dark grid's
   light-sheet values (tokens.css html[data-dark="1"] .gridwrap) apply inside the grid */
:is(.sm-bracket, .sm-from).sm-drills{--mark-run:var(--mark-drills)}
.wsc[data-kind="daily"] :is(.sm-bracket, .sm-from).sm-drills{--mark-run:var(--mark-daily)}
.sm-bracket.sm-drills .sm-c{border-color:var(--mark-run)}
.sm-bracket.sm-drills .sm-b-tint{background:color-mix(in srgb, var(--mark-run) var(--bracket-tint), transparent)}
/* the target-lock moment: the corners converge from --lock-from out and lock on, a touch past their mark; the tint comes in after */
.sm-bracket.m-target-lock.m-v-full .sm-c{animation:smLock var(--d-lock) var(--ease-lock) both}
.sm-bracket.m-target-lock.m-v-full .sm-b-tint{animation:smIn var(--d-lock-tint-in) var(--ease-out) var(--d-lock-tint) both}
@keyframes smLock{0%{opacity:0; transform:translate(calc(var(--lx) * var(--lock-from)), calc(var(--ly) * var(--lock-from)))} 35%{opacity:1; transform:translate(calc(var(--lx) * var(--lock-from) * .55), calc(var(--ly) * var(--lock-from) * .55))} 100%{opacity:1; transform:none}}
@keyframes smIn{from{opacity:0} to{opacity:1}}
/* the from mark (sheet-marks.js paintFromList): where a copy goal copies from, a quiet dashed outline in the marks' colour on the
   brackets' own box, beside the solid "to" brackets. Static in every motion setting (nothing to reduce); each edge starts and ends
   on a dash (--from-gx, --from-gy: the gaps fitted to the edge). It drops once the range is copied: the marching ants take over */
.sm-from{z-index:7; --from-c:var(--mark); background-repeat:no-repeat;
  background-image:
    repeating-linear-gradient(90deg, var(--from-c) 0 var(--from-dash), transparent var(--from-dash) calc(var(--from-dash) + var(--from-gx))),
    repeating-linear-gradient(90deg, var(--from-c) 0 var(--from-dash), transparent var(--from-dash) calc(var(--from-dash) + var(--from-gx))),
    repeating-linear-gradient(180deg, var(--from-c) 0 var(--from-dash), transparent var(--from-dash) calc(var(--from-dash) + var(--from-gy))),
    repeating-linear-gradient(180deg, var(--from-c) 0 var(--from-dash), transparent var(--from-dash) calc(var(--from-dash) + var(--from-gy)));
  background-size:100% var(--from-w), 100% var(--from-w), var(--from-w) 100%, var(--from-w) 100%;
  background-position:0 0, 0 100%, 0 0, 100% 0}
/* a timed run's from mark takes the run's colour, the pair of its brackets and apart from the green ants (UI-123, his card of
   2026-11-19: "Blue, like the paste brackets") */
.sm-from.sm-drills{--from-c:var(--mark-run)}
/* ---------- the show (register LW-27; ui/components/show-marks.js): the instructor's own cursor walks the sheet in --instr while the
   learner's stays put. Solid while it moves, dashed with the tint while it waits on the target; the cells it passed keep a tint; a
   light band down its column and along its row, the headers solid; the kit's cap at about x1.6 by the cell; the kit's pop as the
   tip, its left edge in the instructor's colour; the Daily's corner brackets round a cell the point is about. */
.ghost-cursor.show-cur{border:var(--instr-w) solid var(--instr-line); border-radius:0; opacity:1; z-index:8; transition:left var(--d-show-move) linear, top var(--d-show-move) linear, width var(--d-show-move), height var(--d-show-move)}
.ghost-cursor.show-cur.show-wait{border-style:solid; border-width:var(--instr-wait-w); border-color:transparent; background:none}
/* the target (UI-86): four corner arms just outside the cells, in the lesson's ink; no fill, no dotted edge, no handle, so it never
   reads as a selection, a copy marquee or a fill */
.ghost-cursor.show-cur.show-wait::before{content:''; position:absolute; inset:calc(-1 * (var(--instr-wait-w) + var(--bracket-pad))); pointer-events:none; background-repeat:no-repeat;
  background-image:linear-gradient(var(--learn-ink), var(--learn-ink)), linear-gradient(var(--learn-ink), var(--learn-ink)), linear-gradient(var(--learn-ink), var(--learn-ink)), linear-gradient(var(--learn-ink), var(--learn-ink)), linear-gradient(var(--learn-ink), var(--learn-ink)), linear-gradient(var(--learn-ink), var(--learn-ink)), linear-gradient(var(--learn-ink), var(--learn-ink)), linear-gradient(var(--learn-ink), var(--learn-ink));
  background-position:left top, left top, right top, right top, left bottom, left bottom, right bottom, right bottom;
  background-size:var(--bracket-arm) var(--bracket-w), var(--bracket-w) var(--bracket-arm), var(--bracket-arm) var(--bracket-w), var(--bracket-w) var(--bracket-arm), var(--bracket-arm) var(--bracket-w), var(--bracket-w) var(--bracket-arm), var(--bracket-arm) var(--bracket-w), var(--bracket-w) var(--bracket-arm)}
/* the motion that leads the eye (his play of 13:05: no scanning the sheet): out of the learner's cursor, one pulse */
.ghost-cursor.show-cur.show-snap{transition:none}
.ghost-cursor.show-cur.show-slide{transition:left var(--d-show-slide) ease-out, top var(--d-show-slide) ease-out, width var(--d-show-slide), height var(--d-show-slide)}
.ghost-cursor.show-cur.show-pulse{animation:showPulse var(--d-show-pulse) ease-out 1}
@keyframes showPulse{50%{box-shadow:0 0 0 var(--s2) color-mix(in srgb, var(--instr) 30%, transparent)}}
/* the hand back (his note 2026-11-01 16:22): the learner's own cell pulses once in the learner's green as their turn comes */
.sm.show-home{position:absolute; z-index:8; pointer-events:none; border:var(--instr-w) solid var(--learn-line); opacity:0}
.sm.show-home.show-home-on{animation:showHome var(--d-show-home) ease-out 1}
@keyframes showHome{0%{opacity:1; box-shadow:0 0 0 0 color-mix(in srgb, var(--learn) 40%, transparent)} 60%{opacity:1; box-shadow:0 0 0 var(--s2) color-mix(in srgb, var(--learn) 25%, transparent)} 100%{opacity:0; box-shadow:0 0 0 var(--s2) transparent}}
/* the next key beside the learner's cursor on their turn: the kit's lit cap (with the strip's lit F1, above), on the sheet's solid
   ground, so a cap over written cells shows no letter through the gaps of a chord (lead 2026-11-02: a "0" showed between Ctrl and
   +); the ground's pad is the lit ring's, and the cap itself keeps its place by the cell (show-marks.js next places it by its own box) */
.sm.show-next{position:absolute; z-index:12; pointer-events:none; background:var(--sheet); border-radius:var(--r-btn); padding:var(--s1); --show-next-gap:var(--s2)}
/* over written cells, the whole of each cell the cap cuts into, on the sheet's ground under the cap and under the marks (brackets,
   ring), so no piece of a word shows beside the cap (lead 2026-11-02: a lone "W" of "Week of Sep 15" by Ctrl+Z; show-marks.js next) */
.sm.show-next-ground{position:absolute; z-index:6; pointer-events:none; background:var(--sheet)}
/* the edge-case rules (2026-11-02): the next key's cap pulses once (idle past --d-edge-nudge, a key that did nothing), the cap itself
   and never its placed box, with the pause's motion; on a goal that asks, its area pulses as the hand back does (.show-zone) */
.sm.show-next .ui-cap.show-nudge{animation:lpnNudge var(--d-pause-nudge) var(--ease-out)}
/* the lesson's trick (inline-marks.js [[key!:]]): its caps flash green three times, in the line and by the cell alike (show-marks.js
   next({ trick })), so the key the line names is the key the cell shows; in the line they then rest as the kit's plain grey cap
   (Wolf's look, 2026-11-13: green only on the cell mark, no green edge at rest). The flash is the lit cap's edge and ground: its
   face goes to the tint, its edge to the green and a ring past it, inside the room .im-key.im-trick keeps, so no cap grows and
   nothing beside it moves or is covered (no scale: at its peak lpnNudge's 1.3 covered the next word and the + between the caps) */
@keyframes imTrickFlash{50%{background:var(--learn-tint); border-color:var(--learn-line); box-shadow:0 0 0 var(--bw-2) var(--learn-line), 0 0 0 var(--s1) var(--sheet)}}
.im-trick .ui-cap, .sm.show-next.show-trick .ui-cap{animation:imTrickFlash calc(var(--d-pause-nudge) * 2) var(--ease-out) 3}
@media (prefers-reduced-motion: reduce){ .sm.show-next .ui-cap.show-nudge, .sm.show-zone, .im-trick .ui-cap, .sm.show-next.show-trick .ui-cap{animation:none !important} }
html[data-effects="off"] .sm.show-next .ui-cap.show-nudge, html[data-effects="off"] .sm.show-zone, html[data-effects="off"] .im-trick .ui-cap, html[data-effects="off"] .sm.show-next.show-trick .ui-cap{animation:none}
/* the intro's reveal (LW-27, his word 13:13): a part not taught yet keeps its place, blurred and faded, and comes in once */
.wsc[data-reveal] :is(.ribbon-slot, .fbar > :is(.namebox, .fx-actions, .fx, .fcontent, .fx-say, .nb-list), .wsc-foot){transition:filter var(--reveal-ms) ease, opacity var(--reveal-ms) ease}
.wsc[data-reveal]:not([data-reveal~="ribbon"]) .ribbon-slot,
.wsc[data-reveal]:not([data-reveal~="fbar"]) .fbar > :is(.fx-actions, .fx, .fcontent, .fx-say, .nb-list),
.wsc[data-reveal]:not([data-reveal~="namebox"]) .fbar > .namebox,
.wsc[data-reveal]:not([data-reveal~="tabs"]) .wsc-foot{filter:blur(var(--reveal-blur)); opacity:var(--reveal-fade); pointer-events:none}
/* (the cells' fade keys off data-veils, set once per lesson: a rule from the changing data-reveal down to every td restyled the whole
   sheet on the key that brought the next part in, 28 ms; and no rule under a changing attribute ends on a bare * or :not(), which
   restyles every element under it) */
.wsc[data-veils] #grid td{transition:color var(--reveal-ms) ease}
.wsc #grid td.rv-veil, .wsc #grid td.rv-veil *{color:transparent !important}
/* Spotlight: a filled cell outside the goal's area fades in place (sheet-view.js setSpot) */
.wsc #grid td.out-of-play{opacity:var(--spot-fade)}
/* the learner's own cursor never fades, wherever it stands (lead 2026-11-02: off the area they are told to go back, so they see
   where they are) */
.wsc #grid td.out-of-play.active{opacity:1; transition:none}
.wsc[data-spot] #grid td{transition:opacity var(--reveal-ms) ease, color var(--reveal-ms) ease}
/* a sheet arriving shows whole at once: none of its cells eases out of the leaving sheet's veil or fade (sheet-view.js arrive) */
.wsc #grid.sv-arrive td{transition:none}
/* and the parts of the screen out of play fade the same way, never blurred (his words 2026-10-31 22:30; lesson-view.js applySpot
   names them by one rule, ui/components/spot-parts.js, UI-113: the Ribbon unless the goal's route uses it, the sheet tabs unless
   the lesson has more than one sheet in play or the learner is off the goal's sheet; the status bar keeps its strength) */
.wsc[data-spot] :is(.ribbon-slot, .wsc-tabs, .wsc-sheetkeys){transition:opacity var(--reveal-ms) ease}
.wsc[data-spot-dim~="ribbon"] .ribbon-slot, .wsc[data-spot-dim~="tabs"] :is(.wsc-tabs, .wsc-sheetkeys){opacity:var(--spot-fade); pointer-events:none}
/* Chapter 1 builds the screen up (LW-28, his direction 2026-11-01 17:43; content/opens.js, lesson-view.js applyOpened): a part no
   lesson so far has taught keeps its place, faded like a cell out of play and never blurred (his 22:30 rule), until the lesson that
   teaches it; the Ribbon's tabs fade one by one once the Ribbon itself is open */
.wsc[data-opened] :is(.ribbon-slot, .fbar > :is(.namebox, .fx-actions, .fx, .fcontent, .fx-say, .nb-list), .wsc-tabs, .wsc-sheetkeys, .wsc-status, .rf-tab){transition:opacity var(--reveal-ms) ease}
.wsc[data-opened]:not([data-opened~="ribbon"]) .ribbon-slot,
.wsc[data-opened]:not([data-opened~="fbar"]) .fbar > :is(.fx-actions, .fx, .fcontent, .fx-say, .nb-list),
.wsc[data-opened]:not([data-opened~="namebox"]) .fbar > .namebox,
.wsc[data-opened]:not([data-opened~="tabs"]) :is(.wsc-tabs, .wsc-sheetkeys),
.wsc[data-opened]:not([data-opened~="status"]) .wsc-status,
.wsc[data-opened~="ribbon"]:not([data-opened~="tab:F"]) .rf-tab[data-tab="F"],
.wsc[data-opened~="ribbon"]:not([data-opened~="tab:H"]) .rf-tab[data-tab="H"],
.wsc[data-opened~="ribbon"]:not([data-opened~="tab:N"]) .rf-tab[data-tab="N"],
.wsc[data-opened~="ribbon"]:not([data-opened~="tab:P"]) .rf-tab[data-tab="P"],
.wsc[data-opened~="ribbon"]:not([data-opened~="tab:M"]) .rf-tab[data-tab="M"],
.wsc[data-opened~="ribbon"]:not([data-opened~="tab:A"]) .rf-tab[data-tab="A"],
.wsc[data-opened~="ribbon"]:not([data-opened~="tab:R"]) .rf-tab[data-tab="R"],
.wsc[data-opened~="ribbon"]:not([data-opened~="tab:W"]) .rf-tab[data-tab="W"]{opacity:var(--spot-fade); pointer-events:none}
/* the tab band out of every fade above while the learner's way runs through it (lesson-view.js paintSpotDim, the edge-case rules
   2026-11-02): off the goal's sheet, its tab lit, a sheet key next, the hit on a switch. It comes out at once (the hit shows on
   the first switch) and fades back at the kit's pace */
.wsc[data-tabs-out][data-tabs-out] .wsc-foot, .wsc[data-tabs-out][data-tabs-out] :is(.wsc-tabs, .wsc-sheetkeys){filter:none; opacity:1; pointer-events:auto; transition:none}
@media (prefers-reduced-motion: reduce){ .ghost-cursor.show-cur, .sm.show-home{transition:none !important; animation:none !important} .wsc[data-reveal] :is(.ribbon-slot, .fbar > :is(.namebox, .fx-actions, .fx, .fcontent, .fx-say, .nb-list), .wsc-foot), .wsc[data-veils] #grid td, .wsc[data-spot] :is(#grid td, .ribbon-slot, .wsc-tabs, .wsc-sheetkeys), .wsc[data-opened] :is(.ribbon-slot, .fbar > :is(.namebox, .fx-actions, .fx, .fcontent, .fx-say, .nb-list), .wsc-tabs, .wsc-sheetkeys, .wsc-status, .rf-tab){transition:none} }
.sm.show-trail{position:absolute; z-index:5; background:var(--instr-trail); box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--instr-line) 30%, transparent); pointer-events:none}
.sm.show-band{position:absolute; z-index:4; background:var(--instr-band); pointer-events:none}
.sm.show-press{position:absolute; z-index:12; transform:scale(var(--show-cap-k)); transform-origin:top left; pointer-events:none}
.sm.show-tip{position:absolute; z-index:13; box-shadow:var(--card-halo), var(--shadow-card); width:max-content; max-width:var(--show-tip-w); padding:var(--s2) var(--s3); border-left:var(--instr-w) solid var(--instr-line); font-size:var(--fs-body); line-height:1.35; pointer-events:none}
.show-tip-h{display:block; font-size:var(--fs-head); font-weight:var(--fw-heavy); color:var(--ink)}
.show-tip-h .lpn-cap-tick{margin:0 var(--s2) 0 0; vertical-align:middle}
/* the learner's pop (Spotlight): the same kit pop with the verdict's green edge and halo; the teacher's halo is violet. The pop
   takes the task card's lift and halo (his word 2026-10-09: it must not blend into the sheet; 2026-10-31 22:30: he could not find it) */
.sm.show-tip{--mode:var(--instr); --card-halo:0 0 0 var(--s1) color-mix(in srgb, var(--mode) 22%, transparent)}   /* the halo token again here, so its mode resolves on the pop */
.sm.show-tip[data-tone="you"]{border-left-color:var(--right); --mode:var(--right)}
.sm.show-tip{transition:opacity var(--d-pop-fade) ease}
.sm.show-tip.show-tip-glide{transition:left var(--d-pop-glide) ease, top var(--d-pop-glide) ease, opacity var(--d-pop-fade) ease}   /* a docked pop's re-dock glides, never jumps (Wolf 2026-11-02 16:59) */
.sm.show-measure{left:0; top:0; width:0; height:0; overflow:hidden; contain:strict; visibility:hidden}   /* where the docked pop's lines are measured, apart from the page's layout */
/* the step card's change of seat (UI-86, 8.1): a fade through on the page's route tokens, never a slide; it comes in where it goes */
@media (prefers-reduced-motion: no-preference){ .sm.show-tip.show-tip-seat{animation:tipSeat var(--d-route-in) var(--ease-out) var(--d-route-out) backwards} }
@keyframes tipSeat{from{opacity:0}to{opacity:1}}
html[data-effects="off"] .sm.show-tip.show-tip-seat{animation:none}
.sm.show-tip.show-tip-under{opacity:var(--pop-under)}   /* the learner's cursor under the docked pop: it lets the cell show, in place (round 3 of the steady pop shots) */
html[data-effects="off"] .sm.show-tip, html[data-effects="off"] .sm.show-tip.show-tip-glide{transition:none}
@media (prefers-reduced-motion: reduce){ .sm.show-tip, .sm.show-tip.show-tip-glide{transition:none} }
.show-tip-line{display:block; color:var(--ink-2)}
/* a prediction's choices under the question (LW-28): the kit's caps and their cells, as the strip's act slot sets them */
.show-tip-keys{display:flex; align-items:center; gap:var(--s2); margin-top:var(--s2); color:var(--ink-2); font-weight:var(--fw-semi); font-size:var(--fs-label); white-space:nowrap}
.show-tip-keys .lpn-cap-ref{font-family:var(--mono); font-weight:var(--fw-bold); color:var(--ink)}
/* Spotlight's pop is the kit's task card (.tc, task-card.js; Wolf 2026-11-02 19:14: the landing demo's card, "minimal text, goal
   x/y"): the head band in the lesson's mode colour with the segments and Goal n of m, the goal in bold at the lesson's goal size,
   one grey line, the card's edge, halo and lift, and its pointer on the edge facing the block, drawn whole outside the card as a
   triangle in the card's edge colour (the box is fixed to the goal's largest text, so nothing in it overflows). The teacher's
   line before the first turn keeps the teacher's violet, as the strip does */
.sm.show-tip.tc-lesson{--mode:var(--learn); --mode-line:var(--learn-line); --mode-on:var(--learn-on); padding:0 var(--s5) var(--s3); gap:var(--s2); border:var(--cursor-w) solid var(--mode-line); overflow:visible; font-size:var(--fs-body); line-height:1.35}
.sm.show-tip.tc-lesson[data-tone="show"]{--mode:var(--instr); --mode-line:var(--instr-line); --mode-on:var(--instr-on)}
.tc-lesson .tc-head{border-radius:calc(var(--r-card) - var(--cursor-w)) calc(var(--r-card) - var(--cursor-w)) 0 0; position:static}
.tc-lesson .tc-goal{font-size:var(--fs-head); font-weight:var(--fw-bold); text-wrap:balance}   /* a goal past the cap splits into even lines, never a last word alone (card round 4: Meet's goal 11 "G.") */
/* the card is as wide as its words, never its goal bar (Wolf 2026-11-03 19:10: "you stretch a box based on a progress bar instead of
   the text"): the segments add nothing to its width (inline-size containment) and take the room the head has left beside the count,
   which shows whole; they narrow to --s1 each, then their gap goes down to --show-seg-gap-min so all m stay seen (--m, cardHeadHtml) */
.tc-lesson .tc-segs{container-type:inline-size; flex:1 1 0; min-width:0; gap:0}
.tc-lesson .tc-segs i + i{margin-left:clamp(var(--show-seg-gap-min), (100cqw - var(--m, 1) * var(--s1)) / max(var(--m, 1) - 1, 1), var(--s1))}
.tc-lesson .tc-teach{font-size:var(--fs-body); line-height:1.35; text-wrap:balance}
.tc-lesson .tc-lane{contain:inline-size; margin-top:auto; display:flex; flex-wrap:wrap; align-items:center; gap:var(--s1) var(--s2); min-height:calc(var(--cap-h-sm) + var(--s2)); padding-top:var(--s2); border-top:1px solid var(--line); color:var(--ink-2); font-weight:var(--fw-semi); font-size:var(--fs-label); line-height:1.2}   /* the key lane (UI-86): the band's keys in the card's foot, one height, adding nothing to the card's width */
.tc-lane-say .lpn-cap-num{margin-right:var(--s1)}
/* the trick landed (UI-86, the stroke rows): yours and the trick's, each on the chrome ground, the two numbers the card's biggest type */
.tc-lesson .im-rows{gap:var(--s1)}
.tc-lesson .im-row{background:var(--chrome); border-radius:var(--r-btn); padding:var(--s1) var(--s2); gap:var(--s2)}
.tc-lesson .im-row-n{font-family:var(--mono); font-size:var(--fs-head); line-height:1; min-width:var(--s8)}
.tc-segs i.tc-seg-new{transform-origin:center}
@media (prefers-reduced-motion: no-preference){ .tc-segs i.tc-seg-new{animation:tc-seg-pop var(--d-tick-pop) var(--ease-spring)} }   /* one more done (UI-86) */
@keyframes tc-seg-pop{from{transform:scaleY(1)} 40%{transform:scaleY(2)} to{transform:scaleY(1)}}
.tc-lane .ui-cap{--cap-rim:var(--ink)}   /* the key to press now wears an ink rim, no halo (UI-86) */
/* the line slot's kinds (UI-86): the idle step and the insist note carry a dot in the mode's colour; the note is outlined in it;
   a wrong try's reason sits on the miss ground with a red cross. One slot, one place, nothing shakes */
.tc-lesson .tc-teach:is(.tc-step, .tc-route, .tc-why){display:flex; align-items:baseline; gap:var(--s2)}
.tc-lesson .tc-teach:is(.tc-route, .tc-why){border:1px solid transparent; border-radius:var(--r-btn); padding:var(--s1) var(--s2); color:var(--ink)}   /* one plate for both, a kind changes only its colour */
.tc-line-dot{flex:none; width:var(--s2); height:var(--s2); border-radius:50%; background:var(--mode); transform:translateY(calc(-1 * var(--bw-2)))}
.tc-lesson .tc-teach.tc-route{border-color:var(--mode-line); background:var(--sheet)}
.tc-lesson .tc-teach.tc-why{background:var(--red-tint)}
.tc-why-x{flex:none; width:var(--s3); height:var(--s3); fill:none; stroke:var(--red); stroke-width:var(--bw-2); stroke-linecap:round; align-self:center}
@media (prefers-reduced-motion: no-preference){ .tc-lesson .tc-teach:is(.tc-route, .tc-why){animation:tc-line-in var(--d-menu) var(--ease-out)} }
@keyframes tc-line-in{from{opacity:0}to{opacity:1}}
.tc-lane .lpn-cap-ref{font-family:var(--mono); font-weight:var(--fw-bold); color:var(--ink)}
.tc-lesson .tc-wrap{contain:inline-size}   /* an edge-case rules' line adds nothing to the card's width: it wraps inside the goal's words and grows the card away from the block (round 2 of the card shots; round 6) */
/* the count drawn under a landed line (.tc-rows, inline-marks.js keyRowsHtml): its caps keep one row while it fits the goal's width;
   a row wider than that wraps inside it and the card grows down (show-marks.js kitFit; UI-127). The caps never shrink */
.tc-lesson .im-row-caps{flex-wrap:nowrap}
.tc-lesson.tc-rows-wrap .im-row-caps{flex-wrap:wrap}
.sm.show-tip.tc-lesson[data-size="sm"]{width:var(--pop-w-sm); max-width:none}
.sm.show-tip.tc-lesson[data-size="md"]{width:var(--pop-w-md); max-width:none}
.sm.show-tip.tc-lesson[data-size="lg"]{width:var(--pop-w-lg); max-width:none}
.tc-lesson .show-tip-keys{margin-top:0}
.tc-lesson .tc-goal .tc-tick{vertical-align:middle}
.sm.show-tip.tc-lesson::before{background:var(--mode-line); border:0}
.sm.show-tip.tc-lesson[data-pointer="left"]::before{clip-path:polygon(0 0, 0 100%, 100% 100%)}
.sm.show-tip.tc-lesson[data-pointer="right"]::before{clip-path:polygon(0 0, 100% 0, 100% 100%)}
.sm.show-tip.tc-lesson[data-pointer="top"]::before{clip-path:polygon(0 100%, 0 0, 100% 0)}
.sm.show-tip.tc-lesson[data-pointer="bottom"]::before{clip-path:polygon(0 100%, 100% 100%, 100% 0)}
.sm.show-ring{position:absolute; z-index:9; --mark:var(--instr-line); pointer-events:none}
.wsc .namebox.show-lit{box-shadow:inset 0 0 0 var(--bw-2) var(--instr-line); background:var(--instr-tint)}
.wsc .wsc-tabs.show-lit{box-shadow:inset 0 0 0 var(--bw-2) var(--instr-line); background:var(--instr-tint)}
.wsc :is(#grid, .grid-rh) th.hd-instr{background:var(--instr); color:var(--instr-on); font-weight:var(--fw-bold)}
/* the next key on a pill beside the brackets, after a stall */
.sm-bracket .sm-pill{display:inline-flex; align-items:center; gap:var(--s1)}
/* with text on every side of the target, the pill sits in the column-letter strip, over the header row */
.sm.sm-pillstrip{z-index:9; width:0; height:0; overflow:visible}
.sm-pillstrip .sm-pill{position:static; display:inline-flex; align-items:center; gap:var(--s1); height:calc(var(--hdrh, var(--cellh)) - var(--bw-2)); padding:0 var(--s1); box-shadow:none; border-radius:var(--bw-2)}
.sm-pillstrip .sm-pill .ui-cap-mini{padding:0 calc(var(--s1) / 2); margin:0; --cap-foot:var(--bw-1-5); vertical-align:middle}
/* the hit: a ring on the cursor's own line, the cell solid for one press (its own text white, clipped to the cell), the tint
   drawn with the theme's blend, four corner ticks; every part leaves with a cut */
/* the hit's box makes no stacking context of its own, so its tint blends with the cells under it, not with an empty group */
.sm.sm-hit, .sm-trail{left:0; top:0; width:0; height:0; overflow:visible}
.sm.sm-hit{z-index:auto}
.sm-trail{z-index:8}
.sm-hit > div, .sm-trail > i{position:absolute; box-sizing:border-box; pointer-events:none; z-index:8}
.sm-hit-ring{border:var(--cursor-cell-w) solid var(--mark); animation:smGone var(--d-cut) linear var(--d-snap) forwards}
.sm-hit.sm-v-full .sm-hit-ring{animation:smRingIn var(--d-ring-in) var(--ease-lock) both, smGone var(--d-cut) linear var(--d-snap) forwards}
.sm-hit-solid{background:var(--mark); overflow:hidden; white-space:nowrap; animation:smGone var(--d-cut) linear var(--d-solid) forwards}
.sm-hit-solid span, .sm-hit-solid span *{color:var(--mark-on)}
.sm-hit-solid span{position:absolute}
.sm-hit-solid .padx{visibility:hidden}
.sm-hit-tint{background:var(--mark-tint); mix-blend-mode:var(--hit-blend); visibility:hidden; animation:smShow var(--d-cut) linear var(--d-solid) forwards, smGone var(--d-cut) linear calc(var(--d-solid) + var(--d-tint)) forwards}
.sm-hit.sm-v-full .sm-hit-tint{animation:smShow var(--d-cut) linear var(--d-solid) forwards, smFade calc(var(--d-tint) - var(--d-tint-hold)) var(--ease-in) calc(var(--d-solid) + var(--d-tint-hold)) forwards}
.sm-hit-tick{border:0 solid var(--mark); visibility:hidden; animation:smShow var(--d-cut) linear var(--d-hit-burst-at) forwards, smTick var(--d-hit-burst) var(--ease-out) var(--d-hit-burst-at) both, smGone var(--d-cut) linear calc(var(--d-hit-burst-at) + var(--d-hit-burst)) forwards}
.sm-hit-tick.sm-tl{border-width:var(--bracket-w) 0 0 var(--bracket-w)}
.sm-hit-tick.sm-tr{border-width:var(--bracket-w) var(--bracket-w) 0 0}
.sm-hit-tick.sm-bl{border-width:0 0 var(--bracket-w) var(--bracket-w)}
.sm-hit-tick.sm-br{border-width:0 var(--bracket-w) var(--bracket-w) 0}
@keyframes smRingIn{from{transform:scale(var(--sx), var(--sy))} to{transform:none}}
@keyframes smTick{from{transform:none} to{transform:translate(var(--dx), var(--dy))}}
@keyframes smGone{to{visibility:hidden}}
@keyframes smShow{to{visibility:visible}}
@keyframes smFade{to{opacity:0}}
/* while the ring owns the cell, the cursor's outline and fill handle step aside (one outline, not two) */
.wsc .gridwrap.sm-aside td.active, .wsc .gridwrap.sm-aside td.active.spill .sphi{outline-color:transparent}
.wsc .gridwrap.sm-aside td.fh::after{visibility:hidden}
/* a jump's trail: shoots out from the cell it left by --d-jump-out, holds, then its tail retracts into the landing cell */
.sm-trail > i{background:var(--mark)}
.sm-trail-x > .sm-trail-out{transform-origin:left center; animation:smTrailX var(--d-jump-out) var(--ease-out) both, smGone var(--d-cut) linear var(--d-jump-hold) forwards}
.sm-trail-x > .sm-trail-in{transform-origin:right center; visibility:hidden; animation:smShow var(--d-cut) linear var(--d-jump-hold) forwards, smTrailXBack calc(var(--d-jump) - var(--d-jump-hold)) var(--ease-move) var(--d-jump-hold) both}
.sm-trail-x.sm-trail-back > .sm-trail-out{transform-origin:right center}
.sm-trail-x.sm-trail-back > .sm-trail-in{transform-origin:left center}
.sm-trail-y > .sm-trail-out{transform-origin:center top; animation:smTrailY var(--d-jump-out) var(--ease-out) both, smGone var(--d-cut) linear var(--d-jump-hold) forwards}
.sm-trail-y > .sm-trail-in{transform-origin:center bottom; visibility:hidden; animation:smShow var(--d-cut) linear var(--d-jump-hold) forwards, smTrailYBack calc(var(--d-jump) - var(--d-jump-hold)) var(--ease-move) var(--d-jump-hold) both}
.sm-trail-y.sm-trail-back > .sm-trail-out{transform-origin:center bottom}
.sm-trail-y.sm-trail-back > .sm-trail-in{transform-origin:center top}
@keyframes smTrailX{from{transform:scaleX(0)} to{transform:none}}
@keyframes smTrailY{from{transform:scaleY(0)} to{transform:none}}
@keyframes smTrailXBack{from{transform:none} to{transform:scaleX(0)}}
@keyframes smTrailYBack{from{transform:none} to{transform:scaleY(0)}}
/* the target's column letter and row number: a learn bar on the header's outer edge (the top of the letter, the left of the
   number, where Excel draws nothing), the number a notch at its cell. The header keeps its own ground and ink, so Excel's
   selected-header look (th.hd-on) keeps meaning only where the cursor is: no declaration here is one of hd-on's */
.wsc :is(#grid, .grid-rh) th.hd-target:not(.frz-c){position:relative}
.wsc :is(#grid, .grid-rh) th.hd-target::before{content:''; position:absolute; background:var(--learn); pointer-events:none}
.wsc #grid tr.hdr th.hd-target::before{left:0; right:0; top:0; height:var(--hd-bar)}
.wsc :is(#grid, .grid-rh) th.rowhdr.hd-target::before{left:0; top:0; bottom:0; width:var(--hd-bar)}
/* UI-86, the header coordinates: the target's first and last column letter and row number wear the address chip (the mode's
   tint, mono bold in its ink, a ring), set inside the header cell; the headers between keep the thin run. The row's notch is off */
.wsc :is(#grid, .grid-rh) th.hd-target.hd-end{isolation:isolate; -webkit-text-fill-color:var(--learn-ink); font-family:var(--mono)}
.wsc #grid tr.hdr th.hd-target.hd-end::before, .wsc :is(#grid, .grid-rh) th.rowhdr.hd-target.hd-end::before{top:var(--bw-2); bottom:var(--bw-2); left:var(--s1); right:var(--s1); width:auto; height:auto; z-index:-1; background:var(--learn-tint); box-shadow:0 0 0 1px var(--learn-line); border-radius:var(--cap-r-mini)}
body[data-mode="drills"] .wsc :is(#grid, .grid-rh) th.hd-target.hd-end{-webkit-text-fill-color:var(--drills-ink)}
body[data-mode="drills"] .wsc #grid tr.hdr th.hd-target.hd-end::before, body[data-mode="drills"] .wsc :is(#grid, .grid-rh) th.rowhdr.hd-target.hd-end::before{background:var(--drills-tint); box-shadow:0 0 0 1px var(--drills-line)}
body[data-mode="drills"] .wsc :is(#grid, .grid-rh) th.hd-target:not(.hd-end)::before{background:var(--drills)}
/* a target tab: the kit's corner brackets round it, outside the tab (and its colour band), drawn in the mark layer (lesson-view.js
   paintAim, paintLitTab); the tab itself keeps its own look, never the active tab's (lead 2026-11-02: a semibold name and a green
   rule read as the active sheet, and a tab colour hid the rule). Its name ink, as a tab named on the strip */
html .wsc .wb-tabs .wb-tab.sm-tab-lit, html .wsc .wb-tabs .wb-tab.sm-tab-lit:hover{color:var(--ink)}
/* the hit on a tab: solid for one press with its name white, then the tint fades (--sm-t: how far in, after a repaint) */
html .wsc .wb-tabs .wb-tab.sm-tab-hit{animation:smTabSolid var(--d-solid) step-end var(--sm-t, 0ms), smTabTint var(--d-tint) var(--ease-in) calc(var(--d-solid) + var(--sm-t, 0ms))}
html .wsc .wb-tabs .wb-tab.sm-tab-hit:not(.sm-v-full){animation:smTabSolid var(--d-solid) step-end var(--sm-t, 0ms), smTabTint var(--d-tint) step-end calc(var(--d-solid) + var(--sm-t, 0ms))}
html .wsc .wb-tabs .wb-tab.sm-tab-hit.sm-v-off{animation:none}
@keyframes smTabSolid{from, to{background:var(--learn); color:var(--on-fill); font-weight:var(--fw-bold)}}
@keyframes smTabTint{from{background:var(--learn-tint); color:var(--learn-ink)}}
/* a target off the screen: its address and the way to go, in the column-letter strip */
.sm-addr.sm-strip{z-index:9; padding:0 var(--s1); height:calc(var(--hdrh, var(--cellh)) - var(--bw-2)); box-shadow:none; border-radius:var(--bw-2)}
/* the dialogs' and menus' own lines: sentences with their keys as caps (ui/ribbon-view.js dlgLine) */
.od-caplbl kbd, .rdrop-hint kbd, .od-sub kbd, .ribbon .opt kbd{display:inline-block; font-family:'Key Legend',var(--mono); font-size:inherit; line-height:1.2; padding:0 var(--bw-3); color:var(--ink); background:var(--sheet); border:1px solid var(--edge); border-bottom-width:var(--bw-2); border-radius:var(--bw-2)}
.rdrop .rdrop-hint{font-family:var(--font); font-size:var(--fs-min); color:var(--ink-2)}

/* ---------- the close-out (docs/redesign/specs/close-out.md): the pane prints a receipt, a brief card on the window's axis
   counts the one number inside its medal, the lane brings level, badges and the account line one at a time ---------- */
/* the receipt: every goal ticked, its short line and the keys that did it on a line of their own; the last row in learn ink */
.lpn-rcpt{flex:1 1 auto; min-height:0; overflow:hidden; display:flex; flex-direction:column; padding:var(--s5) var(--lpn-pad) var(--s4)}
.lpn-rh{flex:none; padding-bottom:var(--s3); border-bottom:1px solid var(--line); font-size:var(--fs-label); font-weight:var(--fw-bold); color:var(--ink)}
.lpn-rlist{list-style:none; margin:0; padding:0}
.lpn-rrow{position:relative; display:grid; grid-template-columns:var(--lpn-rtick) minmax(0, 1fr); column-gap:var(--s3); row-gap:var(--s2); align-items:start; padding:var(--close-row-py) 0; border-bottom:1px solid var(--line)}
.lpn-rrow::before{content:''; position:absolute; left:calc(var(--s2) * -1); right:calc(var(--s2) * -1); top:var(--bw-2); bottom:var(--bw-2); border-radius:var(--r-btn); background:var(--learn-tint); opacity:0; transition:opacity var(--d-close-band) linear; pointer-events:none}
.lpn-rrow.lpn-rlit::before{opacity:1}
.lpn-rrow > *{position:relative}
.lpn-rtk{display:grid; place-items:center; width:var(--lpn-rtick); height:var(--lpn-rtick); margin-top:var(--lpn-rtick-top); border-radius:50%; background:var(--learn)}
.lpn-rtk .lpn-tick{width:calc(var(--lpn-rtick) * .24); height:calc(var(--lpn-rtick) * .46)}
.lpn-rtxt{font-size:var(--fs-small); line-height:var(--lh-inline); color:var(--ink); overflow-wrap:anywhere}
.lpn-rlast .lpn-rtxt{font-size:var(--fs-body); font-weight:var(--fw-bold); color:var(--learn-ink)}
.lpn-rkeys{grid-column:2; display:flex; flex-wrap:wrap; align-items:center; row-gap:var(--s2)}
.lpn-rk{display:inline-flex; align-items:center}
.lpn-rsep{display:inline-block; width:1px; height:var(--lpn-cap-h-sm); margin:0 var(--s3); background:var(--line)}
.lpn-rhelped .lpn-rtk{background:none; box-shadow:inset 0 0 0 var(--bw-2) var(--ink-2)}
.lpn-rhelped .lpn-rtk .lpn-tick{border-color:var(--ink-2)}
.lpn-rhelp{font-style:normal; font-size:var(--fs-label); font-weight:var(--fw-semi); color:var(--ink-2); white-space:nowrap}
.lpn-rclean{flex:none; margin:var(--s4) 0 0; font-size:var(--fs-label); line-height:var(--lh-inline); color:var(--ink-2)}
.lpn-rclean b{color:var(--learn-ink); font-weight:var(--fw-bold)}
.lpn-rclean.lpn-rassist b{color:var(--ink)}
/* the count's echo: the shortcut the medal is on stands up in the receipt, one band steps to its row */
.lpn .lpn-rk.lpn-up .ui-cap{--cap-face:var(--key-face); --cap-ink:var(--ink); --cap-rim:var(--edge); --cap-foot:var(--key-edge); margin-top:0; transform:translateY(calc(var(--lpn-lift) * -1)); --cap-shadow:0 var(--bw-2) 0 var(--learn); transition:transform var(--d-key) var(--ease-out)}
/* Details is open on the card: the caps hide in place, every row keeps its height */
.lpn.lpn-det .lpn-rkeys, .lpn.lpn-det .lpn-rsep{visibility:hidden}
/* the receipt's fit (lesson-pane.js fitReceipt): tall rows on a tall pane, tighter on a short one, then the head, the clean
   line and the keys give way (the keys stay behind D) */
.lpn-rcpt.lpn-rc-tall{--close-row-py:var(--close-row-py-tall)}
.lpn-rcpt.lpn-rc-f1{--close-row-py:var(--s1)}
.lpn-rcpt.lpn-rc-f1 .lpn-rh{padding-bottom:var(--s2)}
.lpn-rcpt.lpn-rc-f2 .lpn-rh{display:none}
.lpn-rcpt.lpn-rc-f2{padding-top:var(--s3)}
.lpn-rcpt.lpn-rc-f3 .lpn-rclean{display:none}
.lpn-rcpt.lpn-rc-f4 .lpn-rkeys{display:none}
/* the receipt prints: its head, then each row rising with its tick popping, the last one stamped bigger, then the clean line */
.lpn.lpn-rc-in .lpn-rh{animation:lpnIn var(--d-close-head) var(--ease-out) both}
.lpn.lpn-rc-in .lpn-rrow{--mv:var(--close-row-lift); animation:lpnArrive var(--d-close-row) var(--ease-out) calc(var(--d-close-row-at) + var(--i, 0) * var(--d-close-row-gap)) both}
.lpn.lpn-rc-in .lpn-rrow .lpn-rtk{--pop-over:1.15; animation:lpnPop var(--d-close-row) var(--ease-out) calc(var(--d-close-row-at) + var(--i, 0) * var(--d-close-row-gap)) both}
.lpn.lpn-rc-in .lpn-rrow.lpn-rlast .lpn-rtk{--pop-over:1.35; animation-duration:var(--d-close-last)}
.lpn.lpn-rc-in .lpn-rclean{animation:lpnIn var(--d-close-row) var(--ease-out) var(--d-close-clean-at) both}
.lpn.lpn-rc-cut .lpn-rcpt{animation:lpnIn var(--d-close-cut) linear both}
.lpn.lpn-rc-done .lpn-rcpt *{animation:none}

/* the card: one brief card centred on the window, at the workspace's scale, over the backdrop (components/backdrop.js: the
   sheet, Ribbon and pane blur and dim behind it); the mode's 2px edge and the backdrop's soft shadow. One centred column that hugs
   its content (Wolf, 2026-10-25: "the spacing feels weird ... weird long buttons"; then "make sure we center on screen"),
   Next sized to its label, the keys in a row under it, and one rhythm: --close-gap-in inside a group, --close-gap between
   the groups (the time with its tier and gain, or the medal; the medal track; the XP line; the actions). Wide: Details */
/* the Complete card is the kit's pop-out card (PS-41; menu-kit.css "THE POP-OUT CARD"): md, lg with Details open; its width, air,
   gap and corner are the kit's. Its own: the place on the window, the mode's edge (the door's --cc-edge), and its groups (the medal
   or the time, Details, the actions) a --close-gap apart, as the door's groups are */
.cc{position:fixed; z-index:81; left:0; top:0; border:var(--cc-edge) solid var(--learn-line); outline:none}
.ui-popcard.cc{align-items:stretch}   /* its groups run the card's inner width (the kit's wide piece, edge to edge) */
.cc > * + *{margin-top:calc(var(--close-gap) - var(--pop-gap))}
/* a card the window cannot hold whole (complete-card.js place: data-fit) keeps to it: its main part scrolls inside the card, Next
   and the foot's keys stay in view (no page scroll, ever; the sim learners at 1366x657 with a New achievement strip open) */
.cc[data-fit="scroll"]:not(.cc-wide) > .cc-main{min-height:0; overflow-x:hidden; overflow-y:auto}
.cc[data-mode="drills"]{border-color:var(--drills-line)}   /* the mode's line, as every mode's edge (the palette) */
.cc[data-mode="challenges"]{border-color:var(--challenges-line)}   /* a challenge's finish keeps the challenge's colour (UI-28, UI-86) */
.cc[data-mode="daily"]{border-color:var(--daily-line)}   /* the Daily Race's, its own */
.cc-main{display:flex; flex-direction:column; align-items:center; gap:var(--close-gap-in)}
.cc-label{margin:0; font-size:var(--fs-label); font-weight:var(--fw-bold); color:var(--ink-2)}
/* the eyebrow row (UI-86): the mode's square mark, the kind and name, and the save state in one fixed place at the right; the card's
   top edge a rule in the kind's colour */
.cc[data-mode]{border-top-width:var(--mode-rule)}   /* every card carries its mode (complete-card.js), so the rule takes the mode's line */
.cc-eyebrow{display:flex; align-items:center; gap:var(--s2); align-self:stretch; min-width:0}
.cc-mark{flex:none; width:var(--mode-mark); height:var(--mode-mark); background:var(--learn)}
.cc[data-mode="drills"] .cc-mark{background:var(--drills)}
.cc[data-mode="challenges"] .cc-mark{background:var(--challenges)}
.cc[data-mode="daily"] .cc-mark{background:var(--daily)}
.cc-eyebrow .cc-label{min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.cc-save{margin-left:auto; flex:none; display:inline-flex; align-items:center; gap:var(--s1); font-size:var(--fs-label); color:var(--ink-2); white-space:nowrap}
.cc-save[data-save="unsaved"]::before{content:''; width:var(--s2); height:var(--s2); border-radius:50%; background:var(--clock)}
.cc-foot .cc-out{color:var(--ink-2)}   /* the way out, in grey, after the links */
.cc-say{margin:0; font-size:var(--fs-body); font-weight:var(--fw-bold); line-height:var(--lh-head); color:var(--ink); text-wrap:balance}   /* a chapter's one line */
.cc-num{display:flex; flex-direction:column; align-items:center; align-self:stretch; gap:var(--s2); margin-top:var(--s2)}
.cc-medal{position:relative; display:grid; place-items:center; width:var(--close-medal); height:var(--close-medal)}
.cc-medal > *{grid-area:1 / 1}
.cc-digits{position:relative; display:block; height:var(--close-odo-h); line-height:1; overflow:hidden; font-family:var(--mono); font-weight:var(--fw-bold); font-size:var(--fs-prompt); color:var(--learn-ink); font-variant-numeric:tabular-nums}
.cc-strip{display:flex; flex-direction:column; align-items:center}
.cc-strip > i{display:block; height:var(--close-odo-h); font-style:normal}
.cc-medal-art{border-radius:50%; background:var(--learn-tint)}
.cc-medal-art svg, .cc-medal-art .art{display:block; image-rendering:pixelated}
.cc-words{font-size:var(--fs-label); font-weight:var(--fw-bold); color:var(--ink-2); white-space:nowrap}   /* a chapter's badge name */
/* collecting hotkeys (register AT-30, firm B): the lesson's keys as the kit's small caps in one wrapped row under the face, each
   outlined until it is collected, then filled in the mode's colour; the Hotkeys cell counts them in (UI-95) */
.cc-collect-keys{display:flex; flex-wrap:wrap; justify-content:center; gap:var(--s2)}
.cc-ck{display:inline-flex}
.cc-act{display:flex; flex-direction:column; align-items:center; gap:var(--close-act-gap)}
/* the one button spans the card's inner width, so it shares its edges with the achievement strip above it (rule 2; his words
   2026-11-06: "make sure the achievement thingy is aligned with the buttons") as Next already does on the wide card */

.cc-foot{display:flex; justify-content:center; flex-wrap:wrap; gap:var(--close-gap-in) var(--close-foot-gap)}
/* the foot's keys: button.js's link button, the cap in front, the words quiet (ink 2, the site's body weight) */
.cc-fk{gap:var(--s2); font-size:var(--fs-small); font-weight:var(--fw-body); color:var(--ink-2); white-space:nowrap}
.cc-fk:hover{color:var(--ink); text-decoration:none}
/* wide: Details. The medal gives way to the shortcuts with their meanings and the facts; Next keeps the base card's width */
.cc .cc-det{display:none}
.ui-popcard.cc.cc-wide{text-align:left}
.cc.cc-wide .cc-main{display:flex; flex-direction:column; align-items:center; text-align:center}
.cc.cc-wide :is(.cc-num, .cc-say, .cc-time, .cc-tierbox, .cc-gap, .cc-lad, .cc-best, .cc-face, .cc-collect-keys, .cc-tips){display:none}
.cc.cc-wide .cc-det{display:flex; flex-direction:column; gap:var(--s4); min-height:0; overflow:auto}
.cc-det-keys{display:grid; grid-template-columns:auto minmax(0, 1fr); align-items:center; gap:var(--s2) var(--s3); padding-bottom:var(--s4); border-bottom:1px solid var(--line)}
.cc-det-keys:is(:last-child, :has(+ .cc-det-rows:empty)){padding-bottom:0; border-bottom:0}   /* no rule under the keys when nothing follows them */
.cc-det-rows:empty{display:none}
.cc-det-keys .cc-dk{justify-self:end; display:inline-flex}
.cc-det-keys em{font-style:normal; font-size:var(--fs-small); color:var(--ink-2); line-height:var(--lh-inline); margin-right:var(--s5)}
.cc-det-rows{display:grid; grid-template-columns:auto minmax(0, 1fr); gap:var(--s2) var(--s5); margin:0; font-size:var(--fs-small); line-height:var(--lh-inline)}
.cc-det-rows dt{font-weight:var(--fw-bold); color:var(--ink)}
.cc-det-rows dd{margin:0; color:var(--ink-2)}
.cc-det-rows .cc-xpn{color:var(--close-xp-ink); font-weight:var(--fw-bold); margin-right:var(--s2)}
/* the drill: its clock counts down from the Pass time; each tier's word and mark light as it passes; then the gap line */
.cc-time{font-family:var(--mono); font-weight:var(--fw-heavy); font-size:var(--fs-prompt); line-height:1; color:var(--ink)}
.cc-clockv{display:inline-flex; align-items:flex-start}
.cc-time .cc-digits{font-size:inherit; font-weight:inherit; color:inherit}
.cc-sep{display:block; height:var(--close-odo-h); line-height:1}
.cc-tierbox{display:flex; flex-direction:column; align-items:center; gap:var(--close-gap-in)}
.cc-tier{display:grid; margin:0; font-size:var(--fs-body); font-weight:var(--fw-heavy); line-height:var(--lh-head)}   /* the tier's word, in its colour, under the face (UI-95: the cells hold the big numbers) */
.cc-tier > span{grid-area:1 / 1; opacity:0}
.cc-tw[data-t="pass"]{color:var(--tier-pass)} .cc-tw[data-t="pro"]{color:var(--tier-pro)} .cc-tw[data-t="legendary"]{color:var(--tier-legendary)} .cc-tw[data-t="none"]{color:var(--ink)}
/* the Daily Race (DY-11): the place under the time, its top share as a chip; it pops in at the stamp */
.cc-place{display:inline-flex; align-items:center; gap:var(--s2); margin:0; font-size:var(--fs-head); font-weight:var(--fw-heavy); line-height:1.1; color:var(--ink); font-variant-numeric:tabular-nums; opacity:0}
.cc-best{display:inline-flex; align-items:center; gap:var(--s2); margin:0; font-size:var(--fs-body); font-weight:var(--fw-bold); color:var(--drills-ink); opacity:0}
.cc-up{width:var(--s3); height:var(--s3)}
.cc-up path{fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round}
.cc-gap{display:grid; margin:0; font-size:var(--fs-body); line-height:var(--lh-inline); color:var(--ink-2)}
.cc-gap > span{grid-area:1 / 1}
.cc-gapw{opacity:0}
/* the medal track (the drill's gain, BG-39): three round medals on a soft track, Pass small to Legendary large, slower to the
   left; the amber fill runs to where this run sits; the medals reached are amber coins (a ring of the sheet inside), the one
   reached last wears a soft halo; one small figure under the track is the gap to the next medal. No other words: the tier's
   word stands above it and the tier times are in Details. The time stays the one focal point. */
.cc-lad{display:flex; flex-direction:column; align-items:center; gap:var(--s1); width:100%; margin-top:calc(var(--close-gap) - var(--close-gap-in))}   /* a group of its own: --close-gap above it; its track runs the card's inner width */
.cc-rail{position:relative; width:100%; height:var(--rail-h); margin:calc(var(--rail-coin-l) / 2) 0 calc(var(--rail-coin-l) / 2 + var(--rail-gap) + var(--fs-label)); background:var(--line); border-radius:var(--rail-h)}
.cc-rail:not(:has(> .cc-gap)){margin-bottom:calc(var(--rail-coin-l) / 2)}   /* Legendary: no figure under the track, so no room kept for one */
.cc-fill{position:absolute; left:0; top:0; bottom:0; width:var(--at); border-radius:var(--rail-h); background:var(--clock)}
.cc-rung{position:absolute; left:var(--at); top:50%; width:0; height:0; display:flex; align-items:center; justify-content:center}
.cc-rung i{display:block; flex:none; width:var(--rail-coin-s); height:var(--rail-coin-s); box-sizing:border-box; border-radius:50%; border:var(--rail-coin-edge) solid var(--line); background:var(--sheet)}
.cc-rung[data-t="pro"] i{width:var(--rail-coin-m); height:var(--rail-coin-m)}
.cc-rung[data-t="legendary"] i{width:var(--rail-coin-l); height:var(--rail-coin-l)}
.cc-rung i.cc-on{background:var(--clock); border-color:var(--clock); box-shadow:inset 0 0 0 var(--rail-coin-ring) var(--sheet)}
.cc-rung.cc-here i.cc-on{box-shadow:inset 0 0 0 var(--rail-coin-ring) var(--sheet), 0 0 0 var(--rail-halo) var(--clock-tint)}
.cc-rail .cc-gap{position:absolute; left:clamp(var(--s6), var(--at), calc(100% - var(--s6))); top:calc(50% + var(--rail-coin-l) / 2 + var(--rail-gap)); transform:translateX(-50%); font-size:var(--fs-label); line-height:1; white-space:nowrap; font-variant-numeric:tabular-nums}
.cc-lad .cc-note{margin-top:var(--s1)}
/* a visitor's Daily (DY-8): two short facts side by side under the track, the place it would hold today and the players' average */
.cc-facts{display:flex; flex-wrap:wrap; justify-content:center; gap:var(--s1) var(--s5); font-variant-numeric:tabular-nums}
.cc-glow{position:absolute; inset:calc(var(--bw-2) * -1); border-radius:inherit; box-shadow:0 0 var(--s8) var(--s4) var(--drills-tint); opacity:0; pointer-events:none}
/* the face (UI-95, firm: Wolf's pick 2026-11-15, "B: three cells"; complete-card.js faceHtml): one row of sheet cells under the
   sheet's grey header band, hairlines between them, what the run gained, XP and Level; the level bar with what is left under the row
   and the unlock line; the cell cursor lands on Level at a level reached (UI-91's beat, complete-card.js playXp). The rules below are
   the settled card, .cc-lvwait the level before the beat. Three sizes for every word: --fs-title (the cells), --fs-body, --fs-label */
.cc-cf{--close-gap:var(--s3)}   /* the cells' card's one rhythm: --s3 between groups, --s2 inside one (three tips of twelve words, a level and an achievement then stand whole on a 1366x657 window with the cell over the card) */
.cc-cf .cc-main{gap:var(--close-gap)}
.cc-cf :is(.cc-ach, .cc-lad){margin-top:0}
.cc-cf .cc-ach{align-self:stretch}   /* the block runs the card's inner width, as the button under it (siblings share edges) */
.cc-cf :is(.cc-ach-name, .cc-ach-desc){font-size:var(--fs-body)}   /* the one sentence on the card reads at the body size (UI-58's floor for reading text) */
.cc-cf .cc-ach-desc{line-height:var(--lh-head); text-wrap:balance}
.cc-face{display:flex; flex-direction:column; align-items:stretch; gap:var(--s2); align-self:stretch}
.cc-cells{display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0, 1fr); gap:1px; border:1px solid var(--line); background:var(--line)}
.cc-cellc{display:grid; grid-template-rows:auto 1fr; min-width:0; background:var(--sheet)}
.cc-cellh{padding:var(--s1) var(--s2); border-bottom:1px solid var(--line); background:var(--chrome); font-size:var(--fs-label); font-weight:var(--fw-semi); color:var(--ink-2); white-space:nowrap}
.cc-cellv{position:relative; display:grid; place-items:center; padding:var(--s2); font-size:var(--fs-title); font-weight:var(--fw-heavy); line-height:var(--lh-title); color:var(--ink); font-variant-numeric:tabular-nums; white-space:nowrap}
.cc-cellv.cc-collect-plus[hidden]{visibility:hidden}   /* its seat is kept, so the card never grows as the first cap fills */
.cc-cellv.cc-time{font-family:inherit; font-size:var(--fs-title); line-height:var(--lh-title)}   /* a drill's clock counts down in its cell, in the cells' type */
.cc-cellv .cc-digits{font-family:inherit}
.cc-xprow{display:flex; align-items:center; gap:var(--s2); font-size:var(--fs-label); font-variant-numeric:tabular-nums; white-space:nowrap}   /* the bar, what is left at its end (UI-37 r2) */
.cc-xpto{font-weight:var(--fw-semi); color:var(--ink-2)}
.cc-xpbar{position:relative; display:block; flex:1 1 auto; min-width:var(--s12); height:var(--bar-h); border-radius:var(--prog-r); background:var(--xp-track); overflow:hidden}
.cc-xpbar i{position:absolute; left:0; top:0; bottom:0; width:var(--from); background:var(--xp-fill)}   /* the level bar's green in every mode, as every level bar (UI-28) */
.cc-lvroll{position:relative; z-index:1; display:inline-grid; overflow:clip; line-height:var(--lh-title)}
.cc-lvroll > i{grid-area:1 / 1; display:block; font-style:normal}
.cc-lv1{opacity:0; transform:translateY(-100%)}
.cc-lvflash{position:absolute; inset:0; background:var(--learn-tint); opacity:0}
.cc-lvcur{position:absolute; inset:0; z-index:2; box-sizing:border-box; border:var(--cursor-w) solid var(--cell-cursor)}   /* drawn inside the level cell's box: at the card's inner edge it would stand in the card's air (the pop-out check's K5) */
.cc-lvcur::after{content:''; position:absolute; right:calc(-1 * var(--s1)); bottom:calc(-1 * var(--s1)); width:var(--cursor-handle); height:var(--cursor-handle); background:var(--cell-cursor); box-shadow:0 0 0 1px var(--sheet)}
.cc-xp-up .cc-xpbar i{top:0; bottom:0; left:0; transform-origin:left center}
.cc-xp-up .cc-xpbar .cc-lvg1{width:100%; opacity:0}
.cc-xp-up .cc-xpbar .cc-lvg2{width:var(--to)}
.cc-xp-up .cc-xpto{display:grid; justify-items:end; align-items:center}
.cc-xp-up .cc-xpto > span{grid-area:1 / 1; white-space:nowrap}
.cc-lve1, .cc-lve2{opacity:0}
.cc-lve2{color:var(--ink); font-weight:var(--fw-bold)}
.cc-lvline{margin:0; font-size:var(--fs-label); color:var(--ink-2); text-align:center; white-space:nowrap}   /* what the level brings, said once */
.cc-lvwait .cc-lv1{opacity:1; transform:none}
.cc-lvwait .cc-lv2{opacity:0; transform:translateY(100%)}
.cc-lvwait .cc-lvcur, .cc-lvwait .cc-lve3, .cc-lvwait .cc-lvline{opacity:0}
.cc-lvwait .cc-lve1, .cc-lvwait .cc-xpbar .cc-lvg1{opacity:1}
.cc-lvwait .cc-xpbar .cc-lvg1{width:var(--from)}
.cc-lvwait .cc-xpbar .cc-lvg2{transform:scaleX(0)}
/* a lesson's earned tips (CU-24, CU-32): one quiet row a tip at the body size, read from the left, a hairline between rows */
.cc-tips{align-self:stretch; margin:0; padding:0; list-style:none; text-align:left}
.cc-tip{padding:var(--s1) 0; font-size:var(--fs-body); line-height:var(--lh-head); color:var(--ink); text-wrap:pretty}
.cc-tip + .cc-tip{border-top:1px solid var(--line)}
.cc-tip:first-child{padding-top:0}
.cc-tip:last-child{padding-bottom:0}
/* the lane: one capsule at a time, above the card's shadow, never focused */
.cc-lane{position:fixed; z-index:82; left:0; top:0; display:grid; pointer-events:none; font-family:var(--font)}
.cc-lane:not(.cc-lane-on):not(.cc-measure){visibility:hidden}
.cc-lane > .cc-cap{grid-area:1 / 1; opacity:0}
.cc-lane.cc-measure > .cc-cap{opacity:0}
.cc-lane[data-lane="beside"]{width:max-content; max-width:var(--close-lane-max)}
.cc-lane.cc-measure{width:max-content; max-width:var(--close-lane-max)}   /* measured as it would stand beside the card */
.cc-cap{box-sizing:border-box; display:flex; align-items:center; gap:var(--s3); padding:var(--s3) var(--s4); background:var(--sheet); color:var(--ink); border:1px solid var(--line); border-radius:var(--r-pop); box-shadow:var(--shadow-float); text-align:left; pointer-events:auto}
.cc-cap-t{flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:var(--s1)}
.cc-cap-h{display:grid; font-size:var(--fs-small); font-weight:var(--fw-bold)}
.cc-cap-h > span{grid-area:1 / 1}
.cc-h2{opacity:0}
.cc-cap-t > b{font-size:var(--fs-small); font-weight:var(--fw-bold)}
.cc-cap-sub{font-size:var(--fs-label); color:var(--ink-2)}
.cc-cap-level .cc-cap-sub{opacity:0}
.cc-tag{flex:none; display:grid; place-items:center; width:var(--close-tag); height:var(--close-tag); border:1px solid var(--learn); border-radius:var(--r-btn); background:var(--learn-tint); color:var(--learn-ink)}
.cc-lane[data-mode="drills"] .cc-tag{border-color:var(--drills); background:var(--drills-tint); color:var(--drills-ink)}
.cc-tag .cc-digits{font-size:var(--fs-item); color:inherit}
.cc-bar{position:relative; display:block; height:var(--bar-h); border-radius:var(--prog-r); background:var(--line); overflow:hidden}
.cc-bar i{position:absolute; left:0; top:0; bottom:0; width:var(--from); background:var(--learn)}
.cc-lane[data-mode="drills"] .cc-bar i{background:var(--drills)}
.cc-cap-r{flex:none; font-size:var(--fs-small); font-weight:var(--fw-bold); color:var(--close-xp-ink); font-variant-numeric:tabular-nums; white-space:nowrap}
.cc-cap-r small{margin-left:var(--bw-2); font-size:inherit; color:var(--ink-2); font-weight:var(--fw-semi)}
/* the unlocks on the card, one beat each (register AT-32, firm: his pick 2026-11-04); every unlock's mark beside them,
   lit once it has played, and → or a click plays any of them again */
.cc-ach{display:none; align-items:center; gap:var(--s3); margin-top:var(--s3); padding:var(--s3); border:1px solid var(--line); border-radius:var(--r-pop); background:var(--band); text-align:left}
.cc-ach.cc-ach-on{display:flex}
/* the reward block (UI-86): the one coloured block on the finish card, its ground its rarity's tint (never grey), the name the
   card's second biggest type, the rarity's dots and word in its own colour (the kit's tier piece) */
.cc-ach:has(.cc-ach-one:not([hidden]) .tier-common){background:var(--learn-tint); border-color:transparent}
.cc-ach:has(.cc-ach-one:not([hidden]) .tier-rare){background:var(--drills-tint); border-color:transparent}
.cc-ach:has(.cc-ach-one:not([hidden]) .tier-epic){background:var(--challenges-tint); border-color:transparent}
.cc-ach:has(.cc-ach-one:not([hidden]) .tier-legendary){background:var(--clock-tint); border-color:transparent}   /* no room kept before its beat: the card hugs what it shows, and grows as the strip opens (complete-card.js openAch) */
.cc-ach-stage{flex:1 1 auto; min-width:0; display:grid}   /* every unlock in the one cell, so the strip keeps the tallest one's height and the card never jumps */
.cc-ach-one{grid-area:1 / 1; display:flex; align-items:center; gap:var(--s3)}
.cc-ach-one[hidden]{display:flex; visibility:hidden}
.cc-ach-art{flex:none; display:block}
.cc-ach-t{display:flex; flex-direction:column; gap:var(--s1); min-width:0}
.cc-ach-eye{display:flex; align-items:center; gap:var(--s2); white-space:nowrap; font-size:var(--fs-label); font-weight:var(--fw-semi); color:var(--ink-2)}
.cc-ach-name{font-size:var(--fs-item); font-weight:var(--fw-bold); color:var(--ink)}
.cc-ach-desc{font-size:var(--fs-small); color:var(--ink-2)}
.cc-ach-marks{flex:none; display:grid; grid-template-columns:repeat(3, auto); gap:var(--bw-2); align-content:center}   /* every unlock's mark beside it, three to a row */
.cc-ach-mark{appearance:none; display:grid; place-items:center; padding:var(--bw-2); border:var(--bw-2) solid transparent; border-radius:var(--r-btn); background:none; cursor:pointer; filter:var(--art-locked)}
.cc-ach-mark.cc-ach-got{filter:none; opacity:1}
.cc-ach-mark[aria-pressed="true"]{border-color:var(--learn)}
.cc[data-mode="drills"] .cc-ach-mark[aria-pressed="true"]{border-color:var(--drills)}   /* the mode keeps its colour (UI-28) */
/* the review's option C: an unlock's capsule at full size, its art big */
.cc-cap-guest{flex-direction:column; align-items:flex-start; gap:var(--s2)}
.cc-say2{margin:0; font-size:var(--fs-small); color:var(--ink-2); white-space:nowrap}
.cc-acct{gap:var(--s2); font-size:var(--fs-small); font-weight:var(--fw-bold); color:var(--learn-ink); white-space:nowrap}
/* a capsule not yet seen carries over Enter: it plays at the band's lower right over what comes next */
.cc-lane.cc-carry{left:auto; top:auto; right:calc(var(--s6) * var(--ws-z)); bottom:calc((var(--foot-h) + var(--s4)) * var(--ws-z)); width:var(--pop-w-md)}
.cc-lane.cc-carry > .cc-cap{transition:opacity var(--d-close-cut) linear}
/* the sheet's beat on a filled sheet: one learn stroke round the cells the goals touched, drawn once and gone */
.cc-outline{position:fixed; z-index:80; pointer-events:none}   /* over the backdrop (z 79), so the outline stays crisp on the blurred sheet */
.cc-outline svg{display:block; overflow:visible}
.cc-outline rect{fill:none; stroke:var(--learn); stroke-width:calc(var(--close-outline) * var(--ws-z)); stroke-dasharray:1000; stroke-dashoffset:1000}
/* the changed tabs: the learn tint and a 2px top rule, no tick (a tick means done) */
html .wsc .wb-tabs .wb-tab.sm-tab-mark{background:var(--learn-tint); color:var(--learn-ink); box-shadow:inset 0 var(--bw-2) 0 var(--learn); animation:smTabMark var(--d-close-tab) var(--ease-out) calc(var(--mark-i, 0) * var(--d-close-tab-gap) + var(--mark-t, 0ms)) backwards}
html .wsc .wb-tabs .wb-tab.sm-tab-mark.sm-mark-cut{animation:none}
@keyframes smTabMark{from{background:transparent; box-shadow:inset 0 0 0 var(--learn)}}
@media (prefers-reduced-motion: reduce){ .lpn-rrow::before{transition:none} .lpn .lpn-rk.lpn-up .ui-cap{transition:none} }
/* one Full screen at a time: while the pane's Here row offers its own, the title row's steps back (its place kept) */
.wsc.wsc-pane-full .wsc-full{visibility:hidden}
/* the drill's record in the dock while the close-out card counts (run-panel.js recordHtml): the tier ladder, the tasks with
   their times (the slowest bold), your last runs, the slowest task pinned to the foot. The time, the marker and today's run
   wait for the card's stamp (rp-wait), and the band you reached fills with its tier then */
.rp[data-beat="record"] .rp-body{padding:0}   /* the record keeps the panel's one inset, its own (s4 by --lpn-pad): the body's padding round it was a second one, 32px of the dock's height and its words 20px in from the head's (rule 2) */
.rp-rec{box-sizing:border-box; min-height:100%; display:flex; flex-direction:column; gap:var(--s3); padding:var(--s4) var(--lpn-pad)}
.rp-rec > *{flex-shrink:0}   /* a long task list scrolls the body; the track and its labels keep their height */
.rp-rec-h{display:flex; justify-content:space-between; align-items:baseline; gap:var(--s3); font-size:var(--fs-label); font-weight:var(--fw-bold); color:var(--ink)}
.rp-rec-h > b{font-weight:var(--fw-semi); color:var(--ink-2); font-variant-numeric:tabular-nums}
.rp-rec-h > b.rp-rec-time{font-family:var(--mono); font-weight:var(--fw-bold); font-size:var(--fs-small); color:var(--ink)}
.rp-rec .rp-wait{visibility:hidden}
.rp-ladder{position:relative; height:var(--s3); margin-top:var(--s2)}
.rp-zone{position:absolute; top:0; bottom:0}
.rp-zone[data-t="legendary"]{background:var(--clock-tint); border-radius:var(--prog-r) 0 0 var(--prog-r)}
.rp-zone[data-t="pro"]{background:var(--drills-tint)}
.rp-zone[data-t="pass"]{background:var(--learn-tint)}
.rp-zone[data-t="over"]{background:var(--chrome); border-radius:0 var(--prog-r) var(--prog-r) 0}
.rp-ladder.rp-stamped[data-tier="legendary"] .rp-zone[data-t="legendary"]{background:var(--tier-legendary)}
.rp-ladder.rp-stamped[data-tier="pro"] .rp-zone[data-t="pro"]{background:var(--tier-pro)}
.rp-ladder.rp-stamped[data-tier="pass"] .rp-zone[data-t="pass"]{background:var(--tier-pass)}
.rp-ladder .rp-tick{position:absolute; top:calc(var(--s1) * -1); bottom:calc(var(--s1) * -1); width:1px; background:var(--ink-2)}
.rp-ladder .rp-lmark{position:absolute; top:calc(var(--s1) * -1.5); bottom:calc(var(--s1) * -1.5); width:var(--bw-3); border-radius:var(--bw-2); background:var(--ink); transform:translateX(-50%); text-decoration:none}
.rp-ladder .rp-pbring{position:absolute; top:50%; transform:translate(-50%, -50%)}
.rp-pbring{display:inline-block; box-sizing:border-box; width:var(--s3); height:var(--s3); border:var(--bw-2) solid var(--ink-2); border-radius:50%; background:var(--sheet)}
.rp-llabels{position:relative; height:calc(var(--fs-min) * 2.8)}
.rp-llabels span{position:absolute; top:0; transform:translateX(-50%); display:flex; flex-direction:column; align-items:center; font-size:var(--fs-min); line-height:1.35; color:var(--ink-2); white-space:nowrap; font-variant-numeric:tabular-nums}
.rp-llabels b{font-weight:var(--fw-bold)}
.rp-llabels b[data-t="legendary"]{color:var(--tier-legendary)} .rp-llabels b[data-t="pro"]{color:var(--tier-pro)} .rp-llabels b[data-t="pass"]{color:var(--tier-pass)}
.rp-oldbest{display:flex; align-items:center; gap:var(--s2); margin:0; font-size:var(--fs-small); color:var(--ink-2)}
.rp-rec-tasks{list-style:none; margin:0; padding:0}
.rp-rec-tasks li{display:grid; grid-template-columns:var(--lpn-rtick) minmax(0, 1fr) auto; column-gap:var(--s3); align-items:center; padding:var(--s2) 0; border-bottom:1px solid var(--line); font-size:var(--fs-small); line-height:1.35; color:var(--ink)}
.rp-rec-tasks li b{font-weight:var(--fw-semi); color:var(--ink-2); font-variant-numeric:tabular-nums; white-space:nowrap}
.rp-rec-tasks li.rp-slow span, .rp-rec-tasks li.rp-slow b{font-weight:var(--fw-bold); color:var(--drills-ink)}
.rp-rtk{position:relative; display:block; width:var(--lpn-rtick); height:var(--lpn-rtick); border-radius:50%; background:var(--drills)}
.rp-rtk::after{content:''; position:absolute; left:50%; top:50%; width:calc(var(--lpn-rtick) * .24); height:calc(var(--lpn-rtick) * .46); border:solid var(--drills-on); border-width:0 var(--bw-2) var(--bw-2) 0; transform:translate(-50%, -62%) rotate(45deg)}
.rp-runs ol{list-style:none; margin:var(--s2) 0 0; padding:0}
.rp-runs li{display:flex; justify-content:space-between; padding:var(--s1) 0; border-bottom:1px solid var(--line); font-size:var(--fs-small); color:var(--ink-2)}
.rp-runs .rp-run-time{font-family:var(--mono); font-weight:var(--fw-semi); color:var(--ink)}
.rp-runs li.rp-now-run, .rp-runs li.rp-now-run b{color:var(--drills-ink); font-weight:var(--fw-bold)}
.rp-spacer{flex:1 1 auto}
.rp-slowfoot{padding-top:var(--s3); border-top:1px solid var(--line)}
.rp-slowline{margin:0 0 var(--s2); font-size:var(--fs-small); line-height:var(--lh-inline); color:var(--ink-2)}
.rp-slowline b{color:var(--ink)}
.rp-slowkeys{margin:0; display:flex; flex-wrap:wrap; align-items:center; gap:var(--s1)}
.rp.rp-fit-noruns .rp-runs{display:none}
.rp.rp-fit-tight .rp-rec-tasks li{padding:var(--s1) 0}
.rp.rp-fit-tight .rp-rec{gap:var(--s2)}
.rp.rp-fit-rec1line .rp-rec-tasks li span{overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.rp.rp-fit-notaskh .rp-rec-taskh, .rp-rec-tasks li.rp-fit-hide{display:none}
.rp-rec-tasks li.rp-rest-more{border-bottom:0; color:var(--ink-2)}   /* "{n} more after these" under the rows that fit */
.cc-mono{font-family:var(--mono)}

/* fz (tweak 14): the title bar is the sheet with every word in ink, the title too (Round 1: a warm title read brown; the mode is the
   rule's job). The run's mode is a rule along the bar's FOOT in the mode's fill (Round 2: a 3px band beside the title is the fill, not
   the deeper line; 4px from 1920 wide), whole from the first frame (Round 2: the 250ms draw-in was 93 percent drawn by 120ms, motion with
   no signal), and the tasks counter's pill in the mode's tint. One pattern for every kind: lesson green, drill cobalt, challenge violet,
   the Daily tangerine. */
.wsc{--ws-mode:var(--learn); --ws-mode-line:var(--learn-line); --ws-mode-ink:var(--learn-ink); --ws-mode-tint:var(--learn-tint); --ws-rule:var(--mode-rule);
  --ws-bar:var(--sheet); --ws-bar-ink:var(--ink); --ws-bar-dim:var(--ink-2); --ws-bar-hover:var(--xl-hover); --ws-bar-line:var(--edge); --ws-bar-edge:var(--edge)}
.wsc[data-kind="challenge"]{--ws-bar:var(--sheet); --ws-mode:var(--challenges); --ws-mode-line:var(--challenges-line); --ws-mode-ink:var(--challenges-ink); --ws-mode-tint:var(--challenges-tint)}
.wsc[data-kind="drill"]{--ws-bar:var(--sheet); --ws-mode:var(--drills); --ws-mode-line:var(--drills-line); --ws-mode-ink:var(--drills-ink); --ws-mode-tint:var(--drills-tint)}
.wsc[data-kind="daily"]{--ws-bar:var(--sheet); --ws-mode:var(--daily); --ws-mode-line:var(--daily-line); --ws-mode-ink:var(--daily-ink); --ws-mode-tint:var(--daily-tint)}
.wsc.rf-wsc{--ws-mode:var(--rapid); --ws-mode-line:var(--rapid-line); --ws-mode-ink:var(--rapid-ink); --ws-mode-tint:var(--rapid-tint)}
/* Arcade's stage keeps the 16px KeyTips its own placement packs into the full Ribbon (ui/stage-keytips.js: at 20px the Clipboard,
   Font and Editing letters had no free spot left and sat on each other); every other run has the 20px ones (UI-98) */
.wsc.rf-wsc{--kt-rib:var(--s4); --xl-kt-fs:var(--fs-min)}
@media (min-width:1920px){ .wsc{--ws-rule:var(--mode-rule-wide)} }
.wsc-bar::after{content:''; position:absolute; left:0; right:0; bottom:0; height:var(--ws-rule); background:var(--ws-mode); pointer-events:none}
.wsc-title-text{color:var(--ink)}
.wsc-bar .wsc-exit, .wsc-bar .wsc-full{color:var(--ink); border-color:var(--edge)}
.wsc-bar .wsc-segs i{background:var(--line); opacity:1}
.wsc-bar .wsc-segs i.done{background:var(--ws-mode-line)}
.wsc-bar .wsc-segs i.now{background:transparent; outline:1px solid var(--ws-mode-line)}
.wsc-fact{color:var(--ink); background:var(--ws-mode-tint); border-radius:var(--r-btn); padding:var(--bw-2) var(--s2)}
.wsc-icon{color:var(--ink-2)}
/* the sheet runs to the window's edge: past the last column the header strip and the sheet carry on (Round 1: at 2560 a dark theme
   showed a dark slab beside the light sheet) */
.wsc .gridwrap{background:linear-gradient(var(--chrome), var(--chrome)) 0 0 / 100% var(--hdrh, var(--cellh)) no-repeat, linear-gradient(var(--line), var(--line)) 0 var(--hdrh, var(--cellh)) / 100% 1px no-repeat, var(--sheet)}

/* fz (tweak 18; Round 1): every KeyTip is the product's keycap drawn dark, so it stands off whatever it sits on (a white keycap on the
   white Ribbon read as one more control): the ink as its face, the sheet as its legend (the inverse on a dark theme), a 1px ring and a
   2px lower edge in the mode's line, a 1px halo of the sheet. 20px with a 14px legend (UI-98), the density's own sizes held off
   (scale.css set the commands' legend to 11px under a 20px cap); the Ribbon's layout never moves. */
.wsc .ribbon-full .ri-key, .wsc .rdrop-menu .ri-key, .wsc .rdrop-dialog .ri-key, .wsc .rf-tab k, html[data-density] .wsc .rf-tab k, .wsc-qat .ri-key,
html[data-density] .wsc .ribbon-full .ri-key, html[data-density] .wsc .rdrop-menu .ri-key, html[data-density] .wsc .rdrop-dialog .ri-key{color:var(--on-keytip); background:var(--keytip); border:1px solid var(--ws-mode-line); border-bottom-width:var(--kt-bottom); border-radius:var(--kt-r); box-shadow:0 0 0 1px var(--sheet), var(--kt-shadow); font-family:'Key Legend',var(--mono); font-weight:var(--fw-bold); font-size:var(--xl-kt-fs); line-height:1; min-width:var(--kt-rib); height:var(--kt-rib); padding:0 var(--bw-3); box-sizing:border-box; display:inline-grid; place-items:center; width:max-content}
.wsc .rf-tab k.dim, html[data-density] .wsc .rf-tab k.dim{background:var(--chrome); color:var(--ink-2); border-color:var(--line); box-shadow:none}
/* Round 2: a tab's KeyTip is centred on its own tab and straddles the tab row's foot, mostly in the tab row,
   as Excel draws them; it rides above the selected tab's bar by z-index (Round 1 dropped it whole into the Ribbon, where each letter sat
   on a command: W on Wrap Text read as that command's key). While the tab letters are up no command can be reached yet, so the
   command area steps back (--kt-veil) until a tab is chosen; then the Ribbon's own KeyTips arrive on a full-strength Ribbon */
.wsc .rf-tab k, html[data-density] .wsc .rf-tab k{top:auto; bottom:calc(-1 * var(--kt-rib) * var(--kt-drop)); left:50%; transform:translateX(-50%); z-index:6}
.wsc .ribbon-full.show:has(.rf-tab k) .rf-body{opacity:var(--kt-veil); animation:fz-veil var(--d-menu) ease-out both}
@keyframes fz-veil{from{opacity:1}}   /* an animation, not a transition: the Ribbon rewrites its markup on Alt, so a new body fades from full strength */
@media (prefers-reduced-motion: reduce){ .wsc .ribbon-full.show:has(.rf-tab k) .rf-body{animation:none} }
/* the Quick Access Toolbar's numbers: the same keycap at the same size as the tabs' (Round 2: they were 14px with a 7px digit), centred
   under each button and straddling the title bar's foot, with a 2px halo of the bar so the mode rule stops at each one (it read as a
   bead chain) */
.wsc-qat .rf-qbtn{position:relative}
.wsc-qat .ri-key{top:calc(100% - var(--kt-rib) / 2 + var(--kt-qat-off)); bottom:auto; left:50%; right:auto; transform:translateX(-50%); min-width:var(--kt-rib); height:var(--kt-rib); font-size:var(--xl-kt-fs); padding:0 var(--bw-3); z-index:14; box-shadow:0 0 0 var(--bw-2) var(--ws-bar), var(--kt-shadow)}

/* a lesson's KeyTips (LW-27; Wolf 2026-11-01 17:36: "make it more obvious to new users how the ribbons is working (currently the
   letters and animations are a little small/hard to see)"): in a teaching run they are 20px with a 14px legend and pop in as a level
   opens; the next key's KeyTip (ui/components/ribbon-next.js) lifts and rings in the turn's colour, breathing while it waits.
   The letters and their places are Excel's (IP-3): only the size and the mark change. `scale` composes with each tip's own transform */
/* every run has the 20px KeyTips a teaching run brought in (UI-98: --kt-rib, --xl-kt-fs and --kt-drop in tokens.css); a teaching run's pop stays its own */
.wsc[data-teach] .ribbon-full.show .ri-key, .wsc[data-teach] .rf-tab k, .wsc[data-teach] .wsc-qat .ri-key{animation:ktPop var(--d-kt-pop) var(--ease-out) both}
@keyframes ktPop{from{scale:.4; opacity:0}}
.kt-next{--kt-c:var(--learn)}
.kt-next.kt-next-teach{--kt-c:var(--instr)}
.wsc .ri-key.kt-next, .wsc .rf-tab k.kt-next, .rdrop .ri-key.kt-next{scale:var(--kt-next-k); z-index:16; box-shadow:0 0 0 var(--bw-2) var(--sheet), 0 0 0 var(--kt-next-ring) var(--kt-c); animation:ktNext var(--d-kt-next) ease-in-out infinite alternate}
.wsc .rf-tab k.kt-next{transform-origin:50% 0}   /* a tab's letter grows down, off its tab's word */
.wsc .ri-key.kt-next.kt-next-many{scale:1}   /* several KeyTips one letter starts (F: FF FS FG FK) ring without the lift, so none covers the next (play run 2026-11-19 row 24) */
@keyframes ktNext{to{box-shadow:0 0 0 var(--bw-2) var(--sheet), 0 0 0 calc(var(--kt-next-ring) * 2) color-mix(in srgb, var(--kt-c) 35%, transparent)}}
@media (prefers-reduced-motion: reduce){ .wsc[data-teach] .ribbon-full.show .ri-key, .wsc[data-teach] .rf-tab k, .wsc[data-teach] .wsc-qat .ri-key, .wsc .kt-next, .rdrop .kt-next{animation:none} }

/* the Ribbon's key mode, plain to see (UI-98; Wolf 2026-11-15 18:13: "I don't think i'm in the sheet because it's not super clear i'm
   hitting a ribbon key"; 18:20: "it's not clear if i have active control of the cursor/cell things"). One rule for where the keys
   go (ui/components/keys-home.js sets data-keys on the workspace, Arcade's on its frame: sheet, ribbon, menu, help, dialog or leave):
   - while anything but the sheet has the keys, the cell cursor keeps --spot-fade of its green (as a cell out of play keeps of
     itself) and its fill handle steps aside, the
     same quiet state for all of them; the thing with the keys carries the mark (a menu its lit row, a dialog its focus ring);
   - the Ribbon's KeyTips and menus: the Ribbon band takes the mode line on its foot (--bw-2), over the groups when they show
     and under the tab row when folded;
   - a folded Ribbon (tabs only: a test's run) lets its tab letters hang out of it; its box clipped them to their top half;
   - a key that names no KeyTip shakes the KeyTips once (data-kt-miss: --bw-3 either way over --d-goal), as Excel ignores it; with
     reduced motion the KeyTips blink to half strength instead. Labels, layout and keys stay Excel's (IP-3). */
:is(.wsc, .rf-frag)[data-keys]:not([data-keys="sheet"]) td.active, :is(.wsc, .rf-frag)[data-keys]:not([data-keys="sheet"]) td.active.spill .sphi{outline-color:color-mix(in srgb, var(--cell-cursor) calc(var(--spot-fade) * 100%), transparent)}
:is(.wsc, .rf-frag)[data-keys]:not([data-keys="sheet"]) td.fh::after{visibility:hidden}
/* the mode line's box is always there, clear, and only takes its colour while the Ribbon has the keys: a box made and dropped on
   every Alt and Esc cost a layout of the page each time (the 16 Nov nightly's slow laptop row, Alt, H then Esc Esc at 1.53x) */
:is(.wsc, .rf-frag) .ribbon.ribbon-full::after{content:''; position:absolute; left:0; right:0; bottom:0; height:var(--bw-2); background:transparent; z-index:0; pointer-events:none}   /* under the tab row (z 1), so a hanging tab letter rides over it */
:is(.wsc, .rf-frag)[data-keys="ribbon"] .ribbon.ribbon-full::after{background:var(--ws-mode-line)}
.wsc .ribbon-slot.rib-collapsed .ribbon.ribbon-full.show{overflow:visible}
/* while the Ribbon is in use (the KeyTips, a menu, a palette or a dialog it opened: .ribbon-full.show) it comes out of every fade
   at once (.rib-in-use, set by ribbon-view.js paint as .show is), Spotlight's and Chapter 1's build up alike (Wolf 2026-11-15 18:18: "for coloring the cell yellow the ribbon is still
   grey when I'm trying to see the ribbon to add a yellow fill"); it fades back when the walk ends */
.wsc[data-spot-dim~="ribbon"] .ribbon-slot.rib-in-use, .wsc[data-opened]:not([data-opened~="ribbon"]) .ribbon-slot.rib-in-use{opacity:1; pointer-events:auto; transition:none}
/* and its tabs out of Chapter 1's build up while it is in use, so every tab's KeyTip reads at full strength (a dead tab's keeps its grey
   cap, k.dim); play run 2026-11-19 row 24: the File, Insert, Page Layout and Formulas letters were faint */
.wsc[data-opened~="ribbon"] .ribbon-slot.rib-in-use .rf-tab[data-tab]{opacity:1; transition:none}
.wsc[data-kt-miss] .rf-tab k, .wsc[data-kt-miss] .ribbon-full.show .ri-key, .wsc[data-kt-miss] .wsc-qat .ri-key{animation:ktMiss var(--d-goal) ease-in-out}
@keyframes ktMiss{25%{translate:calc(-1 * var(--bw-3)) 0} 75%{translate:var(--bw-3) 0}}
@keyframes ktMissQuiet{50%{opacity:.5}}
@media (prefers-reduced-motion: reduce){ .wsc[data-kt-miss] .rf-tab k, .wsc[data-kt-miss] .ribbon-full.show .ri-key, .wsc[data-kt-miss] .wsc-qat .ri-key{animation:ktMissQuiet var(--d-goal) ease-in-out} }

/* the task card's head strip carries its mode's own label: white on a cool fill, the ink on the Daily's tangerine */
.tc-head{color:var(--mode-on)}
.tc-head .tc-segs i{background:color-mix(in srgb, var(--mode-on) 38%, transparent)}
.tc-head .tc-segs i.done{background:var(--mode-on)}
.tc-head .tc-segs i.now{outline-color:var(--mode-on)}
/* THE VERDICT (Round 1): right is the family green in every theme (--right), never Learn's colour (Crimson's Learn is the red pen's twin) */
.tc[data-state="done"]{border-color:var(--right)}
.tc-tick, .rp-tickbox{background:var(--right)}
.tc-tick::after, .rp-tickbox::after{border-color:var(--right-on)}
.sm-check-ok{outline-color:var(--right); background:color-mix(in srgb, var(--right) 12%, transparent)}
/* a lesson is the beginner's first hour: a wrong key there is a sentence in ink, never the red pen (red stays for the timed routes) */
.wsc:not([data-kind="drill"]):not([data-kind="daily"]):not([data-kind="challenge"]) .tc-live-wrong{color:var(--ink)}

/* the run panel (Round 1). The clock's band: the clock's tint (butter on a light theme, the chrome on a dark one: no warm wash) under
   a 2px amber rule; its words the ink. The current task: the ink on the mode's tint, framed by the mode's outline and a 3px rule, in
   every mode (a challenge drew it violet). Press any key: the one amber fill, the ink (the dark paper) as its label, 8.8 to 1. */
/* Round 2: on a light theme the clock's band is the sheet under its 2px amber rule, as a dark theme's is its chrome, so the panel holds
   one warm wash (the current task's), not a butter band stacked over an apricot one */
.rp-pace{color:var(--clock-ink)}
/* the start is the one primary (design review 3a): Home's green at the primary button's height, size and weight */
.rp-start{display:flex; align-items:center; min-height:var(--btn-h-lg); box-sizing:border-box; background:var(--primary); color:var(--primary-on); border:var(--btn-edge) solid var(--primary-line); border-radius:var(--btn-r); font-size:var(--btn-fs-md); font-weight:var(--btn-fw)}
/* the tiers: every word in ink, every mark in the clock's amber; the count of filled diamonds is the tier */
.rp-time .rp-tier, .rp-tier{color:var(--ink)}
/* the close-out card's marks and the record's track follow the same rule: amber marks with ink edges; the track's tiers one amber
   tint split by its ticks, the tier reached filled amber when it stamps */
.rp-zone[data-t="pro"], .rp-zone[data-t="pass"]{background:var(--clock-tint)}
.rp-ladder.rp-stamped[data-tier="legendary"] .rp-zone[data-t="legendary"], .rp-ladder.rp-stamped[data-tier="pro"] .rp-zone[data-t="pro"], .rp-ladder.rp-stamped[data-tier="pass"] .rp-zone[data-t="pass"]{background:var(--clock)}

/* ---------- the Ribbon cue in a lesson (ui/ribbon-cue.js; Wolf's playtest, 2026-10-15): the control a KeyTip just worked takes a
   ring in the pane's accent that glows once and fades, and a dot travels to it from the key pressed in the pane. Reduced motion,
   Subtle and Off: the ring holds still (rb-cue-still) and no dot ---------- */
.rb-cue, .rb-cue-still, .rb-comet{--rb-c:var(--learn); --rb-tint:var(--learn-tint)}
.rb-cue-teach{--rb-c:var(--instr); --rb-tint:var(--instr-glow)}   /* the teacher's press lights in the teacher's colour (LW-27, 2026-11-01 17:36) */
.rb-cue, .rb-cue-still{outline:var(--rb-cue-ring) solid var(--rb-c); outline-offset:1px; position:relative; z-index:1}
.rb-cue{animation:rbCue var(--d-ribbon-cue) var(--ease-out) both}
.rb-comet{position:fixed; left:0; top:0; z-index:60; width:var(--rb-comet); height:var(--rb-comet); border-radius:50%; background:var(--rb-c); box-shadow:0 0 0 var(--bw-2) var(--rb-tint); pointer-events:none; opacity:0}
@keyframes rbCue{0%{box-shadow:0 0 0 0 var(--rb-tint)} 30%{box-shadow:0 0 0 var(--rb-cue-glow) var(--rb-tint)} 75%{outline-color:var(--rb-c)} 100%{box-shadow:0 0 0 0 var(--rb-tint); outline-color:transparent}}
@media (prefers-reduced-motion: reduce){ .rb-cue{animation:none} .rb-comet{display:none} }
/* UI-117: Ready and the run never fade or scroll their body; the goals scroll in their own box (.rp-goals) */
.rp[data-beat="run"] .rp-body, .rp[data-beat="ready"] .rp-body{-webkit-mask-image:none; mask-image:none; overflow:hidden; padding-bottom:var(--s3)}
