/* The owner's final design (DEMO-1101, switch demoui; hook_callbacks loads this file only while it is on, after tokens.css and shell.css).
 * Source of truth: ~/work/claude-state/uxr/acadence-demo/Acadence.html (+ Student.html); tokens from its :root / [data-theme=dark]
 * (demo-inventory.md section 6), with the AA adjustments in DEMO-1101/contrast.md (muted, subtle, amber, three class tints, Approve fill).
 *
 * Everything keys on html.ac-demo (the class sits on <html>, like newui's data-theme, so a re-pointed semantic token also re-points
 * tokens.css's bridge names --ac-bg, --ac-line, --ac-primary ... which are var()s resolved on <html>).
 * Two layers: the palette (--ac-demo-*, light, then forced dark (0,2,1) and auto dark (0,3,1)), and one theme-free block that points
 * tokens.css's semantic names at it, specific enough to beat every tokens.css theme block.
 *
 * Page teams: use the semantic names (--ac-bg-*, --ac-text-*, --ac-border-*, --ac-accent-*, --ac-status-*, --ac-level-*) or the
 * demo-only --ac-demo-* below. Never a raw hex. Paper (--ac-paper-*) and mark ink (--ac-mark-*) are deliberately left as they are.
 * DM Sans: OFL, fonts/DM-SANS-OFL.txt; extracted unchanged from the demo's embedded woff2 (latin, weights 400-700). */
@font-face{font-family:"DM Sans";src:url(fonts/dm-sans.woff2) format("woff2");font-weight:400 700;font-style:normal;font-display:swap}

html.ac-demo {
  color-scheme: light;
  /* demo-only names (the demo's own, prefixed) */
  --ac-demo-canvas: #f7f8fa; --ac-demo-surface: #ffffff; --ac-demo-soft: #f3f4f6; --ac-demo-sidebar: #fcfcfd;
  --ac-demo-ink: #25272b; --ac-demo-muted: #6b7078; --ac-demo-subtle: #6d7077; --ac-demo-subtle-line: #979ca5;
  --ac-demo-line: #e8e9ec; --ac-demo-line-strong: #8a8c8f; --ac-demo-solid: #282b30; --ac-demo-on-solid: #ffffff; --ac-demo-solid-hover: #46494d;
  --ac-demo-green: #426f60; --ac-demo-green-bg: #edf4ef; --ac-demo-amber: #996224; --ac-demo-amber-bg: #fbf1e5; --ac-demo-red: #a34e49; --ac-demo-red-bg: #f9edeb;
  --ac-demo-chart: #567f6b; --ac-demo-area: #e9f1ed;
  --ac-demo-sage-bg: #eef3ee; --ac-demo-sage-ink: #57725d; --ac-demo-blue-bg: #edf1f7; --ac-demo-blue-ink: #5a6f8e;
  --ac-demo-lavender-bg: #f1eef5; --ac-demo-lavender-ink: #776689; --ac-demo-sand-bg: #f6f0e7; --ac-demo-sand-ink: #7e6b4f;
  --ac-demo-ai-bg: #eaf3ed; --ac-demo-ai-ink: #3f6b52; --ac-demo-ai-solid: #3e6b52; --ac-demo-ai-on-solid: #ffffff;
  --ac-demo-manual-bg: #edf1fa; --ac-demo-manual-ink: #4c6191;
  --ac-demo-approval-solid: #a46926; --ac-demo-approval-on-solid: #ffffff; --ac-demo-approval-hover: #925b20;
  --ac-demo-attempt-good: #426f60; --ac-demo-attempt-ok: #9e6525; --ac-demo-attempt-bad: #a34e49;
  --ac-demo-attempt-good-soft: #57996d; --ac-demo-attempt-ok-soft: #c48d3f; --ac-demo-attempt-bad-soft: #b6544e;  /* batch 2 (item 77): the demo's lighter squares (student pages, outlined) */
  --ac-demo-board: #e9edef; --ac-demo-board-shadow: 0 2px 9px #1d263218;
  --ac-demo-shadow-card: 0 4px 24px #161e2805; --ac-demo-shadow-hover: 0 12px 24px #1e23280e; --ac-demo-shadow-dialog: 0 30px 90px #0002;
  --ac-demo-shadow-drawer: -5px 0 20px #0002; --ac-demo-backdrop: #161b2057;
  --ac-demo-shadow-nav: 12px 0 50px #0003; --ac-demo-nav-backdrop: #0007;
  --ac-demo-font: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ac-demo-sidebar-w: 210px; --ac-demo-rail-w: 76px; --ac-demo-on-green: #ffffff;
  --ac-demo-level-1: #b5514a; --ac-demo-level-1-ink: #ffffff; --ac-demo-level-2: #bb863a; --ac-demo-level-2-ink: #25272b; --ac-demo-level-3: #599c6f; --ac-demo-level-3-ink: #25272b;
  --ac-demo-level-4: #2e4d42; --ac-demo-level-4-ink: #ffffff; --ac-demo-level-0: #f1f3f5; --ac-demo-level-0-edge: #7d868f;
}

/* The semantic tokens every existing page uses, re-pointed (theme-free: only --ac-demo-* change with the theme). The second selector
   is the auto case, so it beats tokens.css's auto-dark :root:not():not() (0,3,0) with (0,3,1). */
