/* Learn2Write chrome: the ONE header (site + portals), the staff bar, the admin sidebar and the command palette (design.md §13).
   Framework-free, so it looks the same on top of the site's Tailwind build and Bootstrap. Tokens only. Every list/link/button
   inside is reset here, because the two frameworks' base styles differ. */

/* Skip link (staff layout; UAT R-13, design.md §12): off-screen until focused, then above the staff bar. */
.l2w-skip { position: absolute; left: var(--l2w-space-4, 1rem); top: -4rem; z-index: calc(var(--l2w-z-toast) + 1); padding: 8px 16px; border-radius: var(--l2w-radius-control);
    background: var(--l2w-surface); color: var(--l2w-ink); font-family: var(--l2w-font-sans); font-size: var(--l2w-text-14); font-weight: var(--l2w-weight-semibold);
    text-decoration: none; box-shadow: var(--l2w-shadow-float, 0 2px 8px rgb(0 0 0 / .2)); }
.l2w-skip:focus { top: 8px; outline: var(--l2w-focus-outline); outline-offset: 2px; }

.l2w-container { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: var(--l2w-gutter); }
@media (min-width: 768px) { .l2w-container { padding-inline: 24px; } }

/* ---------- Site/portal header ---------- */
.l2w-header { position: sticky; top: 0; z-index: var(--l2w-z-header); background: rgb(252 249 243); border-bottom: 1px solid var(--l2w-border);
    font-family: var(--l2w-font-sans); color: var(--l2w-ink); }
/* No frosted (backdrop-filter) header any more (owner 20 Nov 2026, after an evaluator's graphics-driver blackouts): the blur
   re-ran over everything scrolling beneath it on every frame, and backdrop-filter has a history of black-rectangle glitches on
   some graphics drivers. The header was 94 % opaque, so the plain solid colour above looks the same. Do not bring it back —
   it also made the header the containing block of every position:fixed child (Staging review 29 Oct, XP-01). */
/* UX 27 Oct (ST-01/H5): the sticky header is its own layer (z 1030), so a menu inside it could never rise above
   the toast layer (1080) however high its own z-index — an open menu looked "semi-transparent" under a toast. While one of its
   menus is open the whole header steps above the toasts. */
.l2w-header:has(details[data-l2w-menu][open]) { z-index: calc(var(--l2w-z-toast) + 2); }
/* owner 5 Nov 2026: the parent tour opens Help to light "Message us"; the header then stays under the tour's veil and card */
.l2w-tour-on .l2w-header:has(details[data-l2w-menu][open]) { z-index: var(--l2w-z-header); }
.l2w-header ul { list-style: none; margin: 0; padding: 0; }
.l2w-header a { text-decoration: none; color: inherit; }
.l2w-header :focus-visible { outline: var(--l2w-focus-outline); outline-offset: 2px; border-radius: 4px; }
.l2w-header summary { list-style: none; cursor: pointer; }
.l2w-header summary::-webkit-details-marker { display: none; }

.l2w-header__strip { display: none; background: var(--l2w-ink); color: var(--l2w-text-on-ink); font-size: var(--l2w-text-12); letter-spacing: .02em; }
@media (min-width: 768px) { .l2w-header__strip { display: block; } }
.l2w-header__strip-row { display: flex; align-items: center; justify-content: space-between; gap: var(--l2w-space-6); min-height: 32px; }
.l2w-header__strip-row p { margin: 0; color: var(--l2w-text-on-ink-muted); }   /* design.md §3: no opacity on text on navy */
.l2w-header__strip-links { display: flex; gap: var(--l2w-space-6); }
.l2w-header__strip-links a { display: inline-flex; align-items: center; gap: 6px; font-size: var(--l2w-text-13); }
.l2w-header__strip-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.l2w-header__strip :focus-visible { outline-color: var(--l2w-sky); }

.l2w-header__bar { display: flex; align-items: center; gap: var(--l2w-space-6); min-height: 64px; }
@media (min-width: 1024px) { .l2w-header__bar { min-height: 76px; } }
/* Staging review 29 Oct (CC-4, XP-12, BH-22): the rebuilt vector logo (img/site/l2w-logo.svg, 440 × 87) in a FIXED slot, so it never
   shifts between pages or while loading.
   QA 14 Nov 2026 (owner: "make the logo in the header a bit bigger and fuller — the old site's appears more legible"): the drawing
   fills only x 32–397 and y 9–73 of its 440 × 87 box, so the slot now CROPS the empty margins (negative margins inside an
   overflow-hidden link: 29 units left, 40 right, 6 top, 11.5 bottom; the visible slot is 4.26 × 0.80 of --l2w-logo-h) and the
   image is drawn bigger: --l2w-logo-h 42 px on a phone, 50 px from 768 px, 56 px from 1280 px (the letters 31 / 37 / 41 px tall,
   about 1.4 times the old 40 px logo on a laptop). Measured signed out (Sign in + Try free) and signed in at 1024, 1200 and
   1280 px with a scrollbar: the seven-link menu still fits the 72rem container (from 1200 px the bar's gaps are 16 px and the
   menu links 8 px each side to make the room). The family and school portals use the same sizes (.l2w-header--family, owner
   14 Nov 2026); only a slim header outside them keeps the compact 32 / 36 px. */
.l2w-header { --l2w-logo-h: 42px; }
@media (min-width: 768px) { .l2w-header { --l2w-logo-h: 50px; } }
@media (min-width: 1280px) { .l2w-header { --l2w-logo-h: 56px; } }
/* small phones: beside the Home icon and Help (a family's portal) the logo steps down so nothing scrolls sideways at 360 / 320 px */
@media (max-width: 399.98px) { .l2w-header--family { --l2w-logo-h: 38px; } }
@media (max-width: 359.98px) { .l2w-header { --l2w-logo-h: 32px; } }
.l2w-header--slim:not(.l2w-header--family) { --l2w-logo-h: 32px; }
@media (min-width: 768px) { .l2w-header--slim:not(.l2w-header--family) { --l2w-logo-h: 36px; } }
.l2w-header__logo { display: inline-flex; flex: none; align-items: center; overflow: hidden; }
.l2w-header__logo img { display: block; height: var(--l2w-logo-h); width: auto; max-width: none; aspect-ratio: 440 / 87;
    margin: calc(var(--l2w-logo-h) * -0.069) calc(var(--l2w-logo-h) * -0.46) calc(var(--l2w-logo-h) * -0.132) calc(var(--l2w-logo-h) * -0.333); }

/* QA 14 Nov 2026 (owner): the Home icon in every signed-in header (Shared/_HomeLink): right after the logo, a thin separator on
   each side (logo | house | the rest), an icon-only link named "Home" that goes where the logo goes. Shown at every width. */
.l2w-homelink { display: inline-flex; flex: none; align-items: center; height: 32px; padding-inline: var(--l2w-space-2); border-inline: 1px solid var(--l2w-border); }
.l2w-homelink__link { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--l2w-radius-control); color: var(--l2w-ink); }
.l2w-homelink__link:hover { background: var(--l2w-paper-deep); color: var(--l2w-ink); }
@media (max-width: 399.98px) { .l2w-homelink { padding-inline: var(--l2w-space-1); } }
/* the next item already draws its own separator: the school's name beside the logo, the staff bar's "Staff" */
.l2w-homelink + .l2w-header__org, .l2w-homelink + .l2w-staffbar__role { padding-left: 0; border-left: 0; }

/* Site menu (laptop and up); hover or keyboard focus opens a dropdown */
.l2w-sitenav { display: none; }
@media (min-width: 1024px) { .l2w-sitenav { display: block; } }
.l2w-sitenav > ul { display: flex; gap: var(--l2w-space-1); }
.l2w-sitenav__item { position: relative; }
.l2w-sitenav__item > a { white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 10px; border-radius: var(--l2w-radius-control);
    font-size: var(--l2w-text-15); font-weight: var(--l2w-weight-medium); color: var(--l2w-ink-soft); }
.l2w-sitenav__item > a:hover, .l2w-sitenav__item > a[aria-current="page"] { color: var(--l2w-ink); background: var(--l2w-paper-deep); }
.l2w-sitenav__caret { width: 14px; height: 14px; }
.l2w-sitenav__menu { position: absolute; left: 0; top: 100%; z-index: var(--l2w-z-menu); min-width: 14rem; padding: var(--l2w-space-2) !important;
    background: var(--l2w-surface); border: 1px solid var(--l2w-border); border-radius: var(--l2w-radius-card); box-shadow: var(--l2w-shadow-float);
    opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity var(--l2w-duration) var(--l2w-ease-out), transform var(--l2w-duration) var(--l2w-ease-out), visibility 0s linear var(--l2w-duration); }
.l2w-sitenav__item:hover > .l2w-sitenav__menu, .l2w-sitenav__item:focus-within > .l2w-sitenav__menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.l2w-sitenav__menu a { display: block; padding: 8px 10px; border-radius: var(--l2w-radius-control); font-size: var(--l2w-text-14); font-weight: var(--l2w-weight-medium); }
.l2w-sitenav__menu a:hover, .l2w-sitenav__menu a:focus-visible { background: var(--l2w-paper-deep); }

.l2w-header__actions { display: flex; align-items: center; gap: var(--l2w-space-2); margin-left: auto; }
.l2w-header__signin, .l2w-header__cta { display: none; }
@media (min-width: 768px) { .l2w-header__signin { display: inline-flex; } }
@media (min-width: 1200px) { .l2w-header__cta { display: inline-flex; } }
/* landing polish 2026-10-15: ".l2w-header a { color: inherit }" outranked .l2w-btn--coral, so "Free assessment" rendered ink on coral
   (2.6:1). White on coral-strong is 5.4:1, on coral-stronger (hover) 6.7:1. */
.l2w-header a.l2w-btn--coral, .l2w-header a.l2w-btn--coral:hover { color: var(--l2w-on-action); }
@media (min-width: 1024px) and (max-width: 1199.98px) { .l2w-sitenav__item > a { padding: 0 6px; font-size: var(--l2w-text-14); } .l2w-header__bar { gap: var(--l2w-space-3); }
    .l2w-sitenav > ul { gap: 0; } }   /* QA 14 Nov 2026: room for the bigger logo at 1024 px with a scrollbar */
@media (min-width: 1200px) { .l2w-header__bar { gap: var(--l2w-space-4); } .l2w-sitenav__item > a { padding: 0 8px; } }   /* ...and beside Try free */

/* My account */
.l2w-account { position: relative; }
.l2w-account__trigger { display: flex; align-items: center; gap: var(--l2w-space-2); min-height: 44px; padding: 4px 8px 4px 4px; border: 1px solid var(--l2w-border);
    border-radius: var(--l2w-radius-control); background: var(--l2w-surface); }
.l2w-account__trigger:hover { background: var(--l2w-paper-deep); }
.l2w-account[open] > .l2w-account__trigger { border-color: var(--l2w-action); }
.l2w-avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--l2w-ink); color: var(--l2w-text-on-ink);
    font-size: var(--l2w-text-13); font-weight: var(--l2w-weight-bold); }
