/* ==========================================================================
   SUPLINE -- hub-specific layer on top of drivo.css.
   Rule: no raw colours below the token blocks. A new colour gets a token
   with a light and a dark value first, then is used by name.
   ========================================================================== */

/* ---------- 1. Hub tokens ---------- */
:root {
    /* chart ramp (the platform's navy-to-sky blues), for series that are not statuses */
    --series-1:#0f3a64; --series-2:#1d5c98; --series-3:#3079b6; --series-4:#4a97cd; --series-5:#93c5fd;
    /* charts (the platform's look): navy bars, light gridlines, the labels and the light track (Supline has no line chart,
       so the platform's dashed prior-period line has no token) */
    --chart-bar:var(--brand); --chart-grid:var(--border); --chart-label:var(--text-2); --chart-track:var(--n-100);
    /* inline progress bars in tables: navy on the light track */
    --bar-fill:linear-gradient(90deg, var(--brand-hover) 0%, var(--brand) 60%, var(--accent-light) 100%);
    /* status palette: one distinct hue per roster status for chart marks and swatches (3:1+ on white, 5:1+ on the dark card).
       Working / no-show stay green / red; labels next to them stay var(--text). Leave is the company platform's colours
       everywhere (Barry, 2026-11-14): Holiday (the platform's Vacation) amber, Sick blue, Other violet, Day off slate; so
       Late moved from amber to orange and No schedule yet to a lighter grey, to stay apart from Holiday and Day off. */
    --st-working:#16a34a; --st-scheduled:var(--chart-bar); --st-late:#ea580c; --st-no-show:#dc2626;
    --st-day-off:#64748b; --st-holiday:#d97706; --st-sick:#2563eb; --st-other:#7c3aed; --st-no-schedule:#8a94a2;
    --ws-working:#16a34a; --ws-break:#eab308; --ws-restroom:#3b82f6; --ws-home:#14b8a6; --ws-sick:#dc2626; --ws-coming:#9333ea; /* work status (2026-12-02) */
    /* leave badges in the same hues (a tint and a darker ink, 6.3:1+) */
    --st-holiday-bg:#fef3c7; --st-holiday-ink:#92400e; --st-sick-bg:#dbeafe; --st-sick-ink:#1e40af;
    --st-other-bg:#ede9fe; --st-other-ink:#5b21b6;
    /* sidebar and mobile header (navy; the sidebar itself is #07101e in dark via drivo.css; --on-navy, --navy-hover and the
       other white veils on navy are drivo.css tokens) */
    --sidebar-bg:var(--navy);
    --header-bg:var(--navy); /* opaque: the page never shows through the phone top bar (phone fix, 2026-11-11) */
    --on-navy-3:rgba(255,255,255,.55);
    --sb-float-shadow:8px 0 32px rgba(4,20,40,.30);
    --scrim:rgba(0,0,0,.5);
    /* live indicator */
    --live:#10b981; --live-ring:rgba(16,185,129,.35); --live-ring-0:rgba(16,185,129,0);
    /* printing */
    --print-rule:#d1d5db;
    --sidebar-ease:cubic-bezier(.2,.8,.2,1); --sb-dur:.26s;
    --sb-shift:calc(var(--sidebar-w-open) - var(--sidebar-w)); /* how far the rail opens (and the page moves): 180px */
    /* floating panels, drill backdrop, skeleton shimmer (reference pp. 8, 23, 26) */
    --sh-filter:0 8px 28px rgba(17,20,26,.16);
    --scrim-drill:rgba(17,20,26,.35);
    --skel-base:var(--border-light); --skel-hi:var(--bg);
    /* Today page: attention button (reference p. 23), error hairline, phone filter sheet (text on solid colour, --on-solid: drivo.css) */
    --attn-crit:#b42318; --attn-warn:#d97706;
    --err-line:#fecaca;
    --scrim-sheet:rgba(8,18,38,.42);
    /* sign-in screens (reference p. 38): navy hero gradient and its soft glow */
    --hero-from:var(--navy); --hero-to:var(--navy-deep); --hero-glow:rgba(58,141,222,.26);
    /* Organization chart (Ruling R7: Barry's yellow overrides the restrained palette here): a deeper gold on white (4.9:1), the bright yellow frames the navy hub */
    --org-gold:#8a5a00; --org-gold-soft:var(--accent-soft); --org-gold-ring:rgba(138,90,0,.38); --org-gold-ring-0:rgba(138,90,0,0); --org-hub-frame:var(--accent); --org-gold-strong:#713f12;
    /* Org v2: the living background behind the chart: navy lines on white */
    --org-net:var(--navy);
    /* windows (Hub.drawer): the width, the height range the content moves in, the corner */
    /* Team schedule (#/calendar; the company platform's department calendar, 2026-11-13): a solid hue and a 15% tint per shift
       kind (palette slots 1-8: teal, blue, violet, pink, cyan, lime, orange, indigo; HubTeamSchedule.PALETTE_SIZE), the leave bars
       and the day-off grey from the shared status tokens (one source, both themes: the platform's colours, --st-* above), the
       weekend veil */
    --ts-k1:#0d9488; --ts-k2:#2563eb; --ts-k3:#7c3aed; --ts-k4:#db2777; --ts-k5:#0891b2; --ts-k6:#65a30d; --ts-k7:#c2410c; --ts-k8:#4f46e5;
    --ts-k1-bg:rgba(13,148,136,.15); --ts-k2-bg:rgba(37,99,235,.15); --ts-k3-bg:rgba(124,58,237,.15); --ts-k4-bg:rgba(219,39,119,.15);
    --ts-k5-bg:rgba(8,145,178,.15); --ts-k6-bg:rgba(101,163,13,.15); --ts-k7-bg:rgba(194,65,12,.15); --ts-k8-bg:rgba(79,70,229,.15);
    --ts-holiday:var(--st-holiday); --ts-sick:var(--st-sick); --ts-other:var(--st-other); --ts-off:var(--st-day-off);
    --ts-hatch:var(--n-300); --ts-wkend-veil:rgba(17,20,26,.045); --ts-wkend-edge:var(--n-300); --ts-today-ico:#b45309;
    /* Team schedule views (2026-11-14): the Year's four shades of "how many work" (the fourth is --brand with --on-brand), the Day's now line */
    --ts-heat-1:rgba(15,106,184,.12); --ts-heat-2:rgba(15,106,184,.27); --ts-heat-3:rgba(15,106,184,.48); --ts-now:#dc2626;
    /* schedule power tools (2026-11-20): a picked day's veil */
    --ts-pick:rgba(15,58,100,.14);
    /* Christmas theme (2026-12-04, kit/holiday.js): flakes on the page and on navy, the lights' bulbs, the hat, the New Year chip */
    --xmas-snow:var(--blue-200); --xmas-snow-navy:rgba(255,255,255,.85);
    --xmas-bulb-1:#ef4444; --xmas-bulb-2:#22c55e; --xmas-bulb-3:#fff4cc; --xmas-bulb-4:#60a5fa; --xmas-wire:rgba(255,255,255,.28); --xmas-glow:rgba(255,255,255,.75);
    --xmas-hat:#dc2626; --xmas-fur:#ffffff;
    --xmas-top-wire:rgba(100,116,139,.45); --xmas-top-bulb:#f59e0b; --xmas-pile:#ffffff; --xmas-pile-top:var(--blue-200); --xmas-pile-back:rgba(147,197,253,.35);
    --xmas-chip-bg:rgba(22,163,74,.12); --xmas-chip-ink:#15803d;
    --window-w:560px; --window-min-h:min(480px,88dvh); --window-max-h:min(860px,88dvh); --radius-window:8px;
}
[data-theme="dark"] {
    --org-gold:var(--accent-ink); --org-gold-soft:var(--accent-soft); --org-gold-ring:rgba(245,183,0,.45); --org-gold-ring-0:rgba(245,183,0,0); --org-hub-frame:var(--accent); --org-gold-strong:#fef08a;
    --org-net:var(--accent); /* the yellow on navy */
    --st-working:#4ade80; --st-late:#fb923c; --st-no-show:#f87171;
    /* sick is blue-300 here: the platform's blue-400 sits too near the dark brand (#5b89c2) for a status mark */
    --st-day-off:#94a3b8; --st-holiday:#f59e0b; --st-sick:#93c5fd; --st-other:#a78bfa; --st-no-schedule:#7b8798;
    --ws-working:#22c55e; --ws-break:#fde047; --ws-restroom:#60a5fa; --ws-home:#2dd4bf; --ws-sick:#f87171; --ws-coming:#c084fc;
    --st-holiday-bg:rgba(245,158,11,.16); --st-holiday-ink:#fcd34d; --st-sick-bg:rgba(96,165,250,.18); --st-sick-ink:#bfdbfe;
    --st-other-bg:rgba(167,139,250,.18); --st-other-ink:#c4b5fd;
    --sidebar-bg:var(--navy-deep);
    --header-bg:var(--navy-deep);
    --sh-filter:0 8px 28px rgba(0,0,0,.5);
    --skel-base:#131e34; --skel-hi:#1a2540;
    --attn-crit:#c8281c; --attn-warn:#d97706;
    --err-line:rgba(239,68,68,.3);
    --scrim-sheet:rgba(0,0,0,.55);
    --hero-from:var(--navy); --hero-to:var(--navy-deep); --hero-glow:rgba(58,141,222,.16);
    --series-1:#a3c9e8; --series-2:#7db3dd; --series-3:#4b90cb; --series-4:#2f79b5; --series-5:#1d5c98;
    --bar-fill:linear-gradient(90deg, var(--brand) 0%, var(--accent-light) 100%);
    /* Barry 2026-11-16: in dark mode the shift colours are neon accents of the light ones (the soft tints were hard to see on navy) */
    --ts-k1:#00f5d4; --ts-k2:#3d9bff; --ts-k3:#b26bff; --ts-k4:#ff3fb4; --ts-k5:#00e5ff; --ts-k6:#b4ff39; --ts-k7:#ff8a1f; --ts-k8:#7c8cff;
    --ts-k1-bg:rgba(0,245,212,.30); --ts-k2-bg:rgba(61,155,255,.34); --ts-k3-bg:rgba(178,107,255,.34); --ts-k4-bg:rgba(255,63,180,.32);
    --ts-k5-bg:rgba(0,229,255,.28); --ts-k6-bg:rgba(180,255,57,.26); --ts-k7-bg:rgba(255,138,31,.30); --ts-k8-bg:rgba(124,140,255,.34);
    --ts-hatch:var(--n-300); --ts-wkend-veil:rgba(255,255,255,.05); --ts-wkend-edge:var(--n-400); --ts-today-ico:#fbbf24;
    --ts-heat-1:rgba(91,137,194,.17); --ts-heat-2:rgba(91,137,194,.33); --ts-heat-3:rgba(91,137,194,.55); --ts-now:#f87171;
    --ts-pick:rgba(91,137,194,.30);
    --xmas-snow:rgba(255,255,255,.7); --xmas-hat:#ef4444; --xmas-fur:#f1f5f9;
    --xmas-top-wire:rgba(255,255,255,.28); --xmas-top-bulb:#fff4cc; --xmas-pile:rgba(241,245,249,.92); --xmas-pile-top:rgba(255,255,255,.98); --xmas-pile-back:rgba(255,255,255,.22);
    --xmas-chip-bg:rgba(74,222,128,.16); --xmas-chip-ink:#86efac;
}

/* ---------- 2. Base additions ---------- */
html { -webkit-text-size-adjust:100%; text-size-adjust:100%; }
*, *::before, *::after { box-sizing:border-box; } /* the reference assumes it (min-height:44px, 44px avatar, fixed-width rails) */
html.no-theme-transition *, html.no-theme-transition *::before, html.no-theme-transition *::after { transition:none !important; }
/* theme cross-fade: only while Hub.theme.toggle() holds the class */
html.theme-fading *, html.theme-fading *::before, html.theme-fading *::after {
    transition:background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out),
               border-color var(--dur-2) var(--ease-out), fill var(--dur-2) var(--ease-out),
               stroke var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out) !important;
}
[hidden] { display:none !important; } /* component display rules (.btn, .chip ...) must not beat the attribute */
.page:focus { outline:none; }
button { font-family:inherit; }

/* ---------- 3. Sidebar ---------- */
.sidebar { background:var(--sidebar-bg); color:var(--on-navy); }
/* Batch 1 B2: wide screens. Nothing is laid out again while the rail opens or closes: the rail is always its open width,
   slid left by --sb-shift with its contents slid back (so the icons stay put and the edge glides), and the page slides
   right by the same amount (its right edge passes under the window's edge for that moment; .app clips it). Only
   transforms move, so the compositor runs it and the cards never re-flow. .sidebar.sb-open is set by kit/rail.js on a click
   on the rail's empty space (hovering never opens it; a click on an icon goes straight to its page); keyboard focus opens it at once. Pinned, the page is laid out at the open
   width instead (app.js swaps the two without a jump). */
@media (min-width:1101px) {
    .app { overflow-x:clip; }
    .sidebar, html.sidebar-pinned .sidebar { width:var(--sidebar-w-open); transform:translateX(calc(-1 * var(--sb-shift)));
               transition:transform var(--sb-dur) var(--sidebar-ease); }
    .sidebar > .sb-logo, .sidebar > .sb-nav, .sidebar > .sb-user { transform:translateX(var(--sb-shift)); transition:transform var(--sb-dur) var(--sidebar-ease); }
    .sidebar > .sb-search { transform:translateX(var(--sb-shift)); transition:transform var(--sb-dur) var(--sidebar-ease); }
    .main { transition:transform var(--sb-dur) var(--sidebar-ease); }
    .sidebar.sb-open, html.sidebar-pinned .sidebar, .sidebar:has(:focus-visible),
    .sidebar.sb-open > .sb-logo, .sidebar.sb-open > .sb-nav, .sidebar.sb-open > .sb-user,
    html.sidebar-pinned .sidebar > .sb-logo, html.sidebar-pinned .sidebar > .sb-nav, html.sidebar-pinned .sidebar > .sb-user,
    .sidebar:has(:focus-visible) > .sb-logo, .sidebar:has(:focus-visible) > .sb-nav, .sidebar:has(:focus-visible) > .sb-user { transform:none; }
    .sidebar.sb-open > .sb-search, html.sidebar-pinned .sidebar > .sb-search, .sidebar:has(:focus-visible) > .sb-search { transform:none; }
    /* closed, the search is a 48px square holding its icon (the platform's rail); open, it runs the rail's width */
    .sidebar > .sb-search { width:48px; justify-content:center; padding:0; }
    .sidebar.sb-open > .sb-search, html.sidebar-pinned .sidebar > .sb-search, .sidebar:has(:focus-visible) > .sb-search { width:auto; justify-content:flex-start; padding:0 10px; }
    .sidebar > .sb-search input { width:0; flex:0 0 0; }
    .sidebar.sb-open > .sb-search input, html.sidebar-pinned .sidebar > .sb-search input, .sidebar:has(:focus-visible) > .sb-search input { width:100%; flex:1 1 auto; }
    /* Barry 2026-11-18: closed, each menu item shows as a 48px tile in the same place as the search box (14px from both rail
       edges, icon centred), so the active highlight never reaches the rail's edge; open, it runs the menu's width as before.
       The item keeps its size (only transforms move, B2): its own fill steps aside, an ::after tile carries it, and the icon
       slides 7px to the tile's centre and back as the rail opens. */
    .sidebar .nav-item > svg { transition:transform var(--sb-dur) var(--sidebar-ease); }
    html:not(.sidebar-pinned) .sidebar:not(.sb-open):not(:has(:focus-visible)) .nav-item { background:none !important; box-shadow:none !important; }
    html:not(.sidebar-pinned) .sidebar:not(.sb-open):not(:has(:focus-visible)) .nav-item > svg { transform:translateX(7px); }
    html:not(.sidebar-pinned) .sidebar:not(.sb-open):not(:has(:focus-visible)) .nav-item::before { left:4px; }
    html:not(.sidebar-pinned) .sidebar:not(.sb-open):not(:has(:focus-visible)) .nav-item::after { content:''; position:absolute; z-index:-1; left:4px; top:0; bottom:0; width:48px;
        border-radius:var(--radius-nav); pointer-events:none; transition:background var(--dur-fast) var(--ease-smooth); }
    html:not(.sidebar-pinned) .sidebar:not(.sb-open):not(:has(:focus-visible)) .nav-item:hover::after { background:var(--navy-hover); }
    html:not(.sidebar-pinned) .sidebar:not(.sb-open):not(:has(:focus-visible)) .nav-item.active::after { background:var(--navy-active); box-shadow:0 0 8px -2px var(--nav-glow), inset 0 0 0 1px var(--navy-active-edge); }
    :root:not(.sidebar-pinned)[data-input="touch"] .sidebar:not(.sb-open):not(:has(:focus-visible)) .nav-item:active::after { background:var(--navy-active); } /* the press state, on the tile */
    html.sb-instant .nav-item > svg { transition:none !important; }
    html.sidebar-pinned .main { margin-left:var(--sidebar-w-open); }
    /* 2026-11-12 (the platform's rail): open but not pinned, the rail floats over the page as an overlay; the page stays put */
    /* floating over the content while open but not pinned; flat once pinned */
    html:not(.sidebar-pinned) .sidebar.sb-open, html:not(.sidebar-pinned) .sidebar:has(:focus-visible) { box-shadow:var(--sb-float-shadow); }
    /* pinning or unpinning swaps the slide for the margin in one frame (same place on screen) */
    html.sb-instant .main, html.sb-instant .sidebar, html.sb-instant .sb-logo, html.sb-instant .sb-nav, html.sb-instant .sb-user { transition:none !important; }
    html.sb-instant .sb-search { transition:none !important; }
    body.is-bare .main { transform:none !important; }
}

.sb-logo { min-height:72px; }
/* the real Supline logo (reference p. 10): the white mark on the collapsed rail, the full white logo (24px tall) once expanded.
   The full logo sits exactly over the mark (same artwork at x 0), so the fade reads as the wordmark appearing. */
.sb-brand { position:relative; display:block; flex-shrink:0; height:24px; }
.sb-brand:focus-visible { outline-color:var(--on-navy); outline-offset:4px; border-radius:4px; } /* the logo is the Home link */
.sb-mark { display:block; height:24px; width:auto; }
.sb-full { position:absolute; left:0; top:0; display:block; height:24px; width:auto; max-width:none; }
.sb-pin { margin-left:auto; width:26px; height:26px; flex-shrink:0; display:grid; place-items:center; border-radius:6px;
          background:none; border:0; cursor:pointer; color:var(--on-navy-2);
          transition:background var(--dur-1) var(--ease-out), color var(--dur-1), opacity var(--dur-2) var(--ease-out); }
.sb-pin:hover { background:var(--navy-hover); color:var(--on-navy); }
.sb-pin svg { width:15px; height:15px; }
.sb-pin[aria-pressed="true"] { background:var(--navy-active); color:var(--nav-accent); }

.sb-label span { overflow:hidden; text-overflow:clip; }
/* the search field at the top filters the menu (Hub.navFilter): a filtered-out item or an emptied section label */
.sb-search svg { width:14px; height:14px; color:var(--on-navy-faint); flex-shrink:0; }
.sb-search input::-webkit-search-cancel-button { filter:invert(1); opacity:.55; }
/* !important as [hidden] has it: .nav-item sets display:flex, and a filtered item must stay out whatever its own rule says */
.nav-off { display:none !important; }
/* nothing matches: one line in the menu (kit/nav-filter.js adds .is-shown; the live region says it too) */
.sb-search-empty { display:none; margin:0; padding:10px 12px; font-size:12px; color:var(--on-navy-faint); white-space:nowrap; }
.sb-search-empty.is-shown { display:block; }
/* the field's own focus ring (its input is all:unset, so the global :focus-visible ring never reaches it); light blue on navy, 4.65:1 */
.sb-search:has(input:focus-visible) { outline:2px solid var(--nav-accent); outline-offset:2px; }
.nav-item { text-decoration:none; }
.nav-item > svg, .nav-item > [data-lucide] { flex-shrink:0; }
.nav-text { overflow:hidden; text-overflow:ellipsis; }
.nav-item:focus-visible { outline-color:var(--on-navy); outline-offset:-2px; }

/* labels fade by opacity only, so the rail never changes height */
.sb-full, .sb-pin, .sb-label span, .nav-text, .nav-count, .sb-who, .theme-toggle {
    opacity:0; transition:opacity var(--dur-2) var(--ease-out);
}
.sb-search input { opacity:0; transition:opacity var(--dur-2) var(--ease-out); }
.sidebar.sb-open .sb-search input, .sidebar:has(:focus-visible) .sb-search input, html.sidebar-pinned .sb-search input { opacity:1; transition-delay:.08s; }
.sidebar.sb-open .sb-full, .sidebar.sb-open .sb-pin, .sidebar.sb-open .sb-label span, .sidebar.sb-open .nav-text,
.sidebar.sb-open .nav-count, .sidebar.sb-open .sb-who, .sidebar.sb-open .theme-toggle,
.sidebar:has(:focus-visible) .sb-full, .sidebar:has(:focus-visible) .sb-pin, .sidebar:has(:focus-visible) .sb-label span,
.sidebar:has(:focus-visible) .nav-text, .sidebar:has(:focus-visible) .nav-count, .sidebar:has(:focus-visible) .sb-who,
.sidebar:has(:focus-visible) .theme-toggle,
html.sidebar-pinned .sb-full, html.sidebar-pinned .sb-pin, html.sidebar-pinned .sb-label span, html.sidebar-pinned .nav-text,
html.sidebar-pinned .nav-count, html.sidebar-pinned .sb-who, html.sidebar-pinned .theme-toggle {
    opacity:1; transition-delay:.08s;
}

/* user block */
.sb-user .avatar { flex-shrink:0; font-size:17px; color:var(--on-navy); }
.sb-who { flex:1; min-width:0; white-space:nowrap; line-height:1.25; }
.sb-who b { display:block; font-size:12.5px; font-weight:700; color:var(--on-navy); overflow:hidden; text-overflow:ellipsis; }
.sb-me { border-radius:var(--radius); transition:background var(--dur-1) var(--ease-out); }
.sb-me:hover { background:var(--navy-hover); }
.sb-role { font-size:10.5px; opacity:.55; }
.sb-who .sb-role { opacity:1; color:var(--on-navy-3); }
/* the platform's small square user-card buttons (theme, sign out): a faint white edge, radius 6 */
.theme-toggle { width:30px; height:30px; flex-shrink:0; display:grid; place-items:center; border-radius:var(--radius-sm); border:1px solid var(--navy-field-edge); cursor:pointer;
                background:none; color:var(--on-navy-2); transition:background var(--dur-1) var(--ease-out), color var(--dur-1), opacity var(--dur-2) var(--ease-out); }
.theme-toggle:hover { background:var(--navy-hover); border-color:var(--navy-field-focus-edge); color:var(--on-navy); }
.theme-toggle:focus-visible { outline-color:var(--on-navy); }
.theme-toggle svg { width:15px; height:15px; }
.theme-toggle .i-sun { display:none; }
[data-theme="dark"] .theme-toggle .i-sun { display:inline-flex; }
[data-theme="dark"] .theme-toggle .i-moon { display:none; }

/* sign-in screens (login, setup, choose password): no sidebar or mobile header while the router marks the body bare */
body.is-bare .sidebar, body.is-bare .m-header, body.is-bare .sb-scrim { display:none !important; }
body.is-bare .main, html.sidebar-pinned body.is-bare .main { margin-left:0 !important; }
@media (max-width:768px) { body.is-bare .page { padding-top:32px; } }

/* Speed (2026-11-17): the boot state, until the first page is known (theme-boot.js sets html.booting and its guess; app.js
   takes them off at the first page). Never a white page with the menu: no stored session shows the sign-in screens' navy;
   a stored session shows the shell with the page skeleton that index.html carries in #page. */
html.booting.boot-out body { background:linear-gradient(160deg, var(--hero-from), var(--hero-to)); }
html.booting.boot-out .app, html.booting.boot-out .m-header { visibility:hidden; }
.boot-skel-title { height:34px; width:min(320px, 60%); }

/* ---------- 4. Mobile header, drawer scrim ---------- */
.m-header { display:none; }
.sb-scrim { display:none; }
.m-menu { width:40px; height:40px; display:grid; place-items:center; border:0; border-radius:8px; background:none; cursor:pointer; color:var(--on-navy); }
.m-menu:hover { background:var(--navy-hover); }
.m-menu:focus-visible { outline-color:var(--on-navy); }
.m-menu svg { width:22px; height:22px; }
.m-brand { display:flex; align-items:center; }
.m-brand:focus-visible { outline-color:var(--on-navy); outline-offset:4px; border-radius:4px; }
.m-logo { display:block; height:22px; width:auto; }

/* ---------- 5. Page, greeting, live indicators ---------- */
.route-in { animation:routeIn var(--dur-route) var(--ease-smooth) backwards; }
@keyframes routeIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }

.eyebrow { font-size:11.5px; font-weight:800; line-height:1.2; text-transform:uppercase; letter-spacing:.12em; color:var(--brand-text); }
/* the eyebrow the shell puts above a page title (Hub.pageEyebrow: the page's menu section) */
.page-eyebrow + .page-title { margin-top:8px; }
.greeting { font-size:var(--fs-hero); font-weight:800; letter-spacing:-.6px; line-height:1.15; margin:6px 0 0; color:var(--text); }
.greeting b { font-weight:800; }
.wave { display:inline-block; transform-origin:70% 70%; animation:handWaveOnce 1.6s ease-in-out .2s 1 both; }

@keyframes liveDotPulse { from { box-shadow:0 0 0 0 var(--live-ring); } to { box-shadow:0 0 0 7px var(--live-ring-0); } }
.live-dot { display:inline-block; width:7px; height:7px; border-radius:50%; background:var(--live); animation:liveDotPulse 1.8s ease-out infinite; }
.fresh:not(.stale) .fresh-dot { animation:liveDotPulse 1.8s ease-out infinite; }
@media (prefers-reduced-motion:reduce) {
    .live-dot, .fresh-dot, .wave { animation:none; }
}

/* ---------- 6. Toast stack ---------- */
.toast-stack { position:fixed; right:16px; bottom:16px; z-index:1400; display:flex; flex-direction:column; align-items:flex-end; gap:8px;
               pointer-events:none; padding-bottom:env(safe-area-inset-bottom); }
.toast-stack > * { pointer-events:auto; }

/* print-only report header (injected by app.js on beforeprint) */
.print-header { display:none; }

/* ---------- 7. Responsive ---------- */

/* 769-1100px: fixed 72px rail, CSS tooltips instead of expanding */
@media (min-width:769px) and (max-width:1100px) {
    :root { --sidebar-w:72px; }
    .sidebar, html.sidebar-pinned .sidebar { width:72px; overflow:visible; transition:none; }
    .sb-logo { justify-content:center; padding:22px 0; }
    .sb-full, .sb-pin, .sb-label span, .nav-text, .nav-count, .sb-who { display:none; }
    .sb-nav { overflow:visible; padding:14px 10px; }
    .sb-label { padding:14px 0 8px; }
    .nav-item { justify-content:center; padding:11px 0; min-height:44px; }
    .sb-user { flex-direction:column; justify-content:center; gap:6px; padding:12px 0; }
    .sb-user .avatar { width:40px; height:40px; font-size:16px; }
    .theme-toggle { opacity:1; }
    .sb-search { display:none; } /* the fixed rail never opens, so there is nowhere to type */
    .nav-item[data-tip]::after {
        content:attr(data-tip); position:absolute; left:calc(100% + 14px); top:50%; transform:translateY(-50%);
        padding:5px 12px; border-radius:7px; background:var(--blue-900); color:var(--on-navy);
        font-size:12px; font-weight:600; white-space:nowrap; box-shadow:var(--elev-2);
        opacity:0; pointer-events:none; transition:opacity var(--dur-1) var(--ease-out); z-index:1;
    }
    .nav-item[data-tip]:hover::after, .nav-item[data-tip]:focus-visible::after { opacity:1; }
}

@media (max-width:1100px) {
    .sb-pin { display:none; }
}

/* <=768px: 56px header, off-canvas drawer */
@media (max-width:768px) {
    .m-header {
        display:flex; align-items:center; gap:8px; position:fixed; top:0; left:0; right:0; z-index:90;
        height:calc(56px + env(safe-area-inset-top));
        padding:env(safe-area-inset-top) max(8px, env(safe-area-inset-right)) 0 max(8px, env(safe-area-inset-left));
        background:var(--header-bg);
        border-bottom:1px solid var(--navy-hairline);
    }
    .sb-scrim { display:block; position:fixed; inset:0; z-index:99; background:var(--scrim); opacity:0; pointer-events:none;
                transition:opacity var(--dur-2) var(--ease-out); }
    .sb-scrim.show { opacity:1; pointer-events:auto; }
    body.drawer-open { overflow:hidden; }
    .sidebar, html.sidebar-pinned .sidebar { width:min(85vw,300px); }
    .sidebar { padding-top:env(safe-area-inset-top); padding-bottom:env(safe-area-inset-bottom); padding-left:env(safe-area-inset-left); }
    .sb-full, .sb-label span, .nav-text, .nav-count, .sb-who, .theme-toggle, .sb-search input { opacity:1; }
    .sb-pin { display:none; }
    .page { padding:calc(70px + env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) calc(32px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); }
    .icon-btn { width:36px; height:36px; }
    .toast-stack { right:12px; }
}

@media (max-width:600px) {
    .toast-stack { left:8px; right:8px; bottom:8px; align-items:stretch; padding-bottom:env(safe-area-inset-bottom); }
    .toast-stack .toast { max-width:none; }
    .greeting { font-size:26px; } /* the platform's phone greeting (.home-greeting at 600px and below) */
}

@media (max-width:480px) {
    .page { padding-top:calc(64px + env(safe-area-inset-top)); padding-right:max(14px, env(safe-area-inset-right)); padding-bottom:calc(28px + env(safe-area-inset-bottom)); padding-left:max(14px, env(safe-area-inset-left)); } /* the platform's 14px phone gutter */
}

/* cover screens of foldables */
@media (max-width:360px) {
    .page { padding-right:max(8px, env(safe-area-inset-right)); padding-left:max(8px, env(safe-area-inset-left)); }
    .kpi-value { font-size:22px; }
    .sidebar, html.sidebar-pinned .sidebar { width:92vw; }
}

/* reduced motion: the rail and the page snap together */
@media (prefers-reduced-motion:reduce) {
    .sidebar, .sb-logo, .sb-nav, .sb-user, .main { transition:none !important; }
    .sb-search { transition:none !important; }
    .sidebar .nav-item > svg { transition:none !important; }
}

/* ---------- 8. Print ---------- */
@page { size:A4 portrait; margin:14mm 12mm; }
@media print {
    * { -webkit-print-color-adjust:exact; print-color-adjust:exact; }
    html { font-size:9.5pt; }
    body { font-size:9.5pt; background:var(--n-0); }
    .sidebar, .m-header, .sb-scrim, .toast-stack, .overlay, .api-loader, .spinner, .filter-bar, .page-actions, .seg,
    .btn, .icon-btn, .cf-btn, .popover, .hub-pop { display:none !important; }
    .app { display:block; }
    .main { margin-left:0; }
    .page { padding:0; }
    .print-header { display:block; margin:0 0 12pt; padding-bottom:6pt; border-bottom:2pt solid var(--brand); }
    .print-header h1 { margin:0; font-size:17pt; font-weight:700; color:var(--brand); }
    .print-header div { margin-top:2pt; font-size:9.5pt; color:var(--text-muted); }
    .card, .kpi, .tbl-wrap { border:1pt solid var(--print-rule); box-shadow:none; break-inside:avoid; }
    .kpi:hover { transform:none; }
    .tbl-wrap, .card-body-fixed { overflow:visible; max-height:none; height:auto; }
    .tbl thead { display:table-header-group; }
    .tbl th, .tbl th.sticky, .tbl td.sticky { position:static; }
    .tbl tr { break-inside:avoid; }
    .route-in { animation:none; }
}

/* ---------- 9. Empty states ---------- */
.empty-ico { color:var(--text-light); display:flex; justify-content:center; }
.empty-ico svg.lucide { width:26px; height:26px; } /* fill-space: a compact empty state */

/* ---------- 10. UI kit: badges ---------- */
.badge-ico { display:inline-flex; align-items:center; gap:4px; white-space:nowrap; }
.badge-ico svg { width:12px; height:12px; }
/* leave statuses in the company platform's colours: amber holiday, blue sick leave, violet other leave (green / yellow / red /
   neutral come from drivo.css; day off is neutral slate) */
.badge-holiday { background:var(--st-holiday-bg); color:var(--st-holiday-ink); }
.badge-sick { background:var(--st-sick-bg); color:var(--st-sick-ink); }
.badge-other-leave { background:var(--st-other-bg); color:var(--st-other-ink); }

/* ---------- 11. UI kit: table, funnel panel, cards ---------- */
button.cf-btn { border:0; background:none; padding:0; cursor:pointer; }
.cf-btn:not(.on):hover { background:var(--bg-2); color:var(--text); }
.cf-btn svg { width:11px; height:11px; }
.cf-btn.on svg { fill:currentColor; }
.tbl th.sort { user-select:none; }
.tbl tbody tr.tbl-more:hover td, .tbl tbody tr.tbl-empty-row:hover td { background:transparent; }

/* floating panels: fixed at the trigger's viewport coordinates, positioned by Hub.popover */
.hub-pop { position:fixed; z-index:250; overscroll-behavior:contain; max-width:calc(100vw - 16px); transform-origin:top center; animation:popIn var(--dur-fast) var(--ease-smooth); }
.cf-panel { width:280px; padding:0; z-index:4000; box-shadow:var(--elev-2); display:flex; flex-direction:column; overflow:hidden; }
.hub-pop:not(.cf-panel) { overflow-y:auto; }
.cf-panel > :not(.cf-list) { flex-shrink:0; }
.cf-search { padding:8px 8px 4px; }
.cf-search .f-input { width:100%; min-width:0; }
.cf-panel .pop-actions { padding:4px 14px 6px; }
.cf-list { flex:1 1 auto; min-height:48px; max-height:240px; overflow-y:auto; overscroll-behavior:contain; padding:0 6px; }
.cf-list .pop-item { padding:6px 8px; cursor:pointer; }
.cf-val { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cf-n { color:var(--text-light); font-size:12px; font-variant-numeric:tabular-nums; }
.cf-none, .cf-cap { padding:8px 12px; font-size:12px; color:var(--text-light); }
.cf-foot { display:flex; justify-content:flex-end; gap:8px; padding:8px; border-top:1px solid var(--border-light); }

/* phones: one card per row, labels from data-label (the page's own filters and tabs replace the header controls) */
@media (max-width:600px) {
    .tbl-wrap:has(.tbl-cards) { max-height:none; overflow:visible; border:0; background:none; }
    .tbl-cards, .tbl-cards tbody, .tbl-cards tr, .tbl-cards td { display:block; }
    .tbl-cards thead { display:none; }
    .tbl-cards tbody tr { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius-card); padding:10px 12px; margin-bottom:10px; }
    .tbl-cards td { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:4px 0; border:0; text-align:right; }
    .tbl-cards td::before { content:attr(data-label); flex-shrink:0; font-size:11px; font-weight:600; text-transform:uppercase;
                            letter-spacing:.04em; color:var(--text-muted); text-align:left; }
    .tbl-cards td.sticky-end { position:static; box-shadow:none; background:none; }
    .tbl-cards td.sticky { position:static; box-shadow:none; background:none; font-weight:700; margin-bottom:4px; padding-bottom:6px;
                           border-bottom:1px solid var(--border-light); }
    .tbl.tbl-cards tbody tr:hover td, .tbl.tbl-cards tr.click:hover td { background:none; }
    .tbl.tbl-cards tr.click:hover { background:var(--brand-soft); }
    .tbl-cards tr.tbl-more, .tbl-cards tr.tbl-empty-row { background:none; border:0; padding:0; margin:0; }
    /* off-screen cards skip layout and paint; the placeholder is one 30px line per column (--tbl-cols, set by Hub.table), guessed high so End reaches the real bottom */
    .tbl-cards tbody tr:not(.tbl-more):not(.tbl-empty-row) { content-visibility:auto; contain-intrinsic-size:auto calc(var(--tbl-cols, 4) * 30px + 20px); }
    .tbl-cards .tbl-more td { display:block; text-align:center; padding:8px 0; }
    .tbl-cards .tbl-more td::before, .tbl-cards td.tbl-empty::before { content:none; }
    .tbl-cards td.tbl-empty { display:block; text-align:center; }
}

/* ---------- 12. UI kit: multi-select, date picker ---------- */
.ms-trigger, .dp-trigger { cursor:pointer; text-align:left; }
.ms-text { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dp-lead { display:inline-flex; align-items:center; gap:8px; }
.ms-pop { min-width:220px; max-width:320px; }
.ms-list { max-height:260px; overflow-y:auto; overscroll-behavior:contain; }
.ms-pop .pop-item, .dp-pop .pop-item { padding:6px 12px; cursor:pointer; }
button.pop-item { width:100%; background:none; border:0; font-family:inherit; text-align:left; }
.pop-actions button { background:none; border:0; padding:0; font-family:inherit; font-size:inherit; font-weight:inherit; color:inherit; cursor:pointer; }
.pop-actions button:hover { text-decoration:underline; }
.dp-custom { padding:2px 8px 8px; display:flex; flex-direction:column; gap:6px; }
.dp-input { width:100%; min-width:0; }
.dp-error { font-size:11.5px; color:var(--err); }
.dp-apply { width:100%; }

/* ---------- 13. UI kit: modal, toast ---------- */
body.modal-open { overflow:hidden; }
.overlay-drill { background:var(--scrim-drill); }
.modal:focus { outline:none; }
.modal.wide { max-height:min(85vh,720px); max-height:min(85dvh,720px); }
.modal-head, .modal-foot { flex-shrink:0; }
.modal-titles { flex:1; min-width:0; }
.modal-actions { display:flex; align-items:center; gap:8px; }
/* the exit (Hub.motion.leave, as the windows'): no pointer while it plays, removed by a timer after --dur-exit */
.overlay.is-leaving { pointer-events:none; animation:fadeOut var(--dur-exit) var(--ease-exit) forwards; }
.overlay.is-leaving .modal { animation:windowOut var(--dur-exit) var(--ease-exit) forwards; }
.toast { animation:toastIn var(--dur-hover) var(--ease-spring) backwards; }
@keyframes toastIn { from { opacity:0; transform:translateY(12px) scale(.96); } to { opacity:1; transform:none; } }
/* the exit (Hub.motion.leave from toast.js): no pointer while it plays, removed by a timer after --dur-exit */
.toast.is-leaving { pointer-events:none; animation:toastOut var(--dur-exit) var(--ease-exit) forwards; }
@keyframes toastOut { to { opacity:0; transform:translateY(8px) scale(.96); } }
[data-theme="dark"] .toast-success { background:var(--n-0); color:var(--ok-ink); border-color:var(--ok); }
[data-theme="dark"] .toast-error { background:var(--n-0); color:var(--err-ink); border-color:var(--err); }
@media (max-width:600px) {
    .modal { max-height:92vh; max-height:92dvh; padding-bottom:env(safe-area-inset-bottom); animation:sheetUp var(--dur-sheet) var(--ease-sheet) backwards; }
    .overlay.is-leaving .modal { animation:sheetDown var(--dur-exit) var(--ease-exit) forwards; }
    .modal.drill, .modal.wide { height:100%; max-height:none; border-radius:0; }
    .modal-foot { flex-direction:column-reverse; }
    .modal-foot .btn { width:100%; min-height:44px; }
}

/* ---------- 14. UI kit: skeleton ---------- */
.skel { background:linear-gradient(90deg,var(--skel-base) 25%,var(--skel-hi) 50%,var(--skel-base) 75%); background-size:800px 100%; }
.skel-page { display:flex; flex-direction:column; gap:14px; }
.skel-kpi { height:104px; }
.skel-row { display:grid; grid-template-columns:1.45fr 1fr; gap:14px; }
.skel-card { height:320px; }
.skel-table { height:300px; }
@media (max-width:900px) { .skel-row { grid-template-columns:1fr; } }
@media (prefers-reduced-motion:reduce) { .skel { animation:none; } }

/* ---------- 15. UI kit: charts (stacked bars, ranked bars) ---------- */
.chart-empty { text-align:center; color:var(--text-muted); font-size:13px; padding:28px 12px; }
/* the company platform's chart look: navy marks, light gridlines, 11px axis labels, the legend bottom left, a stat block top right */
.chart-legend { display:flex; flex-wrap:wrap; justify-content:flex-start; gap:6px 16px; font-size:11.5px; color:var(--text-muted); }
.chart-legend-item { display:inline-flex; align-items:center; gap:6px; }
.chart-swatch { width:10px; height:10px; border-radius:2px; flex:none; }
.chart-stats { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:6px 24px; }
.chart-stat { text-align:right; }
.chart-stat-lbl { font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:var(--text-muted); }
.chart-stat-val { margin-top:1px; font-size:16px; font-weight:800; letter-spacing:-.2px; color:var(--text); font-variant-numeric:tabular-nums; }

.chart-stack { display:flex; flex-direction:column; gap:10px; height:100%; min-height:0; }
.chart-bars { flex:1 1 0; min-height:0; display:flex; flex-direction:column; gap:6px; overflow-y:auto; }
.chart-bar-row { flex:1 1 0; min-height:22px; max-height:64px; display:flex; align-items:center; gap:10px; border-radius:var(--radius-xs); }
.chart-bar-row:hover { background:color-mix(in srgb, var(--brand) 8%, transparent); }
.chart-bar-label { flex:0 0 28%; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; color:var(--chart-label); }
.chart-bar-track { flex:1 1 0; min-width:0; display:flex; height:clamp(12px,48%,26px); border-radius:2px; overflow:hidden; background:var(--chart-track); }
.chart-bar-total { flex:0 0 auto; min-width:28px; text-align:right; font-size:12px; font-weight:700; color:var(--text); font-variant-numeric:tabular-nums; }
.chart-seg { height:100%; min-width:0; cursor:pointer; }
.chart-seg + .chart-seg { box-shadow:-1px 0 0 var(--bg-card); }

/* ranked bars: each row (swatch + label · bar · count · %) is one drill mark; rows share the fixed body, scrolling if needed */
.chart-ranked { height:100%; min-height:0; display:flex; flex-direction:column; gap:4px; overflow-y:auto; }
.chart-stack > .chart-ranked { flex:1 1 0; height:auto; } /* under a stat block the rows share what is left */
.chart-rank-row { flex:1 1 0; min-height:30px; max-height:46px; display:grid; grid-template-columns:minmax(84px,30%) minmax(0,1fr) 30px 36px;
                  align-items:center; gap:10px; padding:0 6px; border-radius:var(--radius-xs); cursor:pointer; }
.chart-rank-row:hover { background:color-mix(in srgb, var(--brand) 8%, transparent); }
.chart-rank-label { display:flex; align-items:center; gap:8px; min-width:0; font-size:12.5px; color:var(--text); }
.chart-rank-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
/* the empty part of a ranked track shows quarter gridlines */
.chart-rank-track { height:14px; border-radius:2px; overflow:hidden; background-color:var(--chart-track);
                    background-image:linear-gradient(90deg, var(--chart-grid) 1px, transparent 1px); background-size:25% 100%; }
.chart-rank-bar { display:block; height:100%; min-width:3px; border-radius:2px; }
.chart-rank-count { text-align:right; font-size:12.5px; font-weight:700; color:var(--text); font-variant-numeric:tabular-nums; }
.chart-rank-pct { text-align:right; font-size:12px; color:var(--text-muted); font-variant-numeric:tabular-nums; }

/* selecting a mark dims the others to 40% (page toggles .has-selection on the chart and .is-selected on the mark) */
.has-selection .chart-seg:not(.is-selected), .has-selection .chart-rank-row:not(.is-selected),
.has-selection .chart-donut-seg:not(.is-selected), .has-selection .chart-donut-row:not(.is-selected) { opacity:.4; }
.chart-seg:focus-visible, .chart-rank-row:focus-visible, .chart-donut-row:focus-visible { outline:2px solid var(--brand); outline-offset:-2px; }

/* donut (the company platform's pie): the ring with its total in the centre, beside a legend table with a Total row */
.chart-donut { height:100%; min-height:0; display:grid; grid-template-columns:minmax(150px,42%) minmax(0,1fr); align-items:center; gap:20px; }
.chart-donut-fig { position:relative; width:100%; max-width:230px; aspect-ratio:1; justify-self:center; }
.chart-donut-svg { display:block; width:100%; height:100%; }
.chart-donut-track { fill:none; stroke:var(--chart-track); stroke-width:18; }
.chart-donut-seg { fill:none; stroke-width:18; cursor:pointer; transition:opacity var(--dur-fast); }
.chart-donut-seg:hover { stroke-width:21; }
.chart-donut-mid { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; pointer-events:none; }
.chart-donut-total { font-size:26px; font-weight:800; letter-spacing:-.4px; color:var(--text); font-variant-numeric:tabular-nums; line-height:1.1; }
.chart-donut-cap { margin-top:2px; font-size:11px; font-weight:700; letter-spacing:.6px; text-transform:uppercase; color:var(--text-muted); }
.chart-donut-list { min-width:0; max-height:100%; overflow-y:auto; border:1px solid var(--border); border-radius:var(--radius-panel); }
.chart-donut-row, .chart-donut-foot { display:grid; grid-template-columns:minmax(0,1fr) 40px 44px; align-items:center; gap:10px; min-height:38px; padding:0 12px; }
.chart-donut-row { border-bottom:1px solid var(--border); cursor:pointer; }
.chart-donut-row:hover { background:color-mix(in srgb, var(--brand) 8%, transparent); }
.chart-donut-foot { font-size:12.5px; font-weight:700; color:var(--text); background:var(--bg-2); }
.chart-donut-count { text-align:right; font-size:12.5px; font-weight:700; color:var(--text); font-variant-numeric:tabular-nums; }
.chart-donut-pct { text-align:right; font-size:12px; color:var(--text-muted); font-variant-numeric:tabular-nums; }
@media (max-width:600px) {
    .chart-donut { grid-template-columns:1fr; gap:14px; }
    .chart-donut-fig { max-width:180px; }
}
[data-input="touch"] .chart-donut-row { min-height:44px; }
@media (prefers-reduced-motion:reduce) { .chart-seg, .chart-rank-row, .chart-donut-seg { transition:none; } }

/* ---------- 16. Today page ---------- */
.today-data { display:flex; flex-direction:column; gap:14px; }
.today-data:empty { display:none; }
.today > [data-r="error"]:not(:empty) { margin-bottom:14px; }
/* Barry, 2026-11-18: the roster filters are its header funnels; the choices show as chips between the head and the table
   (the row folds away while there are none: no empty band), and a phone gets a Filters button there (see the 600px block) */
.rf-bar { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.rf-bar.is-empty { display:none; }
.rf-chips { display:flex; align-items:center; flex-wrap:wrap; gap:6px 8px; min-width:0; }
.rf-chips:empty { display:none; }
.rf-chip { display:inline-flex; align-items:center; gap:4px; max-width:100%; min-height:28px; padding:3px 8px 3px 10px; border:1px solid var(--brand-soft); border-radius:var(--radius-chip-lg);
           background:var(--brand-soft); color:var(--brand-text); font:600 12px var(--font); cursor:pointer; }
.rf-chip:hover { border-color:var(--brand); }
.rf-chip:focus-visible { outline:2px solid var(--brand); outline-offset:2px; }
.rf-chip-k { font-weight:500; color:var(--text-muted); }
.rf-chip-v { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rf-chip svg { width:13px; height:13px; flex:none; }
.rf-clear { padding-left:8px; padding-right:8px; }
/* the head: the date chip beside the tabs, right of the title */
.rf-side { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:8px 12px; margin-left:auto; }
.rf-side .period-chip { margin-left:0; }
/* a tab with nobody in it is dimmed (still a tab: picking it says why it is empty) */
.today-roster .seg button.is-zero:not(.active) .seg-l, .today-roster .seg button.is-zero:not(.active) .seg-n { color:var(--text-light); }
/* a header funnel's panel: the choices apply as they change, Clear empties the column */
.rf-panel { width:260px; }
.rf-panel-title { padding:10px 14px 4px; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.5px; color:var(--text-muted); }
.rf-note { padding:2px 8px 6px; font-size:12px; color:var(--text-muted); }
.rf-panel .cf-list { padding-top:2px; padding-bottom:4px; }
.rf-panel .cf-foot { justify-content:flex-start; }
.rf-opt.is-zero .cf-val, .rf-opt.is-zero .cf-n { color:var(--text-light); }
/* an empty roster says why, with the way back */
.rf-empty { display:flex; flex-direction:column; align-items:center; gap:6px; padding:18px 12px; text-align:center; }
.rf-empty p { margin:0; }
.rf-empty-title { font-size:13.5px; font-weight:700; color:var(--text); }
.rf-empty-sub { font-size:12px; color:var(--text-muted); }
.rf-empty-acts { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; margin-top:6px; }

/* header (home variant, reference pp. 4 and 12) */
.greeting b { background:linear-gradient(135deg,var(--brand-hover) 0%,var(--brand) 50%,var(--accent-light) 100%); -webkit-background-clip:text; background-clip:text; color:transparent; }
.wave, .wave-still { display:inline-block; }
.today-dateline { display:flex; align-items:center; flex-wrap:wrap; gap:6px 12px; margin-top:0; font-size:14px; color:var(--text-2); }
/* Barry, 2026-11-18: the whole head is ONE line: "Good evening," + the name on the left (2026-11-27: no "Welcome back"), then the date, the picker
   and Updated, then the home buttons, Excel and Print pushed right. Everything at the date line's 14px except the greeting,
   a little bigger (20px). When the screen is too narrow for one line the three groups wrap, in that order. */
.today-head { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-start; gap:6px 14px; padding-bottom:8px; margin-bottom:10px; }
.today-head > .today-hero { display:flex; align-items:center; gap:6px; min-width:0; flex:0 0 auto; } /* beats drivo.css .page-head > :first-child { flex:1 } */
.today-hero > .eyebrow { font-size:20px; font-weight:800; line-height:1.25; letter-spacing:-.6px; text-transform:none; color:var(--text); white-space:nowrap; } /* Barry, 2026-11-19: "Good morning" reads as part of the greeting: same font, size, weight and color as "Welcome back" */
.today-head .today-titlerow { margin-top:0; min-width:0; }
.today-head .greeting { font-size:20px; line-height:1.25; margin:0; white-space:nowrap; flex-shrink:0; }
.today-head > .today-dateline { flex:0 1 auto; min-width:0; column-gap:8px; }
.today-head > .page-actions { margin-left:auto; gap:8px; }
.today-head .today-dp .dp-trigger { min-width:132px; } /* 150px pushed the buttons off the one line at 1440 */
@media (max-width:600px) {
    .today-head > .today-hero { flex-wrap:wrap; row-gap:2px; flex-shrink:1; }
    .today-head .greeting { white-space:normal; flex-shrink:1; }
}
.today-date { display:inline-flex; align-items:center; gap:8px; }
.today-date svg { color:var(--text-muted); }
.today-sep { color:var(--text-light); }
.today-dateline .fresh { margin-top:0; }
/* 2026-11-23: the New York clock, quietly under "Updated", so the one-line head gets no wider or taller (the date line is
   36px tall for the date picker); on phones it sits beside it as "NY 8:20 PM" (the ≤480px block) */
.today-clocks { display:inline-flex; flex-direction:column; align-items:flex-start; min-width:0; }
.today-ny { font-size:11.5px; line-height:1.3; color:var(--text-muted); white-space:nowrap; }
.today-ny-short { display:none; }
.today-ny[hidden] { display:none; }
.today-head .page-actions { align-items:center; }
/* 2026-11-18: the Overview's three cards as buttons (kit/home-buttons.js), before Excel / Print: the cards' icon chips
   (pink bell, green mail and checklist), a count badge on the corner, a hairline between them and Excel / Print */
.home-btns { display:flex; align-items:center; gap:8px; }
.home-btns:not(:last-child) { padding-right:12px; border-right:1px solid var(--border); }
.home-btn { position:relative; display:grid; place-items:center; width:36px; height:36px; padding:0; border:1px solid transparent; border-radius:var(--radius);
            cursor:pointer; transition:border-color var(--dur-fast) var(--ease-smooth), transform var(--dur-press) var(--ease-out); }
.home-btn[hidden] { display:none; }
.home-btn svg { width:18px; height:18px; }
.home-btn.tone-pink { background:var(--chip-pink-bg); color:var(--chip-pink-ink); }
.home-btn.tone-green { background:var(--chip-green-bg); color:var(--chip-green-ink); }
.home-btn:hover { border-color:currentColor; }
.home-btn:active { transform:scale(var(--press-scale)); }
.home-btn:focus-visible { outline:2px solid var(--brand); outline-offset:2px; }
.home-btn-n { position:absolute; top:-6px; right:-6px; min-width:18px; height:18px; padding:0 5px; display:grid; place-items:center; border-radius:var(--pill);
              background:var(--brand); color:var(--on-brand); font-size:10.5px; font-weight:700; line-height:1; box-shadow:0 0 0 2px var(--bg); pointer-events:none; }
.home-btn.tone-pink .home-btn-n, .home-btn-n.is-late { background:var(--err); color:var(--on-solid); }
:where([data-input="touch"]) .home-btn { width:44px; height:44px; }
@media (prefers-reduced-motion:reduce) { .home-btn:active { transform:none; } }
@media print { .home-btns { display:none !important; } }
/* 2026-11-22: shift handover notes (Hub.handover): the "Leave a handover note" button in the team panel's title row (the
   head has no room left at 1440 px), and the Handover card over the data (hidden while there is nothing to show: no band) */
.hv-slot { display:flex; flex:none; }
.hv-slot:empty { display:none; }
.today-handover { margin-bottom:14px; }
.today-handover[hidden] { display:none; }
.ovp-row.hv-note { align-items:flex-start; flex-wrap:wrap; }
.hv-note > .av { margin-top:2px; }
.hv-body { margin:2px 0 0; font-size:13.5px; line-height:1.5; color:var(--text); white-space:pre-wrap; overflow-wrap:anywhere; }
.hv-acts { display:flex; align-items:center; justify-content:flex-end; gap:6px; flex-wrap:wrap; margin-left:auto; }
.hv-seen { font-size:12px; color:var(--text-muted); white-space:nowrap; }
.hv-form-foot { display:flex; justify-content:space-between; gap:8px; margin-top:6px; }
.hv-more-row { display:flex; justify-content:center; padding-top:6px; border-top:1px solid var(--border-light); }
@media (max-width:600px) {
  .hv-acts { flex-basis:100%; justify-content:flex-start; padding-left:40px; }
  .hv-slot { order:4; flex-basis:100%; }
}
@media print { .hv-acts, .hv-slot { display:none !important; } }
/* 2026-11-22: the Starter tasks window on Tasks (Hub.starterTasks) */
.st-window { display:flex; flex-direction:column; gap:12px; }
.st-explain { margin:0; }
.ovp-row.st-item { align-items:flex-start; }
.st-desc { white-space:pre-wrap; }
.st-acts { display:flex; align-items:center; gap:4px; flex:none; }
.st-move { width:auto; max-width:180px; } /* a removed department's item: "Move to…" */
.st-form { display:flex; flex-direction:column; gap:10px; padding-top:12px; border-top:1px solid var(--border-light); }
.st-form .ovp-h { margin:0; }
.st-days .acc-input { max-width:120px; }
.st-form-acts { display:flex; justify-content:flex-end; gap:8px; }
.tasks .page-head:has([data-action="starter"]) > :first-child { flex:1 1 300px; } /* the title keeps its line; the two buttons wrap under it on a phone */

/* attention button: solid red / amber with a count bubble, or a calm green "All clear" */
.attn-slot { display:inline-flex; }
.attn-btn { color:var(--on-solid); }
.attn-btn.attn-err { background:var(--attn-crit); border-color:var(--attn-crit); }
.attn-btn.attn-warn { background:var(--attn-warn); border-color:var(--attn-warn); }
.attn-btn:hover { filter:brightness(.94); }
.attn-dot { width:7px; height:7px; border-radius:50%; background:var(--on-solid); }
.attn-count { min-width:20px; height:20px; padding:0 6px; border-radius:var(--pill); background:var(--on-solid); display:inline-grid; place-items:center;
              font-size:11.5px; font-weight:800; font-variant-numeric:tabular-nums; }
.attn-err .attn-count { color:var(--attn-crit); }
.attn-warn .attn-count { color:var(--attn-warn); }
/* "All clear": the platform's calm green status button */
.attn-clear { display:inline-flex; align-items:center; gap:6px; padding:7px 13px; border-radius:var(--radius-btn); background:var(--clear-bg); color:var(--clear-ink);
              border:1px solid var(--clear-edge); font-size:12px; font-weight:700; line-height:1; }
.attn-clear svg { width:13px; height:13px; color:var(--clear-ico); }

/* the phone's filters: a "Filters" button that opens a bottom sheet (reference p. 21) of the funnels' choices; none of it
   shows above 600px, where the table's headers hold the funnels */
.f-sheet, .f-sheet-handle, .f-sheet-title, .f-sheet-done, .f-sheet-btn, .f-sheet-scrim { display:none; }
.period-chip svg { width:13px; height:13px; }
.f-sheet-count { min-width:18px; height:18px; padding:0 5px; border-radius:var(--pill); background:var(--brand); color:var(--on-brand);
                 display:inline-grid; place-items:center; font-size:11px; font-weight:700; }

/* KPI tiles open their list through a stretched button (the (i) tip sits above it: a button cannot hold a button) */
.kpi-click { text-align:left; width:100%; cursor:pointer; align-items:stretch; }
.kpi-open { position:absolute; inset:0; z-index:1; width:100%; height:100%; padding:0; border:0; border-radius:inherit; background:none; cursor:pointer; }
.kpi-open:focus-visible { outline-offset:-3px; }
.kpi-click:hover { border-color:var(--brand); }
.kpi-icon svg { width:18px; height:18px; }
.kpi-value.warn { color:var(--warn); }
.kpi-value.err { color:var(--err); }

/* Barry 2026-11-14 ("who is on duty, shifts and sub teams from the first look"): "On duty now", first on Today. Team
   schedule's Today cards (.ts-tcard, .ts-trow, .ts-dot, .ts-count, .ts-today-grid: they wrap at 230px and every row, the last
   one too, stretches), ordered for now: the hours in a green pill for on duty now (the whole width left for the name), a ring
   dot for later today, a faded dot and grey text for finished; the header is a button (that team in the page filters), each row a button (the person's record) */
.od { display:flex; flex-direction:column; gap:10px; }
.od-head { display:flex; flex-wrap:wrap; align-items:center; gap:6px 12px; min-width:0; cursor:pointer; } /* the title row opens and closes the cards */
.od .od-title svg { color:var(--st-working); } /* over .ts-today-title svg (amber sun), later in the file */
.od-sum { margin-right:auto; } /* 2026-11-30: no shift legend; the handover button and the chevron stay on the right */
.od-card-head { width:100%; padding:0; border:0; background:none; font-family:inherit; color:inherit; text-align:left; border-radius:var(--radius-xs); }
button.od-card-head { cursor:pointer; }
button.od-card-head:hover .od-card-name { color:var(--brand-text); }
.od-card-head:focus-visible, .od-row:focus-visible { outline:2px solid var(--brand); outline-offset:2px; }
.od-card-name { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.4px; color:var(--text-light); }
.od-card.is-picked { border-color:var(--brand); box-shadow:inset 0 0 0 1px var(--brand); }
.od-card.is-picked .od-card-name { color:var(--brand-text); }
/* a wide card (the last row stretched, or one team alone) flows its people into 220px columns, top to bottom, so a name
   never sits a screen away from its hours */
.od-card .ts-trows { display:block; columns:220px; column-gap:24px; margin-bottom:-5px; }
.od-card .ts-trows > li { break-inside:avoid; padding-bottom:5px; }
.od-row { width:100%; padding:0; border:0; background:none; font-family:inherit; line-height:inherit; text-align:left; cursor:pointer; border-radius:var(--radius-xs); }
.od-row:hover .ts-tname { color:var(--brand-text); text-decoration:underline; text-underline-offset:2px; }
.ts-tval.od-now-val { padding:0 6px; border-radius:var(--pill); background:var(--chip-ok-bg); color:var(--chip-ok-ink); font-weight:700; }
.ts-dot.od-dot-later { position:relative; }
.ts-dot.od-dot-later::after { content:""; position:absolute; inset:2px; border-radius:50%; background:var(--bg-card); }
.ts-dot.od-dot-done { opacity:.45; }
.od-empty { margin:0; font-size:12px; color:var(--text-light); }
/* Barry, 2026-11-17: closed by default on every width; the chevron (and the title row) shows the cards */
.od-fold { flex:none; margin:-4px 0; border:1px solid var(--border); background:var(--bg-card); color:var(--text-2); }
.od-fold[aria-expanded="true"] .disc-chevron { transform:rotate(180deg); }
.od-folded .od-grid { display:none; }
/* 2026-11-27: balanced columns (packOnDuty in pages/today.js places every card and stretches each column's last card to one
   bottom line); auto-fill only tells it how many columns fit */
.od-grid.od-masonry { display:grid; grid-template-columns:repeat(auto-fill, minmax(230px, 1fr)); grid-auto-rows:2px; row-gap:0; column-gap:10px; grid-auto-flow:row dense; align-items:start; }
.od-grid.od-masonry > .ts-tcard { margin-bottom:10px; }
.od-folded .od-grid.od-masonry { display:none; }
.od-lead { border-color:var(--brand-ring); }
.od-lead .od-card-name { display:inline-flex; align-items:center; gap:5px; color:var(--brand-text); }
.od-lead .od-card-name svg { width:12px; height:12px; }
.od-lead-team { font-weight:500; color:var(--text-light); }
.skel-onduty { height:22px; } /* as tall as the closed panel's header row (measured: 22px at 1440, 79px at 375) */
.skel-onduty.is-open { height:150px; }
@media (max-width:768px) { /* a phone: the chevron beside the title, the summary under them */
  .skel-onduty { height:80px; }
  .od-fold { order:1; margin-left:auto; }
  .od-sum { order:2; flex-basis:100%; }
}

/* row 2: staffing bars + status breakdown in fixed 320px bodies (cards never grow) */
.today-charts { grid-template-columns:1.45fr 1fr; }
.today-status { overflow:hidden; }
/* Barry, 2026-11-18: both chart bodies about 30% shorter than the platform's 320px (224px), the ring smaller to fit, the legend
   rows tighter; an empty "No data" body shrinks to its message instead of holding the 224px box */
@media screen and (min-width:601px) {
    .today-bars, .today-status { height:224px; }
    .today-status .chart-donut-row, .today-status .chart-donut-foot { min-height:30px; }
    [data-input="touch"] .today-status .chart-donut-row { min-height:44px; }
    .today-bars:has(> .chart-empty), .today-status:has(> .chart-empty) { height:auto; }
}
/* spacing pass 2026-11-14: the pie and its legend share the card (the ring grows up to the 320px body, the legend takes the
   rest); it left a 459px band at 1920 */
@media (min-width:601px) {
    .today-status .chart-donut { grid-template-columns:minmax(0, 1fr) minmax(0, 1.15fr); }
    .today-status .chart-donut-fig { max-width:min(100%, 200px); }
}
@media (max-width:600px) { .today-status .chart-donut-fig { max-width:240px; } }
@media (max-width:600px) { .today-status { height:auto; } .today-status .chart-donut-list { max-height:none; overflow:visible; } } /* phones: the pie stacks over its whole list, no inner scroll */

/* attention list */
.attn-list { max-height:320px; overflow-y:auto; overscroll-behavior:contain; margin:-4px -16px -14px; border-radius:0 0 var(--radius-card) var(--radius-card); }
.attn-list .attn-item:last-child { border-bottom:0; }
.attn-text { min-width:0; }
.attn-who { font-size:13px; color:var(--text-2); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.attn-who b { color:var(--text); font-weight:700; }
.attn-detail { font-size:12px; color:var(--text-muted); margin-top:1px; }
[data-theme="dark"] .attn-ico { background:var(--warn-soft); color:var(--warn); }
[data-theme="dark"] .attn-item.crit { border-left-color:var(--err); }
[data-theme="dark"] .attn-item.crit .attn-ico { background:var(--err-soft); color:var(--err); }
[data-theme="dark"] .alert-error { background:var(--err-soft); color:var(--err-ink); border-color:var(--err-line); }

/* roster card */
.cell-shift { white-space:nowrap; }
.today-roster .card-head { align-items:flex-end; }
.today-bars .chart-bar-row { cursor:pointer; } /* Barry, 2026-11-17: a bar's name and total open its list too */
.today-roster .seg { margin-left:auto; flex-wrap:wrap; overscroll-behavior-x:contain; }
.seg-n { font-size:11px; font-weight:600; color:var(--text-light); font-variant-numeric:tabular-nums; }
.seg button.active .seg-n { color:var(--brand-text); }
.today-roster .tbl-wrap { max-height:calc(100vh - 240px); max-height:calc(100dvh - 240px); }

/* the roster's department / sub-department sections (table kit group): a toggle row, open by default */
.tbl-group > td.tbl-group-cell { padding:0; background:var(--bg-2); border-bottom:1px solid var(--border-light); }
.tbl-group.lvl-1 > td.tbl-group-cell { background:var(--bg-card); }
.tbl-group-btn { display:flex; align-items:center; gap:8px; width:100%; min-height:36px; padding:6px 12px; border:0; background:none; color:var(--text); font:inherit; text-align:left; cursor:pointer; }
.tbl-group.lvl-1 .tbl-group-btn { padding-left:32px; }
.tbl-group-btn:hover { background:var(--press-tint); }
.tbl-group-btn:focus-visible { outline:2px solid var(--brand); outline-offset:-2px; }
.tbl-group-btn svg { width:15px; height:15px; color:var(--text-muted); flex:none; transition:transform var(--dur-fast) var(--ease-smooth); }
.tbl-group-btn[aria-expanded="false"] svg { transform:rotate(-90deg); }
.tbl-group-name { font-size:13px; font-weight:800; }
.tbl-group.lvl-1 .tbl-group-name { font-weight:700; }
.tbl-group-note { font-size:12px; color:var(--text-muted); font-variant-numeric:tabular-nums; }
@media (prefers-reduced-motion:reduce) { .tbl-group-btn svg { transition:none; } }
@media (max-width:600px) {
    .tbl-cards tbody tr.tbl-group { padding:0; margin:4px 0 8px; border:0; background:none; contain-intrinsic-size:auto 44px; }
    .tbl-cards tr.tbl-group > td.tbl-group-cell { display:block; padding:0; background:none; border:0; text-align:left; }
    .tbl-cards tr.tbl-group > td.tbl-group-cell::before { content:none; }
    .tbl-cards .tbl-group-btn { border-radius:var(--radius-card); background:var(--bg-2); }
}

/* employee modal */
.emp { display:flex; flex-direction:column; gap:16px; }
.emp-h { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:var(--text-muted); margin-bottom:8px; }
.emp-rec { margin:0; display:grid; grid-template-columns:auto 1fr; gap:8px 16px; font-size:13px; }
.emp-rec > div { display:contents; }
.emp-rec dt { color:var(--text-muted); }
.emp-rec dd { margin:0; color:var(--text); }

@media (max-width:900px) { .today-charts { grid-template-columns:1fr; } }

@media (max-width:768px) {
    .today-head .page-actions { width:100%; }
    .rf-side { width:100%; justify-content:flex-start; margin-left:0; }
    .today-roster .seg { margin-left:0; width:100%; }
    .today-roster .seg button { flex:1 1 auto; justify-content:center; padding:7px 8px; }
}
@keyframes sheetUp { from { transform:translateY(100%); } to { transform:none; } }

@media (max-width:600px) {
    .attn-item { padding:11px 12px 11px 10px; gap:10px; }
    .attn-who { white-space:normal; }
    /* the table is cards here (no headers, so no funnels): the chip row always shows, led by the Filters button */
    .rf-bar.is-empty { display:flex; }
    .f-sheet-btn { display:inline-flex; justify-content:center; min-height:40px; }
    .today-filters.sheet-open .f-sheet {
        display:flex; flex-direction:column; align-items:stretch; gap:12px; position:fixed; left:0; right:0; bottom:0; z-index:210;
        max-height:85vh; max-height:85dvh; overflow-y:auto; overscroll-behavior:contain; padding:10px 16px calc(16px + env(safe-area-inset-bottom)); background:var(--bg-card);
        border-radius:var(--radius-window) var(--radius-window) 0 0; box-shadow:var(--elev-3); animation:sheetUp var(--dur-sheet) var(--ease-sheet);
    }
    .f-sheet-handle { display:block; width:40px; height:4px; border-radius:2px; background:var(--n-300); margin:0 auto 2px; }
    .f-sheet-title { display:flex; align-items:center; gap:8px; font-size:15px; font-weight:700; color:var(--text); }
    .rf-sheet-groups { display:flex; flex-direction:column; align-items:stretch; gap:14px; }
    .rf-group { display:flex; flex-direction:column; gap:2px; min-width:0; margin:0; padding:0; border:0; }
    .rf-group legend { padding:0; margin-bottom:4px; }
    .rf-group .pop-item { min-height:44px; padding:6px 8px; font-size:14px; }
    .rf-group .rf-note { padding:0 0 4px; }
    .rf-sheet-clear { align-self:flex-start; min-height:40px; }
    .f-sheet-done { display:inline-flex; min-height:48px; font-size:15px; }
    .f-sheet-scrim { display:block; position:fixed; inset:0; z-index:205; background:var(--scrim-sheet); opacity:0; pointer-events:none;
                     transition:opacity var(--dur-2) var(--ease-out); }
    .f-sheet-scrim.show { opacity:1; pointer-events:auto; }
    body.sheet-open { overflow:hidden; }
}

@media (max-width:480px) {
    .today-dateline { font-size:13px; }
    .today-sep { display:none; }
    .today-clocks { flex-direction:row; align-items:center; column-gap:8px; }
    .today-ny { font-size:inherit; line-height:inherit; }
    .today-ny-long { display:none; }
    .today-ny-short { display:inline; }
    .today-clocks.is-viewing .today-ny { display:none; } /* another day picked: the long "Viewing …" line needs the room */
    .today-roster .seg { flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; }
    .today-roster .seg button { flex:0 0 auto; padding:7px 10px; white-space:nowrap; }
    .today-dp { flex:1 1 100%; }
    .today-dp .f-input { width:100%; }
}
@media (prefers-reduced-motion:reduce) { .today-filters.sheet-open .f-sheet { animation:none; } }
@media print {
    .attn-slot, .today-dp, .today-sep, .f-sheet-scrim { display:none !important; }
    .greeting b { color:var(--brand); background:none; }
    .attn-list { max-height:none; overflow:visible; }
}

/* ---------- 18. Sign-in screens: login, choose password, first developer (reference p. 38) ---------- */
.sr-only { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* ---------- The first-time tour (Barry, 2026-11-25; kit/tour.js) ---------- */
.tour { position:fixed; inset:0; z-index:2500; }
.tour-block { position:absolute; inset:0; }
.tour.is-phone .tour-block { background:var(--scrim-modal); }
.tour-hole { position:fixed; border-radius:9px; box-shadow:0 0 0 3px var(--blue-400), 0 0 0 100vmax var(--scrim-modal); pointer-events:none;
             transition:left var(--dur-3) var(--ease-smooth), top var(--dur-3) var(--ease-smooth), width var(--dur-3) var(--ease-smooth), height var(--dur-3) var(--ease-smooth); }
.tour-card { position:fixed; width:min(340px, calc(100vw - 24px)); box-sizing:border-box; padding:16px 18px; background:var(--bg-card); color:var(--text);
             border:1px solid var(--border); border-radius:var(--radius-window); box-shadow:var(--sh-window); outline:none;
             transition:left var(--dur-3) var(--ease-smooth), top var(--dur-3) var(--ease-smooth); }
.tour-title { font-size:16px; font-weight:800; letter-spacing:-.2px; }
.tour-text { margin:6px 0 14px; font-size:13.5px; line-height:1.5; color:var(--text-2); }
.tour-foot { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.tour-count { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.4px; color:var(--text-muted); }
.tour-btns { display:flex; gap:8px; margin-left:auto; }
.tour-skip { display:block; margin:12px 0 0; padding:4px 0; background:none; border:0; font:inherit; font-size:12.5px; color:var(--text-muted); text-decoration:underline; cursor:pointer; }
.tour-skip:hover { color:var(--text); }
.tour-card :focus-visible { outline:2px solid var(--brand); outline-offset:2px; }
.tour.is-phone .tour-card { left:0; right:0; bottom:0; top:auto; width:auto; border-width:1px 0 0; border-radius:var(--radius-window) var(--radius-window) 0 0;
                            padding:18px 18px calc(18px + env(safe-area-inset-bottom)); animation:windowIn var(--dur-window) var(--ease-window) backwards; }
.tour.is-phone .tour-btns .btn, .tour.is-phone .tour-skip { min-height:44px; }
.tour.is-phone .tour-btns .btn { padding-left:18px; padding-right:18px; }
.tour.is-phone .tour-skip { width:100%; }
.tour-welcome { font-size:13.5px; line-height:1.5; color:var(--text-2); }
.tour-what { margin:0 0 14px; }
.tour-why-title { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.4px; color:var(--text-muted); margin-bottom:6px; }
.tour-why { list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.tour-why li { display:flex; gap:10px; align-items:flex-start; }
.tour-why li svg { flex:none; width:16px; height:16px; margin-top:2px; color:var(--brand-text); }
.tour-welcome-overlay { z-index:2400; }
.set-tour .btn { margin-top:2px; }
:root[data-perf="low"] .tour-hole, :root[data-perf="low"] .tour-card { transition:none; }
@media (prefers-reduced-motion:reduce) { .tour-hole, .tour-card { transition:none; } .tour.is-phone .tour-card { animation:none; } }

body.is-bare .page:has(> .auth) { padding:0; }
.auth { display:grid; grid-template-columns:42% minmax(0,1fr); min-height:100vh; min-height:100dvh; }

/* hero: the real logo, two-line headline (second line light blue) and one sentence */
.auth-hero { position:relative; display:flex; flex-direction:column; padding:44px clamp(32px,4.4vw,64px); color:var(--on-navy); overflow:hidden;
             background:radial-gradient(90% 70% at 100% 0%, var(--hero-glow), transparent 70%), linear-gradient(160deg, var(--hero-from), var(--hero-to)); }
.auth-hero::after { content:""; position:absolute; right:-90px; bottom:-70px; width:380px; height:380px; opacity:.04; pointer-events:none;
                    background:url(../img/mark-white.svg?v=f6bbbb3f8f8d) no-repeat center / contain; }
/* 2026-11-28: the moving logo (Hub.authMark, public/js/kit/auth-mark.js): the chain mark, large and faint, wandering behind
   the logo and the words (the script sets its size and transform); it replaces the still watermark (::after), faded in */
.auth-mark { position:absolute; left:0; top:0; opacity:.17; pointer-events:none; transform-origin:50% 50%; will-change:transform; animation:auth-mark-in 1.6s var(--ease-smooth) both; }
.auth-mark-svg { display:block; width:100%; height:100%; }
.auth-hero[data-mark]::after { display:none; }
.auth-hero > .auth-logo, .auth-hero > .auth-copy { position:relative; z-index:1; }
@keyframes auth-mark-in { from { opacity:0; } to { opacity:.17; } }
@media (prefers-reduced-motion:reduce) { .auth-mark { animation:none; } }
.auth-logo { display:block; height:32px; width:auto; align-self:flex-start; }
.auth-copy { margin:auto 0; padding:40px 0; max-width:460px; }
.auth-headline { margin:0; font-size:clamp(32px,3.6vw,54px); font-weight:900; line-height:1.04; letter-spacing:-1.6px; }
.auth-line { display:block; }
.auth-accent { color:var(--nav-accent); }
.auth-pitch { margin:22px 0 0; max-width:40ch; font-size:16px; line-height:1.6; color:var(--on-navy-2); }

/* form side */
.auth-panel { position:relative; display:flex; align-items:center; justify-content:center; padding:56px 32px; background:var(--bg-card); }
.auth-card { width:100%; max-width:400px; }
.auth-title { margin:8px 0 0; font-size:26px; font-weight:900; line-height:1.15; letter-spacing:-.6px; color:var(--text); }
.auth-sub { margin:8px 0 28px; font-size:14px; line-height:1.5; color:var(--text-muted); }
.auth-foot { margin:22px 0 0; text-align:center; font-size:13px; }
.auth-theme { position:absolute; top:16px; right:16px; width:36px; height:36px; display:grid; place-items:center; border:0; border-radius:8px;
              background:none; cursor:pointer; color:var(--text-muted); transition:background var(--dur-1) var(--ease-out), color var(--dur-1); }
.auth-theme:hover { background:var(--bg-2); color:var(--text); }
.auth-theme svg { width:17px; height:17px; }
.auth-theme .i-sun { display:none; }
[data-theme="dark"] .auth-theme .i-sun { display:inline-flex; }
[data-theme="dark"] .auth-theme .i-moon { display:none; }

.auth-wait { display:flex; justify-content:center; padding:96px 0; }
.af-alert:not(:empty) { margin-bottom:18px; }
.af-field { margin-bottom:16px; }
.af-label { display:block; margin-bottom:6px; font-size:13px; font-weight:600; color:var(--text); }
/* radius 12 (not the 10 of the other fields) is deliberate: it suits the 48px sign-in field */
.af-input { display:block; width:100%; height:48px; padding:0 14px; font:15px var(--font); color:var(--text); background:var(--bg);
            border:1.5px solid var(--border); border-radius:var(--radius);
            transition:border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out), background var(--dur-1); }
.af-input:hover { border-color:var(--n-300); }
.af-input:focus { outline:none; border-color:var(--brand); box-shadow:0 0 0 4px var(--brand-ring); background:var(--bg-card); }
.af-input[aria-invalid="true"] { border-color:var(--err); }
.af-input[aria-invalid="true"]:focus { box-shadow:0 0 0 4px var(--err-soft); }
.af-pw { position:relative; }
.af-pw .af-input { padding-right:48px; }
.af-eye { position:absolute; top:0; right:0; width:48px; height:48px; display:grid; place-items:center; border:0; border-radius:0 var(--radius) var(--radius) 0;
          background:none; cursor:pointer; color:var(--text-muted); }
.af-eye:hover { color:var(--text); }
.af-eye:focus-visible { outline-offset:-3px; }
.af-eye svg { width:18px; height:18px; }
.af-eye .i-off { display:none; }
.af-eye[aria-pressed="true"] .i-on { display:none; }
.af-eye[aria-pressed="true"] .i-off { display:inline-flex; }
.af-hint { margin-top:6px; font-size:12px; line-height:1.45; color:var(--text-muted); }
.af-err { font-size:12.5px; line-height:1.4; color:var(--err-ink); }
.af-err:not(:empty) { margin-top:6px; }

.auth-submit { width:100%; min-height:48px; font-size:15px; font-weight:700; }
.auth-google { width:18px; height:18px; }
.auth-submit.is-busy { pointer-events:none; opacity:.85; }
.auth-submit.is-busy::before { content:""; width:15px; height:15px; border-radius:50%; border:2px solid currentColor; border-right-color:transparent;
                               animation:spin .7s linear infinite; }
.auth-card .divider-label { margin:22px 0; }
.af-link { padding:0; border:0; background:none; font:inherit; font-weight:600; color:var(--brand-text); cursor:pointer; text-decoration:underline; text-underline-offset:3px; }
.af-link:hover { color:var(--text); }

.af-rules { list-style:none; margin:4px 0 22px; padding:0; display:grid; gap:7px; font-size:13px; color:var(--text-muted); }
.af-rules li { display:flex; align-items:center; gap:8px; transition:color var(--dur-1); }
.af-rule-ico svg { width:16px; height:16px; }
.af-rule-ico .i-yes, .af-rules li.met .af-rule-ico .i-no { display:none; }
.af-rules li.met .af-rule-ico .i-yes { display:inline-flex; }
.af-rules li.met { color:var(--ok-ink); }

/* phones: the hero shrinks to a header strip with the logo */
@media (max-width:768px) {
    .auth { grid-template-columns:1fr; grid-template-rows:auto 1fr; }
    .auth-hero { flex-direction:row; align-items:center; min-height:56px; padding:max(14px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 14px max(20px, env(safe-area-inset-left)); }
    .auth-hero::after, .auth-copy, .auth-mark { display:none; }
    .auth-logo { height:24px; }
    .auth-panel { align-items:flex-start; padding:36px max(20px, env(safe-area-inset-right)) calc(40px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); }
    .auth-theme { top:8px; right:12px; }
    .af-input { font-size:16px; } /* 16px stops iOS zooming into the field */
    .auth-sub { margin-bottom:22px; }
}
@media (prefers-reduced-motion:reduce) { .auth-submit.is-busy::before { animation:none; } }
@media print { .auth-hero, .auth-theme { display:none; } }
.auth-title + .alert { margin-top:16px; }

/* ---------- 19. UI kit: windows (Hub.drawer: centred on the screen; a bottom sheet on phones) ---------- */
/* .drawer-scrim, then a full-screen .drawer-host (pointer-events:none) that centres the aside.drawer.drawer-window with
   flexbox (no translate(-50%,-50%): it blurs text on odd sizes). The window's height follows its content between
   --window-min-h and --window-max-h; the head and foot stay put and the body scrolls. The rise uses fill mode backwards,
   not both, so the finished animation never holds transform:none over .is-stacked. */
body.panel-open { overflow:hidden; }
.drawer-scrim { position:fixed; inset:0; z-index:190; background:var(--scrim-sheet); animation:fadeIn var(--dur-2) var(--ease-out); transition:opacity var(--dur-sheet) var(--ease-sheet); }
.drawer-host { position:fixed; inset:0; z-index:195; display:flex; align-items:center; justify-content:center; padding:max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); pointer-events:none; }
.drawer { display:flex; flex-direction:column; background:var(--bg-card); }
.drawer-window { position:relative; width:min(var(--window-w),100%); min-height:var(--window-min-h); max-height:var(--window-max-h);
                 border:1px solid var(--border); border-radius:var(--radius-window); box-shadow:var(--sh-window); overflow:hidden;
                 pointer-events:auto; animation:windowIn var(--dur-window) var(--ease-window) backwards;
                 transition:transform var(--dur-hover) var(--ease-window); }
.drawer:focus { outline:none; }
/* a window under a newer one shrinks a little; its host drops under the scrims so the newer scrim dims it */
.is-stacked { transform:scale(.965); }
.drawer-host:has(> .is-stacked) { z-index:190; }
/* the exit (Hub.motion.leave): no pointer while it plays, removed by a timer after --dur-exit */
.drawer-host.is-leaving, .drawer-host.is-leaving .drawer-window, .drawer-scrim.is-leaving { pointer-events:none; }
.drawer-host.is-leaving .drawer-window { animation:windowOut var(--dur-exit) var(--ease-exit) forwards; }
.drawer-scrim.is-leaving { animation:fadeOut var(--dur-exit) var(--ease-exit) forwards; }
.drawer-handle { display:none; }
.drawer-head { flex-shrink:0; display:flex; align-items:flex-start; gap:12px; padding:16px 18px 12px; border-bottom:1px solid var(--border-light); }
.drawer-titles { flex:1; min-width:0; }
.drawer-title { display:flex; align-items:center; gap:8px; font-size:16px; font-weight:800; letter-spacing:-.2px; color:var(--text); }
.drawer-title span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.drawer-sub { margin-top:2px; font-size:12px; color:var(--text-muted); }
.drawer-body { flex:1 1 auto; min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:16px 18px 20px; }
.drawer-foot { flex-shrink:0; display:flex; justify-content:flex-end; gap:10px; padding:12px 18px; border-top:1px solid var(--border-light); }
@keyframes windowIn { from { opacity:0; transform:translateY(16px) scale(.96); } to { opacity:1; transform:none; } }
@keyframes windowOut { to { opacity:0; transform:translateY(8px) scale(.98); } }
@keyframes sheetDown { from { transform:translateY(var(--drag-y, 0px)); } to { transform:translateY(100%); } }
@keyframes fadeOut { to { opacity:0; } }
@media (max-width:600px) {
    .drawer-host { align-items:flex-end; padding:0; }
    .drawer-window { width:100%; min-height:0; max-height:92vh; max-height:92dvh; border-width:1px 0 0;
                     border-radius:var(--radius-window) var(--radius-window) 0 0; padding-bottom:env(safe-area-inset-bottom);
                     animation:sheetUp var(--dur-sheet) var(--ease-sheet) backwards; }
    .drawer-host.is-leaving .drawer-window { animation:sheetDown var(--dur-exit) var(--ease-exit) forwards; }
    .drawer-handle { display:block; flex-shrink:0; width:40px; height:4px; border-radius:2px; background:var(--n-300); margin:8px auto 0; }
    .drawer-head { padding:10px 16px; }
    .drawer-body { padding:14px 16px 18px; }
    .drawer-foot { flex-direction:column-reverse; padding:12px 16px; }
    .drawer-foot .btn { width:100%; min-height:44px; }
}
@media print { .drawer-host, .drawer-scrim { display:none !important; } }

/* ---------- 20. Accounts page (#/accounts) ---------- */
.accounts .page-title { display:flex; align-items:center; gap:10px; }
.accounts .page-title .count-pill { font-size:11px; }
.accounts > [data-r="error"]:not(:empty) { margin-bottom:14px; }
@media (min-width:601px) { .acc-table .tbl-wrap { max-height:calc(100vh - 240px); } } /* phones: cards, no inner scroll */
.acc-username { font:12.5px var(--mono); color:var(--text-2); }
.acc-name, .acc-when { white-space:nowrap; }
.acc-you { margin-left:6px; padding:1px 8px; font-size:11px; vertical-align:1px; }
/* phone fix 6: on a phone (accounts.js sets .acc-compact) one compact row per account: picture, name, position, Actions */
.acc-row { display:flex; align-items:center; gap:10px; min-width:0; text-align:left; }
.acc-row-txt { display:flex; flex-direction:column; gap:2px; min-width:0; }
.acc-row-name { font-weight:700; color:var(--text); overflow-wrap:anywhere; }
.acc-row-pos { font-size:13px; font-weight:400; color:var(--text-muted); overflow-wrap:anywhere; }
.acc-row-off { margin-left:6px; vertical-align:1px; }
@media (max-width:600px) {
    .acc-compact .tbl-cards tbody tr.click { display:flex; align-items:center; gap:8px; min-height:56px; padding:8px 8px 8px 12px; margin-bottom:8px; }
    .acc-compact .tbl-cards td::before { content:none; }
    .acc-compact .tbl-cards td.sticky { flex:1; min-width:0; margin:0; padding:0; border:0; }
    .acc-compact .tbl-cards td.sticky-end { flex:none; padding:0; box-shadow:none; background:none; }
    .acc-compact .tbl-cards tbody tr:not(.tbl-more):not(.tbl-empty-row) { contain-intrinsic-size:auto 64px; }
}
.tbl th.th-plain { width:44px; }
/* a column pinned to the right edge (the row actions): solid, so the scrolling cells pass underneath it */
.tbl th.sticky-end, .tbl td.sticky-end { position:sticky; right:0; z-index:1; background:var(--bg-card); box-shadow:-1px 0 0 var(--border); }
.tbl th.sticky-end { z-index:3; background:var(--tbl-head); }
.tbl th.sticky { background:var(--tbl-head); } /* the pinned first header: the same shade as the rest, light and dark */
.acc-search { margin:0 0 12px; max-width:360px; }
.acc-search .f-input { width:100%; min-width:0; }
.tbl tbody tr:hover td.sticky-end { background:var(--tbl-hover); }
.tbl tr.click:hover td.sticky-end { background:var(--brand-soft); }
.acc-kebab { margin:-6px -4px -6px 0; display:inline-grid; }
.acc-kebab svg { width:16px; height:16px; }

/* row menu */
.acc-menu { min-width:220px; max-width:280px; }
.acc-menu-item { width:100%; background:none; border:0; font:inherit; font-size:13px; text-align:left; cursor:pointer; align-items:flex-start; }
.acc-menu-item svg { width:15px; height:15px; margin-top:2px; color:var(--text-muted); }
.acc-menu-item:focus-visible { outline-offset:-2px; }
.acc-menu-text { display:flex; flex-direction:column; min-width:0; }
.acc-menu-text small { font-size:12px; line-height:1.35; color:var(--text-light); white-space:normal; }
.acc-menu-item.danger { color:var(--err-ink); }
.acc-menu-item.danger svg { color:var(--err); }
.acc-menu-item.danger:hover { background:var(--err-soft); }
.acc-menu-item[aria-disabled="true"] { cursor:not-allowed; opacity:.55; }
.acc-menu-item[aria-disabled="true"]:hover { background:none; }

/* form (inside the drawer) */
.acc-form { display:flex; flex-direction:column; gap:18px; }
.acc-alert:empty { display:none; }
.set-card { border:1px solid var(--card-edge); border-radius:var(--radius-panel); box-shadow:var(--elev-1), var(--highlight); }
.acc-sec { display:flex; flex-direction:column; gap:12px; min-width:0; }
.acc-sec + .acc-sec { padding-top:16px; border-top:1px solid var(--border-light); }
.acc-sec-h { margin:0; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:var(--text-muted); }
.acc-field { display:flex; flex-direction:column; gap:5px; min-width:0; }
.acc-pair { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.acc-label { font-size:12.5px; font-weight:600; color:var(--text); padding:0; }
.acc-input { width:100%; min-width:0; height:36px; }
@media (min-width:769px) { textarea.acc-input { font-size:13px; } } /* beside the 13px fields (the phone keeps 16px) */
select.acc-input { padding-right:6px; cursor:pointer; }
.acc-input:disabled { opacity:.65; cursor:not-allowed; }
.acc-input[aria-invalid="true"] { border-color:var(--err); }
.acc-static code { font:13px var(--mono); color:var(--text); background:var(--bg-2); padding:3px 8px; border-radius:var(--radius-xs); }
.acc-hint { font-size:12px; line-height:1.45; color:var(--text-muted); }
.acc-err { font-size:12.5px; line-height:1.4; color:var(--err-ink); }
.acc-err:empty { display:none; }
.acc-note { font-size:12px; font-weight:600; color:var(--brand-text); }
.acc-note:empty { display:none; }
.acc-lock { display:flex; align-items:center; gap:6px; font-size:12px; color:var(--text-muted); }
.acc-lock svg { width:13px; height:13px; }
/* Reports to, several people in priority order (2026-11-25) */
.acc-rt-list { list-style:none; margin:0 0 6px; padding:0; display:flex; flex-direction:column; gap:4px; }
.acc-rt-list:empty { display:none; }
.acc-rt-chip { display:flex; align-items:center; gap:4px; min-width:0; padding:2px 4px 2px 10px; border:1px solid var(--border); border-radius:var(--radius-xs); background:var(--bg-2); }
.acc-rt-n { font-weight:700; color:var(--brand-text); flex:none; }
.acc-rt-name { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.acc-rt-btn { flex:none; width:32px; height:32px; display:inline-flex; align-items:center; justify-content:center; padding:0; border:0; border-radius:var(--radius-xs); background:transparent; color:var(--text-muted); cursor:pointer; }
.acc-rt-btn:hover:not(:disabled) { background:var(--bg); color:var(--text); }
.acc-rt-btn:disabled { opacity:.35; cursor:not-allowed; }
.acc-rt-btn svg { width:16px; height:16px; }
@media (pointer: coarse) { .acc-rt-btn { width:44px; height:44px; } }
/* Automatic Reports to (2026-11-25): the tag under the list, and Review Reports to */
.acc-auto { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-top:6px; }
.acc-auto:empty { display:none; }
.acc-auto-tag { display:inline-block; padding:2px 8px; border-radius:var(--pill); background:var(--brand-soft); color:var(--brand-text); font-size:11px; font-weight:700; }
.acc-auto-hand { background:var(--bg-2); color:var(--text-2); }
.rr-count { font-size:12px; font-weight:700; color:var(--text-muted); margin-bottom:8px; }
.rr-card { display:flex; flex-direction:column; gap:6px; padding:14px; border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--bg-2); }
.rr-name { font-size:16px; font-weight:800; overflow-wrap:anywhere; }
.rr-where { font-size:12.5px; color:var(--text-muted); overflow-wrap:anywhere; }
.rr-row { display:flex; gap:10px; align-items:baseline; margin-top:6px; }
.rr-label { flex:none; width:76px; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:var(--text-muted); }
.rr-list { min-width:0; overflow-wrap:anywhere; font-size:14px; }
.rr-new .rr-list { font-weight:700; color:var(--brand-text); }
.rr-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.rr-nav { display:flex; justify-content:space-between; gap:8px; margin-top:10px; }
.rr-done { padding:18px 4px; text-align:center; }
.rr-all { margin-bottom:14px; padding-bottom:14px; border-bottom:1px solid var(--border); }
.rr-all .rr-actions { margin-top:8px; }
.rr-all-text { margin:0; font-size:13.5px; }
/* The demo strip (2026-11-27, public/js/demo.js): bottom center, under windows and toasts */
.demo-strip { position:fixed; left:50%; bottom:max(12px, env(safe-area-inset-bottom)); transform:translateX(-50%); z-index:180; display:flex; align-items:center; gap:10px; flex-wrap:wrap; justify-content:center;
  max-width:calc(100vw - 32px); padding:6px 8px 6px 10px; border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--bg-card); box-shadow:var(--elev-2); font-size:12.5px; }
.demo-tag { padding:2px 8px; border-radius:var(--radius-chip-lg); background:var(--brand); color:var(--on-brand); font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; }
.demo-text { color:var(--text-muted); }
.demo-text code { font-size:12px; color:var(--text); }
.demo-as { display:inline-flex; align-items:center; gap:6px; font-weight:700; }
.demo-as select { min-height:32px; padding:2px 6px; border:1.5px solid var(--border); border-radius:var(--radius-sm); background:var(--bg-2); color:var(--text); font:inherit; font-weight:600; }
.demo-exit { min-height:32px; padding:2px 10px; white-space:nowrap; border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--bg-card); color:var(--text); font:inherit; font-weight:700; cursor:pointer; }
@media (max-width: 600px) { .demo-strip { flex-wrap:nowrap; gap:6px; padding:4px 4px 4px 8px; } .demo-text, .demo-as > span { display:none; } .demo-as select { max-width:150px; } .demo-as select, .demo-exit { min-height:44px; font-size:16px; } }
@media (max-width: 600px) { .rr-actions .btn, .rr-nav .btn { min-height:44px; } .rr-actions { flex-direction:column; } .rr-actions .btn { width:100%; } .rr-row { flex-direction:column; gap:2px; } .rr-label { width:auto; } }
/* Organization: a department's branches (2026-11-25) */
.org-branches { display:flex; flex-direction:column; gap:10px; }
.org-tier { display:flex; flex-direction:column; gap:2px; }
.org-branch { display:flex; flex-direction:column; gap:8px; }
.org-branch-in { margin-left:6px; padding-left:12px; border-left:2px solid var(--org-gold-soft); }
.org-branch-head { display:flex; align-items:center; gap:8px; }
.org-team { border:1px solid var(--border); border-radius:var(--radius-xs); background:var(--bg-2); }
.org-team-sum { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:44px; padding:6px 10px; cursor:pointer; font-size:13.5px; font-weight:700; list-style:none; }
.org-team-sum::-webkit-details-marker { display:none; }
.org-team-sum::before { content:'\25B8'; margin-right:6px; color:var(--text-muted); flex:none; }
.org-team[open] > .org-team-sum::before { content:'\25BE'; }
.org-team-name { flex:1; min-width:0; overflow-wrap:anywhere; }
.org-team-body { padding:0 10px 8px; }
.acc-perms { margin:0; padding:0; border:0; display:flex; flex-direction:column; gap:4px; min-width:0; }
.acc-perms legend { margin-bottom:4px; }
.acc-check { display:flex; align-items:flex-start; gap:9px; font-size:13px; color:var(--text-2); cursor:pointer; line-height:1.4; }
.acc-check input { margin:2px 0 0; width:15px; height:15px; flex-shrink:0; accent-color:var(--brand); }
.acc-check:has(input:disabled) { cursor:not-allowed; }
.acc-check input:disabled + span { color:var(--text-muted); }
.acc-radios { display:flex; flex-wrap:wrap; gap:6px 18px; }
/* the scope picker: departments, with their sub-departments nested underneath */
.acc-scope-tree { columns:2; column-gap:18px; padding:12px 14px 2px; border:1px solid var(--border-light); border-radius:var(--radius); background:var(--bg-2); }
.acc-scope-dept { display:flex; flex-direction:column; gap:6px; min-width:0; margin-bottom:10px; break-inside:avoid; }
.acc-scope-dept > .acc-check { font-weight:600; color:var(--text); }
.acc-scope-old { padding-bottom:10px; border-bottom:1px solid var(--border-light); }
.acc-scope-old-h { font-size:12px; font-weight:600; color:var(--text-muted); }
.acc-link { padding:0; border:0; background:none; font:inherit; font-weight:600; color:var(--brand-text); text-decoration:underline; text-underline-offset:2px; cursor:pointer; }
.acc-link:hover { color:var(--text); }
.acc-link:focus-visible { outline:2px solid var(--brand); outline-offset:2px; border-radius:var(--radius-xs); }
/* the Edit drawer's last section: delete this account */
.acc-danger { display:flex; flex-direction:column; gap:8px; padding-top:16px; margin-top:18px; border-top:1px solid var(--border-light); }
.acc-danger .btn { align-self:flex-start; }
/* fill-space 2 (2026-11-14): the account window held a 2,900px form in 560px with the rest of a wide screen empty; from
   1280px it opens 1040px wide and its sections (and salary, reset codes, delete) flow in two columns */
@media (min-width:1280px) {
    .drawer-window.acc-drawer { --window-w:1040px; }
    .acc-drawer .drawer-body > .acc-body, .acc-drawer .drawer-body > .acc-form { display:block; columns:2; column-gap:32px; }
    .acc-drawer .acc-body > .acc-form { display:contents; }
    .acc-drawer .acc-sec, .acc-drawer .acc-salary, .acc-drawer .acc-recovery, .acc-drawer .acc-danger { margin:0 0 18px; }
    /* a long section (Role and permissions) may continue in the next column, between its rows, never under its heading */
    .acc-drawer .acc-sec > *, .acc-drawer .acc-salary > *, .acc-drawer .acc-recovery > *, .acc-drawer .acc-danger > * { break-inside:avoid; }
    .acc-drawer .acc-sec-h { break-after:avoid; }
}
.acc-scope-reset { display:flex; flex-wrap:wrap; align-items:center; gap:4px 10px; font-size:12px; color:var(--text-muted); }
.acc-scope-subs { display:flex; flex-direction:column; gap:5px; margin-left:7px; padding-left:16px; border-left:1px solid var(--border); }
.acc-must { margin-top:2px; }
.acc-unlink-hint { margin:2px 0 0 24px; }
.acc-seg { align-self:flex-start; }
.acc-pw { position:relative; }
.acc-pw .acc-input { padding-right:44px; }
.acc-eye { position:absolute; top:4px; right:4px; }
.acc-eye .i-off { display:none; }
.acc-eye[aria-pressed="true"] .i-on { display:none; }
.acc-eye[aria-pressed="true"] .i-off { display:inline-flex; }

/* the Active switch */
.acc-switch { position:relative; display:inline-flex; align-items:center; gap:10px; font-size:13px; font-weight:600; color:var(--text); cursor:pointer; align-self:flex-start; }
.acc-switch input { position:absolute; opacity:0; width:1px; height:1px; margin:0; }
.acc-track { position:relative; width:44px; height:26px; border-radius:var(--pill); background:var(--n-300); flex-shrink:0;
             transition:background var(--dur-fast) var(--ease-smooth); }
.acc-track::after { content:""; position:absolute; top:2px; left:2px; width:22px; height:22px; border-radius:50%; background:var(--on-solid);
                    box-shadow:var(--elev-1); transition:transform var(--dur-hover) var(--ease-spring); }
.acc-switch input:checked + .acc-track { background:var(--brand); }
.acc-switch input:checked + .acc-track::after { transform:translateX(18px); }
.acc-switch input:focus-visible + .acc-track { outline:2px solid var(--brand); outline-offset:2px; }
.acc-switch input:disabled + .acc-track { opacity:.5; }
.acc-switch:has(input:disabled) { cursor:not-allowed; }

/* confirmations and the one-time password */
.acc-confirm { margin:0 0 12px; font-size:13.5px; line-height:1.5; color:var(--text); }
.acc-confirm:last-child { margin-bottom:0; }
/* Work left behind (2026-11-20): what a disable leaves hanging, and who takes over */
.lb-list { list-style:none; margin:0 0 12px; padding:0; display:flex; flex-direction:column; gap:8px; }
.lb-list li { display:flex; gap:10px; align-items:flex-start; font-size:13.5px; line-height:1.45; color:var(--text); }
.lb-list li > i, .lb-list li > svg { flex:none; width:16px; height:16px; margin-top:2px; color:var(--text-muted); }
.lb-items { display:block; font-size:12px; color:var(--text-muted); overflow-wrap:anywhere; }
.lb-note { margin:0 0 12px; }
.lb-heir { margin-top:4px; }
.lb-pick-list { max-height:228px; }
.acc-reveal { display:flex; flex-direction:column; gap:8px; }
.acc-reveal-row { display:flex; gap:8px; }
.acc-reveal-pw { flex:1; min-width:0; height:42px; font:600 16px var(--mono); letter-spacing:.04em; color:var(--text); background:var(--bg-2); }
.acc-reveal-row .btn { flex-shrink:0; }
.acc-copied { min-height:18px; font-size:12px; font-weight:600; color:var(--ok-ink); }
.acc-owner { margin-left:6px; vertical-align:1px; }
.acc-owner svg { width:11px; height:11px; }

/* a plain notice (not a warning): e.g. "Viewing is recorded in the audit log." */
.alert-note { background:var(--brand-soft); color:var(--text-2); border-color:var(--border); font-weight:500; line-height:1.45; }

@media (max-width:600px) {
    .acc-pair { grid-template-columns:1fr; }
    .acc-scope-tree { columns:1; }
    .accounts .page-actions, .accounts .page-actions .btn { width:100%; }
    .acc-kebab { margin:0; }
    .acc-input { height:44px; }
}

/* ---------- 21. My schedule, Account settings, Audit log ---------- */
/* the name + avatar in the sidebar user block is a link to Account settings */
.sb-me { flex:1; min-width:0; display:flex; align-items:center; gap:10px; margin:-4px; padding:4px; border:0; border-radius:var(--radius); background:none; color:inherit; font:inherit; text-align:left; text-decoration:none; cursor:pointer; }
.sb-me:hover { background:var(--navy-hover); }
.sb-who .sb-role { display:block; }
.profile-note { margin:14px 0 0; font-size:12.5px; }
.sb-me:focus-visible { outline:2px solid var(--on-navy); outline-offset:-2px; }
@media (min-width:769px) and (max-width:1100px) {
    .sb-me { flex:none; margin:0; padding:2px; border-radius:50%; }
}

/* shared: label / value list */
.ms-dl { margin:0; display:grid; gap:0; }
.ms-dl-row { display:grid; grid-template-columns:minmax(110px,32%) minmax(0,1fr); gap:12px; padding:9px 0; border-bottom:1px solid var(--border-light); font-size:13.5px; }
.ms-dl-row:last-child { border-bottom:0; }
.ms-dl dt { font-weight:600; color:var(--text-muted); }
.ms-dl dd { margin:0; color:var(--text); min-width:0; overflow-wrap:anywhere; }

/* shared: a skeleton block and a calm empty line (Calendar, Finances, Accounts, My calendar's team card) */
.ms-skel { height:150px; border-radius:var(--radius); }
.ms-empty { padding:28px 12px; text-align:center; font-size:13.5px; color:var(--text-muted); }

/* Account settings */
.set-stack { display:flex; flex-direction:column; gap:14px; max-width:760px; min-width:0; }
/* 2026-11-12 (no wasted space): wide screens put the settings cards side by side (fill-space: from 960px, not 1280,
   so a 1000px screen has no band beside a 760px stack) */
@media (min-width:960px) { .set-stack { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); align-items:start; max-width:none; } }
/* fill-space (2026-11-13): the side column (Telegram messages, Change password, reset codes, Google) stacks beside
   Profile instead of leaving a tall empty column; narrower screens keep one stack.
   fill-space 2 (2026-11-14): two column hosts; settings.js arrange() moves cards between them so both end at about the
   same height (no 500px band under Profile beside a long Telegram card) */
.set-main, .set-side { display:contents; }
@media (min-width:960px) {
    .set-main, .set-side { display:flex; flex-direction:column; gap:14px; min-width:0; }
}
/* the Telegram switches in two newspaper columns on wide screens (half the card's height); a group never splits */
@media (min-width:1280px) {
    .set-tg-msgs .tgp-groups { display:block; columns:2; column-gap:28px; }
    .set-tg-msgs .tgp-group { break-inside:avoid; margin-bottom:14px; }
    .set-recovery .rc-sec { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); }
    .set-recovery .rc-sec > :not(.rc-row) { grid-column:1 / -1; }
}
.set-recovery .rc-sec { margin-top:0; padding-top:0; border-top:0; }
.set-recovery .rc-sec-head .acc-label { font-size:14px; font-weight:800; color:var(--text); }
/* Change password: a header row that opens and closes the form (closed by default) */
.set-disc-head { display:flex; align-items:center; gap:4px; }
.set-disc { flex:1; min-width:0; display:flex; align-items:center; gap:12px; margin:-6px; padding:6px; border:0; border-radius:var(--radius);
            background:none; color:inherit; font:inherit; text-align:left; cursor:pointer; transition:background var(--dur-1) var(--ease-out); }
.set-disc:hover { background:var(--bg-2); }
.set-disc-text { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.set-disc-text .card-sub { margin:0; }
.set-chevron { width:18px; height:18px; flex-shrink:0; color:var(--text-muted); transition:transform var(--dur-2) var(--ease-out); }
.set-disc[aria-expanded="true"] .set-chevron { transform:rotate(180deg); }
.set-disc-head .info-tip { margin:0 0 0 6px; }
.set-disc-body { padding-top:14px; margin-top:12px; border-top:1px solid var(--border-light); }
@media (prefers-reduced-motion:reduce) { .set-chevron { transition:none; } }
.set-form { max-width:420px; padding-top:6px; }
.set-form .af-field:last-of-type { margin-bottom:20px; }
.set-submit { min-height:44px; }
.set-submit.is-busy { pointer-events:none; opacity:.85; }
.set-submit.is-busy::before { content:""; width:15px; height:15px; border-radius:50%; border:2px solid currentColor; border-right-color:transparent;
                              animation:spin .7s linear infinite; }
.set-google { display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; padding-top:4px; }
.set-google-state { display:flex; flex-direction:column; align-items:flex-start; gap:8px; min-width:0; flex:1 1 220px; }
.set-hint { margin:0; font-size:13px; line-height:1.5; color:var(--text-muted); }
.set-confirm { margin:0; font-size:13.5px; line-height:1.5; color:var(--text); }
@media (max-width:900px) { .set-form { max-width:none; } }
@media (max-width:600px) { .set-google .btn { width:100%; } .set-form .btn { width:100%; } }
@media (prefers-reduced-motion:reduce) { .set-submit.is-busy::before { animation:none; } }
/* Telegram messages (Hub.tgPrefs): a switch per message type, grouped. Touch: 44px rows and the pressed tint, in the Device-aware section */
.set-tg-host { display:contents; }
.tgp-hint { margin:2px 0 4px; }
.tgp-groups { display:flex; flex-direction:column; gap:14px; padding-top:6px; }
.tgp-group { display:flex; flex-direction:column; min-width:0; }
.tgp-group-title { margin:0 0 2px; font-size:11px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--text-muted); }
/* the whole row is the switch: its text is the name, Space and Enter flip it */
.tgp-row { display:flex; align-items:center; justify-content:space-between; gap:14px; width:100%; min-height:40px; margin:0; padding:6px 8px; border:0;
           border-top:1px solid var(--border-light); border-radius:0; background:none; color:var(--text); font:inherit; font-size:14px; text-align:left; cursor:pointer;
           transition:background var(--dur-fast) var(--ease-smooth); }
.tgp-group-title + .tgp-row { border-top-color:transparent; }
.tgp-label { flex:1; min-width:0; line-height:1.4; }
.tgp-track { position:relative; width:44px; height:26px; border-radius:var(--pill); background:var(--n-300); flex-shrink:0;
             transition:background var(--dur-fast) var(--ease-smooth); }
.tgp-track::after { content:""; position:absolute; top:2px; left:2px; width:22px; height:22px; border-radius:50%; background:var(--on-solid);
                    box-shadow:var(--elev-1); transition:transform var(--dur-hover) var(--ease-spring); }
.tgp-row[aria-checked="true"] .tgp-track { background:var(--brand); }
.tgp-row[aria-checked="true"] .tgp-track::after { transform:translateX(18px); }
.tgp-row:focus-visible { outline:2px solid var(--brand); outline-offset:-2px; border-radius:var(--radius-xs); }
.tgp-row:disabled { cursor:not-allowed; color:var(--text-muted); }
.tgp-row:disabled .tgp-track { opacity:.5; }
@media (hover:hover) { .tgp-row:not(:disabled):hover { background:var(--bg-2); } }
@media (max-width:600px) { .tgp-row { min-height:44px; } }
@media (prefers-reduced-motion:reduce) { .tgp-row, .tgp-track, .tgp-track::after { transition:none; } }

/* Audit log */
.audit .page-title { display:flex; align-items:center; gap:10px; }
.audit .page-title .count-pill { font-size:11px; }
.audit > [data-r="error"]:not(:empty) { margin-bottom:14px; }
@media (min-width:601px) { .au-table .tbl-wrap { max-height:calc(100vh - 270px); } .au-table .skel-table { height:min(300px, calc(100vh - 270px)); } }
.au-when { white-space:nowrap; }
.au-who, .au-account { font:12.5px var(--mono); color:var(--text-2); }
.au-changes { font-size:12.5px; line-height:1.45; color:var(--text-2); overflow-wrap:anywhere; }
.au-more { display:flex; justify-content:center; padding:16px 0 4px; }
@media (max-width:600px) { .audit .page-actions, .audit .page-actions .btn, .au-more .btn { width:100%; } }
@media print { .au-more { display:none; } }

/* ---------- 22. UI kit: info tip, the (i) that explains a part of the page (Hub.infoTip) ---------- */
.info-tip { display:inline-grid; place-items:center; flex:none; width:24px; height:24px; padding:0; margin:-4px 0 -4px 2px; border:0; border-radius:50%;
            background:none; color:var(--text-muted); cursor:pointer; vertical-align:middle; font:inherit; text-transform:none; letter-spacing:0;
            transition:color var(--dur-1) var(--ease-out), background var(--dur-1) var(--ease-out); }
.info-tip svg { width:16px; height:16px; }
.info-tip:hover, .info-tip[aria-expanded="true"] { color:var(--brand-text); background:var(--bg-2); }
.info-tip:focus-visible { color:var(--brand-text); outline-offset:0; }
.info-pop { width:max-content; max-width:min(300px, calc(100vw - 32px)); padding:12px 14px; background:var(--bg-card); border:1px solid var(--card-edge);
            border-radius:var(--radius-panel); box-shadow:var(--elev-2), var(--highlight); font-size:12.5px; line-height:1.5; color:var(--text-2); }
.info-pop[role="tooltip"] { pointer-events:none; }
.info-pop-title { margin-bottom:4px; font-size:12.5px; font-weight:700; color:var(--text); }
.info-pop-body p { margin:0; }
.info-pop-body p + p { margin-top:6px; }
.info-pop-body strong { color:var(--text); font-weight:600; }
@media (hover:none) { .info-tip { width:28px; height:28px; } } /* a bigger tap target on touch screens */
@media print { .info-tip { display:none !important; } }

/* where the tips sit on Today */
.today-titlerow { display:flex; align-items:center; gap:4px; }
.today-titlerow .greeting { min-width:0; }
.today-dateline > .info-tip { margin:-4px 0 -4px -6px; }
.kpi-label-row { display:flex; align-items:center; flex-wrap:wrap; gap:0 2px; margin-bottom:2px; padding-right:28px; }
.kpi-label-row .kpi-label { margin:0; padding:0; }
.kpi-label-row .info-tip { position:relative; z-index:2; }
.f-buttons .info-tip { margin:0; }
.card-title .info-tip { margin-top:-5px; margin-bottom:-5px; }

/* ---------- 23. "Forgot password?" requests (sign-in page, Account settings, Accounts -> Password requests) ---------- */
/* the red count of open requests on "Accounts" in the menu: on the icon's corner, so it reads on the rail and the drawer */
.nav-badge { position:absolute; top:3px; left:24px; min-width:17px; height:17px; padding:0 5px; display:grid; place-items:center;
             border-radius:var(--pill); background:var(--err); color:var(--on-solid); font-size:10.5px; font-weight:700; line-height:1;
             box-shadow:0 0 0 2px var(--sidebar-bg); pointer-events:none; }
@media (min-width:769px) and (max-width:1100px) { .nav-badge { left:calc(50% + 2px); } }

/* a text button that reads as a link (sign-in page, settings) */
.auth-link { display:inline-flex; align-items:center; gap:6px; padding:2px 0; border:0; background:none; font:inherit; font-size:13.5px; font-weight:600;
             color:var(--brand-text); cursor:pointer; text-decoration:underline; text-decoration-color:transparent; text-underline-offset:3px;
             transition:text-decoration-color var(--dur-1) var(--ease-out); }
.auth-link:hover { text-decoration-color:currentColor; }
.auth-link svg { width:15px; height:15px; }
.auth-forgot { display:flex; justify-content:center; margin-top:14px; }

/* the two questions: what you need, how to hear back */
.fp-q { margin:0 0 16px; padding:0; border:0; display:flex; flex-direction:column; gap:8px; min-width:0; }
.fp-legend { margin-bottom:8px; padding:0; font-size:13px; font-weight:600; color:var(--text); }
.fp-opt { display:flex; align-items:flex-start; gap:10px; padding:10px 12px; border:1px solid var(--border); border-radius:var(--radius);
          background:var(--bg-card); cursor:pointer; transition:border-color var(--dur-1) var(--ease-out), background var(--dur-1) var(--ease-out); }
.fp-opt:hover { border-color:var(--n-300); }
.fp-opt:has(input:checked) { border-color:var(--brand); background:var(--brand-soft); }
.fp-opt:has(input:focus-visible) { outline:2px solid var(--brand); outline-offset:2px; }
.fp-opt input { margin:2px 0 0; width:16px; height:16px; flex-shrink:0; accent-color:var(--brand); }
.fp-opt-text { display:flex; flex-direction:column; gap:2px; min-width:0; font-size:13.5px; color:var(--text); }
.fp-opt-text b { font-weight:600; }
.fp-opt-text small { font-size:12px; line-height:1.4; color:var(--text-muted); }
.fp-note { display:flex; align-items:flex-start; gap:7px; margin:2px 0 0; font-size:12px; line-height:1.45; color:var(--text-muted); }
.fp-note svg { width:14px; height:14px; margin-top:2px; flex-shrink:0; }
.fp-lead { margin:0 0 14px; font-size:13.5px; line-height:1.5; color:var(--text-2); }
.fp-alert:empty { display:none; }
.fp-alert { margin-bottom:16px; }
.fp-panel .auth-title:focus { outline:none; }
.fp-panel .fp .af-field { margin-bottom:18px; }
.fp-panel .fp-q:last-of-type { margin-bottom:22px; }
/* Ask a developer (2026-12-04): the tick box under the Telegram field; what they typed in a request */
.fp-check { align-items:center; min-height:44px; margin:-6px 0 18px; }
.fp-check input { margin:0; }
.req-typed { overflow-wrap:anywhere; }
.req-meta .badge { white-space:normal; }


/* settings: the submit button with "Forgot password?" beside it */
.set-actions { display:flex; align-items:center; flex-wrap:wrap; gap:10px 18px; }
@media (max-width:600px) { .set-actions { flex-direction:column; align-items:stretch; } .set-forgot { align-self:center; } }

/* Accounts page: the two tabs and the request list */
.acc-tabs { margin:0 0 16px; }
.acc-tabs button { display:inline-flex; align-items:center; gap:7px; }
.req-count { min-width:18px; height:18px; padding:0 5px; display:inline-grid; place-items:center; border-radius:var(--pill);
             background:var(--err); color:var(--on-solid); font-size:10.5px; font-weight:700; line-height:1; }
.req-view { display:flex; flex-direction:column; gap:14px; }
.req-view[hidden] { display:none; }
.req-check { display:flex; align-items:center; gap:8px; margin:0; }
.req-check svg { width:16px; height:16px; flex-shrink:0; }
.req-sec .card-title .count-pill { font-size:11px; }
.req-list { display:flex; flex-direction:column; }
.req-item { display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-areas:"who actions" "meta actions"; gap:6px 16px;
            padding:14px 0; border-top:1px solid var(--border-light); }
.req-item:first-child { border-top:0; padding-top:4px; }
.req-who { grid-area:who; display:flex; align-items:center; flex-wrap:wrap; gap:6px 10px; min-width:0; }
.req-name { display:flex; align-items:center; flex-wrap:wrap; gap:4px 8px; min-width:0; font-size:14px; color:var(--text); }
.req-meta { grid-area:meta; margin:0; display:grid; grid-template-columns:auto minmax(0,1fr); gap:3px 14px; font-size:13px; }
.req-meta > div { display:contents; }
.req-meta dt { font-weight:600; color:var(--text-muted); }
.req-meta dd { margin:0; color:var(--text-2); min-width:0; overflow-wrap:anywhere; }
.req-warn { display:inline-block; margin-left:4px; font-size:12px; font-weight:600; color:var(--warn-ink); }
.req-tg { font-weight:600; color:var(--brand-text); }
.req-note { white-space:pre-wrap; }
.req-actions { grid-area:actions; display:flex; flex-direction:column; align-items:stretch; gap:6px; align-self:start; }
.req-item.is-done .req-name b { color:var(--text-2); }
.req-note-box { height:auto; min-height:84px; padding-top:8px; resize:vertical; font:inherit; font-size:13.5px; }
@media (max-width:700px) {
    .req-item { grid-template-columns:minmax(0,1fr); grid-template-areas:"who" "meta" "actions"; }
    .req-actions { flex-direction:row; flex-wrap:wrap; }
    .req-actions .btn { flex:1 1 auto; }
    .acc-tabs { display:flex; }
    .acc-tabs button { flex:1; justify-content:center; }
}
@media print { .nav-badge, .acc-tabs, .req-actions { display:none !important; } }

/* ---------- 24. Profile pictures (Hub.avatar): a photo, an emoji or the initial ---------- */
.av { display:inline-grid; place-items:center; flex-shrink:0; border-radius:50%; overflow:hidden; vertical-align:middle;
      background:var(--brand-soft); color:var(--brand-text); border:1px solid var(--border); font-weight:700; line-height:1; user-select:none; }
.av-xs { width:24px; height:24px; font-size:11px; }
.av-sm { width:32px; height:32px; font-size:13px; }
.av-lg { width:80px; height:80px; font-size:30px; border-width:2px; }
.av-emoji { background:var(--bg-2); }
.av-xs.av-emoji { font-size:14px; }
.av-sm.av-emoji { font-size:18px; }
.av-lg.av-emoji { font-size:44px; }
.av-img { background:var(--bg-2); }
.av img, .sb-user .avatar img { width:100%; height:100%; object-fit:cover; display:block; }
/* a name with its picture in front (tables, lists) */
.av-row { display:inline-flex; align-items:center; gap:8px; }
.attn-who .av { margin-right:7px; }
/* the sidebar's own .avatar (drivo.css) holding a photo or an emoji */
.sb-user .avatar { overflow:hidden; }
.sb-user .avatar.av-emoji { font-size:24px; }
@media (min-width:769px) and (max-width:1100px) { .sb-user .avatar.av-emoji { font-size:21px; } }

/* Your details (profile panel) */
.profile-head { display:flex; align-items:center; gap:14px; margin-bottom:12px; }
.profile-who { display:flex; flex-direction:column; gap:3px; min-width:0; font-size:15px; color:var(--text); }

/* Account settings: Profile card */
.set-me { display:flex; align-items:center; gap:16px; padding:4px 0 16px; }
.set-me-text { display:flex; flex-direction:column; align-items:flex-start; gap:4px; min-width:0; font-size:14.5px; color:var(--text); }
.set-me-text .btn { margin-top:6px; }
.set-tg { display:flex; flex-direction:column; gap:6px; padding-top:14px; border-top:1px solid var(--border-light); }
.set-tg-row { display:flex; gap:8px; }
.set-tg-row .acc-input { flex:1; height:36px; }
.set-tg-row .btn { flex-shrink:0; min-height:36px; }
.set-tg .acc-input[aria-invalid="true"] { border-color:var(--err); }

/* the picture editor */
.av-edit { display:flex; flex-direction:column; align-items:stretch; gap:14px; }
.av-edit-preview { display:flex; justify-content:center; }
.av-edit-tabs { align-self:center; }
.av-edit-hint { margin-top:8px; }
.av-grid { display:grid; grid-template-columns:repeat(8, minmax(0,1fr)); gap:4px; }
.av-cell { aspect-ratio:1; min-height:36px; display:grid; place-items:center; padding:0; border:1px solid transparent; border-radius:var(--radius-sm);
           background:none; font-size:21px; line-height:1; cursor:pointer; transition:background var(--dur-1) var(--ease-out), border-color var(--dur-1); }
.av-cell:hover { background:var(--bg-2); }
.av-cell[aria-pressed="true"] { border-color:var(--brand); background:var(--brand-soft); }
.av-edit-own { margin-top:12px; display:block; }
.av-own { max-width:120px; margin-top:5px; font-size:20px; text-align:center; }
.av-edit-remove { display:flex; justify-content:center; padding-top:4px; border-top:1px solid var(--border-light); }
.av-edit-remove .auth-link { color:var(--err-ink); }
@media (max-width:600px) { .av-grid { grid-template-columns:repeat(6, minmax(0,1fr)); } .set-tg-row { flex-direction:column; } .set-tg-row .acc-input { flex:none; height:44px; } }
@media print { .av img { print-color-adjust:exact; } }

/* ---------- "Online now" and the step-by-step guides (2026-12-01; kit/presence.js, kit/guides.js) ----------
   The green dots themselves are one generated <style id="presence-dots"> (Hub.presence), using var(--ok) and var(--bg-card). */
.dk-dot { flex:none; width:9px; height:9px; margin-top:6px; border-radius:50%; background:var(--n-300); }
.dk-dot.dk-on { background:var(--ok); }
.dk-how { display:flex; flex-direction:column; gap:12px; }
.dk-how-lead, .dk-how-note { margin:0; font-size:13.5px; line-height:1.5; color:var(--text-2); }
.dk-steps { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:16px; margin:0; padding:0; list-style:none; counter-reset:dk; }
.dk-step { display:flex; flex-direction:column; gap:8px; min-width:0; }
.dk-step p { margin:0; font-size:13.5px; line-height:1.5; color:var(--text); }
.dk-step p::before { counter-increment:dk; content:counter(dk) ". "; font-weight:800; }
.dk-shot { display:block; width:100%; height:auto; border:1px solid var(--border); border-radius:var(--radius-sm); }
.pw-online { display:flex; align-items:center; gap:6px; }

/* ---------- Work status (2026-12-02; kit/work-status.js) ---------- */
.ws-dot { display:inline-block; flex:none; width:10px; height:10px; border-radius:50%; }
.ws-dot-off { background:transparent; box-shadow:inset 0 0 0 1.5px var(--n-300); }
.ws-btn { gap:8px; }
.ws-btn svg { width:16px; height:16px; opacity:.7; }
.ws-pop { min-width:230px; padding:6px; border:1px solid var(--border); border-radius:var(--radius); background:var(--bg-card); box-shadow:var(--elev-2); }
.ws-list { display:flex; flex-direction:column; gap:2px; }
.ws-item { display:flex; align-items:center; gap:10px; width:100%; min-height:38px; padding:8px 10px; border:0; border-radius:var(--radius-sm); background:none; color:var(--text); font:inherit; font-size:14px; text-align:left; cursor:pointer; }
.ws-item span:not(.ws-dot) { flex:1; }
.ws-item svg { width:16px; height:16px; color:var(--brand); }
.ws-item.is-on { font-weight:700; background:var(--bg-2); }
.ws-item:focus-visible { outline:2px solid var(--brand); outline-offset:-2px; }
@media (hover:hover) { .ws-item:hover { background:var(--bg-2); } }
.ws-sep { height:1px; margin:4px 2px; background:var(--border-light); }
.ws-q { margin:0; font-size:14px; line-height:1.5; color:var(--text-2); }
.pw-status { display:flex; align-items:center; gap:6px; }
:where([data-input="touch"]) .ws-item { min-height:44px; }
@media (max-width:600px) { .ws-btn .ws-btn-text { max-width:110px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } }
.pw-online .dk-dot { margin-top:0; }

/* ---------- Step-by-step guides on FAQ & Feedback (2026-12-01; kit/guides.js; the steps reuse .dk-how) ---------- */
.hp-guide-btns { display:flex; flex-wrap:wrap; gap:8px; }
.gd-do { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; padding:12px; border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--bg-2); }
.gd-hint { font-size:13px; line-height:1.45; color:var(--text-2); }
.gd-done { display:inline-flex; align-items:center; gap:6px; font-size:14px; font-weight:700; color:var(--ok-ink); }
.gd-done svg { width:18px; height:18px; }
.gd-skel { display:block; width:160px; height:36px; }
@media (max-width:600px) { .hp-guide-btns .btn { flex:1 1 100%; justify-content:center; } }

/* ---------- What's new (2026-12-01; kit/whats-new.js, shared/whats-new.js) ---------- */
.wn { display:flex; flex-direction:column; gap:14px; }
.wn-slide { display:flex; flex-direction:column; gap:10px; min-height:440px; animation:routeIn var(--dur-route) var(--ease-smooth) backwards; }
.wn-pic { display:flex; align-items:center; justify-content:center; height:200px; flex:none; padding:12px; border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--bg-2); overflow:hidden; }
.wn-img { display:block; width:auto; max-width:100%; height:100%; border-radius:var(--radius-xs); }
.wn-title { margin:4px 0 0; font-size:18px; font-weight:800; color:var(--text); }
.wn-text { margin:0; font-size:14px; line-height:1.55; color:var(--text-2); }
.wn-acts { display:flex; flex-wrap:wrap; gap:8px; margin-top:2px; }
.wn-done { display:inline-flex; align-items:center; gap:6px; font-size:13.5px; font-weight:700; color:var(--ok-ink); }
.wn-done svg { width:18px; height:18px; }
.wn-list { display:flex; flex-direction:column; gap:8px; width:100%; max-width:340px; margin:0; padding:0; list-style:none; }
.wn-list li { display:flex; align-items:center; gap:10px; padding:8px 10px; border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--bg-card); font-size:13.5px; font-weight:600; color:var(--text); }
.wn-list-ic { display:inline-grid; place-items:center; flex:none; width:28px; height:28px; border-radius:50%; background:var(--brand-soft); color:var(--brand); }
.wn-list-ic svg { width:16px; height:16px; }
.wn-foot { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-top:12px; border-top:1px solid var(--border-light); }
.wn-dots { display:flex; gap:6px; }
.wn-dot { width:8px; height:8px; padding:0; border:0; border-radius:50%; background:var(--n-300); cursor:pointer; }
.wn-dot.is-on { background:var(--brand); }
.wn-btns { display:flex; gap:8px; }
.tour-card-btns { display:flex; flex-wrap:wrap; gap:8px; }
.set-card.is-pointed { outline:2px solid var(--brand); outline-offset:2px; }
:where([data-input="touch"]) .wn-dot { width:12px; height:12px; }
@media (max-width:600px) { .wn-slide { min-height:0; } .wn-pic { height:160px; } .wn-acts .btn { flex:1 1 100%; justify-content:center; } .wn-profile { padding:12px 14px; } }
@media (prefers-reduced-motion: reduce) { .wn-slide { animation:none; } }

/* ---------- 25. Discussions, announcements and attachments (Task 17) ---------- */
/* the counts on "Discussions" and "Announcements": the sidebar's light blue, not the red of a waiting request */
.nav-badge-info { background:var(--nav-accent); color:var(--sidebar-bg); }

/* the banner on every page: a company announcement still waiting for "I've read this" */
.comm-banner { display:flex; flex-direction:column; gap:6px; padding:20px 36px 0; }
.comm-banner[hidden] { display:none; }
.comm-banner:not([hidden]) + .page { padding-top:16px; }
.comm-banner-item { display:flex; align-items:center; gap:12px; flex-wrap:wrap; padding:10px 14px; border:1px solid var(--border);
                    border-left:3px solid var(--brand); border-radius:var(--radius); background:var(--brand-soft); color:var(--text); font-size:13px; }
.comm-banner-item > svg { width:18px; height:18px; flex-shrink:0; color:var(--brand-text); }
.comm-banner-text { flex:1 1 260px; min-width:0; display:flex; flex-wrap:wrap; gap:2px 8px; overflow-wrap:anywhere; }
.comm-banner-text b { font-weight:700; }
.comm-banner-text span { color:var(--text-2); }
.comm-banner-actions { display:flex; gap:8px; flex-shrink:0; }
.comm-banner-more { font-size:12px; color:var(--text-muted); padding-left:4px; }
body.is-bare .comm-banner { display:none; }

/* shared: who wrote it, pages, the formatted body, a post */
.comm { display:flex; flex-direction:column; gap:14px; min-width:0; } /* 2026-11-12: full width, as the platform's pages (no wasted space) */
.comm [data-r="topic"], .comm [data-r="item"] { display:flex; flex-direction:column; gap:14px; min-width:0; }
.comm .page-head { margin-bottom:0; }
.comm .page-title { display:flex; align-items:center; flex-wrap:wrap; gap:4px 6px; overflow-wrap:anywhere; }
.comm-crumbs { margin-bottom:-6px; }
.comm-crumbs a { color:var(--brand-text); font-weight:600; }
.comm-crumbs a:hover { text-decoration:underline; }
.dz-seg { margin-bottom:12px; }
.comm-seg { align-self:flex-start; flex-wrap:wrap; max-width:100%; overscroll-behavior-x:contain; }
.comm-seg a { padding:6px 14px; font:600 13px var(--font); color:var(--text-muted); white-space:nowrap; }
.comm-seg a:hover { color:var(--text); }
.comm-seg a.active { background:var(--bg-card); color:var(--brand-text); font-weight:700; box-shadow:var(--sh-sm), 0 0 0 1px var(--seg-edge); }
.comm-who { display:inline-flex; align-items:center; gap:10px; min-width:0; }
.comm-who-text { display:flex; flex-direction:column; min-width:0; line-height:1.3; }
.comm-who-text b { font-size:13.5px; font-weight:600; color:var(--text); overflow-wrap:anywhere; }
.comm-who-pos { font-size:12px; color:var(--text-muted); }
.comm-former { font-style:italic; color:var(--text-muted) !important; }
.comm-deleted { font-style:italic; color:var(--text-muted); font-weight:500; }
.comm-new { flex-shrink:0; padding:2px 9px; border-radius:var(--pill); background:var(--brand); color:var(--on-brand); font-size:11.5px; font-weight:700; }
.comm-pager { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:4px 0; }
.comm-pager-n { font-size:12px; color:var(--text-muted); }
.comm-post { display:flex; flex-direction:column; gap:10px; padding:14px 16px; background:var(--bg-card); border:1px solid var(--border);
             border-radius:var(--radius-card); box-shadow:var(--elev-1); min-width:0; }
.comm-post.is-topic { border-left:3px solid var(--brand); }
.comm-post.is-deleted { background:var(--bg); box-shadow:none; }
.comm-post-head { display:flex; align-items:center; justify-content:space-between; gap:8px 14px; flex-wrap:wrap; }
.comm-post-when { font-size:12px; color:var(--text-muted); }
.comm-edited { text-decoration:underline dotted; text-underline-offset:3px; cursor:help; }
.comm-body { font-size:14px; line-height:1.6; color:var(--text); overflow-wrap:anywhere; }
.comm-body p { margin:0 0 8px; }
.comm-body p:last-child, .comm-body ul:last-child { margin-bottom:0; }
.comm-body ul { margin:0 0 8px; padding-left:22px; }
.comm-body li + li { margin-top:2px; }
.comm-body strong { font-weight:700; }
.comm-body a { color:var(--brand-text); text-decoration:underline; text-underline-offset:2px; }
.comm-post-actions { display:flex; flex-wrap:wrap; gap:4px; margin:0 -8px -6px; padding-top:6px; border-top:1px solid var(--border-light); }
.comm-post-actions .btn { padding:6px 10px; }
.comm-danger { color:var(--err-ink) !important; }
.comm-h2 { margin:4px 0 -4px; font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:var(--text-muted); }
.comm-replies { display:flex; flex-direction:column; gap:10px; }
.comm-flags { display:flex; align-items:center; flex-wrap:wrap; gap:6px; margin-top:8px; }
.comm-noreply { display:flex; align-items:center; gap:8px; }
.comm-reply-form { display:flex; flex-direction:column; gap:8px; }
.comm-reply-actions { display:flex; justify-content:flex-end; }
.comm-textarea { height:auto; min-height:96px; padding:9px 10px; resize:vertical; font:inherit; font-size:13px; line-height:1.5; }
.comm-form { display:flex; flex-direction:column; gap:16px; }
.comm-form-lead { display:flex; align-items:center; flex-wrap:wrap; gap:4px; margin:0; font-size:13.5px; color:var(--text-2); }
.comm-count { font-weight:600; color:var(--warn-ink); }

/* Discussions: the boards */
/* fill-space 2 (2026-11-14): 14 boards in a 6-wide grid left empty slots and wrapped titles over four lines; the tiles
   now wrap from 300px and a short last row grows to fill */
.dz-boards { display:flex; flex-wrap:wrap; gap:12px; }
.dz-boards > .dz-board { flex:1 1 300px; min-width:0; }
.dz-board { flex-direction:row; align-items:center; gap:14px; padding:16px; transition:border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out); }
.dz-board:hover { border-color:var(--n-300); box-shadow:var(--elev-2); }
.dz-board-ico { width:40px; height:40px; flex-shrink:0; display:grid; place-items:center; border-radius:var(--radius); background:var(--brand-soft); color:var(--brand-text); }
.dz-board-ico.is-leaders { background:var(--yel-bg); color:var(--yel-ink); }
.dz-board-ico svg { width:20px; height:20px; }
.dz-board-text { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.dz-board-text b { font-size:15px; color:var(--text); }
.dz-board-text span { font-size:12px; color:var(--text-muted); line-height:1.4; }
.dz-board-go { color:var(--text-light); }

/* Discussions: a board's topics (and the announcement list, which shares the rows' look) */
.dz-list, .an-list { padding:4px 0; gap:0; }
.dz-list > .empty, .an-list > .empty { margin:12px 16px; }
.dz-list > .alert, .an-list > .alert { margin:12px 16px; }
.dz-topic, .an-item { display:flex; align-items:flex-start; gap:10px; padding:12px 16px; border-top:1px solid var(--border-light); color:inherit;
                      transition:background var(--dur-1) var(--ease-out); }
.dz-topics > :first-child, .an-items > :first-child { border-top:0; }
.dz-topic:hover, .an-item:hover { background:var(--bg); }
.dz-dot { width:8px; height:8px; margin-top:7px; flex-shrink:0; border-radius:50%; background:transparent; }
.is-unread > .dz-dot { background:var(--brand); }
.dz-topic-main, .an-item-main { flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; }
.dz-topic-title { display:flex; align-items:center; flex-wrap:wrap; gap:4px 8px; min-width:0; font-size:14.5px; color:var(--text); }
.dz-topic-title b, .an-item-title { font-weight:600; overflow-wrap:anywhere; }
.is-unread .dz-topic-title b, .is-unread .an-item-title { font-weight:800; }
.dz-flag { width:14px; height:14px; color:var(--text-muted); }
.dz-tag { font-size:11px; padding:1px 8px; }
.dz-topic-ex, .an-item-ex { font-size:13px; line-height:1.45; color:var(--text-2); overflow-wrap:anywhere; }
.dz-topic-meta { display:flex; align-items:center; flex-wrap:wrap; gap:4px; font-size:12px; color:var(--text-muted); }
.dz-topic-meta svg { width:13px; height:13px; }
.dz-topic-side { flex-shrink:0; display:flex; flex-direction:column; align-items:flex-end; gap:4px; text-align:right; }
.dz-replies { display:inline-flex; align-items:center; gap:5px; font-size:13px; font-weight:600; color:var(--text-2); }
.dz-replies svg { width:14px; height:14px; }
.dz-last { font-size:12px; color:var(--text-muted); white-space:nowrap; }
.dz-meta-replies { display:none; } /* phones only: the reply count moves into the line under the title */

/* Announcements */
/* fill-space (2026-11-13): "At a glance" beside the list from 1200px (events coming up, still to confirm, not opened) */
.an-layout { display:flex; flex-direction:column; gap:14px; min-width:0; }
.an-glance { display:none; }
@media (min-width:1200px) {
    .an-layout { display:grid; grid-template-columns:minmax(0, 1fr) minmax(280px, 340px); align-items:start; }
    .an-glance:not([hidden]) { display:flex; position:sticky; top:14px; }
}
.an-glance-sec { display:flex; flex-direction:column; gap:6px; }
.an-glance-sec + .an-glance-sec, .an-glance-sec + .an-glance-unread { padding-top:10px; border-top:1px solid var(--border-light); }
.an-glance-h { display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:var(--text-muted); }
.an-glance-list { margin:0; padding:0; list-style:none; display:flex; flex-direction:column; gap:2px; }
.an-glance-list a { display:flex; flex-direction:column; gap:1px; padding:6px 8px; margin:0 -8px; border-radius:var(--radius-sm); color:inherit; text-decoration:none; }
.an-glance-list a:hover { background:var(--bg-2); }
.an-glance-list b { font-size:13px; color:var(--text); overflow-wrap:anywhere; }
.an-glance-list span { font-size:12px; color:var(--brand-text); }
.an-glance-none { margin:0; font-size:13px; color:var(--text-muted); }
.an-aud { padding:2px 9px; }
.an-aud svg { width:12px; height:12px; }
.an-aud.is-company { background:var(--yel-bg); color:var(--yel-ink); }
.an-item-top { display:flex; align-items:center; flex-wrap:wrap; gap:6px; }
.an-item-title { font-size:15px; color:var(--text); }
.an-item-event { display:inline-flex; align-items:center; gap:6px; font-size:12.5px; font-weight:600; color:var(--brand-text); }
.an-item-event svg { width:14px; height:14px; }
.an-post { gap:12px; }
.an-event { display:flex; align-items:center; gap:12px; flex-wrap:wrap; padding:10px 12px; border-radius:var(--radius); background:var(--bg); border:1px solid var(--border-light); }
.an-event > svg { width:20px; height:20px; color:var(--brand-text); flex-shrink:0; }
.an-event-text { flex:1 1 180px; display:flex; flex-direction:column; gap:1px; font-size:13px; color:var(--text-2); min-width:0; overflow-wrap:anywhere; }
.an-event-text b { color:var(--text); font-size:14px; }
.an-confirm { display:flex; align-items:center; justify-content:space-between; gap:10px 14px; flex-wrap:wrap; padding:12px 14px; border-radius:var(--radius);
              background:var(--warn-soft); border:1px solid var(--border); font-size:13.5px; font-weight:600; color:var(--warn-ink); }
.an-confirm span { display:inline-flex; align-items:center; gap:8px; }
.an-confirm.is-done { justify-content:flex-start; gap:8px; background:var(--ok-soft); color:var(--ok-ink); }
.an-check { display:flex; align-items:center; gap:10px; font-size:13px; color:var(--text); cursor:pointer; }
.an-check input { width:16px; height:16px; margin:0; accent-color:var(--brand); }
.an-event-fields { display:flex; flex-direction:column; gap:12px; margin-top:-6px; padding:12px; border-radius:var(--radius); background:var(--bg); border:1px solid var(--border-light); }
.an-times { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
/* the 12-hour time picker (HubFormat.timePickerHtml, Barry 2026-11-17: AM/PM on every device): hour : minutes AM/PM on one row.
   Used by the meeting and task windows and announcements; 44px on touch in the Device-aware section. */
.tp { display:flex; align-items:center; gap:4px; min-width:0; }
.tp .f-input { flex:1 1 0; min-width:56px; height:36px; padding:0 4px 0 8px; cursor:pointer; font-variant-numeric:tabular-nums; } /* 56px: "12", "55" and "PM" beside the arrow */
.tk-row > .acc-field:has(> .tp) { flex-basis:190px; min-width:184px; } /* a picker's field never squeezes its three selects */
.tp-colon { color:var(--text-muted); font-weight:700; }
@media (max-width:600px) { .tp .f-input { height:44px; } }
.an-pin { max-width:220px; }
.an-stats { display:grid; grid-template-columns:repeat(auto-fit, minmax(140px, 1fr)); gap:10px; margin:12px 0 18px; }
.an-stat { display:flex; flex-direction:column; gap:2px; padding:12px 14px; border:1px solid var(--border); border-radius:var(--radius); background:var(--bg-card); }
.an-stat-n { font-size:20px; font-weight:800; color:var(--text); }
.an-stat-l { font-size:12px; color:var(--text-muted); }
.an-missing { margin:8px 0 12px; padding:0; list-style:none; display:flex; flex-wrap:wrap; gap:6px; }
.an-missing li { padding:4px 10px; border-radius:var(--pill); background:var(--bg-2); font-size:13px; color:var(--text); }

/* attachments: thumbnails (a lightbox on click) and PDF chips (a download) */
.att-list { display:flex; flex-direction:column; gap:8px; }
.att-thumbs { display:flex; flex-wrap:wrap; gap:8px; }
.att-thumb { width:112px; height:84px; padding:0; border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; background:var(--bg-2); cursor:zoom-in; }
.att-thumb:hover { border-color:var(--n-300); }
.att-thumb-ph { width:100%; height:100%; display:grid; place-items:center; color:var(--text-light); }
.att-thumb-ph img { width:100%; height:100%; object-fit:cover; display:block; }
.att-thumb-ph.is-failed { color:var(--err-ink); }
.att-chips { display:flex; flex-wrap:wrap; gap:8px; }
.att-chip { display:inline-flex; align-items:center; gap:8px; max-width:100%; padding:7px 12px; border:1px solid var(--border); border-radius:var(--radius);
            background:var(--bg-card); font:inherit; font-size:13px; color:var(--text); cursor:pointer; }
.att-chip:hover { border-color:var(--brand); }
.att-chip > svg { width:15px; height:15px; flex-shrink:0; color:var(--brand-text); }
.att-chip-name { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:600; }
.att-chip-size { flex-shrink:0; font-size:12px; color:var(--text-muted); }
.att-lightbox { display:flex; justify-content:center; }
.att-lightbox img { max-width:100%; max-height:calc(100vh - 180px); max-height:calc(100dvh - 180px); object-fit:contain; border-radius:var(--radius-sm); }
.att-lightbox-skel { width:100%; height:320px; }
.att-pick-list { display:flex; flex-direction:column; gap:6px; }
.att-pick-list:empty { display:none; }
.att-pick-item { display:flex; align-items:center; gap:8px; padding:6px 6px 6px 10px; border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--bg-card); font-size:13px; }
.att-pick-item > svg { width:15px; height:15px; flex-shrink:0; color:var(--text-muted); }
.att-pick-name { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--text); }
.att-pick-state { display:inline-flex; align-items:center; gap:6px; flex-shrink:0; font-size:12px; color:var(--text-muted); }
.att-pick-state.is-error { color:var(--err-ink); font-weight:600; }
.att-pick-state .spinner { width:12px; height:12px; border-width:2px; }
.att-pick-row { display:flex; align-items:center; flex-wrap:wrap; gap:6px 12px; }
[data-input="touch"] .att-pick-row .btn { min-height:44px; } /* the Attach button is a full tap target on touch */

/* phones: the banner sits under the fixed 56px header, and the page below it needs no room for the header any more */
@media (max-width:768px) {
    .comm-banner { padding:calc(68px + env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left)); }
    .comm-banner:not([hidden]) + .page { padding-top:14px; }
}
@media (max-width:600px) {
    .comm .page-actions, .comm .page-actions .btn { width:100%; }
    .comm-banner-actions { width:100%; }
    .comm-banner-actions .btn { flex:1; }
    .dz-topic-side { display:none; }
    .dz-meta-replies { display:inline; }
    .comm-reply-actions .btn { width:100%; }
    .an-times { grid-template-columns:1fr; }
    .att-thumb { width:calc(50% - 4px); height:110px; }
    .comm-seg { flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; align-self:stretch; }
}
@media print { .comm-banner, .comm-post-actions, .comm-reply, .comm-pager, .page-actions { display:none !important; } }

/* ---------- 26. Task 18: reset codes by email or Telegram (Hub.recovery) ---------- */
[data-theme="dark"] .alert-success { background:var(--ok-bg); color:var(--ok-ink); border-color:var(--ok); }
.fp-links { flex-direction:column; align-items:center; gap:10px; }
/* Account settings -> Profile: "Password reset codes" */
.rc-sec { display:flex; flex-direction:column; gap:12px; margin-top:16px; padding-top:14px; border-top:1px solid var(--border-light); }
.rc-sec-head { display:flex; flex-direction:column; gap:3px; }
.rc-row { display:flex; flex-direction:column; gap:8px; padding:12px 14px; border:1px solid var(--border); border-radius:var(--radius); background:var(--bg-card); min-width:0; }
.rc-row-head { display:flex; align-items:center; flex-wrap:wrap; gap:8px; font-size:13.5px; color:var(--text); }
.rc-row-head b { font-weight:600; }
.rc-row-ico { display:inline-grid; place-items:center; width:26px; height:26px; border-radius:var(--radius-sm); background:var(--brand-soft); color:var(--brand-text); flex-shrink:0; }
.rc-row-ico svg { width:14px; height:14px; }
.rc-row .set-hint { margin:0; }
.rc-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px 16px; }
.rc-value { font-size:13.5px; color:var(--text-2); overflow-wrap:anywhere; }
.rc-inline { display:flex; flex-direction:column; gap:6px; }
.rc-inline .acc-input[aria-invalid="true"] { border-color:var(--err); }
.rc-code { letter-spacing:.18em; font-variant-numeric:tabular-nums; }
.rc-wait { display:inline-flex; align-items:center; gap:8px; font-size:13px; color:var(--text-muted); }
.rc-dot { width:8px; height:8px; border-radius:50%; background:var(--brand); animation:rc-pulse 1.2s var(--ease-out) infinite; }
@keyframes rc-pulse { 0%, 100% { opacity:.25; } 50% { opacity:1; } }
.rc-loading { font-size:13px; color:var(--text-muted); padding:6px 0; }
/* "Forgot your current password?": the three options */
.rc-options { display:flex; flex-direction:column; gap:8px; }
.rc-opt { display:flex; align-items:center; gap:12px; width:100%; padding:12px 14px; border:1px solid var(--border); border-radius:var(--radius);
          background:var(--bg-card); color:var(--text); font:inherit; text-align:left; cursor:pointer;
          transition:border-color var(--dur-1) var(--ease-out), background var(--dur-1) var(--ease-out); }
.rc-opt:hover:not(:disabled) { border-color:var(--brand); background:var(--brand-soft); }
.rc-opt:focus-visible { outline:2px solid var(--brand); outline-offset:2px; }
.rc-opt:disabled { cursor:not-allowed; opacity:.7; }
.rc-opt-ico { display:inline-grid; place-items:center; width:34px; height:34px; border-radius:var(--radius-sm); background:var(--brand-soft); color:var(--brand-text); flex-shrink:0; }
.rc-opt-ico svg { width:17px; height:17px; }
.rc-opt-text { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; font-size:13.5px; }
.rc-opt-text b { font-weight:600; }
.rc-opt-text small { font-size:12px; line-height:1.4; color:var(--text-muted); overflow-wrap:anywhere; }
.rc-opt-go { width:16px; height:16px; color:var(--text-muted); flex-shrink:0; }
.rc-opt .badge { flex-shrink:0; }
.rc-sent { margin-bottom:16px; }
.rc-form .af-field { margin-bottom:16px; }
.rc-again { display:flex; justify-content:flex-start; margin-top:2px; }
@media (max-width:600px) { .rc-actions .btn { width:100%; justify-content:center; } }
@media (prefers-reduced-motion:reduce) { .rc-dot { animation:none; opacity:1; } }

/* ---------- 26. review fixes: the outage notice, reset-code states, a person's reset channels for developers ---------- */
.auth-outage { position:fixed; left:50%; bottom:max(18px, env(safe-area-inset-bottom)); transform:translateX(-50%); z-index:60; max-width:calc(100vw - 32px);
               padding:9px 14px; border-radius:var(--pill); background:var(--warn-soft); color:var(--warn-ink, var(--warn));
               border:1px solid var(--warn); font-size:13px; font-weight:600; box-shadow:var(--elev-2); }
.rc-stop { margin-bottom:12px; }
.rc-failed { margin-bottom:10px; }
.rc-hold { margin:0; }
.acc-reveal-warn { margin-top:10px; }
.acc-recovery { display:flex; flex-direction:column; gap:10px; margin-top:18px; padding-top:16px; border-top:1px solid var(--border-light); }
.acc-rec-row { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.acc-rec-text { display:flex; flex-direction:column; gap:2px; min-width:0; }
.acc-rec-value { font-size:13.5px; color:var(--text-2); overflow-wrap:anywhere; }
.rc-sec [data-rc-retry], .rc-modal [data-rc-retry] { align-self:flex-start; }

/* ---------- 27. Task 19: the account drawer's Password area, per-account history, audit filters ---------- */
.acc-pw-area { display:flex; flex-direction:column; gap:6px; margin-top:6px; padding-top:12px; border-top:1px solid var(--border-light); }
.acc-pw-closed { display:flex; flex-direction:column; gap:5px; }
.acc-pw-closed .btn { align-self:flex-start; }
.acc-pw-open { display:flex; flex-direction:column; gap:10px; padding:12px 14px; border:1px solid var(--border-light); border-radius:var(--radius); background:var(--bg-2); }
.acc-pw-controls { display:flex; flex-direction:column; gap:10px; }
.acc-pw-controls .acc-alert:empty { display:none; }
.acc-pw-actions { display:flex; justify-content:flex-end; gap:8px; flex-wrap:wrap; }
@media (max-width:600px) { .acc-pw-actions .btn { flex:1; justify-content:center; } }
/* Account settings: your full name and username (Task 19 C) */
.set-names { display:flex; flex-direction:column; gap:12px; padding:14px 0 16px; border-top:1px solid var(--border-light); }
.set-names .acc-alert:empty { display:none; }
.set-names .acc-input { height:36px; }
.set-names .acc-input:disabled { background:var(--bg-2); color:var(--text-muted); cursor:not-allowed; }
.set-names .acc-input[aria-invalid="true"] { border-color:var(--err); }
.set-names-actions { display:flex; justify-content:flex-end; }
@media (max-width:600px) { .set-names .acc-input { height:44px; } .set-names-actions .btn { width:100%; justify-content:center; } }
/* the Audit log's filters (Task 19 D) */
/* fill-space 2 (2026-11-14): the filters fill one row (the auto-fill grid left two empty tracks at 1920 and the "To"
   date alone on a second row at 1280); a hidden Clear takes no slot */
.au-filters { display:flex; flex-direction:row; flex-wrap:wrap; gap:12px 14px; align-items:flex-end; padding:14px 16px; margin-bottom:14px; }
.au-f { display:flex; flex-direction:column; gap:5px; min-width:0; flex:1 1 150px; }
.au-f .f-input, .au-f .ms-trigger { width:100%; height:36px; }
@media (max-width:600px) { .au-f input[type="date"] { padding:0 2px 0 6px; } } /* two dates side by side at 375px: the 16px date text and its picker icon fit without clipping */
.au-f-people { grid-column:span 2; flex:2 1 300px; }
.au-f-clear { justify-content:flex-end; flex:0 0 auto; }
.au-f-clear:has(> .btn[hidden]) { display:none; }
.au-f-clear .btn { align-self:flex-start; }
.au-f-clear .btn[hidden] { display:none; }
.au-empty { padding:10px 2px 14px; font-size:13px; color:var(--text-muted); }
.ms-search { padding:8px 10px 4px; }
.ms-search .f-input { width:100%; height:34px; }
.ms-none { padding:8px 12px 10px; font-size:13px; color:var(--text-muted); }
.ms-list .pop-item[hidden] { display:none; }
@media (max-width:600px) { .au-filters { display:grid; grid-template-columns:1fr 1fr; } .au-f-people, .au-f-dept { grid-column:1 / -1; } .au-f .f-input, .au-f .ms-trigger { height:44px; } }

/* ---------- kept from the Overview page (removed 2026-11-18) ---------- */
.ov-skel-list { height:96px; } /* a list's loading block (the Organization panels) */
.ov-dot { display:inline-block; width:8px; height:8px; border-radius:50%; background:var(--brand); flex:none; } /* unread, in the mail button's window */

/* P3, the content enter: on a page visit's first paint the card grid gets .p-enter and its first 8 children rise in,
   40ms apart (backwards, so hover and press work at once after); a later paint drops the class */
.p-enter > :nth-child(-n+8) { animation:riseIn var(--dur-route) var(--ease-smooth) backwards; }
.p-enter > :nth-child(2) { animation-delay:40ms; }
.p-enter > :nth-child(3) { animation-delay:80ms; }
.p-enter > :nth-child(4) { animation-delay:120ms; }
.p-enter > :nth-child(5) { animation-delay:160ms; }
.p-enter > :nth-child(6) { animation-delay:200ms; }
.p-enter > :nth-child(7) { animation-delay:240ms; }
.p-enter > :nth-child(8) { animation-delay:280ms; }

/* ---------- Organization (Task 20): the ring, the tree and the unit panel ---------- */
.org-tools { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.org-tools [hidden] { display:none; }
.org-stage { position:relative; overflow:hidden; border:1px solid var(--border); border-radius:var(--radius-card); background:var(--bg-card); box-shadow:var(--elev-1), var(--highlight); }
.org-stage:not(.is-chart) { overflow:visible; border:0; background:none; box-shadow:none; }
/* Barry 2026-11-14: the chart card has a fixed height (the rest of the window) and the drawing is moved inside it by
   Hub.panZoom (centred by Fit, zoomed, panned). It clips and never scrolls (a focused card is panned into view instead);
   touch-action:none hands one-finger drags and pinches to the script */
.org-stage.is-chart { height:max(480px, calc(100dvh - 170px)); overflow:hidden; overflow:clip; touch-action:none; cursor:grab; user-select:none; }
.org-stage.is-chart:focus-visible { outline:2px solid var(--brand); outline-offset:2px; }
.org-stage.is-panning, .org-stage.is-panning .org-node, .org-stage.is-panning .org-centre { cursor:grabbing; }
.org-skel { height:320px; border-radius:var(--radius-card); }
.org-canvas { position:absolute; left:0; top:0; transform-origin:0 0; }
.org-canvas.is-easing { transition:transform var(--dur-3) var(--ease-smooth); }
.org-lines { position:absolute; inset:0; pointer-events:none; overflow:visible; }
/* the zoom controls: the card's bottom right corner (zoom out, the percent, zoom in, Fit) */
.org-zoom { position:absolute; right:12px; bottom:12px; z-index:2; display:flex; align-items:center; gap:2px; padding:3px; cursor:auto;
  background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius-card); box-shadow:var(--elev-2); }
.org-zoom-btn { display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; padding:0; border:0; border-radius:var(--radius-btn);
  background:none; color:var(--text-2); cursor:pointer; transition:background-color var(--dur-fast) var(--ease-smooth); }
.org-zoom-btn .lucide { width:16px; height:16px; }
.org-zoom-btn:focus-visible { outline:2px solid var(--brand); outline-offset:-2px; }
@media (hover:hover) and (pointer:fine) {
    .org-zoom-btn:hover { background:var(--bg-2); color:var(--text); }
}
.org-zoom-pct { min-width:46px; text-align:center; font-size:12px; font-weight:700; color:var(--text-2); }
/* curved connectors: gold, dashed, the dashes flowing outward from the hub (each path is drawn centre -> unit) */
.org-lines path { fill:none; stroke:var(--org-gold); stroke-width:1.5; stroke-opacity:.55; stroke-dasharray:6 6; animation:org-flow 1.6s linear infinite; }
.org-lines .org-line-sub { stroke-width:1; stroke-opacity:.4; }
@keyframes org-flow { to { stroke-dashoffset:-24; } }
/* the hub: a rounded square, navy with a gold frame, a slow pulsing gold ring */
.org-centre { position:absolute; transform:translate(-50%,-50%); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; width:132px; height:132px; padding:10px; box-sizing:border-box;
  border-radius:var(--radius-card); background:var(--navy); border:2px solid var(--org-hub-frame); color:var(--on-solid); text-align:center; box-shadow:var(--elev-2); }
.org-centre::after { content:''; position:absolute; inset:-2px; border-radius:var(--radius-card); pointer-events:none; animation:org-pulse 2.4s ease-out infinite; }
@keyframes org-pulse { 0% { box-shadow:0 0 0 0 var(--org-gold-ring); } 100% { box-shadow:0 0 0 22px var(--org-gold-ring-0); } }
.org-centre > .lucide { width:22px; height:22px; color:var(--org-hub-frame); }
/* Org v2: the hub is a button: the whole company's window */
.org-centre { font:inherit; cursor:pointer; transition:box-shadow var(--dur-fast) var(--ease-smooth); }
@media (hover:hover) and (pointer:fine) {
    .org-centre:hover { box-shadow:var(--elev-3); }
}
.org-centre:focus-visible { outline:2px solid var(--org-hub-frame); outline-offset:4px; }
.org-centre .org-stats { color:var(--on-solid); font-size:11px; line-height:1.3; }
[data-theme="dark"] .org-centre { background:var(--hero-from); } /* white on the mid-blue brand is under 4.5:1 */
.org-centre-name { font-size:20px; font-weight:800; letter-spacing:-.3px; }
/* a unit: a rounded card with a gold frame, an icon chip before the name and the counts as pills */
.org-node { display:flex; flex-direction:column; align-items:flex-start; gap:4px; text-align:left; font:inherit; color:var(--text); cursor:pointer;
  background:var(--bg-card); border:1.5px solid var(--org-gold); border-radius:var(--radius-card); padding:10px 12px; box-shadow:var(--elev-1), var(--highlight); width:100%; min-width:0;
  transition:transform var(--dur-hover) var(--ease-spring), border-color var(--dur-fast) var(--ease-smooth), box-shadow var(--dur-fast) var(--ease-smooth); }
.org-canvas .org-node { position:absolute; transform:translate(-50%,-50%); width:190px; }
.org-canvas .org-sub { width:160px; padding:8px 10px; }
.org-sub { border-width:1px; border-radius:var(--radius); gap:3px; }
.org-canvas .org-node:hover { border-color:var(--org-gold-strong); box-shadow:var(--elev-2), 0 0 0 1px var(--org-gold-strong); }
@media (hover:hover) and (pointer:fine) {
    .org-canvas .org-node:hover { transform:translate(-50%, calc(-50% - 3px)); }
    .org-tree .org-node:hover { transform:translateY(-2px); }
}
.org-canvas .org-node:active { transform:translate(-50%,-50%) scale(.97); }
.org-tree .org-node:hover { border-color:var(--org-gold-strong); box-shadow:var(--elev-2), 0 0 0 1px var(--org-gold-strong); }
.org-canvas .org-node.is-open:hover, .org-tree .org-node.is-open:hover { box-shadow:var(--elev-2), 0 0 0 1px var(--org-gold-strong), 0 0 0 5px var(--org-gold-ring); }
.org-tree .org-node:active { transform:scale(.98); }
.org-node:hover { border-color:var(--org-gold-strong); box-shadow:var(--elev-2), 0 0 0 1px var(--org-gold-strong); }
.org-node:focus-visible { outline:2px solid var(--brand); outline-offset:2px; }
.org-node.is-open { border-color:var(--org-gold); box-shadow:0 0 0 1px var(--org-gold), 0 0 0 5px var(--org-gold-ring); }
.org-node.in-area { border-left:4px solid var(--org-gold); }
.org-node-head { display:flex; align-items:center; gap:8px; min-width:0; width:100%; }
.org-ico { flex:none; display:inline-flex; align-items:center; justify-content:center; width:26px; height:26px; border-radius:8px; background:var(--org-gold-soft); color:var(--org-gold); }
.org-ico .lucide { width:15px; height:15px; }
.org-sub .org-ico { width:22px; height:22px; border-radius:7px; }
.org-sub .org-ico .lucide { width:13px; height:13px; }
.org-node-name { font-size:13.5px; font-weight:700; overflow-wrap:anywhere; min-width:0; }
.org-sub .org-node-name { font-size:12.5px; }
.org-leader { display:flex; align-items:center; gap:6px; font-size:12.5px; color:var(--text-2); min-width:0; }
.org-leader-name { overflow-wrap:anywhere; }
.org-none { color:var(--text-muted); font-style:italic; }
.org-stats { font-size:12px; color:var(--text-muted); }
.org-node .org-stats, .org-panel-count .org-stats { display:flex; flex-wrap:wrap; gap:5px; }
.org-pill { display:inline-block; padding:2px 8px; border-radius:var(--pill); background:var(--bg-2); color:var(--text-2); font-size:11px; font-weight:600; line-height:1.4; }
.org-pill-off { background:var(--org-gold-soft); color:var(--org-gold-strong); }
.org-sub .org-pill { padding:1px 7px; font-size:10.5px; }
/* pop-in (the first paint; a department's teams when it opens): transform and opacity only; backwards, so hover and press still work after */
.org-canvas .org-pop { animation:org-pop .5s cubic-bezier(.2,.9,.3,1.3) backwards; animation-delay:calc(var(--i, 0) * .1s); }
/* Barry 2026-11-16: a department with teams opens its window from this round button on its card's right edge (the card only opens and closes the teams) */
.org-more { position:absolute; z-index:2; display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; padding:0; border-radius:50%;
  transform:translate(calc(95px - 50%), -50%); border:1.5px solid var(--org-gold); background:var(--bg-card); color:var(--text-muted); cursor:pointer; box-shadow:var(--elev-1);
  transition:color var(--dur-fast) var(--ease-smooth), border-color var(--dur-fast) var(--ease-smooth); }
.org-more svg { width:15px; height:15px; }
.org-more:hover { color:var(--brand-text); border-color:var(--org-gold-strong); }
.org-more:focus-visible { outline:2px solid var(--brand); outline-offset:2px; }
[data-input="touch"] .org-more { width:44px; height:44px; }
.org-stage.is-panning .org-more { cursor:grabbing; }
@keyframes org-pop { from { opacity:0; transform:translate(-50%,-50%) scale(.85); } to { opacity:1; transform:translate(-50%,-50%) scale(1); } }
/* the tree: under 900 px, or by "List view" */
.org-tree-wrap { display:flex; flex-direction:column; gap:12px; }
.org-tree-company { display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; padding:6px 8px; margin:-4px -8px 0; color:var(--text);
  background:none; border:0; border-radius:10px; font:inherit; text-align:left; cursor:pointer; align-self:flex-start; min-height:44px; }
@media (hover:hover) and (pointer:fine) {
    .org-tree-company:hover { background:var(--bg-2); }
}
.org-tree-company:focus-visible { outline:2px solid var(--brand); outline-offset:2px; }
.org-tree-company .org-centre-name { font-size:18px; }
.org-tree-company .org-stats { color:var(--text-muted); font-size:12px; }
.org-tree, .org-tree ul { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; }
.org-tree ul { margin:8px 0 0 18px; padding-left:14px; border-left:2px solid var(--org-gold-soft); }
.org-tree .org-node { max-width:560px; }
/* phone fix 1: a department's teams as a drop-down; the button sits on the card's top right, the card's head leaves it room */
.org-tree-row { position:relative; max-width:560px; }
.disc-btn.org-tree-disc { position:absolute; top:6px; right:6px; width:auto; min-height:44px; padding:6px 10px; border:0; border-radius:var(--radius-btn);
                 background:var(--org-gold-soft); color:var(--text); font-size:13px; }
.org-tree-row .org-node-head { padding-right:112px; min-height:32px; }
/* Barry 2026-11-14 (replaces fill-space's grid, which left a tall department's teams stacked in one column and pushed the
   next department to a far-down row): each department is ONE card, its teams compact one-line rows inside it. The card is
   the frame; its department and rows have none. */
.org-tree-card { break-inside:avoid; display:flex; flex-direction:column; max-width:560px; overflow:hidden; background:var(--bg-card);
  border:1.5px solid var(--org-gold); border-radius:var(--radius-card); box-shadow:var(--elev-1), var(--highlight); }
.org-tree-card .org-node { border:0; border-radius:0; box-shadow:none; max-width:none; }
.org-tree-card .org-node.in-area { box-shadow:inset 4px 0 0 var(--org-gold); }
.org-tree-card .org-node:hover { box-shadow:none; background:var(--bg-2); }
.org-tree-card .org-node:active { transform:none; }
.org-tree-card .org-node:focus-visible { outline-offset:-3px; }
@media (hover:hover) and (pointer:fine) {
    .org-tree-card .org-node:hover { transform:none; }
}
.org-tree-card .org-tree-row { max-width:none; }
.org-tree .org-tree-teams { margin:0; padding:0; gap:0; border-left:0; border-top:1px solid var(--border-light); }
.org-tree .org-tree-teams[hidden] { display:none; }
.org-tree-teams > li + li { border-top:1px solid var(--border-light); }
/* a team row: the name, the leader, then the people and off pills, on one line (the leader goes under the name on a phone) */
.org-row { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto; align-items:center; column-gap:10px; row-gap:2px; padding:8px 12px 8px 14px; }
.org-row .org-ico { display:none; } /* the card's head already wears the department icon; the room goes to the names */
.org-row .org-node-head { width:auto; }
.org-row .org-stats { flex-wrap:nowrap; justify-content:flex-end; }
/* balanced columns (masonry): the cards flow down the columns and never split, so no column is left with a tall empty band;
   at most 3, since balancing fills only as many columns as the tallest card needs (a 4th or 5th would sit empty on the right) */
@media (min-width:760px) {
    .org-tree-wrap > .org-tree { display:block; columns:3 380px; column-gap:12px; }
    .org-tree-wrap > .org-tree > .org-tree-card { max-width:none; margin:0 0 12px; }
}
@media (max-width:600px) {
    .org-row { grid-template-columns:minmax(0,1fr) auto; }
    .org-row .org-leader { grid-column:1 / -1; grid-row:2; }
}
/* the panel */
.org-panel { display:flex; flex-direction:column; gap:18px; }
.org-leader-block, .org-panel-count, .org-panel-people { display:flex; flex-direction:column; gap:6px; }
.org-leader-actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:4px; }
.org-picker { display:flex; flex-direction:column; gap:6px; margin-top:6px; padding:10px; border:1px solid var(--border); border-radius:var(--radius); background:var(--bg); }
.org-picker[hidden] { display:none; }
.org-picker .f-input { width:100%; height:36px; }
.org-pick-list, .org-people { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; }
.org-pick-list { max-height:240px; overflow-y:auto; overscroll-behavior:contain; }
.org-pick-item { width:100%; display:flex; align-items:center; gap:8px; padding:7px 8px; border:0; border-radius:8px; background:none; text-align:left; font:inherit; color:var(--text); cursor:pointer; }
.org-pick-item:hover { background:var(--bg-2); }
.org-pick-item:focus-visible { outline:2px solid var(--brand); outline-offset:-2px; }
.org-person { display:flex; align-items:center; gap:10px; padding:8px 2px; border-bottom:1px solid var(--border-light); }
.org-person:last-child { border-bottom:0; }
.org-person-main { display:flex; flex-direction:column; min-width:0; flex:1; }
.org-person-name { font-size:14px; font-weight:600; overflow-wrap:anywhere; }
.org-person-pos { font-size:12px; color:var(--text-muted); overflow-wrap:anywhere; }
.org-person-id { font-size:12px; color:var(--text-muted); flex:none; }
/* Org v2: the living background (Hub.orgNet, public/js/kit/org-net.js): a slowly turning geodesic ball, first in the canvas
   (behind the lines and cards), in the --org-net token; the script keeps its opacity low (.13-.23) and it never takes a click */
.org-net { position:absolute; left:0; top:0; pointer-events:none; overflow:visible; }
.org-net path { fill:none; stroke:var(--org-net); stroke-linecap:round; stroke-linejoin:round; }
.org-net .org-net-front { stroke-width:1.3; }
.org-net .org-net-back { stroke-width:1; stroke-opacity:.45; }
.org-net .org-net-dots { stroke-width:5; }
.org-net .org-net-dots-back { stroke-width:3.5; stroke-opacity:.45; }
/* Org v2: the whole company's window (the hub): the unit window's layout, a combined header, then a block per department
   with its teams under it */
.org-company { gap:16px; }
.org-company-head { display:flex; gap:8px; } /* two or three KPIs (no off-today without dashboard.view) */
.org-kpi { display:flex; flex-direction:column; gap:2px; flex:1 1 0; padding:10px 12px; border-radius:var(--radius); background:var(--bg-2); border:1px solid var(--border-light); min-width:0; }
.org-kpi-n { font-size:20px; font-weight:800; line-height:1.2; color:var(--text); }
.org-kpi-l { font-size:12px; color:var(--text-muted); }
.org-group { display:flex; flex-direction:column; gap:6px; padding-top:14px; border-top:1px solid var(--border-light); }
.org-group-head, .org-subgroup-head { display:flex; align-items:center; gap:8px; flex-wrap:wrap; min-width:0; }
.org-group-name { font-size:15px; font-weight:700; overflow-wrap:anywhere; }
.org-subgroup-name { font-size:13.5px; font-weight:700; overflow-wrap:anywhere; }
.org-group-head .org-stats, .org-subgroup-head .org-stats { display:flex; flex-wrap:wrap; gap:5px; margin-left:auto; }
.org-subgroup { display:flex; flex-direction:column; gap:4px; margin:6px 0 0 12px; padding-left:12px; border-left:2px solid var(--org-gold-soft); }
.org-person .org-pill-off { flex:none; }
.org-empty { margin:0; font-size:13px; color:var(--text-muted); }
@media (prefers-reduced-motion:reduce) { /* org */ /* the same look, static */
  .org-canvas.is-easing { transition:none; } /* zoom and Fit jump, never glide */
  .org-zoom-btn { transition:none; }
  .org-canvas .org-node, .org-canvas .org-pop { animation:none; transition:none; }
  .org-lines path, .org-centre::after { animation:none; }
  .org-centre { transition:none; }
  .org-canvas .org-node:hover, .org-canvas .org-node:active { transform:translate(-50%,-50%); }
  .org-tree .org-node { transition:none; }
  .org-tree .org-node:hover, .org-tree .org-node:active { transform:none; }
}
@media print { /* org */
  .org-lines path, .org-centre::after, .org-canvas .org-pop { animation:none; }
}
@media (max-width:600px) { .org-picker .f-input { height:44px; } .org-tree ul { margin-left:10px; padding-left:10px; } }
/* ---- Scheduling (Task 21): the Team schedule (#/calendar), its day editor and person drawer, and the week editor ----
   The Team schedule copies the company platform's department calendar (.dept-today*, .dept-cal*, .dept-leg*; Barry 2026-11-13):
   the Today cards, the month bar with its legend, the grid (sticky header and name column, weekends darker, today's column
   outlined in navy), a hint under it. Colours are the --ts-* tokens. */
/* every page head (Barry 2026-11-24): its buttons sit centered against the title block (eyebrow, title and any line under
   it), not at its top; this beats drivo.css .page-head { align-items:flex-start }, the Team schedule's old flex-end too */
.page-head, .ts .page-head { align-items:center; }
.ts-filters { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.ts-filters .f-input { min-width:150px; }
.cal-disabled { font-size:13px; }
.ts-today { display:flex; flex-direction:column; gap:10px; margin-bottom:18px; }
.ts-skel-today { height:120px; }
.ts-today-head { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:10px; }
.ts-today-title { display:inline-flex; align-items:center; gap:7px; margin:0; font-size:14px; font-weight:700; color:var(--text); }
.ts-today-title svg { width:15px; height:15px; color:var(--ts-today-ico); }
.ts-today-sum { font-size:12px; color:var(--text-light); }
/* Barry 2026-11-14 (no empty slots): cards wrap at 230px and every row, the last one too, stretches to the full width */
.ts-today-grid { display:flex; flex-wrap:wrap; align-items:flex-start; gap:10px; }
.ts-today-grid > .ts-tcard { flex:1 1 230px; }
.ts-tcard { background:var(--bg-card); border:1px solid var(--card-edge); border-radius:var(--radius-card); padding:10px 12px; min-width:0; }
.ts-tcard-head { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-bottom:8px; }
.ts-tcard-head h3 { margin:0; min-width:0; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.4px; color:var(--text-light); }
.ts-count { flex-shrink:0; padding:1px 8px; border-radius:var(--pill); font-size:11.5px; font-weight:700; }
.ts-count-full { background:var(--chip-ok-bg); color:var(--chip-ok-ink); }
.ts-count-part { background:var(--chip-blue-bg); color:var(--chip-blue-ink); }
.ts-count-none { background:var(--chip-neu-bg); color:var(--chip-neu-ink); }
.ts-trows { display:flex; flex-direction:column; gap:5px; margin:0; padding:0; list-style:none; }
.ts-trow { display:flex; align-items:center; gap:7px; min-width:0; font-size:12.5px; color:var(--text); }
.ts-tname { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:600; }
.ts-muted .ts-tname { font-weight:500; color:var(--text-light); }
.ts-tval { margin-left:auto; padding-left:6px; white-space:nowrap; font-size:11.5px; color:var(--text-muted); }
.ts-tonce { flex-shrink:0; padding:0 6px; border:1px dashed var(--border); border-radius:var(--pill); font-size:11px; color:var(--text-light); }
.ts-dot { flex-shrink:0; width:8px; height:8px; border-radius:50%; background:var(--text-light); }
.ts-dot-off { background:var(--n-100); border:1px solid var(--border); }
.ts-dot-k1 { background:var(--ts-k1); } .ts-dot-k2 { background:var(--ts-k2); } .ts-dot-k3 { background:var(--ts-k3); } .ts-dot-k4 { background:var(--ts-k4); }
.ts-dot-k5 { background:var(--ts-k5); } .ts-dot-k6 { background:var(--ts-k6); } .ts-dot-k7 { background:var(--ts-k7); } .ts-dot-k8 { background:var(--ts-k8); }
/* the month bar */
.ts-bar { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:10px 16px; margin-bottom:10px; }
.ts-nav { display:flex; flex-wrap:wrap; align-items:center; gap:4px; min-width:0; }
.ts-month { min-width:150px; text-align:center; font-size:16px; font-weight:700; color:var(--text); }
.ts-navbtn svg { width:16px; height:16px; }
.ts-todaybtn { font-weight:700; color:var(--text); }
.ts-nav .cal-jump { margin-left:6px; }
.ts-legend { display:flex; flex-wrap:wrap; align-items:center; gap:6px 12px; }
.ts-legend:empty { display:none; }
.ts-leg-item { display:inline-flex; align-items:center; gap:5px; font-size:11.5px; color:var(--text-muted); white-space:nowrap; }
.ts-sw { flex-shrink:0; width:10px; height:10px; border-radius:3px; }
.ts-sw-holiday, .ts-lv-holiday { background:var(--ts-holiday); }
.ts-sw-sick, .ts-lv-sick { background:var(--ts-sick); }
.ts-sw-other_leave, .ts-lv-other_leave { background:var(--ts-other); }
.ts-sw-off { background:var(--ts-off); }
.ts-sw-once { border:1.5px dashed var(--text-light); }
.ts-sw-k1 { background:var(--ts-k1-bg); border:1px solid var(--ts-k1); } .ts-sw-k2 { background:var(--ts-k2-bg); border:1px solid var(--ts-k2); }
.ts-sw-k3 { background:var(--ts-k3-bg); border:1px solid var(--ts-k3); } .ts-sw-k4 { background:var(--ts-k4-bg); border:1px solid var(--ts-k4); }
.ts-sw-k5 { background:var(--ts-k5-bg); border:1px solid var(--ts-k5); } .ts-sw-k6 { background:var(--ts-k6-bg); border:1px solid var(--ts-k6); }
.ts-sw-k7 { background:var(--ts-k7-bg); border:1px solid var(--ts-k7); } .ts-sw-k8 { background:var(--ts-k8-bg); border:1px solid var(--ts-k8); }
/* the grid */
.ts-wrap { max-height:72vh; max-height:72dvh; overflow:auto; overscroll-behavior-x:contain; background:var(--bg-card); border:1px solid var(--card-edge); border-radius:var(--radius-card); }
.ts-table { width:100%; border-collapse:separate; border-spacing:0; }
.ts-table thead th { position:sticky; top:0; z-index:6; background:var(--tbl-head); box-shadow:0 1px 0 var(--border-light); }
.ts-table thead th.ts-name-h { left:0; z-index:7; width:18%; min-width:170px; padding:6px 12px; text-align:left; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.4px; color:var(--text-light); }
.ts-day { min-width:30px; padding:5px 2px; text-align:center; font-size:12px; font-weight:700; color:var(--text-light); font-variant-numeric:tabular-nums; }
.ts-dow { display:block; font-size:10px; font-weight:600; opacity:.7; }
.ts-table thead th.ts-wkend { background:var(--n-100); }
.ts-day.ts-wkend { color:var(--text-2); }
.ts-day.ts-wkend .ts-dow { opacity:.9; }
.ts-table thead th.ts-wkend-start { box-shadow:0 1px 0 var(--border-light), inset 1px 0 0 var(--ts-wkend-edge); }
.ts-table thead th.ts-todaycol { background:var(--brand); color:var(--on-brand); }
.ts-day.ts-todaycol .ts-dow { opacity:.85; }
.ts-group th { padding:6px 12px; background:var(--bg); border-top:1px solid var(--border-light); text-align:left;
               font-size:10.5px; font-weight:700; text-transform:uppercase; letter-spacing:.4px; color:var(--text-light); }
.ts-group-l { position:sticky; left:12px; }
.ts-name { position:sticky; left:0; z-index:5; padding:0; background:var(--bg-card); border-top:1px solid var(--border-light); box-shadow:1px 0 0 var(--border-light); text-align:left; font-weight:600; }
.ts-name-btn { display:flex; align-items:center; gap:6px; width:100%; min-height:39px; padding:6px 12px; border:0; background:none; font:inherit; font-size:13px; color:var(--text); text-align:left; white-space:nowrap; cursor:pointer; }
.ts-name-txt { min-width:0; overflow:hidden; text-overflow:ellipsis; }
.ts-name-btn:has(.ts-name-hrs) { flex-wrap:wrap; row-gap:0; } /* the usual hours (Barry 2026-12-01): beside the name, or under it when the column is narrow */
.ts-name-btn:has(.ts-name-hrs) .ts-name-txt { flex:0 1 auto; max-width:100%; }
.lv-final { display:flex; flex-direction:column; gap:8px; margin-top:12px; } /* final approval (Barry 2026-12-01) */
.lv-final-pick { display:flex; flex-direction:column; gap:6px; }
.lv-final-pick[hidden] { display:none; }
.lv-final-pick .lv-hint { margin:0; font-size:12px; color:var(--text-light); }
.ts-name-hrs { flex:none; font-size:11.5px; font-weight:500; color:var(--text-light); }
.ts-name-btn:hover .ts-name-hrs { color:inherit; }
.ts-name-btn svg { flex-shrink:0; width:12px; height:12px; color:var(--text-light); opacity:0; transition:opacity var(--dur-1) var(--ease-out); }
.ts-name-btn:hover { color:var(--brand-text); }
.ts-name-btn:hover svg, .ts-name-btn:focus-visible svg { opacity:1; }
.ts-name-btn:focus-visible, .ts-hit:focus-visible { outline:2px solid var(--brand); outline-offset:-2px; }
.ts-cell { position:relative; min-width:30px; height:40px; padding:0; border-top:1px solid var(--border-light); border-left:1px solid var(--border-light); }
.ts-cell.ts-k1 { background:var(--ts-k1-bg); } .ts-cell.ts-k2 { background:var(--ts-k2-bg); } .ts-cell.ts-k3 { background:var(--ts-k3-bg); } .ts-cell.ts-k4 { background:var(--ts-k4-bg); }
.ts-cell.ts-k5 { background:var(--ts-k5-bg); } .ts-cell.ts-k6 { background:var(--ts-k6-bg); } .ts-cell.ts-k7 { background:var(--ts-k7-bg); } .ts-cell.ts-k8 { background:var(--ts-k8-bg); }
/* dark mode: each working day also carries a neon line along its foot, so a shift reads at a glance on navy */
[data-theme="dark"] .ts-cell.ts-k1 { background:linear-gradient(var(--ts-k1), var(--ts-k1)) bottom / 100% 3px no-repeat, var(--ts-k1-bg); }
[data-theme="dark"] .ts-cell.ts-k2 { background:linear-gradient(var(--ts-k2), var(--ts-k2)) bottom / 100% 3px no-repeat, var(--ts-k2-bg); }
[data-theme="dark"] .ts-cell.ts-k3 { background:linear-gradient(var(--ts-k3), var(--ts-k3)) bottom / 100% 3px no-repeat, var(--ts-k3-bg); }
[data-theme="dark"] .ts-cell.ts-k4 { background:linear-gradient(var(--ts-k4), var(--ts-k4)) bottom / 100% 3px no-repeat, var(--ts-k4-bg); }
[data-theme="dark"] .ts-cell.ts-k5 { background:linear-gradient(var(--ts-k5), var(--ts-k5)) bottom / 100% 3px no-repeat, var(--ts-k5-bg); }
[data-theme="dark"] .ts-cell.ts-k6 { background:linear-gradient(var(--ts-k6), var(--ts-k6)) bottom / 100% 3px no-repeat, var(--ts-k6-bg); }
[data-theme="dark"] .ts-cell.ts-k7 { background:linear-gradient(var(--ts-k7), var(--ts-k7)) bottom / 100% 3px no-repeat, var(--ts-k7-bg); }
[data-theme="dark"] .ts-cell.ts-k8 { background:linear-gradient(var(--ts-k8), var(--ts-k8)) bottom / 100% 3px no-repeat, var(--ts-k8-bg); }
.ts-cell.ts-wkend:not(.ts-work):not(.ts-off) { background:var(--n-100); }
.ts-cell.ts-wkend::after { content:""; position:absolute; inset:0; background:var(--ts-wkend-veil); pointer-events:none; }
.ts-cell.ts-off::before { content:""; position:absolute; inset:0; background:repeating-linear-gradient(135deg, transparent 0 3.5px, var(--ts-hatch) 3.5px 4.5px); pointer-events:none; }
.ts-cell.ts-wkend-start { border-left-color:var(--ts-wkend-edge); }
.ts-cell.ts-todaycol:not(.ts-work) { background:var(--brand-soft); }
.ts-cell.ts-todaycol { box-shadow:inset 2px 0 0 var(--brand), inset -2px 0 0 var(--brand); }
.ts-hit { position:absolute; inset:0; z-index:2; display:block; width:100%; height:100%; padding:0; border:0; background:none; cursor:pointer; }
.ts-abs { position:absolute; top:10px; bottom:10px; left:-1px; right:0; pointer-events:none; } /* -1px: over the cell edge, so a run is one bar */
.ts-abs-start { left:3px; border-radius:var(--pill) 0 0 var(--pill); }
.ts-abs-end { right:3px; border-radius:0 var(--pill) var(--pill) 0; }
.ts-abs-start.ts-abs-end { border-radius:var(--pill); }
.ts-part { position:absolute; left:4px; right:4px; bottom:4px; height:4px; border-radius:var(--pill); pointer-events:none; }
.ts-once { position:absolute; inset:2px; border:1.5px dashed var(--text-light); border-radius:4px; pointer-events:none; }
/* Calendar Team (2026-11-20): pending leave, faded with a dashed edge in its type's colour (it hides no hours) */
.ts-abs.is-pending, .ts-part.is-pending, .ts-tl-lv.is-pending, .ts-tl-part.is-pending, .ts-sw.is-pending { opacity:.62; box-shadow:none; border:1px dashed var(--text-light); }
.ts-lv-none { background:var(--text-light); } /* leave sent without its type (an approver without "See leave dates and notes") */
.ts-lv-holiday.is-pending { border-color:var(--st-holiday); }
.ts-lv-sick.is-pending { border-color:var(--st-sick); }
.ts-lv-other_leave.is-pending { border-color:var(--st-other); }
/* a day's head opens Day; Month says "N off" under it */
.ts-day-btn { display:block; width:100%; padding:0; border:0; background:none; font:inherit; color:inherit; cursor:pointer; }
.ts-off-n { display:block; font-size:10px; font-weight:600; color:var(--text-light); }
/* the day editor: that day's leave, with Open request */
.cal-leave { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:12px; }
.ts-hint { margin:10px 0 0; font-size:11.5px; color:var(--text-light); }
/* schedule power tools (Barry 2026-11-20; schedule managers): a picked day is outlined in navy under a light veil; a
   wellbeing warning is a small orange corner (its text is in the tooltip); the bar for the picked days sits under the
   grid (sticky to the bottom of the screen while the grid is taller), reusing the ghost buttons; nothing animates */
.ts-pickable { -webkit-user-select:none; user-select:none; }
.ts-cell.is-picked { box-shadow:inset 0 0 0 2px var(--brand); }
.ts-cell.is-picked::after { content:""; position:absolute; inset:0; background:var(--ts-pick); pointer-events:none; }
.ts-warn { position:absolute; top:0; right:0; z-index:1; width:0; height:0; border-top:8px solid var(--warn); border-left:8px solid transparent; pointer-events:none; }
.ts-hrs.ts-has-warn { position:relative; }
.ts-multi { position:sticky; bottom:12px; z-index:8; display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; margin-top:10px; padding:8px 12px;
  background:var(--bg-card); border:1px solid var(--card-edge); border-radius:var(--radius-card); box-shadow:var(--elev-2); }
.ts-multi-n { font-size:13px; font-weight:700; color:var(--text); }
.ts-multi-acts { order:2; display:flex; flex-wrap:wrap; gap:4px; margin-left:auto; }
.ts-multi-head { display:contents; } /* wide: one row, Clear last */
.ts-mb-clear { order:3; }
.ts-mb-short, .ts-mb-more { display:none; }
/* review 2026-11-22: at 768px and under, two 44px rows (the count, the (i) and an icon-only Clear; then Hours, Off, Reset and
   the ⋯ menu holding Copy last week, in equal columns) */
@media (max-width:768px) {
  .ts-multi { flex-direction:column; flex-wrap:nowrap; align-items:stretch; gap:0; padding:0 4px 0 12px; }
  .ts-multi-head { display:flex; align-items:center; gap:6px; min-height:44px; }
  .ts-multi-head .ts-mb-clear { margin-left:auto; min-width:44px; justify-content:center; }
  .ts-multi-acts { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); gap:4px; margin:0 0 0 -8px; }
  .ts-multi .ts-mb { min-height:44px; justify-content:center; padding-left:4px; padding-right:4px; }
  .ts-mb-long, .ts-mb-copy { display:none; }
  .ts-mb-short { display:inline; }
  .ts-mb-more { display:inline-flex; }
}
.ts-copy { display:inline-flex; align-items:center; gap:2px; margin-left:6px; }
/* minimum staffing rules (2026-11-22): the Team bar's "Staffing rules" button; a day a team is short is the .ts-warn corner
   on its column head (its words in the tooltip). The rules window reuses the leave rows and the account form's fields. */
.ts-staffbtn { margin-left:6px; }
/* company holidays and birthdays (2026-11-24): a labeled mark on the day, the line above a grid, Today's chip and the Birthdays card.
   Colour only: nothing here animates. */
.hol-banner { display:flex; gap:10px; align-items:flex-start; margin-bottom:10px; }
.hol-banner > svg { width:18px; height:18px; flex:none; margin-top:1px; }
.hol-line + .hol-line { margin-top:2px; }
.hol-when { font-weight:500; color:var(--text-muted); }
.hol-tag { display:block; min-width:0; padding:1px 6px; border-radius:var(--radius-chip-lg); background:var(--brand-soft); color:var(--brand-text); font-size:11px; font-weight:700; line-height:1.3; overflow-wrap:anywhere; }
.wk-dh .hol-tag { text-align:center; margin-top:2px; }
.mc-day .hol-tag, .wk-dh .hol-tag { max-width:100%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } /* one line, so every row of the month keeps its height; the full words are the tooltip and the line above */
/* narrow month cells and week heads (about 45px): a brand bar instead of the words (kept for screen readers and as the tooltip);
   the line above the grid names the holiday */
@media (max-width:700px) {
  .mc-day .hol-tag, .wk-dh .hol-tag { height:5px; padding:0; overflow:hidden; white-space:nowrap; text-indent:120%; background:var(--brand); border-radius:3px; }
}
th.ts-day.is-holiday { background:var(--brand-soft); }
.hol-flag { position:absolute; top:2px; left:2px; display:inline-flex; color:var(--brand-text); }
.hol-flag svg { width:11px; height:11px; }
.ts-mini-d.hol-day::after { content:""; position:absolute; left:50%; bottom:2px; width:5px; height:5px; margin-left:-2.5px; border-radius:50%; background:currentColor; }
.hol-today { margin-top:6px; }
.hol-today[hidden] { display:none; }
.hol-chip { display:inline-flex; align-items:center; gap:6px; background:var(--brand-soft); color:var(--brand-text); border-color:transparent; font-weight:700; }
.hol-chip svg { width:13px; height:13px; }
.ag-dh .hol-chip { margin-left:auto; }
.hol-h { margin:14px 0 6px; font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--text-muted); }
.hol-none { margin:0 0 6px; font-size:13px; }
.hol-dates { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
@media (max-width:600px) { .hol-dates { grid-template-columns:1fr; } }
.bd-list .ovp-row { flex-wrap:wrap; }
.bd-acts { display:flex; align-items:center; gap:6px; margin-left:auto; flex:none; }
.bd-more-row { display:flex; justify-content:center; padding-top:6px; border-top:1px solid var(--border-light); }
.bd-line { font-size:12px; color:var(--text-muted); }
.set-bd { margin-top:14px; padding-top:14px; border-top:1px solid var(--border-light); }
.set-bd[hidden] { display:none; }
.set-bd-row { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.set-bd-row .f-input { width:auto; min-width:110px; }
@media (max-width:600px) { .bd-acts { flex-basis:100%; justify-content:flex-start; padding-left:40px; } }
@media print { .bd-acts, .hol-banner { display:none !important; } }
.st-intro { margin:0 0 12px; font-size:13px; }
.st-rules { border:1px solid var(--border-light); border-radius:var(--radius-card); }
.st-rule .lv-row-name { flex:1 1 200px; }
.st-rule .lv-row-name span { white-space:normal; }
.st-acts { display:flex; flex-wrap:wrap; gap:4px; }
.st-form { display:flex; flex-direction:column; gap:14px; }
.st-days-f { display:flex; flex-direction:column; gap:6px; min-width:0; margin:0; padding:0; border:0; }
.st-days { display:grid; grid-template-columns:repeat(7, minmax(0, 1fr)); gap:6px; }
.st-day { display:flex; flex-direction:column; align-items:center; gap:4px; min-width:0; font-size:12px; font-weight:600; color:var(--text-2); }
.st-day input { width:100%; min-width:0; padding-left:2px; padding-right:2px; text-align:center; -moz-appearance:textfield; appearance:textfield; }
.st-day input::-webkit-inner-spin-button, .st-day input::-webkit-outer-spin-button { margin:0; -webkit-appearance:none; }
.st-team { font-size:14px; font-weight:600; color:var(--text); }
.st-times { flex-wrap:wrap; }
.cal-warn { margin:0 0 12px; }
.cal-warn-l { margin:0; padding-left:18px; }
.cal-warn-l li + li { margin-top:4px; }
.cal-skip { margin:0 0 12px; font-size:12.5px; }
.cal-copy-q { margin:0 0 12px; }
.pw [data-m="warn"] .cal-warn { margin:12px 0 0; }
[data-m="weekwarn"] .cal-warn { margin:12px 0 0; }
@media (hover:hover) and (pointer:fine) { .ts-cell:hover { outline:1px solid var(--brand); outline-offset:-1px; z-index:1; } }
@media (max-width:768px) {
  .ts-filters, .ts-filters .f-input { width:100%; }
  .ts-nav { width:100%; }
  .ts-month { min-width:0; flex:1; }
  .ts-nav .cal-jump { flex-basis:100%; margin:4px 0 0; }
  .ts-nav .cal-jump .f-input { width:100%; }
  .ts-table thead th.ts-name-h { width:auto; min-width:120px; }
  .ts-name-btn { max-width:150px; padding:6px 8px; font-size:12.5px; }
  .ts-wrap { max-height:none; }
}
/* Team schedule views (Barry 2026-11-14): the view switch and the period picker in the month bar; Week (wider cells with
   their text, the hours column, the "N working" footer); Day (a 24-hour timeline under the sticky names: bars in the
   shift colours, the night before carried in, a now line, who works at each hour); Year (12 mini months, auto-fit). */
.ts-views { flex-shrink:0; }
.ts-period { display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:5px 10px; border:0; border-radius:var(--radius-sm);
  background:none; font:inherit; font-size:16px; font-weight:700; color:var(--text); cursor:pointer; }
.ts-period svg { width:15px; height:15px; color:var(--text-light); transition:transform var(--dur-1) var(--ease-out); }
.ts-period[aria-expanded="true"] svg { transform:rotate(180deg); }
.ts-period:focus-visible { outline:2px solid var(--brand); outline-offset:1px; }
@media (hover:hover) and (pointer:fine) { .ts-period:hover { background:var(--bg-2); } }
.ts-pick { width:288px; padding:10px; background:var(--bg-card); border:1px solid var(--card-edge); border-radius:var(--radius-card); box-shadow:var(--elev-3); overflow:auto; }
.ts-pick-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
.ts-pick-y { font-size:14px; font-weight:800; color:var(--text); }
.ts-pick-grid { display:grid; grid-template-columns:repeat(4, 1fr); gap:4px; }
.ts-pick-cell { padding:8px 0; border:1px solid transparent; border-radius:var(--radius-sm); background:none; font:inherit; font-size:13px; font-weight:600; color:var(--text-2); cursor:pointer; }
.ts-pick-cell.is-today { border-color:var(--brand); }
.ts-pick-cell.is-sel { background:var(--brand); color:var(--on-brand); }
.ts-pick-mini { margin-top:10px; padding-top:10px; border-top:1px solid var(--border-light); }
.ts-pick-ml { margin-bottom:6px; font-size:12px; font-weight:700; color:var(--text-light); text-transform:uppercase; letter-spacing:.4px; }
.ts-mini { display:grid; grid-template-columns:repeat(7, 1fr); gap:2px; }
.ts-mini-h { padding:2px 0; text-align:center; font-size:11px; font-weight:700; color:var(--text-light); }
.ts-mini-d { position:relative; display:grid; place-items:center; min-height:28px; padding:0; border:0; border-radius:4px; background:none; font:inherit; font-size:12px; color:var(--text); cursor:pointer; }
.ts-mini-d.ts-wkend { color:var(--text-muted); }
.ts-mini-d.ts-out { color:var(--text-light); opacity:.55; }
.ts-mini-d.is-today { box-shadow:inset 0 0 0 1.5px var(--brand); font-weight:800; }
.ts-pick .ts-mini-d.is-sel { background:var(--brand-soft); color:var(--brand-text); font-weight:700; }
.ts-pick .ts-mini-d.is-sel.is-today { background:var(--brand); color:var(--on-brand); }
.ts-pick-cell:focus-visible, .ts-mini-d:focus-visible, .ts-ycard-h:focus-visible { outline:2px solid var(--brand); outline-offset:1px; }
@media (hover:hover) and (pointer:fine) { .ts-pick-cell:not(.is-sel):hover, .ts-mini-d:not(.ts-out):hover { background:var(--bg-2); } }
/* Week */
.ts-table-week .ts-day { min-width:96px; }
.ts-cell.ts-wide { min-width:96px; height:44px; }
.ts-txt { position:absolute; inset:0; z-index:1; display:flex; align-items:center; justify-content:center; padding:0 4px; font-size:12px; font-weight:600;
  color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; pointer-events:none; }
.ts-off .ts-txt, .ts-none .ts-txt { color:var(--text-muted); font-weight:500; }
.ts-leave .ts-txt { color:var(--on-solid); }
.ts-hrs-h, .ts-hrs { min-width:72px; padding:0 10px; text-align:right; font-size:12px; font-weight:700; color:var(--text-2); white-space:nowrap; }
.ts-table thead th.ts-hrs-h { font-size:11px; text-transform:uppercase; letter-spacing:.4px; color:var(--text-light); }
.ts-hrs { border-top:1px solid var(--border-light); border-left:1px solid var(--border-light); }
.ts-foot th, .ts-foot td { position:sticky; bottom:0; z-index:5; height:36px; background:var(--tbl-head); border-top:1px solid var(--border); }
.ts-foot .ts-foot-l { z-index:7; padding:0 12px; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.4px; color:var(--text-light); }
.ts-foot-n { text-align:center; font-size:12px; font-weight:700; color:var(--text-2); }
.ts-foot-n.ts-todaycol { color:var(--brand-text); }
/* Day */
.ts-tl-wrap { --tl-name:200px; --tl-hour:64px; max-height:72vh; max-height:72dvh; overflow:auto; overscroll-behavior-x:contain; background:var(--bg-card);
  border:1px solid var(--card-edge); border-radius:var(--radius-card); }
.ts-tl { width:calc(var(--tl-name) + 24 * var(--tl-hour)); }
.ts-tl-row { display:flex; min-height:40px; border-top:1px solid var(--border-light); }
.ts-tl-name { position:sticky; left:0; z-index:5; flex:0 0 var(--tl-name); display:flex; align-items:center; background:var(--bg-card); box-shadow:1px 0 0 var(--border-light); font-weight:600; }
.ts-tl-track { position:relative; flex:0 0 calc(24 * var(--tl-hour));
  background:repeating-linear-gradient(90deg, transparent 0 calc(var(--tl-hour) - 1px), var(--border-light) calc(var(--tl-hour) - 1px) var(--tl-hour)); }
.ts-tl-head { position:sticky; top:0; z-index:7; min-height:30px; border-top:0; background:var(--tbl-head); box-shadow:0 1px 0 var(--border-light); }
.ts-tl-head .ts-tl-name { z-index:8; padding:0 12px; background:var(--tbl-head); font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.4px; color:var(--text-light); }
.ts-tl-head .ts-tl-track { background:none; }
.ts-tl-h { position:absolute; top:8px; padding-left:4px; font-size:11px; font-weight:600; color:var(--text-light); white-space:nowrap; }
.ts-tl-group { min-height:0; background:var(--bg); }
.ts-tl-gname { position:sticky; left:0; padding:6px 12px; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.4px; color:var(--text-light); }
.ts-tl-off { background-color:var(--bg-card); background-image:repeating-linear-gradient(135deg, transparent 0 3.5px, var(--ts-hatch) 3.5px 4.5px); }
.ts-tl-bar { position:absolute; top:7px; bottom:7px; z-index:3; display:flex; align-items:center; justify-content:space-between; gap:6px; min-width:4px; padding:0 8px;
  border-radius:var(--radius-sm); border-left:3px solid; overflow:hidden; pointer-events:none; }
.ts-tl-bar.ts-k0 { background:var(--n-100); border-color:var(--text-light); }
.ts-tl-bar.ts-k1 { background:var(--ts-k1-bg); border-color:var(--ts-k1); } .ts-tl-bar.ts-k2 { background:var(--ts-k2-bg); border-color:var(--ts-k2); }
.ts-tl-bar.ts-k3 { background:var(--ts-k3-bg); border-color:var(--ts-k3); } .ts-tl-bar.ts-k4 { background:var(--ts-k4-bg); border-color:var(--ts-k4); }
.ts-tl-bar.ts-k5 { background:var(--ts-k5-bg); border-color:var(--ts-k5); } .ts-tl-bar.ts-k6 { background:var(--ts-k6-bg); border-color:var(--ts-k6); }
.ts-tl-bar.ts-k7 { background:var(--ts-k7-bg); border-color:var(--ts-k7); } .ts-tl-bar.ts-k8 { background:var(--ts-k8-bg); border-color:var(--ts-k8); }
.ts-tl-cont { border-top-right-radius:0; border-bottom-right-radius:0; }
.ts-tl-carry { border-left-style:dotted; border-top-left-radius:0; border-bottom-left-radius:0; opacity:.8; }
.ts-tl-once { outline:1.5px dashed var(--text-light); outline-offset:1px; }
.ts-tl-lbl, .ts-tl-more { font-size:12px; font-weight:600; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ts-tl-more { flex-shrink:0; font-weight:700; color:var(--text-2); }
.ts-tl-part { position:absolute; bottom:3px; z-index:4; height:4px; border-radius:var(--pill); pointer-events:none; }
.ts-tl-lv { position:absolute; inset:9px 6px; z-index:3; display:flex; align-items:center; padding:0 10px; border-radius:var(--pill); pointer-events:none; }
.ts-tl-lv span { position:sticky; left:calc(var(--tl-name) + 10px); font-size:12px; font-weight:700; color:var(--on-solid); }
.ts-tl-note { position:absolute; top:50%; left:0; z-index:3; transform:translateY(-50%); padding:0 10px; font-size:12px; color:var(--text-muted); pointer-events:none; }
.ts-tl-nowl { position:absolute; top:0; bottom:0; z-index:4; width:2px; margin-left:-1px; background:var(--ts-now); pointer-events:none; }
.ts-tl-head .ts-tl-nowl::before { content:""; position:absolute; bottom:-4px; left:-3px; width:8px; height:8px; border-radius:50%; background:var(--ts-now); }
.ts-tl-foot { position:sticky; bottom:0; z-index:6; min-height:34px; background:var(--tbl-head); border-top:1px solid var(--border); }
.ts-tl-foot .ts-tl-name { padding:0 12px; background:var(--tbl-head); font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.4px; color:var(--text-light); }
.ts-tl-foot .ts-tl-track { background:none; }
.ts-tl-n { position:absolute; top:0; bottom:0; width:var(--tl-hour); display:grid; place-items:center; font-size:12px; font-weight:700; color:var(--text-2); }
.ts-tl-n.is-zero { color:var(--text-light); font-weight:500; }
.ts-tl-track .ts-hit { z-index:2; }
.ts-tl-name .ts-name-btn { min-height:39px; }
@media (hover:hover) and (pointer:fine) { .ts-tl-track:hover .ts-hit { background:var(--brand-soft); opacity:.5; } }
/* Year */
.ts-year { display:grid; grid-template-columns:repeat(6, minmax(0, 1fr)); gap:12px; } /* column counts that divide 12: no empty slots after December */
@media (max-width:1700px) { .ts-year { grid-template-columns:repeat(4, minmax(0, 1fr)); } }
@media (max-width:1250px) { .ts-year { grid-template-columns:repeat(3, minmax(0, 1fr)); } }
@media (max-width:1000px) { .ts-year { grid-template-columns:repeat(2, minmax(0, 1fr)); } }
.ts-ycard { min-width:0; padding:10px 12px 12px; background:var(--bg-card); border:1px solid var(--card-edge); border-radius:var(--radius-card); }
.ts-ycard-h { display:block; margin:0 0 6px; padding:2px 0; border:0; background:none; font:inherit; font-size:14px; font-weight:800; color:var(--text); cursor:pointer; }
@media (hover:hover) and (pointer:fine) { .ts-ycard-h:hover { color:var(--brand-text); } }
.ts-yskel { height:170px; }
.ts-yerr { padding:20px 0; font-size:12.5px; color:var(--text-muted); }
.ts-ycard .ts-mini-d { min-height:26px; }
.ts-ycard .ts-mini-d.ts-wkend:not(.ts-heat-4) { box-shadow:inset 0 0 0 999px var(--ts-wkend-veil); }
.ts-ycard .ts-mini-d.ts-wkend.is-today, .ts-ycard .ts-mini-d.is-today { box-shadow:inset 0 0 0 2px var(--text); }
.ts-heat-0 { color:var(--text-muted); }
.ts-heat-1 { background:var(--ts-heat-1); }
.ts-heat-2 { background:var(--ts-heat-2); }
.ts-heat-3 { background:var(--ts-heat-3); font-weight:700; }
.ts-heat-4 { background:var(--brand); color:var(--on-brand); font-weight:700; }
.ts-ycard .ts-mini-d.ts-heat-4 { color:var(--on-brand); }
.ts-sw.ts-heat-0 { border:1px solid var(--border); }
.ts-sw-today { box-shadow:inset 0 0 0 2px var(--text); }
.ts-is-year .ts-hint, .ts-is-day .ts-hint { display:none; }
/* Calendar Me, Year (2026-11-20): the same cards; a dot on a day with leave, tasks due or meetings */
.mc-year .ts-mini-d { position:relative; }
.mc-ydot { position:absolute; left:50%; bottom:2px; width:4px; height:4px; margin-left:-2px; border-radius:50%; background:var(--brand); }
@media (max-width:768px) {
  .ts-views { width:100%; }
  .ts-views button { flex:1 1 0; }
  .ts-period { font-size:15px; flex:1; min-width:0; padding:5px 4px; }
  .ts-tl-wrap { --tl-name:128px; --tl-hour:52px; max-height:none; }
  .ts-tl-name .ts-name-btn { max-width:128px; padding:6px 8px; font-size:12.5px; }
  .ts-year { grid-template-columns:1fr; }
  .ts-table-week .ts-day, .ts-cell.ts-wide { min-width:96px; }
  /* 12-hour hours (2026-11-17): "10 PM – 6 AM" fits one line; "8:30 AM – 5:30 PM" takes two balanced lines, never an ellipsis */
  .ts-cell.ts-wide .ts-txt { white-space:normal; text-wrap:balance; text-align:center; line-height:1.15; }
}
@media (prefers-reduced-motion:reduce) { .ts-period svg { transition:none; } }
.cal-edit { display:flex; flex-direction:column; gap:14px; }
.cal-times { display:flex; align-items:center; gap:8px; }
.cal-times[hidden] { display:none; }
.cal-scope { border:0; margin:0; padding:0; display:flex; flex-direction:column; gap:6px; }
.cal-week-foot { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-top:12px; }
/* the person window (Barry 2026-11-14: their normal week, no month): a header strip, the week as 7 rows with the shift
   colour (--ts-k*) as a left marker and a day off hatched, later versions as "From <date>", a short Recent changes */
.pw { display:flex; flex-direction:column; gap:14px; }
.pw-head { display:flex; align-items:center; gap:12px; padding:10px 12px; border:1px solid var(--border-light); border-radius:var(--radius-card); background:var(--bg-2); }
.pw-id { min-width:0; display:flex; flex-direction:column; gap:1px; }
.pw-name { font-size:14px; font-weight:800; color:var(--text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pw-meta { font-size:12px; color:var(--text-muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pw-sum { font-size:12.5px; font-weight:600; color:var(--text); }
.pw-sec { display:flex; flex-direction:column; gap:8px; }
.pw-sec[hidden] { display:none; }
.pw-sec-h { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:28px; }
.pw-h { margin:0; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:var(--text-muted); }
.pw-h-sub { font-size:13px; text-transform:none; letter-spacing:0; color:var(--text); }
.pw-later { margin-top:4px; }
.pw-week { width:100%; table-layout:fixed; border-collapse:separate; border-spacing:0; border:1px solid var(--border-light); border-radius:var(--radius-card); overflow:hidden; font-size:13px; }
.pw-week th, .pw-week td { height:30px; padding:0 12px; border-top:1px solid var(--border-light); text-align:left; vertical-align:middle; }
.pw-week tr:first-child th, .pw-week tr:first-child td { border-top:0; }
.pw-week th { position:relative; width:44%; padding-left:16px; font-weight:600; color:var(--text); white-space:nowrap; }
.pw-mark { position:absolute; left:0; top:6px; bottom:6px; width:3px; border-radius:0 2px 2px 0; }
.pw-k1 .pw-mark { background:var(--ts-k1); } .pw-k2 .pw-mark { background:var(--ts-k2); } .pw-k3 .pw-mark { background:var(--ts-k3); } .pw-k4 .pw-mark { background:var(--ts-k4); }
.pw-k5 .pw-mark { background:var(--ts-k5); } .pw-k6 .pw-mark { background:var(--ts-k6); } .pw-k7 .pw-mark { background:var(--ts-k7); } .pw-k8 .pw-mark { background:var(--ts-k8); }
.pw-k0 .pw-mark { background:var(--text-light); }
.pw-hours { white-space:nowrap; font-weight:600; color:var(--text); }
.pw-week .pw-len { width:80px; text-align:right; white-space:nowrap; color:var(--text-muted); }
.pw-off { background-color:var(--bg-card); background-image:repeating-linear-gradient(135deg, transparent 0 3.5px, var(--ts-hatch) 3.5px 4.5px); }
.pw-off th, .pw-off .pw-hours, .pw-none th, .pw-none .pw-hours { color:var(--text-muted); font-weight:500; }
.pw-day.is-today th { font-weight:800; }
.pw-today { display:inline-block; margin-left:8px; padding:1px 7px; border-radius:var(--radius-chip-lg); font-size:11px; font-weight:700; vertical-align:1px; background:var(--brand); color:var(--on-brand); }
.pw-empty { padding:4px 0; font-size:13px; }
.pw-changes { margin:0; padding:0; list-style:none; border:1px solid var(--border-light); border-radius:var(--radius-card); }
.pw-changes li { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:2px 12px; padding:7px 12px; border-top:1px solid var(--border-light); font-size:13px; }
.pw-changes li:first-child { border-top:0; }
.pw-ch-what { min-width:0; color:var(--text); overflow-wrap:anywhere; }
.pw-ch-meta { margin-left:auto; font-size:12px; color:var(--text-muted); white-space:nowrap; }
.pw-more { align-self:flex-start; }
.pw-edit-btns { display:flex; gap:8px; }
.pw-skel-head { height:64px; border-radius:var(--radius-card); }
.pw-skel-week { height:212px; border-radius:var(--radius-card); }

/* ---------- Schedule requests (2026-11-16): "Confirm your schedule", Account settings' "My schedule", the Team
   schedule's "Schedule requests" and the review window (Hub.scheduleRequest). The weeks reuse .pw-week. Touch sizes are
   in the Device-aware section. ---------- */
.auth-card.auth-card-wide { max-width:560px; }
.cs-week { display:flex; flex-direction:column; gap:12px; margin-bottom:18px; }
.cs-alert { margin-bottom:14px; }
.cs-actions { display:flex; flex-direction:column; gap:10px; }
.cs .sr-form { margin-top:-8px; }
.sr-vers { display:flex; flex-direction:column; gap:12px; }
.sr-ver, .sr-col { display:flex; flex-direction:column; gap:6px; min-width:0; }
.sr-ver-h { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:4px 8px; }
.sr-sum { font-size:12px; color:var(--text-muted); }
.sr-empty { padding:4px 0; font-size:13px; }
.sr-form { display:flex; flex-direction:column; gap:14px; }
.sr-fields { display:grid; grid-template-columns:minmax(0, 220px) minmax(0, 1fr); gap:12px; align-items:start; }
.sr-fields .acc-field { margin:0; }
.sr-form textarea, .sr-why textarea { height:auto; min-height:64px; resize:vertical; }
.sr-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }
.sr-req { display:flex; flex-direction:column; gap:6px; margin-top:14px; padding:12px; border:1px solid var(--border-light); border-radius:var(--radius-card); background:var(--bg-2); }
.sr-req-h { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.sr-req-line { display:flex; flex-wrap:wrap; align-items:baseline; gap:2px 10px; font-size:13px; color:var(--text); }
.sr-req-meta { font-size:12.5px; }
.sr-reason { font-size:13px; line-height:1.45; color:var(--text); overflow-wrap:anywhere; }
.sr-asked summary { cursor:pointer; font-size:13px; font-weight:600; color:var(--brand); }
.sr-asked .pw-week { margin-top:8px; }
.sr-req > .btn { align-self:flex-start; }
.sr-foot { display:flex; margin-top:14px; }
.sr-note-line { margin:0; font-size:13px; }
.set-sched { scroll-margin-top:84px; } /* #/settings?schedule=1 lands below the phone's top bar */
/* Account settings: "Fix these" (2026-11-21), above Profile; its host takes no room while the card is not there */
.set-fix-host { max-width:760px; }
.set-fix-host:empty { display:none; }
@media (min-width:960px) { .set-fix-host { max-width:none; } }
.set-fix { margin-bottom:14px; }
.set-fix-list { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.set-fix-row { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px 16px; padding:12px 14px; border:1px solid var(--border); border-radius:var(--radius); background:var(--bg-card); min-width:0; }
.set-fix-text { display:flex; align-items:flex-start; gap:10px; flex:1 1 260px; min-width:0; font-size:13.5px; line-height:1.5; color:var(--text); }
.set-fix-text .rc-row-ico { margin-top:-3px; }
.set-fix-go { flex-shrink:0; }
@media (max-width:600px) { .set-fix-go { width:100%; justify-content:center; } }
.ts-requests { margin-bottom:18px; }
.ts-requests[hidden] { display:none; }
.sr-card .card-title { display:flex; align-items:center; gap:8px; }
.sr-count { min-width:22px; padding:1px 7px; border-radius:var(--radius-chip-lg); font-size:11.5px; font-weight:700; text-align:center; background:var(--warn-bg); color:var(--warn-ink); }
.sr-list { margin:0; padding:0; list-style:none; border:1px solid var(--border-light); border-radius:var(--radius-card); }
.sr-row { display:grid; grid-template-columns:minmax(0, 1.2fr) minmax(0, 1fr) auto; align-items:center; gap:8px 14px; padding:10px 12px; border-top:1px solid var(--border-light); }
.sr-row:first-child { border-top:0; }
.sr-who { display:flex; align-items:center; gap:10px; min-width:0; }
.sr-who-t, .sr-what { display:flex; flex-direction:column; min-width:0; font-size:13px; color:var(--text); }
.sr-who-t > *, .sr-what > * { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sr-review { display:flex; flex-direction:column; gap:12px; }
.sr-decided { display:flex; flex-wrap:wrap; align-items:center; gap:8px; font-size:13px; color:var(--text); }
.sr-compare { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:12px; }
.sr-compare .pw-week th { width:42%; }
.sr-compare .pw-len { display:none; }
@media (max-width:600px) {
  .sr-fields, .sr-compare { grid-template-columns:minmax(0, 1fr); }
  .sr-row { grid-template-columns:minmax(0, 1fr) auto; }
  .sr-row .sr-what { grid-column:1; }
  .sr-what > * { white-space:normal; } /* "5 working days · 40h 30m a week" wraps instead of cutting off */
  .sr-row .btn { grid-column:2; grid-row:1 / span 2; }
}
@media (max-width:600px) {
  .pw-ch-meta { margin-left:0; white-space:normal; }
}
.week-editor { display:flex; flex-direction:column; gap:10px; }
.we-fills { display:flex; flex-wrap:wrap; gap:6px; }
/* Manager notes (2026-11-27; kit/person-notes.js): the list, the writer's tools, the add / edit box with "Who can see it" */
.pn { display:flex; flex-direction:column; gap:10px; min-width:0; }
.pn-list { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; }
.pn-note { border:1px solid var(--border); border-radius:var(--radius-sm); padding:8px 10px; background:var(--bg-card); min-width:0; }
.pn-meta { display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px; font-size:12.5px; }
.pn-body { margin:4px 0 0; font-size:13.5px; line-height:1.5; white-space:pre-wrap; overflow-wrap:anywhere; color:var(--text); }
.pn-tools { display:flex; flex-wrap:wrap; align-items:center; gap:4px; margin-top:4px; }
.pn-ask { font-size:12.5px; font-weight:600; margin-right:4px; }
.pn-form { display:flex; flex-direction:column; gap:6px; }
.pn-text { min-height:64px; resize:vertical; font:inherit; padding:8px 10px; }
.pn-who { display:flex; flex-wrap:wrap; align-items:center; gap:4px 14px; font-size:13px; }
.pn-who-label { font-size:12px; font-weight:700; color:var(--text-2); }
.pn-actions { display:flex; gap:6px; }
.sd-ask-row { display:flex; flex-wrap:wrap; align-items:flex-start; gap:8px; }
.sa-row { display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; margin-top:6px; font-size:12.5px; }
/* Shift presets (2026-11-27; kit/shift-presets.js): the buttons in the week editor and the window */
.we-presets { display:flex; flex-wrap:wrap; align-items:center; gap:6px; }
.we-presets-label { font-size:12px; font-weight:700; color:var(--text-2); }
.we-preset .muted { font-weight:500; }
.sp-window { display:flex; flex-direction:column; gap:12px; min-width:0; }
.sp-lead { margin:0; font-size:13px; color:var(--text-2); }
.sp-tabs { align-self:flex-start; max-width:100%; overflow-x:auto; }
.sp-tabs button { white-space:nowrap; }
.sp-n { font-size:11px; color:var(--text-muted); }
.sp-list { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:6px; }
.sp-row { display:flex; flex-wrap:wrap; align-items:center; gap:6px 12px; padding:6px 10px; border:1px solid var(--border); border-radius:var(--radius-sm); min-height:44px; }
.sp-name { font-weight:700; min-width:120px; }
.sp-hours { color:var(--text-2); font-size:13px; flex:1; }
.sp-tools { display:flex; gap:2px; }
.sp-add { border-top:1px solid var(--border-light); padding-top:10px; display:flex; flex-direction:column; gap:6px; }
.sp-form { display:flex; flex-wrap:wrap; align-items:flex-end; gap:8px; }
.sp-field { display:flex; flex-direction:column; gap:3px; min-width:0; }
.sp-field .f-input { min-width:110px; }
.sp-btns { display:flex; gap:6px; }
/* US time (2026-11-27): "Times in" Uzbekistan / US, and what is saved in Tashkent time under the rows */
.we-zone { display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; }
.we-zone-label { font-size:12px; font-weight:700; color:var(--text-2); }
.we-zone-seg button { padding:5px 10px; font-size:12.5px; }
.we-saved { border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--bg-2); padding:10px 12px; display:flex; flex-direction:column; gap:8px; }
.we-saved-head { font-size:12.5px; }
.we-rows { display:flex; flex-direction:column; gap:6px; }
.we-row { display:grid; grid-template-columns:52px auto auto 1fr; align-items:center; gap:8px; }
.we-day { display:flex; align-items:center; gap:6px; font-weight:600; font-size:13px; }
.we-seg button { padding:4px 8px; font-size:12px; }
.we-times { display:flex; align-items:center; gap:6px; }
.week-editor .we-times .f-input { width:98px; min-width:0; padding:0 6px; } /* room for "10:00 PM" beside the arrow (12-hour, 2026-11-17) */
.we-row.is-off .we-times { visibility:hidden; }
.we-hours { font-size:12px; min-width:0; text-align:right; white-space:nowrap; }
.we-to { color:var(--text-muted); }
.we-summary { margin:0; padding:0; list-style:none; display:flex; flex-direction:column; gap:4px; font-size:13px; }
.we-summary li { display:grid; grid-template-columns:48px 1fr auto; gap:8px; }
.we-sum-day { font-weight:600; }
@media (max-width:600px) {
  .we-row { grid-template-columns:56px 1fr; }
  .we-times { grid-column:1 / -1; }
  .we-row.is-off .we-times { display:none; }
  .we-hours { display:none; }
}

/* ---------- Batch 1 B4: the typed date box (Hub.dateField) and its month / year picker ---------- */
.df { display:flex; align-items:center; gap:6px; }
.df .df-input { flex:1; min-width:0; font-variant-numeric:tabular-nums; }
.df .df-open { flex-shrink:0; width:36px; height:36px; border:1px solid var(--border); background:var(--bg-card); }
.df .df-open:disabled { opacity:.5; cursor:not-allowed; }
.df-read { min-height:16px; margin-top:4px; font-size:12px; color:var(--text-muted); }
.df-pop { width:288px; min-width:0; padding:10px; }
.df-nav { display:flex; align-items:center; gap:6px; margin-bottom:8px; }
.df-nav .f-input { padding:6px 8px; height:32px; min-width:0; font-size:13px; }
.df-nav .df-month { flex:1.5; min-width:112px; }
.df-nav .df-year { flex:1; min-width:76px; }
.df-grid { width:100%; border-collapse:collapse; table-layout:fixed; }
.df-grid th { font-size:11px; font-weight:600; color:var(--text-muted); padding:2px 0 6px; text-align:center; }
.df-grid td { padding:1px; text-align:center; }
.df-day { width:100%; height:32px; border:0; border-radius:var(--radius-sm); background:none; color:var(--text); font:inherit; font-size:13px;
          font-variant-numeric:tabular-nums; cursor:pointer; transition:background var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out); }
.df-day:hover { background:var(--n-50); }
.df-day:active { transform:scale(.94); }
.df-day.is-today { box-shadow:inset 0 0 0 1px var(--brand-ring); color:var(--brand-text); font-weight:600; }
.df-day.is-picked { background:var(--brand); color:var(--on-brand); font-weight:700; }
.df-foot { display:flex; justify-content:space-between; margin-top:6px; }

/* ---------- Batch 1 B1: the windows behind Today's head buttons (Hub.homePanels, once the Overview cards' windows) ---------- */
.ovp-drawer .drawer-body { padding-top:12px; }
.ovp-more { margin:6px 0 12px; font-size:13px; }
.ovp-list { list-style:none; margin:0 -8px; padding:0; }
.ovp-row, .ovp-link { display:flex; align-items:center; gap:10px; padding:8px; border-radius:var(--radius); min-height:44px; }
.ovp-row + .ovp-row { border-top:1px solid var(--border-light); }
.ovp-link { color:var(--text); text-decoration:none; transition:background var(--dur-fast) var(--ease-smooth); }
.ovp-link:hover { background:var(--bg-2); }
.ovp-link:active { background:var(--n-100); }
.ovp-link > svg { margin-left:auto; color:var(--text-muted); flex:none; }
.ovp-main { display:flex; flex-direction:column; gap:1px; min-width:0; flex:1; }
.ovp-name { font-size:13.5px; font-weight:600; color:var(--text); overflow-wrap:anywhere; }
.ovp-meta { font-size:12px; color:var(--text-muted); overflow-wrap:anywhere; }
.ovp-end { flex:none; }
.ovp-empty { margin:6px 0 12px; font-size:13px; color:var(--text-muted); }
.ovp-h { margin:14px 0 4px; font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--text-muted); }
.ovp-h:first-child { margin-top:0; }
.ovp-skels { display:flex; flex-direction:column; gap:10px; }
.ovp-skel { height:44px; border-radius:var(--radius-sm); }
.ovp-check { display:flex; align-items:center; gap:8px; margin-bottom:10px; }
.ovp-req { align-items:flex-start; flex-wrap:wrap; }
.ovp-leave { flex-wrap:wrap; }
.ovp-leave .ovp-main { flex-basis:140px; }
.ovp-acts { display:flex; gap:6px; flex-wrap:wrap; flex-basis:100%; padding-left:34px; }
/* Batch 1 B6: the Audit log's filters skeleton, as tall as the filters that replace it (271 / 167 / 104 px) */
.au-filters-skel { height:271px; margin-bottom:14px; border-radius:var(--radius); }
@media (min-width:601px) { .au-filters-skel { height:167px; } }
@media (min-width:1101px) { .au-filters-skel { height:104px; } }

/* ---------- Finances (Batch 4): quarterly department budgets and spending ---------- */
.fin-nav { display:flex; flex-direction:row; align-items:center; gap:6px; } /* fill-space: in the page head, no card */
.fin-q { display:inline-flex; align-items:center; gap:8px; font-size:15px; font-weight:700; color:var(--text); font-variant-numeric:tabular-nums; margin:0 4px; }
.fin-q-now { margin-left:6px; }
/* fill-space 2 (2026-11-14): the company total is the first tile; tiles wrap by count so no row keeps empty slots
   (6 tiles = 3 x 2, 5 = one row from 1440px or 3 + 2 below, 4 = one row or 2 x 2); a short last row grows to fill */
.fin-cards { display:flex; flex-wrap:wrap; gap:16px; --fin-basis:100%; }
.fin-cards > * { flex:1 1 calc(var(--fin-basis) - 16px); min-width:0; }
@media (min-width:700px) {
    .fin-cards { --fin-basis:50%; }
}
@media (min-width:1100px) {
    .fin-cards[data-n="3"], .fin-cards[data-n="5"], .fin-cards[data-n="6"], .fin-cards[data-n="9"] { --fin-basis:33.333%; }
}
@media (min-width:1440px) {
    .fin-cards[data-n="4"], .fin-cards[data-n="8"] { --fin-basis:25%; }
    .fin-cards[data-n="5"], .fin-cards[data-n="10"] { --fin-basis:20%; }
}
.fin-none-line { font-size:13px; color:var(--text-muted); font-variant-numeric:tabular-nums; }
.fin-none-line b { font-size:15px; font-weight:700; color:var(--text); }
.fin-card { position:relative; display:flex; flex-direction:column; gap:12px; padding:16px 18px; min-width:0; text-align:left; font:inherit; color:inherit; cursor:pointer;
            transition:transform var(--dur-hover) var(--ease-spring), border-color var(--dur-fast) var(--ease-smooth); }
/* the platform's hover: a small --sh-sm layer on ::after fades in; a press dips */
.fin-card::after { content:''; position:absolute; inset:-1px; border-radius:inherit; box-shadow:var(--sh-sm); opacity:0;
                   transition:opacity var(--dur-hover) var(--ease-smooth); pointer-events:none; }
@media (hover:hover) and (pointer:fine) {
    .fin-card:hover { z-index:1; }
    .fin-card:hover::after { opacity:1; }
}
.fin-card:hover { border-color:var(--n-300); }
.fin-card:active { transform:scale(var(--press-scale)); transition:transform var(--dur-press) var(--ease-out); }
.fin-card:focus-visible { outline:2px solid var(--brand); outline-offset:2px; }
.fin-card.is-over { border-color:var(--err-bg); box-shadow:inset 3px 0 0 var(--err), var(--elev-1), var(--highlight); }
.fin-card-head { display:flex; align-items:center; justify-content:space-between; gap:8px; min-width:0; }
.fin-dept { font-size:15px; font-weight:700; color:var(--text); overflow-wrap:anywhere; }
.fin-tag { flex:none; font-size:11px; padding:2px 8px; }
.fin-tag.is-view { background:var(--neu-bg); color:var(--neu-ink); }
.fin-card-status { margin-top:-4px; }
.fin-figs { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:10px; container-type:inline-size; }
.fin-fig { display:flex; flex-direction:column; gap:2px; min-width:0; }
.fin-fig-l { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:var(--text-muted); }
.fin-fig-v { font-size:clamp(11px, 4.4cqi, 15px); font-weight:700; color:var(--text); white-space:nowrap; font-variant-numeric:tabular-nums; } /* money never breaks inside a number: it shrinks with its card */
.fin-fig.is-over .fin-fig-v { color:var(--err-ink); }
.fin-bar { height:8px; border-radius:var(--radius-xs); background:var(--chart-track); overflow:hidden; }
.fin-bar > span { display:block; height:100%; border-radius:inherit; background:var(--bar-fill); } /* the platform's navy progress; amber and red still warn */
.fin-bar.is-high > span { background:var(--warn); }
.fin-bar.is-over > span { background:var(--err); }
.fin-card-foot { font-size:12px; color:var(--text-muted); font-variant-numeric:tabular-nums; }
.fin-total { display:flex; flex-direction:column; gap:12px; padding:16px 18px; box-shadow:inset 3px 0 0 var(--brand), var(--elev-1), var(--highlight); }
.fin-total-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.fin-total .fin-fig-v { font-size:clamp(13px, 4.6cqi, 24px); font-weight:800; letter-spacing:-.4px; }
.fin-total .fin-bar { height:10px; }
/* the drawer */
.fin-budget { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.fin-budget-main { min-width:0; }
.fin-budget-amt { font-size:24px; font-weight:800; letter-spacing:-.4px; color:var(--text); font-variant-numeric:tabular-nums; }
.fin-budget-amt.is-none { font-size:16px; font-weight:700; color:var(--text-muted); }
.fin-budget-by { font-size:12.5px; }
.fin-budget-note { margin-top:6px; font-size:13px; color:var(--text-2); overflow-wrap:anywhere; }
.fin-budget-sum { display:flex; flex-direction:column; gap:10px; padding:12px 14px; border:1px solid var(--border-light); border-radius:var(--radius); background:var(--bg); }
.fin-budget-sum > .badge { align-self:flex-start; }
.fin-sec-row { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.fin-sec-actions { display:flex; gap:8px; flex-wrap:wrap; }
.fin-entries { margin:0; padding:0; list-style:none; display:flex; flex-direction:column; gap:10px; }
.fin-entry { display:flex; flex-direction:column; gap:8px; padding:12px 14px; border:1px solid var(--border); border-radius:var(--radius); background:var(--bg-card); min-width:0; }
.fin-entry-top { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.fin-cat { display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:700; color:var(--brand-text); }
.fin-cat svg { width:15px; height:15px; }
.fin-entry-amt { font-size:16px; font-weight:800; color:var(--text); white-space:nowrap; }
.fin-entry-desc { font-size:14px; color:var(--text); overflow-wrap:anywhere; }
.fin-entry-for { display:flex; align-items:flex-start; gap:6px; font-size:12.5px; color:var(--text-2); overflow-wrap:anywhere; }
.fin-entry-for svg { width:14px; height:14px; flex:none; margin-top:2px; color:var(--text-muted); }
.fin-entry-meta { display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:12px; color:var(--text-muted); }
.fin-entry-tools { display:flex; gap:2px; flex:none; }
.fin-entry-tools .icon-btn svg { width:15px; height:15px; }
/* the forms */
.fin-form-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.fin-money { position:relative; display:block; }
.fin-money .acc-input { padding-left:24px; font-variant-numeric:tabular-nums; }
.fin-money-sign { position:absolute; left:10px; top:50%; transform:translateY(-50%); font-size:13px; color:var(--text-muted); pointer-events:none; }
.fin-desc { min-height:64px; }
/* receipts are required (Barry 2026-11-13): the attach area, and the whole field red when Save finds none */
.fin-req { font-weight:600; color:var(--text-2); }
.fin-attach { display:flex; flex-direction:column; gap:8px; padding:10px; border:1.5px dashed var(--border); border-radius:var(--radius-sm); background:var(--bg-card); }
.fin-receipts.is-invalid > .acc-label { color:var(--err-ink); }
.fin-receipts.is-invalid .fin-req { color:var(--err-ink); }
.fin-receipts.is-invalid .fin-attach { border-color:var(--err); background:var(--err-soft); border-style:solid; }
.fin-receipts.is-invalid .fin-attach .acc-hint { color:var(--text-2); }
.fin-receipts.is-invalid [data-f="attach"] { border-color:var(--err); }
.fin-receipts-err { font-size:12.5px; line-height:1.4; font-weight:600; color:var(--err-ink); }
.fin-receipts-err:empty { display:none; }
.fin-no-receipt { margin-left:4px; vertical-align:1px; }
/* Batch 1 B6 on Finances: the skeleton is as tall as the total (198 / 222 px) and the cards (195 / 193 px) it stands for */
.fin-skel-total { height:198px; border-radius:var(--radius-card); }
.fin-skel { height:195px; border-radius:var(--radius-card); }
@media (max-width:600px) {
  .fin-skel-total { height:222px; }
  .fin-skel { height:193px; }
  .fin-form .df .df-open { width:44px; height:44px; } /* as tall as the phone form's 44 px boxes */
}
@media (max-width:600px) {
  .fin-cards { grid-template-columns:1fr; }
  .fin-form-row { grid-template-columns:1fr; }
  .fin-form .acc-input { height:44px; }
  .fin-nav { display:grid; grid-template-columns:auto 1fr auto; width:100%; }
  .fin-q { justify-content:center; font-size:14px; flex-wrap:wrap; text-align:center; }
  .fin-q-now { grid-column:1 / -1; margin:0; }
  /* the department drawer is full screen on phones */
  .drawer.fin-drawer { top:0; max-height:none; height:100%; height:100dvh; border-radius:0; }
  .drawer.fin-drawer .drawer-handle { display:none; }
}

/* ---------- Salaries, raises and promotions (Batch 5) ---------- */
/* the Salaries page */
/* fill-space 2 (2026-11-14): the filters fill their row like the Audit log's (they left a 450px empty band) */
.sal-f-search { grid-column:span 2; flex:2 1 300px; }
.sal-months { display:flex; align-items:center; gap:10px; }
.sal-months .acc-check { align-items:center; flex:none; }
.sal-months .f-input { flex:1; min-width:0; height:36px; }
@media (min-width:601px) { .sal-table .tbl-wrap { max-height:calc(100vh - 290px); } }
.sal-name { font-weight:600; color:var(--text); }
/* 2026-11-11: "Disclaimer: this section contains sensitive data" (.alert.alert-warn, with a shield) */
.sal-disclaimer { display:flex; align-items:center; gap:10px; margin-bottom:16px; }
.sal-disclaimer svg { width:18px; height:18px; flex:none; }
.sal-locked { display:grid; justify-items:start; gap:10px; }
.sal-cell-amount { font-weight:600; color:var(--text); white-space:nowrap; }
.sal-cell { display:inline-flex; flex-direction:column; align-items:inherit; }
td.r .sal-cell { align-items:flex-end; }
.sal-cell-next { font-size:12px; color:var(--text-muted); margin-top:2px; white-space:nowrap; }
.sal-wait { display:inline-flex; align-items:center; gap:6px; white-space:nowrap; }
@media (max-width:600px) { .tbl-cards .sal-cell { align-items:flex-end; } }
.sal-badge { white-space:nowrap; }
@media (max-width:600px) {
  .sal-filters { grid-template-columns:1fr; }
  .sal-f-search { grid-column:auto; }
  .salaries .page-actions, .salaries .page-actions .btn { width:100%; }
}
/* the Salary section (account drawer, salary drawer) */
.sal-sec { display:flex; flex-direction:column; gap:12px; min-width:0; }
.acc-salary { margin-top:18px; padding-top:16px; border-top:1px solid var(--border-light); }
.sal-head { display:flex; align-items:center; gap:6px; }
.sal-now { display:flex; flex-direction:column; gap:3px; padding:12px 14px; border-radius:var(--radius); background:var(--brand-soft); }
.sal-amount { font-size:24px; font-weight:800; letter-spacing:-.4px; line-height:1.15; color:var(--text); }
.sal-amount.sal-none { font-size:15px; font-weight:600; color:var(--text-muted); letter-spacing:0; }
.sal-per { font-size:13px; font-weight:600; color:var(--text-muted); letter-spacing:0; }
.sal-meta { font-size:12.5px; color:var(--text-2); }
.sal-next { display:flex; align-items:center; flex-wrap:wrap; gap:6px; margin-top:4px; font-size:12.5px; color:var(--text-2); }
.sal-next .tnum { font-weight:700; color:var(--text); }
.sal-facts { margin:0; display:grid; grid-template-columns:1fr 1fr; gap:10px 16px; }
.sal-facts div { min-width:0; }
.sal-facts dt { font-size:12px; font-weight:600; color:var(--text-muted); }
.sal-facts dd { margin:2px 0 0; font-size:13px; color:var(--text); overflow-wrap:anywhere; }
.sal-tools { display:flex; flex-wrap:wrap; gap:8px; }
.sal-empty { margin:0; font-size:13px; color:var(--text-muted); }
.sal-tl { margin:0; padding:0; list-style:none; display:flex; flex-direction:column; border:1px solid var(--border-light); border-radius:var(--radius); }
.sal-tl-item { display:grid; grid-template-columns:28px 1fr; gap:10px; padding:10px 12px; }
.sal-tl-item + .sal-tl-item { border-top:1px solid var(--border-light); }
.sal-tl-item.is-future { background:var(--bg-2); }
.sal-dot { display:grid; place-items:center; width:28px; height:28px; border-radius:50%; background:var(--brand-soft); color:var(--brand-text, var(--brand)); }
.sal-dot svg { width:15px; height:15px; }
.sal-promotion .sal-dot { background:var(--ok-bg); color:var(--ok-ink); }
.sal-tl-body { display:flex; flex-direction:column; gap:2px; min-width:0; }
.sal-tl-top { display:flex; align-items:center; gap:8px; min-height:24px; }
.sal-date { font-size:12px; font-weight:600; color:var(--text-muted); }
.sal-tl-actions { margin-left:auto; display:flex; gap:2px; }
.sal-tl-actions .icon-btn { width:28px; height:28px; }
.sal-tl-actions .icon-btn svg { width:15px; height:15px; }
.sal-tl-main { display:flex; align-items:baseline; flex-wrap:wrap; gap:4px 8px; font-size:13.5px; color:var(--text); }
.sal-tl-main b { font-weight:700; }
.sal-reason, .sal-move { color:var(--text-2); overflow-wrap:anywhere; }
.sal-note { font-size:12.5px; color:var(--text-2); overflow-wrap:anywhere; white-space:pre-wrap; }
.sal-by { font-size:12px; color:var(--text-muted); }
/* the forms */
.sal-form { display:flex; flex-direction:column; gap:14px; }
.sal-money { position:relative; display:flex; align-items:center; }
.sal-money > span { position:absolute; left:11px; font-weight:600; color:var(--text-muted); pointer-events:none; }
.sal-money .acc-input { padding-left:24px; }
.sal-textarea { height:auto; min-height:64px; padding-top:8px; padding-bottom:8px; resize:vertical; line-height:1.45; }
.sal-static { display:flex; align-items:center; min-height:38px; font-size:13.5px; color:var(--text-2); }
@media (max-width:600px) { .sal-facts { grid-template-columns:1fr; } .sal-tools .btn { flex:1; justify-content:center; } }
@media print { .sal-tl-actions, .sal-tools { display:none !important; } }
/* Batch 1 B6 on the Salary section: skeletons as tall as the parts that replace them for the usual person (measured: the
   salary card 74 px without a scheduled one, the facts 112 / 190 px, the buttons 30 px, a one-line history 73 px) */
.sal-skels { display:flex; flex-direction:column; gap:12px; }
.sal-skel-now { height:74px; border-radius:var(--radius); }
.sal-skel-facts { height:112px; }
.sal-skel-tools { height:30px; width:290px; max-width:100%; }
.sal-skel-tl { height:73px; border-radius:var(--radius); }
@media (max-width:600px) { .sal-skel-facts { height:190px; } .sal-skel-tools { width:100%; } }

/* ---------- Tasks (Batch 2): the page, the board, the window and the form ---------- */
/* the chips: status (neutral / brand / green: colour only where it means something), priority, due */
.tk-st { display:inline-flex; align-items:center; gap:4px; white-space:nowrap; }
.tk-st svg { width:12px; height:12px; }
.tk-st-pending { background:var(--neu-bg); color:var(--neu-ink); }
.tk-st-on_it { background:var(--brand-soft); color:var(--brand-text); }
.tk-st-done { background:var(--ok-bg); color:var(--ok-ink); }
.tk-prio { display:inline-flex; align-items:center; gap:4px; white-space:nowrap; }
.tk-prio svg { width:11px; height:11px; }
.tk-due { display:inline-flex; align-items:center; gap:5px; font-size:12px; color:var(--text-muted); white-space:nowrap; }
.tk-due svg { width:13px; height:13px; flex:none; }
.tk-due.is-late { color:var(--err-ink); font-weight:600; }
.tk-due.is-none { color:var(--text-light); }
.tk-late-word { font-weight:700; }
.tk-count { font-size:12px; font-weight:600; color:var(--text-muted); }
.tk-ico { width:14px; height:14px; color:var(--text-muted); flex:none; }
.tk-empty { margin:0; padding:6px 2px; font-size:13px; color:var(--text-muted); }
/* the inline status select: a chip you can change */
.tk-status { height:28px; padding:0 26px 0 10px; border:1px solid transparent; border-radius:var(--pill); font:700 12px var(--font); cursor:pointer;
             appearance:none; -webkit-appearance:none; background-repeat:no-repeat; background-position:right 8px center; background-size:10px;
             background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2364748b' stroke-width='1.6'/%3E%3C/svg%3E"); }
.tk-status:focus-visible { outline:2px solid var(--brand); outline-offset:2px; }
.tk-status.tk-st-pending { background-color:var(--neu-bg); color:var(--neu-ink); }
.tk-status.tk-st-on_it { background-color:var(--brand-soft); color:var(--brand-text); }
.tk-status.tk-st-done { background-color:var(--ok-bg); color:var(--ok-ink); }
.tk-status option { color:var(--text); background:var(--bg-card); }
.tk-status:disabled { opacity:.6; cursor:progress; }

/* the page */
.tasks { display:flex; flex-direction:column; gap:14px; min-width:0; }
.tasks .page-head { margin-bottom:0; }
.tk-bar-top { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.tk-tabs { flex-wrap:wrap; max-width:100%; }
.tk-tabs a { padding:6px 14px; font:600 13px var(--font); color:var(--text-muted); white-space:nowrap; text-decoration:none; }
.tk-tabs a:hover { color:var(--text); }
.tk-tabs a.active { background:var(--bg-card); color:var(--brand-text); font-weight:700; box-shadow:var(--sh-sm), 0 0 0 1px var(--seg-edge); }
.tk-tabs a:focus-visible, .tk-layout button:focus-visible { outline:2px solid var(--brand); outline-offset:1px; }
.tk-layout button svg { width:15px; height:15px; }
.tk-filters { display:flex; flex-direction:row; flex-wrap:wrap; align-items:center; gap:8px; padding:12px 14px; } /* .card is a column */
.tk-filters .f-input { width:auto; min-width:140px; }
.tk-filters .tk-q { flex:1 1 200px; }
.tk-filters [hidden] { display:none; }
.tk-excel { margin-left:auto; }
.tk-list { padding:0; overflow:hidden; }
.tk-title-cell { display:inline-flex; align-items:center; gap:6px; min-width:0; flex-wrap:wrap; }
.tk-title { font-weight:600; color:var(--text); overflow-wrap:anywhere; }
.tk-avs { display:inline-flex; align-items:center; margin-right:6px; vertical-align:middle; }
.tk-avs .av + .av { margin-left:-6px; box-shadow:0 0 0 2px var(--bg-card); }
.tk-more { font-size:11px; font-weight:700; color:var(--text-muted); margin-left:4px; }
.tk-more-row { display:flex; justify-content:center; }
/* the board: three columns; your own cards drag (or use their status menu) */
.tk-board { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:14px; align-items:start; }
.tk-col { display:flex; flex-direction:column; gap:8px; padding:10px; background:var(--bg-2); border:1px solid var(--border); border-radius:var(--radius-card); min-width:0;
          transition:border-color var(--dur-1) var(--ease-out), background var(--dur-1) var(--ease-out); }
.tk-col.is-over { border-color:var(--brand); background:var(--brand-soft); }
.tk-col-head { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:2px 2px 4px; }
.tk-col-body { display:flex; flex-direction:column; gap:8px; min-height:72px; }
.tk-card { position:relative; display:flex; flex-direction:column; gap:8px; padding:10px 12px; background:var(--bg-card); border:1px solid var(--card-edge); border-radius:var(--radius);
           box-shadow:var(--elev-1), var(--highlight); min-width:0;
           transition:transform var(--dur-hover) var(--ease-spring); }
/* a card answers a hover like the dashboard cards (a --sh-sm layer on ::after, the edge darkens); no press dip, so a drag starts from the card as it is */
.tk-card::after { content:''; position:absolute; inset:-1px; border-radius:inherit; box-shadow:var(--sh-sm); opacity:0;
                  transition:opacity var(--dur-hover) var(--ease-smooth); pointer-events:none; }
@media (hover:hover) and (pointer:fine) {
    .tk-card:hover { border-color:var(--n-300); z-index:1; }
    .tk-card:hover::after { opacity:1; }
}
.tk-card.is-mine { cursor:grab; }
.tk-card.is-dragging { opacity:.85; transform:scale(1.02); box-shadow:var(--elev-3); cursor:grabbing; }
.tk-card.is-late { border-left:3px solid var(--err); }
.tk-card-open { display:flex; align-items:flex-start; justify-content:space-between; gap:8px; padding:0; background:none; border:0; font:inherit; color:var(--text); text-align:left; cursor:pointer; }
.tk-card-open:focus-visible { outline:2px solid var(--brand); outline-offset:2px; border-radius:var(--radius-xs); }
.tk-card-title { font-size:14px; font-weight:600; overflow-wrap:anywhere; } /* its link look: with .ovp-name, further down */
.tk-card-meta { display:flex; align-items:center; flex-wrap:wrap; gap:6px 10px; }
.tk-card-meta:empty { display:none; }
.tk-card-foot { display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap; }
.tk-from { font-size:12px; color:var(--text-muted); overflow-wrap:anywhere; }
@media (max-width:900px) {
  .tk-board { grid-template-columns:1fr; }
}
@media (max-width:600px) {
  .tk-filters .f-input { flex:1 1 calc(50% - 8px); min-width:0; }
  .tk-filters .tk-q { flex-basis:100%; }
  .tk-excel { margin-left:0; }
  .tk-bar-top .seg { width:100%; }
  .tk-tabs a, .tk-layout button { flex:1; justify-content:center; text-align:center; }
}

/* the window */
.tk-detail { display:flex; flex-direction:column; gap:18px; }
.tk-meta { display:flex; align-items:center; flex-wrap:wrap; gap:8px 12px; }
.tk-repeat { display:inline-flex; align-items:center; gap:5px; font-size:12px; color:var(--text-muted); }
.tk-repeat svg { width:13px; height:13px; }
.tk-sec { display:flex; flex-direction:column; gap:8px; min-width:0; }
.tk-h { display:flex; align-items:center; gap:8px; margin:0; font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:var(--text-muted); }
.tk-bar { height:6px; border-radius:var(--radius-xs); background:var(--chart-track); overflow:hidden; }
.tk-bar span { display:block; height:100%; border-radius:inherit; background:var(--ok); transition:width var(--dur-2) var(--ease-out); }
.tk-checks, .tk-people, .tk-history { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; }
.tk-check { display:flex; align-items:flex-start; gap:10px; padding:7px 4px; font-size:14px; color:var(--text); cursor:pointer; border-radius:var(--radius-sm); }
.tk-check:hover { background:var(--bg-2); }
.tk-check input { width:16px; height:16px; margin:2px 0 0; accent-color:var(--brand); flex:none; }
.tk-check input:disabled { cursor:default; }
.tk-check.is-on span { color:var(--text-muted); text-decoration:line-through; }
/* phone fix 4: a status pill that opens the status menu (my copy, or a person's I may set) */
.tk-st-btn { display:inline-flex; align-items:center; gap:2px; padding:0; border:0; border-radius:var(--radius-chip); background:none; font:inherit; color:var(--text-muted); cursor:pointer; }
.tk-st-btn:hover { opacity:.85; }
.tk-st-btn:focus-visible { outline:2px solid var(--brand); outline-offset:2px; }
.tk-st-btn:disabled { cursor:progress; opacity:.6; }
.tk-st-chev { width:14px; height:14px; flex:none; }
.tk-hint { margin:6px 0 0; font-size:12px; color:var(--text-muted); }
.tk-for { color:var(--text-muted); }
.tk-st-menu .pop-item[aria-checked="true"] { font-weight:700; }
.tk-st-menu .pop-item[aria-checked="true"] svg { color:var(--brand-text); }
.tk-people li { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:6px 0; }
.tk-people li + li { border-top:1px solid var(--border-light); }
.tk-people-st { display:inline-flex; align-items:center; gap:8px; flex:none; }
.tk-late { display:flex; align-items:center; gap:8px; margin:0; }
.tk-late svg { width:16px; height:16px; flex:none; }
.tk-comments { display:flex; flex-direction:column; gap:10px; }
.tk-comment { display:flex; flex-direction:column; gap:8px; padding:10px 12px; border:1px solid var(--border); border-radius:var(--radius); background:var(--bg-card); min-width:0; }
.tk-comment .comm-post-actions { margin:0 -6px -4px; }
.tk-ce-actions { display:flex; justify-content:flex-end; gap:6px; margin-top:6px; }
.tk-comment-form { margin-top:4px; }
.tk-history li { display:flex; justify-content:space-between; gap:12px; padding:5px 0; font-size:13px; color:var(--text-2); }
.tk-history li + li { border-top:1px solid var(--border-light); }
.tk-when { color:var(--text-muted); font-size:12px; white-space:nowrap; flex:none; }
.tk-made { margin:0; font-size:12px; color:var(--text-muted); }
@media (max-width:600px) {
  .tk-history li { flex-direction:column; gap:2px; }
}

/* the form */
.tk-row { display:flex; flex-wrap:wrap; gap:10px 12px; align-items:flex-end; }
.tk-row > .acc-field { flex:1 1 140px; min-width:0; }
.tk-people-pick, .tk-repeat-pick { border:0; margin:0; padding:0; min-width:0; }
.tk-people-q { margin-bottom:6px; }
.tk-pick-list { display:flex; flex-direction:column; max-height:228px; overflow-y:auto; overscroll-behavior:contain; border:1px solid var(--border); border-radius:var(--radius); }
.tk-pick { display:grid; grid-template-columns:auto auto 1fr; grid-template-areas:'box av name' 'box av sub'; align-items:center; gap:0 10px; padding:7px 10px; cursor:pointer; }
.tk-pick + .tk-pick { border-top:1px solid var(--border-light); }
.tk-pick:hover { background:var(--bg-2); }
.tk-pick[hidden] { display:none; }
.tk-pick input { grid-area:box; width:16px; height:16px; margin:0; accent-color:var(--brand); }
.tk-pick .av { grid-area:av; }
.tk-pick-name { grid-area:name; font-size:13.5px; font-weight:600; color:var(--text); overflow-wrap:anywhere; }
.tk-pick-sub { grid-area:sub; font-size:12px; color:var(--text-muted); }
.tk-items { list-style:none; margin:0 0 6px; padding:0; display:flex; flex-direction:column; gap:6px; }
.tk-items:empty { display:none; }
.tk-item { display:flex; align-items:center; gap:6px; }
.tk-item .f-input { flex:1; min-width:0; }
.tk-inline { display:inline-flex; align-items:center; gap:8px; font-size:13.5px; color:var(--text-2); }
.tk-inline[hidden], .tk-days[hidden], .tk-repeat-pick [hidden] { display:none; }
.tk-n { width:72px; }
.tk-days { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.tk-day { display:inline-flex; align-items:center; gap:6px; padding:5px 10px; border:1px solid var(--border); border-radius:var(--pill); font-size:12.5px; font-weight:600; color:var(--text-2); cursor:pointer; }
.tk-day:has(input:checked) { border-color:var(--brand); background:var(--brand-soft); color:var(--brand-text); }
.tk-day input { width:14px; height:14px; margin:0; accent-color:var(--brand); }

@media print { .tk-status, .tk-layout, .tk-filters, .tk-comment-form { display:none !important; } }
/* Tasks, integrated with Batch 1: the due date's typed box (Hub.dateField) beside the time; the skeletons as tall as
   what replaces them (measured at 1440 and 390): the Tasks list as five tasks (283 / 944), a board column as two */
.tk-row-due { align-items:flex-start; }
.ovp-seg { display:flex; flex-wrap:wrap; margin-bottom:10px; }
.ovp-task { align-items:center; }
.ovp-task-open { display:flex; flex:1; min-width:0; padding:0; background:none; border:0; font:inherit; color:inherit; text-align:left; cursor:pointer; border-radius:var(--radius-sm); }
.ovp-task-open:focus-visible { outline:2px solid var(--brand); outline-offset:2px; }
.ovp-task .ovp-meta { display:flex; flex-wrap:wrap; align-items:center; gap:4px 10px; }
/* task titles look like the clickable items they are (a task called "test" read like plain text): brand text with a
   soft brand-tint underline 3px below, firmer on hover; an overdue one stays red */
.ovp-task .ovp-name, .tk-title, .tk-card-title { color:var(--brand-text); text-decoration-line:underline; text-decoration-color:var(--brand-ring); text-decoration-thickness:1px; text-underline-offset:3px; }
@media (hover:hover) and (pointer:fine) {
    .ovp-task-open:hover .ovp-name, .tk-card-open:hover .tk-card-title, .tbl tr:hover .tk-title { text-decoration-color:currentColor; text-decoration-thickness:2px; }
}
.ovp-task.is-late .ovp-name { color:var(--err-ink); text-decoration-color:currentColor; }
@media (max-width:600px) { .ovp-task { flex-wrap:wrap; } .ovp-task .ovp-end { flex-basis:100%; } }
.tk-skel-list { height:283px; border-radius:var(--radius-card); }
@media (max-width:600px) { .tk-skel-list { height:944px; } }
.tk-skel-col { height:281px; border-radius:var(--radius-card); }

/* ---------- My Calendar, meetings and the bell (Batch 3) ---------- */
/* the bell: a menu item (no desktop top bar), and the phone header's right-hand button */
.nav-bell, .nav-create { border:0; background:none; font:inherit; text-align:left; margin-bottom:6px; }
.nav-bell:hover, .nav-create:hover { background:var(--navy-hover); color:var(--on-navy); }
/* 2026-11-23: the + button (kit/quick-create.js) is the bell's twin: under it in the menu, beside it in the phone header */
.m-bell, .m-create { position:relative; margin-left:auto; width:40px; height:40px; display:grid; place-items:center; border:0; border-radius:8px; background:none; cursor:pointer; color:var(--on-navy); }
.m-create:not([hidden]) ~ .m-bell { margin-left:0; }
/* review N11: until the bell answers, its slot is kept, so the + never jumps 52px left when the bell shows */
.m-create:not([hidden]) ~ .m-bell[hidden] { display:grid !important; visibility:hidden; }
.m-bell:hover, .m-create:hover { background:var(--navy-hover); }
.m-bell:focus-visible, .m-create:focus-visible { outline:2px solid var(--on-navy); outline-offset:-2px; }
.m-bell svg, .m-create svg { width:21px; height:21px; }
@media (max-width:768px) { .nav-create { display:none; } } /* phones: the header's + is always there; the menu drawer does not repeat it */
/* the Undo toast's button (kit/undo.js): the toast's own ink, after the text */
.toast .toast-act { margin-left:auto; flex-shrink:0; color:inherit; font-weight:800; }
.toast .toast-act:hover { color:inherit; }
.m-bell .nav-badge { top:3px; left:auto; right:2px; box-shadow:0 0 0 2px var(--header-bg); }
.toast-info { background:var(--brand-soft); color:var(--brand-text); border-color:var(--brand-ring); max-width:min(420px,calc(100vw - 32px)); }
.toast-info .toast-ico { background:var(--brand); color:var(--on-brand); }
[data-theme="dark"] .toast-info { background:var(--n-0); color:var(--brand-text); border-color:var(--brand); }
.bell-panel { display:flex; flex-direction:column; gap:12px; }
.bell-desk { display:flex; align-items:center; flex-wrap:wrap; gap:8px 12px; padding:10px 12px; border:1px solid var(--border); border-radius:var(--radius); background:var(--bg-2); font-size:13px; color:var(--text-2); }
.bell-desk > span { flex:1 1 200px; }
.bell-desk svg { width:16px; height:16px; flex:none; }
.bell-desk.is-on { color:var(--ok-ink); background:var(--ok-soft); border-color:transparent; }
.bell-desk.is-off { color:var(--warn-ink); background:var(--warn-soft); border-color:transparent; }
.bell-list { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:2px; }
.bell-item { width:100%; display:flex; gap:10px; align-items:flex-start; padding:10px; border:0; border-radius:var(--radius); background:none; font:inherit; color:var(--text); text-align:left; cursor:pointer; }
.bell-item:hover { background:var(--bg-2); }
.bell-item:focus-visible { outline:2px solid var(--brand); outline-offset:-2px; }
.bell-item.is-new { background:var(--brand-soft); }
.bell-ico { width:30px; height:30px; flex:none; display:grid; place-items:center; border-radius:50%; background:var(--bg-2); color:var(--brand-text); }
.bell-item.is-new .bell-ico { background:var(--bg-card); }
.bell-ico svg { width:15px; height:15px; }
.bell-text { display:flex; flex-direction:column; gap:2px; min-width:0; overflow-wrap:anywhere; }
.bell-text b { font-size:13.5px; font-weight:600; }
.bell-item.is-new .bell-text b { font-weight:700; }
.bell-text > span { font-size:12.5px; color:var(--text-2); }
.bell-text .bell-when { font-size:12px; color:var(--text-muted); }
.bell-empty p { margin:6px 0 0; font-size:13px; }

/* answers: solid (organiser, accepted), outlined (not answered), greyed (declined) */
.mt-r-yes { background:var(--brand-soft); color:var(--brand-text); }
.mt-r-wait { background:var(--warn-soft); color:var(--warn-ink); }
.mt-r-no { background:var(--neu-bg); color:var(--neu-ink); }
.mt-r-yes, .mt-r-wait, .mt-r-no { display:inline-flex; align-items:center; gap:4px; white-space:nowrap; }
.mt-r-yes svg, .mt-r-wait svg, .mt-r-no svg { width:12px; height:12px; }
.mc-r-organiser, .mc-r-accepted { background:var(--brand); color:var(--on-brand); border:1px solid var(--brand); }
.mc-r-pending { background:var(--bg-card); color:var(--brand-text); border:1.5px dashed var(--brand); }
.mc-r-declined { background:var(--neu-bg); color:var(--neu-ink); border:1px solid transparent; }
.mc-r-declined .mc-title { text-decoration:line-through; }

/* the meeting drawer and form */
.mt-detail { display:flex; flex-direction:column; gap:14px; }
.mt-meta { display:flex; flex-direction:column; gap:6px; }
.mt-when, .mt-where { display:flex; align-items:center; gap:8px; font-size:14px; color:var(--text); }
.mt-when { font-weight:600; }
.mt-when svg, .mt-where svg { width:16px; height:16px; color:var(--text-muted); flex:none; }
.mt-badges { display:flex; align-items:center; flex-wrap:wrap; gap:6px; }
.mt-badges .badge-neutral { display:inline-flex; align-items:center; gap:4px; }
.mt-badges .badge-neutral svg { width:12px; height:12px; }
.mt-join-row { display:flex; align-items:center; gap:10px; min-width:0; }
.mt-join svg { width:16px; height:16px; }
.mt-link { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; color:var(--text-muted); }
.mt-seg button svg { width:14px; height:14px; }
.mt-gone { margin:10px 0 8px; font-size:13px; color:var(--text-muted); }
.mt-chips { display:flex; flex-wrap:wrap; gap:6px; }
.mt-chip { display:inline-flex; align-items:center; gap:5px; padding:5px 12px; border:1px solid var(--border); border-radius:var(--pill); background:var(--bg-card);
           font:600 12.5px var(--font); color:var(--text-2); cursor:pointer; }
.mt-chip svg { width:12px; height:12px; }
.mt-chip[aria-pressed="true"] { border-color:var(--brand); background:var(--brand-soft); color:var(--brand-text); }
.mt-chip:focus-visible { outline:2px solid var(--brand); outline-offset:2px; }
.mt-rem-add { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin-top:8px; }
.mt-rem-add .f-input { width:auto; }
.mt-rem-add .mt-rem-n { width:84px; }
.mt-rem-save { display:flex; justify-content:flex-end; gap:8px; margin-top:10px; }
.mt-kind { margin:2px 0 4px; } /* "This is a meeting", under the title */
.mt-hint { margin:-6px 0 4px; }
.mt-warn { display:flex; gap:10px; align-items:flex-start; }
.mt-warn svg { width:18px; height:18px; flex:none; margin-top:1px; }
.mt-warn ul { margin:4px 0; padding-left:18px; }

/* the page */
/* Calendar (2026-11-20): one page, Me and Team (pages/calendar-shell.js). The shell's slots take no box of their own, so
   each side lays out as its page did (Me: .mycal; Team: .calendar.ts on the same root) */
.cal-side, .cal-tools, .cal-head-actions { display:contents; }
.calendar-page .page-head > :first-child { flex:1 1 300px; } /* the title row keeps its line; the filters wrap under it when both don't fit */
.cal-title-row { display:flex; align-items:center; flex-wrap:wrap; gap:4px 14px; min-width:0; } /* Calendar + the Me / Team switch: the switch never moves between the sides */
/* no eyebrow above Calendar's title, so neither the title nor the switch keeps the eyebrow gap: both sit centered with the
   ribbon and buttons on the right (Barry 2026-11-24) */
.cal-title-row .page-title { margin-top:0; }
.cal-title-row { min-height:38px; } /* Me's ribbon is 38px, Team's tools 36: the head keeps one height, so the switch never moves by a pixel */
.mycal { display:flex; flex-direction:column; gap:14px; min-width:0; }
.mycal .page-head { margin-bottom:0; }
.mc-bar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; }
.mc-nav { display:flex; align-items:center; gap:6px; min-width:0; }
.mc-nav .icon-btn svg { width:18px; height:18px; }
.mc-range { margin:0 0 0 6px; font-size:17px; font-weight:800; letter-spacing:-.2px; color:var(--text); white-space:nowrap; }
.mc-views button:focus-visible { outline:2px solid var(--brand); outline-offset:1px; }
.mc-off { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--text-muted); }
.mc-hours { font-size:11px; color:var(--text-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mc-legend { display:flex; flex-wrap:wrap; gap:6px 16px; font-size:12px; color:var(--text-muted); }
.mc-legend span { display:inline-flex; align-items:center; gap:6px; }
.mc-key { display:inline-block; width:14px; height:10px; border-radius:3px; }
.mc-key-task { border:1px solid var(--border); background:var(--bg-card); box-shadow:inset 3px 0 0 var(--text-muted); }
.mc-key-work { background:var(--brand-soft); border:1px solid var(--border); }

/* Month */
.mc-month { padding:0; overflow:hidden; }
.mc-head { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); border-bottom:1px solid var(--border); background:var(--bg-2); }
.mc-wd { padding:8px 10px; font-size:11.5px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--text-muted); }
.mc-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); }
.mc-day { min-height:84px; min-width:0; padding:6px; border-right:1px solid var(--border-light); border-bottom:1px solid var(--border-light); display:flex; flex-direction:column; gap:4px; }
.mc-day:nth-child(7n) { border-right:0; }
.mc-day.is-work { background:linear-gradient(var(--brand-soft),var(--brand-soft)) top/100% 3px no-repeat; }
.mc-day.is-off { background:repeating-linear-gradient(135deg,var(--bg-2) 0 6px,transparent 6px 12px); }
.mc-day.is-out { opacity:.5; }
.mc-day-head { display:flex; align-items:center; justify-content:flex-start; gap:8px; min-width:0; } /* the hours right after the date: no gap across a wide cell */
.mc-date { width:26px; height:26px; flex:none; display:grid; place-items:center; border:0; border-radius:50%; background:none; font:700 13px var(--font); color:var(--text); cursor:pointer; }
.mc-date:hover { background:var(--bg-2); }
.mc-date:focus-visible, .mc-item:focus-visible, .mc-more:focus-visible, .wk-mtg:focus-visible, .ag-main:focus-visible { outline:2px solid var(--brand); outline-offset:1px; }
.mc-day.is-today .mc-date { background:var(--brand); color:var(--on-brand); }
.mc-items { display:flex; flex-direction:column; gap:3px; min-width:0; }
.mc-item { display:flex; align-items:center; gap:5px; width:100%; min-width:0; padding:2px 6px; border-radius:5px; font:600 11.5px var(--font); text-align:left; cursor:pointer; }
.mc-item .mc-title { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; }
.mc-item .mc-time { flex:none; font-weight:500; opacity:.85; }
.mc-task { background:var(--bg-card); color:var(--text-2); border:1px solid var(--border); box-shadow:inset 3px 0 0 var(--text-muted); }
.mc-task svg { width:12px; height:12px; flex:none; }
.mc-task.is-late { color:var(--err-ink); border-color:var(--err); box-shadow:inset 3px 0 0 var(--err); background:var(--err-soft); }
.mc-task.is-done { opacity:.6; }
.mc-task.is-done .mc-title { text-decoration:line-through; }
.mc-more { align-self:flex-start; padding:1px 4px; border:0; background:none; font:600 11.5px var(--font); color:var(--brand-text); cursor:pointer; }

/* Week */
.wk { padding:0; overflow:hidden; }
.wk-scroll-x { overflow:auto; overscroll-behavior-x:contain; max-height:min(72vh,720px); max-height:min(72dvh,720px); }
.wk-inner { min-width:760px; }
.wk-sticky { position:sticky; top:0; z-index:3; background:var(--bg-card); }
.wk-head { display:grid; grid-template-columns:56px repeat(7,minmax(0,1fr)); border-bottom:1px solid var(--border); }
.wk-dh { display:flex; flex-direction:column; align-items:center; gap:1px; padding:6px 4px; min-width:0; border-left:1px solid var(--border-light); }
.wk-dh .mc-hours { white-space:normal; text-align:center; line-height:1.25; font-size:10.5px; }
.wk-dn { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--text-muted); }
.wk-dd { font-size:15px; font-weight:800; color:var(--text); width:26px; height:26px; display:grid; place-items:center; border-radius:50%; }
.wk-dh.is-today .wk-dd { background:var(--brand); color:var(--on-brand); }
.wk-dh.is-off { background:var(--bg-2); }
.wk-all { font-size:10.5px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:var(--text-muted); padding:6px 4px; text-align:right; }
.wk-tasks { display:flex; flex-direction:column; gap:3px; padding:4px; min-width:0; min-height:28px; border-left:1px solid var(--border-light); }
.wk-body { display:grid; grid-template-columns:56px repeat(7,minmax(0,1fr)); }
/* Calendar (2026-11-20): Day is the Week grid for one date */
.wk.is-day .wk-inner { min-width:0; }
.wk.is-day .wk-head, .wk.is-day .wk-body { grid-template-columns:56px minmax(0,1fr); }
.wk-hours { display:flex; flex-direction:column; }
.wk-h { padding-right:6px; text-align:right; font-size:10.5px; color:var(--text-muted); transform:translateY(-7px); }
.wk-col { position:relative; min-width:0; border-left:1px solid var(--border-light);
          background-image:repeating-linear-gradient(to bottom,transparent 0 43px,var(--border-light) 43px 44px); }
.wk-col.is-off { background-color:var(--bg-2); }
.wk-col.is-today { box-shadow:inset 0 0 0 1px var(--brand-ring); }
.wk-work { position:absolute; left:0; right:0; background:var(--brand-soft); opacity:.7; }
.wk-mtg { position:absolute; z-index:1; display:flex; flex-direction:column; align-items:flex-start; gap:1px; padding:3px 6px; overflow:hidden; border-radius:6px;
          font:600 11.5px var(--font); text-align:left; cursor:pointer; box-shadow:var(--elev-1); }
.wk-mtg .mc-title { max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.wk-mtg .mc-time { font-weight:500; font-size:10.5px; opacity:.9; white-space:nowrap; max-width:100%; overflow:hidden; text-overflow:ellipsis; }

/* Agenda */
.ag { padding:6px 0; }
.ag-day { padding:8px 16px 10px; border-bottom:1px solid var(--border-light); }
.ag-day:last-child { border-bottom:0; }
.ag-dh { display:flex; align-items:baseline; justify-content:space-between; gap:10px; margin:4px 0 8px; font-size:14px; font-weight:800; color:var(--text); }
.ag-day.is-today .ag-dh > span:first-child { color:var(--brand-text); }
.ag-day.is-off .ag-dh { color:var(--text-muted); }
.ag-list { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:6px; }
.ag-row { display:grid; grid-template-columns:150px minmax(0,1fr) auto; align-items:center; gap:10px; padding:8px 10px; border-radius:var(--radius); border:1px solid var(--border);
          background:var(--bg-card); color:var(--text); box-shadow:inset 4px 0 0 var(--brand); }
.ag-row.mc-r-pending { border-style:dashed; border-color:var(--brand); }
.ag-row.mc-r-declined { box-shadow:inset 4px 0 0 var(--n-300); color:var(--text-muted); background:var(--bg-2); }
.ag-row.mc-r-declined .ag-title { text-decoration:line-through; }
.ag-task { box-shadow:inset 4px 0 0 var(--text-muted); }
.ag-task.is-late { box-shadow:inset 4px 0 0 var(--err); }
.ag-task.is-late .ag-title, .ag-task.is-late .ag-time { color:var(--err-ink); }
.ag-time { font-size:12.5px; font-weight:600; color:var(--text-2); }
.ag-main { display:flex; flex-direction:column; gap:2px; min-width:0; padding:0; border:0; background:none; font:inherit; color:inherit; text-align:left; cursor:pointer; }
.ag-title { font-size:14px; font-weight:700; overflow-wrap:anywhere; }
.ag-sub { display:flex; flex-wrap:wrap; gap:2px 12px; font-size:12px; color:var(--text-muted); }
.ag-sub span { display:inline-flex; align-items:center; gap:4px; }
.ag-sub svg { width:12px; height:12px; }
.ag-side { display:flex; align-items:center; gap:8px; justify-content:flex-end; }
.ag-none { margin:0; font-size:13px; color:var(--text-muted); }
/* From My schedule (Barry, 2026-11-13, page talks Part 4 Option A): the Today strip in the head's free space, the week
   totals (Week: the corner; Month: an eighth column; Agenda: each week's heading), a changed day's label, the team card */
/* the ribbon and the "New reminder" button share one row, centred on each other, the button on the right (Barry, 2026-11-17) */
.mc-head-row { flex:0 1 auto; min-width:0; display:flex; align-items:center; gap:12px; align-self:center; }
.mc-today-slot { flex:0 1 auto; min-width:0; }
.mc-head-row .page-actions { flex:none; margin-left:auto; align-items:center; }
.mycal .page-head > :first-child { flex:1 1 300px; } /* the title keeps its line; the ribbon moves under it when both don't fit */
@media (max-width:1320px) { .mc-head-row { flex-basis:100%; } }
.mc-today-skel { width:640px; max-width:100%; height:38px; border-radius:var(--radius-card); }
.mc-today { display:inline-flex; align-items:center; gap:10px; max-width:100%; min-height:38px; padding:4px 6px 4px 8px; border:1px solid var(--card-edge); border-radius:var(--radius-card);
            background:var(--bg-card); box-shadow:var(--elev-1); white-space:nowrap; font-size:13px; }
.mc-today-line { min-width:0; overflow:hidden; text-overflow:ellipsis; font-weight:600; color:var(--text); }
.mc-today-item { flex:none; padding-left:10px; border-left:1px solid var(--border-light); font-size:12px; color:var(--text-muted); }
.mc-today-item strong { font-weight:700; color:var(--text); }
.mc-changed { display:block; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11px; font-weight:700; color:var(--warn-ink); }
.chip.mc-changed { display:inline-block; max-width:60%; padding:1px 8px; background:var(--warn-soft); border-color:transparent; font-weight:600; }
.wk-dh .mc-changed { text-align:center; }
.mc-month.has-tot .mc-head, .mc-month.has-tot .mc-grid { grid-template-columns:repeat(7,minmax(0,1fr)) 74px; }
.mc-month.has-tot .mc-day { border-right:1px solid var(--border-light); }
.mc-wd-tot { text-align:center; }
.mc-wtot { display:flex; justify-content:center; padding:10px 4px; border-bottom:1px solid var(--border-light); background:var(--bg-2); font-size:12.5px; font-weight:800; color:var(--text); white-space:nowrap; }
.wk-tot { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1px; padding:4px 2px; }
.wk-tot-l { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:var(--text-muted); }
.wk-tot-n { font-size:12px; font-weight:800; color:var(--text); white-space:nowrap; }
/* the Agenda on a wide screen (Barry, 2026-11-13: no empty bands): its days flow in balanced columns instead of rows
   that stretch the whole width with a gap between the title and the answer */
@media (min-width:1000px) {
  .ag { display:block; columns:460px 3; column-gap:0; column-rule:1px solid var(--border-light); }
  .ag-day { break-inside:avoid; }
  .ag .ag-row { grid-template-columns:150px minmax(0,1fr) auto; } /* "10:00 AM – 10:30 AM" on one line (12-hour, 2026-11-17) */
  .ag .ag-dh { justify-content:flex-start; gap:12px; } /* the day's hours right after its name, no gap across the column */
}
.mc-team-head { display:flex; align-items:center; gap:4px; }
.disc-btn.mc-team-disc { flex:1; min-width:0; min-height:36px; padding:4px 8px; border:0; font-size:14px; font-weight:800; }
.mc-team-disc svg:not(.disc-chevron) { width:16px; height:16px; flex:none; color:var(--text-muted); }
.mc-team-disc .count-pill { margin-left:8px; font-size:11px; }
.mc-team-sub { margin:0 0 8px 8px; }
.mc-name { white-space:nowrap; }
.mc-you { margin-left:6px; padding:1px 8px; font-size:11px; vertical-align:1px; }
@media (min-width:601px) { .mc-team .tbl-wrap { max-height:calc(100vh - 420px); } }


@media (max-width:600px) {
  .mc-bar { flex-direction:column; align-items:stretch; }
  .mc-nav { flex-wrap:wrap; }
  .mc-range { font-size:15px; flex-basis:100%; margin:4px 0 0; }
  .mc-views { width:100%; }
  .mc-views button { flex:1; }
  .mc-day { min-height:64px; padding:3px; gap:2px; }
  .mc-wd { padding:6px 2px; text-align:center; font-size:10.5px; }
  .mc-hours { display:none; }
  .ag-dh .mc-hours { display:inline; } /* the Agenda keeps each day's hours on a phone */
  .ag-dh { flex-wrap:wrap; row-gap:4px; }
  .mc-off { font-size:9px; }
  .mc-date { width:22px; height:22px; font-size:12px; }
  .mc-item { padding:0; height:6px; border-radius:3px; font-size:0; }
  .mc-item svg, .mc-item .mc-time, .mc-item .mc-title { display:none; }
  .mc-more { font-size:10px; padding:0; }
  .ag-day { padding:8px 10px 10px; }
  .ag-row { grid-template-columns:minmax(0,1fr); gap:4px; }
  .ag-side { justify-content:flex-start; }
  .mycal .page-actions, .mycal .page-actions .btn { width:100%; }
  .mc-head-row { flex-wrap:wrap; }
  .mc-today-slot { flex:1 1 100%; }
  .mc-head-row .page-actions { flex:1 1 100%; margin-left:0; }
  .mc-today { display:flex; flex-wrap:wrap; row-gap:2px; white-space:normal; }
  .mc-today-item { padding-left:0; border-left:0; }
  /* the week-total column fits "41h 30m" (it was clipped at 375px), and the hatching says "off", so the cell's Off label is read aloud only */
  .mc-month.has-tot .mc-head, .mc-month.has-tot .mc-grid { grid-template-columns:repeat(7,minmax(0,1fr)) 46px; }
  .mc-wtot { padding:6px 0; font-size:11px; }
  .mc-month .mc-off { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
  .mc-changed { font-size:11px; }
  .mc-day .mc-changed { height:4px; border-radius:var(--radius-xs); background:var(--warn); text-indent:100%; }
}
@media print { .nav-bell, .nav-create, .m-bell, .m-create, .mc-views, .mc-nav .icon-btn, .mt-join { display:none !important; } }
/* My Calendar, integrated with Batch 1: the skeletons as tall as what replaces them (measured at 1440 and 390): Month (6 weeks: 755 / 425) and Week (650 / 610); Agenda (as long as its
   days) fills the screen, so the legend under it is out of sight until it arrives */
.mc-skel { border-radius:var(--radius-card); }
.mc-skel-month { height:560px; }
.mc-skel-week, .mc-skel-day { height:650px; }
.mc-skel-year { height:560px; }
.mc-skel-agenda { height:max(360px, calc(100vh - 280px)); height:max(360px, calc(100dvh - 280px)); }
@media (max-width:600px) { .mc-skel-month { height:425px; } .mc-skel-week { height:610px; } .mc-skel-agenda { height:calc(100vh - 300px); height:calc(100dvh - 300px); } }

/* ---------- Leave (spec docs/superpowers/specs/2026-11-09-leave-design.md): the page, the request panel and form, the
   month grid. Tokens only: the type colours are the Today palette (--st-holiday amber, --st-sick blue, --st-other violet)
   with their tint and ink pairs; the tabs and filter bar reuse the Tasks ones (.tk-tabs, .tk-filters). ---------- */
.leave { display:flex; flex-direction:column; gap:14px; min-width:0; }
.leave .page-head { margin-bottom:0; }
.lv-tabs { align-self:flex-start; }
/* fill-space 2 (2026-11-14): the tabs and the filter bar share one row; the filters wrap under the tabs when short of room */
.lv-bar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px 14px; }
.lv-bar > .lv-filters { flex:0 1 auto; margin-left:auto; padding:6px 8px; }
@media (max-width:600px) { .lv-bar > .lv-filters { flex:1 1 100%; margin-left:0; } }
.lv-tabs .seg-n:empty { display:none; }
.lv-tabs a { display:inline-flex; align-items:center; gap:6px; }
.lv-filters [hidden] { display:none; }

/* status chips (the type chips are .badge-holiday / -sick / -other-leave) */
.lv-st { display:inline-flex; align-items:center; gap:4px; white-space:nowrap; }
.lv-st-pending, .lv-st-cancel_requested { background:var(--warn-bg); color:var(--warn-ink); }
.lv-st-approved { background:var(--ok-bg); color:var(--ok-ink); }
.lv-st-declined { background:var(--err-bg); color:var(--err-ink); }
.lv-st-withdrawn, .lv-st-cancelled { background:var(--neu-bg); color:var(--neu-ink); }
.lv-type { white-space:nowrap; }

/* the lists */
.lv-list { padding:0; overflow:hidden; }
.lv-list + .lv-list { margin-top:14px; }
.lv-group { display:flex; align-items:center; gap:8px; margin:0; padding:12px 16px; font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:var(--text-muted); border-bottom:1px solid var(--border-light); }
.lv-count { font-size:12px; font-weight:600; color:var(--text-light); letter-spacing:0; }
.lv-rows { list-style:none; margin:0; padding:0; }
.lv-rows > li + li { border-top:1px solid var(--border-light); }
.lv-row { display:grid; grid-template-columns:auto minmax(0,1fr) auto auto; align-items:center; gap:6px 14px; width:100%; min-height:60px; padding:10px 16px;
          background:none; border:0; font:inherit; color:var(--text); text-align:left; cursor:pointer; transition:background var(--dur-fast) var(--ease-smooth); }
.lv-row:hover { background:var(--bg-2); }
.lv-row:focus-visible { outline:2px solid var(--brand); outline-offset:-2px; }
.lv-row-who { display:flex; align-items:center; gap:10px; min-width:0; width:220px; }
.lv-row-name { display:flex; flex-direction:column; min-width:0; }
.lv-row-name b { font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.lv-row-name span { font-size:12px; color:var(--text-muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.lv-row-main { display:flex; flex-direction:column; gap:2px; min-width:0; }
.lv-row-when { font-weight:600; }
.lv-row-note, .lv-row-by { font-size:12px; color:var(--text-muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.lv-row-chips { display:flex; align-items:center; gap:6px; flex-wrap:wrap; justify-content:flex-end; }
.lv-row-go { width:16px; height:16px; color:var(--text-light); }
.lv-row.is-mine { grid-template-columns:minmax(0,1fr) auto auto; }
.lv-appr .acc-switch { align-self:center; }
.lv-appr { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; padding:12px 16px; }

/* the month grid */
.lv-t-holiday { background:var(--st-holiday-bg); color:var(--st-holiday-ink); box-shadow:inset 3px 0 0 var(--st-holiday); }
.lv-t-sick { background:var(--st-sick-bg); color:var(--st-sick-ink); box-shadow:inset 3px 0 0 var(--st-sick); }
.lv-t-other_leave { background:var(--st-other-bg); color:var(--st-other-ink); box-shadow:inset 3px 0 0 var(--st-other); }
/* pending: faded, with a dashed edge in the type's colour (.lv-mini.is-pending, the Calendar's Me side) */
.lv-t-sick.is-pending { border-color:var(--st-sick); }
.lv-t-other_leave.is-pending { border-color:var(--st-other); }

/* the panel */
.lv-detail { display:flex; flex-direction:column; gap:18px; }
.lv-meta { display:flex; align-items:center; flex-wrap:wrap; gap:8px 10px; }
.lv-who { display:flex; align-items:center; flex-wrap:wrap; gap:6px 12px; }
.lv-team { font-size:12px; color:var(--text-muted); }
.lv-sec { display:flex; flex-direction:column; gap:8px; min-width:0; }
.lv-h { display:flex; align-items:center; gap:8px; margin:0; font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:var(--text-muted); }
.lv-when { margin:0; font-size:15px; font-weight:700; color:var(--text); }
.lv-hint, .lv-by { margin:0; font-size:12px; color:var(--text-muted); }
.lv-note { overflow-wrap:anywhere; }
.lv-empty { margin:0; font-size:13px; color:var(--text-muted); }
.lv-clashes, .lv-history { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; }
.lv-clashes li { display:flex; align-items:center; flex-wrap:wrap; gap:6px 10px; padding:8px 0; border-bottom:1px solid var(--border-light); font-size:13px; }
.lv-clash-who { font-weight:600; color:var(--text); min-width:0; overflow-wrap:anywhere; }
.lv-clash-when { color:var(--text-2); }
.lv-history li { display:flex; justify-content:space-between; align-items:baseline; gap:12px; padding:7px 0; border-bottom:1px solid var(--border-light); font-size:13px; color:var(--text-2); }
.lv-history li:last-child, .lv-clashes li:last-child { border-bottom:0; }
.lv-history b { color:var(--text); font-weight:600; }
.lv-ev-note { display:block; margin-top:2px; color:var(--text-muted); font-style:italic; overflow-wrap:anywhere; }
.lv-ev-when { flex:none; font-size:12px; color:var(--text-muted); white-space:nowrap; }
.lv-decide { padding:12px; border:1px solid var(--border); border-radius:var(--radius); background:var(--bg-2); }
.lv-actions { display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-end; }
.lv-modal { display:flex; flex-direction:column; gap:8px; }

/* the form */
.lv-fs { border:0; margin:0; padding:0; min-width:0; }
.lv-seg { flex-wrap:wrap; max-width:100%; align-self:flex-start; }
.lv-seg button:focus-visible { outline:2px solid var(--brand); outline-offset:1px; }
.lv-dates { align-items:flex-start; }
.lv-time { width:120px; }

/* skeletons, as tall as what replaces them (measured at 1440 and 375: a list row is 66 px, 115 on a phone; four or so
   rows each; the month grid is 737 px, 381 on a phone, where the list of days under it is out of sight) */
.lv-skel-mine, .lv-skel-approvals, .lv-skel-calendar, .lv-skel-approvers { border-radius:var(--radius-card); }
.lv-skel-mine { height:350px; }
.lv-skel-approvals { height:400px; }
.lv-skel-approvers { height:270px; }

@media (max-width:768px) {
  .lv-row, .lv-row.is-mine { grid-template-columns:minmax(0,1fr) auto; }
  .lv-row-who { width:auto; grid-column:1; }
  .lv-row-main, .lv-row-chips { grid-column:1; }
  .lv-row-chips { justify-content:flex-start; }
  .lv-row-go { grid-column:2; grid-row:1 / span 3; }
}
@media (max-width:600px) {
  .lv-tabs { width:100%; }
  .lv-tabs a { flex:1; justify-content:center; text-align:center; padding:7px 8px; }
  .leave .page-actions, .leave .page-actions .btn { width:100%; }
  .lv-time { width:100%; }
  .lv-skel-mine { height:500px; }
  .lv-skel-approvals { height:690px; }
  .lv-skel-approvers { height:270px; }
}
@media print { .lv-tabs, .lv-filters .icon-btn, .leave .page-actions { display:none !important; } }
/* leave in the other screens: a small chip in the type's colours (My Calendar) */
.lv-mini { display:inline-flex; align-items:center; gap:4px; padding:2px 8px; border-radius:5px; font:600 11.5px var(--font); white-space:nowrap; min-width:0; }
.lv-mini svg { width:12px; height:12px; flex:none; }
.mc-item.lv-mini { cursor:pointer; } /* Calendar (2026-11-20): my leave opens its request */
.lv-mini.is-pending { opacity:.62; box-shadow:none; border:1px dashed var(--st-holiday); } /* waiting for a decision: faded, a dashed edge */
.lv-mini.lv-t-sick.is-pending { border-color:var(--st-sick); }
.lv-mini.lv-t-other_leave.is-pending { border-color:var(--st-other); }
.ag-leave .ag-title { font-weight:700; }
.ag-leave .ag-main { text-align:left; cursor:default; }
.ag-leave button.ag-main { cursor:pointer; }
@media (max-width:768px) {
  .mc-items .lv-mini.lv-t-holiday { background:var(--st-holiday); }
  .mc-items .lv-mini.lv-t-sick { background:var(--st-sick); }
  .mc-items .lv-mini.lv-t-other_leave { background:var(--st-other); }
  .mc-items .lv-mini svg { display:none; }
}
/* ---------- end Leave ---------- */
/* ---------- Handbook: the reader (contents rail, search, long-form text, print) and the editor with its History ---------- */
.hb { display:flex; flex-direction:column; gap:16px; min-width:0; }
.hb .page-head { margin-bottom:0; }
.hb [hidden] { display:none !important; }
.hb .empty-title .info-tip { margin-left:4px; }
.hb-empty-act { display:flex; justify-content:center; margin-top:14px; }

/* the tools: Contents (narrow screens), the search with its count and arrows; they stay at the top while reading */
.hb-tools { position:sticky; top:0; z-index:20; display:flex; align-items:center; gap:8px; margin:-6px -4px 0; padding:10px 4px;
            background:var(--bg); border-bottom:1px solid var(--border-light); }
.hb-contents-btn { display:none; }
.hb-search { position:relative; flex:1 1 260px; max-width:440px; min-width:0; }
.hb-search-ico { position:absolute; left:10px; top:50%; width:15px; height:15px; transform:translateY(-50%); color:var(--text-light); pointer-events:none; }
.hb-q { width:100%; height:36px; padding-left:32px; font-size:14px; }
.hb-count { font-size:12px; font-weight:600; color:var(--text-muted); white-space:nowrap; }
.hb-count.is-none { color:var(--err-ink); }
.hb-count[hidden] ~ .icon-btn { display:none; }
.hb-tools .icon-btn:disabled { opacity:.4; cursor:default; background:none; }

/* the reader: a sticky contents rail beside the text, on a sheet about 72 characters wide */
.hb-layout { display:grid; grid-template-columns:240px minmax(0,1fr); gap:32px; align-items:start; }
.hb-rail-wrap { position:sticky; top:76px; max-height:calc(100vh - 96px); overflow-y:auto; overscroll-behavior:contain; padding:2px 4px 12px 0; }
.hb-rail-head { padding:4px 12px 8px; font-size:10.5px; font-weight:700; letter-spacing:.4px; text-transform:uppercase; color:var(--text-muted); }
.hb-rail-list { display:flex; flex-direction:column; gap:1px; margin:0; padding:0; list-style:none; }
.hb-rail-item { display:flex; align-items:baseline; gap:8px; padding:7px 10px; border-left:2px solid var(--border-light); border-radius:0 var(--radius-xs) var(--radius-xs) 0;
                font-size:13px; line-height:1.4; color:var(--text-muted); text-decoration:none;
                transition:color var(--dur-1) var(--ease-out), background var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out), opacity var(--dur-1) var(--ease-out); }
.hb-rail-item:hover { color:var(--text); background:var(--bg-2); }
.hb-rail-item:focus-visible { outline:2px solid var(--brand); outline-offset:-2px; }
.hb-rail-item.is-current { border-left-color:var(--brand); background:var(--brand-soft); color:var(--brand-text); font-weight:600; }
.hb-rail-item.is-dim { opacity:.42; }
.hb-rail-t { flex:1; min-width:0; overflow-wrap:anywhere; }
.hb-rail-n { flex:none; padding:0 6px; border-radius:var(--pill); background:var(--yel-bg); color:var(--yel-ink); font-size:11px; font-weight:700; }
.hb-sheet .hb-rail-head { display:none; }
.hb-sheet .hb-rail-item { padding:10px 12px; font-size:14px; }

.hb-paper { min-width:0; padding:clamp(20px, 4vw, 52px); background:var(--bg-card); border:1px solid var(--card-edge); border-radius:var(--radius-card); box-shadow:var(--elev-1); }
.hb-doc { max-width:76ch; margin:0 auto; font-size:16px; line-height:1.75; color:var(--text-2); overflow-wrap:break-word; }
/* fill-space 2 (2026-11-14): wide screens set the text larger and a little wider, so the readable measure covers more
   of the paper instead of leaving 450px white bands beside it */
@media (min-width:1600px) {
    .hb-doc { max-width:84ch; font-size:17px; }
}
.hb-section { scroll-margin-top:84px; }
.hb-section + .hb-section { margin-top:44px; padding-top:36px; border-top:1px solid var(--border-light); }
.hb-h2 { margin:0 0 16px; font-size:24px; font-weight:700; line-height:1.3; letter-spacing:-.4px; color:var(--text); }
.hb-h2:focus { outline:none; }
.hb-body h3 { margin:32px 0 10px; font-size:18px; font-weight:700; line-height:1.4; letter-spacing:-.2px; color:var(--text); }
.hb-body h4 { margin:24px 0 8px; font-size:16px; font-weight:700; line-height:1.45; color:var(--text); }
.hb-body p, .hb-body ul, .hb-body ol { margin:0 0 16px; }
.hb-body ul, .hb-body ol { padding-left:1.5em; }
.hb-body li { padding-left:.25em; }
.hb-body li + li { margin-top:6px; }
.hb-body li::marker { color:var(--text-muted); }
.hb-body > :last-child { margin-bottom:0; }
.hb-body strong { font-weight:650; color:var(--text); }
.hb-body a { color:var(--brand-text); text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:2px; }
.hb-body a:hover { text-decoration-thickness:2px; }
.hb-doc mark { padding:0 1px; border-radius:3px; background:var(--yel-bg); color:var(--yel-ink); box-shadow:0 0 0 1px var(--yel-bg); }
.hb-doc mark.is-current { background:var(--warn-bg); color:var(--warn-ink); outline:2px solid var(--warn); outline-offset:1px; }

.hb-top { position:fixed; right:max(24px, env(safe-area-inset-right)); bottom:max(24px, env(safe-area-inset-bottom)); z-index:30; display:grid; place-items:center; width:44px; height:44px; padding:0;
          border:1px solid var(--border); border-radius:50%; background:var(--bg-card); color:var(--text-2); box-shadow:var(--sh); cursor:pointer;
          animation:fadeIn var(--dur-2) var(--ease-out); }
.hb-top:hover { color:var(--brand-text); border-color:var(--n-300); }
.hb-top:focus-visible { outline:2px solid var(--brand); outline-offset:2px; }
.hb-top svg { width:18px; height:18px; }

/* skeletons: the rail and the text; History's list */
.hb-skel-rail { height:520px; border-radius:var(--radius-card); }
.hb-skel-title { width:42%; height:28px; margin-bottom:24px; }
.hb-skel-block { height:150px; }
.hb-skel-block + .hb-skel-block { margin-top:18px; }
.hb-skel-hist { height:78px; border-radius:var(--radius-sm); }
.hb-skel-hist + .hb-skel-hist { margin-top:6px; }

/* the editor: the section list, the pane (title, toolbar, text and preview) and the sticky save bar */
.hb-ed { display:grid; grid-template-columns:272px minmax(0,1fr); gap:16px; align-items:start; }
.hb-ed-list { position:sticky; top:16px; max-height:calc(100vh - 150px); overflow-y:auto; gap:6px; padding:10px 8px; }
.hb-ed-list-head { display:flex; justify-content:space-between; padding:2px 8px 4px; font-size:10.5px; font-weight:700; letter-spacing:.4px; text-transform:uppercase; color:var(--text-muted); }
.hb-ed-items { display:flex; flex-direction:column; gap:2px; margin:0; padding:0; list-style:none; }
.hb-ed-item { display:flex; align-items:center; gap:2px; border-radius:var(--radius-sm); transition:background var(--dur-1) var(--ease-out); }
.hb-ed-item:hover { background:var(--bg-2); }
.hb-ed-item.is-current { background:var(--brand-soft); }
.hb-ed-pick { flex:1; min-width:0; display:flex; align-items:baseline; gap:8px; padding:7px 4px 7px 8px; border:0; border-radius:var(--radius-sm); background:none;
              font:500 13px/1.35 var(--font); color:var(--text-2); text-align:left; cursor:pointer; }
.hb-ed-item.is-current .hb-ed-pick { color:var(--brand-text); font-weight:600; }
.hb-ed-pick:focus-visible { outline:2px solid var(--brand); outline-offset:-2px; }
.hb-ed-n { flex:none; min-width:18px; font-size:12px; color:var(--text-light); }
.hb-ed-t { flex:1; min-width:0; overflow-wrap:anywhere; }
.hb-ed-flag { flex:none; align-self:center; width:7px; height:7px; border-radius:50%; background:var(--warn); }
.hb-ed-ops { flex:none; display:flex; opacity:0; transition:opacity var(--dur-1) var(--ease-out); }
.hb-ed-item:hover .hb-ed-ops, .hb-ed-item:focus-within .hb-ed-ops, .hb-ed-item.is-current .hb-ed-ops { opacity:1; }
.hb-ed-ops .icon-btn { width:26px; height:26px; }
.hb-ed-ops .icon-btn svg { width:15px; height:15px; }
.hb-ed-ops .icon-btn:disabled { opacity:.35; cursor:default; background:none; }
.hb-ed-del:hover:not(:disabled) { color:var(--err-ink); }
.hb-ed-add { align-self:flex-start; margin:4px 8px 2px; }
@media (hover:none) { .hb-ed-ops { opacity:1; } .hb-ed-ops .icon-btn { width:32px; height:32px; } }

.hb-ed-pane { min-width:0; gap:8px; padding:16px 18px 18px; }
.hb-ed-title { height:40px; font-size:16px; font-weight:600; }
.hb-ed-bar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; margin-top:8px; }
.hb-ed-toolbar { display:flex; align-items:center; gap:2px; padding:3px; border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--bg); }
.hb-ed-tool svg { width:16px; height:16px; }
.hb-ed-toolbar .info-tip { margin:0 2px; }
.hb-ed-tabs button { padding:5px 14px; }
.hb-ed-panes { display:grid; grid-template-columns:minmax(0,1fr); gap:16px; }
.hb-ed-write { display:flex; flex-direction:column; gap:6px; min-width:0; }
.hb-ed-body { width:100%; height:auto; min-height:min(560px, calc(100vh - 330px)); min-height:min(560px, calc(100dvh - 330px)); padding:12px 14px; font:13.5px/1.65 var(--mono); resize:vertical; tab-size:4; }
.hb-ed-count { align-self:flex-end; font-size:12px; color:var(--text-muted); }
.hb-ed-count.is-near { color:var(--warn-ink); font-weight:600; }
.hb-ed-count.is-over { color:var(--err-ink); font-weight:700; }
.hb-ed-preview { min-width:0; max-height:min(640px, calc(100vh - 300px)); max-height:min(640px, calc(100dvh - 300px)); overflow-y:auto; padding:18px 22px; border:1px solid var(--border-light); border-radius:var(--radius-sm);
                 background:var(--bg); font-size:15px; line-height:1.7; color:var(--text-2); overflow-wrap:break-word; }
.hb-ed-preview .hb-h2 { font-size:20px; }
@media (min-width:1100px) {
    .hb-ed-panes { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
    .hb-ed-tabs { display:none; }
    .hb-ed-preview { min-height:min(560px, calc(100vh - 330px)); min-height:min(560px, calc(100dvh - 330px)); }
}
@media (max-width:1099px) {
    .hb-ed-panes[data-view="write"] .hb-ed-preview, .hb-ed-panes[data-view="preview"] .hb-ed-write { display:none; }
}

.hb-savebar { position:sticky; bottom:calc(12px + env(safe-area-inset-bottom)); z-index:20; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; padding:10px 12px 10px 16px;
              background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius-card); box-shadow:var(--elev-3); }
.hb-save-state { flex:1 1 240px; min-width:0; display:flex; flex-direction:column; gap:6px; }
.hb-save-text { font-size:13px; font-weight:600; color:var(--text-muted); }
.hb-editor.is-dirty .hb-save-text { color:var(--warn-ink); }
.hb-save-acts { display:flex; gap:8px; }
.hb-problems { display:flex; flex-direction:column; gap:4px; max-height:120px; overflow-y:auto; margin:0; padding:0; list-style:none; font-size:12.5px; color:var(--err-ink); }
.hb-problem { padding:0; border:0; background:none; font:500 12.5px/1.4 var(--font); color:var(--err-ink); text-align:left; text-decoration:underline; text-underline-offset:2px; cursor:pointer; }

/* the dialogs: a link, the note, a kept draft */
.hb-form { display:flex; flex-direction:column; gap:6px; }
.hb-form .f-input { width:100%; height:36px; margin-bottom:6px; }
.hb-form-help { margin:0; font-size:12px; line-height:1.45; color:var(--text-muted); }
.hb-form-help a { color:var(--brand-text); font-weight:600; text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:2px; }
.hb-msg { margin-top:8px; overflow-wrap:anywhere; }
.hb-ask { margin-top:10px; }

/* signing the handbook (2026-12-03): the note above the text, what changed (a word diff), the sign form, the Signatures tab */
.hb-tabs-slot:empty { display:none; }
.hb-tabs { align-self:flex-start; }
.hb-banner { display:flex; gap:10px; align-items:flex-start; padding:12px 14px; margin-bottom:16px; border:1px solid var(--border); border-left:3px solid var(--brand);
             border-radius:var(--radius, 6px); background:var(--brand-soft); color:var(--text); font-size:14px; line-height:1.5; overflow-wrap:anywhere; }
.hb-banner svg { width:18px; height:18px; flex:none; margin-top:2px; color:var(--brand-text); }
.hb-banner-more { margin-top:6px; color:var(--text-2); font-size:13px; }
.hb-banner-gone { text-decoration:line-through; }
.hb-chip { display:inline-block; vertical-align:middle; padding:1px 8px; border-radius:12px; font:700 11px var(--font); letter-spacing:.2px; }
.hb-chip-new { background:var(--ok-soft); color:var(--ok); }
.hb-chip-changed { background:var(--warn-soft); color:var(--warn); }
.hb-section.is-changed { border-left:3px solid var(--warn); padding-left:12px; }
.hb-diff { white-space:pre-wrap; overflow-wrap:anywhere; }
.hb-doc mark.hb-add, .hb-diff mark.hb-add, .hb-h2 mark.hb-add { background:var(--ok-soft); color:var(--text); box-shadow:none; text-decoration:underline; text-decoration-color:var(--ok); }
.hb-doc del.hb-del, .hb-diff del.hb-del, .hb-h2 del.hb-del { background:var(--err-soft); color:var(--text-muted); text-decoration:line-through; }
.hb-sign { display:flex; flex-direction:column; gap:12px; margin-top:32px; padding:18px; border:1px solid var(--border); border-radius:var(--radius, 6px); background:var(--surface, var(--bg)); }
.hb-sign-title { margin:0; font-size:16px; font-weight:800; }
.hb-sign-names { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.hb-sign-field { min-width:0; display:flex; flex-direction:column; gap:4px; }
.hb-sign-field .f-input { width:100%; }
.hb-sign-err { color:var(--err); font-size:13px; overflow-wrap:anywhere; }
.hb-sign-err:empty { display:none; }
.hb-sign-btn { align-self:flex-start; }
.hb-counts { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:12px; margin-bottom:12px; }
.hb-count-tile { padding:12px 14px; border:1px solid var(--border); border-radius:var(--radius, 6px); background:var(--surface, var(--bg)); min-width:0; }
.hb-count-n { font-size:24px; font-weight:800; }
.hb-count-l { font-size:11px; font-weight:700; letter-spacing:.4px; text-transform:uppercase; color:var(--text-muted); }
.hb-count-tile.is-ok { border-top:3px solid var(--ok); } .hb-count-tile.is-warn { border-top:3px solid var(--warn); } .hb-count-tile.is-bad { border-top:3px solid var(--err); }
.hb-state { font-weight:600; }
.hb-state-signed { color:var(--ok); } .hb-state-needs_to_sign_again { color:var(--warn); } .hb-state-not_signed { color:var(--err); }
.hb-sig-actions { display:flex; justify-content:flex-end; margin-top:12px; }
@media (max-width:768px) {
  .hb-sign { padding:14px; }
  .hb-sign-names { grid-template-columns:1fr; }
  .hb-sign .f-input { height:44px; font-size:16px; }
  .hb-sign-btn { width:100%; min-height:44px; }
  .hb-sign-agree { min-height:44px; align-items:center; }
  .hb-sign-agree input { width:22px; height:22px; }
  .hb-counts { grid-template-columns:1fr; }
  .hb-sig-actions .btn { width:100%; min-height:44px; }
}
@media print { .hb-sign, .hb-banner { display:none !important; } }

/* History: the versions, newest first, and one version read-only */
.hb-hist-list { display:flex; flex-direction:column; gap:6px; margin:0; padding:0; list-style:none; }
.hb-hist-item { position:relative; width:100%; display:flex; flex-direction:column; gap:3px; padding:10px 12px; border:1px solid var(--border); border-radius:var(--radius-sm);
                background:var(--bg-card); font:inherit; color:var(--text-2); text-align:left; cursor:pointer;
                transition:border-color var(--dur-1) var(--ease-out), background var(--dur-1) var(--ease-out); }
.hb-hist-item:hover { border-color:var(--n-300); background:var(--bg-2); }
.hb-hist-item:focus-visible { outline:2px solid var(--brand); outline-offset:1px; }
.hb-hist-item.is-current { border-color:var(--brand); }
.hb-hist-line { display:block; padding-right:64px; font-size:13px; font-weight:600; color:var(--text); }
.hb-hist-kind, .hb-hist-sum { display:block; font-size:12.5px; line-height:1.45; color:var(--text-muted); overflow-wrap:anywhere; }
.hb-hist-note { display:block; font-size:12.5px; font-style:italic; line-height:1.45; color:var(--text-2); overflow-wrap:anywhere; }
.hb-hist-badge { position:absolute; top:10px; right:10px; }
.hb-hist-more { display:flex; justify-content:center; margin-top:12px; }
.hb-hist-top { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; margin-bottom:12px; }
.hb-hist-info { display:flex; flex-direction:column; gap:3px; margin-bottom:16px; padding:10px 12px; border-radius:var(--radius-sm); background:var(--bg-2); }
.hb-hist-info .hb-hist-line { padding-right:0; }
.hb-hist-doc { max-width:none; font-size:14.5px; line-height:1.65; }
.hb-hist-doc .hb-h2 { font-size:18px; }
.hb-hist-doc .hb-section + .hb-section { margin-top:24px; padding-top:20px; }

/* narrower screens: the rail becomes the Contents button, the editor stacks */
@media (max-width:900px) {
    .hb-layout { grid-template-columns:minmax(0,1fr); }
    .hb-rail-wrap { display:none; }
    .hb-contents-btn { display:inline-flex; flex:none; }
    .hb-paper { max-width:none; }
    .hb-ed { grid-template-columns:minmax(0,1fr); }
    .hb-ed-list { position:static; max-height:300px; }
}
@media (max-width:768px) {
    .hb-tools { top:calc(56px + env(safe-area-inset-top)); }
    .hb-section { scroll-margin-top:132px; }
}
@media (max-width:600px) {
    .hb-contents-btn { width:44px; height:44px; padding:0; }
    .page-actions .hb-contents-btn:not(.btn-xs) { padding:0; } /* the head standard's padding would squeeze the icon */
    .hb-contents-label { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
    .hb-search { flex-basis:0; }
    .hb-tools .icon-btn { flex:none; }
    .hb-paper { padding:20px 16px 24px; }
    .hb-doc { line-height:1.7; }
    .hb-h2 { font-size:21px; }
    .hb-section + .hb-section { margin-top:32px; padding-top:28px; }
    .hb-top { right:calc(16px + env(safe-area-inset-right)); bottom:calc(16px + env(safe-area-inset-bottom)); }
    .hb-ed-pane { padding:12px; }
    .hb-ed-body { min-height:50vh; min-height:50dvh; }
    .hb-ed-preview { padding:14px 16px; max-height:none; }
    .hb-savebar { bottom:calc(8px + env(safe-area-inset-bottom)); padding:10px; }
    .hb-save-acts { width:100%; }
    .hb-save-acts .btn { flex:1; }
}
@media (prefers-reduced-motion:reduce) { .hb-top { animation:none; } .hb-rail-item, .hb-ed-ops, .hb-ed-item, .hb-hist-item { transition:none; } }

/* print: the whole handbook, without the menu, the rail, the tools or any other chrome; a section starts on a new line, not a new page */
@media print {
    #sidebar, .hb-rail-wrap, .hb-rail, .hb-tools, .hb-top, .hb-savebar, .toast-stack, .hb .page-actions, .hb .info-tip { display:none !important; }
    .hb { display:block; }
    .hb .page-head { margin-bottom:12pt; }
    .hb-layout { display:block; }
    .hb-paper { max-width:none; padding:0; border:0; border-radius:0; box-shadow:none; background:none; }
    .hb-doc { max-width:none; font-size:10.5pt; line-height:1.5; color:var(--text); }
    .hb-section { break-before:auto; break-inside:auto; }
    .hb-section + .hb-section { margin-top:16pt; padding-top:0; border-top:0; }
    .hb-h2, .hb-body h3, .hb-body h4 { break-after:avoid; page-break-after:avoid; }
    .hb-h2 { font-size:15pt; }
    .hb-body p, .hb-body li { orphans:3; widows:3; }
    .hb-doc mark { background:none; box-shadow:none; outline:0; color:inherit; }
    .hb-body a { color:inherit; }
}
/* the focus ring on a blue primary button reads on navy in dark mode */
[data-theme="dark"] .btn-primary:focus-visible { outline:2px solid var(--text); outline-offset:2px; }
/* ---------- Disclosures (Hub.disclosure, kit/disclosure.js) and the phone fixes (Barry, 2026-11-11) ---------- */
/* a row that opens and closes the region it controls: a real button, the chevron turns when it is open */
.disc-btn { display:flex; align-items:center; gap:8px; width:100%; min-height:40px; padding:8px 12px; border:1px solid var(--border-light); border-radius:var(--radius-btn);
            background:var(--bg-card); color:var(--text); font:inherit; font-size:13.5px; font-weight:600; text-align:left; cursor:pointer;
            transition:background var(--dur-1) var(--ease-out); }
.disc-btn:hover { background:var(--bg-2); }
.disc-btn:focus-visible { outline:2px solid var(--brand); outline-offset:2px; }
.disc-label { flex:1; min-width:0; }
.disc-chevron { width:18px; height:18px; flex-shrink:0; color:var(--text-muted); transition:transform var(--dur-2) var(--ease-out); }
.disc-btn[aria-expanded="true"] .disc-chevron { transform:rotate(180deg); }
.is-revealing { animation:discIn var(--dur-2) var(--ease-out); }
@keyframes discIn { from { opacity:0; transform:translateY(-4px); } to { opacity:1; transform:none; } }
@media (prefers-reduced-motion:reduce) { .disc-chevron { transition:none; } .is-revealing { animation:none; } }
/* ---------- Phone pass: comfortable tap targets (44px) and 16px inputs (no iOS zoom) ---------- */
@media (max-width:600px) {
    .icon-btn { width:44px; height:44px; }
    .m-menu, .m-bell, .m-create, .theme-toggle { width:44px; height:44px; }
    .toast .toast-act { min-height:44px; }
    .qc-menu .qc-item { min-height:44px; align-items:center; }
    .btn:not(.btn-sm):not(.btn-xs) { min-height:44px; }
    .nav-item { min-height:44px; }
    .seg button, .seg a, .acc-tabs button, .comm-seg a, .tk-tabs a, .lv-tabs button, .lv-tabs a { min-height:44px; display:inline-flex; align-items:center; justify-content:center; }
    .f-input, .acc-input, .dp-input, select { height:44px; font-size:16px; }
    textarea { font-size:16px; }
    .comm-textarea { font-size:16px; }
    .df-nav .f-input { height:44px; font-size:16px; }
    .sb-search input { font-size:16px; }
    input[type="date"] { padding-left:10px; padding-right:6px; min-width:0; }
    .lv-dates > .acc-field { flex-basis:100%; } /* one date per row: "dd/mm/yyyy" and the picker button fit at 16px */
    .lv-actions .btn-sm { min-height:44px; } /* Approve / Decline on a phone */
    .info-tip { position:relative; width:28px; height:28px; }
    .info-tip::after { content:""; position:absolute; inset:-8px; } /* a 44px hit area, the same look */
    .tk-status { height:44px; font-size:16px; }
    .hb-contents-btn { min-width:44px; min-height:44px; }
    input[type="date"]::-webkit-calendar-picker-indicator { margin-inline-start:2px; padding:0; }
}
/* ---------- Positions & departments (developers; public/js/pages/positions.js) ---------- */
/* 2026-11-12 (the platform's design): both tabs are the shared dense table (.tbl: the uppercase head, ~40px rows on
   hairlines), cards on phones (.tbl-cards); departments are one tbody each with their sub-departments indented under
   them. The windows use the account form's fields and the shared chips and buttons. Tokens only. */
.pd-tabs { margin-bottom:14px; }
.pd-panel { min-width:0; }
.pd-tbl { max-height:none; } /* the whole list on the page, no inner scroll (a few dozen rows at most) */
.pd-table td { padding-top:5px; padding-bottom:5px; height:40px; }
.pd-c-rank { width:64px; }
td.pd-c-rank { color:var(--text-muted); font-weight:700; }
.pd-c-tools { width:1%; white-space:nowrap; }
.pd-name { font-weight:650; color:var(--text); overflow-wrap:anywhere; display:inline-flex; align-items:center; gap:6px; flex-wrap:wrap; }
.pd-lock { width:14px; height:14px; color:var(--text-muted); }
.pd-tools { display:flex; align-items:center; gap:4px; justify-content:flex-end; }
.pd-tools .icon-btn svg { width:16px; height:16px; }
.pd-tree tbody + tbody tr:first-child td { border-top:1px solid var(--border); }
.pd-tree .pd-row:not(.pd-sub-row) .pd-name { font-weight:700; }
.pd-sub-row .pd-c-name { padding-left:30px; }
.pd-sub-row .pd-name { font-weight:500; color:var(--text-2); }
.pd-sub-ico { width:14px; height:14px; color:var(--text-light); flex-shrink:0; }
.pd-form { display:flex; flex-direction:column; gap:14px; }
.pd-perms-head { display:flex; align-items:baseline; justify-content:space-between; gap:8px; border-top:1px solid var(--border-light); padding-top:12px; }
.pd-group { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:var(--text-muted); }
.acc-field + .pd-preview { margin-top:12px; } /* the delete windows' live preview under the "move to" field */
.pd-alert:empty { display:none; }
.pd-alert { margin-bottom:12px; }
.pd-lead { margin:0 0 8px; font-weight:600; color:var(--text); }
.pd-sub { margin:8px 0; font-size:13px; color:var(--text-2); }
.pd-muted { color:var(--text-muted); font-size:12px; }
.pd-note { display:flex; align-items:flex-start; gap:8px; margin:8px 0 0; font-size:13px; color:var(--text-2); }
.pd-note svg { width:15px; height:15px; flex-shrink:0; margin-top:2px; color:var(--text-muted); }
.pd-custom { list-style:none; margin:4px 0; padding:0; border:1px solid var(--border); border-radius:var(--radius-panel); max-height:280px; overflow:auto; }
.pd-custom li { padding:8px 12px; }
.pd-custom li + li { border-top:1px solid var(--border-light); }
.pd-custom-name { font-weight:600; color:var(--text); overflow-wrap:anywhere; }
.pd-custom-name a { color:var(--brand-text); }
.pd-custom-words { font-size:12.5px; color:var(--text-2); margin-top:2px; overflow-wrap:anywhere; }
.acc-add-position { align-self:flex-start; margin-top:4px; }
@media (max-width:600px) {
    .pd .page-head > :first-child { flex:1 1 100%; } /* the long title and its line take the width; the add button wraps under them */
    .pd-table.tbl-cards tbody tr { display:flex; flex-direction:column; }
    .pd-table.tbl-cards td { width:auto; height:auto; padding:4px 0; }
    .pd-table.tbl-cards td.pd-c-name { order:-1; justify-content:flex-start; text-align:left; margin-bottom:4px; padding-bottom:6px; border-bottom:1px solid var(--border-light); }
    .pd-table.tbl-cards td.pd-c-name::before, .pd-table.tbl-cards td.pd-c-tools::before { content:none; }
    .pd-table.tbl-cards td.pd-c-tools { width:auto; padding-top:6px; }
    .pd-table.tbl-cards .pd-tools { width:100%; justify-content:flex-start; flex-wrap:wrap; }
    .pd-tree.tbl-cards tbody + tbody tr:first-child td { border-top:0; }
    .pd-tree.tbl-cards .pd-sub-row { margin-left:16px; }
    .pd-tree.tbl-cards .pd-sub-row .pd-c-subs { display:none; }
}

/* ---------- Health check (developers; public/js/pages/health-check.js): one card per check, "All good" ones one line ---------- */
.hc-list { display:flex; flex-direction:column; gap:14px; min-width:0; }
.hc-ico { width:16px; height:16px; color:var(--text-muted); flex:none; }
.hc-sec.is-quiet .card-head { padding-bottom:0; border-bottom:0; }
.hc-sec .card-head .count-pill { flex:none; }
.hc-note { margin-top:4px; }
.hc-tbl { max-height:none; box-shadow:none; } /* the whole list in the card, no inner scroll */
.hc-name { font-weight:650; color:var(--text); overflow-wrap:anywhere; display:inline-flex; align-items:center; gap:6px; flex-wrap:wrap; }
.hc-user { display:block; font-size:12px; margin-top:1px; overflow-wrap:anywhere; }
.hc-stack { display:inline-block; min-width:0; }
.hc-strong { font-weight:650; }
.hc-c-fix { width:1%; white-space:nowrap; text-align:right; }
.hc-c-fix .btn svg { width:14px; height:14px; }
.hc-keys { display:inline-flex; flex-wrap:wrap; gap:4px; }
.hc-tg { margin:0; padding:0 16px 14px 34px; display:grid; gap:6px; font-size:13.5px; line-height:1.5; } /* Telegram bot check (2026-11-25): what is wrong, one line each */
.hc-table .hc-group th { position:static; z-index:auto; background:var(--bg-2); color:var(--text); font-size:13px; font-weight:800; text-transform:none; letter-spacing:0; white-space:normal; }
.hc-dup + .hc-dup .hc-group th { border-top:1px solid var(--border); }
@media (max-width:600px) {
    .hc-table.tbl-cards td.hc-c-who { display:block; text-align:left; margin-bottom:4px; padding-bottom:6px; border-bottom:1px solid var(--border-light); }
    .hc-table.tbl-cards td.hc-c-who::before, .hc-table.tbl-cards td.hc-c-fix::before { content:none; }
    .hc-table.tbl-cards td.hc-c-fix { display:block; width:auto; white-space:normal; padding-top:8px; }
    .hc-table.tbl-cards td.hc-c-fix .btn { width:100%; justify-content:center; }
    .hc-table.tbl-cards tbody tr.hc-group { background:none; border:0; padding:0; margin:4px 0 6px; }
    .hc-table.tbl-cards tr.hc-group th { display:block; padding:0; background:none; border:0; }
    .hc-dup + .hc-dup .hc-group th { border-top:0; }
}

/* Positions & departments, Pyramid (2026-11-27; SQL 41; kit/pyramid.js): the pyramid of each department, narrow at the top (the
   COO and the CEO) and wide at the bottom (Trainees); a switched-off level is dashed and quiet. Beside it (under it on narrow
   screens) who reports to whom. */
.pyr { display:flex; flex-direction:column; gap:14px; min-width:0; }
/* Overtime on Today (2026-12-01, SQL 48) */
.ot-card .card-title svg { width:16px; height:16px; color:var(--brand-text); margin-right:6px; vertical-align:-2px; }
.ot-totals { display:flex; gap:18px; flex-wrap:wrap; }
.ot-total { display:flex; flex-direction:column; align-items:flex-end; gap:1px; }
.ot-total-l { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.4px; color:var(--text-light); }
.ot-total-v { font-size:20px; font-weight:800; color:var(--text); line-height:1.1; }
.ot-total-s { font-size:11.5px; color:var(--text-light); }
.ot-empty { margin:0; padding:4px 16px 16px; font-size:13px; color:var(--text-light); }
.ot-table tr.click { cursor:pointer; }
.ot-val { font-weight:700; color:var(--text); }
.ot-zero { color:var(--text-light); }
.pd-lr { padding:16px; }
.ovp-ignored { margin-top:14px; border-top:1px solid var(--border-light); padding-top:10px; } /* Waiting for you: Ignored (2026-12-02) */
.ovp-ignored > summary { cursor:pointer; font-size:12px; font-weight:700; color:var(--text-light); text-transform:uppercase; letter-spacing:.4px; }
.ovp-ignored .ovp-list { margin-top:8px; }
.ovp-inbox.is-ignored .ovp-name { color:var(--text-2); }
.ts-ot { color:var(--text-light); } /* the Team calendar's Overtime column (2026-12-01) */
.ts-ot.is-over { color:var(--text); font-weight:700; } /* Leave rules (2026-12-01, SQL 44) */
.lr { display:flex; flex-direction:column; gap:12px; min-width:0; }
.lr-lead { margin:0; font-size:13px; color:var(--text-2); }
.lr-h { margin:4px 0 0; font-size:14px; font-weight:800; color:var(--text); }
.lr-sub { margin:0; font-size:12.5px; color:var(--text-light); }
.pd-t-short { display:none; } /* the Department permissions tab: "Permissions" on a phone */
@media (max-width:480px) { .pd-tabs .pd-t-full { display:none; } .pd-tabs .pd-t-short { display:inline; } }
.lr-note { margin:0; }
.lr-state { font-weight:500; color:var(--text-2); }
@media (min-width:601px) { /* both tables line up: the same Department column, the switch column after it (Barry 2026-12-01) */
  .lr-table { table-layout:fixed; width:100%; }
  .lr-table th:first-child, .lr-table td:first-child { width:40%; }
}
.pyr-flow-title { margin:0; font-size:13px; font-weight:800; color:var(--text); }
.pyr-flow-note { margin:10px 0 0; font-size:12px; color:var(--text-muted); }
.pyr-tabs { align-self:flex-start; max-width:100%; overflow-x:auto; scrollbar-width:thin; }
.pyr-tabs button { white-space:nowrap; display:inline-flex; align-items:center; gap:6px; }
.pyr-dot { width:7px; height:7px; border-radius:var(--radius-sm); background:var(--warn); flex:none; }
.pyr-note { margin:0; }
.pyr-body { display:grid; grid-template-columns:minmax(0, 3fr) minmax(220px, 2fr); gap:18px; align-items:start; min-width:0; }
.pyr-stack { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; align-items:center; gap:6px; min-width:0; }
.pyr-row { display:flex; align-items:center; gap:10px; min-height:48px; padding:6px 12px; border-radius:var(--radius-sm); min-width:0;
           background:var(--brand-soft); border:1px solid var(--border); }
.pyr-row.pyr-cap { justify-content:center; text-align:center; background:var(--brand); border-color:var(--brand); color:var(--on-brand); min-height:40px; }
.pyr-cap .pyr-level, .pyr-cap .pyr-who { color:var(--on-brand); }
.pyr-row.is-off { background:transparent; border-style:dashed; }
.pyr-row.is-off .pyr-level { color:var(--text-muted); }
.pyr-w0 { width:34%; } .pyr-w1 { width:45%; } .pyr-w2 { width:56%; } .pyr-w3 { width:67%; } .pyr-w4 { width:78%; } .pyr-w5 { width:89%; } .pyr-w6 { width:100%; }
.pyr-switch { flex:none; align-self:center; }
.pyr-text { display:flex; flex-direction:column; min-width:0; flex:1; }
.pyr-level { font-size:13.5px; font-weight:700; color:var(--text); display:flex; align-items:center; gap:6px; }
.pyr-count { font-size:11px; font-weight:700; padding:1px 7px; border-radius:var(--radius-chip-lg); background:var(--bg-card); color:var(--brand-text);
             font-variant-numeric:tabular-nums; border:1px solid var(--border); }
.pyr-who { font-size:12px; color:var(--text-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pyr-flow { border:1px solid var(--border); border-radius:var(--radius-sm); padding:12px 14px; background:var(--bg-2); min-width:0; }
.pyr-flow dl { margin:8px 0 0; display:flex; flex-direction:column; gap:8px; }
.pyr-flow-row { display:flex; flex-direction:column; gap:1px; min-width:0; }
.pyr-flow dt { font-size:12px; font-weight:700; color:var(--text-2); }
.pyr-flow dd { margin:0; font-size:13px; color:var(--text); display:flex; align-items:center; gap:6px; }
.pyr-flow dd svg { width:13px; height:13px; color:var(--text-muted); flex:none; }
.pyr-actions { display:flex; flex-wrap:wrap; gap:8px; }
@media (max-width:900px) {
    .pyr-body { grid-template-columns:minmax(0, 1fr); }
}
@media (max-width:600px) {
    .pyr-w0 { width:52%; } .pyr-w1 { width:60%; } .pyr-w2 { width:68%; } .pyr-w3 { width:76%; } .pyr-w4 { width:84%; } .pyr-w5 { width:92%; } .pyr-w6 { width:100%; }
    .pyr-row { padding:6px 8px; gap:8px; }
    .pyr-tabs button { min-height:44px; }
    .pyr-actions .btn { flex:1; justify-content:center; min-height:44px; }
}

/* ---------- Saved views (2026-11-23; Hub.savedViews, kit/saved-views.js): the Views button and the view chips near each
   page's filters (the Today filter chips' look), the menu (the row-menu look), the Save / Manage windows. No band of its
   own: the bar sits inside the filter bar or the page actions, and is hidden until the views are known. ---------- */
.sv-bar { display:flex; flex-wrap:wrap; align-items:center; gap:6px 8px; min-width:0; max-width:100%; }
.sv-btn { flex:none; }
.sv-btn svg { width:15px; height:15px; }
/* ONE standard for every button in a page head (Barry 2026-11-24, visual pass): the full .btn size (36px, 13.5px, 14px icons) whatever
   size class the page gave it; secondary actions are outline (Saved included, see barHtml's inHead), primary stays primary.
   The icon-only quarter arrows stay square. */
.page-actions .btn:not(.btn-xs) { min-height:36px; padding:10px 20px; font-size:13.5px; }
.page-actions .btn:not(.btn-xs) svg, .page-actions .btn:not(.btn-xs) [data-lucide] { width:14px; height:14px; }
.page-actions.fin-nav .btn-ghost:not(.btn-xs) { padding:0; width:36px; }
[data-input="touch"] .page-actions .btn:not(.btn-xs) { min-height:44px; }
[data-input="touch"] .page-actions.fin-nav .btn-ghost:not(.btn-xs) { width:44px; }
.page-actions > .sv-bar { align-self:center; }
@media (max-width:600px) { .page-actions > .sv-bar { flex:1 1 100%; } } /* phones: as wide as the full-width buttons under it */
.sv-more { margin-left:2px; padding:0 6px; border-radius:var(--radius-chip-lg); background:var(--n-100); color:var(--text-muted); font-size:11px; font-weight:700; }
.sv-chip { background:var(--bg-card); border-color:var(--border); color:var(--text-2); }
.sv-chip.is-on { background:var(--brand-soft); border-color:var(--brand); color:var(--brand-text); }
.sv-note { display:inline-flex; align-items:center; gap:6px; font-size:12px; color:var(--text-muted); }
.sv-note svg { width:14px; height:14px; flex:none; }
.sv-menu { min-width:240px; max-width:300px; }
.sv-menu .sv-item .acc-menu-text { overflow-wrap:anywhere; }
.sv-menu .sv-item[aria-checked="true"] { font-weight:700; color:var(--brand-text); }
.sv-empty { display:flex; flex-direction:column; gap:4px; padding:8px 10px 6px; max-width:280px; font-size:12px; line-height:1.45; color:var(--text-muted); }
.sv-empty b { color:var(--text); font-size:13px; }
.sv-acts { display:contents; }
/* the page actions that only hold the (hidden) saved-views slot take no room: no empty row on a phone before the views
   are known, nor ever before the SQL file has run */
:is(.comm, .audit, .salaries, .accounts) .page-actions:not(:has(> :not([hidden]))) { display:none; }
.sv-form .acc-input { width:100%; }
.sv-form .sv-default { margin-top:12px; }
.sv-manage { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; }
.sv-row { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px 12px; padding:10px 0; border-bottom:1px solid var(--border-light); }
.sv-row:last-child { border-bottom:0; }
.sv-row-name { font-weight:700; min-width:0; overflow-wrap:anywhere; }
.sv-row-acts { display:flex; flex-wrap:wrap; gap:4px; }
.tk-filters > .sv-bar, .lv-filters > .sv-bar { flex:0 1 auto; }
.ts-filters > .sv-bar { flex:0 1 auto; }
@media (max-width:600px) {
    .tk-filters > .sv-bar, .lv-filters > .sv-bar, .ts-filters > .sv-bar { flex:1 1 100%; }
    .sv-row-acts { width:100%; }
}
@media print { .sv-bar { display:none !important; } }

/* ---------- Device-aware (HubDevice: data-input / data-size / data-perf / data-os on <html>) ---------- */
/* low perf: the Christmas theme keeps its lights, hat and greeting, never the snow or the twinkle (kit/holiday.js draws no snow there either) */
:root[data-perf="low"] .xmas-snow { display:none; }
:root[data-perf="low"] .xmas-lights::after { animation:none; }
:root[data-perf="low"] .xmas-pile { animation:none; }
/* touch */
/* 44px targets at every width. :where() keeps these at the old specificity, so a more specific size rule (a toolbar icon, a row tool) still wins. */
html[data-input="touch"] { -webkit-tap-highlight-color:transparent; }
:where([data-input="touch"]) :where(a, button, input, select, textarea, label, summary, [role="button"], [tabindex]) { touch-action:manipulation; }
:where([data-input="touch"]) .icon-btn, :where([data-input="touch"]) .m-menu, :where([data-input="touch"]) .m-bell, :where([data-input="touch"]) .m-create, :where([data-input="touch"]) .theme-toggle { width:44px; height:44px; }
:where([data-input="touch"]) .toast-act { min-height:44px; } /* the Undo toast's button (2026-11-23) */
:where([data-input="touch"]) .qc-item { min-height:44px; align-items:center; } /* the + menu's items (2026-11-23) */
:where([data-input="touch"]) .btn:not(.btn-sm):not(.btn-xs) { min-height:44px; }
:where([data-input="touch"]) .nav-item { min-height:44px; }
:where([data-input="touch"]) .sb-search { min-height:44px; } /* the menu search on a wide touch screen (a phone has it from the 16px input) */
:where([data-input="touch"]) .seg button, :where([data-input="touch"]) .seg a, :where([data-input="touch"]) .acc-tabs button, :where([data-input="touch"]) .comm-seg a,
:where([data-input="touch"]) .tk-tabs a, :where([data-input="touch"]) .lv-tabs button, :where([data-input="touch"]) .lv-tabs a { min-height:44px; display:inline-flex; align-items:center; justify-content:center; }
:where([data-input="touch"]) .f-input, :where([data-input="touch"]) .acc-input, :where([data-input="touch"]) .dp-input, :where([data-input="touch"]) select { height:44px; }
[data-input="touch"] .tp .f-input { height:44px; } /* the time picker's hour, minutes and AM/PM (its 38px rule is more specific than the line above) */
:where([data-input="touch"]) .disc-btn { min-height:44px; }
:where([data-input="touch"]) .tk-pick { min-height:44px; } /* a person row in the task, meeting and left-behind pickers */
:where([data-input="touch"]) .org-zoom-btn { width:44px; height:44px; } /* the Organization chart's zoom controls */
:where([data-input="touch"]) .org-row { min-height:44px; } /* a team row in the Organization List view */
:where([data-input="touch"]) .od-row, :where([data-input="touch"]) .od-card-head, [data-input="touch"] .od-fold { min-height:44px; } /* Today's "On duty now": a person, a team */
:where([data-input="touch"]) .lr-switch { min-height:44px; } /* Leave rules (2026-12-01) */
[data-input="touch"] .od-row:active { background:var(--bg-2); }
:where([data-input="touch"]) .info-tip { position:relative; }
:where([data-input="touch"]) .info-tip::after { content:""; position:absolute; inset:-8px; } /* a 44px hit area, the same look */
:where([data-input="touch"]) .hv-acts .btn, :where([data-input="touch"]) .hv-more-row .btn, :where([data-input="touch"]) .hv-write, :where([data-input="touch"]) .st-acts .btn, :where([data-input="touch"]) .st-form-acts .btn { min-height:44px; } /* handover notes, starter tasks (2026-11-22) */
/* pressed states: a held row tints, a held navy item brightens, a held icon dims. Colour and opacity only, nothing moves. */
[data-input="touch"] .tbl tr.click:active, [data-input="touch"] .ovp-link:active,
[data-input="touch"] .org-pick-item:active, [data-input="touch"] .ts-name-btn:active, [data-input="touch"] .bell-item:active,
[data-input="touch"] .lv-row:active, [data-input="touch"] .dz-topic:active, [data-input="touch"] .an-item:active, [data-input="touch"] .pop-item:active, [data-input="touch"] .ws-item:active,
[data-input="touch"] .tk-pick:active, [data-input="touch"] .hb-ed-item:active, [data-input="touch"] .hb-hist-item:active, [data-input="touch"] .av-cell:active,
[data-input="touch"] .set-disc:active, [data-input="touch"] .acc-menu-item:active, [data-input="touch"] .df-day:active, [data-input="touch"] .mc-date:active,
[data-input="touch"] .ts-hit:active, [data-input="touch"] .chart-bar-row:active, [data-input="touch"] .chart-rank-row:active, [data-input="touch"] .chart-donut-row:active, [data-input="touch"] .org-tree-company:active,
[data-input="touch"] .disc-btn:active, [data-input="touch"] .tgp-row:active, [data-input="touch"] .an-glance-list a:active, [data-input="touch"] .ts-period:active,
[data-input="touch"] .ts-pick-cell:active, [data-input="touch"] .ts-mini-d:active, [data-input="touch"] .org-zoom-btn:active, [data-input="touch"] .tbl-group-btn:active { background:var(--press-tint); }
[data-input="touch"] .nav-item:active, [data-input="touch"] .sb-me:active { background:var(--navy-active); }
[data-input="touch"] .sb-pin:active, [data-input="touch"] .theme-toggle:active, [data-input="touch"] .m-menu:active, [data-input="touch"] .nav-bell:active,
[data-input="touch"] .m-bell:active, [data-input="touch"] .auth-theme:active, [data-input="touch"] .cf-btn:active, [data-input="touch"] .tk-check:active,
[data-input="touch"] .nav-create:active, [data-input="touch"] .m-create:active { opacity:.7; }
[data-input="touch"] a:not([class]):active { opacity:.6; }
/* hover-only affordances: the handbook row tools have no hover to wait for */
[data-input="touch"] .hb-ed-ops { opacity:1; }
/* row tools: the 26px and 28px icon buttons get a 44px hit area (more specific than the :where() sizes above, and later in the file, so they win) */
[data-input="touch"] .sal-tl-actions .icon-btn { width:44px; height:44px; margin-block:-8px; }
[data-input="touch"] .hb-ed-ops .icon-btn { width:44px; height:44px; }
[data-input="touch"] .pd-tools .icon-btn, [data-input="touch"] .pd-tools .btn { min-width:44px; min-height:44px; } /* Positions & departments row tools */
[data-input="touch"] .acc-add-position { min-height:44px; } /* the account form's "Add new position" (a .btn-sm) */
/* fields whose own size rule (28-40px) is more specific than the :where() size: 44px on touch at every width, not only under the phone pass's 600px */
[data-input="touch"] .sal-months .f-input, [data-input="touch"] .au-f .f-input, [data-input="touch"] .au-f .ms-trigger, [data-input="touch"] .set-names .acc-input,
[data-input="touch"] .set-tg-row .acc-input, [data-input="touch"] .tk-status { height:44px; }
[data-input="touch"] .auth-theme { width:44px; height:44px; } /* the sign-in theme button (36px), like the shell's .theme-toggle */
/* phone fix 4: the task window's checklist rows and status pills are 44px on touch */
[data-input="touch"] .tk-check { min-height:44px; align-items:center; }
[data-input="touch"] .tk-st-btn { min-height:44px; }
/* schedule requests (2026-11-16): Review and Withdraw (.btn-sm) and "Show the week you asked for" are 44px on touch;
   the notes stay text areas, not 44px boxes */
[data-input="touch"] .sr-row .btn, [data-input="touch"] .sr-req .btn { min-height:44px; }
[data-input="touch"] .sr-asked summary { min-height:44px; display:flex; align-items:center; }
[data-input="touch"] .sr-form textarea, [data-input="touch"] .sr-why textarea { height:auto; min-height:64px; }
[data-input="touch"] .tk-st-menu .pop-item { min-height:44px; }
[data-input="touch"] .tk-st-btn:active { opacity:.7; }
[data-input="touch"] .tgp-row { min-height:44px; } /* the Telegram messages switches (40px rows) */
[data-input="touch"] .tbl-group-btn { min-height:44px; } /* the Today roster's section toggles */
/* the Today roster's filters (2026-11-18): the chips, Clear all, the empty list's buttons and a funnel panel's rows are 44px;
   a header funnel keeps its 18px look and reaches 44px through an invisible ring (the header row stays its height) */
:where([data-input="touch"]) .rf-chip, :where([data-input="touch"]) .rf-clear, :where([data-input="touch"]) .rf-empty-acts .btn,
:where([data-input="touch"]) .rf-panel .pop-item, :where([data-input="touch"]) .rf-panel .cf-foot .btn { min-height:44px; }
[data-input="touch"] .today-roster .cf-btn { position:relative; }
[data-input="touch"] .today-roster .cf-btn::after { content:""; position:absolute; inset:-13px; }
[data-input="touch"] .rf-chip:active { opacity:.7; }
[data-input="touch"] .mc-team-disc { min-height:44px; } /* My calendar: the team card */
[data-input="touch"] .mc-nav .btn-sm { min-height:44px; } /* Calendar Me: Today, Request leave */
[data-input="touch"] .ts-day-btn { min-height:44px; } /* Calendar Team: a day's head opens Day */
/* the Team schedule: each day cell, name and month button a 44px target (the grid scrolls sideways under the sticky names) */
[data-input="touch"] .ts-cell { min-width:44px; height:44px; }
[data-input="touch"] .ts-name-btn { min-height:43px; }
[data-input="touch"] .ts-navbtn, [data-input="touch"] .ts-todaybtn { min-width:44px; min-height:44px; }
/* schedule power tools: the bar's buttons and Copy last week are 44px; a long press on a day starts picking, never the phone's callout */
[data-input="touch"] .ts-multi .btn-sm, [data-input="touch"] .ts-copybtn { min-height:44px; }
[data-input="touch"] .ts-staffbtn, [data-input="touch"] .st-acts .btn-sm { min-height:44px; } /* minimum staffing rules */
[data-input="touch"] .bd-acts .btn, [data-input="touch"] .bd-more-row .btn, [data-input="touch"] .set-bd .btn, [data-input="touch"] .set-bd .f-input, [data-input="touch"] .hol-row .btn-sm { min-height:44px; } /* company holidays and birthdays (2026-11-24) */
[data-input="touch"] .ts-pickable .ts-hit { -webkit-touch-callout:none; }
[data-input="touch"] .ts-mb-menu .pop-item { min-height:44px; } /* the phone bar's ⋯ menu */
/* the views: the switch, the title (the picker), the picker's cells and the Year's days are 44px targets */
:where([data-input="touch"]) .ts-period, :where([data-input="touch"]) .ts-pick-cell, :where([data-input="touch"]) .ts-ycard-h { min-height:44px; }
:where([data-input="touch"]) .ts-mini-d { min-height:44px; }
:where([data-input="touch"]) .pw .btn-sm { min-height:44px; } /* the person window: Change normal week, Edit, Show all, Cancel, Save */
:where([data-input="touch"]) .hc .btn-sm { min-height:44px; } /* the Health check: Check again and every fix link */
:where([data-input="touch"]) .ovp-acts .btn-sm { min-height:44px; } /* the Waiting for you inbox: Approve, Decline, Mark as done and Open (2026-11-20) */
:where([data-input="touch"]) .ts-tl-row:not(.ts-tl-group):not(.ts-tl-head) { min-height:44px; }
:where([data-input="touch"]) .ts-tl-name .ts-name-btn { min-height:43px; }
/* phone */
/* the 11px floor (Apple's smallest text size). The month grid (.mc-wd .mc-off .mc-more) stays as it is: its small labels are what fit seven columns at 360px. */
@media (max-width:600px) {
    .sb-label, .divider-label, .f-label, .sb-role, .acc-you, .mc-you, .nav-badge, .home-btn-n, .req-count,
    .org-sub .org-pill, .wk-all, .wk-h, .wk-mtg .mc-time, .wk-dh .mc-hours, .hb-rail-head, .hb-ed-list-head, .chart-stat-lbl, .ts-dow, .ts-off-n, .ts-group th { font-size:11px; }
    /* the Today filter sheet's Done stays where it rests while the sheet scrolls (a sticky offset counts from the sheet's
       padding edge, and that padding already holds 16px + the home-indicator inset), on a card-coloured bar that reaches
       the bottom edge on notched iPhones: border-image paints only the outset ring (12px above, 16px each side, the
       padding below plus 8px the sheet clips, so no sub-pixel seam), box-shadow fills the rounded corners, and the
       button keeps its navy fill */
    .f-sheet-done { position:sticky; z-index:1; bottom:0; box-shadow:0 0 0 6px var(--bg-card);
        border-image:linear-gradient(var(--bg-card), var(--bg-card)) 1 / 12px 16px calc(24px + env(safe-area-inset-bottom)) / 12px 16px calc(24px + env(safe-area-inset-bottom)); }
}
/* low perf */
/* a weak device (HubDevice perf low, or the app_perf override): shorter transitions, lighter shadows, and no looping or entering animations. The spinner and the API loader keep running: they are the only sign that work is going on. Keyed on [data-perf="low"] so the Organization page's own static-background rule can share it. */
html[data-perf="low"] { --dur-hover:.2s; --dur-route:.18s; --dur-window:.3s; --dur-sheet:.3s;
    --elev-1:var(--elev-1-lite); --elev-2:var(--elev-2-lite); --elev-3:var(--elev-3-lite); }
html[data-perf="low"] .p-enter > *, html[data-perf="low"] .org-canvas .org-pop, html[data-perf="low"] .org-lines path,
html[data-perf="low"] .org-centre::after, html[data-perf="low"] .live-dot, html[data-perf="low"] .fresh:not(.stale) .fresh-dot,
html[data-perf="low"] .rc-dot, html[data-perf="low"] .skel { animation:none; }
html[data-perf="low"] .disc-chevron { transition:none; } /* the disclosure chevron snaps (Hub.motion.reveal already skips the open animation) */
/* saved views (2026-11-23): the Views button, the manage window's buttons (the chips are .rf-chip: 44px above) */
:where([data-input="touch"]) .sv-btn, :where([data-input="touch"]) .sv-row-acts .btn, :where([data-input="touch"]) .sv-menu .pop-item { min-height:44px; }
:where([data-input="touch"]) .sv-default { min-height:44px; align-items:center; } /* the Save window's "Open this page with this view" */
[data-input="touch"] .sv-btn:active, [data-input="touch"] .sv-row-acts .btn:active { opacity:.7; }
/* iOS */
/* Safari zooms into any text field under 16px */
:where([data-os="ios"]) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea) { font-size:16px; }
/* sheet drag */
/* Hub.sheetDrag (kit/sheet-drag.js): on a touch phone the handle and the head drag the sheet down; the body keeps scrolling. The handle gets a 24 x 120px hit area. */
:where([data-input="touch"][data-size="phone"]) :is(.drawer-handle, .drawer-head) { touch-action:none; }
:where([data-input="touch"][data-size="phone"]) .drawer-handle { position:relative; }
:where([data-input="touch"][data-size="phone"]) .drawer-handle::before { content:""; position:absolute; inset:-10px -40px; }
/* the window follows the finger with no lag; on release it settles back (or sheetDown leaves from --drag-y) */
.drawer-window.is-dragging { transition:none; will-change:transform; user-select:none; }
.drawer-scrim.is-dragging { transition:none; }
.drawer-window.is-settling { transition:transform var(--dur-sheet) var(--ease-sheet); }
/* ---------- Wave 5 phone pass (2026-11-23): remaining tap targets under touch ---------- */
[data-input="touch"] .btn-sm, [data-input="touch"] .btn-xs { min-height:44px; } /* Excel, Print, Views, filter and settings buttons */
[data-input="touch"] .auth-link { min-height:44px; }
[data-input="touch"] main .ag-main { min-height:44px; } /* an agenda row on Calendar, Me */
:where([data-input="touch"]) .m-brand, :where([data-input="touch"]) .sb-brand { position:relative; }
:where([data-input="touch"]) .m-brand::after { content:""; position:absolute; inset:-11px -6px; } /* a 44px hit area around the logo, the same look */
[data-input="touch"] .df .df-open { width:44px; height:44px; } /* the date field's calendar button */

/* ---------- Wave 6: the sidebar search results (kit/search.js), under the menu matches. Reuses .sb-label and .nav-item. ---------- */
.sb-results[hidden] { display:none; }
.sb-res { align-items:center; min-height:40px; }
.sb-res .av { flex-shrink:0; }
.sb-res .nav-text { display:flex; flex-direction:column; min-width:0; line-height:1.25; }
.sb-res-t { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sb-res-s { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11px; font-weight:400; color:var(--on-navy-faint); }
.sb-res.is-active { background:var(--navy-hover); color:var(--on-navy); box-shadow:inset 0 0 0 2px var(--nav-accent); }
.sb-res.is-active:active { background:var(--navy-active); }
.sb-res-all .nav-text { font-weight:600; }
.sb-res-note { margin:0; padding:10px 12px; font-size:12px; line-height:1.4; color:var(--on-navy-faint); white-space:normal; }
.sb-results[aria-busy="true"] { opacity:.6; }
[data-input="touch"] .sb-res { min-height:44px; }

/* staff sign-up (2026-11-24): the public page, the developers' link window, the requests tab and the review window */
.auth:has(.su-form) .auth-hero { position:sticky; top:0; align-self:start; height:100vh; height:100dvh; } /* the long form scrolls; the hero stays in view */
@media (max-width:768px) { .auth:has(.su-form) .auth-hero { position:static; height:auto; } }
.su-form .af-field { margin-bottom:18px; }
.su-week { margin-top:8px; }
.su-tg { margin-top:8px; }
.su-tg-btn { min-height:44px; }
.su-tg-ok { display:flex; align-items:center; gap:8px; min-height:44px; font-weight:600; color:var(--ok-ink); }
.su-tg-ok svg { width:18px; height:18px; }
.su-tg-wait { display:flex; flex-wrap:wrap; align-items:center; gap:8px 14px; min-height:44px; font-size:13.5px; color:var(--text-muted); }
.su-bd { display:grid; grid-template-columns:2fr 1fr; gap:10px; }
.su-trap { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
/* sign-up by position (2026-11-25): the teams a position may tick, the whole-company note */
.su-teams { display:grid; gap:2px; margin-top:6px; padding:4px 10px; border:1.5px solid var(--border); border-radius:6px; background:var(--bg); }
.su-teams:focus-visible { outline:2px solid var(--brand); outline-offset:2px; }
.su-teams[aria-invalid="true"] { border-color:var(--err); }
.su-team { display:flex; align-items:center; gap:10px; min-height:44px; font-size:14px; color:var(--text); cursor:pointer; }
.su-team input { width:18px; height:18px; flex-shrink:0; accent-color:var(--brand); margin:0; }
.su-note .af-hint { font-size:14px; padding:10px 0; }
.su-rv-teams { display:grid; gap:2px; }
.su-review .su-team { min-height:44px; align-items:center; }
.su-form [data-r="weekbox"][hidden] { display:none; }
.su-admin, .su-review { display:flex; flex-direction:column; gap:14px; }
.su-counts { display:flex; flex-wrap:wrap; gap:6px 18px; font-size:13px; color:var(--text-muted); }
.su-counts strong { color:var(--text); }
.su-list { list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.su-list .su-card { display:flex; flex-direction:row; align-items:center; justify-content:space-between; gap:12px; padding:14px 16px; }
.su-card-main { min-width:0; display:grid; gap:2px; font-size:13px; }
.su-name { font-size:15px; font-weight:700; color:var(--text); overflow-wrap:anywhere; }
.su-flags { display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; }
.su-facts { list-style:none; margin:0; padding:0; display:grid; gap:6px; font-size:13.5px; }
.su-facts li { display:flex; justify-content:space-between; gap:12px; }
.su-facts strong { overflow-wrap:anywhere; text-align:right; }
.su-decline[hidden] { display:none; }
.su-sec .ms-empty { padding:18px 16px; }
:where([data-input="touch"]) .su-card .btn, :where([data-input="touch"]) .su-tg-btn { min-height:44px; }
@media (max-width:600px) { .su-list .su-card { flex-direction:column; align-items:stretch; } }

/* ---------- Linked calendars (Barry 2026-12-02; kit/calendar-links.js, pages/my-calendar.js) ---------- */
.mc-r-external { background:var(--bg-2); color:var(--text-2); border:1px solid var(--border); box-shadow:inset 3px 0 0 var(--n-400); }
.mc-r-external .mc-time { opacity:.8; }
.wk-mtg.mc-r-external { box-shadow:inset 3px 0 0 var(--n-400); }
.ag-row.mc-r-external { box-shadow:inset 4px 0 0 var(--n-400); background:var(--bg-2); }
.cl-win { display:flex; flex-direction:column; gap:12px; }
.cl-lead { margin:0; font-size:13.5px; line-height:1.5; color:var(--text-2); }
.cl-h { margin:4px 0 0; font-size:14px; font-weight:800; color:var(--text); }
.cl-skel { height:120px; }
.cl-none { margin:0; font-size:13.5px; line-height:1.5; color:var(--text-2); }
.cl-list { display:flex; flex-direction:column; gap:8px; margin:0; padding:0; list-style:none; }
.cl-row { display:flex; flex-wrap:wrap; align-items:center; gap:8px 16px; padding:10px 12px; border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--bg-card); }
.cl-row.is-bad { border-color:var(--err); }
.cl-main { display:flex; flex-direction:column; gap:2px; flex:1 1 200px; min-width:0; }
.cl-name { font-size:14px; font-weight:700; overflow-wrap:anywhere; }
.cl-state { font-size:12.5px; color:var(--text-muted); }
.cl-state.is-bad { color:var(--err-ink); font-weight:600; }
.cl-remind { display:flex; flex-direction:column; gap:3px; font-size:12px; font-weight:600; color:var(--text-2); }
.cl-rem { min-width:170px; }
.cl-form { display:flex; flex-direction:column; gap:10px; max-width:560px; }
.cl-actions { display:flex; gap:8px; margin-top:4px; }
.cl-guide { margin-top:4px; }
.cl-jump { display:flex; flex-direction:column; gap:8px; padding:12px; border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--bg-card); }
.cl-jump-h { margin:0; font-size:13.5px; line-height:1.5; color:var(--text-2); }
.cl-jump-row { display:flex; flex-wrap:wrap; gap:8px; }
.cl-jump-in { flex:1 1 220px; min-width:0; }
.cl-warn { display:flex; flex-direction:column; gap:6px; font-size:13.5px; line-height:1.5; }
.cl-warn[hidden] { display:none; }
.cl-warn p { margin:0; }
.cl-paste-hint { display:flex; align-items:center; gap:6px; margin:6px 0 0; font-size:13px; font-weight:600; color:var(--brand); }
.cl-paste-hint[hidden] { display:none; }
.cl-paste-hint svg { flex:none; width:15px; height:15px; }
.cl-jump-more summary { min-height:44px; display:flex; align-items:center; cursor:pointer; font-size:13px; font-weight:600; color:var(--text-2); }
.cl-fold { border:1px solid var(--border); border-radius:var(--radius-sm); padding:0 12px; }
.cl-fold summary { min-height:44px; display:flex; align-items:center; cursor:pointer; font-size:13.5px; font-weight:700; }
.cl-fold-body { padding:0 0 12px; font-size:13.5px; line-height:1.5; color:var(--text-2); }
.cl-fold-body p { margin:0 0 8px; }
.cl-facts { display:grid; grid-template-columns:auto minmax(0,1fr); gap:6px 14px; margin:0; font-size:13.5px; }
.cl-facts dt { color:var(--text-muted); font-weight:600; }
.cl-facts dd { margin:0; overflow-wrap:anywhere; }
.cl-ev { display:flex; flex-direction:column; gap:12px; }
.cl-ev-note { display:flex; align-items:flex-start; gap:6px; margin:0; font-size:12.5px; line-height:1.45; color:var(--text-muted); }
.cl-ev-note svg { flex:none; width:14px; height:14px; margin-top:2px; }
[data-r="refresh"] svg, .btn.is-busy svg { transform-origin:50% 50%; }
.btn.is-busy [data-lucide="refresh-cw"], .btn.is-busy svg.lucide-refresh-cw { animation:cl-spin 0.9s linear infinite; }
@keyframes cl-spin { to { transform:rotate(360deg); } }
@media (max-width:600px) { .cl-row .btn, .cl-rem { width:100%; } .cl-remind { width:100%; } .cl-actions .btn { flex:1 1 100%; justify-content:center; } }
:where([data-input="touch"]) .cl-row .btn, :where([data-input="touch"]) .cl-rem, :where([data-input="touch"]) .cl-actions .btn { min-height:44px; }
@media (prefers-reduced-motion:reduce) { .btn.is-busy [data-lucide="refresh-cw"], .btn.is-busy svg.lucide-refresh-cw { animation:none; } }

/* ---------- Christmas theme (Barry 2026-12-04, "Full festive"; spec docs/superpowers/specs/2026-12-04-christmas-theme-design.md) ----------
   html.xmas from 1 Dec to 7 Jan (Tashkent) unless this device turned it off (kit/holiday.js, shared/holiday.js). The page's
   snow is a fixed layer at z-index -1: above the body's colour, under every in-flow box, so cards and windows always cover it.
   Each flake is one <i> moved by transform only; its place, size, speed and drift come in from --x --s --d --w --dx --o. */
.xmas-snow { position:fixed; inset:0; z-index:-1; overflow:hidden; pointer-events:none; contain:strict; }
.xmas-snow i { position:absolute; top:-8px; left:var(--x,50%); width:var(--s,3px); height:var(--s,3px); border-radius:50%; background:var(--xmas-snow);
    opacity:var(--o,.7); will-change:transform; animation:xmas-fall var(--d,12s) linear var(--w,0s) infinite; }
.xmas-snow.on-navy i { background:var(--xmas-snow-navy); }
@keyframes xmas-fall { 0% { transform:translate3d(0,0,0); } 50% { transform:translate3d(var(--dx,0px),52vh,0); } 100% { transform:translate3d(0,105vh,0); } }
/* a string of lights: bulbs in a 64px tile on a thin wire, the glow twinkles over them */
.xmas-lights { position:absolute; left:0; right:0; top:0; height:16px; z-index:2; pointer-events:none;
    background:
        radial-gradient(circle at 8px 9px, var(--xmas-bulb-1) 0 2.6px, transparent 3.2px) 0 0 / 64px 16px repeat-x,
        radial-gradient(circle at 24px 11px, var(--xmas-bulb-2) 0 2.6px, transparent 3.2px) 0 0 / 64px 16px repeat-x,
        radial-gradient(circle at 40px 9px, var(--xmas-bulb-3) 0 2.6px, transparent 3.2px) 0 0 / 64px 16px repeat-x,
        radial-gradient(circle at 56px 11px, var(--xmas-bulb-4) 0 2.6px, transparent 3.2px) 0 0 / 64px 16px repeat-x,
        linear-gradient(var(--xmas-wire), var(--xmas-wire)) 0 5px / 100% 1px no-repeat; }
.xmas-lights::after { content:""; position:absolute; inset:0; opacity:0; animation:xmas-twinkle 2.6s ease-in-out infinite alternate;
    background:
        radial-gradient(circle at 8px 9px, var(--xmas-glow) 0 1px, transparent 5px) 0 0 / 64px 16px repeat-x,
        radial-gradient(circle at 40px 9px, var(--xmas-glow) 0 1px, transparent 5px) 0 0 / 64px 16px repeat-x; }
@keyframes xmas-twinkle { to { opacity:1; } }
/* Barry 2026-12-04: one string across the top of every page (body > .xmas-lights.on-top), over the sidebar, the phone header
   and the page alike; its wire and pale bulb change so they show on a light page too. Taps go through it. */
.xmas-lights.on-top { position:fixed; top:env(safe-area-inset-top, 0px); z-index:150; --xmas-wire:var(--xmas-top-wire); --xmas-bulb-3:var(--xmas-top-bulb); }
/* the snow piling up along the bottom of every page (body > .xmas-pile): two rows of soft mounds that grow from a dusting to
   full height over a few minutes while the snow falls; over the page but under windows, bars and toasts, and taps go through.
   Under reduced motion or on a low-end device it is simply there, full height. */
.xmas-pile { position:fixed; left:0; right:0; bottom:0; height:26px; z-index:5; pointer-events:none; transform-origin:50% 100%;
    background:linear-gradient(var(--xmas-pile-top), var(--xmas-pile) 75%);
    -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 26' preserveAspectRatio='none'%3E%3Cpath d='M0 26V15C22 6 44 5 66 12S108 21 130 11S176 5 200 15V26Z'/%3E%3C/svg%3E") 0 0 / 200px 100% repeat-x,
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 330 26' preserveAspectRatio='none'%3E%3Cpath d='M0 26V18C30 10 62 4 98 13S158 23 196 15S276 2 330 18V26Z'/%3E%3C/svg%3E") 0 0 / 330px 100% repeat-x;
    mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 26' preserveAspectRatio='none'%3E%3Cpath d='M0 26V15C22 6 44 5 66 12S108 21 130 11S176 5 200 15V26Z'/%3E%3C/svg%3E") 0 0 / 200px 100% repeat-x,
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 330 26' preserveAspectRatio='none'%3E%3Cpath d='M0 26V18C30 10 62 4 98 13S158 23 196 15S276 2 330 18V26Z'/%3E%3C/svg%3E") 0 0 / 330px 100% repeat-x;
    animation:xmas-pile-grow 150s cubic-bezier(.25,.6,.35,1) both; }
.xmas-pile::before { content:""; position:absolute; left:0; right:0; bottom:6px; height:10px; background:var(--xmas-pile-back); }
@keyframes xmas-pile-grow { from { transform:scaleY(.15); } to { transform:scaleY(1); } }
html.xmas body:not(.is-bare) .main::after { content:""; display:block; height:26px; } /* the end of every page clears the pile */
@media (max-width:768px) { .xmas-pile { height:18px; } html.xmas body:not(.is-bare) .main::after { height:18px; } }
/* the Santa hat on the logos: on the sidebar and phone logo's mark, in the Mini App's header */
/* Barry 2026-12-04: the hat sits on the YELLOW link (the mark's top right end), tipped to follow it; the mark is 24px in the sidebar, 22px on the phone */
.xmas-hat { position:absolute; left:9px; top:-11px; width:22px; height:18px; pointer-events:none; transform:rotate(22deg); transform-origin:40% 85%; }
.m-brand .xmas-hat { left:8px; top:-11px; }
.auth-hero > .xmas-hat { z-index:2; } /* on the hero's logo: placed by kit/holiday.js logoHat from the logo's box */
.xmas-hat svg { display:block; width:100%; height:100%; }
.xh-red { fill:var(--xmas-hat); }
.xh-fur { fill:var(--xmas-fur); }
.m-brand { position:relative; }
.auth-mark-svg { overflow:visible; }
.auth-mark-hat { display:none; }
html.xmas .auth-mark-hat { display:inline; }
/* the sign-in hero: its own snow over the navy (under the logo and the words); the page's lights and pile run across it */
.auth-hero > .xmas-snow { position:absolute; z-index:0; }
@media (max-width:768px) { .auth-hero > .xmas-snow { display:none; } }
/* Today: the count down to New Year under the greeting */
.xmas-chip { display:inline-flex; align-items:center; align-self:flex-start; margin-top:6px; padding:3px 10px; border-radius:var(--radius-chip-lg);
    background:var(--xmas-chip-bg); color:var(--xmas-chip-ink); font-size:12px; font-weight:700; }
@media print { .xmas-snow, .xmas-lights, .xmas-hat, .xmas-pile, .xmas-chip { display:none !important; } html.xmas .main::after { display:none !important; } }
@media (prefers-reduced-motion:reduce) { .xmas-snow { display:none; } .xmas-lights::after { animation:none; opacity:.6; } .xmas-pile { animation:none; } }

@media (prefers-reduced-motion:reduce) { /* P: same look, no motion */
    :root { --lift-y:0px; --lift-scale:1; --press-scale:1; }
    .drawer-window, .drawer-scrim { animation:none !important; }
    .overlay, .modal, .hub-pop, .toast, .route-in { animation:none !important; }
    .nav-item::before { transition:none; }
    .is-stacked { transform:none; }
    .nav-item:hover { transform:none; }
    .acc-track::after, .tk-card { transition:none; }
    .tk-card::after { transition:none; }
    .tk-card.is-dragging { transform:none; }
    .p-enter > * { animation:none !important; }
    .drawer-window.is-settling, .drawer-scrim { transition:none; }
}