html.ac-demo, html.ac-demo:not([data-theme="light"]):not([data-theme="dark"]) {
  --ac-bg-canvas: var(--ac-demo-canvas); --ac-bg-surface: var(--ac-demo-surface); --ac-bg-raised: var(--ac-demo-soft); --ac-bg-surround: var(--ac-demo-board);
  --ac-border-default: var(--ac-demo-line); --ac-border-strong: var(--ac-demo-line-strong);
  --ac-text-default: var(--ac-demo-ink); --ac-text-muted: var(--ac-demo-muted); --ac-text-on-accent: var(--ac-demo-on-solid);
  --ac-accent-solid: var(--ac-demo-solid); --ac-accent-hover: var(--ac-demo-solid-hover); --ac-accent-subtle: var(--ac-demo-soft);
  --ac-accent-text: var(--ac-demo-ink); --ac-accent-highlight: var(--ac-demo-amber-bg);
  --ac-status-ok: var(--ac-demo-green); --ac-status-ok-bg: var(--ac-demo-green-bg); --ac-status-warn: var(--ac-demo-amber); --ac-status-warn-bg: var(--ac-demo-amber-bg);
  --ac-status-danger: var(--ac-demo-red); --ac-status-danger-bg: var(--ac-demo-red-bg); --ac-status-info: var(--ac-demo-manual-ink); --ac-status-info-bg: var(--ac-demo-manual-bg);
  --ac-attention: var(--ac-demo-amber); --ac-attention-bg: var(--ac-demo-amber-bg);
  /* mastery: the engine's four levels, contrast.md's values (iOS, same hex); pages always print the label too */
  --ac-level-mastered: var(--ac-demo-level-4); --ac-level-mastered-ink: var(--ac-demo-level-4-ink); --ac-level-mastered-edge: var(--ac-demo-level-4);
  --ac-level-proficient: var(--ac-demo-level-3); --ac-level-proficient-ink: var(--ac-demo-level-3-ink); --ac-level-proficient-edge: var(--ac-demo-level-3);
  --ac-level-familiar: var(--ac-demo-level-2); --ac-level-familiar-ink: var(--ac-demo-level-2-ink); --ac-level-familiar-edge: var(--ac-demo-level-2);
  --ac-level-attempted: var(--ac-demo-level-1); --ac-level-attempted-ink: var(--ac-demo-level-1-ink); --ac-level-attempted-edge: var(--ac-demo-level-1);
  --ac-level-none: var(--ac-demo-level-0); --ac-level-none-ink: var(--ac-demo-muted); --ac-level-none-edge: var(--ac-demo-level-0-edge); --ac-level-none-hatch: var(--ac-demo-line);
  --ac-font-heading: var(--ac-demo-font); --ac-font-ui: var(--ac-demo-font); --ac-font-num: var(--ac-demo-font);
  --ac-radius-control: 9px; --ac-radius-panel: 14px; --ac-radius-pill: 99px;
}

html.ac-demo[data-theme="dark"] {
  color-scheme: dark;
  --ac-demo-canvas: #121416; --ac-demo-surface: #1a1c1f; --ac-demo-soft: #24262a; --ac-demo-sidebar: #16181a;
  --ac-demo-ink: #edeef0; --ac-demo-muted: #a1a5ad; --ac-demo-subtle: #898e97; --ac-demo-subtle-line: #7c818b;
  --ac-demo-line: #2b2e33; --ac-demo-line-strong: #6d7075; --ac-demo-solid: #eff0f1; --ac-demo-on-solid: #202225; --ac-demo-solid-hover: #d1d2d4;
  --ac-demo-green: #9ac8ad; --ac-demo-green-bg: #24362b; --ac-demo-amber: #e2b57e; --ac-demo-amber-bg: #382e22; --ac-demo-red: #efaaa4; --ac-demo-red-bg: #3d2928;
  --ac-demo-chart: #a1c9b4; --ac-demo-area: #24372e;
  --ac-demo-sage-bg: #2c3930; --ac-demo-sage-ink: #b5cbb9; --ac-demo-blue-bg: #2a3442; --ac-demo-blue-ink: #adbed8;
  --ac-demo-lavender-bg: #37313f; --ac-demo-lavender-ink: #c4b6d2; --ac-demo-sand-bg: #3b342b; --ac-demo-sand-ink: #d7c3a5;
  --ac-demo-ai-bg: #24392d; --ac-demo-ai-ink: #b7d7c3; --ac-demo-ai-solid: #b8d6c4; --ac-demo-ai-on-solid: #19281f;
  --ac-demo-manual-bg: #2b3246; --ac-demo-manual-ink: #b9c8ef;
  --ac-demo-approval-solid: #e6bd88; --ac-demo-approval-on-solid: #2c2114; --ac-demo-approval-hover: #f0ca9b;
  --ac-demo-attempt-good: #62a87c; --ac-demo-attempt-ok: #c49b45; --ac-demo-attempt-bad: #b85e56;
  --ac-demo-attempt-good-soft: #62a87c; --ac-demo-attempt-ok-soft: #c49b45; --ac-demo-attempt-bad-soft: #b85e56;
  --ac-demo-board: #24282b; --ac-demo-board-shadow: 0 3px 14px #0003;
  --ac-demo-shadow-card: 0 4px 24px #0002; --ac-demo-shadow-hover: 0 12px 24px #0003; --ac-demo-shadow-dialog: 0 30px 90px #0006;
  --ac-demo-shadow-drawer: -5px 0 20px #0005; --ac-demo-backdrop: #00000080;
  --ac-demo-on-green: #121416;
  --ac-demo-level-1: #ad4d47; --ac-demo-level-1-ink: #ffffff; --ac-demo-level-2: #c38b3c; --ac-demo-level-2-ink: #25272b; --ac-demo-level-3: #63a679; --ac-demo-level-3-ink: #25272b;
  --ac-demo-level-4: #a5cabe; --ac-demo-level-4-ink: #25272b; --ac-demo-level-0: #262c36; --ac-demo-level-0-edge: #6b7585;
}
@media (prefers-color-scheme: dark) {
  html.ac-demo:not([data-theme="light"]):not([data-theme="dark"]) {
  color-scheme: dark;
  --ac-demo-canvas: #121416; --ac-demo-surface: #1a1c1f; --ac-demo-soft: #24262a; --ac-demo-sidebar: #16181a;
  --ac-demo-ink: #edeef0; --ac-demo-muted: #a1a5ad; --ac-demo-subtle: #898e97; --ac-demo-subtle-line: #7c818b;
  --ac-demo-line: #2b2e33; --ac-demo-line-strong: #6d7075; --ac-demo-solid: #eff0f1; --ac-demo-on-solid: #202225; --ac-demo-solid-hover: #d1d2d4;
  --ac-demo-green: #9ac8ad; --ac-demo-green-bg: #24362b; --ac-demo-amber: #e2b57e; --ac-demo-amber-bg: #382e22; --ac-demo-red: #efaaa4; --ac-demo-red-bg: #3d2928;
  --ac-demo-chart: #a1c9b4; --ac-demo-area: #24372e;
  --ac-demo-sage-bg: #2c3930; --ac-demo-sage-ink: #b5cbb9; --ac-demo-blue-bg: #2a3442; --ac-demo-blue-ink: #adbed8;
  --ac-demo-lavender-bg: #37313f; --ac-demo-lavender-ink: #c4b6d2; --ac-demo-sand-bg: #3b342b; --ac-demo-sand-ink: #d7c3a5;
  --ac-demo-ai-bg: #24392d; --ac-demo-ai-ink: #b7d7c3; --ac-demo-ai-solid: #b8d6c4; --ac-demo-ai-on-solid: #19281f;
  --ac-demo-manual-bg: #2b3246; --ac-demo-manual-ink: #b9c8ef;
  --ac-demo-approval-solid: #e6bd88; --ac-demo-approval-on-solid: #2c2114; --ac-demo-approval-hover: #f0ca9b;
  --ac-demo-attempt-good: #62a87c; --ac-demo-attempt-ok: #c49b45; --ac-demo-attempt-bad: #b85e56;
  --ac-demo-attempt-good-soft: #62a87c; --ac-demo-attempt-ok-soft: #c49b45; --ac-demo-attempt-bad-soft: #b85e56;
  --ac-demo-board: #24282b; --ac-demo-board-shadow: 0 3px 14px #0003;
  --ac-demo-shadow-card: 0 4px 24px #0002; --ac-demo-shadow-hover: 0 12px 24px #0003; --ac-demo-shadow-dialog: 0 30px 90px #0006;
  --ac-demo-shadow-drawer: -5px 0 20px #0005; --ac-demo-backdrop: #00000080;
  --ac-demo-on-green: #121416;
  --ac-demo-level-1: #ad4d47; --ac-demo-level-1-ink: #ffffff; --ac-demo-level-2: #c38b3c; --ac-demo-level-2-ink: #25272b; --ac-demo-level-3: #63a679; --ac-demo-level-3-ink: #25272b;
  --ac-demo-level-4: #a5cabe; --ac-demo-level-4-ink: #25272b; --ac-demo-level-0: #262c36; --ac-demo-level-0-edge: #6b7585;
  }
}