.l2w-account__text { display: none; flex-direction: column; line-height: 1.15; text-align: left; }
@media (min-width: 768px) { .l2w-account__text { display: flex; } }
.l2w-account__label { font-size: var(--l2w-text-14); font-weight: var(--l2w-weight-semibold); }
.l2w-account__name { max-width: 14rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--l2w-text-12); color: var(--l2w-text-muted); }
.l2w-account__menu { right: 0; top: calc(100% + 6px); width: 16rem; }
.l2w-account__who { padding: 0 10px 4px; font-weight: var(--l2w-weight-semibold); overflow-wrap: anywhere; }
.l2w-menu form { margin: 0; }
.l2w-menu a[aria-current="page"] { background: var(--l2w-action-tint); color: var(--l2w-action-strong); }
/* Long menus never run off the window (UAT 15 Oct: the organisation menu hid "Sign out" on a 680 px-tall laptop). The open menu is capped to
   the viewport below where it opens (--l2w-menu-top = the bar's height + the gap; a little generous on purpose); the list
   (.l2w-menu__scroll) scrolls inside it and the footer (.l2w-menu__foot: password, Sign out) never scrolls, so it is always on screen. */
.l2w-header { --l2w-menu-top: 112px; }
.l2w-header:not(.l2w-header--slim), .l2w-header--family { --l2w-menu-top: 150px; } /* the full header (and a family's) carries the contact strip */
.l2w-staffbar { --l2w-menu-top: 72px; }
.l2w-account__menu, .l2w-staffbar__tzlist { max-height: calc(100vh - var(--l2w-menu-top, 112px) - 12px); max-height: calc(100dvh - var(--l2w-menu-top, 112px) - 12px); }
.l2w-account__menu, .l2w-mobilemenu__panel { display: flex; flex-direction: column; }
.l2w-staffbar__tzlist { overflow-y: auto; overscroll-behavior: contain; }
.l2w-menu__scroll { flex: 1 1 auto; min-height: 4.5rem; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.l2w-menu__foot { flex: none; }
.l2w-menu__foot > .l2w-menu__sep:first-child { margin-top: var(--l2w-space-1); }

/* Mobile sheet (below laptop) */
.l2w-mobilemenu { position: relative; }
@media (min-width: 1024px) { .l2w-mobilemenu { display: none; } }
.l2w-mobilemenu > summary { width: 44px; min-height: 44px; }
.l2w-mobilemenu__panel { right: 0; top: calc(100% + 6px); width: min(20rem, calc(100vw - 2 * var(--l2w-gutter))); max-height: calc(100vh - 96px); max-height: calc(100dvh - 96px); }
.l2w-mobilemenu__panel a, .l2w-mobilemenu__panel button { min-height: 44px; }
.l2w-mobilemenu__cta { margin-top: var(--l2w-space-2); color: var(--l2w-on-action) !important; justify-content: center; }
.l2w-mobilemenu__cta:hover { background: var(--l2w-coral-stronger) !important; }

/* Portal tab row */
.l2w-subnav { border-top: 1px solid var(--l2w-border); background: var(--l2w-surface); }
.l2w-subnav ul { display: flex; gap: var(--l2w-space-1); overflow-x: auto; scrollbar-width: thin; }
.l2w-subnav a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; white-space: nowrap; border-bottom: 2px solid transparent;
    font-size: var(--l2w-text-14); font-weight: var(--l2w-weight-semibold); color: var(--l2w-ink-soft); }
.l2w-subnav a:hover { color: var(--l2w-ink); }
.l2w-subnav a[aria-current="page"] { color: var(--l2w-action-strong); border-bottom-color: var(--l2w-action); }
@media (max-width: 767.98px) { .l2w-subnav { display: none; } } /* the mobile sheet lists the same links */
/* UX 27 Oct (school admin, M9): a folded group of tabs ("More") sits after the row, outside its sideways scroll */
.l2w-subnav__row { display: flex; align-items: stretch; gap: var(--l2w-space-1); }
.l2w-subnav__row > ul { flex: 1 1 auto; min-width: 0; }
.l2w-subnav__more { position: relative; flex: none; }
.l2w-subnav__more > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; white-space: nowrap; cursor: pointer;
    list-style: none; border-bottom: 2px solid transparent; font-size: var(--l2w-text-14); font-weight: var(--l2w-weight-semibold); color: var(--l2w-ink-soft); }
.l2w-subnav__more > summary::-webkit-details-marker { display: none; }
.l2w-subnav__more > summary:hover { color: var(--l2w-ink); }
.l2w-subnav__more > summary:focus-visible { outline: var(--l2w-focus-outline); outline-offset: -2px; }
.l2w-subnav__more.is-current > summary { color: var(--l2w-action-strong); border-bottom-color: var(--l2w-action); }
.l2w-subnav__menu { top: 100%; right: 0; }
/* 11 Nov 2026: on a tablet the school admin's six tabs and More fit the row as words alone (the last tab was cut at 820 px) */
@media (min-width: 768px) and (max-width: 991.98px) { .l2w-subnav__row > ul a > .l2w-icon { display: none; } .l2w-subnav__row > ul a { padding: 0 10px; } }
.l2w-subnav .l2w-subnav__menu a { min-height: 0; border-bottom: 0; font-weight: var(--l2w-weight-medium); color: var(--l2w-ink); }

/* Slim portal header (UAT 3–4 Oct, F1 — Navigation/PortalChrome): signed-in parents, students, teachers and schools get the logo,
   the organisation's name (when a page sets it), the account menu and the tab row; the site menu lives in the portal footer. On a
   phone the one sheet holds everything (portal pages, time zone, password, sign out), so the account button steps aside. */
.l2w-header--slim .l2w-header__bar { min-height: 56px; gap: var(--l2w-space-3); }
/* QA 14 Nov 2026 (owner): a family's portal bar is the homepage's height (64 px, 76 px on a laptop); the sheet opens under it */
.l2w-header--family .l2w-header__bar { min-height: 64px; }
@media (min-width: 1024px) { .l2w-header--family .l2w-header__bar { min-height: 76px; } }
.l2w-header--family { --l2w-sheet-top: 65px; }
/* 768–1023 px: the tabs wrap under the bar; the logo's row keeps the homepage's 64 px (the bar's min-height spans both rows) */
@media (max-width: 1023.98px) { .l2w-header--family .l2w-header__logo { min-height: 64px; } }
@media (max-width: 767.98px) { .l2w-header--slim .l2w-header__bar { gap: var(--l2w-space-2); } }
@media (min-width: 768px) { .l2w-header--slim .l2w-mobilemenu { display: none; } }
/* on a phone the account items live in the More sheet (bottom tab bar), or in the sheet of a slim header without tabs */
@media (max-width: 767.98px) { .l2w-header--slim .l2w-account { display: none; } }
/* UX 27 Oct (ST-11/M2, M6): on a phone the portal menu is a full-height sheet under the bar — the pages scroll inside it and
   Change password / Sign out stay pinned at the bottom (UAT 15 Oct: Sign out never scrolls away) */
@media (max-width: 767.98px) {
    .l2w-header--slim .l2w-mobilemenu__panel { position: fixed; top: var(--l2w-sheet-top, 57px); left: 0; right: 0; bottom: 0; width: auto;
        max-height: none; border-radius: 0; border-width: 1px 0 0; padding: var(--l2w-space-3) var(--l2w-space-4) max(var(--l2w-space-4), env(safe-area-inset-bottom)); }
    .l2w-header--slim .l2w-mobilemenu__panel a, .l2w-header--slim .l2w-mobilemenu__panel button { min-height: 48px; font-size: var(--l2w-text-16); }
}
/* UX 27 Oct (00-1): the sign-in page's quiet "Free assessment" link */
.l2w-header__light { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; font-size: var(--l2w-text-14);
    font-weight: var(--l2w-weight-semibold); color: var(--l2w-action-strong) !important; }
.l2w-header__light:hover { text-decoration: underline !important; }

/* UX 27 Oct (G2) + staging review 29 Oct (BH-03/04, XP-03, M14 b): the Help menu in EVERY portal — a labelled button ("Help",
   never an icon alone) opening that portal's guide, What the icons mean and a way to ask. */
.l2w-help { position: relative; }
.l2w-help__trigger { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; border: 1px solid var(--l2w-border);
    border-radius: var(--l2w-radius-control); background: var(--l2w-surface); font-size: var(--l2w-text-14); font-weight: var(--l2w-weight-semibold); color: var(--l2w-ink); white-space: nowrap; }
.l2w-help__trigger:hover { background: var(--l2w-paper-deep); }
.l2w-help[open] > .l2w-help__trigger { border-color: var(--l2w-action); }
.l2w-help__caret { width: 14px; height: 14px; }
@media (max-width: 767.98px) { .l2w-help__caret { display: none; } }
.l2w-help__menu { right: 0; top: calc(100% + 6px); width: 17rem; }
.l2w-help__menu a { min-height: 44px; }
/* At 1024–1279 px the one-row header keeps the account button to its badge and "My account" (the name is inside the menu). */
@media (min-width: 1024px) and (max-width: 1279.98px) { .l2w-header--inline .l2w-account__name { display: none; } }

/* XP-10 / M14 (staging review 29 Oct): ONE sticky 56 px row at 1024 px and wider — logo · tabs · Help · account — when the portal's
   tabs fit (PortalChrome.TabsInline: families and teachers). The tab row is the same markup inside the bar: from 768 to 1023 px it
   wraps onto its own line under the bar (full width), and below 768 px the bottom tab bar replaces it. A school admin's seven tabs
   keep the second row (.l2w-subnav after the bar). */
.l2w-header--inline .l2w-header__bar { flex-wrap: wrap; row-gap: 0; }
.l2w-header--inline .l2w-header__bar > .l2w-subnav { order: 10; flex: 1 0 100%; margin-inline: calc(-1 * var(--l2w-gutter)); }
@media (min-width: 768px) { .l2w-header--inline .l2w-header__bar > .l2w-subnav { margin-inline: -24px; } }
@media (min-width: 1024px) {
    .l2w-header--inline .l2w-header__bar { flex-wrap: nowrap; }
    .l2w-header--inline .l2w-header__bar > .l2w-subnav { order: 0; flex: 0 1 auto; align-self: stretch; min-width: 0; margin: 0 0 -1px; border-top: 0; background: transparent; }
    .l2w-header--inline .l2w-subnav__row { height: 100%; max-width: none; padding: 0; }
    .l2w-header--inline .l2w-subnav ul { height: 100%; }
    .l2w-header--inline .l2w-subnav a { min-height: 56px; height: 100%; padding: 0 10px; }
}
.l2w-header__org { min-width: 0; max-width: 40vw; padding-left: var(--l2w-space-3); border-left: 1px solid var(--l2w-border); overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap; font-size: var(--l2w-text-14); font-weight: var(--l2w-weight-semibold); color: var(--l2w-text-muted); }

/* ---------- Bottom tab bar (phones) + the More sheet — staging review 29 Oct (XP-01/02, ST-01, CT-7, TB9; owner decision M4) ----------
   Parents, students, teachers and client admins below 768 px: fixed tabs (icon + word, 60 px + the safe area) from
   PortalChrome.TabBar, the current one marked by aria-current; "More" opens an OPAQUE bottom sheet (a modal <dialog>: scrim, the
   pages, Help, Change password, Sign out pinned at the bottom). Elevation: the bar is "raised", the sheet "floating" + scrim.
   The page gets bottom padding (and --l2w-tabbar-h for anything sticky at the bottom), so nothing hides under the bar. */
