/* Orbit Performance Platform — shared design system (phase 6 of
   docs/IMPLEMENTATION-STANDARD.md; README "Design system, dark theme and
   phones"). monday.com's patterns in Orbit's colours: navy #09224A and blue
   #3261CB from orbit.co.tz.
   The file opens with three blocks:
     1. the primitives: the ONLY place a colour value is written;
     2. the semantic tokens of the light theme (`:root, .theme-light`), each
        a var() of a primitive; every rule, page and script names these;
     3. the dark theme: the same semantic tokens with their dark values,
        inside @media screen, so a printed page is always light.
   test/design-tokens.test.js fails on a colour written anywhere else, on a
   text colour that is not a text token, and on any text/background pair
   under 4.5:1 in either theme. The dark theme is optional: nobody sees it
   until they choose it in the user menu (common.js applyTheme).
   Logo files live in /img: orbit-logo.png for light backgrounds,
   orbit-logo-white.png for navy and dark ones.
   Text is never set in --ink-faint (decoration only: rules, dots, dashed
   keys); quiet text takes --ink-muted (#5A687E: 4.5:1 on every light
   surface, section 11.4 of the phase 6 design). */

/* 1. Primitives: the only place a colour value is written (test/design-tokens.test.js).
   Orbit's brand from orbit.co.tz: navy #09224A, blue #3261CB. Light values
   are those of phases 0 to 5 (the muted grey is darkened, section 11.4);
   the night and mist steps are the dark theme's (phase 6). slate-450 and
   night-400 are the borders of fields, which read at 3:1 (WCAG 1.4.11). */
:root{
  --c-white:#FFFFFF;
  --c-navy-950:#071A3A; --c-navy-900:#09224A; --c-navy-850:#0A234D; --c-navy-700:#1E3A8A;
  --c-blue-700:#1D4ED8; --c-blue-600:#3261CB; --c-blue-500:#3B82F6; --c-blue-300:#93C5FD; --c-blue-200:#BFDBFE;
  --c-blue-100:#DBEAFE; --c-blue-50:#EEF3FF; --c-blue-25:#F5F8FF; --c-cyan-500:#06B6D4;
  --c-slate-25:#FAFBFD; --c-slate-50:#F8FAFC; --c-slate-100:#F1F5F9; --c-slate-150:#EDF2F7; --c-slate-200:#E2E8F0;
  --c-slate-300:#CBD5E1; --c-slate-400:#94A3B8; --c-slate-450:#7D8799; --c-slate-500:#5A687E; --c-slate-600:#475569; --c-slate-700:#334155;
  --c-slate-900:#0F172A; --c-menu-300:#B8C4DD; --c-chart-muted:#A3B1C6; --c-chart-prev:#6B95D8;
  --c-green-50:#E6F7EE; --c-green-100:#DCFCE7; --c-green-200:#A7F3D0; --c-green-400:#34D399; --c-green-500:#10B981;
  --c-green-600:#0E9F6E; --c-green-700:#047857; --c-green-800:#166534; --c-green-900:#065F46;
  --c-amber-50:#FFF7D6; --c-amber-100:#FEF3C7; --c-amber-200:#FDE68A; --c-amber-500:#F59E0B; --c-amber-700:#B45309; --c-amber-800:#92400E;
  --c-red-100:#FEE2E2; --c-red-200:#FECACA; --c-red-500:#EF4444; --c-red-600:#DC2626; --c-red-700:#B91C1C; --c-red-800:#991B1B;
  --c-pink-100:#FCE7F3; --c-pink-800:#9D174D; --c-violet-100:#EDE9FE; --c-violet-500:#8B5CF6; --c-violet-700:#6D28D9; --c-violet-800:#5B21B6;
  --c-cyan-100:#CFFAFE; --c-cyan-800:#155E75; --c-sky-100:#E0F2FE; --c-sky-700:#0369A1;
  --c-orange-100:#FFEDD5; --c-orange-700:#C2410C; --c-orange-800:#9A3412; --c-rose-700:#BE185D;
  /* Market Intelligence (16 October 2026): the three colours of the approved mock-up's palette of ten that were not primitives yet. */
  --c-teal-700:#0F766E; --c-indigo-700:#4338CA; --c-yellow-700:#A16207;
  /* the dark theme */
  --c-night-950:#0B1220; --c-night-900:#0F1A2E; --c-night-850:#111B2E; --c-night-800:#16233A; --c-night-750:#1B2A45;
  --c-night-700:#26354F; --c-night-650:#1C2A42; --c-night-600:#34466A; --c-night-500:#52627F; --c-night-400:#6B7A96; --c-night-sel:#1C2D52;
  --c-mist-50:#E6EDF7; --c-mist-200:#B4C1D6; --c-mist-300:#93A3BD; --c-blue-d:#8DB0FF; --c-brand-d:#C7D7FF;
  --c-green-d:#5FD39A; --c-green-d-bg:#12301F; --c-green-d-line:#1F5A3B;
  --c-red-d:#FF9B9B; --c-red-d-bg:#3A1A1E; --c-red-d-line:#6B2A31;
  --c-amber-d:#F5C46A; --c-amber-d-bg:#3A2C10; --c-amber-d-line:#6B5217;
  --c-grey-d-bg:#2A3550; --c-grey-d-ink:#D5DDEA; --c-blue-d-bg:#1D3566; --c-blue-d-ink:#C3D6FF;
  --c-amber-d-chip:#43320F; --c-amber-d-ink:#FAD48A; --c-green-d-chip:#133B29; --c-green-d-ink:#A2E5C0;
  --c-slate-d-bg:#222C40; --c-slate-d-ink:#BAC5D6; --c-red-d-chip:#4A1C22; --c-red-d-ink:#FFBDBD;
  --c-pink-d-bg:#4A1734; --c-pink-d-ink:#F9B8D8; --c-violet-d-bg:#2E2159; --c-violet-d-ink:#D4C6FF;
  --c-cyan-d-bg:#0F3A44; --c-cyan-d-ink:#9DE7F5; --c-orange-d-bg:#4A2A12; --c-orange-d-ink:#FFC89E;
  /* third parties: the Microsoft sign-in mark keeps Microsoft's colours */
  --c-ms-red:#F25022; --c-ms-green:#7FBA00; --c-ms-blue:#00A4EF; --c-ms-yellow:#FFB900;
  /* translucent (one per value used today; a new one is added here, never inline) */
  --c-white-a02:rgba(255,255,255,0.02); --c-white-a03:rgba(255,255,255,0.03); --c-white-a08:rgba(255,255,255,0.08);
  --c-white-a10:rgba(255,255,255,0.1); --c-white-a12:rgba(255,255,255,0.12); --c-white-a14:rgba(255,255,255,0.14);
  --c-white-a16:rgba(255,255,255,0.16); --c-white-a20:rgba(255,255,255,0.2); --c-white-a60:rgba(255,255,255,0.6); --c-white-a86:rgba(255,255,255,0.86);
  --c-ink-a03:rgba(15,23,42,0.03); --c-ink-a04:rgba(15,23,42,0.04); --c-ink-a05:rgba(15,23,42,0.05); --c-ink-a06:rgba(15,23,42,0.06);
  --c-ink-a08:rgba(15,23,42,0.08); --c-ink-a10:rgba(15,23,42,0.10); --c-ink-a12:rgba(15,23,42,0.12); --c-ink-a16:rgba(15,23,42,0.16);
  --c-ink-a18:rgba(15,23,42,0.18); --c-ink-a35:rgba(15,23,42,0.35); --c-ink-a45:rgba(15,23,42,0.45);
  --c-navy-a35:rgba(9,34,74,0.35); --c-navy-a80:rgba(9,34,74,0.8); --c-navy-a90:rgba(9,34,74,0.9);
  --c-blue-a14:rgba(50,97,203,0.14); --c-blue-a18:rgba(50,97,203,0.18); --c-blue-a35:rgba(50,97,203,0.35);
  --c-sky-a14:rgba(59,130,246,0.14); --c-sky-a20:rgba(59,130,246,0.2); --c-sky-a45:rgba(59,130,246,0.45);
  --c-cyan-a14:rgba(6,182,212,0.14); --c-cyan-a28:rgba(6,182,212,0.28);
  --c-green-a18:rgba(52,211,153,0.18); --c-green-a25:rgba(52,211,153,0.25);
  --c-red-a12:rgba(220,38,38,0.12); --c-red-a40:rgba(185,28,28,0.4);
  --c-black-a40:rgba(0,0,0,0.4); --c-black-a50:rgba(0,0,0,0.5); --c-black-a60:rgba(0,0,0,0.6);
  --c-night-a90:rgba(15,26,46,0.9); --c-blued-a40:rgba(141,176,255,0.4);
}

/* 2. The semantic tokens of the light theme. An element with class
   theme-light re-declares them for its subtree: the SVG charts and the
   on-screen report views stay light on a dark page. */
:root, .theme-light{
  color-scheme:light;
  --bg:var(--c-slate-50); --surface:var(--c-white); --bg-panel:var(--surface); --surface-2:var(--c-slate-50);
  --surface-hover:var(--c-slate-25); --surface-selected:var(--c-blue-50); --surface-raised:var(--c-white);
  --bar-bg:var(--c-white-a86); --bar-shadow:0 1px 0 var(--c-ink-a03);
  --line:var(--c-slate-200); --line-soft:var(--c-slate-150); --line-hover:var(--c-slate-300); --line-strong:var(--c-slate-450);
  --ink:var(--c-slate-900); --ink-soft:var(--c-slate-600); --ink-muted:var(--c-slate-500); --ink-faint:var(--c-slate-400);
  --ink-brand:var(--c-navy-900); --link:var(--c-blue-600); --accent:var(--c-blue-500); --accent-soft:var(--c-blue-300);
  --ring:0 0 0 4px var(--c-sky-a14); --ring-err:0 0 0 4px var(--c-red-a12); --selection:var(--c-sky-a20);
  --on-brand:var(--c-white); --on-brand-line:var(--c-white-a60); --on-brand-hover:var(--c-white-a16);
  --navy:var(--c-navy-900); --blue:var(--c-blue-600); --navy-deep:var(--c-navy-850);
  --grad-navy:linear-gradient(135deg,var(--c-navy-850) 0%,var(--c-navy-700) 100%);
  --grad-blue:linear-gradient(135deg,var(--c-blue-600) 0%,var(--c-blue-500) 60%,var(--c-cyan-500) 100%);
  --positive-ink:var(--c-green-700); --positive-bg:var(--c-green-50); --positive-line:var(--c-green-200); --positive-fill:var(--c-green-800);
  --negative-ink:var(--c-red-700); --negative-bg:var(--c-red-100); --negative-line:var(--c-red-200); --negative-fill:var(--c-red-600);
  --negative-fill-strong:var(--c-red-700); --negative-strike:var(--c-red-a40);
  --warning-ink:var(--c-amber-800); --warning-bg:var(--c-amber-100); --warning-line:var(--c-amber-200); --warning-fill:var(--c-amber-500);
  --warning-strong:var(--c-amber-700); --banner-hover:var(--c-amber-100); --flash-bg:var(--c-amber-50);
  /* The chips: one palette for the five standard statuses, the four
     priorities and overdue (docs/IMPLEMENTATION-STANDARD.md 2.1); sky,
     orange, violet and pink are the Front Office workflow's own stages. */
  --st-grey:var(--c-slate-200); --st-grey-ink:var(--c-slate-700);
  --st-blue:var(--c-blue-100); --st-blue-ink:var(--c-navy-700); --st-blue-2:var(--c-blue-200);
  --st-amber:var(--c-amber-100); --st-amber-ink:var(--c-amber-800);
  --st-green:var(--c-green-100); --st-green-ink:var(--c-green-800);
  --st-slate:var(--c-slate-100); --st-slate-ink:var(--c-slate-600);
  --st-red:var(--c-red-100); --st-red-ink:var(--c-red-800);
  --st-sky:var(--c-sky-100); --st-sky-ink:var(--c-sky-700); --st-orange:var(--c-orange-100); --st-orange-ink:var(--c-orange-700);
  --st-violet:var(--c-violet-100); --st-violet-ink:var(--c-violet-700); --st-pink:var(--c-pink-100); --st-pink-ink:var(--c-rose-700);
  /* Marks: the coloured rules and dots of timelines, cards and rows (never text). */
  --mark-red:var(--c-red-500); --mark-amber:var(--c-amber-500); --mark-green:var(--c-green-500);
  --mark-blue:var(--c-blue-500); --mark-violet:var(--c-violet-500); --mark-cyan:var(--c-cyan-500);
  --bar-muted:var(--c-chart-muted);
  --av-0-bg:var(--c-blue-100); --av-0-ink:var(--c-navy-700); --av-1-bg:var(--c-green-100); --av-1-ink:var(--c-green-800);
  --av-2-bg:var(--c-amber-100); --av-2-ink:var(--c-amber-800); --av-3-bg:var(--c-pink-100); --av-3-ink:var(--c-pink-800);
  --av-4-bg:var(--c-violet-100); --av-4-ink:var(--c-violet-800); --av-5-bg:var(--c-cyan-100); --av-5-ink:var(--c-cyan-800);
  --av-6-bg:var(--c-orange-100); --av-6-ink:var(--c-orange-800); --av-7-bg:var(--c-slate-200); --av-7-ink:var(--c-slate-700);
  /* The navy side menu: navy in both themes. */
  --side-ink:var(--c-slate-200); --side-ink-soft:var(--c-slate-300); --side-ink-muted:var(--c-menu-300); --side-link:var(--c-blue-300);
  --side-hover:var(--c-white-a08); --side-active:var(--c-white-a14); --side-line:var(--c-white-a12);
  --side-ok:var(--c-green-400); --side-ok-halo:var(--c-green-a25);
  --overlay:var(--c-ink-a45); --overlay-soft:var(--c-ink-a35);
  --shadow-sm:0 1px 2px var(--c-ink-a05), 0 1px 3px var(--c-ink-a04);
  --shadow:0 1px 2px var(--c-ink-a04), 0 12px 32px -16px var(--c-ink-a18);
  --shadow-lg:0 24px 60px -24px var(--c-navy-a35);
  --btn-glow:0 8px 18px -10px var(--c-navy-a80); --tab-glow:0 6px 14px -8px var(--c-navy-a90);
  --banner-shadow:0 2px 8px var(--c-ink-a18); --hover-tint:var(--c-ink-a08);
  --heat-color:var(--c-blue-600); --spark:var(--c-navy-900);
  /* The SVG charts (js/lib/charts.js): light in both themes. */
  --chart-navy:var(--c-navy-900); --chart-blue:var(--c-blue-600); --chart-muted:var(--c-chart-muted); --chart-grey:var(--c-slate-450);
  --chart-better:var(--c-green-700); --chart-worse:var(--c-red-700); --chart-base:var(--c-slate-200); --chart-ink:var(--c-slate-900);
  --chart-soft:var(--c-slate-600); --chart-faint:var(--c-slate-400); --chart-hover:var(--c-slate-100); --chart-bg:var(--c-white); --chart-axis:var(--c-slate-300);
  /* Market Intelligence (16 October 2026, design 6.2): the ten series colours of the approved mock-up in its
     order (a counter or a fund keeps its colour wherever it appears), the seven bond terms (one fixed colour
     per term on every chart of the Fixed income page), and the pale bar of a paired chart's period before. */
  --chart-series-1:var(--c-amber-700); --chart-series-2:var(--c-green-700); --chart-series-3:var(--c-violet-700); --chart-series-4:var(--c-sky-700); --chart-series-5:var(--c-rose-700);
  --chart-series-6:var(--c-blue-600); --chart-series-7:var(--c-teal-700); --chart-series-8:var(--c-orange-800); --chart-series-9:var(--c-indigo-700); --chart-series-10:var(--c-yellow-700);
  --chart-term-2:var(--c-sky-700); --chart-term-5:var(--c-green-700); --chart-term-7:var(--c-cyan-800); --chart-term-10:var(--c-violet-700);
  --chart-term-15:var(--c-blue-600); --chart-term-20:var(--c-amber-700); --chart-term-25:var(--c-navy-900); --chart-pale:var(--c-chart-prev);
  /* Against target (phase 4, README "Targets"): a figure on target and not. */
  --target-ok:var(--c-green-700); --target-miss:var(--c-red-700);
  --ms-red:var(--c-ms-red); --ms-green:var(--c-ms-green); --ms-blue:var(--c-ms-blue); --ms-yellow:var(--c-ms-yellow);
  /* The sign-in and change-password pages (always light). */
  --auth-page-bg:radial-gradient(1200px 600px at 10% -10%,var(--c-blue-a18),transparent 60%),radial-gradient(900px 500px at 110% 110%,var(--c-cyan-a14),transparent 60%);
  --auth-brand-bg:radial-gradient(700px 420px at 85% 12%,var(--c-sky-a45),transparent 60%),radial-gradient(600px 400px at 0% 100%,var(--c-cyan-a28),transparent 60%),linear-gradient(135deg,var(--c-navy-950) 0%,var(--c-navy-850) 45%,var(--c-navy-700) 100%);
  --auth-main-bg:radial-gradient(900px 500px at 50% -10%,var(--c-blue-a14),transparent 60%);
  --auth-ring:0 0 0 60px var(--c-white-a03),0 0 0 130px var(--c-white-a02);
  --auth-tick:var(--c-green-400); --auth-tick-bg:var(--c-green-a18);
  /* A filter drop-down that is not at All (js/lib/filters.js, 2 Oct 2026): filled. */
  --filter-set-bg:var(--navy); --filter-set-line:var(--navy); --filter-set-ink:var(--on-brand);
  /* Mobile release M1: the band under a phone's status bar (and the browser's
     colour tag, js/theme-boot.js) and the bottom bar's current place. */
  --status-bar:var(--c-navy-900); --bb-pill-bg:var(--surface-selected); --bb-pill-line:var(--accent);
}

/* 3. The dark theme: the same semantic tokens, on screen only (a printed
   page is light), for whoever chose Dark or Match this device. Every rule
   that names [data-theme="dark"] lives inside this @media screen block. */
@media screen{
  :root[data-theme="dark"]{
    color-scheme:dark;
    --bg:var(--c-night-950); --surface:var(--c-night-850); --surface-2:var(--c-night-800);
    --surface-hover:var(--c-night-750); --surface-selected:var(--c-night-sel); --surface-raised:var(--c-night-800);
    --bar-bg:var(--c-night-a90); --bar-shadow:0 1px 0 var(--c-black-a40);
    --line:var(--c-night-700); --line-soft:var(--c-night-650); --line-hover:var(--c-night-600); --line-strong:var(--c-night-400);
    --ink:var(--c-mist-50); --ink-soft:var(--c-mist-200); --ink-muted:var(--c-mist-300); --ink-faint:var(--c-night-500);
    --ink-brand:var(--c-brand-d); --link:var(--c-blue-d); --accent:var(--c-blue-d); --accent-soft:var(--c-night-500);
    --ring:0 0 0 4px var(--c-blued-a40); --ring-err:0 0 0 4px var(--c-red-a40); --selection:var(--c-blued-a40);
    --on-brand-line:var(--c-white-a60); --on-brand-hover:var(--c-white-a16);
    --positive-ink:var(--c-green-d); --positive-bg:var(--c-green-d-bg); --positive-line:var(--c-green-d-line);
    --negative-ink:var(--c-red-d); --negative-bg:var(--c-red-d-bg); --negative-line:var(--c-red-d-line);
    --negative-fill-strong:var(--c-red-700); --negative-strike:var(--c-red-a40);
    --warning-ink:var(--c-amber-d); --warning-bg:var(--c-amber-d-bg); --warning-line:var(--c-amber-d-line);
    --warning-strong:var(--c-amber-700); --banner-hover:var(--c-amber-100); --flash-bg:var(--c-amber-d-bg);
    --st-grey:var(--c-grey-d-bg); --st-grey-ink:var(--c-grey-d-ink);
    --st-blue:var(--c-blue-d-bg); --st-blue-ink:var(--c-blue-d-ink); --st-blue-2:var(--c-night-600);
    --st-amber:var(--c-amber-d-chip); --st-amber-ink:var(--c-amber-d-ink);
    --st-green:var(--c-green-d-chip); --st-green-ink:var(--c-green-d-ink);
    --st-slate:var(--c-slate-d-bg); --st-slate-ink:var(--c-slate-d-ink);
    --st-red:var(--c-red-d-chip); --st-red-ink:var(--c-red-d-ink);
    --st-sky:var(--c-cyan-d-bg); --st-sky-ink:var(--c-cyan-d-ink); --st-orange:var(--c-orange-d-bg); --st-orange-ink:var(--c-orange-d-ink);
    --st-violet:var(--c-violet-d-bg); --st-violet-ink:var(--c-violet-d-ink); --st-pink:var(--c-pink-d-bg); --st-pink-ink:var(--c-pink-d-ink);
    --mark-red:var(--c-red-d); --mark-amber:var(--c-amber-d); --mark-green:var(--c-green-d);
    --mark-blue:var(--c-blue-d); --mark-violet:var(--c-violet-d-ink); --mark-cyan:var(--c-cyan-d-ink);
    --bar-muted:var(--c-night-500);
    --av-0-bg:var(--c-blue-d-bg); --av-0-ink:var(--c-blue-d-ink); --av-1-bg:var(--c-green-d-chip); --av-1-ink:var(--c-green-d-ink);
    --av-2-bg:var(--c-amber-d-chip); --av-2-ink:var(--c-amber-d-ink); --av-3-bg:var(--c-pink-d-bg); --av-3-ink:var(--c-pink-d-ink);
    --av-4-bg:var(--c-violet-d-bg); --av-4-ink:var(--c-violet-d-ink); --av-5-bg:var(--c-cyan-d-bg); --av-5-ink:var(--c-cyan-d-ink);
    --av-6-bg:var(--c-orange-d-bg); --av-6-ink:var(--c-orange-d-ink); --av-7-bg:var(--c-grey-d-bg); --av-7-ink:var(--c-grey-d-ink);
    --overlay:var(--c-black-a60); --overlay-soft:var(--c-black-a50);
    --shadow-sm:0 1px 2px var(--c-black-a40); --shadow:0 12px 32px -16px var(--c-black-a50); --shadow-lg:0 24px 60px -24px var(--c-black-a60);
    --tab-glow:0 6px 14px -8px var(--c-black-a60); --banner-shadow:0 2px 8px var(--c-black-a40); --hover-tint:var(--c-white-a08);
    --spark:var(--c-blue-d);
    --target-ok:var(--c-green-d); --target-miss:var(--c-red-d);
    --filter-set-bg:var(--c-blue-d); --filter-set-line:var(--c-blue-d); --filter-set-ink:var(--c-night-950);
    --status-bar:var(--c-night-950);
  }
  /* The logo pair of the top bar (common.js renderModuleBar): the white
     logo on a dark page. Inside @media screen, so a dark page prints the
     navy logo. */
  :root[data-theme="dark"] .logo-light{display:none;}
  :root[data-theme="dark"] img.logo-dark{display:block;}
  /* Market Intelligence: the navy of a proportion bar ("local investors") and its key swatch keep an edge of 3:1 on a
     dark panel (WCAG 1.4.11; the review of 17 October 2026 measured 1.10:1); the navy itself stays, as its words say. */
  :root[data-theme="dark"] .mi-stack, :root[data-theme="dark"] .sw-local{box-shadow:inset 0 0 0 1px var(--line-strong);}
  /* A filter's swatch (js/lib/filters.js, .fl-swatch) on the dark list: an edge of --line-strong, 3.63:1 on the list
     (--surface-raised, where a chosen row stays), 3.14:1 on a hovered or focused row (--surface-selected, as
     .dl-item:hover and .choose-opt:hover) and 3.31:1 on --surface-hover; a phone's sheet is --surface-raised too: every
     case at least 3:1 (WCAG 1.4.11), so a swatch as dark as the list (the Economy filter's Tanzania, navy, 1.00:1) is
     still seen; a stroke of 2 shows 1 px inside the 12 px square (the fix round of 23 October 2026, the standard
     review's SP-8; its ratios corrected in fix round 2). The charts stay light, so their own fills are unchanged. */
  :root[data-theme="dark"] .fl-swatch rect{stroke:var(--line-strong);stroke-width:2;}
}
img.logo-dark{display:none;}
/* An element that stays light on a dark page paints its own light
   background, so the light ink it re-declares never lands on the dark page. */
.theme-light{color-scheme:light;color:var(--ink);background-color:var(--bg);}
svg.theme-light{background:var(--chart-bg);border-radius:var(--radius-sm);}
/* Tokens that are not colours. */
:root{
  --radius:12px; --radius-sm:8px; --radius-xs:6px;
  /* The phone's bottom bar with the home indicator's room under it (mobile release M1). */
  --bb-h:calc(56px + env(safe-area-max-inset-bottom, env(safe-area-inset-bottom, 0px)));
  --font-display:'Inter','Segoe UI',system-ui,-apple-system,Roboto,'Helvetica Neue',Arial,sans-serif;
  --font-body:'Inter','Segoe UI',system-ui,-apple-system,Roboto,'Helvetica Neue',Arial,sans-serif;
}

*{box-sizing:border-box;}
[hidden]{display:none !important;}
html{-webkit-text-size-adjust:100%;font-size:100%;}
/* iPhone and iPad: the root size is the phone's own text size (Settings,
   Display & Text Size, Larger Text), so every rem below follows it (mobile
   release M2, D9). Only where iOS's own properties exist: on a Mac this
   would shrink the page to 13 px. */
@supports (font: -apple-system-body) and (-webkit-touch-callout: none) {
  html{font:-apple-system-body;}
  /* Capped at 200% of 16 px (standard rule 15; D9). theme-boot.js sets
     data-text-cap when the phone's size is larger (AX2 to AX5). */
  html[data-text-cap]{font-size:32px;}
}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font-body);font-size:0.875rem;line-height:1.55;-webkit-font-smoothing:antialiased;}
button, input, select, textarea{font-family:inherit;font-size:0.875rem;color:var(--ink);}
table{border-collapse:collapse;width:100%;}
a{color:var(--link);text-decoration:none;} a:hover{text-decoration:underline;}
h1,h2,h3{letter-spacing:-0.01em;}
::selection{background:var(--selection);}
/* ---- Type sizes for markup (mobile release M2, design 5.9.3): the sizes
   pages and scripts once wrote inline, as classes in rem, so they follow
   the text size. No inline font-size anywhere (test/m2-text-size.test.js). ---- */
.fs-11{font-size:max(11px, 0.6875rem);}  .fs-11-5{font-size:max(11px, 0.71875rem);}
.fs-12{font-size:max(11px, 0.75rem);}     .fs-12-5{font-size:max(11px, 0.78125rem);}
.fs-13{font-size:0.8125rem;}              .fs-14{font-size:0.875rem;}
.fs-15{font-size:0.9375rem;}
/* Page transitions (mobile release M2, D12): a 150 ms cross-fade between
   Orbit's pages, only when the person has not asked for reduced motion. No
   element is given a transition name of its own. */
@media (prefers-reduced-motion: no-preference){
  @view-transition{navigation:auto;}
  ::view-transition-old(root),::view-transition-new(root){animation-duration:150ms;}
}

/* ---- Auth cards (sign in, change password) ---- */
body.centered{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px;
  background:var(--auth-page-bg),var(--bg);}
.card{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:40px 42px;width:440px;max-width:100%;box-shadow:var(--shadow-lg);position:relative;}
.card-logo{display:block;height:84px;width:auto;max-width:100%;margin:0 0 22px;}
.card h1{font-family:var(--font-display);font-size:1.5rem;font-weight:700;margin:0 0 6px;letter-spacing:-0.02em;}
.card p.sub{color:var(--ink-soft);font-size:0.84375rem;margin:0 0 24px;line-height:1.55;}
.card label{font-size:max(11px, 0.78125rem);font-weight:600;color:var(--ink-soft);display:block;margin-bottom:6px;}
.card input{width:100%;padding:11px 13px;border:1px solid var(--line-strong);border-radius:var(--radius-sm);font-size:0.875rem;margin-bottom:16px;background:var(--surface-2);transition:border-color .15s,box-shadow .15s,background .15s;}
.card input:focus{outline:none;border-color:var(--accent);box-shadow:var(--ring);background:var(--surface);}
.card button{width:100%;padding:12px;border:none;border-radius:var(--radius-sm);background:var(--grad-navy);color:var(--on-brand);font-size:0.90625rem;font-weight:600;cursor:pointer;box-shadow:var(--btn-glow);transition:transform .12s,filter .15s;}
.card button:hover{filter:brightness(1.08);} .card button:active{transform:translateY(1px);}
.card button:disabled{opacity:0.6;cursor:not-allowed;}
.card a.btn{width:100%;}

/* ---- Sign-in page: brand panel on the left, sign-in on the right ---- */
body.auth{min-height:100vh;background:var(--surface);}
.auth-split{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);min-height:100vh;}
.auth-brand{position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;padding:44px 56px;color:var(--side-ink);
  background:var(--auth-brand-bg);}
.auth-brand::after{content:"";position:absolute;right:-140px;bottom:-140px;width:420px;height:420px;border-radius:50%;border:1px solid var(--side-line);box-shadow:var(--auth-ring);}
.auth-brand-top{display:flex;align-items:center;position:relative;z-index:1;}
.auth-logo{display:block;height:120px;width:auto;max-width:100%;}
.auth-logo-lg{display:none;height:90px;width:auto;max-width:100%;margin:0 0 24px;}
.auth-brand-body{position:relative;z-index:1;max-width:520px;}
.auth-brand-body h1{font-size:2.375rem;line-height:1.12;font-weight:700;letter-spacing:-0.03em;color:var(--on-brand);margin:0 0 16px;}
.auth-brand-body p{font-size:0.96875rem;line-height:1.6;color:var(--side-ink-soft);margin:0 0 26px;}
.auth-brand-body ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px;}
.auth-brand-body li{position:relative;padding-left:30px;font-size:0.90625rem;color:var(--side-ink);}
.auth-brand-body li::before{content:"";position:absolute;left:0;top:2px;width:18px;height:18px;border-radius:50%;background:var(--auth-tick-bg);box-shadow:inset 0 0 0 1.5px var(--auth-tick);}
.auth-brand-body li::after{content:"";position:absolute;left:6px;top:6px;width:6px;height:9px;border:solid var(--auth-tick);border-width:0 2px 2px 0;transform:rotate(45deg) translate(-1px,-2px);}
.auth-brand-foot{font-size:max(11px, 0.78125rem);color:var(--side-ink-muted);position:relative;z-index:1;}
.auth-main{display:flex;align-items:center;justify-content:center;padding:40px 24px;background:var(--surface);}
.auth-card{width:400px;max-width:100%;}
.auth-card h2{font-size:1.75rem;font-weight:700;letter-spacing:-0.02em;margin:0 0 6px;}
.auth-card p.sub{color:var(--ink-soft);font-size:0.90625rem;margin:0 0 28px;}
.auth-sso{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;padding:14px 18px;border-radius:12px;border:1px solid var(--line);background:var(--surface);color:var(--ink);font-weight:600;font-size:0.9375rem;text-decoration:none;box-shadow:var(--shadow-sm);transition:transform .12s,box-shadow .15s,border-color .15s;}
.auth-sso:hover{text-decoration:none;border-color:var(--ink-faint);box-shadow:var(--shadow);transform:translateY(-1px);}
.auth-sso:active{transform:none;}
.auth-hint{font-size:0.8125rem;color:var(--ink-soft);margin:14px 0 0;text-align:center;}
.auth-card form{margin-top:22px;}
.auth-card label{font-size:max(11px, 0.78125rem);font-weight:600;color:var(--ink-soft);display:block;margin-bottom:6px;}
.auth-card input{width:100%;padding:12px 14px;border:1px solid var(--line-strong);border-radius:10px;font-size:0.90625rem;margin-bottom:16px;background:var(--surface-2);transition:border-color .15s,box-shadow .15s,background .15s;}
.auth-card input:focus{outline:none;border-color:var(--accent);box-shadow:var(--ring);background:var(--surface);}
.auth-card form button{width:100%;padding:13px;border:none;border-radius:10px;background:var(--grad-navy);color:var(--on-brand);font-size:0.9375rem;font-weight:600;cursor:pointer;box-shadow:var(--btn-glow);}
.auth-card form button:hover{filter:brightness(1.08);} .auth-card form button:disabled{opacity:0.6;cursor:not-allowed;}
.auth-foot{margin:28px 0 0;padding-top:18px;border-top:1px solid var(--line);font-size:max(11px, 0.78125rem);color:var(--ink-muted);text-align:center;}
@media (max-width: 900px){ .auth-split{grid-template-columns:minmax(0,1fr);} .auth-brand{display:none;} .auth-logo-lg{display:block;} .auth-main{min-height:100vh;background:var(--auth-main-bg),var(--surface);} }

/* ---- Messages ---- */
.msg{border-radius:var(--radius-sm);padding:11px 14px;font-size:0.8125rem;margin-bottom:16px;display:none;white-space:pre-wrap;border:1px solid transparent;}
.msg.err{background:var(--negative-bg);color:var(--negative-ink);border-color:var(--negative-line);}
.msg.ok{background:var(--positive-bg);color:var(--positive-ink);border-color:var(--positive-line);}
.msg.warn{background:var(--warning-bg);color:var(--warning-ink);border-color:var(--warning-line);}

/* ---- App shell ---- */
.app{display:flex;min-height:100vh;}
.sidebar{width:248px;flex-shrink:0;background:var(--grad-navy);color:var(--side-ink);padding:22px 16px 22px;display:flex;flex-direction:column;}
@media (min-width: 901px){ .sidebar{position:sticky;top:0;align-self:flex-start;height:100vh;overflow-y:auto;} body.has-module-bar .sidebar, #demo-root .sidebar{top:var(--bar-h,56px);height:calc(100vh - var(--bar-h,56px));} }
.brand{font-family:var(--font-display);font-size:1.1875rem;font-weight:700;margin:0;letter-spacing:-0.02em;color:var(--on-brand);display:flex;align-items:center;gap:12px;}
.brand-logo{display:block;height:36px;width:auto;max-width:100%;flex-shrink:0;}
.sidebar .brand{padding:0 4px;}
.brand-sub{font-size:max(11px, 0.78125rem);color:var(--side-link);margin:2px 0 18px;padding-left:4px;text-transform:uppercase;letter-spacing:0.08em;font-weight:700;}
.synctag{font-size:max(11px, 0.6875rem);color:var(--side-ink-muted);margin-bottom:14px;display:flex;align-items:center;gap:6px;padding-left:2px;}
.synctag .dot{width:7px;height:7px;border-radius:50%;background:var(--side-ok);box-shadow:0 0 0 3px var(--side-ok-halo);}
.navgroup{display:flex;flex-direction:column;gap:3px;margin-bottom:22px;}
.navitem{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:var(--radius-sm);color:var(--side-ink-soft);cursor:pointer;border:none;background:none;text-align:left;width:100%;font-size:0.84375rem;font-weight:500;text-decoration:none;transition:background .15s,color .15s;position:relative;}
.navitem:hover{background:var(--side-hover);color:var(--on-brand);}
.navitem.active{background:var(--side-active);color:var(--on-brand);font-weight:600;}
.navitem.active::before{content:"";position:absolute;left:0;top:9px;bottom:9px;width:3px;border-radius:3px;background:var(--grad-blue);}
/* Quiet text on the navy menu (the sync tag, the role under the name, the
   "Units" label of the All units menu) is #B8C4DD like .navlabel: #94A3B8
   fell to 4:1 where the menu's gradient is lightest (its bottom right). */
.sidebar-foot{margin-top:auto;padding-top:16px;border-top:1px solid var(--side-line);font-size:max(11px, 0.75rem);color:var(--side-ink-muted);}
.sidebar-foot .who{color:var(--on-brand);font-weight:600;margin-bottom:2px;}
.sidebar-foot a{color:var(--side-link);text-decoration:none;font-size:max(11px, 0.75rem);display:block;margin-top:7px;}
.sidebar-foot a:hover{color:var(--on-brand);}
.main{flex:1;padding:32px 40px 64px;max-width:1280px;min-width:0;}
/* The side menu folds away (September 2026). A button at its top-left
   (common.js initSidebarToggle), on the row of the module's name, folds the
   menu to a slim rail that keeps only the button, in the same place; the
   page takes the freed width, its 1280px cap growing by the 192px the menu
   gave up. On phones and narrow windows, where the menu is a band above the
   page, the band folds to that one row: the button and the module's name.
   Everything else in a folded menu is gone from view and from the keyboard.
   js/sidebar-state.js sets html.has-side-toggle (the button's place is kept
   before common.js adds it) and puts back a folded menu (html.sidebar-folded)
   before the page is drawn. The width moves only while html.side-animating is
   set, during a click. Screen only: printing ignores it. On the Upload past
   work page Download report comes above the heading, so there the button has
   a row of its own (on phones it shares it with Download report). The
   module's name beside the button is one 36px row, its first line level
   with the button; a long name ("Order Management Flow") wraps to a second
   line at the normal spacing, not another 36px row. */
.sr-only{position:absolute !important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
.side-toggle{display:none;}
@media screen{
  html.has-side-toggle .side-toggle{display:flex;align-items:center;justify-content:center;position:absolute;top:14px;left:10px;z-index:1;width:36px;height:36px;padding:0;border:0;border-radius:var(--radius-sm);background:transparent;color:var(--side-ink-soft);cursor:pointer;transition:background .15s,color .15s;}
  html.has-side-toggle .side-toggle:hover{background:var(--side-hover);color:var(--on-brand);}
  .side-toggle:focus-visible{outline:2px solid var(--side-link);outline-offset:1px;}
  .side-toggle svg{display:block;width:20px;height:20px;}
  .side-toggle .chev-show, html.sidebar-folded .side-toggle .chev-hide{display:none;}
  html.sidebar-folded .side-toggle .chev-show{display:inline;}
  html.has-side-toggle .sidebar > .brand-sub:first-child, html.has-side-toggle .sidebar > .side-toggle + .brand-sub, html.sidebar-folded .sidebar > .brand-sub{padding:9px 0 9px 40px;line-height:1.44;}
  html.sidebar-folded .sidebar > :not(.side-toggle){display:none;}
}
@media screen and (min-width: 901px){
  html.has-side-toggle .sidebar{padding-top:14px;overflow-x:hidden;}
  html.has-side-toggle .sidebar > .brand-sub:first-child, html.has-side-toggle .sidebar > .side-toggle + .brand-sub{margin:0 0 12px;}
  html.sidebar-folded .sidebar{width:56px;}
  /* Folded, the page fills the whole width: cards, charts and tables spread
     out, while written parts and forms keep a comfortable reading width. */
  html.sidebar-folded .main{max-width:none;}
  html.sidebar-folded .story,html.sidebar-folded .rule-note,html.sidebar-folded .empty-note,html.sidebar-folded .email-note{max-width:880px;}
  html.sidebar-folded .formgrid{max-width:1200px;}
  html.sidebar-folded .report-panel.from-sidebar{left:72px;}
  html.side-animating .sidebar{transition:width .2s ease;}
  html.side-animating .sidebar > :not(.side-toggle){min-width:216px;}
}
@media screen and (max-width: 900px){
  html.has-side-toggle .sidebar{position:relative;padding-top:10px;}
  html.has-side-toggle .side-toggle{top:10px;left:8px;}
  .side-toggle svg{transform:rotate(90deg);}
  html.has-side-toggle .sidebar > .brand-sub:first-child, html.has-side-toggle .sidebar > .side-toggle + .brand-sub{margin:0 0 6px;}
  html.sidebar-folded .sidebar{padding-bottom:10px;}
  html.has-side-toggle.sidebar-folded .sidebar > .brand-sub{display:block;margin:0;}
}
@media (prefers-reduced-motion: reduce){ html.side-animating .sidebar{transition:none;} }
.view{display:none;} .view.active{display:block;}
@keyframes fadein{from{opacity:0;transform:translateY(4px);}to{opacity:1;transform:none;}}
@keyframes slidein{from{transform:translateX(24px);opacity:0;}to{transform:none;opacity:1;}}
/* Every animation (a view, the case drawer and its backdrop, a modal, a toast,
   a pop-up) runs only for people who have not asked for less motion; the
   linked-row flash and the menu's width transition are also switched off
   under prefers-reduced-motion: reduce. test/a11y.test.js checks that no
   animation is declared outside this block. */
@media (prefers-reduced-motion: no-preference){
  .view.active{animation:fadein .18s ease-out;}
  .drawer-backdrop,.modal-backdrop{animation:fadein .15s ease-out;}
  .drawer{animation:slidein .18s ease-out;}
  .toast,.work-popup{animation:fadein .18s ease-out;}
}
@media (prefers-reduced-motion: reduce){ tr.mk-target td,tr.lg-target td{transition:none;} }
/* The skip link: the first thing on every signed-in page (common.js
   renderSkipLink), out of view until it takes keyboard focus, then a navy
   pill at the top-left that jumps past the bar and the menu to the page. */
.skip-link{position:absolute;left:8px;top:-100px;z-index:200;padding:10px 14px;border-radius:var(--radius-sm);background:var(--navy);color:var(--on-brand);font-weight:600;text-decoration:none;}
.skip-link:focus{top:8px;outline:2px solid var(--accent);outline-offset:2px;text-decoration:none;}
/* Keyboard focus is visible on everything that can take it: the blue ring
   on fields (as their :focus rules already draw), the outline on links,
   buttons and rows opened with Enter (tr.clickable, tabindex="0"). */
input:focus-visible,select:focus-visible,textarea:focus-visible{outline:none;border-color:var(--accent);box-shadow:var(--ring);}
a:focus-visible,button:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--accent);outline-offset:2px;}
tr.clickable:focus-visible{outline:2px solid var(--accent);outline-offset:-2px;} tr.clickable:focus-visible td{background:var(--surface-selected);}
.pagehead{margin-bottom:26px;} .pagehead h1{font-family:var(--font-display);font-size:1.6875rem;font-weight:700;margin:0 0 4px;letter-spacing:-0.02em;} .pagehead p{margin:0;color:var(--ink-soft);font-size:0.84375rem;max-width:760px;}
.section{margin-bottom:32px;}
.section-title{font-family:var(--font-display);font-size:0.9375rem;font-weight:700;margin:0 0 12px;padding-bottom:8px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:baseline;gap:12px;}

/* ---- KPI tiles ---- */
.kpirow{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;}
.kpi{padding:16px 18px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-sm);position:relative;overflow:hidden;}
.kpi::after{content:"";position:absolute;left:0;right:0;top:0;height:3px;background:var(--grad-blue);opacity:0.9;}
.kpi .num{font-family:var(--font-display);font-size:1.3125rem;font-weight:700;overflow-wrap:anywhere;line-height:1.25;letter-spacing:-0.02em;color:var(--ink-brand);font-variant-numeric:tabular-nums;}
.kpi .lbl{font-size:max(11px, 0.75rem);color:var(--ink-soft);margin-top:5px;}

/* ---- Panels, forms, buttons ---- */
.panel{background:var(--bg-panel);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-sm);}
.panel-pad{padding:22px 24px;}
.panel.scroll-x{padding:4px 6px;}
.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:14px 18px;}
.field{display:flex;flex-direction:column;gap:6px;} .field.full{grid-column:1/-1;}
.field label, .field .field-spacer{font-size:max(11px, 0.78125rem);font-weight:600;color:var(--ink-soft);} .field output{display:block;}
.field input, .field select, .field textarea{padding:9px 12px;border:1px solid var(--line-strong);border-radius:var(--radius-sm);background:var(--surface);width:100%;transition:border-color .15s,box-shadow .15s;}
.field input:focus, .field select:focus, .field textarea:focus{outline:none;border-color:var(--accent);box-shadow:var(--ring);}
.field input[type="date"], .field input[type="time"]{min-height:38px;}
.checkline{display:flex;align-items:center;gap:8px;padding-top:4px;} .checkline input{width:auto;accent-color:var(--blue);}
input[type="checkbox"],input[type="radio"]{accent-color:var(--blue);}
.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px;padding-top:16px;border-top:1px solid var(--line);}
.err{font-size:max(11px, 0.78125rem);color:var(--negative-ink);margin-top:2px;display:none;}
/* A field's own error (common.js fieldError, audit B7): shown under the field it names. */
.err[data-field-err]{display:block;margin:4px 0 0;}
/* Delete and History of a figures form: plain buttons in one group beside Clear and Save (audit B10). */
.form-actions .choice-group{display:flex;flex-wrap:wrap;gap:10px;}
button.btn, a.btn{padding:9px 16px;border-radius:var(--radius-sm);border:1px solid var(--line);background:var(--surface);cursor:pointer;font-weight:600;font-size:0.84375rem;text-decoration:none;color:var(--ink);display:inline-block;box-shadow:var(--shadow-sm);transition:background .15s,border-color .15s,transform .12s,box-shadow .15s;line-height:1.3;}
button.btn:hover, a.btn:hover{background:var(--surface-2);border-color:var(--line-hover);text-decoration:none;}
button.btn:active{transform:translateY(1px);}
button.btn-primary, a.btn-primary{background:var(--grad-navy);border-color:transparent;color:var(--on-brand);box-shadow:var(--btn-glow);}
button.btn-primary:hover, a.btn-primary:hover{background:var(--grad-navy);filter:brightness(1.1);color:var(--on-brand);}
button.btn-danger{background:var(--negative-fill);border-color:transparent;color:var(--on-brand);} button.btn-danger:hover{background:var(--negative-fill-strong);color:var(--on-brand);}
button.btn:disabled{opacity:0.55;cursor:not-allowed;transform:none;}
.rowbtn{padding:5px 10px;font-size:max(11px, 0.75rem);margin-right:6px;box-shadow:none;}
/* Keyboard focus is always visible: a blue ring outside the control. */
button.btn:focus-visible, a.btn:focus-visible, .module-tab:focus-visible, button.linkish:focus-visible{outline:2px solid var(--accent);outline-offset:2px;}
.navitem:focus-visible, .sidebar-foot a:focus-visible, .topbar a:focus-visible{outline:2px solid var(--side-link);outline-offset:1px;}
/* A row of equal choices (PDF, Word, Excel and PowerPoint; a case's next
   step): none is picked out in advance. The one under the pointer or the
   keyboard takes the navy look, so the person sees which one they are about
   to choose. Mark the row with class="choice-group"; never put btn-primary
   on one of its buttons. */
.choice-group .btn{cursor:pointer;}
.choice-group .btn:hover, .choice-group .btn:focus-visible{background:var(--grad-navy);border-color:transparent;color:var(--on-brand);box-shadow:var(--btn-glow);text-decoration:none;}
/* A choice that is not ready yet (a day's report before a day is chosen) stays faded and does not light up. */
.choice-group .btn[aria-disabled="true"], .choice-group .btn[aria-disabled="true"]:hover, .choice-group .btn[aria-disabled="true"]:focus-visible, .choice-group .btn:disabled, .choice-group .btn:disabled:hover{background:var(--surface);border-color:var(--line);color:var(--ink);box-shadow:none;opacity:0.5;cursor:not-allowed;}
/* Toggles (period, view, metric, tab and status pills): the navy one is the
   current choice. The others take a light blue on hover and focus, so the
   person sees which one they are about to pick; the chosen one stays navy. */
.pill{padding:6px 14px;font-size:max(11px, 0.78125rem);border-radius:999px;box-shadow:none;}
.btn.pill:hover, .btn.pill:focus-visible{background:var(--surface-selected);border-color:var(--accent-soft);color:var(--ink-brand);}
.btn.pill.active, .btn.pill.active:hover, .btn.pill.active:focus-visible{background:var(--navy);border-color:var(--navy);color:var(--on-brand);}

/* ---- Tables ---- */
.ledger{width:100%;font-size:0.8125rem;}
.ledger th{text-align:left;font-weight:600;color:var(--ink-soft);font-size:max(11px, 0.6875rem);text-transform:uppercase;letter-spacing:0.06em;padding:10px 12px;border-bottom:1px solid var(--line);white-space:nowrap;background:var(--surface-2);}
.ledger td{padding:10px 12px;border-bottom:1px solid var(--line-soft);vertical-align:top;}
.ledger tr:last-child td{border-bottom:none;}
.ledger tbody tr:hover td, .ledger tr:hover td{background:var(--surface-hover);}
.num-cell{font-variant-numeric:tabular-nums;}
tr.clickable{cursor:pointer;} tr.clickable:hover td{background:var(--surface-selected);} tr.clickable.active td{background:var(--surface-selected);}

/* ---- Tags ---- */
.tag{display:inline-flex;align-items:center;gap:5px;padding:3px 10px;border-radius:999px;font-size:max(11px, 0.71875rem);font-weight:600;white-space:nowrap;line-height:1.4;}
.tag::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;opacity:0.8;}
.tag-cross{background:var(--st-blue);color:var(--st-blue-ink);} .tag-up{background:var(--surface-selected);color:var(--ink-brand);}
.tag-open{background:var(--negative-bg);color:var(--negative-ink);} .tag-resolved{background:var(--positive-bg);color:var(--positive-ink);}
.tag-admin{background:var(--st-blue);color:var(--st-blue-ink);} .tag-role{background:var(--surface-selected);color:var(--ink-brand);}
.tag-active{background:var(--positive-bg);color:var(--positive-ink);} .tag-inactive{background:var(--negative-bg);color:var(--negative-ink);}
.tag-locked{background:var(--warning-bg);color:var(--warning-ink);}
.tag-green{background:var(--positive-bg);color:var(--positive-ink);} .tag-amber{background:var(--warning-bg);color:var(--warning-ink);}
.tag-red{background:var(--negative-bg);color:var(--negative-ink);} .tag-none{background:var(--line-soft);color:var(--ink-soft);}
.team-card{border-left:4px solid var(--line);} .team-card.green{border-left-color:var(--mark-green);} .team-card.amber{border-left-color:var(--mark-amber);} .team-card.red{border-left-color:var(--mark-red);}

/* ---- Misc blocks ---- */
.subblock{grid-column:1/-1;background:var(--surface-2);border:1px solid var(--line);border-radius:var(--radius-sm);padding:14px 16px;margin-top:2px;}
.prodcheck-row{display:flex;flex-wrap:wrap;gap:12px 20px;margin-top:6px;} .prodcheck-row label{display:flex;align-items:center;gap:6px;font-size:0.8125rem;} .prodcheck-row input{width:auto;}
.clients-layout{display:grid;grid-template-columns:280px 1fr;gap:24px;align-items:flex-start;}
.client-list{border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:var(--bg-panel);max-height:70vh;overflow-y:auto;box-shadow:var(--shadow-sm);}
.client-item{padding:12px 14px;border-bottom:1px solid var(--line-soft);cursor:pointer;transition:background .12s;}
.client-item:hover{background:var(--surface-2);}
.client-item.active{background:var(--surface-selected);border-left:3px solid var(--blue);padding-left:11px;}
.empty-note{color:var(--ink-muted);font-size:0.8125rem;padding:14px 0;}
.scroll-x{overflow-x:auto;}
.warn-banner{border:1px solid var(--warning-line);background:var(--warning-bg);color:var(--warning-ink);border-radius:var(--radius-sm);padding:10px 14px;margin-bottom:16px;font-size:0.8125rem;display:none;}
.secret{font-family:ui-monospace,Consolas,monospace;font-size:1rem;letter-spacing:1px;background:var(--surface);border:1px dashed var(--blue);padding:10px 14px;border-radius:var(--radius-sm);display:inline-block;margin-top:6px;user-select:all;}
pre.json{margin:0;font-size:max(11px, 0.71875rem);white-space:pre-wrap;word-break:break-word;max-width:420px;color:var(--ink-soft);}
.bar-row{display:grid;grid-template-columns:minmax(120px,40%) 1fr minmax(40px,max-content);align-items:center;gap:8px;font-size:max(11px, 0.75rem);margin:5px 0;}
.bar-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.bar{display:block;height:9px;background:var(--grad-blue);border-radius:999px;min-width:2px;}
.bar-num{text-align:right;font-variant-numeric:tabular-nums;color:var(--ink-soft);}
.holding-row{display:flex;gap:8px;margin-bottom:6px;} .holding-row input{padding:7px 9px;border:1px solid var(--line-strong);border-radius:var(--radius-sm);}

/* ---- Top module bar (every page) ---- */
.module-bar{position:sticky;top:env(safe-area-inset-top,0px);z-index:50;display:flex;flex-wrap:nowrap;gap:8px 18px;align-items:center;min-height:56px;padding:8px 20px;background:var(--bar-bg);backdrop-filter:saturate(180%) blur(12px);-webkit-backdrop-filter:saturate(180%) blur(12px);border-bottom:1px solid var(--line);color:var(--ink);font-size:0.8125rem;box-shadow:var(--bar-shadow);}
.module-brand{display:flex;align-items:center;flex-shrink:0;padding-right:18px;border-right:1px solid var(--line);text-decoration:none;}
.module-brand:hover{text-decoration:none;}
.module-logo{display:block;height:60px;width:auto;flex-shrink:0;}
.module-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px;}
.module-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 16px;padding-left:2px;}
.module-product{font-family:var(--font-display);color:var(--ink-brand);font-size:0.9375rem;font-weight:700;letter-spacing:-0.01em;white-space:nowrap;}
.module-tabs{display:flex;flex-wrap:wrap;gap:4px;}
.module-tab{padding:6px 13px;border:1px solid transparent;border-radius:999px;background:transparent;color:var(--ink-soft);cursor:pointer;font-size:max(11px, 0.78125rem);font-weight:600;text-decoration:none;font-family:inherit;transition:background .15s,color .15s;}
.module-tab:hover{background:var(--line-soft);color:var(--ink);text-decoration:none;}
.module-tab.active{background:var(--navy);color:var(--on-brand);box-shadow:var(--tab-glow);}
.module-user{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center;color:var(--ink-soft);}
.module-user .module-tab{border-color:var(--line);}
body.has-module-bar .app{min-height:calc(100vh - var(--bar-h,56px));}
body.has-module-bar .topbar{padding:12px 28px;}

/* ---- Users: tabs, people list, organisation chart ---- */
.admin-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 16px;}
.admin-toolbar{display:flex;flex-wrap:wrap;gap:10px 16px;align-items:center;justify-content:space-between;margin-bottom:12px;}
.admin-toolbar h3, .admin-toolbar h2{margin:0;}
.admin-toolbar .count{font-size:max(11px, 0.78125rem);font-weight:500;color:var(--ink-muted);margin-left:6px;}
.admin-filters{display:flex;flex-wrap:wrap;gap:8px;align-items:center;}
.admin-filters input,.admin-filters select{padding:8px 11px;border:1px solid var(--line-strong);border-radius:var(--radius-sm);background:var(--surface);min-width:0;}
.admin-filters input[type="search"]{width:260px;max-width:100%;}
.admin-filters input:focus,.admin-filters select:focus{outline:none;border-color:var(--accent);box-shadow:var(--ring);}
.view-as-picker{display:flex;flex-wrap:wrap;gap:8px 10px;align-items:center;margin:0 0 14px;padding:10px 12px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface-2);}
.view-as-picker label{font-weight:600;color:var(--ink);}
.view-as-picker select{padding:8px 11px;border:1px solid var(--line-strong);border-radius:var(--radius-sm);background:var(--surface);min-width:0;max-width:100%;}
.view-as-picker select:focus{outline:none;border-color:var(--accent);box-shadow:var(--ring);}
.view-as-picker .muted{flex-basis:100%;font-size:max(11px, 0.78125rem);}
/* The Platform notice card (the notice during updates, common.js renderStatusBar). */
.notice-state{margin:0 0 14px;padding:10px 12px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface-2);font-size:0.8125rem;}
.notice-state.showing{background:var(--warning-bg);color:var(--warning-ink);border-color:var(--warning-line);}
.notice-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px;}
.unit-checks{display:flex;flex-wrap:wrap;gap:6px 16px;}
.unit-checks .unit-check{display:inline-flex;flex:0 0 auto;align-items:center;gap:6px;font-size:0.84375rem;font-weight:400;color:var(--ink);white-space:nowrap;cursor:pointer;}
.muted{color:var(--ink-muted);font-size:max(11px, 0.75rem);}
.person{display:flex;align-items:center;gap:10px;}
.avatar{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;flex-shrink:0;background:var(--surface-selected);color:var(--ink-brand);font-size:11.5px;font-weight:700;letter-spacing:0.02em;}
.org-tree ul{list-style:none;margin:0;padding:0 0 0 26px;position:relative;}
.org-tree > ul{padding-left:0;}
.org-tree ul ul{border-left:2px solid var(--line-soft);margin-left:14px;padding-left:18px;}
.org-node{margin:6px 0;position:relative;}
.org-tree ul ul > .org-node::before{content:"";position:absolute;left:-18px;top:24px;width:16px;border-top:2px solid var(--line-soft);}
.org-card{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:9px 12px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-sm);box-shadow:var(--shadow-sm);}
.org-card:hover{border-color:var(--line-hover);}
.org-node.revoked > .org-card{opacity:0.6;}
.org-main{display:flex;flex-direction:column;min-width:180px;flex:1;}
.org-main > .tag{align-self:flex-start;margin-top:2px;}
.org-count{font-size:max(11px, 0.71875rem);color:var(--ink-soft);background:var(--line-soft);border-radius:999px;padding:2px 9px;white-space:nowrap;}
.org-actions{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-left:auto;}
.org-actions select,.org-actions input{padding:6px 9px;border:1px solid var(--line-strong);border-radius:var(--radius-xs);max-width:260px;}
.org-toggle{width:24px;height:24px;min-width:24px;min-height:24px;border-radius:6px;border:1px solid var(--line);background:var(--surface-2);cursor:pointer;font-weight:700;line-height:1;color:var(--ink-soft);padding:0;}
.org-toggle-spacer{width:24px;display:inline-block;}
.org-heading, .page h3.org-heading{margin:22px 0 8px;font-family:inherit;font-weight:700;font-size:0.8125rem;color:var(--ink-soft);text-transform:uppercase;letter-spacing:0.06em;}

/* ---- Report download panel ---- */
.report-panel{position:fixed;top:calc(var(--bar-h,56px) + 8px);right:16px;z-index:60;width:360px;max-width:calc(100vw - 32px);max-height:calc(100vh - var(--bar-h,56px) - 16px);max-height:calc(100dvh - var(--bar-h,56px) - 16px);overflow-y:auto;overscroll-behavior:contain;background:var(--surface-raised);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-lg);padding:18px 20px;display:flex;flex-direction:column;gap:12px;}
/* Opened from the side menu: beside it, level with the top of the page. */
.report-panel.from-sidebar{left:264px;right:auto;}
.report-panel h3{margin:0;font-size:0.9375rem;font-weight:700;}
/* ---- The one period control (js/lib/period.js) ---- */
.period{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:flex-end;min-width:0;}
.period-presets{display:flex;flex-wrap:wrap;gap:4px;}
.period-custom{display:flex;flex-wrap:wrap;gap:10px 12px;align-items:flex-end;}
.period-custom .field{min-width:140px;}
.period-custom input[type="date"]{padding:8px 11px;border:1px solid var(--line-strong);border-radius:var(--radius-sm);background:var(--surface);width:100%;}
.period-custom input[type="date"]:focus{outline:none;border-color:var(--accent);box-shadow:var(--ring);}
.period-note{flex-basis:100%;margin:0;font-size:max(11px, 0.78125rem);color:var(--ink-soft);}
.period-note[title]:not([title=""]){cursor:help;text-decoration:underline dotted;text-underline-offset:3px;}
.print-only{display:none;}
@media print{ .print-only{display:inline;} .screen-only{display:none;} }
.period-bar{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:flex-end;margin-bottom:16px;}
.period-bar > .period-host{flex:1 1 320px;min-width:0;}
/* A filter drop-down beside the period (the Sales dashboard's Market, migration 027b). */
.period-bar > .period-filters{flex:0 0 auto;}
.report-panel .period-custom .field{flex:1 1 120px;min-width:0;}
@media (max-width: 600px), (max-height: 500px) and (pointer: coarse){ .period-custom .field{flex:1 1 130px;min-width:0;} }
.report-presets{display:flex;flex-wrap:wrap;gap:4px;}
.report-dates{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.report-actions{display:flex;justify-content:flex-end;gap:8px;padding-top:6px;border-top:1px solid var(--line);}

/* ---- Simple pages (users, audit log) ---- */
.topbar{display:flex;flex-wrap:wrap;gap:10px 16px;justify-content:space-between;align-items:center;padding:16px 32px;background:var(--grad-navy);color:var(--on-brand);}
.topbar a{color:var(--side-ink-soft);text-decoration:none;font-size:0.84375rem;margin-left:18px;}
.topbar .brand{margin:0;font-size:1rem;font-weight:600;flex-shrink:0;}
.topbar .brand-logo{height:30px;max-width:none;}
.brand-page{font-weight:600;}
.page{max-width:1140px;margin:0 auto;padding:36px 28px 64px;}
.page h1{font-family:var(--font-display);font-size:1.6875rem;font-weight:700;margin:0 0 6px;letter-spacing:-0.02em;}
.page p.sub{color:var(--ink-soft);margin:0 0 26px;}
.page .panel{padding:22px 24px;margin-bottom:24px;}
.page h3, .page h2.sub-heading{margin:0 0 14px;font-family:var(--font-display);font-weight:700;font-size:0.9375rem;}

/* ---- Searchable drop-down (js/lib/combobox.js) ---- */
.cbx{position:relative;width:100%;}
.cbx .cbx-input{width:100%;padding-right:34px;}
.cbx-toggle{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:28px;height:28px;border:none;background:none;color:var(--ink-muted);cursor:pointer;border-radius:6px;display:flex;align-items:center;justify-content:center;padding:0;}
.cbx-toggle:hover{background:var(--line-soft);color:var(--ink);}
.cbx.open .cbx-toggle svg{transform:rotate(180deg);}
.cbx-list{position:absolute;z-index:40;left:0;right:0;top:calc(100% + 4px);max-height:300px;overflow-y:auto;margin:0;padding:4px;list-style:none;background:var(--surface-raised);border:1px solid var(--line);border-radius:var(--radius-sm);box-shadow:var(--shadow-lg);}
.cbx-opt{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:8px 10px;border-radius:6px;cursor:pointer;font-size:0.84375rem;}
.cbx-opt.active{background:var(--surface-selected);}
.cbx-opt.selected .cbx-label{font-weight:600;color:var(--ink-brand);}
.cbx-opt.selected::after{content:"✓";color:var(--link);font-weight:700;margin-left:auto;}
.cbx-opt.muted{color:var(--ink-muted);}
.cbx-hint{font-size:max(11px, 0.71875rem);color:var(--ink-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:68%;}
.cbx-group{padding:8px 10px 4px;font-size:max(11px, 0.6875rem);font-weight:700;text-transform:uppercase;letter-spacing:0.07em;color:var(--ink-muted);}
.cbx-empty,.cbx-more{padding:9px 10px;font-size:max(11px, 0.78125rem);color:var(--ink-muted);}
.cbx.invalid .cbx-input{border-color:var(--negative-fill);box-shadow:var(--ring-err);}
.cbx.disabled .cbx-toggle{display:none;}

/* The owner picker (js/lib/people.js): the people chosen as tokens above the
   searchable box; the name as it was typed, kept under it. */
.people{display:flex;flex-direction:column;gap:6px;width:100%;}
.people-tokens{display:flex;flex-wrap:wrap;gap:6px;}
.people-tokens[hidden], .people-typed[hidden], .people-note[hidden], .people-typed [hidden]{display:none;}
.people-token{display:inline-flex;align-items:center;gap:6px;padding:3px 6px 3px 3px;border:1px solid var(--line);border-radius:999px;background:var(--surface);font-size:max(11px, 0.78125rem);font-weight:500;color:var(--ink);line-height:1.3;}
.people-remove{border:none;background:none;width:24px;height:24px;min-width:24px;min-height:24px;border-radius:50%;padding:0;font-size:15px;line-height:1;color:var(--ink-muted);cursor:pointer;}
.people-remove:hover{background:var(--line-soft);color:var(--ink);}
.people-remove:focus-visible{outline:2px solid var(--accent);outline-offset:1px;}
.people.disabled .people-token{background:var(--line-soft);}
.people-typed{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;font-size:max(11px, 0.78125rem);color:var(--ink-soft);}
.people-typed-label{color:var(--ink-muted);}
.people-typed-input{flex:1 1 180px;}
.people-note{font-size:max(11px, 0.78125rem);color:var(--negative-ink);}
.people-note.people-note-info{color:var(--ink-soft);}
.avatar-sm{width:22px;height:22px;font-size:9.5px;}
.av-0{background:var(--av-0-bg);color:var(--av-0-ink);} .av-1{background:var(--av-1-bg);color:var(--av-1-ink);} .av-2{background:var(--av-2-bg);color:var(--av-2-ink);} .av-3{background:var(--av-3-bg);color:var(--av-3-ink);}
.av-4{background:var(--av-4-bg);color:var(--av-4-ink);} .av-5{background:var(--av-5-bg);color:var(--av-5-ink);} .av-6{background:var(--av-6-bg);color:var(--av-6-ink);} .av-7{background:var(--av-7-bg);color:var(--av-7-ink);}
.owners{display:inline-flex;flex-wrap:wrap;gap:4px 10px;align-items:center;}
.owner{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;}
.owners-typed{color:var(--ink-soft);}

/* ---- Front Office workflow ---- */
.toolbar{display:flex;flex-wrap:wrap;gap:8px 10px;align-items:center;margin-bottom:14px;}
.toolbar .grow{flex:1;min-width:200px;}
.toolbar input[type="search"],.toolbar input[type="text"],.toolbar select,.toolbar input[type="date"]{padding:8px 11px;border:1px solid var(--line-strong);border-radius:var(--radius-sm);background:var(--surface);width:100%;}
.toolbar input:focus,.toolbar select:focus{outline:none;border-color:var(--accent);box-shadow:var(--ring);}
.toolbar .field{min-width:150px;}
.toolbar .sep{width:1px;align-self:stretch;background:var(--line);margin:0 4px;}
.form-section{border-top:1px solid var(--line);padding-top:18px;margin-top:18px;}
.form-section:first-child{border-top:none;padding-top:0;margin-top:0;}
.form-section > h3{display:flex;align-items:center;gap:10px;font-size:0.875rem;margin:0 0 14px;}
.form-section > h3 .step{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;background:var(--navy);color:var(--on-brand);font-size:max(11px, 0.71875rem);}
.form-section > h3 .aside{margin-left:auto;font-weight:500;font-size:max(11px, 0.78125rem);color:var(--ink-muted);}
.formgrid.three{grid-template-columns:repeat(3,1fr);}
.formgrid.four{grid-template-columns:repeat(4,minmax(0,1fr));}
@media (min-width: 1101px){ .formgrid.three > .wide{grid-column:span 2;} }
.field .help{font-size:max(11px, 0.75rem);color:var(--ink-muted);}
/* A box that cannot be changed looks so: the client of a transaction on its Edit, the Admin card's history
   day (the review of Release 4 part B, P-M(4) and P-M(8)); its help line says why. */
.field input[readonly]{background:var(--surface-2);color:var(--ink-soft);}
.field .req, label .req, .req-legend .req{color:var(--negative-ink);}
/* The "* required" line under a form's fields (common.js markRequired, audit B6). */
.req-legend{margin:6px 0 0;}
.editing-banner{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;justify-content:space-between;background:var(--st-blue);border:1px solid var(--st-blue-2);color:var(--st-blue-ink);border-radius:var(--radius-sm);padding:10px 14px;margin-bottom:16px;font-size:0.8125rem;}
.client-hint{font-size:max(11px, 0.78125rem);border-radius:var(--radius-sm);padding:8px 12px;background:var(--positive-bg);color:var(--positive-ink);border:1px solid var(--positive-line);}
.client-hint.warn{background:var(--warning-bg);color:var(--warning-ink);border-color:var(--warning-line);}
details.more{grid-column:1/-1;border:1px dashed var(--line);border-radius:var(--radius-sm);padding:10px 14px;}
details.more summary{cursor:pointer;font-weight:600;font-size:0.8125rem;color:var(--ink-soft);}
details.more[open] summary{margin-bottom:12px;}
.kpi .sub{font-size:max(11px, 0.75rem);color:var(--ink-soft);margin-top:3px;font-variant-numeric:tabular-nums;}
.kpi.warn .num{color:var(--warning-ink);} .kpi.alert .num{color:var(--negative-ink);} .kpi.good .num{color:var(--positive-ink);}
.kpi.clickable{cursor:pointer;transition:transform .12s,box-shadow .15s;} .kpi.clickable:hover{transform:translateY(-1px);box-shadow:var(--shadow);}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px;}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;}
.panel h3.panel-title{font-size:0.875rem;margin:0 0 12px;display:flex;justify-content:space-between;align-items:baseline;gap:10px;}
.rule-note{font-size:max(11px, 0.75rem);color:var(--ink-muted);margin:8px 0 0;}
details.rule-note summary{cursor:pointer;color:var(--ink-soft);font-weight:600;}
details.rule-note p{margin:6px 0 0;line-height:1.6;}
.kpirow.dense{grid-template-columns:repeat(auto-fit,minmax(140px,1fr));}
/* Local vs Foreign & diaspora (the Sales market split, migration 027b): two columns, stacked on a phone. */
.market-split{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}
@media (max-width: 600px), (max-height: 500px) and (pointer: coarse){.market-split{grid-template-columns:1fr;}}
.market-col{min-width:0;}
.market-col.chosen{outline:2px solid var(--accent);outline-offset:4px;border-radius:var(--radius);}
.kpirow.four{grid-template-columns:repeat(4,1fr);}
/* ---- Report and dashboard standards ---- */
/* Every KPI shows its change on the previous period (public/js/lib/kpi.js): green when the move is good news, red when it is not. */
.kpi .delta{font-size:max(11px, 0.75rem);margin-top:4px;font-variant-numeric:tabular-nums;}
.kpi .delta.better{color:var(--positive-ink)} .kpi .delta.worse{color:var(--negative-ink)} .kpi .delta.flat{color:var(--ink-soft)}
/* The largest bar of a breakdown is highlighted in blue; the others share one muted colour (the reports use the same two). */
.bar-row.ranked .bar{background:var(--bar-muted);}
.bar-row.ranked.top .bar{background:var(--blue);}
.bar-row.top .bar-label,.bar-row.top .bar-num{font-weight:600;color:var(--ink);}
/* The story: the insight in words, above the figures. */
.story{border-left:3px solid var(--blue);padding:4px 14px;margin:0 0 16px;font-size:0.875rem;color:var(--ink);line-height:1.55;}
.story p{margin:0 0 4px;font-weight:600;} .story p:last-child{margin-bottom:0;}
@media (max-width: 900px){ .kpirow.four{grid-template-columns:1fr 1fr;} }
.nowrap{white-space:nowrap;}
.pagehead.with-actions{display:flex;flex-wrap:wrap;gap:12px 24px;align-items:flex-end;justify-content:space-between;}
.pagehead .downloads{display:flex;flex-wrap:wrap;gap:6px;align-items:center;}
.pagehead .downloads .btn{margin:0;}
.st{display:inline-flex;align-items:center;gap:5px;padding:3px 10px;border-radius:999px;font-size:max(11px, 0.71875rem);font-weight:600;white-space:nowrap;line-height:1.4;background:var(--line-soft);color:var(--ink-soft);}
.st::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;opacity:0.85;}
.st-new{background:var(--st-sky);color:var(--st-sky-ink);} .st-follow{background:var(--warning-bg);color:var(--warning-ink);} .st-docs{background:var(--st-orange);color:var(--st-orange-ink);}
.st-submitted{background:var(--st-blue);color:var(--st-blue-ink);} .st-approval{background:var(--st-violet);color:var(--st-violet-ink);} .st-client{background:var(--st-pink);color:var(--st-pink-ink);}
.st-done{background:var(--positive-bg);color:var(--positive-ink);} .st-closed{background:var(--line-soft);color:var(--ink-soft);} .st-no{background:var(--st-slate);color:var(--ink-muted);text-decoration:line-through;}
.due{font-variant-numeric:tabular-nums;white-space:nowrap;} .due.over{color:var(--negative-ink);font-weight:600;} .due.today{color:var(--warning-ink);font-weight:600;}
/* ---- Chips (chip() in common.js) ----
   A status reads .chip.st-<standard status>, a priority .chip.pr-<standard
   priority>, a due date that has passed .chip.due-over and one due today
   .chip.due-today. The text is the unit's own word; the colour is the
   standard's, so In Progress is the same blue in every unit. A status the
   person may change is the same chip as a drop-down (.chip-select). */
.chip{display:inline-flex;align-items:center;gap:5px;padding:3px 10px;border-radius:999px;font-size:max(11px, 0.71875rem);font-weight:600;white-space:nowrap;line-height:1.4;background:var(--st-grey);color:var(--st-grey-ink);}
.chip.st-not_started{background:var(--st-grey);color:var(--st-grey-ink);}
.chip.st-in_progress{background:var(--st-blue);color:var(--st-blue-ink);}
.chip.st-waiting{background:var(--st-amber);color:var(--st-amber-ink);}
.chip.st-done{background:var(--st-green);color:var(--st-green-ink);}
.chip.st-closed{background:var(--st-slate);color:var(--st-slate-ink);text-decoration:none;}
.chip.pr-low{background:var(--st-slate);color:var(--st-slate-ink);}
.chip.pr-medium{background:var(--st-grey);color:var(--st-grey-ink);}
.chip.pr-high{background:var(--st-amber);color:var(--st-amber-ink);}
.chip.pr-urgent{background:var(--st-red);color:var(--st-red-ink);}
.chip.due-over{background:var(--st-red);color:var(--st-red-ink);}
.chip.due-today{background:var(--st-amber);color:var(--st-amber-ink);}
/* Unattended work (5 October 2026): "Not touched for N working days", in the
   tokens the Waiting chip uses; text, never a target. */
.chip.chip-idle{background:var(--st-amber);color:var(--st-amber-ink);}
.chip + .chip{margin-left:4px;}
/* Away (README "Away"): the marker beside a name is words, "Away, back 19 Oct" or "Away"; the colour is the idle marker's. */
.chip.chip-away{background:var(--st-amber);color:var(--st-amber-ink);}
.away-now{margin:0;font-weight:600;grid-column:1/-1;}
.away-now[hidden]{display:none;}
.away-what{margin:14px 0 0;font-size:max(12px, 0.8125rem);line-height:1.5;color:var(--ink-soft);}
/* Assigning to someone who is away: the sentence under the picker, then colleagues of the unit who are here. */
.people-away{margin:6px 0 0;padding:8px 10px;border-radius:var(--radius-sm);background:var(--st-amber);color:var(--st-amber-ink);font-size:max(12px, 0.8125rem);line-height:1.4;}
.people-away[hidden], .people-away-pick[hidden]{display:none;}
.people-away-pick{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:8px 0 0;font-size:max(12px, 0.8125rem);color:var(--ink-soft);}
.people-away-word{color:var(--ink-soft);font-weight:400;}
@media (max-width: 600px), (max-height: 500px) and (pointer: coarse){
  .people-away-pick{flex-direction:column;align-items:stretch;}
  .people-away-pick .btn{width:100%;min-height:48px;}
  #away-form .form-actions{flex-direction:column;}
  #away-form .form-actions .btn{width:100%;min-height:48px;}
}
/* The words under a choice of a filter's list ("Unattended": whose number it is). */
.fl-hint{display:block;font-weight:400;font-size:max(11px, 0.75rem);color:var(--ink-muted);white-space:normal;}
/* My work, Unattended: Owners and Held by, each with its own Take over. */
.un-who{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;}
.un-who .btn{flex:0 0 auto;}
.un-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin:0 0 12px;}
.un-touched{white-space:nowrap;}
select.chip-select{border:1px solid transparent;padding:3px 24px 3px 10px;font-family:inherit;cursor:pointer;max-width:100%;}
select.chip-select:hover{border-color:var(--ink-faint);} select.chip-select:focus-visible{outline:2px solid var(--accent);outline-offset:2px;}
select.chip-select option{background:var(--surface);color:var(--ink);font-weight:400;}
.as-typed{color:var(--ink-muted);font-size:max(11px, 0.71875rem);font-style:italic;white-space:nowrap;}
/* ---- The filter bar of a list (js/lib/filters.js) ----
   One row above the list: the drop-downs (the list's own, Status, Priority,
   Owner, Due date), Clear filters, the page's search box, the count "n of
   m", and at the right end the tools (the layout switch, Export CSV). The
   drop-downs themselves are the "Filter menu" block below. */
.filter-bar{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;margin:0 0 12px;min-width:0;}
.filter-bar .filter-group{display:flex;flex-direction:row;gap:4px;min-width:0;}
.filter-bar .filter-search input{padding:7px 10px;border:1px solid var(--line-strong);border-radius:var(--radius-sm);background:var(--surface);font:inherit;font-size:0.8125rem;min-width:150px;max-width:100%;}
.filter-bar .filter-search input:focus{outline:none;border-color:var(--accent);box-shadow:var(--ring);}
.filter-count{margin:0;font-size:max(11px, 0.78125rem);color:var(--ink-soft);font-variant-numeric:tabular-nums;white-space:nowrap;}
.filter-count:empty{display:none;}
.audit-typed{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:flex-end;}
.audit-typed .field{margin:0;min-width:180px;}
@media (max-width: 600px), (max-height: 500px) and (pointer: coarse){ .filter-bar .filter-search{flex:1 1 100%;} .filter-bar .filter-search input{width:100%;} }
/* The step arrows of the period control: the period before, the period after. */
.period-step{display:flex;gap:4px;align-items:center;}
.period-step .btn{padding:6px 10px;min-width:34px;}
.period-step .btn:disabled{opacity:0.45;cursor:not-allowed;}
.edited{font-size:max(11px, 0.6875rem);color:var(--ink-muted);white-space:nowrap;}
button.linkish{border:none;background:none;padding:0;color:var(--link);cursor:pointer;font-size:inherit;font-weight:600;min-height:24px;min-width:24px;}
button.linkish:hover{text-decoration:underline;}
.actions{white-space:nowrap;}
.actions .btn{margin:0 4px 0 0;}
.acct{font-variant-numeric:tabular-nums;white-space:nowrap;}
.acct small{display:block;font-size:max(11px, 0.6875rem);color:var(--ink-muted);text-transform:uppercase;letter-spacing:0.04em;}
/* My work */
.work-counters{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:22px;}
.worklist{display:flex;flex-direction:column;gap:8px;}
.work-item{display:grid;grid-template-columns:auto 1fr auto;gap:6px 14px;align-items:center;padding:12px 14px;background:var(--surface);border:1px solid var(--line);border-left:4px solid var(--line);border-radius:var(--radius-sm);cursor:pointer;transition:border-color .12s,box-shadow .15s;}
.work-item:hover{box-shadow:var(--shadow);border-color:var(--line-hover);}
.work-item.over{border-left-color:var(--mark-red);} .work-item.today{border-left-color:var(--mark-amber);} .work-item.soon{border-left-color:var(--mark-blue);}
.work-item .who{font-weight:600;}
.work-item .what{color:var(--ink-soft);font-size:max(11px, 0.78125rem);grid-column:2;}
.work-item .meta{text-align:right;font-size:max(11px, 0.75rem);color:var(--ink-soft);}
.work-item .ref{font-size:max(11px, 0.71875rem);color:var(--ink-muted);font-variant-numeric:tabular-nums;white-space:nowrap;}
.email-note{display:flex;gap:10px;align-items:flex-start;font-size:max(11px, 0.78125rem);color:var(--ink-soft);background:var(--surface-2);border:1px solid var(--line);border-radius:var(--radius-sm);padding:10px 14px;margin-top:22px;}
.email-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px;}
.email-actions .btn{margin:0;}
/* Case drawer */
.drawer-backdrop{position:fixed;inset:0;background:var(--overlay-soft);z-index:79;}
.drawer{position:fixed;top:0;right:0;bottom:0;width:640px;max-width:100vw;background:var(--bg);z-index:80;box-shadow:var(--shadow-lg);display:flex;flex-direction:column;}
.drawer-head{padding:18px 22px 14px;background:var(--surface);border-bottom:1px solid var(--line);}
.drawer-head .ref{font-size:max(11px, 0.75rem);color:var(--ink-muted);font-variant-numeric:tabular-nums;}
.drawer-head h2{margin:2px 0 6px;font-size:1.25rem;}
.drawer-head .facts{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:max(11px, 0.78125rem);color:var(--ink-soft);align-items:center;}
.drawer-close{position:absolute;top:14px;right:14px;width:34px;height:34px;border-radius:50%;border:1px solid var(--line);background:var(--surface);cursor:pointer;font-size:18px;line-height:1;color:var(--ink-soft);}
.drawer-close:hover{background:var(--line-soft);color:var(--ink);}
.drawer-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;}
.drawer-body{flex:1;overflow-y:auto;padding:18px 22px 40px;}
.drawer-form{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:16px 18px;margin-bottom:18px;box-shadow:var(--shadow-sm);}
.drawer-form h3{margin:0 0 12px;font-size:0.875rem;}
.drawer-form .formgrid{grid-template-columns:1fr 1fr;}
/* The record drawer, the grid, the toasts, skeletons and empty states
   (phase 3; public/js/lib/drawer.js, public/js/lib/grid.js, common.js toast,
   confirmDialog, skeletonTiles, emptyState). Colours only through the tokens. */
.drawer-tabs{display:flex;gap:2px;padding:0 22px;background:var(--surface);border-bottom:1px solid var(--line);overflow-x:auto;}
.drawer-tab{appearance:none;border:none;background:none;padding:11px 14px 10px;font:inherit;font-size:0.84375rem;font-weight:600;color:var(--ink-soft);cursor:pointer;border-bottom:3px solid transparent;white-space:nowrap;}
.drawer-tab:hover{color:var(--ink);}
.drawer-tab[aria-selected="true"]{color:var(--ink-brand);border-bottom-color:var(--blue);}
.drawer-tab:focus-visible{outline:2px solid var(--accent);outline-offset:-2px;}
.drawer-tab .tab-count{display:inline-block;margin-left:6px;background:var(--negative-fill);color:var(--on-brand);border-radius:999px;font-size:max(11px, 0.6875rem);padding:0 7px;}
.drawer-panel{min-height:120px;}
.drawer-head h2:focus{outline:none;}
.drawer-head h2:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:var(--radius-xs);}
.drawer-owners{display:inline-flex;align-items:center;}
.drawer-foot{padding:12px 22px;background:var(--surface);border-top:1px solid var(--line);}
.drawer-foot .choice-group{display:flex;flex-wrap:wrap;gap:8px;}
/* The value column may be narrower than its widest child (minmax(0,1fr), and min-width:0 on a value):
   a wide table in a value scrolls inside its own box (.scroll-x) and never widens the drawer, at any
   width (the review of Release 4 part B, P-B2: the Assets table of a transaction). */
.dfields{margin:0;display:grid;grid-template-columns:minmax(120px,30%) minmax(0,1fr);gap:0;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;}
.dfield{display:contents;}
.dfields dt{padding:10px 14px;font-size:max(11px, 0.78125rem);font-weight:600;color:var(--ink-soft);border-bottom:1px solid var(--line-soft);background:var(--surface-2);}
.dfields dd{margin:0;padding:10px 14px;font-size:0.84375rem;border-bottom:1px solid var(--line-soft);display:flex;flex-wrap:wrap;gap:6px 10px;align-items:flex-start;justify-content:space-between;overflow-wrap:anywhere;min-width:0;}
.dfields .dval{white-space:pre-wrap;flex:1 1 auto;min-width:0;}
.dfield-change{font-size:max(11px, 0.78125rem);}
.dfield-edit{display:flex;flex-direction:column;gap:8px;width:100%;}
.dfield-edit input,.dfield-edit select,.dfield-edit textarea{padding:8px 11px;border:1px solid var(--line-strong);border-radius:var(--radius-sm);background:var(--surface);width:100%;font:inherit;}
.dfield-edit input:focus,.dfield-edit select:focus,.dfield-edit textarea:focus{outline:none;border-color:var(--accent);box-shadow:var(--ring);}
/* A checkbox or a radio has no border to turn --accent, so the field rings above
   would show it only as a faint halo: it takes the 2 px accent outline instead
   (audit E3). After every field :focus rule, so none of them hides it. */
input[type="checkbox"]:focus-visible,input[type="radio"]:focus-visible{outline:2px solid var(--accent);outline-offset:2px;box-shadow:none;}
.dfield-buttons{display:flex;gap:8px;}
.dfield-msg{font-size:max(11px, 0.78125rem);color:var(--negative-ink);display:flex;gap:8px;align-items:center;flex-wrap:wrap;}
.drawer-more{margin:10px 0 0;}
.drawer-forms{margin-top:22px;}
.pagehead-actions{margin-top:12px;display:flex;gap:8px;flex-wrap:wrap;}
.work-timeline-head{font-size:0.8125rem;color:var(--ink-soft);text-transform:uppercase;letter-spacing:0.06em;margin:4px 0 12px;}
.toast-stack{position:fixed;right:16px;bottom:16px;z-index:90;display:flex;flex-direction:column;gap:8px;align-items:flex-end;max-width:calc(100vw - 32px);}
.toast-stack .toast{position:static;transform:none;left:auto;bottom:auto;display:flex;align-items:center;gap:12px;padding:10px 12px 10px 16px;border-radius:var(--radius-sm);background:var(--positive-fill);color:var(--on-brand);max-width:420px;}
.toast-stack .toast.err{background:var(--negative-fill);}
.toast.undo{background:var(--navy);}
.toast-action{appearance:none;border:1px solid var(--on-brand-line);background:transparent;color:var(--on-brand);font:inherit;font-weight:700;padding:4px 12px;border-radius:var(--radius-xs);cursor:pointer;}
.toast-action:hover,.toast-action:focus-visible{background:var(--on-brand-hover);outline:none;} .toast-action:focus-visible{outline:2px solid var(--on-brand);outline-offset:1px;}
.toast-close{appearance:none;border:none;background:none;color:var(--on-brand);font-size:18px;line-height:1;cursor:pointer;padding:2px 4px;opacity:0.85;}
.toast-text{flex:1 1 auto;}
.skeleton{display:block;height:12px;border-radius:6px;background:var(--line);}
.skeleton.sk-line{height:14px;margin:0 0 12px;} .skeleton.sk-line.short{width:60%;}
.skeleton-tile .sk-num{height:26px;width:50%;margin-bottom:10px;} .skeleton-tile .sk-label{width:80%;}
.skeleton-row td{padding:14px 12px;}
.empty-state{text-align:center;padding:28px 16px;}
.empty-state h3{margin:0 0 6px;font-size:1rem;}
.empty-state p{margin:0 0 14px;color:var(--ink-soft);font-size:0.84375rem;}
tr.empty-state td{text-align:center;padding:28px 16px;}
.ledger thead th{position:sticky;top:0;z-index:1;}
th[aria-sort] button{appearance:none;border:none;background:none;padding:0;font:inherit;color:inherit;text-transform:inherit;letter-spacing:inherit;cursor:pointer;display:inline-flex;gap:4px;align-items:center;}
th[aria-sort] button:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:var(--radius-xs);}
th[aria-sort="ascending"] button,th[aria-sort="descending"] button{color:var(--ink-brand);}
.sort-mark{font-size:9px;}
tr.grid-row{cursor:pointer;}
tr[tabindex]:focus-visible{outline:2px solid var(--accent);outline-offset:-2px;}
tr[tabindex]:focus-visible td{background:var(--surface-selected);}
.grid-period{margin-bottom:12px;}
.history li.restore{border-left-color:var(--mark-green);}
.shortcut-list kbd{font:inherit;font-size:max(11px, 0.75rem);font-weight:600;padding:2px 7px;border:1px solid var(--line);border-bottom-width:2px;border-radius:var(--radius-xs);background:var(--surface-2);}
@media (prefers-reduced-motion: no-preference){
  .skeleton{background:linear-gradient(90deg,var(--line) 0%,var(--line-soft) 50%,var(--line) 100%);background-size:200% 100%;animation:shimmer 1.2s ease-in-out infinite;}
}
@keyframes shimmer{from{background-position:100% 0;}to{background-position:-100% 0;}}
@media (max-width: 600px), (max-height: 500px) and (pointer: coarse){
  .drawer{width:100vw;height:100vh;height:100dvh;border-radius:0;}
  .drawer-foot{position:sticky;bottom:0;}
  .drawer-tabs{padding:0 12px;}
  .dfields{grid-template-columns:minmax(0,1fr);}
  .dfields dt{border-bottom:none;padding-bottom:2px;}
  .ledger-cards thead{display:none;}
  .ledger-cards tbody,.ledger-cards tr,.ledger-cards td{display:block;width:100%;}
  .ledger-cards tr{margin:0 0 10px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-sm);padding:6px 4px;min-height:44px;}
  .ledger-cards td{border-bottom:none;padding:6px 12px;}
  .ledger-cards td[data-label]::before{content:attr(data-label);display:block;font-size:max(11px, 0.6875rem);font-weight:600;color:var(--ink-muted);text-transform:uppercase;letter-spacing:0.05em;}
  .ledger-cards tr.empty-state td::before{content:none;}
  /* My work, Unattended on a phone: the Take over of a card is full width
     when it is the only one; two sit side by side. */
  .un-table .un-who{display:block;}
  .un-table .un-who .btn{display:flex;width:100%;justify-content:center;margin-top:6px;}
  .un-table tr.un-two td.un-own{flex:1 1 calc(50% - 8px);min-width:0;}
  .toast-stack{left:16px;right:16px;align-items:stretch;}
}
/* Timeline */
.timeline{list-style:none;margin:0;padding:0 0 0 22px;position:relative;}
.timeline::before{content:"";position:absolute;left:8px;top:6px;bottom:6px;width:2px;background:var(--line);}
.tl-item{position:relative;margin:0 0 14px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-sm);padding:11px 14px;}
.tl-item::before{content:"";position:absolute;left:-19px;top:14px;width:12px;height:12px;border-radius:50%;background:var(--surface);border:2px solid var(--blue);}
.tl-item.k-status_update::before{border-color:var(--mark-amber);} .tl-item.k-email::before{border-color:var(--mark-cyan);}
.tl-head{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center;font-size:max(11px, 0.78125rem);color:var(--ink-soft);margin-bottom:4px;}
.tl-head .kind{font-weight:700;color:var(--ink);}
.tl-head .spacer{flex:1;}
.tl-body{font-size:0.84375rem;white-space:pre-wrap;overflow-wrap:anywhere;}
.tl-foot{font-size:max(11px, 0.75rem);color:var(--ink-soft);margin-top:6px;display:flex;flex-wrap:wrap;gap:4px 12px;}
/* The trades an entry records (Release 4 part B), under its note. */
.tl-trades{margin:6px 0 0;padding-left:18px;font-size:max(11px, 0.75rem);color:var(--ink-soft);white-space:normal;}
/* The summary keeps its own display (list-item), so its open and closed arrow shows; it is a 48 px target. */
/* Modal (history, instrument editor) */
.modal-backdrop{position:fixed;inset:0;background:var(--overlay);z-index:85;display:flex;align-items:flex-start;justify-content:center;padding:6vh 16px;overflow-y:auto;}
.modal{background:var(--surface-raised);border-radius:var(--radius);box-shadow:var(--shadow-lg);width:620px;max-width:100%;padding:22px 24px;position:relative;}
.modal h2{margin:0 0 4px;font-size:1.125rem;} .modal p.sub{margin:0 0 16px;color:var(--ink-soft);font-size:0.8125rem;}
.history{list-style:none;margin:0;padding:0;}
.history li{border-left:3px solid var(--line);padding:4px 0 12px 14px;}
.history li.edit{border-left-color:var(--blue);} .history li.create{border-left-color:var(--mark-green);} .history li.delete{border-left-color:var(--mark-red);}
.history .when{font-size:max(11px, 0.75rem);color:var(--ink-muted);}
.history .by{font-weight:600;}
.history table{margin-top:6px;font-size:max(11px, 0.78125rem);}
.history td{padding:4px 8px 4px 0;vertical-align:top;border-bottom:1px solid var(--line-soft);}
.history td.f{color:var(--ink-soft);white-space:nowrap;width:1%;}
.history .from{color:var(--negative-ink);text-decoration:line-through;text-decoration-color:var(--negative-strike);}
.history .to{color:var(--positive-ink);}
/* Toast */
.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:90;background:var(--navy);color:var(--on-brand);padding:11px 18px;border-radius:999px;font-size:0.84375rem;font-weight:500;box-shadow:var(--shadow-lg);max-width:calc(100vw - 32px);}
.toast.err{background:var(--negative-fill-strong);}
/* The Restore offered after a day of figures is deleted (js/lib/figures-restore.js). */
.toast.figures-restore button.linkish{color:var(--on-brand);text-decoration:underline;margin-left:4px;}
/* LDM holdings lines */
.lines{display:flex;flex-direction:column;gap:8px;}
.line{display:grid;grid-template-columns:minmax(200px,2.2fr) 1fr 1fr 1fr auto;gap:8px;align-items:center;}
.line input{padding:8px 10px;border:1px solid var(--line-strong);border-radius:var(--radius-sm);width:100%;background:var(--surface);}
.line .val{font-variant-numeric:tabular-nums;font-size:0.8125rem;color:var(--ink-soft);}
.lines-head{display:grid;grid-template-columns:minmax(200px,2.2fr) 1fr 1fr 1fr auto;gap:8px;font-size:max(11px, 0.6875rem);font-weight:600;text-transform:uppercase;letter-spacing:0.05em;color:var(--ink-muted);}
.lines-total{display:flex;justify-content:flex-end;gap:10px;font-size:0.8125rem;margin-top:6px;}
/* The asset lines of a Sales transaction and the stock lines of a Front
   Office entry (Release 4 part B): one card per line, its boxes in a grid
   that is two columns at phone width (the LDM lines' rule), so nothing
   scrolls sideways; every box 16 px and 48 px tall by the form's own rules. */
.asset-lines{display:flex;flex-direction:column;gap:10px;margin:6px 0 8px;}
.aline{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;align-items:end;padding:10px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface-2, var(--surface));}
.aline .field{margin:0;}
.aline .aline-figure{font-variant-numeric:tabular-nums;font-size:0.875rem;color:var(--ink-soft);align-self:center;}
.aline .aline-figure b{color:var(--ink);}
.aline .aline-remove{justify-self:start;}
@media (max-width: 900px){ .aline{grid-template-columns:1fr 1fr;} .aline .field.full, .aline .aline-figure, .aline .aline-remove{grid-column:1 / -1;} }
.navitem .count{margin-left:auto;background:var(--negative-fill);color:var(--on-brand);border-radius:999px;font-size:max(11px, 0.6875rem);font-weight:700;padding:1px 7px;min-width:20px;text-align:center;}
.navitem .count.zero{display:none;}
.navsep{height:1px;background:var(--side-line);margin:8px 4px;}
/* Group labels in the navy menu: #B8C4DD reaches 4.5:1 on both ends of the
   menu's gradient (#0A234D to #1E3A8A); the old #7B8BA8 fell to 3:1. */
.navlabel{font-size:max(11px, 0.6875rem);text-transform:uppercase;letter-spacing:0.08em;color:var(--side-ink-muted);padding:8px 12px 2px;font-weight:700;}
@media (max-width: 1100px){ .grid3{grid-template-columns:1fr 1fr;} .formgrid.three, .formgrid.four{grid-template-columns:1fr 1fr;} }
@media (max-width: 900px){ .grid2,.grid3,.formgrid.three,.formgrid.four,.drawer-form .formgrid{grid-template-columns:1fr;} .work-counters{grid-template-columns:1fr 1fr;} .line,.lines-head{grid-template-columns:1fr 1fr;} .lines-head{row-gap:2px;} .lines-head span:empty{display:none;} .navlabel,.navsep{display:none;} }

/* ---- Marketing & Digital ---- */
/* Items in the bell's and the side menu's panels: the notices and, since
   the top bar's "Assigned to me" button was folded into the bell (September
   2026), the open Marketing complaints, queries and tasks assigned to the
   person (common.js fillWorkPanel). */
.assigned-count{display:inline-flex;align-items:center;justify-content:center;min-width:1.25rem;min-height:1.25rem;padding:0 6px;border-radius:999px;background:var(--negative-fill);color:var(--on-brand);font-size:max(11px, 0.6875rem);font-weight:700;line-height:1;}
.assigned-group{margin:8px 0 4px;font-size:max(11px, 0.6875rem);font-weight:700;text-transform:uppercase;letter-spacing:0.06em;color:var(--ink-muted);}
.assigned-item{display:flex;flex-direction:column;gap:3px;padding:10px 12px;border:1px solid var(--line);border-left:4px solid var(--blue);border-radius:var(--radius-sm);background:var(--surface);color:var(--ink);text-decoration:none;margin-bottom:6px;transition:box-shadow .15s,border-color .12s;}
.assigned-item:hover{text-decoration:none;box-shadow:var(--shadow);border-color:var(--line-hover);border-left-color:var(--blue);}
.assigned-head{display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:0.8125rem;}
.assigned-what{font-size:max(11px, 0.78125rem);color:var(--ink-soft);}
.assigned-note{font-size:max(11px, 0.78125rem);white-space:pre-wrap;overflow-wrap:anywhere;}
.assigned-meta{font-size:max(11px, 0.71875rem);color:var(--ink-muted);}
/* ---- Work assigned across units: the bell, the pop-up, the side menu's
   Work group, the row chip and the work page (common.js renderWorkBell and
   renderWorkLinks, js/lib/work.js, work.html) ---- */
.bell-btn{display:inline-flex;align-items:center;gap:6px;padding-left:9px;padding-right:9px;}
.bell-btn svg{display:block;}
.bell-btn .assigned-count.zero{display:none;}
.bell-panel,.notices-panel{width:420px;gap:8px;}
.assigned-item.work-notice.read{border-left-color:var(--line);color:var(--ink-soft);}
.assigned-item.work-notice.read b{font-weight:500;}
.assigned-item.work-notice.unread{border-left-color:var(--blue);}
.work-popups{position:fixed;top:calc(var(--bar-h,56px) + 8px);right:16px;z-index:65;display:flex;flex-direction:column;gap:8px;width:360px;max-width:calc(100vw - 32px);}
.work-popup{position:relative;background:var(--surface-raised);border:1px solid var(--line);border-left:4px solid var(--blue);border-radius:var(--radius-sm);box-shadow:var(--shadow-lg);padding:12px 40px 12px 14px;font-size:0.8125rem;}
.work-popup.k-holder{border-left-color:var(--blue);} .work-popup.k-previous{border-left-color:var(--mark-amber);} .work-popup.k-closed{border-left-color:var(--mark-green);} .work-popup.k-unit{border-left-color:var(--ink-faint);}
.work-popup .drawer-close{top:8px;right:8px;width:28px;height:28px;font-size:16px;}
.work-popup-title{font-weight:600;margin-bottom:2px;}
.work-popup-detail{color:var(--ink-soft);font-size:max(11px, 0.78125rem);white-space:pre-wrap;overflow-wrap:anywhere;}
.work-popup-foot{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:8px;}
.work-popup-foot .btn{padding:5px 12px;font-size:max(11px, 0.78125rem);}
/* The conversation on a record (js/lib/conversation.js, in the record drawer's Conversation tab): the comments, oldest first, the files, the composer and its @ list. */
.conv{display:flex;flex-direction:column;gap:12px;font-size:0.84375rem;}
.conv-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px;}
.conv-item{display:flex;gap:10px;align-items:flex-start;}
.conv-item .avatar{margin-top:2px;}
.conv-main{flex:1;min-width:0;background:var(--bg);border:1px solid var(--line-soft);border-radius:var(--radius-sm);padding:8px 12px;}
.conv-head{display:flex;flex-wrap:wrap;gap:4px 8px;align-items:baseline;font-size:max(11px, 0.78125rem);}
.conv-unit,.conv-when,.conv-edited{color:var(--ink-muted);font-size:max(11px, 0.75rem);}
.conv-edited{font-style:italic;}
.conv-text{margin-top:4px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5;}
.conv-mention{color:var(--st-blue-ink);font-weight:600;background:var(--st-blue);border-radius:var(--radius-xs);padding:0 3px;}
.conv-deleted .conv-gone{color:var(--ink-muted);font-style:italic;font-size:max(11px, 0.78125rem);padding:4px 0 4px 42px;}
.conv-actions{display:flex;gap:6px;margin-top:6px;}
button.btn.conv-small{padding:3px 10px;font-size:max(11px, 0.75rem);box-shadow:none;}
.conv-files{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-direction:column;gap:4px;}
.conv-file,.conv-draft{display:flex;flex-wrap:wrap;gap:4px 8px;align-items:center;font-size:max(11px, 0.78125rem);}
.conv-file a{font-weight:600;overflow-wrap:anywhere;}
.conv-file-meta{color:var(--ink-muted);font-size:max(11px, 0.75rem);font-variant-numeric:tabular-nums;}
.conv-new-rule{display:flex;align-items:center;gap:8px;color:var(--negative-ink);font-size:max(11px, 0.75rem);font-weight:600;}
.conv-new-rule::before,.conv-new-rule::after{content:"";flex:1;border-top:1px solid var(--negative-fill);}
.conv-seen{margin:0;color:var(--ink-muted);font-size:max(11px, 0.75rem);text-align:right;}
.conv-empty,.conv-loading{color:var(--ink-muted);font-size:0.8125rem;margin:0;}
.conv-all-files{border-top:1px solid var(--line);padding-top:10px;}
.conv-all-files h4{margin:0 0 4px;font-size:max(11px, 0.78125rem);color:var(--ink-soft);}
.conv-composer{border-top:1px solid var(--line);padding-top:12px;}
.conv-composer label[for]{display:block;font-weight:600;font-size:max(11px, 0.78125rem);margin-bottom:4px;}
.conv-input{position:relative;}
.conv-input textarea{width:100%;min-height:72px;resize:vertical;}
.conv-picker{position:absolute;left:0;right:0;top:100%;z-index:5;list-style:none;margin:2px 0 0;padding:4px 0;background:var(--surface-raised);border:1px solid var(--line);border-radius:var(--radius-sm);box-shadow:var(--shadow-lg);max-height:220px;overflow:auto;}
.conv-picker-group{padding:4px 10px 2px;font-size:max(11px, 0.6875rem);font-weight:700;text-transform:uppercase;letter-spacing:0.04em;color:var(--ink-muted);}
.conv-picker-opt{padding:6px 10px;cursor:pointer;}
.conv-picker-opt.active,.conv-picker-opt:hover{background:var(--surface-selected);}
.conv-picker-opt.muted{color:var(--ink-muted);}
.conv-picker-note,.conv-picker-empty{font-size:max(11px, 0.71875rem);color:var(--ink-muted);}
.conv-picker-empty{padding:6px 10px;}
.conv-drafts{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column;gap:4px;}
.conv-compose-actions{margin-top:10px;padding-top:0;border-top:0;align-items:center;}
label.btn.conv-attach{display:inline-block;margin:0;padding:9px 16px;border-radius:var(--radius-sm);border:1px solid var(--line);background:var(--surface);cursor:pointer;font-weight:600;font-size:0.84375rem;color:var(--ink);box-shadow:var(--shadow-sm);line-height:1.3;}
.conv-file-input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;}
.conv-compose-actions:has(.conv-file-input:focus-visible) .conv-attach{outline:2px solid var(--accent);outline-offset:2px;border-color:var(--accent);}
.conv-hint{margin:6px 0 0;color:var(--ink-muted);font-size:max(11px, 0.75rem);}
.conv-readonly{margin:0;padding:10px 12px;border:1px dashed var(--line);border-radius:var(--radius-sm);color:var(--ink-soft);font-size:max(11px, 0.78125rem);}
.conv-msg{margin:0;font-size:max(11px, 0.78125rem);color:var(--ink-soft);}
.conv-msg-err{color:var(--negative-ink);} .conv-msg-ok{color:var(--positive-ink);}
.conv-composer textarea[disabled], .conv-composer [aria-disabled="true"]{opacity:0.55;cursor:not-allowed;}
.navlink .count{margin-left:auto;background:var(--negative-fill);color:var(--on-brand);border-radius:999px;font-size:max(11px, 0.6875rem);font-weight:700;padding:1px 7px;min-width:20px;text-align:center;}
.navlink .count.zero{display:none;}
.work-chip{text-decoration:none;font-variant-numeric:tabular-nums;}
.work-chip:hover{text-decoration:underline;}
.work-assign[aria-disabled="true"]{opacity:0.5;cursor:not-allowed;}
.work-summary{display:grid;grid-template-columns:max-content 1fr;gap:3px 14px;font-size:max(11px, 0.78125rem);margin:10px 0 0;}
.work-summary dt{color:var(--ink-muted);} .work-summary dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;}
.work-chain{font-size:max(11px, 0.78125rem);color:var(--ink-soft);margin:0 0 14px;overflow-wrap:anywhere;}
.work-kind{font-size:max(11px, 0.75rem);color:var(--ink-soft);display:block;}
/* The outcome a person picked in the Close form (their choice, never picked out in advance). */
.choice-group .btn[aria-pressed="true"], .choice-group .btn[aria-pressed="true"]:hover{background:var(--navy);border-color:var(--navy);color:var(--on-brand);}
.work-period{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:0 0 16px;}
.work-outcome{margin-bottom:12px;}
.tl-item.k-assigned::before, .tl-item.k-reassigned::before{border-color:var(--blue);} .tl-item.k-taken_over::before{border-color:var(--mark-amber);} .tl-item.k-handed_on::before{border-color:var(--mark-cyan);}
.tl-item.k-reopened::before{border-color:var(--mark-violet);} .tl-item.k-closed::before{border-color:var(--mark-green);} .tl-item.k-note::before{border-color:var(--ink-faint);}
@media (max-width: 600px), (max-height: 500px) and (pointer: coarse){ .bell-panel,.notices-panel{width:calc(100vw - 32px);} .work-popups{left:16px;right:16px;width:auto;} }
/* Dashboard period pills and the row that was linked to */
.mk-period{display:flex;flex-wrap:wrap;gap:6px 8px;align-items:center;margin:0 0 18px;}
.mk-period .label{font-size:max(11px, 0.78125rem);color:var(--ink-soft);margin-right:4px;}
.mk-period .sub{font-size:max(11px, 0.78125rem);color:var(--ink-muted);margin-left:auto;}
tr.mk-target td{background:var(--flash-bg) !important;transition:background 1s;}
.mk-contact{font-size:max(11px, 0.75rem);color:var(--ink-soft);display:block;}
.mk-cell-notes{max-width:280px;white-space:pre-wrap;overflow-wrap:anywhere;}
.mk-note{font-size:max(11px, 0.78125rem);color:var(--ink-soft);margin:0 0 12px;}
.mk-week-nav{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:14px;}
.mk-week-nav input[type="date"]{padding:8px 11px;border:1px solid var(--line-strong);border-radius:var(--radius-sm);background:var(--surface);}
.mk-trend td.cur{font-weight:600;color:var(--ink-brand);}
.mk-trend .up{color:var(--positive-ink);} .mk-trend .down{color:var(--negative-ink);}
.mk-empty-week{color:var(--ink-muted);}
.mk-filters{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:12px;}
.mk-filters .sep{width:1px;height:22px;background:var(--line);margin:0 4px;}
.mk-dash-note{font-size:max(11px, 0.78125rem);color:var(--ink-soft);margin:6px 0 0;}

/* ---- Trading Unit ---- */
.tu-h3{margin:0 0 8px;font-size:0.875rem;}
.tu-sub{margin:0 0 6px;font-weight:600;font-size:max(11px, 0.78125rem);color:var(--ink-soft);}
.tu-list{margin:0 0 10px;padding-left:18px;}
.tu-list:last-child{margin-bottom:0;}
.tu-ok{margin:0;color:var(--positive-ink);}
.tu-total td{font-weight:600;background:var(--surface-2);}
.tu-auto{color:var(--ink-soft);}
.tu-block{margin-bottom:10px;}
.tu-block h4{margin:0 0 6px;display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;}
.tu-section{margin:14px 0 6px;font-size:max(11px, 0.71875rem);font-weight:700;text-transform:uppercase;letter-spacing:0.06em;color:var(--ink-muted);}
.tu-cell{width:100%;min-width:90px;text-align:right;padding:6px 8px;border:1px solid var(--line-strong);border-radius:6px;}
.tu-cell-sm{min-width:70px;width:84px;}

/* ---- All units: the unit panels and the people (js/summary.js) ---- */
.unit{margin-bottom:18px;}
.unit-title{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:6px 12px;margin:0 0 14px;padding-bottom:10px;border-bottom:1px solid var(--line);font-size:1.0625rem;font-weight:700;letter-spacing:-0.01em;}
.unit-title a{color:var(--ink-brand);} .unit-title a:hover{color:var(--link);}
.unit-title .unit-open{font-size:max(11px, 0.75rem);font-weight:500;color:var(--ink-muted);}
.unit-group{margin:18px 0 10px;font-size:max(11px, 0.75rem);font-weight:700;text-transform:uppercase;letter-spacing:0.06em;color:var(--ink-soft);}
@media (max-width: 900px){ .unit-title .unit-open{display:none;} }
/* The unit panels of the whole-company view, one unit to a row, each in its
   own space: title and insight, tiles, then the trend and the bars side by
   side on a wide screen (one under the other on a phone). */
.su-sub{font-size:max(11px, 0.78125rem);color:var(--ink-soft);margin:0 0 10px;}
.su-group{margin:0 0 10px;font-size:max(11px, 0.75rem);font-weight:700;text-transform:uppercase;letter-spacing:0.06em;color:var(--ink-soft);}
.su-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;margin-bottom:24px;align-items:start;}
.su-unit{min-width:0;}
.su-head{display:flex;flex-wrap:wrap;gap:6px 16px;justify-content:space-between;align-items:flex-start;margin:0 0 14px;padding-bottom:12px;border-bottom:1px solid var(--line);}
.su-head-text{flex:1 1 240px;min-width:0;}
.su-title{margin:0;font-size:1.0625rem;font-weight:700;letter-spacing:-0.01em;}
.su-title a{color:var(--ink-brand);} .su-title a:hover{color:var(--link);}
.su-insight{margin:4px 0 0;font-size:0.8125rem;line-height:1.45;color:var(--ink-soft);}
.su-links{display:flex;flex-direction:column;align-items:flex-end;gap:2px;font-size:max(11px, 0.78125rem);font-weight:600;white-space:nowrap;}
.su-links .su-module{font-weight:500;color:var(--ink-muted);}
.su-kpis{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;}
.su-unit .kpi{padding:12px 14px;}
.su-unit .kpi .num{font-size:1.125rem;}
.su-unit .unit-group{margin:14px 0 8px;}
.su-trend,.su-breakdown{margin-top:20px;}
.su-h3{font-size:0.84375rem;font-weight:700;margin:0 0 2px;color:var(--ink);}
.su-chart{min-height:180px;margin-top:8px;}
.su-bars{margin-top:8px;min-height:28px;}
.su-note{font-size:max(11px, 0.78125rem);color:var(--ink-muted);margin:4px 0 0;}
#people .su-sub{margin-top:-6px;}
@media (min-width: 1200px){ .su-wide .su-visuals{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:32px;align-items:start;} }
@media (max-width: 600px), (max-height: 500px) and (pointer: coarse){ .su-unit.panel-pad,#people.panel-pad{padding:16px;} .su-kpis{grid-template-columns:repeat(2,minmax(0,1fr));} .su-unit .kpi{padding:10px 12px;} .su-unit .kpi .num{font-size:1rem;} .su-links{flex-direction:row;flex-wrap:wrap;align-items:center;gap:4px 14px;white-space:normal;} }

/* ---- Print and small screens ---- */
@media print{ .module-bar,.sidebar,.no-print,.form-actions,form.no-print,.drawer,.drawer-backdrop,.modal-backdrop,.toast,.cbx-toggle{display:none !important;} .app{display:block;} .main{padding:0;max-width:none;} body{background:var(--surface);} .panel,.kpi{border-color:var(--ink-faint);box-shadow:none;} .kpi::after{display:none;} .bar{-webkit-print-color-adjust:exact;print-color-adjust:exact;} }
@media (max-width: 900px){ .formgrid{grid-template-columns:1fr;} .clients-layout{grid-template-columns:1fr;} .app{flex-direction:column;} .sidebar{width:auto;padding:18px 16px;} .navgroup{flex-direction:row;flex-wrap:wrap;gap:4px;} .navitem{width:auto;padding:8px 12px;} .navitem.active::before{display:none;} .synctag{display:none;} .sidebar-foot{display:flex;flex-wrap:wrap;align-items:center;gap:4px 16px;margin-top:12px;padding-top:10px;} .sidebar-foot > div{display:none;} .sidebar-foot a{margin-top:0;} .brand-sub{margin:0 0 12px;} .report-panel.from-sidebar{left:16px;right:16px;width:auto;top:calc(var(--bar-h,56px) + 8px);bottom:auto;}
  #demo-root .sidebar .brand{display:none;} #demo-root .sidebar .brand-sub{margin-top:0;} .main{padding:20px 16px 40px;} .module-bar{padding:8px 12px;gap:8px 12px;} .module-brand{padding-right:12px;} .module-logo{height:46px;} .topbar{padding:14px 16px;} }
/* Phones: the logo and the person on one row, the module tabs full width below. */
@media (max-width: 600px), (max-height: 500px) and (pointer: coarse){ .module-product{display:none;} .module-bar{flex-wrap:wrap;gap:6px 12px;} .module-main,.module-top{display:contents;} .module-brand{border-right:0;padding-right:0;} .module-logo{height:40px;} .module-user{flex:1;min-width:0;font-size:max(11px, 0.75rem);justify-content:flex-end;text-align:right;} .module-tabs{flex-basis:100%;} }

/* ---- All units: dashboards and exploration ---- */
/* One page for every view (summary.html, js/summary.js, js/lib/charts.js):
   the View list in the sidebar, the filters, the story top-left with the
   KPI cards beside it, the trend, the breakdowns, then (the whole company)
   the unit panels above, or (a unit) the people table with a colour scale,
   and the records. */
.hub-nav-label{margin:14px 0 4px;padding:0 12px;font-size:max(11px, 0.6875rem);font-weight:700;text-transform:uppercase;letter-spacing:0.08em;color:var(--side-ink-muted);}
.hub-head{min-width:0;flex:1 1 320px;}
.hub-head p a{font-weight:600;white-space:nowrap;}
.hub-dl-label{font-size:max(11px, 0.78125rem);font-weight:600;color:var(--ink-soft);margin-right:2px;}
.pagehead .downloads[hidden]{display:none;}
.ex-story-panel .hub-overview-h{margin:16px 0 8px;font-size:max(11px, 0.71875rem);font-weight:700;text-transform:uppercase;letter-spacing:0.06em;color:var(--ink-soft);}
.ex-story-panel #hub-overview .story{margin:0;border-left-color:var(--line);}
.ex-story-panel #hub-overview .story p{font-weight:500;margin-bottom:6px;}
#hub-units{margin-bottom:16px;}
.ex-filters{display:flex;flex-wrap:wrap;gap:12px 16px;align-items:flex-end;margin-bottom:12px;}
.ex-filters .field{min-width:150px;}
.ex-filters .ex-unit{min-width:190px;} .ex-filters .ex-person{min-width:180px;}
.ex-filters .ex-period{min-width:0;}
.ex-label{font-size:max(11px, 0.78125rem);font-weight:600;color:var(--ink-soft);}
.ex-pills{display:flex;flex-wrap:wrap;gap:4px;}
.ex-custom{display:flex;flex-wrap:wrap;gap:10px 12px;align-items:flex-end;}
.ex-custom[hidden]{display:none !important;}
.ex-custom .field{min-width:140px;}
.ex-reset{margin-left:auto;}
.ex-context{display:flex;flex-wrap:wrap;gap:6px 16px;align-items:center;justify-content:space-between;margin:0 0 14px;}
.ex-note{margin:0;font-size:max(11px, 0.78125rem);color:var(--ink-soft);max-width:860px;}
.ex-chips{display:flex;flex-wrap:wrap;gap:6px;}
.ex-chip{display:inline-flex;align-items:center;gap:8px;padding:5px 12px;border-radius:999px;border:1px solid var(--st-blue-2);background:var(--st-blue);color:var(--st-blue-ink);font-size:max(11px, 0.78125rem);font-weight:600;cursor:pointer;}
.ex-chip:hover{background:var(--st-blue-2);} .ex-chip:focus-visible{outline:2px solid var(--accent);outline-offset:2px;}
.ex-msg{display:block;}
.ex-h2{font-size:0.9375rem;font-weight:700;margin:0 0 4px;letter-spacing:-0.01em;color:var(--ink);}
.ex-sub{font-size:max(11px, 0.78125rem);color:var(--ink-soft);margin:0 0 12px;}
.ex-head{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:flex-start;justify-content:space-between;}
.ex-head > div:first-child{min-width:0;flex:1 1 280px;}
.ex-top{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:16px;margin-bottom:16px;align-items:start;}
.ex-story-panel .story{margin:8px 0 0;}
.ex-story-panel .story p{margin-bottom:8px;}
.ex-kpirow{grid-template-columns:repeat(auto-fill,minmax(165px,1fr));}
.ex-kpirow .kpi{display:flex;flex-direction:column;}
.ex-kpirow .kpi.selected{border-color:var(--blue);box-shadow:0 0 0 1px var(--blue),var(--shadow-sm);}
.ex-kpirow .kpi.clickable:focus-visible{outline:2px solid var(--accent);outline-offset:-2px;}
.kpi-spark{margin-top:auto;padding-top:8px;height:36px;}
.kpi-spark svg{display:block;}
/* .fig-trend: the trend of "Orbit Securities" for everyone; .ex-trend stays the one trend of the arranged panels (js/summary.js). */
.ex-trend,.fig-trend{margin-bottom:16px;}
.chart{position:relative;border-radius:var(--radius-sm);}
.chart:focus{outline:none;} .chart:focus-visible{outline:2px solid var(--accent);outline-offset:-2px;}
.chart.clickable{cursor:pointer;}
.chart-svg{display:block;max-width:100%;}
.ex-chart{min-height:200px;margin-top:8px;}
.chart-tip{position:absolute;z-index:5;display:flex;flex-direction:column;gap:2px;min-width:160px;max-width:280px;padding:8px 11px;border-radius:8px;background:var(--surface-raised);color:var(--ink);border:1px solid var(--line);font-size:max(11px, 0.75rem);line-height:1.45;box-shadow:var(--shadow-lg);pointer-events:none;font-variant-numeric:tabular-nums;}
.chart-tip strong{font-size:max(11px, 0.78125rem);}
.chart-tip .chart-tip-prev{color:var(--ink-soft);}
.ex-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr));gap:16px;margin-bottom:16px;}
.ex-grid > .ex-breakdown-wide{grid-column:1/-1;}
.ex-bars{min-height:28px;}
.chart-bar.clickable{cursor:pointer;}
.chart-bar.clickable:hover .hit{fill-opacity:1;}
.chart-bar:focus{outline:none;} .chart-bar:focus-visible .hit{stroke:var(--accent);stroke-width:2;fill-opacity:1;}
.ex-bottom{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-items:start;}
.ex-after{margin:10px 0 0;}
.ex-scale{font-weight:600;color:var(--ink);background:color-mix(in srgb, var(--heat-color) calc(var(--heat, 0) * 100%), transparent);}
.ex-people-table tr.ex-selected td{background:var(--surface-selected);}
.ex-delta{font-weight:600;white-space:nowrap;} .ex-delta.better{color:var(--positive-ink);} .ex-delta.worse{color:var(--negative-ink);} .ex-delta.flat{color:var(--ink-soft);}
.ex-records-table td a{font-weight:600;}
.ex-empty{margin-bottom:16px;}
.ex-empty .story{margin:10px 0 0;}
.ex-empty-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px;}
@media (max-width: 1100px){ .ex-top{grid-template-columns:minmax(0,1fr);} }
@media (max-width: 900px){ .ex-reset{margin-left:0;} .ex-filters .field,.ex-filters .ex-unit,.ex-filters .ex-person{flex:1 1 150px;min-width:0;} .ex-filters .ex-period{flex-basis:100%;} .ex-grid{grid-template-columns:minmax(0,1fr);} .hub-nav,.hub-nav-label{display:none;} }
@media (max-width: 600px), (max-height: 500px) and (pointer: coarse){ .ex-kpirow{grid-template-columns:repeat(2,minmax(0,1fr));} .ex-kpirow .kpi{padding:12px 14px;} .ex-kpirow .kpi .num{font-size:1.125rem;} .ex-custom .field{flex:1 1 130px;min-width:0;} }

/* ---- Viewing as someone else (Users page, "View as"): a banner above the
   top bar on every page, with the way back to the administrator's own
   account. The top bar sits just below it (--view-as-h, common.js). ---- */
.view-as-banner{position:sticky;top:env(safe-area-inset-top,0px);z-index:66;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px 16px;padding:9px 16px;background:var(--warning-strong);color:var(--on-brand);font-size:0.84375rem;line-height:1.4;text-align:center;box-shadow:var(--banner-shadow);}
.view-as-banner b{font-weight:700;}
.view-as-stop{padding:5px 14px;border:1px solid var(--on-brand);border-radius:999px;background:var(--on-brand);color:var(--warning-strong);font-size:max(11px, 0.78125rem);font-weight:700;cursor:pointer;white-space:nowrap;}
.view-as-stop:hover{background:var(--banner-hover);}
.view-as-stop:focus-visible{outline:2px solid var(--on-brand);outline-offset:2px;}
.view-as-stop:disabled{opacity:.75;cursor:default;}
body.viewing-as .module-bar{top:calc(env(safe-area-inset-top,0px) + var(--view-as-h,40px));}

/* ---- The platform notice during updates (common.js renderStatusBar): a bar
   below the viewing banner and above the top bar, for the whole of an update.
   Amber while updates are being installed; the solid amber, stronger, while
   the platform is restarting and not answering; the light blue once the
   platform is back with the improvements, with a Reload button (never done
   by itself). The × hides it for ten minutes. The top bar sits below it
   (--update-h, common.js). ---- */
.update-banner{position:sticky;top:calc(env(safe-area-inset-top,0px) + var(--view-as-h,0px));z-index:65;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px 14px;padding:8px 44px 8px 16px;background:var(--warning-bg);color:var(--warning-ink);border-bottom:1px solid var(--warning-line);font-size:0.84375rem;line-height:1.4;text-align:center;box-shadow:var(--banner-shadow);}
.update-banner.down{background:var(--warning-strong);color:var(--on-brand);border-bottom-color:var(--warning-strong);}
.update-banner.updated{background:var(--surface-selected);color:var(--ink-brand);border-bottom-color:var(--st-blue-2);}
.update-banner .update-text{font-weight:500;}
.update-banner .update-reload{padding:5px 14px;font-size:max(11px, 0.78125rem);border-radius:999px;box-shadow:none;}
.update-banner .update-reload:hover, .update-banner .update-reload:focus-visible{background:var(--navy);border-color:var(--navy);color:var(--on-brand);}
.update-close{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:30px;height:30px;border:0;border-radius:999px;background:transparent;color:inherit;font-size:20px;line-height:1;cursor:pointer;}
.update-close:hover{background:var(--hover-tint);} .update-banner.down .update-close:hover{background:var(--on-brand-hover);}
.update-close:focus-visible{outline:2px solid currentColor;outline-offset:1px;}
body.has-update-banner .module-bar{top:calc(env(safe-area-inset-top,0px) + var(--view-as-h,0px) + var(--update-h,0px));}
@media (max-width: 600px), (max-height: 500px) and (pointer: coarse){ .update-banner{padding:8px 40px 8px 12px;font-size:max(11px, 0.78125rem);text-align:left;justify-content:flex-start;} }
/* It fades in only for people who have not asked for less motion (the
   no-preference block above holds every other animation). */
@media (prefers-reduced-motion: no-preference){ .update-banner{animation:fadein .18s ease-out;} }

/* ---- Upload past work (uploads.html) and the link to it in every module's sidebar ---- */
.nav-out{margin-top:-8px;padding-top:10px;border-top:1px solid var(--side-line);}
.navlink{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:var(--radius-sm);color:var(--side-ink-soft);font-size:0.84375rem;font-weight:500;text-decoration:none;transition:background .15s,color .15s;}
.navlink:hover,.navlink:focus-visible{background:var(--side-hover);color:var(--on-brand);text-decoration:none;}
.navlink:focus-visible{outline:2px solid var(--side-link);outline-offset:1px;}
/* Download report (common.js renderAccountLinks) is a button that looks like the Upload past work link beside it. */
button.navlink{width:100%;border:0;background:none;cursor:pointer;font-family:inherit;line-height:inherit;text-align:left;}
/* The shared group's link of the page shown (common.js markCurrentNav, audit E1, 3 October 2026): the look of the current .navitem. */
.navlink.active,.navlink[aria-current="page"]{position:relative;background:var(--side-active);color:var(--on-brand);font-weight:600;}
.navlink.active::before,.navlink[aria-current="page"]::before{content:"";position:absolute;left:0;top:9px;bottom:9px;width:3px;border-radius:3px;background:var(--grad-blue);}
.upl-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px;}
.upl-card{display:flex;flex-direction:column;gap:6px;text-align:left;padding:14px 16px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);cursor:pointer;font-family:inherit;box-shadow:var(--shadow-sm);transition:border-color .15s,box-shadow .15s,background .15s;}
.upl-card:hover{border-color:var(--ink-faint);}
.upl-card:focus-visible{outline:2px solid var(--accent);outline-offset:-2px;}
.upl-card.active{border-color:var(--blue);background:var(--surface-selected);box-shadow:inset 0 0 0 1px var(--blue);}
.upl-card-title{font-weight:700;font-size:0.875rem;color:var(--ink-brand);}
.upl-card-desc{font-size:max(11px, 0.78125rem);color:var(--ink-soft);line-height:1.45;}
.upl-step-row{display:flex;gap:18px;align-items:flex-start;justify-content:space-between;}
.upl-desc{margin:0 0 8px;font-weight:700;color:var(--ink-brand);}
.upl-rules{margin:0;padding-left:18px;color:var(--ink-soft);font-size:0.8125rem;display:flex;flex-direction:column;gap:4px;}
.upl-download{flex-shrink:0;white-space:nowrap;}
.upl-file-row{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap;}
.upl-file{flex:1 1 320px;min-width:0;}
.upl-hint{padding:10px 0 0;}
.upl-table td{font-size:0.8125rem;}
.upl-table > tbody > tr.upl-error > td:first-child{box-shadow:inset 3px 0 0 var(--mark-red);}
.upl-table > tbody > tr.upl-refused > td:first-child{box-shadow:inset 3px 0 0 var(--mark-amber);}
.upl-table > tbody > tr.upl-overwrite > td:first-child{box-shadow:inset 3px 0 0 var(--blue);}
.upl-msgs{margin:0;padding-left:16px;display:flex;flex-direction:column;gap:3px;}
.upl-table tr.upl-error .upl-msgs{color:var(--negative-ink);}
.upl-changes{width:auto;margin-top:6px;font-size:max(11px, 0.75rem);border:1px solid var(--line);border-radius:var(--radius-xs);}
.ledger .upl-changes th{font-size:max(11px, 0.6875rem);text-transform:uppercase;letter-spacing:.05em;color:var(--ink-soft);text-align:left;padding:4px 8px;background:var(--surface-2);}
.ledger .upl-changes td{padding:4px 8px;border-top:1px solid var(--line-soft);vertical-align:top;}
.upl-from{color:var(--ink-soft);text-decoration:line-through;} .upl-blank{color:var(--ink-muted);} .upl-to{font-weight:600;}
.upl-actions{align-items:center;flex-wrap:wrap;}
.upl-nothing{margin-right:auto;padding:0;}
@media (max-width: 900px){ .nav-out{margin-top:4px;border-top:none;padding-top:0;} .navlink{padding:8px 12px;} button.navlink{width:auto;} .navlink.active::before,.navlink[aria-current="page"]::before{display:none;} .upl-step-row{flex-direction:column;} }
/* On phones each previewed record is a block of its own rather than a wide table row. */
@media (max-width: 600px), (max-height: 500px) and (pointer: coarse){ .upl-table, .upl-table > tbody, .upl-table > tbody > tr, .upl-table > tbody > tr > td{display:block;width:100%;} .upl-table > tbody > tr:first-child{display:none;} .upl-table > tbody > tr{padding:8px 4px;border-bottom:1px solid var(--line);} .upl-table > tbody > tr > td{border:none;padding:3px 10px;} .upl-table > tbody > tr > td:first-child{box-shadow:none !important;font-weight:700;} .upl-table > tbody > tr.upl-error{box-shadow:inset 3px 0 0 var(--mark-red);} .upl-table > tbody > tr.upl-refused{box-shadow:inset 3px 0 0 var(--mark-amber);} .upl-table > tbody > tr.upl-overwrite{box-shadow:inset 3px 0 0 var(--blue);} }

/* ---- Legal & Compliance (legal.html) ---- */
.lg-owners{display:flex;flex-wrap:wrap;gap:6px 16px;padding:6px 0;border:none;margin:0;}
.lg-owners label{display:inline-flex;align-items:center;gap:6px;font-weight:500;font-size:0.84375rem;color:var(--ink);cursor:pointer;}
.lg-owners input{width:auto;margin:0;}
.lg-owners legend{padding:0;font-size:max(11px, 0.78125rem);font-weight:600;color:var(--ink-soft);margin-bottom:4px;}
.field .lg-hint{font-size:max(11px, 0.75rem);color:var(--ink-soft);}
tr.lg-overdue td:first-child{box-shadow:inset 3px 0 0 var(--negative-ink);}
.lg-late{color:var(--negative-ink);font-weight:600;white-space:nowrap;}
tr.lg-target td{background:var(--flash-bg) !important;transition:background 1s;}
.lg-cell{max-width:320px;white-space:pre-wrap;overflow-wrap:anywhere;}
.lg-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(320px,100%),1fr));gap:16px;margin-bottom:22px;}
/* ---- Global search (js/lib/search.js, README "Search") ----
   The box in the top bar before the bell, and the palette Ctrl+K opens on
   every signed-in page: a dialog with the words at the top and the hits
   grouped below (the exact reference, each unit's records, clients,
   instruments, pages). The active hit takes the light blue of a lit row and
   a navy bar at its left edge; skeleton rows while the answer is on its way
   (their shimmer only for people who have not asked for less motion). */
.search-box{display:inline-flex;align-items:center;gap:8px;min-width:190px;padding:6px 8px 6px 11px;border:1px solid var(--line);border-radius:999px;background:var(--surface-2);color:var(--ink-muted);cursor:pointer;font-size:max(11px, 0.78125rem);font-weight:600;font-family:inherit;transition:background .15s,border-color .15s,color .15s;}
.search-box:hover{background:var(--surface);border-color:var(--line-hover);color:var(--ink);}
.search-box:focus-visible{outline:2px solid var(--accent);outline-offset:2px;}
.search-box svg{flex-shrink:0;}
.search-box-text{flex:1;text-align:left;}
.search-box-kbd,.palette kbd{display:inline-block;padding:1px 6px;border:1px solid var(--line);border-bottom-width:2px;border-radius:5px;background:var(--surface);color:var(--ink-muted);font-family:inherit;font-size:max(11px, 0.6875rem);font-weight:600;line-height:1.5;}
.palette-backdrop{position:fixed;inset:0;z-index:90;background:var(--overlay);display:flex;align-items:flex-start;justify-content:center;padding:10vh 16px 16px;}
.palette{width:640px;max-width:100%;max-height:calc(100vh - 12vh - 16px);max-height:calc(100dvh - 12vh - 16px);display:flex;flex-direction:column;background:var(--surface-raised);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-lg);overflow:hidden;}
.palette-head{display:flex;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid var(--line);color:var(--ink-muted);}
.palette-head svg{flex-shrink:0;width:18px;height:18px;}
.palette-input{flex:1;min-width:0;border:none;background:transparent;padding:4px 2px;font-size:0.9375rem;color:var(--ink);}
.palette-input:focus,.palette-input:focus-visible{outline:none;box-shadow:none;}
.palette-head:focus-within{box-shadow:inset 0 -2px 0 var(--accent);}
.palette-crumb{padding:8px 16px;background:var(--surface-selected);color:var(--ink-brand);font-size:max(11px, 0.78125rem);border-bottom:1px solid var(--line);}
.palette-back-hint{margin-left:8px;color:var(--ink-muted);font-size:max(11px, 0.75rem);}
.palette-list{overflow-y:auto;overscroll-behavior:contain;padding:6px 0;}
.palette-list:empty{display:none;}
.palette-group + .palette-group{border-top:1px solid var(--line-soft);margin-top:4px;padding-top:4px;}
.palette-group-label{padding:8px 16px 4px;font-size:max(11px, 0.6875rem);font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-muted);}
.palette-option{display:flex;align-items:center;gap:12px;padding:8px 16px;cursor:pointer;box-shadow:inset 3px 0 0 transparent;}
.palette-option.active,.palette-option[aria-selected="true"]{background:var(--surface-selected);box-shadow:inset 3px 0 0 var(--ink-brand);}
.palette-option[aria-disabled="true"]{cursor:default;}
.palette-main{display:flex;flex-direction:column;min-width:0;flex:1;}
.palette-title{font-weight:600;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.palette-ref{color:var(--ink-muted);font-variant-numeric:tabular-nums;font-weight:600;}
.palette-sub{font-size:max(11px, 0.75rem);color:var(--ink-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.palette-option .chip{flex-shrink:0;}
.palette-status{margin:0;padding:10px 16px;font-size:max(11px, 0.78125rem);color:var(--ink-muted);}
.palette-status:empty{display:none;}
.palette-foot{display:flex;flex-wrap:wrap;gap:6px 16px;padding:8px 16px;border-top:1px solid var(--line);background:var(--surface-2);font-size:max(11px, 0.71875rem);color:var(--ink-muted);}
.palette-foot kbd{margin-right:3px;}
.palette-skeleton{display:flex;flex-direction:column;gap:6px;padding:10px 16px;}
.palette-skeleton .sk-line{display:block;height:10px;width:70%;border-radius:5px;background:var(--line-soft);}
.palette-skeleton .sk-line.sk-short{width:40%;}
@keyframes palette-shimmer{0%{opacity:1;}50%{opacity:.45;}100%{opacity:1;}}
@media (prefers-reduced-motion: no-preference){
  .palette-backdrop{animation:fadein .15s ease-out;}
  .palette-skeleton .sk-line{animation:palette-shimmer 1.2s ease-in-out infinite;}
}
@media print{ .palette-backdrop,.search-box{display:none !important;} }
@media (max-width: 600px), (max-height: 500px) and (pointer: coarse){ .search-box{min-width:0;} .search-box-text,.search-box-kbd{display:none;} }

/* ---- Targets and service levels (phase 4; README "Targets", "Service levels") ----
   The target line under a KPI tile (js/lib/kpi.js targetHtml): a bar filled
   to the actual with a tick at the target, and the note in words ("72% of
   target (50)"), so the colour is never the only sign. The targets strip of
   the module dashboards and the editor's quarter grid (js/lib/targets.js);
   the Service levels section of All units and of the Work page
   (js/lib/sla-hub.js). No animation. */
.target-line{display:flex;align-items:center;gap:8px;margin-top:6px;font-size:max(11px, 0.75rem);font-variant-numeric:tabular-nums;color:var(--ink-muted);}
.target-bar{position:relative;flex:0 0 56px;height:6px;border-radius:3px;background:var(--line);overflow:visible;}
.target-fill{position:absolute;left:0;top:0;bottom:0;border-radius:3px;background:var(--ink-faint);}
.target-tick{position:absolute;top:-3px;width:2px;height:12px;margin-left:-1px;background:var(--ink-brand);border-radius:1px;}
.target-line.ok{color:var(--target-ok);} .target-line.ok .target-fill{background:var(--target-ok);}
.target-line.miss{color:var(--target-miss);} .target-line.miss .target-fill{background:var(--target-miss);}
.target-line.none{color:var(--ink-muted);}
.target-text{min-width:0;overflow-wrap:anywhere;}
.targets-strip{margin:0 0 14px;}
.targets-strip .targets-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 12px;margin-bottom:8px;}
.targets-strip .targets-title{font-size:0.8125rem;font-weight:600;color:var(--ink-soft);margin:0;}
.targets-strip .targets-story{font-size:0.8125rem;color:var(--ink-soft);margin:6px 0 0;}
.targets-strip .kpirow{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));}
.targets-grid{min-width:560px;}
.targets-grid th,.targets-grid td{vertical-align:middle;}
.targets-grid input[type="number"]{width:100%;min-width:84px;max-width:150px;}
.targets-grid input[type="text"]{width:100%;min-width:120px;}
.targets-grid .targets-row-msg{display:block;font-size:max(11px, 0.75rem);color:var(--target-miss);margin-top:4px;}
.targets-grid .targets-changed input{border-color:var(--accent);}
.targets-warnings{margin:10px 0 0;padding:0;list-style:none;font-size:max(11px, 0.78125rem);color:var(--warning-ink);}
.targets-warnings li{margin:2px 0;}
.targets-rule{font-size:max(11px, 0.78125rem);color:var(--ink-muted);margin:8px 0 0;}
.targets-panel table td.num-cell,.targets-panel table th.num-cell{white-space:nowrap;}
.targets-mark{display:inline-block;font-weight:600;}
.targets-mark.ok{color:var(--target-ok);} .targets-mark.miss{color:var(--target-miss);} .targets-mark.none{color:var(--ink-muted);}
.su-targets{font-size:max(11px, 0.78125rem);color:var(--ink-soft);margin:4px 0 0;}
.sla-toggle{margin:12px 0 4px;}
.sla-calendar{font-size:max(11px, 0.78125rem);color:var(--ink-muted);margin:8px 0 0;}
.sla-measured{font-size:max(11px, 0.78125rem);color:var(--ink-soft);margin:6px 0 0;}
.sla-defs p{font-size:max(11px, 0.78125rem);color:var(--ink-muted);margin:6px 0 0;}
.sla-admin h3{margin:18px 0 6px;font-family:inherit;font-size:1em;}
.sla-admin .formgrid{max-width:760px;}
.sla-days{display:flex;flex-wrap:wrap;gap:6px 14px;}
.sla-days label{display:inline-flex;align-items:center;gap:6px;font-weight:400;}
.sla-days input[type="checkbox"]{width:auto;}
fieldset.field{border:0;padding:0;margin:0;min-width:0;} fieldset.field legend{font-size:max(11px, 0.78125rem);font-weight:600;color:var(--ink-soft);padding:0;margin-bottom:6px;}
.sla-confirm{font-size:max(11px, 0.75rem);}
@media (max-width: 600px), (max-height: 500px) and (pointer: coarse){
  .targets-strip .kpirow{grid-template-columns:repeat(2,minmax(0,1fr));}
  .targets-strip .kpi{padding:10px 12px;}
  .target-bar{flex-basis:40px;}
}

/* ---- Phase 6: the design system's shell (README "Design system, dark
   theme and phones"): the charts' paints, the icons and the rail, avatars,
   the top bar's user menu, the keyboard sheet, dashboards in your order,
   phones (the bottom bar, the sheets, the period select, the filters
   toggle, touch targets). Colours only through the semantic tokens. ---- */
/* The SVG charts (js/lib/charts.js): each mark's paint from the --chart-*
   tokens, which the charts' theme-light keeps light on a dark page. */
.ch-bg{fill:var(--chart-bg);}
.ch-navy{fill:var(--chart-navy);}
.ch-navy-line{stroke:var(--chart-navy);}
.ch-blue{fill:var(--chart-blue);}
.ch-muted{fill:var(--chart-muted);}
.ch-grey{fill:var(--chart-grey);}
.ch-grey-line{stroke:var(--chart-grey);}
.ch-better{fill:var(--chart-better);}
.ch-worse{fill:var(--chart-worse);}
.ch-base{fill:var(--chart-base);}
.ch-base-line{stroke:var(--chart-base);}
.ch-axis-line{stroke:var(--chart-axis);}
.ch-ink{fill:var(--chart-ink);}
.ch-soft{fill:var(--chart-soft);}
.ch-faint{fill:var(--chart-faint);}
.ch-faint-line{stroke:var(--chart-faint);}
.ch-hover{fill:var(--chart-hover);}
.ch-halo{fill:var(--chart-bg);}
.ch-halo-line{stroke:var(--chart-bg);}
/* Market Intelligence (16 October 2026, design 6.2): the named extra series of a line chart, the dots of
   the auction chart and the pale bar of a paired chart, each a fill class and a stroke class. */
.ch-series-1{fill:var(--chart-series-1);} .ch-series-1-line{stroke:var(--chart-series-1);}
.ch-series-2{fill:var(--chart-series-2);} .ch-series-2-line{stroke:var(--chart-series-2);}
.ch-series-3{fill:var(--chart-series-3);} .ch-series-3-line{stroke:var(--chart-series-3);}
.ch-series-4{fill:var(--chart-series-4);} .ch-series-4-line{stroke:var(--chart-series-4);}
.ch-series-5{fill:var(--chart-series-5);} .ch-series-5-line{stroke:var(--chart-series-5);}
.ch-series-6{fill:var(--chart-series-6);} .ch-series-6-line{stroke:var(--chart-series-6);}
.ch-series-7{fill:var(--chart-series-7);} .ch-series-7-line{stroke:var(--chart-series-7);}
.ch-series-8{fill:var(--chart-series-8);} .ch-series-8-line{stroke:var(--chart-series-8);}
.ch-series-9{fill:var(--chart-series-9);} .ch-series-9-line{stroke:var(--chart-series-9);}
.ch-series-10{fill:var(--chart-series-10);} .ch-series-10-line{stroke:var(--chart-series-10);}
.ch-term-2{fill:var(--chart-term-2);} .ch-term-5{fill:var(--chart-term-5);} .ch-term-7{fill:var(--chart-term-7);} .ch-term-10{fill:var(--chart-term-10);}
.ch-term-15{fill:var(--chart-term-15);} .ch-term-20{fill:var(--chart-term-20);} .ch-term-25{fill:var(--chart-term-25);}
/* Part 14 (16 October 2026): the term lines of the bonds' session-by-session chart (C17), each in its term's
   colour, and the outline of the mark a tooltip is about. */
.ch-term-2-line{stroke:var(--chart-term-2);} .ch-term-5-line{stroke:var(--chart-term-5);} .ch-term-7-line{stroke:var(--chart-term-7);} .ch-term-10-line{stroke:var(--chart-term-10);}
.ch-term-15-line{stroke:var(--chart-term-15);} .ch-term-20-line{stroke:var(--chart-term-20);} .ch-term-25-line{stroke:var(--chart-term-25);}
.ch-soft-line{stroke:var(--chart-soft);}
.chart-mark-focus{pointer-events:none;}
.ch-pale{fill:var(--chart-pale);}
/* A column the period cut short (a part week or month, charts.js columns): its own colour, lighter, with a dashed edge
   in that colour at full strength (the class ch-*-line beside it), so its outline keeps 3:1 (WCAG 1.4.11). */
.ch-part{fill-opacity:0.3;}
.ch-blue-line{stroke:var(--chart-blue);}
.ch-better-line{stroke:var(--chart-better);} .ch-worse-line{stroke:var(--chart-worse);}
/* The table view under a chart (Charts.* with table: true): the drawn figures as a plain table, so a chart
   can be read without the picture and copied into Excel. */
.chart-table{margin:8px 0 0;font-size:max(11px, 0.78125rem);}
.chart-table > summary{cursor:pointer;font-weight:600;color:var(--ink-soft);padding:6px 0;}
.chart-table table{border-collapse:collapse;width:100%;font-variant-numeric:tabular-nums;}
.chart-table th{text-align:left;font-weight:600;color:var(--ink-soft);padding:4px 8px;border-bottom:1px solid var(--line);white-space:nowrap;}
.chart-table td{padding:4px 8px;border-bottom:1px solid var(--line-soft);white-space:nowrap;}
.chart-table .n{text-align:right;}
.chart-table .scroll-x{overflow-x:auto;}
/* The key (Part 14 K1–K10; js/lib/charts.js `key`, Charts.keyHtml): one row of items above the chart that
   wraps (a phone takes two or three rows), never drawn over the plot and never kept to one line; each item a
   swatch and its words, the words in a text token and never in a series colour. A key above an SVG chart
   shares the chart's light card (K9): the chart's background and its soft ink, in both themes. A key of the
   page's own marks (the breadth, the participation bars, the heatmap, a shaded table) sits on the page. */
.ch-key{display:flex;flex-wrap:wrap;align-items:center;gap:4px 16px;margin:0 0 8px;padding:0;list-style:none;font-size:max(11px, 0.75rem);line-height:1.4;min-width:0;}
.ch-key-item{display:inline-flex;flex-wrap:nowrap;align-items:flex-start;gap:4px 6px;min-width:0;max-width:100%;color:var(--ink-soft);overflow-wrap:anywhere;}
/* A swatch never stands alone on its line: the item keeps it beside its words, and only the words wrap (the review of
   17 October 2026); the scale's ends and steps may wrap as a group. */
.ch-key-item > svg, .ch-key-item > .ch-key-sw{flex:0 0 auto;margin-top:0.2em;}
.ch-key-item.ch-key-scale{flex-wrap:wrap;align-items:center;}
.ch-key-item.ch-key-scale > svg{margin-top:0;}
.ch-key-swatch{flex:0 0 16px;width:16px;height:12px;display:block;}
.ch-key-word{flex:0 0 auto;display:block;height:14px;}
.ch-key-words{min-width:0;flex:0 1 auto;}
.ch-key-sw{flex:0 0 12px;width:12px;height:12px;border-radius:3px;display:inline-block;}
.ch-key-steps{display:inline-flex;flex:0 0 auto;border-radius:3px;overflow:hidden;}
.ch-key-step{display:block;width:10px;height:12px;}
.ch-key-end{font-weight:600;font-variant-numeric:tabular-nums;}
.chart > .ch-key{margin:0;padding:6px 8px 2px;background:var(--chart-bg);border-radius:var(--radius-sm) var(--radius-sm) 0 0;}
.chart > .ch-key .ch-key-item{color:var(--chart-soft);}
.chart > .ch-key + svg.chart-svg{border-top-left-radius:0;border-top-right-radius:0;}
/* A chart's tooltip is never wider than the screen and its words wrap (charts.js keeps it on the screen). */
.chart-tip{max-width:min(280px, calc(100vw - 32px));overflow-wrap:anywhere;}
/* The table colour scale (js/lib/color-scale.js; design Part 2.0 `tint`, 6.4; the critic's finding C1). Five
   steps from the green-700 and red-700 primitives (--chart-better, --chart-worse) over the surface: the light
   scale at 8, 16, 24, 32 and 40 per cent with the page's ink on every step; the strong scale (the heatmap) at 12,
   28, 44, 60 and 100 per cent with the page's ink on steps 1 to 4 and white ink on step 5 only. The ink of the
   cell's own words (.up, .down, .flat) follows the cell. Blended over each theme's surface (test/color-scale.test.js
   computes these from this file):
     light theme, --ink on green 15.9 14.2 12.6 11.1 9.8 · on red 15.6 13.6 11.8 10.1 8.6
     light theme, strong: --ink on green 15.1 11.8 9.2 6.9, white on green-700 5.5 · --ink on red 14.6 10.8 7.9 5.7, white on red-700 6.5
     dark theme (night surface), --ink on green 13.8 12.7 11.8 10.7 9.8 · on red 14.3 13.7 13.1 12.3 11.4
     dark theme, strong: --ink on green 13.3 11.2 9.3 7.6, white 5.5 · --ink on red 14.0 12.7 10.9 9.1, white 6.5
   Every pair reads at 4.5:1 or better (WCAG 1.4.3). */
.cs-up-1{background:color-mix(in srgb, var(--chart-better) 8%, transparent);}
.cs-up-2{background:color-mix(in srgb, var(--chart-better) 16%, transparent);}
.cs-up-3{background:color-mix(in srgb, var(--chart-better) 24%, transparent);}
.cs-up-4{background:color-mix(in srgb, var(--chart-better) 32%, transparent);}
.cs-up-5{background:color-mix(in srgb, var(--chart-better) 40%, transparent);}
.cs-down-1{background:color-mix(in srgb, var(--chart-worse) 8%, transparent);}
.cs-down-2{background:color-mix(in srgb, var(--chart-worse) 16%, transparent);}
.cs-down-3{background:color-mix(in srgb, var(--chart-worse) 24%, transparent);}
.cs-down-4{background:color-mix(in srgb, var(--chart-worse) 32%, transparent);}
.cs-down-5{background:color-mix(in srgb, var(--chart-worse) 40%, transparent);}
.cs-strong.cs-up-1{background:color-mix(in srgb, var(--chart-better) 12%, transparent);}
.cs-strong.cs-up-2{background:color-mix(in srgb, var(--chart-better) 28%, transparent);}
.cs-strong.cs-up-3{background:color-mix(in srgb, var(--chart-better) 44%, transparent);}
.cs-strong.cs-up-4{background:color-mix(in srgb, var(--chart-better) 60%, transparent);}
.cs-strong.cs-down-1{background:color-mix(in srgb, var(--chart-worse) 12%, transparent);}
.cs-strong.cs-down-2{background:color-mix(in srgb, var(--chart-worse) 28%, transparent);}
.cs-strong.cs-down-3{background:color-mix(in srgb, var(--chart-worse) 44%, transparent);}
.cs-strong.cs-down-4{background:color-mix(in srgb, var(--chart-worse) 60%, transparent);}
.cs-up-1, .cs-up-2, .cs-up-3, .cs-up-4, .cs-up-5, .cs-down-1, .cs-down-2, .cs-down-3, .cs-down-4, .cs-down-5{color:var(--ink);}
.cs-strong.cs-up-5{background:var(--chart-better);color:var(--on-brand);}
.cs-strong.cs-down-5{background:var(--chart-worse);color:var(--on-brand);}
/* A change in words (Market Intelligence: MarketLogic.cls, ColorScale.cell): "▲ +0.37%" up in green, "▼ −4.2%"
   down in red, "0.0%" level in grey, never colour alone (decision S4: the arrow and the words every time). A
   <span class="up"> anywhere, or any element of the market page (main.mi-page); the bare words up, down and flat
   are classes other pages already give their own elements (.update-banner.down, .kpi .delta.flat, the Marketing
   trend table's td.up), which these rules never reach. :where() keeps them at one class's weight, so the scale's
   ink rule below, written after them, wins inside a tinted cell. */
:where(span).up, :where(.mi-page) .up{color:var(--positive-ink);font-weight:600;}
:where(span).down, :where(.mi-page) .down{color:var(--negative-ink);font-weight:600;}
:where(span).flat, :where(.mi-page) .flat{color:var(--ink-soft);font-weight:600;}
.cs-up-1 > *, .cs-up-2 > *, .cs-up-3 > *, .cs-up-4 > *, .cs-up-5 > *, .cs-down-1 > *, .cs-down-2 > *, .cs-down-3 > *, .cs-down-4 > *, .cs-down-5 > *{color:inherit;}
/* A sparkline inside a tile follows the theme. */
.spark-line{stroke:var(--spark);}
/* Colours a page used to write inline (design 5.1.5). */
.tone-neg{color:var(--negative-ink);}
.tone-pos{color:var(--positive-ink);}
.surface-2{background:var(--surface-2);}
.ms-r{fill:var(--ms-red);} .ms-g{fill:var(--ms-green);} .ms-b{fill:var(--ms-blue);} .ms-y{fill:var(--ms-yellow);}
::selection{background:var(--selection);}

/* Icons (js/lib/icons.js): one sprite, drawn in the colour of the text. */
.icon{width:20px;height:20px;flex-shrink:0;}
.icon-sprite{position:absolute;width:0;height:0;overflow:hidden;}
.navitem .icon,.navlink .icon{width:18px;height:18px;}
.navtext{min-width:0;}
.bell-btn .icon{width:18px;height:18px;display:block;}
/* The folded menu is a 56 px rail of icons at 901 px and above: each
   entry's icon, its name kept for assistive technology and as a tooltip. */
@media screen and (min-width: 901px){
  html.sidebar-folded .sidebar{padding:58px 8px 16px;}
  html.sidebar-folded .sidebar > .navgroup{display:flex;margin-bottom:10px;}
  html.sidebar-folded .sidebar .navitem, html.sidebar-folded .sidebar .navlink{justify-content:center;padding:10px 0;gap:0;}
  html.sidebar-folded .sidebar .navtext{position:absolute !important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
  html.sidebar-folded .sidebar .navlabel, html.sidebar-folded .sidebar .hub-nav-label, html.sidebar-folded .sidebar .navsep, html.sidebar-folded .sidebar .synctag, html.sidebar-folded .sidebar .brand, html.sidebar-folded .sidebar .brand-sub, html.sidebar-folded .sidebar .sidebar-foot{display:none;}
  html.sidebar-folded .sidebar .count{position:absolute;top:3px;right:2px;margin:0;padding:0 4px;min-width:16px;font-size:max(11px, 0.6875rem);line-height:1.6;}
  html.sidebar-folded .sidebar .navitem.active::before, html.sidebar-folded .sidebar .navlink.active::before{left:-8px;}
}

/* Avatars: two initials on one of eight colours (common.js avatar). */
.avatar-md{width:32px;height:32px;font-size:11.5px;}
.person-inline{display:inline-flex;align-items:center;gap:6px;min-width:0;}
.person-name{min-width:0;overflow-wrap:anywhere;}
.person-sub{display:block;font-size:max(11px, 0.71875rem);color:var(--ink-muted);}
.history .avatar{margin-right:6px;vertical-align:middle;}
.assigned-head .avatar{margin-right:2px;}
.who-row{display:flex;align-items:center;gap:8px;margin-bottom:2px;}
.sidebar-foot .who-row .who{margin-bottom:0;}

/* The top bar's right side: the search box, the bell, My work and the
   person's avatar, which opens the user menu. */
.module-user{position:relative;}
.mywork-link{display:inline-flex;align-items:center;gap:6px;}
.mywork-link .icon{width:16px;height:16px;}
.avatar-btn{display:inline-flex;align-items:center;justify-content:center;min-width:36px;min-height:36px;padding:2px;border:1px solid transparent;border-radius:999px;background:transparent;cursor:pointer;}
.avatar-btn:hover{border-color:var(--line-hover);}
.avatar-btn[aria-expanded="true"]{border-color:var(--accent);}
.user-menu{position:absolute;right:0;top:calc(100% + 8px);z-index:62;width:300px;max-width:calc(100vw - 24px);display:flex;flex-direction:column;gap:2px;padding:12px;text-align:left;background:var(--surface-raised);color:var(--ink);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-lg);}
.um-who{display:flex;gap:10px;align-items:center;padding:2px 4px 10px;margin-bottom:4px;border-bottom:1px solid var(--line-soft);}
.um-name{font-weight:700;color:var(--ink);}
.um-role,.um-units{font-size:max(11px, 0.75rem);color:var(--ink-muted);}
.um-theme{display:flex;flex-direction:column;gap:2px;margin:0 0 4px;padding:4px 0;border:0;min-width:0;}
.um-theme legend{padding:0 4px;margin-bottom:4px;font-size:max(11px, 0.6875rem);font-weight:700;text-transform:uppercase;letter-spacing:0.06em;color:var(--ink-muted);}
.um-theme label{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:var(--radius-xs);font-size:0.84375rem;color:var(--ink);cursor:pointer;}
.um-theme label:hover{background:var(--surface-hover);}
.um-note{margin:4px 8px 0;font-size:max(11px, 0.75rem);color:var(--ink-muted);}
.um-item{display:flex;align-items:center;gap:8px;width:100%;padding:8px;border:0;border-radius:var(--radius-xs);background:none;color:var(--ink);font:inherit;font-size:0.84375rem;text-align:left;text-decoration:none;cursor:pointer;}
.um-item:hover{background:var(--surface-hover);text-decoration:none;}
.um-item.active{background:var(--surface-selected);color:var(--ink-brand);font-weight:600;}
.um-switch{margin-top:2px;padding-top:10px;border-top:1px solid var(--line-soft);border-radius:0;}
.um-hint{margin-left:auto;font-size:max(11px, 0.6875rem);color:var(--ink-muted);}
.um-theme input:disabled + *, .um-switch input:disabled{cursor:not-allowed;}
@media (max-width: 900px){ .module-who{display:none;} }
/* The keyboard sheet: one table per section; the switch at its top. */
.shortcut-switch{margin:0 0 10px;font-size:0.84375rem;}
.shortcut-section{margin:14px 0 6px;font-size:0.8125rem;color:var(--ink-soft);text-transform:uppercase;letter-spacing:0.05em;}

/* Dashboards in your order (js/lib/widgets.js): the panels below the story,
   the period and the targets are widgets the person may arrange. One column,
   two from 1100 px (a widget with data-span="2" takes both). */
.widget-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;margin:0 0 16px;align-items:start;}
.widget-grid > [data-widget]{min-width:0;position:relative;}
.widget-grid > .section, .widget-grid > .panel{margin-bottom:0;}
@media (min-width: 1100px){ .widget-grid{grid-template-columns:repeat(2,minmax(0,1fr));} .widget-grid > [data-span="2"]{grid-column:1/-1;} }
.widget-grid.arranging > [data-widget]:not([hidden]){outline:2px dashed var(--line-hover);outline-offset:4px;border-radius:var(--radius);}
.widget-grid .widget-dragging{opacity:0.55;}
.widget-grid .widget-over{outline-color:var(--accent);}
.widget-tools{display:flex;flex-wrap:wrap;gap:6px;align-items:center;justify-content:flex-end;margin:0 0 8px;}
.widget-tools button{padding:4px 10px;font-size:max(11px, 0.75rem);box-shadow:none;}
.widget-grip{cursor:grab;touch-action:none;}
.arrange-bar{position:sticky;top:calc(var(--bar-h,56px) + 8px);z-index:20;display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;justify-content:space-between;margin:0 0 12px;padding:10px 14px;background:var(--surface-selected);color:var(--ink);border:1px solid var(--st-blue-2);border-radius:var(--radius-sm);}
.arrange-bar p{margin:0;font-size:0.8125rem;}
.arrange-actions{display:flex;flex-wrap:wrap;gap:8px;}

/* Phones: the period presets as one select, the filters behind one button
   (both are display:none, or contents, on wider screens). */
.period-select{display:none;padding:7px 10px;border:1px solid var(--line-strong);border-radius:var(--radius-sm);background:var(--surface);color:var(--ink);font:inherit;}
button.filter-toggle{display:none;}
.filter-groups{display:contents;}
.filter-active{font-weight:600;}
.bottom-bar{display:none;}
.sheet{position:fixed;left:0;right:0;bottom:0;z-index:70;max-height:85vh;max-height:calc(85dvh - env(safe-area-inset-top,0px));overflow-y:auto;overscroll-behavior:contain;padding:16px max(16px,env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left));background:var(--surface-raised);color:var(--ink);border-radius:16px 16px 0 0;box-shadow:var(--shadow-lg);}
.sheet.open{display:block;}
.sidebar.sheet{width:auto;height:auto;background:var(--grad-navy);color:var(--side-ink);}
/* The side menu opened as a sheet on a phone (Views ▾) slides up from the bottom like every other sheet: html.has-side-toggle .sidebar{position:relative} (narrow screens) outranked .sheet{position:fixed;bottom:0}, so it opened under the header (found in the tutorial capture, 4 Oct 2026). */
html.has-side-toggle .sidebar.sheet, html .sidebar.sheet{position:fixed;top:auto;right:0;bottom:0;left:0;}
.sheet-backdrop{position:fixed;inset:0;z-index:69;background:var(--overlay);}
@media (max-width: 600px), (max-height: 500px) and (pointer: coarse){
  /* The bottom bar (mobile release M1): Chrome's constant inset where it
     offers one, so the bar never jumps when Chrome's own bar comes and goes. */
  .bottom-bar{position:fixed;left:0;right:0;bottom:0;z-index:60;display:flex;align-items:stretch;justify-content:space-around;gap:2px;min-height:56px;padding:0 max(4px,env(safe-area-inset-right)) env(safe-area-max-inset-bottom, env(safe-area-inset-bottom, 0px)) max(4px,env(safe-area-inset-left));background:var(--surface-raised);border-top:1px solid var(--line);box-shadow:var(--shadow);}
  .bb-item{position:relative;flex:1 1 auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:48px;min-height:56px;padding:4px 2px;border:0;background:none;color:var(--ink-soft);font:inherit;font-size:clamp(11px, 0.6875rem, 14px);line-height:1.1;font-weight:600;text-decoration:none;cursor:pointer;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none;}
  .bb-pill{position:relative;display:inline-flex;align-items:center;justify-content:center;width:56px;height:30px;border-radius:999px;border:2px solid transparent;}
  .bb-item[aria-current] .bb-pill, .bb-item[aria-expanded="true"] .bb-pill{background:var(--bb-pill-bg);border-color:var(--bb-pill-line);}
  .bb-item[aria-current], .bb-item[aria-expanded="true"]{color:var(--ink-brand);}
  .bb-item[aria-current] .bb-label, .bb-item[aria-expanded="true"] .bb-label{font-weight:800;}
  /* A label wraps to a second line rather than be cut (fix round 1 of 17 October 2026, M10: at the largest text setting
     "Notifications" kept an ellipsis; the administrator's 23:58 words carry no text-size limit): it breaks at its own
     hyphenation point where the phone has one, else where it must; the bar grows to hold it, and js/common.js gives the
     bar's real height to --bb-h, so the page's room and the focus's clear space below follow. The ellipsis is left
     only for a third line, which no label of the five reaches. At 340 px and below the pill is 48 px wide, so each item
     is as wide as its label at the default text size ("Notifications" whole at 320 px, the review of 17 October 2026). */
  .bb-label{white-space:normal;max-width:100%;overflow:hidden;text-overflow:ellipsis;text-align:center;overflow-wrap:anywhere;hyphens:auto;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;}
  /* Where the five are too wide for the bar (the largest text at 320 px), "My work" gives way (it wraps at its space);
     every one-word label keeps its width, "Notifications" too, so no word is broken (fix round 2 of 17 October 2026: at
     320 px and the largest text "Notifications" gave way and read "Notification / s"; the five then take about 295 of
     the 320 px). */
  .bb-item{flex-shrink:0;}
  .bb-item[data-bb="mywork"]{flex-shrink:4;}
  .bb-item[data-bb="notices"]{flex-shrink:0;}
  @media (max-width: 340px){ .bb-pill{width:48px;} }
  /* The badge keeps its size at any text setting (a fixed glyph: mobile release M2, 5.9.1). */
  .bb-item .assigned-count{position:absolute;top:-4px;right:2px;min-width:20px;min-height:20px;font-size:11px;}
  .bb-item .assigned-count.zero{display:none;}
  .bb-item:active .bb-pill{background:var(--surface-hover);}
  .main{padding:16px max(16px,env(safe-area-inset-right)) calc(var(--bb-h) + 32px) max(16px,env(safe-area-inset-left));}
  /* Nothing that takes focus comes to rest under the bottom bar (WCAG 2.4.11; the review of 17 October 2026): the
     page scrolls a control into view with the bar's height and 8 px clear below it. */
  html{scroll-padding-bottom:calc(var(--bb-h) + 8px);}
  .toast-stack, .bulk-bar{bottom:calc(var(--bb-h) + 16px);}
  .module-tabs, .module-user .search-box, #module-bar-mywork{display:none;}
  .module-logo{height:32px;}
  .sidebar{display:none;}
  .sidebar.sheet.open{display:block;}
  .kpirow{grid-template-columns:repeat(2,minmax(0,1fr));}
  .modal-backdrop{align-items:flex-end;padding:0;}
  .modal{width:100%;max-height:90vh;max-height:90dvh;overflow-y:auto;border-radius:var(--radius) var(--radius) 0 0;}
  .period-presets{display:none;}
  .period-select{display:block;}
  button.filter-toggle{display:inline-flex;align-items:center;gap:6px;}
  .filter-groups{display:none;}
  .filter-groups.sheet.open{display:flex;flex-direction:column;align-items:stretch;gap:10px;}
  /* 16 px fields never zoom on an iPhone, over every stronger rule (G5). */
  input, select, textarea{font-size:max(16px, 1rem) !important;}
  /* Phone body text is 16 px (standard rule 15; mobile release M2): text with no size of its own. */
  body{font-size:1rem;}
  .widget-grip{display:none;}
}
/* On a phone the side menu is a sheet: never folded, no fold button. */
@media screen and (max-width: 600px), screen and (max-height: 500px) and (pointer: coarse){
  html.has-side-toggle .sidebar .side-toggle{display:none;}
  html.sidebar-folded .sidebar.sheet > :not(.side-toggle){display:block;}
  html.sidebar-folded .sidebar.sheet > .navgroup{display:flex;}
  html.sidebar-folded .sidebar.sheet > .sheet-head{display:flex;}
  /* Views (mobile release M1, D22): the sheet holds the unit's own items
     only; the shared group, Upload past work, the name, the password and
     Sign out are on the bar and the Units page. Both spellings, so the
     folded menu's rule above cannot show them again. */
  html .sidebar.sheet > .brand, html .sidebar.sheet > .brand-sub, html .sidebar.sheet > .synctag, html .sidebar.sheet > .nav-work, html .sidebar.sheet > .nav-out, html .sidebar.sheet > .sidebar-foot, html .sidebar.sheet > .side-toggle,
  html.sidebar-folded .sidebar.sheet > .brand, html.sidebar-folded .sidebar.sheet > .brand-sub, html.sidebar-folded .sidebar.sheet > .synctag, html.sidebar-folded .sidebar.sheet > .nav-work, html.sidebar-folded .sidebar.sheet > .nav-out, html.sidebar-folded .sidebar.sheet > .sidebar-foot, html.sidebar-folded .sidebar.sheet > .side-toggle{display:none;}
}
/* Touch targets of 48 px on phones and touch screens (mobile release M1,
   G6; the visible shape may stay smaller), 12 px between bordered row buttons. */
@media (max-width: 600px), (pointer: coarse){
  .btn, .rowbtn, .pill, .navitem, .navlink, .module-tab, .um-item, .bb-item, .drawer-tab, .toast-action, .toast-close, .filter-bar button, .filter-bar select, .filter-clear, .period-presets button, .period-step, .period-select, .layout-switch button, .gantt-zoom .pill, .board-move, .gantt-cell, .gantt-item, .sel-col label, .widget-tools button, .grid-sort, .people-remove, .org-toggle, button.linkish, .field input, .field select, .field textarea, .tu-cell, .ex-chip, .mywork-fold, .board-jump .chip, .um-theme label, .sheet-handle, .sheet-done, .sheet-x, .palette-cancel, .palette-back, .views-btn, .units-link, .module-back, .module-refresh, .drawer-close, .cbx-toggle, .work-tick{min-height:48px;}
  .toast-close, .board-move, .avatar-btn, .widget-tools button, .drawer-close, .people-remove, .org-toggle, .org-toggle-spacer, .cbx-toggle, .sheet-x, .palette-back, .module-back, .module-refresh, .update-close{min-width:48px;}
  .rowbtn{margin:0 12px 8px 0;}
  /* The trades under an entry in the case timeline (Release 4 part B review). */
  .tl-trades a{display:inline-flex;align-items:center;min-height:48px;}
  /* "Open PDF" in Market Intelligence's Reports tables (16 October 2026). */
  .mi-page .ledger td a{display:inline-flex;align-items:center;min-height:48px;}
  .switch[role="switch"]::after{content:'';position:absolute;top:-11px;bottom:-11px;left:-2px;right:-2px;}
  .cbx input{padding-right:52px;}
}
/* ---- The optional parts of a form on a phone (9 October 2026) ----
   The summary of a part that opens ("Phone, email and identity (optional)",
   "Referred by (optional)", "How the services are counted") was a 20 px
   line of text: on phones and touch screens it fills its box and is at
   least 48 px high (mobile standard rule 4), with the ring of keyboard
   focus inside the box. On a laptop it looks as it did. */
@media (max-width: 600px), (pointer: coarse){
  details.more summary{box-sizing:border-box;min-height:48px;margin:-10px -14px;padding:14px;}
  details.rule-note summary{box-sizing:border-box;min-height:48px;padding:14px 0;}
  /* "The figures as a table" under a chart (charts.js table view; Market Intelligence, 16 October 2026). */
  .chart-table > summary{box-sizing:border-box;min-height:48px;padding:14px 0;}
  details.more summary:focus-visible, details.rule-note summary:focus-visible, .chart-table > summary:focus-visible{outline:2px solid var(--accent);outline-offset:-2px;}
}
@media print{ .bottom-bar, .sheet-backdrop, .user-menu, .arrange-bar, .widget-tools, .icon-sprite{display:none !important;} .widget-grid.arranging > [data-widget]{outline:none;} }

/* ---- Phase 5 A: rules (work/p5-rules) --------------------------------------------
   The Rules page (public/rules.html; README "Rules"): the sentence builder, the
   switches of the unit reminders, the preview. Branch A adds its rules directly
   after this comment and nowhere else, so the three phase 5 branches merge
   without touching the same lines (phase 5 design 5.1). Tokens only, no hex (the semantic tokens of phase 6).
   ---------------------------------------------------------------------------------- */

.rule-sentence{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;margin:0 0 12px;font-size:0.9375rem;line-height:1.6;color:var(--ink);}
.rule-sentence select, .rule-sentence input{width:auto;display:inline-block;min-height:36px;padding:4px 8px;border:1px solid var(--line-strong);border-radius:var(--radius-xs);background:var(--bg-panel);color:var(--ink);font:inherit;}
.rule-sentence input[type="number"]{width:5em;}
.rule-sentence select:disabled, .rule-sentence input:disabled{background:var(--bg);color:var(--ink-soft);}
@media (pointer:coarse){.rule-sentence select, .rule-sentence input, .rule-when select, .rule-when input{min-height:44px;}}
.rule-when{display:inline-flex;flex-wrap:wrap;align-items:center;gap:6px 8px;}
p.rule-when, div.rule-when{display:flex;margin:0 0 12px;}
.rule-when select, .rule-when input{width:auto;}
.rule-only{border:1px solid var(--line);border-radius:var(--radius-sm);padding:8px 12px 12px;margin:0 0 12px;display:flex;flex-wrap:wrap;gap:8px 24px;}
.rule-only > legend{font-weight:600;color:var(--ink);padding:0 4px;}
.rule-checks{border:0;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:4px 14px;align-items:center;}
.rule-checks > legend{font-size:max(11px, 0.78125rem);color:var(--ink-muted);padding:0;margin-bottom:4px;width:100%;}
.rule-preview{margin:4px 0 12px;padding:10px 12px;border-left:3px solid var(--blue);background:var(--surface-selected);border-radius:var(--radius-xs);color:var(--ink);}
.rule-preview:empty{display:none;}
.rule-preview-list{margin:6px 0 0;padding-left:18px;}
.rule-preview-list li{margin:4px 0;}
.rule-off{color:var(--ink-muted);text-decoration:line-through;text-decoration-color:var(--line);}
.rule-stopped{display:block;margin-top:4px;font-size:max(11px, 0.78125rem);}
.rule-list-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;}
.rule-list-head h2{margin:0;}
.rule-unit-name{font-weight:600;color:var(--ink);}
.rule-builtin{list-style:none;margin:0;padding:0;}
.rule-builtin li{padding:10px 0;border-bottom:1px solid var(--line-soft);}
.rule-builtin li:last-child{border-bottom:0;}
.rule-sentence-static{margin:0 0 4px;font-size:0.9375rem;color:var(--ink);}
.switch[role="switch"]{position:relative;display:inline-flex;align-items:center;width:44px;height:26px;min-width:44px;padding:0;border:1px solid var(--line);border-radius:999px;background:var(--line);cursor:pointer;vertical-align:middle;transition:background .15s ease;}
.switch[role="switch"] .switch-knob{position:absolute;top:2px;left:2px;width:20px;height:20px;border-radius:50%;background:var(--bg-panel);box-shadow:var(--shadow-sm);transition:left .15s ease;}
.switch[role="switch"][aria-checked="true"]{background:var(--blue);border-color:var(--blue);}
.switch[role="switch"][aria-checked="true"] .switch-knob{left:20px;}
.switch[role="switch"]:focus-visible{outline:2px solid var(--accent);outline-offset:2px;}
.switch[role="switch"][aria-disabled="true"]{opacity:.55;cursor:not-allowed;}
@media (pointer:coarse){.switch[role="switch"]{height:32px;min-height:32px;}}
@media (prefers-reduced-motion:reduce){.switch[role="switch"], .switch[role="switch"] .switch-knob{transition:none;}}
@media (max-width: 600px), (max-height: 500px) and (pointer: coarse){.rule-sentence{font-size:0.875rem;}.rule-sentence select{max-width:100%;}}
/* Every rule editable (work/rules-edit): the sentence of a default opens
   the rule; the chip of a default whose values were changed. The Unit filter is
   the shared filter control, styled by the "Filter menu" block below. */
.rule-link{color:var(--link);text-decoration:none;}
.rule-link:hover, .rule-link:focus-visible{text-decoration:underline;}
.rule-link.rule-off{color:var(--ink-muted);text-decoration:line-through;text-decoration-color:var(--line);}
#rules-defaults tr[data-rule]{cursor:pointer;}
.chip.chip-changed{margin-left:6px;}
#rb-action-help{margin:-6px 0 12px;}
/* Built in (work/rules-027): the Front Office morning email's inline editor,
   the Users page's office-hours kind of form. */
#fo-daily-form{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px 16px;margin:8px 0 0;}
#fo-daily-form .field{margin:0;}
#fo-daily-form input, #fo-daily-form select{width:auto;min-height:44px;}
#fo-daily-form .form-actions{margin:0;}

/* ---- Phase 5 B: My work (work/p5-my-work) ----------------------------------------
   My work (public/my-work.html; README "My work"): the tiles, the five groups,
   the rows, the bell's My work line and the top bar's count, the cards under
   600 px and the print rules. Branch B adds its rules directly after this
   comment and nowhere else (phase 5 design 5.1). Tokens only, no hex (the semantic tokens of phase 6).
   ---------------------------------------------------------------------------------- */

.mywork-tiles{margin:14px 0 18px;}
.mywork-team{margin-bottom:18px;}
.mywork-switch{display:inline-flex;}
.mywork-group{margin:0 0 20px;}
.mywork-group h2{font-size:0.9375rem;font-weight:700;color:var(--ink);margin:0 0 8px;letter-spacing:-0.01em;}
.mywork-group h2 .count{color:var(--ink-muted);font-weight:600;}
.mywork-fold{border:0;background:none;padding:0;font:inherit;color:var(--ink);cursor:pointer;display:inline-flex;align-items:center;gap:8px;}
.mywork-fold::before{content:'▸';color:var(--ink-muted);font-size:max(11px, 0.75rem);}
.mywork-fold[aria-expanded="true"]::before{content:'▾';}
.mywork-fold:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:var(--radius-xs);}
.mywork-row td{vertical-align:top;}
.mywork-open{font-weight:600;color:var(--ink);}
.mywork-open:hover{color:var(--link);}
.mywork-why{font-size:max(11px, 0.75rem);color:var(--ink-soft);}
.mywork-more{margin-top:8px;}
.bell-mywork{margin:8px 0 0;padding:8px 0 0;border-top:1px solid var(--line);font-size:max(11px, 0.78125rem);color:var(--ink-soft);}
.bell-mywork a{font-weight:600;}
.mywork-tab{display:inline-flex;align-items:center;gap:6px;}
#module-bar-mywork .assigned-count.zero{display:none;}
@media (max-width: 600px), (max-height: 500px) and (pointer: coarse){
  .mywork-tiles{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media print{
  /* The tiles print: they open groups now (audit C7), but their counts are the page's. */
  .mywork-more{display:none !important;}
  .mywork-body[hidden]{display:block !important;}
  .mywork-fold::before{content:'';}
}

/* ---- Phase 5 C: scheduled reports (work/p5-schedules) ----------------------------
   Scheduled reports (public/report-schedules.html; README "Scheduled reports"):
   the when of a schedule and its people. Branch C adds its rules directly
   after this comment and nowhere else (phase 5 design 5.1), so the three
   blocks merge side by side. Tokens only, no hex (the semantic tokens of phase 6).
   ---------------------------------------------------------------------------------- */
.schedule-when{color:var(--ink-soft);}
.schedule-people{margin:0;padding:0;list-style:none;}
.schedule-people li{margin:2px 0;}
.schedule-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;}
.schedule-switch-row{display:flex;align-items:center;justify-content:space-between;gap:12px;}
.schedule-switch-row h2{margin:0;}
.schedule-note{display:block;margin:10px 0 0;}
.schedule-note[hidden]{display:none;}
.schedule-said{min-height:1.2em;margin:4px 0 10px;font-weight:600;color:var(--ink-brand);}
.schedule-gone{margin:6px 0 0;padding-left:18px;color:var(--ink-soft);font-size:max(11px, 0.78125rem);}
.schedule-runs{margin:0;padding-left:18px;}
.schedule-runs li{margin:2px 0;}
/* The switches of the page (the platform's and each schedule's) are the one
   switch of block A (.switch[role="switch"], .switch-knob), as on the Rules page. */
@media (max-width: 600px), (max-height: 500px) and (pointer: coarse){ .schedule-head .btn{width:100%;} }

/* ---- Views, bulk and sorting (phase 6, README "Table, board and Gantt";
   js/lib/views.js, js/lib/grid.js bulk, js/lib/sort-table.js). Colours only
   through the semantic tokens of the design system (phase 6 design 2.3): no
   colour value is written here. ---- */
.views-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin:10px 0 12px;}
.layout-switch,.gantt-zoom{display:inline-flex;flex-wrap:wrap;align-items:center;gap:6px;}
.layout-switch .btn.pill,.gantt-zoom .btn.pill{display:inline-flex;align-items:center;gap:6px;}
.layout-switch .icon{width:16px;height:16px;}
.views-note{margin:0;font-size:max(11px, 0.78125rem);color:var(--ink-muted);}
.views-note .btn{margin-left:6px;}
.views-area{margin:0 0 16px;}
.views-error{padding:18px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);}
/* The board: one column per standard status, in the standard's order */
.board{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;align-items:start;}
.board-col{background:var(--surface-2);border:1px solid var(--line);border-radius:var(--radius);padding:10px;min-width:0;}
.board-col.drop-ok{outline:2px dashed var(--accent);outline-offset:2px;background:var(--surface-selected);}
.board-col.drop-no{opacity:0.6;}
.board-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:0 0 10px;padding:6px 10px;border-radius:var(--radius-sm);font-size:0.8125rem;font-weight:700;}
.board-head.st-not_started{background:var(--st-grey);color:var(--st-grey-ink);}
.board-head.st-in_progress{background:var(--st-blue);color:var(--st-blue-ink);}
.board-head.st-waiting{background:var(--st-amber);color:var(--st-amber-ink);}
.board-head.st-done{background:var(--st-green);color:var(--st-green-ink);}
.board-head.st-closed{background:var(--st-slate);color:var(--st-slate-ink);}
.board-head:focus-visible{outline:2px solid var(--accent);outline-offset:-2px;}
/* A Board whose columns the page gives (js/lib/views.js `board`, 24 October 2026: Corporate Finance & Advisory's
   Board by stage): a column's head is the page's words, on the neutral chip, not a status's colour. */
.board-head.board-head-page{background:var(--st-slate);color:var(--st-slate-ink);}
.board-jump .chip.board-jump-page{background:var(--st-slate);color:var(--st-slate-ink);}
.board-count{font-weight:600;}
.board-cards{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px;}
.board-card{position:relative;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-sm);padding:10px 40px 10px 12px;box-shadow:var(--shadow-sm);}
.board-card:hover{background:var(--surface-hover);border-color:var(--line-strong);}
.board-card.saving{opacity:0.6;}
.board-card-top{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 4px;}
.board-ref{font-size:max(11px, 0.71875rem);color:var(--ink-muted);font-weight:600;}
.board-card-title{appearance:none;border:none;background:none;padding:0;margin:0;font:inherit;font-weight:600;color:var(--ink);text-align:left;cursor:pointer;display:block;width:100%;line-height:1.4;}
.board-card-title:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:var(--radius-xs);}
.board-card-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:6px;font-size:max(11px, 0.75rem);color:var(--ink-soft);}
.board-owners{display:inline-flex;align-items:center;gap:2px;}
.board-more-owners{font-size:max(11px, 0.6875rem);color:var(--ink-muted);margin-left:2px;}
.board-move{position:absolute;top:6px;right:6px;appearance:none;border:1px solid var(--line);background:var(--surface);color:var(--ink-soft);border-radius:var(--radius-xs);padding:4px;min-width:28px;min-height:28px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;}
.board-move:hover,.board-move:focus-visible{border-color:var(--line-strong);color:var(--ink);} .board-move:focus-visible{outline:2px solid var(--accent);outline-offset:2px;}
.board-more-btn{width:100%;margin-top:8px;}
.board-jump{display:none;}
.board-ghost{position:fixed;top:0;left:0;z-index:95;pointer-events:none;width:240px;opacity:0.92;box-shadow:var(--shadow-lg);}
.skeleton-card{display:block;padding:12px;}
.move-menu{position:absolute;top:36px;right:6px;z-index:30;min-width:220px;padding:6px;background:var(--surface-raised);border:1px solid var(--line);border-radius:var(--radius-sm);box-shadow:var(--shadow-lg);display:flex;flex-direction:column;}
.move-menu [role="menuitem"]{appearance:none;border:none;background:none;text-align:left;font:inherit;font-size:0.8125rem;color:var(--ink);padding:8px 10px;border-radius:var(--radius-xs);cursor:pointer;}
.move-menu [role="menuitem"]:hover,.move-menu [role="menuitem"]:focus-visible{background:var(--surface-selected);} .move-menu [role="menuitem"]:focus-visible{outline:2px solid var(--accent);outline-offset:-2px;}
/* The calendar: a month, Monday to Sunday */
/* The Gantt: a bar per record across the dates (js/lib/gantt.js, drawn by
   js/lib/views.js; the administrator's decision of 2 October 2026). The
   titles' column is sticky; each cell is its own stacking context, so a bar,
   its outside words and its due mark never paint over the titles. */
.gantt-nav{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 8px;}
.gantt-title{margin:0 8px;font-size:1rem;color:var(--ink-brand);min-width:150px;text-align:center;}
.gantt-tray-toggle{margin-left:auto;}
.gantt-hols{margin:0 0 8px;font-size:max(11px, 0.75rem);color:var(--ink-soft);}
.gantt-scroll{overflow-x:auto;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);}
.gantt{--g-name:220px;--g-from:0%;--g-span:0%;position:relative;min-width:760px;}
.gantt[data-zoom="month"],.gantt[data-zoom="quarter"]{min-width:960px;}
.gantt-head,.gantt-row{display:grid;grid-template-columns:var(--g-name) minmax(0,1fr);}
.gantt-head{border-bottom:1px solid var(--line);}
.gantt-corner{position:sticky;left:0;z-index:6;padding:6px 10px;font-size:max(11px, 0.71875rem);font-weight:700;text-transform:uppercase;letter-spacing:0.04em;color:var(--ink-soft);background:var(--surface-2);border-right:1px solid var(--line);}
.gantt-scale{position:relative;height:44px;overflow:hidden;color:var(--ink-soft);background:var(--surface-2);}
.gantt-group,.gantt-tick{--g-from:0%;--g-span:0%;position:absolute;left:var(--g-from);width:var(--g-span);box-sizing:border-box;padding:3px 4px;border-left:1px solid var(--line-soft);font-size:max(11px, 0.71875rem);white-space:nowrap;overflow:hidden;}
.gantt-group{top:0;height:22px;font-weight:700;}
.gantt-tick{top:22px;height:22px;}
.gantt[data-zoom="week"] .gantt-group,.gantt[data-zoom="year"] .gantt-group{height:44px;padding-top:14px;}
.gantt-group.is-today,.gantt-tick.is-today{color:var(--ink-brand);}
.gantt-rows{position:relative;}
.gantt-layer{position:absolute;top:0;bottom:0;left:var(--g-name);right:0;pointer-events:none;}
.gantt-shade{--g-from:0%;--g-span:0%;position:absolute;top:0;bottom:0;left:var(--g-from);width:var(--g-span);background:var(--surface-2);}
.gantt-shade.hol{background:var(--warning-bg);}
.gantt-today{--g-from:0%;position:absolute;top:0;bottom:0;left:var(--g-from);border-left:2px solid var(--accent);}
.gantt-row{min-height:40px;border-bottom:1px solid var(--line-soft);cursor:pointer;}
.gantt-name{position:sticky;left:0;z-index:5;display:flex;flex-direction:column;justify-content:center;min-width:0;padding:4px 10px;font-size:0.8125rem;color:var(--ink);background:var(--surface);border-right:1px solid var(--line);}
.gantt-name > span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
/* "Not touched for N working days" under a row's title: whole on a phone's narrow title column too. */
.gantt-name > .gantt-idle{overflow:visible;white-space:normal;padding:2px 0;}
.gantt-name > .gantt-idle .chip{white-space:normal;}
.gantt-ref{font-size:max(11px, 0.6875rem);color:var(--ink-muted);}
.gantt-cell{position:relative;z-index:0;isolation:isolate;min-height:40px;}
.gantt-cell:focus-visible{outline:2px solid var(--accent);outline-offset:-2px;}
.gantt-bar{--g-from:0%;--g-span:0%;position:absolute;top:8px;bottom:8px;left:var(--g-from);width:var(--g-span);min-width:8px;box-sizing:border-box;display:flex;align-items:center;gap:6px;padding:0 8px;border:1px solid currentColor;border-radius:999px;font-size:max(11px, 0.75rem);font-weight:600;line-height:1;white-space:nowrap;overflow:hidden;z-index:1;}
.gantt-bar.st-not_started{background:var(--st-grey);color:var(--st-grey-ink);}
.gantt-bar.st-in_progress{background:var(--st-blue);color:var(--st-blue-ink);}
.gantt-bar.st-waiting{background:var(--st-amber);color:var(--st-amber-ink);}
.gantt-bar.st-done{background:var(--st-green);color:var(--st-green-ink);}
.gantt-bar.st-closed{background:var(--st-slate);color:var(--st-slate-ink);}
.gantt-bar.st-none{background:var(--st-sky);color:var(--st-sky-ink);}
.gantt-bar.over{background:var(--st-red);color:var(--st-red-ink);}
.gantt-bar.mark{padding:0;justify-content:center;}
.gantt-bar.cut-start{border-top-left-radius:0;border-bottom-left-radius:0;border-left-style:dashed;}
.gantt-bar.cut-end{border-top-right-radius:0;border-bottom-right-radius:0;border-right-style:dashed;}
.gantt-bar .avatar,.gantt-out .avatar{width:18px;height:18px;font-size:9px;flex:0 0 auto;}
.gantt-bar .board-more-owners{color:inherit;}
.gantt-zoom-word{font-size:max(11px, 0.78125rem);color:var(--ink-soft);margin-right:2px;}
.gantt-due{--g-from:0%;position:absolute;top:4px;bottom:4px;left:var(--g-from);border-left:2px dashed var(--st-red-ink);z-index:2;}
.gantt-out{--g-from:0%;--g-span:0%;position:absolute;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;gap:6px;padding:1px 6px;border-radius:var(--radius-xs);font-size:max(11px, 0.75rem);font-weight:600;white-space:nowrap;color:var(--ink-soft);background:var(--surface);z-index:1;}
.gantt-out.right{left:calc(var(--g-from) + var(--g-span) + 4px);}
.gantt-out.left{right:calc(100% - var(--g-from) + 4px);}
.gantt-empty{margin:10px 0 0;}
.gantt-tray{margin:12px 0 0;padding:10px;background:var(--surface-2);border:1px solid var(--line);border-radius:var(--radius);}
.gantt-skeleton .gantt-row{cursor:default;}
.gantt-skeleton .gantt-track{display:flex;align-items:center;padding:0 10px;min-height:40px;}
.gantt-list{list-style:none;margin:0;padding:0;}
.gantt-list > li{margin:0 0 8px;}
.gantt-item{display:block;width:100%;min-height:44px;padding:8px 10px;box-sizing:border-box;text-align:left;font:inherit;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-sm);cursor:pointer;}
.gantt-item:focus-visible{outline:2px solid var(--accent);outline-offset:2px;}
.gantt-item-top{display:flex;flex-wrap:wrap;align-items:center;gap:6px;}
.gantt-item-title{flex:1 1 auto;min-width:0;font-size:0.875rem;font-weight:700;}
.gantt-item-dates{display:block;margin:2px 0 0;font-size:max(11px, 0.75rem);color:var(--ink-soft);}
.gantt-mini{position:relative;display:block;height:10px;margin:6px 0 0;border-radius:999px;overflow:hidden;background:var(--surface-2);}
.gantt-mini .gantt-bar{top:0;bottom:0;min-width:4px;padding:0;}
.gantt-nav .btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px;}
/* Several rows at once */
.sel-col{width:44px;text-align:center;}
.sel-hit{display:inline-flex;align-items:center;justify-content:center;min-width:28px;min-height:28px;cursor:pointer;}
.sel-hit input{width:16px;height:16px;margin:0;accent-color:var(--accent);cursor:pointer;}
.sel-hit input:focus-visible{outline:2px solid var(--accent);outline-offset:2px;}
tr.grid-row.selected td{background:var(--surface-selected);}
.grid-more td{text-align:center;padding:12px;}
.bulk-bar{position:fixed;left:50%;bottom:16px;transform:translateX(-50%);z-index:55;display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;max-width:calc(100vw - 32px);padding:10px 14px;background:var(--surface-raised);color:var(--ink);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-lg);}
.bulk-count{font-weight:700;color:var(--ink);}
.bulk-bar .choice-group{display:flex;flex-wrap:wrap;gap:6px;}
.bulk-bar .btn[aria-disabled="true"]{opacity:0.55;cursor:not-allowed;}
.bulk-msg{flex-basis:100%;margin:0;font-size:max(11px, 0.78125rem);color:var(--negative-ink);}
.bulk-msg:empty{display:none;}
.work-many-emails{margin:4px 0 0;font-size:0.8125rem;color:var(--ink-soft);}
/* Everyone assigns and reassigns (5 October 2026): the line a sheet shows while viewing as someone (the banner's own tokens), the tag of a record whose work is open in a unit the reader does not see, the tick rows of the several-owners sheet, Take over beside an owner field. */
.view-as-line{margin:0 0 10px;padding:9px 12px;border-radius:var(--radius-sm);background:var(--warning-strong);color:var(--on-brand);font-size:0.84375rem;line-height:1.4;}
.tag-elsewhere{white-space:nowrap;}
/* A switched-off control says why (the sweep of 5 October 2026): one look for every button or link that carries aria-disabled, and the visible line that holds its reason (common.js switchOff, offWhyHtml). The lists with a look of their own (the foot of a drawer, Download, the filter control) keep it. */
.btn[aria-disabled="true"], .rowbtn[aria-disabled="true"], button.linkish[aria-disabled="true"], .dfield-change[aria-disabled="true"], .arrange-btn[aria-disabled="true"], .navitem[aria-disabled="true"], .navlink[aria-disabled="true"], .board-move[aria-disabled="true"]{opacity:0.55;cursor:not-allowed;text-decoration:none;}
.off-why{margin:6px 0;font-size:max(12px, 0.8125rem);line-height:1.4;color:var(--ink-soft);}
.off-why[hidden]{display:none;}
.dl-why.off-why{display:inline-block;margin:0 0 0 8px;vertical-align:middle;}
.drawer-foot .off-why{margin:0 0 8px;}
.bulk-bar .off-why{flex-basis:100%;margin:0;}
.drawer-body > .off-why{margin:0 0 12px;padding:8px 12px;border-radius:var(--radius-sm);background:var(--surface-2);color:var(--ink);}
.work-ticks{display:flex;flex-direction:column;gap:2px;}
.work-tick{display:flex;align-items:center;gap:10px;min-height:32px;font-size:0.875rem;color:var(--ink);cursor:pointer;}
.work-tick input{width:18px;height:18px;flex:none;}
.dfield-take{margin-left:8px;}
.work-modal .btn[aria-disabled="true"]{opacity:0.55;cursor:not-allowed;}
@media (prefers-reduced-motion: no-preference){
  .board-card,.gantt-bar,.board-move{transition:background .15s,border-color .15s,box-shadow .15s;}
}
@media (max-width: 600px), (max-height: 500px) and (pointer: coarse){
  .board{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:10px;padding-bottom:6px;}
  .board-col{flex:0 0 85%;scroll-snap-align:start;}
  .board-jump{display:flex;gap:6px;overflow-x:auto;position:sticky;top:0;z-index:2;padding:6px 0;background:var(--bg);}
  .board-jump .chip{border:none;cursor:pointer;white-space:nowrap;}
  .gantt-title{min-width:0;}
  .ledger-cards.grid-bulk thead{display:block;}
  .ledger-cards.grid-bulk thead tr{display:flex;justify-content:flex-end;border:none;background:none;margin:0 0 6px;padding:0;min-height:0;}
  .ledger-cards.grid-bulk thead th:not(.sel-col){display:none;}
  .ledger-cards tr{position:relative;}
  .ledger-cards tbody tr{display:flex;flex-wrap:wrap;min-height:44px;}
  .ledger-cards tbody tr > td{flex:1 1 100%;}
  .ledger-cards td[data-card="title"]{order:-1;font-size:0.9375rem;font-weight:700;padding-right:52px;}
  .ledger-cards td[data-card="title"]::before,.ledger-cards td[data-card="meta"]::before,.ledger-cards td[data-card="select"]::before{content:none;}
  .ledger-cards tbody tr > td[data-card="meta"]{flex:0 1 auto;display:inline-block;width:auto;padding:4px 6px 4px 12px;}
  .ledger-cards td[data-card="hide"]{display:none;}
  .ledger-cards td[data-card="select"]{position:absolute;top:0;right:0;width:auto;padding:0;}
  .ledger-cards td[data-card="select"] .sel-hit,.ledger-cards th.sel-col .sel-hit{min-width:48px;min-height:48px;}
  .bulk-bar{left:max(16px,env(safe-area-inset-left));right:max(16px,env(safe-area-inset-right));transform:none;bottom:calc(var(--bb-h) + 16px);max-width:none;}
}
@media (max-width: 600px), (pointer: coarse){
  .layout-switch button,.gantt-zoom button,.board-move,.gantt-item,.gantt-tray-toggle,.sel-hit,.board-card-title,.move-menu [role="menuitem"]{min-height:48px;}
  .gantt-row,.gantt-cell{min-height:48px;}
  .board-move{min-width:48px;}
  /* 13 October 2026: three rules written outside this block said less than
     48 px for a control on a phone: the tick rows of the several-owners
     window (32; the row reached 48 px only through the tick inside it, which
     `.field input` holds at 48), date and time fields (38) and the two fields
     of the Front Office morning email (44). A laptop with a mouse keeps those
     sizes. */
  .work-tick{min-height:48px;}
  .field input[type="date"], .field input[type="time"]{min-height:48px;}
  #fo-daily-form input, #fo-daily-form select{min-height:48px;}
}
@media print{
  .layout-switch,.gantt-zoom,.gantt-nav button,.gantt-tray-toggle,[data-views-alldue],[data-gantt-extra],.board-move,.bulk-bar,.sel-col,.move-menu,.board-more-btn,.board-jump,.grid-more{display:none !important;}
  .views-note{display:block;}
  .board{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));overflow:visible;}
  .board-col{break-inside:avoid;}
  .board-card{break-inside:avoid;box-shadow:none;padding-right:12px;}
  .gantt-scroll{overflow:visible;border:none;}
  .gantt{min-width:0;}
  .gantt-head,.gantt-row{grid-template-columns:160px minmax(0,1fr);}   /* a narrower title column on paper (no token is set in print) */
  .gantt-layer{left:160px;}
  .gantt-corner,.gantt-name{position:static;}
  .gantt-row{break-inside:avoid;}
  .gantt-bar{overflow:visible;}
  .gantt-bar.mark{justify-content:flex-start;}
  th[aria-sort] .grid-sort{border:none;background:none;}
  .sort-mark{display:none;}
}

/* ---- Download menu (js/lib/download.js; the administrator's decision of
   1 October 2026): one "Download" button, at the right end of a page
   heading and as the last step of the Download report panel, opens PDF,
   Word, Excel, PowerPoint in that order. On a phone the list is phase 6's
   sheet from the bottom of the screen. Colours only through the semantic
   tokens of the design system (phase 6 design 2.3): no colour value is
   written here. ---- */
.dl-menu{position:relative;display:inline-flex;vertical-align:middle;}
.dl-menu .dl-button{display:inline-flex;align-items:center;gap:6px;margin:0;}
.dl-menu .dl-button .icon{width:16px;height:16px;}
.dl-caret{font-size:max(11px, 0.6875rem);line-height:1;}
.dl-menu .dl-button:hover, .dl-menu .dl-button:focus-visible, .dl-menu .dl-button[aria-expanded="true"]{background:var(--surface-selected);border-color:var(--accent);color:var(--ink-brand);box-shadow:none;}
.dl-menu .dl-button[aria-disabled="true"], .dl-menu .dl-button[aria-disabled="true"]:hover, .dl-menu .dl-button[aria-disabled="true"]:focus-visible{background:var(--surface-2);border-color:var(--line-strong);border-style:dashed;color:var(--ink-muted);box-shadow:none;opacity:1;cursor:not-allowed;}
.dl-list{position:absolute;top:calc(100% + 6px);right:0;z-index:65;min-width:190px;margin:0;padding:6px;list-style:none;text-align:left;background:var(--surface-raised);color:var(--ink);border:1px solid var(--line);border-radius:var(--radius-sm);box-shadow:var(--shadow-lg);}
.dl-list.dl-up{top:auto;bottom:calc(100% + 6px);}
.dl-list.dl-start{right:auto;left:0;}
.dl-list > li{margin:0;padding:0;}
.dl-item{display:flex;align-items:center;min-height:36px;padding:8px 12px;border-radius:var(--radius-xs);color:var(--ink);font-size:0.84375rem;font-weight:600;text-decoration:none;white-space:nowrap;cursor:pointer;}
.dl-item:hover, .dl-item:focus{background:var(--surface-selected);color:var(--ink-brand);text-decoration:none;}
.dl-item:focus-visible{outline:2px solid var(--accent);outline-offset:-2px;}
.dl-item[aria-disabled="true"], .dl-item[aria-disabled="true"]:hover{background:transparent;color:var(--ink-muted);cursor:not-allowed;}
/* In the Download report panel the list opens upwards, inside the panel. */
.report-panel .dl-list{top:auto;bottom:calc(100% + 6px);}
.report-actions{flex-wrap:wrap;align-items:center;}
.report-actions .choice-group{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end;}
/* On a phone: a sheet from the bottom of the screen over its backdrop. */
.dl-list.sheet{position:fixed;top:auto;right:0;bottom:0;left:0;z-index:70;min-width:0;max-height:85vh;max-height:calc(85dvh - env(safe-area-inset-top,0px));padding:8px max(12px,env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom,0px)) max(12px,env(safe-area-inset-left));border-width:1px 0 0;border-radius:16px 16px 0 0;}
.dl-list.sheet .dl-item{min-height:48px;font-size:0.9375rem;}
@media (pointer: coarse){ .dl-item{min-height:48px;} }
@media print{ .dl-menu, .dl-list, .dl-backdrop{display:none !important;} }

/* ---- Filter menu (one filter control, 2 Oct 2026) ----
   js/lib/filters.js on the menu core js/lib/menu.js, the Download menu's
   twin: "Label: Value ▾", a list of radio or checkbox items, filled while
   it is not at All (its own tokens: the dark navy would vanish on the dark
   surfaces). The state rules start with .fl-menu so they win over
   .choice-group .btn's navy hover; the words take the button's colour. */
.fl-menu{position:relative;display:inline-flex;vertical-align:middle;}
.fl-button{display:inline-flex;align-items:center;gap:6px;margin:0;padding:6px 12px;font-size:0.8125rem;border-color:var(--line-strong);}
.fl-button .fl-label{font-weight:500;color:inherit;white-space:pre;}
.fl-button .fl-value{font-weight:600;color:inherit;max-width:16em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.fl-menu .fl-button:hover, .fl-menu .fl-button:focus-visible, .fl-menu .fl-button[aria-expanded="true"]{background:var(--surface-selected);border-color:var(--accent);color:var(--ink-brand);box-shadow:none;}
.fl-menu .fl-button[data-set], .fl-menu .fl-button[data-set]:hover, .fl-menu .fl-button[data-set]:focus-visible, .fl-menu .fl-button[data-set][aria-expanded="true"]{background:var(--filter-set-bg);border-color:var(--filter-set-line);color:var(--filter-set-ink);}
.fl-menu .fl-button[aria-disabled="true"], .fl-menu .fl-button[aria-disabled="true"]:hover{background:var(--surface-2);border-style:dashed;color:var(--ink-muted);cursor:not-allowed;opacity:1;}
.dl-list.fl-list{right:auto;left:0;min-width:220px;max-height:min(60vh,26rem);overflow-y:auto;overscroll-behavior:contain;}
.dl-list.fl-list.dl-start{left:0;} .dl-list.fl-list.fl-end{left:auto;right:0;}
/* A drop-down opened as a sheet on a phone is the screen's width, never its items' (verification item 5:
   "Funds to compare" was 514 px wide on a 375 px screen, its long names kept to one line). */
.dl-list.fl-list.sheet{left:0;right:0;width:auto;max-width:100vw;}
.dl-list.sheet .dl-item{white-space:normal;overflow-wrap:anywhere;}
/* A list opened in place inside a sheet, on every page (here a filter's list in the Filters sheet on a phone), wraps its items as a sheet's
   list does, so at a large text size "All kinds (22 funds)" is never wider than the sheet (fix round 3 of 17 October
   2026, the browser check's 200% pass). */
.sheet.open .dl-list .dl-item{white-space:normal;overflow-wrap:break-word;}
.fl-item{font-weight:500;gap:10px;}
.fl-item::before{content:"";flex:0 0 16px;width:16px;height:16px;border:1px solid var(--line-strong);border-radius:50%;}
.fl-item[role="menuitemcheckbox"]::before{border-radius:4px;}
.fl-item[aria-checked="true"]::before{background:var(--accent);border-color:var(--accent);box-shadow:inset 0 0 0 3px var(--surface-raised);}
.fl-item[aria-checked="true"]{font-weight:600;}
/* A swatch before an item's words (Market Intelligence, 16 October 2026): the colour a counter's or a fund's line has, painted by a chart fill class. */
.fl-swatch{flex:0 0 12px;width:12px;height:12px;display:inline-block;}
.fl-head{padding:8px 12px 4px;font-size:max(11px, 0.6875rem);font-weight:600;letter-spacing:0.06em;text-transform:uppercase;color:var(--ink-soft);}
.fl-sep{height:1px;margin:6px 0;background:var(--line);}
.fl-group{margin:0;padding:0;list-style:none;}
.dl-list.fl-list.fl-inline{position:static;max-height:none;margin-top:6px;box-shadow:none;width:100%;}
.list-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:0 0 12px;}
.list-toolbar .filter-bar{flex:1 1 auto;margin:0;align-items:center;}
.list-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-left:auto;}
.filter-bar .filter-clear{align-self:center;}
.seg-switch{display:inline-flex;flex-wrap:wrap;gap:6px;}
.btn.pill[aria-pressed="true"], .btn.pill[aria-pressed="true"]:hover{background:var(--navy);border-color:var(--navy);color:var(--on-brand);}
@media (max-width: 600px), (max-height: 500px) and (pointer: coarse){
  .filter-groups.sheet.open{display:flex;flex-direction:column;align-items:stretch;gap:10px;}
  .filter-groups.sheet .fl-menu, .filter-groups.sheet .fl-button{width:100%;justify-content:space-between;}
  /* A list opened in place inside the sheet stands under its button, never beside it squeezing its words (the review
     of 17 October 2026: "Term: A|ll" at 320 px). */
  .filter-groups.sheet .fl-menu{flex-wrap:wrap;}
  .list-tools{margin-left:0;}
}
@media (max-width: 600px), (pointer: coarse){ .fl-button, .fl-item, .filter-clear, .seg-switch button{min-height:48px;} }
/* ---- Mobile release M1 (README "On a phone"): the one phone query, the
   bottom bar, the sheets' header, the top bar on a phone, Views, the
   Units page, the install card, edges and safe areas, 16 px fields,
   48 px targets. Colours only through the semantic tokens. ---- */
/* The band under the phone's status bar (D12): as tall as the safe area,
   zero where the browser keeps its own bars; the page starts under it. */
body::before{content:'';position:fixed;top:0;left:0;right:0;height:env(safe-area-inset-top,0px);background:var(--status-bar);z-index:95;pointer-events:none;}
body{padding-top:env(safe-area-inset-top,0px);}
body.centered{padding:max(24px,env(safe-area-inset-top,0px)) max(24px,env(safe-area-inset-right,0px)) max(24px,env(safe-area-inset-bottom,0px)) max(24px,env(safe-area-inset-left,0px));}
.module-back, .module-title, .module-refresh, .phone-views{display:none;}
.palette-cancel, .palette-back{display:none;align-items:center;justify-content:center;min-width:48px;min-height:48px;padding:0 8px;border:0;background:none;color:var(--link);font:inherit;font-size:1.0625rem;cursor:pointer;}
.palette-back{color:var(--ink);margin-left:-8px;}
/* The sheets' header (common.js sheetHead): the grabber is a 48 px Close
   button; under it the title and Done (iPhone) or × (other phones). In a
   window (kind 'form') the header holds the grabber and, at its right, the
   window's close control: × on every phone but an iPhone; on an iPhone Done
   or Cancel where the window's foot has no Cancel. A swipe down on it moves
   the sheet (--sheet-drag, set by script). Until 13 October 2026 the line
   of the grabber below said 32 px and, written after the touch list, beat
   its 48 px. */
.sheet-head{position:sticky;top:-16px;z-index:1;display:flex;flex-direction:column;align-items:stretch;margin:-16px calc(-1 * max(16px,env(safe-area-inset-right))) 8px calc(-1 * max(16px,env(safe-area-inset-left)));padding:0 max(16px,env(safe-area-inset-right)) 4px max(16px,env(safe-area-inset-left));background:inherit;border-radius:16px 16px 0 0;touch-action:none;}
.sheet-handle{display:flex;align-items:center;justify-content:center;align-self:center;width:64px;min-height:48px;padding:0;border:0;background:none;cursor:grab;}
.sheet-grabber{display:block;width:36px;height:5px;border-radius:999px;background:var(--line-strong);}
.sheet-bar{display:flex;align-items:center;gap:8px;min-height:48px;}
.sheet-title{flex:1;margin:0;font-size:1.0625rem;font-weight:700;color:inherit;}
.sheet-done{min-height:48px;min-width:48px;padding:0 8px;border:0;background:none;color:var(--link);font:inherit;font-size:1.0625rem;font-weight:700;cursor:pointer;}
.sheet-x{display:inline-flex;align-items:center;justify-content:center;min-width:48px;min-height:48px;border:0;border-radius:999px;background:none;color:inherit;cursor:pointer;}
.sidebar.sheet .sheet-done{color:var(--side-link);}
.sidebar.sheet .sheet-grabber{background:var(--side-ink-muted);}
.dl-list.sheet > .sheet-head{top:-8px;margin:-8px calc(-1 * max(12px,env(safe-area-inset-right))) 8px calc(-1 * max(12px,env(safe-area-inset-left)));padding:0 max(12px,env(safe-area-inset-right)) 4px max(12px,env(safe-area-inset-left));}
.modal > .sheet-head{display:grid;grid-template-columns:1fr auto 1fr;column-gap:8px;align-items:center;top:-22px;margin:-22px calc(-1 * max(24px,env(safe-area-inset-right))) 8px calc(-1 * max(24px,env(safe-area-inset-left)));}
.modal > .sheet-head > .sheet-handle{grid-area:1 / 2;justify-self:center;}
.modal > .sheet-head > .sheet-x, .modal > .sheet-head > .sheet-done{grid-area:1 / 3;justify-self:end;}
.modal > .sheet-head ~ .drawer-close{display:none;}
.sheet-head button:focus-visible{outline-offset:-2px;}
.sheet.dragging, .modal.dragging, .report-panel.dragging{transform:translateY(var(--sheet-drag,0px));}
@media (prefers-reduced-motion: no-preference){ .sheet, .modal, .report-panel{transition:transform .2s ease-out;} .sheet.dragging, .modal.dragging, .report-panel.dragging{transition:none;} }
.menu-cancel{font-weight:700;border-top:1px solid var(--line-soft);}
.menu-cancel .icon{width:18px;height:18px;margin-right:8px;}
/* Hover colours only where the device can hover. */
@media (hover: hover){ .bb-item:hover{text-decoration:none;color:var(--ink);} }
/* The see-through top bar turns solid under Increase Contrast and Reduce Transparency (G16). */
@media (prefers-contrast: more), (prefers-reduced-transparency: reduce){
  .module-bar{background:var(--surface);backdrop-filter:none;-webkit-backdrop-filter:none;}
}
/* The Keyboard shortcuts list is hidden on a touch screen; the Single-key
   shortcuts switch stays on every device (D23, WCAG 2.1.4). */
@media (hover: none) and (pointer: coarse){
  #user-menu [data-um="keys"], .desk-only{display:none;}
}
/* The Units page (/units.html) and the Install Orbit card. */
.units-group{margin:0 0 20px;}
.units-h{margin:0 0 8px;font-size:max(11px, 0.75rem);font-weight:700;letter-spacing:0.06em;text-transform:uppercase;color:var(--ink-muted);}
.units-list{list-style:none;margin:0;padding:0;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);}
.units-list li + li{border-top:1px solid var(--line-soft);}
.units-list li[hidden]{display:none;}
.units-link{display:flex;align-items:center;gap:12px;width:100%;min-height:48px;padding:10px 16px;border:0;background:none;color:var(--ink);font:inherit;font-size:1rem;text-align:left;text-decoration:none;cursor:pointer;}
.units-link .icon{color:var(--ink-soft);}
@media (hover: hover){ .units-link:hover{background:var(--surface-hover);text-decoration:none;} }
#units-account .um-who{padding:2px 0 10px;}
#units-account .um-theme{margin:4px 0 8px;}
#units-account .units-list{margin-top:8px;}
.install-card, .phone-news{margin:0 0 16px;}
.install-title{margin:0 0 6px;font-size:1.0625rem;}
.install-steps{margin:8px 0 12px;padding-left:22px;}
.install-steps li{margin:4px 0;}
.install-actions{display:flex;gap:12px;}
/* The Webinar audience's Name column: a sensible width, breaks only between words. */
.ledger th.aud-name, .ledger td.aud-name{min-width:180px;max-width:320px;white-space:normal;overflow-wrap:break-word;word-break:normal;}
@media (max-width: 600px), (max-height: 500px) and (pointer: coarse){
  /* The top bar on a phone (G7): Back or the logo, the page's name, Refresh
     in the installed app; the bell and the avatar live in the bottom bar's
     Notifications and on the Units page (D7). */
  .module-bar{padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right));flex-wrap:nowrap;}
  .module-back{display:inline-flex;align-items:center;justify-content:center;min-width:48px;min-height:48px;margin-left:-8px;border:0;background:none;color:var(--ink);cursor:pointer;}
  .module-back[hidden]{display:none;}
  .module-brand.under-back{display:none;}
  .module-title{display:block;flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:min(1.0625rem, 21.25px);font-weight:700;color:var(--ink);}
  .module-user{flex:0 0 auto;}
  #module-bar-bell, #user-button, .user-menu, .bell-panel{display:none;}
  .phone-views{display:flex;margin:0 0 12px;}
  .phone-views[hidden]{display:none;}
  :root[data-standalone] .module-refresh{display:inline-flex;align-items:center;justify-content:center;min-width:48px;min-height:48px;border:0;background:none;color:var(--ink);cursor:pointer;}
  /* The record: under the band, Back at the top left, the foot clear of the home indicator. */
  .drawer{padding-top:env(safe-area-inset-top,0px);}
  .drawer-head{position:relative;padding:12px max(16px,env(safe-area-inset-right)) 12px calc(64px + env(safe-area-inset-left,0px));}
  .drawer-head .drawer-close{left:max(8px,env(safe-area-inset-left));right:auto;top:8px;width:48px;height:48px;border:0;background:none;display:inline-flex;align-items:center;justify-content:center;color:var(--ink);}
  .drawer-head .drawer-close .icon{width:24px;height:24px;}
  .drawer-body{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right));}
  .drawer-foot{padding:12px max(16px,env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left));}
  /* A window as a bottom sheet: its foot clear of the home indicator. Its
     close control is in the sheet's header (common.js sheetHead, kind
     'form'), which does not scroll. */
  .modal{padding:22px max(24px,env(safe-area-inset-right)) calc(22px + env(safe-area-inset-bottom,0px)) max(24px,env(safe-area-inset-left));max-height:calc(90dvh - env(safe-area-inset-top,0px));}
  /* A window with no header (opened wide, then narrowed while open) keeps
     its own ×, 48 px, on every phone, and its title keeps clear of it.
     Under a header this × is not drawn (the rule beside .modal > .sheet-head).
     Until 13 October 2026 this × was the close control of every window on a
     phone that is not an iPhone: it was placed against the box that scrolls,
     so it left with the content of a long window, and an iPhone had none. */
  .modal > .drawer-close{width:48px;height:48px;top:8px;right:max(8px,env(safe-area-inset-right));z-index:2;}
  .modal > .drawer-close:first-child ~ h2{padding-right:40px;}
  /* Nothing that takes focus comes to rest under a sheet's header (WCAG
     2.4.11): each control keeps the header's height and the 8 px under it
     clear above itself, at any text size. A window's header is the grabber's
     row; a choice sheet's is that and the title's row, which may take two
     lines at the largest text. On the controls, not as scroll-padding on the
     box: the header sticks inside that same box. */
  .modal a, .modal button, .modal input, .modal select, .modal textarea, .modal summary, .modal [tabindex]{scroll-margin-top:calc(max(48px,1.7rem) + 12px);}
  .sheet a, .sheet button, .sheet input, .sheet select, .sheet textarea, .sheet summary, .sheet [tabindex], .report-panel a, .report-panel button, .report-panel input, .report-panel select, .report-panel textarea, .report-panel summary, .report-panel [tabindex]{scroll-margin-top:calc(max(48px,3.4rem) + 60px);}
  .sheet-head button{scroll-margin-top:0;}
  .work-popup{padding-right:48px;} .work-popup .drawer-close{width:48px;height:48px;top:0;right:0;}
  .update-close{width:48px;height:48px;right:env(safe-area-inset-right,0px);}
  .view-as-banner, .update-banner{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right));}
  .update-banner{padding-right:calc(48px + env(safe-area-inset-right,0px));}
  .work-popups{left:max(8px,env(safe-area-inset-left));right:max(8px,env(safe-area-inset-right));}
  .toast-stack{left:max(16px,env(safe-area-inset-left));right:max(16px,env(safe-area-inset-right));}
  .toast{bottom:calc(var(--bb-h) + 16px);max-width:calc(100vw - 32px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px));}
  /* The search screen fills the phone, its results above the keyboard (--vv-h, set by script). */
  .palette-backdrop{padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) 0 env(safe-area-inset-left,0px);background:var(--surface-raised);}
  .palette{width:100%;max-width:none;height:calc(var(--vv-h,100dvh) - env(safe-area-inset-top,0px));max-height:none;border:0;border-radius:0;box-shadow:none;}
  .palette-head{padding-left:12px;padding-right:12px;}
  .palette-kbd, .palette-foot{display:none;}
  .palette-cancel, .palette-back{display:inline-flex;}
  /* Download report as a sheet from the bottom of the screen. */
  .report-panel, .report-panel.from-sidebar{top:auto;left:0;right:0;bottom:0;width:auto;max-width:none;max-height:calc(85dvh - env(safe-area-inset-top,0px));border-radius:16px 16px 0 0;padding:16px max(16px,env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left));z-index:70;}
  .report-panel > .sheet-head + h3{display:none;}
  .panel-backdrop{z-index:69;}
  .ledger-cards td.aud-name{min-width:0;max-width:none;}
}
@media print{ .fl-menu, .list-tools, .filter-toggle{display:none !important;} }

/* ---- The installed app (mobile release M2, design 5.9.4; README
   "Installing the platform", "On a phone", "The one Download button") ----
   The offline page, the offline notice, the pull-to-refresh indicator, the
   Download list's Share group, the drawer's Share and Android's Install on
   M1's card. Tokens only; sizes in rem, px for borders, gaps and targets.
   The share items are .dl-item too (48 px on phones and touch screens, as
   every item); the drawer's Share is a button.linkish and Install a .btn,
   both on M1's 48 px target list. */
.offline-main{max-width:28rem;margin:0 auto;padding:max(48px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 32px max(16px, env(safe-area-inset-left));text-align:center;}
.offline-logo{display:block;height:3.75rem;width:auto;margin:0 auto 24px;}
.offline-main h1{font-size:1.5rem;margin:0 0 12px;}
.offline-msg{min-height:1.5em;margin-top:16px;}
.update-banner.offline{background:var(--warning-strong);color:var(--on-brand);border-bottom-color:var(--warning-strong);}
.update-banner.offline .update-close:hover{background:var(--on-brand-hover);}
/* Under the top bar and the safe-area band (the script sets --pull-top to the
   bar's bottom edge plus 8 px each time it shows); over the bottom bar (60),
   under the sheets (69-70). */
.pull-refresh{position:fixed;top:var(--pull-top, calc(env(safe-area-inset-top, 0px) + 64px));left:50%;transform:translateX(-50%);z-index:65;display:flex;gap:8px;align-items:center;min-height:40px;padding:8px 14px;border-radius:999px;background:var(--navy);color:var(--on-brand);box-shadow:var(--shadow-lg);font-size:0.875rem;font-weight:600;max-width:calc(100vw - 32px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px));}
.pull-refresh[hidden]{display:none;}
.pull-refresh .pull-icon{display:inline-flex;}
.pull-refresh .pull-icon .icon{width:1.25rem;height:1.25rem;}
@media (prefers-reduced-motion: no-preference){
  .pull-refresh .pull-icon{transition:transform .15s;}
  .pull-refresh.ready .pull-icon{transform:rotate(180deg);}
  .pull-refresh.busy .pull-icon{animation:pull-turn .9s linear infinite;}
}
@keyframes pull-turn{to{transform:rotate(360deg);}}
/* (after .dl-list > li, which zeroes every item's padding and margin) */
.dl-list > li.dl-sep{height:1px;margin:6px 0;background:var(--line);}
.dl-list > li.dl-head{padding:6px 12px 2px;font-size:max(11px, 0.75rem);font-weight:600;color:var(--ink-muted);}
.drawer-share{display:inline-flex;align-items:center;gap:6px;}
.drawer-share .icon{width:1rem;height:1rem;}
.install-alt{margin:8px 0 12px;}
/* Phone notifications (mobile release M3; js/lib/push.js): the section in
   Your account on the Units page, the switch row (48 px, the whole row is
   its label), the status line, the blocked and install steps, the phones.
   Tokens only, both themes; the switch is the phone's native one. */
.push-settings{margin:16px 0 0;padding:14px 16px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);}
.push-h{margin:0 0 8px;font-size:1rem;}
.push-intro p{margin:0 0 8px;color:var(--ink-soft);}
.push-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:4px 0;font-weight:600;color:var(--ink);cursor:pointer;}
.push-row[hidden]{display:none;}
input[type="checkbox"].push-switch{flex:none;width:51px;height:31px;margin:0;accent-color:var(--blue);cursor:pointer;}
input[type="checkbox"].push-switch:disabled{cursor:not-allowed;}
.push-status{margin:4px 0 8px;color:var(--ink-muted);}
.push-status.wait{color:var(--ink-soft);}
.push-status.err{color:var(--negative-ink);}
.push-steps{margin:4px 0 12px;padding-left:22px;}
.push-steps li{margin:4px 0;}
.push-phones{margin-top:12px;padding-top:12px;border-top:1px solid var(--line-soft);}
.push-phones[hidden]{display:none;}
.push-phones-list{list-style:none;margin:0;padding:0;}
.push-phones-list li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:6px 0;}
.push-phones-list li + li{border-top:1px solid var(--line-soft);}
.push-phone{flex:1 1 12rem;min-width:0;overflow-wrap:anywhere;}
.push-hint{margin:12px 0 0;}
.install-push{margin:6px 0 0;}

/* ---- The hand-back (Release 2, 8 October 2026; README "The hand-back") ----
   "Last update" in words: the list's cell carries the laptop's line and the
   phone card's line (one is shown); the drawer's line holds its note to four
   lines (two on a phone) with "Show all". The strip of a record that changed
   while it was open stays under the drawer's top bar. Tokens only. */
.lu-card{display:none;}
.lu-cell{min-width:220px;max-width:360px;}
.drawer-last-update{margin:6px 0 0;font-size:max(12px, 0.8125rem);line-height:1.4;color:var(--ink-soft);}
.lu-note{color:var(--ink);}
.lu-note.lu-clamp{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden;}
.lu-note.lu-clamp.lu-open{display:inline;-webkit-line-clamp:unset;overflow:visible;}
.drawer-changed{position:sticky;top:0;z-index:2;display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;margin:0 0 12px;padding:8px 12px;border-radius:var(--radius-sm);background:var(--warning-bg);color:var(--warning-ink);}
.work-close-note{white-space:pre-wrap;}
.work-chip-closed{white-space:normal;}
@media (max-width: 600px), (max-height: 500px) and (pointer: coarse){
  .lu-wide{display:none;} .lu-card{display:inline;}
  .lu-cell{min-width:0;max-width:none;}
  .ledger-cards tbody tr > td.lu-cell[data-card="meta"]{order:-1;flex:1 1 100%;display:block;padding:2px 12px 6px;}
  .lu-note.lu-clamp{-webkit-line-clamp:2;}
  .lu-more,.drawer-changed .btn{min-height:48px;}
  /* The dashboard's line "Work done, still open: N": the whole row is the link, 48 px tall. */
  .hb-line .hb-link{display:flex;align-items:center;min-height:48px;}
}
/* ---- The Sales daily entry (Release 2, 8 October 2026) ----
   The contact confirmation above the activity form's buttons, the muted
   "Not recorded" bars, the drawer's group of tick boxes. Tokens only. */
.contact-confirm{margin:12px 0 0;padding:10px 14px;border:1px solid var(--warning-line);background:var(--warning-bg);color:var(--warning-ink);border-radius:var(--radius-sm);font-size:0.8125rem;}
.contact-confirm[hidden]{display:none;}
.contact-confirm p{margin:0 0 8px;}
.contact-confirm-buttons{display:flex;gap:8px;flex-wrap:wrap;}
.field .help[hidden]{display:none;}
.formgrid > .off-why{grid-column:1/-1;}
.formgrid > .form-note{grid-column:1/-1;}
.kpirow + .ex-note{margin-top:8px;}
.panel-pad > .ex-note{margin-bottom:8px;}
.panel-pad > div + .ex-note{margin:8px 0 0;}
.bar-row.bar-muted .bar{background:var(--line-strong);}
.bar-row.bar-muted .bar-label,.bar-row.bar-muted .bar-num{color:var(--ink-muted);}
.dfield-checks{border:none;margin:0;padding:0;min-width:0;}
.dfield-checks legend{padding:0;font-size:max(11px, 0.75rem);color:var(--ink-muted);}
.dfield-edit .prodcheck-row input{width:auto;padding:0;}
/* On a phone (mobile standard rules 11, 12 and 17): every tick of a
   wrapping row of tick boxes (Service given, Products discussed, a
   transaction's products, Marketing's Products concerned, the drawer's
   group) is a 48 px target with 8 px between rows; a picker's list is at
   most 40% of the visible height, each option at least 48 px tall, its hint
   on a line of its own under the name; the contact confirmation's buttons
   are full width, "Keep the one on file" first. The two dashboard panels
   (Activities by service given, Activities by outcome): the label on its
   own line above its bar, wrapping in full (never cut: two bars begin "Not
   recorded"), and the whole row a 48 px target that opens the list. */
.num-cell .cell-why{display:inline-block;max-width:22ch;white-space:normal;text-align:right;}
@media (max-width: 600px), (max-height: 500px) and (pointer: coarse){
  #dash-services .bar-row,#dash-outcomes .bar-row{grid-template-columns:1fr minmax(40px,max-content);gap:4px 8px;min-height:48px;align-content:center;position:relative;font-size:0.8125rem;}
  #dash-services .bar-label,#dash-outcomes .bar-label{grid-column:1/-1;white-space:normal;overflow:visible;overflow-wrap:anywhere;}
  #dash-services .bar-link::after,#dash-outcomes .bar-link::after{content:"";position:absolute;inset:0;}
  .prodcheck-row{gap:8px 12px;} .prodcheck-row label{min-height:48px;padding:0 4px;}
  .cbx-list{max-height:min(300px,40dvh);}
  .cbx-opt{min-height:48px;align-items:center;flex-wrap:wrap;}
  .cbx-hint{max-width:100%;flex-basis:100%;white-space:normal;}
  .contact-confirm-buttons{flex-direction:column;} .contact-confirm-buttons .btn{width:100%;min-height:48px;justify-content:center;}
  .dfield-checks .prodcheck-row{flex-direction:column;flex-wrap:nowrap;gap:8px;}
}

/* ---- The hand-back, slice 2 (Release 3, 9 October 2026; README "The hand-back") ----
   "From Sales" on a lead: a small table in the drawer's Details; on a phone
   each activity is a card, newest first, its labels beside its values.
   The line under a field's editor (a lead's Sales officer). Tokens only.
   (It stands before the company view's block, which is read to the end of
   the file by its own test: no line of that view may be kept from wrapping.) */
.from-sales{min-width:0;}
.from-sales-table{width:100%;border-collapse:collapse;font-size:max(12px, 0.8125rem);}
.from-sales-table th,.from-sales-table td{padding:6px 8px;border-bottom:1px solid var(--line-soft);text-align:left;vertical-align:top;overflow-wrap:anywhere;}
.from-sales-table th{color:var(--ink-soft);font-weight:600;}
.dfield-note{margin:6px 0 0;}
.drawer-work-waiting{color:var(--warning-ink);}
@media (max-width: 600px), (max-height: 500px) and (pointer: coarse){
  .from-sales-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
  .from-sales-table,.from-sales-table tbody,.from-sales-table tr,.from-sales-table td{display:block;}
  .from-sales-table tr{margin:0 0 8px;padding:8px 12px;border:1px solid var(--line-soft);border-radius:var(--radius-sm);}
  .from-sales-table td{display:flex;gap:12px;padding:2px 0;border:0;}
  .from-sales-table td[data-label]::before{content:attr(data-label);flex:0 0 6rem;color:var(--ink-soft);}
}

/* ---- Market Intelligence (16 October 2026; design Parts 2, 3 and 6; the
   page is public/market.html, js/market.js). The classes the page draws
   with, written here so no colour and no size lives in the page. Up is
   green and down is red, never colour alone (an arrow and the words every
   time: decision S4). The block stands before "Orbit Securities" for
   everyone, whose own rules run to the end of the file and keep every
   line wrapping (test/company-figures-page.test.js). ---- */
/* The tiles: six across (four on the Funds page), two per row on a phone, never one. Between, three across
   (the four in two rows of two) where six would leave a tile too narrow for its figure: with the side menu,
   six need a window of about 1,400 px ("TZS 39.86 tn" at the tile's size is about 130 px wide). */
.mi-tiles{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;}
.mi-tiles.four{grid-template-columns:repeat(4,minmax(0,1fr));}
@media (max-width: 1400px){ .mi-tiles{grid-template-columns:repeat(3,minmax(0,1fr));} }
@media (max-width: 1023px){ .mi-tiles.four{grid-template-columns:repeat(2,minmax(0,1fr));} }
.mi-tiles > .kpi{min-width:0;}
.mi-tiles > .kpi.orbit{border-color:var(--blue);box-shadow:0 0 0 1px var(--blue),var(--shadow-sm);}
/* The story: up to five lines, each with a 4 px left rule (navy; green good; red bad; amber gold). */
.mi-story{display:flex;flex-direction:column;gap:8px;margin:0 0 14px;}
.mi-story > p, .mi-story > div{margin:0;border-left:4px solid var(--navy);padding:6px 12px;background:var(--surface-2);border-radius:0 8px 8px 0;color:var(--ink);overflow-wrap:anywhere;}
.mi-story > .good{border-left-color:var(--positive-ink);}
.mi-story > .bad{border-left-color:var(--negative-ink);}
.mi-story > .gold{border-left-color:var(--warning-strong);}
/* The calculator's words under its sentence (Robot 3, 8 November 2026; the review's S1): where its entry or its NAV now
   leaves out a disputed valuation, which one it uses instead and the source's words, ruled amber as a note. */
.mi-story > .mi-calc-note{border-left-color:var(--warning-strong);}
/* Who was buying and selling: a 100% stacked bar, navy local, amber foreign; grey halves where nothing was published. */
/* Its height grows with its text (2em at a large text setting), so a figure inside a part is never cut by the bar's
   height (fix round 1 of 17 October 2026, WCAG 1.4.4 and 1.4.12); a part too narrow for its figure leaves it to the
   caption under the bar (js/market.js fitStacks). */
.mi-stack{display:flex;min-height:max(28px, 2em);border-radius:6px;overflow:hidden;font-size:max(11px, 0.75rem);font-weight:600;}
.mi-stack > span{flex:0 0 auto;display:flex;align-items:center;justify-content:center;white-space:nowrap;overflow:hidden;min-width:0;}
.mi-stack .local{background:var(--navy);color:var(--on-brand);}
.mi-stack .foreign{background:var(--warning-strong);color:var(--on-brand);}
.mi-stack .none{background:var(--line);color:var(--ink);}
.mi-stack .none-2{background:var(--line-soft);color:var(--ink);}
.mi-stack-label{margin:10px 0 4px;font-size:max(11px, 0.78125rem);color:var(--ink-soft);}
.mi-stack-caption{margin:4px 0 0;font-size:max(11px, 0.75rem);color:var(--ink-soft);font-variant-numeric:tabular-nums;}
/* Market breadth: a three-part bar, green advancing, grey unchanged, red declining. */
.mi-breadth{display:flex;height:12px;border-radius:6px;overflow:hidden;background:var(--line);}
.mi-breadth > span{flex:0 0 auto;display:block;height:100%;}
.mi-breadth .adv{background:var(--positive-ink);}
.mi-breadth .unch{background:var(--line-strong);}
.mi-breadth .dec{background:var(--negative-ink);}
/* The heatmap: one tile per counter, the tint a cs-strong class, grey where it did not trade. As many tiles to a row as
   hold each tile's code and figures whole, at most seven: a tile is at least 8 times its text size wide (its figures in
   no-break spaces, "TZS 53.84 bn", and the longest code, "AFRIPRISE", whole), else a seventh of the row: seven across
   where a seventh holds a tile, fewer on a narrower row (three at 375 to 414 px, two at 320 and 360), fewer again at a
   large text size (fix round 1 of 17 October 2026: four across broke "+14.4%" in two at 320 px, and a code and a
   turnover broke inside a tile at 414 px and on a laptop with the side menu). */
.mi-heat{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,max(8em,calc((100% - 36px) / 7))),1fr));gap:6px;font-size:max(11px, 0.75rem);}
:where(.mi-heat) > div{min-width:0;border-radius:8px;padding:8px 6px;min-height:64px;font-size:max(11px, 0.75rem);line-height:1.35;background:var(--surface-2);color:var(--ink);overflow-wrap:normal;}
/* A tile's code and figures never break inside themselves, at any text size or spacing (fix round 2 of 17 October 2026:
   under wide text spacing, WCAG 1.4.12, overflow-wrap:anywhere broke "TZS 41.85 b / n"): where a tile's line is wider
   than the tile, js/market.js fitHeat gives the row fewer, wider tiles, a step at a time (10 and 12 times the text
   size, then one to a row). */
.mi-heat.mi-heat-w1{grid-template-columns:repeat(auto-fill,minmax(min(100%,max(10em,calc((100% - 36px) / 7))),1fr));}
.mi-heat.mi-heat-w2{grid-template-columns:repeat(auto-fill,minmax(min(100%,max(12em,calc((100% - 36px) / 7))),1fr));}
.mi-heat.mi-heat-w3{grid-template-columns:minmax(0,1fr);}
.mi-heat > div > b{display:block;font-size:0.8125rem;}
:where(.mi-heat) > .nt{background:var(--surface-2);color:var(--ink-muted);}
.mi-heat > .nt{border:1px dashed var(--line-strong);}
/* Orbit's own rows in the fund league (the blue row); a tinted cell keeps its tint, as in the mock-up. */
:where(tr.mi-orbit) > td{background:var(--surface-selected);}
/* Figures and their headings right-aligned in the section's tables (README: numbers right-aligned, units in the header). */
.mi-page .ledger td.n, .mi-page .ledger th.n{text-align:right;}
/* The status line under the tabs: the one line about the machinery (H6); the chip turns amber when there is no update.
   Its corners are those of one line (half a line and its 2 px padding), so one line is still a pill and the robot's
   longer words of Robot 3, on three to ten lines on a phone, stay inside a box with small round corners, never an
   ellipse that leaves its first and last words on the page (the review of Robot 3, BR-M1); 12px where a browser has no
   line unit. */
.mi-status{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center;margin:0 0 14px;font-size:max(11px, 0.78125rem);color:var(--ink-soft);}
.mi-status .chip{display:inline-block;padding:2px 10px;border-radius:12px;border-radius:calc(0.5lh + 2px);font-weight:600;background:var(--surface-selected);color:var(--ink-brand);white-space:normal;overflow-wrap:anywhere;max-width:100%;}
.mi-status .chip.amber{background:var(--warning-bg);color:var(--warning-ink);}
/* The definition pills under the h1 of each area: words, not controls (design 9.3). */
.def{display:inline-block;padding:3px 10px;border-radius:999px;font-size:max(11px, 0.75rem);background:var(--surface-selected);color:var(--ink-brand);margin:0 6px 6px 0;}
/* The period control in its select layout (js/lib/period.js layout: 'select'; design 3.1, decision H4): the
   presets are one labelled select at every width, never pills; From and To are always shown; the arrows step a
   session ("Previous", "Next"). A date applies when chosen (the named deviation from IS 1.4, D13). */
.period.layout-select .period-presets{display:none;}
.period.layout-select .period-select-field{min-width:160px;}
.period.layout-select .period-select{display:block;width:100%;}
.period.layout-select .period-custom .field{min-width:150px;}
.period.layout-select .period-step .btn{min-width:auto;padding:6px 12px;}
/* Part 14 (16 October 2026: filters, axes and keys; addendum 14.6.4). The swatches of the page's own marks in
   a key (K8), each its mark's token in both themes; the filter bar's panel with its note and its said line
   (the area's one live region for its filters, F8); the line under a panel saying whether a filter narrows it
   (F9); "the whole market" after a row's name; the "Sorted within" line (F19); "How to read it" (A8). Every
   line wraps; none is kept to one line. */
.sw-adv{background:var(--positive-ink);} .sw-unch{background:var(--line-strong);} .sw-dec{background:var(--negative-ink);}
.sw-local{background:var(--navy);} .sw-foreign{background:var(--warning-strong);} .sw-none{background:var(--line);}
/* Not traded: a hatched grey with a dashed edge, as the heatmap's own tile has its dashed edge, so the swatch never
   reads as an empty tick box (fix round 1 of 17 October 2026, M9); the words "Not traded in the period" beside it. */
.sw-nt{background:var(--surface-2);background-image:repeating-linear-gradient(135deg, var(--line-strong) 0 1.5px, transparent 1.5px 4px);border:1px dashed var(--line-strong);}
.mi-filters{min-width:0;}
.mi-filters .list-toolbar, .mi-filters .filter-bar{margin-bottom:0;}
.mi-filters > .ex-note{margin:8px 0 0;overflow-wrap:anywhere;}
/* Release E1 (18 October 2026): the funds' names in the administrator's words ("Vertex International Securities
   Exchange Traded Fund (Vertex-ETF) · ETFs") wrap inside Funds to compare's and the calculator's lists, which are never
   wider than the screen (the browser check: at 768 px with 200% text the list ran to 1,080 px). */
#fu-compare-c-list, #calc-fund-c-list{max-width:calc(100vw - 32px);}
#fu-compare-c-list .dl-item, #calc-fund-c-list .dl-item{white-space:normal;overflow-wrap:break-word;}
/* Release E2 (18 October 2026; design 15.2.4 and 15.2.7, work package E2-6): the economy's panels on Macroeconomics.
   Panel classes only, every colour a token: the second heading inside a panel that holds two charts and a table (the
   amount lent; the dollars traded and their WAR; each trade date), the lines under a table (a provisional rate, the
   euro's last trade, the groups' change not shown), and the Confirm window's facts, its sentence and its choices, each
   choice and the tile's tick box a 48 px row on a phone. Every word wraps inside its box. */
.mc-h3{font-size:0.875rem;font-weight:700;margin:16px 0 4px;color:var(--ink);overflow-wrap:anywhere;}
.mc-sub-head{margin-top:16px;}
.mc-sub-head .mc-h3{margin-top:0;}
.mc-total > td{font-weight:600;}
.mc-note{margin:8px 0 0;font-size:max(11px, 0.78125rem);color:var(--ink-soft);overflow-wrap:anywhere;}
.mc-confirm-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(160px,100%),1fr));gap:8px 16px;margin:0 0 12px;}
.mc-confirm-facts > div{min-width:0;}
.mc-confirm-facts dt{font-size:max(11px, 0.75rem);font-weight:600;color:var(--ink-soft);}
.mc-confirm-facts dd{margin:2px 0 0;overflow-wrap:anywhere;}
.mc-confirm-sentence{margin:0 0 12px;padding:8px 12px;border-left:3px solid var(--line-strong);background:var(--surface-2);color:var(--ink);overflow-wrap:anywhere;}
.mc-confirm-own{margin:0 0 12px;overflow-wrap:anywhere;}
.mc-confirm-label{display:block;font-size:max(11px, 0.75rem);font-weight:600;color:var(--ink-soft);}
.mc-confirm-choices{display:flex;flex-wrap:wrap;gap:8px 24px;}
.mc-confirm-choices .checkline{padding-top:0;}
.mc-confirm-tile-field{margin-top:12px;}
@media (max-width: 600px), (max-height: 500px) and (pointer: coarse){
  .mc-confirm-choices{flex-direction:column;flex-wrap:nowrap;gap:0;}
  .mc-confirm-choices .checkline, .mc-confirm-tile{min-height:48px;}
  .mc-confirm-choices .checkline label, .mc-confirm-tile label{flex:1 1 auto;display:flex;align-items:center;min-height:48px;}
}
.mi-said{margin:8px 0 0;font-size:max(11px, 0.78125rem);font-weight:600;color:var(--ink-soft);overflow-wrap:anywhere;}
/* Kept rendered when empty (the area's one live region: a region not rendered before its words arrive is often not
   read out, WCAG 4.1.3; the review of 17 October 2026); it takes no room while empty. */
.mi-said:empty{margin:0;}
.mi-narrowed{margin:4px 0 8px;font-size:max(11px, 0.78125rem);font-weight:600;color:var(--ink-brand);overflow-wrap:anywhere;}
.mi-not-narrowed{margin:4px 0 8px;font-size:max(11px, 0.78125rem);color:var(--ink-muted);overflow-wrap:anywhere;}
.mi-market-word{font-weight:400;color:var(--ink-muted);}
.mi-sorted{font-size:max(11px, 0.75rem);color:var(--ink-muted);margin:8px 0;overflow-wrap:anywhere;}
/* A list's count in its head wraps between its words at a large text size ("14,016 rows / in the period"), so it never
   widens the page (fix round 1 of 17 October 2026: the page scrolled sideways at 320 px and 200% text); its figures
   stay whole. The platform's count keeps one line elsewhere. */
.mi-page .filter-count{white-space:normal;}
.mi-how{margin:0 0 8px;font-size:max(11px, 0.75rem);color:var(--ink-soft);overflow-wrap:anywhere;}
/* On a laptop a panel of a two-panel row whose table cannot show every column takes the row's full width,
   rather than hiding columns (verification item 10: "Where was trading concentrated?", the corporate bonds). */
.ex-grid > .mi-full{grid-column:1 / -1;}
/* Every panel of an area stands 16 px from the next (verification item 10: on a phone "Add a holiday"
   touched Research's note); margins of neighbours collapse, so where 16 px was there it stays 16 px. */
.mi-page .view > * + *{margin-top:16px;}
/* The status line never starts a line with its separator (verification item 10): a "·" takes no room of its
   own, so it stays at the end of the words before it and, where those end a line, falls outside the line's box,
   which clips it. */
.mi-status{column-gap:0;row-gap:6px;overflow:hidden;padding:2px;}
.mi-status > *{margin-right:20px;}
.mi-status > [aria-hidden="true"]{flex:0 0 20px;width:20px;margin:0 0 0 -20px;text-align:center;}
/* A drop-down's arrow stands clear of its words (verification item 10). A browser keeps its own room for a select's
   arrow (about 20 px in Chromium, on a phone too, and in WebKit), so 8 px of padding leaves the arrow 8 px or more from
   the words and gives the words 24 px more than 32 px did (fix round 2 of 17 October 2026: under wide text spacing the
   figure form's "Headline inflation (%)" was cut at 320 px, and "A day the market did not trade" at 320 px). */
.mi-page .fl-button .dl-caret{margin-left:8px;}
.mi-page .field select, .mi-page .period-select{padding-right:8px;}
/* The page's own no-spill rules (Part 14; the administrator, 16 October 2026, 23:58: "Content in the platform should
   always be able to adjust itself in accordance to the device's screen"). A drop-down never runs past its row: it
   is at most the row's width and its words wrap rather than being cut (Counter, Compare with, the calculator's
   Fund at 320 px). The search box of a bar is a 48 px target on a phone. The funds' compare row under the bar. */
.mi-page .toolbar > .fl-host, .mi-page .fl-host > .fl-menu, .mi-page .fl-menu > .fl-button{max-width:100%;min-width:0;}
.mi-page .fl-button .fl-value{min-width:0;white-space:normal;overflow-wrap:break-word;text-align:left;}
.mi-filters > .toolbar{margin:8px 0 0;}
/* The six area tabs fit a laptop of 1,024 px with the side menu open; where they still cannot (larger text), the page
   shows the Area list in their place (js/market.js syncPhone), so no tab is ever scrolled out of sight. */
.mi-tabs .drawer-tab{padding-left:10px;padding-right:10px;}
@media (max-width: 600px), (pointer: coarse){ .mi-filters input[type="search"]{min-height:48px;}
  /* The fund league's "#" heading is a 48 px target on a touch screen, not 12 px wide (fix round 1 of 17 October 2026,
     M6): its column takes the room. */
  .mi-page #fu-league thead th:first-child .grid-sort{min-width:48px;} }
/* The bar's search box (the review of 17 October 2026: its hint was cut at every width): its label in words beside it,
   a short hint inside, and the box takes the room the row has, at least 200 px, the full row on a phone. */
.mi-filters .filter-bar .filter-search{flex:1 1 320px;min-width:0;}
.mi-search{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;width:100%;min-width:0;}
.mi-search > label{font-size:max(12px, 0.8125rem);font-weight:600;color:var(--ink-soft);}
/* A list's chosen words are never cut (fix round 3 of 17 October 2026, the verification's Minor B: at 200% text on
   a phone the Area list read "Macroeconomic", the Figure list "Headline inflat", the holiday list "A public holi"):
   a list in a form field keeps its field's width and its chosen words wrap at their spaces inside it, the list growing
   to hold them (field-sizing: content, in Chromium and Edge; a browser without it draws one line, design.md Part
   9.5). The Area list's longest choice is one word, "Macroeconomics", which no wrap can help, and a date field's
   "dd/mm/yyyy" is one word beside its calendar button; so is the page's title "Intelligence" (295 px at 200% text,
   wider than a 320 px phone's 288). On a phone narrower than 356 px their words grow with the text size up to a size
   their box holds, 28.8 px for the list and the dates (180% there) and 46 px for the title (170%); from 356 px they grow
   the full 200%, the way a tile's figure steps down to its tile (D92). */
/* Every window of the platform is drawn outside the page's main and takes the same rule (here Verify this counter's
   Sector; the rule for windows is shared, so the older pages' windows take it too). */
.mi-page .field select:not([multiple]), .modal .field select:not([multiple]){field-sizing:content;white-space:normal;height:auto;overflow-wrap:normal;}
@media (max-width: 355px){ .mi-page #mi-area, .mi-page input[type="date"]{font-size:clamp(16px, 1rem, 28.8px) !important;} .mi-page .pagehead h1{font-size:min(1.6875rem, 46px);} }
/* A search box's hint, where it is wider than its box (js/market.js fitHints): its words on the line above the box,
   wrapping, and the box's own hint drawn clear (fix round 3 of 17 October 2026, Minor B). */
.mi-search > .mi-hint{flex:1 1 100%;min-width:0;font-size:max(12px, 0.8125rem);color:var(--ink-muted);overflow-wrap:break-word;}
.mi-search > .mi-hint[hidden]{display:none;}
.mi-search > input.mi-hint-out::placeholder{color:transparent;}
.mi-filters .filter-bar .filter-search .mi-search > input{flex:1 1 200px;width:100%;min-width:0;}
/* "Sort by", above a table drawn as cards (js/market.js sortBy): the section's own drop-down, "Sort by: The list's own
   order ▾", as Counter and Kind of fund are, a 48 px target on a phone, never wider than its row; its words wrap inside
   its button (.mi-page .fl-button .fl-value), so they are never cut at any width, text size or spacing (fix round 2 of
   17 October 2026: a browser's select read "The list's own ord" at 320 px, cut its default words at 200% text and its
   longer orders at 320 px; the round before found the list 220 px tall in a .field column). */
.mi-sortby{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:4px 8px;margin:0 0 8px;max-width:100%;min-width:0;}
/* A drop-down's button reads as one sentence ("Sort by: The list's own order ▾", button.btn is an inline block); where
   it cannot stand on one line (a large text size on a phone) it wraps at its spaces, after "Sort by:" too, so a word
   that fits a line is never broken (fix round 2 of 17 October 2026: "Sort by: " was kept on one line with the word after
   it, and "Indicator," broke in two at 320 px and 200% text). */
.mi-page .fl-button .fl-label{white-space:normal;}
.mi-sortby .fl-button{text-align:left;}
/* A cell that holds a name and its words below (the funds' name and kind; "the whole market") is one value in a card. */
.mi-cell{min-width:0;}
/* The long lists read down a column (class mi-hold-first: Every counter, both session-by-session tables, the auctions,
   the funds) keep their table form wider than a phone; where they cannot show every column at the full width they
   scroll inside their panel with the first column held in place (design.md D52). */
.mi-page table.mi-hold-first:not(.mi-cards) tr > :first-child{position:sticky;left:0;z-index:1;background:var(--surface);}
.mi-page table.mi-hold-first:not(.mi-cards) thead tr > :first-child{top:0;z-index:2;background:var(--surface-2);}
.mi-page table.mi-hold-first:not(.mi-cards) tr.mi-orbit > :first-child{background:var(--surface-selected);}
.mi-page table.mi-hold-first:not(.mi-cards) tbody tr:hover > :first-child{background:var(--surface-hover);}
/* Every counter's Sector is never narrower than its words wider than a phone (10em holds "Banks and finance", the
   longest of the three, at any text size), so its rows are even (the review's M5: "Banks / and / finance" on three
   lines at 1,280 px); the table then scrolls inside its panel, its counter held, and nothing is cut. A browser takes a
   length, not max-content, as a cell's least width. On a phone the row is a card and the words wrap beside their label. */
@media (min-width: 601px){ .mi-page #eq-table td:last-child{min-width:10em;} }
/* The definitions: open wider than a phone, their fold line not shown; on a phone folded under "What the words mean". */
.mi-defs-fold > summary{display:none;}
/* A tile's figure is sized to its tile (fix round 1 of 17 October 2026, B1): never broken inside its number or its unit
   ("TZS 10,981. / 8 bn" was), it steps down with the other figures of its row, from the tile's own size to 0.875rem,
   as far as the longest needs (js/market.js fitTiles measures each row, on whatever font the phone has); only where
   even the smallest size cannot hold a figure does its unit alone go to the next line (mi-fig-wrap, the one break,
   before the unit). A line under the figure is held the same way. And where the text is so large that two tiles cannot
   stand side by side (a view narrower than 14.5 times its text size), the tiles stand one to a row. */
.mi-tiles > .kpi .num{overflow-wrap:normal;}
.mi-tiles.mi-fig-1 > .kpi .num{font-size:1.125rem;}
.mi-tiles.mi-fig-2 > .kpi .num{font-size:1rem;}
.mi-tiles.mi-fig-3 > .kpi .num{font-size:0.875rem;}
.mi-page .view{container-type:inline-size;}
/* And fewer across where the area is narrow for its text size (a laptop at a large text setting: six tiles of 28 px
   figures at 1,440 px left "▲ +328.8%" wider than its tile), in units of the area's text size, so at the default text
   size these change nothing (fix round 1 of 17 October 2026, B1): three across below 60 times the text size, the four
   two across below 48, two across below 30, one below 14.5. The rule of three is the six's alone: the four never stand
   three and one (fix round 2 of 17 October 2026: at 768 px, and at 1,024 px with the side menu, the area is between 48
   and 60 times the text size, and the four stood 3 + 1). :where() leaves the four out without making the rule more
   specific, so the later rules (two across below 30, one below 14.5) still win on a phone. */
@container (max-width: 60em){ .mi-page .mi-tiles:where(:not(.four)){grid-template-columns:repeat(3,minmax(0,1fr));} }
@container (max-width: 48em){ .mi-page .mi-tiles.four{grid-template-columns:repeat(2,minmax(0,1fr));} }
@container (max-width: 30em){ .mi-page .mi-tiles, .mi-page .mi-tiles.four{grid-template-columns:repeat(2,minmax(0,1fr));} }
@container (max-width: 14.5em){ .mi-page .mi-tiles, .mi-page .mi-tiles.four{grid-template-columns:minmax(0,1fr);} }
/* On a phone a card's words wrap (a chart's table view keeps its figures on one line elsewhere), and a panel keeps
   16 px inside its edge, the platform's phone gutter, so a chart has the room it needs at 320 px. */
/* A card's value keeps its figure whole (break-word, not anywhere: the value is never narrower than its longest
   figure), so at a large text size "▲ +13.08%" never breaks in a card (fix round 1). Its label keeps its words whole
   too (fix round 3 of 17 October 2026, the verification's Serious 1: at 200% text on a phone "Indi / cat / or",
   "Annualis / ed"): the label is never narrower than its longest word (min-content, overflow-wrap normal) and wraps
   only at its spaces, and where the label and its value cannot share a line the value stands on the line under its
   label, at the card's right as every value is (the row wraps; the label's auto margin keeps it at the left). The
   platform's own card rule (below) is left as it is for the older pages (design.md Part 9.5). */
@media (max-width: 600px), (max-height: 500px) and (pointer: coarse){ .mi-page table.row-cards td{white-space:normal;overflow-wrap:break-word;flex-wrap:wrap;justify-content:flex-end;}
  .mi-page table.row-cards td[data-label]::before{flex:0 1 45%;min-width:min-content;max-width:100%;overflow-wrap:normal;margin-right:auto;}
  .mi-page .panel-pad{padding:16px;}
  .mi-page #eq-table td:last-child{min-width:0;}
  .mi-search > label{flex:1 1 100%;}
  /* Its own display (list-item), so its open and closed arrow shows, as the platform's other folds (fix round 1, M2). */
  .mi-defs-fold > summary{display:list-item;box-sizing:border-box;min-height:48px;padding:14px 0;font-size:max(12px, 0.8125rem);font-weight:600;color:var(--ink-brand);cursor:pointer;}
  .mi-defs-fold > summary:focus-visible{outline:2px solid var(--accent);outline-offset:-2px;} }
/* The page's tables: headings wrap at their spaces and cells sit closer, so a table shows every column in the
   panel it has wherever it can (the :where keeps these below a phone's card rules). Where it cannot, the page
   (js/market.js fit) first gives its row of panels the full width (mi-full, D53), then draws it as one card per
   row, the label beside each value, as on a phone (mi-cards, D52): the cards stand in a grid that wraps, never
   past the panel. A chart's table view: its headings wrap too. */
.mi-page :where(.ledger) th{white-space:normal;padding:8px 6px;}
.mi-page :where(.ledger) td{padding:8px 6px;}
.mi-page :where(.chart-table) th{white-space:normal;}
/* A chart's tooltip is placed from the top left of its drawing (charts.js placeTip), and an SVG has no offsetTop in a
   browser, so with the key above the drawing a tooltip would sit over the key. The page's chart hosts are a grid of
   one column (the key, the drawing, the table view) and the tooltip stands in the drawing's own row, whose top left is
   the drawing's: it never covers the key. */
.mi-page .ex-chart.chart{display:grid;grid-template-columns:minmax(0,1fr);align-content:start;}
.mi-page .ex-chart.chart > .ch-key{grid-row:1;grid-column:1;}
.mi-page .ex-chart.chart > svg.chart-svg, .mi-page .ex-chart.chart > .chart-tip{grid-row:2;grid-column:1;}
.mi-page .ex-chart.chart > details.chart-table{grid-row:3;grid-column:1;}
.mi-page table.row-cards.mi-cards thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);}
.mi-page table.row-cards.mi-cards{display:block;width:auto;}
.mi-page table.row-cards.mi-cards tbody{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(260px,100%),auto));gap:8px;}
.mi-page table.row-cards.mi-cards tr{display:block;min-width:0;padding:6px 12px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface);}
.mi-page table.row-cards.mi-cards td{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:baseline;gap:4px 12px;padding:4px 0;border:0;text-align:right;min-width:0;white-space:normal;overflow-wrap:break-word;}
.mi-page table.row-cards.mi-cards td[data-label]::before{content:attr(data-label);flex:0 1 45%;min-width:min-content;max-width:100%;overflow-wrap:normal;margin-right:auto;text-align:left;font-size:max(11px, 0.75rem);font-weight:600;color:var(--ink-soft);}
.mi-page table.row-cards.mi-cards tr > :first-child{font-weight:700;}
.mi-page table.row-cards.mi-cards tr.empty-state, .mi-page table.row-cards.mi-cards tr.total{grid-column:1 / -1;}
.mi-page table.row-cards.mi-cards tr.empty-state td{display:block;text-align:center;}
.mi-page table.row-cards.mi-cards tr.empty-state td::before{content:none;}
.mi-page table.row-cards.mi-cards td:empty{display:none;}
/* One card per row on a phone (Part 14, no spill; any table may use it): a table with the class row-cards
   becomes one card per row, each cell's heading beside its value (the cell's data-label, which the page or
   SortTable.cards writes; SortTable.cards also writes the roles, so a screen reader still hears a table). A
   wide table no longer runs past its box; the headings stay for assistive technology. */
@media (max-width: 600px), (max-height: 500px) and (pointer: coarse){
  table.row-cards thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);}
  table.row-cards, table.row-cards tbody, table.row-cards tfoot, table.row-cards tr{display:block;width:auto;}
  table.row-cards tr{margin:0 0 8px;padding:6px 12px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface);}
  table.row-cards td, table.row-cards tbody th{display:flex;justify-content:space-between;align-items:baseline;gap:4px 12px;padding:4px 0;border:0;text-align:right;min-width:0;overflow-wrap:anywhere;}
  table.row-cards td[data-label]::before, table.row-cards tbody th[data-label]::before{content:attr(data-label);flex:0 1 45%;min-width:0;text-align:left;font-size:max(11px, 0.75rem);font-weight:600;color:var(--ink-soft);}
  table.row-cards tr > :first-child{font-weight:700;}
  table.row-cards tr.empty-state td, table.row-cards tr.grid-more td{display:block;text-align:left;}
  table.row-cards tr.empty-state td::before, table.row-cards tr.grid-more td::before{content:none;}
  table.row-cards td:empty{display:none;}
}
@media (max-width: 600px), (max-height: 500px) and (pointer: coarse){
  .mi-tiles, .mi-tiles.four{grid-template-columns:repeat(2,minmax(0,1fr));}
  .mi-tiles > .kpi{padding:12px 14px;}
  .mi-tiles > .kpi .num{font-size:1.125rem;}
  .mi-tiles.mi-fig-1 > .kpi .num{font-size:1rem;}
  .mi-tiles.mi-fig-2 > .kpi .num{font-size:0.9375rem;}
  .mi-stack{min-height:max(32px, 2em);}
  .mi-story > p, .mi-story > div{font-size:1rem;}
  /* Two to a row at the default text size, one at a large one (8.5rem: a date field at 200% needs about 260 px; fix
     round 3 of 17 October 2026: From and To stood 166 px wide at 375 px and 200% text, their dates cut). */
  .period.layout-select .period-select-field, .period.layout-select .period-custom .field{flex:1 1 max(140px, 8.5rem);min-width:0;}
  .period.layout-select .period-step .btn{min-height:48px;}
}

/* ---- Release C: the drop-down with multiple selection (16 October 2026; design/release-c-2026-10-16/design.md
   section 2; js/lib/filters.js Filters.field; README "Choosing several: the drop-down with multiple selection").
   Every class the release draws: the field and its box (the words wrap, never cut), the list that opens from it
   (a popup on a laptop or a tablet, placed through the CSSOM by common.js placeChooseList; a sheet from the
   bottom on a phone), the side panel's editor (.dfield-choose), the Users editor's field (.e-extra-field), the
   fallback of tick boxes (.choose-ticks), the field's own layers (the list and the sheet 87, the phone's backdrop
   86: above the side panel, 80, and the windows, 85; below the toasts and the search palette, 90), the 48 px
   targets, the tick mark drawn (an SVG in currentColor: --filter-set-ink on --accent reads at 3:1 in both themes,
   where --on-brand reads 2.2:1 in the dark one), and the Windows contrast themes for the field and the filter's
   ticked item. Tokens only; system colours only under forced-colors, never a color declaration there. ---- */
.choose-field, .dfield-choose, .e-extra-field{min-width:0;}
.choose-host{display:flex;flex-direction:column;align-items:stretch;min-width:0;}
.choose-host > .err[data-field-err], .choose-host > .choose-why{margin:4px 0 0;}
/* The Users editor's note under its field: its spacing here, never an inline style (the forms' hostile check, finding 6;
   the tick-box fallback's too: the release review of 18 October 2026). */
.e-extra-field .e-extra-note, .unit-checks ~ .e-extra-note{padding:0;margin:4px 0 0;}
/* The Users edit row is a 900 px form in a table that scrolls sideways on a phone or a tablet: a box as wide as the row
   was brought into view by its middle when the keyboard reached it, its words left outside the panel. The box is
   never wider than the panel shows (the panel stands 41 px inside each side of the screen) nor than 24rem, so it is
   brought into view whole, its words with it (the release review of 18 October 2026, the standard and the phone). */
.e-extra-field .choose-box{max-width:min(100%,24rem,calc(100vw - 6rem));}
/* The box holds its own hidden words (the count's "(2 chosen)", a .sr-only span, position: absolute): positioned, it is
   their containing block, so a table that scrolls inside its panel (the Users edit row in .scroll-x) clips them with
   the box, and the page never widens to where they stand (the forms' hostile check, finding 1: 829 px at 375). */
.choose-box{position:relative;display:flex;align-items:center;gap:8px;width:100%;min-width:0;min-height:38px;margin:0;padding:8px 12px;border:1px solid var(--line-strong);border-radius:var(--radius-sm);background:var(--surface);color:var(--ink);font:inherit;font-size:0.875rem;line-height:1.4;text-align:left;cursor:pointer;}
/* The box is a button: its keyboard focus is every button's 2 px --accent outline (the faint ring is a text field's alone). */
.choose-box:focus-visible, .choose-box[aria-expanded="true"]{border-color:var(--accent);}
.choose-box[data-invalid]{border-color:var(--negative-fill);box-shadow:var(--ring-err);}
.choose-box[aria-disabled="true"]{background:var(--surface-2);border-style:dashed;color:var(--ink-muted);cursor:not-allowed;}
.choose-value{flex:1 1 auto;min-width:0;white-space:normal;overflow-wrap:anywhere;}
.choose-value.choose-none{color:var(--ink-muted);}
.choose-count{white-space:nowrap;}
.choose-box .dl-caret{flex:none;color:var(--ink-soft);}
.choose-pop{position:fixed;z-index:87;display:flex;flex-direction:column;gap:8px;box-sizing:border-box;min-width:0;max-width:calc(100vw - 32px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px));padding:8px;overflow:hidden;background:var(--surface-raised);color:var(--ink);border:1px solid var(--line);border-radius:var(--radius-sm);box-shadow:var(--shadow-lg);}
.choose-search{flex:none;width:100%;min-height:36px;margin:0;padding:8px 10px;border:1px solid var(--line-strong);border-radius:var(--radius-sm);background:var(--surface);color:var(--ink);font:inherit;font-size:0.875rem;}
.choose-list{flex:1 1 auto;min-height:0;max-height:min(60vh,26rem);margin:0;padding:0;overflow-y:auto;overscroll-behavior:contain;list-style:none;}
/* The list's focus is shown on its highlighted item (below); a list with none highlighted shows its own outline. */
.choose-list:focus{outline:none;}
.choose-list:focus-visible:not([aria-activedescendant]){outline:2px solid var(--accent);outline-offset:-2px;}
.choose-opt{display:flex;align-items:flex-start;gap:10px;min-height:36px;padding:8px 10px;border-radius:var(--radius-xs);color:var(--ink);font-size:0.875rem;line-height:1.4;cursor:pointer;overflow-wrap:anywhere;}
.choose-opt[hidden]{display:none;}
.choose-opt.active{background:var(--surface-selected);color:var(--ink-brand);}
/* The highlighted item has the focus ring while the focus is in the search box or the list (WCAG 2.4.7, 2.4.11), and
   not while it is on Clear the choice, Done or the sheet's ×, which show their own (the release review of 18 October
   2026: two controls looked focused at once). Where :has() is not known the second rule is dropped and the ring stays. */
.choose-pop:focus-within .choose-opt.active{outline:2px solid var(--accent);outline-offset:-2px;}
.choose-pop:focus-within:not(:has(.choose-search:focus)):not(:has(.choose-list:focus)) .choose-opt.active{outline:none;}
.choose-opt[aria-selected="true"]{font-weight:600;}
.choose-tick{flex:0 0 18px;display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;margin-top:1px;box-sizing:border-box;border:1px solid var(--line-strong);border-radius:4px;background:var(--surface-raised);}
/* The tick mark's colour is the icon's own (a mark, not text: 3:1 on the ticked fill, never shown on the empty square). */
.choose-tick .icon{width:14px;height:14px;visibility:hidden;color:var(--filter-set-ink);}
.choose-opt[aria-selected="true"] .choose-tick{background:var(--accent);border-color:var(--accent);}
.choose-opt[aria-selected="true"] .choose-tick .icon{visibility:visible;}
.choose-words{flex:1 1 auto;min-width:0;}
.choose-hint{font-weight:400;color:var(--ink-muted);}
.choose-opt .fl-swatch{margin-top:4px;}
.choose-empty{margin:0;padding:8px 10px;font-size:0.8125rem;color:var(--ink-muted);}
.choose-empty[hidden]{display:none;}
.choose-foot{flex:none;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px;padding-top:8px;border-top:1px solid var(--line);}
.choose-foot .rowbtn{margin:0;}
.choose-ticks{min-width:0;}
/* On a phone: a sheet from the bottom over its dimmed backdrop (the sheets' own rules, at the field's layers),
   the list filling the sheet under the sheet's one header. */
.choose-backdrop{z-index:86;}
.choose-pop.sheet{z-index:87;top:auto;right:0;left:0;width:auto;max-width:none;max-height:85vh;max-height:calc(85dvh - env(safe-area-inset-top,0px));overflow-y:auto;padding:16px max(16px,env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left));border-width:1px 0 0;border-radius:16px 16px 0 0;}
.choose-pop.sheet .choose-list{max-height:none;}
.choose-pop.sheet > .sheet-head{flex:none;}
/* A short screen (a phone turned sideways, a page zoomed to 200 % or more: WCAG 1.4.10): the list is never squeezed
   to a sliver. While it shows four items or more it keeps the height of three at least (an item is 48 px, or its
   line of words and 16 px), never more than 40 % of the screen, and the sheet scrolls as one piece under its header,
   which stays (.sheet-head is sticky); at its end the list's own scroll goes on to the sheet's. A list that shows
   three or fewer keeps its whole height. A screen 300 px tall or less (a page zoomed to 300 or 400 %) leaves too
   little under the header for a list that scrolls inside a sheet that scrolls: there the list is its whole height
   and the sheet is the one scroll. On an ordinary phone nothing changes: the list fills the sheet and scrolls inside
   it, the search box and the foot staying in view. */
.choose-pop.sheet .choose-list{flex-shrink:0;}
@media (min-height: 301px){
  .choose-pop.sheet .choose-list:has(> .choose-opt:not([hidden]) ~ .choose-opt:not([hidden]) ~ .choose-opt:not([hidden]) ~ .choose-opt:not([hidden])){flex-shrink:1;min-height:min(max(144px,calc(3.9375rem + 48px)),40vh);min-height:min(max(144px,calc(3.9375rem + 48px)),40dvh);overscroll-behavior-y:auto;}
}
@media (max-height: 300px){ .choose-pop.sheet .choose-list{overflow-y:visible;} }
@media (max-width: 600px), (max-height: 500px) and (pointer: coarse){
  .choose-opt{align-items:center;font-size:0.9375rem;}
  .choose-tick{margin-top:0;}
}
@media (max-width: 600px), (pointer: coarse){ .choose-box, .choose-opt, .choose-search, .choose-foot .btn{min-height:48px;} }
@media (hover: hover){ .choose-opt:hover{background:var(--surface-selected);} .choose-box:hover:not([aria-disabled="true"]){border-color:var(--accent);} }
@media print{ .choose-box .dl-caret{display:none;} .choose-box{border-style:solid;} }
/* Windows contrast themes: the system takes the fills away, so the empty square keeps its edge, the drawn tick
   mark stays (the mark is an SVG, which Chromium leaves its own colour, the white of --filter-set-ink, on the system's
   white square: forced-color-adjust: auto gives it the system's text colour; the release review of 18 October 2026),
   the highlighted item is outlined, and the filter's ticked item (a fill alone) is drawn in the system's own Highlight. */
@media (forced-colors: active){
  .choose-tick{border-color:CanvasText;}
  .choose-tick .icon{forced-color-adjust:auto;}
  .choose-opt.active, .choose-pop:focus-within .choose-opt.active{outline:2px solid Highlight;outline-offset:-2px;}
  .fl-item[aria-checked="true"]::before{forced-color-adjust:none;background:Highlight;border-color:Highlight;box-shadow:inset 0 0 0 3px Canvas;}
}

/* ---- Release C, work package 6, part 1: nothing spills, on every page (18 October 2026; design/release-c-2026-10-16/
   design.md 8.1, "Split in two"; the measure: the sweep of 17 October 2026, its fixes F0 to F15; README "Nothing
   spills, on every page"). The fixes every page shares, each named below: the cards of a table on a phone (F0), the
   48 px targets of the top bar, the sort buttons, the period's steps, the grid's tick boxes, the Keyboard window's
   switch, a list's search box and a link in a table (F1 to F5, F7, F11, F14), a grid's long list held by its first
   column (F6), the KPI tiles (F8), the drop-down buttons and titles at 200% text (F9), the ranked bars (F10), the side
   panel's tabs (F13), page titles (F15), and what each page needed so that it never scrolls sideways at 375 px, at
   100% and at 200% text. THE TRADE DESK IS LEFT OUT (decision 11 of 16 October 2026, "Leave it as it is"): every
   selector of this block starts its chain inside the guard :where(body:not(:has(#view-trades.active))), so no rule
   here reaches anything on a page while its Trade desk view (#view-trades, the view of front-office.html and of the
   Mwanza Branch) is the one shown: not the view, not a trade's side panel (opening a trade shows that view), not the
   top bar, the bottom bar or a window over it; test/no-spill-pages.test.js holds it. :where() adds nothing to a
   rule's weight, so each rule weighs what its own selector after the guard weighs. Tokens only; sizes in rem; no
   selector holds a comma inside brackets. ---- */
/* F0: one card per row on a phone, for every page's table.row-cards (Market Intelligence's rule, D107, made the
   platform's): a card's label is never narrower than its longest word and wraps only at its spaces; where the label
   and its value cannot share a line, the value stands on the line under it, at the card's right. A page's table needs
   only the class and SortTable.cards (js/lib/sort-table.js). */
@media (max-width: 600px), (max-height: 500px) and (pointer: coarse){
  :where(body:not(:has(#view-trades.active))) table.row-cards td, :where(body:not(:has(#view-trades.active))) table.row-cards tbody th{white-space:normal;overflow-wrap:break-word;flex-wrap:wrap;justify-content:flex-end;}
  :where(body:not(:has(#view-trades.active))) table.row-cards td[data-label]::before, :where(body:not(:has(#view-trades.active))) table.row-cards tbody th[data-label]::before{flex:0 1 45%;min-width:min-content;max-width:100%;overflow-wrap:normal;margin-right:auto;}
}
/* Touch targets of 48 px on a phone and a touch screen (the standard's mobile rule). F1: the top bar's logo link, whose
   target grows to 48 x 48 px by an invisible margin around the logo (padding inside the link, taken back by a margin of
   the same size outside it: the link has no edge and no fill, so nothing is seen to change), so that neither the logo
   nor the top bar moves or changes size: the bar is 56 px on a phone as before, and the same on every view of a page,
   the Trade desk's included (the check of 18 October 2026, findings 2 and 7). The logo is 32 px high on a phone and
   46 px on a tablet (.module-logo). F2: a table heading's sort button; in a heading whose figures stand to the right
   (th.n, Market Intelligence's) its words, every line of them, stay at the right edge, over their figures (finding 3:
   a button's own words are centred, and laid from the left).
   F3: the period's step buttons (‹ ›). F5: a grid's tick box with its label.
   F7: a switch or tick box with its words (the Keyboard window's switch). F11: a list's search box. F14: a link in a
   table's cell (as Market Intelligence's Reports tables). */
@media (pointer: coarse){
  :where(body:not(:has(#view-trades.active))) .module-brand{padding-top:1px;padding-bottom:1px;margin-top:-1px;margin-bottom:-1px;}
}
@media (max-width: 600px), (max-height: 500px) and (pointer: coarse){
  :where(body:not(:has(#view-trades.active))) .module-brand{padding:8px 2px;margin:-8px -2px;}
}
@media (max-width: 600px), (pointer: coarse){
  :where(body:not(:has(#view-trades.active))) .grid-sort{min-width:48px;}
  :where(body:not(:has(#view-trades.active))) th.n > .grid-sort{justify-content:flex-end;text-align:right;}
  :where(body:not(:has(#view-trades.active))) .period-step .btn{min-width:48px;}
  :where(body:not(:has(#view-trades.active))) .sel-hit{min-width:48px;min-height:48px;}
  :where(body:not(:has(#view-trades.active))) label.checkline{min-height:48px;}
  :where(body:not(:has(#view-trades.active))) .filter-bar .filter-search input, :where(body:not(:has(#view-trades.active))) .admin-filters input[type="search"], :where(body:not(:has(#view-trades.active))) #p-search-wrap > input, :where(body:not(:has(#view-trades.active))) .toolbar input[type="search"]{min-height:48px;}
  :where(body:not(:has(#view-trades.active))) .ledger td a{display:inline-flex;align-items:center;min-height:48px;}
}
/* F4: the top bar of a touch tablet: the search box, the avatar, the bell and the side menu's fold button, 48 px to tap,
   each by an invisible margin around it, centred on it (a ::after, as the platform's switches have, M1), so that no
   control and no bar changes size: these four have an edge or a fill of their own, which a padding would widen. */
@media (pointer: coarse){
  :where(body:not(:has(#view-trades.active))) .module-user .search-box, :where(body:not(:has(#view-trades.active))) .module-user .avatar-btn, :where(body:not(:has(#view-trades.active))) .module-user .bell-btn{position:relative;}
  :where(body:not(:has(#view-trades.active))) .module-user .search-box::after, :where(body:not(:has(#view-trades.active))) .module-user .avatar-btn::after, :where(body:not(:has(#view-trades.active))) .module-user .bell-btn::after, html.has-side-toggle :where(body:not(:has(#view-trades.active))) .sidebar > .side-toggle::after{content:"";position:absolute;inset:min(0px, calc(50% - 24px));}
}
/* F5: a grid's cards on a phone fit their panel (each card and cell counts its padding and edge inside its width:
   every grid list stood 10 px wider than its panel and scrolled), and the "Select all" heading cell is as wide as its
   48 px target. The cards' table keeps its width at any text size (a fixed layout: a word that cannot break, at 200%,
   no longer widens every card), a long word breaks only where it alone is wider than its card, and an account
   number ("CDS 700101"), an owner's name and a chip's words may wrap inside the card. */
@media (max-width: 600px), (max-height: 500px) and (pointer: coarse){
  :where(body:not(:has(#view-trades.active))) table.ledger-cards{table-layout:fixed;}
  :where(body:not(:has(#view-trades.active))) table.ledger-cards tbody tr, :where(body:not(:has(#view-trades.active))) table.ledger-cards td{box-sizing:border-box;}
  :where(body:not(:has(#view-trades.active))) table.ledger-cards td{overflow-wrap:break-word;min-width:0;max-width:100%;}
  :where(body:not(:has(#view-trades.active))) table.ledger-cards td .acct, :where(body:not(:has(#view-trades.active))) table.ledger-cards td .owner, :where(body:not(:has(#view-trades.active))) table.ledger-cards td .chip{white-space:normal;max-width:100%;}
  :where(body:not(:has(#view-trades.active))) table.ledger-cards td .owner-name{min-width:0;overflow-wrap:break-word;}
  :where(body:not(:has(#view-trades.active))) table.ledger-cards.grid-bulk thead th.sel-col{width:auto;min-width:48px;padding:0;}
}
/* F6: wider than a phone (768 to 1,440 px), every list of the grid holds its first column (with a tick-box column, the
   tick boxes and the column after them), a thin line after it, whether or not the list is scrolled; where the list is
   wider than its panel (each named in README "Nothing spills, on every page" and in the implementation standard: the
   activity log, the case monitor, the matters lists ...) it is a deliberate scroll box, as Market Intelligence's long
   lists are (its D66) and as the best tracking tools hold their first column: the held cells stay in place while the
   rest scrolls under them, on their own background so nothing shows through; a row's hover, focus and selection
   colours still win (the background weighs nothing). The tick-box column is 56 px, its 48 px target and 4 px either
   side, its heading's "Select all" box centred over the rows' boxes as the rows' are (.sel-col, centred, loses to
   .ledger th's left in a heading otherwise: the check of 18 October 2026, finding 1). */
@media (min-width: 601px) and (min-height: 501px), (min-width: 601px) and (pointer: fine){
  :where(body:not(:has(#view-trades.active))) table.grid .sel-col{box-sizing:border-box;width:56px;min-width:56px;max-width:56px;padding-left:4px;padding-right:4px;text-align:center;}
  :where(body:not(:has(#view-trades.active))) table.grid > thead > tr > :first-child, :where(body:not(:has(#view-trades.active))) table.grid > tbody > tr.grid-row > :first-child{position:sticky;left:0;z-index:1;}
  :where(body:not(:has(#view-trades.active))) table.grid.grid-bulk > thead > tr > .sel-col + th, :where(body:not(:has(#view-trades.active))) table.grid.grid-bulk > tbody > tr.grid-row > .sel-col + td{position:sticky;left:56px;z-index:1;}
  :where(body:not(:has(#view-trades.active))) table.grid > thead > tr > :first-child, :where(body:not(:has(#view-trades.active))) table.grid.grid-bulk > thead > tr > .sel-col + th{z-index:2;}
  /* In a panel that scrolls (.panel.scroll-x, 6 px inside its edge) the held cells stand at the panel's own edge, so
     nothing that scrolls shows to the left of them. */
  :where(body:not(:has(#view-trades.active))) .panel.scroll-x > table.grid > thead > tr > :first-child, :where(body:not(:has(#view-trades.active))) .panel.scroll-x > table.grid > tbody > tr.grid-row > :first-child{left:-6px;}
  :where(body:not(:has(#view-trades.active))) .panel.scroll-x > table.grid.grid-bulk > thead > tr > .sel-col + th, :where(body:not(:has(#view-trades.active))) .panel.scroll-x > table.grid.grid-bulk > tbody > tr.grid-row > .sel-col + td{left:50px;}
  :where(body:not(:has(#view-trades.active))) table.grid:not(.grid-bulk) > thead > tr > :first-child, :where(body:not(:has(#view-trades.active))) table.grid:not(.grid-bulk) > tbody > tr.grid-row > :first-child, :where(body:not(:has(#view-trades.active))) table.grid.grid-bulk > thead > tr > .sel-col + th, :where(body:not(:has(#view-trades.active))) table.grid.grid-bulk > tbody > tr.grid-row > .sel-col + td{box-shadow:inset -1px 0 0 var(--line);}
  :where(:where(body:not(:has(#view-trades.active))) table.grid > tbody > tr.grid-row > td:first-child), :where(:where(body:not(:has(#view-trades.active))) table.grid.grid-bulk > tbody > tr.grid-row > .sel-col + td){background:var(--surface);}
}
/* F8: a KPI tile's label, change and note wrap inside the tile; its figure is kept whole and sized to its tile
   (Market Intelligence's pattern, its fix round 1, B1, here by container queries: the figure steps down from 1.3125rem
   to 0.8125rem as the tile narrows, measured in the figure's own unit, so a 14-character figure fits; it breaks only at
   its space, before its number). On a phone two tiles stand side by side, and one to a row where the text is so
   large that two would not hold their figures (7rem each at least): the one rule for every row of tiles on a phone,
   over a row's own count (.dense, .four, a page's own columns written on the row), hence !important. The figure's
   steps hold at every width, not only on a phone: the sweep of 17 October 2026 found figures broken across two lines
   in a laptop's narrow tiles too (21 lines at 768 to 1,440 px: the Sales dashboard's Local and Foreign tiles, Asset
   Management's totals, Order Management's week). A row's tiles are one width, so its figures take one size, a short
   figure's too; sizing a row by its longest figure, as Market Intelligence does (js/market.js fitTiles), is Release D's. */
:where(body:not(:has(#view-trades.active))) .kpirow > .kpi{container-type:inline-size;min-width:0;}
:where(body:not(:has(#view-trades.active))) .kpirow > .kpi .num{overflow-wrap:break-word;}
:where(body:not(:has(#view-trades.active))) .kpirow > .kpi .lbl, :where(body:not(:has(#view-trades.active))) .kpirow > .kpi .delta, :where(body:not(:has(#view-trades.active))) .kpirow > .kpi .sub{overflow-wrap:break-word;min-width:0;}
@container (max-width: 10.8rem){ :where(body:not(:has(#view-trades.active))) .kpirow > .kpi .num{font-size:1.125rem;} }
@container (max-width: 9.2rem){ :where(body:not(:has(#view-trades.active))) .kpirow > .kpi .num{font-size:1rem;} }
@container (max-width: 8.2rem){ :where(body:not(:has(#view-trades.active))) .kpirow > .kpi .num{font-size:0.875rem;} }
@container (max-width: 7.2rem){ :where(body:not(:has(#view-trades.active))) .kpirow > .kpi .num{font-size:0.8125rem;} }
@media (max-width: 600px), (max-height: 500px) and (pointer: coarse){
  :where(body:not(:has(#view-trades.active))) .kpirow{grid-template-columns:repeat(auto-fit,minmax(min(100%,max(7rem,calc(50% - 6px))),1fr)) !important;}
  :where(body:not(:has(#view-trades.active))) .kpirow > .kpi{padding:12px 14px;}
}
/* F9: a drop-down's button and the Download button are never wider than their box, at every width: a filter's value
   wraps at its spaces rather than being cut with "…" (Market Intelligence's rule for its filters, at every width, its
   fix round 2), and the line that says why Download is off goes under the button where the two do not fit side by
   side; where everything fits, nothing moves. On a phone, for 200% text (320 to 414 px), Download's words, the period's
   list and a section title's own controls also wrap or narrow inside their row, so the page never widens and the bottom
   bar is never pushed past the screen's edge: the period's list says its choice in full, on two lines where it must
   (Market Intelligence's rule for a list in a field, its fix round 5, B). Those three are a phone's alone, so a laptop's
   Download and section titles look as they did (the check of 18 October 2026, finding 6). */
:where(body:not(:has(#view-trades.active))) .fl-menu, :where(body:not(:has(#view-trades.active))) .dl-menu{max-width:100%;min-width:0;}
:where(body:not(:has(#view-trades.active))) .dl-menu{flex-wrap:wrap;}
:where(body:not(:has(#view-trades.active))) .fl-menu > .fl-button, :where(body:not(:has(#view-trades.active))) .dl-menu > .dl-button{max-width:100%;}
:where(body:not(:has(#view-trades.active))) .fl-button .fl-value{min-width:0;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:break-word;text-align:left;}
:where(body:not(:has(#view-trades.active))) .fl-button .fl-label{white-space:normal;}
@media (max-width: 600px), (max-height: 500px) and (pointer: coarse){
  :where(body:not(:has(#view-trades.active))) .dl-menu > .dl-button{text-align:left;}
  :where(body:not(:has(#view-trades.active))) .period-select{max-width:100%;min-width:0;field-sizing:content;white-space:normal;height:auto;overflow-wrap:normal;}
  :where(body:not(:has(#view-trades.active))) .section-title{flex-wrap:wrap;}
  :where(body:not(:has(#view-trades.active))) .section-title > *{min-width:0;max-width:100%;}
}
/* F10: a ranked bar's label wraps beside its bar (never cut, never under the number), and a bar that opens its list
   is a 48 px row on a touch screen, the whole row its link. Where the row is too narrow for its text size (a phone at
   200% text: under 12rem) the label stands on its own line over its bar and its number, as the Sales dashboard's
   two panels do on every phone, so no word of it is broken. */
:where(body:not(:has(#view-trades.active))) .bar-row{container-type:inline-size;}
:where(body:not(:has(#view-trades.active))) .bar-label{min-width:0;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:break-word;}
@container (max-width: 12rem){
  :where(body:not(:has(#view-trades.active))) .bar-row > .bar-label{grid-column:1 / -1;}
  :where(body:not(:has(#view-trades.active))) .bar-row > .bar{grid-column:1 / 3;}
  :where(body:not(:has(#view-trades.active))) .bar-row > .bar-num{grid-column:3;}
}
@media (max-width: 600px), (pointer: coarse){
  :where(body:not(:has(#view-trades.active))) .bar-row[data-href], :where(body:not(:has(#view-trades.active))) .bar-row:has(.bar-link){min-height:48px;align-content:center;position:relative;}
  :where(body:not(:has(#view-trades.active))) .bar-row .bar-link::after{content:"";position:absolute;inset:0;}
}
/* F13: the side panel's tabs on a phone share the width and wrap, so no tab hides past the panel's edge. */
@media (max-width: 600px), (max-height: 500px) and (pointer: coarse){
  :where(body:not(:has(#view-trades.active))) .drawer .drawer-tabs{flex-wrap:wrap;}
  :where(body:not(:has(#view-trades.active))) .drawer .drawer-tab{flex:1 1 auto;padding-left:8px;padding-right:8px;white-space:normal;text-align:center;}
}
/* F15: a page's title breaks between its words, and inside a word only where the word alone is wider than the column;
   on the narrowest phones it grows to 46 px at most (170% of its size), as Market Intelligence's titles do. A title
   that stands straight in its view with no size of its own (My work's: twice the text) grows to 46 px at most on a
   phone, so "Unattended" stays whole at 200% text; at the default size it is as before (2rem, 32 px). */
:where(body:not(:has(#view-trades.active))) .main h1{overflow-wrap:break-word;}
@media (max-width: 355px){ :where(body:not(:has(#view-trades.active))) .pagehead h1, :where(body:not(:has(#view-trades.active))) .hub-head h1{font-size:min(1.6875rem, 46px);} }
@media (max-width: 600px), (max-height: 500px) and (pointer: coarse){ :where(:where(body:not(:has(#view-trades.active))) .main section) > h1{font-size:min(2rem, 46px);} }
/* The pages that still scrolled sideways at 320 and 375 px at 200% text (the sweep's lines, outside the Trade desk),
   fitted: All units' lead link wraps; a date's field and box are never wider than their row, and on the narrowest
   phones a date is 28.8 px at most (180%, as Market Intelligence's dates); on a phone, the Upload page's step row and
   its Download the template wrap, and Asset Management's Decisions waiting scrolls inside its own panel, 4 and 6 px
   inside its edge as a panel that scrolls is (.panel.scroll-x), so a focus ring at its edge is not cut (its cards are
   Release D's). Those two are a phone's alone: on a tablet or a laptop the step row and the panel are as they were
   (the check of 18 October 2026, findings 4 and 5). */
:where(body:not(:has(#view-trades.active))) .hub-head p a{white-space:normal;}
:where(body:not(:has(#view-trades.active))) .field:has(> input[type="date"]){min-width:0;max-width:100%;}
:where(body:not(:has(#view-trades.active))) .field input[type="date"], :where(body:not(:has(#view-trades.active))) .mk-week-nav input[type="date"]{max-width:100%;min-width:0;}
@media (max-width: 355px){ :where(body:not(:has(#view-trades.active))) .field input[type="date"], :where(body:not(:has(#view-trades.active))) .mk-week-nav input[type="date"]{font-size:clamp(16px, 1rem, 28.8px) !important;} }
@media (max-width: 600px), (max-height: 500px) and (pointer: coarse){
  :where(body:not(:has(#view-trades.active))) .upl-step-row > *{min-width:0;max-width:100%;}
  :where(body:not(:has(#view-trades.active))) .upl-step-row > .upl-download{flex-shrink:1;white-space:normal;}
  :where(body:not(:has(#view-trades.active))) #d-decisions{overflow-x:auto;padding:4px 6px;margin:-4px -6px;}
}

/* Fund Accounting, one fund at a time (design/fund-accounting-2026-10-23/design.md 8.1, 8.3, 8.4 and 8.16; package
   FA-3): the Daily entry's Fund list and the chosen fund's boxes keep the form's grid; the line "Where this entry
   stands", the worked-out figures and the old two-fund entry's words wrap inside their box; the Daily entry form's
   buttons (#e-actions: Correct these figures, Drop the correction, History, Delete, Clear, Save draft) wrap onto a
   second row where they do not fit, at every width, a side panel or a window open (a row of six is wider than a
   phone and than a laptop's column beside the side menu), and share a row's width on a phone; the same fund on its
   last approved day and the old entry's two funds are one card per row on a phone (F0's table.row-cards). Inside the
   guard, as every rule of this block. */
:where(body:not(:has(#view-trades.active))) #e-actions{flex-wrap:wrap;}
:where(body:not(:has(#view-trades.active))) #e-actions > *{min-width:0;max-width:100%;}
:where(body:not(:has(#view-trades.active))) .fa-stands{margin:0;overflow-wrap:break-word;min-width:0;}
:where(body:not(:has(#view-trades.active))) .fa-old-head{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 8px;}
:where(body:not(:has(#view-trades.active))) .fa-worked{margin-top:18px;min-width:0;}
:where(body:not(:has(#view-trades.active))) .fa-worked output{overflow-wrap:break-word;min-width:0;}
:where(body:not(:has(#view-trades.active))) .fa-old-lines td{overflow-wrap:break-word;}
/* The check of an entry (Fund Accounting package FA-9): the section under the worked-out figures, the line to the
   person it is with, and the engine's controls (.review-box, below) wrap inside the form's box; on the work's page
   the entry's fixed list of fields (.check-fields, the work summary's grid) wraps inside the drawer. */
:where(body:not(:has(#view-trades.active))) .fa-check{margin-top:18px;min-width:0;}
:where(body:not(:has(#view-trades.active))) .fa-check-you{margin:0 0 8px;overflow-wrap:break-word;}
:where(body:not(:has(#view-trades.active))) .check-fields{grid-template-columns:fit-content(50%) minmax(0,1fr);}
:where(body:not(:has(#view-trades.active))) .check-fields dt, :where(body:not(:has(#view-trades.active))) .check-fields dd{overflow-wrap:anywhere;min-width:0;}
:where(body:not(:has(#view-trades.active))) .check-why{margin:8px 0 0;overflow-wrap:break-word;}
@media (max-width: 600px), (max-height: 500px) and (pointer: coarse){
  :where(body:not(:has(#view-trades.active))) #e-actions > .btn, :where(body:not(:has(#view-trades.active))) #e-actions > .choice-group > .btn{flex:1 1 auto;white-space:normal;}
  :where(body:not(:has(#view-trades.active))) .check-fields{grid-template-columns:minmax(0,1fr);}
}

/* "Orbit Securities" for everyone (README "Orbit Securities for everyone";
   js/summary.js renderFigures): the unit cards (a heading holding one
   button, 48 px, the same at every width), the lines under them, and the
   administrator's card. Tokens only, both themes. */
#hub-figures{display:grid;gap:16px;min-width:0;}
#hub-figures[hidden]{display:none;}
#hub-figures > .su-group{margin:8px 0 -8px;}
#hub-figures > .off-why{margin:0;}
.fig-completed[hidden]{display:none;}
.fig-units{display:grid;gap:12px;min-width:0;}
.fig-card{min-width:0;}
.fig-card-head{margin:0;font-size:1.0625rem;font-weight:700;letter-spacing:-0.01em;}
.fig-card-button{display:flex;flex-wrap:wrap;align-items:center;gap:4px 16px;width:100%;min-height:48px;margin:0;padding:6px 0;border:0;background:none;color:var(--ink);font:inherit;text-align:left;cursor:pointer;}
.fig-card-button::after{content:'';flex:none;width:0.5rem;height:0.5rem;margin-left:auto;border-right:2px solid var(--ink-soft);border-bottom:2px solid var(--ink-soft);transform:rotate(45deg);}
.fig-card-button[aria-expanded="true"]::after{transform:rotate(-135deg);}
.fig-card-name{color:var(--ink-brand);}
.fig-card-figure{font-size:0.9375rem;font-weight:600;color:var(--ink);}
.fig-card-change{font-size:max(12px, 0.8125rem);white-space:normal;}
.fig-card-body{margin-top:12px;padding-top:12px;border-top:1px solid var(--line);}
.fig-card-body[hidden]{display:none;}
.fig-card .kpi{padding:12px 14px;}
.fig-card .kpi .num{font-size:1.125rem;}
.fig-card .unit-group{margin:14px 0 8px;}
.fig-line{margin:12px 0 0;font-size:max(12px, 0.8125rem);color:var(--ink-soft);}
.fig-links{display:flex;flex-wrap:wrap;gap:8px 20px;margin:12px 0 0;font-size:0.875rem;font-weight:600;}
.fig-links a{display:inline-flex;align-items:center;min-height:44px;}
.fig-links .su-module{font-weight:500;color:var(--ink-muted);}
.cf-note{padding:0 0 14px;max-width:760px;}
.cf-preview{margin:0 0 4px;}
@media (max-width: 600px), (max-height: 500px) and (pointer: coarse){
  .fig-card-button{gap:2px 12px;}
  .fig-card-name{flex:1 1 100%;}
  .fig-links a{min-height:48px;}
}

/* ---- Corporate Finance & Advisory: the page (package CF-5, 24 October 2026; design/corporate-finance-2026-10-23/
   design.md 6.1 to 6.8; README "Corporate Finance & Advisory", "The page"). The unit's own classes (.cfa-…), each
   selector carrying the no-spill block's guard :where(body:not(:has(#view-trades.active))) (the standard's rule for a new rule:
   "joins this block or carries the same guard"). Tokens only, sizes in rem, 48 px targets on a phone and a touch
   screen; on a phone the stages and the kinds' stages are one card each, a long word wraps rather than widening the
   page, and every table scrolls inside its own panel. The drawer, the lists, the Board, the Gantt and the forms are
   the platform's own (their rules above). ---- */
:where(body:not(:has(#view-trades.active))) .cfa-sub{display:block;margin-top:2px;font-size:max(12px, 0.8125rem);font-weight:400;line-height:1.4;color:var(--ink-muted);overflow-wrap:break-word;}
:where(body:not(:has(#view-trades.active))) .cfa-words{margin:0 0 10px;font-size:0.875rem;line-height:1.5;color:var(--ink-soft);max-width:48rem;}
:where(body:not(:has(#view-trades.active))) .cfa-version-line{margin:0 0 14px;font-size:0.875rem;color:var(--ink-soft);}
:where(body:not(:has(#view-trades.active))) .cfa-period-line{padding:0 0 12px;}
:where(body:not(:has(#view-trades.active))) .cfa-field-why{display:block;font-size:max(12px, 0.8125rem);color:var(--ink-soft);}
:where(body:not(:has(#view-trades.active))) .cfa-progress{display:inline-flex;flex-wrap:wrap;align-items:center;gap:6px 8px;min-width:0;font-size:max(12px, 0.8125rem);color:var(--ink-soft);}
:where(body:not(:has(#view-trades.active))) .cfa-progress-bar{width:6rem;max-width:100%;height:0.5rem;accent-color:var(--accent);}
:where(body:not(:has(#view-trades.active))) .cfa-next{display:inline-block;font-size:max(12px, 0.8125rem);font-weight:600;color:var(--ink-soft);}
:where(body:not(:has(#view-trades.active))) .cfa-group{margin:0 0 16px;padding:0;border:0;min-width:0;}
:where(body:not(:has(#view-trades.active))) .cfa-group > legend{margin:0 0 8px;padding:0;font-size:0.9375rem;font-weight:700;color:var(--ink);}
:where(body:not(:has(#view-trades.active))) .cfa-stages-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;margin:0 0 12px;}
:where(body:not(:has(#view-trades.active))) .cfa-progress-line{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;margin:0;min-width:0;}
:where(body:not(:has(#view-trades.active))) .cfa-stages-wrap{margin:0 0 16px;}
:where(body:not(:has(#view-trades.active))) .cfa-stages td{overflow-wrap:break-word;}
:where(body:not(:has(#view-trades.active))) .cfa-stages .cfa-stage-row-open > td{background:var(--surface-selected);}
:where(body:not(:has(#view-trades.active))) .cfa-stages .cfa-stage-group > th{padding:8px 10px;background:var(--surface-2);font-size:0.8125rem;font-weight:700;text-align:left;color:var(--ink-soft);}
:where(body:not(:has(#view-trades.active))) .cfa-stage-name{text-align:left;font-weight:600;}
:where(body:not(:has(#view-trades.active))) .cfa-stages-gantt{margin:0 0 16px;}
:where(body:not(:has(#view-trades.active))) .cfa-stage{margin:8px 0 0;padding:16px 0 0;border-top:1px solid var(--line);min-width:0;}
:where(body:not(:has(#view-trades.active))) .cfa-stage-title{margin:0 0 6px;font-size:1.0625rem;font-weight:700;overflow-wrap:break-word;}
:where(body:not(:has(#view-trades.active))) .cfa-stage-facts{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;margin:0 0 10px;}
:where(body:not(:has(#view-trades.active))) .cfa-gate-line, :where(body:not(:has(#view-trades.active))) .cfa-held-line{margin:0 0 10px;padding:8px 12px;border-left:3px solid var(--warning-line);border-radius:var(--radius-sm);background:var(--warning-bg);font-size:0.875rem;line-height:1.45;color:var(--warning-ink);}
:where(body:not(:has(#view-trades.active))) .cfa-stage-template{margin:0 0 14px;}
:where(body:not(:has(#view-trades.active))) .cfa-stage h4{margin:12px 0 6px;font-size:0.9375rem;font-weight:700;}
:where(body:not(:has(#view-trades.active))) .cfa-activities, :where(body:not(:has(#view-trades.active))) .cfa-output-text{margin:0 0 8px;font-size:0.875rem;line-height:1.5;overflow-wrap:break-word;}
:where(body:not(:has(#view-trades.active))) .cfa-ticks{margin:0 0 10px;padding:0;border:0;min-width:0;}
:where(body:not(:has(#view-trades.active))) .cfa-ticks > legend{margin:0 0 4px;padding:0;font-size:0.875rem;font-weight:600;color:var(--ink-soft);}
:where(body:not(:has(#view-trades.active))) .cfa-tick-row{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 12px;padding:2px 0;}
:where(body:not(:has(#view-trades.active))) .cfa-tick{display:flex;align-items:flex-start;gap:8px;min-height:2rem;min-width:0;font-size:0.875rem;line-height:1.45;cursor:pointer;}
:where(body:not(:has(#view-trades.active))) .cfa-tick input{flex:none;margin:0.2rem 0 0;width:1.125rem;height:1.125rem;}
:where(body:not(:has(#view-trades.active))) .cfa-tick-who{font-size:max(12px, 0.8125rem);color:var(--ink-muted);}
:where(body:not(:has(#view-trades.active))) .cfa-why-list{margin:6px 0 0;padding:0;list-style:none;font-size:max(12px, 0.8125rem);line-height:1.45;color:var(--ink-soft);}
:where(body:not(:has(#view-trades.active))) .cfa-why-list > li{margin:0 0 4px;overflow-wrap:break-word;}
:where(body:not(:has(#view-trades.active))) .cfa-who{min-width:0;}
:where(body:not(:has(#view-trades.active))) .cfa-doc-link{display:inline-flex;align-items:center;min-height:2rem;margin-top:4px;font-size:0.875rem;font-weight:600;}
:where(body:not(:has(#view-trades.active))) .cfa-stage-form .form-actions{flex-wrap:wrap;}
:where(body:not(:has(#view-trades.active))) .cfa-settings-bar{margin:0 0 10px;}
:where(body:not(:has(#view-trades.active))) .cfa-s-cards{display:grid;gap:12px;margin:0 0 14px;padding:0;list-style:none;}
:where(body:not(:has(#view-trades.active))) .cfa-s-card{min-width:0;padding:12px 14px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);}
:where(body:not(:has(#view-trades.active))) .cfa-s-name{margin:0 0 8px;font-size:1rem;font-weight:700;overflow-wrap:break-word;}
:where(body:not(:has(#view-trades.active))) .cfa-s-stage{margin:0;padding:0;border:0;min-width:0;}
:where(body:not(:has(#view-trades.active))) .cfa-s-stage > legend{margin:0 0 6px;padding:0;font-size:0.9375rem;font-weight:700;}
:where(body:not(:has(#view-trades.active))) .cfa-s-facts{display:grid;gap:6px;margin:0;}
:where(body:not(:has(#view-trades.active))) .cfa-s-facts dt{font-size:max(12px, 0.8125rem);font-weight:600;color:var(--ink-soft);}
:where(body:not(:has(#view-trades.active))) .cfa-s-facts dd{margin:0;font-size:0.875rem;line-height:1.45;overflow-wrap:break-word;}
:where(body:not(:has(#view-trades.active))) .cfa-s-ticks{margin:0;padding-left:1.25rem;}
:where(body:not(:has(#view-trades.active))) .cfa-s-moves{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;}
:where(body:not(:has(#view-trades.active))) .cfa-s-add{margin:0 0 14px;}
:where(body:not(:has(#view-trades.active))) .cfa-s-versions{margin:0;padding-left:1.25rem;font-size:0.875rem;line-height:1.5;}
:where(body:not(:has(#view-trades.active))) .cfa-s-versions > li{margin:0 0 8px;overflow-wrap:break-word;}
:where(body:not(:has(#view-trades.active))) .cfa-s-changed{margin:4px 0 0;padding-left:1.25rem;color:var(--ink-soft);}
@media (min-width: 901px){
  :where(body:not(:has(#view-trades.active))) .cfa-s-cards{grid-template-columns:repeat(auto-fill,minmax(min(100%,22rem),1fr));}
}
@media (max-width: 600px), (max-height: 500px) and (pointer: coarse){
  :where(body:not(:has(#view-trades.active))) .cfa-tick, :where(body:not(:has(#view-trades.active))) .cfa-doc-link{min-height:48px;align-items:center;}
  :where(body:not(:has(#view-trades.active))) .cfa-tick input{margin:0;width:1.5rem;height:1.5rem;}
  :where(body:not(:has(#view-trades.active))) .cfa-stage-form .form-actions .btn, :where(body:not(:has(#view-trades.active))) .cfa-s-form .form-actions .btn{flex:1 1 100%;min-height:48px;}
  :where(body:not(:has(#view-trades.active))) .cfa-s-moves .btn{flex:1 1 auto;min-height:48px;}
  :where(body:not(:has(#view-trades.active))) .cfa-s-moves{gap:12px;}
  :where(body:not(:has(#view-trades.active))) .cfa-stages-head{align-items:flex-start;}
}
@media (pointer: coarse){
  :where(body:not(:has(#view-trades.active))) .cfa-tick{min-height:48px;align-items:center;}
}

/* What the browser check of 29 October 2026 found in the unit's views and the screen alone decides, mended (README
   "Corporate Finance & Advisory", "Short screens, large text and narrow boxes"); what the size of a box decides,
   with the screen's media head or without one, is the unit's second block, before Order Management's. Here a rule
   has no media head, the phone's "(max-width: 600px), (max-height: 500px) and (pointer: coarse)" or "(pointer:
   coarse)" for any touch screen (with the Settings cards' "(min-width: 901px)" above, the four heads no-spill-pages
   test 10 reads in this block), each selector inside the guard; tokens only, sizes in rem but for the 48 px of a
   target and the page's title's 48 px cap on a phone (a cap in px, as the platform's F15 writes its titles' caps).
   - B1. In the engagement's side panel (a stage opened by #stage= is in it) the tabs never shrink, and the body holds
     what is placed in it (a screen reader's words of a table drawn as cards, of the People picker).
   - M2. The deal team's names wrap inside their box, in the panel's head and Details, and in My work's side panel
     (the one rule that reaches outside the unit's page: My work's drawer, .app:has(#mw-title)).
   - Sort by. The list above a table drawn as cards (js/corporate-finance.js CF.sortBy) stands in a row of its own
     that wraps, never wider than its panel.
   - M1. The period's step buttons are 48 px wide on a phone and on a touch screen, the drop-down layout too.
   - M3. The page's title stays whole on a phone at 200% text: at most 48 px on a phone (178% of its 27 px), and 42 px
     (156%) where its box is narrower than 324 px, a screen under 356 px (the second block's container cfa-head: this
     block has no width query under the phone's; the platform's F15 holds other titles to 46 px there), so
     "Engagements" fits a 320 px screen. The Dashboard's tiles are at least 10.625rem wide (170 px at the default
     size, as before), so a word of a label ("Engagements") stays whole at 200% text.
   - M5. On the Board a card's due date and due chip wrap inside the card, and a code name longer than the card breaks
     with a hyphen; on a phone a title of three lines stays within 64 px.
   - M6. On the Gantt a code name wraps in its column instead of being cut, and the scale's rows are in rem, so a
     month's label stays inside its row at 200% text.
   - M8. The top bar's title "Corporate Finance & Advisory" wraps onto a second line on a phone instead of being cut.
   - M9. The People picker of New engagement holds its words for a screen reader (its .people box is placed), so they
     no longer stand 1,046 px down an 800 px panel. */
:where(body:not(:has(#view-trades.active))) .app:has(> .cfa-page) ~ .drawer-root .drawer-tabs{flex-shrink:0;}
:where(body:not(:has(#view-trades.active))) .app:has(> .cfa-page) ~ .drawer-root .drawer-body{position:relative;}
:where(body:not(:has(#view-trades.active))) .app:has(> .cfa-page) ~ .drawer-root .drawer-owners, :where(body:not(:has(#view-trades.active))) .app:has(> .cfa-page) ~ .drawer-root .owners, :where(body:not(:has(#view-trades.active))) .app:has(#mw-title) ~ .drawer-root .dval .owners{min-width:0;max-width:100%;}
:where(body:not(:has(#view-trades.active))) .app:has(> .cfa-page) ~ .drawer-root .owner, :where(body:not(:has(#view-trades.active))) .app:has(#mw-title) ~ .drawer-root .dval .owner{white-space:normal;min-width:0;max-width:100%;}
:where(body:not(:has(#view-trades.active))) .app:has(> .cfa-page) ~ .drawer-root .owner-name, :where(body:not(:has(#view-trades.active))) .app:has(#mw-title) ~ .drawer-root .dval .owner-name{min-width:0;overflow-wrap:break-word;}
:where(body:not(:has(#view-trades.active))) .cfa-sortby{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin:0 0 8px;max-width:100%;min-width:0;}
:where(body:not(:has(#view-trades.active))) .cfa-sortby > .fl-menu, :where(body:not(:has(#view-trades.active))) .cfa-sortby .fl-menu > .fl-button{max-width:100%;min-width:0;}
:where(body:not(:has(#view-trades.active))) .cfa-sortby .fl-button{text-align:left;}
:where(body:not(:has(#view-trades.active))) .cfa-page .kpirow{grid-template-columns:repeat(auto-fit,minmax(min(100%,10.625rem),1fr));}
:where(body:not(:has(#view-trades.active))) .cfa-page .board-card-meta .chip, :where(body:not(:has(#view-trades.active))) .cfa-page .board-card-meta .due{white-space:normal;max-width:100%;overflow-wrap:break-word;}
:where(body:not(:has(#view-trades.active))) .cfa-page .board-card-title{overflow-wrap:break-word;-webkit-hyphens:auto;hyphens:auto;}
:where(body:not(:has(#view-trades.active))) .cfa-page .gantt-name > span, :where(body:not(:has(#view-trades.active))) .app:has(> .cfa-page) ~ .drawer-root .gantt-name > span{overflow:visible;white-space:normal;overflow-wrap:break-word;}
:where(body:not(:has(#view-trades.active))) .cfa-page .gantt-scale, :where(body:not(:has(#view-trades.active))) .app:has(> .cfa-page) ~ .drawer-root .gantt-scale{height:2.75rem;}
:where(body:not(:has(#view-trades.active))) .cfa-page .gantt-group, :where(body:not(:has(#view-trades.active))) .app:has(> .cfa-page) ~ .drawer-root .gantt-group{height:1.375rem;}
:where(body:not(:has(#view-trades.active))) .cfa-page .gantt-tick, :where(body:not(:has(#view-trades.active))) .app:has(> .cfa-page) ~ .drawer-root .gantt-tick{top:1.375rem;height:1.375rem;}
:where(body:not(:has(#view-trades.active))) .cfa-page .gantt[data-zoom="week"] .gantt-group, :where(body:not(:has(#view-trades.active))) .cfa-page .gantt[data-zoom="year"] .gantt-group, :where(body:not(:has(#view-trades.active))) .app:has(> .cfa-page) ~ .drawer-root .gantt[data-zoom="week"] .gantt-group, :where(body:not(:has(#view-trades.active))) .app:has(> .cfa-page) ~ .drawer-root .gantt[data-zoom="year"] .gantt-group{height:2.75rem;padding-top:0.875rem;}
:where(body:not(:has(#view-trades.active))) [id="cfa-form"] .people{position:relative;}
@media (max-width: 600px), (max-height: 500px) and (pointer: coarse){
  :where(body:not(:has(#view-trades.active))) [id="cfa-d-period-control"] .period.layout-select .period-step .btn, :where(body:not(:has(#view-trades.active))) [id="cfa-h-period-control"] .period.layout-select .period-step .btn{min-width:48px;}
  :where(body:not(:has(#view-trades.active))) .cfa-page .pagehead h1{font-size:min(1.6875rem, 48px);}
  :where(body:not(:has(#view-trades.active))) .cfa-page .board-card-title{line-height:1.25;}
  :where(body:not(:has(#view-trades.active))) .module-bar:has(~ .app > .cfa-page) .module-title{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:normal;line-height:1.2;}
}
@media (pointer: coarse){
  :where(body:not(:has(#view-trades.active))) [id="cfa-d-period-control"] .period.layout-select .period-step .btn, :where(body:not(:has(#view-trades.active))) [id="cfa-h-period-control"] .period.layout-select .period-step .btn{min-width:48px;}
}

/* The Front Office Daily entry, slice 2 (Release 3, README "Daily entry: fund, units and bond"): the two choices of Fund side by side (one column of 48px rows on a phone), the muted line under a service in a list (the fund, the bond, or the words for none: the muted text token, 4.5:1 on every row background in both themes, test/fo-entry-fields.test.js), the line that says what a change of service will take off an entry, and the Edit of a card in "Bond entries without a bond". */
.fund-choices{display:flex;flex-wrap:wrap;gap:8px 28px;}
.fund-choices .checkline{padding-top:0;}
fieldset.field > .err{margin:0 0 2px;}
.entry-line{display:block;color:var(--ink-muted);font-size:max(11px, 0.75rem);font-weight:400;}
.field .help.warn-line{color:var(--warning-ink);}
@media (max-width: 600px), (max-height: 500px) and (pointer: coarse){
  .fund-choices{flex-direction:column;flex-wrap:nowrap;gap:8px;}
  .fund-choices .checkline,#l-bond-field .checkline{min-height:48px;}
  .fund-choices .checkline label,#l-bond-field .checkline label{flex:1 1 auto;display:flex;align-items:center;min-height:48px;}
  .ledger-cards tbody tr > td[data-card="action"]{order:1;}
  .ledger-cards td[data-card="action"]::before{content:none;}
  .ledger-cards td[data-card="action"] .btn{min-height:48px;min-width:48px;width:100%;}
}

/* On a phone a one-column grid is never wider than the screen. A track of
   `1fr` is minmax(auto, 1fr): it grows to its widest child, so one wide table
   (Marketing's Product performance, on the Leads view) made the whole page
   wider than the phone and pushed the side panel and every window that opens
   over it off the right edge: on the window "Won: the revenue" the Save
   button was out of sight (found on 10 October 2026). The track may now
   shrink below its widest child, and a table in .scroll-x scrolls inside its
   own panel, as it was meant to. Laptops are untouched. */
@media (max-width: 900px){
  .formgrid,.grid2,.grid3,.formgrid.three,.formgrid.four,.drawer-form .formgrid,.clients-layout{grid-template-columns:minmax(0,1fr);}
  .formgrid > *,.grid2 > *,.grid3 > *{min-width:0;}
  /* The page's own column is the width of the phone. On the pages whose column
     is centred (.page: the Users page, the Audit log) the centring let the
     column grow to its widest table, and the whole page scrolled sideways. */
  .app > .main{width:100%;min-width:0;}
  /* A file box is as wide as its words; it may not be wider than its form. */
  input[type="file"]{max-width:100%;}
}
/* The targets grid scrolls inside its own panel. Its hidden labels (.sr-only,
   placed out of the flow) were measured against the page and not the grid, so
   they widened the page by the grid's hidden part: the grid now holds them. */
.targets-grid{position:relative;}
/* ---- Corporate Finance & Advisory: what the browser check of 29 October 2026 found in the unit's views, mended where
   the size of a box decides (README "Corporate Finance & Advisory", "The page", "Short screens, large text and narrow
   boxes"; what the screen alone decides is in the unit's first block, after the company view's). This block holds
   only the unit's three query containers and the rules of their container queries, some of those inside the phone's
   media head or the wide screen's, "(min-width: 601px) and (min-height: 501px), (min-width: 601px) and (pointer:
   fine)", where the screen and the box decide together (Back's place and the strip's float on a phone; the strip's
   float and the tables as cards on a tablet or a laptop): the engagement's side panel, cfa-panel; the unit's tables,
   cfa-fit; and the page's head, cfa-head. Each selector inside the no-spill guard
   :where(body:not(:has(#view-trades.active))) as an ancestor (decision 11: the Trade desk is untouched), reaching only
   the unit's side panel (the drawer root follows the page's .app, whose main is .cfa-page), the unit's tables
   (.cfa-fit, .cfa-stages-wrap) and its page heads. Tokens only; sizes in rem, but for the platform's 11 px floor under
   a card's small label and the title's 42 px cap, whose query is in px as the cap is.
   - B1. The engagement's side panel (and a stage opened by #stage=, which is in it) is the query container cfa-panel.
     It scrolls as one only where the platform's fixed head and actions would leave its body too little: shorter than
     36rem (576 px at the standard text size: a phone held sideways, a window less than 576 px tall; a laptop's
     browser window at the standard size is taller, 1,366 x 768 leaving it about 657 px), or narrower than 30rem and
     shorter than 50rem (800 px at the standard text size). Narrower than 30rem is a phone up to 480 px wide, where
     the head, tabs and five actions stand taller (up to 584 px of a 360 px phone, 521 px of a 375 px one and 452 px
     of a 414 px one), and, the panel being 640 px wide, every screen at a text size above about 133% (30rem is 960 px
     at 200%, and 50rem 1,600 px). The query reads the panel's own height, not the screen's: on a phone the panel is
     the browser's visible window (100dvh). So where a phone's panel is taller than 800 px at the standard text size
     it keeps the platform's fixed head and pinned actions, as every other unit's phone panel does, its body left at
     least 217 px (13.5rem), no less than a laptop's window keeps: the installed app, whose window is the whole screen,
     on a 375 x 812, 390 x 844, 414 x 896 or 412 x 915 phone (measured so). In a phone's browser its bars take part of
     the screen (Safari leaves a 375 x 812 iPhone about 635 to 715 px, a 414 x 896 one about 715 to 797 px), so there
     such a phone's panel is mostly 800 px or less and scrolls as one, and a 430 x 932 iPhone's can change between the
     two as Safari's bars show or hide; a shorter phone (320 x 568, 360 x 800, 375 x 667) or a larger text scrolls as
     one. There head, tabs, body and actions follow one another,
     the actions' sentences with them, so none of them takes the height the body needs and no part is lost (at 320 x
     568 the body was left 58 px, all of it padding). Its
     close stays in view while it scrolls, on every screen: Back at the top left on a phone, the × at the top right
     elsewhere, held there over what passes under it. Each control keeps 4rem of room above itself when the panel
     scrolls to it, as a sheet's controls keep clear of its header (never scroll padding on the box), and one the
     keyboard reaches where the close already stands is brought out from under it by js/corporate-finance.js
     keepFocusClear; the actions come after the body, in their order. The strip "This record has changed", which then
     sticks to the top of the panel, keeps its words and its button clear of the close: an empty float 2.5rem wide and
     3.25rem high at its start on a phone (Back's corner) and at its end elsewhere (the ×'s), so only its first lines
     step aside. Elsewhere the panel keeps the platform's fixed head and foot, and its body scrolls.
   - M3. The page's head is the query container cfa-head: where it is narrower than 324 px (a screen under 356 px,
     with the phone's 16 px sides) the title is at most 42 px (156% of its 27 px), so "Engagements" stays whole at
     200% text on a 320 px screen; on any other phone the first block's 48 px cap stands.
   - M4, M7. The unit's tables (the stages in the panel, Sign-offs' two lists, the Dashboard's three tables) are one
     card per row wherever their box is narrower than 40rem on a tablet or a laptop (the panel's 596 px at any text
     size; 200% text on a tablet or a laptop): a card's first cell is its title, the others side by side, each value
     under its heading. On a phone they keep their own cards (F0 and the older .ledger-cards). Above a table drawn as
     cards stands its "Sort by" list (js/corporate-finance.js CF.sortBy, its hidden headings out of the tab order; its
     row is a rule of the unit's first block). ---- */
:where(body:not(:has(#view-trades.active))) .app:has(> .cfa-page) ~ .drawer-root .drawer{container:cfa-panel / size;overflow-y:auto;overscroll-behavior:contain;}
@container cfa-panel (max-height: 36rem) or ((max-width: 30rem) and (max-height: 50rem)){
  :where(body:not(:has(#view-trades.active))) .app:has(> .cfa-page) ~ .drawer-root .drawer-head, :where(body:not(:has(#view-trades.active))) .app:has(> .cfa-page) ~ .drawer-root .drawer-foot{flex-shrink:0;}
  :where(body:not(:has(#view-trades.active))) .app:has(> .cfa-page) ~ .drawer-root .drawer-body{flex:1 0 auto;overflow:visible;}
  :where(body:not(:has(#view-trades.active))) .app:has(> .cfa-page) ~ .drawer-root .drawer-foot{position:static;}
  :where(body:not(:has(#view-trades.active))) .app:has(> .cfa-page) ~ .drawer-root .drawer-head .drawer-close{position:fixed;z-index:4;border-radius:50%;background:var(--surface);box-shadow:var(--shadow-sm);}
  :where(body:not(:has(#view-trades.active))) .app:has(> .cfa-page) ~ .drawer-root a[href], :where(body:not(:has(#view-trades.active))) .app:has(> .cfa-page) ~ .drawer-root button, :where(body:not(:has(#view-trades.active))) .app:has(> .cfa-page) ~ .drawer-root input, :where(body:not(:has(#view-trades.active))) .app:has(> .cfa-page) ~ .drawer-root select, :where(body:not(:has(#view-trades.active))) .app:has(> .cfa-page) ~ .drawer-root textarea, :where(body:not(:has(#view-trades.active))) .app:has(> .cfa-page) ~ .drawer-root summary, :where(body:not(:has(#view-trades.active))) .app:has(> .cfa-page) ~ .drawer-root [tabindex]{scroll-margin-top:calc(4rem + env(safe-area-inset-top,0px));}
  :where(body:not(:has(#view-trades.active))) .app:has(> .cfa-page) ~ .drawer-root .drawer-changed{display:block;}
  :where(body:not(:has(#view-trades.active))) .app:has(> .cfa-page) ~ .drawer-root .drawer-changed > .btn{margin-top:8px;}
}
@media (max-width: 600px), (max-height: 500px) and (pointer: coarse){
  @container cfa-panel (max-height: 36rem) or ((max-width: 30rem) and (max-height: 50rem)){
    :where(body:not(:has(#view-trades.active))) .app:has(> .cfa-page) ~ .drawer-root .drawer-head .drawer-close{top:calc(8px + env(safe-area-inset-top,0px));}
    :where(body:not(:has(#view-trades.active))) .app:has(> .cfa-page) ~ .drawer-root .drawer-changed::before{content:"";float:left;width:2.5rem;max-width:100%;height:3.25rem;}
  }
}
@media (min-width: 601px) and (min-height: 501px), (min-width: 601px) and (pointer: fine){
  @container cfa-panel (max-height: 36rem) or ((max-width: 30rem) and (max-height: 50rem)){
    :where(body:not(:has(#view-trades.active))) .app:has(> .cfa-page) ~ .drawer-root .drawer-changed::before{content:"";float:right;width:2.5rem;max-width:100%;height:3.25rem;}
  }
}
:where(body:not(:has(#view-trades.active))) .cfa-page .pagehead{container:cfa-head / inline-size;}
@container cfa-head (max-width: 323px){
  :where(body:not(:has(#view-trades.active))) .cfa-page .pagehead h1{font-size:min(1.6875rem, 42px);}
}
:where(body:not(:has(#view-trades.active))) .cfa-fit, :where(body:not(:has(#view-trades.active))) .cfa-stages-wrap{container:cfa-fit / inline-size;position:relative;}
@media (min-width: 601px) and (min-height: 501px), (min-width: 601px) and (pointer: fine){
  @container cfa-fit (max-width: 40rem){
    :where(body:not(:has(#view-trades.active))) .cfa-fit > table > thead, :where(body:not(:has(#view-trades.active))) .cfa-stages-wrap > table > thead{position:absolute;width:0.0625rem;max-width:100%;height:0.0625rem;overflow:hidden;clip-path:inset(50%);}
    :where(body:not(:has(#view-trades.active))) .cfa-fit > table, :where(body:not(:has(#view-trades.active))) .cfa-stages-wrap > table{display:block;width:auto;min-width:0;}
    :where(body:not(:has(#view-trades.active))) .cfa-fit > table > tbody, :where(body:not(:has(#view-trades.active))) .cfa-stages-wrap > table > tbody{display:grid;gap:8px;}
    :where(body:not(:has(#view-trades.active))) .cfa-fit > table > tbody > tr, :where(body:not(:has(#view-trades.active))) .cfa-stages-wrap > table > tbody > tr{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,9rem),1fr));gap:6px 16px;align-items:start;padding:8px 12px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface);}
    :where(body:not(:has(#view-trades.active))) .cfa-fit > table > tbody > tr > *, :where(body:not(:has(#view-trades.active))) .cfa-stages-wrap > table > tbody > tr > *{display:block;min-width:0;padding:0;border:0;background:none;text-align:left;white-space:normal;overflow-wrap:break-word;}
    :where(body:not(:has(#view-trades.active))) .cfa-fit > table > tbody > tr > :first-child, :where(body:not(:has(#view-trades.active))) .cfa-stages-wrap > table > tbody > tr > :first-child{grid-column:1 / -1;font-weight:600;}
    :where(body:not(:has(#view-trades.active))) .cfa-fit > table > tbody > tr > [data-label]::before, :where(body:not(:has(#view-trades.active))) .cfa-stages-wrap > table > tbody > tr > [data-label]::before{content:attr(data-label);display:block;margin:0 0 2px;font-size:max(11px, 0.75rem);font-weight:600;color:var(--ink-soft);}
    :where(body:not(:has(#view-trades.active))) .cfa-fit > table > tbody > tr > :first-child::before, :where(body:not(:has(#view-trades.active))) .cfa-stages-wrap > table > tbody > tr > :first-child::before{content:none;}
    :where(body:not(:has(#view-trades.active))) .cfa-fit > table > tbody > tr > :empty, :where(body:not(:has(#view-trades.active))) .cfa-stages-wrap > table > tbody > tr > :empty{display:none;}
    :where(body:not(:has(#view-trades.active))) .cfa-fit > table > tbody > tr.empty-state, :where(body:not(:has(#view-trades.active))) .cfa-stages-wrap > table > tbody > tr.cfa-stage-group{display:block;padding:8px 0 0;border:0;background:none;}
    :where(body:not(:has(#view-trades.active))) .cfa-stages-wrap > table > tbody > tr.cfa-stage-row-open{background:var(--surface-selected);}
    :where(body:not(:has(#view-trades.active))) .cfa-fit .chip, :where(body:not(:has(#view-trades.active))) .cfa-stages-wrap .chip, :where(body:not(:has(#view-trades.active))) .cfa-stages-wrap .owner{white-space:normal;max-width:100%;}
    :where(body:not(:has(#view-trades.active))) .cfa-fit .owners, :where(body:not(:has(#view-trades.active))) .cfa-stages-wrap .owners{min-width:0;max-width:100%;}
  }
}
/* ---- The Order Management improvements, package P3: the page (24 October 2026; design/order-management-2026-10-23/
   design.md Part 3; README "The page and the phone (package P3)"). One block of this work's classes, every selector
   inside the no-spill guard :where(body:not(:has(#view-trades.active))) (decision 11: the Trade desk is untouched).
   Daily entry's cards (.omf-card: a title that folds the card to its title and tag, .omf-fold; the groups as
   fieldsets, .omf-group; a part of a category under it, .omf-part; Add a note, .omf-note-add, and its box,
   .omf-note; the outstanding worked out, .omf-out); the Client queries card (its figures, .omf-qfigs; Add a query on
   one line, .omf-qadd-row; each row's acts, .omf-qacts); the Dashboard's tables (a row's heading, .omf-rowhead; a
   note button, .omf-note-btn, and its text, .omf-note-text; coverage, .omf-coverage); the Weekly figures' boxes
   (.omf-cell-input); the review's controls (js/lib/review.js: .review-box). Every new table is one card per row on
   a phone by the platform's F0 (table.row-cards); every button is a .btn or .rowbtn, 48 px on a phone and a touch
   screen by the platform's rule, the fold too; fields are 16 px by the platform's rule. Tokens only, sizes in rem.
   ---- */
:where(body:not(:has(#view-trades.active))) .omf-card{margin-bottom:14px;}
:where(body:not(:has(#view-trades.active))) .omf-card-head{margin:0 0 2px;display:flex;justify-content:space-between;align-items:center;gap:6px 10px;flex-wrap:wrap;}
:where(body:not(:has(#view-trades.active))) .omf-fold{display:inline-flex;align-items:center;gap:8px;min-width:0;max-width:100%;margin:0;padding:4px 0;border:0;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer;overflow-wrap:break-word;}
:where(body:not(:has(#view-trades.active))) .omf-fold::before{content:"";flex:0 0 auto;width:0;height:0;border-left:0.3125rem solid transparent;border-right:0.3125rem solid transparent;border-top:0.375rem solid currentColor;transition:transform .15s;}
:where(body:not(:has(#view-trades.active))) .omf-fold[aria-expanded="false"]::before{transform:rotate(-90deg);}
:where(body:not(:has(#view-trades.active))) .omf-fold:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:var(--radius-xs);}
:where(body:not(:has(#view-trades.active))) .omf-card-sub{padding:0 0 10px;}
:where(body:not(:has(#view-trades.active))) .omf-group{margin:0 0 12px;padding:10px 14px 14px;border:1px solid var(--line);border-radius:var(--radius-sm);min-width:0;}
:where(body:not(:has(#view-trades.active))) .omf-group > legend{padding:0 6px;font-weight:600;color:var(--ink-soft);font-size:0.8125rem;}
:where(body:not(:has(#view-trades.active))) .omf-group-note{display:block;margin:0 0 10px;}
:where(body:not(:has(#view-trades.active))) .omf-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr));}
:where(body:not(:has(#view-trades.active))) .omf-field{min-width:0;}
:where(body:not(:has(#view-trades.active))) .omf-field.omf-part{padding-left:0.875rem;border-left:2px solid var(--line);}
:where(body:not(:has(#view-trades.active))) .omf-box{width:100%;min-width:0;text-align:right;}
:where(body:not(:has(#view-trades.active))) .omf-note-add{align-self:flex-start;margin-top:6px;}
:where(body:not(:has(#view-trades.active))) .omf-note{margin-top:8px;display:flex;flex-direction:column;gap:4px;min-width:0;}
:where(body:not(:has(#view-trades.active))) .omf-note textarea{width:100%;min-width:0;}
:where(body:not(:has(#view-trades.active))) .omf-note-read{margin:6px 0 0;font-size:0.8125rem;color:var(--ink-soft);overflow-wrap:break-word;}
:where(body:not(:has(#view-trades.active))) .omf-note-word{font-weight:600;}
:where(body:not(:has(#view-trades.active))) .omf-out-line{margin:4px 0 12px;overflow-wrap:break-word;}
:where(body:not(:has(#view-trades.active))) .omf-out{font-weight:700;}
:where(body:not(:has(#view-trades.active))) .omf-notes-box{margin-top:12px;}
:where(body:not(:has(#view-trades.active))) .omf-status{padding:10px 0 0;}
:where(body:not(:has(#view-trades.active))) .omf-card-actions{margin-top:10px;flex-wrap:wrap;}
:where(body:not(:has(#view-trades.active))) .omf-sub{margin:16px 0 8px;font-size:0.875rem;font-weight:700;}
:where(body:not(:has(#view-trades.active))) .omf-qfigs{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,9rem),1fr));gap:8px;margin:0;}
:where(body:not(:has(#view-trades.active))) .omf-qfig{min-width:0;padding:8px 12px;border:1px solid var(--line);border-radius:var(--radius-sm);}
:where(body:not(:has(#view-trades.active))) .omf-qfig dt{font-size:0.8125rem;color:var(--ink-soft);overflow-wrap:break-word;}
:where(body:not(:has(#view-trades.active))) .omf-qfig dd{margin:2px 0 0;font-size:1.125rem;font-weight:700;}
:where(body:not(:has(#view-trades.active))) .omf-qadd-row{grid-template-columns:minmax(0,2fr) minmax(0,1fr) auto;align-items:start;}
:where(body:not(:has(#view-trades.active))) .omf-qadd-go{align-self:end;}
:where(body:not(:has(#view-trades.active))) .omf-qtools{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;}
:where(body:not(:has(#view-trades.active))) .omf-search{min-width:0;max-width:100%;}
:where(body:not(:has(#view-trades.active))) .omf-qacts{display:flex;flex-wrap:wrap;gap:6px;align-items:center;}
:where(body:not(:has(#view-trades.active))) .omf-qwhy{margin:4px 0 0;}
:where(body:not(:has(#view-trades.active))) .omf-note-preview{display:block;max-width:16rem;overflow-wrap:break-word;}
:where(body:not(:has(#view-trades.active))) .omf-span{padding:0;}
:where(body:not(:has(#view-trades.active))) .omf-table-note{padding:8px 0 0;}
:where(body:not(:has(#view-trades.active))) .omf-gap{margin-bottom:12px;}
:where(body:not(:has(#view-trades.active))) .ledger tbody th.omf-rowhead{text-transform:none;letter-spacing:normal;font-size:inherit;font-weight:600;color:var(--ink);background:transparent;white-space:normal;min-width:10rem;}
:where(body:not(:has(#view-trades.active))) .ledger tbody th.omf-rowhead.omf-part{padding-left:1.75rem;font-weight:400;}
:where(body:not(:has(#view-trades.active))) .ledger tbody tr.omf-who th{font-weight:400;}
:where(body:not(:has(#view-trades.active))) .omf-total{font-weight:600;}
:where(body:not(:has(#view-trades.active))) .omf-unrecorded{color:var(--ink-muted);}
:where(body:not(:has(#view-trades.active))) .omf-coverage{font-weight:400;font-size:max(11px, 0.75rem);}
:where(body:not(:has(#view-trades.active))) .omf-note-btn{margin:0 0 0 6px;}
:where(body:not(:has(#view-trades.active))) .omf-note-text{display:block;max-width:20rem;margin:4px 0 0 auto;text-align:left;white-space:normal;overflow-wrap:break-word;font-size:0.8125rem;color:var(--ink-soft);}
:where(body:not(:has(#view-trades.active))) .omf-dated{margin:8px 0 0;}
:where(body:not(:has(#view-trades.active))) .omf-tracker-name{font-weight:600;}
:where(body:not(:has(#view-trades.active))) .omf-cell-input{width:100%;min-width:6.875rem;text-align:right;padding:7px 9px;}
:where(body:not(:has(#view-trades.active))) .omf-table thead th{white-space:normal;}
:where(body:not(:has(#view-trades.active))) .omf-cell-input.omf-cell-text{text-align:left;min-width:9.375rem;}
:where(body:not(:has(#view-trades.active))) .omf-readonly td{color:var(--ink-soft);}
:where(body:not(:has(#view-trades.active))) .review-box{display:flex;flex-direction:column;gap:8px;min-width:0;}
:where(body:not(:has(#view-trades.active))) .review-standing{margin:0;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;overflow-wrap:break-word;}
:where(body:not(:has(#view-trades.active))) .review-standing .tag{white-space:normal;max-width:100%;overflow-wrap:break-word;}
:where(body:not(:has(#view-trades.active))) .review-acts{display:flex;flex-wrap:wrap;gap:8px;}
:where(body:not(:has(#view-trades.active))) .review-why{margin:0;}
@media (max-width: 600px), (max-height: 500px) and (pointer: coarse){
  :where(body:not(:has(#view-trades.active))) .omf-grid, :where(body:not(:has(#view-trades.active))) .omf-qadd-row{grid-template-columns:minmax(0,1fr);}
  :where(body:not(:has(#view-trades.active))) .omf-field.omf-part{padding-left:0.625rem;}
  :where(body:not(:has(#view-trades.active))) .omf-group{padding:8px 10px 12px;}
  :where(body:not(:has(#view-trades.active))) .omf-note-preview{max-width:100%;}
  :where(body:not(:has(#view-trades.active))) .ledger tbody th.omf-rowhead{min-width:0;}
  :where(body:not(:has(#view-trades.active))) .ledger tbody th.omf-rowhead.omf-part{padding-left:0;}
  :where(body:not(:has(#view-trades.active))) .omf-note-text{max-width:100%;}
  :where(body:not(:has(#view-trades.active))) .omf-cell-input, :where(body:not(:has(#view-trades.active))) .omf-cell-input.omf-cell-text{min-width:0;}
  :where(body:not(:has(#view-trades.active))) .omf-qadd-go .btn{width:100%;}
  :where(body:not(:has(#view-trades.active))) .omf-search{flex:1 1 100%;}
  :where(body:not(:has(#view-trades.active))) .omf-search input{width:100%;}
}
@media (max-width: 600px), (pointer: coarse){
  :where(body:not(:has(#view-trades.active))) .omf-fold, :where(body:not(:has(#view-trades.active))) .omf-cell-input{min-height:48px;}
}
/* Wider than a phone, this work's tables keep their columns closer (headings wrap, a little less padding) and, where
   one is still wider than its panel, hold their first column in place while the rest scrolls under it, as the grid's
   lists do (F6), on its own background so nothing shows through. */
@media (min-width: 601px) and (min-height: 501px), (min-width: 601px) and (pointer: fine){
  :where(body:not(:has(#view-trades.active))) .omf-table th, :where(body:not(:has(#view-trades.active))) .omf-table td{padding:8px;}
  :where(body:not(:has(#view-trades.active))) .omf-table:not(.grid) > thead > tr > :first-child, :where(body:not(:has(#view-trades.active))) .omf-table:not(.grid) > tbody > tr > :first-child{position:sticky;left:0;z-index:1;box-shadow:inset -1px 0 0 var(--line);}
  :where(body:not(:has(#view-trades.active))) .omf-table:not(.grid) > thead > tr > :first-child{z-index:2;}
  :where(body:not(:has(#view-trades.active))) .omf-table:not(.grid) > tbody > tr > :first-child{background:var(--surface);}
  :where(body:not(:has(#view-trades.active))) .panel.scroll-x > .omf-table:not(.grid) > thead > tr > :first-child, :where(body:not(:has(#view-trades.active))) .panel.scroll-x > .omf-table:not(.grid) > tbody > tr > :first-child{left:-6px;}
}
/* ---- The ETF Initial Sale: the side panel where it is short (the final browser check of 6 November 2026, B3; README
   "ETF Initial Sale", "The page and the phone"; public/js/etf.js keepFocusClear and keepPanelPlace). Corporate Finance &
   Advisory's rule for its own side panel (its second block, B1), given to the ETF Initial Sale's: a subscription's
   side panel (the drawer root follows the page's .app, whose main is .etf-page) is the query container etf-panel. It
   keeps the platform's fixed head and actions wherever they leave its body room to be read, and only where they would
   not, the whole panel scrolls as one: shorter than 36rem (576 px at the standard text size: a phone held sideways, a
   window less than 576 px tall), or narrower than 30rem and shorter than 50rem (800 px at the standard text size: a
   phone up to 480 px wide in its browser, whose bars take part of the screen, or 800 px tall or less; and, the panel
   being 640 px wide, every screen at a text size above about 133%, as 30rem is 960 px at 200% text and 50rem 1,600
   px). The check found, at 200% text, a Finance confirmer's own waiting subscription left its body 58 px on a 375 x 812
   phone and nothing at all with Safari's bars shown (375 x 667), its tabs cut to 41 px and 1 px of their 134; 123 px
   on a 414 x 896 phone; 206 px in a laptop's 1,366 x 657 window. There head, tabs, body and actions follow one another,
   the actions' sentences with them, so none of them takes the height the body needs, and the tabs never shrink. Its
   close stays in view while it scrolls, on top of what passes under it: Back at the top left on a phone, the × at the
   top right elsewhere. Each control keeps 4rem of room above itself when the panel scrolls to it (never scroll padding
   on the box), and one the keyboard reaches where the close already stands is brought out from under it (keepFocusClear);
   the actions come after the body, in their order. The strip "This record has changed", which then sticks to the top
   of the panel, keeps its words and its button clear of the close: an empty float 2.5rem wide and 3.25rem high at its
   start on a phone (Back's corner) and at its end elsewhere (the ×'s). Elsewhere (the panel at least 36rem tall, and at
   least 50rem tall where it is narrower than 30rem: a laptop's window and the installed app on a phone at the standard
   text size) the panel keeps the platform's fixed head and foot, and its body scrolls. Container rules alone: each rule
   makes the query container or stands inside its query; each selector inside the no-spill guard (decision 11: the Trade
   desk is untouched); tokens only. ---- */
:where(body:not(:has(#view-trades.active))) .app:has(> .etf-page) ~ .drawer-root .drawer{container:etf-panel / size;overflow-y:auto;overscroll-behavior:contain;}
@container etf-panel (max-height: 36rem) or ((max-width: 30rem) and (max-height: 50rem)){
  :where(body:not(:has(#view-trades.active))) .app:has(> .etf-page) ~ .drawer-root .drawer-head, :where(body:not(:has(#view-trades.active))) .app:has(> .etf-page) ~ .drawer-root .drawer-tabs, :where(body:not(:has(#view-trades.active))) .app:has(> .etf-page) ~ .drawer-root .drawer-foot{flex-shrink:0;}
  :where(body:not(:has(#view-trades.active))) .app:has(> .etf-page) ~ .drawer-root .drawer-body{flex:1 0 auto;overflow:visible;position:relative;}
  :where(body:not(:has(#view-trades.active))) .app:has(> .etf-page) ~ .drawer-root .drawer-foot{position:static;}
  :where(body:not(:has(#view-trades.active))) .app:has(> .etf-page) ~ .drawer-root .drawer-head .drawer-close{position:fixed;z-index:4;border-radius:50%;background:var(--surface);box-shadow:var(--shadow-sm);}
  :where(body:not(:has(#view-trades.active))) .app:has(> .etf-page) ~ .drawer-root a[href], :where(body:not(:has(#view-trades.active))) .app:has(> .etf-page) ~ .drawer-root button, :where(body:not(:has(#view-trades.active))) .app:has(> .etf-page) ~ .drawer-root input, :where(body:not(:has(#view-trades.active))) .app:has(> .etf-page) ~ .drawer-root select, :where(body:not(:has(#view-trades.active))) .app:has(> .etf-page) ~ .drawer-root textarea, :where(body:not(:has(#view-trades.active))) .app:has(> .etf-page) ~ .drawer-root summary, :where(body:not(:has(#view-trades.active))) .app:has(> .etf-page) ~ .drawer-root [tabindex]{scroll-margin-top:calc(4rem + env(safe-area-inset-top,0px));}
  :where(body:not(:has(#view-trades.active))) .app:has(> .etf-page) ~ .drawer-root .drawer-changed{display:block;}
  :where(body:not(:has(#view-trades.active))) .app:has(> .etf-page) ~ .drawer-root .drawer-changed > .btn{margin-top:8px;}
}
/* Where the side panel is narrower than 30rem (a phone, or 200% text in a laptop's panel), a History entry's labels wrap
   and its values break where they must, so the panel never scrolls sideways (the ETF Tracker's review, SP2: at 200% text
   on a 375 px phone a prospect's History stood 94 px past the screen; a subscription's History with it). Each change
   stands as its label over its value, each the panel's full line, and both break only between words, a word broken
   only where it is wider than the whole line (an address in a note): the re-check of 9 November 2026, PHONE N2. In two
   columns, overflow-wrap:anywhere broke the labels inside words ("Nam|e", "Applicatio|n", "Statu|s" at 320 to 414 px
   with 200% text), and break-word in two columns widened the panel instead ("Application" beside "Administrator", 20 px
   past a 320 px phone at 200% text; a note holding an address, 246 px). */
@container etf-panel (max-width: 30rem){
  :where(body:not(:has(#view-trades.active))) .app:has(> .etf-page) ~ .drawer-root .history td.f{white-space:normal;width:auto;}
  :where(body:not(:has(#view-trades.active))) .app:has(> .etf-page) ~ .drawer-root .history td{overflow-wrap:break-word;}
  :where(body:not(:has(#view-trades.active))) .app:has(> .etf-page) ~ .drawer-root .history table, :where(body:not(:has(#view-trades.active))) .app:has(> .etf-page) ~ .drawer-root .history tbody, :where(body:not(:has(#view-trades.active))) .app:has(> .etf-page) ~ .drawer-root .history tr, :where(body:not(:has(#view-trades.active))) .app:has(> .etf-page) ~ .drawer-root .history td{display:block;}
  :where(body:not(:has(#view-trades.active))) .app:has(> .etf-page) ~ .drawer-root .history tr{padding:4px 0;border-bottom:1px solid var(--line-soft);}
  :where(body:not(:has(#view-trades.active))) .app:has(> .etf-page) ~ .drawer-root .history td{padding:0;border-bottom:0;}
}
@media (max-width: 600px), (max-height: 500px) and (pointer: coarse){
  @container etf-panel (max-height: 36rem) or ((max-width: 30rem) and (max-height: 50rem)){
    :where(body:not(:has(#view-trades.active))) .app:has(> .etf-page) ~ .drawer-root .drawer-head .drawer-close{top:calc(8px + env(safe-area-inset-top,0px));}
    :where(body:not(:has(#view-trades.active))) .app:has(> .etf-page) ~ .drawer-root .drawer-changed::before{content:"";float:left;width:2.5rem;max-width:100%;height:3.25rem;}
  }
}
@media (min-width: 601px) and (min-height: 501px), (min-width: 601px) and (pointer: fine){
  @container etf-panel (max-height: 36rem) or ((max-width: 30rem) and (max-height: 50rem)){
    :where(body:not(:has(#view-trades.active))) .app:has(> .etf-page) ~ .drawer-root .drawer-changed::before{content:"";float:right;width:2.5rem;max-width:100%;height:3.25rem;}
  }
}
/* ---- The ETF Initial Sale: the page (5 November 2026; the build design, section 6, draft 3's P1 to P11; README "ETF
   Initial Sale"; public/etf.html, public/js/etf.js). The page's own classes (.etf-…), each selector carrying the no-spill
   block's guard :where(body:not(:has(#view-trades.active))) (the standard's rule for a new rule). Tokens only, sizes in
   rem, the platform's media spellings. The five tiles stand five across on a wide screen, two and three below 1,180 px and
   two to a row on a phone (the first, Paid, across the row); the bars by unit stand the whole width under the unit's name
   and figure, carry the unit's target as a mark and wrap their words; the Confirm payment bar stays in sight above the phone's bottom bar; a tick box, a fold's summary, a
   reference that opens a subscription and the worked-out amount are 48 px targets on a phone and a touch screen; every
   table scrolls inside its own panel and is one card per row on a phone (the platform's row-cards). The side panel, the
   lists' filters, the charts and the windows are the platform's own (their rules above). ---- */
:where(body:not(:has(#view-trades.active))) .etf-lines{display:flex;flex-direction:column;gap:8px;margin:0 0 16px;}
:where(body:not(:has(#view-trades.active))) .etf-line{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin:0 0 10px;font-size:0.875rem;line-height:1.5;color:var(--ink);overflow-wrap:break-word;}
:where(body:not(:has(#view-trades.active))) .etf-lines .etf-line{margin:0;}
:where(body:not(:has(#view-trades.active))) .etf-ask{padding:8px 12px;border-left:3px solid var(--warning-line);border-radius:var(--radius-sm);background:var(--warning-bg);color:var(--warning-ink);}
:where(body:not(:has(#view-trades.active))) .etf-filters{margin:0 0 12px;}
:where(body:not(:has(#view-trades.active))) .etf-range{margin:0 0 12px;}
:where(body:not(:has(#view-trades.active))) .etf-story{max-width:52rem;}
:where(body:not(:has(#view-trades.active))) .etf-story p{overflow-wrap:break-word;}
:where(body:not(:has(#view-trades.active))) .etf-story .etf-story-more{font-weight:500;}
:where(body:not(:has(#view-trades.active))) .etf-tiles{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:0 0 16px;}
:where(body:not(:has(#view-trades.active))) .etf-tiles[hidden]{display:none;}
:where(body:not(:has(#view-trades.active))) .etf-tiles > .kpi{min-width:0;}
:where(body:not(:has(#view-trades.active))) .etf-tiles .kpi .num{overflow-wrap:break-word;}
:where(body:not(:has(#view-trades.active))) .etf-chart{min-width:0;}
:where(body:not(:has(#view-trades.active))) .etf-key{margin:0 0 8px;}
:where(body:not(:has(#view-trades.active))) .etf-key-bar{display:inline-block;width:1.125rem;height:0.5625rem;margin-right:6px;border-radius:999px;background:var(--grad-blue);vertical-align:middle;}
:where(body:not(:has(#view-trades.active))) .etf-key-mark{display:inline-block;width:2px;height:0.875rem;margin:0 8px 0 4px;background:var(--ink);vertical-align:middle;}
:where(body:not(:has(#view-trades.active))) .etf-bars{display:flex;flex-direction:column;gap:10px;margin:0 0 10px;padding:0;list-style:none;}
:where(body:not(:has(#view-trades.active))) .etf-bar-row{display:flex;flex-direction:column;gap:4px;min-width:0;font-size:0.8125rem;}
:where(body:not(:has(#view-trades.active))) .etf-bar-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:2px 12px;min-width:0;}
:where(body:not(:has(#view-trades.active))) .etf-bar-label{min-width:0;overflow-wrap:break-word;color:var(--ink-soft);}
:where(body:not(:has(#view-trades.active))) .etf-bar-row.top .etf-bar-label, :where(body:not(:has(#view-trades.active))) .etf-bar-row.top .etf-bar-num{font-weight:600;color:var(--ink);}
:where(body:not(:has(#view-trades.active))) .etf-bar-sub{display:block;font-size:max(11px, 0.75rem);font-weight:400;color:var(--ink-muted);overflow-wrap:break-word;}
:where(body:not(:has(#view-trades.active))) .etf-bar-track{position:relative;display:block;height:0.5625rem;border-radius:999px;background:var(--surface-2);}
:where(body:not(:has(#view-trades.active))) .etf-bar-fill{display:block;height:100%;min-width:2px;border-radius:999px;background:var(--grad-blue);}
:where(body:not(:has(#view-trades.active))) .etf-bar-target{position:absolute;top:-0.25rem;bottom:-0.25rem;width:2px;margin-left:-1px;background:var(--ink);}
:where(body:not(:has(#view-trades.active))) .etf-bar-num{margin-left:auto;min-width:0;text-align:right;font-variant-numeric:tabular-nums;color:var(--ink-soft);overflow-wrap:break-word;}
:where(body:not(:has(#view-trades.active))) .etf-facts{display:grid;gap:0;margin:0 0 10px;}
:where(body:not(:has(#view-trades.active))) .etf-fact{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:2px 12px;padding:8px 0;border-bottom:1px solid var(--line-soft);min-width:0;}
:where(body:not(:has(#view-trades.active))) .etf-fact:last-child{border-bottom:0;}
:where(body:not(:has(#view-trades.active))) .etf-fact dt{font-size:0.8125rem;color:var(--ink-soft);min-width:0;overflow-wrap:break-word;}
:where(body:not(:has(#view-trades.active))) .etf-fact dd{margin:0 0 0 auto;font-size:0.875rem;font-weight:600;font-variant-numeric:tabular-nums;text-align:right;min-width:0;overflow-wrap:break-word;}
:where(body:not(:has(#view-trades.active))) .etf-fact-sub{display:block;font-size:max(11px, 0.75rem);font-weight:400;color:var(--ink-muted);}
:where(body:not(:has(#view-trades.active))) .etf-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 10px;}
:where(body:not(:has(#view-trades.active))) .etf-acts{display:flex;flex-wrap:wrap;gap:8px;}
:where(body:not(:has(#view-trades.active))) .etf-acts-under{margin-top:6px;}
:where(body:not(:has(#view-trades.active))) .etf-sub{display:block;margin-top:2px;font-size:max(11px, 0.75rem);font-weight:400;color:var(--ink-muted);overflow-wrap:break-word;}
:where(body:not(:has(#view-trades.active))) .etf-ref-cell{min-width:9rem;}
:where(body:not(:has(#view-trades.active))) .etf-me > td{background:var(--surface-selected);}
:where(body:not(:has(#view-trades.active))) .etf-upload{margin:0 0 16px;}
:where(body:not(:has(#view-trades.active))) .etf-upload[hidden]{display:none;}
:where(body:not(:has(#view-trades.active))) .etf-problems{margin:0;padding-left:1.125rem;font-size:0.8125rem;color:var(--negative-ink);}
:where(body:not(:has(#view-trades.active))) .etf-problem{display:block;font-size:0.8125rem;color:var(--negative-ink);overflow-wrap:break-word;}
:where(body:not(:has(#view-trades.active))) .etf-refused > td{background:var(--negative-bg);}
:where(body:not(:has(#view-trades.active))) .etf-warn-line{margin:4px 0 0;font-size:0.8125rem;color:var(--warning-ink);}
:where(body:not(:has(#view-trades.active))) .etf-tick{display:inline-flex;align-items:center;gap:8px;min-height:2rem;min-width:2rem;cursor:pointer;font-size:0.875rem;line-height:1.4;}
:where(body:not(:has(#view-trades.active))) .etf-tick input{flex:none;margin:0;width:1.125rem;height:1.125rem;}
:where(body:not(:has(#view-trades.active))) .etf-mine{display:inline-block;font-size:0.8125rem;color:var(--ink-soft);overflow-wrap:break-word;}
:where(body:not(:has(#view-trades.active))) .etf-fold{margin:0;}
/* The fold's line keeps its own display (list-item), so its open and closed arrow shows, as the platform's other folds
   (the review's browser F3: a flex line lost the arrow and read as a heading). */
:where(body:not(:has(#view-trades.active))) .etf-fold > summary{box-sizing:border-box;min-height:2.5rem;padding:8px 0;cursor:pointer;font-size:0.9375rem;font-weight:700;color:var(--ink);overflow-wrap:break-word;}
:where(body:not(:has(#view-trades.active))) .etf-fold[open] > summary{margin-bottom:8px;}
:where(body:not(:has(#view-trades.active))) .etf-undone > td{color:var(--ink-muted);}
:where(body:not(:has(#view-trades.active))) .etf-inline-form{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px 16px;}
:where(body:not(:has(#view-trades.active))) .etf-inline-form .field{flex:0 1 24rem;min-width:0;margin:0;}
:where(body:not(:has(#view-trades.active))) .etf-inline-form .form-actions{margin:0;}
:where(body:not(:has(#view-trades.active))) .etf-load-summary{margin:12px 0;font-size:0.875rem;line-height:1.5;}
:where(body:not(:has(#view-trades.active))) .etf-load-summary p{margin:0 0 4px;overflow-wrap:break-word;}
:where(body:not(:has(#view-trades.active))) .etf-how p{margin:0 0 14px;font-size:0.875rem;line-height:1.6;max-width:48rem;overflow-wrap:break-word;}
:where(body:not(:has(#view-trades.active))) .etf-how h2{margin-top:6px;}
:where(body:not(:has(#view-trades.active))) .etf-seller-line{margin:0 0 10px;font-size:0.875rem;font-weight:600;color:var(--ink-soft);overflow-wrap:break-word;}
:where(body:not(:has(#view-trades.active))) .etf-from-line{margin:0 0 12px;padding:8px 12px;border-left:3px solid var(--line-strong);border-radius:var(--radius-sm);background:var(--surface-2);font-size:0.875rem;line-height:1.5;overflow-wrap:break-word;}
:where(body:not(:has(#view-trades.active))) .etf-from-line[hidden]{display:none;}
:where(body:not(:has(#view-trades.active))) .etf-group{margin:0 0 14px;padding:0;border:0;min-width:0;}
:where(body:not(:has(#view-trades.active))) .etf-group[hidden]{display:none;}
:where(body:not(:has(#view-trades.active))) .etf-group > legend{margin:0 0 8px;padding:0;font-size:0.9375rem;font-weight:700;color:var(--ink);}
:where(body:not(:has(#view-trades.active))) .etf-group .etf-tick{display:flex;margin:0 0 4px;}
:where(body:not(:has(#view-trades.active))) .etf-amount{display:flex;align-items:center;min-height:2.5rem;padding:0 12px;border:1px dashed var(--line-strong);border-radius:var(--radius-sm);background:var(--surface-2);font-size:0.875rem;font-weight:600;font-variant-numeric:tabular-nums;color:var(--ink);overflow-wrap:anywhere;}
:where(body:not(:has(#view-trades.active))) .etf-green{margin:0 0 12px;padding:8px 12px;border-radius:var(--radius-sm);background:var(--positive-bg);color:var(--positive-ink);font-size:0.875rem;line-height:1.5;}
:where(body:not(:has(#view-trades.active))) .etf-green:empty{display:none;}
:where(body:not(:has(#view-trades.active))) .etf-warn{margin:0 0 12px;padding:8px 12px;border-radius:var(--radius-sm);background:var(--warning-bg);color:var(--warning-ink);font-size:0.875rem;line-height:1.5;overflow-wrap:break-word;}
:where(body:not(:has(#view-trades.active))) .etf-warn[hidden]{display:none;}
:where(body:not(:has(#view-trades.active))) .etf-warn.etf-warn-refused{background:var(--negative-bg);color:var(--negative-ink);}
:where(body:not(:has(#view-trades.active))) .etf-comments{margin:0 0 14px;padding:0;list-style:none;}
:where(body:not(:has(#view-trades.active))) .etf-comment{padding:8px 0;border-bottom:1px solid var(--line-soft);font-size:0.875rem;}
:where(body:not(:has(#view-trades.active))) .etf-comment p{margin:4px 0 0;white-space:pre-wrap;overflow-wrap:break-word;}
/* A History entry or a comment written behind a wall the subscription has left: one muted line (DS-1, K9). */
:where(body:not(:has(#view-trades.active))) .etf-behind p{margin:0;font-style:italic;overflow-wrap:break-word;}
/* The person's own two figures on a phone (F7): hidden wider than a phone, where Your selling stands beside Top sellers. */
:where(body:not(:has(#view-trades.active))) .etf-yours-tiles{display:none;}
/* "Sort by" above a table drawn as cards on a phone (js/etf.js sortBy; the final browser check of 6 November 2026, M5): the
   table's own drop-down, "Sort by: The list's own order", in a row of its own that wraps, never wider than its panel, its
   words wrapping inside its button (the no-spill block's .fl-button rules); a 48 px target on a phone (the platform's). */
:where(body:not(:has(#view-trades.active))) .etf-sortby{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin:0 0 8px;max-width:100%;min-width:0;}
:where(body:not(:has(#view-trades.active))) .etf-sortby > .fl-menu, :where(body:not(:has(#view-trades.active))) .etf-sortby .fl-menu > .fl-button{max-width:100%;min-width:0;}
:where(body:not(:has(#view-trades.active))) .etf-sortby .fl-button{text-align:left;}
/* The charts' table views wrap their headings and words (as Market Intelligence's), so a half-width panel holds them;
   a figure stays whole. */
:where(body:not(:has(#view-trades.active))) .etf-page .chart-table th, :where(body:not(:has(#view-trades.active))) .etf-page .chart-table td:not(.n):not(.num), :where(body:not(:has(#view-trades.active))) .etf-page .chart-table td .etf-sub{white-space:normal;overflow-wrap:break-word;}
@media (max-width: 1180px){
  :where(body:not(:has(#view-trades.active))) .etf-tiles{grid-template-columns:repeat(6,minmax(0,1fr));}
  :where(body:not(:has(#view-trades.active))) .etf-tiles > .kpi{grid-column:span 2;}
  :where(body:not(:has(#view-trades.active))) .etf-tiles > .kpi:nth-child(-n+2){grid-column:span 3;}
  /* A narrow laptop or a tablet: the Dashboard's panels stand one under the other, so their tables and bars keep
     their columns (two side by side were under 300 px each at 1,024 px with the side menu open). */
  :where(body:not(:has(#view-trades.active))) .etf-page .ex-grid{grid-template-columns:minmax(0,1fr);}
}
@media (max-width: 600px), (max-height: 500px) and (pointer: coarse){
  :where(body:not(:has(#view-trades.active))) .etf-tiles{--etf-tile-min:min(100%, max(8rem, calc(50% - 5px)));grid-template-columns:repeat(auto-fit,minmax(var(--etf-tile-min),1fr));gap:10px;}
  :where(body:not(:has(#view-trades.active))) .etf-tiles > .kpi:nth-child(n){grid-column:auto;}
  :where(body:not(:has(#view-trades.active))) .etf-tiles > .kpi:first-child{grid-column:1/-1;}
  :where(body:not(:has(#view-trades.active))) .etf-tiles .kpi{padding:12px 14px;}
  :where(body:not(:has(#view-trades.active))) .etf-tiles .kpi .num{font-size:1.125rem;}
  /* The person's own two figures, two to a row while two fit, as the five tiles above (one to a row with large text: at
     320 and 375 px with 200% text the word "subscriptions" was cut at the tile's edge, the proof of payment's check). */
  :where(body:not(:has(#view-trades.active))) .etf-yours-tiles{display:grid;--etf-tile-min:min(100%, max(8rem, calc(50% - 5px)));grid-template-columns:repeat(auto-fit,minmax(var(--etf-tile-min),1fr));gap:10px;margin:0 0 16px;}
  :where(body:not(:has(#view-trades.active))) .etf-yours-tiles > .kpi{min-width:0;padding:12px 14px;}
  :where(body:not(:has(#view-trades.active))) .etf-yours-tiles .kpi .num{font-size:1.125rem;overflow-wrap:break-word;}
  :where(body:not(:has(#view-trades.active))) .etf-inline-form .form-actions .btn{flex:1 1 auto;}
}
@media (max-width: 600px), (pointer: coarse){
  :where(body:not(:has(#view-trades.active))) .etf-tick{min-height:48px;min-width:48px;}
  :where(body:not(:has(#view-trades.active))) .etf-fold > summary{min-height:48px;padding:12px 0;}
  :where(body:not(:has(#view-trades.active))) .etf-open{min-height:48px;}
  :where(body:not(:has(#view-trades.active))) .etf-amount{min-height:48px;}
}
/* Wider than a phone (a laptop, the side menu open), the page's tables keep their columns closer: the headings wrap at
   their spaces and the cells take a little less room, so the working columns are in sight at 1,280 px (the review's
   browser F2). Where a table is still wider than its panel (at 200% text, or a narrow window), its first column holds
   its place on its own background while the rest scrolls under it, as the grid's lists and Order Management's tables
   do (Payments to confirm's tick boxes and reference, held the same way, went with it on 10 November 2026). */
@media (min-width: 601px) and (min-height: 501px), (min-width: 601px) and (pointer: fine){
  :where(body:not(:has(#view-trades.active))) .etf-page .ledger th, :where(body:not(:has(#view-trades.active))) .etf-page .ledger td{padding:8px;}
  :where(body:not(:has(#view-trades.active))) .etf-page .ledger th{white-space:normal;}
  :where(body:not(:has(#view-trades.active))) .etf-page .scroll-x > .ledger > thead > tr > :first-child, :where(body:not(:has(#view-trades.active))) .etf-page .scroll-x > .ledger > tbody > tr > :first-child{position:sticky;left:0;z-index:1;box-shadow:inset -1px 0 0 var(--line);}
  :where(body:not(:has(#view-trades.active))) .etf-page .scroll-x > .ledger > thead > tr > :first-child{z-index:2;}
  :where(body:not(:has(#view-trades.active))) .etf-page .scroll-x > .ledger > tbody > tr > :first-child{background:var(--surface);}
  :where(body:not(:has(#view-trades.active))) .etf-page .panel.scroll-x > .ledger > thead > tr > :first-child, :where(body:not(:has(#view-trades.active))) .etf-page .panel.scroll-x > .ledger > tbody > tr > :first-child{left:-6px;}
  :where(body:not(:has(#view-trades.active))) .etf-page .ledger tbody tr:hover > :first-child{background:var(--surface-hover);}
  :where(body:not(:has(#view-trades.active))) .etf-page .ledger tbody tr.etf-me > :first-child{background:var(--surface-selected);}
  :where(body:not(:has(#view-trades.active))) .etf-page .ledger tbody tr.etf-refused > :first-child{background:var(--negative-bg);}
}
/* The ETF Tracker (9 November 2026; its design 4.2 to 4.9; public/js/etf.js, the Daily tracker and Prospects). The five
   status chips repeat the words they always carry, on the platform's token pairs (green achieved, blue on track, red
   behind and not reached, grey no target; test/etf-tracker-page.test.js resolves each to 4.5:1 or more in both themes).
   The Daily tracker's tables scroll inside their own boxes: Each person and its Day by day grid are deliberate scroll
   boxes with Person held; the grid scrolls both ways in its box (at most 70% of the window's height), its heading row
   and Person column held, the corner on top; the foot rows of the tables hold their first cell too. The As at row and
   column are tinted, their words carrying it. On a phone As at is a full-width button, the grid and its switch are not
   drawn, and every table is one card per row. Fill in the first targets and units stands in its own box. Wider than a
   phone, the figures of these tables stand to the right of their columns, as in a spreadsheet, and a name that wraps
   keeps to the left of its cell (on a phone's card, to the right with the card's other values, and 48 px wide however
   short); a person's days in the side panel wrap their headings, so the five columns stand in it. */
:where(body:not(:has(#view-trades.active))) .chip.etf-st-achieved{background:var(--st-green);color:var(--st-green-ink);}
:where(body:not(:has(#view-trades.active))) .chip.etf-st-on_track{background:var(--st-blue);color:var(--st-blue-ink);}
:where(body:not(:has(#view-trades.active))) .chip.etf-st-behind, :where(body:not(:has(#view-trades.active))) .chip.etf-st-not_reached{background:var(--st-red);color:var(--st-red-ink);}
:where(body:not(:has(#view-trades.active))) .chip.etf-st-no_target{background:var(--st-grey);color:var(--st-grey-ink);}
:where(body:not(:has(#view-trades.active))) .etf-tk-status{margin:0 0 12px;}
:where(body:not(:has(#view-trades.active))) .etf-tk-status .etf-tk-label{font-weight:600;}
:where(body:not(:has(#view-trades.active))) .etf-tk-notes .etf-line{margin:0 0 8px;color:var(--ink-soft);}
:where(body:not(:has(#view-trades.active))) .etf-tk-tools{justify-content:flex-end;margin:0 0 8px;}
:where(body:not(:has(#view-trades.active))) .etf-tk-tools .off-why, :where(body:not(:has(#view-trades.active))) .etf-tk-csv .off-why{flex-basis:100%;margin:0;text-align:right;overflow-wrap:break-word;}
:where(body:not(:has(#view-trades.active))) .etf-tk-csv{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:4px 8px;max-width:100%;min-width:0;}
:where(body:not(:has(#view-trades.active))) .etf-tk-pct{display:flex;flex-direction:column;align-items:flex-end;gap:4px;min-width:3rem;}
:where(body:not(:has(#view-trades.active))) .etf-tk-pct .etf-bar-track{width:100%;min-width:3rem;}
:where(body:not(:has(#view-trades.active))) .etf-page .ledger tr.etf-asat > td, :where(body:not(:has(#view-trades.active))) .etf-page .ledger th.etf-asat, :where(body:not(:has(#view-trades.active))) .etf-page .ledger td.etf-asat{background:var(--surface-selected);}
:where(body:not(:has(#view-trades.active))) .etf-tk-figures > tfoot > tr > td, :where(body:not(:has(#view-trades.active))) .etf-tk-units > tfoot > tr > td, :where(body:not(:has(#view-trades.active))) .etf-tk-grid > tfoot > tr > td{font-weight:600;background:var(--surface-2);}
:where(body:not(:has(#view-trades.active))) .etf-tk-figures > tfoot > tr:first-child > td, :where(body:not(:has(#view-trades.active))) .etf-tk-units > tfoot > tr:first-child > td, :where(body:not(:has(#view-trades.active))) .etf-tk-grid > tfoot > tr:first-child > td{border-top:2px solid var(--line);}
:where(body:not(:has(#view-trades.active))) .etf-grid-box > .scroll-x{max-height:70vh;overflow:auto;}
:where(body:not(:has(#view-trades.active))) .etf-grid-box .etf-tk-grid > thead > tr > th{position:sticky;top:0;z-index:2;}
:where(body:not(:has(#view-trades.active))) .etf-grid-box .etf-tk-grid > thead > tr > th:first-child{left:0;z-index:3;}
:where(body:not(:has(#view-trades.active))) .etf-grid-box .etf-tk-grid > tbody > tr > :first-child, :where(body:not(:has(#view-trades.active))) .etf-grid-box .etf-tk-grid > tfoot > tr > :first-child{position:sticky;left:0;z-index:1;box-shadow:inset -1px 0 0 var(--line);}
:where(body:not(:has(#view-trades.active))) .etf-grid-box .etf-tk-grid > tbody > tr > :first-child{background:var(--surface);}
:where(body:not(:has(#view-trades.active))) .etf-grid-box .etf-tk-grid td.num, :where(body:not(:has(#view-trades.active))) .etf-grid-box .etf-tk-grid th.num{min-width:5.5rem;}
:where(body:not(:has(#view-trades.active))) .etf-more-line{margin:10px 0 0;}
:where(body:not(:has(#view-trades.active))) .etf-tk-show{align-items:center;}
:where(body:not(:has(#view-trades.active))) .etf-fill{margin:16px 0 0;padding:12px 14px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface-2);min-width:0;}
:where(body:not(:has(#view-trades.active))) .etf-fill > .ex-h2{margin:0 0 6px;}
:where(body:not(:has(#view-trades.active))) .etf-fill-take{margin:4px 0 8px;}
:where(body:not(:has(#view-trades.active))) .etf-fill-take .etf-tick{display:flex;margin:0 0 4px;}
:where(body:not(:has(#view-trades.active))) .etf-fill-list{margin:0 0 4px 1.5rem;padding:0;list-style:none;}
@media (max-width: 600px), (max-height: 500px) and (pointer: coarse){
  :where(body:not(:has(#view-trades.active))) .etf-tk-asat .fl-menu, :where(body:not(:has(#view-trades.active))) .etf-tk-asat .fl-button{width:100%;max-width:100%;}
  :where(body:not(:has(#view-trades.active))) .etf-tk-asat .fl-button{justify-content:space-between;text-align:left;}
  :where(body:not(:has(#view-trades.active))) .etf-tk-tools{justify-content:flex-start;}
  :where(body:not(:has(#view-trades.active))) .etf-tk-tools .off-why, :where(body:not(:has(#view-trades.active))) .etf-tk-csv .off-why{text-align:left;}
  :where(body:not(:has(#view-trades.active))) .etf-tk-csv{justify-content:flex-start;}
  :where(body:not(:has(#view-trades.active))) .etf-tk-pct{align-items:flex-end;min-width:0;}
  :where(body:not(:has(#view-trades.active))) .etf-fill-list{margin-left:0;}
  :where(body:not(:has(#view-trades.active))) .etf-tk-units button.linkish.etf-open, :where(body:not(:has(#view-trades.active))) .etf-tk-figures button.linkish.etf-open, :where(body:not(:has(#view-trades.active))) .etf-tk-grid button.linkish.etf-open, :where(body:not(:has(#view-trades.active))) .etf-prospects button.linkish.etf-open{text-align:right;}
}
@media (max-width: 600px), (pointer: coarse){
  :where(body:not(:has(#view-trades.active))) .etf-more-line .btn{width:100%;}
  :where(body:not(:has(#view-trades.active))) a.etf-open{display:inline-flex;align-items:center;min-height:48px;}
  :where(body:not(:has(#view-trades.active))) .etf-tk-units button.linkish.etf-open, :where(body:not(:has(#view-trades.active))) .etf-tk-figures button.linkish.etf-open, :where(body:not(:has(#view-trades.active))) .etf-tk-grid button.linkish.etf-open, :where(body:not(:has(#view-trades.active))) .etf-prospects button.linkish.etf-open{min-width:48px;}
}
@media (min-width: 601px) and (min-height: 501px), (min-width: 601px) and (pointer: fine){
  :where(body:not(:has(#view-trades.active))) .etf-page .scroll-x > .etf-tk-figures > tfoot > tr > :first-child, :where(body:not(:has(#view-trades.active))) .etf-page .scroll-x > .etf-tk-units > tfoot > tr > :first-child{position:sticky;left:0;z-index:1;box-shadow:inset -1px 0 0 var(--line);background:var(--surface-2);}
  :where(body:not(:has(#view-trades.active))) .etf-page .etf-grid-box .scroll-x > .etf-tk-grid > thead > tr > :first-child{z-index:3;}
  :where(body:not(:has(#view-trades.active))) .etf-tk-units > * > tr > .num, :where(body:not(:has(#view-trades.active))) .etf-tk-figures > * > tr > .num, :where(body:not(:has(#view-trades.active))) .etf-tk-days > * > tr > .num, :where(body:not(:has(#view-trades.active))) .etf-tk-grid > * > tr > .num, :where(body:not(:has(#view-trades.active))) .etf-prospects > * > tr > .num{text-align:right;font-variant-numeric:tabular-nums;}
  :where(body:not(:has(#view-trades.active))) .etf-tk-days > thead > tr > th{white-space:normal;}
  :where(body:not(:has(#view-trades.active))) .etf-tk-units button.linkish.etf-open, :where(body:not(:has(#view-trades.active))) .etf-tk-figures button.linkish.etf-open, :where(body:not(:has(#view-trades.active))) .etf-tk-grid button.linkish.etf-open, :where(body:not(:has(#view-trades.active))) .etf-prospects button.linkish.etf-open{text-align:left;}
}
/* The ETF Tracker's review of 9 November 2026, the page and the CSS (FIX-B). A heading or control the page moves the
   focus to, and any the keyboard reaches on the page, keeps the platform's top bar (and the viewing and update banners
   above it, --bar-h) and 0.75rem clear above itself when the window scrolls to it, so the bar never covers the focus
   (SP1, WCAG 2.2 2.4.11). Each person and Performance by unit keep their cells closer (6 px at each side), the % bar
   is 3rem at its narrowest, and a status tag beside a name wraps with it (SP5, SP8): with the side menu open Each
   person stands whole at 1,280 px while its feet are below some billions (the check's made-up figures), Performance
   by unit at 1,280 px, and the Load's preview, whose emails break where they must, at 768 px. Where a table is still
   wider than its box (Performance by unit at 1,024 px, both on a tablet, at 200% text, or with larger figures) the box
   is a named region the keyboard scrolls (js/etf.js nameBoxes), its first column held at the left and, on the
   tracker, Status held at the right, so the status is always in sight (SP5, SP6; js/etf.js keepClearOfHeld brings a
   focused control out from under either). On a phone the tiles of a row are at least 8rem each, two to a row at the
   default size, so a word stays whole at 200% text ("Outstanding", SP8; the standard's rule). The % bar's track shows
   on the feet's grey, the marked row's held first cell is tinted as the row is, and so is a person's marked day in the
   side panel (SP12). The Fill list's and a close match's words, an account's email and a form's buttons in the side
   panel wrap (SP8, SP13); a person's chart in the side panel draws its axis' figures whole (SP9). How's list of the
   differences from his sheet (CD3). */
:where(body:not(:has(#view-trades.active))) .etf-page a[href], :where(body:not(:has(#view-trades.active))) .etf-page button, :where(body:not(:has(#view-trades.active))) .etf-page input, :where(body:not(:has(#view-trades.active))) .etf-page select, :where(body:not(:has(#view-trades.active))) .etf-page textarea, :where(body:not(:has(#view-trades.active))) .etf-page summary, :where(body:not(:has(#view-trades.active))) .etf-page [tabindex]{scroll-margin-top:calc(var(--bar-h, 56px) + 0.75rem);}
:where(body:not(:has(#view-trades.active))) .etf-page .ledger .tag{white-space:normal;}
:where(body:not(:has(#view-trades.active))) .etf-tiles .kpi .lbl, :where(body:not(:has(#view-trades.active))) .etf-tiles .kpi .sub{overflow-wrap:break-word;}
:where(body:not(:has(#view-trades.active))) .etf-tk-figures > tfoot .etf-bar-track, :where(body:not(:has(#view-trades.active))) .etf-tk-units > tfoot .etf-bar-track{background:var(--line);}
:where(body:not(:has(#view-trades.active))) .app:has(> .etf-page) ~ .drawer-root .etf-tk-days tr.etf-asat > td{background:var(--surface-selected);}
:where(body:not(:has(#view-trades.active))) .app:has(> .etf-page) ~ .drawer-root .etf-chart svg.chart-svg{overflow:visible;}
:where(body:not(:has(#view-trades.active))) .app:has(> .etf-page) ~ .drawer-root .form-actions{flex-wrap:wrap;}
:where(body:not(:has(#view-trades.active))) .etf-email{overflow-wrap:anywhere;}
:where(body:not(:has(#view-trades.active))) .etf-page #etf-l-table .etf-tick > span{min-width:0;overflow-wrap:anywhere;}
:where(body:not(:has(#view-trades.active))) .etf-how .etf-how-list{margin:0 0 14px;padding-left:1.25rem;font-size:0.875rem;line-height:1.6;max-width:48rem;overflow-wrap:break-word;}
:where(body:not(:has(#view-trades.active))) .etf-how .etf-how-list li{margin:0 0 6px;}
@media (max-width: 600px), (max-height: 500px) and (pointer: coarse){
  :where(body:not(:has(#view-trades.active))) .app:has(> .etf-page) ~ .drawer-root .form-actions .btn{flex:1 1 auto;}
}
@media (min-width: 601px) and (min-height: 501px), (min-width: 601px) and (pointer: fine){
  :where(body:not(:has(#view-trades.active))) .etf-page .etf-tk-figures th, :where(body:not(:has(#view-trades.active))) .etf-page .etf-tk-figures td, :where(body:not(:has(#view-trades.active))) .etf-page .etf-tk-units th, :where(body:not(:has(#view-trades.active))) .etf-page .etf-tk-units td, :where(body:not(:has(#view-trades.active))) .etf-page #etf-l-table th, :where(body:not(:has(#view-trades.active))) .etf-page #etf-l-table td{padding-left:6px;padding-right:6px;}
  :where(body:not(:has(#view-trades.active))) .etf-page .scroll-x > .etf-tk-figures > * > tr:not(.empty-state) > :last-child, :where(body:not(:has(#view-trades.active))) .etf-page .scroll-x > .etf-tk-units > * > tr:not(.empty-state) > :last-child{position:sticky;right:0;z-index:1;box-shadow:inset 1px 0 0 var(--line);}
  :where(body:not(:has(#view-trades.active))) .etf-page .scroll-x > .etf-tk-figures > thead > tr > :last-child, :where(body:not(:has(#view-trades.active))) .etf-page .scroll-x > .etf-tk-units > thead > tr > :last-child{z-index:2;}
  :where(body:not(:has(#view-trades.active))) .etf-page .scroll-x > .etf-tk-figures > tbody > tr > :last-child, :where(body:not(:has(#view-trades.active))) .etf-page .scroll-x > .etf-tk-units > tbody > tr > :last-child{background:var(--surface);}
  :where(body:not(:has(#view-trades.active))) .etf-page .scroll-x > .etf-tk-figures > tbody > tr:hover > :last-child, :where(body:not(:has(#view-trades.active))) .etf-page .scroll-x > .etf-tk-units > tbody > tr:hover > :last-child{background:var(--surface-hover);}
  :where(body:not(:has(#view-trades.active))) .etf-page .scroll-x > .etf-tk-figures > tbody > tr.etf-me > :last-child, :where(body:not(:has(#view-trades.active))) .etf-page .scroll-x > .ledger > tbody > tr.etf-asat > :first-child{background:var(--surface-selected);}
}
/* The ETF Tracker's re-check of 9 November 2026, the page and the CSS (FIX2-B; public/js/etf.js).
   - The Fill panel (People and targets, the administrator's alone): its two lists of names and its tick list keep each
     "TZS x" whole, breaking only between words (PHONE N3 and the re-check's partly mended Fill item; CONF N5): their
     words wrap at their spaces (overflow-wrap:break-word, never anywhere, which broke a figure in the hundreds of
     millions before its last digit at 320 px with 200% text), a tick's words never narrower than the widest of them,
     the lists in the panel's own text size (its lines and ticks are 0.875rem), and on a phone the panel stands unboxed,
     its lists with no indent and a tick's lines after the first under its box, so a figure in the billions, with its
     cents, has the panel's full line (one stood 9 px past its line at 320 px with 200% text).
   - A form's row of buttons on the page wraps (PHONE N8): a button switched off with its words beside it (during a
     release Read the workbook, Replace the list and Fill in, js/etf.js releaseButtons) keeps its words beside it where
     the two fit and under it where they do not, so nothing stands past the row (at 320 px with 200% text the buttons
     stood 42 px past their row, 340 px tall, the words in a 105 px column).
   - A search box's hint never cut (PHONE N6): where "Search people", "Search prospects" or "Search subscriptions" is
     wider than its box (a 320 px phone at 200% text), its words stand on the line above the box, wrapping, and the
     box's own hint is drawn clear (js/etf.js fitHints; Market Intelligence's rule for its search boxes, .mi-hint). */
:where(body:not(:has(#view-trades.active))) .etf-fill-take .etf-tick > span, :where(body:not(:has(#view-trades.active))) .etf-fill-list li{overflow-wrap:break-word;}
:where(body:not(:has(#view-trades.active))) .etf-fill-take{font-size:0.875rem;line-height:1.5;}
:where(body:not(:has(#view-trades.active))) .etf-page .form-actions{flex-wrap:wrap;}
:where(body:not(:has(#view-trades.active))) .etf-page .form-actions > .off-why{margin:0;align-self:center;min-width:0;overflow-wrap:break-word;}
:where(body:not(:has(#view-trades.active))) .etf-hint{display:block;margin:0 0 4px;font-size:max(11px, 0.75rem);color:var(--ink-muted);overflow-wrap:break-word;}
:where(body:not(:has(#view-trades.active))) .etf-hint[hidden]{display:none;}
:where(body:not(:has(#view-trades.active))) .etf-page input.etf-hint-out::placeholder{color:transparent;}
@media (max-width: 600px), (max-height: 500px) and (pointer: coarse){
  :where(body:not(:has(#view-trades.active))) .etf-fill{padding:12px 0 0;border-width:1px 0 0;border-radius:0;background:transparent;}
  :where(body:not(:has(#view-trades.active))) .etf-fill-take .etf-tick{display:block;}
  :where(body:not(:has(#view-trades.active))) .etf-fill-take .etf-tick input{display:inline-block;margin:0 8px 0 0;vertical-align:middle;}
}
/* The ETF proof of payment (10 November 2026: the administrator's answers of that day; its design, 5.5, 5.10 and 5.11;
   public/js/etf.js, the Proof of payment tab and the picture window). How a subscription was paid stands in muted words
   under its status (.etf-paid-how, with .etf-sub's rule); the line above the Subscriptions list (an old link to Payments
   to confirm, the administrator's shared proofs, with Show all) takes no room while it is empty, and like the tab's line
   of the file chosen it stays a live region that is read out once it holds words (never display:none). The tab: a payment
   Finance confirmed in a box of its own; the form in its box, its file's line and the offer of a smaller copy breaking
   anywhere (a phone's file name can be one long word); the proofs one under the other, each a row that wraps: its words
   at the left, taking what room there is, its acts after them, and under them where the two do not fit (a narrow panel,
   200% text); references, reasons and file names break anywhere; a warning in the theme's warning pair. Every control
   is the platform's .btn (48 px on a phone), a PDF's Download an a.btn, never a bare link. The picture window: the
   picture fitted to the window's width; at its own size it scrolls inside its own box (at most 70% of the window's
   height), never the page. Tokens only; nothing kept on one line. */
:where(body:not(:has(#view-trades.active))) .etf-said .etf-line{margin:0 0 10px;}
:where(body:not(:has(#view-trades.active))) .etf-paid-how{overflow-wrap:break-word;}
:where(body:not(:has(#view-trades.active))) .etf-proof-tab{min-width:0;font-size:0.875rem;line-height:1.5;}
:where(body:not(:has(#view-trades.active))) .etf-proof-finance{margin:0 0 14px;padding:8px 12px;border-left:3px solid var(--line-strong);border-radius:var(--radius-sm);background:var(--surface-2);overflow-wrap:break-word;}
:where(body:not(:has(#view-trades.active))) .etf-proof-form{margin:0 0 16px;padding:12px 14px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);min-width:0;}
:where(body:not(:has(#view-trades.active))) .etf-proof-h{margin:0 0 4px;font-size:0.9375rem;font-weight:700;color:var(--ink);overflow-wrap:break-word;}
:where(body:not(:has(#view-trades.active))) .etf-proof-lead{margin:0 0 12px;color:var(--ink-soft);overflow-wrap:break-word;}
:where(body:not(:has(#view-trades.active))) .etf-proof-label{display:block;margin:0 0 6px;font-size:0.8125rem;font-weight:600;color:var(--ink-soft);}
:where(body:not(:has(#view-trades.active))) .etf-proof-chosen{margin:6px 0 0;font-weight:600;overflow-wrap:anywhere;}
:where(body:not(:has(#view-trades.active))) .etf-proof-chosen:empty{margin:0;}
:where(body:not(:has(#view-trades.active))) .etf-proof-offer{margin:8px 0 0;padding:8px 12px;border-radius:var(--radius-sm);background:var(--warning-bg);color:var(--warning-ink);min-width:0;}
:where(body:not(:has(#view-trades.active))) .etf-proof-offer:empty{display:none;}
/* The proof of payment in the New subscription form (his request of 12 November 2026): Choose the file and Remove the
   file side by side while they fit, wrapping on a phone; a refusal under Choose the file on a line of its own, never
   beside it, a long file name broken anywhere rather than the panel scrolling sideways; a large picture's next step in
   the offer's colours, its status line kept in the page while empty (taking no room) so a screen reader hears it. */
:where(body:not(:has(#view-trades.active))) .etf-f-proof-acts{display:flex;flex-wrap:wrap;gap:8px;}
:where(body:not(:has(#view-trades.active))) .etf-f-proof-acts > .err[data-field-err]{flex:1 0 100%;order:1;min-width:0;overflow-wrap:anywhere;}
:where(body:not(:has(#view-trades.active))) .etf-proof-file-field .err[data-field-err]{min-width:0;overflow-wrap:anywhere;}
:where(body:not(:has(#view-trades.active))) .etf-f-proof-later{margin:8px 0 0;padding:8px 12px;border-radius:var(--radius-sm);background:var(--warning-bg);color:var(--warning-ink);min-width:0;overflow-wrap:anywhere;}
:where(body:not(:has(#view-trades.active))) .etf-f-proof-later:empty{margin:0;padding:0;}
:where(body:not(:has(#view-trades.active))) .etf-proof-offer-words{margin:0 0 8px;overflow-wrap:anywhere;}
:where(body:not(:has(#view-trades.active))) .etf-proof-off{margin:0 0 14px;}
:where(body:not(:has(#view-trades.active))) .etf-proof-off .off-why{overflow-wrap:break-word;}
:where(body:not(:has(#view-trades.active))) .etf-proof-none{margin:0 0 12px;color:var(--ink-soft);}
:where(body:not(:has(#view-trades.active))) .etf-proofs{margin:0 0 12px;padding:0;list-style:none;}
:where(body:not(:has(#view-trades.active))) .etf-proof{display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px 12px;padding:10px 0;border-bottom:1px solid var(--line-soft);min-width:0;}
:where(body:not(:has(#view-trades.active))) .etf-proof:last-child{border-bottom:0;}
:where(body:not(:has(#view-trades.active))) .etf-proof-main{flex:1 1 16rem;min-width:0;}
:where(body:not(:has(#view-trades.active))) .etf-proof-main p{margin:0 0 2px;overflow-wrap:anywhere;}
:where(body:not(:has(#view-trades.active))) .etf-proof-head .tag{white-space:normal;max-width:100%;margin-right:4px;}
:where(body:not(:has(#view-trades.active))) .etf-proof-end{color:var(--ink-soft);}
:where(body:not(:has(#view-trades.active))) .etf-proof-file{overflow-wrap:anywhere;color:var(--ink-soft);}
:where(body:not(:has(#view-trades.active))) .etf-proof-warns{margin:6px 0 0;}
:where(body:not(:has(#view-trades.active))) .etf-proof-warn{margin:0 0 4px;padding:6px 10px;border-radius:var(--radius-sm);background:var(--warning-bg);color:var(--warning-ink);overflow-wrap:break-word;}
:where(body:not(:has(#view-trades.active))) .etf-proof-acts{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;min-width:0;}
:where(body:not(:has(#view-trades.active))) .etf-proof-until{font-size:max(11px, 0.75rem);color:var(--ink-muted);}
:where(body:not(:has(#view-trades.active))) .etf-proof > .off-why{flex-basis:100%;margin:0;overflow-wrap:break-word;}
:where(body:not(:has(#view-trades.active))) .etf-proof-who{margin:4px 0 0;font-size:0.8125rem;color:var(--ink-muted);overflow-wrap:break-word;}
:where(body:not(:has(#view-trades.active))) .etf-proof-view{max-width:100%;max-height:70vh;overflow:auto;margin:0 0 10px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface-2);}
:where(body:not(:has(#view-trades.active))) .etf-proof-view .etf-proof-img{display:block;max-width:100%;height:auto;margin:0 auto;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;}
:where(body:not(:has(#view-trades.active))) .etf-proof-view.etf-proof-actual .etf-proof-img{max-width:none;}
/* The review of 10 November 2026, mended here (the phone and the standard; PH-1, PH-4, PH-5, PH-6, PH-9 and the History
   of a long reference):
   - The picture window's day paid and reference stand in a block line of their own that breaks a long reference where
     it must (.etf-line is a flex row, whose text cannot be narrower than its longest word: a reference of 20 or more
     characters cut the window and scrolled it sideways on a phone at 200% text, and 100 characters on a laptop).
   - The picture itself (above): a long press on a phone offers no menu to save, share or open it in a tab of its own
     (-webkit-touch-callout), nothing of it is selected, and the page refuses its contextmenu event on a phone
     (js/etf.js openPicture); CLAUDE.md: no client data is stored on a phone. A screenshot stays possible.
   - The side panel's four tabs wrap at every width when they do not fit, a tab's words wrapping only between words
     (at 200% text a laptop's 640 px panel held 747 px of tabs and cut Conversation); on a phone the platform's F13 rule.
   - In the panel's History, a change's value (.from, .to) breaks a long unbroken run of characters where it must: a
     reference of 80 or 100 characters scrolled the panel's body sideways on a laptop, where History is a table and a
     cell is never narrower than its longest word. Only the value: a label (td.f) keeps its words whole, and wider than
     30rem the value's column takes all the room the labels leave, so a word of it breaks only where the word alone is
     wider than that column (the re-check of 9 November 2026, PHONE N2: never "Nam|e"). A reason and a note break a long
     word where it must (a block: break-word is enough).
   - On a Paid row the corrected proof's form stands under the proofs, folded behind its button.
   - While the picture window is open, the toasts lie under it (the page marks the stack .etf-under-window, js/etf.js
     openPicture; the window's backdrop is 85), so none covers the slip (on a phone the stack stands at the foot of the
     screen, where the window rises from). Tokens only; nothing kept on one line. */
:where(body:not(:has(#view-trades.active))) .etf-proof-paid{margin:0 0 10px;font-size:0.875rem;line-height:1.5;color:var(--ink);overflow-wrap:anywhere;}
:where(body:not(:has(#view-trades.active))) .app:has(> .etf-page) ~ .drawer-root .drawer-tabs{flex-wrap:wrap;}
:where(body:not(:has(#view-trades.active))) .app:has(> .etf-page) ~ .drawer-root .drawer-tab{white-space:normal;text-align:center;}
:where(body:not(:has(#view-trades.active))) .app:has(> .etf-page) ~ .drawer-root .history .from, :where(body:not(:has(#view-trades.active))) .app:has(> .etf-page) ~ .drawer-root .history .to{overflow-wrap:anywhere;}
:where(body:not(:has(#view-trades.active))) .app:has(> .etf-page) ~ .drawer-root .history .muted{overflow-wrap:break-word;}
:where(body:not(:has(#view-trades.active))) .etf-proof-more{margin:0 0 12px;}
:where(body:not(:has(#view-trades.active))) .toast-stack.etf-under-window{z-index:84;}
/* ---- The release of 25 October 2026 (Release E2 with the catch-up, the Order Management improvements and Fund
   Accounting checking): what its browser check of 24 October 2026 found in this release's own views, mended (README
   "The release of 25 October 2026: what the browser check found"; test/release-oct25-browser.test.js). Every
   selector inside the no-spill guard :where(body:not(:has(#view-trades.active))) (decision 11: the Trade desk is
   untouched); tokens only, sizes in rem.
   - Asset Management's Dashboard, a team's card: its heading wraps, its tag under the name where the two do not fit
     (.team-card-head; the page's style attribute moved here); on a phone the card's lines (.team-card-lines) and the
     old two-fund day's lines (.fa-old-lines, on Daily entry and in Team reports) are a line each, the figure at the
     right, under its label where the two do not fit side by side. At 200% text on a phone the card stood 182 px past
     the screen and the old day's tag 164 px: the pages scrolled sideways to 463 and 443 px.
   - The tag "Recorded for both funds together" wraps inside its line. The Fund Accounting tables' headings wrap at
     their spaces, as Order Management's do, and wider than a phone each holds its first column while the rest scrolls
     under it where it is still wider than its panel (F6, as Order Management's tables).
   - Order Management's tables: a cell's words for a screen reader alone ("Not recorded", a .sr-only span, placed
     absolutely) are held by their cell, so a table that scrolls inside its panel never widens the page to where they
     stand (the Dashboard's Internal double trade widened it to 1,036 px at 768 px and 200% text). The month tables'
     first column is as narrow as the month's name allows.
   - A work's chip ("WORK-2026-00001 · With Finance, not yet taken") wraps inside its cell, as a closed work's does;
     so do the chips at the head of a side panel (a month's "With Sabra Supervisor").
   - The side panel's summaries (dl.work-summary in a field's value, and the fixed list of the fields checked,
     .check-fields): where the value's box is narrower than 15rem (22rem for the fields checked, whose labels are
     long), each label stands over its value, so no figure or word is broken letter by letter (the checked values
     stood in a 28 px column at 200% text on a laptop). The box is a container measured in rem, so the rule follows
     the text size, not the screen's width.
   - On the narrowest phones (under 356 px) the side panel's title grows to 34 px at most (170% of its size), as a
     page's title grows to 46 px (F15), so "reconciliation," stays whole at 200% text; a query's title in its card
     grows to 26 px at most there.
   - The Fund Accounting form's and the month form's drop-downs say their choice in full, on two lines where they
     must, the list growing to hold them (Market Intelligence's rule for a list in a field: field-sizing: content).
   - The tiles of Order Management's Dashboard are at least 8rem wide and All units' at least 10.3125rem (128 and 165
     px at the default size, as before), so at 200% text a label's word ("consideration") and a figure stay whole.
   - The open queries' search box is 48 px on a phone and a touch screen while the day's queries cannot be read (the
     filter bar, which gives it its height, is drawn with the list).
   - Added by the release review (25 October 2026): the reason the day's queries could not be read, and its Try again,
     are shown (.omf-qfig dd.msg: a .msg is hidden until shown, and both stood at 0 x 0, RR-phone-1); the links at the
     head of a side panel ("Open the work", "Open in Asset Management") are 48 px high on a phone and a touch screen
     (they were 19 px, RR-conform-6); the WORK reference in a Fund Accounting entry's "Where this entry stands", a link
     inside running text, is underlined (the platform's link colour stands at 1.82:1 against the text in the dark
     theme, under WCAG 1.4.1's 3:1); the Rules page's sentence (whose kinds now include a Fund Accounting entry): its
     drop-downs and days box are 48 px high on a phone and a touch screen (they were 44 px), and on a phone each
     drop-down says its choice in full, on two lines where it must ("a Fund Accounting entry" was cut at 200% text),
     and the sentence holds its words for a screen reader alone (its .sr-only labels), as Order Management's cells do,
     so a taller sentence never pushes them past the side panel (a 320 x 568 phone at 200% text).
   - Added by the last gate of the same release (25 October 2026): the Rules page's schedule line (Every ... on ... at
     ..., p.rule-when) is part of the sentence, so its drop-downs too say their choice in full on a phone, never wider
     than the line ("the first working day" stood at 333 px in a 250 px form at 320 px and 200% text, LG-phone-1), and
     the line holds its own words for a screen reader alone (Every, Weekday, Day of the month, Time stood against the
     side panel itself, LG-phone-3); the WORK reference in "Where this entry stands" is a 48 px target on a phone and a
     touch screen (about 20 px before, LG-phone-2): padding above and below it of 24 px less half its text size, so
     its height with its text is at least 48 px at every text size, while it stays a link inside the sentence (a box of
     its own could not break "WORK-2026-00012" on a 320 px phone at 200% text), and placed (position: relative) so
     that the next line of the sentence, drawn after it, never takes the lower part of its target (only 36 to 38 px
     answered a tap at 100% text, the browser check of 25 October 2026); and a side panel's head chips (.chip) wrap
     inside their box as its tags do (a Fund Accounting correction's "A correction is being checked" was cut at 320
     and 375 px with 200% text). ---- */
:where(body:not(:has(#view-trades.active))) .team-card-head{margin:0 0 6px;font-family:var(--font-display);font-weight:500;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:4px 10px;min-width:0;overflow-wrap:break-word;}
:where(body:not(:has(#view-trades.active))) .team-card-head .tag{white-space:normal;max-width:100%;}
:where(body:not(:has(#view-trades.active))) .team-card-lines{margin-bottom:8px;}
:where(body:not(:has(#view-trades.active))) .fa-old-head .tag{white-space:normal;max-width:100%;overflow-wrap:break-word;}
:where(body:not(:has(#view-trades.active))) .fa-last thead th, :where(body:not(:has(#view-trades.active))) .fa-old-table thead th, :where(body:not(:has(#view-trades.active))) .fa-team thead th{white-space:normal;}
@media (min-width: 601px) and (min-height: 501px), (min-width: 601px) and (pointer: fine){
  :where(body:not(:has(#view-trades.active))) .panel.scroll-x > .fa-last > thead > tr > :first-child, :where(body:not(:has(#view-trades.active))) .panel.scroll-x > .fa-last > tbody > tr > :first-child, :where(body:not(:has(#view-trades.active))) .panel.scroll-x > .fa-old-table > thead > tr > :first-child, :where(body:not(:has(#view-trades.active))) .panel.scroll-x > .fa-old-table > tbody > tr > :first-child, :where(body:not(:has(#view-trades.active))) .panel.scroll-x > .fa-team > thead > tr > :first-child, :where(body:not(:has(#view-trades.active))) .panel.scroll-x > .fa-team > tbody > tr > :first-child{position:sticky;left:-6px;z-index:1;box-shadow:inset -1px 0 0 var(--line);}
  :where(body:not(:has(#view-trades.active))) .panel.scroll-x > .fa-last > thead > tr > :first-child, :where(body:not(:has(#view-trades.active))) .panel.scroll-x > .fa-old-table > thead > tr > :first-child, :where(body:not(:has(#view-trades.active))) .panel.scroll-x > .fa-team > thead > tr > :first-child{z-index:2;}
  :where(body:not(:has(#view-trades.active))) .panel.scroll-x > .fa-last > tbody > tr > :first-child, :where(body:not(:has(#view-trades.active))) .panel.scroll-x > .fa-old-table > tbody > tr > :first-child, :where(body:not(:has(#view-trades.active))) .panel.scroll-x > .fa-team > tbody > tr > :first-child{background:var(--surface);}
}
:where(body:not(:has(#view-trades.active))) .omf-table td:has(> .sr-only), :where(body:not(:has(#view-trades.active))) .omf-table th:has(> .sr-only){position:relative;}
:where(body:not(:has(#view-trades.active))) .work-chip{white-space:normal;max-width:100%;overflow-wrap:break-word;}
:where(body:not(:has(#view-trades.active))) .dval:has(> .work-summary){container-type:inline-size;}
@container (max-width: 15rem){ :where(body:not(:has(#view-trades.active))) .work-summary{grid-template-columns:minmax(0,1fr);} }
@container (max-width: 22rem){ :where(body:not(:has(#view-trades.active))) .check-fields{grid-template-columns:minmax(0,1fr);} }
:where(body:not(:has(#view-trades.active))) .drawer-head h2{overflow-wrap:break-word;}
:where(body:not(:has(#view-trades.active))) .drawer-head .facts .tag, :where(body:not(:has(#view-trades.active))) .drawer-head .facts .chip{white-space:normal;max-width:100%;overflow-wrap:break-word;}
:where(body:not(:has(#view-trades.active))) .omf-qfig dd.msg{display:block;margin:2px 0 0;font-size:min(0.8125rem, 26px);font-weight:400;}
:where(body:not(:has(#view-trades.active))) .fa-work-ref{text-decoration:underline;text-underline-offset:0.15em;}
:where(body:not(:has(#view-trades.active))) .rule-sentence, :where(body:not(:has(#view-trades.active))) .rule-when{position:relative;}
:where(body:not(:has(#view-trades.active))) #w-months tbody th.omf-rowhead, :where(body:not(:has(#view-trades.active))) #r-months tbody th.omf-rowhead{min-width:0;}
@media (max-width: 355px){
  :where(body:not(:has(#view-trades.active))) .drawer-head h2{font-size:min(1.25rem, 34px);}
  :where(body:not(:has(#view-trades.active))) .omf-qtitle{font-size:min(0.9375rem, 26px);}
}
:where(body:not(:has(#view-trades.active))) #fa-grid .field select:not([multiple]), :where(body:not(:has(#view-trades.active))) #mf-form .field select:not([multiple]){field-sizing:content;white-space:normal;height:auto;overflow-wrap:normal;}
:where(body:not(:has(#view-trades.active))) #w-kpis{grid-template-columns:repeat(auto-fit,minmax(min(100%,8rem),1fr));}
@media (min-width: 601px) and (min-height: 501px), (min-width: 601px) and (pointer: fine){ :where(body:not(:has(#view-trades.active))) .ex-kpirow{grid-template-columns:repeat(auto-fill,minmax(min(100%,10.3125rem),1fr));} }
@media (max-width: 600px), (pointer: coarse){ :where(body:not(:has(#view-trades.active))) .omf-search input{min-height:48px;} :where(body:not(:has(#view-trades.active))) .drawer-head .facts > a{display:inline-flex;align-items:center;min-height:48px;} :where(body:not(:has(#view-trades.active))) .rule-sentence select, :where(body:not(:has(#view-trades.active))) .rule-sentence input, :where(body:not(:has(#view-trades.active))) .rule-when select, :where(body:not(:has(#view-trades.active))) .rule-when input{min-height:48px;} :where(body:not(:has(#view-trades.active))) .fa-work-ref{padding-block:calc(24px - 0.5em);position:relative;} }
@media (max-width: 600px), (max-height: 500px) and (pointer: coarse){
  :where(body:not(:has(#view-trades.active))) .rule-sentence select:not([multiple]), :where(body:not(:has(#view-trades.active))) .rule-when select:not([multiple]){field-sizing:content;white-space:normal;height:auto;overflow-wrap:normal;max-width:100%;}
  :where(body:not(:has(#view-trades.active))) .team-card-lines, :where(body:not(:has(#view-trades.active))) .team-card-lines tbody, :where(body:not(:has(#view-trades.active))) .fa-old-lines, :where(body:not(:has(#view-trades.active))) .fa-old-lines tbody{display:block;}
  :where(body:not(:has(#view-trades.active))) .team-card-lines tr, :where(body:not(:has(#view-trades.active))) .fa-old-lines tr{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:2px 12px;padding:8px 0;border-bottom:1px solid var(--line-soft);}
  :where(body:not(:has(#view-trades.active))) .team-card-lines td, :where(body:not(:has(#view-trades.active))) .fa-old-lines td{display:block;padding:0;border:0;min-width:0;overflow-wrap:break-word;}
  :where(body:not(:has(#view-trades.active))) .team-card-lines td + td, :where(body:not(:has(#view-trades.active))) .fa-old-lines td + td{margin-left:auto;text-align:right;}
}