/* ===================== The shell (latest demo, wave 3; page::shell draws it, $demo branches) =====================
 * Every account: the 210px sidebar, shown by default above 1000px; hidden FULLY (no icon rail) by its button, and the menu button in
 * the top bar shows it again (this device remembers: acadence:nav). At 1000px and below it is a 260px drawer over a dimmed page
 * (shell.mjs: focus trapped, Esc / a tap outside closes). No tab bar on any size. Text never under 12px, touch targets 44px. */
html.ac-demo,html.ac-demo body{background:var(--ac-bg-canvas)}
html.ac-demo .ws{font-family:var(--ac-font-ui);-webkit-font-smoothing:antialiased}
html.ac-demo .ws.sh{background:linear-gradient(90deg,var(--ac-demo-sidebar) calc(var(--sh-w) - 1px),var(--ac-border-default) 0 var(--sh-w),var(--ac-bg-canvas) 0)}
html.ac-demo .sh-side{background:var(--ac-demo-sidebar)}
html.ac-demo .ws.sh{--sh-w:0px;--sh-tabbar-h:0px;padding-bottom:0}
@media (min-width:1001px){html.ac-demo:not(.sh-nav-hidden) .ws.sh{--sh-w:var(--ac-demo-sidebar-w)}}
@media (min-width:1001px) and (max-width:1190px){html.ac-demo{--ac-demo-sidebar-w:180px}}  /* one app: iOS's 180 step (Navigation.swift) */
html.ac-demo .ws.sh.sh-focus{--sh-w:0px}  /* full-screen documents: never a blank strip beside them (demo defect 1) */
html.ac-demo .ws.sh .sh-side{z-index:1002;top:0;right:auto;bottom:0;left:0;width:var(--ac-demo-sidebar-w);flex-direction:column;align-items:stretch;gap:4px;padding:16px;border-top:0;border-right:1px solid var(--ac-border-default);overflow:hidden auto;container-type:normal;visibility:visible;transform:none;transition:transform .2s,visibility .2s}
html.ac-demo.sh-nav-hidden .ws.sh .sh-side{visibility:hidden;transform:translateX(-100%)}
/* Sidebar hidden: the page sits centred on the screen (Nishanth, Telegram 5 Nov); students already are (their own 1020 column). */
@media (min-width:1001px){
  html.ac-demo.sh-nav-hidden .ws.sh:not(.sh-student) :is(.sh-head,.sh-body){margin-inline:auto}
  html.ac-demo.sh-nav-hidden .ws.sh:not(.sh-student) :is(.sh-topbar,.sh-footer){margin-inline:max(32px,calc((100% - 1376px) / 2))}
}
@media (max-width:1000px){
  html.ac-demo .ws.sh .sh-side{width:min(260px,calc(100vw - 48px));visibility:hidden;transform:translateX(-100%);overflow-y:auto}
  html.ac-demo.sh-nav-open .ws.sh .sh-side{visibility:visible;transform:none;box-shadow:var(--ac-demo-shadow-nav)}
}
html.ac-demo .ws.sh .sh-side:has(.sh-acct[open]){overflow:visible}
/* container-type stays normal: as a container the sidebar would hold the phone's fixed account sheet inside its 260px. */
/* No script (or shell.mjs failed): the menu button is a link to #sh-side, and the target shows the sidebar. */
html.ac-demo:not(.sh-js) .ws.sh .sh-side:target{visibility:visible;transform:none;box-shadow:var(--ac-demo-shadow-nav)}
/* What today's student rail / tab bar and tutor rail rules hide or turn sideways, put back as the demo's column. */
html.ac-demo .ws.sh .sh-side>.sh-brand-row{display:flex}
html.ac-demo .ws.sh .sh-side>:is(.sh-switch,.admin-branch-switch,.sh-workspace,.sh-side-note){display:block}
html.ac-demo .ws.sh .sh-side>.sh-jump{display:flex}
html.ac-demo .ws.sh .sh-side>.sh-nav{display:flex;flex-direction:column;flex:0 1 auto;gap:4px;min-height:0;margin:0;overflow-y:auto}
html.ac-demo .ws.sh .sh-side>.sh-foot{display:flex;flex-direction:column;gap:4px;margin-top:auto;padding-top:12px}
html.ac-demo .ws.sh .sh-side .sh-brand-text{display:flex}
html.ac-demo .ws.sh .sh-side .sh-brand{flex:1}
@media (prefers-reduced-motion:reduce){html.ac-demo .ws.sh .sh-side{transition:none}}
/* The dimmed page behind the drawer (a button: a tap closes; shell.mjs shows it only for the drawer). */
html.ac-demo .sh-backdrop{position:fixed;z-index:1001;inset:0;width:auto;height:auto;margin:0;padding:0;border:0;border-radius:0;background:var(--ac-demo-nav-backdrop);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
html.ac-demo .sh-backdrop[hidden]{display:none}
html.ac-demo body.sh-nav-lock{overflow:hidden}
/* The menu button, at the top bar's left whenever the sidebar is not beside the page. */
html.ac-demo .ws .sh-menu-btn{display:grid;text-decoration:none;place-items:center;flex:none;width:44px;height:44px;margin:0 8px 0 0;padding:0;border:1px solid var(--ac-border-default);border-radius:11px;background:var(--ac-bg-surface);color:var(--ac-text-default);cursor:pointer}
html.ac-demo .ws .sh-menu-btn .icon{width:20px;height:20px}
@media (min-width:1001px){html.ac-demo:not(.sh-nav-hidden) .ws .sh-menu-btn{display:none}}
/* One app (R7, iOS RoleShells): the teacher's and manager's search, a magnifier at the top bar's end at every width. */
html.ac-demo .ws .sh-topbar-search{display:grid;place-items:center;flex:none;width:44px;height:44px;margin:0;padding:0;border:1px solid var(--ac-border-default);border-radius:11px;background:var(--ac-bg-surface);color:var(--ac-text-default);cursor:pointer}
html.ac-demo .ws .sh-topbar-search:hover{background:var(--ac-bg-raised)}
html.ac-demo .ws .sh-topbar-search .icon{width:20px;height:20px}
html.ac-demo .ws dialog.sh-jump-panel input:is(:focus,:focus-visible){outline:0;box-shadow:none;border:0}
/* One bell, in the sidebar's foot; the header's bell, theme and class pill go (the sidebar has them). */
html.ac-demo .ws.sh .sh-brand-row>.sh-bell,html.ac-demo .ws.sh .sh-head .sh-bell,html.ac-demo .ws.sh .sh-head-theme,html.ac-demo .ws.sh .sh-head>.sh-switch-head{display:none}
html.ac-demo .ws.sh .sh-side .sh-foot>.sh-bell-foot.sh-bell{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:12px;width:auto;height:auto;min-height:44px;padding:0 12px;border:0;font-size:14px;font-weight:500;color:var(--ac-text-default)}
html.ac-demo .ws.sh .sh-side .sh-foot>.sh-bell-foot .sh-ico{width:auto;height:auto;gap:6px}
html.ac-demo .ws.sh .sh-side .sh-foot>.sh-bell-foot .sh-count{position:static;margin-left:auto;order:2}
/* The demo's quiet line under the menu. */
html.ac-demo .ws .sh-side-note{position:relative;margin:24px 12px;padding-left:15px;font-size:12px;line-height:1.7;color:var(--ac-demo-subtle)}
html.ac-demo .sh-side-note::before{content:"";position:absolute;left:0;top:7px;width:5px;height:5px;border-radius:50%;background:var(--ac-demo-subtle)}
/* A parent's children in the menu: initials instead of an icon. */
html.ac-demo .ws.sh .sh-side .sh-nav .sh-avatar{width:28px;height:28px;font-size:12px}
/* The footer: Help, then the wordmark. */
html.ac-demo .sh-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;max-width:calc(1440px - 64px);margin:24px 32px 0;padding:16px 0 24px;border-top:1px solid var(--ac-border-default);font-size:12px;color:var(--ac-demo-subtle)}
html.ac-demo .sh-student .sh-footer{margin-inline:36px}
@media (min-width:1200px){html.ac-demo .sh-student .sh-footer{max-width:1020px;margin-inline:auto}}
html.ac-demo .ws .sh-footer a{display:inline-flex;align-items:center;gap:6px;min-height:44px;color:var(--ac-text-muted);text-decoration:none}
html.ac-demo .ws .sh-footer a:hover{color:var(--ac-text-default);text-decoration:underline}
html.ac-demo .sh-footer .icon{width:16px;height:16px}
html.ac-demo .sh-footer-mark{font:600 17px/1 var(--ac-font-heading);letter-spacing:-.5px;color:var(--ac-text-muted)}
html.ac-demo .sh-footer-mark sup{margin-left:2px;font-size:12px;font-weight:400}