.l2w-tabbar { display: none; }
@media (max-width: 767.98px) {
    html:has(.l2w-tabbar) { --l2w-tabbar-h: calc(60px + env(safe-area-inset-bottom, 0px)); }
    body:has(.l2w-tabbar) { padding-bottom: var(--l2w-tabbar-h); }
    .l2w-tabbar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--l2w-z-header); padding-bottom: env(safe-area-inset-bottom, 0px);
        background: var(--l2w-surface); border-top: var(--l2w-elev-border); box-shadow: var(--l2w-shadow-raised-up); font-family: var(--l2w-font-sans); }
    .l2w-tabbar__list { display: flex; margin: 0; padding: 0; list-style: none; }
    /* each tab starts from the width of its own word and shares the rest (11 Nov 2026: "Programmes" was cut to "Programm…" beside four
       shorter words when every tab was the same width) */
    .l2w-tabbar__list > li { flex: 1 1 auto; min-width: 0; }
    .l2w-tabbar__tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 100%; min-height: 60px;
        padding: 6px 2px 4px; border: 0; background: none; color: var(--l2w-ink-soft); font: var(--l2w-weight-semibold) var(--l2w-text-13)/1.2 var(--l2w-font-sans);
        text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
    .l2w-tabbar__tab:hover { color: var(--l2w-ink); }
    .l2w-tabbar__tab:focus-visible { outline: var(--l2w-focus-outline); outline-offset: -4px; border-radius: var(--l2w-radius-control); }
    .l2w-tabbar__icon { display: grid; place-items: center; width: 56px; height: 28px; border-radius: var(--l2w-radius-pill); }
    .l2w-tabbar__word { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    /* the current tab: never colour alone — a tinted icon well and a bar on top, plus aria-current for screen readers */
    .l2w-tabbar__tab[aria-current] { color: var(--l2w-action-strong); }
    .l2w-tabbar__tab[aria-current] .l2w-tabbar__icon { background: var(--l2w-action-tint); }
    .l2w-tabbar__tab[aria-current]::before { content: ""; position: absolute; top: 0; left: 50%; width: 40px; height: 3px; transform: translateX(-50%);
        border-radius: 0 0 3px 3px; background: var(--l2w-action); }
    .l2w-tabbar__tab[aria-expanded="true"] { color: var(--l2w-action-strong); }
    /* the toasts float under the header as before; the old phone sheet of the slim header is not rendered with a tab bar */
}
.l2w-sheet { position: fixed; inset: auto 0 0 0; width: 100%; max-width: 100%; max-height: min(88dvh, 44rem); margin: 0; padding: 0; border: 0;
    border-radius: 16px 16px 0 0; background: var(--l2w-surface); color: var(--l2w-ink); box-shadow: var(--l2w-shadow-float); font-family: var(--l2w-font-sans); overflow: hidden; }
.l2w-sheet::backdrop { background: var(--l2w-scrim); }
.l2w-sheet[open] { display: flex; animation: l2w-sheet-in var(--l2w-duration) var(--l2w-ease-out); }
@keyframes l2w-sheet-in { from { transform: translateY(24px); opacity: 0; } }
.l2w-sheet__panel { display: flex; flex-direction: column; width: 100%; min-height: 0; max-height: inherit; }
.l2w-sheet__head { display: flex; align-items: center; justify-content: space-between; gap: var(--l2w-space-3); padding: var(--l2w-space-3) var(--l2w-space-4) var(--l2w-space-2);
    border-bottom: var(--l2w-elev-border); }
.l2w-sheet__head::before { content: ""; position: absolute; top: 6px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--l2w-border-strong); }
.l2w-sheet .l2w-sheet__title { margin: 0; font: var(--l2w-weight-bold) var(--l2w-text-20)/1.3 var(--l2w-font-sans); color: var(--l2w-ink); }
.l2w-sheet__close { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 8px; border: 0; border-radius: var(--l2w-radius-control); background: none;
    color: var(--l2w-ink); font: var(--l2w-weight-semibold) var(--l2w-text-16)/1 var(--l2w-font-sans); cursor: pointer; }
.l2w-sheet__close:hover { background: var(--l2w-paper-deep); }
.l2w-sheet__scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--l2w-space-4) var(--l2w-space-2); }
.l2w-sheet__who { margin: var(--l2w-space-3) 0 0; font-size: var(--l2w-text-14); color: var(--l2w-text-muted); overflow-wrap: anywhere; }
.l2w-sheet .l2w-sheet__heading { font-family: var(--l2w-font-sans); margin: var(--l2w-space-4) 0 var(--l2w-space-1); font-size: var(--l2w-text-13); font-weight: var(--l2w-weight-bold); letter-spacing: .06em;
    text-transform: uppercase; color: var(--l2w-text-muted); }
.l2w-sheet__list { margin: 0; padding: 0; list-style: none; }
.l2w-sheet__list--account { margin-top: var(--l2w-space-3); padding-top: var(--l2w-space-2); border-top: var(--l2w-elev-border); }
.l2w-sheet__list a { display: flex; align-items: center; gap: var(--l2w-space-3); min-height: 48px; padding: 0 var(--l2w-space-1); border-radius: var(--l2w-radius-control);
    color: var(--l2w-ink); font-size: var(--l2w-text-16); font-weight: var(--l2w-weight-medium); text-decoration: none; }
.l2w-sheet__list a > span { flex: 1 1 auto; min-width: 0; }
.l2w-sheet__list a:hover { background: var(--l2w-paper-deep); }
.l2w-sheet__list a[aria-current="page"] { background: var(--l2w-action-tint); color: var(--l2w-action-strong); }
.l2w-sheet__chev { color: var(--l2w-text-muted); }
.l2w-sheet :focus-visible { outline: var(--l2w-focus-outline); outline-offset: 2px; }
.l2w-sheet__foot { flex: none; padding: var(--l2w-space-1) var(--l2w-space-4) max(var(--l2w-space-3), env(safe-area-inset-bottom, 0px)); border-top: var(--l2w-elev-border); background: var(--l2w-surface); }
.l2w-sheet__foot form { margin: 0; }
.l2w-sheet__signout { display: flex; align-items: center; gap: var(--l2w-space-3); width: 100%; min-height: 48px; padding: 0 var(--l2w-space-1); border: 0; border-radius: var(--l2w-radius-control);
    background: none; color: var(--l2w-danger); font: var(--l2w-weight-semibold) var(--l2w-text-16)/1.2 var(--l2w-font-sans); text-align: left; cursor: pointer; }
.l2w-sheet__signout:hover { background: var(--l2w-danger-tint); }
@media (prefers-reduced-motion: reduce) { .l2w-sheet[open] { animation: none; } }

/* CT-11: anchors and headings land BELOW the sticky header / staff bar (after Back, a contents link, a grid scroll).
   --l2w-sticky-h is measured by l2w.js (0 when the bar is not sticky, as the staff bar on a phone); the fallback covers no script. */
html { scroll-padding-top: calc(var(--l2w-sticky-h, 64px) + var(--l2w-space-2)); }

/* XP-21: 44 px hit areas for links in the chrome on touch screens, for families and schools (staff keep Tool density). */
@media (pointer: coarse) {
    :where([data-density="reading"], [data-density="working"]) :where(.l2w-header a, .l2w-menu a, .portal-footer a, .l2w-guide__toc a, .l2w-guide__meta a, a[data-l2w-hit]) {
        display: inline-flex; align-items: center; min-height: var(--l2w-target-min); }
    :where([data-density="reading"], [data-density="working"]) :where(.l2w-menu a) { display: flex; }
}

/* Site-wide notice under the header ("You've signed out") */

/* ---------- Staff bar ---------- */
.l2w-staffbar { position: sticky; top: 0; z-index: var(--l2w-z-header); background: var(--l2w-ink); color: var(--l2w-text-on-ink); font-family: var(--l2w-font-sans);
    font-size: var(--l2w-text-14); }
.l2w-staffbar__row { display: flex; align-items: center; gap: var(--l2w-space-3); min-height: 48px; padding-inline: var(--l2w-space-3); }
.l2w-staffbar ul { list-style: none; margin: 0; padding: 0; }
.l2w-staffbar a { color: inherit; text-decoration: none; }
.l2w-staffbar :focus-visible { outline: 2px solid var(--l2w-sky); outline-offset: 2px; border-radius: 4px; }
.l2w-staffbar__logo { display: inline-flex; align-items: center; gap: var(--l2w-space-2); flex: none; font-weight: var(--l2w-weight-semibold); }
.l2w-staffbar__logo img { display: block; height: 28px; width: auto; aspect-ratio: 440 / 87; }   /* the dark vector logo, no tagline (CC-4) */
/* on a phone the one-row bar needs the room (Menu, the chips, Help, the bell, the avatar): the logo steps down to 22 px */
@media (max-width: 767.98px) { .l2w-staffbar__logo img { height: 22px; } }
/* QA 14 Nov 2026: the same crop as the site header's logo (its empty margins), so the bar has room for the Home icon after it */
.l2w-staffbar__logo { overflow: hidden; }
.l2w-staffbar__logo img { max-width: none; margin: calc(28px * -0.069) calc(28px * -0.46) calc(28px * -0.132) calc(28px * -0.333); }
@media (max-width: 767.98px) { .l2w-staffbar__logo img { margin: calc(22px * -0.069) calc(22px * -0.46) calc(22px * -0.132) calc(22px * -0.333); } }
.l2w-staffbar__role { padding-left: var(--l2w-space-2); border-left: 1px solid rgb(252 249 243 / .25); color: var(--l2w-text-on-ink-muted); font-size: var(--l2w-text-13); }
/* QA 14 Nov 2026: the Home icon on the ink bar — the bar's own separator colour, its 32 px buttons, the bar's hover */
.l2w-staffbar .l2w-homelink { height: 24px; padding-inline: var(--l2w-space-1); border-color: rgb(252 249 243 / .25); }
.l2w-staffbar .l2w-homelink__link { width: 32px; height: 32px; color: var(--l2w-text-on-ink); }
.l2w-staffbar .l2w-homelink__link:hover { background: rgb(252 249 243 / .12); color: var(--l2w-text-on-ink); }
.l2w-staffbar__btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px; min-width: 32px; padding: 0 8px; border: 0;
    border-radius: var(--l2w-radius-control); background: transparent; color: var(--l2w-text-on-ink); font: inherit; cursor: pointer; }
.l2w-staffbar__btn:hover, .l2w-staffbar__links a:hover, .l2w-staffbar__links a[aria-current="page"] { background: rgb(252 249 243 / .12); }
.l2w-staffbar__links { display: flex; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.l2w-staffbar__links a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border-radius: var(--l2w-radius-control); white-space: nowrap; }
.l2w-staffbar__links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--l2w-sky); }
.l2w-staffbar__spacer { flex: 1; }
.l2w-staffbar__search { display: inline-flex; align-items: center; gap: var(--l2w-space-2); min-height: 32px; min-width: 14rem; padding: 0 8px 0 10px;
    border: 1px solid rgb(252 249 243 / .25); border-radius: var(--l2w-radius-control); background: rgb(252 249 243 / .08); color: var(--l2w-text-on-ink-muted); font: inherit; cursor: pointer; }
.l2w-staffbar__search:hover { background: rgb(252 249 243 / .14); color: var(--l2w-text-on-ink); }
.l2w-staffbar__search kbd { margin-left: auto; padding: 1px 6px; border: 1px solid rgb(252 249 243 / .3); border-radius: 4px; background: transparent; color: inherit;
    font: var(--l2w-weight-semibold) var(--l2w-text-12)/1.4 var(--l2w-font-sans); box-shadow: none; }
@media (max-width: 767.98px) { .l2w-staffbar__search { min-width: 0; } .l2w-staffbar__search span, .l2w-staffbar__search kbd, .l2w-staffbar__role, .l2w-staffbar__label { display: none; } }
.l2w-staffbar__tz { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 8px; border-radius: var(--l2w-radius-control);
    color: var(--l2w-text-on-ink-muted); font-size: var(--l2w-text-13); white-space: nowrap; text-decoration: none; }   /* XP-05: clickable = 13 px */