/* Wordmark "a acadence" + the collapse button beside it (every width with a sidebar; the foot's Collapse goes). */
html.ac-demo .ws .sh-wordmark{gap:6px;padding-left:8px}
html.ac-demo .sh-mark{flex:none;display:inline-grid;place-items:center;width:28px;height:36px;font:700 32px/1 var(--ac-font-heading);letter-spacing:-1px;color:var(--ac-text-default)}
html.ac-demo .sh-wordmark .sh-brand-name{font:600 24px/1 var(--ac-font-heading);letter-spacing:-.8px}
html.ac-demo .sh-brand-row{display:flex;align-items:center;gap:4px}
html.ac-demo .ws.sh .sh-side .sh-fold-top:not([hidden]){display:grid;place-items:center;flex:none;width:44px;height:44px;margin-left:auto;padding:0;border:0;border-radius:var(--ac-radius-control);background:none;color:var(--ac-text-muted)}
html.ac-demo .ws.sh .sh-side .sh-fold-top:hover{background:var(--ac-bg-raised);color:var(--ac-text-default)}
/* The workspace label: "TEACHER WORKSPACE" (the demo's 9px lifted to 12px). */
html.ac-demo .sh-workspace{margin:24px 12px 8px;font-size:12px;font-weight:500;letter-spacing:1.6px;text-transform:uppercase;color:var(--ac-demo-subtle)}
html.ac-demo .sh-eyebrow{margin:0 0 6px;font-size:12px;font-weight:500;letter-spacing:1.6px;text-transform:uppercase;color:var(--ac-text-muted)}
/* Nav items: 44px rows, 14px medium, the current one on --soft (.sh-side twice: beats shell.css's :is(..., .sh-fold:not([hidden])) at 0,6,0). */
html.ac-demo .ws.sh .sh-side.sh-side :is(.sh-nav a,.sh-foot>a,.sh-acct>summary){display:flex;flex-direction:row;align-items:center;justify-content:flex-start;width:auto;height:auto;min-height:46px;gap:12px;padding:0 12px;border-radius:var(--ac-radius-control);font-size:15px;font-weight:500;color:var(--ac-text-default);text-decoration:none}
html.ac-demo .ws.sh .sh-side .sh-nav a[aria-current]{background:var(--ac-demo-soft);color:var(--ac-text-default);font-weight:500}
html.ac-demo .ws.sh .sh-side .sh-nav .icon{width:20px;height:20px}
html.ac-demo .ws.sh .sh-side .sh-nav-count{margin-left:auto;min-width:0;padding:0;background:none;color:var(--ac-text-muted);font:500 13px/1 var(--ac-font-num)}
html.ac-demo .ws.sh-student .sh-side .sh-nav .sh-ico,html.ac-demo .ws.sh-student .sh-side .sh-nav a[aria-current] .sh-ico{padding:0;background:none}  /* one app: the new look's student pill icon, not in the demo rows */
html.ac-demo .ws.sh-student .sh-side .sh-nav .icon{width:20px;height:20px}
/* A badge beside its label, at the row's end. Gate 1115d B2: "S$290 due" fits at 210 px (6 px around the badge, a slimmer pill).
   ui ux 15 Nov: one that does not fit ("S$1,290 due") drops under the label from the label's left edge (the icon sits outside the
   wrapping line, where the other rows have it) and the row grows: never cut. */
/* The label's line is the pill's height in both cases, so the icon (13 px down, as in a 46 px row) stays level with the label. */
html.ac-demo .ws.sh .sh-side .sh-nav a:has(.sh-nav-badge){position:relative;flex-wrap:wrap;justify-content:space-between;align-content:flex-start;gap:2px 6px;padding:9px 6px 9px 44px}
html.ac-demo .ws.sh .sh-side .sh-nav a:has(.sh-nav-badge) .sh-label{display:inline-flex;align-items:center;min-height:28px}
html.ac-demo .ws.sh .sh-side .sh-nav a:has(.sh-nav-badge) .sh-ico{position:absolute;left:12px;top:13px}
html.ac-demo .ws.sh .sh-side .sh-nav a:has(.sh-nav-badge) .sh-nav-badge{flex:none;margin-left:0}
html.ac-demo .ws.sh .sh-side .sh-nav .sh-nav-badge.sh-pill{padding-inline:6px}
html.ac-demo .ws.sh .sh-side .sh-nav-count[data-tone="warn"]{color:var(--ac-status-warn);font-weight:600}  /* one app: Worksheets with work past due (iOS amber) */
html.ac-demo .ws.sh-student .sh-side .sh-nav .sh-label{white-space:nowrap}/* batch 2 (item 67): "My classes" never wraps beside its count */
/* The theme (Light / Dark / Auto, saved to the account as today) above the profile; the profile: initials, name, centre. */
html.ac-demo .sh-side-theme .sh-theme{display:flex;width:100%}
html.ac-demo .ws .sh-side-theme .sh-theme button{flex:1;justify-content:center;min-height:44px;min-width:44px;padding:0 6px}
html.ac-demo .sh-side-theme .sh-theme .icon{display:none}  /* the words alone: three 44px choices fit the 186px row with a scrollbar */
html.ac-demo .ws.sh .sh-side .sh-acct{margin-top:8px;padding-top:12px;border-top:1px solid var(--ac-border-default)}
html.ac-demo .ws.sh .sh-side .sh-acct>summary{min-height:52px}
html.ac-demo .sh-side .sh-avatar{flex:none;width:36px;height:36px;border:1px solid var(--ac-border-default);background:var(--ac-demo-soft);color:var(--ac-text-default);font-size:12px;font-weight:600}
html.ac-demo .sh-profile{display:flex;flex-direction:column;min-width:0;line-height:1.3}
html.ac-demo .sh-profile strong{font-size:14px;font-weight:600;overflow:hidden;text-overflow:ellipsis}
html.ac-demo .sh-profile>span{font-size:12px;font-weight:400;color:var(--ac-text-muted);overflow:hidden;text-overflow:ellipsis}
html.ac-demo .sh-side .sh-acct-theme{display:none}  /* the sidebar shows it */