.l2w-staffbar__tz:hover, .l2w-staffbar__tz:focus-visible { background: rgb(252 249 243 / .12); color: var(--l2w-text-on-ink); }
@media (max-width: 767.98px) { .l2w-staffbar__tz span { display: none; } }
/* 11 Nov 2026: a tablet (768 to 1023 px) has no room for the search words, the zone words and the account name beside the role's
   links: the bar ran 190 px past the screen. There the search is its icon and "Ctrl K" hint, the clock is its icon, and the account
   is the avatar; nothing is removed, and each keeps its accessible name. */
@media (min-width: 768px) and (max-width: 1023.98px) {
    .l2w-staffbar__search { min-width: 0; }
    .l2w-staffbar__search span, .l2w-staffbar__tz span, .l2w-staffbar__user-name, .l2w-staffbar__help .l2w-staffbar__label { display: none; }
}
/* Phone (UAT 27 Oct, EP2; it was a second, scrolling row of links since L2W2-20): the bar is ONE row. The role's links sit
   behind a labelled menu button (.l2w-staffbar__navmenu: "Menu", or "Pages" beside the sidebar's own "Menu"), and the bar
   is not sticky, so a short phone screen is all page. The sidebar drawer and the bar's menus open under the bar as it is on
   screen (--l2w-staffbar-bottom, kept by l2w-responsive.js). */
.l2w-staffbar__navmenu { display: none; position: relative; }
.l2w-staffbar__navmenu > summary { list-style: none; }
.l2w-staffbar__navmenu > summary::-webkit-details-marker { display: none; }
.l2w-staffbar__navmenu[open] > summary { background: rgb(252 249 243 / .12); }
.l2w-staffbar__navmenu-word { font-size: var(--l2w-text-13); font-weight: var(--l2w-weight-semibold); }
.l2w-staffbar__navlist a[aria-current="page"] { background: var(--l2w-action-tint); color: var(--l2w-action-strong); font-weight: var(--l2w-weight-semibold); }
@media (max-width: 767.98px) {
    .l2w-staffbar { position: relative; }
    .l2w-staffbar__row { flex-wrap: nowrap; column-gap: var(--l2w-space-2); }
    .l2w-staffbar__links { display: none; }
    .l2w-staffbar__navmenu { display: block; }
    .l2w-staffbar__row:not(:has(#l2wSidebarToggle)) .l2w-staffbar__navmenu { order: -1; }   /* the evaluator's Menu sits at the left */
    .l2w-staffbar__navlist { position: fixed; left: var(--l2w-space-2); top: var(--l2w-menu-top); width: min(16rem, calc(100vw - 2 * var(--l2w-space-2))); }
    .l2w-staffbar #l2wSidebarToggle::after { content: "Menu"; content: "Menu" / ""; font-size: var(--l2w-text-13); font-weight: var(--l2w-weight-semibold); }
    .l2w-sidebar { top: var(--l2w-staffbar-bottom, var(--l2w-staffbar-h, 48px)); height: calc(100vh - var(--l2w-staffbar-bottom, var(--l2w-staffbar-h, 48px))); }
}
/* UAT 27 Oct (EP3, UAT D-62 kept): the AI-override chip on My assignments says the state in words, with one-click "Turn off". */
.l2w-staffbar__ai { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 4px 0 10px; border-radius: var(--l2w-radius-pill);
    background: var(--l2w-warning-tint); color: var(--l2w-ink); font-size: var(--l2w-text-13); font-weight: var(--l2w-weight-semibold); white-space: nowrap;
    min-width: 0; flex: 0 1 auto; overflow: hidden; }
.l2w-staffbar__ai-long { overflow: hidden; text-overflow: ellipsis; padding-right: 6px; }
.l2w-staffbar__ai-short { display: none; padding-right: 6px; }
.l2w-staffbar__ai-form { margin: 0; display: inline-flex; }
.l2w-staffbar__ai-off { min-height: 24px; padding: 0 8px; border: 0; border-radius: var(--l2w-radius-pill); background: transparent; color: var(--l2w-ink);
    font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.l2w-staffbar__ai-off:hover { background: rgb(10 45 75 / .08); }
.l2w-staffbar .l2w-staffbar__ai :focus-visible { outline-color: var(--l2w-ink); }
@media (max-width: 1023.98px) { .l2w-staffbar__ai-long { display: none; } .l2w-staffbar__ai-short { display: inline; } }
/* F9 (UAT 14 Oct): the chip opens a zone menu (a <details data-l2w-menu>; l2w.js closes it on outside click / Esc) */
.l2w-staffbar__tzmenu { position: relative; }
.l2w-staffbar__tzmenu > summary { list-style: none; cursor: pointer; }
.l2w-staffbar__tzmenu > summary::-webkit-details-marker { display: none; }
.l2w-staffbar__tzmenu[open] > summary { background: rgb(252 249 243 / .12); color: var(--l2w-text-on-ink); }
.l2w-staffbar__tzlist { right: 0; top: calc(100% + 8px); width: 18rem; }
.l2w-staffbar__tzlist button[aria-pressed="true"] { background: var(--l2w-action-tint); color: var(--l2w-action-strong); font-weight: var(--l2w-weight-semibold); }
.l2w-staffbar .mat-notif > .nav-link { display: inline-flex; align-items: center; min-height: 32px; padding: 0 8px; color: var(--l2w-text-on-ink); border-radius: var(--l2w-radius-control); }
.l2w-staffbar .mat-notif > .nav-link:hover { background: rgb(252 249 243 / .12); }
.l2w-staffbar .mat-notif { list-style: none; position: relative; }
/* XP-05: the unread count was 9.6 px (site.css .6rem); a number on a badge is a caption, 12 px at least */
.l2w-staffbar .mat-notif .mat-notif-badge { font-size: var(--l2w-text-12); line-height: 1.2; }
/* Staging review 29 Oct (EV-03): Help in the staff bar — Evaluator guide, What the icons mean, Contact support */
.l2w-staffbar__help { position: relative; }
.l2w-staffbar__help > summary { list-style: none; }
.l2w-staffbar__help > summary::-webkit-details-marker { display: none; }
.l2w-staffbar__help[open] > summary { background: rgb(252 249 243 / .12); }
.l2w-staffbar__caret { width: 14px; height: 14px; }
.l2w-staffbar__helplist { right: 0; top: calc(100% + 8px); width: 16rem; }
@media (max-width: 767.98px) { .l2w-staffbar__caret { display: none; } }
.l2w-staffbar .l2w-menu { color: var(--l2w-ink); }
.l2w-staffbar .l2w-menu :focus-visible { outline-color: var(--l2w-action); }
.l2w-staffbar .l2w-account__menu { top: calc(100% + 8px); }
.l2w-staffbar__user { display: inline-flex; align-items: center; gap: var(--l2w-space-2); min-height: 32px; padding: 0 6px 0 2px; border-radius: var(--l2w-radius-control); }
.l2w-staffbar__user:hover { background: rgb(252 249 243 / .12); }
.l2w-staffbar__user .l2w-avatar { width: 26px; height: 26px; background: var(--l2w-sky); color: var(--l2w-ink); font-size: var(--l2w-text-12); }
.l2w-staffbar__user-name { max-width: 12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.l2w-staffbar .l2w-chip { background: rgb(252 249 243 / .14); color: var(--l2w-text-on-ink); }
.l2w-menu .l2w-chip { background: var(--l2w-surface-sunken); color: var(--l2w-ink); }
/* Phone (UAT 20 Oct, L2W4-03: on a 393 px iPhone the admin's account menu opened half off the left edge — the admin's extra Search
   button pushed the avatar onto its own row at the LEFT, and the menu, anchored to the avatar's right edge, started at x = -186,
   so "Sign out" and "Change password" could not be reached). The staff bar's menus now open from the bar's right edge, whatever
   row their button is on: fixed under the whole bar (--l2w-staffbar-h, kept current by l2w-responsive.js), never wider than
   the screen, and scrolling inside when the screen is short. (The bell is a Bootstrap dropdown; Popper keeps it on screen.) */
@media (max-width: 767.98px) {
    .l2w-staffbar { --l2w-menu-top: calc(var(--l2w-staffbar-bottom, var(--l2w-staffbar-h, 48px)) + 4px); }
    .l2w-staffbar .l2w-account__menu, .l2w-staffbar .l2w-staffbar__tzlist, .l2w-staffbar .l2w-staffbar__helplist { position: fixed; top: var(--l2w-menu-top); right: var(--l2w-space-2); left: auto;
        min-width: 0; width: min(16rem, calc(100vw - 2 * var(--l2w-space-2))); }
    .l2w-staffbar .l2w-staffbar__tzlist { width: min(18rem, calc(100vw - 2 * var(--l2w-space-2))); overflow-y: auto; }
}
/* ...and the avatar stays on the first row on a phone: below 420 px the two small chevrons go (the clock and the avatar still
   open their menus) and the gaps close up; below 360 px the sidebar button shows its icon only ("Menu" stays its name). */
@media (max-width: 419.98px) {
    .l2w-staffbar__row { column-gap: var(--l2w-space-1); }
    .l2w-staffbar__tz > .l2w-icon:last-child, .l2w-staffbar__user > .l2w-icon { display: none; }
    /* QA 14 Nov 2026: room for the Home icon after the logo (measured at 375 px, admin and evaluator bars): the bar's icon buttons
       close up to 28 px, and the evaluator's Menu button is its icon (its accessible name is still "Menu"), as the admin's are */
    .l2w-staffbar__row { padding-inline: var(--l2w-space-2); }
    .l2w-staffbar__btn { min-width: 28px; padding: 0 4px; }
    .l2w-staffbar__search { padding: 0 5px; }
    .l2w-staffbar__tz, .l2w-staffbar .mat-notif > .nav-link { padding: 0 4px; }
    .l2w-staffbar__navmenu-word { display: none; }
    .l2w-staffbar .l2w-homelink { padding-inline: 2px; }
}
/* 11 Nov 2026: on a phone the word "Menu" ran under the logo for people who also have Pages, Search, the clock, the bell and Help
   in the bar (admins, office roles): below 480 px the icon alone opens the sidebar (its accessible name is still "Menu"). */
@media (max-width: 479.98px) {
    .l2w-staffbar #l2wSidebarToggle::after { content: none; }
    /* and the admin's account menu was pushed off the right edge: the "Pages" button is its icon there (it keeps its name) */
    .l2w-staffbar__row:has(#l2wSidebarToggle) .l2w-staffbar__navmenu-word { display: none; }
}

/* ---------- Staff shell + admin sidebar ---------- */
.l2w-shell { display: flex; flex: 1 1 auto; min-height: 0; }
.l2w-shell__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
/* Staff content width (UAT retest section 5, design.md §9): on very wide screens a page's content stops at 100rem and is
   centred, so forms and lists don't stretch into long lines. Workspaces that need every pixel opt out — the marking
   workspace (.split-view-container), the annotation editor (.annot-standalone / .annot-host) and any page that marks an
   element data-l2w-wide. Laptops are never affected (the rule starts above 1680 px). */
@media (min-width: 1680px) {
    .l2w-shell__main > .container-fluid { width: 100%; max-width: 100rem; margin-inline: auto; }
    .l2w-shell__main > .container-fluid:has(.split-view-container, .annot-standalone, .annot-host, [data-l2w-wide]) { max-width: none; }
}
.l2w-sidebar { flex: none; width: 248px; position: sticky; top: 48px; align-self: flex-start; height: calc(100vh - 48px); overflow-y: auto;
    background: var(--l2w-surface); border-right: 1px solid var(--l2w-border); font-family: var(--l2w-font-sans); font-size: var(--l2w-text-14); padding: var(--l2w-space-2) 0 var(--l2w-space-6); }
.l2w-sidebar ul { list-style: none; margin: 0; padding: 0; }
.l2w-sidebar a { text-decoration: none; }
.l2w-sidebar__group + .l2w-sidebar__group { margin-top: var(--l2w-space-2); }
/* "Issues NOW 8" (owner 20 Nov 2026: "make the main section headings bigger so sections are clearly legible") */
.l2w-sidebar__heading { display: flex; align-items: center; gap: var(--l2w-space-2); margin: 0; padding: 12px 16px 6px; font-size: var(--l2w-text-14); font-weight: var(--l2w-weight-bold);
    letter-spacing: .04em; text-transform: uppercase; color: var(--l2w-ink); }
.l2w-sidebar__heading .l2w-icon { width: 18px; height: 18px; color: var(--l2w-action-strong); }
/* the hide/show toggle at the top (the full menu open, or collapsed to the rail): laptop and up only. "Issues NOW 10" A-1: it is THE one
   control there; the staff bar's Menu button (#l2wSidebarToggle) is the phone and tablet opener only. "Issues NOW 11" #3: one click
   flips the two views. Its icon and words follow <html data-sidebar>, which _Layout sets before the first paint: open shows
   "Collapse the menu", collapsed "Open the menu". */
.l2w-sidebar__pin { display: none; align-items: center; gap: var(--l2w-space-2); width: calc(100% - 16px); margin: 0 8px var(--l2w-space-2); padding: 6px 8px;
    border: 1px dashed var(--l2w-border-strong); border-radius: var(--l2w-radius-control); background: none; color: var(--l2w-text-muted);
    font: var(--l2w-weight-semibold) var(--l2w-text-13)/1.2 var(--l2w-font-sans); cursor: pointer; text-align: left; }
.l2w-sidebar__pin:hover { color: var(--l2w-ink); border-color: var(--l2w-ink); }
html:not([data-sidebar="collapsed"]) .l2w-sidebar__pin .l2w-sidebar__pin-open, html[data-sidebar="collapsed"] .l2w-sidebar__pin .l2w-sidebar__pin-close { display: none; }
@media (min-width: 1024px) {
    .l2w-sidebar__pin { display: flex; }
    .l2w-staffbar .l2w-staffbar__menu--narrow { display: none; }
}
.l2w-sidebar__link { display: flex; align-items: center; gap: 10px; min-height: 32px; margin: 1px 8px; padding: 0 8px; border-radius: var(--l2w-radius-control);
    color: var(--l2w-ink); font-weight: var(--l2w-weight-medium); }
.l2w-sidebar__link:hover { background: var(--l2w-paper-cool); color: var(--l2w-ink); }
/* A link whose feature is switched off on this test site (today: UAT tools) — still listed, marked Off. */
.l2w-sidebar__off { margin-left: var(--l2w-space-2); font-size: var(--l2w-text-12); font-weight: var(--l2w-weight-semibold); color: var(--l2w-text-muted); }
.l2w-sidebar__link[aria-current="page"], .l2w-sidebar__link.is-active { background: var(--l2w-action-tint); color: var(--l2w-action-strong); font-weight: var(--l2w-weight-semibold); }
.l2w-sidebar__link .l2w-icon { color: var(--l2w-text-muted); }
.l2w-sidebar__link[aria-current="page"] .l2w-icon, .l2w-sidebar__link.is-active .l2w-icon { color: var(--l2w-action-strong); }
.l2w-sidebar__children { margin: 0 0 4px 34px !important; border-left: 1px solid var(--l2w-border); }
.l2w-sidebar__children .l2w-sidebar__link { min-height: 28px; margin-left: 4px; font-size: var(--l2w-text-13); }
.l2w-sidebar :focus-visible { outline: var(--l2w-focus-outline); outline-offset: -2px; }
/* Navigation A (11 Nov 2026): a live count beside a link. Grey = a size; --urgent (red) = someone is waiting. Zero is not drawn.
   The label takes the free width so the count sits at the right edge; a small sub-heading splits a long group (Setup). */
.l2w-sidebar__label { flex: 1 1 auto; min-width: 0; }
.l2w-sidebar__count { flex: none; min-width: 22px; padding: 0 7px; border-radius: var(--l2w-radius-pill); background: var(--l2w-surface-sunken); color: var(--l2w-text-muted);
    font-size: var(--l2w-text-12); font-weight: var(--l2w-weight-semibold); line-height: 20px; text-align: center; font-variant-numeric: tabular-nums; }
.l2w-sidebar__count--urgent { background: var(--l2w-pill-problem-bg); color: var(--l2w-pill-problem-fg); }
.l2w-sidebar__section { margin: var(--l2w-space-2) 0 2px; padding: 0 16px 0 44px; font-size: var(--l2w-text-12); font-weight: var(--l2w-weight-semibold); color: var(--l2w-text-muted); }
.l2w-sidebar__section:first-child { margin-top: 2px; }
/* UAT 14 Oct (L2W2-35): a long (admin) sidebar folds its groups — the heading is a button; a folded group hides its links. */
.l2w-sidebar__fold { display: flex; align-items: center; gap: var(--l2w-space-2); width: 100%; margin: 0; padding: 0; border: 0; background: none;
    font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; text-align: left; cursor: pointer; }
.l2w-sidebar__fold:hover { color: var(--l2w-ink); }
.l2w-sidebar__chevron { margin-left: auto; transition: transform var(--l2w-duration) var(--l2w-ease-out); }
.l2w-sidebar__group[data-collapsed] .l2w-sidebar__chevron { transform: rotate(-90deg); }
.l2w-sidebar__group[data-collapsed] > ul { display: none; }

/* Collapsed (laptop+), "Issues NOW 8" (owner 20 Nov 2026: "the collapsed view should be at least twice as big, very legible big icons that
   comfortably fill a 1080p screen for all the main sections (Today in a box, then Families, Papers, Evaluators, Clients, Courses, Insight and
   Setup). This view should be the default, with the expanded view on hover; the expanded view can be pinned on click at the top"): a 112px
   rail of one big tile per section (icon + a one-line label).
   "Solve these issues NOW 11" #3 (owner 23 Nov 2026): TWO views only, both IN THE FLOW, so the page and its footer always sit beside
   the sidebar and nothing ever floats over them (the NOW 10 overlay, hover opening and scrim are gone):
     open      (no data-sidebar)          the 248 px menu;
     collapsed (data-sidebar="collapsed") the 112 px rail of section tiles.
   The toggle at the top flips them (one click); a single click on a tile opens its section's first link (menu stays collapsed); a
   double-click (Enter / Space for the keyboard) opens the menu at that section (sidebar.js). On the rail the links are not drawn (display: none), so Tab goes toggle → tiles →
   page; the tiles are one roving tab stop (arrow keys). */
@media (min-width: 1024px) {
    /* the one size change between the two views: it slides both ways and the page beside it follows (no margin to keep in step) */
    .l2w-sidebar { transition: width var(--l2w-duration) var(--l2w-ease-out); }
    html[data-sidebar="collapsed"] .l2w-sidebar { width: 112px; }
    /* a section a tile has just opened is marked for a moment (sidebar.js data-arrived), so the eye finds it in the wider menu */
    .l2w-sidebar__fold { transition: background-color var(--l2w-duration-slow) var(--l2w-ease-out), color var(--l2w-duration-slow) var(--l2w-ease-out); }
    html:not([data-sidebar="collapsed"]) .l2w-sidebar__group[data-arrived] .l2w-sidebar__fold { margin: -4px -8px; padding: 4px 8px; width: calc(100% + 16px);
        border-radius: var(--l2w-radius-control); background: var(--l2w-action-tint); color: var(--l2w-action-strong); }
    /* the rail: the tiles only; each tile is its heading's fold button, so the whole tile is one target */
    html[data-sidebar="collapsed"] .l2w-sidebar .l2w-sidebar__group > ul { display: none; }
    html[data-sidebar="collapsed"] .l2w-sidebar .l2w-sidebar__section, html[data-sidebar="collapsed"] .l2w-sidebar .l2w-supnav__note { display: none; }
    html[data-sidebar="collapsed"] .l2w-sidebar .l2w-sidebar__pin { justify-content: center; padding: 8px 0; }
    html[data-sidebar="collapsed"] .l2w-sidebar .l2w-sidebar__pin-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }   /* still its name */
    html[data-sidebar="collapsed"] .l2w-sidebar .l2w-sidebar__heading { margin: 4px 8px; padding: 0; border: 1px solid transparent; border-radius: var(--l2w-radius-card); text-transform: none; letter-spacing: 0;
        font: var(--l2w-weight-semibold) var(--l2w-text-13)/1.2 var(--l2w-font-sans); color: var(--l2w-ink); }
    html[data-sidebar="collapsed"] .l2w-sidebar .l2w-sidebar__heading:hover { border-color: var(--l2w-border-strong); }
    html[data-sidebar="collapsed"] .l2w-sidebar .l2w-sidebar__fold { flex-direction: column; justify-content: center; gap: 6px; min-height: 84px; padding: 10px 4px; border-radius: inherit; text-align: center;
        user-select: none; }   /* a double-click never selects the tile's words */
    html[data-sidebar="collapsed"] .l2w-sidebar .l2w-sidebar__heading .l2w-icon { width: 34px; height: 34px; }
    html[data-sidebar="collapsed"] .l2w-sidebar .l2w-sidebar__heading span { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    html[data-sidebar="collapsed"] .l2w-sidebar .l2w-sidebar__chevron { display: none; }
    /* Today, in a box; the section of the page you are on, tinted */
    html[data-sidebar="collapsed"] .l2w-sidebar .l2w-sidebar__group[data-group="today"] .l2w-sidebar__heading { border: 2px solid var(--l2w-action); background: var(--l2w-surface); }
    html[data-sidebar="collapsed"] .l2w-sidebar .l2w-sidebar__group[data-current="true"] .l2w-sidebar__heading { background: var(--l2w-action-tint); color: var(--l2w-action-strong); }
}
/* Below laptop: off-canvas, opened by the toggle */
@media (max-width: 1023.98px) {
    .l2w-sidebar { position: fixed; left: 0; top: 48px; z-index: var(--l2w-z-sidebar); transform: translateX(-100%); visibility: hidden;
        transition: transform var(--l2w-duration) var(--l2w-ease-out), visibility 0s linear var(--l2w-duration); box-shadow: var(--l2w-shadow-float); }
    html[data-sidebar-open="true"] .l2w-sidebar { transform: none; visibility: visible; transition-delay: 0s; }
}

/* ---------- Command palette ---------- */
.l2w-palette { width: min(40rem, calc(100vw - 32px)); max-width: none; margin-top: 10vh; padding: 0; border: 1px solid var(--l2w-border); border-radius: var(--l2w-radius-card);
    background: var(--l2w-surface); color: var(--l2w-ink); box-shadow: var(--l2w-shadow-float); font-family: var(--l2w-font-sans); font-size: var(--l2w-text-14); }
.l2w-palette::backdrop { background: var(--l2w-scrim); }
.l2w-palette__search { display: flex; align-items: center; gap: var(--l2w-space-2); padding: 0 var(--l2w-space-4); border-bottom: 1px solid var(--l2w-border); }
.l2w-palette__search input { flex: 1; min-height: 52px; border: 0; outline: none; background: transparent; color: var(--l2w-ink); font: var(--l2w-weight-medium) var(--l2w-text-16)/1.4 var(--l2w-font-sans); }
.l2w-palette__search kbd { padding: 1px 6px; border: 1px solid var(--l2w-border-strong); border-radius: 4px; background: var(--l2w-paper-cool); color: var(--l2w-text-muted);
    font: var(--l2w-weight-semibold) var(--l2w-text-12)/1.4 var(--l2w-font-sans); box-shadow: none; }
.l2w-palette__results { max-height: min(60vh, 28rem); overflow-y: auto; margin: 0; padding: var(--l2w-space-2); list-style: none; }
.l2w-palette__section { padding: 10px 10px 4px; font-size: var(--l2w-text-12); font-weight: var(--l2w-weight-bold); letter-spacing: .06em; text-transform: uppercase; color: var(--l2w-text-muted); }
.l2w-palette__item { display: flex; align-items: center; gap: var(--l2w-space-3); padding: 8px 10px; border-radius: var(--l2w-radius-control); cursor: pointer; }
.l2w-palette__item[aria-selected="true"] { background: var(--l2w-action-tint); }
.l2w-palette__item .l2w-icon { color: var(--l2w-text-muted); }
.l2w-palette__title { font-weight: var(--l2w-weight-semibold); }
.l2w-palette__sub { color: var(--l2w-text-muted); font-size: var(--l2w-text-13); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.l2w-palette__text { display: flex; flex-direction: column; min-width: 0; }
.l2w-palette__hint { margin-left: auto; color: var(--l2w-text-muted); font-size: var(--l2w-text-12); white-space: nowrap; }
.l2w-palette__empty { padding: var(--l2w-space-6) var(--l2w-space-4); color: var(--l2w-text-muted); text-align: center; }
.l2w-palette__foot { display: flex; gap: var(--l2w-space-4); padding: 8px var(--l2w-space-4); border-top: 1px solid var(--l2w-border); background: var(--l2w-paper-cool);
    color: var(--l2w-text-muted); font-size: var(--l2w-text-12); border-radius: 0 0 var(--l2w-radius-card) var(--l2w-radius-card); }

/* ---------- Sign-in, registration and account pages (Reading density on the website layout) ---------- */
.l2w-auth { padding: var(--l2w-space-8) var(--l2w-gutter) var(--l2w-space-12); font-family: var(--l2w-font-sans); color: var(--l2w-ink); }
@media (min-width: 768px) { .l2w-auth { padding-top: var(--l2w-space-12); } }
.l2w-auth a:not(.l2w-btn) { color: var(--l2w-action-strong); text-decoration: underline; text-underline-offset: 3px; }
.l2w-auth .l2w-stack > .l2w-notice, .l2w-auth .l2w-card > .l2w-notice { margin-bottom: var(--l2w-space-4); }
.l2w-card--auth-wide { max-width: 560px; }
.l2w-auth__title { margin: 0 0 var(--l2w-space-2); font: var(--l2w-weight-semibold) var(--l2w-text-30)/1.2 var(--l2w-font-display); letter-spacing: -.01em; }
.l2w-auth__lead { margin: 0 0 var(--l2w-space-6); color: var(--l2w-ink-soft); }
.l2w-auth__alt { margin: var(--l2w-space-6) 0 0; padding-top: var(--l2w-space-4); border-top: 1px solid var(--l2w-border); text-align: center; color: var(--l2w-ink-soft); }
.l2w-auth__label-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--l2w-space-2); }
.l2w-auth__label-row a { font-size: var(--l2w-text-14); }
.l2w-auth__next { margin-top: var(--l2w-space-4); }
/* Error summary at the top of a form (Register, UAT L2W-35): each line links to its field */
.l2w-errsum:focus { outline: 2px solid var(--l2w-action); outline-offset: 2px; }
.l2w-errsum__title { margin: 0 0 var(--l2w-space-1); font-weight: var(--l2w-weight-semibold); }
.l2w-errsum__list { margin: 0; padding-left: 1.1rem; list-style: disc; }
.l2w-errsum__list a { display: inline-block; min-height: var(--l2w-target-min); padding: 10px 0; }
.l2w-field-group > .l2w-error:empty { display: none; }
.l2w-fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.l2w-fieldset > legend { margin-bottom: var(--l2w-space-3); padding: 0; font: var(--l2w-weight-semibold) var(--l2w-text-17)/1.3 var(--l2w-font-sans); }
.l2w-form-grid { display: grid; gap: var(--l2w-space-4); }
@media (min-width: 576px) { .l2w-form-grid { grid-template-columns: 1fr 1fr; } .l2w-form-grid__full { grid-column: 1 / -1; } }

/* ---------- Checkout (Pages/Site/Checkout, website layout, Reading density) ----------
   The site layout loads no Bootstrap, so these pages are built from l2w- components only, inside .l2w-auth (gutters and
   link style). Tailwind's preflight zeroes margins and list/table styles: every gap here is explicit. */
.l2w-checkout { max-width: 46rem; margin: 0 auto; gap: var(--l2w-space-6); }
.l2w-checkout--narrow { max-width: 34rem; }
.l2w-checkout .l2w-auth__title { margin: 0; }
.l2w-checkout .l2w-card__title { margin: 0; }
.l2w-checkout .l2w-card { min-width: 0; }
.l2w-checkout__product { display: flex; flex-wrap: wrap; align-items: center; gap: var(--l2w-space-2); font-weight: var(--l2w-weight-semibold); }
/* An inline GET form: one field and its button on one line (they wrap on a phone) */
.l2w-checkout__row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--l2w-space-2); }
.l2w-checkout__row > .l2w-field-group { flex: 1 1 12rem; max-width: 20rem; }
.l2w-checkout__narrow { max-width: 20rem; }
/* Order lines: name + what it buys on the left, the amount right-aligned and tabular. Only the amounts are tabular: on the whole
   table the course name's "11+" read "1 1+" (each 1 took a full digit's width — UAT 14 Oct, L2W2-34). */
.l2w-checkout__lines { width: 100%; border-collapse: collapse; }
.l2w-checkout__lines td { padding: var(--l2w-space-3) 0; border-bottom: 1px solid var(--l2w-border); vertical-align: top; }
.l2w-checkout__lines td + td { padding-left: var(--l2w-space-4); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.l2w-checkout__lines tr:first-child td { border-top: 1px solid var(--l2w-border); }
.l2w-checkout__lines .l2w-checkout__discount td { color: var(--l2w-success); }
.l2w-checkout__lines .l2w-checkout__total td { border-bottom: 0; border-top: 2px solid var(--l2w-ink); font-size: var(--l2w-text-17); font-weight: var(--l2w-weight-bold); }
.l2w-checkout__meta { display: block; margin-top: 2px; font-size: var(--l2w-text-14); color: var(--l2w-text-muted); }
.l2w-checkout__section { padding-top: var(--l2w-space-6); border-top: 1px solid var(--l2w-border); }
/* "Who is this for?": each child is a whole-row radio target */
.l2w-checkout__choices { display: grid; gap: var(--l2w-space-2); }
.l2w-checkout__choice { display: flex; align-items: center; gap: var(--l2w-space-3); min-height: var(--l2w-target-min); padding: 10px var(--l2w-space-4);
    border: 1px solid var(--l2w-border-strong); border-radius: var(--l2w-radius-control); background: var(--l2w-surface); font-weight: var(--l2w-weight-semibold); cursor: pointer; }
.l2w-checkout__choice:hover { background: var(--l2w-paper-deep); }
.l2w-checkout__choice:has(input:checked) { border-color: var(--l2w-action); background: var(--l2w-action-tint); }
.l2w-checkout__choice:has(input:focus-visible) { outline: var(--l2w-focus-outline); outline-offset: 2px; }
.l2w-checkout__choice input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--l2w-action); }
/* Payment choice: one primary (card), the other a plain button; side by side from tablet width */
.l2w-checkout__pay { display: grid; gap: var(--l2w-space-2); }
@media (min-width: 576px) { .l2w-checkout__pay { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); } }
.l2w-checkout__amount { margin-top: var(--l2w-space-1); font-size: var(--l2w-text-17); font-weight: var(--l2w-weight-semibold); font-variant-numeric: tabular-nums; }
.l2w-checkout__secure { display: flex; align-items: flex-start; gap: var(--l2w-space-2); font-size: var(--l2w-text-14); color: var(--l2w-text-muted); }
.l2w-checkout__secure .l2w-icon { margin-top: .2em; }
/* Result pages (Complete, Cancelled): a round mark above the title */
.l2w-checkout__mark { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--l2w-info-tint); color: var(--l2w-info); }
.l2w-checkout__mark--success { background: var(--l2w-success-tint); color: var(--l2w-success); }
.l2w-checkout__mark--warning { background: var(--l2w-warning-tint); color: var(--l2w-warning); }
.l2w-checkout__list { display: grid; margin: 0; padding: 0; list-style: none; border: 1px solid var(--l2w-border); border-radius: var(--l2w-radius-card); background: var(--l2w-surface); }
.l2w-checkout__list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--l2w-space-1) var(--l2w-space-4); padding: var(--l2w-space-3) var(--l2w-space-4); }
.l2w-checkout__list li + li { border-top: 1px solid var(--l2w-border); }
.l2w-checkout__list li > span + span { color: var(--l2w-text-muted); }