/* The top bar: breadcrumbs left, the centre name right (the demo's term is left out: no term in the backend), a rule under it. */
html.ac-demo .sh-topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:56px;max-width:calc(1440px - 64px);margin:0 32px;border-bottom:1px solid var(--ac-border-default);font-size:14px;color:var(--ac-text-muted)}
html.ac-demo .sh-student .sh-topbar{margin-inline:36px}
@media (min-width:1200px){html.ac-demo .sh-student .sh-topbar{max-width:1020px;margin-inline:auto}}
html.ac-demo .sh-crumbs{display:flex;align-items:center;gap:8px;min-width:0;white-space:nowrap;overflow:hidden}
html.ac-demo .ws .sh-crumbs a{display:inline-flex;align-items:center;min-height:44px;color:var(--ac-text-muted);text-decoration:none}
html.ac-demo .ws .sh-crumbs a:hover{color:var(--ac-text-default);text-decoration:underline;text-underline-offset:3px}
html.ac-demo .sh-crumbs .icon{flex:none;width:14px;height:14px;color:var(--ac-demo-subtle)}
html.ac-demo .sh-crumbs [aria-current]{overflow:hidden;text-overflow:ellipsis;color:var(--ac-text-default);font-weight:600}
html.ac-demo .sh-topbar-centre{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
html.ac-demo .sh-topbar-centre::after{content:"";width:6px;height:6px;border-radius:50%;background:var(--ac-demo-green)}
@media (max-width:699px){html.ac-demo .sh-topbar,html.ac-demo .sh-student .sh-topbar{min-height:52px;margin:0 16px}html.ac-demo .sh-topbar-centre{display:none}}
html.ac-demo .sh-crumbs{flex:1}
/* A parent's child picker sits in the top bar (demo P1), before the centre name. */
html.ac-demo .sh-topbar>.sh-switch-child label{padding:0 4px 0 8px;border:1px solid var(--ac-border-strong);border-radius:12px;background:var(--ac-bg-surface)}
html.ac-demo .ws .sh-topbar>.sh-switch-child select{max-width:40vw;font-size:14px}
/* Review 1103 item 93: the demo's labelled picker, "Child [Amelia Tan v]": the word shows, the select is its own box. */
html.ac-demo .sh-topbar>.sh-switch-child .sh-switch-name{position:static;width:auto;height:auto;overflow:visible;clip-path:none;font-size:12px;color:var(--ac-text-muted)}
html.ac-demo .ws .sh-topbar>.sh-switch-child select{min-height:44px;padding:0 24px 0 8px;border:1px solid var(--ac-border-default);border-radius:8px;background-color:var(--ac-bg-raised)}
html.ac-demo .sh-topbar>.sh-switch-child label>.icon{right:12px}
/* Phones: the top bar stays at the top (the demo's sticky bar on the canvas colour); crumbs keep one line, the current page's
   name ends in an ellipsis (N-007: wrapped, they took two or three lines; the title under the bar says it in full). */
@media (max-width:600px){
  html.ac-demo .ws.sh .sh-topbar{position:sticky;z-index:999;top:0;max-width:none;margin:0;padding:4px 16px;border-bottom:0;box-shadow:inset 0 -1px var(--ac-border-default);background:var(--ac-bg-canvas)}
  /* A full-screen desk (student corrections, the marking desk) is the whole screen: the sticky bar never draws over it. */
  html.ac-demo .ws.sh:has(.cr-desk, .mk.mk-rv[data-demo]) .sh-topbar{display:none}
  html.ac-demo .sh-crumbs{column-gap:6px;font-size:12px;line-height:1.5}
}
/* The header: a big, tight title (demo 49px/700, -1.8px; scaled down on iPad and phone). */
html.ac-demo .sh-head{padding-top:32px}
html.ac-demo .ws.sh .sh-title{font:700 clamp(30px,3.4vw,38px)/1.13 var(--ac-font-heading);letter-spacing:-1.4px}
html.ac-demo .sh-sub{margin-top:8px;font-size:14px;color:var(--ac-text-muted)}

/* ===================== Components (page teams build with these; tokens only) ===================== */
/* Buttons: neutral, solid primary, AI (green), manual (blue), Approve (amber). Radius 9, 44px, 14px medium. */
html.ac-demo .ws .sh-btn{min-height:44px;padding:0 16px;border-color:var(--ac-border-strong);border-radius:var(--ac-radius-control);font-size:14px;font-weight:500;transition:background var(--ac-motion),transform var(--ac-motion)}
html.ac-demo .ws .sh-btn:active{transform:translateY(1px)}
html.ac-demo .ws .sh-btn.primary{border-color:var(--ac-demo-solid);background:var(--ac-demo-solid);color:var(--ac-demo-on-solid)}
html.ac-demo .ws .sh-btn.primary:hover{background:var(--ac-demo-solid-hover)}
html.ac-demo .ws .sh-btn.ai{border-color:transparent;background:var(--ac-demo-ai-bg);color:var(--ac-demo-ai-ink)}
html.ac-demo .ws .sh-btn.ai.solid{background:var(--ac-demo-ai-solid);color:var(--ac-demo-ai-on-solid)}
html.ac-demo .ws .sh-btn.manual{border-color:transparent;background:var(--ac-demo-manual-bg);color:var(--ac-demo-manual-ink)}
html.ac-demo .ws .sh-btn.approve{border-color:transparent;background:var(--ac-demo-approval-solid);color:var(--ac-demo-approval-on-solid)}
html.ac-demo .ws .sh-btn.approve:hover{background:var(--ac-demo-approval-hover)}
html.ac-demo .ws .sh-btn:is(.ai,.manual):hover{box-shadow:inset 0 0 0 1px currentColor}
html.ac-demo .ws .sh-btn .icon{width:16px;height:16px}
/* Cards and panels: 14px corners, a hairline, a very soft shadow; class cards 17px. */
html.ac-demo .sh-card{padding:24px;border-color:var(--ac-border-default);border-radius:var(--ac-radius-panel);box-shadow:var(--ac-demo-shadow-card)}
html.ac-demo .ws .sh-class-tile{border-radius:17px;transition:transform .2s,border-color .2s,box-shadow .2s}
html.ac-demo .ws .sh-class-tile:hover{transform:translateY(-3px);border-color:var(--ac-border-strong);background:var(--ac-bg-surface);box-shadow:var(--ac-demo-shadow-hover)}
/* Class tints: data-tint="sage|blue|lavender|sand" on any badge or card icon. */
html.ac-demo [data-tint=sage]{--tint-bg:var(--ac-demo-sage-bg);--tint-ink:var(--ac-demo-sage-ink)}
html.ac-demo [data-tint=blue]{--tint-bg:var(--ac-demo-blue-bg);--tint-ink:var(--ac-demo-blue-ink)}
html.ac-demo [data-tint=lavender]{--tint-bg:var(--ac-demo-lavender-bg);--tint-ink:var(--ac-demo-lavender-ink)}
html.ac-demo [data-tint=sand]{--tint-bg:var(--ac-demo-sand-bg);--tint-ink:var(--ac-demo-sand-ink)}
html.ac-demo .ws .sh-class-badge{background:var(--tint-bg,var(--ac-demo-sage-bg));color:var(--tint-ink,var(--ac-demo-sage-ink));border-radius:12px}
/* Tables (class="sh-table" inside a .sh-table-wrap): soft header row, hairlines, 14px rows. */
html.ac-demo .sh-table-wrap{overflow-x:auto;border:1px solid var(--ac-border-default);border-radius:12px;background:var(--ac-bg-surface)}
html.ac-demo .ws .sh-table{width:100%;border-collapse:collapse;font-size:14px;text-align:left}
html.ac-demo .ws .sh-table th{padding:12px 18px;border-bottom:1px solid var(--ac-border-default);background:var(--ac-demo-soft);color:var(--ac-text-muted);font-size:12px;font-weight:500}
html.ac-demo .ws .sh-table td{padding:14px 18px;border-bottom:1px solid var(--ac-border-default)}
html.ac-demo .ws .sh-table tr:last-child td{border-bottom:0}
/* Tabs (the header's .sh-tabs and .sh-tabs in a page): muted words, the current one ink with a 2px solid rule. */
html.ac-demo .ws .sh-tabs{display:flex;gap:24px;border-bottom:1px solid var(--ac-border-default)}
html.ac-demo .ws .sh-tabs a{position:relative;display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0;border:0;background:none;color:var(--ac-text-muted);font-size:14px;font-weight:500;text-decoration:none}
html.ac-demo .ws .sh-tabs a[aria-current]{color:var(--ac-text-default);font-weight:600}
html.ac-demo .ws .sh-tabs a[aria-current]::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--ac-demo-solid)}
/* Stat tiles (.sh-stat in .sh-tiles): label, big number with a muted unit, a note. */
html.ac-demo .sh-stat{display:flex;flex-direction:column;gap:6px;padding:20px 24px;border:1px solid var(--ac-border-default);border-radius:var(--ac-radius-panel);background:var(--ac-bg-surface)}
html.ac-demo .sh-stat-label{font-size:13px;color:var(--ac-text-muted)}
html.ac-demo .sh-stat-value{font:500 32px/1.1 var(--ac-font-num);letter-spacing:-1.5px;color:var(--ac-text-default);font-variant-numeric:tabular-nums}
html.ac-demo .sh-stat-value small{margin-left:2px;font-size:18px;font-weight:400;letter-spacing:0;color:var(--ac-text-muted)}
html.ac-demo .sh-stat-note{font-size:12px;color:var(--ac-text-muted)}
/* Progress bars: <span class="sh-bar" data-tone="ok|warn|danger"><span style="width:71%"></span></span>; always with the number beside it. */
html.ac-demo .sh-bar{display:block;height:4px;overflow:hidden;border-radius:99px;background:var(--ac-demo-soft)}
html.ac-demo .sh-bar>span{display:block;height:100%;min-width:2px;border-radius:99px;background:var(--tint-ink,var(--ac-demo-chart))}
html.ac-demo .sh-bar[data-tone=warn]>span{background:var(--ac-demo-amber)}
html.ac-demo .sh-bar[data-tone=danger]>span{background:var(--ac-demo-red)}
/* Chips and pills. */
html.ac-demo .sh-pill{min-height:28px;padding:0 10px;border-radius:var(--ac-radius-pill);font-size:12px;font-weight:500}
html.ac-demo .sh-pill[data-tone=ai]{background:var(--ac-demo-ai-bg);color:var(--ac-demo-ai-ink)}
html.ac-demo .sh-pill[data-tone=manual]{background:var(--ac-demo-manual-bg);color:var(--ac-demo-manual-ink)}
html.ac-demo .ws .ws-chips a{min-height:44px;border-color:var(--ac-border-default);font-size:14px;font-weight:500}
html.ac-demo .ws .ws-chips a[aria-current]{background:var(--ac-bg-surface);border-color:var(--ac-border-strong);color:var(--ac-text-default)}
/* Dialogs (modal) and the toast. */
html.ac-demo dialog:modal{border:1px solid var(--ac-border-default);border-radius:20px;background:var(--ac-bg-surface);color:var(--ac-text-default);box-shadow:var(--ac-demo-shadow-dialog)}
html.ac-demo dialog:modal::backdrop{background:var(--ac-demo-backdrop);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}
html.ac-demo .sh-toast{position:fixed;z-index:1100;left:calc(50% + var(--sh-w, 0px) / 2);bottom:calc(28px + var(--sh-tabbar-h, 0px));transform:translateX(-50%);max-width:calc(100vw - 32px);padding:13px 20px;border-radius:10px;background:var(--ac-demo-solid);color:var(--ac-demo-on-solid);font-size:14px;box-shadow:0 8px 32px #0002}
/* Focus stays visible everywhere. */
html.ac-demo :focus-visible{outline:2px solid var(--ac-demo-solid);outline-offset:2px}
@media (prefers-reduced-motion:reduce){html.ac-demo .ws :is(.sh-btn,.sh-class-tile){transition:none}html.ac-demo .ws .sh-class-tile:hover{transform:none}}
/* The wordmark is never cut at 210px (beats shell.css's ellipsis on the centre name). */
html.ac-demo .ws .sh-wordmark{padding-left:4px}
html.ac-demo .sh-wordmark .sh-brand-name{font-size:22px;overflow:visible;text-overflow:clip}
/* iPad QA (WebKit, 2026-11-01): every shell control at least 44px tall; counts at 12px. */
html.ac-demo .ws .sh-switch label{min-height:44px}
html.ac-demo .ws .sh-switch select{min-height:44px;width:100%}
/* The class chip shows the class alone, as iOS; "Switch class" names it for screen readers (it took the 180px sidebar's room). */
html.ac-demo .sh-side .sh-switch-side .sh-switch-name{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
html.ac-demo .ws .sh-switch select:focus-visible{outline-offset:-2px}
html.ac-demo .ws .sh-theme button,html.ac-demo .ws .sh-side-theme .sh-theme button{min-height:44px}
html.ac-demo .ws .sh-jump{min-height:44px}
html.ac-demo .sh-count{font-size:12px}
/* Wave 3 (w3shell): the branch choice in the sidebar is a 44px target too. */
html.ac-demo .ws.sh .sh-side .admin-branch-switch label{height:auto;min-height:44px}
html.ac-demo .ws.sh .sh-side .admin-branch-switch select{min-height:44px}
/* The demo's theme button (wave 3): "Dark appearance" on a light screen, "Light appearance" on a dark one (auto: the device decides). */
html.ac-demo .ws .sh-theme-toggle{display:flex;align-items:center;width:100%;min-height:44px;padding:0 12px;border:0;border-radius:var(--ac-radius-control);background:none;color:var(--ac-text-default);font-size:14px;font-weight:500;text-align:left;cursor:pointer}
html.ac-demo .ws .sh-theme-toggle:hover{background:var(--ac-bg-raised)}
html.ac-demo .sh-theme-toggle>span{display:inline-flex;align-items:center;gap:12px}
html.ac-demo .sh-theme-toggle .icon{width:20px;height:20px}
html.ac-demo .sh-theme-toggle>.sh-tt-light,html.ac-demo[data-theme="dark"] .sh-theme-toggle>.sh-tt-dark{display:none}
html.ac-demo[data-theme="dark"] .sh-theme-toggle>.sh-tt-light{display:inline-flex}
@media (prefers-color-scheme:dark){
  html.ac-demo:not([data-theme="light"]):not([data-theme="dark"]) .sh-theme-toggle>.sh-tt-dark{display:none}
  html.ac-demo:not([data-theme="light"]):not([data-theme="dark"]) .sh-theme-toggle>.sh-tt-light{display:inline-flex}
}
/* Phones, student and parent: the account menu is shell.css's sheet at the screen's right edge; the sidebar's own left:0 is undone. */
@media (max-width:699px){html.ac-demo .ws.sh:is(.sh-student,.sh-parent) .sh-side .sh-acct-menu{left:auto;right:0}}
/* The Acadence logo in the sidebar (owner 11 Nov, Telegram 558288426): the wave and the word as masks over the text colour, so light and dark
   follow it; the same pieces as the app's splash (app/splash-*.png). A folded sidebar keeps the wave (its brand text is hidden). */
html.ac-demo .ws .sh-wordmark :is(.sh-mark,.sh-brand-name){display:block;flex:none;width:auto;height:16px;font-size:0;letter-spacing:0;background:currentColor;-webkit-mask:var(--logo) left center/contain no-repeat;mask:var(--logo) left center/contain no-repeat}
html.ac-demo .ws .sh-wordmark .sh-mark{--logo:url(app/splash-icon.png);aspect-ratio:624/240}
html.ac-demo .ws .sh-wordmark .sh-brand-name{--logo:url(app/splash-word.png);aspect-ratio:1180/240}
/* One student's progress page is the same page for every role (Nishanth, Telegram 12 Nov): the student's and the parent's version
   (studentpage::html, .dt-studentpage) leave their own 1020/1120 px column and sit exactly where the teacher's does. */
html.ac-demo .ws.sh:is(.sh-student,.sh-parent):has(.dt-studentpage) :is(.sh-topbar,.sh-footer){max-width:calc(1440px - 64px);margin-inline:32px}
html.ac-demo .ws.sh:is(.sh-student,.sh-parent):has(.dt-studentpage) :is(.sh-head,.sh-body){max-width:1440px;margin-inline:0}
html.ac-demo .ws.sh:is(.sh-student,.sh-parent):has(.dt-studentpage) .parent-page{max-width:none}
@media (min-width:1001px){
  html.ac-demo.sh-nav-hidden .ws.sh:is(.sh-student,.sh-parent):has(.dt-studentpage) :is(.sh-head,.sh-body){margin-inline:auto}
  html.ac-demo.sh-nav-hidden .ws.sh:is(.sh-student,.sh-parent):has(.dt-studentpage) :is(.sh-topbar,.sh-footer){margin-inline:max(32px,calc((100% - 1376px) / 2))}
}
@media (min-width:700px){html.ac-demo .ws.sh:is(.sh-student,.sh-parent):has(.dt-studentpage) :is(.sh-head,.sh-body){padding-inline:32px}}  /* the teacher's gutter (students: 36) */
/* Money brief 1115 (g): the parent's Billing item under the children (a thin divider, the badge at the row's end) and the menu button's dot. */
html.ac-demo .ws.sh .sh-side .sh-nav-sep{margin:8px 12px;border:0;border-top:1px solid var(--ac-border-default)}
html.ac-demo .ws.sh .sh-side .sh-nav .sh-nav-badge{margin-left:auto;display:inline-flex;align-items:center;min-height:24px;white-space:nowrap}
html.ac-demo .ws .sh-pill[data-tone=warn]{background:var(--ac-status-warn-bg);color:var(--ac-status-warn)}
html.ac-demo .ws .sh-pill[data-tone=danger]{background:var(--ac-status-danger-bg);color:var(--ac-status-danger)}
html.ac-demo .ws .sh-menu-btn{position:relative}
html.ac-demo .ws .sh-menu-dot{position:absolute;top:6px;right:6px;width:10px;height:10px;border-radius:50%;background:var(--ac-status-warn);box-shadow:0 0 0 2px var(--ac-bg-surface)}
html.ac-demo .ws .sh-menu-dot[data-tone=danger]{background:var(--ac-status-danger)}