/* Test card page (FakePay): a tidy card form */
.l2w-paycard__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--l2w-space-2); }
.l2w-paycard__items { margin: 0; padding: 0; list-style: none; color: var(--l2w-ink-soft); font-size: var(--l2w-text-14); }
.l2w-paycard__pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--l2w-space-4); }
.l2w-paycard__icon-field { position: relative; }
.l2w-paycard__icon-field > .l2w-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--l2w-text-muted); pointer-events: none; }
.l2w-paycard__icon-field > .l2w-field { padding-left: 42px; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.l2w-paycard__actions { display: flex; flex-wrap: wrap; gap: var(--l2w-space-2); }
.l2w-paycard__actions > .l2w-btn--primary { flex: 1 1 12rem; }
.l2w-paycard__tests > summary { display: list-item; width: fit-content; padding-block: 10px; cursor: pointer; font-weight: var(--l2w-weight-semibold); color: var(--l2w-action-strong); }
.l2w-paycard__tests > .l2w-table-wrap { margin: var(--l2w-space-1) 0 var(--l2w-space-2); }
.l2w-paycard__tests > summary:focus-visible { outline: var(--l2w-focus-outline); outline-offset: 2px; border-radius: 2px; }
.l2w-paycard__tests code { white-space: nowrap; font-size: var(--l2w-text-14); }
.l2w-paycard__tests .l2w-table td { height: auto; padding-block: var(--l2w-space-2); }

/* Test PayPal page (FakePayPal): looks like a wallet approve screen (centred white panel, wordmark, full-width rounded
   buttons) so testers recognise the step, while the TEST chip and the warning notice say it is not PayPal. The rounded
   buttons are this stand-in's look only (design.md §10, test-payment stand-ins); product buttons stay radius 6. */
.l2w-fakepp-page { background: var(--l2w-paper-cool); }
.l2w-fakepp { padding: var(--l2w-space-8) var(--l2w-space-6); background: var(--l2w-surface); border: 1px solid var(--l2w-border);
    border-radius: var(--l2w-radius-card); text-align: center; }
@media (max-width: 575.98px) { .l2w-fakepp { padding: var(--l2w-space-6) var(--l2w-space-4); } }
.l2w-fakepp__brand { display: inline-flex; align-items: center; gap: var(--l2w-space-2); font: italic var(--l2w-weight-bold) var(--l2w-text-30)/1 var(--l2w-font-sans); letter-spacing: -.02em; color: var(--l2w-ink); }
.l2w-fakepp__brand b { color: var(--l2w-action); font-weight: inherit; }
.l2w-fakepp__test { font-style: normal; letter-spacing: .06em; background: var(--l2w-warning-tint); color: var(--l2w-warning); }
.l2w-fakepp__summary { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--l2w-space-1) var(--l2w-space-3); margin-top: var(--l2w-space-6);
    padding: var(--l2w-space-3) var(--l2w-space-4); border-radius: var(--l2w-radius-control); background: var(--l2w-paper-cool); text-align: left; }
.l2w-fakepp__summary ul { margin: 0; padding: 0; list-style: none; color: var(--l2w-ink-soft); font-size: var(--l2w-text-14); }
.l2w-fakepp__total { font-size: var(--l2w-text-20); font-weight: var(--l2w-weight-bold); font-variant-numeric: tabular-nums; color: var(--l2w-ink); }
.l2w-fakepp__title { margin: var(--l2w-space-6) 0 var(--l2w-space-4); font: var(--l2w-weight-semibold) var(--l2w-text-24)/1.25 var(--l2w-font-sans); color: var(--l2w-ink); }
.l2w-fakepp form { display: grid; gap: var(--l2w-space-3); text-align: left; }
.l2w-fakepp__who { margin: 0 0 var(--l2w-space-1); font-size: var(--l2w-text-15); }
.l2w-fakepp__fund { margin: 0 0 var(--l2w-space-3); padding: var(--l2w-space-3) var(--l2w-space-4); border: 1px solid var(--l2w-border); border-radius: var(--l2w-radius-control);
    font-size: var(--l2w-text-14); color: var(--l2w-ink-soft); text-align: left; }
.l2w-fakepp__btn { display: flex; width: 100%; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--l2w-space-6); border: 2px solid transparent;
    border-radius: var(--l2w-radius-pill); font: var(--l2w-weight-bold) var(--l2w-text-16)/1.2 var(--l2w-font-sans); cursor: pointer; text-align: center;
    background: var(--l2w-action); color: var(--l2w-on-action); }
.l2w-fakepp__btn:hover { background: var(--l2w-action-strong); }
.l2w-fakepp__btn:focus-visible { outline: var(--l2w-focus-outline); outline-offset: 2px; }
.l2w-fakepp__btn--outline { background: var(--l2w-surface); border-color: var(--l2w-ink); color: var(--l2w-ink); }
.l2w-fakepp__btn--outline:hover { background: var(--l2w-paper-cool); }
.l2w-fakepp__btn--danger { background: var(--l2w-surface); border-color: var(--l2w-danger); color: var(--l2w-danger); }
.l2w-fakepp__btn--danger:hover { background: var(--l2w-danger-tint); }
.l2w-fakepp__cancel { display: inline-flex; align-items: center; min-height: var(--l2w-target-min); margin-top: var(--l2w-space-3); font-size: var(--l2w-text-14); font-weight: var(--l2w-weight-semibold); }

/* "TEST PAYMENTS" banner (Shared/_TestPaymentsBanner): a strip under the site header, or a notice at the top of a portal page */
.l2w-testpay { justify-content: center; align-items: center; margin-bottom: var(--l2w-space-4); font-weight: var(--l2w-weight-semibold); text-align: center; }
.l2w-testpay > .l2w-icon { color: var(--l2w-warning); }
.l2w-testpay--strip { margin: 0; padding: var(--l2w-space-2) var(--l2w-gutter); border: 0; border-bottom: 1px solid var(--l2w-warning); border-radius: 0; font-size: var(--l2w-text-15); }
/* Phone (UAT 14 Oct, L2W2-17): one short line ("Sandbox payments – no real money"). Exactly one of the two lines is shown at each
   width and the other is display:none, so screen readers read only the one on screen (UAT 19 Oct, L2W3-29). */
.l2w-testpay__short { display: none; }
@media (max-width: 599.98px) {
    .l2w-testpay { padding-block: var(--l2w-space-2); font-size: var(--l2w-text-14); }
    .l2w-testpay__short { display: inline; }
    .l2w-testpay__long { display: none; }
}

/* Preview banner (Shared/_PreviewBanner, docs/golive/Preview.md): a full-width strip above the header of every layout while
   Preview:Enabled is on. Never dismissable; info colours so it reads as "for your information", not as an error. */
.l2w-preview { display: flex; justify-content: center; align-items: center; gap: var(--l2w-space-2); padding: var(--l2w-space-2) var(--l2w-gutter);
    border-bottom: 1px solid var(--l2w-info); background: var(--l2w-info-tint); color: var(--l2w-ink); font-size: var(--l2w-text-15);
    font-weight: var(--l2w-weight-semibold); line-height: 1.4; text-align: center; }
.l2w-preview p { margin: 0; }
.l2w-preview > .l2w-icon { flex: none; color: var(--l2w-info); }
.l2w-preview a { color: var(--l2w-action-strong); text-decoration: underline; }
/* Support session banner (Shared/_SupportSessionBanner — "Log in as this person"): a full-width strip above the header of every
   layout while an admin is logged in as someone. Never dismissable. Warning tint while read-only, danger tint while acting for them;
   the success tint is the one-time "back in your own account" notice. */
.l2w-support-session { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--l2w-space-2) var(--l2w-space-3);
    padding: var(--l2w-space-2) var(--l2w-gutter); border-bottom: 2px solid var(--l2w-warning); background: var(--l2w-warning-tint);
    color: var(--l2w-ink); font-size: var(--l2w-text-15); line-height: 1.4; text-align: center; }
.l2w-support-session p { margin: 0; }
.l2w-support-session > .l2w-icon { flex: none; color: var(--l2w-warning); }
.l2w-support-session--acting { border-bottom-color: var(--l2w-danger); background: var(--l2w-danger-tint); }
.l2w-support-session--acting > .l2w-icon { color: var(--l2w-danger); }
.l2w-support-session--ended { border-bottom-color: var(--l2w-success); background: var(--l2w-success-tint); }
.l2w-support-session--ended > .l2w-icon { color: var(--l2w-success); }
.l2w-support-session__actions { display: flex; flex-wrap: wrap; gap: var(--l2w-space-2); align-items: center; }
.l2w-support-session__actions form { margin: 0; }
.l2w-preview-note { margin: var(--l2w-space-2) 0 0; color: var(--l2w-text-muted); font-size: var(--l2w-text-14); }

/* Staff search results page (/Master/Search) */
.l2w-search-list { list-style: none; margin: 0; padding: var(--l2w-space-2); }
.l2w-search-list a { display: flex; align-items: center; gap: var(--l2w-space-3); min-height: var(--l2w-row-height); padding: 4px 10px; border-radius: var(--l2w-radius-control);
    color: var(--l2w-ink); text-decoration: none; }
.l2w-search-list a:hover, .l2w-search-list a:focus-visible { background: var(--l2w-action-tint); }
.l2w-search-list .l2w-icon { color: var(--l2w-text-muted); }

/* ---------- Framed (bug 2026-10-06, preview modal 404) ----------
   An app page loaded inside a frame shows its message only: no header, sidebar, toasts, footer or account links, so nobody
   can navigate the whole app inside a preview. Shared/_FrameGuard sets html[data-l2w-framed] (Sec-Fetch-Dest or
   window.self !== window.top); the layouts already leave the chrome out on the server when the browser says "iframe". */
html[data-l2w-framed] .l2w-skip, html[data-l2w-framed] .portal-skip, html[data-l2w-framed] .site-skip,
html[data-l2w-framed] .l2w-staffbar, html[data-l2w-framed] .l2w-sidebar, html[data-l2w-framed] .l2w-header,
html[data-l2w-framed] .l2w-toast-host, html[data-l2w-framed] [data-l2w-chrome] { display: none !important; }

/* Programme Studio J (2026-10-07): the mock bundle on /Checkout — remove (×) per paper, "Add more papers", the bundle subtotal and the
   promo code behind a "Have a promo code?" disclosure under the totals. */
.l2w-checkout__remove { display: inline-grid; place-items: center; width: var(--l2w-target-min); height: var(--l2w-target-min); margin: calc(-1 * var(--l2w-space-3)) calc(-1 * var(--l2w-space-2)) calc(-1 * var(--l2w-space-3)) var(--l2w-space-1); vertical-align: middle; border-radius: var(--l2w-radius-control); color: var(--l2w-text-muted); }
.l2w-checkout__remove:hover { background: var(--l2w-paper-deep); color: var(--l2w-danger); }
.l2w-checkout__remove:focus-visible { outline: var(--l2w-focus-outline); outline-offset: 2px; }
.l2w-checkout__lines .l2w-checkout__subtotal td { font-weight: var(--l2w-weight-semibold); }
.l2w-checkout__saving { color: var(--l2w-success); }
.l2w-checkout__more { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--l2w-space-1) var(--l2w-space-4); margin: 0; }
.l2w-checkout__more a { display: inline-flex; align-items: center; gap: var(--l2w-space-1); min-height: var(--l2w-target-min); font-weight: var(--l2w-weight-semibold); }
.l2w-checkout__more .l2w-checkout__meta { margin: 0; }
.l2w-checkout__promo { border-top: 1px solid var(--l2w-border); padding-top: var(--l2w-space-3); }
.l2w-checkout__promo > summary { display: inline-flex; align-items: center; min-height: var(--l2w-target-min); cursor: pointer; font-weight: var(--l2w-weight-semibold); color: var(--l2w-action-strong); }
.l2w-checkout__promo[open] > summary { margin-bottom: var(--l2w-space-3); }
.l2w-checkout__promo > .l2w-notice { margin-bottom: var(--l2w-space-3); }
/* S-D7 (14 Nov 2026, mockup 01 A / 03): a monthly course's "How payments work" — today and the next payment days on a small timeline,
   then one sentence. A quiet panel with ink text (design.md §3: no blue on blue); only a monthly course has it. */
.l2w-checkout__plan { padding: var(--l2w-space-3) var(--l2w-space-4); border: 1px solid var(--l2w-border); border-radius: var(--l2w-radius-card);
    background: var(--l2w-surface-sunken); color: var(--l2w-ink); font-size: var(--l2w-text-14); }
.l2w-checkout__plan-title { display: flex; align-items: center; gap: var(--l2w-space-2); margin: 0 0 var(--l2w-space-3); font-weight: var(--l2w-weight-semibold); }
.l2w-checkout__timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--l2w-space-2); margin: 0 0 var(--l2w-space-3); padding: 0; list-style: none; text-align: center; }
.l2w-checkout__timeline li { display: flex; flex-direction: column; align-items: center; gap: 2px; font-variant-numeric: tabular-nums; }
.l2w-checkout__timeline li::before { content: ""; width: 12px; height: 12px; margin-bottom: var(--l2w-space-1); border: 2px solid var(--l2w-border-strong); border-radius: 50%; background: var(--l2w-surface); }
.l2w-checkout__timeline li.is-today::before { border-color: var(--l2w-action); background: var(--l2w-action); }
.l2w-checkout__timeline-day { font-weight: var(--l2w-weight-semibold); }
.l2w-checkout__timeline li.is-more .l2w-checkout__timeline-day { font-weight: var(--l2w-weight-regular); color: var(--l2w-text-muted); }
.l2w-checkout__timeline-amount { color: var(--l2w-text-muted); }
.l2w-checkout__plan-words { margin: 0; }
/* 2026-10-15: the WriteAssist add-on box (legacy course page "WriteAssist · Recommended"), on a monthly course's page and
   on /Checkout. One tick box, its words and the monthly price; ticked = the action tint, like a chosen child. */
.l2w-addon { display: flex; align-items: flex-start; gap: var(--l2w-space-3); margin: 0; padding: var(--l2w-space-3) var(--l2w-space-4);
    border: 1px solid var(--l2w-border); border-radius: var(--l2w-radius-card); background: var(--l2w-surface); cursor: pointer; }
.l2w-addon:hover { background: var(--l2w-paper-deep); }
.l2w-addon:has(input:checked) { border-color: var(--l2w-action); background: var(--l2w-action-tint); }
.l2w-addon:has(input:focus-visible) { outline: var(--l2w-focus-outline); outline-offset: 2px; }
.l2w-addon input[type="checkbox"] { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--l2w-action); }
.l2w-addon__body { display: grid; gap: 2px; min-width: 0; }
.l2w-addon__title { display: flex; flex-wrap: wrap; align-items: center; gap: var(--l2w-space-2); font-weight: var(--l2w-weight-semibold); color: var(--l2w-ink); }
.l2w-addon__chip { background: var(--l2w-success-tint); color: var(--l2w-success); font-size: var(--l2w-text-12); }
.l2w-addon__text { font-size: var(--l2w-text-14); color: var(--l2w-ink-soft); }
.l2w-addon__price { font-size: var(--l2w-text-14); font-weight: var(--l2w-weight-semibold); color: var(--l2w-ink); font-variant-numeric: tabular-nums; }
.l2w-addon-total { display: flex; justify-content: space-between; gap: var(--l2w-space-4); margin: 0; font-weight: var(--l2w-weight-semibold);
    font-variant-numeric: tabular-nums; color: var(--l2w-ink); }

/* ---------- Retest 31 Oct (XP-02): the release id at the foot of every Help menu and guide (Shared/_ReleaseLine) ---------- */
.l2w-release { margin: 0; padding: var(--l2w-space-2) var(--l2w-space-3) var(--l2w-space-1); border-top: 1px solid var(--l2w-border);
    font: var(--l2w-text-13)/1.4 var(--l2w-font-sans); color: var(--l2w-text-muted); font-variant-numeric: tabular-nums; user-select: all; }
.l2w-release--sheet { border-top: 0; padding: var(--l2w-space-1) var(--l2w-space-4) var(--l2w-space-2); }
.l2w-release--page { margin-top: var(--l2w-space-6); padding: var(--l2w-space-3) 0 0; }

/* Nov 14 alignment pass (A-06): on the narrowest phones the staff bar's last button (the account) ran 5-38 px off the screen
   (320-421 px). Below 480 px the bar's gaps and the logo shrink so every button fits; nothing changes from 480 px. */
@media (max-width: 479.98px) {
    .l2w-staffbar__row { column-gap: 2px; padding-inline: var(--l2w-space-2); }
    .l2w-staffbar__row > * { min-width: 0; }
    .l2w-staffbar__logo { flex: 0 1 auto; overflow: hidden; }
    .l2w-staffbar__logo img { height: 18px; }
    .l2w-staffbar__btn, .l2w-staffbar__tz, .l2w-staffbar .mat-notif > .nav-link { padding-inline: 6px; }
}

/* ---------- 17 Nov 2026 (owner): the client portal's search in the header (Shared/_ClientSearch, js/client-search.js) ----------
   Between the logo and Help, for organisation administrators and reviewers. Desktop: a field in the middle of the bar with its
   results in a dropdown under it. Phones (below 768 px, the rules at the end): a search icon that opens the field across the bar. */
.l2w-csearch { position: relative; flex: 0 1 28rem; min-width: 8rem; margin-left: auto; }
.l2w-csearch__open, .l2w-csearch__close { display: none; }
.l2w-csearch__form { position: relative; display: flex; align-items: center; margin: 0; }
.l2w-csearch__icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--l2w-text-muted); pointer-events: none; }
.l2w-csearch__input { width: 100%; min-width: 0; min-height: 44px; padding: 0 40px 0 38px; border: 1px solid var(--l2w-border-strong);
    border-radius: var(--l2w-radius-control); background: var(--l2w-surface); color: var(--l2w-ink); font: var(--l2w-weight-medium) var(--l2w-text-14)/1.4 var(--l2w-font-sans); }
.l2w-csearch__input::placeholder { color: var(--l2w-text-muted); }
.l2w-csearch__input:focus { outline: var(--l2w-focus-outline); outline-offset: 1px; border-color: var(--l2w-action); }
.l2w-csearch__input::-webkit-search-cancel-button { margin-right: 4px; }
.l2w-csearch__kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); padding: 0 6px; border: 1px solid var(--l2w-border-strong);
    border-radius: 4px; background: var(--l2w-paper-cool); color: var(--l2w-text-muted); font: var(--l2w-text-12)/1.6 var(--l2w-font-sans); pointer-events: none; }
.l2w-csearch__input:focus ~ .l2w-csearch__kbd, .l2w-csearch__input:not(:placeholder-shown) ~ .l2w-csearch__kbd { display: none; }
.l2w-csearch__list { position: absolute; top: calc(100% + 6px); left: 0; z-index: var(--l2w-z-menu); width: max(100%, min(32rem, calc(100vw - 32px)));
    max-height: min(70vh, 32rem); overflow-y: auto; margin: 0; padding: var(--l2w-space-2); list-style: none;
    border: 1px solid var(--l2w-border); border-radius: var(--l2w-radius-card); background: var(--l2w-surface); box-shadow: var(--l2w-shadow-float); }
.l2w-csearch__group { margin: 0; padding: 0; list-style: none; }
.l2w-csearch__section { padding: 10px 10px 4px; font-size: var(--l2w-text-12); font-weight: var(--l2w-weight-bold); letter-spacing: .06em;
    text-transform: uppercase; color: var(--l2w-text-muted); }
.l2w-csearch__item { display: flex; align-items: center; gap: var(--l2w-space-3); min-height: 44px; padding: 6px 10px; border-radius: var(--l2w-radius-control); cursor: pointer; }
.l2w-csearch__item[aria-selected="true"] { background: var(--l2w-action-tint); }
.l2w-csearch__item > .l2w-icon { flex: none; color: var(--l2w-text-muted); }
.l2w-csearch__text { display: flex; flex-direction: column; min-width: 0; }
.l2w-csearch__title { font-weight: var(--l2w-weight-semibold); color: var(--l2w-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.l2w-csearch__title mark { padding: 0; background: var(--l2w-warning-tint); color: inherit; }
.l2w-csearch__sub { color: var(--l2w-text-muted); font-size: var(--l2w-text-13); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.l2w-csearch__item--more .l2w-csearch__title { font-weight: var(--l2w-weight-medium); color: var(--l2w-action-strong); }
.l2w-csearch__empty { padding: var(--l2w-space-4); color: var(--l2w-text-muted); text-align: center; }
@media (min-width: 768px) and (max-width: 1023.98px) { .l2w-csearch__kbd { display: none; } .l2w-csearch__input { padding-right: 12px; } }
@media (max-width: 767.98px) {
    .l2w-csearch { position: static; flex: none; min-width: 0; margin-left: auto; }
    .l2w-csearch__open { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--l2w-radius-control);
        background: transparent; color: var(--l2w-ink); }
    .l2w-csearch__open:hover { background: var(--l2w-paper-deep); }
    .l2w-csearch__box { display: none; }
    .l2w-csearch.is-open .l2w-csearch__box { display: block; position: absolute; left: 0; right: 0; top: 0; bottom: 0; z-index: var(--l2w-z-menu);
        padding: 6px var(--l2w-space-3); background: rgb(252 249 243); }
    .l2w-csearch.is-open .l2w-csearch__form { height: 100%; gap: var(--l2w-space-2); }
    .l2w-csearch__icon { left: 12px; }
    .l2w-csearch__input { font-size: var(--l2w-text-16); }   /* 16 px: no zoom on focus (iOS) */
    .l2w-csearch__kbd { display: none; }
    .l2w-csearch.is-open .l2w-csearch__close { display: inline-grid; flex: none; place-items: center; width: 44px; height: 44px; padding: 0; border: 0;
        border-radius: var(--l2w-radius-control); background: transparent; color: var(--l2w-ink); }
    .l2w-csearch__list { top: 100%; left: 0; right: 0; width: auto; max-height: calc(100dvh - 140px); border-radius: 0 0 var(--l2w-radius-card) var(--l2w-radius-card); }
}
/* phones: room for the search icon beside the logo, the Home icon and Help (measured at 320, 360, 375, 390 and 414 px: nothing
   scrolls sideways) — the logo steps down a little on a client's header only */
@media (max-width: 767.98px) { .l2w-header:has(.l2w-csearch) { --l2w-logo-h: 36px; } }
@media (max-width: 399.98px) { .l2w-header:has(.l2w-csearch) { --l2w-logo-h: 30px; } .l2w-csearch__open { width: 40px; } }
@media (max-width: 359.98px) { .l2w-header:has(.l2w-csearch) { --l2w-logo-h: 24px; } .l2w-header:has(.l2w-csearch) .l2w-header__bar { gap: 4px; } }
/* ---------- NOW 11 #7 (owner 23 Nov 2026): partner courses (Pillai Tutors) — "In partnership with" over the course title, the Buy
   panel's ribbon and its "My child is a student at …" tick that opens the special access code, the checkout's co-brand mark ---------- */
.l2w-partner-line { display: inline-flex; align-items: center; gap: var(--l2w-space-2); margin: 0 0 var(--l2w-space-3); padding: 4px 14px 4px 8px;
    border: 1px solid var(--l2w-border); border-radius: 999px; background: var(--l2w-surface); font-size: var(--l2w-text-14); color: var(--l2w-ink-soft); }
.l2w-partner-line strong { font-weight: var(--l2w-weight-semibold); color: var(--l2w-ink); }
.l2w-partner-line__mark { flex: none; width: 18px; height: 18px; color: var(--l2w-status-updating); }
.l2w-partner-ribbon { display: flex; align-items: center; gap: var(--l2w-space-2); margin: -1.5rem -1.5rem 0; padding: 10px 1.5rem;
    border-bottom: 1px solid var(--l2w-border); border-radius: var(--l2w-radius-card) var(--l2w-radius-card) 0 0;
    background: var(--l2w-status-updating-tint); font-size: var(--l2w-text-14); font-weight: var(--l2w-weight-semibold); color: var(--l2w-status-updating); }
.l2w-partner-ribbon svg { flex: none; width: 18px; height: 18px; }
.l2w-partner-gate { display: grid; gap: var(--l2w-space-3); }
.l2w-partner-gate__code { display: grid; gap: 6px; }
.l2w-partner-gate__code[hidden], .l2w-partner-gate__other[hidden] { display: none; }
.l2w-partner-gate__code .site-field { text-transform: uppercase; letter-spacing: .06em; }
.l2w-partner-gate__code .l2w-buy__small { margin: 0; }
.l2w-partner-gate__other { margin: 0; font-size: var(--l2w-text-14); color: var(--l2w-ink-soft); }
.l2w-partner-meta { display: inline-flex; align-items: center; gap: 4px; color: var(--l2w-status-updating); }
