/* Umbra 0.13.0: the ITX design kit in one file.
   Generated by tools/build.mjs from css/umbra-tokens.css, css/umbra-base.css, css/umbra-components.css, css/umbra-data.css, css/umbra-workspace.css, css/umbra-comms.css, css/umbra-meet.css, css/umbra-forms.css, css/umbra-chat.css, css/umbra-calls.css, css/umbra-voytel.css, css/umbra-ops.css, css/umbra-portal.css, css/umbra-tray.css, css/umbra-insights.css, css/umbra-content.css, css/umbra-live.css, css/umbra-admin.css, css/umbra-site.css, css/umbra-huddle.css, css/umbra-fleet.css, css/umbra-whisper.css, css/umbra-jobs.css, css/umbra-effects.css.
   Do not edit this file; edit the parts and run node tools/build.mjs. */

/* ---- umbra-tokens.css ---- */
/* ==========================================================================
   Umbra tokens — the ITX "Dark Depth" look as CSS custom properties.
   Version 0.5.2. Approved look: Nov 13 2026 (Enzo). Dark first, light second.

   Theme choice, on <html> or any element:
     data-theme="dark"   always dark
     data-theme="light"  always light
     no data-theme, or data-theme="system"  follows the computer's setting
   The light block is written twice (forced light, and system-light). tools/check.mjs
   fails if the two copies drift apart, because a drift once left a light screen half dark.

   Every name starts with --u- so Umbra can sit beside shadcn/Tailwind tokens
   (--background, --primary ...) without a clash. tailwind/umbra-shadcn.css maps them.
   ========================================================================== */

:root,
[data-theme="dark"] {
  /* Read by .u and .u-layer as color-scheme (umbra-base.css). Not set on :root itself,
     so a page that only embeds Umbra keeps its own native controls and scrollbars. */
  --u-scheme: dark;

  /* Depth ladder: darkest at the edges, lightest where people read. */
  --u-page: #060607;    /* behind the app frame */
  --u-lv0: #0B0B0C;     /* rail, sidebar, title bar */
  --u-lv1: #0F0F10;     /* main list and page */
  --u-lv2: #131315;     /* cards, reading panes, side panels */
  --u-lv3: #18181A;     /* menus, modals, toasts, selected chips */
  --u-sunken: #08080A;  /* wells, thumbnails */

  /* Hairlines */
  --u-hair: rgba(255,255,255,.08);
  --u-hair2: rgba(255,255,255,.13);
  --u-hair3: rgba(255,255,255,.22);
  /* Edges of controls you type in or tick (0.13.0, design audit Nov 27): fields, dropdowns,
     checkboxes and radios. The hairlines above stay for cards and dividers; a control's edge
     is the only thing that shows where it is, so it keeps 3:1 against a card. */
  --u-ctl-bd: rgba(255,255,255,.34);  /* 3.1:1 on a card */
  --u-sw-off: #66666B;                /* a switched-off switch's track, 3.25:1 on a card */

  /* Text: t1 headings and values, t2 body, t3 secondary, t4 hints */
  --u-t1: #FAFAFA;
  --u-t2: #A3A3A3;
  --u-t3: #969696;
  /* t4 is for hints, but hints are still read, so it keeps 4.5:1 on cards and menus.
     #6E6E6E measured 3.6:1 in the Nov 16 audit. */
  --u-t4: #828282;
  --u-on-accent: #FFFFFF;
  --u-mark-ink: #1C1C21;                  /* text on a highlight wash, the same in both themes */

  /* Accent and status */
  --u-blue: #4F7BF0;   --u-blue-t: #8CAEFF;
  --u-blue-10: rgba(79,123,240,.13); --u-blue-20: rgba(79,123,240,.24);
  --u-ok: #34D399;     --u-ok-10: rgba(52,211,153,.12);
  --u-warn: #FBBF24;   --u-warn-10: rgba(251,191,36,.12);
  --u-bad: #F87171;    --u-bad-10: rgba(248,113,113,.12); --u-bad-fill: #DC2626;
  --u-vio: #A78BFA;    --u-vio-10: rgba(167,139,250,.13);
  --u-cyan: #38BDF8;   --u-cyan-10: rgba(56,189,248,.12);
  --u-pink: #F472B6;   --u-pink-10: rgba(244,114,182,.12);
  --u-gray-10: rgba(255,255,255,.06);
  /* Status colours as TEXT (badges, alerts, small labels). In dark they equal the
     bright colours; light mode needs deeper shades to stay readable on white. */
  --u-ok-t: #34D399; --u-warn-t: #FBBF24; --u-bad-t: #F87171; --u-vio-t: #A78BFA; --u-cyan-t: #38BDF8; --u-pink-t: #F472B6;

  /* Chart series, in order. Picked to stay apart for colour-blind readers. */
  --u-c1: #4F7BF0; --u-c2: #34D399; --u-c3: #FBBF24; --u-c4: #A78BFA; --u-c5: #38BDF8; --u-c6: #F472B6;

  /* Washes */
  --u-hover: rgba(255,255,255,.035);
  --u-active: rgba(255,255,255,.065);
  --u-dot: rgba(255,255,255,.06);
  --u-scrim: rgba(0,0,0,.5);

  /* Depth: a faint light edge on top, wide soft shadow below */
  --u-edge: inset 0 1px 0 rgba(255,255,255,.05);
  --u-sh-card: inset 0 1px 0 rgba(255,255,255,.05),0 1px 2px rgba(0,0,0,.45),0 10px 24px -14px rgba(0,0,0,.7);
  --u-sh-pop: inset 0 1px 0 rgba(255,255,255,.07),0 0 0 1px rgba(0,0,0,.45),0 10px 24px -8px rgba(0,0,0,.6),0 32px 64px -20px rgba(0,0,0,.75);
  --u-sh-row: inset 0 1px 0 rgba(255,255,255,.06),0 1px 2px rgba(0,0,0,.4),0 6px 14px -8px rgba(0,0,0,.6);
  --u-sh-ev: inset 0 1px 0 rgba(255,255,255,.06),0 1px 2px rgba(0,0,0,.25),0 6px 14px -8px rgba(0,0,0,.45);

  /* Fields look slightly sunken */
  --u-fld: #0F0F10;
  --u-fld-in: inset 0 1px 2px rgba(0,0,0,.32);
  --u-ring: 0 0 0 3px rgba(79,123,240,.22);

  /* Buttons. Shadows are deliberately quiet: about half of what feels natural (his rule). */
  --u-b2-bg: linear-gradient(180deg,#1E1E21,#18181A);
  --u-b2-bg-h: linear-gradient(180deg,#242428,#1C1C1F);
  --u-b2-bd: rgba(255,255,255,.10); --u-b2-bd-h: rgba(255,255,255,.16);
  --u-b2-hi: inset 0 1px 0 rgba(255,255,255,.07);
  --u-b2-sh: 0 1px 1px rgba(0,0,0,.3),0 2px 5px -3px rgba(0,0,0,.35);
  --u-b2-sh-h: 0 1px 2px rgba(0,0,0,.35),0 4px 10px -5px rgba(0,0,0,.45);
  --u-press: inset 0 1px 2px rgba(0,0,0,.4);
  /* Control shadows (switch knob, slider thumb, wells, filled-button press) and the track
     behind progress bars and rings. Tokens so light mode gets soft versions (Nov 16 audit:
     the fixed dark ones looked heavy on white). */
  --u-sh-knob: 0 1px 3px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.12);
  --u-sh-well: inset 0 1px 2px rgba(0,0,0,.25);
  --u-press-fill: inset 0 1px 2px rgba(0,0,0,.25);
  --u-track: var(--u-sunken);
  /* Filled buttons: both ends of each gradient keep white 13px text at 4.5:1 or better
     (second Nov 16 audit measured 2.1 to 3.5 on the old, brighter tops). */
  --u-bp-top: #3F6FEA; --u-bp-bot: #2E5AD4; --u-bp-bd: #2347B0;
  --u-bp-hi: inset 0 1px 0 rgba(255,255,255,.28);
  --u-bp-sh: 0 1px 1px rgba(20,40,120,.25),0 3px 8px -3px rgba(69,112,238,.28);
  --u-bp-sh-h: 0 1px 2px rgba(20,40,120,.3),0 5px 12px -4px rgba(69,112,238,.38);
  --u-bd-top: #D63B3B; --u-bd-bot: #B82525; --u-bd-bd: #8F1A1A;
  --u-bd-sh: 0 1px 1px rgba(120,20,20,.3),0 3px 8px -3px rgba(220,38,38,.3);
  --u-bs-top: #0E865B; --u-bs-bot: #0A7350; --u-bs-bd: #075C40;
  --u-bs-sh: 0 1px 1px rgba(5,80,50,.3),0 3px 8px -3px rgba(18,160,106,.3);
  /* Hover glow for Leave, Decline and Accept: they keep their colour and glow (his Nov 20 ask). */
  --u-bd-glow: 0 0 0 1px rgba(248,113,113,.45),0 0 18px 2px rgba(220,38,38,.55);
  --u-bs-glow: 0 0 0 1px rgba(52,211,153,.4),0 0 18px 2px rgba(16,185,129,.45);
  --u-ib-bg: linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,.03));
  --u-ib-bd: rgba(255,255,255,.08);
  --u-ib-sh: inset 0 1px 0 rgba(255,255,255,.06),0 1px 2px rgba(0,0,0,.5);

  /* Brand gradients: used thin (underlines, logo), never across big areas */
  --u-grad: linear-gradient(90deg,#38BDF8,#4F7BF0,#818CF8);
  --u-logo: linear-gradient(135deg,#38BDF8 0%,#4F7BF0 50%,#8B7CF6 100%);

  /* App colors (Nov 17 2026): the five ITX app icons, in the Jewel treatment Enzo picked.
     Brand colors, the same in both themes, so light inherits them. Use them for an app's own
     mark, a launcher tile or a small accent, never across big areas. The icon files are in
     app-icons/. Top is the light corner, the plain name is the middle, deep is the bottom. */
  --u-app-mail-top: #4CC2FF; --u-app-mail: #1287E0; --u-app-mail-deep: #0A4AA0; /* Inbox Mail */
  --u-app-mail-tile: linear-gradient(138deg,#4CC2FF 0%,#1287E0 50%,#0A4AA0 100%);
  --u-app-portal-top: #5B8CFF; --u-app-portal: #2448D8; --u-app-portal-deep: #14257E; /* Client Portal */
  --u-app-portal-tile: linear-gradient(138deg,#5B8CFF 0%,#2448D8 50%,#14257E 100%);
  --u-app-huddle-top: #B184FF; --u-app-huddle: #7238E0; --u-app-huddle-deep: #3E1890; /* Huddle */
  --u-app-huddle-tile: linear-gradient(138deg,#B184FF 0%,#7238E0 50%,#3E1890 100%);
  --u-app-meet-top: #34D8A6; --u-app-meet: #0B9A70; --u-app-meet-deep: #045040; /* Meet */
  --u-app-meet-tile: linear-gradient(138deg,#34D8A6 0%,#0B9A70 50%,#045040 100%);
  --u-app-fleet-top: #FFB65C; --u-app-fleet: #F07A1E; --u-app-fleet-deep: #A8380A; /* Fleet Console */
  --u-app-fleet-tile: linear-gradient(138deg,#FFB65C 0%,#F07A1E 50%,#A8380A 100%);

  /* Terminal: always dark, in both themes (his rule) */
  --u-term-bg: #08080A; --u-term-fg: #E2E8F0; --u-term-bd: rgba(255,255,255,.10);
  --u-term-bar: #0F0F11; --u-term-dim: #7C8799;
  --u-term-green: #4ADE80; --u-term-blue: #7DA2FF; --u-term-yellow: #FACC15; --u-term-red: #F87171; --u-term-cyan: #67E8F9;

  /* Code highlighting and the raised pill-tab thumb */
  --u-code-k: #C792EA; --u-code-s: #A5D6A7; --u-code-n: #F5B97A; --u-code-f: #82AAFF;
  --u-thumb-sh: var(--u-edge), 0 1px 2px rgba(0,0,0,.3);

  /* Remote desktop stand-in wallpaper */
  --u-desk: linear-gradient(160deg,#10223F 0%,#0B1528 45%,#0A0F1A 100%);
}

/* ---------- Light: forced ---------- */
[data-theme="light"] {
  /* @light-begin */
  --u-scheme: light;
  --u-page: #E9E9EC;
  --u-lv0: #F3F3F4; --u-lv1: #F8F8F9; --u-lv2: #FFFFFF; --u-lv3: #FFFFFF; --u-sunken: #EEEEF0;
  --u-hair: rgba(0,0,0,.08); --u-hair2: rgba(0,0,0,.13); --u-hair3: rgba(0,0,0,.22);
  --u-ctl-bd: rgba(0,0,0,.42); --u-sw-off: #8A8F98;
  --u-t1: #0A0A0A; --u-t2: #4D4D4D; --u-t3: #5C5C5C; --u-t4: #696969;
  --u-blue: #3D6DE8; --u-blue-t: #2F5BD3; --u-blue-10: rgba(61,109,232,.10); --u-blue-20: rgba(61,109,232,.2);
  --u-ok: #059669; --u-ok-10: rgba(5,150,105,.10);
  --u-warn: #E08A00; --u-warn-10: rgba(224,138,0,.12);
  --u-bad: #DC2626; --u-bad-10: rgba(220,38,38,.09); --u-bad-fill: #DC2626;
  --u-vio: #7C3AED; --u-vio-10: rgba(124,58,237,.09);
  --u-cyan: #0284C7; --u-cyan-10: rgba(2,132,199,.10);
  --u-pink: #DB2777; --u-pink-10: rgba(219,39,119,.09);
  --u-gray-10: rgba(0,0,0,.05);
  --u-ok-t: #047857; --u-warn-t: #9A5800; --u-bad-t: #C21F1F; --u-vio-t: #6D28D9; --u-cyan-t: #0369A1; --u-pink-t: #BE185D;
  --u-c1: #3D6DE8; --u-c2: #059669; --u-c3: #C2710A; --u-c4: #8B5CF6; --u-c5: #0284C7; --u-c6: #EC4899;
  --u-hover: rgba(0,0,0,.03); --u-active: rgba(0,0,0,.055); --u-dot: rgba(0,0,0,.07); --u-scrim: rgba(20,20,25,.28);
  --u-edge: inset 0 1px 0 #FFFFFF;
  --u-sh-card: inset 0 1px 0 #FFFFFF,0 1px 2px rgba(0,0,0,.06),0 10px 24px -14px rgba(0,0,0,.12);
  --u-sh-pop: inset 0 1px 0 #FFFFFF,0 0 0 1px rgba(0,0,0,.06),0 10px 24px -8px rgba(0,0,0,.12),0 32px 64px -20px rgba(0,0,0,.16);
  --u-sh-row: inset 0 1px 0 #FFFFFF,0 1px 2px rgba(0,0,0,.06),0 6px 14px -8px rgba(0,0,0,.1);
  --u-sh-ev: inset 0 1px 0 rgba(255,255,255,.7),0 1px 2px rgba(0,0,0,.05),0 4px 10px -6px rgba(0,0,0,.1);
  --u-fld: #FFFFFF; --u-fld-in: inset 0 1px 2px rgba(0,0,0,.06); --u-ring: 0 0 0 3px rgba(61,109,232,.18);
  --u-b2-bg: linear-gradient(180deg,#FFFFFF,#F6F6F7); --u-b2-bg-h: linear-gradient(180deg,#FFFFFF,#F1F1F3);
  --u-b2-bd: rgba(0,0,0,.12); --u-b2-bd-h: rgba(0,0,0,.18);
  --u-b2-hi: inset 0 1px 0 #FFFFFF;
  --u-b2-sh: 0 1px 1px rgba(0,0,0,.05),0 2px 5px -3px rgba(0,0,0,.08);
  --u-b2-sh-h: 0 1px 2px rgba(0,0,0,.06),0 5px 12px -6px rgba(0,0,0,.12);
  --u-press: inset 0 1px 2px rgba(0,0,0,.10);
  --u-sh-knob: 0 1px 2px rgba(16,24,40,.16), 0 0 0 1px rgba(16,24,40,.10);
  --u-sh-well: inset 0 1px 1px rgba(16,24,40,.06);
  --u-press-fill: inset 0 1px 2px rgba(16,24,40,.18);
  --u-track: #E2E3E8;
  --u-bp-top: #3F6FEA; --u-bp-bot: #2E5AD4; --u-bp-bd: #2347B0;
  --u-bp-sh: 0 1px 1px rgba(20,40,120,.12),0 3px 8px -3px rgba(56,99,224,.25);
  --u-bp-sh-h: 0 1px 2px rgba(20,40,120,.14),0 5px 12px -4px rgba(56,99,224,.32);
  --u-bd-sh: 0 1px 1px rgba(150,20,20,.12),0 3px 8px -3px rgba(220,38,38,.25);
  --u-bs-sh: 0 1px 1px rgba(5,80,50,.12),0 3px 8px -3px rgba(18,160,106,.25);
  --u-bd-glow: 0 0 0 1px rgba(220,38,38,.3),0 0 16px 1px rgba(220,38,38,.32);
  --u-bs-glow: 0 0 0 1px rgba(16,185,129,.3),0 0 16px 1px rgba(16,185,129,.3);
  --u-ib-bg: linear-gradient(180deg,#FFFFFF,#F4F4F5); --u-ib-bd: rgba(0,0,0,.09); --u-ib-sh: inset 0 1px 0 #FFFFFF,0 1px 2px rgba(0,0,0,.06);
  --u-term-bg: #273449; --u-term-fg: #E2E8F0; --u-term-bd: #3B4A63; --u-term-bar: #222E41; --u-term-dim: #94A3B8;
  --u-code-k: #7C3AED; --u-code-s: #047857; --u-code-n: #B45309; --u-code-f: #1D4ED8;
  --u-thumb-sh: var(--u-edge), 0 1px 2px rgba(0,0,0,.08), 0 2px 6px -2px rgba(0,0,0,.1);
  --u-desk: linear-gradient(160deg,#C9D8F5 0%,#AFC4EE 45%,#9DB4E4 100%);
  /* @light-end */
}

/* ---------- Light: follows the computer ---------- */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]):not([data-theme="light"]),
  [data-theme="system"] {
    /* @light-begin */
    --u-scheme: light;
    --u-page: #E9E9EC;
    --u-lv0: #F3F3F4; --u-lv1: #F8F8F9; --u-lv2: #FFFFFF; --u-lv3: #FFFFFF; --u-sunken: #EEEEF0;
    --u-hair: rgba(0,0,0,.08); --u-hair2: rgba(0,0,0,.13); --u-hair3: rgba(0,0,0,.22);
    --u-ctl-bd: rgba(0,0,0,.42); --u-sw-off: #8A8F98;
    --u-t1: #0A0A0A; --u-t2: #4D4D4D; --u-t3: #5C5C5C; --u-t4: #696969;
    --u-blue: #3D6DE8; --u-blue-t: #2F5BD3; --u-blue-10: rgba(61,109,232,.10); --u-blue-20: rgba(61,109,232,.2);
    --u-ok: #059669; --u-ok-10: rgba(5,150,105,.10);
    --u-warn: #E08A00; --u-warn-10: rgba(224,138,0,.12);
    --u-bad: #DC2626; --u-bad-10: rgba(220,38,38,.09); --u-bad-fill: #DC2626;
    --u-vio: #7C3AED; --u-vio-10: rgba(124,58,237,.09);
    --u-cyan: #0284C7; --u-cyan-10: rgba(2,132,199,.10);
    --u-pink: #DB2777; --u-pink-10: rgba(219,39,119,.09);
    --u-gray-10: rgba(0,0,0,.05);
  --u-ok-t: #047857; --u-warn-t: #9A5800; --u-bad-t: #C21F1F; --u-vio-t: #6D28D9; --u-cyan-t: #0369A1; --u-pink-t: #BE185D;
    --u-c1: #3D6DE8; --u-c2: #059669; --u-c3: #C2710A; --u-c4: #8B5CF6; --u-c5: #0284C7; --u-c6: #EC4899;
    --u-hover: rgba(0,0,0,.03); --u-active: rgba(0,0,0,.055); --u-dot: rgba(0,0,0,.07); --u-scrim: rgba(20,20,25,.28);
    --u-edge: inset 0 1px 0 #FFFFFF;
    --u-sh-card: inset 0 1px 0 #FFFFFF,0 1px 2px rgba(0,0,0,.06),0 10px 24px -14px rgba(0,0,0,.12);
    --u-sh-pop: inset 0 1px 0 #FFFFFF,0 0 0 1px rgba(0,0,0,.06),0 10px 24px -8px rgba(0,0,0,.12),0 32px 64px -20px rgba(0,0,0,.16);
    --u-sh-row: inset 0 1px 0 #FFFFFF,0 1px 2px rgba(0,0,0,.06),0 6px 14px -8px rgba(0,0,0,.1);
  --u-sh-ev: inset 0 1px 0 rgba(255,255,255,.7),0 1px 2px rgba(0,0,0,.05),0 4px 10px -6px rgba(0,0,0,.1);
    --u-fld: #FFFFFF; --u-fld-in: inset 0 1px 2px rgba(0,0,0,.06); --u-ring: 0 0 0 3px rgba(61,109,232,.18);
    --u-b2-bg: linear-gradient(180deg,#FFFFFF,#F6F6F7); --u-b2-bg-h: linear-gradient(180deg,#FFFFFF,#F1F1F3);
    --u-b2-bd: rgba(0,0,0,.12); --u-b2-bd-h: rgba(0,0,0,.18);
    --u-b2-hi: inset 0 1px 0 #FFFFFF;
    --u-b2-sh: 0 1px 1px rgba(0,0,0,.05),0 2px 5px -3px rgba(0,0,0,.08);
    --u-b2-sh-h: 0 1px 2px rgba(0,0,0,.06),0 5px 12px -6px rgba(0,0,0,.12);
    --u-press: inset 0 1px 2px rgba(0,0,0,.10);
    --u-sh-knob: 0 1px 2px rgba(16,24,40,.16), 0 0 0 1px rgba(16,24,40,.10);
    --u-sh-well: inset 0 1px 1px rgba(16,24,40,.06);
    --u-press-fill: inset 0 1px 2px rgba(16,24,40,.18);
    --u-track: #E2E3E8;
    --u-bp-top: #3F6FEA; --u-bp-bot: #2E5AD4; --u-bp-bd: #2347B0;
    --u-bp-sh: 0 1px 1px rgba(20,40,120,.12),0 3px 8px -3px rgba(56,99,224,.25);
    --u-bp-sh-h: 0 1px 2px rgba(20,40,120,.14),0 5px 12px -4px rgba(56,99,224,.32);
    --u-bd-sh: 0 1px 1px rgba(150,20,20,.12),0 3px 8px -3px rgba(220,38,38,.25);
    --u-bs-sh: 0 1px 1px rgba(5,80,50,.12),0 3px 8px -3px rgba(18,160,106,.25);
    --u-bd-glow: 0 0 0 1px rgba(220,38,38,.3),0 0 16px 1px rgba(220,38,38,.32);
    --u-bs-glow: 0 0 0 1px rgba(16,185,129,.3),0 0 16px 1px rgba(16,185,129,.3);
    --u-ib-bg: linear-gradient(180deg,#FFFFFF,#F4F4F5); --u-ib-bd: rgba(0,0,0,.09); --u-ib-sh: inset 0 1px 0 #FFFFFF,0 1px 2px rgba(0,0,0,.06);
    --u-term-bg: #273449; --u-term-fg: #E2E8F0; --u-term-bd: #3B4A63; --u-term-bar: #222E41; --u-term-dim: #94A3B8;
    --u-code-k: #7C3AED; --u-code-s: #047857; --u-code-n: #B45309; --u-code-f: #1D4ED8;
    --u-thumb-sh: var(--u-edge), 0 1px 2px rgba(0,0,0,.08), 0 2px 6px -2px rgba(0,0,0,.1);
    --u-desk: linear-gradient(160deg,#C9D8F5 0%,#AFC4EE 45%,#9DB4E4 100%);
    /* @light-end */
  }
}

/* ---------- Shape, type, size, motion (same in both themes) ---------- */
:root {
  --u-f-ui: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --u-f-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --u-fs-xs: 11px; --u-fs-sm: 12px; --u-fs: 13px; --u-fs-md: 14px; --u-fs-lg: 16px;
  --u-fs-xl: 19px; --u-fs-2xl: 24px; --u-fs-3xl: 32px; --u-fs-4xl: 44px;

  /* Compact controls (his rule). Phone tap targets come from the 40px media rule in components. */
  --u-ctl: 28px; --u-ctl-sm: 24px; --u-ctl-lg: 34px; --u-ctl-touch: 40px;
  /* Room a Mac title bar leaves for the window buttons (data-u-chrome="mac"). */
  --u-mac-inset: 92px;
  --u-row: 44px; --u-row-dense: 32px;
  /* One height for every pane header (Inbox Mail, Nov 20, approved by Enzo): side by side,
     the lines under the headers meet in one straight line. The header never scrolls; the
     pane's content scrolls under it. */
  --u-head-h: 48px;
  /* Page widths: app content, and the wider marketing width the website asked for. */
  --u-site-w: 1120px; --u-site-w-wide: 1360px;

  --u-r-xs: 4px; --u-r-sm: 6px; --u-r: 8px; --u-r-md: 10px; --u-r-lg: 12px; --u-r-xl: 14px; --u-r-full: 999px;

  --u-s1: 4px; --u-s2: 8px; --u-s3: 12px; --u-s4: 16px; --u-s5: 20px; --u-s6: 24px; --u-s8: 32px; --u-s10: 40px; --u-s12: 48px;

  --u-ease: cubic-bezier(.32,.72,0,1);
  --u-ease-out: cubic-bezier(.2,.8,.2,1);
  --u-fast: .15s; --u-med: .25s; --u-slow: .35s;

  /* Layers, bottom to top. Menus, dropdowns and pop-overs sit ABOVE dialogs and drawers,
     because they are often opened from inside one (the Day dropdown in a dialog opened
     behind it in the Nov 16 audit). umbra.js puts each scrim one step under its layer. */
  --u-z-sticky: 10; --u-z-drawer: 60; --u-z-modal: 70; --u-z-toast: 80; --u-z-menu: 85; --u-z-tip: 90;
}

/* ---- umbra-base.css ---- */
/* ==========================================================================
   Umbra base — fonts, the .u root, type, icons, scrollbars, small helpers.
   Nothing here touches the page until an element carries class "u"
   (put it on <html> or <body>), so Umbra can live inside an app that has
   its own reset (Tailwind preflight, the Fleet Console classic look) without a fight.
   ========================================================================== */

/* Geist ships with Umbra (SIL OFL, fonts/LICENSE-Geist.txt). Self-hosted on purpose:
   Fleet Console loads nothing from outside its own server. Adjust the url() if the
   fonts folder sits somewhere else in your app. */
@font-face {
  font-family: "Geist";
  src: url("Geist-Variable.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

.u, .u *, .u *::before, .u *::after,
.u-layer, .u-layer *, .u-layer *::before, .u-layer *::after { box-sizing: border-box; }
.u, .u-layer { color-scheme: var(--u-scheme); }
/* No grey flash when a finger taps a button (Huddle on iPhone, Nov 17). Umbra's own
   pressed and focus states show the tap instead. */
.u, .u-layer { -webkit-tap-highlight-color: transparent; }
/* An app that puts .u on <html> gets a page with no browser margin. Found in the
   Nov 16 audit: the gallery had an 8px gap round its sticky header. */
html.u, html.u > body, body.u { margin: 0; }
.u {
  background: var(--u-lv1);
  color: var(--u-t2);
  font: 400 var(--u-fs)/1.45 var(--u-f-ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
/* Menus, tooltips, toasts and dialogs are moved to the end of <body> so nothing
   clips them. umbra.js marks each one .u-layer so it keeps Umbra's type even when
   only part of the page carries .u (no background, so it never paints a box). */
.u-layer { color: var(--u-t2); font: 400 var(--u-fs)/1.45 var(--u-f-ui); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
/* :where() keeps these at zero specificity, so a component's own colour (white text on
   a primary button) always wins over "inherit". Found in the first gallery check. */
:where(.u, .u-layer) :where(button, input, select, textarea) { font: inherit; color: inherit; }
:where(.u, .u-layer) :where(button) { cursor: pointer; }
:where(.u, .u-layer) :focus-visible { outline: 2px solid var(--u-blue); outline-offset: 2px; border-radius: 4px; }
.u ::selection { background: var(--u-blue-20); color: var(--u-t1); }
.u [hidden], .u-layer[hidden], .u-layer [hidden] { display: none !important; }

/* ---------- Type ---------- */
.u-h1, .u-h2, .u-h3, .u-h4 { margin: 0; color: var(--u-t1); font-weight: 600; letter-spacing: -.02em; }
.u-h1 { font-size: var(--u-fs-3xl); line-height: 1.1; letter-spacing: -.035em; }
.u-h2 { font-size: var(--u-fs-2xl); line-height: 1.2; letter-spacing: -.03em; }
.u-h3 { font-size: var(--u-fs-xl); line-height: 1.25; }
.u-h4 { font-size: var(--u-fs-md); line-height: 1.35; letter-spacing: -.01em; }
.u-display { margin: 0; color: var(--u-t1); font-size: clamp(32px, 6vw, var(--u-fs-4xl)); line-height: 1.04; font-weight: 600; letter-spacing: -.045em; }
.u-lead { margin: 0; color: var(--u-t2); font-size: var(--u-fs-lg); line-height: 1.55; }
.u-p { margin: 0; color: var(--u-t2); }
.u-small { font-size: var(--u-fs-sm); }
.u-xs { font-size: var(--u-fs-xs); }
.u-label { color: var(--u-t3); font-size: var(--u-fs-xs); font-weight: 500; letter-spacing: .01em; }
.u-t1 { color: var(--u-t1); } .u-t2 { color: var(--u-t2); } .u-t3 { color: var(--u-t3); } .u-t4 { color: var(--u-t4); }
.u-ok { color: var(--u-ok-t); } .u-warn { color: var(--u-warn-t); } .u-bad { color: var(--u-bad-t); } .u-blue { color: var(--u-blue-t); } .u-vio { color: var(--u-vio-t); }
.u-mono, .u-num { font-family: var(--u-f-mono); font-variant-numeric: tabular-nums; }
.u-strong { color: var(--u-t1); font-weight: 500; }
.u-grad-text { background: var(--u-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.u-link { color: var(--u-blue-t); text-decoration: none; border-radius: 3px; }
.u-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.u-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

.u-kbd {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 5px; border: 1px solid var(--u-hair2); border-bottom-width: 2px;
  background: var(--u-lv3); color: var(--u-t3); font: 500 10.5px/1 var(--u-f-mono);
}

/* ---------- Icons ---------- */
/* Icons sit in a fixed box and are drawn centred, so an icon beside text never
   drifts off centre in a button (his rule: icons and text exactly centred). */
.u-i { width: 16px; height: 16px; flex: none; display: block; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.u-i--xs { width: 12px; height: 12px; } .u-i--s { width: 14px; height: 14px; }
.u-i--l { width: 20px; height: 20px; } .u-i--xl { width: 24px; height: 24px; }

/* ---------- Surfaces ---------- */
.u-lv0 { background: var(--u-lv0); } .u-lv1 { background: var(--u-lv1); } .u-lv2 { background: var(--u-lv2); }
.u-lv3 { background: var(--u-lv3); } .u-sunken { background: var(--u-sunken); }
.u-sep { height: 1px; background: var(--u-hair); border: 0; margin: 0; }
.u-sep--v { width: 1px; height: auto; align-self: stretch; }

/* Faded dot grid: 20px, very faint, fades out with a mask. Never drawn patterns. */
.u-dots { position: relative; isolation: isolate; }
.u-dots::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(var(--u-dot) 1px, transparent 1.2px); background-size: 20px 20px;
  -webkit-mask: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 78%);
          mask: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 78%);
}

/* Edges fade only where there is more to scroll to (Inbox Mail, Nov 20-21, approved by Enzo).
   umbra.js marks each side that hides more: data-fl / data-fr on .u-fade-x, data-ft / data-fb
   on .u-fade-y. A side with nothing past it stays crisp, so the first chip and the first row
   never look cut. The right fade is wider so a clipped chip reads as "more this way".
   --fade-o keeps a sticky bar at the top of a .u-fade-y list solid; the fade starts below it. */
.u-fade-x, .u-fade-y { --fl: 0px; --fr: 0px; --ft: 0px; --fb: 0px; --fade-o: 0px; }
.u-fade-x {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 16px;
  -webkit-mask: linear-gradient(90deg, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%);
          mask: linear-gradient(90deg, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%);
}
.u-fade-x[data-fl] { --fl: 22px; }
.u-fade-x[data-fr] { --fr: 44px; }
.u-fade-y {
  overflow-y: auto;
  -webkit-mask: linear-gradient(180deg, #000 0 var(--fade-o), transparent var(--fade-o), #000 calc(var(--fade-o) + var(--ft)), #000 calc(100% - var(--fb)), transparent 100%);
          mask: linear-gradient(180deg, #000 0 var(--fade-o), transparent var(--fade-o), #000 calc(var(--fade-o) + var(--ft)), #000 calc(100% - var(--fb)), transparent 100%);
}
.u-fade-y[data-ft] { --ft: 22px; }
.u-fade-y[data-fb] { --fb: 22px; }
.u-fade-x::-webkit-scrollbar { display: none; }

/* ---------- Themed scrollbars (no browser-grey bars) ---------- */
.u, .u-scroll, .u-layer { scrollbar-width: thin; scrollbar-color: var(--u-hair3) transparent; }
.u ::-webkit-scrollbar, .u-layer ::-webkit-scrollbar, .u-layer::-webkit-scrollbar, .u-scroll::-webkit-scrollbar { width: 10px; height: 10px; }
.u ::-webkit-scrollbar-track, .u-scroll::-webkit-scrollbar-track { background: transparent; }
.u ::-webkit-scrollbar-thumb, .u-layer ::-webkit-scrollbar-thumb, .u-layer::-webkit-scrollbar-thumb, .u-scroll::-webkit-scrollbar-thumb {
  background: var(--u-hair2); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box;
}
.u ::-webkit-scrollbar-thumb:hover, .u-scroll::-webkit-scrollbar-thumb:hover { background-color: var(--u-hair3); }
.u ::-webkit-scrollbar-corner { background: transparent; }

/* ---------- Layout helpers (small on purpose; apps bring their own grid) ---------- */
.u-row { display: flex; align-items: center; gap: var(--u-s2); }
.u-col { display: flex; flex-direction: column; gap: var(--u-s2); }
.u-wrap { flex-wrap: wrap; }
.u-grow { flex: 1; min-width: 0; }
.u-gap-1 { gap: 4px; } .u-gap-3 { gap: 12px; } .u-gap-4 { gap: 16px; } .u-gap-6 { gap: 24px; }
.u-between { justify-content: space-between; }
.u-center { display: grid; place-items: center; }
.u-grid { display: grid; gap: var(--u-s4); grid-template-columns: repeat(auto-fill, minmax(var(--u-min, 220px), 1fr)); }
.u-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- umbra-components.css ---- */
/* ==========================================================================
   Umbra components. Every class starts with u- . States use is-* classes or
   the element's own state ([disabled], [aria-selected], :checked).
   Only transform and opacity ever animate or transition (tools/check.mjs, and Fleet
   Console's own lint, enforce it): hover and selection colours change at once.
   ========================================================================== */

/* =============== Buttons =============== */
.u-btn {
  --h: var(--u-ctl);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: var(--h); padding: 0 11px; border-radius: var(--u-r); border: 1px solid var(--u-b2-bd);
  background: var(--u-b2-bg); color: var(--u-t1); box-shadow: var(--u-b2-hi), var(--u-b2-sh);
  font: 500 var(--u-fs)/1 var(--u-f-ui); white-space: nowrap; user-select: none; text-decoration: none;
  transition: transform .2s var(--u-ease), opacity var(--u-fast) var(--u-ease);
}
/* Centre the label optically: Geist's line box sits a hair low, so the text gets 1px up. */
.u-btn > span { display: block; line-height: var(--h); transform: translateY(-.5px); }
.u-btn > .u-kbd { display: inline-grid; line-height: 1; transform: none; }
.u-btn > .u-ms { display: grid; line-height: 0; transform: none; }
.u-btn:hover { transform: translateY(-1px); }
/* Hover fades in instead of snapping (0.5.3 design audit). Only transform and opacity may
   move, so since 0.4.2 every hover colour changed at once and buttons, icon buttons and menu
   rows flicked. The hover look now lives on its own layer (::after, under the label) and that
   layer fades in by opacity over --u-fast on Umbra's curve. The resting look is untouched. */
.u-btn, .u-ibtn, .u-side-i, .u-menu-item { isolation: isolate; }
.u-btn::after, .u-ibtn::after { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; border: 1px solid var(--u-b2-bd-h); background: var(--u-b2-bg-h); box-shadow: var(--u-b2-hi), var(--u-b2-sh-h); opacity: 0; pointer-events: none; transition: opacity var(--u-fast) var(--u-ease); }
.u-btn:hover::after, .u-ibtn:hover::after { opacity: 1; }
.u-btn:active::after, .u-ibtn:active::after { opacity: 0; transition-duration: .06s; }
.u-btn:active { box-shadow: var(--u-press); transform: translateY(0) scale(.98); }
.u-btn--primary { background: linear-gradient(180deg, var(--u-bp-top), var(--u-bp-bot)); border-color: var(--u-bp-bd); color: var(--u-on-accent); box-shadow: var(--u-bp-hi), var(--u-bp-sh); text-shadow: 0 1px 0 rgba(0,0,0,.12); }
.u-btn--primary:hover { box-shadow: var(--u-bp-hi), var(--u-bp-sh-h); }
/* Filled buttons brighten by a white sheen that fades (a filter change can't fade). */
.u-btn--primary::after, .u-btn--danger::after, .u-btn--success::after { inset: 0; border: 0; background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.05)); box-shadow: none; }
.u-btn--primary:active, .u-btn--danger:active, .u-btn--success:active { box-shadow: var(--u-press-fill); filter: none; }
.u-btn--danger { background: linear-gradient(180deg, var(--u-bd-top), var(--u-bd-bot)); border-color: var(--u-bd-bd); color: var(--u-on-accent); box-shadow: var(--u-bp-hi), var(--u-bd-sh); }

.u-btn--success { background: linear-gradient(180deg, var(--u-bs-top), var(--u-bs-bot)); border-color: var(--u-bs-bd); color: var(--u-on-accent); box-shadow: var(--u-bp-hi), var(--u-bs-sh); }

.u-btn--ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--u-t2); }
.u-btn--ghost:hover { color: var(--u-t1); transform: none; }
.u-btn--ghost::after, .u-ibtn::after { border-color: var(--u-ib-bd); background: var(--u-ib-bg); box-shadow: var(--u-ib-sh); }
/* Quiet red button: Remove, Delete or Leave in a list, where a filled red button is too loud
   (Inbox Mail, Enzo's rule that destructive buttons are red). Red words, no fill at rest; a red
   wash fades in on hover. For the one big destructive act in a dialog, keep .u-btn--danger. */
.u-btn--quiet-danger { background: transparent; border-color: transparent; box-shadow: none; color: var(--u-bad-t); }
.u-btn--quiet-danger:hover { transform: none; }
.u-btn--quiet-danger::after { border-color: transparent; background: var(--u-bad-10); box-shadow: none; }
.u-btn--soft { background: var(--u-blue-10); border-color: transparent; box-shadow: none; color: var(--u-blue-t); }
.u-btn--soft::after { inset: 0; border: 0; background: var(--u-blue-10); box-shadow: none; }
.u-btn--soft-bad { background: var(--u-bad-10); border-color: transparent; box-shadow: none; color: var(--u-bad-t); }
.u-btn--soft-bad::after { inset: -1px; background: none; border-color: color-mix(in srgb, var(--u-bad) 30%, transparent); box-shadow: none; }
.u-btn--sm { --h: var(--u-ctl-sm); padding: 0 8px; border-radius: 7px; font-size: var(--u-fs-sm); gap: 5px; }
.u-btn--sm:hover { transform: translateY(-.5px); }
.u-btn--lg { --h: var(--u-ctl-lg); padding: 0 15px; border-radius: 9px; font-size: var(--u-fs-md); }
.u-btn--block { display: flex; width: 100%; }
.u-btn--icon { width: var(--h); padding: 0; }
/* Labels give way to icons when a toolbar runs out of room (Inbox Mail, Nov 21). On .u-squeeze,
   umbra.js adds is-tight only when the full labels would not fit; then every button that has an
   icon shows just the icon, as a square, and keeps its name on the tooltip and for screen readers.
   Buttons with no icon keep their words. */
.u-squeeze { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; }
.u-squeeze > * { flex: none; }
.u-squeeze.is-tight .u-btn:has(> .u-i) { width: var(--h); padding: 0; }
.u-squeeze.is-tight .u-btn:has(> .u-i) > span:not(.u-kbd) { display: none; }
.u-btn[disabled], .u-btn.is-disabled { opacity: .45; pointer-events: none; box-shadow: none; filter: saturate(.6); }
.u-btn .u-kbd { margin-left: 2px; height: 16px; min-width: 16px; border-bottom-width: 1px; background: transparent; }
.u-btn--primary .u-kbd { color: rgba(255,255,255,.8); border-color: rgba(255,255,255,.3); }

/* Stateful button: idle -> loading (spinner) -> done (check). The width is held by
   the hidden idle label, so the button never jumps when its words change. */
.u-btn .u-btn-state { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: translateY(4px); transition: opacity .2s var(--u-ease), transform .25s var(--u-ease); }
.u-btn .u-btn-idle { display: inline-flex; align-items: center; gap: 6px; transition: opacity .2s var(--u-ease), transform .25s var(--u-ease); }
.u-btn.is-loading .u-btn-idle, .u-btn.is-done .u-btn-idle { opacity: 0; transform: translateY(-4px); }
.u-btn.is-loading .u-btn-state--loading, .u-btn.is-done .u-btn-state--done { opacity: 1; transform: none; }
.u-btn.is-loading { pointer-events: none; }

/* Icon buttons: flat at rest, take the secondary look on hover or when selected. */
.u-ibtn {
  --h: var(--u-ctl);
  position: relative; display: inline-grid; place-items: center; width: var(--h); height: var(--h); padding: 0; flex: none;
  border-radius: 7px; border: 1px solid transparent; background: transparent; color: var(--u-t3);
  transition: transform .2s var(--u-ease);
}
.u-ibtn:hover { color: var(--u-t1); }
.u-ibtn:active { box-shadow: var(--u-press); transform: scale(.96); }
.u-ibtn.is-on, .u-ibtn[aria-pressed="true"] { background: var(--u-b2-bg); border-color: var(--u-b2-bd); box-shadow: var(--u-b2-hi), var(--u-b2-sh); color: var(--u-t1); }
.u-ibtn--sm { --h: var(--u-ctl-sm); border-radius: 6px; }
.u-ibtn--sm .u-i { width: 14px; height: 14px; }
.u-ibtn--solid { background: var(--u-b2-bg); border-color: var(--u-b2-bd); box-shadow: var(--u-b2-hi), var(--u-b2-sh); color: var(--u-t2); }
.u-ibtn--primary { background: linear-gradient(180deg, var(--u-bp-top), var(--u-bp-bot)); border-color: var(--u-bp-bd); box-shadow: var(--u-bp-hi), var(--u-bp-sh); color: var(--u-on-accent); }
.u-ibtn--primary:hover { box-shadow: var(--u-bp-hi), var(--u-bp-sh-h); color: var(--u-on-accent); }
.u-ibtn.u-ibtn--primary::after { inset: 0; border: 0; background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.05)); box-shadow: none; }
.u-ibtn[disabled] { opacity: .4; pointer-events: none; }
.u-ibtn .u-badge-dot { position: absolute; top: 4px; right: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--u-bad); box-shadow: 0 0 0 2px var(--u-lv1); }

/* Joined buttons */
.u-btn-group { display: inline-flex; }
.u-btn-group > .u-btn { border-radius: 0; }
.u-btn-group > .u-btn:first-child { border-radius: var(--u-r) 0 0 var(--u-r); }
.u-btn-group > .u-btn:last-child { border-radius: 0 var(--u-r) var(--u-r) 0; }
.u-btn-group > .u-btn + .u-btn { margin-left: -1px; }
.u-btn-group > .u-btn:hover { z-index: 1; }
/* Joined buttons sit still on hover so their shared edge never breaks. */
.u-btn-group > .u-btn:hover, .u-btn-group > .u-btn:active { transform: none; }

/* Call controls (meetings): round, with a caption under them */
.u-callbtn { display: inline-flex; flex-direction: column; align-items: center; gap: 5px; border: 0; background: none; padding: 0; color: var(--u-t3); font-size: var(--u-fs-xs); }
.u-callbtn > .u-callbtn-c { position: relative; isolation: isolate; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--u-t1); background: var(--u-b2-bg); border: 1px solid var(--u-b2-bd); box-shadow: var(--u-b2-hi), var(--u-b2-sh); transition: transform .2s var(--u-ease); }
.u-callbtn:hover > .u-callbtn-c { transform: translateY(-1px); }
.u-callbtn:active > .u-callbtn-c { transform: scale(.95); box-shadow: var(--u-press); }
/* On, off and hover fade instead of snapping (0.8.1, from ITX Meet's design audit, Enzo's
   "Fix the top 4" on Nov 22). Each look is drawn once on its own layer under the icon and
   only its opacity changes, so the fade runs on the GPU (Umbra's transform-and-opacity
   rule). Off is a red tint (::before), On the blue fill (::after). A colour or gradient
   can't be faded directly, and swapping one layer's colour mid-fade would snap, which is why
   Off and On each get their own layer. Off is tinted over the call bar's colour (--u-lv0) so
   it looks exactly as it did on the bar before. Hover is the smooth 1px lift alone: the faint
   grey brighten it used to add snapped, and the disc has no third layer to fade it on.
   Leave, Decline and Accept never turn on or off; their ::after stays the hover glow. */
.u-callbtn > .u-callbtn-c::before, .u-callbtn:not(.u-callbtn--leave):not(.u-callbtn--decline):not(.u-callbtn--accept) > .u-callbtn-c::after { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; border: 1px solid transparent; opacity: 0; pointer-events: none; transition: opacity var(--u-med) var(--u-ease); }
.u-callbtn > .u-callbtn-c::before { background: linear-gradient(var(--u-bad-10), var(--u-bad-10)), var(--u-lv0); border-color: color-mix(in srgb, var(--u-bad) 30%, var(--u-lv0)); }
.u-callbtn:not(.u-callbtn--leave):not(.u-callbtn--decline):not(.u-callbtn--accept) > .u-callbtn-c::after { background: linear-gradient(180deg, var(--u-bp-top), var(--u-bp-bot)); border-color: var(--u-bp-bd); box-shadow: var(--u-bp-hi), var(--u-bp-sh); }
.u-callbtn.is-off > .u-callbtn-c::before, .u-callbtn.is-on:not(.u-callbtn--leave):not(.u-callbtn--decline):not(.u-callbtn--accept) > .u-callbtn-c::after { opacity: 1; }
.u-callbtn.is-off > .u-callbtn-c { color: var(--u-bad); }
.u-callbtn.is-on > .u-callbtn-c { color: var(--u-on-accent); }
.u-callbtn--leave > .u-callbtn-c { width: 52px; border-radius: 20px; background: linear-gradient(180deg, var(--u-bd-top), var(--u-bd-bot)); border-color: var(--u-bd-bd); color: var(--u-on-accent); box-shadow: var(--u-bp-hi), var(--u-bd-sh); }
/* Leave stays red on hover and glows (his Nov 20 ask: the plain hover above turned it black).
   The glow is drawn once on a layer that only fades in, so nothing but opacity animates. */
.u-callbtn--leave:hover > .u-callbtn-c { background: linear-gradient(180deg, var(--u-bd-top), var(--u-bd-bot)); }
.u-callbtn--leave > .u-callbtn-c, .u-callbtn--decline > .u-callbtn-c, .u-callbtn--accept > .u-callbtn-c { position: relative; }
.u-callbtn--leave > .u-callbtn-c::after, .u-callbtn--decline > .u-callbtn-c::after, .u-callbtn--accept > .u-callbtn-c::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; box-shadow: var(--u-bd-glow); opacity: 0; transition: opacity var(--u-fast) var(--u-ease); pointer-events: none; }
.u-callbtn--accept > .u-callbtn-c::after { box-shadow: var(--u-bs-glow); }
.u-callbtn--leave:hover > .u-callbtn-c::after, .u-callbtn--decline:hover > .u-callbtn-c::after, .u-callbtn--accept:hover > .u-callbtn-c::after,
.u-callbtn--leave:focus-visible > .u-callbtn-c::after, .u-callbtn--decline:focus-visible > .u-callbtn-c::after, .u-callbtn--accept:focus-visible > .u-callbtn-c::after { opacity: 1; }

/* =============== Fields =============== */
.u-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.u-field > label, .u-field > .u-row > label, .u-field-label { color: var(--u-t1); font-size: var(--u-fs-sm); font-weight: 500; }
.u-field-hint { color: var(--u-t4); font-size: var(--u-fs-xs); }
.u-field.is-invalid .u-field-hint { color: var(--u-bad-t); }

.u-input, .u-textarea, .u-inwrap {
  width: 100%; min-width: 0; border-radius: var(--u-r); border: 1px solid var(--u-ctl-bd);
  background: var(--u-fld); color: var(--u-t1); box-shadow: var(--u-fld-in);
}
.u-input { height: var(--u-ctl); padding: 0 10px; outline: 0; font-size: var(--u-fs); text-overflow: ellipsis; } /* long text ends in "…" instead of a hard cut (Nov 21) */
.u-input--sm { height: var(--u-ctl-sm); font-size: var(--u-fs-sm); padding: 0 8px; border-radius: 7px; }
.u-input--lg { height: var(--u-ctl-lg); font-size: var(--u-fs-md); padding: 0 12px; }
.u-textarea { min-height: 76px; padding: 8px 10px; outline: 0; resize: vertical; line-height: 1.5; display: block; }
/* Themed resize grip instead of the browser's grey one (second Nov 16 audit). */
.u-textarea::-webkit-resizer { background: linear-gradient(135deg, transparent 50%, var(--u-hair3) 50%, var(--u-hair3) 58%, transparent 58%, transparent 70%, var(--u-hair3) 70%, var(--u-hair3) 78%, transparent 78%); }
.u-input::placeholder, .u-textarea::placeholder, .u-inwrap input::placeholder { color: var(--u-t4); }
/* Fields, dropdowns, checkboxes and radios take the stronger --u-ctl-bd edge (0.13.0, design
   audit Nov 27): on the old hairline an empty box measured 1.4:1 against its card and was hard
   to find. Hover darkens the edge to the hint colour, as checkboxes already did. */
.u-input:hover, .u-textarea:hover, .u-inwrap:hover { border-color: var(--u-t4); }
.u-input:focus, .u-textarea:focus, .u-inwrap:focus-within { border-color: var(--u-blue); box-shadow: var(--u-fld-in), var(--u-ring); }
.u-input[disabled], .u-textarea[disabled], .u-inwrap.is-disabled { opacity: .5; pointer-events: none; }
.is-invalid .u-input, .is-invalid .u-textarea, .is-invalid .u-inwrap, .u-input.is-invalid { border-color: var(--u-bad); }
.is-invalid .u-input:focus, .is-invalid .u-inwrap:focus-within { box-shadow: var(--u-fld-in), 0 0 0 3px var(--u-bad-10); }

/* Field with an icon or button inside */
.u-inwrap { display: flex; align-items: center; gap: 7px; height: var(--u-ctl); padding: 0 6px 0 9px; cursor: text; }
.u-inwrap > .u-i { color: var(--u-t4); width: 14px; height: 14px; }
.u-inwrap > input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: 0; padding: 0; color: var(--u-t1); }
.u-inwrap > .u-kbd { flex: none; }
.u-inwrap > .u-ibtn { --h: 20px; margin-right: -2px; }
.u-inwrap--lg { height: var(--u-ctl-lg); }
.u-inwrap--pill { border-radius: var(--u-r-full); padding-left: 12px; }
.u-inwrap > .u-addon { color: var(--u-t4); font-size: var(--u-fs-sm); white-space: nowrap; }

/* One-time code boxes */
.u-otp { display: flex; gap: 8px; justify-content: center; }
.u-otp input { width: 40px; height: 46px; text-align: center; border-radius: 9px; background: var(--u-fld); border: 1px solid var(--u-ctl-bd); box-shadow: var(--u-fld-in); color: var(--u-t1); font: 600 18px var(--u-f-mono); outline: 0; }
.u-otp input:focus { border-color: var(--u-blue); box-shadow: var(--u-fld-in), var(--u-ring); }
.u-otp.is-invalid input { border-color: var(--u-bad); }

/* Number stepper */
.u-numstep { display: inline-flex; align-items: stretch; height: var(--u-ctl); border-radius: var(--u-r); border: 1px solid var(--u-ctl-bd); background: var(--u-fld); box-shadow: var(--u-fld-in); overflow: hidden; }
.u-numstep input { width: 52px; border: 0; background: none; text-align: center; outline: 0; color: var(--u-t1); font-family: var(--u-f-mono); font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.u-numstep input::-webkit-inner-spin-button { -webkit-appearance: none; }
.u-numstep button { width: 26px; display: grid; place-items: center; border: 0; background: transparent; color: var(--u-t3); }
.u-numstep button:hover { background: var(--u-hover); color: var(--u-t1); }
.u-numstep button:active { background: var(--u-active); }
.u-numstep:focus-within { border-color: var(--u-blue); box-shadow: var(--u-fld-in), var(--u-ring); }

/* Chips you can type into (emails, tags) */
.u-chipsin { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-height: var(--u-ctl); padding: 3px 6px; border-radius: var(--u-r); border: 1px solid var(--u-ctl-bd); background: var(--u-fld); box-shadow: var(--u-fld-in); cursor: text; }
.u-chipsin:focus-within { border-color: var(--u-blue); box-shadow: var(--u-fld-in), var(--u-ring); }
.u-chipsin input { flex: 1; min-width: 80px; border: 0; outline: 0; background: none; height: 20px; color: var(--u-t1); }

/* =============== Checkbox, radio, switch (drawn, not the browser's) =============== */
.u-check, .u-radio { -webkit-appearance: none; appearance: none; margin: 0; flex: none; width: 16px; height: 16px; display: inline-grid; place-items: center; border: 1px solid var(--u-ctl-bd); background: var(--u-fld); box-shadow: var(--u-fld-in); cursor: pointer; }
.u-check { border-radius: 5px; }
.u-radio { border-radius: 50%; }
.u-check::after { content: ""; width: 9px; height: 5px; border: 1.8px solid var(--u-on-accent); border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg) scale(.4); opacity: 0; transition: transform .2s var(--u-ease), opacity .15s var(--u-ease); }
.u-check:indeterminate::after { width: 8px; height: 0; border-width: 0 0 1.8px; transform: none; opacity: 1; }
.u-radio::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--u-on-accent); transform: scale(.3); opacity: 0; transition: transform .2s var(--u-ease), opacity .15s var(--u-ease); }
.u-check:checked, .u-check:indeterminate, .u-radio:checked { background: linear-gradient(180deg, var(--u-bp-top), var(--u-bp-bot)); border-color: var(--u-bp-bd); box-shadow: var(--u-bp-hi), var(--u-bp-sh); }
.u-check:checked::after, .u-radio:checked::after { opacity: 1; transform: translateY(-1px) rotate(-45deg) scale(1); }
.u-radio:checked::after { transform: scale(1); }
.u-check:hover:not(:checked), .u-radio:hover:not(:checked) { border-color: var(--u-t4); }
/* Keyboard focus is the kit's solid 2px blue outline, as on buttons (0.13.0, design audit
   Nov 27). These used only the soft ring, which measured 1.3:1 and hid the checked box's own
   shadow. */
.u-check:focus-visible, .u-radio:focus-visible, .u-switch:focus-visible { outline: 2px solid var(--u-blue); outline-offset: 2px; }
.u-check:disabled, .u-radio:disabled, .u-switch:disabled { opacity: .4; cursor: default; }
.u-choice { display: inline-flex; align-items: center; gap: 8px; color: var(--u-t1); cursor: pointer; user-select: none; }
.u-choice small { display: block; color: var(--u-t3); font-size: var(--u-fs-sm); }

.u-switch { -webkit-appearance: none; appearance: none; margin: 0; flex: none; position: relative; width: 30px; height: 18px; border-radius: 99px; background: var(--u-sw-off); border: 1px solid transparent; box-shadow: var(--u-sh-well); cursor: pointer; }
/* A switched-off switch has a gray track (0.13.0): on the old sunken track a light-mode
   switch was a white knob on near-white, 1.16:1. */
.u-switch::after { content: ""; position: absolute; top: 1px; left: 1px; width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(180deg, #FFFFFF, #E9E9EC); box-shadow: var(--u-sh-knob); transition: transform .25s var(--u-ease); }
.u-switch:checked { background: linear-gradient(180deg, var(--u-bp-top), var(--u-bp-bot)); border-color: var(--u-bp-bd); }
.u-switch:checked::after { transform: translateX(12px); }
.u-switch:active::after { transform: scaleX(1.15); transform-origin: left; }
.u-switch:checked:active::after { transform: translateX(10px) scaleX(1.15); }
.u-switch--sm { width: 26px; height: 16px; }
.u-switch--sm::after { width: 12px; height: 12px; }
.u-switch--sm:checked::after { transform: translateX(10px); }

/* Option cards (pick one of a few big choices) */
.u-opt { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: var(--u-r-lg); border: 1px solid var(--u-hair); background: var(--u-lv2); box-shadow: var(--u-sh-card); cursor: pointer; }
.u-opt:hover { border-color: var(--u-hair2); }
.u-opt:has(input:checked) { border-color: var(--u-blue); box-shadow: var(--u-edge), 0 0 0 3px var(--u-blue-10); }
.u-opt b { display: block; color: var(--u-t1); font-weight: 500; }
.u-opt span { color: var(--u-t3); font-size: var(--u-fs-sm); }

/* =============== Range slider =============== */
.u-range { -webkit-appearance: none; appearance: none; width: 100%; height: 18px; background: transparent; margin: 0; cursor: pointer; --v: 50%; }
.u-range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--u-blue) var(--v), var(--u-track) var(--v)); box-shadow: var(--u-sh-well), 0 0 0 1px var(--u-hair); }
.u-range::-moz-range-track { height: 4px; border-radius: 4px; background: var(--u-track); box-shadow: inset 0 0 0 1px var(--u-hair); }
.u-range::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--u-blue); }
.u-range::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%; background: linear-gradient(180deg, #FFFFFF, #E6E6EA); border: 0; box-shadow: var(--u-sh-knob); transition: transform .2s var(--u-ease); }
.u-range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 0; box-shadow: var(--u-sh-knob); }
.u-range:hover::-webkit-slider-thumb { transform: scale(1.08); }
.u-range:active::-webkit-slider-thumb { transform: scale(1.12); box-shadow: var(--u-sh-knob), 0 0 0 5px var(--u-blue-20); }
/* The whole slider gets the solid blue outline (0.13.0); the soft ring stays on the knob. */
.u-range:focus-visible { outline: 2px solid var(--u-blue); outline-offset: 4px; border-radius: 99px; }
.u-range:focus-visible::-webkit-slider-thumb { box-shadow: var(--u-sh-knob), var(--u-ring); }

/* =============== Select / dropdown (Umbra.select builds this from a <select>) =============== */
.u-selbtn { display: inline-flex; align-items: center; gap: 8px; height: var(--u-ctl); min-width: 140px; padding: 0 8px 0 10px; border-radius: var(--u-r); border: 1px solid var(--u-ctl-bd); background: var(--u-fld); box-shadow: var(--u-fld-in); color: var(--u-t1); text-align: left; }
.u-selbtn:hover { border-color: var(--u-t4); }
.u-selbtn[aria-expanded="true"], .u-selbtn:focus-visible { outline: 0; border-color: var(--u-blue); box-shadow: var(--u-fld-in), var(--u-ring); }
.u-selbtn > .u-selval { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-selbtn > .u-selval.is-empty { color: var(--u-t4); }
.u-selbtn > .u-i:last-child { color: var(--u-t4); width: 14px; height: 14px; transition: transform .25s var(--u-ease); }
.u-selbtn[aria-expanded="true"] > .u-i:last-child { transform: rotate(180deg); }
.u-selbtn--sm { height: var(--u-ctl-sm); font-size: var(--u-fs-sm); min-width: 110px; }
.u-selbtn--plain { background: var(--u-b2-bg); border-color: var(--u-b2-bd); box-shadow: var(--u-b2-hi), var(--u-b2-sh); }
select.u-select-native { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }

/* =============== Menu, popover, listbox =============== */
.u-menu, .u-pop {
  position: fixed; z-index: var(--u-z-menu); min-width: 180px; max-width: min(320px, calc(var(--u-vw, 100vw) - 16px));
  padding: 4px; border-radius: 11px; border: 1px solid var(--u-hair2); background: var(--u-lv3); box-shadow: var(--u-sh-pop);
  transform-origin: var(--u-origin, top left); animation: u-menu-in .18s var(--u-ease);
}
.u-menu { max-height: min(360px, calc(var(--u-vh, 100vh) - 24px)); overflow: auto; }
.u-pop { padding: 12px; max-width: min(340px, calc(var(--u-vw, 100vw) - 16px)); }
.u-menu.is-closing, .u-pop.is-closing { animation: u-menu-out .12s ease-in forwards; }
.u-menu-item { position: relative; display: flex; align-items: center; gap: 8px; width: 100%; min-height: 28px; padding: 0 8px; border: 0; border-radius: 7px; background: transparent; color: var(--u-t1); text-align: left; font-size: var(--u-fs); cursor: pointer; overflow-wrap: anywhere; }
.u-menu-item > .u-i { color: var(--u-t3); width: 14px; height: 14px; }
.u-menu-item > .u-kbd, .u-menu-item > .u-menu-meta { margin-left: auto; }
.u-menu-meta { color: var(--u-t4); font-size: var(--u-fs-xs); }
.u-menu-meta + .u-menu-tick { margin-left: 0; } /* both push right; the meta already did */
.u-menu-item.is-active { background: var(--u-active); }
.u-menu-item[aria-selected="true"] > .u-menu-tick, .u-menu-item[aria-checked="true"] > .u-menu-tick { opacity: 1; }
.u-menu-tick { margin-left: auto; color: var(--u-blue-t); opacity: 0; width: 14px; height: 14px; }
.u-menu-item--danger { color: var(--u-bad-t); }
.u-menu-item--danger > .u-i { color: var(--u-bad); }
.u-menu-item--danger:hover { background: var(--u-bad-10); }
.u-menu-item[disabled] { opacity: .4; pointer-events: none; }
/* Labels are written in Title Case, not forced to capitals (Nov 16 audit: "GO TO" broke his Title Case rule). */
.u-menu-label { padding: 6px 8px 4px; color: var(--u-t4); font-size: var(--u-fs-xs); font-weight: 500; letter-spacing: .01em; }
.u-menu-sep { height: 1px; margin: 4px -4px; background: var(--u-hair); }
/* A divider is always the faint hairline, whatever element draws it. On an <hr> the
   browser adds its own grey inset border, which showed as a bright line in dark menus
   (ITX Meet, Nov 20); a bare <hr> dropped into a menu or panel gets the same look. */
hr.u-menu-sep, hr.u-sep, .u-menu > hr:not([class]), .u-pop > hr:not([class]) { flex: none; border: 0; color: inherit; }
.u-menu > hr:not([class]), .u-pop > hr:not([class]) { height: 1px; margin: 4px -4px; background: var(--u-hair); }
.u-menu-search { padding: 2px 2px 4px; }
.u-menu-empty { padding: 10px 8px; color: var(--u-t4); font-size: var(--u-fs-sm); }

/* =============== Tooltip =============== */
.u-tip {
  position: fixed; z-index: var(--u-z-tip); pointer-events: none; max-width: 260px;
  padding: 5px 8px; border-radius: 7px; border: 1px solid var(--u-hair2); background: var(--u-lv3); color: var(--u-t1);
  box-shadow: var(--u-sh-pop); font-size: var(--u-fs-sm); line-height: 1.35; overflow-wrap: anywhere;
  opacity: 0; transform: translateY(var(--u-tip-dy, 4px)) scale(.97); transition: opacity .14s var(--u-ease), transform .2s var(--u-ease);
}
.u-tip.is-on { opacity: 1; transform: none; }
/* 0.5.2: the tooltip for a control inside a shadow root (a sealed pane) opens in the
   browser's top layer as popover="manual". Undo the browser's own popover box (centred,
   bordered, scrolling) so it is the same tooltip, placed by umbra.js like any other. */
.u-tip--top[popover] { inset: auto; margin: 0; overflow: visible; width: max-content; height: auto; }
.u-tip .u-kbd { margin-left: 6px; }
.u-tip-title { color: var(--u-t1); font-weight: 500; }
.u-tip-sub { color: var(--u-t3); font-size: var(--u-fs-xs); }
.u-tip-row { display: flex; align-items: center; gap: 6px; font-size: var(--u-fs-sm); white-space: nowrap; }
.u-tip-row b { margin-left: auto; padding-left: 12px; color: var(--u-t1); font-family: var(--u-f-mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.u-tip-sw { width: 8px; height: 8px; border-radius: 2px; flex: none; }

/* =============== Tabs (sliding underline), pill tabs, segmented =============== */
/* The indicator slides with transform only. At rest it has its real width and
   scaleX(1), so its rounded ends and border are true. When it moves, umbra.js sets
   the new width at once but draws it at the old place and size (translateX + scaleX),
   then lets transform carry it home: the stretch exists only for the 350ms of the
   slide. (A bar always drawn by scaleX squashed its rounded ends and border, which
   looked wrong; a width transition broke Fleet Console's transform/opacity rule.) */
.u-tabs { position: relative; display: flex; gap: 2px; border-bottom: 1px solid var(--u-hair); overflow-x: auto; scrollbar-width: none; }
.u-tabs::-webkit-scrollbar { display: none; }
.u-tab { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border: 0; background: none; color: var(--u-t3); font-weight: 500; white-space: nowrap; border-radius: 6px 6px 0 0; }
.u-tab:hover { color: var(--u-t1); }
/* The tab strip scrolls sideways, which also clips above and below, so the focus outline
   is drawn inside the tab (0.13.0). */
.u-tab:focus-visible { outline-offset: -2px; border-radius: 6px; }
.u-tab[aria-selected="true"] { color: var(--u-t1); }
.u-tab .u-count { margin-left: 2px; }
.u-tabs-ind { position: absolute; left: 0; bottom: -1px; height: 2px; width: 1px; border-radius: 2px; background: var(--u-grad); transform-origin: 0 0; transition: transform .35s var(--u-ease); pointer-events: none; }

.u-ptabs { position: relative; display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--u-sunken); border: 1px solid var(--u-hair); box-shadow: var(--u-fld-in); }
.u-ptabs > button { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 24px; padding: 0 10px; border: 0; background: none; border-radius: 7px; color: var(--u-t3); font-size: var(--u-fs-sm); font-weight: 500; white-space: nowrap; }
.u-ptabs > button:hover { color: var(--u-t1); }
.u-ptabs > button[aria-selected="true"] { color: var(--u-t1); }
.u-ptabs > button .u-i { width: 14px; height: 14px; }
/* The highlight runs from the track's top padding to its bottom padding, so it fits
   taller tabs without its own height (ITX Meet's phone panel tabs grew to 28px and the
   fixed 24px highlight sat short of the bottom, Nov 20). */
.u-ptabs-thumb { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 0; width: 1px; border-radius: 7px; background: var(--u-lv3); border: 1px solid var(--u-hair2); box-shadow: var(--u-thumb-sh); transform-origin: 0 0; transition: transform .35s var(--u-ease); pointer-events: none; }
.u-ptabs--block { display: flex; }
.u-ptabs--block > button { flex: 1; }

/* =============== Cards, stats, key-value =============== */
.u-card { position: relative; border-radius: var(--u-r-lg); border: 1px solid var(--u-hair); background: var(--u-lv2); box-shadow: var(--u-sh-card); min-width: 0; }
.u-card--hover { transition: transform .25s var(--u-ease); cursor: pointer; }
.u-card--hover:hover { border-color: var(--u-hair2); transform: translateY(-1px); }
.u-card--flat { box-shadow: var(--u-edge); }
.u-card--sunken { background: var(--u-sunken); box-shadow: var(--u-fld-in); }
.u-card.is-selected { border-color: var(--u-blue); box-shadow: var(--u-sh-card), 0 0 0 3px var(--u-blue-10); }
.u-card-h { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 14px; border-bottom: 1px solid var(--u-hair); }
/* 600 since 0.11.0: Enzo saw card names at 500 and asked for them bold (Nov 24). */
.u-card-h h3, .u-card-t { margin: 0; color: var(--u-t1); font-size: var(--u-fs); font-weight: 600; }
.u-card-h > .u-card-actions { margin-left: auto; display: flex; gap: 4px; }
.u-card-b { padding: 14px; }
.u-card-f { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--u-hair); }

.u-stat { padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.u-stat-k { color: var(--u-t3); font-size: var(--u-fs-sm); display: flex; align-items: center; gap: 6px; }
.u-stat-v { color: var(--u-t1); font: 600 24px/1.1 var(--u-f-mono); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.u-stat-d { font-size: var(--u-fs-xs); display: inline-flex; align-items: center; gap: 3px; }
.u-stat-d.is-up { color: var(--u-ok-t); } .u-stat-d.is-down { color: var(--u-bad-t); }

.u-kv { display: grid; grid-template-columns: minmax(90px, max-content) 1fr; gap: 8px 16px; margin: 0; }
.u-kv dt { color: var(--u-t3); }
.u-kv dd { margin: 0; color: var(--u-t1); min-width: 0; overflow-wrap: anywhere; }

/* =============== Badges, tags, counts, presence =============== */
.u-badge { --c: var(--u-t3); --bg: var(--u-gray-10); display: inline-flex; align-items: center; gap: 6px; height: 20px; padding: 0 8px; border-radius: 99px; background: var(--bg); color: var(--c); font-size: var(--u-fs-xs); font-weight: 500; white-space: nowrap; line-height: 1; }
.u-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.u-badge--plain::before { display: none; }
.u-badge--ok { --c: var(--u-ok-t); --bg: var(--u-ok-10); }
.u-badge--warn { --c: var(--u-warn-t); --bg: var(--u-warn-10); }
.u-badge--bad { --c: var(--u-bad-t); --bg: var(--u-bad-10); }
.u-badge--blue { --c: var(--u-blue-t); --bg: var(--u-blue-10); }
.u-badge--vio { --c: var(--u-vio-t); --bg: var(--u-vio-10); }
.u-badge--cyan { --c: var(--u-cyan-t); --bg: var(--u-cyan-10); }
.u-badge--live::before { animation: u-pulse 1.6s ease-in-out infinite; }
/* Ticket status badge with its own icon (Umbra.ticketStatus). The same status shows the same
   icon and colour in every app: the ticket list, the ticket panel and Inbox Mail's client panel. */
.u-badge--ic::before { display: none; }
.u-badge--ic .u-i { width: 12px; height: 12px; margin-left: -2px; flex: none; }

.u-tag { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--u-hair); background: var(--u-lv3); color: var(--u-t2); font-size: var(--u-fs-sm); white-space: nowrap; }
.u-tag > button { display: grid; place-items: center; width: 14px; height: 14px; margin-right: -3px; border: 0; padding: 0; border-radius: 4px; background: none; color: var(--u-t4); }
.u-tag > button:hover { background: var(--u-active); color: var(--u-t1); }

/* Filter chips: toggle on/off, live in a .u-fade-x strip */
.u-chip { --h: 26px; display: inline-flex; align-items: center; gap: 6px; height: var(--h); padding: 0 10px; flex: none; border-radius: 99px; border: 1px solid var(--u-hair2); background: transparent; color: var(--u-t2); font-size: var(--u-fs-sm); white-space: nowrap; }
/* "+N" chip for a row that runs out of room (Inbox Mail, Nov 21). Put data-u-fold on a one-line
   row of chips, tags, faces or file cards: umbra.js hides what doesn't fit from the end and
   shows one "+N" chip in its place, with the hidden names on its tooltip. */
[data-u-fold] { flex-wrap: nowrap; overflow: hidden; min-width: 0; }
[data-u-fold] > [data-u-folded], .u-more[hidden] { display: none !important; }
.u-more { display: inline-flex; align-items: center; flex: none; height: 24px; padding: 0 8px; border-radius: 99px; border: 1px solid var(--u-hair2); background: transparent; color: var(--u-t2); font: 500 var(--u-fs-xs)/1 var(--u-f-ui); font-variant-numeric: tabular-nums; white-space: nowrap; }
.u-chip:hover { background: var(--u-hover); color: var(--u-t1); }
/* An on chip is a blue wash with blue words and a blue edge (0.13.0, design audit Nov 27), the
   look a pressed reaction has. The raised neutral look measured 1.05:1 against a card in dark
   and 1.00:1 in light, so filters didn't look on. A picked person (.u-chip--pick) keeps its
   check and dark words. */
.u-chip[aria-pressed="true"], .u-chip.is-on { background: var(--u-blue-10); color: var(--u-blue-t); border-color: color-mix(in srgb, var(--u-blue) 45%, transparent); box-shadow: none; }
.u-chip .u-count { height: 16px; min-width: 16px; font-size: var(--u-fs-xs); }
/* Avatar chips (a client or person chip with a letter bubble). Enzo, Nov 18: the bubble
   sat 10px from the left edge but 3px from the top, so it looked adrift. The bubble now
   hugs the left edge with the same 2px inset top, bottom and left (3px from the outer
   edge, the feel of the segmented control's tight inset), and grows with the chip on
   phones. A remove x at the end mirrors it on the right. Use .u-chip with a .u-avatar
   first; .u-chip--av says the same thing for browsers without :has(). */
.u-chip:has(> .u-avatar:first-child), .u-chip--av { padding-left: 2px; gap: 7px; }
.u-chip > .u-avatar:first-child { --s: calc(var(--h) - 6px); font-size: max(var(--u-fs-xs), calc(var(--s) * .42)); }
.u-chip > .u-chip-x { display: grid; place-items: center; width: calc(var(--h) - 6px); height: calc(var(--h) - 6px); flex: none; margin: 0 -8px 0 -2px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--u-t4); }
.u-chip > .u-chip-x:hover { background: var(--u-active); color: var(--u-t1); }
.u-chip > .u-chip-x > .u-i { width: 12px; height: 12px; }
.u-tag:has(> .u-avatar:first-child), .u-tag--av { padding-left: 2px; }
.u-tag > .u-avatar:first-child { --s: 16px; font-size: 0; letter-spacing: 0; }

.u-count { display: inline-grid; place-items: center; height: 18px; min-width: 18px; padding: 0 5px; border-radius: 99px; background: var(--u-gray-10); color: var(--u-t3); font: 500 var(--u-fs-xs)/1 var(--u-f-mono); font-variant-numeric: tabular-nums; }
.u-count--blue { background: var(--u-bp-bot); color: var(--u-on-accent); }
.u-count--bad { background: var(--u-bad-fill); color: var(--u-on-accent); }

.u-dotst { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--u-t4); flex: none; }
.u-dotst--ok { background: var(--u-ok); box-shadow: 0 0 0 3px var(--u-ok-10); }
.u-dotst--warn { background: var(--u-warn); box-shadow: 0 0 0 3px var(--u-warn-10); }
.u-dotst--bad { background: var(--u-bad); box-shadow: 0 0 0 3px var(--u-bad-10); }
.u-dotst--live { background: var(--u-ok); animation: u-pulse 1.6s ease-in-out infinite; }

/* =============== Avatars and org badges =============== */
.u-avatar { --c: var(--u-blue); --s: 28px; position: relative; display: inline-grid; place-items: center; flex: none; width: var(--s); min-width: var(--s); max-width: var(--s); height: var(--s); border-radius: 50%; background: color-mix(in srgb, var(--c) 22%, var(--u-lv2)); color: color-mix(in srgb, var(--c) 70%, var(--u-t1)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent); font: 600 max(var(--u-fs-xs), calc(var(--s) * .38))/1 var(--u-f-ui); letter-spacing: -.02em; user-select: none; }
/* No text in Umbra reads under --u-fs-xs (11px), the kit's smallest size (0.8.1, ITX Meet's design
   audit found initials as small as 6.8px; Enzo's "Fix the top 4", Nov 22). Initials scale with the
   circle but stop at 11px. Below 20px two 11px letters no longer fit a circle, so those avatars are
   colour only (.u-avatar--dot, as ITX Meet's 18px header faces already are): the name always sits
   beside them or on their tooltip. A photo still shows. */
.u-avatar--dot { font-size: 0; letter-spacing: 0; }
/* At 20 to 23px two 11px letters are close to the ring; pull them together a touch. */
.u-avatar--xs, .u-chip > .u-avatar:first-child { letter-spacing: -.06em; }
.u-avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
/* A face stays a circle even when an app's row rule (".row > * { flex: 1; min-width: 160px }")
   reaches it: Inbox Mail's banner stretched one into an oval (Nov 21). Two classes deep so a
   one-class rule in the app can't undo it. */
.u .u-avatar, .u-layer .u-avatar { flex: none; min-width: var(--s); max-width: var(--s); }
.u-avatar--xs { --s: 20px; } .u-avatar--sm { --s: 24px; } .u-avatar--lg { --s: 36px; } .u-avatar--xl { --s: 48px; }
.u-avatar--sq { border-radius: 8px; }
.u-avatar > .u-presence { position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; border-radius: 50%; background: var(--u-t4); box-shadow: 0 0 0 2px var(--u-lv1); }
.u-presence.u-presence--on { background: var(--u-ok); } .u-presence.u-presence--away { background: var(--u-warn); } .u-presence.u-presence--busy { background: var(--u-bad); }
.u-avstack { display: inline-flex; }
.u-avstack > .u-avatar { box-shadow: 0 0 0 2px var(--u-lv1), inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent); }
.u-avstack > .u-avatar + .u-avatar { margin-left: -7px; }
.u-logo { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--u-logo); color: var(--u-on-accent); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 2px 6px -2px rgba(79,123,240,.5); font: 700 11px/1 var(--u-f-ui); flex: none; }

/* =============== Alerts and banners =============== */
.u-alert { --c: var(--u-blue-t); --bg: var(--u-blue-10); display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--u-r-md); border: 1px solid color-mix(in srgb, var(--c) 25%, transparent); background: var(--bg); color: var(--u-t1); }
.u-alert > .u-i { color: var(--c); margin-top: 1px; }
.u-alert p { margin: 2px 0 0; color: var(--u-t2); font-size: var(--u-fs-sm); }
.u-alert--ok { --c: var(--u-ok-t); --bg: var(--u-ok-10); } .u-alert--warn { --c: var(--u-warn-t); --bg: var(--u-warn-10); } .u-alert--bad { --c: var(--u-bad-t); --bg: var(--u-bad-10); }
.u-alert > .u-ibtn { margin: -4px -6px -4px auto; }
.u-banner { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 36px; padding: 6px 14px; background: var(--u-lv3); border-bottom: 1px solid var(--u-hair); color: var(--u-t1); font-size: var(--u-fs-sm); text-align: center; }
.u-banner--grad { background: linear-gradient(90deg, color-mix(in srgb, var(--u-cyan) 14%, var(--u-lv1)), color-mix(in srgb, var(--u-blue) 16%, var(--u-lv1)), color-mix(in srgb, var(--u-vio) 14%, var(--u-lv1))); } /* tokens, so a brand layer (Voytel teal) reaches it */

/* =============== Progress, spinner, skeleton =============== */
.u-progress { position: relative; height: 6px; border-radius: 99px; background: var(--u-track); box-shadow: var(--u-sh-well), 0 0 0 1px var(--u-hair); overflow: hidden; }
.u-progress > i { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--u-bp-top), var(--u-blue)); transform-origin: left; transform: scaleX(var(--v, 0)); transition: transform .5s var(--u-ease); }
.u-progress--ok > i { background: var(--u-ok); } .u-progress--warn > i { background: var(--u-warn); } .u-progress--bad > i { background: var(--u-bad); }
.u-progress--thin { height: 3px; }
.u-progress.is-indet > i { width: 40%; transform: none; animation: u-indet 1.3s var(--u-ease) infinite; }
.u-ringp { --v: 0; --s: 40px; position: relative; width: var(--s); height: var(--s); flex: none; }
.u-ringp > svg { width: 100%; height: 100%; transform: rotate(-90deg); } /* only the ring itself; an icon in the label must not stretch or turn */
.u-ringp circle { fill: none; stroke-width: 4; }
.u-ringp .u-ringp-bg { stroke: var(--u-track); }
.u-ringp .u-ringp-fg { stroke: var(--u-blue); stroke-linecap: round; }
.u-ringp > b { position: absolute; inset: 0; display: grid; place-items: center; color: var(--u-t1); font: 600 10.5px/1 var(--u-f-mono); }
.u-spin { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2px solid color-mix(in srgb, currentColor 22%, transparent); border-top-color: currentColor; animation: u-spin .7s linear infinite; }
.u-spin--sm { width: 12px; height: 12px; border-width: 1.5px; }
.u-spin--lg { width: 24px; height: 24px; }
.u-skel { position: relative; overflow: hidden; display: block; height: 12px; border-radius: 6px; background: var(--u-hover); }
.u-skel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 0%, var(--u-active) 50%, transparent 100%); transform: translateX(-100%); animation: u-shim 1.4s linear infinite; pointer-events: none; }
.u-skel--circle { border-radius: 50%; }
.u-typing { display: inline-flex; gap: 3px; padding: 8px 10px; }
.u-typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--u-t3); animation: u-typing 1.2s ease-in-out infinite; }
.u-typing i:nth-child(2) { animation-delay: .15s; } .u-typing i:nth-child(3) { animation-delay: .3s; }

/* Multi-step loader: steps tick off one by one (Umbra.steps) */
.u-msl { display: flex; flex-direction: column; gap: 10px; padding: 0; margin: 0; }
.u-msl > li { list-style: none; display: flex; align-items: center; gap: 10px; color: var(--u-t4); }
.u-msl > li > .u-msl-ic { position: relative; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--u-hair2); flex: none; }
.u-msl > li > .u-msl-ic > * { position: absolute; transition: opacity .2s var(--u-ease), transform .3s var(--u-ease); }
.u-msl > li .u-spin, .u-msl > li .u-i { opacity: 0; transform: scale(.6); }
.u-msl > li.is-active { color: var(--u-t1); }
.u-msl > li.is-active .u-spin { opacity: 1; transform: none; color: var(--u-blue); }
.u-msl > li.is-done { color: var(--u-t2); }
.u-msl > li.is-done > .u-msl-ic { border-color: transparent; background: var(--u-ok-10); color: var(--u-ok); }
.u-msl > li.is-done .u-i { opacity: 1; transform: none; width: 12px; height: 12px; }

/* =============== Empty, error states =============== */
.u-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 32px 20px; }
.u-empty-ic { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 6px; border-radius: 12px; border: 1px solid var(--u-hair2); background: var(--u-lv3); box-shadow: var(--u-sh-card); color: var(--u-t2); }
.u-empty-ic--bad { color: var(--u-bad); }
.u-empty h4 { margin: 0; color: var(--u-t1); font-size: var(--u-fs-md); font-weight: 500; }
.u-empty p { margin: 0 0 8px; max-width: 320px; color: var(--u-t3); }

/* =============== Table =============== */
.u-tablewrap { overflow: auto; border-radius: var(--u-r-lg); border: 1px solid var(--u-hair); background: var(--u-lv2); box-shadow: var(--u-sh-card); }
.u-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--u-fs); }
.u-table th { position: sticky; top: 0; z-index: 1; height: 34px; padding: 0 12px; background: var(--u-lv2); border-bottom: 1px solid var(--u-hair); color: var(--u-t3); font-size: 11.5px; font-weight: 500; letter-spacing: .01em; text-align: left; white-space: nowrap; }
.u-table th[data-sort] { cursor: pointer; user-select: none; }
.u-table th[data-sort]:hover { color: var(--u-t1); }
.u-table th .u-sorti { display: inline-block; vertical-align: -2px; margin-left: 3px; width: 12px; height: 12px; opacity: 0; transition: opacity var(--u-fast) var(--u-ease), transform .25s var(--u-ease); }
.u-table th[aria-sort] .u-sorti { opacity: 1; color: var(--u-blue-t); }
.u-table th[aria-sort="descending"] .u-sorti { transform: rotate(180deg); }
.u-table td { height: var(--u-row); padding: 0 12px; border-bottom: 1px solid var(--u-hair); color: var(--u-t2); white-space: nowrap; }
.u-table tr:last-child td { border-bottom: 0; }
.u-table tbody tr:hover { background: var(--u-hover); }
.u-table tbody tr.is-selected { background: var(--u-blue-10); }
.u-table tbody tr.is-selected td:first-child { box-shadow: inset 2px 0 0 var(--u-blue); }
.u-table .u-td-main { color: var(--u-t1); font-weight: 500; }
.u-table .u-td-num { text-align: right; font-family: var(--u-f-mono); font-variant-numeric: tabular-nums; }
.u-table .u-td-check { width: 36px; padding-right: 0; }
.u-table--dense td { height: var(--u-row-dense); }
.u-table-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-top: 1px solid var(--u-hair); color: var(--u-t3); font-size: var(--u-fs-sm); }

/* =============== List rows (inbox, tickets, people) =============== */
.u-list { display: flex; flex-direction: column; gap: 2px; padding: 4px; }
.u-li { position: relative; display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 10px; border-radius: 9px; border: 1px solid transparent; color: var(--u-t2); cursor: pointer; }
button.u-li { width: 100%; background: none; text-align: left; font: inherit; } /* a real button can be a list row */
.u-li:hover { background: var(--u-hover); }
/* A selected row is tinted blue like a selected table row and keeps its raised shadow (0.13.0). */
.u-li.is-selected { background: linear-gradient(var(--u-blue-10), var(--u-blue-10)), var(--u-lv3); border-color: color-mix(in srgb, var(--u-blue) 25%, transparent); box-shadow: var(--u-sh-row); }
.u-li.is-unread .u-li-t { color: var(--u-t1); font-weight: 600; }
.u-li.is-unread::before { content: ""; position: absolute; left: 3px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: var(--u-blue); }
.u-li-b { flex: 1; min-width: 0; }
.u-li-t { color: var(--u-t1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-li-s { color: var(--u-t3); font-size: var(--u-fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-li-m { color: var(--u-t4); font-size: var(--u-fs-xs); white-space: nowrap; align-self: flex-start; margin-top: 2px; }
.u-li-a { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex: none; margin-left: auto; }
/* 0.11.1: .u-li--wrap lets a list row wrap on a phone the way a ruled list row does (words wrap, meta drops
   under them, actions stay at the row's end). It is a choice, not the default: inbox, chat and people
   lists keep one line per row on a phone, as mail lists do, so a row's height doesn't jump. */
@media (max-width: 640px) {
  .u-li--wrap { flex-wrap: wrap; align-items: flex-start; row-gap: 8px; }
  .u-li--wrap > .u-li-b { flex: 1 1 180px; }
  .u-li--wrap .u-li-t, .u-li--wrap .u-li-s { white-space: normal; overflow-wrap: anywhere; }
  .u-li--wrap > .u-li-m { order: 2; flex: 1 0 100%; margin-top: 0; padding-left: var(--u-li-in, 38px); white-space: normal; }
  .u-li--wrap > .u-li-b:first-child ~ .u-li-m { padding-left: 0; }
  .u-li--wrap > :not(:first-child):not(.u-li-b):not(.u-li-m) { order: 1; flex: 0 1 auto; max-width: 100%; margin-left: auto; }
  .u-li--wrap > :not(:first-child):not(.u-li-b):not(.u-li-m):not(button, a, .u-btn, .u-badge):has(> * + *) { order: 3; }
  .u-li--wrap > .u-li-a { flex-wrap: wrap; }
}
@container u-frame (max-width: 640px) {
  .u-li--wrap { flex-wrap: wrap; align-items: flex-start; row-gap: 8px; }
  .u-li--wrap > .u-li-b { flex: 1 1 180px; }
  .u-li--wrap .u-li-t, .u-li--wrap .u-li-s { white-space: normal; overflow-wrap: anywhere; }
  .u-li--wrap > .u-li-m { order: 2; flex: 1 0 100%; margin-top: 0; padding-left: var(--u-li-in, 38px); white-space: normal; }
  .u-li--wrap > .u-li-b:first-child ~ .u-li-m { padding-left: 0; }
  .u-li--wrap > :not(:first-child):not(.u-li-b):not(.u-li-m) { order: 1; flex: 0 1 auto; max-width: 100%; margin-left: auto; }
  .u-li--wrap > :not(:first-child):not(.u-li-b):not(.u-li-m):not(button, a, .u-btn, .u-badge):has(> * + *) { order: 3; }
  .u-li--wrap > .u-li-a { flex-wrap: wrap; }
}

/* =============== Accordion (details/summary) =============== */
.u-acc { border-radius: var(--u-r-lg); border: 1px solid var(--u-hair); background: var(--u-lv2); box-shadow: var(--u-sh-card); overflow: hidden; }
.u-acc > details + details { border-top: 1px solid var(--u-hair); }
.u-acc summary { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; color: var(--u-t1); font-weight: 500; list-style: none; cursor: pointer; }
.u-acc summary::-webkit-details-marker { display: none; }
.u-acc summary:hover { background: var(--u-hover); }
.u-acc summary > .u-i:last-child { margin-left: auto; color: var(--u-t4); transition: transform .3s var(--u-ease); }
.u-acc details[open] > summary > .u-i:last-child { transform: rotate(180deg); }
.u-acc .u-acc-b { padding: 0 14px 14px; color: var(--u-t2); animation: u-rise var(--u-slow) var(--u-ease); }

/* =============== Modal, drawer, sheet =============== */
/* App frame (Fleet Console design audit, Nov 19 2026): put .u-frame on the box an app
   lives in when it is shown inside another page (Fleet Console inside Portal). Its
   dialogs, menus and tips stay inside it: layout containment makes it the containing
   block for fixed layers, and umbra.js puts them there. The kit's phone layout follows
   the frame's width, not the window's: tools/build.mjs repeats every
   @media (max-width: N) block as @container u-frame (max-width: N). */
.u-frame { container: u-frame / inline-size; contain: layout; position: relative; }
.u-scrim { position: fixed; inset: 0; z-index: var(--u-z-modal); background: var(--u-scrim); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: u-fade .2s ease; }
.u-scrim.is-closing { animation: u-fade-out .16s ease forwards; }
.u-modal { position: fixed; z-index: calc(var(--u-z-modal) + 1); left: var(--u-lx, 50%); top: var(--u-ly, 50%); width: min(var(--u-mw, 440px), calc(var(--u-vw, 100vw) - 24px)); max-height: calc(var(--u-vh, 100vh) - 48px); display: flex; flex-direction: column; border-radius: var(--u-r-xl); border: 1px solid var(--u-hair2); background: var(--u-lv3); box-shadow: var(--u-sh-pop); transform: translate(-50%, -50%); animation: u-modal-in .3s var(--u-ease); }
.u-modal.is-closing { animation: u-modal-out .16s ease-in forwards; }
.u-modal-h { display: flex; gap: 12px; align-items: flex-start; padding: 18px 18px 6px; }
.u-modal-h h2 { margin: 0; overflow-wrap: anywhere; color: var(--u-t1); font-size: var(--u-fs-lg); font-weight: 600; letter-spacing: -.015em; }
.u-modal-h p { margin: 4px 0 0; color: var(--u-t3); }
.u-modal-h > .u-ibtn { margin: -4px -6px 0 auto; }
/* Two header buttons (Minimize and Close, 0.12.0) sit together where the close button sits, 6px apart. */
.u-modal-h > .u-modal-h-acts { display: flex; align-items: center; gap: 6px; flex: none; margin: -4px -6px 0 auto; }
.u-modal-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; flex: none; background: var(--u-blue-10); color: var(--u-blue-t); }
.u-modal-ic--bad { background: var(--u-bad-10); color: var(--u-bad); }
.u-modal-b { padding: 12px 18px; overflow: auto; }
.u-modal-f { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px 16px; }
.u-drawer { position: fixed; z-index: var(--u-z-drawer); top: calc(8px + var(--u-lt, 0px)); right: calc(8px + var(--u-lr, 0px)); bottom: calc(8px + var(--u-lb, 0px)); width: min(var(--u-dw, 400px), calc(var(--u-vw, 100vw) - 16px)); display: flex; flex-direction: column; border-radius: var(--u-r-xl); border: 1px solid var(--u-hair2); background: var(--u-lv2); box-shadow: var(--u-sh-pop); animation: u-drawer-in .35s var(--u-ease); }
.u-drawer.is-closing { animation: u-drawer-out .18s ease-in forwards; }
.u-drawer-h { display: flex; align-items: center; gap: 8px; height: var(--u-head-h); flex: none; padding: 0 12px 0 16px; border-bottom: 1px solid var(--u-hair); }
.u-drawer-h h2 { margin: 0; color: var(--u-t1); font-size: var(--u-fs-md); font-weight: 600; }
.u-drawer-h > .u-ibtn { margin-left: auto; }
.u-drawer-b { flex: 1; overflow: auto; padding: 16px; }
.u-drawer-f { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 16px; border-top: 1px solid var(--u-hair); }

/* =============== Toasts =============== */
.u-toasts { position: fixed; z-index: var(--u-z-toast); right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; width: min(360px, calc(var(--u-vw, 100vw) - 32px)); pointer-events: none; }
.u-toast { pointer-events: auto; display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--u-hair2); background: var(--u-lv3); box-shadow: var(--u-sh-pop); color: var(--u-t1); animation: u-toast-in .35s var(--u-ease); }
.u-toast.is-closing { animation: u-toast-out .18s ease-in forwards; }
.u-toast > .u-i { margin-top: 1px; color: var(--u-blue-t); }
.u-toast--ok > .u-i { color: var(--u-ok); } .u-toast--bad > .u-i { color: var(--u-bad); } .u-toast--warn > .u-i { color: var(--u-warn); }
.u-toast-b { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.u-toast-b b { display: block; font-weight: 500; }
.u-toast-b p { margin: 2px 0 0; color: var(--u-t3); font-size: var(--u-fs-sm); }
.u-toast > .u-btn { align-self: center; }
.u-toast > .u-ibtn { --h: 20px; margin: -2px -4px 0 0; }

/* =============== Command palette =============== */
.u-cmdk { position: fixed; z-index: calc(var(--u-z-modal) + 1); left: 50%; top: 14vh; width: min(560px, calc(var(--u-vw, 100vw) - 24px)); border-radius: 14px; border: 1px solid var(--u-hair2); background: var(--u-lv3); box-shadow: var(--u-sh-pop); overflow: hidden; transform: translateX(-50%); animation: u-cmdk-in .25s var(--u-ease); }
.u-cmdk.is-closing { animation: u-cmdk-out .14s ease-in forwards; }
.u-cmdk-in { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-bottom: 1px solid var(--u-hair); }
.u-cmdk-in > .u-i { color: var(--u-t4); }
.u-cmdk-in input { flex: 1; height: 100%; border: 0; outline: 0; background: none; color: var(--u-t1); font-size: var(--u-fs-md); }
.u-cmdk-l { max-height: 340px; overflow: auto; padding: 6px; }
.u-cmdk-l .u-menu-item { min-height: 36px; }
.u-cmdk-f { display: flex; gap: 14px; padding: 8px 14px; border-top: 1px solid var(--u-hair); color: var(--u-t4); font-size: var(--u-fs-xs); }
.u-cmdk-f span { display: inline-flex; align-items: center; gap: 5px; }

/* =============== Navigation: app shell =============== */
.u-app { display: grid; grid-template-rows: 40px 1fr; height: 100%; min-height: 0; border-radius: var(--u-r-lg); border: 1px solid var(--u-hair); background: var(--u-lv1); overflow: hidden; }
.u-titlebar { display: flex; align-items: center; gap: 10px; padding: 0 10px; background: var(--u-lv0); border-bottom: 1px solid var(--u-hair); min-width: 0; }
/* Desktop apps on a Mac draw their own title bar under the red, yellow and green window
   buttons: data-u-chrome="mac" on any ancestor leaves room for them (ITX Meet, Nov 20). */
[data-u-chrome="mac"] .u-titlebar, [data-u-chrome="mac"] .u-meet-top { padding-left: var(--u-mac-inset); }
.u-titlebar-name { color: var(--u-t1); font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.u-titlebar-search { flex: 1; max-width: 420px; margin: 0 auto; }
.u-app-body { display: grid; grid-template-columns: 52px 232px 1fr; min-height: 0; }
.u-app-body--norail { grid-template-columns: 232px 1fr; }
.u-rail { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0; background: var(--u-lv0); border-right: 1px solid var(--u-hair); }
.u-rail .u-ibtn { --h: 32px; position: relative; }
.u-rail .u-ibtn.is-on::before { content: ""; position: absolute; left: -10px; top: 7px; bottom: 7px; width: 2px; border-radius: 0 2px 2px 0; background: var(--u-grad); background-size: 100% 100%; }
.u-rail-sp { flex: 1; }
.u-sidebar { display: flex; flex-direction: column; gap: 2px; padding: 10px 8px; background: var(--u-lv0); border-right: 1px solid var(--u-hair); overflow: auto; min-height: 0; }
.u-side-h { padding: 12px 8px 4px; color: var(--u-t4); font-size: var(--u-fs-xs); font-weight: 500; letter-spacing: .01em; }
.u-side-i { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px; border-radius: 7px; border: 1px solid transparent; background: none; color: var(--u-t2); text-align: left; width: 100%; text-decoration: none; }
.u-side-i > .u-i { color: var(--u-t3); width: 15px; height: 15px; }
.u-side-i > .u-count { margin-left: auto; }
/* One line, always (0.5.3 design audit): a long name used to wrap and break the row. umbra.js
   puts the bare text in .u-side-t, which ends in "..." and shows the full name as a tooltip. */
.u-side-i { white-space: nowrap; min-width: 0; }
.u-side-i > .u-count, .u-side-i > .u-i, .u-side-i > svg { flex: none; }
.u-side-t { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.u-side-i { position: relative; }
.u-side-i:hover { color: var(--u-t1); }
.u-side-i::after, .u-menu-item::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--u-hover); opacity: 0; pointer-events: none; transition: opacity var(--u-fast) var(--u-ease); }
.u-menu-item::after { background: var(--u-active); }
.u-side-i:hover::after, .u-menu-item:hover::after { opacity: 1; }
.u-side-i.is-on::after { opacity: 0; }
.u-side-i.is-on { background: var(--u-lv3); color: var(--u-t1); border-color: var(--u-hair); box-shadow: var(--u-sh-row); }
.u-side-i.is-on > .u-i { color: var(--u-blue-t); }
.u-main { min-width: 0; min-height: 0; overflow: auto; background: var(--u-lv1); }
.u-pane { background: var(--u-lv2); border-left: 1px solid var(--u-hair); min-width: 0; overflow: auto; }
.u-topbar { position: sticky; top: 0; z-index: var(--u-z-sticky); display: flex; align-items: center; gap: 8px; height: var(--u-head-h); padding: 0 16px; background: var(--u-lv1); border-bottom: 1px solid var(--u-hair); }
.u-topbar h1 { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--u-t1); font-size: var(--u-fs-md); font-weight: 600; } /* a long page title must not push the toolbar off a phone */
.u-toolbar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.u-toolbar .u-sep--v { margin: 4px 2px; }

/* Phone tab bar. 0.9.0 (ITX Huddle, approved Nov 22 2026): 56px, 24px icons, 11px labels
   (was 10.5px, under the kit's floor), the open tab blue with no pill, and a count that
   sits on the icon's corner with a ring so it reads on any icon. Hide it (hidden) while a
   conversation is open, as Huddle does. */
.u-bottombar { display: flex; justify-content: space-around; align-items: stretch; height: 56px; padding-bottom: env(safe-area-inset-bottom); background: var(--u-lv0); border-top: 1px solid var(--u-hair); }
.u-bottombar[hidden] { display: none; }
.u-bottombar > button { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: none; color: var(--u-t4); font-size: var(--u-fs-xs); }
.u-bottombar > button > .u-i { width: 24px; height: 24px; }
.u-bottombar > button.is-on, .u-bottombar > button[aria-current="page"] { color: var(--u-blue-t); }
.u-bottombar > button > .u-count { position: absolute; top: 5px; left: calc(50% + 6px); height: 16px; min-width: 16px; padding: 0 4px; box-shadow: 0 0 0 2px var(--u-lv0); }

/* Breadcrumbs */
.u-crumbs { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; color: var(--u-t3); font-size: var(--u-fs-sm); }
.u-crumbs a, .u-crumbs button { color: var(--u-t3); text-decoration: none; border: 0; background: none; padding: 2px 4px; border-radius: 5px; }
.u-crumbs a:hover, .u-crumbs button:hover { color: var(--u-t1); background: var(--u-hover); }
.u-crumbs [aria-current] { color: var(--u-t1); font-weight: 500; padding: 2px 4px; }
.u-crumbs .u-i { width: 12px; height: 12px; color: var(--u-t4); }

/* Pagination */
.u-pager { display: flex; align-items: center; gap: 2px; }
.u-pager > button { min-width: 28px; height: 28px; padding: 0 6px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 7px; background: none; color: var(--u-t2); font-family: var(--u-f-mono); font-size: var(--u-fs-sm); }
.u-pager > button:hover { background: var(--u-hover); color: var(--u-t1); }
.u-pager > button[aria-current="page"] { background: var(--u-b2-bg); border-color: var(--u-b2-bd); box-shadow: var(--u-b2-hi), var(--u-b2-sh); color: var(--u-t1); }
.u-pager > button[disabled] { opacity: .35; pointer-events: none; }
.u-pager > span { color: var(--u-t4); padding: 0 4px; }

/* Wizard steps */
.u-wizard { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; }
.u-wizard > li { list-style: none; display: flex; align-items: center; gap: 8px; color: var(--u-t4); font-size: var(--u-fs-sm); white-space: nowrap; }
.u-wizard > li + li::before { content: ""; width: 28px; height: 1px; background: var(--u-hair2); }
.u-wizard > li > i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--u-hair2); font: 600 11px/1 var(--u-f-mono); font-style: normal; color: var(--u-t3); }
.u-wizard > li.is-done > i { background: var(--u-ok-10); border-color: transparent; color: var(--u-ok); }
.u-wizard > li.is-on { color: var(--u-t1); }
.u-wizard > li.is-on > i { background: linear-gradient(180deg, var(--u-bp-top), var(--u-bp-bot)); border-color: var(--u-bp-bd); color: var(--u-on-accent); box-shadow: var(--u-bp-hi), var(--u-bp-sh); }
/* Never wraps (0.5.3 design audit): a wrapped wizard left a connector hanging at the end of the
   first line. When the names don't fit, umbra.js adds is-tight and only the current step keeps
   its name. Bare-text names hide by font-size 0 (the number sets its own font); span names hide. */
.u-wizard { flex-wrap: nowrap; min-width: 0; }
.u-wizard.is-tight > li:not(.is-on) { gap: 0; font-size: 0; }
.u-wizard.is-tight > li:not(.is-on) > span { display: none; }
.u-wizard.is-tight > li + li::before { width: 16px; }
.u-wizard.is-tight > li:not(.is-on)::before { margin-right: 8px; }

/* =============== Timeline =============== */
.u-timeline { position: relative; display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0 0 0 26px; }
.u-timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(180deg, var(--u-hair2), var(--u-hair) 80%, transparent); }
.u-timeline > li { position: relative; list-style: none; }
.u-tl-dot { position: absolute; left: -26px; top: 0; display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: var(--u-lv3); border: 1px solid var(--u-hair2); color: var(--u-t3); }
.u-tl-dot .u-i { width: 11px; height: 11px; }
.u-tl-dot--ok { background: var(--u-ok-10); border-color: transparent; color: var(--u-ok); }
.u-tl-dot--bad { background: var(--u-bad-10); border-color: transparent; color: var(--u-bad); }
.u-tl-dot--blue { background: var(--u-blue-10); border-color: transparent; color: var(--u-blue-t); }
.u-tl-t { color: var(--u-t1); }
.u-tl-m { color: var(--u-t4); font-size: var(--u-fs-xs); margin-top: 2px; }
.u-tl-body { margin-top: 6px; padding: 8px 10px; border-radius: 9px; border: 1px solid var(--u-hair); background: var(--u-lv2); color: var(--u-t2); font-size: var(--u-fs-sm); }

/* =============== File upload =============== */
.u-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px 16px; border-radius: var(--u-r-lg); border: 1.5px dashed var(--u-hair2); background: var(--u-sunken); text-align: center; color: var(--u-t3); cursor: pointer; }
.u-drop:hover { border-color: var(--u-hair3); }
.u-drop.is-over { border-color: var(--u-blue); background: var(--u-blue-10); }
.u-drop.is-over .u-drop-ic { transform: translateY(-3px); }
.u-drop-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--u-lv3); border: 1px solid var(--u-hair2); box-shadow: var(--u-sh-card); color: var(--u-t1); transition: transform .3s var(--u-ease); }
.u-drop b { color: var(--u-t1); font-weight: 500; }
.u-files { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.u-file { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--u-hair); background: var(--u-lv2); animation: u-rise var(--u-slow) var(--u-ease); }
.u-file-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--u-blue-10); color: var(--u-blue-t); flex: none; }
.u-file .u-progress { margin-top: 5px; height: 4px; }

/* =============== Code block =============== */
.u-code { position: relative; border-radius: var(--u-r-lg); border: 1px solid var(--u-hair); background: var(--u-sunken); overflow: hidden; }
.u-code-h { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 6px 0 12px; border-bottom: 1px solid var(--u-hair); color: var(--u-t3); font-size: var(--u-fs-xs); }
.u-code-h > .u-ibtn { margin-left: auto; }
.u-code pre { margin: 0; padding: 12px 0; overflow: auto; font: 12.5px/1.65 var(--u-f-mono); color: var(--u-t1); counter-reset: ln; }
.u-code pre > span { display: block; padding: 0 14px 0 0; }
.u-code pre > span::before { counter-increment: ln; content: counter(ln); display: inline-block; width: 36px; padding-right: 12px; text-align: right; color: var(--u-t4); user-select: none; }
.u-code .k { color: var(--u-code-k); } .u-code .s { color: var(--u-code-s); } .u-code .c { color: var(--u-t4); font-style: italic; } .u-code .n { color: var(--u-code-n); } .u-code .f { color: var(--u-code-f); }

/* =============== Terminal (always dark, both themes) =============== */
.u-term { display: flex; flex-direction: column; min-height: 180px; border-radius: var(--u-r-lg); border: 1px solid var(--u-term-bd); background: var(--u-term-bg); color: var(--u-term-fg); box-shadow: var(--u-sh-card); overflow: hidden; color-scheme: dark; } /* the card shadow token: softer in light mode, where the old fixed dark shadow looked heavy */
.u-term-bar { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 6px 0 12px; background: var(--u-term-bar); border-bottom: 1px solid var(--u-term-bd); color: var(--u-term-dim); font-size: var(--u-fs-xs); }
.u-term-bar b { color: var(--u-term-fg); font-weight: 500; }
.u-term-bar .u-ibtn { --h: 24px; color: var(--u-term-dim); }
.u-term-bar .u-ibtn:hover { color: var(--u-term-fg); }
.u-term-bar .u-ibtn::after { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.1); box-shadow: none; }
.u-term-bar > .u-term-acts { margin-left: auto; display: flex; gap: 2px; }
.u-term-body { flex: 1; overflow: auto; padding: 10px 14px; font: 12.5px/1.6 var(--u-f-mono); white-space: pre-wrap; word-break: break-word; scrollbar-color: rgba(255,255,255,.2) transparent; }
.u-term-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,.16); }
.u-term .p { color: var(--u-term-green); } .u-term .d { color: var(--u-term-dim); } .u-term .b { color: var(--u-term-blue); } .u-term .y { color: var(--u-term-yellow); } .u-term .r { color: var(--u-term-red); } .u-term .cy { color: var(--u-term-cyan); }
.u-term-in { display: flex; gap: 8px; }
.u-term-in input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--u-term-fg); font: inherit; caret-color: var(--u-term-green); padding: 0; }
.u-cursor { display: inline-block; width: 7px; height: 14px; vertical-align: -2px; background: var(--u-term-fg); animation: u-blink 1.05s steps(1) infinite; }

/* =============== Resizable panes and windows =============== */
.u-split { display: flex; min-height: 0; min-width: 0; }
.u-split > .u-split-a, .u-split > .u-split-b { min-width: 0; min-height: 0; overflow: auto; }
.u-split > .u-split-a { flex: none; width: var(--u-split, 40%); }
.u-split > .u-split-b { flex: 1; }
.u-gutter { position: relative; flex: none; width: 1px; background: var(--u-hair); cursor: col-resize; touch-action: none; }
.u-gutter::before { content: ""; position: absolute; inset: 0 -5px; }
.u-gutter::after { content: ""; position: absolute; left: -2px; top: 50%; width: 5px; height: 28px; margin-top: -14px; border-radius: 4px; background: var(--u-hair3); opacity: 0; transition: opacity var(--u-fast); }
.u-gutter:hover::after, .u-gutter.is-drag::after { opacity: 1; }
.u-gutter:hover, .u-gutter.is-drag { background: var(--u-blue); }
/* Keyboard users move the splitter with the arrow keys (Nov 16 audit), so it shows focus like hover. */
.u-gutter:focus-visible { outline: 0; background: var(--u-blue); }
.u-gutter:focus-visible::after { opacity: 1; }
.u-split--v { flex-direction: column; }
.u-split--v > .u-split-a { width: auto; height: var(--u-split, 50%); }
.u-split--v > .u-gutter { width: auto; height: 1px; cursor: row-resize; }
.u-split--v > .u-gutter::before { inset: -5px 0; }
.u-split--v > .u-gutter::after { left: 50%; top: -2px; width: 28px; height: 5px; margin: 0 0 0 -14px; }

.u-window { position: relative; display: flex; flex-direction: column; border-radius: var(--u-r-lg); border: 1px solid var(--u-hair2); background: var(--u-lv2); box-shadow: var(--u-sh-pop); overflow: hidden; min-width: 240px; min-height: 160px; }
.u-window-bar { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 6px 0 12px; background: var(--u-lv3); border-bottom: 1px solid var(--u-hair); color: var(--u-t1); font-size: var(--u-fs-sm); font-weight: 500; cursor: default; user-select: none; }
.u-window-bar > .u-term-acts, .u-window-bar > .u-window-acts { margin-left: auto; display: flex; gap: 2px; }
.u-window-b { flex: 1; min-height: 0; position: relative; }
.u-resize { position: absolute; right: 0; bottom: 0; width: 16px; height: 16px; cursor: nwse-resize; touch-action: none; z-index: 2; }
.u-resize::after { content: ""; position: absolute; right: 4px; bottom: 4px; width: 7px; height: 7px; border-right: 1.5px solid var(--u-t4); border-bottom: 1.5px solid var(--u-t4); border-radius: 0 0 2px 0; opacity: .7; }
.u-term .u-resize::after { border-color: var(--u-term-dim); }
/* Move and resize (umbra.js wireWindows): the title bar drags the window; every edge and
   corner resizes it. Edges are invisible strips that show a thin line on hover; only the
   bottom-right corner draws a grip. */
.u-window.is-movable > .u-window-bar { cursor: grab; touch-action: none; }
.u-window.is-moving > .u-window-bar { cursor: grabbing; }
.u-window.is-moving { will-change: transform; }
.u-window-bar:focus-visible { outline-offset: -2px; border-radius: var(--u-r-lg) var(--u-r-lg) 0 0; }
.u-window.is-max > .u-resize { display: none; }
.u-term[data-u-resizable] { position: relative; }
.u-resize[data-u-edge="n"], .u-resize[data-u-edge="s"] { left: 12px; right: 12px; width: auto; height: 6px; cursor: ns-resize; }
.u-resize[data-u-edge="e"], .u-resize[data-u-edge="w"] { top: 12px; bottom: 12px; width: 6px; height: auto; cursor: ew-resize; }
.u-resize[data-u-edge="n"] { top: 0; bottom: auto; } .u-resize[data-u-edge="s"] { bottom: 0; }
.u-resize[data-u-edge="w"] { left: 0; right: auto; } .u-resize[data-u-edge="e"] { right: 0; }
.u-resize[data-u-edge="nw"], .u-resize[data-u-edge="ne"], .u-resize[data-u-edge="sw"] { width: 12px; height: 12px; z-index: 3; }
.u-resize[data-u-edge="nw"] { left: 0; top: 0; right: auto; bottom: auto; cursor: nwse-resize; }
.u-resize[data-u-edge="ne"] { right: 0; top: 0; bottom: auto; cursor: nesw-resize; }
.u-resize[data-u-edge="sw"] { left: 0; bottom: 0; right: auto; cursor: nesw-resize; }
.u-resize[data-u-edge="se"] { z-index: 3; }
.u-resize[data-u-edge]:not([data-u-edge="se"])::after { content: none; }
.u-resize[data-u-edge="n"]::before, .u-resize[data-u-edge="s"]::before, .u-resize[data-u-edge="e"]::before, .u-resize[data-u-edge="w"]::before { content: ""; position: absolute; background: var(--u-blue); opacity: 0; transition: opacity .15s var(--u-ease); }
.u-resize[data-u-edge="n"]::before { left: 0; right: 0; top: 0; height: 2px; } .u-resize[data-u-edge="s"]::before { left: 0; right: 0; bottom: 0; height: 2px; }
.u-resize[data-u-edge="w"]::before { top: 0; bottom: 0; left: 0; width: 2px; } .u-resize[data-u-edge="e"]::before { top: 0; bottom: 0; right: 0; width: 2px; }
.u-resize[data-u-edge]:hover::before, .u-resize[data-u-edge].is-drag::before { opacity: .6; }
.u-resize.is-drag::after { opacity: 1; }
@media (pointer: coarse) {
  .u-resize[data-u-edge="n"], .u-resize[data-u-edge="s"] { height: 12px; }
  .u-resize[data-u-edge="e"], .u-resize[data-u-edge="w"] { width: 12px; }
  .u-resize[data-u-edge="nw"], .u-resize[data-u-edge="ne"], .u-resize[data-u-edge="sw"], .u-resize[data-u-edge="se"] { width: 22px; height: 22px; }
}
.u-desk { position: absolute; inset: 0; background: var(--u-desk); }

/* =============== Charts (Umbra.chart draws the SVG) =============== */
.u-chart { position: relative; width: 100%; height: var(--u-ch, 180px); user-select: none; touch-action: pan-y; }
.u-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
/* charts take focus (arrow keys step through the values); the ring sits just outside */
.u-chart:focus-visible { outline: 2px solid var(--u-blue); outline-offset: 3px; border-radius: 6px; }
.u-chart .u-ch-grid line { stroke: var(--u-hair); stroke-dasharray: 2 4; }
/* Charts with negative numbers draw a solid zero line; an empty chart says so in words. */
.u-chart .u-ch-grid line.u-ch-zero { stroke: var(--u-hair3); stroke-dasharray: none; }
.u-chart .u-ch-track { stroke: var(--u-hair); }
.u-chart svg text.u-ch-empty { fill: var(--u-t4); font: 12px var(--u-f-ui); }
.u-chart .u-ch-axis text { fill: var(--u-t4); font: 10.5px var(--u-f-mono); }
.u-chart .u-ch-line { fill: none; stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; }
.u-chart .u-ch-area { opacity: .9; }
.u-chart .u-ch-cross { stroke: var(--u-hair3); stroke-width: 1; opacity: 0; }
.u-chart .u-ch-pt { opacity: 0; stroke: var(--u-lv2); stroke-width: 2; }
/* Hover marks move by transform only, so they slide on the GPU (0.11.0; they used to jump by
   attribute). umbra.js turns the slide off for the first move after the marks appear. */
.u-chart .u-ch-cross, .u-chart .u-ch-pt, .u-chart .u-ch-hov { transition: opacity .12s var(--u-ease), transform .24s var(--u-ease); will-change: transform; }
.u-chart .u-ch-hov { opacity: 0; }
.u-chart.is-hover .u-ch-cross, .u-chart.is-hover .u-ch-pt, .u-chart.is-hover .u-ch-hov { opacity: 1; }
/* Dot grid area and spark charts (0.11.0, Enzo's pick Nov 23): dots under the line, a soft glow
   behind it, and a hover point drawn as a ring on the card colour. */
.u-chart .u-ch-glow { fill: none; stroke-width: 5; stroke-opacity: .14; }
.u-chart .u-ch-glow--sm { stroke-width: 3; }
.u-chart .u-ch-line--dots { stroke-width: 2.25; }
.u-chart .u-ch-line--dots.u-ch-line--sm { stroke-width: 1.75; }
.u-chart .u-ch-pt--ring { fill: var(--u-lv2); stroke: var(--rc); stroke-width: 2.5; }
.u-chart .u-ch-bar { transition: opacity .15s var(--u-ease); }
.u-chart.is-hover .u-ch-bar:not(.is-hot) { opacity: .45; }
.u-chart .u-ch-slice { transition: opacity .15s var(--u-ease), transform .25s var(--u-ease); transform-origin: center; transform-box: view-box; }
.u-chart.is-hover .u-ch-slice:not(.is-hot) { opacity: .45; }
.u-chart svg text.u-ch-center { fill: var(--u-t1); font: 600 20px var(--u-f-mono); }
.u-chart svg text.u-ch-center-s { fill: var(--u-t3); font: 11px var(--u-f-ui); }
.u-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--u-t3); font-size: var(--u-fs-xs); }
.u-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.u-legend i { width: 8px; height: 8px; border-radius: 2px; }
.u-spark { display: block; width: 100%; height: 32px; }
/* Uptime / availability squares */
.u-uptime { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; height: 26px; }
.u-uptime > i { border-radius: 2px; background: var(--u-ok); opacity: .85; transition: opacity var(--u-fast) var(--u-ease), transform .2s var(--u-ease); }
.u-uptime > i:hover { opacity: 1; transform: scaleY(1.12); }
.u-uptime > i.w { background: var(--u-warn); } .u-uptime > i.b { background: var(--u-bad); } .u-uptime > i.n { background: var(--u-hair2); }

/* =============== Chat =============== */
.u-chat { display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.u-msg { display: flex; gap: 8px; align-items: flex-end; max-width: 82%; }
.u-msg--out { align-self: flex-end; flex-direction: row-reverse; }
.u-bubble { position: relative; padding: 8px 11px; border-radius: 14px 14px 14px 5px; background: var(--u-lv3); border: 1px solid var(--u-hair); box-shadow: var(--u-edge); color: var(--u-t1); line-height: 1.45; overflow-wrap: anywhere; }
.u-msg--out .u-bubble { border-radius: 14px 14px 5px 14px; background: linear-gradient(180deg, var(--u-bp-top), var(--u-bp-bot)); border-color: var(--u-bp-bd); color: var(--u-on-accent); box-shadow: var(--u-bp-hi); }
.u-msg-meta { color: var(--u-t4); font-size: var(--u-fs-xs); margin-top: 3px; }
.u-msg--out .u-msg-meta { text-align: right; }
.u-reacts { display: flex; gap: 4px; margin-top: 4px; }
.u-react { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 7px; border-radius: 99px; border: 1px solid var(--u-hair2); background: var(--u-lv2); color: var(--u-t2); font-size: var(--u-fs-xs); transition: transform .2s var(--u-ease); }
.u-react:hover { transform: translateY(-1px); }
.u-react.is-on { border-color: color-mix(in srgb, var(--u-blue) 50%, transparent); background: var(--u-blue-10); color: var(--u-blue-t); }
.u-daysep { display: flex; align-items: center; gap: 10px; color: var(--u-t4); font-size: var(--u-fs-xs); }
.u-daysep::before, .u-daysep::after { content: ""; flex: 1; height: 1px; background: var(--u-hair); }
.u-composer { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 12px; border: 1px solid var(--u-hair2); background: var(--u-fld); box-shadow: var(--u-fld-in); }
.u-composer:focus-within { border-color: var(--u-blue); box-shadow: var(--u-fld-in), var(--u-ring); }
.u-composer textarea { border: 0; outline: 0; background: none; resize: none; min-height: 22px; max-height: 160px; padding: 2px 4px; color: var(--u-t1); line-height: 1.45; }
.u-composer-bar { display: flex; align-items: center; gap: 2px; }
.u-composer-bar > .u-ibtn--primary { margin-left: auto; }
/* Steer while it works (Fennel research-agent shot; Enzo picked it Nov 21 2026). While an
   assistant or a job is busy, a status line says what it is doing, the box asks for a
   note to the plan, and Send turns into a round Stop in the same spot (.u-composer-go
   holds both; Umbra.steer swaps them). Stop answers at once (the Rules: toggles answer
   at once): the line says Stopping straight away and the app confirms after. */
.u-composer-st { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 0 4px; color: var(--u-t3); font-size: var(--u-fs-sm); }
.u-composer-st:has(> .u-composer-st-t:empty) { display: none; }
.u-composer-st > .u-spin { color: var(--u-blue-t); }
.u-composer:not(.is-busy) .u-composer-st > .u-spin { display: none; }
.u-composer-st-t { min-width: 0; overflow-wrap: anywhere; }
.u-composer-go { display: inline-grid; flex: none; margin-left: auto; }
.u-composer-go > * { grid-area: 1 / 1; transition: opacity var(--u-fast) var(--u-ease), transform var(--u-fast) var(--u-ease); }
.u-composer-go > .is-off { opacity: 0; transform: scale(.7); pointer-events: none; }
.u-composer-stop, .u-ibtn.u-composer-stop::after { border-radius: 50%; }
.u-composer-stop .u-i { fill: currentColor; transform: scale(.72); }

/* =============== Calendar: month picker and day schedule =============== */
.u-cal { width: 252px; user-select: none; }
.u-cal-h { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; }
.u-cal-h b { flex: 1; color: var(--u-t1); font-weight: 500; padding-left: 4px; }
.u-cal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.u-cal-g > span { display: grid; place-items: center; height: 26px; color: var(--u-t4); font-size: var(--u-fs-xs); }
.u-cal-g > button { position: relative; height: 32px; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--u-t2); font-family: var(--u-f-mono); font-size: var(--u-fs-sm); font-variant-numeric: tabular-nums; }
.u-cal-g > button:hover { background: var(--u-hover); color: var(--u-t1); }
.u-cal-g > button.is-out { color: var(--u-t4); opacity: .55; }
.u-cal-g > button.is-today { color: var(--u-blue-t); font-weight: 600; }
.u-cal-g > button.is-today::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 3px; height: 3px; margin-left: -1.5px; border-radius: 50%; background: currentColor; }
.u-cal-g > button.is-range { background: var(--u-blue-10); border-radius: 0; color: var(--u-t1); }
.u-cal-g > button.is-sel { background: linear-gradient(180deg, var(--u-bp-top), var(--u-bp-bot)); border-color: var(--u-bp-bd); color: var(--u-on-accent); box-shadow: var(--u-bp-hi), var(--u-bp-sh); }
.u-cal-g > button.is-sel::after { background: var(--u-on-accent); }

/* Day/week schedule: hour rows are a fixed 52px and scroll, opening at 8 AM (his rule) */
.u-sched { position: relative; height: var(--u-sh, 360px); overflow: auto; border-radius: var(--u-r-lg); border: 1px solid var(--u-hair); background: var(--u-lv1); }
.u-sched-g { position: relative; display: grid; grid-template-columns: 56px repeat(var(--u-days, 1), 1fr); }
.u-sched-hd { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: 56px repeat(var(--u-days, 1), 1fr); background: var(--u-lv0); border-bottom: 1px solid var(--u-hair); }
.u-sched-hd > div { padding: 8px 10px; color: var(--u-t3); font-size: var(--u-fs-xs); }
.u-sched-hd > div b { display: block; color: var(--u-t1); font: 600 15px/1.2 var(--u-f-mono); }
.u-sched-hd > div.is-today b { color: var(--u-blue-t); }
.u-sched-hr { height: 52px; padding: 0 8px; color: var(--u-t4); font: 10.5px var(--u-f-mono); text-align: right; transform: translateY(-7px); }
/* the hour label the now pill would sit on top of steps aside (give it is-near-now within ~20 min) */
.u-sched-hr.is-near-now { opacity: 0; }
/* Work hours (Inbox Mail, Enzo's rule: 8 AM to 6 PM highlighted). A faint band behind the hour
   lines, from --work-from to --work-to (hours, 24h clock). Set both to 0 on .u-sched to hide it. */
.u-sched { --work-from: 8; --work-to: 18; }
.u-sched-col { position: relative; border-left: 1px solid var(--u-hair); background-image: repeating-linear-gradient(180deg, transparent 0 51px, var(--u-hair) 51px 52px), linear-gradient(180deg, transparent calc(var(--work-from) * 52px), color-mix(in srgb, var(--u-t1) 3.5%, transparent) calc(var(--work-from) * 52px) calc(var(--work-to) * 52px), transparent calc(var(--work-to) * 52px)); }
/* Today is a tinted column, header included (Inbox Mail's Tinted Column). */
.u-sched-col.is-today { background-color: color-mix(in srgb, var(--u-blue) 5%, transparent); }
.u-sched-hd > div.is-today { background: color-mix(in srgb, var(--u-blue) 9%, var(--u-lv0)); }
/* An event: the app sets top = start x 52px and height = length x 52px. The clear 1px top and
   bottom borders leave a 2px gap between back-to-back events (Inbox Mail, Nov 20). */
.u-ev { --c: var(--u-blue); position: absolute; left: 4px; right: 6px; padding: 4px 8px; border-radius: 0 7px 7px 0; border-left: 3px solid var(--c); border-top: 1px solid transparent; border-bottom: 1px solid transparent; background: color-mix(in srgb, var(--c) 14%, var(--u-lv2)) padding-box; box-shadow: var(--u-sh-ev); overflow: hidden; cursor: pointer; transition: transform .2s var(--u-ease); }
.u-ev:hover { filter: brightness(1.08); transform: translateY(-1px); }
.u-ev b { display: block; color: var(--u-t1); font-size: var(--u-fs-sm); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-ev span { display: block; color: var(--u-t3); font-size: var(--u-fs-xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-ev.is-past { background: color-mix(in srgb, var(--c) 6%, var(--u-lv2)) padding-box; border-left-color: color-mix(in srgb, var(--c) 45%, var(--u-t4)); box-shadow: none; }
.u-ev.is-past b { color: var(--u-t3); }
.u-ev.is-past span { color: var(--u-t4); }
/* The time now (Inbox Mail, Enzo's rule): a blue time bubble in the hour column and a dotted
   blue line across every day. Put .u-now straight in .u-sched-g so it spans the week, with a
   .u-now-t for the time; a .u-now inside one .u-sched-col still works and spans that day only. */
.u-now { position: absolute; left: 0; right: 0; height: 2px; margin-top: -1px; background: repeating-linear-gradient(90deg, var(--u-blue) 0 3px, transparent 3px 7px); z-index: 1; pointer-events: none; }
.u-sched-g > .u-now { left: 56px; z-index: 3; }
.u-now-t { position: absolute; right: calc(100% - 6px); top: 50%; display: inline-grid; place-items: center; height: 20px; padding: 0 5px; letter-spacing: -.02em; border-radius: var(--u-r-full); background: linear-gradient(180deg, var(--u-bp-top), var(--u-bp-bot)); box-shadow: var(--u-bp-hi), var(--u-bp-sh); color: var(--u-on-accent); font: 500 10.5px/1 var(--u-f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; transform: translateY(-50%); }
.u-evcard { --c: var(--u-blue); display: flex; gap: 10px; padding: 10px 12px; border-radius: 0 10px 10px 0; border: 1px solid var(--u-hair); border-left: 3px solid var(--c); background: var(--u-lv2); box-shadow: var(--u-sh-card); }
.u-evcard-d { display: flex; flex-direction: column; align-items: center; min-width: 34px; color: var(--u-t3); font-size: 10.5px; }
.u-evcard-d b { color: var(--u-t1); font: 600 18px/1.1 var(--u-f-mono); }

/* =============== Sign-in and website pieces =============== */
.u-auth { position: relative; min-height: 480px; display: grid; place-items: center; padding: 28px 16px; overflow: hidden; background: var(--u-lv1); isolation: isolate; }
.u-auth > canvas.u-pixels { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
/* The glow follows the pointer with transform only (the Nov 16 audit caught it animating
   left/top). umbra.js sets --u-mx/--u-my in px; before the pointer arrives it sits
   at the middle, 30% down (cqi = the card's own width). */
.u-auth { container-type: inline-size; }
.u-auth::after { content: ""; position: absolute; z-index: -1; left: 0; top: 0; width: 620px; height: 420px; transform: translate(calc(var(--u-mx, 50cqi) - 310px), calc(var(--u-my, 144px) - 210px)); background: radial-gradient(closest-side, color-mix(in srgb, var(--u-blue) 20%, transparent), transparent); pointer-events: none; transition: transform .6s var(--u-ease); }
.u-auth-card { position: relative; width: min(380px, 100%); padding: 26px 24px 22px; }
.u-auth-card .u-logo { width: 36px; height: 36px; border-radius: 10px; font-size: 14px; }
.u-orline { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: var(--u-t4); font-size: var(--u-fs-xs); }
.u-orline::before, .u-orline::after { content: ""; flex: 1; height: 1px; background: var(--u-hair); }
.u-ms { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5px; width: 14px; height: 14px; }
.u-ms i:nth-child(1) { background: #F25022; } .u-ms i:nth-child(2) { background: #7FBA00; } .u-ms i:nth-child(3) { background: #00A4EF; } .u-ms i:nth-child(4) { background: #FFB900; }

.u-hero { position: relative; isolation: isolate; padding: 64px 20px 56px; text-align: center; overflow: hidden; }
.u-hero::after { content: ""; position: absolute; z-index: -1; left: 50%; top: 0; width: 780px; height: 380px; transform: translateX(-50%); background: radial-gradient(closest-side, color-mix(in srgb, var(--u-blue) 18%, transparent), transparent); }
.u-eyebrow { display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 10px 0 4px; border-radius: 99px; border: 1px solid var(--u-hair2); background: var(--u-lv2); box-shadow: var(--u-edge); color: var(--u-t2); font-size: var(--u-fs-sm); }
.u-eyebrow > b { height: 18px; padding: 0 7px; border-radius: 99px; background: var(--u-blue-10); color: var(--u-blue-t); font-size: var(--u-fs-xs); font-weight: 500; display: grid; place-items: center; }
.u-feature { padding: 18px; }
.u-feature-ic { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px; border-radius: 9px; background: var(--u-lv3); border: 1px solid var(--u-hair2); box-shadow: var(--u-edge); color: var(--u-blue-t); }
.u-feature h4 { margin: 0 0 4px; color: var(--u-t1); font-size: var(--u-fs-md); font-weight: 500; }
.u-feature p { margin: 0; color: var(--u-t3); }
.u-price { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.u-price > .u-btn { margin-top: auto; }
.u-price-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 22px; }
.u-price.is-featured { border-color: color-mix(in srgb, var(--u-blue) 55%, transparent); box-shadow: var(--u-sh-card), 0 0 0 3px var(--u-blue-10); }
.u-price-v { color: var(--u-t1); font: 600 32px/1 var(--u-f-ui); letter-spacing: -.04em; }
.u-price-v small { color: var(--u-t3); font-size: var(--u-fs); font-weight: 400; letter-spacing: 0; }
.u-price ul { margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.u-price li { list-style: none; display: flex; gap: 8px; align-items: center; color: var(--u-t2); }
.u-price li .u-i { color: var(--u-ok); width: 14px; height: 14px; }

/* =============== Device tile (fleet) =============== */
.u-device { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.u-device-h { display: flex; align-items: center; gap: 10px; }
.u-device-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--u-sunken); border: 1px solid var(--u-hair); color: var(--u-t2); flex: none; }
.u-meter { display: grid; grid-template-columns: 34px 1fr 38px; align-items: center; gap: 8px; color: var(--u-t3); font-size: var(--u-fs-xs); }
.u-meter b { color: var(--u-t1); font: 500 var(--u-fs-xs) var(--u-f-mono); text-align: right; }

/* =============== Phone =============== */
@media (max-width: 640px) {
  /* 40px tap targets on phones, and on every touch screen through the copy below (his rule:
     compact on desktop with a mouse). The lines between the touch marks are repeated
     word for word in the Touch screens block; tools/check.mjs fails if the two drift. */
  /* @touch-begin */
  .u-btn, .u-ibtn { --h: var(--u-ctl-touch); }
  .u-btn--sm, .u-ibtn--sm { --h: 36px; }
  .u-chip { --h: 36px; } .u-ptabs > button { height: 40px; }
  .u-tab { height: 40px; }
  .u-pager > button { min-width: 40px; height: 40px; }
  .u-numstep { height: var(--u-ctl-touch); } .u-numstep button { width: 40px; }
  .u-menu-item { min-height: 40px; }
  .u-check, .u-radio { width: 20px; height: 20px; }
  /* small icon buttons that live inside another control keep their size */
  .u-inwrap > .u-ibtn, .u-toast > .u-ibtn { --h: 24px; }
  .u-term-bar .u-ibtn, .u-window-bar .u-ibtn, .u-code-h > .u-ibtn { --h: 28px; }
  .u-menu .u-menu-search .u-inwrap { height: 40px; }
  .u-input, .u-selbtn, .u-inwrap { height: var(--u-ctl-touch); font-size: 16px; }
  /* 16px in every typing field so phones don't zoom in on focus (second Nov 16 audit). */
  .u-textarea, .u-composer textarea, .u-chipsin input, .u-numstep input, .u-inwrap input { font-size: 16px; }
  /* Small controls keep their look but get a 40px touch area around them. A toast's close
     button too (0.13.0). The clear button inside a field gets 40px of height but only 32px
     of width, so a tap at the end of the typed words doesn't clear them. */
  .u-tag > button, .u-react { position: relative; }
  .u-switch::before, .u-tag > button::before, .u-react::before, .u-toast > .u-ibtn::before { content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 40px); height: 40px; transform: translate(-50%, -50%); }
  .u-inwrap > .u-ibtn::before { content: ""; position: absolute; left: 50%; top: 50%; width: 32px; height: 40px; transform: translate(-50%, -50%); }
  .u-cal-g > button { height: 40px; }
  .u-cal-h .u-ibtn { --h: 40px; }
  .u-range { height: 40px; }
  .u-range::-webkit-slider-thumb { width: 22px; height: 22px; margin-top: -9px; }
  /* @touch-end */
  .u-app-body { grid-template-columns: 1fr; }
  .u-rail, .u-sidebar { display: none; }
  /* Dialogs stay centred on a phone and zoom from the center, as everywhere else. Until
     0.9.0 they docked to the bottom and slid up; Enzo chose "Zoom from center" on Nov 22.
     A real bottom sheet is still .u-modal--sheet. */
  .u-drawer { top: auto; left: calc(8px + var(--u-ll, 0px)); height: min(calc(var(--u-vh, 100vh) * .8), 640px); width: auto; animation-name: u-sheet-in-b; }
  .u-drawer.is-closing { animation-name: u-sheet-out-b; }
  .u-toasts { left: 16px; right: 16px; bottom: 12px; width: auto; }
  .u-cmdk { top: 8px; }
  .u-msg { max-width: 92%; }
  .u-titlebar-search .u-kbd { display: none; }
}
@container u-frame (max-width: 640px) {
  /* 40px tap targets on phones, and on every touch screen through the copy below (his rule:
     compact on desktop with a mouse). The lines between the touch marks are repeated
     word for word in the Touch screens block; tools/check.mjs fails if the two drift. */
  /* @touch-begin */
  .u-btn, .u-ibtn { --h: var(--u-ctl-touch); }
  .u-btn--sm, .u-ibtn--sm { --h: 36px; }
  .u-chip { --h: 36px; } .u-ptabs > button { height: 40px; }
  .u-tab { height: 40px; }
  .u-pager > button { min-width: 40px; height: 40px; }
  .u-numstep { height: var(--u-ctl-touch); } .u-numstep button { width: 40px; }
  .u-menu-item { min-height: 40px; }
  .u-check, .u-radio { width: 20px; height: 20px; }
  /* small icon buttons that live inside another control keep their size */
  .u-inwrap > .u-ibtn, .u-toast > .u-ibtn { --h: 24px; }
  .u-term-bar .u-ibtn, .u-window-bar .u-ibtn, .u-code-h > .u-ibtn { --h: 28px; }
  .u-menu .u-menu-search .u-inwrap { height: 40px; }
  .u-input, .u-selbtn, .u-inwrap { height: var(--u-ctl-touch); font-size: 16px; }
  /* 16px in every typing field so phones don't zoom in on focus (second Nov 16 audit). */
  .u-textarea, .u-composer textarea, .u-chipsin input, .u-numstep input, .u-inwrap input { font-size: 16px; }
  /* Small controls keep their look but get a 40px touch area around them. A toast's close
     button too (0.13.0). The clear button inside a field gets 40px of height but only 32px
     of width, so a tap at the end of the typed words doesn't clear them. */
  .u-tag > button, .u-react { position: relative; }
  .u-switch::before, .u-tag > button::before, .u-react::before, .u-toast > .u-ibtn::before { content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 40px); height: 40px; transform: translate(-50%, -50%); }
  .u-inwrap > .u-ibtn::before { content: ""; position: absolute; left: 50%; top: 50%; width: 32px; height: 40px; transform: translate(-50%, -50%); }
  .u-cal-g > button { height: 40px; }
  .u-cal-h .u-ibtn { --h: 40px; }
  .u-range { height: 40px; }
  .u-range::-webkit-slider-thumb { width: 22px; height: 22px; margin-top: -9px; }
  /* @touch-end */
  .u-app-body { grid-template-columns: 1fr; }
  .u-rail, .u-sidebar { display: none; }
  /* Dialogs stay centred on a phone and zoom from the center, as everywhere else. Until
     0.9.0 they docked to the bottom and slid up; Enzo chose "Zoom from center" on Nov 22.
     A real bottom sheet is still .u-modal--sheet. */
  .u-drawer { top: auto; left: calc(8px + var(--u-ll, 0px)); height: min(calc(var(--u-vh, 100vh) * .8), 640px); width: auto; animation-name: u-sheet-in-b; }
  .u-drawer.is-closing { animation-name: u-sheet-out-b; }
  .u-toasts { left: 16px; right: 16px; bottom: 12px; width: auto; }
  .u-cmdk { top: 8px; }
  .u-msg { max-width: 92%; }
  .u-titlebar-search .u-kbd { display: none; }
}

/* =============== Touch screens (0.13.0, design audit Nov 27) ===============
   Finger-sized controls follow touch, not only screen width: an iPad or a touch screen
   whose main pointer is a finger got the 24 to 28px desktop sizes. This is the phone
   block's sizing, word for word between the touch marks; the layout (one column, no
   sidebar) still follows width only. A desktop with a mouse stays compact. */
@media (pointer: coarse) {
  /* @touch-begin */
  .u-btn, .u-ibtn { --h: var(--u-ctl-touch); }
  .u-btn--sm, .u-ibtn--sm { --h: 36px; }
  .u-chip { --h: 36px; } .u-ptabs > button { height: 40px; }
  .u-tab { height: 40px; }
  .u-pager > button { min-width: 40px; height: 40px; }
  .u-numstep { height: var(--u-ctl-touch); } .u-numstep button { width: 40px; }
  .u-menu-item { min-height: 40px; }
  .u-check, .u-radio { width: 20px; height: 20px; }
  /* small icon buttons that live inside another control keep their size */
  .u-inwrap > .u-ibtn, .u-toast > .u-ibtn { --h: 24px; }
  .u-term-bar .u-ibtn, .u-window-bar .u-ibtn, .u-code-h > .u-ibtn { --h: 28px; }
  .u-menu .u-menu-search .u-inwrap { height: 40px; }
  .u-input, .u-selbtn, .u-inwrap { height: var(--u-ctl-touch); font-size: 16px; }
  /* 16px in every typing field so phones don't zoom in on focus (second Nov 16 audit). */
  .u-textarea, .u-composer textarea, .u-chipsin input, .u-numstep input, .u-inwrap input { font-size: 16px; }
  /* Small controls keep their look but get a 40px touch area around them. A toast's close
     button too (0.13.0). The clear button inside a field gets 40px of height but only 32px
     of width, so a tap at the end of the typed words doesn't clear them. */
  .u-tag > button, .u-react { position: relative; }
  .u-switch::before, .u-tag > button::before, .u-react::before, .u-toast > .u-ibtn::before { content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 40px); height: 40px; transform: translate(-50%, -50%); }
  .u-inwrap > .u-ibtn::before { content: ""; position: absolute; left: 50%; top: 50%; width: 32px; height: 40px; transform: translate(-50%, -50%); }
  .u-cal-g > button { height: 40px; }
  .u-cal-h .u-ibtn { --h: 40px; }
  .u-range { height: 40px; }
  .u-range::-webkit-slider-thumb { width: 22px; height: 22px; margin-top: -9px; }
  /* @touch-end */
}

/* ---------- States the Nov 16 audit added in umbra.js ---------- */
.u-selbtn:disabled { opacity: .5; cursor: not-allowed; }
/* The number stepper switches off its - or + at the limit, so it looks off too. */
.u-numstep button:disabled { opacity: .35; cursor: default; background: transparent; }
.u-resize:focus-visible { outline-offset: -2px; border-radius: 4px; }
.u-cal-g > button:focus-visible { outline-offset: -2px; }

/* =============== 0.5.0: parts the Fleet Console design audit asked for (Nov 19 2026) =============== */
/* Split button: the main action, joined to a caret that opens a menu of the others
   (<div class="u-splitbtn"><button class="u-btn">Restart</button><button class="u-btn"
   data-u-menu="id" aria-label="More Restart Options"><i data-u-icon="chevron-down"></i></button></div>). */
.u-splitbtn { display: inline-flex; vertical-align: middle; }
.u-splitbtn > .u-btn:first-child { border-radius: var(--u-r) 0 0 var(--u-r); }
.u-splitbtn > .u-btn:last-child { width: calc(var(--h) - 4px); padding: 0; border-radius: 0 var(--u-r) var(--u-r) 0; margin-left: -1px; }
.u-splitbtn > .u-btn:hover, .u-splitbtn > .u-btn:active { z-index: 1; transform: none; }
.u-splitbtn > .u-btn:focus-visible { z-index: 2; }
/* filled buttons share one edge: a thin line in the label colour splits them */
.u-splitbtn > .u-btn--primary:last-child, .u-splitbtn > .u-btn--danger:last-child, .u-splitbtn > .u-btn--success:last-child { margin-left: 0; border-left-width: 0; }
.u-splitbtn > .u-btn--primary:last-child::before, .u-splitbtn > .u-btn--danger:last-child::before, .u-splitbtn > .u-btn--success:last-child::before { content: ""; position: absolute; left: 0; top: 7px; bottom: 7px; width: 1px; background: currentColor; opacity: .32; }
.u-splitbtn > .u-btn:last-child > .u-i { transition: transform .2s var(--u-ease); }
.u-splitbtn > .u-btn:last-child[aria-expanded="true"] > .u-i { transform: rotate(180deg); }
.u-splitbtn > .u-btn--sm:last-child { width: calc(var(--h) - 2px); }

/* Connection pill: where a live link stands. data-state = connected | relayed |
   connecting | reconnecting | disconnected | offline | unknown; Umbra.connpill sets
   it with the words. The dot breathes (opacity only) while it is trying. */
.u-connpill { --c: var(--u-t3); --bg: var(--u-gray-10); display: inline-flex; align-items: center; gap: 6px; height: 24px; max-width: 100%; padding: 0 10px 0 8px; border-radius: 99px; background: var(--bg); color: var(--c); font-size: var(--u-fs-sm); font-weight: 500; white-space: nowrap; vertical-align: middle; }
.u-connpill > i { width: 7px; height: 7px; border-radius: 50%; flex: none; background: currentColor; }
.u-connpill-t { overflow: hidden; text-overflow: ellipsis; }
.u-connpill-d { color: var(--u-t3); font-weight: 400; font-variant-numeric: tabular-nums; }
.u-connpill-d::before { content: "·"; margin-right: 6px; color: var(--u-t4); }
.u-connpill[data-state="connected"] { --c: var(--u-ok-t); --bg: var(--u-ok-10); }
.u-connpill[data-state="relayed"] { --c: var(--u-blue-t); --bg: var(--u-blue-10); }
.u-connpill[data-state="connecting"], .u-connpill[data-state="reconnecting"] { --c: var(--u-warn-t); --bg: var(--u-warn-10); }
.u-connpill[data-state="connecting"] > i, .u-connpill[data-state="reconnecting"] > i { animation: u-pulse 1.2s ease-in-out infinite; }
.u-connpill[data-state="disconnected"] { --c: var(--u-bad-t); --bg: var(--u-bad-10); }
.u-connpill[data-state="offline"] > i { background: var(--u-t4); }
.u-connpill[data-state="unknown"] > i { background: none; border: 1.5px solid currentColor; }

/* Wi-Fi signal: a dot and three arcs, lit by strength. data-dbm (or data-level 0-4)
   on <span class="u-wifi">; umbra.js draws it and names it ("Good, -61 dBm").
   Strong is green, fair amber, weak red; nothing reported is a dashed grey fan. */
.u-wifi { --c: var(--u-t3); display: inline-flex; align-items: center; gap: 6px; color: var(--u-t2); font-size: var(--u-fs-sm); white-space: nowrap; vertical-align: middle; }
.u-wifi > svg { width: 18px; height: 18px; flex: none; overflow: visible; }
.u-wifi > svg > * { fill: none; stroke: var(--u-hair3); stroke-width: 2.2; stroke-linecap: round; }
.u-wifi > svg > circle { fill: var(--u-hair3); stroke: none; }
.u-wifi > svg > .is-on { stroke: var(--c); }
/* The dot is filled, never outlined. 0.5.2: the lit-arc rule above also outlined a lit dot
   (2.2 stroke round a 1.6 dot), so on every coloured level the dot looked nearly twice the
   size of the grey one on No Signal. Enzo spotted it in the gallery. */
.u-wifi > svg > circle.is-on { fill: var(--c); stroke: none; }
.u-wifi--ok { --c: var(--u-ok); } .u-wifi--warn { --c: var(--u-warn); } .u-wifi--bad { --c: var(--u-bad); }
.u-wifi--none > svg > path { stroke-dasharray: 2 3; }
.u-wifi-t { font-variant-numeric: tabular-nums; }
.u-wifi-t > b { color: var(--u-t1); font-weight: 500; }

/* Bottom sheet: add .u-modal--sheet to a .u-modal. On a phone (or a phone-wide
   .u-frame) it rises from the bottom edge, full width, with a grabber; drag it down
   to close. On a wide screen it is an ordinary dialog that zooms from the center.
   0.9.1: its height follows what it holds, up to nearly the full screen (it stops below
   the status area), and the body scrolls inside when it holds more. In 0.9.0 every sheet
   opened at half the screen, short menus with empty space and compose cut off: the
   0.9.0 "zoom from center" change took away the phone rule that set dialogs' top to auto,
   and the sheet had been leaning on it, so its top stayed at the middle. Inbox Mail's
   phone board found it (Enzo's "Send sheet fix to Umbra", Nov 22). */
.u-modal--sheet::before { content: ""; display: none; flex: none; width: 36px; height: 4px; margin: 8px auto 0; border-radius: 2px; background: var(--u-hair3); }
@keyframes u-sheet-drop { from { transform: translateY(var(--u-dy, 0px)); } to { opacity: 0; transform: translateY(100%); } }
@media (max-width: 640px) {
  .u-modal.u-modal--sheet { --u-sheet: 1; top: auto; left: var(--u-ll, 0px); right: var(--u-lr, 0px); bottom: var(--u-lb, 0px); width: auto; max-height: calc(var(--u-vh, 100vh) - max(32px, env(safe-area-inset-top, 0px) + 12px)); border-radius: 18px 18px 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom, 0px); transform: none; animation-name: u-sheet-in-b; }
  .u-modal.u-modal--sheet.is-closing { animation-name: u-sheet-out-b; }
  .u-modal.u-modal--sheet.is-dropped.is-closing { animation: u-sheet-drop .2s ease-in forwards; }
  .u-modal--sheet::before { display: block; }
  /* the header, grabber and buttons stay put; only the body scrolls */
  .u-modal--sheet > .u-modal-h, .u-modal--sheet > .u-modal-f { flex: none; }
  .u-modal--sheet > .u-modal-b { flex: 0 1 auto; min-height: 0; overscroll-behavior: contain; }
  .u-modal--sheet .u-modal-f { flex-direction: column-reverse; }
  .u-modal--sheet .u-modal-f > .u-btn { width: 100%; }
  .u-modal.u-modal--sheet.is-held { cursor: grabbing; }
  .u-modal.u-modal--sheet.is-moving { transition: transform .25s var(--u-ease); }
}
@container u-frame (max-width: 640px) {
  .u-modal.u-modal--sheet { --u-sheet: 1; top: auto; left: var(--u-ll, 0px); right: var(--u-lr, 0px); bottom: var(--u-lb, 0px); width: auto; max-height: calc(var(--u-vh, 100vh) - max(32px, env(safe-area-inset-top, 0px) + 12px)); border-radius: 18px 18px 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom, 0px); transform: none; animation-name: u-sheet-in-b; }
  .u-modal.u-modal--sheet.is-closing { animation-name: u-sheet-out-b; }
  .u-modal.u-modal--sheet.is-dropped.is-closing { animation: u-sheet-drop .2s ease-in forwards; }
  .u-modal--sheet::before { display: block; }
  /* the header, grabber and buttons stay put; only the body scrolls */
  .u-modal--sheet > .u-modal-h, .u-modal--sheet > .u-modal-f { flex: none; }
  .u-modal--sheet > .u-modal-b { flex: 0 1 auto; min-height: 0; overscroll-behavior: contain; }
  .u-modal--sheet .u-modal-f { flex-direction: column-reverse; }
  .u-modal--sheet .u-modal-f > .u-btn { width: 100%; }
  .u-modal.u-modal--sheet.is-held { cursor: grabbing; }
  .u-modal.u-modal--sheet.is-moving { transition: transform .25s var(--u-ease); }
}

/* =============== 0.5.1: parts Inbox Mail needed (Nov 19 2026) ===============
   Inbox Mail's reading and reply screen (redesign/inbox-mail) drew four things with
   local stand-ins because Umbra had none: a red chip for an address it can't send to,
   a red icon button for Delete, colour swatches for the reply editor (umbra-comms.css)
   and an inline "Delete this draft?" row. They live here so every app draws them alike. */

/* An address that can't be sent to (To, Cc, Bcc): red, and never only red. It carries
   a warning icon first and a .u-sr line ("not a valid email address") so it reads the
   same without colour. Umbra.addrChip builds one; .is-bad works on .u-tag (the combo's
   chips) and .u-chip. */
.u-tag.is-bad, .u-chip.is-bad { background: var(--u-bad-10); border-color: color-mix(in srgb, var(--u-bad) 45%, transparent); color: var(--u-bad-t); }
.u-tag.is-bad > .u-i:first-child, .u-chip.is-bad > .u-i:first-child { width: 12px; height: 12px; flex: none; color: var(--u-bad); }
.u-tag.is-bad > button, .u-chip.is-bad > .u-chip-x { color: var(--u-bad-t); }
.u-tag.is-bad > button:hover, .u-chip.is-bad > .u-chip-x:hover { background: color-mix(in srgb, var(--u-bad) 18%, transparent); color: var(--u-bad-t); }
.u-addr { max-width: 240px; color: var(--u-t1); cursor: default; }
.u-addr > .u-truncate { min-width: 0; }

/* Red icon button: Delete on a toolbar. Red at rest, a red wash on hover, so it never
   passes for its neighbours. For a filled red square use .u-btn.u-btn--danger.u-btn--icon. */
.u-ibtn--danger { color: var(--u-bad); }
.u-ibtn--danger:hover { color: var(--u-bad-t); }
.u-ibtn.u-ibtn--danger::after { background: var(--u-bad-10); border-color: color-mix(in srgb, var(--u-bad) 35%, transparent); box-shadow: none; }
.u-ibtn--danger.is-on, .u-ibtn--danger[aria-pressed="true"] { background: var(--u-bad-10); border-color: color-mix(in srgb, var(--u-bad) 35%, transparent); box-shadow: none; color: var(--u-bad-t); }
.u-ibtn--danger.u-ibtn--solid { background: var(--u-bad-10); border-color: color-mix(in srgb, var(--u-bad) 35%, transparent); box-shadow: none; color: var(--u-bad-t); }

/* Inline confirm: the question asked in place, not in a dialog ("Delete this draft?").
   A red wash and a red icon; the safe choice comes first and takes focus. Opened by
   [data-u-confirm="rowId"]; Escape or the safe button closes it. */
.u-confirm { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; min-height: 44px; padding: 6px 6px 6px 12px; border-radius: var(--u-r); border: 1px solid color-mix(in srgb, var(--u-bad) 30%, transparent); background: var(--u-bad-10); }
.u-confirm[hidden] { display: none; }
.u-confirm > .u-i:first-child { width: 16px; height: 16px; flex: none; color: var(--u-bad); }
.u-confirm-b { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; flex: 1; min-width: 0; }
.u-confirm-t { color: var(--u-t1); font-weight: 500; }
.u-confirm-s { color: var(--u-t3); font-size: var(--u-fs-sm); }
.u-confirm-a { display: flex; gap: 6px; flex: none; margin-left: auto; }
.u-confirm.is-in { animation: u-confirm-in .22s var(--u-ease); }
@keyframes u-confirm-in { from { opacity: 0; transform: translateY(-4px); } }
@media (max-width: 640px) {
  .u-confirm { padding: 10px 10px 10px 12px; }
  .u-confirm-a { width: 100%; }
  .u-confirm-a > .u-btn { flex: 1; }
  .u-addr { max-width: 200px; }
}
@container u-frame (max-width: 640px) {
  .u-confirm { padding: 10px 10px 10px 12px; }
  .u-confirm-a { width: 100%; }
  .u-confirm-a > .u-btn { flex: 1; }
  .u-addr { max-width: 200px; }
}

/* ---- umbra-data.css ---- */
/* ==========================================================================
   Umbra Data patterns: bulk actions, row actions, group rows, table states, job progress lists,
   run output and logs, invoice totals, settings rows, permission grids, diffs.
   Part of css/umbra.css (tools/build.mjs). Uses only --u-* tokens, so dark and light both work.
   Local knobs here never start with --u- (tools/check.mjs reads every --u- name as a token).
   ========================================================================== */

/* =============== Bulk action bar (appears while table rows are ticked) =============== */
/* Fleet's bulk bar and the portal's tickets bar: "3 Selected", the actions, a clear ×.
   umbra.js shows it on the table's umbra:selection event and hides it at 0. */
.u-bulkbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 44px; padding: 6px 6px 6px 12px; border-radius: var(--u-r-lg); border: 1px solid var(--u-hair2); background: var(--u-lv3); box-shadow: var(--u-sh-pop); color: var(--u-t1); animation: u-bulk-in .25s var(--u-ease); }
.u-bulkbar[hidden] { display: none; }
.u-bulkbar.is-closing { animation: u-bulk-out .15s ease-in forwards; }
.u-bulkbar-n { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.u-bulkbar-n > .u-i { color: var(--u-blue-t); }
.u-bulkbar-acts { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.u-bulkbar-sep { width: 1px; height: 18px; background: var(--u-hair2); flex: none; }
/* Floats over the end of the list and stays in view while a long table scrolls past.
   The negative top margin cancels its own height, so showing it moves nothing on the page. */
.u-bulkbar--float { position: sticky; bottom: 16px; z-index: var(--u-z-sticky); width: fit-content; max-width: calc(100% - 24px); margin: -56px auto 12px; }
@keyframes u-bulk-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes u-bulk-out { to { opacity: 0; transform: translateY(6px) scale(.98); } }

/* =============== Row actions (⋯) =============== */
.u-table .u-td-act { width: 40px; padding: 0 6px; text-align: right; }
/* Shows on row hover or keyboard focus; stays while its menu is open. */
.u-rowact { opacity: 0; transition: opacity var(--u-fast) var(--u-ease), transform .2s var(--u-ease); }
tr:hover .u-rowact, tr:focus-within .u-rowact, .u-rowact[aria-expanded="true"], .u-li:hover .u-rowact, .u-li:focus-within .u-rowact { opacity: 1; }
/* Touch screens have no hover, so the button is always there (his rule: phone first-class). */
@media (hover: none) { .u-rowact { opacity: 1; } }

/* =============== Group rows (Task Manager, devices by client) =============== */
.u-table tr.u-tr-group { cursor: pointer; background: var(--u-hover); }
.u-table tr.u-tr-group:hover { background: var(--u-active); }
.u-table tr.u-tr-group > td { color: var(--u-t1); font-weight: 500; }
.u-table tr.u-tr-group:focus-visible { outline-offset: -2px; border-radius: 0; }
.u-tr-gname { display: inline-flex; align-items: center; gap: 8px; vertical-align: middle; }
.u-tr-gname .u-count { font-weight: 500; }
.u-tr-chev { width: 14px; height: 14px; color: var(--u-t3); transition: transform .25s var(--u-ease); }
.u-tr-group[aria-expanded="true"] .u-tr-chev { transform: rotate(90deg); }
.u-tr-gmeta { margin-left: 4px; color: var(--u-t3); font-weight: 400; font-size: var(--u-fs-sm); }
/* Child rows sit under the group's name: 14px chevron + 8px gap. */
.u-table tr.u-tr-child > .u-td-main, .u-table tr.u-tr-child > .u-td-ind { padding-left: 34px; }
.u-table tr.u-tr-child:not([hidden]) { animation: u-fade .2s var(--u-ease); }

/* =============== Cells: bar in a cell, wrapping text, unknown values =============== */
.u-table .u-td-bar { text-align: right; }
.u-cellbar { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; vertical-align: middle; }
.u-cellbar > b { min-width: 46px; color: var(--u-t1); font: 500 var(--u-fs-sm) var(--u-f-mono); font-variant-numeric: tabular-nums; text-align: right; }
.u-cellbar > .u-progress { width: 56px; height: 4px; flex: none; }
.u-table .u-td-wrap { white-space: normal; line-height: 1.4; padding-top: 8px; padding-bottom: 8px; }
.u-td-sub { display: block; color: var(--u-t3); font-size: var(--u-fs-sm); font-weight: 400; }
/* Honest UI: an unknown value reads as words, never as 0. */
.u-unknown { color: var(--u-t3); font-weight: 400; }
.u-stat-v.u-unknown { font: 500 var(--u-fs-lg)/1.5 var(--u-f-ui); letter-spacing: 0; }
.u-cellbar > b.u-unknown { color: var(--u-t3); }
/* A meter with no reading: no fill, a dotted track, so it can't be mistaken for 0%. */
.u-progress.is-unknown { background: repeating-linear-gradient(90deg, var(--u-hair3) 0 2px, transparent 2px 5px); box-shadow: none; }
.u-progress.is-unknown > i { display: none; }

/* =============== Striped progress: "installing now" =============== */
/* The fill is scaled with scaleX(--v); its stripes are scaled back by 1/--v so they keep their
   size, and they move with transform only. */
.u-progress--striped > i { overflow: hidden; }
.u-progress--striped > i::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: calc(100% + 24px); --str: calc(1 / max(var(--v, 1), .02)); transform-origin: 0 0; transform: scaleX(var(--str)) translateX(-12px);
  background-image: linear-gradient(135deg, rgba(255,255,255,.28) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.28) 50%, rgba(255,255,255,.28) 75%, transparent 75%); background-size: 12px 12px; animation: u-stripe .7s linear infinite; }
@keyframes u-stripe { to { transform: scaleX(var(--str)) translateX(0); } }

/* =============== Table states: loading, no matches, error =============== */
.u-table tr.u-tr-skel td { height: var(--u-row); }
.u-table--dense tr.u-tr-skel td { height: var(--u-row-dense); }
.u-tr-skel .u-skel { max-width: 100%; }
.u-table tbody tr.u-tr-state:hover { background: transparent; }
.u-table tr.u-tr-state > td { height: auto; padding: 0; white-space: normal; }
.u-tstate { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 28px 16px; text-align: center; }
.u-tstate-ic { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 6px; border-radius: 10px; border: 1px solid var(--u-hair2); background: var(--u-lv3); box-shadow: var(--u-sh-card); color: var(--u-t2); }
.u-tstate-ic.is-bad { color: var(--u-bad-t); }
.u-tstate b { color: var(--u-t1); font-weight: 500; }
.u-tstate span { max-width: 360px; color: var(--u-t3); font-size: var(--u-fs-sm); }
.u-tstate .u-btn { margin-top: 8px; }

/* =============== Phone: rows become cards =============== */
@media (max-width: 640px) {
  .u-tablewrap:has(> .u-table--cards) { border: 0; background: none; box-shadow: none; overflow: visible; }
  .u-table--cards, .u-table--cards > tbody, .u-table--cards > tbody > tr, .u-table--cards > tbody > tr > td { display: block; }
  .u-table--cards > thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .u-table--cards > tbody { display: flex; flex-direction: column; gap: 8px; }
  .u-table--cards > tbody[hidden] { display: none; }
  .u-table--cards > tbody > tr { position: relative; padding: 8px 0; border: 1px solid var(--u-hair); border-radius: var(--u-r-md); background: var(--u-lv2); box-shadow: var(--u-sh-row); }
  .u-table--cards > tbody > tr[hidden] { display: none; }
  .u-table--cards > tbody > tr > td { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: auto; min-height: 30px; padding: 2px 14px; border: 0; white-space: normal; text-align: right; overflow-wrap: anywhere; }
  .u-table--cards > tbody > tr > td[data-label]::before { content: attr(data-label); flex: none; color: var(--u-t3); font: 400 var(--u-fs-sm) var(--u-f-ui); text-align: left; }
  .u-table--cards > tbody > tr > td.u-td-main { justify-content: flex-start; min-height: 36px; padding-right: 56px; font-size: var(--u-fs-md); text-align: left; }
  .u-table--cards > tbody > tr > td.u-td-check { position: absolute; top: 8px; left: 12px; width: auto; min-height: 36px; padding: 0; }
  .u-table--cards > tbody > tr:has(> .u-td-check) > td.u-td-main { padding-left: 44px; }
  .u-table--cards > tbody > tr > td.u-td-act { position: absolute; top: 6px; right: 6px; width: auto; padding: 0; }
  .u-table--cards > tbody > tr.is-selected > td:first-child { box-shadow: none; }
  .u-table--cards > tbody > tr.is-selected { border-color: var(--u-blue); }
  /* Group rows turn into small headings over their cards. */
  .u-table--cards > tbody > tr.u-tr-group { padding: 10px 4px 2px; border: 0; background: none; box-shadow: none; }
  .u-table--cards > tbody > tr.u-tr-group > td { padding: 0; min-height: 32px; justify-content: flex-start; text-align: left; }
  .u-table--cards > tbody > tr.u-tr-group > td:empty { display: none; }
  .u-table--cards > tbody > tr.u-tr-child > td.u-td-main { padding-left: 14px; }
  .u-table--cards > tbody > tr.u-tr-child:has(> .u-td-check) > td.u-td-main { padding-left: 44px; }
  .u-table--cards > tbody > tr.u-tr-state, .u-table--cards > tbody > tr.u-tr-skel { padding: 0; }
  .u-table--cards > tbody > tr.u-tr-skel > td { min-height: 36px; }
  .u-table--cards > tbody > tr.u-tr-state > td { display: block; padding: 0; }
  .u-rowact { opacity: 1; }
  .u-table--cards .u-rowact { --h: 40px; }
  .u-bulkbar { padding: 6px 6px 6px 12px; }
  /* Icon-only actions on a phone; the words stay for screen readers and tooltips. */
  .u-bulkbar-acts .u-btn { width: var(--h); padding: 0; }
  .u-bulkbar-acts .u-btn > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .u-bulkbar--float { margin-top: -64px; }
}
@container u-frame (max-width: 640px) {
  .u-tablewrap:has(> .u-table--cards) { border: 0; background: none; box-shadow: none; overflow: visible; }
  .u-table--cards, .u-table--cards > tbody, .u-table--cards > tbody > tr, .u-table--cards > tbody > tr > td { display: block; }
  .u-table--cards > thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .u-table--cards > tbody { display: flex; flex-direction: column; gap: 8px; }
  .u-table--cards > tbody[hidden] { display: none; }
  .u-table--cards > tbody > tr { position: relative; padding: 8px 0; border: 1px solid var(--u-hair); border-radius: var(--u-r-md); background: var(--u-lv2); box-shadow: var(--u-sh-row); }
  .u-table--cards > tbody > tr[hidden] { display: none; }
  .u-table--cards > tbody > tr > td { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: auto; min-height: 30px; padding: 2px 14px; border: 0; white-space: normal; text-align: right; overflow-wrap: anywhere; }
  .u-table--cards > tbody > tr > td[data-label]::before { content: attr(data-label); flex: none; color: var(--u-t3); font: 400 var(--u-fs-sm) var(--u-f-ui); text-align: left; }
  .u-table--cards > tbody > tr > td.u-td-main { justify-content: flex-start; min-height: 36px; padding-right: 56px; font-size: var(--u-fs-md); text-align: left; }
  .u-table--cards > tbody > tr > td.u-td-check { position: absolute; top: 8px; left: 12px; width: auto; min-height: 36px; padding: 0; }
  .u-table--cards > tbody > tr:has(> .u-td-check) > td.u-td-main { padding-left: 44px; }
  .u-table--cards > tbody > tr > td.u-td-act { position: absolute; top: 6px; right: 6px; width: auto; padding: 0; }
  .u-table--cards > tbody > tr.is-selected > td:first-child { box-shadow: none; }
  .u-table--cards > tbody > tr.is-selected { border-color: var(--u-blue); }
  /* Group rows turn into small headings over their cards. */
  .u-table--cards > tbody > tr.u-tr-group { padding: 10px 4px 2px; border: 0; background: none; box-shadow: none; }
  .u-table--cards > tbody > tr.u-tr-group > td { padding: 0; min-height: 32px; justify-content: flex-start; text-align: left; }
  .u-table--cards > tbody > tr.u-tr-group > td:empty { display: none; }
  .u-table--cards > tbody > tr.u-tr-child > td.u-td-main { padding-left: 14px; }
  .u-table--cards > tbody > tr.u-tr-child:has(> .u-td-check) > td.u-td-main { padding-left: 44px; }
  .u-table--cards > tbody > tr.u-tr-state, .u-table--cards > tbody > tr.u-tr-skel { padding: 0; }
  .u-table--cards > tbody > tr.u-tr-skel > td { min-height: 36px; }
  .u-table--cards > tbody > tr.u-tr-state > td { display: block; padding: 0; }
  .u-rowact { opacity: 1; }
  .u-table--cards .u-rowact { --h: 40px; }
  .u-bulkbar { padding: 6px 6px 6px 12px; }
  /* Icon-only actions on a phone; the words stay for screen readers and tooltips. */
  .u-bulkbar-acts .u-btn { width: var(--h); padding: 0; }
  .u-bulkbar-acts .u-btn > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .u-bulkbar--float { margin-top: -64px; }
}

/* =============== Job progress, one row per machine =============== */
.u-runlist { margin: 0; padding: 0; list-style: none; }
.u-run { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "m pct badge" "bar bar bar" "note note note"; align-items: center; column-gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--u-hair); }
.u-run:last-child { border-bottom: 0; }
.u-run-m { grid-area: m; display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.u-run-name { color: var(--u-t1); font: 500 var(--u-fs) var(--u-f-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.u-run-sub { color: var(--u-t3); font-size: var(--u-fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.u-run-pct { grid-area: pct; color: var(--u-t2); font: 500 var(--u-fs-xs) var(--u-f-mono); font-variant-numeric: tabular-nums; }
.u-run > .u-badge { grid-area: badge; }
.u-run > .u-progress { grid-area: bar; margin-top: 8px; height: 4px; }
.u-run-note { grid-area: note; margin-top: 6px; color: var(--u-t3); font-size: var(--u-fs-sm); overflow-wrap: anywhere; }
.u-run-note:empty { display: none; }
.u-run[data-state="failed"] .u-run-note { color: var(--u-bad-t); }
.u-run[data-state="offline"] .u-run-note { color: var(--u-warn-t); }
.u-run[data-state="queued"] .u-run-name, .u-run[data-state="skipped"] .u-run-name { color: var(--u-t2); }
/* Summary: "12 Done · 2 Failed · 3 Running" */
.u-runsum { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; color: var(--u-t3); font-size: var(--u-fs-sm); }
.u-runsum > span { display: inline-flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.u-runsum > span + span::before { content: "·"; margin: 0 8px; color: var(--u-t4); }
.u-runsum b { color: var(--u-t1); font: 600 var(--u-fs) var(--u-f-mono); font-variant-numeric: tabular-nums; }
.u-runsum .is-done b { color: var(--u-ok-t); } .u-runsum .is-failed b { color: var(--u-bad-t); }
.u-runsum .is-running b { color: var(--u-blue-t); } .u-runsum .is-offline b { color: var(--u-warn-t); }

/* =============== Agent plan, the steps of a longer piece of work (.u-plan, Umbra.plan) ===============
   From the Fennel research-agent shot; Enzo picked it on Nov 21 2026 ("Just 1 and 3"). One
   card for work that runs in steps, planned by a person or by an assistant: every step,
   the work running side by side inside the current step (each part with its own bar),
   and one live line that says exactly what is happening right now. It goes inside a
   .u-card, a chat message or a panel. In Fleet Console it sits above the job's
   .u-runlist, never instead of it: the run list stays the per-machine detail.
   Step and part states reuse the run list's words (queued, running, done, failed,
   skipped) plus stopped, so an app maps one set of words onto both. */
.u-plan { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; min-width: 0; }
.u-plan-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.u-plan-h > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.u-plan-t { color: var(--u-t1); font: 600 var(--u-fs-md)/1.35 var(--u-f-ui); overflow-wrap: anywhere; }
.u-plan-m { color: var(--u-t3); font-size: var(--u-fs-sm); }
/* Time since the plan started: Umbra.plan keeps it ticking while the plan runs. */
.u-plan-time { flex: none; display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--u-r-sm); border: 1px solid var(--u-hair); background: var(--u-lv1); color: var(--u-t2); font: 500 var(--u-fs-xs) var(--u-f-mono); font-variant-numeric: tabular-nums; }
.u-plan-time:empty { display: none; }

.u-plan-steps { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.u-plan-step { position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: 10px; padding-bottom: 12px; }
.u-plan-step:last-child { padding-bottom: 0; }
/* The line joining one step to the next; green once the step is done. */
.u-plan-step:not(:last-child)::before { content: ""; position: absolute; left: 9.5px; top: 24px; bottom: 4px; width: 1px; background: var(--u-hair2); }
.u-plan-step[data-state="done"]:not(:last-child)::before { background: color-mix(in srgb, var(--u-ok) 45%, var(--u-hair2)); }
.u-plan-dot { position: relative; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--u-hair3); color: var(--u-t4); }
.u-plan-dot > .u-i { width: 12px; height: 12px; }
.u-plan-step[data-state="done"] > .u-plan-dot { border-color: var(--u-ok); background: var(--u-ok-10); color: var(--u-ok-t); }
.u-plan-step[data-state="running"] > .u-plan-dot { border-color: var(--u-blue); color: var(--u-blue-t); }
.u-plan-step[data-state="failed"] > .u-plan-dot { border-color: var(--u-bad); background: var(--u-bad-10); color: var(--u-bad-t); }
.u-plan-step[data-state="stopped"] > .u-plan-dot { border-color: var(--u-warn); background: var(--u-warn-10); color: var(--u-warn-t); }
.u-plan-step[data-state="skipped"] > .u-plan-dot { border-style: dashed; }
/* The current step breathes: a ring that grows and fades (transform and opacity only). */
.u-plan-step[data-state="running"] > .u-plan-dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid var(--u-blue); opacity: 0; animation: u-plan-ping 2.2s var(--u-ease) infinite; }
@keyframes u-plan-ping { 0% { opacity: .55; transform: scale(.7); } 100% { opacity: 0; transform: scale(1.25); } }
.u-plan-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-height: 20px; line-height: 20px; }
.u-plan-name { min-width: 0; color: var(--u-t1); font-size: var(--u-fs); overflow-wrap: anywhere; }
.u-plan-step[data-state="queued"] .u-plan-name, .u-plan-step[data-state="skipped"] .u-plan-name { color: var(--u-t3); }
.u-plan-count { flex: none; color: var(--u-t3); font: 500 var(--u-fs-xs) var(--u-f-mono); font-variant-numeric: tabular-nums; }
/* One line under a step: why it failed, why it was skipped, where it stopped. */
.u-plan-why { grid-column: 2; margin-top: 2px; color: var(--u-t3); font-size: var(--u-fs-sm); overflow-wrap: anywhere; }
.u-plan-why:empty { display: none; }
.u-plan-step[data-state="failed"] > .u-plan-why { color: var(--u-bad-t); }
.u-plan-step[data-state="stopped"] > .u-plan-why { color: var(--u-warn-t); }

/* The work inside the current step. Shown while that step runs, and kept on a step that
   stopped or failed so the reader sees how far it got. */
.u-plan-work { grid-column: 2; display: flex; flex-direction: column; gap: 9px; margin-top: 8px; padding: 10px 12px; border-radius: var(--u-r-md); border: 1px solid var(--u-hair); background: var(--u-sunken); min-width: 0; }
.u-plan-step:not([data-state="running"]):not([data-state="stopped"]):not([data-state="failed"]) > .u-plan-work { display: none; }
.u-plan-part { display: grid; grid-template-columns: minmax(0, 1fr) minmax(56px, 96px) 40px; align-items: center; gap: 10px; font-size: var(--u-fs); }
.u-plan-part-n { min-width: 0; color: var(--u-t1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-plan-part > .u-progress { height: 4px; }
.u-plan-part-c { color: var(--u-t2); font: 500 var(--u-fs-xs) var(--u-f-mono); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.u-plan-part[data-state="queued"] .u-plan-part-n, .u-plan-part[data-state="queued"] .u-plan-part-c { color: var(--u-t3); }
.u-plan-part[data-state="queued"] > .u-progress { opacity: .5; }
.u-plan-part[data-state="failed"] .u-plan-part-c { color: var(--u-bad-t); }
/* The live line: what is happening this second. Umbra.plan.now() fades the old words out
   and the new ones in. */
.u-plan-now { display: flex; align-items: center; gap: 8px; min-width: 0; padding-top: 9px; border-top: 1px solid var(--u-hair); color: var(--u-t2); font-size: var(--u-fs-sm); }
.u-plan-now:first-child { padding-top: 0; border-top: 0; }
.u-plan-now > .u-spin { color: var(--u-blue-t); }
.u-plan-now-t { min-width: 0; overflow-wrap: anywhere; transition: opacity var(--u-fast) var(--u-ease); }
.u-plan-now-t.is-swap { opacity: 0; }
.u-plan-now b { color: var(--u-t1); font-weight: 500; }
.u-plan-now:has(> .u-plan-now-t:empty) { display: none; }
.u-plan[data-state="stopped"] .u-plan-now > .u-spin, .u-plan[data-state="done"] .u-plan-now > .u-spin { display: none; }

/* Notes the person added while it ran ("Add a note to the plan"). Shown as they land. */
.u-plan-notes { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.u-plan-notes:empty { display: none; }
.u-plan-note { display: flex; align-items: flex-start; gap: 8px; padding: 7px 10px; border-radius: var(--u-r-md); background: var(--u-blue-10); color: var(--u-t1); font-size: var(--u-fs-sm); line-height: 1.45; overflow-wrap: anywhere; animation: u-rise var(--u-med) var(--u-ease); }
.u-plan-note > .u-i { flex: none; width: 14px; height: 14px; margin-top: 1px; color: var(--u-blue-t); }

.u-plan-f { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding-top: 10px; border-top: 1px solid var(--u-hair); color: var(--u-t3); font-size: var(--u-fs-xs); }
/* "Plan approved 10:42 AM by Enzo": who said go, and when. */
.u-plan-ok { display: inline-flex; align-items: center; gap: 6px; }
.u-plan-ok > .u-i { width: 13px; height: 13px; color: var(--u-ok-t); }
@media (max-width: 480px) {
  .u-plan { padding: 12px; }
  .u-plan-part { grid-template-columns: minmax(0, 1fr) 56px 36px; gap: 8px; }
}
@container u-frame (max-width: 480px) {
  .u-plan { padding: 12px; }
  .u-plan-part { grid-template-columns: minmax(0, 1fr) 56px 36px; gap: 8px; }
}

/* =============== Run output (always dark, like the terminal) =============== */
.u-output { position: relative; min-width: 0; max-width: 100%; display: flex; flex-direction: column; border-radius: var(--u-r-lg); border: 1px solid var(--u-term-bd); background: var(--u-term-bg); color: var(--u-term-fg); box-shadow: 0 1px 2px rgba(0,0,0,.35), 0 18px 36px -18px rgba(0,0,0,.6); overflow: hidden; color-scheme: dark; }
.u-output-h { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 6px 6px 12px; background: var(--u-term-bar); border-bottom: 1px solid var(--u-term-bd); font-size: var(--u-fs-sm); }
.u-output-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--u-term-fg); font-weight: 500; }
.u-output-time { color: var(--u-term-dim); font: 500 var(--u-fs-xs) var(--u-f-mono); font-variant-numeric: tabular-nums; }
.u-output-acts { display: flex; align-items: center; gap: 4px; }
/* Badges and buttons here use the terminal's own colours: they sit on a dark bar in both themes. */
.u-output .u-badge { --c: var(--u-term-dim); --bg: color-mix(in srgb, var(--c) 16%, transparent); }
.u-output[data-state="running"] .u-badge { --c: var(--u-term-blue); }
.u-output[data-state="done"] .u-badge { --c: var(--u-term-green); }
.u-output[data-state="failed"] .u-badge { --c: var(--u-term-red); }
.u-output[data-state="stopped"] .u-badge { --c: var(--u-term-yellow); }
.u-output .u-ibtn { --h: 24px; color: var(--u-term-dim); }
.u-output .u-ibtn:hover { color: var(--u-term-fg); }
.u-output .u-ibtn::after { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.1); box-shadow: none; }
.u-output .u-btn { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); box-shadow: none; color: var(--u-term-fg); }
.u-output .u-btn::after { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); box-shadow: none; }
.u-output .u-output-stop { color: var(--u-term-red); }
.u-output-b { height: 240px; overflow: auto; padding: 10px 14px; font: 12.5px/1.6 var(--u-f-mono); white-space: pre-wrap; word-break: break-word; scrollbar-color: rgba(255,255,255,.2) transparent; }
.u-output-b::-webkit-scrollbar-thumb { background: rgba(255,255,255,.16); }
.u-output-b:focus-visible { outline: 2px solid var(--u-term-blue); outline-offset: -2px; border-radius: 0; }
.u-output .is-dim { color: var(--u-term-dim); } .u-output .is-ok { color: var(--u-term-green); } .u-output .is-err { color: var(--u-term-red); }
.u-output .is-warn { color: var(--u-term-yellow); } .u-output .is-info { color: var(--u-term-blue); }
/* Shown when the reader scrolled up while new lines keep arriving. */
.u-output-jump { position: absolute; left: 0; right: 0; bottom: 12px; width: fit-content; margin: 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 12px; border-radius: 99px; border: 1px solid rgba(255,255,255,.16); background: var(--u-term-bar); color: var(--u-term-fg); box-shadow: 0 6px 16px -6px rgba(0,0,0,.7); font: 500 var(--u-fs-sm) var(--u-f-ui); animation: u-rise var(--u-med) var(--u-ease); }
.u-output-jump:hover { border-color: rgba(255,255,255,.28); }
.u-output-jump[hidden] { display: none; }
.u-output-jump > span { line-height: 1; }

/* =============== Log rows (audit history) =============== */
.u-log { margin: 0; padding: 0; list-style: none; container-type: inline-size; }
.u-logrow { display: grid; grid-template-columns: 128px 72px minmax(80px, 140px) minmax(0, 1fr); align-items: baseline; gap: 12px; padding: 8px 14px; border-bottom: 1px solid var(--u-hair); font-size: var(--u-fs); }
.u-logrow:last-child { border-bottom: 0; }
.u-logrow:hover { background: var(--u-hover); }
.u-log-time { color: var(--u-t3); font: var(--u-fs-xs) var(--u-f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.u-log-src { color: var(--u-t2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-log-msg { color: var(--u-t1); overflow-wrap: anywhere; min-width: 0; }
.u-lvl { --c: var(--u-t3); display: inline-flex; align-items: center; gap: 6px; color: var(--c); font-size: var(--u-fs-xs); font-weight: 500; white-space: nowrap; }
.u-lvl::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.u-lvl--info { --c: var(--u-blue-t); } .u-lvl--ok { --c: var(--u-ok-t); } .u-lvl--warn { --c: var(--u-warn-t); } .u-lvl--bad { --c: var(--u-bad-t); }
/* Stacks by the list's own width, not the screen's: a log in a narrow side card squeezed
   the message into a 20px column and the card grew a screen tall. */
@container (max-width: 560px) {
  .u-logrow { grid-template-columns: auto 1fr; grid-template-areas: "time lvl" "msg msg" "src src"; gap: 2px 10px; }
  .u-log-time { grid-area: time; } .u-logrow > .u-lvl { grid-area: lvl; justify-self: end; }
  .u-log-msg { grid-area: msg; } .u-log-src { grid-area: src; font-size: var(--u-fs-sm); color: var(--u-t3); }
}

/* =============== Invoice line items and totals =============== */
.u-table tfoot td { height: 34px; padding: 0 12px; color: var(--u-t2); border-bottom: 0; white-space: nowrap; }
.u-table tfoot tr:first-child td { border-top: 1px solid var(--u-hair); }
.u-table tfoot .u-td-label { text-align: right; color: var(--u-t3); }
.u-table tfoot tr.u-tr-total td { height: 46px; border-top: 1px solid var(--u-hair2); color: var(--u-t1); font-size: var(--u-fs-md); font-weight: 600; }
.u-table tfoot tr.u-tr-total .u-td-label { color: var(--u-t1); }
.u-invoice-h { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 24px; padding: 14px; border-bottom: 1px solid var(--u-hair); }
.u-invoice-amt { margin-left: auto; text-align: right; }
.u-invoice-amt b { display: block; color: var(--u-t1); font: 600 var(--u-fs-2xl)/1.1 var(--u-f-mono); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.u-invoice-amt span { color: var(--u-t3); font-size: var(--u-fs-sm); }
@media (max-width: 640px) {
  .u-invoice-amt { margin-left: 0; text-align: left; width: 100%; }
  .u-table--cards > tfoot { display: block; margin-top: 8px; border-radius: var(--u-r-md); border: 1px solid var(--u-hair); background: var(--u-lv2); }
  .u-table--cards > tfoot > tr { display: flex; justify-content: space-between; }
  .u-table--cards > tfoot > tr > td { display: flex; align-items: center; height: 38px; border-top: 0; }
  .u-table--cards > tfoot > tr > td:empty { display: none; }
  /* a long label ("Credit Applied (October Overpayment)") wraps; the amount never moves */
  .u-table--cards > tfoot > tr > td.u-td-label { flex: 1; min-width: 0; height: auto; min-height: 38px; padding-top: 6px; padding-bottom: 6px; white-space: normal; text-align: left; }
  .u-table--cards > tfoot > tr > td.u-td-num { flex: none; }
  .u-table--cards > tfoot > tr.u-tr-total { border-top: 1px solid var(--u-hair2); }
  .u-table--cards > tfoot > tr.u-tr-total > td { border-top: 0; }
}
@container u-frame (max-width: 640px) {
  .u-invoice-amt { margin-left: 0; text-align: left; width: 100%; }
  .u-table--cards > tfoot { display: block; margin-top: 8px; border-radius: var(--u-r-md); border: 1px solid var(--u-hair); background: var(--u-lv2); }
  .u-table--cards > tfoot > tr { display: flex; justify-content: space-between; }
  .u-table--cards > tfoot > tr > td { display: flex; align-items: center; height: 38px; border-top: 0; }
  .u-table--cards > tfoot > tr > td:empty { display: none; }
  /* a long label ("Credit Applied (October Overpayment)") wraps; the amount never moves */
  .u-table--cards > tfoot > tr > td.u-td-label { flex: 1; min-width: 0; height: auto; min-height: 38px; padding-top: 6px; padding-bottom: 6px; white-space: normal; text-align: left; }
  .u-table--cards > tfoot > tr > td.u-td-num { flex: none; }
  .u-table--cards > tfoot > tr.u-tr-total { border-top: 1px solid var(--u-hair2); }
  .u-table--cards > tfoot > tr.u-tr-total > td { border-top: 0; }
}

/* =============== Settings page =============== */
.u-settings { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: start; }
.u-setnav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 12px; }
.u-setnav .u-side-i[aria-current="page"] { background: var(--u-lv3); color: var(--u-t1); border-color: var(--u-hair); box-shadow: var(--u-sh-row); }
.u-setnav .u-side-i[aria-current="page"] > .u-i { color: var(--u-blue-t); }
.u-setmain { min-width: 0; }
.u-setsec + .u-setsec { margin-top: 28px; }
.u-setsec-h { padding-bottom: 10px; border-bottom: 1px solid var(--u-hair); }
.u-setsec-h h3, .u-setsec-h h4 { margin: 0; color: var(--u-t1); font-size: var(--u-fs-md); font-weight: 500; }
.u-setsec-h p { margin: 2px 0 0; color: var(--u-t3); font-size: var(--u-fs-sm); }
.u-setrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 24px; padding: 14px 0; border-bottom: 1px solid var(--u-hair); }
.u-setrow-l { min-width: 0; }
.u-setrow-l > label, .u-setrow-l > b, .u-setrow-l > .u-setrow-t { display: block; color: var(--u-t1); font-weight: 500; }
.u-setrow-l > p { margin: 2px 0 0; color: var(--u-t3); font-size: var(--u-fs-sm); max-width: 520px; }
.u-setrow-c { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }
.u-setrow-c > .u-input, .u-setrow-c > .u-inwrap, .u-setrow-c > .u-selbtn { width: 240px; }
.u-setrow--danger .u-setrow-l > label, .u-setrow--danger .u-setrow-l > b { color: var(--u-bad-t); }
/* Unsaved changes: slides up when a control changes, goes on save or discard. */
.u-savebar { position: sticky; bottom: 16px; z-index: var(--u-z-sticky); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; padding: 8px 8px 8px 14px; border-radius: var(--u-r-lg); border: 1px solid var(--u-hair2); background: var(--u-lv3); box-shadow: var(--u-sh-pop); animation: u-bulk-in .25s var(--u-ease); }
.u-savebar[hidden] { display: none; }
.u-savebar.is-closing { animation: u-bulk-out .15s ease-in forwards; }
.u-savebar-t { display: inline-flex; align-items: center; gap: 8px; color: var(--u-t1); font-weight: 500; }
.u-savebar-t::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--u-warn); box-shadow: 0 0 0 3px var(--u-warn-10); }
.u-savebar-acts { display: flex; gap: 6px; margin-left: auto; }
@media (max-width: 760px) {
  .u-settings { grid-template-columns: 1fr; gap: 14px; }
  /* The nav turns into a strip of sliding chips at the top */
  .u-setnav { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 4px; padding-bottom: 2px; }
  .u-setnav::-webkit-scrollbar { display: none; }
  .u-setnav .u-side-h { display: none; }
  .u-setnav .u-side-i { width: auto; flex: none; }
}
@container u-frame (max-width: 760px) {
  .u-settings { grid-template-columns: 1fr; gap: 14px; }
  /* The nav turns into a strip of sliding chips at the top */
  .u-setnav { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 4px; padding-bottom: 2px; }
  .u-setnav::-webkit-scrollbar { display: none; }
  .u-setnav .u-side-h { display: none; }
  .u-setnav .u-side-i { width: auto; flex: none; }
}
@media (max-width: 640px) {
  .u-setnav .u-side-i { height: 40px; }
  /* Rows stack: words first, control under them full width. A lone switch stays on the right. */
  .u-setrow { grid-template-columns: 1fr; }
  .u-setrow-c { justify-content: stretch; }
  .u-setrow-c > .u-input, .u-setrow-c > .u-inwrap, .u-setrow-c > .u-selbtn { width: 100%; flex: 1; }
  .u-setrow:has(> .u-setrow-c > .u-switch:only-child) { grid-template-columns: minmax(0, 1fr) auto; }
  .u-savebar-acts { width: 100%; }
  .u-savebar-acts > .u-btn { flex: 1; }
}
@container u-frame (max-width: 640px) {
  .u-setnav .u-side-i { height: 40px; }
  /* Rows stack: words first, control under them full width. A lone switch stays on the right. */
  .u-setrow { grid-template-columns: 1fr; }
  .u-setrow-c { justify-content: stretch; }
  .u-setrow-c > .u-input, .u-setrow-c > .u-inwrap, .u-setrow-c > .u-selbtn { width: 100%; flex: 1; }
  .u-setrow:has(> .u-setrow-c > .u-switch:only-child) { grid-template-columns: minmax(0, 1fr) auto; }
  .u-savebar-acts { width: 100%; }
  .u-savebar-acts > .u-btn { flex: 1; }
}

/* =============== Color themes (0.8.2, from Inbox Mail's Color Theme settings, Nov 22) ===============
   Six pieces for an app that lets people pick their own colors:
   .u-colorbtn + .u-colorpick  a color row's button and its picker (palette, code, system dialog, back to default)
   [data-u-th-side] / -top / -acc  the theme layer: one color or gradient across the rail and side panel
                                (and the top bar), with text re-derived so it always reads; the accent
                                feeds --u-blue while filled buttons stay ITX blue (--u-bp-* never change)
   .u-thmini                   a theme preview tile: a tiny app in the theme's colors, inside .u-swpick-sw
   .u-rdchip                   what the app did to keep text readable, with the contrast ratio
   .u-infonote                 a quiet note on a sunken ground, softer than .u-alert
   .u-stackbar                 one bar split by kind (storage by mail and files), with a legend
   Umbra.colorTheme does the math (contrast, readable, readablePair) and applies or clears the layer. */

/* ---------- Color button: swatch, name, code ---------- */
.u-colorbtn { display: inline-flex; align-items: center; gap: 8px; min-width: 168px; max-width: 100%; height: var(--u-ctl); padding: 0 8px 0 4px; border: 1px solid var(--u-ctl-bd); border-radius: var(--u-r); background: var(--u-fld); box-shadow: var(--u-fld-in); color: var(--u-t1); font: 500 var(--u-fs-sm)/1 var(--u-f-ui); cursor: pointer; }
.u-colorbtn:hover { border-color: var(--u-t4); }
.u-colorbtn:focus-visible { outline: 0; border-color: var(--u-blue); box-shadow: var(--u-fld-in), var(--u-ring); } /* a blue edge, as a dropdown shows (0.13.0) */
.u-colorbtn-sw { flex: none; width: 20px; height: 20px; border-radius: var(--u-r-sm); background: var(--c, var(--u-lv0)); box-shadow: inset 0 0 0 1px var(--u-hair2); }
/* Automatic (follows light or dark) and Off (no color yet) */
.u-colorbtn-sw.is-auto { background: linear-gradient(135deg, var(--u-lv0) 50%, var(--u-t1) 50%); }
.u-colorbtn-sw.is-off { background: repeating-linear-gradient(135deg, var(--u-sunken) 0 3px, var(--u-hair) 3px 6px); }
.u-colorbtn-l { flex: 1; min-width: 0; overflow: hidden; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.u-colorbtn-hx { color: var(--u-t3); font: 500 var(--u-fs-xs)/1 var(--u-f-ui); font-variant-numeric: tabular-nums; text-transform: uppercase; }
.u-colorbtn > .u-i { flex: none; width: 13px; height: 13px; color: var(--u-t3); }
.u-setrow-c > .u-colorbtn { width: 240px; }

/* ---------- Color picker: a .u-pop with a palette, a code field, More and back to default ---------- */
.u-pop.u-colorpick { display: flex; flex-direction: column; gap: 10px; width: 236px; }
.u-colorpick-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--u-t1); font: 600 var(--u-fs-sm)/1.2 var(--u-f-ui); }
.u-colorpick-h > .u-ibtn { margin: -4px -4px -4px 0; }
.u-colorpick-pal { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.u-colorpick-pal > button { aspect-ratio: 1; padding: 0; border: 0; border-radius: var(--u-r-sm); background: var(--c); box-shadow: inset 0 0 0 1px var(--u-hair); cursor: pointer; transition: transform var(--u-fast) var(--u-ease); }
.u-colorpick-pal > button:hover { transform: scale(1.08); }
.u-colorpick-pal > button[aria-pressed="true"], .u-colorpick-pal > button:focus-visible { outline: 0; box-shadow: 0 0 0 2px var(--u-lv3), 0 0 0 4px var(--u-t1); }
.u-colorpick-row { display: flex; gap: 6px; }
.u-colorpick-hex { flex: 1; min-width: 0; padding-left: 8px; }
.u-colorpick-hex > span { color: var(--u-t3); }
.u-colorpick-hex input { min-width: 0; font-variant-numeric: tabular-nums; text-transform: uppercase; }
/* More: the system's own color dialog, under a normal Umbra button */
.u-colorpick-more { position: relative; overflow: hidden; }
.u-colorpick-more > input[type="color"] { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.u-colorpick-more:has(> input:focus-visible) { box-shadow: var(--u-ring); }
.u-colorpick-reset { justify-content: flex-start; }

/* ---------- Theme layer ----------
   Umbra.colorTheme.apply(root, theme) writes --th-* on the root and sets data-u-th-side, -grad,
   -top and -acc for the parts the theme reaches; nothing here applies until then, so the default
   look never changes. The rail and the side panel share one gradient laid over both as one piece:
   the rail draws its first --th-rail-w, the panel the rest (--th-zone-w is the two together).
   Never themed: red buttons, status colours, the terminal, and filled blue buttons (--u-bp-*). */
[data-u-th-side] .u-rail, [data-u-th-side] .u-sidebar, [data-u-th-side] [data-u-th-zone="side"] {
  --th-z: var(--th-side); --th-zt: var(--th-side-ink);
  background: linear-gradient(var(--th-ang, 180deg), var(--th-side), var(--th-side2, var(--th-side))) 0 0 / var(--th-zone-w, 100%) 100% no-repeat, var(--th-side2, var(--th-side));
}
[data-u-th-side] .u-rail ~ .u-sidebar, [data-u-th-side] .u-rail ~ [data-u-th-zone="side"] { background-position: calc(-1 * var(--th-rail-w, 0px)) 0, 0 0; }
[data-u-th-top] .u-topbar, [data-u-th-top] [data-u-th-zone="top"] {
  --th-z: var(--th-top); --th-zt: var(--th-top-ink);
  background: linear-gradient(90deg, var(--th-top), var(--th-top2, var(--th-top)));
}
/* Inside a themed zone every Umbra text, line and wash comes from the zone's own text colour
   (white or black, whichever reads), so rows, counts and fields stay clear on any colour. */
[data-u-th-side] :is(.u-rail, .u-sidebar, [data-u-th-zone="side"]), [data-u-th-top] :is(.u-topbar, [data-u-th-zone="top"]) {
  color: var(--th-zt);
  --u-t1: var(--th-zt);
  --u-t2: color-mix(in srgb, var(--th-zt) 78%, var(--th-z));
  --u-t3: color-mix(in srgb, var(--th-zt) 62%, var(--th-z));
  --u-t4: color-mix(in srgb, var(--th-zt) 50%, var(--th-z));
  --u-hair: color-mix(in srgb, var(--th-zt) 9%, transparent);
  --u-hair2: color-mix(in srgb, var(--th-zt) 14%, transparent);
  --u-hair3: color-mix(in srgb, var(--th-zt) 22%, transparent);
  --u-hover: color-mix(in srgb, var(--th-zt) 6%, transparent);
  --u-active: color-mix(in srgb, var(--th-zt) 10%, transparent);
  --u-gray-10: color-mix(in srgb, var(--th-zt) 9%, transparent);
  --u-fld: color-mix(in srgb, var(--th-zt) 6%, var(--th-z));
  --u-sunken: color-mix(in srgb, var(--th-zt) 5%, var(--th-z));
  --u-lv0: var(--th-z);
  --u-lv2: color-mix(in srgb, var(--th-zt) 7%, var(--th-z));
  --u-lv3: color-mix(in srgb, var(--th-zt) 10%, var(--th-z));
}
/* The accent: lines, links, focus rings and washes. Filled blue stays ITX blue. */
[data-u-th-acc] {
  --u-blue: var(--th-acc);
  --u-blue-t: var(--th-acc-t);
  --u-blue-10: color-mix(in srgb, var(--th-acc) 13%, transparent);
  --u-blue-20: color-mix(in srgb, var(--th-acc) 24%, transparent);
  --u-ring: 0 0 0 3px color-mix(in srgb, var(--th-acc) 22%, transparent);
}

/* ---------- Theme preview tile: a tiny app in the theme's colours ----------
   Goes inside a .u-swpick-sw: --ms is the side panel (a colour or a gradient), --ma the accent. */
.u-thmini { position: absolute; inset: 0; display: grid; grid-template-columns: 34% 1fr; }
.u-thmini-s { background: var(--ms, var(--u-lv0)); }
.u-thmini-m { display: flex; flex-direction: column; gap: 5px; padding: 18% 12% 0; background: var(--u-lv1); }
.u-thmini-m > i { display: block; height: 4px; border-radius: var(--u-r-full); background: var(--u-hair3); }
.u-thmini-m > i:nth-child(2) { width: 70%; }
.u-thmini-m > i:nth-child(3) { width: 85%; }
.u-thmini-m > u { display: block; width: 55%; height: 4px; border-radius: var(--u-r-full); background: var(--ma, var(--u-blue)); }
.u-thmini-m > b { display: block; width: 60%; height: 9px; margin-top: auto; margin-bottom: 18%; border-radius: var(--u-r-xs); background: var(--ma, var(--u-blue)); }
/* The Custom tile: every colour round a wheel, with the pen in a small disc */
.u-swpick-sw.u-thwheel { color: var(--u-t1); }
.u-swpick-sw.u-thwheel > .u-i { width: 30px; height: 30px; padding: 6px; border-radius: var(--u-r-full); background: var(--u-lv2); box-shadow: var(--u-sh-row); }
.u-swpick-t { grid-column: 1 / -1; margin-top: 4px; color: var(--u-t3); font: 600 var(--u-fs-xs)/1.3 var(--u-f-ui); }

/* ---------- Readability chip ---------- */
.u-rdchip { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 2px 8px 2px 6px; border-radius: var(--u-r-full); background: var(--u-gray-10); color: var(--u-t3); font: 500 var(--u-fs-xs)/1.4 var(--u-f-ui); }
.u-rdchip > .u-i { flex: none; width: 12px; height: 12px; }
.u-rdchip--ok { background: var(--u-ok-10); color: var(--u-ok-t); }
.u-rdchip--fix { background: var(--u-blue-10); color: var(--u-blue-t); }
.u-rdchip-r { margin-left: 2px; opacity: .75; font-variant-numeric: tabular-nums; }
.u-setrow-l > .u-rdchip { margin-top: 6px; }

/* ---------- Info note: a quiet aside on a sunken ground ---------- */
.u-infonote { display: flex; gap: 10px; padding: 10px 12px; border-radius: var(--u-r-md); background: var(--u-sunken); color: var(--u-t2); font: 400 var(--u-fs-sm)/1.45 var(--u-f-ui); }
.u-infonote > .u-i { flex: none; width: 15px; height: 15px; margin-top: 2px; color: var(--u-t3); }
.u-infonote b { color: var(--u-t1); font-weight: 600; }
.u-infonote p { margin: 0; }

/* ---------- Stacked bar: one total split by kind ----------
   Each <i> sets --v (its share, 0 to 1) and --c (its colour); the rest of the track is free space.
   Shares are flex-grow, so nothing animates a width (Umbra's transform-and-opacity rule). */
.u-stackbar { display: grid; gap: 8px; min-width: 0; }
.u-stackbar-fig { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.u-stackbar-fig > b { color: var(--u-t1); font: 600 24px/1.2 var(--u-f-ui); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.u-stackbar-fig > span { color: var(--u-t3); font-size: var(--u-fs-sm); }
.u-stackbar-fig > .u-stackbar-d { margin-left: auto; font-size: var(--u-fs-xs); }
.u-stackbar-bar { display: flex; height: 8px; overflow: hidden; border-radius: var(--u-r-full); background: var(--u-track); box-shadow: var(--u-sh-well), 0 0 0 1px var(--u-hair); }
.u-stackbar-bar > i { display: block; flex: var(--v, 0) 1 0; min-width: 0; background: var(--c, var(--u-blue)); }
.u-stackbar-bar > i + i { box-shadow: -1px 0 0 var(--u-lv2); }
.u-stackbar-bar > .u-stackbar-free { flex-grow: var(--v, 1); background: none; box-shadow: none; }
.u-stackbar-leg { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; padding: 0; list-style: none; color: var(--u-t3); font-size: var(--u-fs-xs); }
.u-stackbar-leg > li { display: inline-flex; align-items: center; gap: 6px; }
.u-stackbar-leg > li::before { content: ""; width: 8px; height: 8px; border-radius: var(--u-r-xs); background: var(--c, var(--u-blue)); }
.u-stackbar-leg b { color: var(--u-t1); font-weight: 500; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .u-colorbtn { height: var(--u-ctl-touch); }
  .u-setrow-c > .u-colorbtn { width: 100%; }
  .u-colorpick-pal { gap: 8px; }
}
@container u-frame (max-width: 640px) {
  .u-colorbtn { height: var(--u-ctl-touch); }
  .u-setrow-c > .u-colorbtn { width: 100%; }
  .u-colorpick-pal { gap: 8px; }
}

/* =============== Permissions matrix =============== */
.u-table--matrix th:not(:first-child), .u-table--matrix td:not(:first-child) { text-align: center; }
.u-table--matrix thead th:not(:first-child) { width: 110px; }
.u-table--matrix tbody th { position: static; height: var(--u-row); padding: 6px 12px; background: none; border-bottom: 1px solid var(--u-hair); color: var(--u-t1); font-size: var(--u-fs); font-weight: 400; text-align: left; white-space: normal; }
.u-table--matrix tbody th small { display: block; color: var(--u-t3); font-size: var(--u-fs-sm); }
.u-table--matrix tbody tr:last-child th { border-bottom: 0; }
.u-table--matrix td .u-switch { vertical-align: middle; }
/* Area headings inside the grid (Machines, Scripts, Software …) */
.u-table tr.u-tr-area > th { position: static; height: 30px; padding: 10px 12px 4px; background: var(--u-lv1); border-bottom: 1px solid var(--u-hair); color: var(--u-t3); font-size: var(--u-fs-xs); font-weight: 500; text-align: left; }
.u-table tbody tr.u-tr-area:hover { background: transparent; }
/* A cell that cannot change (Admins always have it): a lock with a tooltip. */
.u-lockcell { display: inline-grid; place-items: center; width: 26px; height: 22px; border-radius: 6px; color: var(--u-t3); cursor: default; vertical-align: middle; }
.u-lockcell:hover { background: var(--u-hover); color: var(--u-t2); }
.u-lockcell .u-i { width: 14px; height: 14px; }
/* Switched off for techs: the cell takes a warning wash and the row says so in words. */
.u-table--matrix td:has(> .u-switch:not(:checked)) { background: var(--u-warn-10); }
.u-matrix-off { display: none; margin-top: 4px; }
.u-table--matrix tr:has(.u-switch:not(:checked)) .u-matrix-off { display: inline-flex; }
@media (max-width: 640px) {
  .u-table--matrix thead th:not(:first-child) { width: 64px; padding: 0 4px; white-space: normal; line-height: 1.2; }
  .u-table--matrix tbody th small { display: none; }
  .u-table--matrix td { padding: 0 4px; }
  .u-lockcell { width: 40px; height: 40px; }
}
@container u-frame (max-width: 640px) {
  .u-table--matrix thead th:not(:first-child) { width: 64px; padding: 0 4px; white-space: normal; line-height: 1.2; }
  .u-table--matrix tbody th small { display: none; }
  .u-table--matrix td { padding: 0 4px; }
  .u-lockcell { width: 40px; height: 40px; }
}

/* =============== Diff ("what changed") =============== */
.u-diff { border-radius: var(--u-r-lg); border: 1px solid var(--u-hair); background: var(--u-sunken); overflow: hidden; }
.u-diff-h { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; min-height: 36px; padding: 6px 12px; border-bottom: 1px solid var(--u-hair); background: var(--u-lv2); font-size: var(--u-fs-sm); }
.u-diff-h > .u-i { color: var(--u-t3); }
.u-diff-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--u-t1); font: 500 var(--u-fs-sm) var(--u-f-mono); }
.u-diff-stat { margin-left: auto; display: inline-flex; gap: 8px; white-space: nowrap; }
.u-diff-stat .is-add { color: var(--u-ok-t); } .u-diff-stat .is-del { color: var(--u-bad-t); } .u-diff-stat .is-none { color: var(--u-t3); }
.u-diff-b { padding: 6px 0; font: 12.5px/1.6 var(--u-f-mono); color: var(--u-t1); }
.u-dl { display: grid; grid-template-columns: 40px 40px 18px minmax(0, 1fr); }
.u-dl-n { padding-right: 10px; color: var(--u-t4); text-align: right; user-select: none; font-variant-numeric: tabular-nums; }
.u-dl-m { color: var(--u-t4); text-align: center; user-select: none; }
.u-dl-t { padding-right: 14px; white-space: pre-wrap; word-break: break-word; min-width: 0; }
.u-dl--add { background: var(--u-ok-10); box-shadow: inset 2px 0 0 var(--u-ok); }
.u-dl--add .u-dl-m, .u-dl--add .u-dl-n { color: var(--u-ok-t); }
.u-dl--del { background: var(--u-bad-10); box-shadow: inset 2px 0 0 var(--u-bad); }
.u-dl--del .u-dl-m, .u-dl--del .u-dl-n { color: var(--u-bad-t); }
.u-dl--skip { display: flex; align-items: center; gap: 8px; width: 100%; height: 26px; margin: 2px 0; padding: 0 12px 0 22px; border: 0; border-block: 1px solid var(--u-hair); background: var(--u-lv1); color: var(--u-t3); font: 500 var(--u-fs-xs) var(--u-f-ui); text-align: left; cursor: pointer; }
.u-dl--skip:hover { background: var(--u-hover); color: var(--u-t1); }
.u-dl--skip:focus-visible { outline-offset: -2px; border-radius: 0; }
/* Side by side (0.5.0, Fleet Console design audit): Umbra.diff(el, a, b, { view: 'split' })
   puts the old text left and the new right, removed and added lines facing each other.
   Narrower than 560px it shows the one-column view; { toggle: true } adds the switch. */
.u-diff-h > .u-ptabs { margin-left: 4px; }
.u-dsl { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px minmax(0, 1fr); }
.u-dsl > .u-dl-n { padding-right: 10px; }
.u-dsl > .u-dl-n:nth-child(3) { border-left: 1px solid var(--u-hair); }
.u-dsl-t { padding-right: 12px; white-space: pre-wrap; word-break: break-word; min-width: 0; }
.u-dsl-t.is-del { background: var(--u-bad-10); }
.u-dsl-t.is-add { background: var(--u-ok-10); }
.u-dsl-t.is-empty { background: var(--u-gray-10); }
.u-dsl > .u-dl-n.is-del { background: var(--u-bad-10); color: var(--u-bad-t); }
.u-dsl > .u-dl-n.is-add { background: var(--u-ok-10); color: var(--u-ok-t); }
.u-dsl > .u-dl-n.is-empty { background: var(--u-gray-10); }
@media (max-width: 640px) { .u-dl { grid-template-columns: 30px 30px 16px minmax(0, 1fr); } .u-dl-n { padding-right: 6px; } .u-diff-b { font-size: 12px; } }
@container u-frame (max-width: 640px) { .u-dl { grid-template-columns: 30px 30px 16px minmax(0, 1fr); } .u-dl-n { padding-right: 6px; } .u-diff-b { font-size: 12px; } }

/* =============== Reduced motion =============== */
/* effects.css already shortens every animation inside .u; the stripes and the bars just stop moving. */
@media (prefers-reduced-motion: reduce) {
  .u-progress--striped > i::after { animation: none; }
  .u-bulkbar, .u-savebar, .u-output-jump { animation-name: u-fade; }
  .u-bulkbar.is-closing, .u-savebar.is-closing { animation-name: u-fade-out; }
  .u-colorpick-pal > button { transition: none; }
  .u-colorpick-pal > button:hover { transform: none; }
}

/* ---------- Day counters (.u-statrow) ----------
   One row of small counts across the top of a page: Due today, Overdue, Waiting, Done this week
   (Inbox Mail's Reminders, Nov 21). Each cell is a button, so a count can filter the list below it;
   aria-pressed marks the one in use. is-bad turns a count red when it needs attention. */
.u-statrow { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border: 1px solid var(--u-hair); border-radius: var(--u-r-lg); background: var(--u-lv1); overflow: hidden; }
.u-statrow > button, .u-statrow > div { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; padding: 10px 12px; border: 0; background: none; color: inherit; text-align: left; font: inherit; }
.u-statrow > button { cursor: pointer; transition: opacity var(--u-fast) var(--u-ease); }
.u-statrow > * + * { border-left: 1px solid var(--u-hair); }
.u-statrow > button:hover { background: var(--u-hover); }
.u-statrow > button[aria-pressed="true"] { background: var(--u-active); }
.u-statrow b { color: var(--u-t1); font: 600 22px/1.1 var(--u-f-ui); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.u-statrow span { max-width: 100%; overflow: hidden; color: var(--u-t3); font-size: var(--u-fs-sm); white-space: nowrap; text-overflow: ellipsis; }
.u-statrow .is-bad b { color: var(--u-bad-t); }
@media (max-width: 640px) {
  .u-statrow { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
  .u-statrow > * + * { border-left: 0; }
  .u-statrow > :nth-child(even) { border-left: 1px solid var(--u-hair); }
  .u-statrow > :nth-child(n+3) { border-top: 1px solid var(--u-hair); }
}
@container u-frame (max-width: 640px) {
  .u-statrow { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
  .u-statrow > * + * { border-left: 0; }
  .u-statrow > :nth-child(even) { border-left: 1px solid var(--u-hair); }
  .u-statrow > :nth-child(n+3) { border-top: 1px solid var(--u-hair); }
}

/* ---- umbra-workspace.css ---- */
/* ==========================================================================
   Umbra Workspace patterns: file browser, transfers, closable tabs, remote-session toolbar pills,
   list-and-detail layout, shortcut sheet, countdown, full-page error, 404 and maintenance.
   Part of css/umbra.css (tools/build.mjs). Uses only --u-* tokens, so dark and light both work.
   ========================================================================== */

/* Entrances for this part. Only transform and opacity move (Fleet Console's lint rule). */
@keyframes u-ws-tab-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes u-ws-tab-out { to { opacity: 0; transform: scale(.96); } }
@keyframes u-ws-slide { from { opacity: 0; transform: translateX(18px); } }
@keyframes u-ws-turn { to { transform: rotate(360deg); } }

/* =============== File browser: places, path bar, file list, selection bar =============== */
.u-filebox { display: grid; grid-template-columns: 208px minmax(0, 1fr); min-width: 0; min-height: 0; border-radius: var(--u-r-lg); border: 1px solid var(--u-hair); background: var(--u-lv1); overflow: hidden; }
.u-filebox-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.u-filebox-main > .u-pathbar { padding: 8px 10px; border-bottom: 1px solid var(--u-hair); background: var(--u-lv1); }

/* Places: This PC, folders, drives with a usage meter */
.u-fileside { display: flex; flex-direction: column; gap: 2px; padding: 8px 6px; background: var(--u-lv0); border-right: 1px solid var(--u-hair); overflow: auto; min-height: 0; }
.u-fileside-h { padding: 10px 8px 4px; color: var(--u-t4); font-size: var(--u-fs-xs); font-weight: 500; letter-spacing: .01em; }
.u-fileside-h:first-child { padding-top: 4px; }
.u-fileside-i { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 30px; padding: 5px 8px; border: 1px solid transparent; border-radius: 7px; background: none; color: var(--u-t2); text-align: left; }
.u-fileside-i > .u-i { width: 15px; height: 15px; color: var(--u-t3); }
.u-fileside-i:hover { background: var(--u-hover); color: var(--u-t1); }
.u-fileside-i.is-on, .u-fileside-i[aria-current] { background: var(--u-lv3); border-color: var(--u-hair); box-shadow: var(--u-sh-row); color: var(--u-t1); }
.u-fileside-i.is-on > .u-i, .u-fileside-i[aria-current] > .u-i { color: var(--u-blue-t); }
.u-fileside-dn { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.u-fileside-meter { position: relative; display: block; height: 3px; border-radius: 3px; background: var(--u-sunken); box-shadow: inset 0 0 0 1px var(--u-hair); overflow: hidden; }
.u-fileside-meter > i { position: absolute; inset: 0; border-radius: inherit; background: var(--u-blue); transform-origin: left; transform: scaleX(var(--v, 0)); transition: transform .5s var(--u-ease); }
.u-fileside-meter.is-warn > i { background: var(--u-warn); }
.u-fileside-meter.is-bad > i { background: var(--u-bad); }

/* Path bar: Up, breadcrumb segments that become a typed path, Refresh */
.u-pathbar { display: flex; align-items: center; gap: 4px; min-width: 0; }
.u-pathbar-field { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; height: var(--u-ctl); padding: 0 2px 0 4px; border-radius: var(--u-r); border: 1px solid var(--u-ctl-bd); background: var(--u-fld); box-shadow: var(--u-fld-in); cursor: text; }
.u-pathbar-field:hover { border-color: var(--u-t4); }
.u-pathbar-field.is-edit { border-color: var(--u-blue); box-shadow: var(--u-fld-in), var(--u-ring); }
.u-pathbar-crumbs { flex: 1; min-width: 0; display: flex; align-items: center; gap: 1px; overflow-x: auto; scrollbar-width: none; }
.u-pathbar-crumbs::-webkit-scrollbar { display: none; }
/* Long paths keep their end in view; the start fades out instead of cutting hard. */
.u-pathbar-crumbs.is-cut { -webkit-mask: linear-gradient(90deg, transparent, #000 22px); mask: linear-gradient(90deg, transparent, #000 22px); }
.u-pathbar-seg { flex: none; display: inline-flex; align-items: center; height: 22px; padding: 0 6px; border: 0; border-radius: 5px; background: none; color: var(--u-t3); font-size: var(--u-fs-sm); white-space: nowrap; }
.u-pathbar-seg:hover { background: var(--u-hover); color: var(--u-t1); }
.u-pathbar-seg[aria-current] { color: var(--u-t1); font-weight: 500; }
.u-pathbar-seg:focus-visible { outline-offset: -2px; }
.u-pathbar-sep { flex: none; width: 12px; height: 12px; color: var(--u-t4); }
.u-pathbar-in { flex: 1; min-width: 0; height: 100%; padding: 0 4px; border: 0; outline: 0; background: none; color: var(--u-t1); font: var(--u-fs-sm) var(--u-f-mono); }
.u-pathbar-edit { flex: none; display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 5px; background: none; color: var(--u-t4); }
.u-pathbar-edit:hover { background: var(--u-hover); color: var(--u-t1); }
.u-pathbar-edit:focus-visible { outline-offset: -2px; }
.u-pathbar-refresh.is-turning > .u-i { animation: u-ws-turn .6s var(--u-ease); }

/* File list: sortable header, rows, empty / denied / loading states */
.u-filelist { position: relative; flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--u-lv1); }
.u-filehead, .u-filerow { display: grid; grid-template-columns: 16px 18px minmax(0, 1fr) 84px 156px minmax(0, 132px); align-items: center; column-gap: 10px; padding: 0 12px; }
.u-filehead { flex: none; height: 32px; border-bottom: 1px solid var(--u-hair); background: var(--u-lv1); }
.u-filehead-c { display: inline-flex; align-items: center; gap: 4px; min-width: 0; height: 24px; padding: 0 4px; margin: 0 -4px; border: 0; border-radius: 5px; background: none; color: var(--u-t3); font-size: 11.5px; font-weight: 500; letter-spacing: .01em; white-space: nowrap; }
.u-filehead-c:hover { color: var(--u-t1); background: var(--u-hover); }
.u-filehead-c[data-k="name"] { grid-column: 2 / 4; justify-self: start; }
.u-filehead-c[data-k="size"] { justify-self: end; }
.u-filehead-c .u-sorti { width: 12px; height: 12px; opacity: 0; transition: opacity var(--u-fast) var(--u-ease), transform .25s var(--u-ease); }
.u-filehead-c[data-dir] .u-sorti { opacity: 1; color: var(--u-blue-t); }
.u-filehead-c[data-dir="desc"] .u-sorti { transform: rotate(180deg); }
.u-filerows { flex: 1; min-height: 0; overflow: auto; padding: 4px 0; outline: 0; }
.u-filerow { position: relative; height: 32px; color: var(--u-t2); cursor: default; user-select: none; }
.u-filerow:hover { background: var(--u-hover); }
.u-filerow[aria-selected="true"] { background: var(--u-blue-10); }
.u-filerow[aria-selected="true"]::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 2px; border-radius: 0 2px 2px 0; background: var(--u-blue); }
.u-filerow:focus-visible { outline: 2px solid var(--u-blue); outline-offset: -2px; border-radius: 6px; }
/* The tick: drawn like .u-check, a tap target for touch, shown on hover once there is a mouse. */
.u-filerow-tick { position: relative; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 5px; border: 1px solid var(--u-ctl-bd); background: var(--u-fld); box-shadow: var(--u-fld-in); transition: opacity var(--u-fast); }
.u-filerow-tick::after { content: ""; width: 9px; height: 5px; border: 1.8px solid var(--u-on-accent); border-top: 0; border-right: 0; opacity: 0; transform: translateY(-1px) rotate(-45deg) scale(.4); transition: transform .2s var(--u-ease), opacity .15s var(--u-ease); }
.u-filerow[aria-selected="true"] .u-filerow-tick, .u-filehead .u-filerow-tick.is-all { background: linear-gradient(180deg, var(--u-bp-top), var(--u-bp-bot)); border-color: var(--u-bp-bd); }
.u-filerow[aria-selected="true"] .u-filerow-tick::after, .u-filehead .u-filerow-tick.is-all::after { opacity: 1; transform: translateY(-1px) rotate(-45deg) scale(1); }
.u-filehead .u-filerow-tick.is-some { background: linear-gradient(180deg, var(--u-bp-top), var(--u-bp-bot)); border-color: var(--u-bp-bd); }
.u-filehead .u-filerow-tick.is-some::after { width: 8px; height: 0; border-width: 0 0 1.8px; opacity: 1; transform: none; }
button.u-filerow-tick { padding: 0; cursor: pointer; }
@media (hover: hover) {
  .u-filerow .u-filerow-tick { opacity: 0; }
  .u-filerow:hover .u-filerow-tick, .u-filerow[aria-selected="true"] .u-filerow-tick, .u-filelist.has-sel .u-filerow-tick, .u-filerow:focus-visible .u-filerow-tick { opacity: 1; }
}
.u-filerow-ic { display: grid; place-items: center; color: var(--u-t3); }
.u-filerow-ic--blue { color: var(--u-blue-t); } .u-filerow-ic--ok { color: var(--u-ok-t); } .u-filerow-ic--warn { color: var(--u-warn-t); }
.u-filerow-ic--vio { color: var(--u-vio-t); } .u-filerow-ic--cyan { color: var(--u-cyan-t); } .u-filerow-ic--pink { color: var(--u-pink-t); }
.u-filerow-name { min-width: 0; display: flex; flex-direction: column; color: var(--u-t1); }
.u-filerow-sub { display: none; color: var(--u-t3); font-size: var(--u-fs-xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-filerow-size { text-align: right; color: var(--u-t3); font: var(--u-fs-sm) var(--u-f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.u-filerow-date { color: var(--u-t3); font-size: var(--u-fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-filerow-kind { color: var(--u-t3); font-size: var(--u-fs-sm); }
.u-filerow--skel { pointer-events: none; }
.u-filelist-state { flex: 1; min-height: 0; overflow: auto; display: grid; place-items: center; }
.u-filelist-state > .u-empty { padding: 28px 20px; }

/* Selection bar: "2 Selected · 14 MB" with Download and Delete */
.u-selbar { flex: none; display: flex; align-items: center; gap: 6px; min-height: 42px; padding: 6px 8px 6px 14px; border-top: 1px solid var(--u-hair); background: var(--u-lv2); box-shadow: var(--u-edge); animation: u-rise var(--u-med) var(--u-ease); }
.u-selbar-t { min-width: 0; display: flex; align-items: baseline; gap: 6px; overflow: hidden; white-space: nowrap; }
.u-selbar-n { color: var(--u-t1); font-weight: 500; }
.u-selbar-s { color: var(--u-t3); font-size: var(--u-fs-sm); overflow: hidden; text-overflow: ellipsis; }
.u-selbar-sp { flex: 1; }

/* =============== Transfer queue =============== */
.u-xfers { border-radius: var(--u-r-lg); border: 1px solid var(--u-hair); background: var(--u-lv2); box-shadow: var(--u-sh-card); overflow: hidden; min-width: 0; }
.u-xfer-h { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 10px 8px 14px; border-bottom: 1px solid var(--u-hair); }
.u-xfer-h > .u-i { color: var(--u-t3); }
.u-xfer-ht { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.u-xfer-ht > b { color: var(--u-t1); font-weight: 500; }
.u-xfer-sum { color: var(--u-t3); font-size: var(--u-fs-xs); white-space: nowrap; }
.u-xfer-h > .u-progress { flex: 1; min-width: 48px; max-width: 200px; height: 4px; margin-left: auto; }
.u-xfer-h > .u-btn { flex: none; }
.u-xfer-list { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 4px; max-height: 320px; overflow: auto; }
.u-xfer { list-style: none; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 48px; padding: 7px 8px; border-radius: 9px; animation: u-rise var(--u-slow) var(--u-ease); }
.u-xfer:hover { background: var(--u-hover); }
.u-xfer-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--u-gray-10); color: var(--u-t3); }
.u-xfer[data-state="active"] .u-xfer-ic { background: var(--u-blue-10); color: var(--u-blue-t); }
.u-xfer[data-state="done"] .u-xfer-ic { background: var(--u-ok-10); color: var(--u-ok-t); }
.u-xfer[data-state="failed"] .u-xfer-ic { background: var(--u-bad-10); color: var(--u-bad-t); }
.u-xfer-b { min-width: 0; }
.u-xfer-t { color: var(--u-t1); }
.u-xfer-s { color: var(--u-t3); font-size: var(--u-fs-xs); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-xfer[data-state="failed"] .u-xfer-s { color: var(--u-bad-t); }
.u-xfer[data-state="cancelled"] .u-xfer-t { color: var(--u-t3); }
.u-xfer .u-progress { height: 4px; margin-top: 6px; }
.u-xfer-acts { display: flex; align-items: center; gap: 4px; }
.u-xfer-empty { padding: 22px 14px; text-align: center; color: var(--u-t4); font-size: var(--u-fs-sm); }

/* =============== Closable tab strip (browser-like) =============== */
.u-doctabs { display: flex; align-items: flex-end; gap: 4px; height: 40px; padding: 0 6px; background: var(--u-lv0); border-bottom: 1px solid var(--u-hair); min-width: 0; }
.u-doctabs > .u-ibtn { flex: none; align-self: center; }
.u-doctabs-more { margin-left: auto; }
.u-doctabs-strip { position: relative; flex: 0 1 auto; min-width: 0; height: 100%; display: flex; align-items: flex-end; gap: 2px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.u-doctabs-strip::-webkit-scrollbar { display: none; }
.u-doctabs-strip.is-cut-l { -webkit-mask: linear-gradient(90deg, transparent, #000 28px); mask: linear-gradient(90deg, transparent, #000 28px); }
.u-doctabs-strip.is-cut-r { -webkit-mask: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
.u-doctabs-strip.is-cut-l.is-cut-r { -webkit-mask: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); mask: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); }
/* The sliding underline is Umbra's own tab indicator; inside a strip that clips, it sits on the floor. */
.u-doctabs-strip > .u-tabs-ind { bottom: 0; }
.u-doctab { position: relative; flex: none; display: flex; align-items: center; gap: 7px; width: 176px; height: 32px; padding: 0 4px 0 10px; border: 1px solid transparent; border-bottom: 0; border-radius: 8px 8px 0 0; background: none; color: var(--u-t3); font-size: var(--u-fs-sm); cursor: pointer; user-select: none; }
.u-doctab:hover { background: var(--u-hover); color: var(--u-t1); }
.u-doctab[aria-selected="true"] { background: var(--u-lv1); border-color: var(--u-hair); box-shadow: var(--u-edge); color: var(--u-t1); }
.u-doctab:focus-visible { outline-offset: -2px; border-radius: 8px 8px 0 0; }
.u-doctab > .u-i { width: 14px; height: 14px; color: var(--u-t3); }
.u-doctab[aria-selected="true"] > .u-i { color: var(--u-blue-t); }
.u-doctab-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-doctab > .u-dotst { width: 6px; height: 6px; box-shadow: none; }
.u-doctab-x { flex: none; display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 5px; background: none; color: var(--u-t4); transition: opacity var(--u-fast); }
.u-doctab-x:hover { background: var(--u-active); color: var(--u-t1); }
@media (hover: hover) {
  .u-doctab:not([aria-selected="true"]):not(:hover) .u-doctab-x { opacity: 0; }
}
.u-doctab.is-new { animation: u-ws-tab-in .28s var(--u-ease); }
.u-doctab.is-closing { animation: u-ws-tab-out .16s ease-in forwards; pointer-events: none; }

/* =============== Remote session toolbar pieces =============== */
.u-rdbar { display: flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 8px; background: var(--u-lv2); border-bottom: 1px solid var(--u-hair); overflow-x: auto; scrollbar-width: none; }
.u-rdbar::-webkit-scrollbar { display: none; }
.u-rdbar > * { flex: none; }
.u-rdbar > .u-sep--v { margin: 9px 2px; }
.u-rdbar-sp { flex: 1 1 auto; min-width: 4px; }

/* "Quality  Auto ⌄": a muted label, a bright value, no colon (Fleet Console's pane pickers) */
.u-pillsel { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 26px; padding: 0 8px 0 10px; border-radius: var(--u-r-full); border: 1px solid var(--u-b2-bd); background: var(--u-b2-bg); box-shadow: var(--u-b2-hi), var(--u-b2-sh); color: var(--u-t1); font-size: var(--u-fs-sm); line-height: 1; white-space: nowrap; }
.u-pillsel:hover { background: var(--u-b2-bg-h); border-color: var(--u-b2-bd-h); }
.u-pillsel[aria-expanded="true"] { border-color: var(--u-blue); box-shadow: var(--u-b2-hi), var(--u-ring); }
.u-pillsel:disabled { opacity: .45; cursor: not-allowed; }
.u-pillsel > .u-i { width: 13px; height: 13px; color: var(--u-t3); }
.u-pillsel > .u-i:last-child { width: 12px; height: 12px; color: var(--u-t4); transition: transform .25s var(--u-ease); }
.u-pillsel[aria-expanded="true"] > .u-i:last-child { transform: rotate(180deg); }
.u-pillsel-k { color: var(--u-t3); }
.u-pillsel-v { color: var(--u-t1); font-weight: 500; }

/* Stats chip: "42 ms · 18 Mb/s · 60 fps" */
.u-statchip { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--u-r-full); border: 1px solid var(--u-hair); background: var(--u-sunken); box-shadow: var(--u-fld-in); color: var(--u-t2); font: 400 11px/1 var(--u-f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.u-statchip-sep { color: var(--u-t4); }
.u-statchip .is-ok { color: var(--u-ok-t); } .u-statchip .is-warn { color: var(--u-warn-t); } .u-statchip .is-bad { color: var(--u-bad-t); }
/* Clipboard chip */
.u-clipchip { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 26px; padding: 0 10px 0 8px; border-radius: var(--u-r-full); border: 1px solid var(--u-hair2); background: var(--u-lv3); box-shadow: var(--u-edge); color: var(--u-t2); font-size: var(--u-fs-sm); white-space: nowrap; }
.u-clipchip:hover { color: var(--u-t1); border-color: var(--u-hair3); }
.u-clipchip > .u-i { width: 13px; height: 13px; color: var(--u-t3); }
.u-clipchip > .u-dotst { width: 6px; height: 6px; box-shadow: none; }
/* Connection status pill: Connecting…, Connected, Reconnecting…, Offline */
.u-statpill { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 24px; padding: 0 10px 0 9px; border-radius: var(--u-r-full); background: var(--u-gray-10); color: var(--u-t2); font-size: var(--u-fs-xs); font-weight: 500; line-height: 1; white-space: nowrap; }
.u-statpill > .u-spin { width: 11px; height: 11px; border-width: 1.5px; }
.u-statpill-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.u-statpill[data-state="connecting"] { background: var(--u-blue-10); color: var(--u-blue-t); }
.u-statpill[data-state="connected"] { background: var(--u-ok-10); color: var(--u-ok-t); }
.u-statpill[data-state="reconnecting"] { background: var(--u-warn-10); color: var(--u-warn-t); }
.u-statpill[data-state="offline"] { background: var(--u-bad-10); color: var(--u-bad-t); }

/* The remote computer's taskbar, drawn over .u-desk */
.u-taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: 32px; display: flex; align-items: center; justify-content: center; gap: 3px; padding: 0 8px; background: color-mix(in srgb, var(--u-lv0) 86%, transparent); border-top: 1px solid var(--u-hair); }
.u-taskbar-i { position: relative; display: grid; place-items: center; width: 28px; height: 26px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--u-t2); }
.u-taskbar-i:hover { background: var(--u-hover); color: var(--u-t1); }
.u-taskbar-i.is-on { background: var(--u-active); color: var(--u-t1); }
.u-taskbar-i.is-on::after { content: ""; position: absolute; left: 50%; bottom: 1px; width: 10px; height: 2px; margin-left: -5px; border-radius: 2px; background: var(--u-blue); }
.u-taskbar-i--start { color: var(--u-blue-t); }
.u-taskbar-clock { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--u-t2); font: 10.5px/1.25 var(--u-f-mono); text-align: right; white-space: nowrap; }

/* =============== List and detail =============== */
.u-master { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 1.3fr); min-width: 0; min-height: 0; }
.u-master-list { min-width: 0; min-height: 0; overflow: auto; border-right: 1px solid var(--u-hair); background: var(--u-lv1); }
.u-master-detail { min-width: 0; min-height: 0; overflow: auto; background: var(--u-lv2); }
button.u-li:focus-visible { outline-offset: -2px; }
.u-master-back { display: none; align-items: center; gap: 8px; height: 44px; padding: 0 8px; border-bottom: 1px solid var(--u-hair); background: var(--u-lv2); }
/* Stacked (phone, or .u-master--stack anywhere): the detail is its own screen with Back. */
.u-master--stack { grid-template-columns: minmax(0, 1fr); }
.u-master--stack > .u-master-list { border-right: 0; }
.u-master--stack > .u-master-detail, .u-master--stack.is-detail > .u-master-list { display: none; }
.u-master--stack.is-detail > .u-master-detail { display: block; animation: u-ws-slide .3s var(--u-ease); }
.u-master--stack .u-master-back { display: flex; }

/* =============== Keyboard shortcuts sheet =============== */
.u-kbdgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; }
.u-kbdgrid-g h3 { margin: 0 0 4px; color: var(--u-t3); font-size: var(--u-fs-xs); font-weight: 500; letter-spacing: .01em; }
.u-kbdgrid-g dl { margin: 0; }
.u-kbdgrid-r { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; border-bottom: 1px solid var(--u-hair); }
.u-kbdgrid-r:last-child { border-bottom: 0; }
.u-kbdgrid-r dt { min-width: 0; color: var(--u-t2); }
.u-kbdgrid-r dd { flex: none; display: inline-flex; align-items: center; gap: 3px; margin: 0; }
.u-kbdgrid-r dd .u-kbd { min-width: 20px; height: 20px; }
.u-kbdgrid-or { padding: 0 3px; color: var(--u-t4); font-size: var(--u-fs-xs); }

/* =============== Countdown: session expiry and SLA timer =============== */
.u-countdown { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--u-r-md); border: 1px solid var(--u-hair); background: var(--u-sunken); box-shadow: var(--u-fld-in); }
.u-countdown .u-ringp { --s: 52px; }
.u-countdown .u-ringp > b { color: var(--u-t3); }
/* Umbra.countdown puts a timer icon in the ring's middle; .u-ringp svg would stretch and turn it like the ring. */
.u-ringp > b > svg.u-i { width: 18px; height: 18px; transform: none; }
.u-countdown-v { color: var(--u-t1); font: 600 28px/1 var(--u-f-mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.u-countdown-s { margin-top: 4px; color: var(--u-t3); font-size: var(--u-fs-sm); }
.u-countdown.is-warn .u-ringp-fg { stroke: var(--u-warn); }
.u-countdown.is-warn .u-countdown-v { color: var(--u-warn-t); }
.u-countdown.is-bad .u-ringp-fg { stroke: var(--u-bad); }
.u-countdown.is-bad .u-countdown-v { color: var(--u-bad-t); }
.u-slachip { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 22px; padding: 0 9px 0 7px; border-radius: var(--u-r-full); background: var(--u-ok-10); color: var(--u-ok-t); font-size: var(--u-fs-xs); font-weight: 500; line-height: 1; white-space: nowrap; }
.u-slachip > .u-i { width: 12px; height: 12px; }
.u-slachip > b { font: 600 11px/1 var(--u-f-mono); font-variant-numeric: tabular-nums; }
.u-slachip.is-warn { background: var(--u-warn-10); color: var(--u-warn-t); }
.u-slachip.is-bad { background: var(--u-bad-10); color: var(--u-bad-t); }
.u-slachip.is-paused { background: var(--u-gray-10); color: var(--u-t3); }

/* =============== Full-page states: 404, maintenance, offline, permission, too old, no results =============== */
.u-page-state { position: relative; isolation: isolate; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 40px 20px; text-align: center; background: var(--u-lv1); overflow: hidden; }
.u-page-state::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: radial-gradient(var(--u-dot) 1px, transparent 1.2px); background-size: 20px 20px; -webkit-mask: radial-gradient(ellipse 60% 55% at 50% 45%, #000 15%, transparent 75%); mask: radial-gradient(ellipse 60% 55% at 50% 45%, #000 15%, transparent 75%); }
.u-page-state--inset { min-height: 100%; height: 100%; padding: 28px 18px; }
.u-page-state-ic { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 10px; border-radius: 14px; border: 1px solid var(--u-hair2); background: var(--u-lv3); box-shadow: var(--u-sh-card); color: var(--u-t2); }
.u-page-state-ic > .u-i { width: 24px; height: 24px; }
.u-page-state-ic--blue { color: var(--u-blue-t); } .u-page-state-ic--ok { color: var(--u-ok-t); }
.u-page-state-ic--warn { color: var(--u-warn-t); } .u-page-state-ic--bad { color: var(--u-bad-t); }
.u-page-state-code { color: var(--u-t4); font: 500 11px/1 var(--u-f-mono); letter-spacing: .02em; }
.u-page-state-t { margin: 0; max-width: 520px; color: var(--u-t1); font-size: var(--u-fs-2xl); font-weight: 600; line-height: 1.2; letter-spacing: -.025em; text-wrap: balance; }
.u-page-state--inset .u-page-state-t { font-size: var(--u-fs-xl); }
.u-page-state > p { margin: 0; max-width: 400px; color: var(--u-t3); text-wrap: pretty; }
.u-page-state-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 4px; }
.u-page-state-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }

/* =============== Progress toast (Umbra.toastProgress) =============== */
.u-toast.is-progress > .u-spin { margin-top: 1px; color: var(--u-blue-t); }
.u-toast-b > .u-progress { margin-top: 8px; }

/* =============== Phone =============== */
@media (max-width: 640px) {
  /* Places fold into a strip of chips above the list; drives keep their meter. */
  .u-filebox { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .u-fileside { flex-direction: row; gap: 6px; padding: 8px 12px; border-right: 0; border-bottom: 1px solid var(--u-hair); overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
    -webkit-mask: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent); mask: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent); }
  .u-fileside::-webkit-scrollbar { display: none; }
  .u-fileside-h { display: none; }
  .u-fileside-i { flex: none; width: auto; min-height: 40px; padding: 4px 12px; border-color: var(--u-hair2); border-radius: var(--u-r-full); white-space: nowrap; }
  .u-fileside-dn { min-width: 64px; }
  .u-pathbar-field { height: var(--u-ctl-touch); }
  .u-pathbar-seg { height: 32px; }
  .u-pathbar-in { font-size: 16px; }
  .u-pathbar-edit { width: 32px; height: 32px; }
  .u-filehead, .u-filerow { grid-template-columns: 20px 18px minmax(0, 1fr); }
  .u-filehead-c[data-k="size"], .u-filehead-c[data-k="modified"], .u-filehead-c[data-k="kind"],
  .u-filerow-size, .u-filerow-date, .u-filerow-kind { display: none; }
  .u-filerow { height: 52px; }
  .u-filerow-sub { display: block; }
  .u-filerow-tick { width: 20px; height: 20px; }
  .u-selbar .u-btn > span { display: none; }
  .u-selbar .u-btn { width: var(--h); padding: 0; }
  .u-xfer-h { flex-wrap: wrap; }
  .u-xfer-h > .u-progress { order: 3; flex-basis: 100%; max-width: none; margin-left: 0; }
  .u-doctab { width: 148px; height: 34px; }
  .u-doctab-x { width: 28px; height: 28px; }
  .u-doctabs { height: 44px; }
  .u-pillsel, .u-clipchip, .u-statchip { height: 32px; }
  .u-taskbar-clock { display: none; }
  .u-master { grid-template-columns: minmax(0, 1fr); }
  .u-master > .u-master-list { border-right: 0; }
  .u-master > .u-master-detail, .u-master.is-detail > .u-master-list { display: none; }
  .u-master.is-detail > .u-master-detail { display: block; animation: u-ws-slide .3s var(--u-ease); }
  .u-master .u-master-back { display: flex; }
  .u-kbdgrid { grid-template-columns: minmax(0, 1fr); }
  .u-countdown-v { font-size: 24px; }
  .u-page-state-t { font-size: var(--u-fs-xl); }
}
@container u-frame (max-width: 640px) {
  /* Places fold into a strip of chips above the list; drives keep their meter. */
  .u-filebox { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .u-fileside { flex-direction: row; gap: 6px; padding: 8px 12px; border-right: 0; border-bottom: 1px solid var(--u-hair); overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
    -webkit-mask: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent); mask: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent); }
  .u-fileside::-webkit-scrollbar { display: none; }
  .u-fileside-h { display: none; }
  .u-fileside-i { flex: none; width: auto; min-height: 40px; padding: 4px 12px; border-color: var(--u-hair2); border-radius: var(--u-r-full); white-space: nowrap; }
  .u-fileside-dn { min-width: 64px; }
  .u-pathbar-field { height: var(--u-ctl-touch); }
  .u-pathbar-seg { height: 32px; }
  .u-pathbar-in { font-size: 16px; }
  .u-pathbar-edit { width: 32px; height: 32px; }
  .u-filehead, .u-filerow { grid-template-columns: 20px 18px minmax(0, 1fr); }
  .u-filehead-c[data-k="size"], .u-filehead-c[data-k="modified"], .u-filehead-c[data-k="kind"],
  .u-filerow-size, .u-filerow-date, .u-filerow-kind { display: none; }
  .u-filerow { height: 52px; }
  .u-filerow-sub { display: block; }
  .u-filerow-tick { width: 20px; height: 20px; }
  .u-selbar .u-btn > span { display: none; }
  .u-selbar .u-btn { width: var(--h); padding: 0; }
  .u-xfer-h { flex-wrap: wrap; }
  .u-xfer-h > .u-progress { order: 3; flex-basis: 100%; max-width: none; margin-left: 0; }
  .u-doctab { width: 148px; height: 34px; }
  .u-doctab-x { width: 28px; height: 28px; }
  .u-doctabs { height: 44px; }
  .u-pillsel, .u-clipchip, .u-statchip { height: 32px; }
  .u-taskbar-clock { display: none; }
  .u-master { grid-template-columns: minmax(0, 1fr); }
  .u-master > .u-master-list { border-right: 0; }
  .u-master > .u-master-detail, .u-master.is-detail > .u-master-list { display: none; }
  .u-master.is-detail > .u-master-detail { display: block; animation: u-ws-slide .3s var(--u-ease); }
  .u-master .u-master-back { display: flex; }
  .u-kbdgrid { grid-template-columns: minmax(0, 1fr); }
  .u-countdown-v { font-size: 24px; }
  .u-page-state-t { font-size: var(--u-fs-xl); }
}

/* Four-pane grid (0.5.0, Fleet Console design audit): up to four live views (screens,
   terminals, graphs). Drag a pane by its grip onto another and the two swap places,
   sliding (transform only). Keyboard: on the grip, the arrow keys swap it with the
   pane on that side. One column on a phone or a phone-wide .u-frame. */
.u-panes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(var(--u-pane-h, 180px), auto); gap: 8px; min-width: 0; }
/* Scoped to the grid: the app frame's side pane (.u-pane in components) shares the name, and an
   unscoped rule drew it as a rounded floating card with a gap (Inbox Mail audit, Nov 21). */
.u-panes > .u-pane { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; border: 1px solid var(--u-hair); border-radius: var(--u-r-md); background: var(--u-lv2); box-shadow: var(--u-edge); overflow: hidden; }
.u-pane-h { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 6px 0 4px; border-bottom: 1px solid var(--u-hair); flex: none; }
.u-pane-h > b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--u-t1); font-size: var(--u-fs-sm); font-weight: 500; }
.u-pane-h > b { flex: 1; }
.u-pane-b { position: relative; flex: 1; min-height: 0; }
.u-pane-grip { cursor: grab; touch-action: none; color: var(--u-t3); }
.u-panes > .u-pane.is-drag { z-index: 5; opacity: .94; box-shadow: var(--u-sh-pop); }
.u-panes > .u-pane.is-drag, .u-panes > .u-pane.is-drag .u-pane-grip { cursor: grabbing; }
.u-panes > .u-pane.is-target { outline: 2px dashed var(--u-blue); outline-offset: -2px; }
.u-panes > .u-pane.is-moving { transition: transform .3s var(--u-ease); }
@media (max-width: 640px) { .u-panes { grid-template-columns: minmax(0, 1fr); } }
@container u-frame (max-width: 640px) { .u-panes { grid-template-columns: minmax(0, 1fr); } }

/* ---- umbra-comms.css ---- */
/* ==========================================================================
   Umbra Communication patterns: mail and message threads, attachments and preview, text editor bar,
   emoji picker, notification centre and hover cards. (Meetings and voice are in umbra-meet.css.)
   Part of css/umbra.css (tools/build.mjs). Uses only --u-* tokens, so dark and light both work.
   ========================================================================== */

/* This part covers mail, threads, mentions, attachments, the file viewer, the text
   editor bar, the emoji picker, the notification centre and hover cards (0.2.0).
   Local knobs use short names without --u- (like --c, --bg, --z), the way the
   components already do (--h, --s, --v), so they never look like tokens. */

/* =============== Mail: list and reading pane =============== */
/* Two panes on a desktop; on a phone the list and the open message are two screens
   (.u-mail.is-reading shows the message, its Back button shows the list again). */
.u-mail { display: grid; grid-template-columns: minmax(240px, 340px) minmax(0, 1fr); height: 100%; min-height: 0; border-radius: var(--u-r-lg); border: 1px solid var(--u-hair); background: var(--u-lv1); overflow: hidden; }
.u-mail-list { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-right: 1px solid var(--u-hair); background: var(--u-lv1); }
.u-mail-lh { display: flex; align-items: center; gap: 8px; height: 44px; flex: none; padding: 0 8px 0 14px; border-bottom: 1px solid var(--u-hair); }
.u-mail-lh h3 { margin: 0; color: var(--u-t1); font-size: var(--u-fs); font-weight: 600; }
.u-mail-lh > .u-count { margin-right: auto; }
.u-mail-rows { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 2px; padding: 4px; }

.u-mailrow { position: relative; flex: none; border-radius: 9px; border: 1px solid transparent; }
.u-mailrow:hover { background: var(--u-hover); }
.u-mailrow.is-selected { background: var(--u-lv3); border-color: var(--u-hair); box-shadow: var(--u-sh-row); }
.u-mailrow.is-unread::before { content: ""; position: absolute; left: 5px; top: 17px; width: 6px; height: 6px; border-radius: 50%; background: var(--u-blue); pointer-events: none; }
.u-mailrow-main { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 9px 10px 9px 16px; border: 0; border-radius: inherit; background: none; color: var(--u-t2); text-align: left; }
.u-mailrow-main:focus-visible { outline-offset: -2px; }
.u-mailrow-main > .u-avatar { margin-top: 1px; }
.u-mailrow-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.u-mailrow-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.u-mailrow-from { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--u-t2); }
.u-mailrow-time { color: var(--u-t4); font-size: var(--u-fs-xs); white-space: nowrap; font-variant-numeric: tabular-nums; }
.u-mailrow-top > .u-i { width: 12px; height: 12px; color: var(--u-t4); }
.u-mailrow-top > .u-mailrow-flag { color: var(--u-bad-t); }
.u-mailrow-subj, .u-mailrow-prev { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-mailrow-subj { color: var(--u-t2); }
.u-mailrow-prev { padding-right: 24px; color: var(--u-t3); font-size: var(--u-fs-sm); }
.u-mailrow.is-unread .u-mailrow-from { color: var(--u-t1); font-weight: 600; }
.u-mailrow.is-unread .u-mailrow-subj { color: var(--u-t1); font-weight: 500; }
/* The star sits on the row, beside (not inside) the row's button. */
.u-mailrow-star { position: absolute; right: 6px; bottom: 5px; color: var(--u-t4); }
.u-mailrow-star.u-ibtn--sm { --h: 22px; }
.u-mailrow-star[aria-pressed="true"], .u-mailrow-star[aria-pressed="true"]:hover { background: transparent; border-color: transparent; box-shadow: none; color: var(--u-warn-t); }
.u-mailrow-star[aria-pressed="true"] .u-i { fill: currentColor; }

/* The reading pane */
.u-mailview { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--u-lv2); }
.u-mailview-bar { display: flex; align-items: center; gap: 4px; height: var(--u-head-h); flex: none; padding: 0 8px; border-bottom: 1px solid var(--u-hair); }
.u-mailview-bar > .u-sep--v { margin: 10px 4px; }
.u-mailview-bar > .u-mailview-sp { flex: 1; }
.u-mailview-back { display: none; }
.u-mailview-sc { flex: 1; min-height: 0; overflow: auto; padding: 18px 22px 26px; }
.u-mailview-subj { margin: 0; color: var(--u-t1); font-size: var(--u-fs-xl); font-weight: 600; line-height: 1.25; letter-spacing: -.02em; overflow-wrap: anywhere; }
.u-mailview-subj:focus { outline: 0; }
.u-mailview-subj:focus-visible { outline: 2px solid var(--u-blue); outline-offset: 3px; }
.u-mailview-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.u-mailview-from { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--u-hair); }
.u-mailview-who { flex: 1; min-width: 0; }
.u-mailview-name { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; }
.u-mailview-name b { color: var(--u-t1); font-weight: 500; }
.u-mailview-name span { min-width: 0; overflow-wrap: anywhere; color: var(--u-t3); font-size: var(--u-fs-sm); }
.u-mailview-time { flex: none; color: var(--u-t4); font-size: var(--u-fs-xs); white-space: nowrap; margin-top: 2px; }
.u-mailview-to { display: inline-flex; align-items: center; gap: 3px; height: 22px; margin: 1px 0 0 -4px; padding: 0 4px; border: 0; border-radius: 5px; background: none; color: var(--u-t3); font-size: var(--u-fs-sm); max-width: 100%; }
.u-mailview-to:hover { background: var(--u-hover); color: var(--u-t1); }
.u-mailview-to > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.u-mailview-to > .u-i { width: 12px; height: 12px; transition: transform .25s var(--u-ease); }
.u-mailview-to[aria-expanded="true"] > .u-i { transform: rotate(180deg); }
.u-mailview-rcpt { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; margin: 8px 0 0; padding: 8px 10px; border-radius: 9px; border: 1px solid var(--u-hair); background: var(--u-sunken); font-size: var(--u-fs-sm); animation: u-rise var(--u-med) var(--u-ease); }
.u-mailview-rcpt dt { color: var(--u-t4); }
.u-mailview-rcpt dd { margin: 0; color: var(--u-t2); overflow-wrap: anywhere; }
.u-mailview-body { max-width: 68ch; padding-top: 16px; color: var(--u-t2); line-height: 1.6; overflow-wrap: anywhere; }
.u-mailview-body p { margin: 0 0 12px; }
.u-mailview-body a { color: var(--u-blue-t); }
.u-mailview-body blockquote { margin: 0 0 12px; padding: 2px 0 2px 12px; border-left: 2px solid var(--u-hair3); color: var(--u-t3); }
.u-mailview-att { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--u-hair); }
.u-mailview-att > .u-label { display: block; margin-bottom: 8px; }

/* =============== Chat: threads, hover actions, mentions, message states =============== */
.u-reacts { flex-wrap: wrap; }
/* .u-msg-body wraps a message's bubble, reactions and meta so the hover bar can sit on it. */
.u-msg-body { position: relative; min-width: 0; }
.u-msg-acts { position: absolute; z-index: 2; top: -15px; right: 6px; display: flex; gap: 1px; padding: 2px; border-radius: 9px; border: 1px solid var(--u-hair2); background: var(--u-lv3); box-shadow: var(--u-sh-row); opacity: 0; transform: translateY(3px); pointer-events: none; transition: opacity .14s var(--u-ease), transform .2s var(--u-ease); }
.u-msg-acts .u-ibtn { --h: 24px; }
.u-msg:hover .u-msg-acts, .u-msg-acts:focus-within, .u-msg-acts.is-open { opacity: 1; transform: none; pointer-events: auto; }

/* @mentions: blue for anyone, warmer and bolder when it is you */
.u-mention { padding: 0 3px; border-radius: 4px; background: var(--u-blue-10); color: var(--u-blue-t); font-weight: 500; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
button.u-mention { border: 0; font: inherit; font-weight: 500; line-height: inherit; cursor: pointer; }
button.u-mention:hover { background: var(--u-blue-20); }
.u-mention--me, button.u-mention--me { background: var(--u-warn-10); color: var(--u-warn-t); font-weight: 600; box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--u-warn) 50%, transparent); }
.u-msg--out .u-mention { background: color-mix(in srgb, var(--u-on-accent) 20%, transparent); color: var(--u-on-accent); box-shadow: none; }
.u-msg.is-mentioned .u-bubble { border-radius: 0 14px 14px 0; border-color: color-mix(in srgb, var(--u-warn) 45%, transparent); box-shadow: var(--u-edge), inset 2px 0 0 var(--u-warn); }

.u-msg-edited { color: var(--u-t4); }
.u-msg-state { display: flex; align-items: center; gap: 6px; min-height: 18px; margin-top: 4px; color: var(--u-t4); font-size: var(--u-fs-xs); }
.u-msg--out .u-msg-state { justify-content: flex-end; }
.u-msg-state--bad { color: var(--u-bad-t); }
.u-msg-state .u-btn { margin-left: 2px; }
.u-msg.is-sending .u-bubble { opacity: .6; }
.u-msg.is-failed .u-bubble { box-shadow: 0 0 0 1px var(--u-bad); }
.u-msg.is-sending .u-msg-meta, .u-msg.is-failed .u-msg-meta { display: none; }

/* "New Messages" line: where unread starts */
.u-newsep { display: flex; align-items: center; gap: 10px; color: var(--u-bad-t); font-size: var(--u-fs-xs); font-weight: 500; }
.u-newsep::before, .u-newsep::after { content: ""; flex: 1; height: 1px; background: color-mix(in srgb, var(--u-bad) 45%, transparent); }

/* Reply summary under a message; opens the thread panel */
.u-thread-sum { display: inline-flex; align-items: center; gap: 8px; height: 28px; margin: 4px 0 0 -4px; padding: 0 8px 0 4px; border-radius: 8px; border: 1px solid transparent; background: none; color: var(--u-t3); font-size: var(--u-fs-sm); white-space: nowrap; }
.u-thread-sum:hover, .u-thread-sum[aria-expanded="true"] { background: var(--u-lv2); border-color: var(--u-hair); }
.u-thread-sum b { color: var(--u-blue-t); font-weight: 500; }
.u-thread-sum .u-avatar { --s: 20px; }
.u-thread-sum > .u-i { width: 12px; height: 12px; opacity: 0; transform: translateX(-3px); transition: opacity var(--u-fast) var(--u-ease), transform .2s var(--u-ease); }
.u-thread-sum:hover > .u-i, .u-thread-sum:focus-visible > .u-i { opacity: 1; transform: none; }

/* A conversation with a thread panel beside it (over it on a phone) */
.u-chatwrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); height: 100%; min-height: 0; border-radius: var(--u-r-lg); border: 1px solid var(--u-hair); background: var(--u-lv1); overflow: hidden; }
.u-chatwrap.has-thread { grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); }
.u-chatwrap-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.u-chatwrap-h, .u-thread-h { display: flex; align-items: center; gap: 8px; height: 44px; flex: none; padding: 0 8px 0 14px; border-bottom: 1px solid var(--u-hair); min-width: 0; }
.u-chatwrap-h h3, .u-thread-h h3 { margin: 0; color: var(--u-t1); font-size: var(--u-fs); font-weight: 600; white-space: nowrap; }
.u-chatwrap-h h3:focus, .u-thread-h h3:focus { outline: 0; }
.u-chatwrap-h > span, .u-thread-h > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--u-t4); font-size: var(--u-fs-sm); }
.u-thread-h > .u-ibtn { margin-left: auto; }
.u-chatwrap-main > .u-chat { flex: 1; min-height: 0; overflow: auto; }
.u-chatwrap-main > .u-composer, .u-thread > .u-composer { margin: 0 10px 10px; flex: none; }
.u-thread { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--u-lv2); border-left: 1px solid var(--u-hair); animation: u-comms-in-r .3s var(--u-ease); }
.u-thread-b { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.u-thread-b .u-msg { max-width: 100%; }
.u-thread-n { display: flex; align-items: center; gap: 10px; color: var(--u-t4); font-size: var(--u-fs-xs); }
.u-thread-n::after { content: ""; flex: 1; height: 1px; background: var(--u-hair); }

/* Mention picker (the composer's @ button, or typing @) */
.u-mentionpick { width: 264px; }
.u-mentionpick .u-menu-item { min-height: 38px; gap: 10px; }
.u-mentionpick .u-avatar > .u-presence { box-shadow: 0 0 0 2px var(--u-lv3); }
.u-mentionpick-n { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.u-mentionpick-n b { color: var(--u-t1); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-mentionpick-n span { color: var(--u-t4); font-size: var(--u-fs-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-mentionpick [role="listbox"] { max-height: 236px; overflow: auto; }

/* Hover-card trigger: a name or device that shows a card on hover or focus */
.u-hoverlink { padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 500; text-decoration: underline dotted transparent; text-underline-offset: 3px; }
.u-hoverlink:hover, .u-hoverlink[aria-expanded="true"] { color: var(--u-t1); text-decoration-color: currentColor; }

/* =============== Attachments =============== */
.u-attachs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 8px; }
.u-attach { --c: var(--u-t2); --bg: var(--u-gray-10); display: flex; align-items: center; gap: 10px; min-width: 0; padding: 7px 6px 7px 8px; border-radius: 10px; border: 1px solid var(--u-hair); background: var(--u-lv2); box-shadow: var(--u-edge); }
.u-attach:hover { border-color: var(--u-hair2); }
.u-attach-ic { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 8px; background: var(--bg); color: var(--c); }
.u-attach-b { flex: 1; min-width: 0; line-height: 1.3; }
.u-attach-n { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--u-t1); font-weight: 500; font-size: var(--u-fs-sm); }
.u-attach-m { display: block; color: var(--u-t4); font-size: var(--u-fs-xs); white-space: nowrap; }
.u-attach-acts { display: flex; gap: 1px; flex: none; }
.u-attach--pdf { --c: var(--u-bad-t); --bg: var(--u-bad-10); }
.u-attach--img { --c: var(--u-vio-t); --bg: var(--u-vio-10); }
.u-attach--sheet { --c: var(--u-ok-t); --bg: var(--u-ok-10); }
.u-attach--doc { --c: var(--u-blue-t); --bg: var(--u-blue-10); }
.u-attach--zip { --c: var(--u-warn-t); --bg: var(--u-warn-10); }
.u-attach--code { --c: var(--u-cyan-t); --bg: var(--u-cyan-10); }
.u-attach--media { --c: var(--u-pink-t); --bg: var(--u-pink-10); }

/* =============== File preview viewer (a full-screen .u-modal) =============== */
.u-modal.u-viewer { left: 8px; top: 8px; right: 8px; bottom: 8px; width: auto; max-height: none; transform: none; overflow: hidden; background: var(--u-lv1); animation: u-comms-zoom-in .28s var(--u-ease); }
.u-modal.u-viewer.is-closing { animation: u-comms-zoom-out .16s ease-in forwards; }
.u-viewer-bar { display: flex; align-items: center; gap: 8px; height: var(--u-head-h); flex: none; padding: 0 8px 0 12px; background: var(--u-lv0); border-bottom: 1px solid var(--u-hair); min-width: 0; }
.u-viewer-bar > .u-attach-ic { width: 28px; height: 28px; border-radius: 7px; }
.u-viewer-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.u-viewer-name { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--u-t1); font-size: var(--u-fs); font-weight: 500; }
.u-viewer-meta { color: var(--u-t4); font-size: var(--u-fs-xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-viewer-tools { display: flex; align-items: center; gap: 2px; flex: none; }
.u-viewer-tools > .u-sep--v { margin: 12px 6px; }
.u-viewer-num { min-width: 84px; text-align: center; color: var(--u-t2); font-size: var(--u-fs-sm); font-variant-numeric: tabular-nums; white-space: nowrap; }
.u-viewer-zoom { min-width: 44px; text-align: center; color: var(--u-t2); font: 500 var(--u-fs-xs) var(--u-f-mono); font-variant-numeric: tabular-nums; }
.u-viewer-stage { flex: 1; min-height: 0; overflow: auto; padding: 24px 16px 32px; background: var(--u-sunken); outline: 0; border-radius: 0 0 var(--u-r-xl) var(--u-r-xl); }
.u-viewer-stage:focus-visible { box-shadow: inset 0 0 0 2px var(--u-blue); }
/* Pages size from --pw (natural width) times --z (zoom). Content sized in em grows
   with the page, so zooming changes real size and the stage scrolls. */
.u-viewer-doc { --z: 1; }
.u-viewer-pg { position: relative; width: calc(var(--pw, 600px) * var(--z, 1)); aspect-ratio: 8.5 / 11; margin: 0 auto; overflow: hidden; border-radius: 4px; border: 1px solid var(--u-hair); background: var(--u-lv2); box-shadow: var(--u-sh-card); color: var(--u-t2); font-size: calc(12px * var(--z, 1)); line-height: 1.5; animation: u-fade .2s ease; }
.u-viewer-pg--img { --pw: 760px; aspect-ratio: 16 / 10; border-radius: 6px; }

/* =============== Rich text editor =============== */
.u-rte { position: relative; min-width: 0; border-radius: var(--u-r); border: 1px solid var(--u-hair2); background: var(--u-fld); box-shadow: var(--u-fld-in); }
.u-rte:hover { border-color: var(--u-hair3); }
.u-rte:focus-within { border-color: var(--u-blue); box-shadow: var(--u-fld-in), var(--u-ring); }
.u-rte-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; padding: 4px; border-bottom: 1px solid var(--u-hair); }
.u-rte-bar > .u-sep--v { margin: 5px 3px; }
.u-rte-glyph { font: 700 13px/1 var(--u-f-ui); }
.u-rte-area { min-height: 116px; max-height: 320px; overflow: auto; padding: 10px 12px; outline: 0; color: var(--u-t1); line-height: 1.55; overflow-wrap: anywhere; }
.u-rte-area.is-empty::before { content: attr(data-placeholder); float: left; height: 0; color: var(--u-t4); pointer-events: none; }
.u-rte-area > :first-child { margin-top: 0; }
.u-rte-area p, .u-rte-area div { margin: 0 0 .45em; }
.u-rte-area ul, .u-rte-area ol { margin: 0 0 .45em; padding-left: 1.5em; }
.u-rte-area blockquote { margin: 0 0 .45em; padding: 1px 0 1px 11px; border-left: 2px solid var(--u-hair3); color: var(--u-t2); }
.u-rte-area pre { margin: 0 0 .45em; padding: 8px 10px; border-radius: 7px; border: 1px solid var(--u-hair); background: var(--u-sunken); color: var(--u-t1); font: 12.5px/1.55 var(--u-f-mono); white-space: pre-wrap; }
.u-rte-area code { padding: 0 4px; border-radius: 4px; background: var(--u-active); font: .92em var(--u-f-mono); }
.u-rte-area a { color: var(--u-blue-t); text-underline-offset: 2px; }
.u-rte-link { width: 300px; }
.u-rte-link form { display: flex; flex-direction: column; gap: 8px; }
.u-rte-link .u-row { justify-content: flex-end; }

/* =============== Emoji picker =============== */
.u-pop.u-emoji { width: 328px; padding: 0; overflow: hidden; }
.u-emoji-top { padding: 10px 10px 0; }
.u-emoji .u-tabs { padding: 0 6px; margin-top: 6px; }
.u-emoji .u-tab { height: 32px; padding: 0 8px; }
.u-emoji .u-tab .u-i { width: 15px; height: 15px; }
.u-emoji-sc { height: 236px; overflow: auto; padding: 4px 8px 8px; }
.u-emoji-label { padding: 6px 4px 4px; color: var(--u-t4); font-size: var(--u-fs-xs); font-weight: 500; }
.u-emoji-grid, .u-emoji-recent { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 2px; }
.u-emoji-b { display: grid; place-items: center; height: 34px; padding: 0; border: 0; border-radius: 8px; background: none; font: 20px/1 "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; transition: transform .18s var(--u-ease); }
.u-emoji-b:hover, .u-emoji-b.is-active { background: var(--u-active); }
.u-emoji-b:hover { transform: scale(1.1); }
.u-emoji-b:focus-visible { outline-offset: -2px; }
.u-emoji-empty { padding: 28px 12px; color: var(--u-t4); text-align: center; font-size: var(--u-fs-sm); }
.u-emoji-foot { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-top: 1px solid var(--u-hair); color: var(--u-t3); font-size: var(--u-fs-sm); }
.u-emoji-foot > b { font: 22px/1 "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.u-emoji-foot > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-react-add { color: var(--u-t3); padding: 0 6px; }
.u-react-add .u-i { width: 13px; height: 13px; }
.u-react > .u-react-e { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }

/* =============== Notification centre =============== */
.u-notif-btn { position: relative; }
.u-notif-count { position: absolute; top: -4px; right: -5px; height: 16px; min-width: 16px; padding: 0 4px; font-size: var(--u-fs-xs); box-shadow: 0 0 0 2px var(--u-lv1); pointer-events: none; }
.u-notif-btn.is-bump > .u-i { animation: u-comms-ring .7s var(--u-ease); }
.u-pop.u-notif { display: flex; flex-direction: column; width: 384px; max-height: min(540px, calc(var(--u-vh, 100vh) - 24px)); padding: 0; overflow: hidden; }
.u-notif-h { display: flex; align-items: center; gap: 8px; padding: 10px 8px 0 14px; }
.u-notif-h h2 { margin: 0 auto 0 0; color: var(--u-t1); font-size: var(--u-fs-md); font-weight: 600; }
.u-notif-tabs { padding: 8px 12px 10px; border-bottom: 1px solid var(--u-hair); }
.u-notif-l { flex: 1; min-height: 0; overflow: auto; padding: 4px; }
.u-notif-gh { padding: 8px 10px 4px; color: var(--u-t4); font-size: var(--u-fs-xs); font-weight: 500; }
.u-notif-i { position: relative; border-radius: 9px; }
.u-notif-i:hover { background: var(--u-hover); }
.u-notif-i.is-new { animation: u-rise var(--u-slow) var(--u-ease); }
.u-notif-main { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 8px 26px 8px 10px; border: 0; border-radius: inherit; background: none; color: var(--u-t2); text-align: left; }
.u-notif-main:focus-visible { outline-offset: -2px; }
.u-notif-ic { --c: var(--u-t2); --bg: var(--u-gray-10); display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 8px; background: var(--bg); color: var(--c); }
.u-notif-ic .u-i { width: 14px; height: 14px; }
.u-notif-ic--blue { --c: var(--u-blue-t); --bg: var(--u-blue-10); }
.u-notif-ic--ok { --c: var(--u-ok-t); --bg: var(--u-ok-10); }
.u-notif-ic--warn { --c: var(--u-warn-t); --bg: var(--u-warn-10); }
.u-notif-ic--bad { --c: var(--u-bad-t); --bg: var(--u-bad-10); }
.u-notif-ic--vio { --c: var(--u-vio-t); --bg: var(--u-vio-10); }
.u-notif-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.u-notif-t { color: var(--u-t1); overflow-wrap: anywhere; }
.u-notif-i.is-unread .u-notif-t { font-weight: 600; }
.u-notif-s { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--u-t3); font-size: var(--u-fs-sm); }
.u-notif-m { display: flex; align-items: center; gap: 4px; margin-top: 2px; color: var(--u-t4); font-size: var(--u-fs-xs); }
.u-notif-m .u-i { width: 11px; height: 11px; }
.u-notif-dot { position: absolute; top: 14px; right: 12px; width: 7px; height: 7px; border-radius: 50%; background: var(--u-blue); pointer-events: none; transition: opacity var(--u-fast); }
.u-notif-acts { position: absolute; top: 5px; right: 6px; display: flex; gap: 1px; padding: 2px; border-radius: 8px; border: 1px solid var(--u-hair2); background: var(--u-lv3); box-shadow: var(--u-sh-row); opacity: 0; transform: translateY(-2px); pointer-events: none; transition: opacity .14s var(--u-ease), transform .2s var(--u-ease); }
.u-notif-acts .u-ibtn { --h: 24px; }
.u-notif-i:hover .u-notif-acts, .u-notif-i:focus-within .u-notif-acts { opacity: 1; transform: none; pointer-events: auto; }
.u-notif-i:hover .u-notif-dot, .u-notif-i:focus-within .u-notif-dot { opacity: 0; }
.u-notif .u-empty { padding: 30px 20px; }

/* =============== Hover card =============== */
.u-hovercard { position: fixed; z-index: var(--u-z-menu); width: 288px; max-width: calc(var(--u-vw, 100vw) - 16px); border-radius: 12px; border: 1px solid var(--u-hair2); background: var(--u-lv3); box-shadow: var(--u-sh-pop); transform-origin: var(--u-origin, top left); animation: u-menu-in .18s var(--u-ease); }
.u-hovercard.is-closing { animation: u-menu-out .12s ease-in forwards; }
.u-hovercard-h { display: flex; align-items: center; gap: 12px; padding: 14px 14px 10px; }
.u-hovercard-h > div { min-width: 0; }
.u-hovercard-h h4 { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--u-t1); font-size: var(--u-fs-md); font-weight: 600; }
.u-hovercard-h p { margin: 1px 0 0; color: var(--u-t3); font-size: var(--u-fs-sm); }
.u-hovercard-h > .u-device-ic { width: 40px; height: 40px; border-radius: 10px; }
.u-hovercard-b { display: flex; flex-direction: column; gap: 6px; padding: 0 14px 12px; color: var(--u-t2); font-size: var(--u-fs-sm); }
.u-hovercard-r { display: flex; align-items: center; gap: 8px; min-width: 0; }
.u-hovercard-r > .u-i { width: 14px; height: 14px; color: var(--u-t4); }
.u-hovercard-r > .u-dotst { margin: 0 3px; }
.u-hovercard-f { display: flex; gap: 8px; padding: 10px 14px 12px; border-top: 1px solid var(--u-hair); }
.u-hovercard-f > .u-btn { flex: 1; }

/* =============== Motion for this part (transform and opacity only) =============== */
@keyframes u-comms-in-r { from { opacity: 0; transform: translateX(16px); } }
@keyframes u-comms-zoom-in { from { opacity: 0; transform: scale(.98); } }
@keyframes u-comms-zoom-out { to { opacity: 0; transform: scale(.985); } }
@keyframes u-comms-ring { 0%, 100% { transform: none; } 20% { transform: rotate(14deg); } 40% { transform: rotate(-11deg); } 60% { transform: rotate(7deg); } 80% { transform: rotate(-3deg); } }

/* =============== Phone =============== */
@media (max-width: 640px) {
  .u-mail { grid-template-columns: minmax(0, 1fr); }
  .u-mail > .u-mailview { display: none; }
  .u-mail.is-reading > .u-mail-list { display: none; }
  .u-mail.is-reading > .u-mailview { display: flex; animation: u-comms-in-r .3s var(--u-ease); }
  .u-mailview-back { display: inline-grid; }
  .u-mailrow-main { padding: 11px 10px 11px 16px; }
  .u-mailrow-star.u-ibtn--sm { --h: 36px; right: 2px; bottom: 0; }
  .u-mailrow-prev { padding-right: 34px; }
  /* Action labels stay for screen readers; on a phone only the icons show. */
  .u-mailview-bar .u-btn { width: var(--h); padding: 0; }
  .u-mailview-bar .u-btn > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .u-mailview-sc { padding: 14px 16px 20px; }
  .u-mailview-to { height: 32px; }
  .u-chatwrap.has-thread { grid-template-columns: minmax(0, 1fr); }
  .u-thread { position: absolute; inset: 0; z-index: 3; border-left: 0; }
  .u-thread-sum { height: 36px; }
  .u-msg-acts .u-ibtn, .u-notif-acts .u-ibtn { --h: 32px; }
  .u-msg-acts { top: -22px; }
  .u-viewer-bar { height: auto; flex-wrap: wrap; row-gap: 4px; padding: 6px 6px 6px 10px; }
  .u-viewer-t { flex-basis: calc(100% - 90px); }
  .u-viewer-tools { order: 3; width: 100%; justify-content: space-between; }
  .u-viewer-tools > .u-sep--v { display: none; }
  .u-viewer-num { min-width: 0; }
  .u-viewer-stage { padding: 14px 10px 20px; }
  .u-modal.u-viewer { left: 0; top: 0; right: 0; bottom: 0; border-radius: 0; transform: none; animation-name: u-comms-zoom-in; }
  .u-modal.u-viewer.is-closing { animation-name: u-comms-zoom-out; }
  .u-viewer-bar, .u-viewer-stage { border-radius: 0; }
  .u-pop.u-emoji, .u-pop.u-notif { width: calc(var(--u-vw, 100vw) - 16px); }
  .u-emoji-b { height: 40px; }
  /* No hover on a phone: quick actions sit in a row under each notification. */
  .u-notif-acts { position: static; justify-content: flex-end; padding: 0 6px 6px 48px; border: 0; background: none; box-shadow: none; opacity: 1; transform: none; pointer-events: auto; }
  .u-notif-i:hover .u-notif-dot, .u-notif-i:focus-within .u-notif-dot { opacity: 1; }
  .u-notif-main { padding-bottom: 2px; }
  .u-hovercard-f > .u-btn { --h: 36px; }
}
@container u-frame (max-width: 640px) {
  .u-mail { grid-template-columns: minmax(0, 1fr); }
  .u-mail > .u-mailview { display: none; }
  .u-mail.is-reading > .u-mail-list { display: none; }
  .u-mail.is-reading > .u-mailview { display: flex; animation: u-comms-in-r .3s var(--u-ease); }
  .u-mailview-back { display: inline-grid; }
  .u-mailrow-main { padding: 11px 10px 11px 16px; }
  .u-mailrow-star.u-ibtn--sm { --h: 36px; right: 2px; bottom: 0; }
  .u-mailrow-prev { padding-right: 34px; }
  /* Action labels stay for screen readers; on a phone only the icons show. */
  .u-mailview-bar .u-btn { width: var(--h); padding: 0; }
  .u-mailview-bar .u-btn > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .u-mailview-sc { padding: 14px 16px 20px; }
  .u-mailview-to { height: 32px; }
  .u-chatwrap.has-thread { grid-template-columns: minmax(0, 1fr); }
  .u-thread { position: absolute; inset: 0; z-index: 3; border-left: 0; }
  .u-thread-sum { height: 36px; }
  .u-msg-acts .u-ibtn, .u-notif-acts .u-ibtn { --h: 32px; }
  .u-msg-acts { top: -22px; }
  .u-viewer-bar { height: auto; flex-wrap: wrap; row-gap: 4px; padding: 6px 6px 6px 10px; }
  .u-viewer-t { flex-basis: calc(100% - 90px); }
  .u-viewer-tools { order: 3; width: 100%; justify-content: space-between; }
  .u-viewer-tools > .u-sep--v { display: none; }
  .u-viewer-num { min-width: 0; }
  .u-viewer-stage { padding: 14px 10px 20px; }
  .u-modal.u-viewer { left: 0; top: 0; right: 0; bottom: 0; border-radius: 0; transform: none; animation-name: u-comms-zoom-in; }
  .u-modal.u-viewer.is-closing { animation-name: u-comms-zoom-out; }
  .u-viewer-bar, .u-viewer-stage { border-radius: 0; }
  .u-pop.u-emoji, .u-pop.u-notif { width: calc(var(--u-vw, 100vw) - 16px); }
  .u-emoji-b { height: 40px; }
  /* No hover on a phone: quick actions sit in a row under each notification. */
  .u-notif-acts { position: static; justify-content: flex-end; padding: 0 6px 6px 48px; border: 0; background: none; box-shadow: none; opacity: 1; transform: none; pointer-events: auto; }
  .u-notif-i:hover .u-notif-dot, .u-notif-i:focus-within .u-notif-dot { opacity: 1; }
  .u-notif-main { padding-bottom: 2px; }
  .u-hovercard-f > .u-btn { --h: 36px; }
}

/* =============== 0.5.1: text colour and highlight in the reply editor ===============
   Inbox Mail, Nov 19 2026. [data-u-cmd="color"] and [data-u-cmd="highlight"] buttons
   show the colour they last set as a bar under the glyph and open a swatch grid.
   The colours are fixed, not theme tokens: they go out in the mail and must read the
   same in the person's own mail app. */
.u-ibtn.u-rte-swb { width: auto; min-width: var(--h); display: inline-flex; align-items: center; gap: 1px; padding: 0 3px 0 5px; }
.u-rte-swb > .u-rte-swg { display: grid; justify-items: center; gap: 2px; }
.u-rte-swg > .u-rte-glyph, .u-rte-swg > .u-i { line-height: 1; }
.u-rte-swg > .u-i { width: 14px; height: 14px; }
.u-rte-swbar { display: block; width: 14px; height: 3px; border-radius: 1px; background: var(--c, currentColor); box-shadow: inset 0 0 0 1px var(--u-hair2); }
.u-rte-swb > .u-i:last-child { width: 10px; height: 10px; color: var(--u-t4); }
.u-rte-pal { padding: 10px; }
.u-rte-pal-h { margin: 0 0 8px; color: var(--u-t3); font-size: var(--u-fs-xs); font-weight: 500; }
.u-rte-pal-g { display: grid; grid-template-columns: repeat(5, 26px); gap: 6px; }
.u-rte-pal-g > button { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border-radius: 7px; border: 1px solid var(--u-hair2); background: var(--c); color: var(--u-t1); }
.u-rte-pal-g > button:hover { transform: scale(1.08); }
.u-rte-pal-g > button { transition: transform .15s var(--u-ease); }
.u-rte-pal-g > button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--u-lv1), 0 0 0 4px var(--u-blue); }
.u-rte-pal-g > button.is-auto { background: var(--u-fld); font: 700 13px/1 var(--u-f-ui); }
.u-rte-pal-g > button.is-none { background: var(--u-fld) linear-gradient(135deg, transparent 44%, var(--u-bad) 44%, var(--u-bad) 56%, transparent 56%); }
/* Highlighted text is read on its pale wash in either theme, so it keeps dark ink in
   the editor unless the person also gave it a colour (the sent mail is unchanged). */
.u-rte-area [style*="background-color"]:not([style^="color"]):not([style*=" color"]) { color: var(--u-mark-ink); }
@media (max-width: 640px) {
  .u-rte-pal-g { grid-template-columns: repeat(5, 36px); gap: 8px; }
  .u-rte-pal-g > button { width: 36px; height: 36px; }
}
@container u-frame (max-width: 640px) {
  .u-rte-pal-g { grid-template-columns: repeat(5, 36px); gap: 8px; }
  .u-rte-pal-g > button { width: 36px; height: 36px; }
}

/* ---- umbra-meet.css ---- */
/* ==========================================================================
   Umbra meeting and voice patterns: video tiles and grid, speaker stage, self view, pre-join,
   admit notices, device menus, recording chips, audio player, call logs, extension status, dial pad.
   Part of css/umbra.css (tools/build.mjs). Uses only --u-* tokens, so dark and light both work.

   Layout follows the space a piece is given, not the window: the meeting frame (.u-meet), the
   video area (.u-meet-view), the pre-join screen and the call log are size containers, so a
   390px-wide frame on a desktop shows the phone layout too (the gallery uses that to preview).
   Local knobs (--vc tile colour, --cols/--rows grid, --v level, --h bar height) are plain
   custom properties set on the element, not tokens.
   ========================================================================== */

/* =============== Video tile =============== */
/* Stand-in video: a soft tinted gradient with a faint head-and-shoulders shape. No camera and
   no image: apps put their <video> inside .u-vtile-feed and the stand-in stays underneath. */
.u-vtile {
  --vc: var(--u-blue);
  container: uvtile / inline-size;
  position: relative; isolation: isolate; display: block; min-width: 0; overflow: hidden;
  aspect-ratio: 16 / 9; border-radius: var(--u-r-lg); border: 1px solid var(--u-hair);
  background: color-mix(in srgb, var(--vc) 8%, var(--u-sunken)); box-shadow: var(--u-sh-card);
  color: var(--u-t1); font-size: var(--u-fs-sm); line-height: 1.2;
}
.u-vtile-feed {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 13% 23% at 50% 43%, color-mix(in srgb, var(--vc) 34%, var(--u-lv3)) 0 62%, transparent 100%),
    radial-gradient(ellipse 34% 30% at 50% 100%, color-mix(in srgb, var(--vc) 30%, var(--u-lv3)) 0 66%, transparent 100%),
    radial-gradient(120% 90% at 18% 0%, color-mix(in srgb, var(--vc) 26%, transparent), transparent 60%),
    linear-gradient(165deg, color-mix(in srgb, var(--vc) 16%, var(--u-lv2)), color-mix(in srgb, var(--vc) 6%, var(--u-sunken)));
}
.u-vtile-feed > video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Camera off: the avatar, sized by the tile */
.u-vtile > .u-avatar { --c: var(--vc); --s: clamp(30px, 22cqw, 96px); position: absolute; left: 50%; top: 50%; margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); display: none; }
.u-vtile.is-camoff > .u-vtile-feed { display: none; }
.u-vtile.is-camoff > .u-avatar { display: grid; }
/* Speaking: a ring round the tile that breathes, and a halo round the avatar. Opacity and
   transform only. */
.u-vtile::after { content: ""; position: absolute; inset: 0; z-index: 4; border-radius: inherit; box-shadow: inset 0 0 0 2px var(--u-ok); opacity: 0; transition: opacity var(--u-med); pointer-events: none; }
.u-vtile.is-speaking::after { opacity: 1; animation: u-vspeak 1.6s ease-in-out infinite; }
.u-vtile.is-speaking > .u-avatar::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--u-ok); animation: u-vhalo 1.5s var(--u-ease-out) infinite; pointer-events: none; }
.u-vtile.is-pinned { border-color: color-mix(in srgb, var(--u-blue) 55%, transparent); }

/* Overlays: small chips on a near-solid backing so text stays readable over any picture */
.u-vtile-name, .u-vtile-tag, .u-vtile-net, .u-vtile-more {
  background: color-mix(in srgb, var(--u-lv0) 84%, transparent); box-shadow: 0 0 0 1px var(--u-hair);
}
.u-vtile-name { position: absolute; left: 6px; bottom: 6px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; height: 22px; max-width: calc(100% - 40px); padding: 0 8px; border-radius: 6px; color: var(--u-t1); font-weight: 500; }
.u-vtile-name > .u-truncate { line-height: 22px; }
.u-vtile-mic { display: none; width: 12px; height: 12px; color: var(--u-bad-t); }
.u-vtile.is-muted .u-vtile-mic { display: block; }
.u-vtile-tags { position: absolute; left: 6px; top: 6px; z-index: 2; display: flex; gap: 4px; max-width: calc(100% - 40px); }
.u-vtile-tag { display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 20px; min-width: 20px; padding: 0 6px; border-radius: 6px; color: var(--u-t1); font-size: var(--u-fs-xs); font-weight: 500; white-space: nowrap; }
.u-vtile-tag > .u-i { width: 12px; height: 12px; }
.u-vtile-host > .u-i { color: var(--u-warn-t); }
.u-vtile-pin > .u-i { color: var(--u-blue-t); }
.u-vtile-hand { padding: 0 4px; color: var(--u-warn-t); }
.u-vtile-hand > .u-i { width: 13px; height: 13px; transform-origin: 50% 90%; }
.u-vtile:not(.is-host) .u-vtile-host, .u-vtile:not(.is-pinned) .u-vtile-pin, .u-vtile:not(.is-hand) .u-vtile-hand { display: none; }
.u-vtile.is-hand .u-vtile-hand > .u-i { animation: u-vwave .9s var(--u-ease) 2; }
/* Small tiles: the Host word gives way to the crown alone */
@container uvtile (max-width: 150px) { .u-vtile-host > span { display: none; } .u-vtile-host { padding: 0 4px; } }
/* Connection: three bars, shown only when the app reports a problem (data-net="1" poor, "2" weak) */
.u-vtile-net { position: absolute; right: 6px; bottom: 6px; z-index: 2; display: none; align-items: flex-end; justify-content: center; gap: 2px; width: 22px; height: 22px; padding-bottom: 5px; border-radius: 6px; }
.u-vtile[data-net] .u-vtile-net { display: inline-flex; }
.u-vtile-net > i { width: 3px; border-radius: 1px; background: var(--u-hair3); }
.u-vtile-net > i:nth-child(1) { height: 4px; } .u-vtile-net > i:nth-child(2) { height: 7px; } .u-vtile-net > i:nth-child(3) { height: 10px; }
.u-vtile[data-net="1"] .u-vtile-net > i:nth-child(1) { background: var(--u-bad); }
.u-vtile[data-net="2"] .u-vtile-net > i:nth-child(-n+2) { background: var(--u-warn); }
/* Options: shows on hover or keyboard focus, always on touch screens */
.u-vtile-more { position: absolute; right: 6px; top: 6px; z-index: 3; --h: 24px; color: var(--u-t1); opacity: 0; transition: opacity var(--u-fast); }
.u-vtile:hover .u-vtile-more, .u-vtile:focus-within .u-vtile-more, .u-vtile-more[aria-expanded="true"] { opacity: 1; }
@media (hover: none) { .u-vtile-more { opacity: 1; } }
.u-vtile.is-in { animation: u-vin .3s var(--u-ease); }
.u-vtile.is-out { animation: u-vout .2s ease-in forwards; pointer-events: none; }

/* =============== Meeting frame =============== */
.u-meet {
  container: umeet / inline-size;
  position: relative; display: grid; height: 100%; min-height: 0; overflow: hidden;
  grid-template: "top top" auto "view side" minmax(0, 1fr) "bar bar" auto / minmax(0, 1fr) auto;
  border-radius: var(--u-r-lg); border: 1px solid var(--u-hair); background: var(--u-lv1); color: var(--u-t2);
}
.u-meet-top { grid-area: top; display: flex; align-items: center; gap: 10px; min-width: 0; height: 44px; padding: 0 10px 0 14px; border-bottom: 1px solid var(--u-hair); background: var(--u-lv0); }
.u-meet-title { min-width: 0; color: var(--u-t1); font-weight: 500; }
.u-meet-sp { flex: 1; }
.u-meet-timer { color: var(--u-t2); font: 500 var(--u-fs-sm)/1 var(--u-f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Recording chip: the dot pulses (opacity only) */
.u-rec { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 22px; padding: 0 8px; border-radius: var(--u-r-full); background: var(--u-bad-10); color: var(--u-bad-t); font-size: var(--u-fs-xs); font-weight: 500; white-space: nowrap; }
.u-rec > i { width: 7px; height: 7px; border-radius: 50%; background: var(--u-bad); animation: u-pulse 1.6s ease-in-out infinite; }
.u-rec[hidden] { display: none; }
.u-rec-w { white-space: nowrap; }

/* The video area. Holds the grid or stage, the self view and join requests. */
.u-meet-view { container: umeetv / inline-size; grid-area: view; position: relative; min-width: 0; min-height: 0; height: 100%; overflow: hidden; }
.u-meet > .u-meet-view { background: var(--u-lv1); }

.u-meet-bar { grid-area: bar; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; padding: 8px 14px 10px; border-top: 1px solid var(--u-hair); background: var(--u-lv0); }
.u-meet-bar-l, .u-meet-bar-r { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 6px; }
.u-meet-bar-r { justify-content: flex-end; }
.u-meet-bar-c { display: flex; align-items: flex-start; gap: 14px; flex: none; }
.u-meet-bar .u-callbtn { min-width: 44px; }

/* Side panel: people, chat */
.u-meet-side { grid-area: side; display: flex; flex-direction: column; width: 272px; min-height: 0; border-left: 1px solid var(--u-hair); background: var(--u-lv2); }
.u-meet-side[hidden] { display: none; }
.u-meet-side-h { display: flex; align-items: center; gap: 8px; height: var(--u-head-h); flex: none; padding: 0 8px 0 14px; border-bottom: 1px solid var(--u-hair); }
.u-meet-side-h h3 { margin: 0; color: var(--u-t1); font-size: var(--u-fs); font-weight: 500; }
.u-meet-side-h > .u-ibtn { margin-left: auto; }
/* Back and the centred title only show on a phone, where the panel fills the screen. */
.u-meet-side-h > .u-meet-side-back { display: none; margin-left: 0; }

/* Talking bars: three short bars on a name tag that rise with the voice. Umbra.voice()
   writes transform: scaleY on each bar every frame, on a spring (quick up, soft down), so
   nothing is laid out or repainted. At rest they are three short marks; muted hides them. */
.u-voice { display: inline-flex; align-items: center; gap: 2px; height: 12px; flex: none; color: var(--u-t3); }
.u-voice > i { width: 2px; height: 100%; border-radius: var(--u-r-full); background: currentColor; transform: scaleY(.3); transform-origin: center; will-change: transform; }
.u-voice[data-talking] { color: var(--u-ok); }
.u-voice[data-talking] > i { transform: scaleY(.7); }
.u-vtile.is-muted .u-voice { display: none; }

/* Mic and camera with a device menu caret: the caret sits on the circle's lower right */
.u-callsplit { position: relative; display: inline-flex; flex: none; }
.u-callsplit-caret { position: absolute; top: 24px; left: calc(50% + 8px); z-index: 1; display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border-radius: 50%; border: 1px solid var(--u-b2-bd); background: var(--u-lv3); color: var(--u-t2); box-shadow: 0 0 0 2px var(--u-lv0), var(--u-b2-sh); transition: transform .2s var(--u-ease); }
/* The larger hit area grows away from the main button, never over its middle */
.u-callsplit-caret::before { content: ""; position: absolute; inset: -2px -8px -8px -2px; border-radius: 50%; }
.u-callsplit-caret:hover { color: var(--u-t1); background: var(--u-b2-bg-h); }
.u-callsplit-caret:active { transform: scale(.92); }
.u-callsplit-caret > .u-i { width: 12px; height: 12px; }
/* Two-state call buttons carry both icons: .u-callbtn-a shows normally, .u-callbtn-b once
   the button is .is-off (muted) or .is-on (sharing). Mic and Camera keep one fixed word
   (Enzo, Nov 20 2026), so only their icons carry a/b; Share and Raise Hand may still swap words. */
.u-callbtn:not(.is-off):not(.is-on) .u-callbtn-b, .u-callbtn.is-off .u-callbtn-a, .u-callbtn.is-on .u-callbtn-a { display: none; }
/* Inside the round button the two icons sit on top of each other and cross-fade with the
   colour (0.8.1), so the icon changes as smoothly as the fill. Words under the button still
   swap at once. An app that renders one icon and swaps it keeps working; only its icon
   changes at once. */
.u-callbtn > .u-callbtn-c > .u-i.u-callbtn-a, .u-callbtn > .u-callbtn-c > .u-i.u-callbtn-b { display: block; grid-area: 1 / 1; transition: opacity var(--u-med) var(--u-ease); }
.u-callbtn:not(.is-off):not(.is-on) > .u-callbtn-c > .u-callbtn-b, .u-callbtn.is-off > .u-callbtn-c > .u-callbtn-a, .u-callbtn.is-on > .u-callbtn-c > .u-callbtn-a { opacity: 0; }
.u-callbtn--accept > .u-callbtn-c { background: linear-gradient(180deg, var(--u-bs-top), var(--u-bs-bot)); border-color: var(--u-bs-bd); color: var(--u-on-accent); box-shadow: var(--u-bp-hi), var(--u-bs-sh); }
.u-callbtn--decline > .u-callbtn-c { background: linear-gradient(180deg, var(--u-bd-top), var(--u-bd-bot)); border-color: var(--u-bd-bd); color: var(--u-on-accent); box-shadow: var(--u-bp-hi), var(--u-bd-sh); }
/* Accept and Decline keep their colour on hover and glow like Leave (the glow lives in components). */
.u-callbtn--accept:hover > .u-callbtn-c { background: linear-gradient(180deg, var(--u-bs-top), var(--u-bs-bot)); }
.u-callbtn--decline:hover > .u-callbtn-c { background: linear-gradient(180deg, var(--u-bd-top), var(--u-bd-bot)); }
.u-callbtn--lg > .u-callbtn-c { width: 48px; height: 48px; }
.u-callbtn--sm > .u-callbtn-c { width: 32px; height: 32px; }
.u-callbtn--sm > .u-callbtn-c > .u-i { width: 16px; height: 16px; }
.u-callbtn:disabled { opacity: .45; pointer-events: none; }

/* =============== Tile grid =============== */
.u-vgrid { --cols: 1; --rows: 1; --gap: 8px; display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: var(--gap); height: 100%; padding: 10px; }
.u-vgrid > .u-vtile { flex: none; aspect-ratio: auto; width: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); height: calc((100% - (var(--rows) - 1) * var(--gap)) / var(--rows)); }
.u-meet-view.has-pages > .u-vgrid { padding-bottom: 46px; }
.u-vgrid-pager { position: absolute; left: 50%; bottom: 8px; z-index: 5; display: inline-flex; align-items: center; gap: 2px; height: 30px; padding: 0 3px; border-radius: var(--u-r-full); border: 1px solid var(--u-hair2); background: var(--u-lv3); box-shadow: var(--u-sh-row); transform: translateX(-50%); }
.u-vgrid-pager[hidden] { display: none; }
.u-vgrid-pager > .u-ibtn { --h: 24px; border-radius: 50%; }
.u-vgrid-pg { min-width: 44px; padding: 0 4px; color: var(--u-t1); font: 500 var(--u-fs-sm)/1 var(--u-f-mono); font-variant-numeric: tabular-nums; text-align: center; }

/* =============== Speaker and screen-share stage =============== */
.u-stage { display: grid; grid-template-columns: minmax(0, 1fr) 196px; gap: 8px; height: 100%; padding: 10px; }
.u-stage-main { position: relative; display: grid; min-width: 0; min-height: 0; }
.u-stage-main > .u-vtile, .u-stage-main > .u-share { width: 100%; height: 100%; aspect-ratio: auto; min-height: 0; }
.u-stage-strip { display: flex; flex-direction: column; gap: 8px; min-width: 0; min-height: 0; overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; }
.u-stage-strip > .u-vtile { flex: none; width: 100%; }
/* Shared screen stand-in: the desktop wallpaper token and one window */
.u-share { position: relative; overflow: hidden; border-radius: var(--u-r-lg); border: 1px solid var(--u-hair); background: var(--u-desk); box-shadow: var(--u-sh-card); }
.u-share-win { position: absolute; inset: 12% 9% 10%; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--u-r); border: 1px solid var(--u-hair2); background: var(--u-lv2); box-shadow: var(--u-sh-pop); }
.u-share-win > b { display: block; height: 14%; max-height: 26px; flex: none; border-bottom: 1px solid var(--u-hair); background: var(--u-lv0); }
.u-share-win > i { display: block; height: 6px; margin: 4% 6% 0; border-radius: 3px; background: var(--u-hair2); }
.u-share-win > i:nth-of-type(1) { width: 42%; height: 9px; background: var(--u-hair3); }
.u-share-win > i:nth-of-type(3) { width: 74%; } .u-share-win > i:nth-of-type(4) { width: 58%; } .u-share-win > i:nth-of-type(5) { width: 66%; }
.u-share-chip { position: absolute; left: 8px; top: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 16px); height: 28px; padding: 0 4px 0 10px; border-radius: var(--u-r-full); border: 1px solid var(--u-hair2); background: var(--u-lv3); box-shadow: var(--u-sh-row); color: var(--u-t1); font-size: var(--u-fs-sm); font-weight: 500; white-space: nowrap; }
.u-share-chip > .u-i { width: 14px; height: 14px; color: var(--u-blue-t); }
.u-share-chip > span { overflow: hidden; text-overflow: ellipsis; padding-right: 6px; }
.u-share-chip > .u-btn { --h: 20px; padding: 0 8px; border-radius: var(--u-r-full); font-size: var(--u-fs-xs); }

/* =============== Self view (picture in picture) =============== */
/* umbra.js places it in a corner with transform and snaps it to the nearest corner on release. */
.u-pip { position: absolute; left: 0; top: 0; z-index: 6; width: 168px; border-radius: var(--u-r-lg); box-shadow: var(--u-sh-pop); touch-action: none; cursor: grab; transition: transform var(--u-slow) var(--u-ease), opacity var(--u-fast); }
.u-pip.is-drag { transition: none; cursor: grabbing; }
.u-pip > .u-vtile { box-shadow: none; border-color: var(--u-hair2); }
.u-pip-min { position: absolute; right: 6px; top: 6px; z-index: 5; --h: 24px; color: var(--u-t1); background: color-mix(in srgb, var(--u-lv0) 84%, transparent); box-shadow: 0 0 0 1px var(--u-hair); opacity: 0; transition: opacity var(--u-fast); }
.u-pip:hover .u-pip-min, .u-pip:focus-within .u-pip-min { opacity: 1; }
@media (hover: none) { .u-pip-min { opacity: 1; } }
.u-pip-pill { display: none; align-items: center; gap: 7px; height: 32px; padding: 0 10px 0 4px; border-radius: var(--u-r-full); border: 1px solid var(--u-hair2); background: var(--u-lv3); color: var(--u-t1); font-size: var(--u-fs-sm); font-weight: 500; white-space: nowrap; }
.u-pip-pill > .u-i { width: 14px; height: 14px; color: var(--u-t3); }
.u-pip.is-min { width: auto; border-radius: var(--u-r-full); }
.u-pip.is-min > .u-vtile, .u-pip.is-min > .u-pip-min { display: none; }
.u-pip.is-min > .u-pip-pill { display: inline-flex; animation: u-fade .2s ease; }
.u-pip:focus-visible { outline-offset: 3px; border-radius: var(--u-r-lg); }

/* =============== Join requests and incoming calls =============== */
.u-admit { display: flex; flex-direction: column; gap: 10px; width: min(320px, 100%); padding: 12px; border-radius: var(--u-r-lg); border: 1px solid var(--u-hair2); background: var(--u-lv3); box-shadow: var(--u-sh-pop); color: var(--u-t1); }
.u-admit-h { display: flex; align-items: center; gap: 10px; min-width: 0; }
.u-admit-h > div { flex: 1; min-width: 0; }
.u-admit-h b { display: block; font-weight: 500; overflow-wrap: anywhere; }
.u-admit-h p { margin: 2px 0 0; color: var(--u-t3); font-size: var(--u-fs-sm); overflow-wrap: anywhere; }
.u-admit-h > .u-ibtn { align-self: flex-start; margin: -4px -4px 0 0; }
.u-admit-f { display: flex; align-items: center; gap: 6px; }
.u-admit-f > .u-admit-all { margin-right: auto; }
.u-admit--float { position: absolute; right: 10px; top: 10px; z-index: 8; animation: u-toast-in .35s var(--u-ease); }
.u-admit--float.is-closing { animation: u-toast-out .18s ease-in forwards; }

.u-incall { display: flex; flex-direction: column; align-items: center; gap: 14px; width: min(280px, 100%); padding: 22px 18px 16px; border-radius: var(--u-r-xl); border: 1px solid var(--u-hair2); background: var(--u-lv3); box-shadow: var(--u-sh-pop); color: var(--u-t1); text-align: center; }
.u-incall-av { position: relative; display: grid; place-items: center; }
.u-incall-av > i { position: absolute; inset: -6px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--u-ok) 55%, transparent); animation: u-vring 2.2s var(--u-ease-out) infinite; pointer-events: none; }
.u-incall-av > i + i { animation-delay: 1.1s; }
.u-incall-t b { display: block; font-size: var(--u-fs-lg); font-weight: 600; letter-spacing: -.01em; overflow-wrap: anywhere; }
.u-incall-t p { margin: 3px 0 0; color: var(--u-t3); font-size: var(--u-fs-sm); }
.u-incall-f { display: flex; justify-content: center; gap: 32px; }
/* Bar version, for a corner of the Client Portal or Huddle */
.u-incall--bar { flex-direction: row; gap: 12px; width: min(360px, 100%); padding: 10px 10px 10px 12px; border-radius: var(--u-r-lg); text-align: left; }
.u-incall--bar .u-incall-t { flex: 1; min-width: 0; }
.u-incall--bar .u-incall-t b { font-size: var(--u-fs); font-weight: 500; }
.u-incall--bar .u-incall-f { gap: 8px; }
.u-incall--bar .u-callbtn { gap: 0; }

/* =============== Participant list =============== */
.u-plist { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.u-plist > .u-inwrap { flex: none; width: auto; margin: 10px 12px 6px; }
.u-plist-l { flex: 1; min-height: 0; overflow: auto; padding: 2px 6px 10px; }
.u-plist-h { display: flex; align-items: center; gap: 6px; padding: 10px 8px 4px; color: var(--u-t3); font-size: var(--u-fs-xs); font-weight: 500; }
.u-plist-empty { margin: 0; padding: 16px 8px; color: var(--u-t4); font-size: var(--u-fs-sm); text-align: center; }
.u-prow { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 4px 4px 8px; border-radius: 8px; }
.u-prow:hover { background: var(--u-hover); }
.u-prow-n { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; color: var(--u-t1); }
.u-prow-n > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-prow-n small { flex: none; color: var(--u-t4); font-size: var(--u-fs-xs); }
.u-prow-n .u-badge { height: 18px; padding: 0 6px; flex: none; }
.u-prow-s { display: flex; align-items: center; gap: 6px; flex: none; color: var(--u-t3); }
.u-prow-s > .u-i, .u-prow-s > span > .u-i { width: 14px; height: 14px; }
.u-prow-s .is-off { color: var(--u-bad-t); }
.u-prow-s .is-hand { color: var(--u-warn-t); }
.u-prow-s .is-dim { color: var(--u-t4); }
.u-prow > .u-ibtn { opacity: 0; transition: opacity var(--u-fast); }
.u-prow:hover > .u-ibtn, .u-prow:focus-within > .u-ibtn, .u-prow > .u-ibtn[aria-expanded="true"] { opacity: 1; }
@media (hover: none) { .u-prow > .u-ibtn { opacity: 1; } }
.u-prow > .u-btn { flex: none; }

/* =============== Pre-join =============== */
.u-prejoin { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; width: 100%; }
.u-prejoin-prev { position: relative; flex: 1.4 1 340px; min-width: 0; }
.u-prejoin-prev > .u-vtile { width: 100%; }
.u-prejoin-ctl { position: absolute; left: 50%; bottom: 12px; z-index: 5; display: flex; gap: 12px; transform: translateX(-50%); }
.u-prejoin-ctl .u-callbtn { gap: 0; }
.u-prejoin-form { flex: 1 1 250px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.u-prejoin-t { margin: 0; color: var(--u-t1); font-size: var(--u-fs-xl); font-weight: 600; letter-spacing: -.02em; }
.u-prejoin-s { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; color: var(--u-t3); font-size: var(--u-fs-sm); }
.u-prejoin-f { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; }
.u-prejoin-wait { display: inline-flex; align-items: center; gap: 8px; color: var(--u-t3); font-size: var(--u-fs-sm); }
.u-prejoin-wait[hidden] { display: none; }
.u-prejoin-lv { display: flex; align-items: center; gap: 8px; color: var(--u-t4); font-size: var(--u-fs-xs); }
.u-prejoin-lv > .u-i { width: 14px; height: 14px; }
.u-prejoin-lv > .u-level { flex: 1; }
.u-prejoin-lv > b { min-width: 52px; color: var(--u-t3); font-weight: 400; text-align: right; }

/* Mic level: a full-width colour scale, covered from the right by a sunken strip that shrinks
   with transform, so the colours stay in place and only scaleX moves. */
.u-level { --v: 0; position: relative; height: 6px; min-width: 40px; border-radius: var(--u-r-full); overflow: hidden; background: linear-gradient(90deg, var(--u-ok) 0 62%, var(--u-warn) 82%, var(--u-bad)); box-shadow: 0 0 0 1px var(--u-hair); -webkit-mask: repeating-linear-gradient(90deg, #000 0 calc(6.25% - 2px), transparent calc(6.25% - 2px) 6.25%); mask: repeating-linear-gradient(90deg, #000 0 calc(6.25% - 2px), transparent calc(6.25% - 2px) 6.25%); }
.u-level > i { position: absolute; inset: 0; background: var(--u-hair2); transform-origin: right; transform: scaleX(calc(1 - var(--v))); transition: transform 90ms linear; }
.u-level.is-off { opacity: .45; }

/* =============== Audio player =============== */
.u-audio { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 6px 6px 6px 6px; border-radius: var(--u-r-md); border: 1px solid var(--u-hair); background: var(--u-lv2); box-shadow: var(--u-edge); }
.u-audio-play { flex: none; border-radius: 50%; }
.u-audio-play .u-i { width: 14px; height: 14px; }
.u-audio:not(.is-playing) .u-audio-play .u-ic-pause, .u-audio.is-playing .u-audio-play .u-ic-play { display: none; }
.u-audio-bar { flex: 1; min-width: 56px; display: flex; align-items: center; }
.u-audio-time { flex: none; color: var(--u-t3); font: 400 var(--u-fs-xs)/1 var(--u-f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.u-audio-time > b { color: var(--u-t1); font-weight: 500; }
.u-audio-speed { flex: none; min-width: 38px; padding: 0 6px; font-family: var(--u-f-mono); font-variant-numeric: tabular-nums; }
.u-audio-label { flex: none; display: flex; flex-direction: column; min-width: 0; max-width: 40%; }
.u-audio-label b { color: var(--u-t1); font-weight: 500; font-size: var(--u-fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-audio-label span { color: var(--u-t4); font-size: var(--u-fs-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-audio--bare { padding: 0; border: 0; background: none; box-shadow: none; }
/* Waveform: CSS bars; played bars turn blue. It is the seek slider. */
.u-wave { flex: 1; min-width: 56px; height: 28px; display: flex; align-items: center; justify-content: space-between; gap: 2px; overflow: hidden; padding: 0 2px; border-radius: 6px; cursor: pointer; touch-action: none; }
.u-wave > i { flex: 1 1 0; min-width: 1px; max-width: 3px; height: var(--h, 35%); border-radius: 2px; background: var(--u-hair3); pointer-events: none; }
.u-wave > i.is-on { background: var(--u-blue); }
.u-wave:hover > i:not(.is-on) { background: var(--u-t4); }
.u-wave:focus-visible { outline-offset: 1px; }

/* =============== Voytel: call log =============== */
.u-calllog { container: ucalllog / inline-size; display: flex; flex-direction: column; min-width: 0; }
.u-call { display: grid; grid-template-columns: 28px minmax(0, 1.5fr) minmax(0, .7fr) 56px 76px 64px; grid-template-areas: "ic who ext dur time act"; align-items: center; gap: 4px 12px; min-height: 52px; padding: 6px 12px; border-bottom: 1px solid var(--u-hair); }
.u-call:hover { background: var(--u-hover); }
.u-call-ic { grid-area: ic; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--u-blue-10); color: var(--u-blue-t); }
.u-call-ic > .u-i { width: 14px; height: 14px; }
.u-call--out .u-call-ic { background: var(--u-ok-10); color: var(--u-ok-t); }
.u-call--missed .u-call-ic { background: var(--u-bad-10); color: var(--u-bad-t); }
.u-call-who { grid-area: who; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.u-call-who > b { color: var(--u-t1); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-call--missed .u-call-who > b { color: var(--u-bad-t); }
.u-call-who > span { color: var(--u-t3); font: var(--u-fs-xs)/1.3 var(--u-f-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-call-ext { grid-area: ext; min-width: 0; color: var(--u-t2); font-size: var(--u-fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-call-dur { grid-area: dur; color: var(--u-t2); font: var(--u-fs-sm)/1 var(--u-f-mono); font-variant-numeric: tabular-nums; text-align: right; }
.u-call-time { grid-area: time; color: var(--u-t3); font-size: var(--u-fs-sm); text-align: right; white-space: nowrap; }
.u-call-act { grid-area: act; display: flex; justify-content: flex-end; gap: 2px; }
.u-call-vmbtn[aria-expanded="true"] { color: var(--u-blue-t); }
.u-call-vm { grid-column: 1 / -1; padding: 2px 0 4px 40px; }
.u-call-vm[hidden] { display: none; }
.u-call-vm > .u-audio { animation: u-rise var(--u-med) var(--u-ease); }
.u-calllog-h { display: grid; grid-template-columns: 28px minmax(0, 1.5fr) minmax(0, .7fr) 56px 76px 64px; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--u-hair); color: var(--u-t3); font-size: var(--u-fs-xs); font-weight: 500; }
.u-calllog-h > :nth-child(4), .u-calllog-h > :nth-child(5) { text-align: right; }
@container ucalllog (max-width: 560px) {
  .u-calllog-h { display: none; }
  .u-call { grid-template-columns: 28px minmax(0, 1fr) auto auto; grid-template-areas: "ic who time act" "ic ext dur act"; padding: 8px 10px; }
  .u-call-ext { font-size: var(--u-fs-xs); color: var(--u-t3); }
  .u-call-dur { font-size: var(--u-fs-xs); }
  .u-call-vm { padding-left: 0; }
}

/* =============== Voytel: extension registration =============== */
.u-reg { display: inline-flex; align-items: center; gap: 7px; color: var(--u-t2); font-size: var(--u-fs-sm); white-space: nowrap; }
.u-reg::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--u-ok); box-shadow: 0 0 0 3px var(--u-ok-10); }
.u-reg--off::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--u-t4); }
.u-reg--dnd::before { width: 10px; height: 10px; background: linear-gradient(var(--u-on-accent), var(--u-on-accent)) center / 6px 2px no-repeat, var(--u-bad-fill); box-shadow: 0 0 0 3px var(--u-bad-10); }
.u-reg--dot { gap: 0; font-size: 0; }
.u-ext { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 44px; padding: 6px 12px; border-bottom: 1px solid var(--u-hair); }
.u-ext:last-child { border-bottom: 0; }
.u-ext > b { color: var(--u-t1); font: 500 var(--u-fs)/1 var(--u-f-mono); font-variant-numeric: tabular-nums; }
.u-ext > div { min-width: 0; }
.u-ext > div > span { display: block; color: var(--u-t1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-ext > div > small { display: block; color: var(--u-t3); font-size: var(--u-fs-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* =============== Voytel: dial pad =============== */
.u-dialpad { display: flex; flex-direction: column; align-items: center; gap: 12px; width: min(236px, 100%); margin: 0 auto; }
.u-dialpad-num { display: grid; grid-template-columns: 28px minmax(0, 1fr) 28px; align-items: center; gap: 4px; width: 100%; height: 44px; border-bottom: 1px solid var(--u-hair); }
.u-dialpad-in { width: 100%; min-width: 0; height: 100%; border: 0; outline: 0; background: none; padding: 0; color: var(--u-t1); text-align: center; font: 500 22px/1 var(--u-f-mono); font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.u-dialpad-in::placeholder { color: var(--u-t4); font: 400 var(--u-fs)/1 var(--u-f-ui); letter-spacing: 0; }
.u-dialpad-num:focus-within { border-bottom-color: var(--u-blue); }
.u-dialpad-back { grid-column: 3; }
.u-dialpad-back:disabled { opacity: 0; }
.u-dialpad-keys { display: grid; grid-template-columns: repeat(3, 52px); justify-content: space-between; gap: 10px 0; width: 100%; padding: 0 6px; }
.u-dialpad-key { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 52px; height: 52px; padding: 0; border-radius: 50%; border: 1px solid var(--u-b2-bd); background: var(--u-b2-bg); box-shadow: var(--u-b2-hi), var(--u-b2-sh); color: var(--u-t1); transition: transform .15s var(--u-ease); user-select: none; touch-action: manipulation; }
.u-dialpad-key:hover { background: var(--u-b2-bg-h); border-color: var(--u-b2-bd-h); }
.u-dialpad-key:active, .u-dialpad-key.is-press { transform: scale(.93); box-shadow: var(--u-press); }
.u-dialpad-key > b { font: 500 20px/1 var(--u-f-ui); }
.u-dialpad-key > small { min-height: 10px; color: var(--u-t4); font: 500 9px/1 var(--u-f-ui); letter-spacing: .12em; }
.u-dialpad-call { gap: 0; }

/* =============== Phone =============== */
@media (max-width: 640px) {
  /* 40px tap targets on phones only (his rule) */
  .u-callsplit-caret { left: calc(50% + 10px); }
  .u-callsplit-caret::before { inset: -2px -14px -14px -2px; }
  .u-vtile-more, .u-pip-min { --h: 32px; }
  .u-vgrid-pager { height: 44px; }
  .u-vgrid-pager > .u-ibtn { --h: 36px; }
  .u-pip-pill { height: 40px; }
  .u-prow { min-height: 44px; }
  .u-dialpad-num { grid-template-columns: 40px minmax(0, 1fr) 40px; }
}
@container u-frame (max-width: 640px) {
  /* 40px tap targets on phones only (his rule) */
  .u-callsplit-caret { left: calc(50% + 10px); }
  .u-callsplit-caret::before { inset: -2px -14px -14px -2px; }
  .u-vtile-more, .u-pip-min { --h: 32px; }
  .u-vgrid-pager { height: 44px; }
  .u-vgrid-pager > .u-ibtn { --h: 36px; }
  .u-pip-pill { height: 40px; }
  .u-prow { min-height: 44px; }
  .u-dialpad-num { grid-template-columns: 40px minmax(0, 1fr) 40px; }
}
/* The meeting frame at phone width (by the space it has, not the window) */
@container umeet (max-width: 640px) {
  .u-meet-top { gap: 8px; padding: 0 6px 0 12px; }
  .u-meet-top .u-ptabs > button > span { display: none; }
  /* The red dot alone says Recording; the word stays for screen readers */
  .u-rec { padding: 0 7px; }
  .u-rec-w { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .u-meet-bar { justify-content: center; padding: 8px 8px 10px; }
  .u-meet-bar-l, .u-meet-x { display: none; }
  .u-meet-bar-r { flex: none; }
  .u-meet-bar-c { gap: 10px; }
  .u-meet-bar .u-callbtn { min-width: 40px; }
  /* The side panel opens as its own full screen over the call, with Back on the left, the
     title centred and its tabs the full width (ITX Meet, approved Nov 20; until 0.6.0 it
     floated as a card between the top bar and the call buttons, which left little room).
     grid-area auto: an absolute grid child would otherwise be sized by its empty "side" column. */
  .u-meet-side { grid-area: auto; position: absolute; inset: 0; z-index: 20; width: auto; border: 0; border-radius: 0; background: var(--u-lv1); padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); animation: u-rise var(--u-med) var(--u-ease); }
  .u-meet-side-h { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); align-items: center; gap: 12px 8px; height: auto; min-height: 48px; padding: 6px 12px; background: var(--u-lv0); }
  .u-meet-side-h > .u-meet-side-back { display: inline-flex; grid-column: 1; justify-self: start; }
  .u-meet-side-h h3 { grid-column: 2; text-align: center; font-size: var(--u-fs-md); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* With Back there, the close button would be a second way out: Back replaces it. */
  .u-meet-side-h:has(> .u-meet-side-back) > .u-ibtn:not(.u-meet-side-back) { display: none; }
  .u-meet-side-h > .u-ptabs { grid-column: 1 / -1; display: flex; }
  .u-meet-side-h > .u-ptabs > button { flex: 1; }
}
@container umeetv (max-width: 560px) {
  .u-stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .u-stage-strip { flex-direction: row; overflow-x: auto; overflow-y: hidden; padding-bottom: 2px; }
  .u-stage-strip > .u-vtile { width: 104px; aspect-ratio: 4 / 3; }
  .u-pip { width: 96px; }
  .u-pip > .u-vtile { aspect-ratio: 3 / 4; }
  .u-admit--float { left: 10px; right: 10px; width: auto; }
}

/* Motion for tiles and calls. These six were named above but never defined until 0.9.0,
   so the speaking ring, halo, hand wave, tile in and out and the incoming rings stood
   still (found Nov 22 while checking ITX Huddle's pieces). Transform and opacity only. */
@keyframes u-vspeak { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
@keyframes u-vhalo { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.3); } }
@keyframes u-vwave { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-16deg); } 40% { transform: rotate(14deg); } 60% { transform: rotate(-10deg); } 80% { transform: rotate(6deg); } }
@keyframes u-vin { from { opacity: 0; transform: scale(.96); } }
@keyframes u-vout { to { opacity: 0; transform: scale(.96); } }
@keyframes u-vring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.5); } }

/* ---- umbra-forms.css ---- */
/* ==========================================================================
   Umbra Form and website patterns: multi-pick search box, time picker, password strength, sign-in codes,
   inline edit, kanban, search results, status page, and the website header, footer, FAQ and more.
   Part of css/umbra.css (tools/build.mjs). Uses only --u-* tokens, so dark and light both work.
   ========================================================================== */

/* Grids and wide blocks that sit in a wrapping column flexbox get their width outright: its line took their widest content
   and left tall empty grid rows or a sideways overflow at 390px (Nov 16 render). */
.u-quotes, .u-pwrules, .u-timerange, .u-contact-row, .u-search, .u-status { width: 100%; }

/* Search matches, wherever a pattern draws them (Umbra.highlight builds them from text nodes). */
.u-hl { padding: 0 1px; border-radius: 3px; background: var(--u-blue-20); color: var(--u-t1); }

/* Disabled choices read as disabled too, not only their box (Nov 16 audit: the label stayed bright). */
.u-choice:has(> input:disabled) { color: var(--u-t4); cursor: default; }

/* =============== Combobox: type to search, pick one or many =============== */
.u-combo { position: relative; min-width: 0; }
.u-combo-spin { display: none; color: var(--u-t3); }
.is-loading > .u-combo-spin { display: block; }
.u-combo--multi { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-height: var(--u-ctl); padding: 3px 6px; border-radius: var(--u-r); border: 1px solid var(--u-ctl-bd); background: var(--u-fld); box-shadow: var(--u-fld-in); cursor: text; }
.u-combo--multi:hover { border-color: var(--u-t4); }
.u-combo--multi:focus-within { border-color: var(--u-blue); box-shadow: var(--u-fld-in), var(--u-ring); }
.u-combo--multi > input { flex: 1; min-width: 96px; height: 20px; border: 0; padding: 0 2px; outline: 0; background: none; color: var(--u-t1); }
.u-combo--multi > input::placeholder { color: var(--u-t4); }
.u-combo-chip { max-width: 200px; color: var(--u-t1); }
.u-combo-list { padding: 4px; }
.u-combo-opt { gap: 10px; min-height: 40px; padding: 4px 8px; }
.u-combo-opt > .u-menu-tick { margin-left: 0; }
.u-combo-ic { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 7px; border: 1px solid var(--u-hair2); background: var(--u-lv2); color: var(--u-t3); }
.u-combo-ic .u-i { width: 13px; height: 13px; }
.u-combo-b { display: flex; flex-direction: column; flex: 1; min-width: 0; gap: 1px; }
.u-combo-n, .u-combo-s { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-combo-n { color: var(--u-t1); }
.u-combo-s { color: var(--u-t4); font-size: var(--u-fs-xs); }
.u-combo-st { display: inline-flex; align-items: center; gap: 6px; flex: none; color: var(--u-t3); font-size: var(--u-fs-xs); white-space: nowrap; }
.u-combo-st > .u-dotst { width: 7px; height: 7px; }
.u-combo-empty { display: flex; flex-direction: column; gap: 2px; padding: 12px 10px; }
.u-combo-empty > b { color: var(--u-t1); font-weight: 500; }
.u-combo-empty > span { color: var(--u-t4); font-size: var(--u-fs-sm); }
.u-combo-note { display: flex; align-items: center; gap: 8px; padding: 12px 10px; color: var(--u-t3); font-size: var(--u-fs-sm); }

/* =============== Time picker and a maintenance window =============== */
.u-time-list { min-width: 132px; max-height: 240px; }
.u-time-opt { font-variant-numeric: tabular-nums; }
.u-timerange { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: start; }

/* =============== Password strength and its rules =============== */
.u-strength { --strength-c: var(--u-t4); display: flex; align-items: center; gap: 10px; min-height: 16px; }
.u-strength[data-score="1"] { --strength-c: var(--u-bad); }
.u-strength[data-score="2"] { --strength-c: var(--u-warn); }
.u-strength[data-score="3"], .u-strength[data-score="4"] { --strength-c: var(--u-ok); }
.u-strength-bar { display: grid; flex: 1; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.u-strength-bar > i { position: relative; height: 4px; overflow: hidden; border-radius: 2px; background: var(--u-sunken); box-shadow: inset 0 0 0 1px var(--u-hair); }
.u-strength-bar > i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--strength-c); transform: scaleX(0); transform-origin: left; transition: transform var(--u-med) var(--u-ease); }
.u-strength-bar > i.is-on::after { transform: scaleX(1); }
.u-strength-l { min-width: 48px; color: var(--u-t4); font-size: var(--u-fs-xs); font-weight: 500; text-align: right; }
.u-strength[data-score="1"] .u-strength-l { color: var(--u-bad-t); }
.u-strength[data-score="2"] .u-strength-l { color: var(--u-warn-t); }
.u-strength[data-score="3"] .u-strength-l, .u-strength[data-score="4"] .u-strength-l { color: var(--u-ok-t); }
.u-pwrules { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 5px 14px; margin: 0; padding: 0; list-style: none; color: var(--u-t3); font-size: var(--u-fs-sm); }
.u-pwrules > li { display: flex; align-items: center; gap: 7px; }
.u-pwr-ic { display: grid; place-items: center; width: 14px; height: 14px; flex: none; border-radius: 50%; border: 1px solid var(--u-hair3); color: var(--u-ok-t); }
.u-pwr-ic .u-i { width: 9px; height: 9px; opacity: 0; transform: scale(.4); transition: opacity var(--u-fast), transform var(--u-med) var(--u-ease); }
.u-pwrules > li.is-met { color: var(--u-t1); }
.u-pwrules > li.is-met .u-pwr-ic { border-color: transparent; background: var(--u-ok-10); }
.u-pwrules > li.is-met .u-pwr-ic .u-i { opacity: 1; transform: none; }

/* =============== Sign-in code (TOTP) =============== */
.u-totp { display: inline-flex; align-items: center; gap: 12px; max-width: 100%; padding: 8px 8px 8px 14px; border-radius: var(--u-r-lg); border: 1px solid var(--u-hair); background: var(--u-sunken); box-shadow: var(--u-fld-in); }
.u-totp-code { display: flex; gap: 10px; color: var(--u-t1); font: 600 26px/1 var(--u-f-mono); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.u-totp-code.is-empty { color: var(--u-t4); }
.u-totp-code.is-new { animation: u-rise var(--u-slow) var(--u-ease); }
.u-totp-ring { --s: 30px; }
.u-totp-ring > b { font-size: 10px; }
.u-totp-ring.is-low .u-ringp-fg { stroke: var(--u-warn); }
.u-totp-ring.is-low > b { color: var(--u-warn-t); }

/* =============== Recovery codes =============== */
.u-recovery { display: flex; flex-direction: column; gap: 10px; }
.u-recovery-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; margin: 0; padding: 12px 14px; counter-reset: u-rc; list-style: none; border-radius: var(--u-r-lg); border: 1px solid var(--u-hair); background: var(--u-sunken); box-shadow: var(--u-fld-in); }
.u-recovery-codes > li { display: flex; align-items: baseline; gap: 8px; counter-increment: u-rc; color: var(--u-t1); font: 500 13px/1.6 var(--u-f-mono); letter-spacing: .03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.u-recovery-codes > li::before { content: counter(u-rc); min-width: 1.4em; color: var(--u-t4); font-size: var(--u-fs-xs); text-align: right; }
.u-recovery-acts { display: flex; flex-wrap: wrap; gap: 6px; }

/* =============== Inline edit =============== */
.u-inline-edit { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.u-inline-v { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; max-width: calc(100% + 9px); min-height: var(--u-ctl); margin-left: -9px; padding: 0 8px; border: 1px solid transparent; border-radius: var(--u-r); background: none; color: var(--u-t1); font: inherit; letter-spacing: inherit; text-align: left; cursor: text; }
.u-inline-v:hover { background: var(--u-hover); border-color: var(--u-hair); }
.u-inline-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-inline-v > .u-i { flex: none; color: var(--u-t4); opacity: 0; transition: opacity var(--u-fast); }
.u-inline-v:hover > .u-i, .u-inline-v:focus-visible > .u-i { opacity: 1; }
@media (hover: none) { .u-inline-v > .u-i { opacity: 1; } }
.u-inline-f { margin-left: -9px; padding-left: 8px; }
.u-inline-f > input { font: inherit; letter-spacing: inherit; }
.u-inline-f > .u-spin { display: none; color: var(--u-t3); }
.u-inline-edit.is-saving .u-inline-f > .u-spin { display: block; }
.u-inline-edit.is-saving .u-inline-f > input { color: var(--u-t3); }
.u-inline-err { display: flex; align-items: center; gap: 5px; color: var(--u-bad-t); font-size: var(--u-fs-xs); }
.u-inline-err[hidden] { display: none; }
.u-inline-edit--title { font-size: var(--u-fs-lg); font-weight: 600; letter-spacing: -.015em; }
.u-inline-edit--title .u-inline-v { min-height: var(--u-ctl-lg); }
.u-inline-edit--title .u-inline-f { height: var(--u-ctl-lg); }

/* =============== Saved views =============== */
.u-views-btn { min-width: 180px; max-width: 100%; }
.u-views-btn > .u-i:first-child { color: var(--u-t3); width: 14px; height: 14px; }
.u-views-btn[aria-expanded="true"] > .u-i:last-child { transform: none; }
.u-views-dot { width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--u-blue); }
.u-views-dot[hidden] { display: none; }
.u-views-menu { min-width: 240px; }
.u-views-menu .u-menu-item > .u-menu-tick { margin-left: 0; }

/* =============== Kanban =============== */
.u-kanban { --kb-w: 248px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(var(--kb-w), 1fr); gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.u-kb-col { display: flex; flex-direction: column; min-width: 0; border-radius: var(--u-r-lg); border: 1px solid var(--u-hair); background: var(--u-sunken); box-shadow: var(--u-fld-in); }
.u-kb-col.is-over { border-color: var(--u-blue); background: color-mix(in srgb, var(--u-blue) 5%, var(--u-sunken)); }
.u-kb-h { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 6px 0 12px; }
.u-kb-h h4 { margin: 0; color: var(--u-t1); font-size: var(--u-fs); font-weight: 600; white-space: nowrap; }
.u-kb-h > .u-ibtn { margin-left: auto; }
.u-kb-dot { --c: var(--u-t4); display: inline-block; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--c); }
.u-kb-list { display: flex; flex-direction: column; flex: 1; gap: 8px; min-height: 72px; margin: 0; padding: 2px 8px 10px; list-style: none; }
.u-kb-list:empty::before { content: attr(data-empty); display: grid; place-items: center; height: 56px; border-radius: var(--u-r); border: 1px dashed var(--u-hair2); color: var(--u-t4); font-size: var(--u-fs-sm); }
.u-kb-card { position: relative; display: flex; flex-direction: column; gap: 9px; padding: 10px 10px 10px 12px; border-radius: 10px; border: 1px solid var(--u-hair2); background: var(--u-lv2); box-shadow: var(--u-edge), var(--u-sh-row); cursor: grab; user-select: none; -webkit-user-select: none; transition: transform var(--u-med) var(--u-ease); }
.u-kb-card:hover { border-color: var(--u-hair3); }
.u-kb-card::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; border: 1px solid var(--u-blue); box-shadow: var(--u-ring); opacity: 0; pointer-events: none; }
.u-kb-card.is-moved::after { animation: u-kb-moved 1.1s var(--u-ease); }
@keyframes u-kb-moved { 0%, 45% { opacity: 1; } 100% { opacity: 0; } }
.u-kb-card.is-drag { position: fixed; z-index: var(--u-z-menu); margin: 0; border-color: var(--u-hair3); box-shadow: var(--u-sh-pop); cursor: grabbing; pointer-events: none; transition: none; }
.u-kb-ph { flex: none; border-radius: 10px; border: 1.5px dashed var(--u-blue); background: var(--u-blue-10); }
.u-kb-dragging, .u-kb-dragging * { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }
.u-kb-top { display: flex; align-items: flex-start; gap: 8px; }
.u-kb-t { flex: 1; min-width: 0; margin: 0; color: var(--u-t1); font-size: var(--u-fs); font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
.u-kb-pri { width: 8px; height: 8px; flex: none; margin-top: 5px; border-radius: 50%; background: var(--u-t4); }
.u-kb-pri--high { background: var(--u-bad); }
.u-kb-pri--med { background: var(--u-warn); }
.u-kb-pri--low { background: var(--u-blue); }
.u-kb-more { --h: 22px; margin: -2px -4px 0 0; }
.u-kb-grip { display: none; place-items: center; width: 22px; height: 22px; flex: none; margin: -2px 0 0 -6px; border-radius: 6px; color: var(--u-t4); touch-action: none; cursor: grab; }
@media (pointer: coarse) { .u-kb-grip { display: grid; } }
.u-kb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.u-kb-meta > .u-avatar { margin-left: auto; }
.u-kb-due { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 6px; border-radius: 6px; background: var(--u-gray-10); color: var(--u-t3); font-size: var(--u-fs-xs); font-variant-numeric: tabular-nums; white-space: nowrap; }
.u-kb-due .u-i { width: 12px; height: 12px; }
.u-kb-due--soon { background: var(--u-warn-10); color: var(--u-warn-t); }
.u-kb-due--late { background: var(--u-bad-10); color: var(--u-bad-t); }
.u-kb-due--done { background: var(--u-ok-10); color: var(--u-ok-t); }
.u-kb-menu { min-width: 190px; }

/* =============== Search results =============== */
.u-search { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.u-search-tabs { align-self: flex-start; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.u-search-tabs::-webkit-scrollbar { display: none; }
.u-sres-g + .u-sres-g { margin-top: 14px; }
.u-sres-gh { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0 8px 6px; color: var(--u-t3); font-size: var(--u-fs-sm); font-weight: 500; }
.u-sres-list { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.u-sres { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 8px; border-radius: 9px; color: inherit; text-decoration: none; cursor: pointer; }
.u-sres:hover { background: var(--u-hover); }
.u-sres.is-active { border-radius: 0 9px 9px 0; background: var(--u-active); box-shadow: inset 2px 0 0 var(--u-blue); }
.u-sres-ic { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 8px; border: 1px solid var(--u-hair2); background: var(--u-lv3); color: var(--u-t3); }
.u-sres-ic .u-i { width: 14px; height: 14px; }
.u-sres-b { display: flex; flex-direction: column; flex: 1; gap: 1px; min-width: 0; }
.u-sres-t, .u-sres-s { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-sres-t { color: var(--u-t1); }
.u-sres-s { color: var(--u-t4); font-size: var(--u-fs-xs); }
.u-sres-m { flex: 0 1 auto; max-width: 40%; overflow: hidden; text-overflow: ellipsis; color: var(--u-t4); font-size: var(--u-fs-xs); white-space: nowrap; }

/* =============== Status page =============== */
.u-status { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.u-status-banner { --c: var(--u-ok); --ct: var(--u-ok-t); --cb: var(--u-ok-10); display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--u-r-lg); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); background: var(--cb); }
.u-status-banner--warn { --c: var(--u-warn); --ct: var(--u-warn-t); --cb: var(--u-warn-10); }
.u-status-banner--bad { --c: var(--u-bad); --ct: var(--u-bad-t); --cb: var(--u-bad-10); }
.u-status-ic { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: color-mix(in srgb, var(--c) 20%, transparent); color: var(--ct); }
.u-status-ic .u-i { width: 15px; height: 15px; }
.u-status-banner b { display: block; color: var(--u-t1); font-size: var(--u-fs-md); font-weight: 600; letter-spacing: -.01em; }
.u-status-banner .u-status-sub { color: var(--u-t3); font-size: var(--u-fs-sm); }
.u-status-m { margin-left: auto; color: var(--u-t3); font-size: var(--u-fs-xs); white-space: nowrap; }
.u-svcs { border-radius: var(--u-r-lg); border: 1px solid var(--u-hair); background: var(--u-lv2); }
.u-svc { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 12px; padding: 12px 14px; }
.u-svc + .u-svc { border-top: 1px solid var(--u-hair); }
.u-svc-n { overflow: hidden; color: var(--u-t1); font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.u-svc-st { display: inline-flex; align-items: center; gap: 6px; color: var(--u-ok-t); font-size: var(--u-fs-sm); white-space: nowrap; }
.u-svc-st--warn { color: var(--u-warn-t); }
.u-svc-st--bad { color: var(--u-bad-t); }
.u-svc-st--none { color: var(--u-t4); }
.u-svc > .u-uptime { grid-column: 1 / -1; height: 24px; }
.u-svc-f { display: flex; grid-column: 1 / -1; justify-content: space-between; gap: 8px; color: var(--u-t4); font-size: var(--u-fs-xs); }
.u-svc-f .u-svc-30 { display: none; }

/* =============== Website: header, sections, logos, quotes, FAQ, contact, footer =============== */
.u-site-nav { position: relative; container-type: inline-size; border-bottom: 1px solid var(--u-hair); background: var(--u-lv1); }
.u-site-bar { display: flex; align-items: center; gap: 18px; max-width: var(--u-site-w); height: 56px; margin: 0 auto; padding: 0 20px; }
.u-site-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--u-t1); font-weight: 600; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.u-site-links { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.u-site-links a { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border-radius: 8px; color: var(--u-t3); font-size: var(--u-fs-sm); text-decoration: none; }
.u-site-links a:hover { background: var(--u-hover); color: var(--u-t1); }
.u-site-links a[aria-current="page"] { color: var(--u-t1); }
.u-site-acts { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.u-site-acts > .u-btn { white-space: nowrap; }
.u-site-burger { display: none; }
@container (max-width: 720px) {
  .u-site-links, .u-site-signin { display: none; }
  .u-site-burger { display: inline-grid; }
  .u-site-bar { gap: 10px; padding: 0 12px 0 16px; }
}
.u-site-sheet-links { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.u-site-sheet-links a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--u-t1); font-size: var(--u-fs-md); text-decoration: none; }
.u-site-sheet-links a:hover { background: var(--u-hover); }
.u-site-sheet .u-drawer-f { flex-direction: column; align-items: stretch; }
.u-site-sheet .u-drawer-f > .u-btn { display: flex; width: 100%; }

.u-site-sec { position: relative; padding: 56px 20px; }
.u-site-in { max-width: 1040px; margin: 0 auto; }
.u-site-head { max-width: 620px; margin: 0 auto 28px; text-align: center; }
.u-site-head:last-child { margin-bottom: 0; }
.u-site-kicker { margin-bottom: 8px; color: var(--u-blue-t); font-size: var(--u-fs-sm); font-weight: 500; }
.u-site-h { margin: 0; color: var(--u-t1); font-size: clamp(26px, 4.4vw, 36px); font-weight: 600; line-height: 1.1; letter-spacing: -.035em; text-wrap: balance; }
.u-site-p { margin: 10px 0 0; color: var(--u-t3); font-size: var(--u-fs-md); line-height: 1.55; text-wrap: pretty; }

/* Logo strip: wordmarks drawn as text, edges fade, drifts slowly when umbra.js adds .is-moving */
.u-logos { --gap: 44px; display: flex; min-width: 0; max-width: 100%; gap: var(--gap); overflow: hidden; padding: 6px 0;
  -webkit-mask: linear-gradient(90deg, transparent, #000 64px, #000 calc(100% - 64px), transparent);
          mask: linear-gradient(90deg, transparent, #000 64px, #000 calc(100% - 64px), transparent); }
.u-logos-track { display: flex; flex: none; align-items: center; gap: var(--gap); min-width: max-content; margin: 0; padding: 0; list-style: none; }
.u-logos.is-moving > .u-logos-track { animation: u-marquee 42s linear infinite; }
.u-logos:hover > .u-logos-track, .u-logos:focus-within > .u-logos-track { animation-play-state: paused; }
.u-logos:not(.is-moving) > .u-logos-track { flex: 1; flex-wrap: wrap; justify-content: center; min-width: 0; row-gap: 14px; }
@keyframes u-marquee { to { transform: translateX(calc(-100% - var(--gap))); } }
.u-wordmark { color: var(--u-t3); font-size: 19px; font-weight: 600; letter-spacing: -.02em; line-height: 1; white-space: nowrap; }
.u-wordmark--serif { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: 0; }
.u-wordmark--mono { font-family: var(--u-f-mono); font-size: 16px; letter-spacing: .02em; }
.u-wordmark--light { font-weight: 300; letter-spacing: .01em; }
.u-wordmark--heavy { font-weight: 800; letter-spacing: -.045em; }
.u-wordmark--wide { font-size: 14px; letter-spacing: .18em; }

.u-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.u-quote { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 18px; }
.u-quote > .u-i:first-child { width: 18px; height: 18px; color: var(--u-blue-t); }
.u-quote blockquote { margin: 0; color: var(--u-t1); font-size: var(--u-fs-md); line-height: 1.55; text-wrap: pretty; }
.u-quote figcaption { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.u-quote figcaption b { display: block; color: var(--u-t1); font-size: var(--u-fs-sm); font-weight: 500; }
.u-quote figcaption span { color: var(--u-t4); font-size: var(--u-fs-xs); }

.u-acc.u-acc--site { border: 0; border-top: 1px solid var(--u-hair); border-radius: 0; background: transparent; box-shadow: none; }
.u-acc.u-acc--site > details { border-bottom: 1px solid var(--u-hair); }
.u-acc.u-acc--site > details + details { border-top: 0; }
.u-acc.u-acc--site summary { height: auto; min-height: 56px; padding: 12px 4px; font-size: var(--u-fs-md); }
.u-acc.u-acc--site summary:hover { background: transparent; color: var(--u-blue-t); }
.u-acc.u-acc--site details[open] > summary > .u-i:last-child { transform: rotate(45deg); }
.u-acc.u-acc--site .u-acc-b { max-width: 68ch; padding: 0 4px 18px; color: var(--u-t3); line-height: 1.6; }

.u-contact { display: flex; flex-direction: column; gap: 14px; }
.u-contact-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.u-field-opt { color: var(--u-t4); font-weight: 400; }
.u-contact-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.u-field.is-invalid .u-check { border-color: var(--u-bad); }
.u-contact-done { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 36px 16px; text-align: center; animation: u-rise var(--u-slow) var(--u-ease); }
.u-contact-done[hidden] { display: none; }
.u-contact-done-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--u-ok-10); color: var(--u-ok-t); }
.u-contact-done h4 { margin: 4px 0 0; color: var(--u-t1); font-size: var(--u-fs-lg); font-weight: 600; letter-spacing: -.01em; }
.u-contact-done p { margin: 0; color: var(--u-t3); max-width: 40ch; }

.u-site-foot { container-type: inline-size; border-top: 1px solid var(--u-hair); background: var(--u-lv1); }
.u-site-foot-in { max-width: var(--u-site-w); margin: 0 auto; padding: 40px 20px 20px; }
.u-site-foot-g { display: grid; grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); gap: 28px; }
.u-site-foot h4 { margin: 0 0 8px; color: var(--u-t1); font-size: var(--u-fs-sm); font-weight: 600; }
.u-site-foot ul { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.u-site-foot ul a { display: inline-flex; align-items: center; min-height: 28px; color: var(--u-t3); font-size: var(--u-fs-sm); text-decoration: none; }
.u-site-foot a:hover { color: var(--u-t1); }
.u-site-about p { max-width: 34ch; margin: 10px 0 14px; color: var(--u-t3); font-size: var(--u-fs-sm); line-height: 1.55; }
.u-social { display: flex; gap: 6px; }
.u-site-small { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--u-hair); color: var(--u-t4); font-size: var(--u-fs-xs); }
.u-site-small nav { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.u-site-small a { color: var(--u-t4); text-decoration: none; }
@container (max-width: 720px) {
  .u-site-foot-g { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .u-site-about { grid-column: 1 / -1; }
}

/* =============== Phones (390px wide and up) =============== */
@media (max-width: 640px) {
  .u-combo--multi { min-height: var(--u-ctl-touch); }
  .u-combo--multi > input { height: 30px; font-size: 16px; }
  .u-combo-chip { height: 30px; }
  .u-combo-chip > button { width: 24px; height: 24px; }
  .u-combo-chip > .u-avatar:first-child { --s: 24px; font-size: var(--u-fs-xs); }
  .u-combo-opt { min-height: 48px; }
  .u-timerange { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .u-timerange > :first-child { grid-column: 1 / -1; }
  .u-totp-code { font-size: 24px; }
  .u-inline-edit--title .u-inline-f { font-size: var(--u-fs-lg); }
  .u-inline-edit--title .u-inline-v, .u-inline-edit--title .u-inline-f { min-height: var(--u-ctl-touch); height: auto; }
  .u-inline-edit--title .u-inline-f { height: var(--u-ctl-touch); }
  .u-views-btn { min-width: 0; }
  .u-kanban { grid-auto-columns: 82%; gap: 10px; margin: 0 -16px; padding: 0 16px 4px; scroll-snap-type: x mandatory; scroll-padding: 0 16px;
    -webkit-mask: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
            mask: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent); }
  .u-kb-col { scroll-snap-align: start; }
  .u-kb-more { --h: 32px; margin: -6px -6px -4px 0; }
  .u-kb-grip { width: 32px; height: 32px; margin: -6px -2px -4px -8px; }
  .u-sres { min-height: 52px; }
  .u-status-banner { flex-wrap: wrap; }
  .u-status-m { width: 100%; margin-left: 40px; }
  .u-svc > .u-uptime > i:nth-child(-n+60) { display: none; }
  .u-svc-f .u-svc-90 { display: none; }
  .u-svc-f .u-svc-30 { display: inline; }
  .u-site-sec { padding: 40px 16px; }
  .u-logos { --gap: 32px; }
  .u-contact-row { grid-template-columns: 1fr; }
  .u-site-foot ul a, .u-site-small a { min-height: 40px; display: inline-flex; align-items: center; }
  .u-site-small nav { gap: 0 16px; }
}
@container u-frame (max-width: 640px) {
  .u-combo--multi { min-height: var(--u-ctl-touch); }
  .u-combo--multi > input { height: 30px; font-size: 16px; }
  .u-combo-chip { height: 30px; }
  .u-combo-chip > button { width: 24px; height: 24px; }
  .u-combo-chip > .u-avatar:first-child { --s: 24px; font-size: var(--u-fs-xs); }
  .u-combo-opt { min-height: 48px; }
  .u-timerange { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .u-timerange > :first-child { grid-column: 1 / -1; }
  .u-totp-code { font-size: 24px; }
  .u-inline-edit--title .u-inline-f { font-size: var(--u-fs-lg); }
  .u-inline-edit--title .u-inline-v, .u-inline-edit--title .u-inline-f { min-height: var(--u-ctl-touch); height: auto; }
  .u-inline-edit--title .u-inline-f { height: var(--u-ctl-touch); }
  .u-views-btn { min-width: 0; }
  .u-kanban { grid-auto-columns: 82%; gap: 10px; margin: 0 -16px; padding: 0 16px 4px; scroll-snap-type: x mandatory; scroll-padding: 0 16px;
    -webkit-mask: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
            mask: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent); }
  .u-kb-col { scroll-snap-align: start; }
  .u-kb-more { --h: 32px; margin: -6px -6px -4px 0; }
  .u-kb-grip { width: 32px; height: 32px; margin: -6px -2px -4px -8px; }
  .u-sres { min-height: 52px; }
  .u-status-banner { flex-wrap: wrap; }
  .u-status-m { width: 100%; margin-left: 40px; }
  .u-svc > .u-uptime > i:nth-child(-n+60) { display: none; }
  .u-svc-f .u-svc-90 { display: none; }
  .u-svc-f .u-svc-30 { display: inline; }
  .u-site-sec { padding: 40px 16px; }
  .u-logos { --gap: 32px; }
  .u-contact-row { grid-template-columns: 1fr; }
  .u-site-foot ul a, .u-site-small a { min-height: 40px; display: inline-flex; align-items: center; }
  .u-site-small nav { gap: 0 16px; }
}

/* Reduced motion: the logo strip stands still and can be scrolled by hand instead. */
@media (prefers-reduced-motion: reduce) {
  .u-logos.is-moving { overflow-x: auto; scrollbar-width: none; }
  .u-logos.is-moving > .u-logos-track { animation: none !important; }
  .u-logos.is-moving > .u-logos-track[aria-hidden] { display: none; }
  .u-kb-card, .u-kb-card.is-moved::after { transition: none; animation: none !important; }
}

/* ---- umbra-chat.css ---- */
/* ==========================================================================
   Umbra Chat And Channels: Slack-style channel messages, channel sidebar and header, status menu, message search, Unreads, huddle cards, phone action sheet, guest view.
   Part of css/umbra.css (tools/build.mjs). Uses only --u-* tokens, so dark and light both work.
   ========================================================================== */

/* Built for ITX Huddle (0.3.0). Messages here are FLAT rows (avatar, name, time, text),
   not bubbles: a channel is read top to bottom by many people, and bubbles waste the
   width a busy channel needs. It reuses what comms already has: .u-msg-acts (the hover
   bar), .u-thread-sum and .u-thread (threads), .u-reacts/.u-react (reactions),
   .u-msg-edited, .u-msg-state (Umbra.msgState), .u-chatwrap (thread beside the channel),
   .u-composer, .u-side-i (sidebar rows), .u-sres (search results) and .u-hl (highlights).
   Local knobs use short names without --u- (--c, --ct, --cb), like the other parts. */

/* =============== The channel screen: sidebar + channel (+ thread) =============== */
.u-chan { display: grid; grid-template-columns: 248px minmax(0, 1fr); height: 100%; min-height: 0; border-radius: var(--u-r-lg); border: 1px solid var(--u-hair); background: var(--u-lv1); overflow: hidden; }
/* The channel side is a .u-chatwrap, so the thread panel opens beside it as it does in comms. */
.u-chan > .u-chatwrap { border: 0; border-radius: 0; background: var(--u-lv1); }
.u-chatwrap-main > .u-cmsgs { flex: 1; min-height: 0; overflow: auto; }

/* =============== Channel sidebar =============== */
.u-csb { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--u-lv0); border-right: 1px solid var(--u-hair); }
.u-csb-h { display: flex; align-items: center; gap: 6px; height: var(--u-head-h); flex: none; padding: 0 8px 0 8px; border-bottom: 1px solid var(--u-hair); }
.u-csb-ws { display: inline-flex; align-items: center; gap: 8px; min-width: 0; height: 32px; margin-right: auto; padding: 0 8px 0 4px; border: 0; border-radius: 8px; background: none; color: var(--u-t1); font: 600 var(--u-fs-md)/1 var(--u-f-ui); }
.u-csb-ws:hover { background: var(--u-hover); }
.u-csb-ws > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-csb-ws > .u-i { width: 12px; height: 12px; color: var(--u-t4); }
.u-csb-sc { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 2px; padding: 8px; }
/* Rows keep their height when the list overflows (a flex column would squash them) */
.u-csb-sc > * { flex: none; }
.u-csb-f { flex: none; padding: 6px 8px; border-top: 1px solid var(--u-hair); }
.u-csb-gap { height: 8px; flex: none; }

/* Sections: a header that collapses its list. Collapsed, unread and selected rows stay. */
.u-csec { display: flex; flex-direction: column; gap: 1px; }
.u-csec + .u-csec { margin-top: 10px; }
.u-csec-hr { display: flex; align-items: center; gap: 2px; }
.u-csec-h { display: inline-flex; align-items: center; gap: 6px; flex: 1; min-width: 0; height: 26px; padding: 0 6px; border: 0; border-radius: 6px; background: none; color: var(--u-t3); font-size: var(--u-fs-sm); font-weight: 500; text-align: left; }
.u-csec-h:hover { background: var(--u-hover); color: var(--u-t1); }
.u-csec-h > .u-i { width: 12px; height: 12px; flex: none; transition: transform .25s var(--u-ease); }
.u-csec-h[aria-expanded="false"] > .u-i { transform: rotate(-90deg); }
.u-csec-h > .u-count { margin-left: auto; }
.u-csec-add.u-ibtn { --h: 22px; opacity: 0; transition: opacity var(--u-fast); }
.u-csec-hr:hover > .u-csec-add, .u-csec-add:focus-visible { opacity: 1; }
.u-csec-add .u-i { width: 13px; height: 13px; }
.u-csec-l { display: flex; flex-direction: column; gap: 1px; }
.u-csec.is-collapsed .u-cch:not(.is-unread):not(.is-on) { display: none; }

/* A channel or DM row: .u-side-i look, plus unread, muted, client and presence */
.u-cch.u-side-i { height: 28px; gap: 8px; padding: 0 6px 0 8px; }
.u-cch > .u-cch-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-cch > .u-i { width: 14px; height: 14px; flex: none; }
.u-cch > .u-count { margin-left: 0; }
.u-cch.is-unread { color: var(--u-t1); }
.u-cch.is-unread > .u-cch-n { font-weight: 600; }
.u-cch.is-unread > .u-i:first-child { color: var(--u-t1); }
/* Muted is "quieter", still readable: t4 keeps 4.5:1, so no opacity tricks. */
.u-cch.is-muted, .u-cch.is-muted > .u-i { color: var(--u-t4); }
.u-cch-mute.u-i { width: 12px; height: 12px; }
.u-cch--client > .u-i:first-child { color: var(--u-vio-t); }
.u-cch .u-avatar { --s: 20px; }
.u-cch .u-avatar > .u-presence { width: 8px; height: 8px; box-shadow: 0 0 0 2px var(--u-lv0); }
.u-cch.is-on .u-avatar > .u-presence { box-shadow: 0 0 0 2px var(--u-lv3); }
.u-cch-st { flex: none; font: 13px/1 "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }

/* Do Not Disturb: a red dot with a bar across, so it is not colour alone */
.u-presence.u-presence--dnd { background: var(--u-bad); }
.u-presence--dnd::after, .u-pdot--dnd::after { content: ""; position: absolute; left: 22%; right: 22%; top: 50%; height: 1.5px; margin-top: -.75px; border-radius: 1px; background: var(--u-on-accent); }
.u-pdot { position: relative; display: inline-block; width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--u-t4); }
.u-pdot--on { background: var(--u-ok); }
.u-pdot--away { background: var(--u-warn); }
.u-pdot--dnd { background: var(--u-bad); }

/* You: the avatar button that opens the status menu */
.u-meav { display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0; height: 40px; padding: 0 8px 0 6px; border: 1px solid transparent; border-radius: 9px; background: none; color: var(--u-t1); text-align: left; }
.u-meav:hover, .u-meav[aria-expanded="true"] { background: var(--u-hover); border-color: var(--u-hair); }
.u-meav > .u-avatar > .u-presence { box-shadow: 0 0 0 2px var(--u-lv0); }
.u-meav-b { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.u-meav-b > b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.u-meav-b > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--u-t4); font-size: var(--u-fs-xs); }
.u-meav-s { flex: none; font: 15px/1 "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.u-meav-p { display: none; width: 14px; height: 14px; color: var(--u-t4); }
.u-meav.is-paused .u-meav-p { display: block; }
.u-meav--round { width: auto; height: auto; padding: 2px; border-radius: 50%; }

/* =============== Channel header =============== */
.u-chead { display: flex; align-items: center; gap: 8px; height: var(--u-head-h); flex: none; padding: 0 10px 0 12px; border-bottom: 1px solid var(--u-hair); background: var(--u-lv1); min-width: 0; }
.u-chead-back { display: none; }
.u-chead-t { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.u-chead-name { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; height: 22px; margin-left: -4px; padding: 0 4px; border: 0; border-radius: 6px; background: none; color: var(--u-t1); font: 600 var(--u-fs-md)/1 var(--u-f-ui); }
.u-chead-name:hover { background: var(--u-hover); }
.u-chead-name > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-chead-name > .u-i { width: 14px; height: 14px; flex: none; color: var(--u-t3); }
.u-chead-name > .u-i:last-child { width: 12px; height: 12px; color: var(--u-t4); }
.u-chead-topic { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--u-t3); font-size: var(--u-fs-sm); line-height: 16px; }
.u-chead-acts { display: flex; align-items: center; gap: 6px; flex: none; }
.u-chead-mem { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px 0 3px; border: 1px solid var(--u-hair2); border-radius: 8px; background: none; color: var(--u-t2); font: 500 var(--u-fs-sm)/1 var(--u-f-mono); font-variant-numeric: tabular-nums; }
.u-chead-mem:hover { background: var(--u-hover); border-color: var(--u-hair3); }
.u-chead-mem .u-avatar { --s: 20px; }

/* Client channel banner (shared with a client: everything here is visible to them) */
.u-cbanner { display: flex; align-items: center; gap: 8px; flex: none; min-height: 34px; padding: 6px 14px; border-bottom: 1px solid color-mix(in srgb, var(--u-vio) 25%, transparent); background: var(--u-vio-10); color: var(--u-t1); font-size: var(--u-fs-sm); line-height: 1.4; }
.u-cbanner > .u-i { width: 14px; height: 14px; flex: none; color: var(--u-vio-t); }
.u-cbanner b { font-weight: 600; }

/* =============== Channel messages: flat rows =============== */
.u-cmsgs { display: flex; flex-direction: column; padding: 16px 0 10px; outline: 0; }
.u-cmsg { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 10px; padding: 7px 16px 3px; outline: 0; }
.u-cmsg--cont { padding-top: 1px; }
.u-cmsg:hover, .u-cmsg:focus-within { background: var(--u-hover); }
.u-cmsg:focus-visible { background: var(--u-active); box-shadow: inset 2px 0 0 var(--u-blue); outline: 0; }
.u-cmsg-g { padding-top: 2px; }
.u-cmsg-g > .u-avatar { --s: 32px; border-radius: 9px; }
.u-cmsg-g > .u-avatar > .u-presence { display: none; }
/* Grouped rows: no avatar again, the time shows in the gutter on hover or focus */
.u-cmsg-gt { display: block; padding-top: 2px; color: var(--u-t4); font: 10.5px/18px var(--u-f-mono); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; opacity: 0; transition: opacity var(--u-fast); }
.u-cmsg:hover .u-cmsg-gt, .u-cmsg:focus-within .u-cmsg-gt, .u-cmsg:focus-visible .u-cmsg-gt { opacity: 1; }
.u-cmsg-b { min-width: 0; }
.u-cmsg-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 7px; line-height: 20px; }
.u-cmsg-n { color: var(--u-t1); font-weight: 600; }
.u-cmsg-n.u-hoverlink { font-weight: 600; }
.u-cmsg-t { color: var(--u-t4); font-size: var(--u-fs-xs); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Which company a person is from: shown on client people to staff, on ITX staff to guests */
.u-cmsg-org { display: inline-flex; align-items: center; align-self: center; height: 18px; padding: 0 6px; border-radius: 5px; border: 1px solid var(--u-hair2); color: var(--u-t3); font-size: 10.5px; font-weight: 500; white-space: nowrap; }
.u-cmsg-org--client { border-color: color-mix(in srgb, var(--u-vio) 35%, transparent); color: var(--u-vio-t); }
.u-cmsg-x { color: var(--u-t2); line-height: 1.5; overflow-wrap: anywhere; }
.u-cmsg-x p { margin: 0; }
.u-cmsg-x p + p { margin-top: 4px; }
.u-cmsg-x a { color: var(--u-blue-t); text-underline-offset: 2px; }
.u-cmsg-x code { padding: 0 4px; border-radius: 4px; background: var(--u-active); color: var(--u-t1); font: .92em var(--u-f-mono); }
.u-cmsg-x .u-msg-edited { margin-left: 4px; font-size: var(--u-fs-xs); }
.u-cmsg .u-reacts { margin-top: 5px; }
.u-cmsg .u-thread-sum { margin-top: 3px; }
.u-cmsg .u-attachs { margin-top: 6px; max-width: 520px; }
.u-cmsg-note { display: flex; align-items: center; gap: 5px; margin-top: 4px; color: var(--u-t4); font-size: var(--u-fs-xs); }
.u-cmsg-note .u-i { width: 12px; height: 12px; }
/* The hover bar sits on the row's top edge, right side */
.u-cmsg > .u-msg-acts { top: -13px; right: 14px; }
.u-cmsg:hover > .u-msg-acts, .u-cmsg:focus-within > .u-msg-acts, .u-cmsg:focus-visible > .u-msg-acts { opacity: 1; transform: none; pointer-events: auto; }
/* States */
.u-cmsg.is-mentioned { background: var(--u-warn-10); box-shadow: inset 2px 0 0 var(--u-warn); }
.u-cmsg.is-sending .u-cmsg-x { opacity: .55; }
.u-cmsg.is-failed { background: var(--u-bad-10); box-shadow: inset 2px 0 0 var(--u-bad); }
.u-cmsg .u-msg-state { margin-top: 2px; }
/* A staff-only note in a client channel: a quiet rule on the left and a lock line */
.u-cmsg--internal { box-shadow: inset 2px 0 0 var(--u-hair3); }
/* Flat rows in the thread panel */
.u-thread > .u-cmsgs { flex: 1; min-height: 0; overflow: auto; padding-top: 14px; }
.u-cmsgs > .u-thread-n { margin: 6px 16px; }
.u-cmsg.is-gone { opacity: 0; transform: translateX(-8px); transition: opacity .18s var(--u-ease), transform .2s var(--u-ease); }

/* Day divider and the "New" line */
.u-cdiv { display: flex; align-items: center; margin: 10px 0 4px; padding: 0 16px; color: var(--u-t2); font-size: var(--u-fs-xs); font-weight: 500; }
.u-cdiv::before, .u-cdiv::after { content: ""; flex: 1; height: 1px; background: var(--u-hair); }
.u-cdiv > span { display: inline-flex; align-items: center; height: 22px; padding: 0 11px; border-radius: 99px; border: 1px solid var(--u-hair2); background: var(--u-lv1); box-shadow: var(--u-edge); white-space: nowrap; }
.u-cdiv--new { margin: 4px 0; color: var(--u-bad-t); }
.u-cdiv--new::before, .u-cdiv--new::after { background: color-mix(in srgb, var(--u-bad) 50%, transparent); }
.u-cdiv--new::after { flex: 0 0 10px; }
.u-cdiv--new > span { height: 16px; padding: 0 5px; border: 0; border-radius: 4px; background: none; box-shadow: none; color: var(--u-bad-t); font-weight: 600; }

/* =============== AI assistant (Copilot) messages =============== */
/* Always marked: a square avatar with a sparkle, an "AI" tag beside the name, a framed body
   and a line saying it was generated. Violet is the AI colour across Umbra. */
.u-aiav { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--u-vio-10); color: var(--u-vio-t); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--u-vio) 35%, transparent); }
.u-aiav > .u-i { width: 16px; height: 16px; }
.u-aitag { display: inline-flex; align-items: center; gap: 3px; align-self: center; height: 18px; padding: 0 6px; border-radius: 5px; background: var(--u-vio-10); color: var(--u-vio-t); font-size: 10.5px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.u-aitag > .u-i { width: 11px; height: 11px; }
.u-aibox { max-width: 560px; margin-top: 4px; padding: 10px 12px; border-radius: 0 10px 10px 0; border: 1px solid color-mix(in srgb, var(--u-vio) 28%, var(--u-hair)); background: var(--u-lv2); box-shadow: var(--u-edge), inset 2px 0 0 color-mix(in srgb, var(--u-vio) 60%, transparent); color: var(--u-t2); line-height: 1.5; }
.u-aibox > p { margin: 0 0 6px; }
.u-aibox ul { margin: 0; padding-left: 18px; }
.u-aibox li + li { margin-top: 3px; }
.u-aibox li::marker { color: var(--u-vio-t); }
.u-ai-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; margin-top: 6px; color: var(--u-t4); font-size: var(--u-fs-xs); }
.u-ai-foot > span { margin-right: auto; }
.u-ai-foot .u-btn--ghost { color: var(--u-t3); }

/* =============== Huddle cards: live and after it ends =============== */
.u-hcard { --c: var(--u-ok); --ct: var(--u-ok-t); --cb: var(--u-ok-10); max-width: 460px; margin-top: 6px; border-radius: var(--u-r-lg); border: 1px solid var(--u-hair2); background: var(--u-lv2); box-shadow: var(--u-sh-card); overflow: hidden; }
.u-hcard--ended { --c: var(--u-t3); --ct: var(--u-t2); --cb: var(--u-gray-10); }
.u-hcard-h { display: flex; align-items: center; gap: 10px; padding: 10px 12px; min-width: 0; }
.u-hcard-ic { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 9px; background: var(--cb); color: var(--ct); }
.u-hcard-ic > .u-i { width: 16px; height: 16px; }
.u-hcard-tt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.u-hcard-tt > b { color: var(--u-t1); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-hcard-tt > span { color: var(--u-t3); font-size: var(--u-fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-hcard-time { color: var(--u-t2); font-family: var(--u-f-mono); font-variant-numeric: tabular-nums; }
.u-hcard-h > .u-badge { flex: none; }
.u-hcard-b { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--u-hair); background: var(--u-lv1); min-width: 0; }
.u-hcard-b .u-avatar { --s: 24px; }
.u-hcard-b .u-avstack > .u-avatar { box-shadow: 0 0 0 2px var(--u-lv1), inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent); }
.u-hcard-who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--u-t3); font-size: var(--u-fs-sm); }
.u-hcard-b > .u-btn { flex: none; }
.u-hcard-facts { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 0 12px 10px; margin: 0; color: var(--u-t3); font-size: var(--u-fs-sm); }
.u-hcard-facts > div { display: flex; gap: 5px; }
.u-hcard-facts dt { color: var(--u-t4); }
.u-hcard-facts dd { margin: 0; color: var(--u-t1); font-variant-numeric: tabular-nums; }
.u-hcard-sum { padding: 10px 12px; border-top: 1px solid var(--u-hair); }
.u-hcard-sl { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; color: var(--u-vio-t); font-size: var(--u-fs-xs); font-weight: 500; }
.u-hcard-sl > .u-i { width: 12px; height: 12px; }
.u-hcard-sum ul { margin: 0; padding-left: 18px; color: var(--u-t2); font-size: var(--u-fs-sm); line-height: 1.5; }
.u-hcard-sum li + li { margin-top: 2px; }
.u-hcard-f { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--u-hair); background: var(--u-lv1); }

/* =============== Status menu (opens from your avatar) =============== */
.u-menu.u-smenu { width: 296px; max-width: calc(var(--u-vw, 100vw) - 16px); max-height: min(560px, calc(var(--u-vh, 100vh) - 24px)); }
.u-smenu-h { display: flex; align-items: center; gap: 10px; padding: 8px 8px 10px; }
.u-smenu-h > div { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.u-smenu-h b { color: var(--u-t1); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-smenu-h span { display: flex; align-items: center; gap: 6px; color: var(--u-t3); font-size: var(--u-fs-sm); }
.u-smenu-h .u-avatar > .u-presence { box-shadow: 0 0 0 2px var(--u-lv3); }
/* "Set A Custom Status" looks like a field so it reads as something to fill in */
.u-smenu-cs { display: flex; align-items: center; gap: 2px; margin: 0 4px 4px; }
.u-menu-item.u-smenu-field { flex: 1; min-width: 0; min-height: 32px; border: 1px solid var(--u-ctl-bd); background: var(--u-fld); box-shadow: var(--u-fld-in); color: var(--u-t4); }
.u-menu-item.u-smenu-field:hover, .u-menu-item.u-smenu-field:focus-visible { border-color: var(--u-t4); background: var(--u-fld); }
.u-smenu-field.is-set { color: var(--u-t1); }
.u-smenu-field > span:not(.u-smenu-e) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-smenu-e { flex: none; width: 16px; text-align: center; font: 15px/1 "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.u-menu-item.u-smenu-clear { flex: none; width: 32px; min-height: 32px; justify-content: center; padding: 0; }
.u-smenu .u-menu-item > .u-pdot { margin: 0 2px; }
.u-smenu .u-menu-item[role="menuitemradio"] > .u-menu-tick { margin-left: auto; }
.u-smenu .u-menu-item[aria-checked="true"] > .u-menu-tick { opacity: 1; }
.u-smenu-dnd > .u-i:last-child { width: 12px; height: 12px; margin-left: 4px; color: var(--u-t4); transition: transform .25s var(--u-ease); }
.u-smenu-dnd[aria-expanded="true"] > .u-i:last-child { transform: rotate(180deg); }
.u-smenu-dnd > .u-menu-meta { color: var(--u-bad-t); }
.u-smenu-sub > .u-menu-item { padding-left: 32px; color: var(--u-t2); }
.u-smenu-sub > .u-menu-item:not([hidden]) { animation: u-rise var(--u-med) var(--u-ease); }
.u-smenu-sub > .u-menu-item.u-menu-item--danger { color: var(--u-bad-t); }

/* Custom status dialog */
.u-csdlg-row { display: flex; align-items: center; gap: 6px; }
.u-csdlg-row > .u-inwrap { flex: 1; }
.u-csdlg-emoji { flex: none; display: grid; place-items: center; width: var(--u-ctl); height: var(--u-ctl); padding: 0; border-radius: var(--u-r); border: 1px solid var(--u-hair2); background: var(--u-b2-bg); box-shadow: var(--u-b2-hi), var(--u-b2-sh); color: var(--u-t3); font: 16px/1 "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.u-csdlg-emoji:hover { border-color: var(--u-b2-bd-h); background: var(--u-b2-bg-h); }
.u-csdlg-emoji > .u-i { width: 15px; height: 15px; }
.u-csdlg-sugg { display: flex; flex-direction: column; gap: 1px; margin: 0; padding: 0; list-style: none; }
.u-csdlg-sugg button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 32px; padding: 0 8px; border: 0; border-radius: 7px; background: none; color: var(--u-t1); text-align: left; }
.u-csdlg-sugg button:hover { background: var(--u-active); }
.u-csdlg-sugg button > b { width: 18px; text-align: center; font: 15px/1 "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.u-csdlg-sugg button > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-csdlg-sugg button > em { color: var(--u-t4); font-size: var(--u-fs-xs); font-style: normal; white-space: nowrap; }

/* =============== Message search: filter chips and message results =============== */
.u-fchips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.u-fchip { position: relative; display: inline-flex; flex: none; }
.u-fchip > .u-chip > .u-i { width: 12px; height: 12px; color: var(--u-t4); transition: transform .25s var(--u-ease); }
.u-fchip > .u-chip[aria-expanded="true"] > .u-i { transform: rotate(180deg); }
.u-fchip > .u-chip { max-width: 240px; }
.u-fchip-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-fchip.is-on > .u-chip { padding-right: 30px; }
.u-fchip.is-on > .u-chip > .u-i { display: none; }
.u-fchip-x { position: absolute; top: 50%; right: 4px; display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--u-t3); transform: translateY(-50%); }
.u-fchip-x:hover { background: var(--u-active); color: var(--u-t1); }
.u-fchip-x > .u-i { width: 12px; height: 12px; }
.u-fchip:not(.is-on) > .u-fchip-x { display: none; }
.u-fmenu { width: 248px; }
.u-fmenu .u-menu-item > .u-avatar { --s: 20px; }
.u-fmenu .u-menu-item[aria-checked="true"] > .u-menu-tick { opacity: 1; }
.u-pop.u-fcal { width: 288px; }
.u-fcal-f { display: flex; justify-content: flex-end; gap: 6px; margin-top: 10px; }
/* A message result: avatar, who and when, then the matching text over up to two lines */
.u-sres.u-sres--msg { align-items: flex-start; padding-top: 8px; padding-bottom: 8px; }
.u-sres--msg > .u-avatar { --s: 28px; border-radius: 8px; margin-top: 1px; }
.u-sres-top { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.u-sres-top > b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--u-t1); font-weight: 500; }
.u-sres-top > span { color: var(--u-t4); font-size: var(--u-fs-xs); white-space: nowrap; }
.u-sres-x { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--u-t2); font-size: var(--u-fs-sm); line-height: 1.45; overflow-wrap: anywhere; }
.u-sres-gh > .u-i { width: 13px; height: 13px; color: var(--u-t4); }
.u-sres-gh > .u-count { margin-left: auto; }
.u-csearch-n { color: var(--u-t4); font-size: var(--u-fs-xs); }

/* =============== Activity: Unreads, Threads, Mentions =============== */
.u-actv { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-radius: var(--u-r-lg); border: 1px solid var(--u-hair); background: var(--u-lv2); box-shadow: var(--u-sh-card); overflow: hidden; }
.u-actv-h { display: flex; align-items: center; gap: 8px; height: 44px; flex: none; padding: 0 8px 0 14px; }
.u-actv-h h3 { margin: 0 auto 0 0; color: var(--u-t1); font-size: var(--u-fs-md); font-weight: 600; }
.u-actv > .u-tabs { padding: 0 10px; flex: none; }
.u-actv-p { flex: 1; min-height: 0; overflow: auto; padding: 4px; }
.u-actv-l { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.u-actv-i { position: relative; display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 8px 26px 8px 10px; border: 0; border-radius: 9px; background: none; color: var(--u-t2); text-align: left; transition: opacity .18s var(--u-ease), transform .2s var(--u-ease); }
.u-actv-i:hover { background: var(--u-hover); }
.u-actv-i:focus-visible { outline-offset: -2px; }
.u-actv-i > .u-avatar { margin-top: 1px; }
.u-actv-ic { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 8px; border: 1px solid var(--u-hair2); background: var(--u-lv3); color: var(--u-t3); }
.u-actv-ic > .u-i { width: 14px; height: 14px; }
.u-actv-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.u-actv-w { display: flex; align-items: center; gap: 6px; color: var(--u-t4); font-size: var(--u-fs-xs); }
.u-actv-w > span:last-child { margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
.u-actv-w .u-i { width: 11px; height: 11px; }
.u-actv-t { color: var(--u-t2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.u-actv-t > b { color: var(--u-t1); font-weight: 500; }
.u-actv-i.is-unread .u-actv-t > b { font-weight: 600; }
.u-actv-i.is-unread::after { content: ""; position: absolute; top: 15px; right: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--u-blue); }
.u-actv-i.is-gone { opacity: 0; transform: translateX(10px); }
.u-actv-done { padding: 36px 20px; }
.u-actv-done .u-empty-ic { color: var(--u-ok-t); }

/* =============== Phone action sheet (long press a message) =============== */
.u-asheet { position: fixed; z-index: calc(var(--u-z-modal) + 1); left: 50%; bottom: 0; width: min(480px, var(--u-vw, 100vw)); max-height: calc(var(--u-vh, 100vh) - 40px); overflow: auto; padding: 6px 8px calc(10px + env(safe-area-inset-bottom, 0px)); border-radius: 18px 18px 0 0; border: 1px solid var(--u-hair2); border-bottom: 0; background: var(--u-lv3); box-shadow: var(--u-sh-pop); transform: translateX(-50%); animation: u-chat-sheet-in .32s var(--u-ease); }
.u-asheet.is-closing { animation: u-chat-sheet-out .18s ease-in forwards; }
.u-asheet-grip { width: 36px; height: 4px; margin: 2px auto 8px; border-radius: 4px; background: var(--u-hair3); }
.u-asheet-q { display: flex; align-items: center; gap: 8px; min-width: 0; margin: 0 6px 10px; padding: 8px 10px; border-radius: 10px; background: var(--u-sunken); box-shadow: var(--u-sh-well); color: var(--u-t3); font-size: var(--u-fs-sm); }
.u-asheet-q > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-asheet-q b { color: var(--u-t1); font-weight: 500; }
.u-asheet-rx { display: flex; justify-content: space-between; gap: 4px; padding: 0 4px 10px; border-bottom: 1px solid var(--u-hair); }
.u-asheet-rx > button { display: grid; place-items: center; width: 44px; height: 44px; flex: none; padding: 0; border: 1px solid var(--u-hair); border-radius: 50%; background: var(--u-lv2); color: var(--u-t2); font: 21px/1 "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; transition: transform .2s var(--u-ease); }
.u-asheet-rx > button:hover { background: var(--u-active); border-color: var(--u-hair2); }
.u-asheet-rx > button:active { transform: scale(.94); }
.u-asheet-rx > button > .u-i { width: 18px; height: 18px; }
.u-asheet-l { display: flex; flex-direction: column; gap: 1px; padding: 6px 0; }
.u-asheet-i { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 48px; padding: 0 14px; border: 0; border-radius: 10px; background: none; color: var(--u-t1); font-size: var(--u-fs-md); text-align: left; }
.u-asheet-i:hover, .u-asheet-i:active { background: var(--u-active); }
.u-asheet-i > .u-i { width: 18px; height: 18px; color: var(--u-t3); }
.u-asheet-i--danger, .u-asheet-i--danger > .u-i { color: var(--u-bad-t); }
.u-asheet-i--danger:hover { background: var(--u-bad-10); }
.u-asheet > .u-asheet-cancel { display: flex; width: 100%; --h: 44px; margin-top: 4px; font-size: var(--u-fs-md); }
/* A long press must not start a text selection or the phone's own callout */
@media (pointer: coarse) { .u-cmsgs[data-u-sheet] .u-cmsg { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; } }

/* =============== Guest view: "What The Client Sees" =============== */
.u-guest-toggle { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px 0 3px; border-radius: 99px; border: 1px solid var(--u-hair2); background: var(--u-lv2); box-shadow: var(--u-edge); color: var(--u-t2); font-size: var(--u-fs-sm); font-weight: 500; white-space: nowrap; }
.u-guest-toggle:hover { border-color: var(--u-hair3); color: var(--u-t1); }
.u-guest-toggle > i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--u-gray-10); color: var(--u-t3); }
.u-guest-toggle > i > .u-i { width: 13px; height: 13px; }
.u-guest-toggle > span { line-height: 1; transform: translateY(-.5px); }
.u-guest-toggle[aria-pressed="true"] { border-color: color-mix(in srgb, var(--u-vio) 45%, transparent); background: var(--u-vio-10); color: var(--u-vio-t); }
.u-guest-toggle[aria-pressed="true"] > i { background: var(--u-vio); color: var(--u-on-accent); }
.u-guest { position: relative; }
.u-guest.is-guest { box-shadow: 0 0 0 2px color-mix(in srgb, var(--u-vio) 45%, transparent); }
.u-guest.is-guest [data-u-internal], .u-guest:not(.is-guest) [data-u-guestonly] { display: none !important; }

/* =============== Motion for this part (transform and opacity only) =============== */
@keyframes u-chat-sheet-in { from { opacity: 0; transform: translate(-50%, 100%); } }
@keyframes u-chat-sheet-out { to { opacity: 0; transform: translate(-50%, 60%); } }

/* =============== Phone =============== */
@media (max-width: 640px) {
  /* The sidebar and the channel are two screens, like mail: .u-chan.is-open shows the channel */
  .u-chan { grid-template-columns: minmax(0, 1fr); }
  .u-chan > .u-chatwrap { display: none; }
  .u-chan.is-open > .u-csb { display: none; }
  .u-chan.is-open > .u-chatwrap { display: grid; animation: u-comms-in-r .3s var(--u-ease); }
  .u-csb { border-right: 0; }
  .u-chead-back { display: inline-grid; }
  .u-chead { height: auto; min-height: 56px; padding: 6px 8px; gap: 6px; } /* phone: one pane at a time, so the header can grow for 40px touch targets */
  .u-chead-mem .u-avstack { display: none; }
  .u-chead-mem { height: var(--u-ctl-touch); padding: 0 10px; }
  .u-chead-huddle.u-btn { width: var(--h); padding: 0; }
  .u-chead-huddle.u-btn > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .u-chead-name { height: 32px; }
  /* The name already opens the details, so the phone header drops the extra buttons */
  .u-chead-opt { display: none; }
  .u-chead-acts { gap: 4px; }
  .u-csb-ws { height: 40px; }
  .u-cch.u-side-i { height: 40px; }
  .u-csec-h { height: 36px; }
  .u-csec-add.u-ibtn { --h: 36px; opacity: 1; }
  .u-meav { height: 48px; }
  .u-cmsg { padding-left: 12px; padding-right: 12px; }
  .u-cmsg > .u-msg-acts { right: 8px; }
  .u-cdiv { padding: 0 12px; }
  .u-hcard-b { flex-wrap: wrap; }
  .u-hcard-who { flex-basis: calc(100% - 120px); }
  .u-actv-i { padding-top: 11px; padding-bottom: 11px; }
  .u-fchip-x { width: 28px; height: 28px; right: 4px; }
  .u-fchip.is-on > .u-chip { padding-right: 36px; }
  .u-menu.u-smenu { width: calc(var(--u-vw, 100vw) - 16px); }
  .u-menu-item.u-smenu-field, .u-menu-item.u-smenu-clear { min-height: 40px; }
  .u-menu-item.u-smenu-clear { width: 40px; }
  .u-csdlg-emoji { width: var(--u-ctl-touch); height: var(--u-ctl-touch); }
  .u-csdlg-sugg button { min-height: 44px; }
  .u-asheet-i { min-height: 52px; }
  .u-guest-toggle { height: 36px; }
  .u-ai-foot .u-btn { --h: 32px; }
}
@container u-frame (max-width: 640px) {
  /* The sidebar and the channel are two screens, like mail: .u-chan.is-open shows the channel */
  .u-chan { grid-template-columns: minmax(0, 1fr); }
  .u-chan > .u-chatwrap { display: none; }
  .u-chan.is-open > .u-csb { display: none; }
  .u-chan.is-open > .u-chatwrap { display: grid; animation: u-comms-in-r .3s var(--u-ease); }
  .u-csb { border-right: 0; }
  .u-chead-back { display: inline-grid; }
  .u-chead { height: auto; min-height: 56px; padding: 6px 8px; gap: 6px; } /* phone: one pane at a time, so the header can grow for 40px touch targets */
  .u-chead-mem .u-avstack { display: none; }
  .u-chead-mem { height: var(--u-ctl-touch); padding: 0 10px; }
  .u-chead-huddle.u-btn { width: var(--h); padding: 0; }
  .u-chead-huddle.u-btn > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .u-chead-name { height: 32px; }
  /* The name already opens the details, so the phone header drops the extra buttons */
  .u-chead-opt { display: none; }
  .u-chead-acts { gap: 4px; }
  .u-csb-ws { height: 40px; }
  .u-cch.u-side-i { height: 40px; }
  .u-csec-h { height: 36px; }
  .u-csec-add.u-ibtn { --h: 36px; opacity: 1; }
  .u-meav { height: 48px; }
  .u-cmsg { padding-left: 12px; padding-right: 12px; }
  .u-cmsg > .u-msg-acts { right: 8px; }
  .u-cdiv { padding: 0 12px; }
  .u-hcard-b { flex-wrap: wrap; }
  .u-hcard-who { flex-basis: calc(100% - 120px); }
  .u-actv-i { padding-top: 11px; padding-bottom: 11px; }
  .u-fchip-x { width: 28px; height: 28px; right: 4px; }
  .u-fchip.is-on > .u-chip { padding-right: 36px; }
  .u-menu.u-smenu { width: calc(var(--u-vw, 100vw) - 16px); }
  .u-menu-item.u-smenu-field, .u-menu-item.u-smenu-clear { min-height: 40px; }
  .u-menu-item.u-smenu-clear { width: 40px; }
  .u-csdlg-emoji { width: var(--u-ctl-touch); height: var(--u-ctl-touch); }
  .u-csdlg-sugg button { min-height: 44px; }
  .u-asheet-i { min-height: 52px; }
  .u-guest-toggle { height: 36px; }
  .u-ai-foot .u-btn { --h: 32px; }
}

/* ---- umbra-calls.css ---- */
/* ==========================================================================
   Umbra Meeting Lobby And Recaps: Meeting lobby, waiting room, guest join page, device menus, captions and live transcript, in-call chat, talk time, recording chapters, recap, event pop-up, Smart Dark mail bodies.
   Part of css/umbra.css (tools/build.mjs). Uses only --u-* tokens, so dark and light both work.

   Builds on the meeting pieces in umbra-meet.css (.u-vtile, .u-meet, .u-meet-side, .u-level,
   .u-prejoin-ctl, .u-share-win) rather than redrawing them. Like those, the bigger pieces
   are size containers, so a 390px-wide frame on a desktop shows the phone layout too.
   Local knobs (--v fill, --w segment length, --sd-bg / --sd-fg an email's own colour) are
   plain custom properties set on one element, not tokens.
   ========================================================================== */

@keyframes u-wait-ring { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(1.75); } }
@keyframes u-wait-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes u-cap-in { from { opacity: 0; transform: translateY(3px); } }
@keyframes u-tone { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }

/* =============== Meeting lobby (ITX Meet home) =============== */
.u-lobby { container: ulobby / inline-size; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.u-lobby-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.u-lobby-t { flex: 1 1 auto; min-width: 0; margin: 0; color: var(--u-t1); font-size: var(--u-fs-xl); font-weight: 600; letter-spacing: -.02em; }
.u-lobby-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.u-lobby-sec { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.u-lobby-h { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--u-t3); font-size: var(--u-fs-sm); font-weight: 500; }
.u-lobby-h > .u-i { width: 14px; height: 14px; }

/* Join by code: letters only, shown as abc-defg-hij */
.u-joincode { display: flex; align-items: center; gap: 6px; min-width: 0; }
.u-joincode > .u-inwrap { flex: 1 1 180px; min-width: 0; max-width: 220px; }
.u-joincode input { font-family: var(--u-f-mono); font-size: var(--u-fs-sm); letter-spacing: .02em; }
.u-joincode input::placeholder { color: var(--u-t4); }

/* Meeting rows: time, title and people, then Join. Join is live only near the start
   time; until then it is disabled and the row says when it opens (umbra.js keeps it
   current). */
.u-mtgs { display: flex; flex-direction: column; min-width: 0; border-radius: var(--u-r-lg); border: 1px solid var(--u-hair); background: var(--u-lv2); box-shadow: var(--u-sh-card); overflow: hidden; }
.u-mtg { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; grid-template-areas: "time main act"; align-items: center; gap: 4px 14px; min-height: 60px; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--u-hair); }
.u-mtg:last-child { border-bottom: 0; }
.u-mtg:hover { background: var(--u-hover); }
.u-mtg::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--u-ok); opacity: 0; transition: opacity var(--u-med); }
.u-mtg.is-live::before { opacity: 1; }
.u-mtg-time { grid-area: time; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.u-mtg-time > b { color: var(--u-t1); font: 500 var(--u-fs)/1.2 var(--u-f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.u-mtg-time > span { color: var(--u-t4); font-size: var(--u-fs-xs); white-space: nowrap; }
.u-mtg-main { grid-area: main; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.u-mtg-t { color: var(--u-t1); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-mtg-m { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; color: var(--u-t3); font-size: var(--u-fs-sm); }
.u-mtg-m > span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.u-mtg-m .u-i { width: 13px; height: 13px; flex: none; }
.u-mtg-m .u-badge { height: 18px; }
.u-mtg-act { grid-area: act; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.u-mtg-when { color: var(--u-t3); font-size: var(--u-fs-xs); white-space: nowrap; text-align: right; }
.u-mtg.is-soon .u-mtg-when { color: var(--u-blue-t); font-weight: 500; }
.u-mtg.is-live .u-mtg-when { color: var(--u-ok-t); font-weight: 500; }
.u-mtg.is-past .u-mtg-t, .u-mtg.is-past .u-mtg-time > b { color: var(--u-t3); }
.u-mtg-join { min-width: 62px; }
.u-mtgs-empty { margin: 0; padding: 18px 16px; color: var(--u-t4); font-size: var(--u-fs-sm); text-align: center; }
@container ulobby (max-width: 560px) {
  .u-lobby-top { align-items: stretch; }
  .u-lobby-t { flex-basis: 100%; }
  .u-lobby-acts { flex: 1 1 100%; }
  .u-lobby-acts > .u-joincode { flex: 1 1 100%; }
  .u-lobby-acts > .u-btn { flex: 1 1 auto; }
  .u-joincode > .u-inwrap { max-width: none; }
  .u-mtg { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "time act" "main main"; padding: 10px 10px 12px 14px; }
  .u-mtg-time { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
  .u-mtg-when { white-space: normal; }
}

/* Recording cards: a drawn screen-share stand-in, length chip, play on hover */
.u-recs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 14px 12px; min-width: 0; }
.u-reccard { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 0; border: 0; border-radius: var(--u-r-lg); background: none; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.u-reccard-th { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--u-r-lg); border: 1px solid var(--u-hair); background: var(--u-desk); box-shadow: var(--u-sh-card); }
.u-reccard-th > .u-share-win { inset: 16% 12% 14%; }
.u-reccard-th > .u-share-win > b, .u-reccard-th > .u-share-win > i { display: block; }
.u-reccard-play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; background: color-mix(in srgb, var(--u-lv0) 86%, transparent); box-shadow: 0 0 0 1px var(--u-hair2), var(--u-sh-row); color: var(--u-t1); opacity: 0; transform: scale(.9); transition: opacity var(--u-fast), transform var(--u-med) var(--u-ease); }
.u-reccard-play > .u-i { width: 16px; height: 16px; margin-left: 2px; }
.u-reccard:hover .u-reccard-play, .u-reccard:focus-visible .u-reccard-play { opacity: 1; transform: none; }
@media (hover: none) { .u-reccard-play { opacity: 1; transform: none; } }
.u-reccard-dur { position: absolute; right: 6px; bottom: 6px; display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 6px; background: color-mix(in srgb, var(--u-lv0) 86%, transparent); box-shadow: 0 0 0 1px var(--u-hair); color: var(--u-t1); font: 500 var(--u-fs-xs)/1 var(--u-f-mono); font-variant-numeric: tabular-nums; }
.u-reccard-t { display: block; color: var(--u-t1); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-reccard-m { display: block; margin-top: -4px; color: var(--u-t3); font-size: var(--u-fs-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-reccard--row { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 4px 12px; padding: 8px; border: 1px solid var(--u-hair); background: var(--u-lv1); }
.u-reccard--row:hover { background: var(--u-hover); border-color: var(--u-hair2); }
.u-reccard--row > .u-reccard-th { grid-row: span 2; border-radius: var(--u-r); box-shadow: none; }
.u-reccard--row > .u-reccard-t { align-self: end; }
.u-reccard--row > .u-reccard-m { align-self: start; margin: 0; }
.u-reccard--row .u-reccard-play { width: 28px; height: 28px; margin: -14px 0 0 -14px; opacity: 1; transform: none; }
.u-reccard--row .u-reccard-play > .u-i { width: 13px; height: 13px; }

/* =============== Waiting room (guest side) =============== */
.u-waitroom { container: uwait / inline-size; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; width: 100%; min-width: 0; }
.u-waitroom-prev { position: relative; flex: 1.2 1 300px; min-width: 0; }
.u-waitroom-prev > .u-vtile { width: 100%; transition: opacity var(--u-med); }
.u-waitroom-main { flex: 1 1 260px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 0; }
.u-waitroom-st { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; }
.u-waitroom-st:focus { outline: 0; }
.u-waitroom-t { margin: 0; color: var(--u-t1); font-size: var(--u-fs-xl); font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
.u-waitroom-s { margin: 4px 0 0; color: var(--u-t3); font-size: var(--u-fs-sm); overflow-wrap: anywhere; }
.u-waitroom-s b { color: var(--u-t2); font-weight: 500; }
.u-waitroom-time { font-family: var(--u-f-mono); font-variant-numeric: tabular-nums; }
.u-waitroom-f { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.u-waitroom[data-state="denied"] .u-waitroom-wait, .u-waitroom:not([data-state="denied"]) .u-waitroom-deny { display: none; }
.u-waitroom[data-state="denied"] .u-waitroom-prev > .u-vtile { opacity: .55; }
/* The calm indicator: an icon that breathes and two rings that drift out. Transform and
   opacity only; reduced motion leaves the icon still. */
.u-waitpulse { position: relative; display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--u-blue-10); color: var(--u-blue-t); }
.u-waitpulse > .u-i { width: 22px; height: 22px; animation: u-wait-breathe 3.2s ease-in-out infinite; }
.u-waitpulse::before, .u-waitpulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--u-blue) 50%, transparent); opacity: 0; animation: u-wait-ring 3.2s var(--u-ease-out) infinite; pointer-events: none; }
.u-waitpulse::after { animation-delay: 1.6s; }
.u-waitpulse--bad { background: var(--u-bad-10); color: var(--u-bad-t); }
.u-waitpulse--bad::before, .u-waitpulse--bad::after, .u-waitpulse--bad > .u-i { animation: none; }
/* Device check rows (also used on the guest join page) */
.u-devcheck { display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 6px 12px; border-radius: var(--u-r-lg); border: 1px solid var(--u-hair); background: var(--u-lv1); box-shadow: var(--u-edge); }
.u-devcheck-r { display: flex; align-items: center; gap: 10px; min-height: 32px; min-width: 0; color: var(--u-t2); font-size: var(--u-fs-sm); }
.u-devcheck-r > .u-i { width: 14px; height: 14px; flex: none; color: var(--u-t3); }
.u-devcheck-r > span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-devcheck-r > .u-level { flex: 1 1 60px; max-width: 120px; }
.u-devcheck-r > b { flex: none; display: inline-flex; align-items: center; gap: 4px; color: var(--u-ok-t); font-size: var(--u-fs-xs); font-weight: 500; white-space: nowrap; }
.u-devcheck-r > b > .u-i { width: 12px; height: 12px; }
.u-devcheck-r.is-bad > b { color: var(--u-bad-t); }
.u-devcheck-r.is-off > b { color: var(--u-t4); }
.u-devcheck-r > .u-btn { flex: none; }

/* =============== Guest join page (a client joining from a link, no account) =============== */
.u-guestjoin { container: uguest / inline-size; display: flex; flex-direction: column; min-width: 0; min-height: 100%; background: var(--u-lv1); color: var(--u-t2); }
.u-guestjoin-top { display: flex; align-items: center; gap: 10px; flex: none; height: 52px; padding: 0 20px; border-bottom: 1px solid var(--u-hair); background: var(--u-lv0); }
.u-guestjoin-top > b { color: var(--u-t1); font-weight: 600; letter-spacing: -.01em; }
.u-guestjoin-top > span { margin-left: auto; color: var(--u-t4); font-size: var(--u-fs-xs); display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.u-guestjoin-top > span > .u-i { width: 12px; height: 12px; }
.u-guestjoin-main { flex: 1; display: flex; justify-content: center; align-items: flex-start; padding: 32px 20px 24px; }
.u-guestjoin-card { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; gap: 24px; width: min(900px, 100%); padding: 20px; border-radius: var(--u-r-xl); border: 1px solid var(--u-hair); background: var(--u-lv2); box-shadow: var(--u-sh-card); }
.u-guestjoin-prev { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.u-guestjoin-prev > .u-vtile { width: 100%; }
.u-guestjoin-form { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.u-guestjoin-t { margin: 0; color: var(--u-t1); font-size: var(--u-fs-xl); font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
.u-guestjoin-host { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; color: var(--u-t3); font-size: var(--u-fs-sm); }
.u-guestjoin-host > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.u-guestjoin-when { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; color: var(--u-t3); font-size: var(--u-fs-sm); }
.u-guestjoin-when > .u-i { width: 14px; height: 14px; }
.u-guestjoin-small { margin: 0; color: var(--u-t4); font-size: var(--u-fs-xs); line-height: 1.55; }
.u-guestjoin-small > .u-i { width: 12px; height: 12px; vertical-align: -2px; margin-right: 4px; }
.u-guestjoin-sent { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--u-r-md); background: var(--u-blue-10); color: var(--u-t1); font-size: var(--u-fs-sm); animation: u-rise var(--u-med) var(--u-ease); }
.u-guestjoin-sent[hidden] { display: none; }
@container uguest (max-width: 680px) {
  .u-guestjoin-top { padding: 0 14px; }
  .u-guestjoin-main { padding: 16px 12px 20px; }
  .u-guestjoin-card { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 14px; }
  .u-guestjoin-t { font-size: var(--u-fs-lg); }
}
@container uguest (max-width: 420px) { .u-guestjoin-top > span { display: none; } }

/* =============== Device menus (from the chevron on mic and camera) =============== */
.u-menu.u-devmenu { width: min(300px, calc(var(--u-vw, 100vw) - 16px)); max-height: min(480px, calc(var(--u-vh, 100vh) - 24px)); }
.u-devmenu .u-menu-item > .u-truncate { flex: 1 1 auto; min-width: 0; }
.u-devmenu-lv { display: flex; align-items: center; gap: 8px; padding: 2px 8px 8px; color: var(--u-t4); }
.u-devmenu-lv > .u-i { width: 14px; height: 14px; flex: none; }
.u-devmenu-lv > .u-level { flex: 1; }
.u-devmenu-test.is-playing { color: var(--u-blue-t); }
.u-devmenu-test.is-playing > .u-i { color: var(--u-blue-t); animation: u-tone .9s ease-in-out infinite; }

/* =============== Captions over the stage =============== */
.u-captions { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 7; display: flex; justify-content: center; padding: 0 12px; pointer-events: none; transition: opacity var(--u-med); }
.u-captions[hidden] { display: none; }
.u-captions.is-idle { opacity: 0; }
.u-captions-in { display: flex; flex-direction: column; gap: 3px; width: min(680px, 100%); padding: 8px 14px 10px; border-radius: var(--u-r-lg); background: color-mix(in srgb, var(--u-lv0) 90%, transparent); box-shadow: 0 0 0 1px var(--u-hair), var(--u-sh-row); }
.u-caption-who { color: var(--u-t3); font-size: var(--u-fs-xs); font-weight: 500; }
/* Two lines at most; the newest words stay at the bottom and older ones leave at the top */
.u-caption-txt { display: flex; flex-direction: column; justify-content: flex-end; max-height: calc(2 * 1.45 * var(--u-fs-lg)); overflow: hidden; color: var(--u-t1); font-size: var(--u-fs-lg); line-height: 1.45; }
.u-caption-txt > span { display: block; animation: u-cap-in .25s var(--u-ease); }
@container umeetv (max-width: 560px) {
  .u-captions { bottom: 10px; padding: 0 8px; }
  .u-captions-in { padding: 6px 10px 8px; }
  .u-caption-txt { font-size: var(--u-fs-md); max-height: calc(2 * 1.45 * var(--u-fs-md)); }
}

/* =============== Live transcript =============== */
.u-tscript { position: relative; display: flex; flex-direction: column; flex: 1; min-height: 0; min-width: 0; }
.u-tscript-l { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 14px; overflow: auto; padding: 12px 12px 16px; scrollbar-width: thin; overscroll-behavior: contain; }
.u-tscript-l:focus-visible { outline-offset: -2px; }
.u-tscript-e { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 2px 8px; animation: u-rise var(--u-med) var(--u-ease); }
.u-tscript-e > .u-avatar { grid-row: span 2; }
.u-tscript-h { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.u-tscript-h > b { min-width: 0; color: var(--u-t1); font-size: var(--u-fs-sm); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-tscript-h > time { flex: none; color: var(--u-t4); font: var(--u-fs-xs)/1 var(--u-f-mono); font-variant-numeric: tabular-nums; }
.u-tscript-x { margin: 0; color: var(--u-t2); font-size: var(--u-fs); line-height: 1.5; overflow-wrap: anywhere; }
.u-tscript-e.is-live .u-tscript-x { color: var(--u-t3); }
.u-tscript-empty { margin: auto 0; padding: 24px 12px; color: var(--u-t4); font-size: var(--u-fs-sm); text-align: center; }
.u-tscript-jumpw { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 2; display: flex; justify-content: center; pointer-events: none; }
.u-tscript-jumpw[hidden] { display: none; }
.u-tscript-jump { pointer-events: auto; border-radius: var(--u-r-full); box-shadow: var(--u-b2-hi), var(--u-sh-row); animation: u-rise var(--u-med) var(--u-ease); }
.u-tscript-jump .u-count { height: 16px; min-width: 16px; font-size: var(--u-fs-xs); }

/* =============== In-call side panel: People, Chat, Transcript =============== */
.u-meet-side.u-callside { width: 300px; transition: transform var(--u-med) var(--u-ease); }
.u-callside-h { display: flex; align-items: center; gap: 6px; flex: none; height: var(--u-head-h); padding: 0 8px 0 10px; border-bottom: 1px solid var(--u-hair); }
.u-callside-h > .u-ptabs { flex: 1; min-width: 0; }
.u-callside-h > .u-ptabs > button { flex: 1 1 0; min-width: 0; padding: 0 6px; }
.u-callside-h .u-count { height: 16px; min-width: 16px; padding: 0 4px; font-size: var(--u-fs-xs); }
.u-callside-h .u-count[hidden] { display: none; }
.u-callside-p { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.u-callside-p[hidden] { display: none; }
/* The pull-up sheet's grab bar: shown only when the panel is a sheet (phone width) */
.u-callside-grab { display: none; flex: none; justify-content: center; align-items: center; width: 100%; height: 20px; padding: 0; border: 0; background: none; cursor: grab; touch-action: none; }
.u-callside-grab > i { width: 36px; height: 4px; border-radius: var(--u-r-full); background: var(--u-hair3); }
.u-callside-grab:hover > i { background: var(--u-t4); }
.u-callside.is-drag { transition: none; }
.u-callside.is-drag .u-callside-grab { cursor: grabbing; }
@container umeet (max-width: 640px) {
  .u-meet-side.u-callside { left: 0; right: 0; top: auto; bottom: 0; height: min(74%, 560px); border-width: 1px 0 0; border-radius: var(--u-r-xl) var(--u-r-xl) 0 0; }
  .u-callside-grab { display: flex; }
  .u-callside-h { height: 40px; }
}

/* In-call chat */
.u-cchat { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.u-cchat-l { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; overflow: auto; padding: 12px; scrollbar-width: thin; overscroll-behavior: contain; }
.u-cchat-m { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; max-width: 92%; animation: u-rise var(--u-med) var(--u-ease); }
.u-cchat-h { display: flex; align-items: baseline; gap: 8px; min-width: 0; max-width: 100%; }
.u-cchat-h > b { min-width: 0; color: var(--u-t1); font-size: var(--u-fs-sm); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-cchat-h > time { flex: none; color: var(--u-t4); font: var(--u-fs-xs)/1 var(--u-f-mono); font-variant-numeric: tabular-nums; }
.u-cchat-b { padding: 7px 10px; border-radius: 4px 12px 12px 12px; border: 1px solid var(--u-hair); background: var(--u-lv3); color: var(--u-t1); font-size: var(--u-fs); line-height: 1.45; overflow-wrap: anywhere; white-space: pre-wrap; }
.u-cchat-m--me { align-self: flex-end; align-items: flex-end; }
.u-cchat-m--me > .u-cchat-b { border-radius: 12px 4px 12px 12px; border-color: transparent; background: var(--u-blue-10); }
.u-cchat-sys { align-self: center; color: var(--u-t4); font-size: var(--u-fs-xs); text-align: center; }
.u-cchat > .u-composer { flex: none; margin: 0 10px 10px; }

/* =============== Talk time =============== */
/* Chart beside the rows, or above them when there is no room (flex-wrap: a size container
   cannot restyle itself, only what is inside it) */
.u-talk { container: utalk / inline-size; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 22px; min-width: 0; }
.u-talk-chart { --u-ch: 168px; flex: 0 0 168px; width: 168px; }
.u-talk-l { flex: 1 1 280px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.u-talk-r { display: grid; grid-template-columns: 24px minmax(0, 8em) minmax(40px, 1fr) 58px 36px; align-items: center; gap: 10px; min-height: 30px; padding: 0 4px; border-radius: 6px; color: var(--u-t2); font-size: var(--u-fs-sm); }
.u-talk-r:hover { background: var(--u-hover); }
.u-talk-n { min-width: 0; color: var(--u-t1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-talk-bar { position: relative; height: 6px; border-radius: var(--u-r-full); background: var(--u-track); box-shadow: var(--u-sh-well), 0 0 0 1px var(--u-hair); overflow: hidden; }
.u-talk-bar > i { position: absolute; inset: 0; border-radius: inherit; background: var(--c, var(--u-blue)); transform-origin: left; transform: scaleX(var(--v, 0)); transition: transform .5s var(--u-ease); }
.u-talk-t { color: var(--u-t2); font: var(--u-fs-xs)/1 var(--u-f-mono); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.u-talk-p { color: var(--u-t1); font: 500 var(--u-fs-xs)/1 var(--u-f-mono); font-variant-numeric: tabular-nums; text-align: right; }
@container utalk (max-width: 440px) {
  .u-talk-r { grid-template-columns: 24px minmax(0, 1fr) minmax(36px, .8fr) 54px 34px; gap: 8px; }
}

/* =============== Recording player with chapters =============== */
.u-recplayer { container: urec / inline-size; min-width: 0; overflow: hidden; border-radius: var(--u-r-lg); border: 1px solid var(--u-hair); background: var(--u-lv2); box-shadow: var(--u-sh-card); }
.u-recplayer-in { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; }
.u-recplayer-v { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--u-desk); }
.u-recplayer-v > .u-share-win { inset: 10% 10% 12%; }
.u-recplayer-chip { position: absolute; left: 10px; top: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 20px); height: 26px; padding: 0 10px; border-radius: var(--u-r-full); background: color-mix(in srgb, var(--u-lv0) 88%, transparent); box-shadow: 0 0 0 1px var(--u-hair); color: var(--u-t1); font-size: var(--u-fs-sm); font-weight: 500; white-space: nowrap; }
.u-recplayer-chip > .u-i { width: 13px; height: 13px; flex: none; color: var(--u-blue-t); }
.u-recplayer-chip > span { overflow: hidden; text-overflow: ellipsis; }
.u-recplayer-big { position: absolute; left: 50%; top: 50%; z-index: 2; display: grid; place-items: center; width: 52px; height: 52px; margin: -26px 0 0 -26px; padding: 0; border-radius: 50%; border: 1px solid var(--u-hair2); background: color-mix(in srgb, var(--u-lv0) 86%, transparent); box-shadow: var(--u-sh-pop); color: var(--u-t1); transition: opacity var(--u-fast), transform var(--u-med) var(--u-ease); }
.u-recplayer-big > .u-i { width: 20px; height: 20px; margin-left: 3px; }
.u-recplayer-big:hover { transform: scale(1.05); }
.u-recplayer.is-playing .u-recplayer-big { opacity: 0; transform: scale(.9); pointer-events: none; }
.u-recplayer-bar { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 12px 10px 8px; border-top: 1px solid var(--u-hair); background: var(--u-lv1); }
.u-recplayer-play { flex: none; border-radius: 50%; }
.u-recplayer-play .u-i { width: 15px; height: 15px; }
.u-recplayer:not(.is-playing) .u-recplayer-play .u-ic-pause, .u-recplayer.is-playing .u-recplayer-play .u-ic-play { display: none; }
.u-recplayer-time { flex: none; color: var(--u-t3); font: var(--u-fs-xs)/1 var(--u-f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.u-recplayer-time > b { color: var(--u-t1); font-weight: 500; }
.u-recplayer-speed { flex: none; min-width: 40px; padding: 0 6px; font-family: var(--u-f-mono); font-variant-numeric: tabular-nums; }
/* Seek bar: one segment per chapter, the gaps between them are the chapter marks */
.u-seek { position: relative; flex: 1; min-width: 80px; height: 28px; display: flex; align-items: center; gap: 3px; border-radius: 6px; cursor: pointer; touch-action: none; }
.u-seek-seg { position: relative; flex: var(--w, 1) 1 0; min-width: 2px; height: 5px; border-radius: 3px; overflow: hidden; background: var(--u-track); box-shadow: 0 0 0 1px var(--u-hair); transition: transform var(--u-fast) var(--u-ease); pointer-events: none; }
.u-seek-seg > i { position: absolute; inset: 0; background: var(--u-blue); transform-origin: left; transform: scaleX(var(--v, 0)); }
.u-seek-seg.is-hot { transform: scaleY(1.6); }
.u-seek-knob { position: absolute; left: 0; top: 50%; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-radius: 50%; background: var(--u-on-accent); box-shadow: var(--u-sh-knob); pointer-events: none; transition: transform 90ms linear; }
.u-seek.is-drag .u-seek-knob { transition: none; }
.u-seek:focus-visible { outline-offset: 1px; }
.u-chapters { margin: 0; padding: 6px; list-style: none; display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--u-hair); }
.u-chapters > li { min-width: 0; }
.u-chapter { position: relative; display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; min-height: 34px; padding: 4px 10px; border: 0; border-radius: 8px; background: none; color: var(--u-t2); text-align: left; font: inherit; cursor: pointer; }
.u-chapter:hover { background: var(--u-hover); }
.u-chapter > b { color: var(--u-t3); font: 500 var(--u-fs-xs)/1 var(--u-f-mono); font-variant-numeric: tabular-nums; }
.u-chapter > span { min-width: 0; color: var(--u-t1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-chapter > small { color: var(--u-t4); font-size: var(--u-fs-xs); white-space: nowrap; }
.u-chapter[aria-current="true"] { background: var(--u-lv3); box-shadow: var(--u-sh-row); }
.u-chapter[aria-current="true"] > b { color: var(--u-blue-t); }
.u-chapter[aria-current="true"] > span { font-weight: 500; }
/* Wide: chapters sit beside the video */
@container urec (min-width: 820px) {
  .u-recplayer-in { grid-template-columns: minmax(0, 1fr) 280px; grid-template-areas: "v ch" "bar ch"; }
  .u-recplayer-v { grid-area: v; }
  .u-recplayer-bar { grid-area: bar; }
  /* size containment: the list takes the video's height and scrolls, never stretches it */
  .u-chapters { grid-area: ch; contain: size; border-top: 0; border-left: 1px solid var(--u-hair); overflow: auto; }
}
@container urec (max-width: 420px) {
  .u-recplayer-bar { flex-wrap: wrap; gap: 6px 8px; padding: 8px 10px 10px; }
  .u-seek { order: -1; flex: 1 1 100%; }
  .u-recplayer-speed { margin-left: auto; }
}

/* =============== After-call recap =============== */
.u-recap { container: urecap / inline-size; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.u-recap-h { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 16px; }
.u-recap-hl { flex: 1 1 320px; min-width: 0; }
.u-recap-t { margin: 0; color: var(--u-t1); font-size: var(--u-fs-2xl); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; text-wrap: balance; }
.u-recap-m { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 10px; color: var(--u-t3); font-size: var(--u-fs-sm); }
.u-recap-m > span { display: inline-flex; align-items: center; gap: 6px; }
.u-recap-m .u-i { width: 14px; height: 14px; }
.u-recap-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.u-recap-g { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; gap: 14px; }
.u-recap-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.u-recap-g .u-card-h > .u-count, .u-recap-g .u-card-h > small { margin-left: auto; }
.u-recap-g .u-card-h > small { color: var(--u-t3); font-size: var(--u-fs-xs); }
@container urecap (max-width: 760px) { .u-recap-g { grid-template-columns: minmax(0, 1fr); } }
@container urecap (max-width: 480px) { .u-recap-t { font-size: var(--u-fs-xl); } .u-recap-acts { width: 100%; } .u-recap-acts > .u-btn { flex: 1 1 auto; } }
/* AI-written content is always marked as AI */
.u-aibadge { display: inline-flex; align-items: center; gap: 5px; flex: none; height: 20px; padding: 0 8px; border-radius: var(--u-r-full); background: var(--u-vio-10); color: var(--u-vio-t); font-size: var(--u-fs-xs); font-weight: 500; white-space: nowrap; }
.u-aibadge > .u-i { width: 12px; height: 12px; }
.u-aitext { color: var(--u-t2); line-height: 1.6; }
.u-aitext > p { margin: 0 0 10px; }
.u-aitext > ul { margin: 0 0 10px; padding-left: 18px; }
.u-aitext > ul > li { margin: 3px 0; }
.u-aitext b { color: var(--u-t1); font-weight: 500; }
.u-ainote { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--u-t4); font-size: var(--u-fs-xs); }
.u-ainote > .u-i { width: 12px; height: 12px; flex: none; }
/* Action items with owners */
.u-todo { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.u-todo-i { display: flex; align-items: flex-start; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--u-hair); }
.u-todo-i:last-child { border-bottom: 0; }
.u-todo-i > .u-check { margin-top: 1px; }
.u-todo-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.u-todo-b > label { color: var(--u-t1); cursor: pointer; overflow-wrap: anywhere; }
.u-todo-i.is-done .u-todo-b > label { color: var(--u-t3); text-decoration: line-through; text-decoration-color: var(--u-t4); }
.u-todo-m { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: var(--u-t3); font-size: var(--u-fs-xs); }
.u-todo-m > span { display: inline-flex; align-items: center; gap: 6px; }
.u-todo-m .u-i { width: 12px; height: 12px; }

/* =============== Calendar event pop-up (Inbox Mail, ITX Meet) =============== */
button.u-evcard { width: 100%; color: inherit; text-align: left; font: inherit; cursor: pointer; transition: transform var(--u-med) var(--u-ease); }
button.u-evcard:hover { transform: translateY(-1px); }
button.u-evcard > span { min-width: 0; }
button.u-evcard > span > span { display: block; }
button.u-evcard[aria-expanded="true"] { box-shadow: var(--u-sh-ev), 0 0 0 1px var(--u-hair2); }
.u-pop.u-evpop { --c: var(--u-blue); width: min(360px, calc(var(--u-vw, 100vw) - 16px)); max-width: none; padding: 0; overflow: auto; max-height: min(560px, calc(var(--u-vh, 100vh) - 16px)); }
.u-evpop-h { position: relative; display: flex; align-items: flex-start; gap: 8px; padding: 14px 8px 10px 18px; }
.u-evpop-h::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--c); }
.u-evpop-t { flex: 1; min-width: 0; margin: 2px 0 0; color: var(--u-t1); font-size: var(--u-fs-md); font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.u-evpop-b { display: flex; flex-direction: column; gap: 10px; padding: 0 16px 14px 18px; }
.u-evpop-r { display: flex; align-items: flex-start; gap: 10px; min-width: 0; color: var(--u-t2); font-size: var(--u-fs-sm); line-height: 1.4; }
.u-evpop-r > .u-i { width: 15px; height: 15px; flex: none; margin-top: 1px; color: var(--u-t3); }
.u-evpop-r > div { flex: 1; min-width: 0; }
.u-evpop-r small { display: block; color: var(--u-t4); font-size: var(--u-fs-xs); }
.u-evpop-r > .u-ibtn { flex: none; margin: -4px -4px 0 0; }
.u-evpop-link { display: block; color: var(--u-t3); font: var(--u-fs-xs)/1.4 var(--u-f-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-evpop-join { display: flex; align-items: center; gap: 10px; }
.u-evpop-join > .u-btn { flex: none; }
.u-evpop-join > span { color: var(--u-t3); font-size: var(--u-fs-xs); }
.u-evpop-ppl { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.u-evpop-p { display: flex; align-items: center; gap: 8px; min-height: 28px; min-width: 0; }
.u-evpop-p > span:nth-child(2) { flex: 1; min-width: 0; color: var(--u-t1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-evpop-p small { flex: none; color: var(--u-t4); font-size: var(--u-fs-xs); }
.u-rsvpic { display: grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--u-gray-10); color: var(--u-t4); }
.u-rsvpic > .u-i { width: 11px; height: 11px; }
.u-rsvpic--yes { background: var(--u-ok-10); color: var(--u-ok-t); }
.u-rsvpic--no { background: var(--u-bad-10); color: var(--u-bad-t); }
.u-rsvpic--maybe { background: var(--u-warn-10); color: var(--u-warn-t); }
.u-evpop-f { display: flex; align-items: center; gap: 8px; padding: 10px 12px 12px 18px; border-top: 1px solid var(--u-hair); }
.u-evpop-f > span { margin-right: auto; color: var(--u-t3); font-size: var(--u-fs-sm); }
.u-rsvp > .u-btn[aria-pressed="true"] { background: var(--u-blue-10); border-color: color-mix(in srgb, var(--u-blue) 40%, transparent); box-shadow: none; color: var(--u-blue-t); z-index: 1; }

/* =============== Smart Dark for email bodies (Inbox Mail) =============== */
/* umbra.js reads the email's own colours once and tags what it finds: light page and card
   backgrounds, pale tinted boxes, dark text, links and light borders. Those tags are then
   remapped to Umbra's surfaces and text tokens, so a light email reads like the rest of the
   app. Strong colours (a button, a banner) keep their look, and images are never touched or
   inverted. Only in dark mode: in light mode the email shows its own colours. !important is
   needed because email HTML carries its colours inline. */
.u-smartdark { display: flex; flex-direction: column; min-width: 0; }
.u-smartdark-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 0 0 10px; color: var(--u-t3); font-size: var(--u-fs-sm); }
.u-smartdark-bar > .u-choice { font-size: var(--u-fs-sm); }
.u-smartdark-bar > small { color: var(--u-t4); font-size: var(--u-fs-xs); }
.u-smartdark-body { min-width: 0; overflow: auto; border-radius: var(--u-r-md); }
.u-smartdark-body img, .u-smartdark-body picture, .u-smartdark-body video, .u-smartdark-body svg { filter: none !important; }
.u-smartdark.is-smart [data-sd-bg="lift"] { background-color: var(--u-lv2) !important; }
.u-smartdark.is-smart [data-sd-bg="base"] { background-color: var(--u-lv1) !important; }
.u-smartdark.is-smart [data-sd-bg="tint"] { background-color: color-mix(in srgb, var(--sd-bg) 18%, var(--u-lv2)) !important; }
.u-smartdark.is-smart [data-sd-fg="1"] { color: var(--u-t1) !important; }
.u-smartdark.is-smart [data-sd-fg="2"] { color: var(--u-t2) !important; }
.u-smartdark.is-smart [data-sd-fg="3"] { color: var(--u-t3) !important; }
.u-smartdark.is-smart [data-sd-fg="link"] { color: var(--u-blue-t) !important; }
.u-smartdark.is-smart [data-sd-fg="tint"] { color: color-mix(in srgb, var(--sd-fg) 40%, var(--u-t1)) !important; }
.u-smartdark.is-smart [data-sd-bd] { border-color: var(--u-hair2) !important; }
.u-smartdark.is-smart [data-sd-img] { background-color: var(--sd-plate); border-radius: 3px; }

/* Reduced motion: the waiting indicator and the test tone stand still */
@media (prefers-reduced-motion: reduce) {
  .u-waitpulse > .u-i, .u-waitpulse::before, .u-waitpulse::after, .u-devmenu-test.is-playing > .u-i { animation: none !important; }
}

/* =============== Phone =============== */
@media (max-width: 640px) {
  /* 40px tap targets on phones only (Umbra's rule) */
  .u-chapter { min-height: 40px; }
  .u-seek { height: 40px; }
  .u-callside-grab { height: 28px; }
  .u-talk-r { min-height: 40px; }
  .u-devcheck-r { min-height: 40px; }
}
@container u-frame (max-width: 640px) {
  /* 40px tap targets on phones only (Umbra's rule) */
  .u-chapter { min-height: 40px; }
  .u-seek { height: 40px; }
  .u-callside-grab { height: 28px; }
  .u-talk-r { min-height: 40px; }
  .u-devcheck-r { min-height: 40px; }
}

/* ---- umbra-voytel.css ---- */
/* ==========================================================================
   Umbra Phone System (Voytel): Call flow builder, call bar, call player with transcript, number drawer, QR card, billing plans and usage, assistant chat that proposes changes, people cards, Voytel teal brand layer.
   Part of css/umbra.css (tools/build.mjs). Uses only --u-* tokens, so dark and light both work.
   ========================================================================== */

/* =============== Voytel brand layer ===============
   data-u-brand="voytel" on <html> or any container swaps the accent from ITX blue to
   Voytel teal for everything inside: primary buttons, focus rings, links, selected
   states, switches, the gradient line. Parts may not pick colours by theme
   (tools/check.mjs rule 2), so the teal that must differ between dark and light is
   mixed from the kit's own green and cyan tokens, which already change with the theme:
     --u-blue    dark #36CABF (9.2:1 on cards)   light #048F8F (3.9:1 on white, UI parts)
     --u-blue-t  dark #4ED0C6                    light #056668 (6.6:1 on white; 4.9:1 on --u-blue-20)
   The button face is the same teal in both themes, like the kit's blue one:
     #0F7A72 top (white 5.2:1), #0B6A63 bottom (white 6.5:1). */
[data-u-brand="voytel"] {
  --u-blue: color-mix(in srgb, var(--u-ok) 60%, var(--u-cyan));
  --u-blue-t: color-mix(in srgb, color-mix(in srgb, var(--u-ok-t) 60%, var(--u-cyan-t)) 88%, var(--u-t1));
  --u-blue-10: color-mix(in srgb, var(--u-blue) 13%, transparent);
  --u-blue-20: color-mix(in srgb, var(--u-blue) 24%, transparent);
  --u-ring: 0 0 0 3px color-mix(in srgb, var(--u-blue) 24%, transparent);
  --u-bp-top: #0F7A72; --u-bp-bot: #0B6A63; --u-bp-bd: #08534D;
  --u-bp-sh: 0 1px 1px rgba(4,60,55,.22), 0 3px 8px -3px rgba(13,148,136,.26);
  --u-bp-sh-h: 0 1px 2px rgba(4,60,55,.26), 0 5px 12px -4px rgba(13,148,136,.34);
  --u-grad: linear-gradient(90deg, #5EEAD4, #14B8A6, #38BDF8);
  --u-logo: linear-gradient(135deg, #5EEAD4 0%, #14B8A6 50%, #0EA5E9 100%);
}
/* The Voytel mark: a teal tile with a phone, beside .u-logo */
.u-vt-logo { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: linear-gradient(180deg, var(--u-bp-top), var(--u-bp-bot)); color: var(--u-on-accent); box-shadow: var(--u-bp-hi), var(--u-bp-sh); flex: none; }
.u-vt-logo > .u-i { width: 14px; height: 14px; }

/* =============== AI marker (assistant messages, proposals) =============== */
.u-ai { display: inline-flex; align-items: center; gap: 4px; height: 18px; padding: 0 6px; border-radius: var(--u-r-full); background: var(--u-vio-10); color: var(--u-vio-t); font-size: var(--u-fs-xs); font-weight: 600; letter-spacing: .02em; white-space: nowrap; flex: none; }
.u-ai > .u-i { width: 11px; height: 11px; }

/* =============== Call flow builder =============== */
.u-flow { display: grid; grid-template-columns: minmax(0, 1fr) 280px; min-height: 420px; border-radius: var(--u-r-lg); border: 1px solid var(--u-hair); background: var(--u-lv1); overflow: hidden; }
.u-flow-canvas { position: relative; min-width: 0; overflow: auto; padding: 24px 20px 32px; background-image: radial-gradient(var(--u-dot) 1px, transparent 1.2px); background-size: 20px 20px; }
.u-flow-svg { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.u-flow-svg path { fill: none; stroke: var(--u-hair3); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.u-flow-svg path.is-sel { stroke: var(--u-blue); }
.u-flow-tree { position: relative; display: flex; flex-direction: column; align-items: center; min-width: max-content; margin: 0 auto; }
.u-flow-node { display: flex; flex-direction: column; align-items: center; }
.u-flow-card { position: relative; z-index: 1; display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 10px; width: 196px; min-height: 52px; padding: 9px 12px 9px 10px; border-radius: var(--u-r-lg); border: 1px solid var(--u-hair2); background: var(--u-lv2); box-shadow: var(--u-sh-card); color: var(--u-t2); text-align: left; font: inherit; cursor: pointer; transition: transform .2s var(--u-ease); }
.u-flow-card:hover { border-color: var(--u-hair3); transform: translateY(-1px); }
.u-flow-card[aria-pressed="true"] { border-color: var(--u-blue); box-shadow: var(--u-sh-card), 0 0 0 3px var(--u-blue-10); }
.u-flow-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--u-blue-10); color: var(--u-blue-t); }
.u-flow-ic > .u-i { width: 15px; height: 15px; }
:is(.u-flow-card, .u-flow-side-h)[data-kind="hours"] > .u-flow-ic { background: var(--u-warn-10); color: var(--u-warn-t); }
:is(.u-flow-card, .u-flow-side-h)[data-kind="menu"] > .u-flow-ic { background: var(--u-vio-10); color: var(--u-vio-t); }
:is(.u-flow-card, .u-flow-side-h)[data-kind="ring"] > .u-flow-ic, :is(.u-flow-card, .u-flow-side-h)[data-kind="operator"] > .u-flow-ic { background: var(--u-ok-10); color: var(--u-ok-t); }
:is(.u-flow-card, .u-flow-side-h)[data-kind="voicemail"] > .u-flow-ic, :is(.u-flow-card, .u-flow-side-h)[data-kind="forward"] > .u-flow-ic { background: var(--u-cyan-10); color: var(--u-cyan-t); }
.u-flow-t { display: block; color: var(--u-t1); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-flow-s { display: block; margin-top: 1px; color: var(--u-t3); font-size: var(--u-fs-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-flow-gap { position: relative; display: grid; place-items: center; height: 44px; }
.u-flow-add { position: relative; z-index: 1; display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border-radius: 50%; border: 1px solid var(--u-hair2); background: var(--u-lv2); color: var(--u-t3); box-shadow: var(--u-sh-ev); opacity: .85; transition: opacity var(--u-fast) var(--u-ease), transform .2s var(--u-ease); }
.u-flow-add > .u-i { width: 13px; height: 13px; }
.u-flow-add:hover, .u-flow-add[aria-expanded="true"] { opacity: 1; color: var(--u-blue-t); border-color: var(--u-blue); transform: scale(1.08); }
.u-flow-branches { display: flex; align-items: flex-start; gap: 14px; padding-top: 44px; }
.u-flow-branch { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.u-flow-key { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px 0 4px; border-radius: var(--u-r-full); border: 1px solid var(--u-hair2); background: var(--u-lv3); color: var(--u-t2); font-size: var(--u-fs-xs); white-space: nowrap; }
.u-flow-key > b { display: grid; place-items: center; min-width: 16px; height: 16px; padding: 0 3px; border-radius: 5px; background: var(--u-sunken); border: 1px solid var(--u-hair2); color: var(--u-t1); font: 600 10.5px/1 var(--u-f-mono); }
.u-flow-addkey { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 112px; height: 52px; margin-top: 32px; border-radius: var(--u-r-lg); border: 1.5px dashed var(--u-hair2); background: transparent; color: var(--u-t3); font-size: var(--u-fs-sm); }
.u-flow-addkey:hover { color: var(--u-t1); border-color: var(--u-hair3); background: var(--u-hover); }
.u-flow-addkey > .u-i { width: 14px; height: 14px; }
/* Stacked: one column, branches indented under their menu, lines drawn as a tree outline */
.u-flow.is-stacked { grid-template-columns: 1fr; }
.u-flow.is-stacked .u-flow-canvas { overflow: visible; padding: 16px 14px 18px; }
.u-flow.is-stacked .u-flow-tree, .u-flow.is-stacked .u-flow-node, .u-flow.is-stacked .u-flow-branch { align-items: stretch; min-width: 0; }
.u-flow.is-stacked .u-flow-card { width: 100%; }
.u-flow.is-stacked .u-flow-gap { justify-items: start; padding-left: 15px; height: 36px; }
.u-flow.is-stacked .u-flow-side.is-empty { display: none; }
.u-flow.is-stacked .u-flow-branches { flex-direction: column; gap: 12px; padding: 12px 0 0 28px; }
.u-flow.is-stacked .u-flow-branch { gap: 6px; }
.u-flow.is-stacked .u-flow-key { align-self: flex-start; }
.u-flow.is-stacked .u-flow-addkey { width: 100%; height: 40px; margin-top: 0; }
/* Side panel: the selected step's settings */
.u-flow-side { display: flex; flex-direction: column; min-width: 0; border-left: 1px solid var(--u-hair); background: var(--u-lv2); }
.u-flow.is-stacked .u-flow-side { border-left: 0; border-top: 1px solid var(--u-hair); }
.u-flow-side-h { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 12px 10px 14px; border-bottom: 1px solid var(--u-hair); }
.u-flow-side-h h4 { margin: 0; flex: 1; min-width: 0; color: var(--u-t1); font-size: var(--u-fs-md); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-flow-side-h h4:focus { outline: 0; }
.u-flow-side-h h4:focus-visible { outline: 2px solid var(--u-blue); outline-offset: 2px; }
.u-flow-side-b { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 14px; overflow: auto; }
.u-flow-side-f { display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--u-hair); }
.u-flow-side-f > .u-btn--soft-bad { margin-left: auto; }
.u-flow-side .u-empty { flex: 1; justify-content: center; }
.u-flow-keys { display: flex; flex-direction: column; gap: 6px; }
.u-flow-keys > div { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 8px; color: var(--u-t2); }
.u-flow-keys > div > b { display: grid; place-items: center; height: 22px; border-radius: 6px; background: var(--u-sunken); border: 1px solid var(--u-hair2); color: var(--u-t1); font: 600 11px/1 var(--u-f-mono); }
.u-flow-keys > div > span:last-child { color: var(--u-t3); font-size: var(--u-fs-xs); }

/* =============== Active call bar =============== */
.u-callbar { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-height: 52px; padding: 8px 8px 8px 12px; border-radius: var(--u-r-lg); border: 1px solid var(--u-hair2); background: var(--u-lv3); box-shadow: var(--u-sh-pop); color: var(--u-t1); }
.u-callbar::before { content: ""; position: absolute; left: 12px; right: 12px; top: -1px; height: 1px; background: var(--u-grad); opacity: .7; border-radius: 1px; }
.u-callbar.is-held::before { background: var(--u-warn); }
.u-callbar.is-ended::before { opacity: 0; }
.u-callbar-who { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.u-callbar-t { min-width: 0; }
.u-callbar-n { display: flex; align-items: center; gap: 8px; min-width: 0; }
.u-callbar-n > b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-callbar-s { display: flex; align-items: center; gap: 6px; color: var(--u-t3); font-size: var(--u-fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-callbar-time { color: var(--u-t1); font: 500 var(--u-fs-sm)/1 var(--u-f-mono); font-variant-numeric: tabular-nums; }
.u-callbar-state { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px; border-radius: var(--u-r-full); font-size: var(--u-fs-xs); font-weight: 500; white-space: nowrap; }
.u-callbar-state[data-st="live"] { background: var(--u-ok-10); color: var(--u-ok-t); }
.u-callbar-state[data-st="held"], .u-callbar-state[data-st="parked"] { background: var(--u-warn-10); color: var(--u-warn-t); }
.u-callbar-state[data-st="xfer"] { background: var(--u-blue-10); color: var(--u-blue-t); }
.u-callbar-state[data-st="ended"] { background: var(--u-gray-10); color: var(--u-t3); }
.u-callbar-state > i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.u-callbar-state[data-st="live"] > i { animation: u-pulse 1.6s ease-in-out infinite; }
.u-callbar-acts { display: flex; align-items: center; gap: 2px; flex: none; }
.u-callbar-acts > .u-sep--v { height: 18px; margin: 0 4px; }
.u-callbar-b { --h: var(--u-ctl); display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: var(--h); padding: 0 9px; border-radius: var(--u-r); border: 1px solid transparent; background: transparent; color: var(--u-t2); font: 500 var(--u-fs-sm)/1 var(--u-f-ui); white-space: nowrap; }
.u-callbar-b > span { line-height: var(--h); transform: translateY(-.5px); }
.u-callbar-b > .u-i { width: 15px; height: 15px; }
.u-callbar-b:hover { background: var(--u-ib-bg); border-color: var(--u-ib-bd); box-shadow: var(--u-ib-sh); color: var(--u-t1); }
.u-callbar-b[aria-pressed="true"], .u-callbar-b[aria-expanded="true"] { background: var(--u-b2-bg); border-color: var(--u-b2-bd); box-shadow: var(--u-b2-hi), var(--u-b2-sh); color: var(--u-t1); }
.u-callbar-b[data-act="mute"][aria-pressed="true"], .u-callbar-b[data-act="record"][aria-pressed="true"] { background: var(--u-bad-10); border-color: transparent; box-shadow: none; color: var(--u-bad-t); }
.u-callbar-b[data-act="hold"][aria-pressed="true"] { background: var(--u-warn-10); border-color: transparent; box-shadow: none; color: var(--u-warn-t); }
.u-callbar-b:disabled { opacity: .4; pointer-events: none; }
.u-callbar-b .u-callbar-a, .u-callbar-b[aria-pressed="true"] .u-callbar-a2 { display: inline; }
.u-callbar-b .u-callbar-a2, .u-callbar-b[aria-pressed="true"] .u-callbar-a { display: none; }
.u-callbar-end { --h: var(--u-ctl); display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: var(--h); padding: 0 12px; margin-left: 4px; border-radius: var(--u-r-full); border: 1px solid var(--u-bd-bd); background: linear-gradient(180deg, var(--u-bd-top), var(--u-bd-bot)); color: var(--u-on-accent); box-shadow: var(--u-bp-hi), var(--u-bd-sh); font: 500 var(--u-fs-sm)/1 var(--u-f-ui); white-space: nowrap; transition: transform .2s var(--u-ease); }
.u-callbar-end:hover { filter: brightness(1.07); }
.u-callbar-end:active { transform: scale(.97); }
.u-callbar-end > span { line-height: var(--h); transform: translateY(-.5px); }
.u-callbar-end > .u-i { width: 15px; height: 15px; transform: rotate(135deg); }
/* The second line under the bar: transferring, parked, ended */
.u-callbar-note { display: flex; flex-basis: 100%; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 4px; padding-top: 8px; border-top: 1px solid var(--u-hair); color: var(--u-t2); font-size: var(--u-fs-sm); }
.u-callbar-note[hidden] { display: none; }
.u-callbar-note .u-spin { width: 12px; height: 12px; }
.u-callbar-note > .u-btn { margin-left: auto; }
.u-callbar-note > .u-btn + .u-btn { margin-left: 0; }
/* Transfer picker (pop) */
/* Named u-callxfer, not u-xfer: the file transfer queue owns u-xfer, and its grid squeezed this
   popover into three columns (his Nov 20 screenshot of Transfer). */
.u-callxfer { width: min(320px, calc(var(--u-vw, 100vw) - 16px)); padding: 0; }
.u-callxfer-h { display: flex; flex-direction: column; gap: 8px; padding: 10px 10px 8px; border-bottom: 1px solid var(--u-hair); }
.u-callxfer-h > b { color: var(--u-t1); font-weight: 500; padding: 0 2px; }
.u-callxfer-l { max-height: 260px; overflow: auto; padding: 4px; }
.u-callxfer-opt { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 5px 8px; border-radius: 8px; border: 0; background: none; color: var(--u-t2); text-align: left; font: inherit; cursor: pointer; }
.u-callxfer-opt:hover, .u-callxfer-opt.is-active { background: var(--u-hover); }
.u-callxfer-opt.is-active { box-shadow: inset 0 0 0 1px var(--u-hair2); }
.u-callxfer-opt b { display: block; color: var(--u-t1); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-callxfer-opt small { display: block; color: var(--u-t3); font-size: var(--u-fs-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-callxfer-opt > span:last-child { color: var(--u-t3); font: 500 var(--u-fs-xs) var(--u-f-mono); }
.u-callxfer-empty { margin: 0; padding: 18px 10px; color: var(--u-t4); font-size: var(--u-fs-sm); text-align: center; }
.u-callxfer-f { display: flex; padding: 8px 10px 10px; border-top: 1px solid var(--u-hair); }
.u-keypad-pop { padding: 12px; }
.u-keypad-pop .u-dialpad { width: 216px; }

/* =============== Call player with transcript =============== */
.u-callrec { display: flex; flex-direction: column; min-width: 0; padding-bottom: 10px; }
.u-callrec > .u-audio { padding: 12px 14px; border-bottom: 1px solid var(--u-hair); }
.u-ts { display: flex; flex-direction: column; min-height: 0; }
.u-ts-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--u-hair); }
.u-ts-bar > .u-inwrap { flex: 1; min-width: 0; }
.u-ts-count { color: var(--u-t3); font: 500 var(--u-fs-xs) var(--u-f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 52px; text-align: right; }
.u-ts-l { position: relative; max-height: 300px; overflow: auto; padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.u-ts-line { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 2px 10px; width: 100%; padding: 7px 10px 8px 8px; border-radius: 9px; border: 1px solid transparent; background: none; color: var(--u-t2); text-align: left; font: inherit; line-height: 1.5; cursor: pointer; }
.u-ts-line:hover { background: var(--u-hover); }
.u-ts-line.is-now { background: var(--u-blue-10); border-color: color-mix(in srgb, var(--u-blue) 30%, transparent); color: var(--u-t1); }
.u-ts-line[hidden] { display: none; }
.u-ts-time { grid-row: span 2; padding-top: 1px; color: var(--u-t4); font: 500 var(--u-fs-xs)/1.7 var(--u-f-mono); font-variant-numeric: tabular-nums; }
.u-ts-line.is-now .u-ts-time { color: var(--u-blue-t); }
.u-ts-who { display: flex; align-items: center; gap: 6px; color: var(--u-t1); font-size: var(--u-fs-sm); font-weight: 500; }
.u-ts-who > i { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--u-t4)); flex: none; }
.u-ts-who > small { color: var(--u-t4); font-size: var(--u-fs-xs); font-weight: 400; }
.u-ts-txt { min-width: 0; overflow-wrap: anywhere; }
.u-ts-txt mark { background: var(--u-warn-10); color: var(--u-t1); border-radius: 3px; box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--u-warn) 50%, transparent); }
.u-ts-txt mark.is-cur { background: color-mix(in srgb, var(--u-warn) 32%, transparent); box-shadow: 0 0 0 1px var(--u-warn); }
.u-ts-empty { margin: 0; padding: 18px; color: var(--u-t4); font-size: var(--u-fs-sm); text-align: center; }

/* =============== Assistant chat that makes changes =============== */
.u-assist { display: flex; flex-direction: column; min-height: 0; border-radius: var(--u-r-lg); border: 1px solid var(--u-hair); background: var(--u-lv1); overflow: hidden; }
.u-assist-h { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border-bottom: 1px solid var(--u-hair); background: var(--u-lv2); }
.u-assist-h > b { color: var(--u-t1); font-weight: 500; }
.u-assist-h > .u-ibtn { margin-left: auto; }
.u-assist > .u-chat { flex: 1; min-height: 0; overflow: auto; }
.u-assist > .u-composer { margin: 0 10px 8px; }
.u-assist-note { margin: 0 12px 10px; color: var(--u-t4); font-size: var(--u-fs-xs); }
.u-assist-av { --c: var(--u-vio); }
.u-assist-av > .u-i { width: 13px; height: 13px; }
.u-msg .u-change { margin-top: 6px; }
.u-change { width: min(360px, 100%); border-radius: var(--u-r-lg); border: 1px solid var(--u-hair2); background: var(--u-lv2); box-shadow: var(--u-sh-card); color: var(--u-t2); overflow: hidden; }
.u-change-h { display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px 10px; }
.u-change-ic { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 8px; background: var(--u-blue-10); color: var(--u-blue-t); }
.u-change-ic > .u-i { width: 14px; height: 14px; }
.u-change-hb { flex: 1; min-width: 0; }
.u-change-k { display: block; color: var(--u-t3); font-size: var(--u-fs-xs); font-weight: 500; }
.u-change-t { display: block; margin-top: 1px; color: var(--u-t1); font-weight: 500; overflow-wrap: anywhere; }
.u-change-rows { margin: 0; padding: 0 12px 10px; display: flex; flex-direction: column; gap: 8px; }
.u-change-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; padding: 8px 10px; border-radius: 8px; background: var(--u-sunken); border: 1px solid var(--u-hair); }
.u-change-row > dt { color: var(--u-t3); font-size: var(--u-fs-xs); font-weight: 500; }
.u-change-row > dd { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; min-width: 0; }
.u-change-before { color: var(--u-t3); text-decoration: line-through; text-decoration-color: var(--u-t4); overflow-wrap: anywhere; }
.u-change-row > dd > .u-i { width: 13px; height: 13px; color: var(--u-t4); flex: none; }
.u-change-after { color: var(--u-t1); font-weight: 500; overflow-wrap: anywhere; }
.u-change-f { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--u-hair); }
.u-change-f > .u-change-st { flex: 1 1 150px; min-width: 0; display: flex; align-items: center; gap: 6px; color: var(--u-t3); font-size: var(--u-fs-sm); }
.u-change-f > .u-change-st > .u-i { width: 14px; height: 14px; flex: none; }
.u-change-f > .u-row { margin-left: auto; }
.u-change.is-applied { border-color: color-mix(in srgb, var(--u-ok) 40%, transparent); }
.u-change.is-applied .u-change-st { color: var(--u-ok-t); }
.u-change.is-cancelled .u-change-rows, .u-change.is-cancelled .u-change-ic { opacity: .55; }
.u-change.is-failed .u-change-st { color: var(--u-bad-t); }

/* =============== Number drawer and port-in status =============== */
.u-numpick { --u-dw: 420px; }
.u-numpick .u-drawer-b { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; }
.u-numpick-q { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px; align-items: end; }
.u-numpick-msg { margin: 0; color: var(--u-t3); font-size: var(--u-fs-sm); }
.u-numpick-msg.is-bad { color: var(--u-bad-t); }
.u-numlist { display: flex; flex-direction: column; gap: 2px; margin: 0 -6px; padding: 2px; border-radius: var(--u-r-md); }
.u-numlist:focus-visible { outline-offset: 0; }
.u-numopt { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 44px; padding: 6px 10px; border-radius: 9px; border: 1px solid transparent; color: var(--u-t2); cursor: pointer; }
.u-numopt:hover { background: var(--u-hover); }
.u-numopt.is-active { border-color: var(--u-hair2); background: var(--u-hover); }
.u-numopt[aria-selected="true"] { background: var(--u-blue-10); border-color: color-mix(in srgb, var(--u-blue) 35%, transparent); }
.u-numopt-ck { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 5px; border: 1px solid var(--u-ctl-bd); background: var(--u-fld); box-shadow: var(--u-fld-in); color: var(--u-on-accent); }
.u-numopt-ck > .u-i { width: 11px; height: 11px; opacity: 0; transform: scale(.5); transition: opacity var(--u-fast) var(--u-ease), transform .2s var(--u-ease); }
.u-numopt[aria-selected="true"] .u-numopt-ck { background: linear-gradient(180deg, var(--u-bp-top), var(--u-bp-bot)); border-color: var(--u-bp-bd); box-shadow: var(--u-bp-hi); }
.u-numopt[aria-selected="true"] .u-numopt-ck > .u-i { opacity: 1; transform: none; }
.u-numopt-n { display: block; color: var(--u-t1); font: 500 var(--u-fs-md)/1.3 var(--u-f-mono); font-variant-numeric: tabular-nums; }
.u-numopt-m { display: block; color: var(--u-t3); font-size: var(--u-fs-xs); }
.u-numopt > .u-badge { height: 18px; }
.u-numlist .u-skel { height: 44px; border-radius: 9px; }
.u-numpick .u-drawer-f { align-items: center; }
.u-numpick .u-drawer-f > .u-numpick-sum { flex: 1; min-width: 0; color: var(--u-t3); font-size: var(--u-fs-sm); }
/* Port-in row: number, carrier and three steps */
.u-portrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 14px; border-bottom: 1px solid var(--u-hair); }
.u-portrow:last-child { border-bottom: 0; }
.u-portrow > div { flex: 1 1 150px; min-width: 0; }
.u-portrow-n { display: block; white-space: nowrap; color: var(--u-t1); font: 500 var(--u-fs) var(--u-f-mono); font-variant-numeric: tabular-nums; }
.u-portrow-m { display: block; color: var(--u-t3); font-size: var(--u-fs-xs); }
.u-portsteps { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.u-portsteps > li { display: flex; align-items: center; gap: 6px; color: var(--u-t4); font-size: var(--u-fs-xs); white-space: nowrap; }
.u-portsteps > li + li::before { content: ""; width: 22px; height: 2px; margin: 0 8px 0 2px; border-radius: 2px; background: var(--u-hair2); }
.u-portsteps > li > i { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--u-hair3); background: var(--u-lv2); flex: none; }
.u-portsteps > li > i > .u-i { width: 10px; height: 10px; }
.u-portsteps > li.is-done { color: var(--u-t2); }
.u-portsteps > li.is-done > i { border-color: var(--u-ok); background: var(--u-ok); color: var(--u-on-accent); }
.u-portsteps > li.is-done + li::before, .u-portsteps > li.is-now::before { background: var(--u-ok); }
.u-portsteps > li[aria-current="step"] { color: var(--u-t1); font-weight: 500; }
.u-portsteps > li[aria-current="step"] > i { border-color: var(--u-blue); box-shadow: 0 0 0 3px var(--u-blue-10); }
.u-portsteps > li[aria-current="step"] > i::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--u-blue); }
.u-portsteps > li.is-done:last-child { color: var(--u-ok-t); font-weight: 500; }

/* =============== QR card =============== */
.u-qrcard { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px; text-align: center; }
.u-qr { position: relative; display: grid; place-items: center; width: 168px; height: 168px; padding: 10px; border-radius: var(--u-r-lg); background: var(--u-on-accent); border: 1px solid var(--u-hair2); box-shadow: var(--u-sh-card); }
.u-qr > svg { display: block; width: 100%; height: 100%; }
.u-qr > svg rect { fill: var(--u-term-bg); }
.u-qr-sample { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px; border-radius: var(--u-r-full); background: var(--u-warn-10); color: var(--u-warn-t); font-size: var(--u-fs-xs); font-weight: 500; }
.u-qrcard-t { margin: 0; color: var(--u-t1); font-size: var(--u-fs-md); font-weight: 500; }
.u-qrcard-s { margin: -6px 0 0; color: var(--u-t3); font-size: var(--u-fs-sm); max-width: 280px; }
.u-qrcard-link { display: flex; align-items: center; gap: 6px; width: 100%; max-width: 300px; height: var(--u-ctl); padding: 0 4px 0 10px; border-radius: var(--u-r); border: 1px solid var(--u-hair2); background: var(--u-sunken); color: var(--u-t2); font: var(--u-fs-sm) var(--u-f-mono); }
.u-qrcard-link > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.u-qrcard-acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

/* =============== Billing pieces =============== */
.u-vplans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; width: 100%; }
.u-price.is-current { border-color: color-mix(in srgb, var(--u-blue) 55%, transparent); box-shadow: var(--u-sh-card), 0 0 0 3px var(--u-blue-10); }
.u-price-cur { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px; border-radius: var(--u-r-full); background: linear-gradient(180deg, var(--u-bp-top), var(--u-bp-bot)); color: var(--u-on-accent); font-size: var(--u-fs-xs); font-weight: 500; white-space: nowrap; }
.u-price-cur > .u-i { width: 11px; height: 11px; }
.u-usage { display: flex; flex-direction: column; gap: 14px; width: 100%; }
.u-usage-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: baseline; border-radius: 6px; }
.u-usage-row > .u-progress { grid-column: 1 / -1; }
.u-usage-k { display: flex; align-items: center; gap: 6px; color: var(--u-t2); }
.u-usage-k > .u-i { width: 14px; height: 14px; color: var(--u-t3); }
.u-usage-v { color: var(--u-t1); font: 500 var(--u-fs-sm) var(--u-f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.u-usage-v > small { color: var(--u-t3); font-size: inherit; font-weight: 400; }
.u-usage-row:focus-visible { outline-offset: 4px; }
.u-paymeth { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--u-r-md); border: 1px solid var(--u-hair); background: var(--u-lv2); box-shadow: var(--u-edge); width: 100%; }
.u-paymeth-b { flex: 1; min-width: 0; }
.u-paymeth-b > b { display: block; color: var(--u-t1); font-weight: 500; }
.u-paymeth-b > span { display: block; color: var(--u-t3); font-size: var(--u-fs-xs); }
.u-cardbrand { display: grid; place-items: center; width: 40px; height: 26px; flex: none; border-radius: 5px; border: 1px solid var(--u-hair2); background: var(--u-sunken); color: var(--u-t1); font: 700 9.5px/1 var(--u-f-ui); letter-spacing: .02em; }
.u-balance { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; width: 100%; padding: 10px 12px; border-radius: var(--u-r-md); background: var(--u-sunken); border: 1px solid var(--u-hair); }
.u-balance > div { display: flex; align-items: baseline; gap: 8px; }
.u-balance > div > span { color: var(--u-t3); font-size: var(--u-fs-sm); }
.u-balance > div > b { color: var(--u-t1); font: 600 var(--u-fs-md) var(--u-f-mono); font-variant-numeric: tabular-nums; }
.u-balance > div > b.is-credit { color: var(--u-ok-t); }
.u-balance > .u-btn { margin-left: auto; }

/* =============== People cards =============== */
.u-pcards { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.u-pcards-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.u-pcards-bar > .u-inwrap { flex: 1; min-width: 180px; max-width: 320px; }
.u-pcards-n { color: var(--u-t3); font-size: var(--u-fs-sm); }
.u-pcards-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.u-pcard { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 12px 12px; border-radius: var(--u-r-lg); border: 1px solid var(--u-hair); background: var(--u-lv2); box-shadow: var(--u-sh-card); text-align: center; min-width: 0; }
.u-pcard:hover, .u-pcard:focus-within { border-color: var(--u-hair2); }
.u-pcard[hidden] { display: none; }
.u-pcard > .u-avatar { margin-bottom: 6px; }
.u-pcard-n { max-width: 100%; color: var(--u-t1); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-pcard-r { max-width: 100%; color: var(--u-t3); font-size: var(--u-fs-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-pcard-m { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.u-pcard-ext { color: var(--u-t2); font: 500 var(--u-fs-xs) var(--u-f-mono); }
.u-pcard-st { display: inline-flex; align-items: center; gap: 5px; color: var(--u-t2); font-size: var(--u-fs-xs); white-space: nowrap; }
.u-pcard-st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--u-t4); }
.u-pcard-st[data-st="ok"]::before { background: var(--u-ok); }
.u-pcard-st[data-st="busy"]::before { background: var(--u-warn); }
.u-pcard-st[data-st="dnd"]::before { background: var(--u-bad); }
.u-pcard-st[data-st="off"]::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--u-t4); }
.u-pcard-acts { display: flex; gap: 6px; width: 100%; margin-top: 10px; }
.u-pcard-acts > .u-btn { flex: 1; }
.u-pcards-empty { margin: 0; padding: 22px; color: var(--u-t4); text-align: center; font-size: var(--u-fs-sm); }
.u-pcards-empty[hidden] { display: none; }

/* =============== Letter Of Authorization: upload and sign =============== */
.u-loa { display: flex; flex-direction: column; gap: 16px; width: 100%; }
.u-loa-step { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; }
.u-loa-step > i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--u-hair2); background: var(--u-lv3); color: var(--u-t1); font: 600 11px/1 var(--u-f-mono); font-style: normal; }
.u-loa-step.is-done > i { border-color: var(--u-ok); background: var(--u-ok); color: var(--u-on-accent); }
.u-loa-step > div { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.u-loa-step h4 { margin: 3px 0 0; color: var(--u-t1); font-size: var(--u-fs); font-weight: 500; }
.u-loa-step p { margin: 0; color: var(--u-t3); font-size: var(--u-fs-sm); }
.u-signpad { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.u-signpad-box { position: relative; height: 150px; border-radius: var(--u-r-lg); border: 1px solid var(--u-hair2); background: var(--u-fld); box-shadow: var(--u-fld-in); overflow: hidden; touch-action: none; }
.u-signpad-box:focus-within, .u-signpad-box.is-drawing { border-color: var(--u-blue); box-shadow: var(--u-fld-in), var(--u-ring); }
.u-signpad-cv { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.u-signpad-cv:focus { outline: 0; }
.u-signpad-line { position: absolute; left: 18px; right: 18px; bottom: 34px; height: 1px; background: var(--u-hair3); pointer-events: none; }
.u-signpad-x { position: absolute; left: 18px; bottom: 40px; color: var(--u-t4); font-size: var(--u-fs-md); pointer-events: none; }
.u-signpad-ph { position: absolute; left: 0; right: 0; bottom: 12px; color: var(--u-t4); font-size: var(--u-fs-xs); text-align: center; pointer-events: none; transition: opacity var(--u-fast); }
.u-signpad.has-ink .u-signpad-ph { opacity: 0; }
.u-signpad-typed { position: absolute; left: 34px; right: 18px; bottom: 38px; color: var(--u-t1); font: italic 500 30px/1.1 var(--u-f-ui); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.u-signpad-typed:empty { display: none; }
.u-signpad-f { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.u-signpad-f > .u-signpad-st { flex: 1; min-width: 0; color: var(--u-t3); font-size: var(--u-fs-xs); }
.u-signpad-type { display: flex; flex-direction: column; gap: 6px; }
.u-signpad-type[hidden] { display: none; }
.u-signpad.is-typing .u-signpad-cv { cursor: default; }

/* =============== Phone =============== */
@media (max-width: 640px) {
  .u-flow-add { width: 32px; height: 32px; }
  .u-flow-add::before { content: ""; position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; transform: translate(-50%, -50%); }
  .u-flow-card { min-height: 56px; }
  .u-callbar { flex-wrap: wrap; gap: 10px; padding: 10px; }
  .u-callbar-who { flex-basis: 100%; }
  .u-callbar-acts { flex: 1; justify-content: space-between; gap: 0; }
  .u-callbar-acts > .u-sep--v { display: none; }
  .u-callbar-b, .u-callbar-end { --h: var(--u-ctl-touch); }
  .u-callbar-b { width: 40px; padding: 0; }
  .u-callbar-b > span, .u-callbar-end > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .u-callbar-end { width: 48px; padding: 0; margin-left: 0; }
  .u-ts-line { padding: 9px 10px; }
  .u-numpick-q { grid-template-columns: 1fr; }
  .u-numopt { min-height: 52px; }
  .u-portsteps > li + li::before { width: 12px; margin: 0 6px 0 2px; }
  .u-paymeth { flex-wrap: wrap; }
  .u-paymeth > .u-btn { flex: 1; }
  .u-pcards-bar > .u-inwrap { max-width: none; }
  /* two cards a row; Call and Message keep their names for screen readers (aria-label) */
  .u-pcards-g { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
  .u-pcard-acts > .u-btn { --h: var(--u-ctl-touch); padding: 0; }
  .u-pcard-acts > .u-btn > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .u-signpad-box { height: 170px; }
}
@container u-frame (max-width: 640px) {
  .u-flow-add { width: 32px; height: 32px; }
  .u-flow-add::before { content: ""; position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; transform: translate(-50%, -50%); }
  .u-flow-card { min-height: 56px; }
  .u-callbar { flex-wrap: wrap; gap: 10px; padding: 10px; }
  .u-callbar-who { flex-basis: 100%; }
  .u-callbar-acts { flex: 1; justify-content: space-between; gap: 0; }
  .u-callbar-acts > .u-sep--v { display: none; }
  .u-callbar-b, .u-callbar-end { --h: var(--u-ctl-touch); }
  .u-callbar-b { width: 40px; padding: 0; }
  .u-callbar-b > span, .u-callbar-end > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .u-callbar-end { width: 48px; padding: 0; margin-left: 0; }
  .u-ts-line { padding: 9px 10px; }
  .u-numpick-q { grid-template-columns: 1fr; }
  .u-numopt { min-height: 52px; }
  .u-portsteps > li + li::before { width: 12px; margin: 0 6px 0 2px; }
  .u-paymeth { flex-wrap: wrap; }
  .u-paymeth > .u-btn { flex: 1; }
  .u-pcards-bar > .u-inwrap { max-width: none; }
  /* two cards a row; Call and Message keep their names for screen readers (aria-label) */
  .u-pcards-g { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
  .u-pcard-acts > .u-btn { --h: var(--u-ctl-touch); padding: 0; }
  .u-pcard-acts > .u-btn > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .u-signpad-box { height: 170px; }
}

/* Movement here is transform and opacity only; with reduced motion it stops. */
@media (prefers-reduced-motion: reduce) {
  .u-flow-card, .u-flow-add, .u-numopt-ck > .u-i, .u-callbar-end { transition: none; }
  .u-flow-card:hover { transform: none; }
  .u-callbar-state[data-st="live"] > i { animation: none; }
}

/* ---- umbra-ops.css ---- */
/* Umbra Devices And Operations: Session workspace with up to four docked panes, properties panel, device graphs by time range, ticket detail, dispatch board, device map, network status, alerts. Part of css/umbra.css (tools/build.mjs). Uses only --u-* tokens, so dark and light both work. */

/* ---------- Session workspace (Umbra.session, .u-sesh) ----------
   One machine, up to four panes. The grid takes 1, 2 (side by side or stacked) or 4;
   a pane can also dock Bottom or Right, or pop out into a movable window. */
.u-sesh { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; border: 1px solid var(--u-hair); border-radius: var(--u-r-lg); background: var(--u-lv1); overflow: hidden; }
.u-sesh-bar { flex: none; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-height: 40px; padding: 6px 8px 6px 12px; border-bottom: 1px solid var(--u-hair); background: var(--u-lv0); }
.u-sesh-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; min-width: 0; }
.u-sesh-chips { display: flex; gap: 4px; min-width: 0; flex-wrap: wrap; }
.u-sesh-chip { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 24px; padding: 0 8px; border: 1px solid var(--u-hair2); border-radius: 7px; background: var(--u-lv2); box-shadow: var(--u-edge); color: var(--u-t2); font-size: var(--u-fs-sm); font-weight: 500; white-space: nowrap; }
.u-sesh-chip > span { line-height: 1; }
.u-sesh-chip .u-i--s { width: 13px; height: 13px; }
.u-sesh-chip:hover { color: var(--u-t1); background: var(--u-lv3); }
.u-sesh-chip[data-state="hidden"] { background: transparent; box-shadow: none; color: var(--u-t3); }
.u-sesh-chip[data-state="closed"] { background: transparent; box-shadow: none; border-style: dashed; color: var(--u-t3); }
.u-sesh-chip[data-state="closed"]:hover, .u-sesh-chip[data-state="hidden"]:hover { color: var(--u-t1); border-color: var(--u-hair3); }
/* drawn layout glyphs in the picker */
.u-lglyph { display: inline-grid; gap: 1.5px; width: 16px; height: 12px; }
.u-lglyph > i { display: block; border: 1.25px solid currentColor; border-radius: 2px; }
.u-lglyph[data-l="2h"] { grid-template-columns: 1fr 1fr; }
.u-lglyph[data-l="2v"] { grid-template-rows: 1fr 1fr; }
.u-lglyph[data-l="4"] { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.u-sesh-lp > button { padding: 0 8px; }
.u-sesh-tabsrow { display: none; }
.u-sesh-body { position: relative; flex: 1; min-height: 0; }
.u-sesh-body:not(.has-right) > .u-gutter, .u-sesh-body:not(.has-right) > .u-sesh-dock { display: none; }
.u-sesh-body:not(.has-right) > .u-sesh-col { width: 100%; }
.u-sesh-col:not(.has-bottom) > .u-gutter, .u-sesh-col:not(.has-bottom) > .u-sesh-dock { display: none; }
.u-sesh-col:not(.has-bottom) > .u-sesh-grid { height: 100%; }
.u-sesh-body > .u-split-a, .u-sesh-body > .u-split-b, .u-sesh-col > .u-split-a, .u-sesh-col > .u-split-b { overflow: hidden; }
.u-sesh-grid { display: grid; gap: 1px; background: var(--u-hair); }
.u-sesh-grid[data-show="0"] { display: block; background: var(--u-lv1); overflow: auto; }
.u-sesh-grid[data-show="2h"] { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.u-sesh-grid[data-show="2v"] { grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
.u-sesh-grid[data-show="3"], .u-sesh-grid[data-show="4"] { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
.u-sesh-grid[data-show="3"] > .u-sesh-pane:first-child { grid-row: span 2; }
.u-sesh-dock { display: flex; gap: 1px; background: var(--u-hair); }
.u-sesh-dock[data-dock="right"] { flex-direction: column; }
.u-sesh-dock > .u-sesh-pane { flex: 1; }
.u-sesh-empty { display: grid; place-items: center; min-height: 100%; }
.u-sesh-pane { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--u-lv1); outline: 0; }
.u-sesh-pane:focus-visible { box-shadow: inset 0 0 0 2px var(--u-blue); }
.u-sesh-ph { flex: none; display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 3px 0 10px; border-bottom: 1px solid var(--u-hair); background: var(--u-lv2); color: var(--u-t2); font-size: var(--u-fs-sm); font-weight: 500; }
.u-sesh-ph > .u-i { color: var(--u-t3); }
.u-sesh-pt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--u-t1); }
.u-sesh-pacts { display: flex; gap: 1px; }
.u-sesh-pb { position: relative; flex: 1; min-height: 0; overflow: auto; }
.u-sesh-pane.is-max { position: absolute; inset: 0; z-index: 4; animation: u-ops-in .22s var(--u-ease); }
.u-sesh-float { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.u-sesh-float > .u-window { position: absolute; pointer-events: auto; animation: u-ops-pop .24s var(--u-ease); }
.u-sesh-win > .u-window-b > .u-sesh-pane { position: absolute; inset: 0; }
.u-sesh-win > .u-window-b > .u-sesh-pane > .u-sesh-ph { display: none; }
.u-sesh-win > .u-window-bar > .u-truncate { flex: 1; min-width: 0; }
@keyframes u-ops-in { from { opacity: 0; transform: scale(.985); } }
@keyframes u-ops-pop { from { opacity: 0; transform: translateY(6px) scale(.97); } }
@keyframes u-ops-fade { from { opacity: 0; } }

/* stand-in pane contents (gallery and apps alike) */
.u-sesh-stage { position: absolute; inset: 0; display: grid; place-items: center; background: var(--u-desk); }
.u-sesh-pb > .u-term { height: 100%; border: 0; border-radius: 0; box-shadow: none; }
.u-sesh-pb > .u-tablewrap { border: 0; border-radius: 0; box-shadow: none; }

/* ---------- Properties panel (Umbra.props, .u-props) ---------- */
.u-props { display: flex; flex-direction: column; min-width: 0; min-height: 0; border: 1px solid var(--u-hair); border-radius: var(--u-r-lg); background: var(--u-lv2); box-shadow: var(--u-edge); overflow: hidden; }
.u-props-h { flex: none; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 6px 0 14px; border-bottom: 1px solid var(--u-hair); }
.u-props-h > h3 { flex: 1; min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--u-t1); font-size: var(--u-fs-md); font-weight: 500; }
.u-props-b { flex: 1; min-height: 0; overflow: auto; }
.u-props-rail { display: none; }
.u-props-g + .u-props-g { border-top: 1px solid var(--u-hair); }
.u-props-gh { margin: 0; }
.u-props-gt { display: flex; align-items: center; gap: 8px; width: 100%; height: 34px; padding: 0 12px 0 14px; border: 0; background: none; color: var(--u-t2); font-size: var(--u-fs-sm); font-weight: 500; text-align: left; }
.u-props-gt:hover { color: var(--u-t1); background: var(--u-hover); }
.u-props-gt > .u-i:first-child { color: var(--u-t3); }
.u-props-chev { margin-left: auto; color: var(--u-t3); transition: transform .25s var(--u-ease); }
.u-props-gt[aria-expanded="false"] > .u-props-chev { transform: rotate(-90deg); }
.u-props-kv { display: grid; gap: 1px; margin: 0; padding: 0 8px 10px 14px; }
.u-props-r { display: grid; grid-template-columns: minmax(84px, 38%) minmax(0, 1fr); align-items: center; gap: 10px; min-height: 26px; }
.u-props-r > dt { color: var(--u-t3); font-size: var(--u-fs-sm); }
.u-props-r > dd { display: flex; align-items: center; gap: 4px; min-width: 0; margin: 0; }
.u-props-v { flex: 1; min-width: 0; color: var(--u-t1); overflow-wrap: anywhere; }
.u-props-v.u-mono { font-size: 12px; }
.u-props-v.is-none { color: var(--u-t4); }
.u-props-copy { flex: none; opacity: 0; transition: opacity var(--u-fast); }
.u-props-r:hover .u-props-copy, .u-props-copy:focus-visible, .u-props-copy.is-done { opacity: 1; }
.u-props-copy.is-done { color: var(--u-ok-t); }
@media (hover: none) { .u-props-copy { opacity: 1; } }
.u-props.is-collapsed { width: 46px; }
.u-props.is-collapsed > .u-props-h { justify-content: center; padding: 0; }
.u-props.is-collapsed > .u-props-h > h3, .u-props.is-collapsed > .u-props-b { display: none; }
.u-props.is-collapsed > .u-props-rail { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0; animation: u-ops-fade .2s var(--u-ease); }
.u-props-tog .u-i { transition: transform .25s var(--u-ease); }
.u-props.is-collapsed .u-props-tog .u-i { transform: scaleX(-1); }

/* ---------- Gap chart (Umbra.gapchart) and device graphs (Umbra.devgraphs) ---------- */
.u-chgaps { position: absolute; inset: 0; pointer-events: none; }
.u-chgap { position: absolute; display: flex; justify-content: center; padding-top: 4px; border-left: 1px dashed var(--u-hair3); border-right: 1px dashed var(--u-hair3); background: var(--u-gray-10); animation: u-ops-fade .3s var(--u-ease); }
.u-chgap > span { height: 16px; padding: 0 6px; border-radius: 4px; background: var(--u-lv3); color: var(--u-t3); font-size: 10.5px; font-weight: 500; line-height: 16px; white-space: nowrap; }
.u-chgap.is-narrow > span { display: none; }
.u-devgraphs { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.u-devgraphs-h { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; justify-content: space-between; }
.u-devgraphs-t { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.u-devgraphs-t > h3 { margin: 0; color: var(--u-t1); font-size: var(--u-fs-md); font-weight: 500; }
.u-devgraphs-sub { color: var(--u-t3); font-size: var(--u-fs-sm); }
/* Live range (0.5.0): a green dot that breathes (opacity only) while Live is chosen */
.u-devgraphs-live { gap: 6px; }
.u-devgraphs-live > i { width: 6px; height: 6px; border-radius: 50%; flex: none; background: var(--u-t4); }
.u-devgraphs.is-live .u-devgraphs-live > i { background: var(--u-ok); animation: u-pulse 1.6s ease-in-out infinite; }
.u-devgraphs-g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.u-devgraph { min-width: 0; padding: 10px 12px 4px; border: 1px solid var(--u-hair); border-radius: var(--u-r-md); background: var(--u-lv2); box-shadow: var(--u-edge); }
.u-devgraph-h { display: flex; align-items: center; gap: 6px; height: 22px; }
.u-devgraph-h > .u-i { color: var(--u-t3); }
.u-devgraph-n { color: var(--u-t2); font-size: var(--u-fs-sm); font-weight: 500; }
.u-devgraph-v { margin-left: auto; padding: 0 2px; border-radius: 4px; color: var(--u-t1); font: 500 var(--u-fs-sm) var(--u-f-mono); font-variant-numeric: tabular-nums; }
.u-devgraph-v.is-none { color: var(--u-t4); }
.u-devgraph-c { --u-ch: 140px; margin-top: 4px; }

/* ---------- Ticket detail (.u-ticket, .u-tconv, .u-tmsg, .u-treply, .u-prio) ---------- */
.u-ticket { display: grid; grid-template-columns: minmax(0, 1fr) 280px; min-width: 0; border: 1px solid var(--u-hair); border-radius: var(--u-r-lg); background: var(--u-lv1); overflow: hidden; }
.u-ticket-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.u-ticket-h { flex: none; display: grid; gap: 8px; padding: 14px 16px 12px; border-bottom: 1px solid var(--u-hair); background: var(--u-lv0); }
.u-ticket-top { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.u-ticket-no { color: var(--u-t3); font: 500 var(--u-fs-sm) var(--u-f-mono); }
.u-ticket-h h3 { margin: 0; color: var(--u-t1); font-size: var(--u-fs-lg); font-weight: 500; line-height: 1.3; }
.u-ticket-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.u-ticket-meta > .u-avtips { margin-left: auto; }
.u-ticket-scroll { flex: 1; min-height: 0; overflow: auto; padding: 16px; }
.u-ticket > .u-props { border: 0; border-left: 1px solid var(--u-hair); border-radius: 0; box-shadow: none; }
.u-prio { --c: var(--u-t4); display: inline-flex; align-items: center; gap: 6px; height: 20px; padding: 0 8px; border: 1px solid var(--u-hair2); border-radius: 99px; color: var(--u-t2); font-size: var(--u-fs-xs); font-weight: 500; white-space: nowrap; }
.u-prio::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--c); transform: rotate(45deg); }
.u-prio[data-p="urgent"] { --c: var(--u-bad); color: var(--u-bad-t); border-color: color-mix(in srgb, var(--u-bad) 35%, transparent); }
.u-prio[data-p="high"] { --c: var(--u-warn); }
.u-prio[data-p="normal"] { --c: var(--u-blue); }
.u-tconv { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.u-tmsg { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; }
.u-tmsg > .u-avatar { margin-top: 8px; }
.u-tmsg-c { min-width: 0; padding: 9px 12px 10px; border: 1px solid var(--u-hair); border-radius: var(--u-r-md); background: var(--u-lv2); box-shadow: var(--u-edge); }
.u-tmsg-h { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 4px; font-size: var(--u-fs-sm); }
.u-tmsg-h > b { color: var(--u-t1); font-weight: 500; }
.u-tmsg-org { color: var(--u-t3); }
.u-tmsg-h > time { margin-left: auto; color: var(--u-t3); font-size: var(--u-fs-xs); white-space: nowrap; }
.u-tmsg-t { color: var(--u-t1); line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.u-tmsg-tag { display: inline-flex; align-items: center; gap: 4px; height: 18px; padding: 0 6px; border-radius: 5px; background: var(--u-gray-10); color: var(--u-t2); font-size: var(--u-fs-xs); font-weight: 500; }
.u-tmsg--staff > .u-tmsg-c { border-color: color-mix(in srgb, var(--u-blue) 28%, transparent); }
.u-tmsg--staff .u-tmsg-tag { background: var(--u-blue-10); color: var(--u-blue-t); }
.u-tmsg--note > .u-tmsg-c { border-color: color-mix(in srgb, var(--u-warn) 32%, transparent); border-left: 3px solid var(--u-warn); border-radius: 0 var(--u-r-md) var(--u-r-md) 0; background: color-mix(in srgb, var(--u-warn) 7%, var(--u-lv2)); }
.u-tmsg--note .u-tmsg-tag { background: var(--u-warn-10); color: var(--u-warn-t); }
.u-tmsg--event { display: flex; align-items: center; gap: 8px; color: var(--u-t3); font-size: var(--u-fs-sm); }
.u-tmsg--event::before, .u-tmsg--event::after { content: ""; flex: 1; height: 1px; background: var(--u-hair); }
.u-tmsg--event > time { color: var(--u-t3); font-size: var(--u-fs-xs); }
.u-tmsg-eic { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--u-hair2); background: var(--u-lv2); }
.u-treply { flex: none; display: grid; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--u-hair); background: var(--u-lv0); }
.u-treply-top, .u-treply-f { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.u-treply-hint { display: inline-flex; align-items: center; gap: 5px; color: var(--u-t3); font-size: var(--u-fs-sm); }
.u-treply-f { justify-content: flex-end; }
.u-treply-f > .u-treply-kbd { margin-right: auto; color: var(--u-t3); font-size: var(--u-fs-xs); }
.u-treply .u-textarea { min-height: 64px; }
.u-treply.is-note .u-textarea { background: color-mix(in srgb, var(--u-warn) 7%, var(--u-lv2)); border-color: color-mix(in srgb, var(--u-warn) 40%, transparent); }
.u-treply.is-note .u-treply-hint { color: var(--u-warn-t); }

/* ---------- Dispatch board (Umbra.dispatch) ---------- */
.u-dispatch { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 12px; min-width: 0; }
.u-dispatch-main { min-width: 0; }
.u-dispatch-scroll { overflow-x: auto; border: 1px solid var(--u-hair); border-radius: var(--u-r-md); background: var(--u-lv1); }
.u-dispatch-grid { --rows: 4; position: relative; display: grid; grid-template-columns: 168px minmax(620px, 1fr); grid-template-rows: 30px repeat(var(--rows), 54px); }
.u-dispatch-corner { grid-row: 1; grid-column: 1; position: sticky; left: 0; z-index: 4; display: flex; align-items: center; padding: 0 12px; border-right: 1px solid var(--u-hair); border-bottom: 1px solid var(--u-hair); background: var(--u-lv0); color: var(--u-t2); font-size: var(--u-fs-sm); font-weight: 500; }
.u-dispatch-hours { grid-row: 1; grid-column: 2; position: relative; border-bottom: 1px solid var(--u-hair); background: var(--u-lv0); }
.u-dispatch-hours > span { position: absolute; top: 8px; transform: translateX(-50%); color: var(--u-t3); font: 500 10.5px/1 var(--u-f-mono); white-space: nowrap; }
.u-dispatch-hours > span.is-first { transform: translateX(6px); }
.u-dispatch-hours > span.is-last { transform: translateX(calc(-100% - 6px)); }
.u-dispatch-hours > span.is-near { opacity: 0; }
.u-dispatch-lines { grid-row: 2 / -1; grid-column: 2; position: relative; pointer-events: none; }
.u-dispatch-lines > i { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--u-hair); }
.u-dispatch-who { grid-column: 1; position: sticky; left: 0; z-index: 3; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 0 10px; border-right: 1px solid var(--u-hair); border-bottom: 1px solid var(--u-hair); background: var(--u-lv1); }
.u-dispatch-whob { display: flex; flex-direction: column; min-width: 0; }
.u-dispatch-whon { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--u-t1); font-size: var(--u-fs-sm); font-weight: 500; }
.u-dispatch-whos { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--u-t3); font-size: var(--u-fs-xs); }
.u-dispatch-lane { grid-column: 2; position: relative; border-bottom: 1px solid var(--u-hair); }
.u-dispatch-grid > .u-dispatch-lane:last-of-type, .u-dispatch-grid > .u-dispatch-who:nth-last-child(2) { border-bottom: 0; }
.u-dispatch-nowwrap { grid-row: 1 / -1; grid-column: 2; position: relative; z-index: 2; pointer-events: none; }
.u-dispatch-now { position: absolute; top: 0; bottom: 0; border-left: 2px solid var(--u-bad); margin-left: -1px; }
.u-dispatch-now > span { position: absolute; top: 5px; left: 0; padding: 2px 5px; border-radius: 4px; background: var(--u-bad-fill); color: var(--u-on-accent); font: 600 10px/1 var(--u-f-mono); white-space: nowrap; transform: translateX(-50%); }
.u-job { --c: var(--u-blue); position: absolute; top: 7px; bottom: 7px; display: flex; min-width: 6px; padding: 0; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); border-radius: 7px; background: color-mix(in srgb, var(--c) 14%, var(--u-lv1)); color: var(--u-t1); text-align: left; overflow: hidden; cursor: grab; }
.u-job:hover { background: color-mix(in srgb, var(--c) 22%, var(--u-lv1)); }
.u-job[data-kind="remote"] { --c: var(--u-vio); }
.u-job[aria-pressed="true"] { border-color: var(--c); box-shadow: 0 0 0 2px var(--u-lv1), 0 0 0 4px var(--c); z-index: 2; }
.u-job:focus-visible { outline: 2px solid var(--u-blue); outline-offset: 2px; z-index: 2; }
.u-job.is-done { --c: var(--u-t4); background: var(--u-gray-10); }
.u-job.is-done .u-job-t { color: var(--u-t2); }
.u-job.is-clash { border-color: var(--u-bad); box-shadow: inset 0 0 0 1px var(--u-bad); }
.u-job.is-drag { z-index: 6; cursor: grabbing; box-shadow: var(--u-sh-pop); }
.u-job-travel { flex: none; display: grid; place-items: center; height: 100%; border-right: 1px dashed color-mix(in srgb, var(--u-warn) 60%, transparent); background: var(--u-warn-10); color: var(--u-warn-t); overflow: hidden; }
.u-job-b { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 0 8px; }
.u-job-t { display: flex; align-items: center; gap: 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: var(--u-fs-sm); font-weight: 500; line-height: 1.2; }
.u-job-s { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--u-t2); font-size: var(--u-fs-xs); line-height: 1.2; }
.u-dispatch-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; color: var(--u-t3); font-size: var(--u-fs-sm); }
.u-dispatch-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.u-dispatch-legend i { width: 14px; height: 10px; border-radius: 3px; border: 1px solid color-mix(in srgb, var(--u-blue) 45%, transparent); background: color-mix(in srgb, var(--u-blue) 14%, var(--u-lv1)); }
.u-dispatch-legend [data-kind="remote"] i { border-color: color-mix(in srgb, var(--u-vio) 45%, transparent); background: color-mix(in srgb, var(--u-vio) 14%, var(--u-lv1)); }
.u-dispatch-legend [data-kind="travel"] i { border: 1px dashed var(--u-warn); background: var(--u-warn-10); }
.u-dispatch-legend [data-kind="done"] i { border-color: var(--u-hair2); background: var(--u-gray-10); }
.u-dispatch-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.u-dispatch-sh { display: flex; align-items: center; gap: 6px; }
.u-dispatch-sh > h4 { margin: 0; color: var(--u-t1); font-size: var(--u-fs-sm); font-weight: 500; }
.u-dispatch-un { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.u-dispatch-card { --c: var(--u-blue); display: flex; align-items: center; gap: 8px; padding: 7px 7px 7px 10px; border: 1px solid var(--u-hair); border-left: 3px solid var(--c); border-radius: 0 var(--u-r-md) var(--u-r-md) 0; background: var(--u-lv2); box-shadow: var(--u-edge); animation: u-ops-fade .2s var(--u-ease); }
.u-dispatch-card[data-kind="remote"] { --c: var(--u-vio); }
.u-dispatch-cardb { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.u-dispatch-cardt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--u-t1); font-size: var(--u-fs-sm); font-weight: 500; }
.u-dispatch-cards { color: var(--u-t3); font-size: var(--u-fs-xs); }
.u-dispatch-none { display: flex; align-items: center; gap: 6px; padding: 8px 2px; color: var(--u-ok-t); font-size: var(--u-fs-sm); }
.u-dispatch-detail { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--u-hair); border-radius: var(--u-r-md); background: var(--u-lv2); box-shadow: var(--u-edge); }
.u-dispatch-detail > b { color: var(--u-t1); font-weight: 500; }
.u-dispatch-detail .u-kv { grid-template-columns: max-content 1fr; gap: 4px 12px; font-size: var(--u-fs-sm); }
.u-dispatch-dh { margin: 0; color: var(--u-t3); font-size: var(--u-fs-sm); }
.u-dispatch-dt { display: flex; align-items: center; gap: 6px; }
.u-dispatch-dk { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px; background: var(--u-blue-10); color: var(--u-blue-t); font-size: var(--u-fs-xs); font-weight: 500; }
.u-dispatch-dk[data-kind="remote"] { background: var(--u-vio-10); color: var(--u-vio-t); }
.u-dispatch-da { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Device map (Umbra.devmap) ---------- */
.u-devmap { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: 12px; min-width: 0; }
.u-devmap-map { position: relative; aspect-ratio: 4 / 3; border: 1px solid var(--u-hair); border-radius: var(--u-r-lg); background: var(--u-sunken); overflow: hidden; }
.u-devmap-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.u-devmap-land { transform-origin: 0 0; transition: transform .45s var(--u-ease); }
.u-devmap-ground { fill: var(--u-lv2); stroke: var(--u-hair3); stroke-width: .8; }
.u-devmap-lake { fill: var(--u-blue-10); stroke: var(--u-blue-20); stroke-width: .6; }
.u-devmap-lagoon { fill: none; stroke: var(--u-hair2); stroke-width: 1.2; stroke-linecap: round; }
.u-devmap-names { position: absolute; inset: 0; pointer-events: none; }
.u-devmap-names > span { position: absolute; left: 0; top: 0; white-space: nowrap; transition: transform .45s var(--u-ease); }
.u-devmap-map.is-instant .u-devmap-names > span { transition: none; }
.u-devmap-names > span > span { display: block; transform: translate(0, -50%); }
.u-devmap-names > span[data-a="end"] > span { transform: translate(-100%, -50%); }
.u-devmap-town { color: var(--u-t3); font-size: var(--u-fs-xs); font-weight: 500; }
.u-devmap-sea { color: var(--u-t4); font-size: var(--u-fs-xs); font-style: italic; }
.u-devmap-pins { position: absolute; inset: 0; }
.u-devmap-pin { --c: var(--u-t4); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 24px; height: 24px; margin: -12px 0 0 -12px; padding: 0; border: 0; border-radius: 50%; background: none; transition: transform .45s var(--u-ease), opacity .25s var(--u-ease); }
.u-devmap-map.is-instant .u-devmap-pin { transition: none; }
.u-devmap-pin[data-status="ok"] { --c: var(--u-ok); }
.u-devmap-pin[data-status="warn"] { --c: var(--u-warn); }
.u-devmap-pin[data-status="bad"] { --c: var(--u-bad); }
.u-devmap-dot { display: grid; place-items: center; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--u-lv1); background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent); transition: transform .2s var(--u-ease); }
.u-devmap-pin:hover .u-devmap-dot, .u-devmap-pin:focus-visible .u-devmap-dot, .u-devmap-pin.is-hot .u-devmap-dot { transform: scale(1.4); }
.u-devmap-pin:focus-visible { outline: 2px solid var(--u-blue); outline-offset: 0; }
.u-devmap-pin.is-sel .u-devmap-dot { box-shadow: 0 0 0 3px var(--u-blue); }
.u-devmap-pin.is-cluster { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
.u-devmap-pin.is-cluster .u-devmap-dot { width: 26px; height: 26px; border: 2px solid var(--c); background: var(--u-lv3); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 20%, transparent), var(--u-sh-card); color: var(--u-t1); font: 600 11px/1 var(--u-f-mono); }
.u-devmap-pin.is-cluster:hover .u-devmap-dot, .u-devmap-pin.is-cluster:focus-visible .u-devmap-dot, .u-devmap-pin.is-cluster.is-hot .u-devmap-dot { transform: scale(1.12); }
.u-devmap-pin.is-in, .u-devmap-pin.is-out { opacity: 0; pointer-events: none; }
.u-devmap-reset { position: absolute; top: 8px; right: 8px; }
.u-devmap-legend { position: absolute; left: 8px; bottom: 8px; display: flex; flex-wrap: wrap; gap: 4px 10px; max-width: calc(100% - 16px); padding: 4px 8px; border: 1px solid var(--u-hair); border-radius: 7px; background: var(--u-lv1); color: var(--u-t2); font-size: var(--u-fs-xs); pointer-events: none; }
.u-devmap-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.u-devmap-legend i { width: 7px; height: 7px; border-radius: 50%; background: var(--u-t4); }
.u-devmap-legend [data-status="ok"] i, .u-devmap-row[data-status="ok"] .u-dotst { background: var(--u-ok); }
.u-devmap-legend [data-status="warn"] i, .u-devmap-row[data-status="warn"] .u-dotst { background: var(--u-warn); }
.u-devmap-legend [data-status="bad"] i, .u-devmap-row[data-status="bad"] .u-dotst { background: var(--u-bad); }
.u-devmap-side { display: flex; flex-direction: column; min-width: 0; min-height: 0; contain: size; border: 1px solid var(--u-hair); border-radius: var(--u-r-lg); background: var(--u-lv2); box-shadow: var(--u-edge); overflow: hidden; }
.u-devmap-lh { flex: none; display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-bottom: 1px solid var(--u-hair); }
.u-devmap-lh > h4 { margin: 0; color: var(--u-t1); font-size: var(--u-fs-sm); font-weight: 500; }
.u-devmap-list { flex: 1; min-height: 0; margin: 0; padding: 0; list-style: none; overflow: auto; }
.u-devmap-list > li + li { border-top: 1px solid var(--u-hair); }
.u-devmap-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px 8px 12px; border: 0; background: none; color: var(--u-t3); text-align: left; }
.u-devmap-row:hover, .u-devmap-row.is-hot { background: var(--u-hover); }
.u-devmap-row[aria-current="true"] { background: var(--u-blue-10); }
.u-devmap-row:focus-visible { outline: 2px solid var(--u-blue); outline-offset: -2px; }
.u-devmap-rb { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.u-devmap-rn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--u-t1); font-size: var(--u-fs-sm); font-weight: 500; }
.u-devmap-rs { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--u-t3); font-size: var(--u-fs-xs); }

/* ---------- Network status (Umbra.topology, .u-netsite, .u-alert--held) ---------- */
.u-netsites { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; }
.u-netsite { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 12px 14px 16px; border: 1px solid var(--u-hair); border-radius: var(--u-r-lg); background: var(--u-lv1); }
.u-netsite-h { display: flex; align-items: center; gap: 8px; min-width: 0; }
.u-netsite-hb { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.u-netsite-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--u-t1); font-weight: 500; }
.u-netsite-s { color: var(--u-t3); font-size: var(--u-fs-sm); }
.u-alert--held { --c: var(--u-t2); --bg: var(--u-gray-10); }
.u-alert-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.u-topo { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.u-topo-tier { display: flex; justify-content: center; max-width: 100%; }
.u-topo-node { --c: var(--u-t4); display: flex; align-items: center; gap: 9px; width: 220px; max-width: 100%; padding: 7px 10px 7px 8px; border: 1px solid var(--u-hair2); border-radius: var(--u-r-md); background: var(--u-lv2); box-shadow: var(--u-sh-card); color: var(--u-t1); text-align: left; }
.u-topo-node:hover { background: var(--u-lv3); }
.u-topo-node[data-status="ok"] { --c: var(--u-ok); }
.u-topo-node[data-status="warn"] { --c: var(--u-warn); }
.u-topo-node[data-status="bad"] { --c: var(--u-bad); border-color: color-mix(in srgb, var(--u-bad) 45%, transparent); }
.u-topo-ic { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--u-hair); background: var(--u-sunken); color: var(--u-t2); }
.u-topo-node[data-status="bad"] .u-topo-ic { color: var(--u-bad-t); }
.u-topo-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.u-topo-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--u-fs-sm); font-weight: 500; }
.u-topo-s { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--u-t3); font: 11px var(--u-f-mono); }
.u-topo-st { flex: none; display: inline-flex; align-items: center; gap: 5px; color: var(--u-t3); font-size: var(--u-fs-xs); font-weight: 500; white-space: nowrap; }
.u-topo-st > i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.u-topo-node[data-status="none"] .u-topo-st > i { background: none; border: 1.5px dashed var(--u-t4); }
.u-topo-node[data-status="ok"] .u-topo-st { color: var(--u-ok-t); }
.u-topo-node[data-status="warn"] .u-topo-st { color: var(--u-warn-t); }
.u-topo-node[data-status="bad"] .u-topo-st { color: var(--u-bad-t); }
.u-topo-link { width: 2px; height: 18px; background: var(--u-hair3); }
.u-topo-link[data-state="down"] { width: 0; background: none; border-left: 2px dashed var(--u-bad); }
.u-topo-aps { display: flex; justify-content: center; max-width: 100%; margin: 0; padding: 0; list-style: none; }
.u-topo-ap { position: relative; flex: 1 1 0; min-width: 0; max-width: 156px; padding: 18px 4px 0; }
.u-topo-ap::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--u-hair3); }
.u-topo-ap:first-child::before { left: 50%; }
.u-topo-ap:last-child::before { right: 50%; }
.u-topo-ap:only-child::before { display: none; }
.u-topo-ap::after { content: ""; position: absolute; top: 0; left: 50%; width: 2px; height: 18px; margin-left: -1px; background: var(--u-hair3); }
.u-topo-ap[data-state="down"]::after { width: 0; background: none; border-left: 2px dashed var(--u-bad); }
.u-topo-ap > .u-topo-node { width: 100%; flex-direction: column; align-items: center; gap: 5px; padding: 8px 6px; text-align: center; }
.u-topo-ap > .u-topo-node > .u-topo-b { width: 100%; align-items: center; }
.u-topo-ap > .u-topo-node .u-topo-n, .u-topo-ap > .u-topo-node .u-topo-s { max-width: 100%; }

/* ---------- Alerts list (Umbra.alerts) ---------- */
.u-alerts { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--u-hair); border-radius: var(--u-r-lg); background: var(--u-lv1); overflow: hidden; }
.u-alerts-h { flex: none; display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 14px; border-bottom: 1px solid var(--u-hair); background: var(--u-lv0); }
.u-alerts-n { color: var(--u-t2); font-size: var(--u-fs-sm); }
.u-alerts-g + .u-alerts-g { border-top: 1px solid var(--u-hair); }
.u-alerts-gh { display: flex; align-items: center; gap: 6px; margin: 0; padding: 10px 14px 4px; font-size: var(--u-fs-sm); font-weight: 500; }
.u-alerts-g[data-sev="bad"] .u-alerts-gh { color: var(--u-bad-t); }
.u-alerts-g[data-sev="warn"] .u-alerts-gh { color: var(--u-warn-t); }
.u-alerts-g[data-sev="info"] .u-alerts-gh { color: var(--u-blue-t); }
.u-alerts-list { margin: 0; padding: 0 0 6px; list-style: none; }
.u-alertrow { --c: var(--u-blue-t); display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px; min-height: 48px; padding: 6px 8px 6px 14px; transition: opacity .2s var(--u-ease), transform .2s var(--u-ease); }
.u-alertrow[data-sev="bad"] { --c: var(--u-bad-t); }
.u-alertrow[data-sev="warn"] { --c: var(--u-warn-t); }
.u-alertrow + .u-alertrow { border-top: 1px solid var(--u-hair); }
.u-alertrow:hover, .u-alertrow:focus-within { background: var(--u-hover); }
.u-alertrow-ic { display: grid; place-items: center; color: var(--c); }
.u-alertrow-b { min-width: 0; }
.u-alertrow-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--u-t1); font-weight: 500; }
.u-alertrow-m { display: flex; flex-wrap: wrap; gap: 0 6px; color: var(--u-t3); font-size: var(--u-fs-xs); }
.u-alertrow-m > * + *::before { content: "·"; margin-right: 6px; color: var(--u-t4); }
.u-alertrow-m > .u-mono { font-size: 11px; }
.u-alertrow-st { display: flex; justify-content: flex-end; }
.u-alertrow-st .u-badge .u-i { width: 12px; height: 12px; }
.u-alertrow-acts { display: flex; gap: 2px; }
.u-alertrow.is-ack .u-alertrow-t { color: var(--u-t2); font-weight: 400; }
.u-alertrow.is-snoozed .u-alertrow-t { color: var(--u-t3); font-weight: 400; }
.u-alertrow.is-snoozed .u-alertrow-ic { color: var(--u-t4); }
.u-alertrow.is-leaving { opacity: 0; transform: translateX(16px); pointer-events: none; }
.u-alerts-empty { flex: 1; justify-content: center; }
.u-alerts-bar { position: sticky; bottom: 0; }

/* ---------- Avatar tooltips (.u-avtips > .u-avtip) ----------
   A row of faces; hover or focus one and its name card springs up and leans with
   the pointer (--avx, --avr set by umbra.js). Transform and opacity only. */
.u-avtips { display: inline-flex; align-items: center; }
.u-avtip { position: relative; display: inline-grid; padding: 0; border: 0; border-radius: 50%; background: none; }
.u-avtip + .u-avtip { margin-left: -7px; }
.u-avtip > .u-avatar { box-shadow: 0 0 0 2px var(--u-lv1), inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent); transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.u-avtip:hover, .u-avtip:focus-visible { z-index: 3; }
.u-avtip:hover > .u-avatar, .u-avtip:focus-visible > .u-avatar { transform: translateY(-2px) scale(1.1); }
.u-avtip:focus-visible { outline: 0; }
.u-avtip:focus-visible > .u-avatar { box-shadow: 0 0 0 2px var(--u-lv1), 0 0 0 4px var(--u-blue); }
.u-avtip-card { position: absolute; left: 50%; bottom: calc(100% + 8px); z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 5px 10px 6px; border: 1px solid var(--u-hair2); border-radius: 8px; background: var(--u-lv3); box-shadow: var(--u-sh-pop); white-space: nowrap; pointer-events: none; opacity: 0; transform-origin: 50% 100%; transform: translateX(-50%) translateX(var(--avx, 0px)) translateY(6px) rotate(var(--avr, 0deg)) scale(.6); transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), opacity .16s var(--u-ease); }
.u-avtip-card::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: -1px; height: 1px; background: var(--u-grad); }
.u-avtip-card > b { color: var(--u-t1); font-size: var(--u-fs-sm); font-weight: 500; }
.u-avtip-card > span { color: var(--u-t3); font-size: var(--u-fs-xs); }
.u-avtip:hover > .u-avtip-card, .u-avtip:focus-visible > .u-avtip-card { opacity: 1; transform: translateX(-50%) translateX(var(--avx, 0px)) translateY(0) rotate(var(--avr, 0deg)) scale(1); }
@media (prefers-reduced-motion: reduce) {
  .u-avtip-card, .u-avtip:hover > .u-avtip-card, .u-avtip:focus-visible > .u-avtip-card { transform: translateX(-50%); }
  .u-avtip:hover > .u-avatar, .u-avtip:focus-visible > .u-avatar { transform: none; }
  .u-devmap-land, .u-devmap-pin, .u-devmap-names > span { transition: none; }
}

/* ---------- Phone ---------- */
@media (max-width: 640px) {
  .u-sesh-bar { padding: 6px 8px; }
  .u-sesh-tools { display: none; }
  .u-sesh-tabsrow { flex: none; display: flex; align-items: center; gap: 4px; padding: 0 4px 0 0; border-bottom: 1px solid var(--u-hair); background: var(--u-lv0); }
  .u-sesh-tabs { flex: 1; min-width: 0; border-bottom: 0; }
  .u-sesh-tabs .u-tab { height: 40px; }
  .u-sesh-grid[data-show] { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
  .u-sesh-ph { height: 40px; }
  .u-sesh-pacts > .u-ibtn:first-child, .u-sesh-maxb { display: none; }
  .u-props-r { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 4px 0; }
  .u-props.is-collapsed { width: auto; }
  .u-props.is-collapsed > .u-props-rail { flex-direction: row; justify-content: center; }
  .u-props-gt { height: 40px; }
  .u-devgraphs-g { grid-template-columns: minmax(0, 1fr); }
  .u-ticket { grid-template-columns: minmax(0, 1fr); }
  .u-ticket > .u-props { border-left: 0; border-top: 1px solid var(--u-hair); }
  .u-ticket-meta > .u-avtips { margin-left: 0; }
  .u-ticket-scroll { padding: 12px; }
  .u-dispatch { grid-template-columns: minmax(0, 1fr); }
  .u-dispatch-grid { grid-template-columns: 120px minmax(620px, 1fr); }
  .u-dispatch-who .u-avatar { display: none; }
  .u-devmap { grid-template-columns: minmax(0, 1fr); }
  .u-devmap-side { contain: none; max-height: 340px; }
  .u-devmap-row { min-height: 48px; }
  .u-devmap-legend { left: 6px; bottom: 6px; gap: 2px 8px; padding: 3px 6px; }
  .u-netsites { grid-template-columns: minmax(0, 1fr); }
  .u-topo { align-items: stretch; }
  .u-topo-tier { justify-content: stretch; }
  .u-topo-tier > .u-topo-node { width: 100%; }
  .u-topo-link { margin-left: 22px; }
  .u-topo-aps { flex-direction: column; margin-left: 22px; }
  .u-topo-ap { padding: 8px 0 0 16px; }
  .u-topo-ap::before, .u-topo-ap:first-child::before, .u-topo-ap:last-child::before { top: 0; bottom: auto; left: 0; right: auto; width: 2px; height: 100%; display: block; }
  .u-topo-ap:last-child::before { height: 30px; }
  .u-topo-ap::after { top: 29px; left: 0; width: 16px; height: 2px; margin-left: 0; }
  .u-topo-ap[data-state="down"]::after { width: 16px; height: 0; border-left: 0; border-top: 2px dashed var(--u-bad); }
  .u-topo-ap { max-width: none; }
  .u-topo-ap > .u-topo-node { flex-direction: row; text-align: left; gap: 9px; padding: 7px 10px 7px 8px; }
  .u-topo-ap > .u-topo-node > .u-topo-b { align-items: flex-start; }
  .u-alertrow { grid-template-columns: auto auto minmax(0, 1fr); row-gap: 4px; padding: 8px 8px 8px 12px; }
  .u-alertrow-st, .u-alertrow-acts { grid-column: 3; grid-row: 2; }
  .u-alertrow-st { justify-content: flex-start; }
  .u-alertrow-acts { justify-self: end; }
  .u-alertrow-t { white-space: normal; }
}
@container u-frame (max-width: 640px) {
  .u-sesh-bar { padding: 6px 8px; }
  .u-sesh-tools { display: none; }
  .u-sesh-tabsrow { flex: none; display: flex; align-items: center; gap: 4px; padding: 0 4px 0 0; border-bottom: 1px solid var(--u-hair); background: var(--u-lv0); }
  .u-sesh-tabs { flex: 1; min-width: 0; border-bottom: 0; }
  .u-sesh-tabs .u-tab { height: 40px; }
  .u-sesh-grid[data-show] { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
  .u-sesh-ph { height: 40px; }
  .u-sesh-pacts > .u-ibtn:first-child, .u-sesh-maxb { display: none; }
  .u-props-r { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 4px 0; }
  .u-props.is-collapsed { width: auto; }
  .u-props.is-collapsed > .u-props-rail { flex-direction: row; justify-content: center; }
  .u-props-gt { height: 40px; }
  .u-devgraphs-g { grid-template-columns: minmax(0, 1fr); }
  .u-ticket { grid-template-columns: minmax(0, 1fr); }
  .u-ticket > .u-props { border-left: 0; border-top: 1px solid var(--u-hair); }
  .u-ticket-meta > .u-avtips { margin-left: 0; }
  .u-ticket-scroll { padding: 12px; }
  .u-dispatch { grid-template-columns: minmax(0, 1fr); }
  .u-dispatch-grid { grid-template-columns: 120px minmax(620px, 1fr); }
  .u-dispatch-who .u-avatar { display: none; }
  .u-devmap { grid-template-columns: minmax(0, 1fr); }
  .u-devmap-side { contain: none; max-height: 340px; }
  .u-devmap-row { min-height: 48px; }
  .u-devmap-legend { left: 6px; bottom: 6px; gap: 2px 8px; padding: 3px 6px; }
  .u-netsites { grid-template-columns: minmax(0, 1fr); }
  .u-topo { align-items: stretch; }
  .u-topo-tier { justify-content: stretch; }
  .u-topo-tier > .u-topo-node { width: 100%; }
  .u-topo-link { margin-left: 22px; }
  .u-topo-aps { flex-direction: column; margin-left: 22px; }
  .u-topo-ap { padding: 8px 0 0 16px; }
  .u-topo-ap::before, .u-topo-ap:first-child::before, .u-topo-ap:last-child::before { top: 0; bottom: auto; left: 0; right: auto; width: 2px; height: 100%; display: block; }
  .u-topo-ap:last-child::before { height: 30px; }
  .u-topo-ap::after { top: 29px; left: 0; width: 16px; height: 2px; margin-left: 0; }
  .u-topo-ap[data-state="down"]::after { width: 16px; height: 0; border-left: 0; border-top: 2px dashed var(--u-bad); }
  .u-topo-ap { max-width: none; }
  .u-topo-ap > .u-topo-node { flex-direction: row; text-align: left; gap: 9px; padding: 7px 10px 7px 8px; }
  .u-topo-ap > .u-topo-node > .u-topo-b { align-items: flex-start; }
  .u-alertrow { grid-template-columns: auto auto minmax(0, 1fr); row-gap: 4px; padding: 8px 8px 8px 12px; }
  .u-alertrow-st, .u-alertrow-acts { grid-column: 3; grid-row: 2; }
  .u-alertrow-st { justify-content: flex-start; }
  .u-alertrow-acts { justify-self: end; }
  .u-alertrow-t { white-space: normal; }
}

/* ---- umbra-portal.css ---- */
/* ==========================================================================
   Umbra Portal Pages And Website: Portal navigation shell, knowledge base article, course progress, documents, expenses, public proposal with signature, pricing, cinematic scroll scene, quote request, logo use.
   Part of css/umbra.css (tools/build.mjs). Uses only --u-* tokens, so dark and light both work.
   ========================================================================== */

/* =============== Portal shell: grouped sidebar, org switcher, icon-only collapse, phone bar =============== */
/* The shell is its own container: below 640px of ITS width the sidebar gives way to a
   bottom bar with a More sheet, so the same markup works in a narrow pane on a desktop. */
.u-pshell { container: u-pshell / inline-size; display: grid; grid-template-columns: 240px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); height: 100%; min-height: 0; border-radius: var(--u-r-lg); border: 1px solid var(--u-hair); background: var(--u-lv1); overflow: hidden; }
.u-pshell.is-collapsed { grid-template-columns: 56px minmax(0, 1fr); }
.u-pnav { display: flex; flex-direction: column; min-height: 0; background: var(--u-lv0); border-right: 1px solid var(--u-hair); }
.u-pnav-top { padding: 10px 8px 6px; }
.u-pnav-scroll { flex: 1; min-height: 0; overflow: auto; padding: 2px 8px 10px; }
.u-pnav-foot { display: flex; flex-direction: column; gap: 2px; padding: 8px; border-top: 1px solid var(--u-hair); }
.u-pnav-g + .u-pnav-g { margin-top: 6px; }
.u-pnav-gh { display: flex; align-items: center; gap: 6px; width: 100%; height: 26px; padding: 0 8px; border: 0; border-radius: 6px; background: none; color: var(--u-t4); font-size: var(--u-fs-xs); font-weight: 500; text-align: left; }
.u-pnav-gh:hover { color: var(--u-t2); background: var(--u-hover); }
.u-pnav-gh > .u-i { width: 12px; height: 12px; margin-left: auto; transition: transform .25s var(--u-ease); }
.u-pnav-gh[aria-expanded="false"] > .u-i { transform: rotate(-90deg); }
.u-pnav-list { display: flex; flex-direction: column; gap: 2px; }
.u-pnav-g.is-shut > .u-pnav-list { display: none; }
.u-pnav-g:not(.is-shut) > .u-pnav-list { animation: u-rise var(--u-med) var(--u-ease); }
.u-pnav .u-side-i { position: relative; }
.u-pnav .u-side-i[aria-current="page"] { background: var(--u-lv3); color: var(--u-t1); border-color: var(--u-hair); box-shadow: var(--u-sh-row); }
.u-pnav .u-side-i[aria-current="page"] > .u-i { color: var(--u-blue-t); }
.u-pnav-l { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Org switcher: who you are looking at, always first. */
.u-orgsw { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 40px; padding: 5px 8px 5px 6px; border-radius: var(--u-r); border: 1px solid var(--u-hair); background: var(--u-lv2); box-shadow: var(--u-edge); color: var(--u-t1); text-align: left; }
.u-orgsw:hover { background: var(--u-lv3); border-color: var(--u-hair2); }
.u-orgsw > .u-avatar { --s: 28px; font-size: 11px; }
.u-orgsw-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.u-orgsw-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.u-orgsw-s { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--u-t4); font-size: var(--u-fs-xs); }
.u-orgsw > .u-i { color: var(--u-t4); width: 14px; height: 14px; }
.u-orgsw--top { display: none; width: auto; min-height: 32px; padding: 3px 8px 3px 4px; border-radius: 99px; }
.u-orgsw--top > .u-avatar { --s: 24px; font-size: var(--u-fs-xs); }
.u-orgmenu { width: 260px; }
.u-orgmenu .u-menu-item { min-height: 36px; }
.u-orgmenu .u-menu-item .u-avatar { --s: 22px; font-size: var(--u-fs-xs); }
.u-orgmenu .u-menu-tick { margin-left: auto; color: var(--u-blue-t); opacity: 0; }
/* Icon-only: labels go, icons centre, badges shrink to a dot, group headers become hairlines.
   umbra.js puts each label in a tooltip and keeps it as the accessible name. */
.u-pshell.is-collapsed .u-pnav-top, .u-pshell.is-collapsed .u-pnav-scroll, .u-pshell.is-collapsed .u-pnav-foot { padding-left: 8px; padding-right: 8px; }
.u-pshell.is-collapsed .u-orgsw { justify-content: center; padding: 5px 0; border-color: transparent; background: none; box-shadow: none; }
.u-pshell.is-collapsed .u-orgsw-t, .u-pshell.is-collapsed .u-orgsw > .u-i { display: none; }
.u-pshell.is-collapsed .u-pnav-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.u-pshell.is-collapsed .u-pnav .u-side-i { justify-content: center; padding: 0; height: 34px; }
.u-pshell.is-collapsed .u-pnav .u-side-i > .u-i { width: 16px; height: 16px; }
.u-pshell.is-collapsed .u-pnav .u-side-i > .u-count { position: absolute; top: 4px; right: 5px; min-width: 8px; width: 8px; height: 8px; padding: 0; overflow: hidden; color: transparent; box-shadow: 0 0 0 2px var(--u-lv0); }
.u-pshell.is-collapsed .u-pnav-gh { height: 9px; padding: 0; pointer-events: none; }
.u-pshell.is-collapsed .u-pnav-gh > * { display: none; }
.u-pshell.is-collapsed .u-pnav-gh::after { content: ""; flex: 1; height: 1px; margin: 0 8px; background: var(--u-hair); }
.u-pshell.is-collapsed .u-pnav-g.is-shut > .u-pnav-list { display: flex; }
.u-pnav-collapse > .u-i { transition: transform .25s var(--u-ease); }
.u-pshell.is-collapsed .u-pnav-collapse > .u-i { transform: scaleX(-1); }
.u-pmain { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: auto; background: var(--u-lv1); }
.u-pmain > .u-topbar { flex: none; }
.u-pmain-b { flex: 1; padding: 18px 20px 24px; }
.u-pmain-b > .u-view-in { display: block; }
.u-pnav-bar { display: none; position: relative; }
.u-pnav-bar > button { position: relative; }
.u-pnav-bar > button > .u-count { position: absolute; top: 6px; left: calc(50% + 6px); height: 16px; min-width: 16px; font-size: var(--u-fs-xs); }
.u-pnav-bar > button[aria-current="page"] { color: var(--u-t1); }
.u-pnav-bar > button[aria-current="page"] .u-i { color: var(--u-blue-t); }
.u-pnav-sheet .u-drawer-b { display: flex; flex-direction: column; gap: 16px; }
.u-pnav-sheet h3 { margin: 0 0 8px; color: var(--u-t4); font-size: var(--u-fs-xs); font-weight: 500; }
.u-pnav-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.u-pnav-tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 68px; padding: 8px 4px; border-radius: var(--u-r-md); border: 1px solid var(--u-hair); background: var(--u-lv2); box-shadow: var(--u-edge); color: var(--u-t2); font-size: var(--u-fs-xs); text-align: center; line-height: 1.2; }
.u-pnav-tile:hover { background: var(--u-lv3); color: var(--u-t1); }
.u-pnav-tile > .u-i { width: 18px; height: 18px; color: var(--u-t3); }
.u-pnav-tile[aria-current="page"] { color: var(--u-t1); border-color: color-mix(in srgb, var(--u-blue) 45%, transparent); }
.u-pnav-tile[aria-current="page"] > .u-i { color: var(--u-blue-t); }
.u-pnav-tile > .u-count { position: absolute; top: 6px; right: 6px; }
@container u-pshell (max-width: 640px) {
  /* a container query cannot restyle the shell itself, so the main area spans both columns */
  .u-pnav { display: none; }
  .u-pmain { grid-row: 1; grid-column: 1 / -1; }
  .u-pnav-bar { display: flex; }
  .u-orgsw--top { display: flex; }
  .u-pmain-b { padding: 14px 16px 20px; }
}
/* A phone-wide shell: the top switcher keeps the badge and chevron only (its name is in
   its label and on the page), so the page title and the bar's own buttons still fit. */
@container u-pshell (max-width: 480px) {
  .u-orgsw--top { padding-right: 6px; }
  .u-orgsw--top > .u-orgsw-t { display: none; }
}
.u-pmain > .u-topbar > .u-toolbar { flex: none; flex-wrap: nowrap; }
.u-pmain > .u-topbar > h1 { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* The phone bar is a second grid row only when it shows. */
.u-pshell:has(> .u-pnav-bar) { grid-template-rows: minmax(0, 1fr) auto; }
.u-pshell > .u-pnav { grid-row: 1 / -1; }
.u-pshell > .u-pnav-bar { grid-column: 1 / -1; }

/* =============== Knowledge base: article, contents, callouts, steps, helpful, related, home =============== */
.u-article { container: u-article / inline-size; min-width: 0; }
.u-article-h { display: flex; flex-direction: column; gap: 10px; padding-bottom: 18px; margin-bottom: 22px; border-bottom: 1px solid var(--u-hair); }
.u-article-h h1 { margin: 0; color: var(--u-t1); font-size: var(--u-fs-2xl); font-weight: 600; line-height: 1.2; letter-spacing: -.03em; text-wrap: balance; }
.u-article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--u-t3); font-size: var(--u-fs-sm); }
.u-article-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.u-article-meta .u-i { width: 13px; height: 13px; color: var(--u-t4); }
.u-article-g { display: grid; grid-template-columns: minmax(0, 70ch) 200px; justify-content: start; grid-template-areas: "body toc"; gap: 56px; align-items: start; }
.u-article-b { grid-area: body; min-width: 0; max-width: 70ch; color: var(--u-t2); font-size: var(--u-fs-md); line-height: 1.65; }
.u-article-b > :first-child { margin-top: 0; }
.u-article-b h2 { margin: 32px 0 10px; color: var(--u-t1); font-size: var(--u-fs-lg); font-weight: 600; letter-spacing: -.015em; line-height: 1.3; scroll-margin-top: 16px; }
.u-article-b h2:focus { outline: 0; }
.u-article-b h2:focus-visible { outline: 2px solid var(--u-blue); outline-offset: 4px; }
.u-article-b p { margin: 0 0 12px; }
.u-article-b ul { margin: 0 0 12px; padding-left: 20px; }
.u-article-b li { margin: 4px 0; }
.u-article-b code { padding: 1px 5px; border-radius: 5px; background: var(--u-sunken); border: 1px solid var(--u-hair); color: var(--u-t1); font: 12.5px var(--u-f-mono); }
.u-article-b strong { color: var(--u-t1); font-weight: 500; }
/* Contents: sticks beside the article, marks the section being read. */
.u-toc { grid-area: toc; position: sticky; top: 16px; display: flex; flex-direction: column; gap: 2px; font-size: var(--u-fs-sm); }
.u-toc-t { margin: 0 0 6px; color: var(--u-t1); font-size: var(--u-fs-sm); font-weight: 500; }
/* The fold button only exists where the contents sit above the article (narrow). */
.u-toc-h { display: none; align-items: center; gap: 6px; width: 100%; height: 40px; margin: 0; padding: 0; border: 0; background: none; color: var(--u-t1); font-size: var(--u-fs-sm); font-weight: 500; text-align: left; cursor: pointer; }
.u-toc-h > .u-i:last-child { margin-left: auto; color: var(--u-t4); transition: transform .25s var(--u-ease); }
.u-toc ol { display: flex; flex-direction: column; gap: 1px; margin: 0; padding: 0 0 0 1px; list-style: none; border-left: 1px solid var(--u-hair); }
.u-toc a { position: relative; display: block; padding: 5px 10px; margin-left: -1px; border-left: 1px solid transparent; color: var(--u-t3); text-decoration: none; line-height: 1.35; }
.u-toc a:hover { color: var(--u-t1); }
.u-toc a[aria-current="true"] { color: var(--u-blue-t); border-left-color: var(--u-blue); font-weight: 500; }
@container u-article (max-width: 760px) {
  .u-article-g { grid-template-columns: minmax(0, 1fr); grid-template-areas: "toc" "body"; gap: 18px; }
  .u-toc { position: static; padding: 4px 12px; border-radius: var(--u-r-md); border: 1px solid var(--u-hair); background: var(--u-lv2); box-shadow: var(--u-edge); }
  .u-toc-t { display: none; }
  .u-toc-h { display: flex; }
  .u-toc-h[aria-expanded="true"] > .u-i:last-child { transform: rotate(180deg); }
  .u-toc-h[aria-expanded="false"] + ol { display: none; }
  .u-toc ol { margin-bottom: 8px; }
}
/* Callouts: a coloured edge and icon, readable text. */
.u-callout { --c: var(--u-blue-t); --bg: var(--u-blue-10); --bar: var(--u-blue); display: flex; gap: 10px; align-items: flex-start; margin: 16px 0; padding: 12px 14px; border-radius: 0 var(--u-r-md) var(--u-r-md) 0; border: 1px solid var(--u-hair); border-left: 3px solid var(--bar); background: var(--bg); color: var(--u-t2); font-size: var(--u-fs); line-height: 1.55; }
.u-callout > .u-i { color: var(--c); margin-top: 2px; }
.u-callout-t { display: block; margin-bottom: 2px; color: var(--c); font-weight: 600; }
.u-callout p { margin: 0; }
.u-callout--tip { --c: var(--u-ok-t); --bg: var(--u-ok-10); --bar: var(--u-ok); }
.u-callout--warn { --c: var(--u-warn-t); --bg: var(--u-warn-10); --bar: var(--u-warn); }
.u-callout--bad { --c: var(--u-bad-t); --bg: var(--u-bad-10); --bar: var(--u-bad); }
/* How-to steps with a screenshot stand-in under each. */
.u-howto { counter-reset: u-howto; display: flex; flex-direction: column; gap: 18px; margin: 14px 0 18px; padding: 0; list-style: none; }
.u-howto > li { counter-increment: u-howto; position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 4px 12px; margin: 0; }
.u-howto > li::before { content: counter(u-howto); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--u-hair2); background: var(--u-lv3); box-shadow: var(--u-edge); color: var(--u-t1); font: 600 12px/1 var(--u-f-mono); }
.u-howto > li > * { grid-column: 2; }
.u-howto > li > :first-child { grid-row: 1; margin-top: 2px; }
.u-howto-t { display: block; color: var(--u-t1); font-weight: 500; }
.u-shot { margin: 8px 0 0; }
.u-shot-f { position: relative; aspect-ratio: 16 / 8; display: grid; place-items: center; border-radius: var(--u-r-md); border: 1px solid var(--u-hair2); background: var(--u-sunken); box-shadow: var(--u-fld-in); overflow: hidden; color: var(--u-t4); }
.u-shot-f::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 18px; border-bottom: 1px solid var(--u-hair); background: var(--u-lv2); }
.u-shot-f > span { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: var(--u-fs-xs); }
.u-shot-f .u-i { width: 22px; height: 22px; }
.u-shot figcaption { margin-top: 6px; color: var(--u-t4); font-size: var(--u-fs-xs); }
/* Was this helpful */
.u-helpful { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 28px; padding: 14px 16px; border-radius: var(--u-r-lg); border: 1px solid var(--u-hair); background: var(--u-lv2); box-shadow: var(--u-sh-card); }
.u-helpful-q { color: var(--u-t1); font-weight: 500; }
.u-helpful-acts { display: flex; gap: 6px; }
.u-helpful-acts .u-btn[aria-pressed="true"] { border-color: color-mix(in srgb, var(--u-blue) 55%, transparent); color: var(--u-blue-t); }
.u-helpful-done { flex-basis: 100%; color: var(--u-t3); font-size: var(--u-fs-sm); animation: u-rise var(--u-slow) var(--u-ease); }
.u-helpful-more { flex-basis: 100%; display: flex; flex-direction: column; gap: 8px; animation: u-rise var(--u-slow) var(--u-ease); }
.u-helpful-more .u-textarea { min-height: 64px; }
.u-helpful-more > div { display: flex; justify-content: flex-end; gap: 6px; }
.u-i--down { transform: scaleY(-1); }
/* Related articles */
.u-related { margin-top: 24px; }
.u-related h3 { margin: 0 0 8px; color: var(--u-t1); font-size: var(--u-fs); font-weight: 600; }
.u-related ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.u-related a { display: flex; align-items: flex-start; gap: 10px; height: 100%; padding: 10px 12px; border-radius: var(--u-r-md); border: 1px solid var(--u-hair); background: var(--u-lv2); color: var(--u-t1); text-decoration: none; line-height: 1.35; }
.u-related a:hover { background: var(--u-lv3); border-color: var(--u-hair2); }
.u-related a > .u-i { margin-top: 1px; color: var(--u-blue-t); }
.u-related small { display: block; margin-top: 2px; color: var(--u-t4); font-size: var(--u-fs-xs); }
/* Knowledge base home */
.u-kbhome { container: u-kbhome / inline-size; display: flex; flex-direction: column; gap: 22px; }
.u-kbhome-hero { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 30px 16px 26px; border-radius: var(--u-r-xl); border: 1px solid var(--u-hair); background: var(--u-lv2); box-shadow: var(--u-sh-card); text-align: center; }
.u-kbhome-hero h2 { margin: 0; color: var(--u-t1); font-size: var(--u-fs-2xl); font-weight: 600; letter-spacing: -.03em; }
.u-kbhome-hero p { margin: 0; color: var(--u-t3); }
.u-kbhome-hero .u-inwrap { width: min(100%, 520px); }
.u-kbhome-pop { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.u-kbhome-pop > span { color: var(--u-t4); font-size: var(--u-fs-sm); align-self: center; }
.u-kbcats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@container u-kbhome (max-width: 720px) { .u-kbcats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container u-kbhome (max-width: 440px) { .u-kbcats { grid-template-columns: minmax(0, 1fr); } }
.u-kbcat { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px; border-radius: var(--u-r-lg); border: 1px solid var(--u-hair); background: var(--u-lv2); box-shadow: var(--u-sh-card); color: var(--u-t2); text-align: left; text-decoration: none; transition: transform .25s var(--u-ease); }
.u-kbcat:hover { border-color: var(--u-hair2); transform: translateY(-1px); }
.u-kbcat-ic { display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 4px; border-radius: 9px; background: var(--u-blue-10); color: var(--u-blue-t); }
.u-kbcat b { color: var(--u-t1); font-weight: 500; }
.u-kbcat p { margin: 0; color: var(--u-t3); font-size: var(--u-fs-sm); line-height: 1.45; }
.u-kbcat small { margin-top: auto; padding-top: 4px; color: var(--u-t4); font-size: var(--u-fs-xs); }
.u-kbcat--ok .u-kbcat-ic { background: var(--u-ok-10); color: var(--u-ok-t); }
.u-kbcat--vio .u-kbcat-ic { background: var(--u-vio-10); color: var(--u-vio-t); }
.u-kbcat--warn .u-kbcat-ic { background: var(--u-warn-10); color: var(--u-warn-t); }
.u-kbcat--cyan .u-kbcat-ic { background: var(--u-cyan-10); color: var(--u-cyan-t); }
.u-kbcat--pink .u-kbcat-ic { background: var(--u-pink-10); color: var(--u-pink-t); }
.u-kbhome-res { display: flex; flex-direction: column; gap: 6px; }
.u-kbhome-res[hidden] { display: none; }

/* =============== Education: course card, lessons, lesson header =============== */
.u-course { display: flex; flex-direction: column; overflow: hidden; }
.u-course-top { display: flex; align-items: center; gap: 12px; padding: 14px; border-bottom: 1px solid var(--u-hair); }
.u-course-ic { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 11px; background: var(--u-vio-10); color: var(--u-vio-t); }
.u-course-ic .u-i { width: 20px; height: 20px; }
.u-course-t { flex: 1; min-width: 0; }
.u-course-t h3 { margin: 0; color: var(--u-t1); font-size: var(--u-fs-md); font-weight: 600; letter-spacing: -.01em; }
.u-course-t p { margin: 2px 0 0; color: var(--u-t3); font-size: var(--u-fs-sm); }
.u-course-prog { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 12px; padding: 12px 14px; border-bottom: 1px solid var(--u-hair); }
.u-course-prog > .u-ringp { --s: 44px; grid-row: span 2; }
.u-course-prog b { color: var(--u-t1); font-weight: 500; }
.u-course-prog span { color: var(--u-t3); font-size: var(--u-fs-sm); }
.u-course-prog .u-progress { grid-column: 2; }
.u-course-f { display: flex; align-items: center; gap: 8px; padding: 12px 14px; }
.u-course-f > .u-btn:last-child { margin-left: auto; }
.u-lessons { margin: 0; padding: 6px; list-style: none; display: flex; flex-direction: column; gap: 1px; }
.u-lessons-h { padding: 10px 8px 4px; color: var(--u-t4); font-size: var(--u-fs-xs); font-weight: 500; }
.u-lesson { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 6px 8px; border: 1px solid transparent; border-radius: var(--u-r); background: none; color: var(--u-t2); text-align: left; }
.u-lesson:hover:not([aria-disabled="true"]) { background: var(--u-hover); color: var(--u-t1); }
.u-lesson-st { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 50%; border: 1px solid var(--u-hair2); color: var(--u-t4); }
.u-lesson-st .u-i { width: 12px; height: 12px; }
.u-lesson-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-lesson-m { flex: none; color: var(--u-t4); font: 11px var(--u-f-mono); }
.u-lesson.is-done .u-lesson-st { background: var(--u-ok-10); border-color: transparent; color: var(--u-ok-t); }
.u-lesson.is-current { background: var(--u-lv3); border-color: var(--u-hair); box-shadow: var(--u-sh-row); color: var(--u-t1); }
.u-lesson.is-current .u-lesson-st { background: linear-gradient(180deg, var(--u-bp-top), var(--u-bp-bot)); border-color: var(--u-bp-bd); color: var(--u-on-accent); }
.u-lesson.is-locked, .u-lesson[aria-disabled="true"] { cursor: not-allowed; color: var(--u-t4); }
.u-lesson.is-locked .u-lesson-n { color: var(--u-t3); }
.u-lessonh { container: u-lessonh / inline-size; display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--u-r-lg); border: 1px solid var(--u-hair); background: var(--u-lv2); box-shadow: var(--u-sh-card); }
.u-lessonh-k { display: flex; align-items: center; gap: 8px; color: var(--u-t3); font-size: var(--u-fs-sm); }
.u-lessonh h2 { margin: 0; color: var(--u-t1); font-size: var(--u-fs-xl); font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.u-lessonh-m { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--u-t3); font-size: var(--u-fs-sm); }
.u-lessonh-m > span { display: inline-flex; align-items: center; gap: 5px; }
.u-lessonh-m .u-i { width: 13px; height: 13px; color: var(--u-t4); }
.u-lessonh-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 4px; }
.u-lessonh-nav > .u-btn:last-child { margin-left: auto; }
/* narrow: Mark As Done gets its own row, Previous and Next share the one below */
@container u-lessonh (max-width: 420px) {
  .u-lessonh-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .u-lessonh-nav > .u-btn { width: 100%; margin: 0; }
  .u-lessonh-nav > .u-btn:nth-child(2) { grid-column: 1 / -1; order: -1; }
}

/* =============== Documents: grid and list views, file-type icons, shared-with chips =============== */
.u-docs { container: u-docs / inline-size; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.u-docs-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.u-docs-bar > .u-crumbs { flex: 1; min-width: 0; }
.u-docs-bar > .u-inwrap { width: 200px; }
.u-docs-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.u-docs-items > li { min-width: 0; }
.u-doc { display: flex; flex-direction: column; gap: 6px; width: 100%; height: 100%; padding: 8px 8px 10px; border-radius: var(--u-r-lg); border: 1px solid var(--u-hair); background: var(--u-lv2); box-shadow: var(--u-sh-card); color: var(--u-t2); text-align: left; transition: transform .25s var(--u-ease); }
.u-doc:hover { border-color: var(--u-hair2); transform: translateY(-1px); }
.u-doc[aria-selected="true"] { border-color: var(--u-blue); box-shadow: var(--u-sh-card), 0 0 0 3px var(--u-blue-10); }
.u-doc-pv { display: grid; place-items: center; height: 74px; margin-bottom: 4px; border-radius: var(--u-r); background: var(--u-sunken); box-shadow: var(--u-fld-in); }
.u-doc-tx { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.u-doc-n { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--u-t1); font-weight: 500; }
.u-doc-m { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--u-t4); font-size: var(--u-fs-xs); }
.u-doc-share { display: flex; flex-wrap: wrap; gap: 4px; min-height: 20px; }
.u-doc-d, .u-doc-s { display: none; color: var(--u-t3); font: var(--u-fs-xs) var(--u-f-mono); white-space: nowrap; }
.u-ftype { --c: var(--u-t3); --bg: var(--u-gray-10); display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 9px; background: var(--bg); color: var(--c); }
.u-ftype .u-i { width: 17px; height: 17px; }
.u-ftype--pdf { --c: var(--u-bad-t); --bg: var(--u-bad-10); }
.u-ftype--doc { --c: var(--u-blue-t); --bg: var(--u-blue-10); }
.u-ftype--xls { --c: var(--u-ok-t); --bg: var(--u-ok-10); }
.u-ftype--img { --c: var(--u-vio-t); --bg: var(--u-vio-10); }
.u-ftype--zip { --c: var(--u-t3); --bg: var(--u-gray-10); }
.u-ftype--folder { --c: var(--u-warn-t); --bg: var(--u-warn-10); }
.u-sharechip { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px 0 2px; border-radius: 99px; border: 1px solid var(--u-hair); background: var(--u-lv3); color: var(--u-t3); font-size: 10.5px; white-space: nowrap; }
.u-sharechip > .u-avatar { --s: 16px; font-size: 0; letter-spacing: 0; }
.u-sharechip > .u-i { width: 11px; height: 11px; margin-left: 4px; color: var(--u-t4); }
.u-sharechip--private { padding-left: 2px; }
/* List view: one row per file, columns line up. */
.u-docs.is-list .u-docs-items { grid-template-columns: minmax(0, 1fr); gap: 0; border-radius: var(--u-r-lg); border: 1px solid var(--u-hair); background: var(--u-lv2); box-shadow: var(--u-sh-card); overflow: hidden; }
.u-docs.is-list .u-docs-items > li + li { border-top: 1px solid var(--u-hair); }
.u-docs.is-list .u-doc { display: grid; grid-template-columns: 34px minmax(0, 1fr) minmax(0, 180px) 96px 64px; align-items: center; gap: 0 12px; padding: 7px 12px; border: 0; border-radius: 0; background: none; box-shadow: none; }
.u-docs.is-list .u-doc:hover { transform: none; background: var(--u-hover); }
.u-docs.is-list .u-doc[aria-selected="true"] { background: var(--u-blue-10); box-shadow: none; }
.u-docs.is-list .u-doc-pv { display: contents; }
.u-docs.is-list .u-doc-pv .u-ftype { width: 30px; height: 30px; }
.u-docs.is-list .u-doc-tx { min-width: 0; }
.u-docs.is-list .u-doc-share { flex-wrap: nowrap; overflow: hidden; }
.u-docs.is-list .u-doc-d, .u-docs.is-list .u-doc-s { display: block; text-align: right; }
.u-docs.is-list .u-doc-m .u-doc-ms { display: none; }
.u-docs-head { display: none; }
.u-docs.is-list .u-docs-head { display: grid; grid-template-columns: 34px minmax(0, 1fr) minmax(0, 180px) 96px 64px; gap: 0 12px; padding: 0 12px 0; margin-bottom: -6px; color: var(--u-t4); font-size: var(--u-fs-xs); font-weight: 500; }
.u-docs.is-list .u-docs-head > span:nth-child(n+4) { text-align: right; }
@container u-docs (max-width: 560px) {
  .u-docs-bar > .u-inwrap { order: 3; width: 100%; }
  .u-docs-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .u-docs.is-list .u-doc { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .u-docs.is-list .u-doc-share, .u-docs.is-list .u-doc-s { display: none; }
  .u-docs.is-list .u-docs-head { display: none; }
}

/* =============== Expenses: totals, rows with receipt thumbs, add form =============== */
.u-exp { container: u-exp / inline-size; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.u-exp-tot { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-radius: var(--u-r-lg); border: 1px solid var(--u-hair); background: var(--u-lv2); box-shadow: var(--u-sh-card); overflow: hidden; }
.u-exp-tot > div { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; min-width: 0; }
.u-exp-tot > div + div { border-left: 1px solid var(--u-hair); }
.u-exp-tot span { display: flex; align-items: center; gap: 6px; color: var(--u-t3); font-size: var(--u-fs-sm); }
.u-exp-tot b { color: var(--u-t1); font: 600 19px/1.15 var(--u-f-mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.u-exp-tot small { color: var(--u-t4); font-size: var(--u-fs-xs); }
.u-exp-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.u-exp-bar > .u-btn:last-child { margin-left: auto; }
.u-exp-list { margin: 0; padding: 0; list-style: none; border-radius: var(--u-r-lg); border: 1px solid var(--u-hair); background: var(--u-lv2); box-shadow: var(--u-sh-card); overflow: hidden; }
.u-exp-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 130px 96px 100px; align-items: center; gap: 0 12px; padding: 8px 12px; }
.u-exp-row + .u-exp-row { border-top: 1px solid var(--u-hair); }
.u-exp-row.is-new { animation: u-rise var(--u-slow) var(--u-ease); }
.u-exp-row[hidden] { display: none; }
.u-exp-b { min-width: 0; }
.u-exp-n { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--u-t1); font-weight: 500; }
.u-exp-s { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--u-t4); font-size: var(--u-fs-xs); }
.u-exp-why { display: block; margin-top: 2px; color: var(--u-bad-t); font-size: var(--u-fs-xs); }
.u-exp-a { color: var(--u-t1); font: 500 var(--u-fs) var(--u-f-mono); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.u-exp-row > .u-badge { justify-self: end; }
.u-exp-row > .u-tag { justify-self: start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.u-exp-empty { padding: 26px 16px; color: var(--u-t3); text-align: center; }
/* A receipt stand-in: a small sheet with a folded corner, where the real photo goes. */
.u-receipt { position: relative; display: grid; place-items: center; width: 34px; height: 42px; border-radius: 5px; border: 1px solid var(--u-hair2); background: var(--u-lv3); box-shadow: var(--u-edge); color: var(--u-t4); overflow: hidden; }
.u-receipt .u-i { width: 15px; height: 15px; }
.u-receipt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.u-receipt--none { border-style: dashed; background: none; box-shadow: none; }
.u-expform { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.u-expform > .u-field--wide, .u-expform > .u-drop, .u-expform > .u-expform-f { grid-column: 1 / -1; }
.u-expform-f { display: flex; justify-content: flex-end; gap: 8px; }
.u-drop--sm { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 12px 14px; text-align: left; }
.u-drop--sm .u-drop-ic { width: 34px; height: 34px; flex: none; }
.u-drop--sm > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.u-drop--sm .u-receipt { margin-left: auto; }
@container u-exp (max-width: 620px) {
  .u-exp-tot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .u-exp-tot > div:nth-child(3) { border-left: 0; }
  .u-exp-tot > div:nth-child(n+3) { border-top: 1px solid var(--u-hair); }
  .u-exp-row { grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "r b a" "r t s"; gap: 4px 12px; }
  .u-exp-row > .u-receipt { grid-area: r; align-self: start; }
  .u-exp-row > .u-exp-b { grid-area: b; }
  .u-exp-row > .u-exp-a { grid-area: a; }
  .u-exp-row > .u-tag { grid-area: t; }
  .u-exp-row > .u-badge { grid-area: s; }
  .u-expform { grid-template-columns: minmax(0, 1fr); }
}

/* =============== Public proposal: cover, scope, optional line items, terms, accept and sign =============== */
.u-prop { container: u-prop / inline-size; display: flex; flex-direction: column; gap: 18px; max-width: 880px; margin: 0 auto; min-width: 0; }
.u-prop-cover { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 24px; border-radius: var(--u-r-xl); border: 1px solid var(--u-hair); background: var(--u-lv2); box-shadow: var(--u-sh-card); overflow: hidden; }
.u-prop-brand { display: flex; align-items: center; gap: 8px; color: var(--u-t1); font-weight: 600; }
.u-prop-brand > .u-badge { margin-left: auto; }
.u-prop-cover h1 { margin: 0; color: var(--u-t1); font-size: clamp(24px, 4cqi, 32px); font-weight: 600; line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; }
.u-prop-cover > p { margin: -6px 0 0; max-width: 60ch; color: var(--u-t3); font-size: var(--u-fs-md); line-height: 1.55; }
.u-prop-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding-top: 16px; border-top: 1px solid var(--u-hair); }
.u-prop-facts > div { min-width: 0; }
.u-prop-facts dt { color: var(--u-t4); font-size: var(--u-fs-xs); }
.u-prop-facts dd { margin: 2px 0 0; color: var(--u-t1); font-weight: 500; overflow-wrap: anywhere; }
.u-prop-sum { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.u-prop-sum > div { display: flex; flex-direction: column; gap: 2px; }
.u-prop-sum span { color: var(--u-t3); font-size: var(--u-fs-sm); }
.u-prop-sum b { color: var(--u-t1); font: 600 24px/1.1 var(--u-f-mono); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.u-prop-sec { padding: 20px 24px; border-radius: var(--u-r-xl); border: 1px solid var(--u-hair); background: var(--u-lv2); box-shadow: var(--u-sh-card); color: var(--u-t2); line-height: 1.6; }
.u-prop-sec > h2, .u-prop-sec > .u-sign-h > h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; color: var(--u-t1); font-size: var(--u-fs-lg); font-weight: 600; letter-spacing: -.015em; }
.u-prop-sec > h2 > .u-count { font-size: 11px; }
.u-prop-sec p { margin: 0 0 10px; }
.u-prop-sec ul { margin: 0; padding-left: 20px; }
.u-prop-sec li { margin: 3px 0; }
.u-prop-scope { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; margin-top: 12px; }
.u-prop-scope > div { padding: 12px; border-radius: var(--u-r-md); border: 1px solid var(--u-hair); background: var(--u-lv1); }
.u-prop-scope h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; color: var(--u-t1); font-size: var(--u-fs); font-weight: 500; }
.u-prop-scope h3 .u-i { color: var(--u-blue-t); }
.u-prop-scope p { margin: 0; font-size: var(--u-fs-sm); color: var(--u-t3); line-height: 1.5; }
/* Line items: optional rows carry a tick box; unticked rows fade and drop out of the totals. */
.u-pitems { margin: 4px 0 0; padding: 0; list-style: none; border-radius: var(--u-r-md); border: 1px solid var(--u-hair); overflow: hidden; }
.u-pitem, .u-pitems-h { display: grid; grid-template-columns: 24px minmax(0, 1fr) 54px 92px 100px; align-items: center; gap: 0 12px; padding: 10px 14px; }
.u-pitems-h { padding-top: 8px; padding-bottom: 8px; background: var(--u-lv1); color: var(--u-t4); font-size: var(--u-fs-xs); font-weight: 500; }
.u-pitems-h > span:nth-child(n+3) { text-align: right; }
.u-pitem { border-top: 1px solid var(--u-hair); }
.u-pitem-g { display: block; padding: 8px 14px 6px; border-top: 1px solid var(--u-hair); background: var(--u-lv1); color: var(--u-t3); font-size: var(--u-fs-xs); font-weight: 500; }
.u-pitem-b { min-width: 0; }
.u-pitem-n { display: block; color: var(--u-t1); font-weight: 500; }
.u-pitem-d { display: block; margin-top: 1px; color: var(--u-t3); font-size: var(--u-fs-sm); line-height: 1.45; }
.u-pitem-q, .u-pitem-p, .u-pitem-a { color: var(--u-t2); font: var(--u-fs) var(--u-f-mono); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.u-pitem-a { color: var(--u-t1); font-weight: 500; }
.u-pitem-a small, .u-pitem-p small { display: block; color: var(--u-t4); font: var(--u-fs-xs) var(--u-f-ui); }
.u-pitem-fix { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--u-ok-10); color: var(--u-ok-t); }
.u-pitem-fix .u-i { width: 11px; height: 11px; }
.u-pitem-opt { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; cursor: pointer; }
.u-pitem.is-off .u-pitem-n, .u-pitem.is-off .u-pitem-q, .u-pitem.is-off .u-pitem-p { color: var(--u-t3); }
.u-pitem.is-off .u-pitem-a { color: var(--u-t4); text-decoration: line-through; }
.u-pitem-tag { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 99px; background: var(--u-blue-10); color: var(--u-blue-t); font-size: 10.5px; font-weight: 500; vertical-align: 1px; }
.u-ptotals { display: flex; flex-direction: column; gap: 6px; margin: 12px 0 0 auto; width: min(100%, 320px); }
.u-ptotals > div { display: flex; justify-content: space-between; gap: 12px; color: var(--u-t3); }
.u-ptotals b { color: var(--u-t1); font: 500 var(--u-fs) var(--u-f-mono); font-variant-numeric: tabular-nums; }
.u-ptotals > .u-ptotals-big { padding-top: 8px; border-top: 1px solid var(--u-hair); color: var(--u-t1); font-weight: 500; }
.u-ptotals > .u-ptotals-big b { font-size: var(--u-fs-lg); font-weight: 600; }
.u-ptotals small { color: var(--u-t4); font-size: var(--u-fs-xs); }
/* Accept and sign */
.u-sign { display: flex; flex-direction: column; gap: 14px; }
.u-sign-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.u-sign-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.u-prop-sec > .u-sign-h { margin-bottom: 10px; }
.u-prop-sec > .u-sign-h > h2 { margin: 0; }
.u-sigpad { position: relative; height: 150px; border-radius: var(--u-r-md); border: 1px solid var(--u-hair2); background: var(--u-fld); box-shadow: var(--u-fld-in); touch-action: none; overflow: hidden; }
.u-sigpad:focus-within { border-color: var(--u-blue); box-shadow: var(--u-fld-in), var(--u-ring); }
.u-sigpad > canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
.u-sigpad > canvas:focus { outline: 0; }
.u-sigpad-line { position: absolute; left: 18px; right: 18px; bottom: 36px; display: flex; align-items: flex-end; gap: 6px; border-bottom: 1px solid var(--u-hair3); color: var(--u-t4); font-size: var(--u-fs-sm); pointer-events: none; }
.u-sigpad-hint { position: absolute; left: 0; right: 0; top: 46px; color: var(--u-t4); font-size: var(--u-fs-sm); text-align: center; pointer-events: none; transition: opacity var(--u-fast); }
.u-sigpad.is-inked .u-sigpad-hint { opacity: 0; }
.u-sigpad > .u-btn { position: absolute; top: 8px; right: 8px; }
.u-sigpad.is-invalid, .u-sigtype.is-invalid { border-color: var(--u-bad); }
.u-sigtype { display: flex; align-items: flex-end; height: 150px; padding: 0 18px 30px; border-radius: var(--u-r-md); border: 1px solid var(--u-hair2); background: var(--u-fld); box-shadow: var(--u-fld-in); }
/* Signature lettering: a system cursive face (nothing downloaded), italic Geist as the fallback. */
.u-sigtype-v, .u-sign-done-sig span { display: block; width: 100%; padding-bottom: 6px; border-bottom: 1px solid var(--u-hair3); color: var(--u-t1); font: italic 400 30px/1.2 "Segoe Script", "Brush Script MT", "Snell Roundhand", cursive, var(--u-f-ui); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-sigtype-v:empty::before { content: attr(data-empty); color: var(--u-t4); font: var(--u-fs-sm) var(--u-f-ui); font-style: normal; }
.u-sign-err { color: var(--u-bad-t); font-size: var(--u-fs-xs); }
.u-sign-f { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 4px; }
.u-sign-done { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 16px; text-align: center; animation: u-rise var(--u-slow) var(--u-ease); }
.u-sign-done:focus { outline: 0; }
.u-sign-done-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--u-ok-10); color: var(--u-ok-t); }
.u-sign-done h3 { margin: 0; color: var(--u-t1); font-size: var(--u-fs-lg); font-weight: 600; }
.u-sign-done p { margin: 0; max-width: 46ch; color: var(--u-t3); }
.u-sign-done-sig { width: min(100%, 340px); margin: 6px 0; padding: 12px 16px 10px; border-radius: var(--u-r-md); border: 1px solid var(--u-hair); background: var(--u-fld); }
.u-sign-done-sig canvas { display: block; width: 100%; height: 90px; }
.u-sign-done-sig small { display: block; margin-top: 6px; color: var(--u-t4); font-size: var(--u-fs-xs); text-align: left; }
@container u-prop (max-width: 640px) {
  .u-prop-cover, .u-prop-sec { padding: 16px; }
  .u-prop-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .u-pitems-h { display: none; }
  .u-pitem { grid-template-columns: 24px minmax(0, 1fr) auto; grid-template-areas: "c b b" "c q a"; gap: 6px 10px; }
  .u-pitem > :first-child { grid-area: c; align-self: start; }
  .u-pitem-b { grid-area: b; }
  .u-pitem-q { grid-area: q; text-align: left; color: var(--u-t3); font-size: var(--u-fs-sm); }
  .u-pitem-p { display: none; }
  .u-pitem-a { grid-area: a; }
  .u-ptotals { width: 100%; }
  .u-sign-row { grid-template-columns: minmax(0, 1fr); }
  .u-sign-f { flex-direction: column-reverse; align-items: stretch; }
  .u-sign-f > .u-btn { display: flex; width: 100%; }
}
/* the "Qty × Price" read-out only shows where the separate columns do not */
.u-pitem-qx { display: none; }
@container u-prop (max-width: 640px) { .u-pitem-qx { display: inline; } .u-pitem-q1 { display: none; } }

/* =============== Website: plans with a billing switch =============== */
.u-plans { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.u-billing { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.u-billing .u-ptabs > button { min-width: 84px; }
.u-plans-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; width: 100%; align-items: stretch; }
.u-plans-g > .u-price.is-featured { transform: translateY(-6px); }
.u-plan-v { display: inline-block; transition: opacity .18s ease-out, transform .25s var(--u-ease); }
.u-price-v > .u-plan-v + .u-plan-v { margin-left: 5px; }
.u-plan-v.is-swap { opacity: 0; transform: translateY(-6px); }
.u-plan-note { color: var(--u-t4); font-size: var(--u-fs-xs); text-align: center; }
.u-price > p { margin: -4px 0 0; color: var(--u-t3); font-size: var(--u-fs-sm); line-height: 1.5; }
@media (max-width: 820px) {
  .u-plans-g { grid-template-columns: minmax(0, 1fr); max-width: 420px; }
  .u-plans-g > .u-price.is-featured { transform: none; order: -1; }
}
@container u-frame (max-width: 820px) {
  .u-plans-g { grid-template-columns: minmax(0, 1fr); max-width: 420px; }
  .u-plans-g > .u-price.is-featured { transform: none; order: -1; }
}

/* =============== Website: a scroll scene (sticky stage, steps change as you scroll) =============== */
/* The scene is as tall as its steps; the stage sticks while the reader scrolls through it.
   --scene-h is the stage height: the window by default, a scroll box's height inside one.
   Steps and stage layers only fade and slide (transform, opacity). */
.u-scene { --scene-h: 100vh; position: relative; height: calc(var(--scene-n, 3) * var(--scene-h)); }
.u-scene-pin { position: sticky; top: 0; height: var(--scene-h); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 32px; padding: 0 32px; overflow: hidden; }
.u-scene-text { position: relative; display: grid; }
.u-scene-step { grid-area: 1 / 1; opacity: 0; transform: translateY(18px); transition: opacity .4s var(--u-ease), transform .5s var(--u-ease); pointer-events: none; }
.u-scene-step.is-on { opacity: 1; transform: none; pointer-events: auto; }
.u-scene-step.is-past { transform: translateY(-18px); }
.u-scene-k { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--u-blue-t); font-size: var(--u-fs-sm); font-weight: 500; }
.u-scene-k > b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--u-blue-10); font: 600 11px/1 var(--u-f-mono); }
.u-scene-step h3 { margin: 0; color: var(--u-t1); font-size: clamp(22px, 3.2vw, 30px); font-weight: 600; line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; }
.u-scene-step p { margin: 10px 0 0; max-width: 40ch; color: var(--u-t3); font-size: var(--u-fs-md); line-height: 1.55; }
.u-scene-vis { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--u-r-xl); border: 1px solid var(--u-hair); background: var(--u-lv2); box-shadow: var(--u-sh-pop); }
.u-scene-l { transition: opacity .45s var(--u-ease), transform .55s var(--u-ease); }
.u-scene-l[data-scene-from]:not(.is-on) { opacity: 0; transform: translateY(14px) scale(.98); }
.u-scene-dots { position: absolute; right: 12px; top: 50%; display: flex; flex-direction: column; gap: 4px; transform: translateY(-50%); }
.u-scene-dots > button { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: none; }
.u-scene-dots > button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--u-hair3); transition: transform .25s var(--u-ease); }
.u-scene-dots > button[aria-current="step"]::before { background: var(--u-blue); transform: scale(1.35); }
.u-scene-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--u-hair); }
.u-scene-bar > i { position: absolute; inset: 0; background: var(--u-grad); transform-origin: left; transform: scaleX(0); }
/* Sample stage pieces: device tiles, a patch bar, a report card. */
.u-scene-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.u-scene-tile { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: var(--u-r); border: 1px solid var(--u-hair); background: var(--u-lv1); color: var(--u-t2); font-size: var(--u-fs-xs); min-width: 0; }
.u-scene-tile > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-scene-tile .u-dotst { flex: none; }
.u-scene-patch { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: var(--u-r); border: 1px solid var(--u-hair); background: var(--u-lv1); font-size: var(--u-fs-sm); color: var(--u-t2); }
.u-scene-patch .u-progress > i { transition: transform 1.2s var(--u-ease); }
.u-scene-report { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: var(--u-r); border: 1px solid color-mix(in srgb, var(--u-ok) 35%, transparent); background: var(--u-ok-10); color: var(--u-t1); }
.u-scene-report > .u-i { color: var(--u-ok-t); }
.u-scene-report small { display: block; color: var(--u-t3); font-size: var(--u-fs-xs); }
@media (max-width: 760px) {
  .u-scene-pin { grid-template-columns: minmax(0, 1fr); align-content: center; gap: 18px; padding: 0 44px 0 16px; }
  .u-scene-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .u-scene-tile:nth-child(n+5) { display: none; }
}
@container u-frame (max-width: 760px) {
  .u-scene-pin { grid-template-columns: minmax(0, 1fr); align-content: center; gap: 18px; padding: 0 44px 0 16px; }
  .u-scene-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .u-scene-tile:nth-child(n+5) { display: none; }
}
/* Reduced motion: no pinning and nothing to scroll through; every step shows, in order. */
@media (prefers-reduced-motion: reduce) {
  .u-scene { height: auto; }
  .u-scene-pin { position: static; height: auto; padding-top: 8px; padding-bottom: 24px; align-items: start; }
  .u-scene-text { display: flex; flex-direction: column; gap: 22px; }
  .u-scene-step, .u-scene-step.is-past, .u-scene-l[data-scene-from]:not(.is-on) { opacity: 1; transform: none; pointer-events: auto; }
  .u-scene-dots, .u-scene-bar { display: none; }
}

/* =============== Website: multi-step quote request =============== */
.u-qform { container: u-qform / inline-size; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.u-qform-prog { display: flex; flex-direction: column; gap: 10px; }
.u-qform-prog .u-wizard { justify-content: space-between; flex-wrap: nowrap; }
.u-qform-prog .u-wizard > li { flex: 1; min-width: 0; }
.u-qform-prog .u-wizard > li:last-child { flex: none; }
.u-qform-prog .u-wizard > li + li::before { flex: 1; width: auto; min-width: 12px; }
.u-qform-prog .u-wizard > li > span { overflow: hidden; text-overflow: ellipsis; }
.u-qform-step { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; border: 0; min-width: 0; animation: u-rise var(--u-slow) var(--u-ease); }
.u-qform-step[hidden] { display: none; }
.u-qform-step > legend { padding: 0; margin-bottom: 2px; color: var(--u-t1); font-size: var(--u-fs-lg); font-weight: 600; letter-spacing: -.015em; }
.u-qform-step > legend:focus { outline: 0; }
.u-qform-step > p { margin: -8px 0 0; color: var(--u-t3); }
.u-qform-err { display: flex; align-items: center; gap: 6px; color: var(--u-bad-t); font-size: var(--u-fs-sm); }
.u-qform-err[hidden] { display: none; }
.u-qform-nav { display: flex; align-items: center; gap: 8px; padding-top: 14px; border-top: 1px solid var(--u-hair); }
.u-qform-nav > .u-sp { flex: 1; }
.u-qform-nav > span { color: var(--u-t4); font-size: var(--u-fs-xs); }
/* Pick cards: a real tick box or radio inside a label, drawn as a card. */
.u-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 8px; }
.u-pick { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 12px; border-radius: var(--u-r-md); border: 1px solid var(--u-hair); background: var(--u-lv2); box-shadow: var(--u-edge); color: var(--u-t2); cursor: pointer; }
.u-pick:hover { border-color: var(--u-hair2); background: var(--u-lv3); }
.u-pick:has(input:checked) { border-color: color-mix(in srgb, var(--u-blue) 60%, transparent); background: var(--u-blue-10); box-shadow: 0 0 0 1px color-mix(in srgb, var(--u-blue) 30%, transparent); }
.u-pick:has(input:focus-visible) { box-shadow: var(--u-ring); }
.u-pick > input { position: absolute; top: 12px; right: 12px; }
.u-pick-ic { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 8px; background: var(--u-lv3); border: 1px solid var(--u-hair); color: var(--u-t2); }
.u-pick:has(input:checked) .u-pick-ic { color: var(--u-blue-t); }
.u-pick b { display: block; padding-right: 22px; color: var(--u-t1); font-weight: 500; }
.u-pick small { display: block; margin-top: 2px; color: var(--u-t3); font-size: var(--u-fs-sm); line-height: 1.4; }
.u-pick--plain { align-items: center; }
.u-picks.is-invalid .u-pick { border-color: color-mix(in srgb, var(--u-bad) 45%, transparent); }
.u-qform-sum { display: grid; grid-template-columns: minmax(90px, max-content) 1fr; gap: 6px 16px; margin: 4px 0 0; text-align: left; }
.u-qform-sum dt { color: var(--u-t3); }
.u-qform-sum dd { margin: 0; color: var(--u-t1); overflow-wrap: anywhere; }
@container u-qform (max-width: 520px) {
  .u-qform-prog .u-wizard > li > span { display: none; }
  .u-qform-prog .u-wizard > li.is-on > span { display: inline; }
}

/* =============== Website: logo use =============== */
.u-logouse { container: u-logouse / inline-size; display: flex; flex-direction: column; gap: 14px; }
.u-logouse-g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
/* Each panel carries its own data-theme in the markup, so the dark one stays dark and the
   light one stays light whatever the page shows. Colours still come from the tokens. */
.u-logouse-p { position: relative; display: grid; place-items: center; min-height: 150px; padding: 26px 16px 34px; border-radius: var(--u-r-lg); border: 1px solid var(--u-hair); background: var(--u-lv1); color: var(--u-t1); }
.u-logouse-p > small { position: absolute; left: 12px; bottom: 10px; color: var(--u-t3); font-size: var(--u-fs-xs); }
.u-lockup { display: inline-flex; align-items: center; gap: 10px; color: var(--u-t1); font-size: 19px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.u-lockup > .u-logo { width: 34px; height: 34px; border-radius: 10px; font-size: 15px; }
/* Clear space: a dashed box one mark-height (X) away on every side. */
.u-logouse-cs { position: relative; display: inline-flex; padding: 34px; border: 1px dashed color-mix(in srgb, var(--u-blue) 55%, transparent); border-radius: 4px; }
.u-logouse-cs > i { position: absolute; display: grid; place-items: center; color: var(--u-blue-t); font: 600 10px/1 var(--u-f-mono); font-style: normal; }
.u-logouse-cs > i:nth-of-type(1) { left: 0; right: 0; top: 0; height: 34px; }
.u-logouse-cs > i:nth-of-type(2) { top: 0; bottom: 0; left: 0; width: 34px; }
.u-logouse-cs > i:nth-of-type(3) { left: 0; right: 0; bottom: 0; height: 34px; }
.u-logouse-cs > i:nth-of-type(4) { top: 0; bottom: 0; right: 0; width: 34px; }
.u-logouse-min { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px; }
.u-logouse-min > div { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; color: var(--u-t3); font-size: var(--u-fs-xs); }
.u-logouse-min .u-lockup--sm { gap: 6px; font-size: 13px; }
.u-logouse-min .u-lockup--sm > .u-logo { width: 24px; height: 24px; border-radius: 7px; font-size: 11px; }
.u-logouse-min .u-lockup--xs > .u-logo { width: 16px; height: 16px; border-radius: 5px; font-size: 8px; }
.u-logouse-rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; margin: 0; padding: 0; list-style: none; }
.u-logouse-rules li { display: flex; align-items: flex-start; gap: 8px; color: var(--u-t2); font-size: var(--u-fs-sm); line-height: 1.45; }
.u-logouse-rules .u-i { margin-top: 1px; width: 14px; height: 14px; }
.u-logouse-rules .is-do .u-i { color: var(--u-ok-t); }
.u-logouse-rules .is-dont .u-i { color: var(--u-bad-t); }
@container u-logouse (max-width: 560px) {
  .u-logouse-g, .u-logouse-rules { grid-template-columns: minmax(0, 1fr); }
  .u-logouse-cs { padding: 26px; }
  .u-logouse-cs > i:nth-of-type(odd) { height: 26px; }
  .u-logouse-cs > i:nth-of-type(even) { width: 26px; }
}

/* =============== Phone: 40px targets where these pieces have small ones =============== */
@media (max-width: 640px) {
  .u-pnav-gh { height: 40px; }
  .u-pnav-bar > button { min-height: 40px; }
  .u-toc a { padding-top: 10px; padding-bottom: 10px; }
  .u-lesson { min-height: 44px; }
  .u-pitem-opt { width: 40px; height: 40px; margin: -8px; }
  .u-scene-dots > button { width: 32px; height: 32px; }
  .u-pnav-tile { min-height: 72px; }
  .u-docs.is-list .u-doc { min-height: 48px; }
}
@container u-frame (max-width: 640px) {
  .u-pnav-gh { height: 40px; }
  .u-pnav-bar > button { min-height: 40px; }
  .u-toc a { padding-top: 10px; padding-bottom: 10px; }
  .u-lesson { min-height: 44px; }
  .u-pitem-opt { width: 40px; height: 40px; margin: -8px; }
  .u-scene-dots > button { width: 32px; height: 32px; }
  .u-pnav-tile { min-height: 72px; }
  .u-docs.is-list .u-doc { min-height: 48px; }
}

/* ---- umbra-tray.css ---- */
/* ==========================================================================
   Umbra Tray App: pieces for the ITX Support Agent tray window (two-line header, quoted replies, reply preview,
   translation line, temporary login card, unread bar, speed-test number, Windows-style notification, taskbar count,
   priority dots).
   Part of css/umbra.css (tools/build.mjs). Uses only --u-* tokens, so dark and light both work.
   ========================================================================== */

/* ---------- Tray window frame (.u-traywin): the Support Agent's small window, about 380 × 600 ---------- */
.u-traywin { display: flex; flex-direction: column; width: min(380px, 100%); height: 600px; min-width: 0; border-radius: var(--u-r); border: 1px solid var(--u-hair2); background: var(--u-lv1); box-shadow: var(--u-sh-pop); color: var(--u-t2); overflow: hidden; }
.u-traywin > .u-tabs { flex: none; padding: 0 6px; background: var(--u-lv0); }
.u-traywin > .u-tabs .u-tab { height: 34px; padding: 0 9px; }
.u-traywin-p { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: auto; }
.u-traywin-p > .u-chat { flex: 1; min-height: 0; overflow: auto; padding: 12px; }
.u-traywin-p > .u-composer { flex: none; margin: 0 8px 8px; }
.u-traywin-p > .u-tlist { flex: 1; overflow: auto; }
.u-traywin-pad { display: grid; gap: 10px; padding: 12px; align-content: start; }
.u-traywin-f { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-top: 1px solid var(--u-hair); background: var(--u-lv0); color: var(--u-t4); font-size: var(--u-fs-xs); }
.u-traywin-f > .u-btn { margin-left: auto; }
.u-traywin .u-msg { max-width: 88%; }

/* ---------- Two-line tray header (.u-trayh). The whole bar drags the window (app-region), its buttons don't. ---------- */
.u-trayh { display: flex; align-items: center; gap: 10px; flex: none; height: 48px; padding: 0 6px 0 12px; border-bottom: 1px solid var(--u-hair); background: var(--u-lv0); user-select: none; -webkit-app-region: drag; app-region: drag; }
.u-trayh button, .u-trayh a, .u-trayh input, .u-trayh [tabindex] { -webkit-app-region: no-drag; app-region: no-drag; }
.u-trayh > .u-logo { width: 26px; height: 26px; }
.u-trayh-t { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.u-trayh-t > b { overflow: hidden; color: var(--u-t1); font-size: var(--u-fs); font-weight: 600; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.u-trayh-s { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--u-t3); font-size: var(--u-fs-xs); line-height: 1.2; }
.u-trayh-s > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-trayh-s > .u-dotst { width: 7px; height: 7px; }
.u-trayh-acts { display: flex; gap: 2px; margin-left: auto; }
/* Close turns red on hover, as Windows does */
.u-trayh-x:hover { background: var(--u-bad-fill); border-color: transparent; box-shadow: none; color: var(--u-on-accent); }

/* ---------- Quoted reply inside a bubble (.u-rquote, a button that jumps to the message it answers) ---------- */
.u-rquote { display: grid; gap: 1px; width: 100%; min-width: 0; margin: 0 0 6px; padding: 5px 9px 5px 10px; border: 0; border-radius: 0 8px 8px 0; background: var(--u-gray-10); box-shadow: inset 2px 0 0 var(--u-blue); color: var(--u-t3); font: inherit; text-align: left; cursor: pointer; }
.u-rquote:hover { background: var(--u-active); }
.u-rquote > b { color: var(--u-t1); font-size: var(--u-fs-xs); font-weight: 600; line-height: 1.35; }
.u-rquote > span { overflow: hidden; font-size: var(--u-fs-sm); line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
/* On a blue bubble the quote sits darker, so white text keeps its contrast */
.u-msg--out .u-rquote { background: color-mix(in srgb, var(--u-bp-bd) 70%, transparent); box-shadow: inset 2px 0 0 var(--u-on-accent); color: var(--u-on-accent); }
.u-msg--out .u-rquote:hover { background: var(--u-bp-bd); }
.u-msg--out .u-rquote > b { color: var(--u-on-accent); }
.u-msg--out .u-rquote:focus-visible { outline-color: var(--u-on-accent); outline-offset: -2px; }
/* The message it jumped to rings once (an overlay that fades, so nothing but opacity moves) */
.u-msg.u-jumped .u-bubble::after, .u-cmsg.u-jumped::after { content: ""; position: absolute; inset: -3px; border-radius: 16px; box-shadow: 0 0 0 2px var(--u-warn); pointer-events: none; animation: u-tray-ring 1.6s var(--u-ease) forwards; }
.u-cmsg.u-jumped::after { inset: 0; border-radius: 0; box-shadow: inset 2px 0 0 var(--u-warn), inset 0 0 0 999px var(--u-warn-10); }
@keyframes u-tray-ring { 0% { opacity: 0; } 15%, 60% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- Reply preview above the message box (.u-replybar, first child of .u-composer) ---------- */
.u-replybar { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 5px 3px 5px 10px; border-radius: 0 8px 8px 0; background: var(--u-lv2); box-shadow: inset 2px 0 0 var(--u-blue), var(--u-edge); animation: u-rise var(--u-med) var(--u-ease); }
.u-replybar > .u-i { flex: none; width: 14px; height: 14px; color: var(--u-blue-t); }
.u-replybar-b { flex: 1; display: grid; gap: 1px; min-width: 0; }
.u-replybar-b > b { color: var(--u-t1); font-size: var(--u-fs-xs); font-weight: 600; }
.u-replybar-b > span { overflow: hidden; color: var(--u-t3); font-size: var(--u-fs-sm); text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Translation line under a message (.u-xlate) ---------- */
.u-xlate { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 6px; margin-top: 3px; color: var(--u-t4); font-size: var(--u-fs-xs); }
.u-xlate > .u-i { width: 12px; height: 12px; flex: none; }
.u-xlate-sep { color: var(--u-t4); }
.u-xlate-btn { padding: 0 2px; border: 0; border-radius: 3px; background: none; color: var(--u-blue-t); font: inherit; font-weight: 500; cursor: pointer; }
.u-xlate-btn:hover { text-decoration: underline; }
.u-msg--out .u-xlate { justify-content: flex-end; }

/* ---------- Temporary login card (.u-tmplogin). Values live only in umbra.js, never in attributes or tooltips. ---------- */
.u-tmplogin { display: grid; gap: 10px; min-width: 0; padding: 12px; border-radius: var(--u-r-lg); border: 1px solid var(--u-hair); background: var(--u-lv2); box-shadow: var(--u-sh-card); color: var(--u-t2); }
.u-tmplogin-h { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; min-width: 0; }
.u-tmplogin-ic { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--u-blue-10); color: var(--u-blue-t); }
.u-tmplogin-ic .u-i { width: 15px; height: 15px; }
.u-tmplogin-t { flex: 1 1 150px; display: grid; gap: 1px; min-width: 0; }
.u-tmplogin-t > b { color: var(--u-t1); font-size: var(--u-fs); font-weight: 600; }
.u-tmplogin-t > span { overflow: hidden; color: var(--u-t3); font-size: var(--u-fs-xs); text-overflow: ellipsis; white-space: nowrap; }
.u-tmplogin-exp { display: inline-flex; margin-left: auto; align-items: center; gap: 5px; flex: none; height: 22px; padding: 0 8px; border-radius: 99px; border: 1px solid var(--u-hair2); color: var(--u-t3); font-size: var(--u-fs-xs); white-space: nowrap; }
.u-tmplogin-exp > .u-i { width: 12px; height: 12px; }
.u-tmplogin-exp > b { color: var(--u-t1); font: 600 var(--u-fs-xs) var(--u-f-mono); font-variant-numeric: tabular-nums; }
.u-tmplogin-exp.is-warn { border-color: color-mix(in srgb, var(--u-warn) 45%, transparent); color: var(--u-warn-t); }
.u-tmplogin-exp.is-warn > b { color: var(--u-warn-t); }
.u-tmplogin-f { display: grid; gap: 6px; margin: 0; }
.u-tmplogin-r { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 36px; padding: 3px 3px 3px 10px; border-radius: 8px; border: 1px solid var(--u-hair); background: var(--u-sunken); box-shadow: var(--u-fld-in); }
.u-tmplogin-r > dt { color: var(--u-t3); font-size: var(--u-fs-sm); }
.u-tmplogin-r > dd { margin: 0; min-width: 0; overflow: hidden; color: var(--u-t1); font: 500 var(--u-fs) var(--u-f-mono); text-overflow: ellipsis; white-space: nowrap; }
.u-tmplogin-r > dd.is-masked { color: var(--u-t2); letter-spacing: .14em; }
.u-tmplogin-a { display: flex; gap: 2px; }
.u-tmplogin-note { margin: 0; color: var(--u-t4); font-size: var(--u-fs-xs); }
.u-tmplogin-f2 { display: flex; align-items: center; gap: 8px; }
.u-tmplogin-f2 > .u-btn { margin-left: auto; }
.u-tmplogin.is-expired .u-tmplogin-ic { background: var(--u-gray-10); color: var(--u-t4); }
.u-tmplogin.is-expired .u-tmplogin-r > dd { color: var(--u-t4); font-family: var(--u-f-ui); letter-spacing: 0; }

/* ---------- Ticket rows with a red unread bar (.u-tlist > li > .u-trow) ---------- */
.u-tlist { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 4px; list-style: none; }
.u-trow { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3px 10px; width: 100%; padding: 8px 10px 8px 15px; border: 1px solid transparent; border-radius: 9px; background: none; color: var(--u-t2); font: inherit; text-align: left; cursor: pointer; }
.u-trow:hover { background: var(--u-hover); }
.u-trow[aria-current="true"] { border-color: var(--u-hair); background: var(--u-lv3); box-shadow: var(--u-sh-row); }
.u-trow::before { content: ""; position: absolute; left: 5px; top: 9px; bottom: 9px; width: 3px; border-radius: 2px; background: var(--u-bad); opacity: 0; transform: scaleY(.4); transition: opacity .2s var(--u-ease), transform .25s var(--u-ease); }
.u-trow.is-unread::before { opacity: 1; transform: none; }
.u-trow-t { grid-column: 1; overflow: hidden; color: var(--u-t2); font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.u-trow.is-unread .u-trow-t { color: var(--u-t1); font-weight: 600; }
.u-trow-s { grid-column: 1; display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--u-t3); font-size: var(--u-fs-sm); }
.u-trow-s > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-trow-no { flex: none; font-family: var(--u-f-mono); font-size: var(--u-fs-xs); }
.u-trow-m { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; color: var(--u-t4); font-size: var(--u-fs-xs); white-space: nowrap; }

/* ---------- Big live number for a speed test (.u-speed) ---------- */
.u-speed { display: grid; gap: 14px; min-width: 0; padding: 16px; border-radius: var(--u-r-lg); border: 1px solid var(--u-hair); background: var(--u-lv2); box-shadow: var(--u-sh-card); text-align: center; }
.u-speed-k { color: var(--u-t3); font-size: var(--u-fs-sm); font-weight: 500; }
.u-speed-n { display: flex; align-items: baseline; justify-content: center; gap: 6px; color: var(--u-t1); }
/* A fixed width in digits and tabular figures: the number changes, nothing around it moves */
.u-speed-n > b { display: inline-block; width: 6ch; font: 600 46px/1 var(--u-f-mono); font-variant-numeric: tabular-nums; letter-spacing: -.03em; text-align: right; }
.u-speed-n > span { width: 4ch; color: var(--u-t3); font-size: var(--u-fs-md); font-weight: 500; text-align: left; }
.u-speed-n > b.is-none { color: var(--u-t4); text-align: center; }
.u-speed-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; }
.u-speed-stats > div { display: grid; gap: 3px; padding: 8px 6px; border-radius: 8px; border: 1px solid var(--u-hair); background: var(--u-sunken); box-shadow: var(--u-fld-in); }
.u-speed-stats dt { display: flex; align-items: center; justify-content: center; gap: 4px; color: var(--u-t3); font-size: var(--u-fs-xs); }
.u-speed-stats dt .u-i { width: 12px; height: 12px; }
.u-speed-stats dd { margin: 0; color: var(--u-t1); font: 600 var(--u-fs-md) var(--u-f-mono); font-variant-numeric: tabular-nums; }
.u-speed-stats dd small { margin-left: 3px; color: var(--u-t3); font: 500 var(--u-fs-xs) var(--u-f-ui); }
.u-speed-stats dd.is-none { color: var(--u-t4); }
.u-speed-stats > div.is-on { border-color: color-mix(in srgb, var(--u-blue) 55%, transparent); }
.u-speed-stats > div.is-on dt { color: var(--u-blue-t); }
.u-speed-f { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 28px; color: var(--u-t4); font-size: var(--u-fs-xs); }
.u-speed .u-progress { margin: 0 8px; }

/* ---------- Windows-style notification (.u-wtoasts > .u-wtoast) ---------- */
.u-wtoasts { position: fixed; z-index: var(--u-z-toast); right: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 8px; width: min(364px, calc(var(--u-vw, 100vw) - 24px)); pointer-events: none; }
.u-wtoast { display: grid; gap: 8px; min-width: 0; padding: 8px 12px 12px; border-radius: var(--u-r); border: 1px solid var(--u-hair2); background: var(--u-lv3); box-shadow: var(--u-sh-pop); color: var(--u-t2); pointer-events: auto; animation: u-wtoast-in .4s var(--u-ease); }
.u-wtoast.is-closing { animation: u-wtoast-out .2s ease-in forwards; }
.u-wtoast.is-static { animation: none; }
@keyframes u-wtoast-in { from { opacity: 0; transform: translateX(48px); } }
@keyframes u-wtoast-out { to { opacity: 0; transform: translateX(32px); } }
.u-wtoast-h { display: flex; align-items: center; gap: 8px; min-height: 24px; color: var(--u-t3); font-size: var(--u-fs-xs); }
.u-wtoast-h > .u-logo { width: 16px; height: 16px; border-radius: 4px; font-size: 8px; box-shadow: none; }
.u-wtoast-h > .u-ibtn { --h: 24px; margin-left: auto; }
.u-wtoast-c { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.u-wtoast-b { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.u-wtoast-b > b { display: block; color: var(--u-t1); font-size: var(--u-fs); font-weight: 600; line-height: 1.35; }
.u-wtoast-b > p { display: -webkit-box; margin: 2px 0 0; overflow: hidden; color: var(--u-t2); font-size: var(--u-fs-sm); line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.u-wtoast-a { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 8px; }
.u-wtoast-a > .u-btn { width: 100%; min-width: 0; }

/* ---------- Count bubble on a taskbar icon (.u-tbicon > .u-tbcount), on a stand-in .u-wtaskbar ---------- */
.u-wtaskbar { display: flex; align-items: center; gap: 2px; min-width: 0; height: 48px; padding: 0 8px; border-radius: var(--u-r-md); border: 1px solid var(--u-hair); background: var(--u-lv0); box-shadow: var(--u-edge); }
.u-wtaskbar-sp { flex: 1; }
.u-wtaskbar-clock { color: var(--u-t2); font-size: var(--u-fs-xs); line-height: 1.3; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.u-tbicon { position: relative; display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--u-t2); cursor: pointer; }
.u-tbicon:hover { background: var(--u-hover); }
.u-tbicon[aria-expanded="true"], .u-tbicon.is-on { background: var(--u-active); }
.u-tbicon[aria-expanded="true"]::after, .u-tbicon.is-on::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 14px; height: 3px; margin-left: -7px; border-radius: 2px; background: var(--u-blue); }
.u-tbicon > .u-i { width: 20px; height: 20px; }
.u-tbicon > .u-logo { width: 22px; height: 22px; }
.u-tbcount { position: absolute; top: 2px; right: 1px; display: inline-grid; place-items: center; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--u-bad-fill); box-shadow: 0 0 0 2px var(--u-lv0); color: var(--u-on-accent); font: 600 var(--u-fs-xs)/1 var(--u-f-ui); font-variant-numeric: tabular-nums; pointer-events: none; }
.u-tbcount.is-bump { animation: u-tray-bump .35s var(--u-ease); }
@keyframes u-tray-bump { 40% { transform: scale(1.25); } }

/* ---------- Priority dots (.u-prio.u-prio--dot): ops' .u-prio without the pill. Low is a hollow ring, so the four
   differ by more than colour. ---------- */
.u-prio--dot { justify-content: center; gap: 0; width: 12px; height: 12px; padding: 0; border: 0; vertical-align: middle; }
.u-prio--dot::before { width: 8px; height: 8px; border-radius: 50%; background: var(--c); transform: none; }
.u-prio--dot:not([data-p])::before, .u-prio--dot[data-p="low"]::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--u-t4); }
.u-prio--dot[data-p="normal"] { --c: var(--u-blue); }
.u-prio--dot[data-p="high"] { --c: var(--u-warn-t); }
.u-prio--dot[data-p="urgent"] { --c: var(--u-bad-t); border: 0; }
.u-prio--dot[data-p="urgent"]::before { box-shadow: 0 0 0 3px var(--u-bad-10); }
.u-priokey { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; color: var(--u-t2); font-size: var(--u-fs-sm); }
.u-priokey > li { display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 640px) {
  .u-traywin { height: min(600px, 80vh); }
  .u-wtoasts { left: 12px; right: 12px; width: auto; }
  .u-wtoast-h > .u-ibtn { --h: 32px; }
  .u-speed-n > b { font-size: 38px; }
  .u-tmplogin-r { grid-template-columns: minmax(0, 1fr) auto; }
  .u-tmplogin-r > dt { grid-column: 1 / -1; padding-top: 4px; font-size: var(--u-fs-xs); }
}
@container u-frame (max-width: 640px) {
  .u-traywin { height: min(600px, 80vh); }
  .u-wtoasts { left: 12px; right: 12px; width: auto; }
  .u-wtoast-h > .u-ibtn { --h: 32px; }
  .u-speed-n > b { font-size: 38px; }
  .u-tmplogin-r { grid-template-columns: minmax(0, 1fr) auto; }
  .u-tmplogin-r > dt { grid-column: 1 / -1; padding-top: 4px; font-size: var(--u-fs-xs); }
}
@media (prefers-reduced-motion: reduce) {
  .u-trow::before { transform: none; }
  .u-tbcount.is-bump { animation: none; }
}

/* ---- umbra-insights.css ---- */
/* ==========================================================================
   Umbra Insights: Heat maps, chart reference lines, ranked bars and the density setting.
   Part of css/umbra.css (tools/build.mjs). Uses only --u-* tokens, so dark and light both work.
   ========================================================================== */

/* ---------- Heat map (.u-heat, built by Umbra.heatmap). Rows and columns of cells shaded in five steps of --u-blue.
   A cell's ::before is --u-blue at an opacity per step: on the cell's faint wash that reads as
   color-mix(--u-blue n%, the surface), and a new number fades by opacity alone. ---------- */
.u-heat { --lw: 36px; --cw: 13px; display: grid; gap: 10px; min-width: 0; }
/* Scrolls sideways only when the cells would fall under 10px (a phone with 24 columns). The padding keeps the focus ring inside. */
.u-heat-scroll { min-width: 0; overflow-x: auto; padding: 4px; margin: -4px; }
.u-heat-grid { display: grid; gap: 3px; min-width: calc(var(--lw) + var(--cols, 7) * var(--cw)); }
.u-heat-grid.u-heat-in { animation: u-fade var(--u-med) var(--u-ease); }
.u-heat-row { display: grid; grid-template-columns: var(--lw) repeat(var(--cols, 7), minmax(10px, 1fr)); align-items: center; gap: 3px; }
.u-heat-rh { overflow: hidden; color: var(--u-t3); font-size: var(--u-fs-xs); line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
/* Column labels may be wider than a cell: a centred flex item overflows evenly on both sides */
.u-heat-ch { display: flex; justify-content: center; min-width: 0; height: 14px; color: var(--u-t4); font: var(--u-fs-xs)/14px var(--u-f-mono); white-space: nowrap; }
.u-heat-cell { position: relative; display: block; height: 20px; border-radius: var(--u-r-xs); background: var(--u-gray-10); cursor: default; }
.u-heat-cell::before, .u-heat-cell::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.u-heat-cell::before { background: var(--u-blue); opacity: 0; transition: opacity var(--u-slow) var(--u-ease); }
.u-heat-cell[data-l="1"]::before { opacity: .24; }
.u-heat-cell[data-l="2"]::before { opacity: .46; }
.u-heat-cell[data-l="3"]::before { opacity: .7; }
.u-heat-cell[data-l="4"]::before { opacity: 1; }
/* Unknown is hatched, never the colour of zero */
.u-heat-cell[data-l="none"] { background: repeating-linear-gradient(135deg, var(--u-hair2) 0 1.5px, transparent 1.5px 5px); box-shadow: inset 0 0 0 1px var(--u-hair); }
.u-heat-cell::after { box-shadow: 0 0 0 1.5px var(--u-t1); opacity: 0; transition: opacity var(--u-fast); }
.u-heat-grid .u-heat-cell:hover::after { opacity: 1; }
.u-heat-cell:focus-visible { z-index: 1; outline-offset: 1px; }
.u-heat-key { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 4px; color: var(--u-t4); font-size: var(--u-fs-xs); }
.u-heat-key > .u-heat-cell, .u-heat-key-u > .u-heat-cell { width: 12px; height: 12px; }
.u-heat-key-r { margin-right: auto; color: var(--u-t3); font-family: var(--u-f-mono); font-variant-numeric: tabular-nums; }
.u-heat-key-u { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; }

/* ---------- Reference lines and target bands on a chart (Umbra.chart opts.refs / opts.bands). They sit in the chart's
   own SVG and glide by transform; --rc is the line, --rt the label, --bf the band's tint. ---------- */
.u-chart .u-ch-ref, .u-chart .u-ch-band-r, .u-chart .u-ch-band-l { transform-box: view-box; transform-origin: 0 0; transition: transform var(--u-slow) var(--u-ease); }
.u-chart .u-ch-ref, .u-chart .u-ch-band { transition: transform var(--u-slow) var(--u-ease), opacity var(--u-med); }
.u-chart .u-ch-ref.is-new, .u-chart .u-ch-ref.is-off, .u-chart .u-ch-band.is-new, .u-chart .u-ch-band.is-off { opacity: 0; }
.u-chart .u-ch-ref line { stroke: var(--rc, var(--u-t3)); stroke-width: 1.25; stroke-dasharray: 4 3; }
.u-chart svg text.u-ch-ref-l { fill: var(--rt, var(--u-t2)); font: 500 var(--u-fs-xs) var(--u-f-ui); paint-order: stroke; stroke: var(--u-lv2); stroke-width: 3px; stroke-linejoin: round; }
.u-chart .u-ch-band-r { fill: var(--bf, var(--u-gray-10)); }
.u-chart svg text.u-ch-band-l { fill: var(--rt, var(--u-t3)); font: 500 var(--u-fs-xs) var(--u-f-ui); }
.u-ch-ref--ok, .u-ch-band--ok { --rc: var(--u-ok); --rt: var(--u-ok-t); --bf: var(--u-ok-10); }
.u-ch-ref--warn, .u-ch-band--warn { --rc: var(--u-warn); --rt: var(--u-warn-t); --bf: var(--u-warn-10); }
.u-ch-ref--bad, .u-ch-band--bad { --rc: var(--u-bad); --rt: var(--u-bad-t); --bf: var(--u-bad-10); }
.u-ch-ref--blue, .u-ch-band--blue { --rc: var(--u-blue); --rt: var(--u-blue-t); --bf: var(--u-blue-10); }
/* In a point's tooltip, the lines follow the values under a hairline; the swatch is a short dash */
.u-tip-ref.is-first { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--u-hair); }
.u-tip-sw--ref { height: 2px; border-radius: 1px; }

/* ---------- Ranked bar list (ol.u-rank, built by Umbra.rankbars). Rank, name and value on one line, the bar under the
   name. Every row's bar is the same width, so the bars compare. ---------- */
.u-rank { display: flex; flex-direction: column; gap: 2px; min-width: 0; margin: 0; padding: 0; list-style: none; }
.u-rank-row { position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 6px 10px; padding: var(--dens-rank, 6px) 8px; border-radius: var(--u-r); color: var(--u-t2); cursor: default; transition: transform var(--u-slow) var(--u-ease), opacity var(--u-med); }
.u-rank-row:hover { background: var(--u-hover); }
.u-rank-row:focus-visible { outline-offset: -2px; }
.u-rank-row.is-new { opacity: 0; }
.u-rank-n { color: var(--u-t4); font: 500 var(--u-fs-xs) var(--u-f-mono); font-variant-numeric: tabular-nums; text-align: right; }
.u-rank-t { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.u-rank-l { min-width: 0; overflow: hidden; color: var(--u-t1); font-size: var(--u-fs); text-overflow: ellipsis; white-space: nowrap; }
.u-rank-s { flex: none; color: var(--u-t4); font-size: var(--u-fs-xs); white-space: nowrap; }
.u-rank-v { display: flex; align-items: center; justify-content: flex-end; gap: 8px; white-space: nowrap; }
.u-rank-v > b { color: var(--u-t1); font: 600 var(--u-fs) var(--u-f-mono); font-variant-numeric: tabular-nums; }
.u-rank-d { display: inline-flex; align-items: center; justify-content: flex-end; gap: 2px; min-width: 40px; color: var(--u-t3); font: 500 var(--u-fs-xs) var(--u-f-mono); font-variant-numeric: tabular-nums; }
.u-rank-d > .u-i { width: 12px; height: 12px; flex: none; }
.u-rank-d.is-good { color: var(--u-ok-t); }
.u-rank-d.is-bad { color: var(--u-bad-t); }
.u-rank-track { grid-column: 2 / -1; display: block; height: 6px; overflow: hidden; border-radius: var(--u-r-full); background: var(--u-track); box-shadow: var(--u-sh-well); }
.u-rank-fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--u-bp-top), var(--u-blue)); transform: scaleX(var(--v, 0)); transform-origin: left center; transition: transform .6s var(--u-ease); }
.u-rank-empty { padding: 12px 8px; color: var(--u-t4); font-size: var(--u-fs-sm); text-align: center; }

/* ---------- Density: data-u-density="compact" | "comfortable" on :root or any container (Umbra.density, the
   .u-ptabs[data-u-density-ctl] control). The nearest one wins, so a compact app can hold a comfortable panel.
   Comfortable repeats the base sizes; compact moves rows from --u-row to --u-row-dense (32px). ---------- */
[data-u-density="comfortable"] { --dens-row: var(--u-row); --dens-th: 34px; --dens-li: 40px; --dens-py: 6px; --dens-trow: 8px; --dens-mail: 9px; --dens-mail-dot: 17px; --dens-rank: 6px; }
[data-u-density="compact"] { --dens-row: var(--u-row-dense); --dens-th: 28px; --dens-li: var(--u-row-dense); --dens-py: 4px; --dens-trow: 4px; --dens-mail: 4px; --dens-mail-dot: 12px; --dens-rank: 4px; }
/* :is() so the attribute may sit on the table itself as well as on a box around it */
:is([data-u-density] .u-table, .u-table[data-u-density]) td, :is([data-u-density] .u-table--matrix, .u-table--matrix[data-u-density]) tbody th { height: var(--dens-row); }
:is([data-u-density] .u-table, .u-table[data-u-density]) tr.u-tr-skel td { height: var(--dens-row); }
:is([data-u-density] .u-table--dense, .u-table--dense[data-u-density]) td, :is([data-u-density] .u-table--dense, .u-table--dense[data-u-density]) tr.u-tr-skel td { height: var(--u-row-dense); }
:is([data-u-density] .u-table, .u-table[data-u-density]) th { height: var(--dens-th); }
[data-u-density] .u-li { min-height: var(--dens-li); padding-top: var(--dens-py); padding-bottom: var(--dens-py); }
[data-u-density] .u-trow { padding-top: var(--dens-trow); padding-bottom: var(--dens-trow); }
[data-u-density] .u-mailrow-main { padding-top: var(--dens-mail); padding-bottom: var(--dens-mail); }
[data-u-density] .u-mailrow.is-unread::before { top: var(--dens-mail-dot); }

@media (max-width: 640px) {
  .u-heat { --lw: 30px; --cw: 12px; }
  .u-heat-grid, .u-heat-row { gap: 2px; }
  .u-heat-cell { height: 16px; }
  /* Compact keeps 40px tap rows on a phone (his rule: 40px touch targets on phones only) */
  [data-u-density="compact"] { --dens-row: var(--u-ctl-touch); --dens-li: var(--u-ctl-touch); }
}
@container u-frame (max-width: 640px) {
  .u-heat { --lw: 30px; --cw: 12px; }
  .u-heat-grid, .u-heat-row { gap: 2px; }
  .u-heat-cell { height: 16px; }
  /* Compact keeps 40px tap rows on a phone (his rule: 40px touch targets on phones only) */
  [data-u-density="compact"] { --dens-row: var(--u-ctl-touch); --dens-li: var(--u-ctl-touch); }
}
@media (prefers-reduced-motion: reduce) {
  .u-heat-grid.u-heat-in { animation: none; }
  .u-rank-row { transition: none; }
}

/* ---- umbra-content.css ---- */
/* ==========================================================================
   Umbra Content: Folder tree, files grid, notes library, drag to reorder, code editor, tabs with a dropdown, three-state select and the credential card.
   Part of css/umbra.css (tools/build.mjs). Uses only --u-* tokens, so dark and light both work.
   ========================================================================== */

/* Entrances for this part. Only transform and opacity move (Fleet Console's lint rule). */
@keyframes u-ct-in { from { opacity: 0; transform: translateY(-4px); } }
@keyframes u-ct-pop { from { opacity: 0; transform: scale(.97); } }

/* =============== Folder tree (.u-tree, built by Umbra.tree) ===============
   One row per folder, 28px tall, indented 16px a level. The chevron turns with a transform;
   the indent guide for a level is one line down the left of its group, brighter for the
   group that holds the selected folder. Focus rings the row, not the whole branch. */
.u-tree { --tree-ind: 16px; margin: 0; padding: 4px; list-style: none; min-width: 0; color: var(--u-t2); font-size: var(--u-fs); outline: 0; }
.u-tree ul { margin: 0; padding: 0; list-style: none; }
.u-tree-i { outline: 0; }
.u-tree-row { position: relative; display: flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 8px 0 calc(4px + var(--d, 0) * var(--tree-ind)); border-radius: var(--u-r-sm); cursor: default; user-select: none; }
.u-tree-row:hover { background: var(--u-hover); color: var(--u-t1); }
.u-tree-i[aria-selected="true"] > .u-tree-row { background: var(--u-blue-10); color: var(--u-t1); }
.u-tree-i[aria-selected="true"] > .u-tree-row > .u-tree-ic { color: var(--u-blue-t); }
.u-tree-i:focus-visible > .u-tree-row { outline: 2px solid var(--u-blue); outline-offset: -2px; }
.u-tree-chev { display: grid; place-items: center; width: 16px; height: 16px; flex: none; padding: 0; border: 0; border-radius: var(--u-r-xs); background: none; color: var(--u-t4); cursor: pointer; }
.u-tree-chev > .u-i { width: 12px; height: 12px; transition: transform .25s var(--u-ease); }
.u-tree-chev:hover { background: var(--u-active); color: var(--u-t1); }
.u-tree-i[aria-expanded="true"] > .u-tree-row > .u-tree-chev > .u-i { transform: rotate(90deg); }
.u-tree-chev.is-leaf { visibility: hidden; pointer-events: none; }
.u-tree-ic { display: grid; place-items: center; width: 16px; height: 16px; flex: none; color: var(--u-t3); }
.u-tree-ic > .u-i { width: 15px; height: 15px; }
.u-tree-ic[data-tone="blue"] { color: var(--u-blue-t); } .u-tree-ic[data-tone="ok"] { color: var(--u-ok-t); } .u-tree-ic[data-tone="warn"] { color: var(--u-warn-t); }
.u-tree-ic[data-tone="vio"] { color: var(--u-vio-t); } .u-tree-ic[data-tone="pink"] { color: var(--u-pink-t); } .u-tree-ic[data-tone="cyan"] { color: var(--u-cyan-t); }
.u-tree-l { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-tree-m { flex: none; color: var(--u-t4); font: var(--u-fs-xs) var(--u-f-mono); font-variant-numeric: tabular-nums; }
/* Indent guide: one hairline per open group, under its parent's chevron */
.u-tree-g { position: relative; }
.u-tree-g::before { content: ""; position: absolute; top: 2px; bottom: 2px; left: calc(4px + var(--d, 0) * var(--tree-ind) + 7px); width: 1px; background: var(--u-hair); pointer-events: none; }
.u-tree-g:has(> .u-tree-i[aria-selected="true"])::before { background: var(--u-hair3); }
.u-tree-g.is-in { animation: u-ct-in .22s var(--u-ease); }
.u-tree-load { display: flex; align-items: center; gap: 8px; min-height: 28px; padding-left: calc(4px + var(--d, 0) * var(--tree-ind) + 22px); color: var(--u-t4); font-size: var(--u-fs-sm); }
.u-tree-load.is-bad { color: var(--u-bad-t); }
.u-tree-load > .u-btn { margin-left: 4px; }
.u-tree-empty { min-height: 28px; display: flex; align-items: center; padding-left: calc(4px + var(--d, 0) * var(--tree-ind) + 22px); color: var(--u-t4); font-size: var(--u-fs-sm); }

/* =============== Middle truncation (.u-mid): "Quarterly Budget Rev…sion 4.xlsx" ===============
   The start shrinks with an ellipsis; the end (extension and a few letters) never does.
   Screen readers hear the whole name once, from a .u-sr copy. */
.u-mid { display: flex; min-width: 0; max-width: 100%; white-space: nowrap; }
.u-mid-a { flex: 0 1 auto; min-width: 1ch; overflow: hidden; text-overflow: ellipsis; }
.u-mid-b { flex: none; white-space: pre; }

/* =============== Files grid / list (.u-fgrid, Umbra.fileGrid) =============== */
.u-fgrid { container: u-fgrid / inline-size; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.u-fgrid-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.u-fgrid-bar > .u-fgrid-sum { flex: 1; min-width: 0; overflow: hidden; color: var(--u-t3); font-size: var(--u-fs-sm); text-overflow: ellipsis; white-space: nowrap; }
.u-fgrid-head { display: none; }
.u-fgrid-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; margin: 0; padding: 2px; list-style: none; outline: 0; }
.u-fgrid-i { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-width: 0; padding: 8px 8px 10px; border-radius: var(--u-r-lg); border: 1px solid var(--u-hair); background: var(--u-lv2); box-shadow: var(--u-sh-card); color: var(--u-t2); cursor: default; user-select: none; outline: 0; transition: transform .25s var(--u-ease); }
.u-fgrid-i:hover { border-color: var(--u-hair2); transform: translateY(-1px); }
.u-fgrid-i[aria-selected="true"] { border-color: var(--u-blue); background: color-mix(in srgb, var(--u-blue) 7%, var(--u-lv2)); box-shadow: var(--u-sh-card), 0 0 0 3px var(--u-blue-10); }
.u-fgrid-i:focus-visible { outline: 2px solid var(--u-blue); outline-offset: 2px; }
.u-fgrid-pv { display: grid; place-items: center; height: 64px; border-radius: var(--u-r); background: var(--u-sunken); box-shadow: var(--u-fld-in); }
.u-fgrid-ic { --c: var(--u-t3); --bg: var(--u-gray-10); display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: var(--u-r); background: var(--bg); color: var(--c); }
.u-fgrid-ic > .u-i { width: 17px; height: 17px; }
.u-fgrid-ic[data-tone="blue"] { --c: var(--u-blue-t); --bg: var(--u-blue-10); } .u-fgrid-ic[data-tone="ok"] { --c: var(--u-ok-t); --bg: var(--u-ok-10); }
.u-fgrid-ic[data-tone="warn"] { --c: var(--u-warn-t); --bg: var(--u-warn-10); } .u-fgrid-ic[data-tone="vio"] { --c: var(--u-vio-t); --bg: var(--u-vio-10); }
.u-fgrid-ic[data-tone="pink"] { --c: var(--u-pink-t); --bg: var(--u-pink-10); } .u-fgrid-ic[data-tone="cyan"] { --c: var(--u-cyan-t); --bg: var(--u-cyan-10); }
.u-fgrid-ic[data-tone="bad"] { --c: var(--u-bad-t); --bg: var(--u-bad-10); }
.u-fgrid-n { min-width: 0; color: var(--u-t1); font-size: var(--u-fs); font-weight: 500; }
.u-fgrid-n.u-truncate { display: block; }
.u-fgrid-m { min-width: 0; overflow: hidden; color: var(--u-t4); font-size: var(--u-fs-xs); text-overflow: ellipsis; white-space: nowrap; }
.u-fgrid-s, .u-fgrid-d { display: none; color: var(--u-t3); font-size: var(--u-fs-sm); white-space: nowrap; }
.u-fgrid-s { font-family: var(--u-f-mono); font-variant-numeric: tabular-nums; text-align: right; }
/* The tick: a corner check that shows on hover and when picked; tapping it adds to the pick */
.u-fgrid-tick { position: absolute; top: 6px; left: 6px; z-index: 1; display: grid; place-items: center; width: 18px; height: 18px; border-radius: var(--u-r-sm); border: 1px solid var(--u-ctl-bd); background: var(--u-fld); box-shadow: var(--u-fld-in); color: var(--u-on-accent); opacity: 0; cursor: pointer; transition: opacity var(--u-fast); }
.u-fgrid-tick > .u-i { width: 12px; height: 12px; opacity: 0; transform: scale(.5); transition: opacity var(--u-fast) var(--u-ease), transform .2s var(--u-ease); }
.u-fgrid-i:hover .u-fgrid-tick, .u-fgrid.has-sel .u-fgrid-tick { opacity: 1; }
.u-fgrid-i[aria-selected="true"] .u-fgrid-tick { opacity: 1; background: linear-gradient(180deg, var(--u-bp-top), var(--u-bp-bot)); border-color: var(--u-bp-bd); }
.u-fgrid-i[aria-selected="true"] .u-fgrid-tick > .u-i { opacity: 1; transform: none; }
@media (hover: none) { .u-fgrid-tick { opacity: 1; } }
.u-fgrid-items.is-in { animation: u-ct-pop .22s var(--u-ease); }
.u-fgrid-empty { padding: 28px 16px; border-radius: var(--u-r-lg); border: 1px dashed var(--u-hair2); color: var(--u-t4); font-size: var(--u-fs-sm); text-align: center; }
/* List view: one row per file, columns line up under the header */
.u-fgrid.is-list .u-fgrid-head,
.u-fgrid.is-list .u-fgrid-i { display: grid; grid-template-columns: 18px 28px minmax(0, 1fr) 84px 132px; align-items: center; gap: 0 10px; }
.u-fgrid.is-list .u-fgrid-head { padding: 0 12px; color: var(--u-t4); font-size: var(--u-fs-xs); font-weight: 500; }
.u-fgrid.is-list .u-fgrid-head > span:nth-child(1) { grid-column: 1 / 4; }
.u-fgrid.is-list .u-fgrid-head > span:nth-child(2) { text-align: right; }
.u-fgrid.is-list .u-fgrid-items { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 4px; border-radius: var(--u-r-lg); border: 1px solid var(--u-hair); background: var(--u-lv2); box-shadow: var(--u-sh-card); }
.u-fgrid.is-list .u-fgrid-i { min-height: 36px; padding: 4px 8px; border: 0; border-radius: var(--u-r); background: none; box-shadow: none; }
.u-fgrid.is-list .u-fgrid-i:hover { transform: none; background: var(--u-hover); }
.u-fgrid.is-list .u-fgrid-i[aria-selected="true"] { background: var(--u-blue-10); box-shadow: none; }
.u-fgrid.is-list .u-fgrid-i:focus-visible { outline-offset: -2px; }
.u-fgrid.is-list .u-fgrid-tick { position: static; grid-column: 1; width: 16px; height: 16px; border-radius: var(--u-r-xs); }
.u-fgrid.is-list .u-fgrid-pv { display: contents; }
.u-fgrid.is-list .u-fgrid-ic { width: 28px; height: 28px; border-radius: var(--u-r-sm); }
.u-fgrid.is-list .u-fgrid-ic > .u-i { width: 15px; height: 15px; }
.u-fgrid.is-list .u-fgrid-n { font-weight: 400; }
.u-fgrid.is-list .u-fgrid-m { display: none; }
.u-fgrid.is-list .u-fgrid-s, .u-fgrid.is-list .u-fgrid-d { display: block; }
@container u-fgrid (max-width: 520px) {
  .u-fgrid-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .u-fgrid.is-list .u-fgrid-head { display: none; }
  .u-fgrid.is-list .u-fgrid-i { grid-template-columns: 18px 28px minmax(0, 1fr) auto; }
  .u-fgrid.is-list .u-fgrid-d { display: none; }
}

/* =============== Notes library (.u-notes > .u-note, .u-note-new) ===============
   Masonry-ish with CSS columns: notes keep their own height and flow top to bottom. Each
   note is a soft tint of one colour (data-tone), mixed into the card colour so it stays
   solid in dark and light. The title button stretches over the whole note to open it. */
.u-notes { columns: 220px; column-gap: 12px; min-width: 0; }
.u-notes > * { break-inside: avoid; margin: 0 0 12px; }
.u-note { --tone: var(--u-warn); position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 12px 12px 10px; border-radius: var(--u-r-lg); border: 1px solid color-mix(in srgb, var(--tone) 24%, var(--u-hair)); background: color-mix(in srgb, var(--tone) 11%, var(--u-lv2)); box-shadow: var(--u-sh-card); color: var(--u-t2); transition: transform .25s var(--u-ease); }
.u-note:hover { border-color: color-mix(in srgb, var(--tone) 42%, var(--u-hair)); transform: translateY(-1px); }
.u-note[data-tone="blue"] { --tone: var(--u-blue); } .u-note[data-tone="vio"] { --tone: var(--u-vio); } .u-note[data-tone="ok"] { --tone: var(--u-ok); }
.u-note[data-tone="warn"] { --tone: var(--u-warn); } .u-note[data-tone="pink"] { --tone: var(--u-pink); }
.u-note-t { display: block; margin: 0; padding: 0 28px 0 0; border: 0; background: none; color: var(--u-t1); font-size: var(--u-fs-md); font-weight: 600; line-height: 1.35; text-align: left; cursor: pointer; }
.u-note-t::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.u-note-t:focus-visible { outline: 0; }
.u-note:has(> .u-note-t:focus-visible) { outline: 2px solid var(--u-blue); outline-offset: 2px; }
.u-note-b { margin: 0; color: var(--u-t2); font-size: var(--u-fs); line-height: 1.5; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 8; overflow: hidden; }
.u-note-l { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; color: var(--u-t2); font-size: var(--u-fs); }
.u-note-l > li { display: flex; align-items: flex-start; gap: 6px; }
.u-note-l > li > .u-i { width: 14px; height: 14px; margin-top: 2px; color: var(--u-t4); }
.u-note-l > li.is-done { color: var(--u-t4); text-decoration: line-through; }
.u-note-l > li.is-done > .u-i { color: var(--u-ok-t); }
.u-note-f { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--u-t3); font-size: var(--u-fs-xs); }
.u-note-f > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-note-f > .u-tag { height: 20px; padding: 0 6px; background: color-mix(in srgb, var(--tone) 14%, var(--u-lv3)); border-color: transparent; font-size: var(--u-fs-xs); }
/* Pin: sits above the stretched title, top right */
.u-note-pin { position: absolute; top: 8px; right: 8px; z-index: 1; color: var(--u-t4); }
.u-note-pin[aria-pressed="true"] { background: color-mix(in srgb, var(--tone) 22%, var(--u-lv3)); border-color: color-mix(in srgb, var(--tone) 40%, transparent); box-shadow: var(--u-edge); color: var(--u-t1); }
.u-note-pin[aria-pressed="true"] > .u-i { transform: rotate(-30deg); }
.u-note-pin > .u-i { transition: transform .25s var(--u-ease); }
.u-note.is-moved { animation: u-ct-pop .3s var(--u-ease); }
/* New note: a dashed tile in the same flow */
.u-note-new { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 112px; padding: 16px; border-radius: var(--u-r-lg); border: 1px dashed var(--u-hair3); background: none; color: var(--u-t3); font-size: var(--u-fs); font-weight: 500; cursor: pointer; }
.u-note-new > .u-i { width: 20px; height: 20px; }
.u-note-new:hover { background: var(--u-hover); border-color: var(--u-blue); color: var(--u-t1); }
.u-notes-h { column-span: all; display: flex; align-items: center; gap: 6px; margin: 4px 0 10px; color: var(--u-t4); font-size: var(--u-fs-xs); font-weight: 500; }
.u-notes-h > .u-i { width: 12px; height: 12px; }

/* =============== Drag to reorder ([data-u-sortable], Umbra.sortable) ===============
   Items move with transform only. The lifted item rises (shadow and a 1% scale); the others
   slide out of its way; on drop the list order changes once and nothing jumps. */
[data-u-sortable] { position: relative; margin: 0; padding: 0; list-style: none; }
.u-sort-i { position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; transition: transform .2s var(--u-ease); }
.u-sort-i.is-lifted { z-index: 2; box-shadow: var(--u-sh-pop); background: var(--u-lv3); }
.u-sort-i.is-settling { z-index: 2; }
.u-sort-i.is-still { transition: none; }
.u-sort-i.is-lifted.is-kb:not(.is-still) { transition: transform .2s var(--u-ease); }
[data-u-sortable].is-sorting { user-select: none; }
.u-grip { display: grid; place-items: center; width: 20px; height: 28px; flex: none; padding: 0; border: 0; border-radius: var(--u-r-xs); background: none; color: var(--u-t4); cursor: grab; touch-action: none; }
.u-grip > .u-i { width: 14px; height: 14px; }
.u-grip:hover { background: var(--u-hover); color: var(--u-t1); }
.u-sort-i.is-lifted .u-grip { color: var(--u-blue-t); cursor: grabbing; }
/* A ready-made row look for sortable lists: .u-sortlist > li */
.u-sortlist { display: flex; flex-direction: column; gap: 6px; }
.u-sortlist > .u-sort-i { min-height: 44px; padding: 6px 10px 6px 4px; border-radius: var(--u-r-md); border: 1px solid var(--u-hair); background: var(--u-lv2); box-shadow: var(--u-sh-row); color: var(--u-t2); }
.u-sortlist > .u-sort-i.is-lifted { border-color: var(--u-blue); background: var(--u-lv3); box-shadow: var(--u-sh-pop), 0 0 0 3px var(--u-blue-10); }
.u-sortlist-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.u-sortlist-t > b { overflow: hidden; color: var(--u-t1); font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.u-sortlist-t > span { overflow: hidden; color: var(--u-t3); font-size: var(--u-fs-xs); text-overflow: ellipsis; white-space: nowrap; }
.u-sortlist-n { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: var(--u-r-sm); background: var(--u-gray-10); color: var(--u-t3); font: 500 var(--u-fs-xs) var(--u-f-mono); font-variant-numeric: tabular-nums; }

/* =============== Code editor (.u-codeed, Umbra.code) ===============
   Always dark, in both themes (his rule for terminals and code), on the --u-term tokens.
   A real textarea sits exactly over a highlighted <pre>: the textarea's own text is clear,
   so people type into a native field (spellcheck off, undo, IME, screen readers) and see
   the colours under it. One scroll box holds both, so they never drift apart. */
.u-codeed { --ce-lh: 20px; position: relative; display: flex; flex-direction: column; min-width: 0; height: 240px; min-height: 120px; border-radius: var(--u-r-lg); border: 1px solid var(--u-term-bd); background: var(--u-term-bg); color: var(--u-term-fg); box-shadow: var(--u-sh-card); overflow: hidden; color-scheme: dark; }
.u-codeed-bar { display: flex; align-items: center; gap: 8px; flex: none; height: 34px; padding: 0 6px 0 12px; border-bottom: 1px solid var(--u-term-bd); background: var(--u-term-bar); color: var(--u-term-dim); font-size: var(--u-fs-xs); }
.u-codeed-bar > b { color: var(--u-term-fg); font-weight: 500; }
.u-codeed-pos { margin-left: auto; font-family: var(--u-f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.u-codeed-bar .u-ibtn { --h: 24px; color: var(--u-term-dim); }
.u-codeed-bar .u-ibtn:hover { color: var(--u-term-fg); }
.u-codeed-bar .u-ibtn::after { background: color-mix(in srgb, var(--u-term-fg) 8%, transparent); border-color: color-mix(in srgb, var(--u-term-fg) 10%, transparent); box-shadow: none; }
.u-codeed-body { position: relative; flex: 1; min-height: 0; display: flex; align-items: flex-start; overflow: auto; scrollbar-color: color-mix(in srgb, var(--u-term-fg) 22%, transparent) transparent; }
.u-codeed-body::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--u-term-fg) 18%, transparent); }
.u-codeed-gut { position: sticky; left: 0; z-index: 2; flex: none; min-height: 100%; padding: 10px 10px 10px 8px; background: var(--u-term-bg); border-right: 1px solid var(--u-term-bd); color: var(--u-term-dim); font: var(--u-fs-sm)/var(--ce-lh) var(--u-f-mono); font-variant-numeric: tabular-nums; text-align: right; user-select: none; }
.u-codeed-gut > div { min-width: 2ch; height: var(--ce-lh); opacity: .7; }
.u-codeed-gut > div.is-cur { color: var(--u-term-fg); opacity: 1; }
.u-codeed-area { position: relative; flex: 1 0 auto; min-width: 0; min-height: 100%; }
.u-codeed-hl, .u-codeed-in { margin: 0; padding: 10px 16px 10px 12px; border: 0; font: var(--u-fs)/var(--ce-lh) var(--u-f-mono); font-variant-ligatures: none; letter-spacing: 0; tab-size: 2; white-space: pre; overflow-wrap: normal; word-break: normal; }
.u-codeed-hl { position: relative; z-index: 1; min-width: 100%; color: var(--u-term-fg); pointer-events: none; }
.u-codeed-in { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; resize: none; outline: 0; overflow: hidden; background: transparent; color: transparent; -webkit-text-fill-color: transparent; caret-color: var(--u-term-green); }
.u-codeed-in::selection { background: color-mix(in srgb, var(--u-term-blue) 32%, transparent); }
.u-codeed-cur { position: absolute; left: 0; right: 0; top: 10px; z-index: 0; height: var(--ce-lh); background: color-mix(in srgb, var(--u-term-fg) 5%, transparent); opacity: 0; pointer-events: none; transition: transform .12s var(--u-ease), opacity var(--u-fast) var(--u-ease); }
.u-codeed.is-focus .u-codeed-cur { opacity: 1; }
.u-codeed.is-focus { border-color: color-mix(in srgb, var(--u-term-blue) 55%, var(--u-term-bd)); }
.u-codeed[data-readonly] .u-codeed-in { caret-color: transparent; }
/* Token colours (all from the always-dark terminal set) */
.u-codeed .u-tk-c { color: var(--u-term-dim); font-style: italic; }
.u-codeed .u-tk-s { color: var(--u-term-green); }
.u-codeed .u-tk-n { color: var(--u-term-yellow); }
.u-codeed .u-tk-k { color: var(--u-term-cyan); }
.u-codeed .u-tk-f { color: var(--u-term-blue); }
.u-codeed .u-tk-v { color: var(--u-term-red); }
.u-codeed .u-resize::after { border-color: var(--u-term-dim); }

/* =============== Tabs with a dropdown (.u-tabsx, made from .u-tabs[data-u-overflow]) ===============
   Tabs that don't fit go into a More menu at the end of the row; the chosen tab always stays
   in the row, so the sliding underline always has somewhere to go. A tab can also carry its
   own small caret menu (.u-tab-caret). */
.u-tabsx { display: flex; align-items: stretch; min-width: 0; }
.u-tabsx > .u-tabs { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.u-tabsx-more { display: inline-flex; align-items: center; justify-content: center; gap: 4px; flex: none; height: 36px; padding: 0 8px 0 10px; border: 0; border-bottom: 1px solid var(--u-hair); border-radius: var(--u-r-sm) var(--u-r-sm) 0 0; background: none; color: var(--u-t3); font-weight: 500; white-space: nowrap; cursor: pointer; }
.u-tabsx-more:hover, .u-tabsx-more[aria-expanded="true"] { color: var(--u-t1); background: var(--u-hover); }
.u-tabsx-more > .u-i { width: 14px; height: 14px; transition: transform .25s var(--u-ease); }
.u-tabsx-more[aria-expanded="true"] > .u-i { transform: rotate(180deg); }
.u-tabsx-more .u-count { height: 16px; min-width: 16px; font-size: var(--u-fs-xs); }
.u-tabsx-more[hidden] { display: none; }
.u-tabsx .u-tab[hidden], .u-tabsx .u-tab-caret[hidden] { display: none; }
.u-tab:has(+ .u-tab-caret) { padding-right: 2px; }
.u-tab-caret { display: inline-grid; place-items: center; align-self: center; width: 20px; height: 24px; flex: none; margin-right: 4px; padding: 0; border: 0; border-radius: var(--u-r-xs); background: none; color: var(--u-t4); cursor: pointer; }
.u-tab-caret > .u-i { width: 12px; height: 12px; transition: transform .25s var(--u-ease); }
.u-tab-caret:hover, .u-tab-caret[aria-expanded="true"] { background: var(--u-active); color: var(--u-t1); }
.u-tab-caret[aria-expanded="true"] > .u-i { transform: rotate(180deg); }
.u-tab-caret[hidden] { display: none; }
.u-tab-sub { color: var(--u-t4); font-weight: 400; }

/* =============== Three-state select (.u-tri on a .u-ptabs): Allow / Deny / Inherit ===============
   The segmented control as it is (same tight 3px inset). Only the chosen segment takes a tone:
   green for Allow, red for Deny, plain for Inherit. */
.u-ptabs.u-tri > button { padding: 0 8px; }
.u-ptabs.u-tri > button > .u-i { width: 12px; height: 12px; }
.u-tri .u-ptabs-thumb { transition: transform .35s var(--u-ease); }
.u-tri[data-v="allow"] .u-ptabs-thumb { background: color-mix(in srgb, var(--u-ok) 16%, var(--u-lv3)); border-color: color-mix(in srgb, var(--u-ok) 38%, transparent); }
.u-tri[data-v="deny"] .u-ptabs-thumb { background: color-mix(in srgb, var(--u-bad) 15%, var(--u-lv3)); border-color: color-mix(in srgb, var(--u-bad) 38%, transparent); }
.u-tri[data-v="allow"] > button[aria-selected="true"] { color: var(--u-ok-t); }
.u-tri[data-v="deny"] > button[aria-selected="true"] { color: var(--u-bad-t); }
.u-tri[data-v="inherit"] > button[aria-selected="true"] { color: var(--u-t1); }
.u-tri[aria-disabled="true"] { opacity: .5; pointer-events: none; }
/* Permission rows: name and hint on the left, the switch and what it works out to on the right */
.u-perms { margin: 0; padding: 0; list-style: none; border-radius: var(--u-r-lg); border: 1px solid var(--u-hair); background: var(--u-lv2); box-shadow: var(--u-sh-card); overflow: hidden; min-width: 0; }
.u-perms-h, .u-perm { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(92px, max-content); /* the result column fits "Allowed By Technicians" instead of clipping it */ align-items: center; gap: 4px 12px; padding: 8px 12px; }
.u-perms-h { padding-top: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--u-hair); background: var(--u-lv1); color: var(--u-t4); font-size: var(--u-fs-xs); font-weight: 500; }
.u-perm + .u-perm { border-top: 1px solid var(--u-hair); }
.u-perm-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.u-perm-t > b { color: var(--u-t1); font-weight: 500; }
.u-perm-t > span { color: var(--u-t3); font-size: var(--u-fs-xs); }
.u-perm-eff { display: inline-flex; align-items: center; gap: 5px; min-width: 0; color: var(--u-t3); font-size: var(--u-fs-xs); white-space: nowrap; }
.u-perm-eff > .u-i { width: 12px; height: 12px; flex: none; }
.u-perm-eff[data-v="allow"] { color: var(--u-ok-t); }
.u-perm-eff[data-v="deny"] { color: var(--u-bad-t); }
.u-perm-grp { padding: 10px 12px 4px; color: var(--u-t4); font-size: var(--u-fs-xs); font-weight: 500; }
.u-perm-grp + .u-perm { border-top: 0; }

/* =============== Credential card (.u-cred, built by Umbra.cred) ===============
   A saved login. The password shows as ten dots (so its length never shows) until Reveal;
   it is set only as text, never in an attribute, tooltip or event, and hides again by itself. */
.u-cred { display: grid; gap: 10px; min-width: 0; padding: 12px; border-radius: var(--u-r-lg); border: 1px solid var(--u-hair); background: var(--u-lv2); box-shadow: var(--u-sh-card); color: var(--u-t2); }
.u-cred-h { display: flex; align-items: center; gap: 10px; min-width: 0; }
.u-cred-ic { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: var(--u-r); border: 1px solid var(--u-hair); background: var(--u-lv3); box-shadow: var(--u-edge); color: var(--u-t1); font-size: var(--u-fs-md); font-weight: 600; }
.u-cred-ic > .u-i { width: 16px; height: 16px; color: var(--u-t3); }
.u-cred-t { flex: 1; display: grid; gap: 1px; min-width: 0; }
.u-cred-t > b { overflow: hidden; color: var(--u-t1); font-size: var(--u-fs); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.u-cred-t > span { overflow: hidden; color: var(--u-t3); font-size: var(--u-fs-xs); text-overflow: ellipsis; white-space: nowrap; }
.u-cred-chip { display: inline-flex; align-items: center; gap: 5px; flex: none; height: 22px; padding: 0 8px; border-radius: var(--u-r-full); border: 1px solid var(--u-hair2); color: var(--u-t3); font-size: var(--u-fs-xs); font-weight: 500; white-space: nowrap; }
.u-cred-chip > .u-i { width: 12px; height: 12px; }
.u-cred-chip[data-tone="ok"] { border-color: color-mix(in srgb, var(--u-ok) 40%, transparent); background: var(--u-ok-10); color: var(--u-ok-t); }
.u-cred-chip[data-tone="warn"] { border-color: color-mix(in srgb, var(--u-warn) 45%, transparent); background: var(--u-warn-10); color: var(--u-warn-t); }
.u-cred-chip[data-tone="bad"] { border-color: color-mix(in srgb, var(--u-bad) 40%, transparent); background: var(--u-bad-10); color: var(--u-bad-t); }
.u-cred-f { display: grid; gap: 6px; margin: 0; }
.u-cred-r { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 36px; padding: 3px 3px 3px 10px; border-radius: var(--u-r); border: 1px solid var(--u-hair); background: var(--u-sunken); box-shadow: var(--u-fld-in); }
.u-cred-r > dt { color: var(--u-t3); font-size: var(--u-fs-sm); }
.u-cred-r > dd { margin: 0; min-width: 0; overflow: hidden; color: var(--u-t1); font: 500 var(--u-fs) var(--u-f-mono); text-overflow: ellipsis; white-space: nowrap; }
.u-cred-r > dd.is-masked { color: var(--u-t2); letter-spacing: .14em; }
.u-cred-a { display: flex; gap: 2px; }
.u-cred-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; color: var(--u-t4); font-size: var(--u-fs-xs); }
.u-cred-foot > span { display: inline-flex; align-items: center; gap: 5px; }
.u-cred-foot .u-i { width: 12px; height: 12px; }

/* =============== Phone =============== */
@media (max-width: 640px) {
  .u-tree-row, .u-tree-load, .u-tree-empty { min-height: 36px; }
  .u-tree-chev { width: 28px; height: 28px; margin: 0 -6px; }
  .u-grip { width: 32px; height: 40px; }
  .u-tab-caret { width: 28px; height: 32px; }
  .u-tabsx-more { padding: 0 10px; }
  .u-perms-h { display: none; }
  .u-perm { grid-template-columns: minmax(0, 1fr) auto; }
  .u-perm > .u-ptabs { grid-column: 1 / -1; justify-self: start; }
  .u-perm > .u-perm-eff { grid-column: 2; grid-row: 1; }
  .u-cred-r { grid-template-columns: minmax(0, 1fr) auto; }
  .u-cred-r > dt { grid-column: 1 / -1; padding-top: 4px; font-size: var(--u-fs-xs); }
  .u-fgrid-tick { width: 22px; height: 22px; }
  .u-codeed-in { font-size: 16px; }
  .u-codeed-hl { font-size: 16px; }
  .u-codeed { --ce-lh: 24px; }
  .u-codeed-gut { font-size: var(--u-fs); }
}
@container u-frame (max-width: 640px) {
  .u-tree-row, .u-tree-load, .u-tree-empty { min-height: 36px; }
  .u-tree-chev { width: 28px; height: 28px; margin: 0 -6px; }
  .u-grip { width: 32px; height: 40px; }
  .u-tab-caret { width: 28px; height: 32px; }
  .u-tabsx-more { padding: 0 10px; }
  .u-perms-h { display: none; }
  .u-perm { grid-template-columns: minmax(0, 1fr) auto; }
  .u-perm > .u-ptabs { grid-column: 1 / -1; justify-self: start; }
  .u-perm > .u-perm-eff { grid-column: 2; grid-row: 1; }
  .u-cred-r { grid-template-columns: minmax(0, 1fr) auto; }
  .u-cred-r > dt { grid-column: 1 / -1; padding-top: 4px; font-size: var(--u-fs-xs); }
  .u-fgrid-tick { width: 22px; height: 22px; }
  .u-codeed-in { font-size: 16px; }
  .u-codeed-hl { font-size: 16px; }
  .u-codeed { --ce-lh: 24px; }
  .u-codeed-gut { font-size: var(--u-fs); }
}
@media (prefers-reduced-motion: reduce) {
  .u-sort-i { transition: none; }
  .u-fgrid-i:hover, .u-note:hover { transform: none; }
}

/* ---- umbra-live.css ---- */
/* ==========================================================================
   Umbra Live: Meeting, huddle and remote-session pieces: effects, reactions, reconnecting, share picker, leave cards, in-a-call status, dispatch bar, wallpapers, pinned tickets, switcher filters, connecting card and transfers.
   Part of css/umbra.css (tools/build.mjs). Uses only --u-* tokens, so dark and light both work.
   ========================================================================== */

/* =============== Swatch picker (.u-swpick): square tiles, exactly one picked =============== */
/* A radio group of square tiles. umbra.js gives it arrow keys (selection follows focus, as radios
   do) and a tick on the picked tile. Video backgrounds ([data-u-vbg]) and chat wallpapers
   ([data-u-wallpaper]) both use it; the swatch inside a tile is drawn by those attributes. */
.u-swpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 12px 10px; min-width: 0; }
.u-swpick-i { display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-width: 0; padding: 0; border: 0; border-radius: var(--u-r-md); background: none; color: var(--u-t3); font: 500 var(--u-fs-xs)/1.3 var(--u-f-ui); text-align: center; cursor: pointer; }
.u-swpick-i:focus-visible { outline: 0; }
.u-swpick-sw { position: relative; isolation: isolate; display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; border-radius: var(--u-r-md); border: 1px solid var(--u-hair); background-color: var(--u-sunken); box-shadow: var(--u-sh-well); color: var(--u-t3); }
.u-swpick-sw > .u-i { width: 18px; height: 18px; }
.u-swpick-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-swpick-i:hover .u-swpick-sw { border-color: var(--u-hair3); }
.u-swpick-i:hover .u-swpick-l, .u-swpick-i[aria-checked="true"] .u-swpick-l { color: var(--u-t1); }
/* Picked: a blue ring with a soft halo, and a tick in the corner (not colour alone) */
.u-swpick-i[aria-checked="true"] .u-swpick-sw { border-color: transparent; box-shadow: 0 0 0 2px var(--u-blue), 0 0 0 5px var(--u-blue-20); }
.u-swpick-i:focus-visible .u-swpick-sw { box-shadow: 0 0 0 2px var(--u-lv2), 0 0 0 4px var(--u-blue); }
.u-swpick-i[aria-checked="true"]:focus-visible .u-swpick-sw { box-shadow: 0 0 0 2px var(--u-blue), 0 0 0 5px var(--u-blue-20), 0 0 0 6px var(--u-blue); }
.u-swpick-ck { position: absolute; right: 4px; top: 4px; z-index: 2; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(180deg, var(--u-bp-top), var(--u-bp-bot)); box-shadow: var(--u-bp-hi); color: var(--u-on-accent); opacity: 0; transform: scale(.6); transition: opacity var(--u-fast), transform var(--u-med) var(--u-ease); }
.u-swpick-ck > .u-i { width: 10px; height: 10px; stroke-width: 3; }
.u-swpick-i[aria-checked="true"] .u-swpick-ck { opacity: 1; transform: none; }
.u-swpick--sm { grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 10px 8px; }

/* =============== Video background stand-ins ([data-u-vbg]) =============== */
/* Drawn with token gradients only, no pictures: a head-and-shoulders shape in front of a room
   (none), the same room softened (blur, blur-strong) or a drawn backdrop. --vc tints the person,
   as on .u-vtile. Put it on a swatch, a preview tile or a .u-vtile-feed. */
[data-u-vbg] {
  --vbg-p: color-mix(in srgb, var(--vc, var(--u-c1)) 30%, var(--u-lv3));
  --vbg-back: linear-gradient(170deg, var(--u-lv3), var(--u-sunken));
  background:
    radial-gradient(ellipse 15% 21% at 50% 45%, var(--vbg-p) 0 92%, transparent 100%),
    radial-gradient(ellipse 34% 28% at 50% 101%, var(--vbg-p) 0 94%, transparent 100%),
    var(--vbg-back);
}
/* The room: a window, a shelf and a plant on a wall */
[data-u-vbg="none"] {
  --vbg-back:
    linear-gradient(color-mix(in srgb, var(--u-c5) 30%, var(--u-lv2)), color-mix(in srgb, var(--u-c5) 14%, var(--u-lv2))) 10% 20% / 24% 40% no-repeat,
    linear-gradient(color-mix(in srgb, var(--u-c3) 34%, var(--u-lv2)), color-mix(in srgb, var(--u-c3) 34%, var(--u-lv2))) 92% 34% / 20% 5% no-repeat,
    radial-gradient(circle at 86% 74%, color-mix(in srgb, var(--u-c2) 38%, var(--u-lv2)) 0 8%, transparent 8.5%),
    linear-gradient(170deg, var(--u-lv3), var(--u-sunken));
}
/* The same room, softened: shapes lose their edges and spread */
[data-u-vbg="blur"] {
  --vbg-back:
    radial-gradient(ellipse 22% 30% at 22% 40%, color-mix(in srgb, var(--u-c5) 26%, var(--u-lv2)), transparent 80%),
    radial-gradient(ellipse 18% 10% at 86% 36%, color-mix(in srgb, var(--u-c3) 28%, var(--u-lv2)), transparent 85%),
    radial-gradient(ellipse 14% 14% at 86% 74%, color-mix(in srgb, var(--u-c2) 30%, var(--u-lv2)), transparent 85%),
    linear-gradient(170deg, var(--u-lv3), var(--u-sunken));
}
[data-u-vbg="blur-strong"] {
  --vbg-back:
    radial-gradient(ellipse 46% 50% at 22% 36%, color-mix(in srgb, var(--u-c5) 16%, var(--u-lv2)), transparent 90%),
    radial-gradient(ellipse 40% 46% at 88% 64%, color-mix(in srgb, var(--u-c2) 14%, var(--u-lv2)), transparent 90%),
    linear-gradient(170deg, var(--u-lv3), var(--u-lv2));
}
[data-u-vbg="aurora"] {
  --vbg-back:
    radial-gradient(70% 60% at 15% 10%, color-mix(in srgb, var(--u-c5) 48%, transparent), transparent 70%),
    radial-gradient(70% 70% at 90% 30%, color-mix(in srgb, var(--u-c4) 44%, transparent), transparent 70%),
    linear-gradient(160deg, color-mix(in srgb, var(--u-c1) 22%, var(--u-lv1)), var(--u-lv1));
}
[data-u-vbg="sunset"] {
  --vbg-back:
    radial-gradient(60% 50% at 50% 92%, color-mix(in srgb, var(--u-c3) 50%, transparent), transparent 75%),
    linear-gradient(180deg, color-mix(in srgb, var(--u-c6) 34%, var(--u-lv1)), color-mix(in srgb, var(--u-c3) 30%, var(--u-lv1)));
}
[data-u-vbg="forest"] {
  --vbg-back:
    radial-gradient(50% 70% at 10% 100%, color-mix(in srgb, var(--u-c2) 46%, transparent), transparent 75%),
    radial-gradient(50% 60% at 95% 90%, color-mix(in srgb, var(--u-c2) 34%, transparent), transparent 75%),
    linear-gradient(180deg, color-mix(in srgb, var(--u-c5) 22%, var(--u-lv1)), color-mix(in srgb, var(--u-c2) 20%, var(--u-lv1)));
}
[data-u-vbg="studio"] {
  --vbg-back:
    linear-gradient(var(--u-hair2) 1px, transparent 1px) 0 0 / 14px 14px,
    linear-gradient(90deg, var(--u-hair2) 1px, transparent 1px) 0 0 / 14px 14px,
    radial-gradient(80% 70% at 50% 30%, color-mix(in srgb, var(--u-c1) 18%, var(--u-lv2)), var(--u-lv1));
}
/* A preview of your camera with the picked effect */
.u-vbgprev { position: relative; display: block; aspect-ratio: 16 / 9; min-width: 0; overflow: hidden; border-radius: var(--u-r-lg); border: 1px solid var(--u-hair); box-shadow: var(--u-sh-card); }
.u-vbgprev > .u-vtile-name { position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: color-mix(in srgb, var(--u-lv0) 84%, transparent); box-shadow: 0 0 0 1px var(--u-hair); color: var(--u-t1); font-size: var(--u-fs-sm); font-weight: 500; }

/* =============== Chat wallpapers ([data-u-wallpaper]) =============== */
/* Quiet patterns and washes behind a conversation: hairline-strength, so text keeps its contrast. */
[data-u-wallpaper] { background-color: var(--u-lv1); }
[data-u-wallpaper="dots"] { background-image: radial-gradient(var(--u-hair2) 1px, transparent 1.6px); background-size: 18px 18px; }
[data-u-wallpaper="grid"] { background-image: linear-gradient(var(--u-hair) 1px, transparent 1px), linear-gradient(90deg, var(--u-hair) 1px, transparent 1px); background-size: 24px 24px; }
[data-u-wallpaper="lines"] { background-image: repeating-linear-gradient(135deg, var(--u-hair) 0 1px, transparent 1px 12px); }
[data-u-wallpaper="waves"] { background-image: radial-gradient(circle at 50% 100%, transparent 6px, var(--u-hair2) 6.5px 7.5px, transparent 8px); background-size: 20px 10px; }
[data-u-wallpaper="aurora"] { background-image: radial-gradient(90% 60% at 0% 0%, color-mix(in srgb, var(--u-c5) 12%, transparent), transparent 70%), radial-gradient(80% 60% at 100% 100%, color-mix(in srgb, var(--u-c4) 12%, transparent), transparent 70%); }
[data-u-wallpaper="dusk"] { background-image: radial-gradient(90% 60% at 100% 0%, color-mix(in srgb, var(--u-c6) 10%, transparent), transparent 70%), radial-gradient(90% 60% at 0% 100%, color-mix(in srgb, var(--u-c3) 11%, transparent), transparent 70%); }
/* In a swatch, two little message bars show how it reads */
.u-swpick-sw[data-u-wallpaper]::before, .u-swpick-sw[data-u-wallpaper]::after { content: ""; position: absolute; left: 14%; height: 9%; border-radius: 99px; background: var(--u-lv3); box-shadow: 0 0 0 1px var(--u-hair); }
.u-swpick-sw[data-u-wallpaper]::before { top: 26%; width: 50%; }
.u-swpick-sw[data-u-wallpaper]::after { top: 56%; left: auto; right: 14%; width: 40%; background: var(--u-blue); box-shadow: none; }

/* =============== Floating reactions (Umbra.react) and the reaction bar =============== */
.u-rxlayer { position: absolute; inset: 0; z-index: 7; overflow: hidden; pointer-events: none; }
/* The outer box moves (transform and opacity only); the inner one centres the emoji and name */
.u-rxfloat { position: absolute; left: var(--x, 50%); bottom: 14px; width: 0; animation: u-live-rx 2.8s var(--u-ease-out) forwards; }
.u-rxfloat-in { display: grid; justify-items: center; gap: 4px; width: max-content; transform: translateX(-50%); }
.u-rxfloat-e { font: 24px/1 "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.u-rxfloat-n { max-width: 120px; overflow: hidden; padding: 2px 6px; border-radius: 6px; background: color-mix(in srgb, var(--u-lv0) 84%, transparent); box-shadow: 0 0 0 1px var(--u-hair); color: var(--u-t1); font-size: var(--u-fs-xs); font-weight: 500; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
@keyframes u-live-rx {
  0% { opacity: 0; transform: translate(0, 0) scale(.6); }
  10% { opacity: 1; transform: translate(calc(var(--dx, 0px) * .15), calc(var(--rise, 160px) * -.08)) scale(1.1); }
  18% { transform: translate(calc(var(--dx, 0px) * .25), calc(var(--rise, 160px) * -.16)) scale(1); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx, 0px), calc(var(--rise, 160px) * -1)) scale(1); }
}
/* Reduced motion: no rising, the reaction simply shows in place and fades (umbra.js times it) */
.u-rxfloat.is-still { animation: u-fade .2s; transform: translateY(calc(var(--rise, 160px) * -.3)); transition: opacity .3s var(--u-ease); }
.u-rxfloat.is-still.is-out { opacity: 0; }

.u-rxbar { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 4px; overflow-x: auto; border-radius: var(--u-r-full); border: 1px solid var(--u-hair2); background: var(--u-lv3); box-shadow: var(--u-sh-row); scrollbar-width: none; }
.u-rxbar::-webkit-scrollbar { display: none; }
.u-rxbar-b { display: grid; place-items: center; flex: none; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: none; font: 19px/1 "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; cursor: pointer; }
.u-rxbar-b > span { display: block; transition: transform var(--u-med) var(--u-ease); }
.u-rxbar-b:hover { background: var(--u-hover); }
.u-rxbar-b:hover > span { transform: translateY(-2px) scale(1.15); }
.u-rxbar-b:active > span { transform: scale(.9); }
.u-rxbar-b > .u-i { width: 16px; height: 16px; color: var(--u-t2); }
.u-rxbar-sep { flex: none; width: 1px; height: 20px; margin: 0 4px; background: var(--u-hair); }

/* =============== Reconnecting overlay (Umbra.reconnect) =============== */
/* A calm, near-solid scrim over the video or session (no blur), a spinner, the attempt count and
   Leave. Everything under it is made inert while it shows. */
.u-reconn { position: absolute; inset: 0; z-index: 9; display: grid; place-items: center; padding: 16px; background: color-mix(in srgb, var(--u-lv0) 80%, transparent); animation: u-fade .3s var(--u-ease); }
.u-reconn.is-closing { animation: u-fade-out .2s ease-in forwards; }
.u-reconn-b { display: grid; justify-items: center; gap: 6px; width: min(300px, 100%); padding: 20px 20px 16px; border-radius: var(--u-r-xl); border: 1px solid var(--u-hair2); background: var(--u-lv3); box-shadow: var(--u-sh-pop); color: var(--u-t3); text-align: center; }
.u-reconn-ic { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 4px; border-radius: 50%; background: var(--u-warn-10); color: var(--u-warn-t); }
.u-reconn-ic > .u-i { width: 18px; height: 18px; }
.u-reconn-t { color: var(--u-t1); font-size: var(--u-fs-md); font-weight: 600; }
.u-reconn-n { color: var(--u-t3); font: 500 var(--u-fs-xs) var(--u-f-mono); font-variant-numeric: tabular-nums; }
.u-reconn-p { margin: 0; font-size: var(--u-fs-sm); line-height: 1.45; }
.u-reconn-a { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }
.u-reconn.is-failed .u-reconn-ic { background: var(--u-bad-10); color: var(--u-bad-t); }

/* =============== Share-screen picker (.u-sharepick, a .u-modal) =============== */
.u-sharepick { --u-mw: 640px; }
.u-sharepick .u-ptabs { margin-bottom: 14px; }
.u-sharepick-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 14px 12px; min-width: 0; }
.u-sharepick-g[hidden] { display: none; }
.u-sharepick-i { --tc: var(--u-c1); display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 0; border: 0; border-radius: var(--u-r-lg); background: none; color: var(--u-t3); font: inherit; text-align: left; cursor: pointer; }
.u-sharepick-i:focus-visible { outline: 0; }
.u-sharepick-th { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--u-r-lg); border: 1px solid var(--u-hair); background: var(--u-sunken); box-shadow: var(--u-sh-card); }
.u-sharepick-th > .u-share-win { inset: 14% 12% 18%; box-shadow: var(--u-sh-row); }
.u-sharepick-th > .u-share-win > b { background: color-mix(in srgb, var(--tc) 22%, var(--u-lv0)); }
.u-sharepick-th > .u-share-win > i:nth-of-type(1) { background: color-mix(in srgb, var(--tc) 45%, var(--u-hair3)); }
/* Entire screen: the desktop with a taskbar */
.u-sharepick-th[data-kind="screen"] { background: var(--u-desk); }
.u-sharepick-th[data-kind="screen"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10%; background: color-mix(in srgb, var(--u-lv0) 86%, transparent); border-top: 1px solid var(--u-hair); }
/* A window fills more of its thumbnail */
.u-sharepick-th[data-kind="window"] > .u-share-win { inset: 9% 8% 9%; }
/* A browser tab: a tab strip across the top */
.u-sharepick-th[data-kind="tab"] { background: var(--u-lv2); }
.u-sharepick-th[data-kind="tab"]::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 15%; background: linear-gradient(90deg, transparent 8%, var(--u-lv3) 8% 40%, transparent 40%), var(--u-lv0); border-bottom: 1px solid var(--u-hair); }
.u-sharepick-th[data-kind="tab"] > .u-share-win { inset: 15% 0 0; border: 0; border-radius: 0; box-shadow: none; }
.u-sharepick-th[data-kind="tab"] > .u-share-win > b { display: none; }
.u-sharepick-l { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 0 2px; }
.u-sharepick-l > .u-i { width: 14px; height: 14px; flex: none; color: var(--u-t3); }
.u-sharepick-l > span { min-width: 0; overflow: hidden; color: var(--u-t1); font-size: var(--u-fs-sm); text-overflow: ellipsis; white-space: nowrap; }
.u-sharepick-i:hover .u-sharepick-th { border-color: var(--u-hair3); }
.u-sharepick-i[aria-checked="true"] .u-sharepick-th { border-color: transparent; box-shadow: 0 0 0 2px var(--u-blue), 0 0 0 5px var(--u-blue-20); }
.u-sharepick-i:focus-visible .u-sharepick-th { box-shadow: 0 0 0 2px var(--u-lv3), 0 0 0 4px var(--u-blue); }
.u-sharepick-i[aria-checked="true"]:focus-visible .u-sharepick-th { box-shadow: 0 0 0 2px var(--u-blue), 0 0 0 5px var(--u-blue-20), 0 0 0 6px var(--u-blue); }
.u-sharepick-th > .u-swpick-ck { right: 6px; top: 6px; width: 18px; height: 18px; }
.u-sharepick-i[aria-checked="true"] .u-swpick-ck { opacity: 1; transform: none; }
.u-sharepick-f { justify-content: space-between; align-items: center; flex-wrap: wrap; }
.u-sharepick-f > label { display: inline-flex; align-items: center; gap: 8px; color: var(--u-t2); font-size: var(--u-fs-sm); }
.u-sharepick-f > div { display: flex; gap: 8px; margin-left: auto; }

/* =============== Leave options (.u-leave) =============== */
.u-leave { display: grid; gap: 8px; min-width: 0; }
.u-leave-opt { display: grid; grid-template-columns: 34px minmax(0, 1fr) 16px; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 12px; border-radius: var(--u-r-lg); border: 1px solid var(--u-hair); background: var(--u-lv2); box-shadow: var(--u-sh-row); color: var(--u-t3); font: inherit; text-align: left; cursor: pointer; }
.u-leave-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--u-r-md); background: var(--u-blue-10); color: var(--u-blue-t); }
.u-leave-ic > .u-i { width: 16px; height: 16px; }
.u-leave-b { display: grid; gap: 2px; min-width: 0; }
.u-leave-b > b { color: var(--u-t1); font-size: var(--u-fs); font-weight: 600; }
.u-leave-b > span { font-size: var(--u-fs-sm); line-height: 1.4; }
.u-leave-opt > .u-i { width: 14px; height: 14px; color: var(--u-t4); transition: transform var(--u-med) var(--u-ease); }
.u-leave-opt:hover { border-color: var(--u-hair3); background: var(--u-lv3); }
.u-leave-opt:hover > .u-i { color: var(--u-t2); transform: translateX(2px); }
.u-leave-opt--host .u-leave-ic { background: var(--u-warn-10); color: var(--u-warn-t); }
/* The one that ends it for everyone carries the danger tone */
.u-leave-opt--danger .u-leave-ic { background: var(--u-bad-10); color: var(--u-bad-t); }
.u-leave-opt--danger .u-leave-b > b { color: var(--u-bad-t); }
.u-leave-opt--danger:hover { border-color: color-mix(in srgb, var(--u-bad) 40%, transparent); background: var(--u-bad-10); }
.u-leave-opt--danger:hover > .u-i { color: var(--u-bad-t); }

/* =============== In A Call: presence dot and status chip =============== */
/* Violet, the call tone, and a glyph, so it never relies on colour alone: a phone or video icon
   inside the dot when there is one (<span class="u-presence u-presence--call"><i data-u-icon="phone"></i></span>),
   otherwise a small white centre. */
.u-presence.u-presence--call, .u-pdot--call { display: grid; place-items: center; background: var(--u-vio); }
.u-avatar > .u-presence--call:not(:empty) { right: -3px; bottom: -3px; width: 14px; height: 14px; }
.u-presence--call > .u-i, .u-pdot--call > .u-i { width: 8px; height: 8px; color: var(--u-on-accent); stroke-width: 3; }
.u-presence--call:empty::after, .u-pdot--call:empty::after { content: ""; width: 34%; height: 34%; border-radius: 50%; background: var(--u-on-accent); }
.u-pdot.u-pdot--call:not(:empty) { width: 14px; height: 14px; }
.u-callchip { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none; height: 22px; padding: 0 8px 0 6px; border-radius: var(--u-r-full); background: var(--u-vio-10); color: var(--u-vio-t); font-size: var(--u-fs-xs); font-weight: 500; line-height: 1; white-space: nowrap; }
.u-callchip > .u-i { width: 12px; height: 12px; }
.u-callchip-t { font-family: var(--u-f-mono); font-variant-numeric: tabular-nums; opacity: .85; }
.u-callchip--sm { height: 18px; padding: 0 6px; gap: 4px; }
.u-callchip--sm > .u-i { width: 11px; height: 11px; }

/* =============== Dispatch radio bar (.u-ptt): push to talk =============== */
.u-ptt { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; min-width: 0; padding: 12px; border-radius: var(--u-r-lg); border: 1px solid var(--u-hair); background: var(--u-lv2); box-shadow: var(--u-sh-card); color: var(--u-t3); }
.u-ptt-ch { display: flex; align-items: center; gap: 10px; flex: 1 1 160px; min-width: 0; }
.u-ptt-ic { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: var(--u-r-md); background: var(--u-sunken); box-shadow: var(--u-sh-well); color: var(--u-t2); }
.u-ptt-ic > .u-i { width: 16px; height: 16px; }
.u-ptt-cht { display: grid; gap: 2px; min-width: 0; }
.u-ptt-cht > b { overflow: hidden; color: var(--u-t1); font-size: var(--u-fs); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.u-ptt-cht > span { overflow: hidden; font-size: var(--u-fs-xs); text-overflow: ellipsis; white-space: nowrap; }
/* Who is talking now, with their live level */
.u-ptt-now { display: flex; align-items: center; gap: 10px; flex: 999 1 220px; min-width: 0; min-height: 44px; padding: 6px 10px; border-radius: var(--u-r-md); border: 1px solid var(--u-hair); background: var(--u-sunken); box-shadow: var(--u-fld-in); transition: opacity var(--u-fast); }
.u-ptt-now > .u-avatar { position: relative; }
.u-ptt-quiet { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; color: var(--u-t4); }
.u-ptt-quiet > .u-i { width: 15px; height: 15px; }
.u-ptt-who { display: grid; gap: 2px; flex: 1 1 auto; min-width: 0; }
.u-ptt-who > b { overflow: hidden; color: var(--u-t1); font-size: var(--u-fs); font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.u-ptt-who > span { font-size: var(--u-fs-xs); }
.u-ptt-now > .u-level { flex: 0 1 120px; }
.u-ptt-acts { display: flex; align-items: center; gap: 4px; flex: none; }
.u-ptt-acts .u-ibtn[aria-pressed="true"] { background: var(--u-warn-10); border-color: transparent; box-shadow: none; color: var(--u-warn-t); }
/* The big hold-to-talk button */
.u-ptt-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: 1 1 200px; height: 48px; padding: 0 16px; border-radius: var(--u-r-lg); border: 1px solid var(--u-b2-bd); background: var(--u-b2-bg); box-shadow: var(--u-b2-hi), var(--u-b2-sh); color: var(--u-t1); font: 600 var(--u-fs-md)/1 var(--u-f-ui); white-space: nowrap; cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: none; -webkit-touch-callout: none; transition: transform .2s var(--u-ease); }
.u-ptt-btn > .u-i { width: 18px; height: 18px; }
.u-ptt-btn > .u-kbd { margin-left: 4px; }
.u-ptt-btn:hover { background: var(--u-b2-bg-h); border-color: var(--u-b2-bd-h); box-shadow: var(--u-b2-hi), var(--u-b2-sh-h); }
.u-ptt-btn::after { content: ""; position: absolute; inset: -4px; border-radius: calc(var(--u-r-lg) + 4px); box-shadow: 0 0 0 2px var(--u-blue); opacity: 0; pointer-events: none; }
/* Receiving: the channel lights green */
.u-ptt.is-rx .u-ptt-ic { background: var(--u-ok-10); color: var(--u-ok-t); }
.u-ptt.is-rx .u-ptt-now { border-color: color-mix(in srgb, var(--u-ok) 40%, transparent); }
/* Talking: the button is pressed and blue, with a ring that breathes */
.u-ptt.is-tx .u-ptt-ic { background: var(--u-blue-10); color: var(--u-blue-t); }
.u-ptt.is-tx .u-ptt-now { border-color: color-mix(in srgb, var(--u-blue) 45%, transparent); }
.u-ptt.is-tx .u-ptt-btn { background: linear-gradient(180deg, var(--u-bp-top), var(--u-bp-bot)); border-color: var(--u-bp-bd); box-shadow: var(--u-press-fill); color: var(--u-on-accent); transform: scale(.98); }
.u-ptt.is-tx .u-ptt-btn > .u-kbd { border-color: color-mix(in srgb, var(--u-on-accent) 40%, transparent); background: transparent; color: var(--u-on-accent); }
.u-ptt.is-tx .u-ptt-btn::after { animation: u-pulse 1.4s ease-in-out infinite; }
/* Listening off: incoming talk is muted */
.u-ptt.is-muted .u-ptt-now { opacity: .6; }
.u-ptt-btn:disabled { opacity: .45; cursor: not-allowed; }

/* =============== Pinned tickets strip (.u-pins) and its picker (.u-pinpick) =============== */
.u-pins { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 40px; padding: 4px 8px 4px 12px; border-bottom: 1px solid var(--u-hair); background: var(--u-lv1); }
.u-pins-l { display: inline-flex; align-items: center; gap: 6px; flex: none; color: var(--u-t3); font-size: var(--u-fs-xs); font-weight: 500; }
.u-pins-l > .u-i { width: 13px; height: 13px; }
.u-pins-list { flex: 1 1 auto; align-items: center; min-width: 0; margin: 0; padding: 2px 16px; list-style: none; }
.u-pins-list > li { display: flex; flex: none; }
.u-pins-empty { flex: 1 1 auto; min-width: 0; overflow: hidden; color: var(--u-t4); font-size: var(--u-fs-sm); text-overflow: ellipsis; white-space: nowrap; }
.u-pins-add { flex: none; }
.u-chip.u-pinchip { gap: 0; padding: 0 10px 0 0; background: var(--u-lv2); box-shadow: var(--u-edge); }
.u-pinchip-b { display: inline-flex; align-items: center; gap: 6px; max-width: 240px; height: 100%; padding: 0 6px 0 10px; border: 0; border-radius: 99px; background: none; color: var(--u-t2); font: inherit; cursor: pointer; }
.u-pinchip-b:hover { color: var(--u-t1); }
.u-pinchip-b > .u-dotst { width: 6px; height: 6px; box-shadow: none; }
.u-pinchip-no, .u-pinpick-no { flex: none; color: var(--u-t3); font: 500 var(--u-fs-xs) var(--u-f-mono); font-variant-numeric: tabular-nums; }
.u-pinchip-t { min-width: 0; overflow: hidden; color: var(--u-t1); text-overflow: ellipsis; white-space: nowrap; }
.u-pinchip.is-new { animation: u-menu-in .25s var(--u-ease); }
.u-pop.u-pinpick { display: flex; flex-direction: column; gap: 6px; width: min(340px, calc(var(--u-vw, 100vw) - 24px)); padding: 6px; }
.u-pinpick-l { max-height: 260px; overflow: auto; }
.u-pinpick-o { gap: 10px; min-height: 36px; }
.u-pinpick-o > .u-menu-tick { margin-left: 0; }
.u-pinpick-o.is-off { opacity: .45; }
.u-pinpick-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-pinpick-s { flex: none; color: var(--u-t4); font-size: var(--u-fs-xs); }
.u-pinpick-f { padding: 4px 8px 2px; border-top: 1px solid var(--u-hair); color: var(--u-t4); font-size: var(--u-fs-xs); }

/* =============== Quick switcher with filter tokens (.u-qsw, in the command palette) =============== */
/* The palette (.u-cmdk) with filter chips typed into its box: in:, from:, type:. .u-qsw--inline
   shows it in the page instead of floating over it. */
.u-qsw .u-cmdk-in { height: auto; min-height: 48px; flex-wrap: wrap; gap: 6px 8px; padding: 8px 14px; }
.u-qsw .u-cmdk-in > input { flex: 1 1 120px; min-width: 120px; height: 32px; }
.u-qsw-toks { display: contents; }
.u-chip.u-qsw-tok { --h: 24px; gap: 4px; padding: 0 10px 0 8px; background: var(--u-blue-10); border-color: transparent; color: var(--u-blue-t); font-size: var(--u-fs-sm); }
.u-qsw-tok > b { font-weight: 500; opacity: .8; }
.u-qsw-tok > span { max-width: 160px; overflow: hidden; color: var(--u-t1); text-overflow: ellipsis; }
.u-qsw-tok.is-hit { animation: u-menu-in .2s var(--u-ease); }
.u-qsw-sugg > .u-i { color: var(--u-blue-t); }
.u-qsw-key { color: var(--u-blue-t); font: 500 var(--u-fs-sm) var(--u-f-mono); }
.u-qsw .u-cmdk-f { flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.u-qsw-hint { display: inline-flex; align-items: center; gap: 4px; }
.u-qsw-hint > button { height: 20px; padding: 0 6px; border: 1px solid var(--u-hair2); border-radius: 5px; background: var(--u-lv2); color: var(--u-t2); font: 500 var(--u-fs-xs) var(--u-f-mono); cursor: pointer; }
.u-qsw-hint > button:hover { background: var(--u-active); color: var(--u-t1); }
.u-cmdk.u-qsw--inline { position: relative; z-index: auto; left: auto; top: auto; width: 100%; transform: none; animation: none; box-shadow: var(--u-sh-card); }
.u-qsw--inline .u-cmdk-l { max-height: 260px; }

/* =============== Connecting card (.u-conncard) for a remote session =============== */
.u-conncard { display: grid; gap: 14px; width: min(360px, 100%); min-width: 0; padding: 16px; border-radius: var(--u-r-xl); border: 1px solid var(--u-hair2); background: var(--u-lv3); box-shadow: var(--u-sh-pop); color: var(--u-t3); }
.u-conncard-h { display: flex; align-items: center; gap: 12px; min-width: 0; }
.u-conncard-ic { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: var(--u-r-md); background: var(--u-blue-10); color: var(--u-blue-t); }
.u-conncard-ic > .u-i { width: 17px; height: 17px; }
.u-conncard-t { display: grid; gap: 2px; flex: 1 1 auto; min-width: 0; }
.u-conncard-t > b { overflow: hidden; color: var(--u-t1); font: 600 var(--u-fs) var(--u-f-mono); text-overflow: ellipsis; white-space: nowrap; }
.u-conncard-t > span { overflow: hidden; font-size: var(--u-fs-xs); text-overflow: ellipsis; white-space: nowrap; }
.u-conncard > .u-progress { height: 4px; }
.u-conncard .u-msl { gap: 8px; font-size: var(--u-fs-sm); }
.u-conncard .u-msl > li > .u-msl-ic > .u-i:last-child { color: var(--u-bad-t); }
.u-conncard .u-msl > li.is-failed { color: var(--u-bad-t); }
.u-conncard .u-msl > li.is-failed > .u-msl-ic { border-color: transparent; background: var(--u-bad-10); }
.u-conncard .u-msl > li.is-failed > .u-msl-ic > .u-i:last-child { opacity: 1; transform: none; width: 12px; height: 12px; }
.u-conncard .u-msl > li.is-done > .u-msl-ic > .u-i:last-child { opacity: 0; }
.u-conncard-msg { margin: -4px 0 0; color: var(--u-bad-t); font-size: var(--u-fs-sm); line-height: 1.45; }
.u-conncard-f { display: flex; align-items: center; gap: 8px; }
.u-conncard-time { margin-right: auto; color: var(--u-t4); font: 500 var(--u-fs-xs) var(--u-f-mono); font-variant-numeric: tabular-nums; }
.u-conncard.is-failed .u-conncard-ic { background: var(--u-bad-10); color: var(--u-bad-t); }
.u-conncard.is-done .u-conncard-ic { background: var(--u-ok-10); color: var(--u-ok-t); }
/* Centred over a remote desktop stand-in while it connects */
.u-connstage { position: relative; display: grid; place-items: center; min-height: 300px; padding: 16px; overflow: hidden; border-radius: var(--u-r-lg); border: 1px solid var(--u-hair); background: var(--u-desk); }

/* =============== Folded transfers line (.u-xfold) =============== */
/* One compact line for a session footer ("3 transfers · 2 done · 1 at 45%") that opens to the
   full Umbra.transfers list. */
.u-xfold { min-width: 0; border-radius: var(--u-r-md); border: 1px solid var(--u-hair); background: var(--u-lv2); box-shadow: var(--u-sh-row); overflow: hidden; }
.u-xfold-b { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 6px 10px 6px 12px; border: 0; background: none; color: var(--u-t2); font: inherit; font-size: var(--u-fs-sm); text-align: left; cursor: pointer; }
.u-xfold-b:hover { background: var(--u-hover); }
.u-xfold-b:focus-visible { outline-offset: -2px; }
.u-xfold-b > .u-i { width: 14px; height: 14px; flex: none; color: var(--u-t3); }
.u-xfold-s { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.u-xfold-s .is-bad { color: var(--u-bad-t); }
.u-xfold-b > .u-progress { flex: 1 1 60px; min-width: 40px; max-width: 160px; height: 4px; margin-left: auto; }
.u-xfold-b > .u-xfold-cv { margin-left: 4px; transition: transform var(--u-med) var(--u-ease); }
.u-xfold-b > .u-progress[hidden] + .u-xfold-cv { margin-left: auto; }
.u-xfold-b[aria-expanded="true"] > .u-xfold-cv { transform: rotate(180deg); }
.u-xfold-p { border-top: 1px solid var(--u-hair); animation: u-rise var(--u-med) var(--u-ease); }
.u-xfold-p[hidden] { display: none; }
/* Inside the fold the list keeps only its Clear Finished button from its own header */
.u-xfold-p > .u-xfers { border: 0; border-radius: 0; box-shadow: none; }
.u-xfold-p .u-xfer-h { justify-content: flex-end; min-height: 0; padding: 4px 6px 0; border-bottom: 0; }
.u-xfold-p .u-xfer-h > .u-i, .u-xfold-p .u-xfer-ht, .u-xfold-p .u-xfer-h > .u-progress { display: none; }
.u-xfold-p .u-xfer-h:has(> .u-btn[hidden]) { display: none; }
.u-xfold-p .u-xfer-list { max-height: 240px; }

/* =============== Phone =============== */
@media (max-width: 640px) {
  .u-rxbar-b { width: 40px; height: 40px; }
  .u-pinchip-b { max-width: 180px; }
  .u-xfold-b { min-height: 40px; }
  .u-leave-opt { min-height: 64px; }
}
@container u-frame (max-width: 640px) {
  .u-rxbar-b { width: 40px; height: 40px; }
  .u-pinchip-b { max-width: 180px; }
  .u-xfold-b { min-height: 40px; }
  .u-leave-opt { min-height: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .u-rxfloat { animation: none; }
  .u-ptt.is-tx .u-ptt-btn::after { animation: none; opacity: .8; }
  .u-ptt.is-tx .u-ptt-btn { transform: none; }
}

/* ---- umbra-admin.css ---- */
/* ==========================================================================
   Umbra Admin: Refund form, caller ID preview, course builder and quiz player.
   Part of css/umbra.css (tools/build.mjs). Uses only --u-* tokens, so dark and light both work.
   ========================================================================== */

/* ---------- Refund form (form.u-refund[data-u-refund]): pick a charge, full or partial, an amount that can't pass what is
   left on the charge, a reason, a one-line summary and a confirm button that says why it is waiting. ---------- */
.u-refund { container: u-refund / inline-size; display: grid; gap: 16px; min-width: 0; margin: 0; }
.u-refund-sec { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.u-refund-sec > legend { padding: 0; margin-bottom: 8px; color: var(--u-t1); font-size: var(--u-fs-sm); font-weight: 500; }
.u-refund-list { display: grid; gap: 6px; min-width: 0; }
/* A charge row is a real radio inside a label, drawn as a row (like the portal's .u-pick cards). */
.u-refund-ch { display: grid; grid-template-columns: auto 64px minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; min-height: 44px; padding: 8px 12px; border-radius: var(--u-r-md); border: 1px solid var(--u-hair); background: var(--u-lv2); box-shadow: var(--u-edge); color: var(--u-t2); cursor: pointer; }
.u-refund-ch:hover { border-color: var(--u-hair2); background: var(--u-lv3); }
.u-refund-ch:has(input:checked) { border-color: color-mix(in srgb, var(--u-blue) 60%, transparent); background: var(--u-blue-10); box-shadow: 0 0 0 1px color-mix(in srgb, var(--u-blue) 30%, transparent); }
.u-refund-ch:has(input:focus-visible) { box-shadow: var(--u-ring); }
.u-refund-ch:has(input:disabled) { border-style: dashed; background: transparent; box-shadow: none; color: var(--u-t4); cursor: default; }
.u-refund-ch-d { color: var(--u-t3); font-size: var(--u-fs-sm); font-variant-numeric: tabular-nums; white-space: nowrap; }
.u-refund-ch-b { display: grid; gap: 1px; min-width: 0; }
.u-refund-ch-b > b { overflow: hidden; color: var(--u-t1); font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.u-refund-ch-b > small { overflow: hidden; color: var(--u-t3); font-size: var(--u-fs-xs); text-overflow: ellipsis; white-space: nowrap; }
.u-refund-ch-a { display: grid; justify-items: end; gap: 2px; color: var(--u-t1); font: 500 var(--u-fs) var(--u-f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.u-refund-ch-a > small { color: var(--u-t4); font: var(--u-fs-xs) var(--u-f-ui); }
.u-refund-ch:has(input:disabled) .u-refund-ch-b > b, .u-refund-ch:has(input:disabled) .u-refund-ch-a { color: var(--u-t3); }
.u-refund-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.u-refund-row > .u-field, .u-refund-row > .u-field > .u-ptabs { min-width: 0; }
.u-refund-amt .u-inwrap > input { font-family: var(--u-f-mono); font-variant-numeric: tabular-nums; }
/* Full refund: the amount is the whole charge and can't be typed over, so the box reads as fixed */
.u-refund-amt.is-locked .u-inwrap { background: var(--u-sunken); cursor: default; }
.u-refund-amt.is-locked .u-inwrap > input { color: var(--u-t2); }
.u-refund-sum { display: flex; align-items: flex-start; gap: 10px; min-width: 0; padding: 10px 12px; border-radius: var(--u-r-md); border: 1px solid var(--u-hair); background: var(--u-sunken); box-shadow: var(--u-fld-in); }
.u-refund-sum > .u-i { flex: none; width: 16px; height: 16px; margin-top: 1px; color: var(--u-blue-t); }
.u-refund-sum-b { display: grid; gap: 2px; min-width: 0; }
.u-refund-sum-b > b { color: var(--u-t1); font-weight: 500; overflow-wrap: anywhere; }
.u-refund-sum-b > b > span { font-family: var(--u-f-mono); font-variant-numeric: tabular-nums; }
.u-refund-sum-b > small { color: var(--u-t3); font-size: var(--u-fs-xs); }
.u-refund-sum.is-empty > .u-i { color: var(--u-t4); }
.u-refund-sum.is-empty .u-refund-sum-b > b { color: var(--u-t3); font-weight: 400; }
.u-refund-f { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding-top: 12px; border-top: 1px solid var(--u-hair); }
.u-refund-why { flex: 1 1 200px; display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--u-t4); font-size: var(--u-fs-xs); }
.u-refund-why > .u-i { flex: none; width: 13px; height: 13px; }
.u-refund-why.is-ready { color: var(--u-ok-t); }
.u-refund-f > .u-btn { margin-left: auto; }
@container u-refund (max-width: 460px) {
  .u-refund-ch { grid-template-columns: auto minmax(0, 1fr) auto; }
  .u-refund-ch > input { grid-row: 1 / span 2; }
  .u-refund-ch-b { grid-column: 2; grid-row: 1; }
  .u-refund-ch-d { grid-column: 2; grid-row: 2; font-size: var(--u-fs-xs); }
  .u-refund-ch-a { grid-column: 3; grid-row: 1 / span 2; }
  .u-refund-row { grid-template-columns: minmax(0, 1fr); }
  .u-refund-f > .u-btn { width: 100%; margin: 0; }
}

/* ---------- Caller ID preview (.u-cid): the form beside a token-drawn phone that shows what the other person sees ---------- */
.u-cid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px 24px; min-width: 0; }
.u-cid-form { flex: 1 1 260px; display: grid; gap: 14px; min-width: 0; }
.u-cid-count { flex: none; padding-right: 4px; color: var(--u-t4); font: 500 var(--u-fs-xs) var(--u-f-mono); font-variant-numeric: tabular-nums; }
.u-cid-count.is-near { color: var(--u-warn-t); }
.u-cid-count.is-full { color: var(--u-warn-t); font-weight: 600; }
.u-cid-warn .u-btn { margin-top: 8px; }
/* The phone: a frame, a notch, a status line, the caller and the two call buttons. All tokens, so it follows the theme. */
.u-cid-phone { flex: 0 0 220px; position: relative; width: 220px; height: 420px; margin: 0 auto; padding: 8px; border-radius: calc(var(--u-r-xl) * 2); border: 1px solid var(--u-hair2); background: var(--u-lv0); box-shadow: var(--u-sh-pop); }
.u-cid-scr { position: relative; display: flex; flex-direction: column; align-items: center; height: 100%; padding: 12px 14px 20px; overflow: hidden; border-radius: calc(var(--u-r-xl) * 2 - 8px); background: linear-gradient(180deg, var(--u-blue-10), transparent 55%), var(--u-lv1); box-shadow: inset 0 0 0 1px var(--u-hair); text-align: center; }
.u-cid-scr::before { content: ""; position: absolute; top: 8px; left: 50%; width: 64px; height: 16px; margin-left: -32px; border-radius: var(--u-r-full); background: var(--u-lv0); }
.u-cid-top { display: flex; align-items: center; justify-content: space-between; align-self: stretch; height: 16px; padding: 0 4px; color: var(--u-t2); font: 600 var(--u-fs-xs) var(--u-f-ui); font-variant-numeric: tabular-nums; }
.u-cid-top > span { display: inline-flex; gap: 4px; }
.u-cid-top .u-i { width: 12px; height: 12px; }
.u-cid-k { margin-top: 32px; color: var(--u-t3); font-size: var(--u-fs-sm); }
.u-cid-av { display: grid; place-items: center; width: 64px; height: 64px; margin-top: 16px; border-radius: 50%; border: 1px solid var(--u-hair2); background: var(--u-lv3); box-shadow: var(--u-sh-card); color: var(--u-t2); font-size: var(--u-fs-xl); font-weight: 600; }
.u-cid-av > .u-i { width: 28px; height: 28px; }
.u-cid-n { max-width: 100%; margin-top: 14px; overflow: hidden; color: var(--u-t1); font-size: var(--u-fs-xl); font-weight: 600; letter-spacing: -.01em; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.u-cid-num { margin-top: 4px; color: var(--u-t2); font: 500 var(--u-fs-md) var(--u-f-mono); font-variant-numeric: tabular-nums; }
.u-cid-n.is-none { color: var(--u-t2); font-family: var(--u-f-mono); font-size: var(--u-fs-lg); font-variant-numeric: tabular-nums; }
.u-cid-flag { display: inline-flex; align-items: center; gap: 5px; height: 22px; margin-top: 12px; padding: 0 8px; border-radius: var(--u-r-full); background: var(--u-warn-10); color: var(--u-warn-t); font-size: var(--u-fs-xs); font-weight: 500; animation: u-rise var(--u-med) var(--u-ease); }
.u-cid-flag > .u-i { width: 12px; height: 12px; }
.u-cid-flag[hidden] { display: none; }
.u-cid-acts { display: flex; justify-content: space-between; align-self: stretch; margin-top: auto; padding: 0 8px; }
.u-cid-acts > span { display: grid; justify-items: center; gap: 6px; color: var(--u-t3); font-size: var(--u-fs-xs); }
.u-cid-b { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: var(--u-on-accent); }
.u-cid-b > .u-i { width: 20px; height: 20px; }
.u-cid-b--no { background: linear-gradient(180deg, var(--u-bd-top), var(--u-bd-bot)); box-shadow: var(--u-bp-hi), var(--u-bd-sh); }
.u-cid-b--yes { background: linear-gradient(180deg, var(--u-bs-top), var(--u-bs-bot)); box-shadow: var(--u-bp-hi), var(--u-bs-sh); }
.u-cid-phone.is-warn .u-cid-scr { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--u-warn) 55%, transparent), inset 0 0 0 4px var(--u-warn-10); }

/* ---------- Course builder (.u-cbuild): modules and lessons on the left, the picked lesson's details on the right.
   Resizable with the shared .u-split gutter; below 640px of its own width the details stack under the outline. ---------- */
.u-cbuild { container: u-cbuild / inline-size; display: flex; flex-direction: column; min-width: 0; border-radius: var(--u-r-lg); border: 1px solid var(--u-hair); background: var(--u-lv1); box-shadow: var(--u-sh-card); overflow: hidden; }
.u-cbuild-h { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 12px 14px; border-bottom: 1px solid var(--u-hair); background: var(--u-lv2); }
.u-cbuild-t { flex: 1 1 200px; min-width: 0; }
.u-cbuild-t > h3 { margin: 0; overflow: hidden; color: var(--u-t1); font-size: var(--u-fs-md); font-weight: 600; letter-spacing: -.01em; text-overflow: ellipsis; white-space: nowrap; }
.u-cbuild-t > p { margin: 2px 0 0; color: var(--u-t3); font-size: var(--u-fs-sm); font-variant-numeric: tabular-nums; }
.u-cbuild-body { height: 520px; min-height: 0; }
.u-cbuild-body > .u-split-a { width: var(--u-split, 58%); }
.u-cbout { display: flex; flex-direction: column; gap: 10px; padding: 10px; }
.u-cbmod { min-width: 0; border-radius: var(--u-r-md); border: 1px solid var(--u-hair); background: var(--u-lv2); box-shadow: var(--u-sh-card); }
.u-cbmod-h { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 6px; padding: 6px 10px 6px 4px; }
.u-cbmod-tg .u-i { transition: transform var(--u-med) var(--u-ease); }
.u-cbmod-tg[aria-expanded="false"] .u-i { transform: rotate(-90deg); }
.u-cbmod-t { display: grid; gap: 1px; min-width: 0; }
.u-cbmod-t > span { color: var(--u-t4); font-size: var(--u-fs-xs); }
.u-cbmod-t > .u-inline-edit { color: var(--u-t1); font-weight: 600; }
.u-cbmod-t .u-inline-v { min-height: 24px; }
.u-cbmod-t .u-inline-f { height: 24px; }
.u-cbmod-sum { display: grid; justify-items: end; gap: 4px; color: var(--u-t3); font-size: var(--u-fs-xs); font-variant-numeric: tabular-nums; white-space: nowrap; }
.u-cbmod-sum > .u-progress { width: 72px; }
.u-cbmod-b[hidden] { display: none; }
/* A drag handle. Visual only here (Umbra has no generic sortable yet): Move Up / Move Down in the details do the moving. */
.u-cbrow .u-grip, .u-cbmod .u-grip { display: grid; place-items: center; flex: none; width: 16px; height: 24px; color: var(--u-t4); cursor: grab; }
.u-cbrow .u-grip > .u-i, .u-cbmod .u-grip > .u-i { width: 14px; height: 14px; }
.u-cbrow .u-grip:hover { background: none; color: var(--u-t4); }
.u-cbles { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0 6px 4px; list-style: none; }
.u-cbles-empty { margin: 0; padding: 6px 10px 6px 30px; color: var(--u-t4); font-size: var(--u-fs-sm); }
.u-cbrow { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto auto; align-items: center; gap: 8px; width: 100%; min-height: 40px; padding: 4px 10px 4px 2px; border: 1px solid transparent; border-radius: var(--u-r); background: none; color: var(--u-t2); font: inherit; text-align: left; cursor: pointer; }
.u-cbrow:hover { background: var(--u-hover); }
.u-cbrow[aria-current="true"] { border-color: var(--u-hair); background: var(--u-lv3); box-shadow: var(--u-sh-row); color: var(--u-t1); }
.u-cbrow:focus-visible { outline: 0; box-shadow: var(--u-ring); }
.u-cbrow-n { display: grid; gap: 1px; min-width: 0; }
.u-cbrow-n > b { overflow: hidden; color: var(--u-t1); font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.u-cbrow-n > small { color: var(--u-t4); font-size: var(--u-fs-xs); }
.u-cbrow-m { color: var(--u-t3); font: var(--u-fs-xs) var(--u-f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.u-cbrow .u-badge { height: 18px; }
.u-cbrow.is-new { animation: u-rise var(--u-slow) var(--u-ease); }
/* Lesson type tile: blue video, violet reading, amber quiz (with an icon, so colour is never the only sign) */
.u-ltype { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: var(--u-r-sm); background: var(--u-blue-10); color: var(--u-blue-t); }
.u-ltype > .u-i { width: 14px; height: 14px; }
.u-ltype[data-type="reading"] { background: var(--u-vio-10); color: var(--u-vio-t); }
.u-ltype[data-type="quiz"] { background: var(--u-warn-10); color: var(--u-warn-t); }
.u-ltype--lg { width: 32px; height: 32px; border-radius: var(--u-r); }
.u-ltype--lg > .u-i { width: 16px; height: 16px; }
.u-cbadd { display: flex; flex-wrap: wrap; gap: 4px; padding: 2px 8px 8px 26px; }
.u-cbadd > .u-btn { color: var(--u-t3); }
.u-cbadd > .u-btn:hover { color: var(--u-t1); }
.u-cbout-add { align-self: flex-start; }
.u-cbdet { display: flex; flex-direction: column; min-height: 100%; background: var(--u-lv2); }
.u-cbdet-h { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px 14px; border-bottom: 1px solid var(--u-hair); }
.u-cbdet-h > div { display: grid; gap: 1px; min-width: 0; }
.u-cbdet-h > div > span { color: var(--u-t4); font-size: var(--u-fs-xs); }
.u-cbdet-h > div > b { overflow: hidden; color: var(--u-t1); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.u-cbdet-b { display: grid; gap: 14px; align-content: start; padding: 14px; }
.u-cbdet-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.u-cbdet-b .u-ptabs { align-self: start; }
.u-cbdet-f { display: flex; align-items: center; gap: 4px; margin-top: auto; padding: 10px 14px; border-top: 1px solid var(--u-hair); }
.u-cbdet-f > .u-sp { flex: 1; }
.u-cbdet-del { color: var(--u-bad-t); }
.u-cbdet-del:hover { background: var(--u-bad-10); color: var(--u-bad-t); }
.u-cbdet > .u-empty { flex: 1; justify-content: center; }
@container u-cbuild (max-width: 640px) {
  .u-cbuild-body { flex-direction: column; height: auto; }
  .u-cbuild-body > .u-split-a { width: auto; overflow: visible; }
  .u-cbuild-body > .u-gutter { display: none; }
  .u-cbuild-body > .u-split-b { border-top: 1px solid var(--u-hair); overflow: visible; }
  .u-cbmod-sum > .u-progress { display: none; }
}
@container u-cbuild (max-width: 400px) {
  .u-cbrow { grid-template-columns: auto auto minmax(0, 1fr) auto; }
  .u-cbrow .u-badge { display: none; }
  .u-cbdet-row { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Quiz player (.u-quiz, built by Umbra.quiz): one question at a time, Check, feedback, then a score ---------- */
.u-quiz { container: u-quiz / inline-size; display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 16px; border-radius: var(--u-r-lg); border: 1px solid var(--u-hair); background: var(--u-lv2); box-shadow: var(--u-sh-card); }
.u-quiz-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 12px; }
.u-quiz-k { color: var(--u-t3); font-size: var(--u-fs-sm); font-weight: 500; font-variant-numeric: tabular-nums; }
.u-quiz-k > b { color: var(--u-t1); font-weight: 600; }
.u-quiz-s { color: var(--u-t4); font-size: var(--u-fs-xs); font-variant-numeric: tabular-nums; }
.u-quiz-top > .u-progress { grid-column: 1 / -1; }
.u-quiz-step { display: flex; flex-direction: column; gap: 14px; min-width: 0; margin: 0; animation: u-rise var(--u-slow) var(--u-ease); }
.u-quiz-q { margin: 0; color: var(--u-t1); font-size: var(--u-fs-lg); font-weight: 600; letter-spacing: -.01em; line-height: 1.4; }
.u-quiz-q:focus { outline: 0; }
.u-quiz-hint { margin: -8px 0 0; color: var(--u-t3); font-size: var(--u-fs-sm); }
.u-quiz-opts { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.u-quiz-opt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 48px; padding: 10px 14px; border-radius: var(--u-r-md); border: 1px solid var(--u-hair); background: var(--u-lv2); box-shadow: var(--u-edge); color: var(--u-t1); line-height: 1.45; cursor: pointer; }
.u-quiz-opt:hover { border-color: var(--u-hair2); background: var(--u-lv3); }
.u-quiz-opt:has(input:checked) { border-color: color-mix(in srgb, var(--u-blue) 60%, transparent); background: var(--u-blue-10); box-shadow: 0 0 0 1px color-mix(in srgb, var(--u-blue) 30%, transparent); }
.u-quiz-opt:has(input:focus-visible) { box-shadow: var(--u-ring); }
.u-quiz-opt:has(input:disabled) { cursor: default; }
.u-quiz-opt > input:disabled { opacity: 1; }
.u-quiz-opt-t { min-width: 0; overflow-wrap: anywhere; }
.u-quiz-mark { display: grid; place-items: center; width: 20px; height: 20px; }
.u-quiz-mark:empty { width: 0; }
.u-quiz-mark > .u-i { width: 16px; height: 16px; }
.u-quiz-mark > small { color: inherit; font-size: var(--u-fs-xs); font-weight: 500; white-space: nowrap; }
/* After Check every row is right, wrong or off. These outrank the picked (blue) and hover looks. */
.u-quiz-opts .u-quiz-opt.is-right { border-color: color-mix(in srgb, var(--u-ok) 55%, transparent); background: var(--u-ok-10); box-shadow: none; }
.u-quiz-opts .u-quiz-opt.is-wrong { border-color: color-mix(in srgb, var(--u-bad) 55%, transparent); background: var(--u-bad-10); box-shadow: none; }
.u-quiz-opts .u-quiz-opt.is-off { border-color: var(--u-hair); background: var(--u-lv2); box-shadow: var(--u-edge); color: var(--u-t3); }
.u-quiz-opt.is-right .u-quiz-mark { color: var(--u-ok-t); }
.u-quiz-opt.is-wrong .u-quiz-mark { color: var(--u-bad-t); }
.u-quiz-opt.is-missed { border-style: dashed; }
.u-quiz-fb { animation: u-rise var(--u-med) var(--u-ease); }
.u-quiz-fb b { display: block; color: var(--u-t1); font-weight: 600; }
.u-quiz-f { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.u-quiz-why { flex: 1 1 160px; min-width: 0; color: var(--u-t4); font-size: var(--u-fs-xs); }
.u-quiz-f > .u-btn { margin-left: auto; }
.u-quiz-done { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 0 4px; text-align: center; animation: u-rise var(--u-slow) var(--u-ease); }
.u-quiz-done > .u-ringp { --s: 96px; margin-bottom: 4px; }
.u-quiz-done > .u-ringp > b { font-size: var(--u-fs-lg); }
.u-quiz-done > h3 { margin: 0; color: var(--u-t1); font-size: var(--u-fs-xl); font-weight: 600; letter-spacing: -.015em; }
.u-quiz-done > h3:focus { outline: 0; }
.u-quiz-done > p { margin: 0; max-width: 360px; color: var(--u-t3); }
.u-quiz-rev { display: grid; gap: 4px; align-self: stretch; margin: 8px 0 0; padding: 10px; border-radius: var(--u-r-md); border: 1px solid var(--u-hair); background: var(--u-sunken); box-shadow: var(--u-fld-in); list-style: none; text-align: left; }
.u-quiz-rev > li { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 8px; min-height: 24px; color: var(--u-t2); font-size: var(--u-fs-sm); }
.u-quiz-rev > li > span:first-child { color: var(--u-t4); font: var(--u-fs-xs) var(--u-f-mono); font-variant-numeric: tabular-nums; }
.u-quiz-rev > li > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-quiz-rev .u-i { width: 14px; height: 14px; }
.u-quiz-rev .is-right { color: var(--u-ok-t); }
.u-quiz-rev .is-wrong { color: var(--u-bad-t); }
.u-quiz-done > .u-row { flex-wrap: wrap; justify-content: center; margin-top: 8px; }
@container u-quiz (max-width: 420px) {
  .u-quiz-q { font-size: var(--u-fs-md); }
  .u-quiz-f > .u-btn { width: 100%; margin: 0; }
}

@media (max-width: 640px) {
  .u-cbrow { min-height: 44px; }
}
@container u-frame (max-width: 640px) {
  .u-cbrow { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .u-cbmod-tg .u-i { transition: none; }
}

/* ---- umbra-site.css ---- */
/* ==========================================================================
   Umbra Site Motion: Website motion: reveal on scroll, count-up, process line, logo sweep, moving illustrations, marquee, rotating quote, cinematic hero and the sticky phone call bar.
   Part of css/umbra.css (tools/build.mjs). Uses only --u-* tokens, so dark and light both work.
   ========================================================================== */

/* Every piece here moves only transform and opacity, so it stays smooth on an old office PC. Nothing hides
   content before umbra.js has run: the "waiting" states (.u-rv, .is-ready) are classes umbra.js adds, and it
   adds none of them for reduced motion, so a page without the script, or with motion turned off, simply shows
   everything. Local knobs are plain names (--rv-d, --per, --i), not --u- tokens. */

/* Replay helper: umbra.js puts .u-site-now on for one frame so a piece can jump back to its start. */
.u-site-now, .u-site-now *, .u-site-now::before, .u-site-now::after, .u-site-now *::before, .u-site-now *::after { transition: none !important; animation: none !important; }

/* ---------- Reveal on scroll ([data-u-reveal] = up | fade | scale, [data-u-reveal-stagger] on a parent) ---------- */
.u-rv { opacity: 0; transition: opacity .6s var(--u-ease-out), transform .8s var(--u-ease); transition-delay: var(--rv-d, 0ms); }
.u-rv--up { transform: translateY(18px); }
.u-rv--scale { transform: scale(.94); }
.u-rv.is-in { opacity: 1; transform: none; }

/* ---------- Count-up numbers ([data-u-countup="1250"]) ----------
   The real value (.u-countup-f) always holds the final number and is what screen readers read; while it
   counts it is see-through and the moving copy (.u-countup-v, hidden from screen readers) sits on top in the
   same grid cell. The cell is as wide as the final number, so nothing around it shifts. */
.u-countup { display: inline-grid; font-variant-numeric: tabular-nums; }
.u-countup > span { grid-area: 1 / 1; }
.u-countup-f.is-hold { opacity: 0; }
.u-countup-v { user-select: none; pointer-events: none; }
.u-countup-v:empty { display: none; }
/* A row of big website numbers to put count-ups in */
.u-sitestats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 12px; margin: 0; }
.u-sitestat { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; padding: 18px 12px; border-radius: var(--u-r-lg); border: 1px solid var(--u-hair); background: var(--u-lv2); box-shadow: var(--u-sh-card); text-align: center; }
.u-sitestat > dd { order: -1; margin: 0; color: var(--u-t1); font: 600 var(--u-fs-4xl)/1 var(--u-f-ui); letter-spacing: -.04em; }
.u-sitestat > dt { color: var(--u-t3); font-size: var(--u-fs-sm); }

/* ---------- Process line (.u-process[data-u-process] > ol.u-process-list > li.u-process-step) ----------
   Each step but the last draws its own connector from its number to the next one (::before is the track,
   ::after the blue fill), so no measuring is needed in either direction. Steps light up in order: step i
   waits i × --per, and its connector draws during the next --per. Without umbra.js (or with reduced motion)
   the line is simply drawn and every number lit. */
.u-process { --per: 420ms; --gap: 16px; container-type: inline-size; }
.u-process-list { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--gap); margin: 0; padding: 0; list-style: none; }
.u-process-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; text-align: center; }
.u-process-n { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 8px; border-radius: 50%; border: 1px solid var(--u-bp-bd); background-color: var(--u-bp-bot); box-shadow: var(--u-sh-card), 0 0 0 4px var(--u-blue-10); color: var(--u-on-accent); font: 600 var(--u-fs-md)/1 var(--u-f-mono); }
.u-process-step > b { color: var(--u-t1); font-size: var(--u-fs-md); font-weight: 600; line-height: 1.3; }
.u-process-step > p { max-width: 30ch; margin: 0; color: var(--u-t3); font-size: var(--u-fs-sm); line-height: 1.5; text-wrap: pretty; }
.u-process-step:not(:last-child)::before, .u-process-step:not(:last-child)::after { content: ""; position: absolute; top: 17px; left: 50%; width: calc(100% + var(--gap)); height: 2px; border-radius: 2px; transform-origin: left center; pointer-events: none; }
.u-process-step::before { background: var(--u-hair2); }
.u-process-step::after { background: var(--u-blue); }
/* Waiting to be seen (umbra.js adds .is-ready, then .is-in when it scrolls into view) */
.u-process.is-ready .u-process-n { transition: transform .45s var(--u-ease); transition-delay: calc(var(--i, 0) * var(--per)); }
.u-process.is-ready .u-process-step::after { transition: transform var(--per) linear calc(var(--i, 0) * var(--per) + 120ms); }
.u-process.is-ready:not(.is-in) .u-process-n { border-color: var(--u-hair2); background-color: var(--u-lv2); box-shadow: var(--u-sh-card), 0 0 0 4px transparent; color: var(--u-t3); transform: scale(.92); }
.u-process.is-ready:not(.is-in) .u-process-step::after { transform: scaleX(0); }
/* Narrow (a phone, or a narrow column): the steps stack and the line runs down the left */
@container (max-width: 560px) {
  .u-process-list { grid-auto-flow: row; grid-auto-columns: auto; --gap: 20px; }
  .u-process-step { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 14px; align-items: start; text-align: left; }
  .u-process-n { grid-row: 1 / span 2; margin: 0; }
  .u-process-step > b { grid-column: 2; padding-top: 8px; }
  .u-process-step > p { grid-column: 2; }
  .u-process-step:not(:last-child)::before, .u-process-step:not(:last-child)::after { top: 18px; left: 17px; width: 2px; height: calc(100% + var(--gap)); transform-origin: center top; }
  .u-process.is-ready:not(.is-in) .u-process-step::after { transform: scaleY(0); }
}

/* ---------- Logo build with a light sweep (.u-logobuild[data-u-logobuild]) ----------
   Holds any inline SVG (its top-level shapes assemble) or text in .u-logobuild-text (its letters assemble).
   Once built, one soft band of light crosses it, clipped to the logo's box. Colour is the page's: --u-blue
   by default, until ITX's logo blue is settled. */
.u-logobuild { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; max-width: 100%; padding: 6px 12px; overflow: hidden; border-radius: var(--u-r-lg); color: var(--u-blue); }
.u-logobuild > svg { display: block; width: auto; max-width: 100%; height: 48px; overflow: visible; }
.u-logobuild-text { font: 800 var(--u-fs-4xl)/1 var(--u-f-ui); letter-spacing: -.05em; white-space: nowrap; }
.u-lb-w { display: inline-flex; }
.u-lb-p { display: inline-block; transform-box: fill-box; transform-origin: center; transition: opacity .45s var(--u-ease-out), transform .65s var(--u-ease); transition-delay: calc(var(--i, 0) * 70ms); }
.u-logobuild.is-ready:not(.is-in) .u-lb-p { opacity: 0; transform: translateY(12px) scale(.86); }
.u-logobuild::after { content: ""; position: absolute; z-index: 1; top: -25%; bottom: -25%; left: 0; width: 45%; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--u-on-accent) 60%, transparent), transparent); mix-blend-mode: overlay; opacity: 0; transform: translateX(-130%) skewX(-18deg); pointer-events: none; }
.u-logobuild.is-ready.is-in::after { animation: u-site-sweep 1.3s var(--u-ease-out) var(--sd, .6s) 1 both; }
@keyframes u-site-sweep {
  0% { opacity: 0; transform: translateX(-130%) skewX(-18deg); }
  15%, 80% { opacity: 1; }
  100% { opacity: 0; transform: translateX(260%) skewX(-18deg); }
}

/* ---------- Moving illustrations (.u-anim[data-u-anim="network" | "call"]) ----------
   Inline SVG drawn by umbra.js from tokens. They move only while on screen (.is-playing); off screen, paused,
   or with reduced motion they hold a still frame that still reads: packets halfway along their links, rings
   standing around the phone. */
.u-anim { position: relative; display: block; width: 100%; min-width: 0; color: var(--u-t2); }
.u-anim > svg { display: block; width: 100%; height: auto; margin: 0 auto; overflow: visible; }
.u-anim[data-u-anim="network"] > svg { max-width: 480px; }
.u-anim[data-u-anim="call"] > svg { max-width: 260px; }
.u-anim-ic { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.u-anim text { font-family: var(--u-f-ui); }
/* Pause button shared by the illustrations, the big marquee and the rotating quotes */
.u-site-pause { position: absolute; z-index: 2; top: 0; right: 0; color: var(--u-t4); }
.u-site-pause:hover, .u-site-pause:focus-visible { color: var(--u-t1); }

/* (a) network packets */
.u-net-link { stroke: var(--u-hair3); stroke-width: 1.5; stroke-dasharray: 3 4; }
.u-net-node { fill: var(--u-lv2); stroke: var(--u-hair2); stroke-width: 1; }
.u-net-node--hub { fill: var(--u-lv3); stroke: var(--u-blue); stroke-width: 1.5; }
.u-net-ic { color: var(--u-t2); }
.u-net-ic--hub { color: var(--u-blue-t); }
.u-net-l { fill: var(--u-t3); font-size: 11px; font-weight: 500; text-anchor: middle; }
.u-net-halo { fill: none; stroke: var(--u-blue); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.u-net-pkt { fill: var(--u-blue); transform: translate(calc(var(--dx) * var(--at, .5)), calc(var(--dy) * var(--at, .5))); }
.u-net-pkt--b { fill: var(--u-ok); }
.u-anim.is-playing .u-net-pkt { animation: u-site-pkt var(--dur, 2.4s) linear var(--del, 0s) infinite both; }
.u-anim.is-playing .u-net-halo { animation: u-site-halo 2.6s var(--u-ease-out) infinite; }
@keyframes u-site-pkt {
  0% { opacity: 0; transform: translate(0, 0); }
  14%, 86% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)); }
}
@keyframes u-site-halo { 0% { opacity: .55; transform: scale(1); } 100% { opacity: 0; transform: scale(1.7); } }

/* (b) incoming call */
.u-call-ring { fill: none; stroke: var(--u-ok); stroke-width: 1.5; opacity: var(--o, .2); transform: scale(var(--s, 1.5)); transform-box: fill-box; transform-origin: center; }
.u-call-core { fill: var(--u-bs-bot); stroke: var(--u-bs-bd); stroke-width: 1; }
.u-call-ph { color: var(--u-on-accent); transform-box: fill-box; transform-origin: center; }
.u-call-k { fill: var(--u-t3); font-size: 11px; font-weight: 500; text-anchor: middle; }
.u-call-n { fill: var(--u-t1); font-size: 14px; font-weight: 600; text-anchor: middle; }
.u-anim.is-playing .u-call-ring { animation: u-site-ring 2.4s var(--u-ease-out) var(--d, 0s) infinite both; }
.u-anim.is-playing .u-call-ph { animation: u-site-wiggle 2.4s var(--u-ease) infinite; }
@keyframes u-site-ring { 0% { opacity: .55; transform: scale(1); } 100% { opacity: 0; transform: scale(2.1); } }
@keyframes u-site-wiggle {
  0%, 34%, 100% { transform: none; }
  4% { transform: rotate(-12deg); } 10% { transform: rotate(10deg); } 16% { transform: rotate(-8deg); }
  22% { transform: rotate(5deg); } 28% { transform: rotate(-2deg); }
}

/* ---------- Big text marquee (.u-bigmarquee[data-u-bigmarquee] > .u-bigmarquee-track) ----------
   umbra.js wraps the track in .u-bigmarquee-strip, adds a copy (hidden from screen readers) to close the loop,
   and a pause button. Pauses on hover, on focus, off screen and with its button; stands still for reduced
   motion. Big display type, past the 44px top of the type scale on purpose; --mq-t is one loop's time. */
.u-bigmarquee { --gap: 40px; --mq-t: 40s; position: relative; min-width: 0; }
.u-bigmarquee-strip { display: flex; gap: var(--gap); min-width: 0; overflow: hidden; padding: 6px 0;
  -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.u-bigmarquee-track { display: flex; flex: none; align-items: center; gap: var(--gap); min-width: max-content; margin: 0; padding: 0; list-style: none; }
.u-bigmarquee-track > li, .u-bigmarquee-track > span { color: color-mix(in srgb, var(--u-t1) 22%, transparent); font: 700 clamp(var(--u-fs-4xl), 8vw, 96px)/1.05 var(--u-f-ui); letter-spacing: -.045em; white-space: nowrap; }
.u-bigmarquee .u-bigmarquee-track > .u-bigmarquee-sep { display: block; flex: none; width: 28px; height: 28px; color: var(--u-blue); opacity: .7; -webkit-text-stroke: 0; }
.u-bigmarquee-sep > .u-i { width: 100%; height: 100%; }
.u-bigmarquee--outline .u-bigmarquee-track > li, .u-bigmarquee--outline .u-bigmarquee-track > span { color: transparent; -webkit-text-stroke: 1.2px var(--u-hair3); }
/* u-marquee is the logo strip's keyframe (umbra-forms.css): one track width plus --gap to the left */
.u-bigmarquee.is-moving.is-playing .u-bigmarquee-track { animation: u-marquee var(--mq-t) linear infinite; }
.u-bigmarquee--rev.is-moving.is-playing .u-bigmarquee-track { animation-direction: reverse; }
.u-bigmarquee.is-moving:hover .u-bigmarquee-track, .u-bigmarquee.is-moving:focus-within .u-bigmarquee-track { animation-play-state: paused; }
.u-bigmarquee > .u-site-pause { top: 50%; right: 4px; margin-top: calc(var(--h) / -2); opacity: 0; transition: opacity var(--u-fast); }
.u-bigmarquee:hover > .u-site-pause, .u-bigmarquee > .u-site-pause:focus-visible, .u-bigmarquee.is-paused > .u-site-pause { opacity: 1; }

/* ---------- Rotating testimonial (.u-rotator[data-u-rotate] > .u-rotator-slides > .u-rotator-slide) ----------
   Quotes cross-fade (opacity, and a 8px rise). The thin bar along the bottom is the timer: when its fill
   finishes, the next quote shows, so pausing the bar (hover, focus, off screen, the pause button) pauses the
   rotation. Without umbra.js the quotes simply stack. */
.u-rotator { --rot-t: 6500ms; position: relative; display: grid; gap: 16px; min-width: 0; padding: 24px 20px 20px; overflow: hidden; text-align: center; }
.u-rotator-slide { margin: 0; }
.u-rotator.is-ready .u-rotator-slides { display: grid; }
.u-rotator.is-ready .u-rotator-slide { grid-area: 1 / 1; transition: opacity .6s var(--u-ease-out), transform .7s var(--u-ease); }
.u-rotator.is-ready .u-rotator-slide:not(.is-on) { opacity: 0; transform: translateY(8px); pointer-events: none; }
.u-rotator .u-quote { align-items: center; padding: 0; }
.u-rotator .u-quote blockquote { max-width: 52ch; font-size: var(--u-fs-xl); line-height: 1.45; letter-spacing: -.01em; text-wrap: balance; }
.u-rotator .u-quote figcaption { margin-top: 0; text-align: left; }
.u-rotator-nav { position: relative; display: flex; align-items: center; justify-content: center; min-height: 28px; }
.u-rotator-dots { display: flex; gap: 2px; }
.u-rotator-dot { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.u-rotator-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--u-hair3); transition: transform .25s var(--u-ease); }
.u-rotator-dot:hover::before { background: var(--u-t4); }
.u-rotator-dot[aria-current="true"]::before { background: var(--u-blue); transform: scale(1.35); }
.u-rotator-nav > .u-site-pause { top: 50%; margin-top: calc(var(--h) / -2); }
.u-rotator-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--u-hair); }
.u-rotator-bar > i { position: absolute; inset: 0; background: var(--u-blue); transform: scaleX(0); transform-origin: left center; }
.u-rotator.is-playing .u-rotator-bar.is-run > i { animation: u-site-fill var(--rot-t) linear 1 both; }
.u-rotator:hover .u-rotator-bar.is-run > i, .u-rotator:focus-within .u-rotator-bar.is-run > i { animation-play-state: paused; }
@keyframes u-site-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Cinematic hero (.u-cinehero[data-u-cinehero]) ----------
   Full width up to --u-site-w-wide. ::after is the spotlight, a token radial glow drifting slowly with
   transform (only while on screen); ::before is left free for .u-dots. Headline sizes past the type scale
   on purpose, like .u-site-h. The cue (.u-cinehero-cue) bobs and scrolls to the next section. */
.u-cinehero { position: relative; isolation: isolate; container-type: inline-size; display: grid; place-items: center; width: 100%; max-width: var(--u-site-w-wide); min-height: min(86vh, 760px); margin: 0 auto; padding: 96px 20px 104px; overflow: hidden; text-align: center; }
.u-cinehero::after { content: ""; position: absolute; z-index: -1; left: 50%; top: 42%; width: 960px; height: 960px; margin: -480px 0 0 -480px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--u-blue) 24%, transparent), color-mix(in srgb, var(--u-blue) 8%, transparent) 55%, transparent); transform: translate(-9%, -6%); animation: u-site-drift 24s ease-in-out infinite alternate; animation-play-state: paused; pointer-events: none; }
.u-cinehero.is-playing::after { animation-play-state: running; }
@keyframes u-site-drift {
  0% { transform: translate(-9%, -6%); }
  35% { transform: translate(7%, -2%); }
  70% { transform: translate(-3%, 7%); }
  100% { transform: translate(9%, 3%); }
}
.u-cinehero-in { display: flex; flex-direction: column; align-items: center; max-width: 820px; min-width: 0; }
.u-cinehero-in > * { animation: u-rise .7s var(--u-ease) both; }
.u-cinehero-in > :nth-child(2) { animation-delay: .08s; } .u-cinehero-in > :nth-child(3) { animation-delay: .16s; } .u-cinehero-in > :nth-child(n+4) { animation-delay: .24s; }
.u-cinehero-h { margin: 18px 0 0; color: var(--u-t1); font-size: clamp(var(--u-fs-3xl), 6.4cqi, 64px); font-weight: 600; line-height: 1.04; letter-spacing: -.045em; text-wrap: balance; }
.u-cinehero-p { max-width: 56ch; margin: 18px 0 0; color: var(--u-t3); font-size: var(--u-fs-lg); line-height: 1.55; text-wrap: pretty; }
.u-cinehero-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.u-cinehero-cue { position: absolute; left: 50%; bottom: 24px; display: grid; place-items: center; width: 40px; height: 40px; margin-left: -20px; padding: 0; border-radius: 50%; border: 1px solid var(--u-hair2); background: var(--u-lv2); box-shadow: var(--u-sh-card); color: var(--u-t2); cursor: pointer; }
.u-cinehero-cue:hover { border-color: var(--u-hair3); color: var(--u-t1); }
.u-cinehero.is-playing .u-cinehero-cue > .u-i { animation: u-site-bob 1.8s var(--u-ease) infinite; }
@keyframes u-site-bob { 0%, 100% { transform: none; } 50% { transform: translateY(4px); } }
/* A narrow hero (a phone, or a narrow box): the two buttons stack full width */
@container (max-width: 560px) {
  .u-cinehero-p { font-size: var(--u-fs-md); }
  .u-cinehero-acts { flex-direction: column; align-self: stretch; }
  .u-cinehero-acts > .u-btn { width: 100%; }
}

/* ---------- Sticky phone call bar (.u-sitecall[data-u-sitecall]) ----------
   Phone widths only (.u-sitecall--always shows it everywhere, for previews). It slides up once the hero has
   scrolled away and slides back down near the footer; while hidden it is inert. Clear of the home bar and the
   notch (safe-area insets). .u-sitecall--in keeps it inside a positioned box instead of the window. */
.u-sitecall { position: fixed; z-index: var(--u-z-sticky); left: max(8px, env(safe-area-inset-left)); right: max(8px, env(safe-area-inset-right)); bottom: calc(8px + env(safe-area-inset-bottom)); display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 8px; border-radius: var(--u-r-xl); border: 1px solid var(--u-hair2); background: var(--u-lv3); box-shadow: var(--u-sh-pop); opacity: 0; transform: translateY(calc(100% + 24px + env(safe-area-inset-bottom))); transition: transform .4s var(--u-ease), opacity .25s var(--u-ease); pointer-events: none; }
.u-sitecall.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.u-sitecall > .u-btn { --h: var(--u-ctl-touch); width: 100%; min-width: 0; }
.u-sitecall--always { display: grid; }
.u-sitecall--in { position: absolute; left: 8px; right: 8px; bottom: 8px; }
@media (max-width: 640px) { .u-sitecall { display: grid; } }
@container u-frame (max-width: 640px) { .u-sitecall { display: grid; } }

/* ---------- Phones ---------- */
@media (max-width: 640px) {
  .u-cinehero { min-height: min(84vh, 640px); padding: 72px 16px 96px; }
  .u-cinehero::after { width: 640px; height: 640px; margin: -320px 0 0 -320px; }
  .u-bigmarquee { --gap: 28px; }
  .u-bigmarquee .u-bigmarquee-track > .u-bigmarquee-sep { width: 20px; height: 20px; }
  .u-bigmarquee > .u-site-pause { opacity: 1; }
  .u-rotator { padding: 20px 16px 16px; }
  .u-rotator .u-quote blockquote { font-size: var(--u-fs-lg); }
  .u-rotator-dot { width: 32px; height: 32px; }
  .u-sitestat > dd { font-size: var(--u-fs-3xl); }
}
@container u-frame (max-width: 640px) {
  .u-cinehero { min-height: min(84vh, 640px); padding: 72px 16px 96px; }
  .u-cinehero::after { width: 640px; height: 640px; margin: -320px 0 0 -320px; }
  .u-bigmarquee { --gap: 28px; }
  .u-bigmarquee .u-bigmarquee-track > .u-bigmarquee-sep { width: 20px; height: 20px; }
  .u-bigmarquee > .u-site-pause { opacity: 1; }
  .u-rotator { padding: 20px 16px 16px; }
  .u-rotator .u-quote blockquote { font-size: var(--u-fs-lg); }
  .u-rotator-dot { width: 32px; height: 32px; }
  .u-sitestat > dd { font-size: var(--u-fs-3xl); }
}

/* ---------- Reduced motion: everything simply shows, nothing loops ---------- */
@media (prefers-reduced-motion: reduce) {
  .u-rv, .u-lb-p { opacity: 1 !important; transform: none !important; transition: none !important; }
  .u-countup-f.is-hold { opacity: 1; }
  .u-process .u-process-n, .u-process .u-process-step::after { transition: none !important; }
  .u-logobuild::after { display: none; }
  .u-net-pkt, .u-net-halo, .u-call-ring, .u-call-ph, .u-cinehero::after, .u-cinehero-cue > .u-i, .u-rotator-bar > i { animation: none !important; }
  .u-bigmarquee-strip { overflow-x: auto; scrollbar-width: none; }
  .u-bigmarquee-track { animation: none !important; }
  .u-rotator-bar { display: none; }
  .u-cinehero-in > * { animation: none !important; }
  .u-sitecall { transition: opacity .1s var(--u-ease); transform: none; }
}

/* Printing shows every revealed piece */
@media print {
  .u-rv, .u-lb-p { opacity: 1 !important; transform: none !important; }
  .u-sitecall { display: none !important; }
}

/* ---- umbra-huddle.css ---- */
/* ==========================================================================
   Umbra 0.9.0: pieces from ITX Huddle.
   Enzo approved the Huddle desktop and phone designs on Nov 22 2026 and sent the batch
   (33 pieces) to Umbra so every ITX app can use them. Each piece was checked against
   Umbra main and the other apps first; where Huddle and an earlier approved rule
   disagreed (phone width, the 11px floor, call button words, the call side panel tabs,
   what amber means, how dialogs open on a phone) this file follows the earlier rule
   and the gallery shows Huddle's version beside it for Enzo to decide.
   Colours are the tokens on main. Motion is transform and opacity only.
   ========================================================================== */

/* ---------- 1. Huddle window (.u-hwin) and its minimized call card (.u-callmini) ----------
   A call that floats over the app: a header, a stage (video tiles or a shared session),
   the call dock at the bottom and an optional side panel. On a phone it fills the screen
   (the app makes it fixed; .u-hwin--fs does that for it). */
.u-hwin { container: uhwin / inline-size; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto minmax(0, 1fr) auto; min-width: 0; min-height: 0; border: 1px solid var(--u-hair2); border-radius: var(--u-r-lg); background: var(--u-lv1); box-shadow: var(--u-sh-pop); overflow: hidden; }
.u-hwin-h { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; height: var(--u-head-h); padding: 0 6px 0 12px; border-bottom: 1px solid var(--u-hair); background: var(--u-lv0); }
.u-hwin-h > .u-t2 { flex: 1; }
.u-hwin-time { color: var(--u-t3); font: 500 var(--u-fs-sm) var(--u-f-mono); font-variant-numeric: tabular-nums; }
.u-hwin-down { display: none; }
.u-hwin-stage { position: relative; display: grid; gap: 8px; min-width: 0; min-height: 0; padding: 8px; overflow: auto; background: var(--u-sunken); }
.u-hwin-side { display: none; width: 320px; min-height: 0; border-left: 1px solid var(--u-hair); background: var(--u-lv0); overflow: auto; }
.u-hwin.has-side > .u-hwin-side { display: flex; flex-direction: column; }
.u-hwin > .u-calldock { grid-column: 1 / -1; }
.u-hwin--fs { position: fixed; inset: 0; z-index: var(--u-z-modal); }
/* Floating face tile: on a phone the person you're talking to stays in a small tile while
   a shared screen or session fills the stage. */
.u-ftile { position: absolute; right: 12px; top: 12px; z-index: 3; width: 96px; aspect-ratio: 3 / 4; border-radius: var(--u-r-lg); box-shadow: var(--u-sh-pop); }
.u-ftile > .u-vtile { width: 100%; height: 100%; aspect-ratio: auto; }
.u-callmini { display: flex; align-items: center; gap: 10px; width: min(340px, 100%); padding: 8px 8px 8px 10px; border-radius: var(--u-r-lg); border: 1px solid var(--u-hair2); background: var(--u-lv3); box-shadow: var(--u-sh-pop); animation: u-rise var(--u-med) var(--u-ease); }
.u-callmini-t { flex: 1; min-width: 0; display: grid; gap: 1px; }
.u-callmini-t > b { overflow: hidden; color: var(--u-t1); font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.u-callmini-t > span { color: var(--u-ok-t); font: 500 var(--u-fs-xs) var(--u-f-mono); font-variant-numeric: tabular-nums; }
.u-callmini-f { display: flex; align-items: center; gap: 6px; flex: none; }
@media (max-width: 640px) {
  .u-hwin { height: 100%; border: 0; border-radius: 0; box-shadow: none; }
  .u-hwin-down { display: inline-grid; }
  .u-hwin-max { display: none; }
  .u-hwin-stage { padding: 6px; }
  /* the side panel opens over the stage, from the More menu */
  .u-hwin.has-side > .u-hwin-side { position: absolute; inset: 0; z-index: 5; width: auto; border: 0; animation: u-sheet-in-b var(--u-med) var(--u-ease); }
}
@container u-frame (max-width: 640px) {
  .u-hwin { height: 100%; border: 0; border-radius: 0; box-shadow: none; }
  .u-hwin-down { display: inline-grid; }
  .u-hwin-max { display: none; }
  .u-hwin-stage { padding: 6px; }
  /* the side panel opens over the stage, from the More menu */
  .u-hwin.has-side > .u-hwin-side { position: absolute; inset: 0; z-index: 5; width: auto; border: 0; animation: u-sheet-in-b var(--u-med) var(--u-ease); }
}

/* ---------- 2. A session as the call stage (.u-sesh--call) ----------
   Screen and terminal side by side while the side panel is open; under ~1340px of stage
   (about 1700px of window with the panel open) the pane marked data-u-fold (Files)
   folds away and comes back from the pane chips. On a phone pane headers go: the
   call header already names what is shown. */
.u-sesh--call { container: usesh / inline-size; height: 100%; border: 0; border-radius: 0; }
@container usesh (max-width: 1340px) {
  .u-sesh--call .u-sesh-grid > [data-u-fold] { display: none; }
  /* Files usually lives in the right dock: the dock and its gutter fold together */
  .u-sesh--call .u-sesh-body > .u-gutter, .u-sesh--call .u-sesh-body > .u-sesh-dock[data-dock="right"] { display: none; }
  .u-sesh--call .u-sesh-body > .u-sesh-col { width: 100%; }
  .u-sesh--call .u-sesh-grid[data-show="3"] { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
  .u-sesh--call .u-sesh-grid[data-show="3"] > .u-sesh-pane:first-child { grid-row: auto; }
}
@media (max-width: 640px) {
  .u-sesh--call .u-sesh-ph { display: none; }
}
@container u-frame (max-width: 640px) {
  .u-sesh--call .u-sesh-ph { display: none; }
}

/* ---------- 3. Two-step picker: client or site, then its devices (.u-pick2) ----------
   Two panes side by side that slide; the hidden pane is inert (umbra.js). */
.u-pick2 { position: relative; min-width: 0; overflow: hidden; }
.u-pick2-track { display: grid; grid-template-columns: 100% 100%; transition: transform var(--u-slow) var(--u-ease); }
.u-pick2.is-step2 > .u-pick2-track { transform: translateX(-100%); }
.u-pick2-pane { display: flex; flex-direction: column; gap: 8px; min-width: 0; min-height: 0; }
.u-pick2-h { display: flex; align-items: center; gap: 6px; min-height: 32px; }
.u-pick2-h > .u-t2 { flex: 1; }
.u-pick2-l { display: flex; flex-direction: column; gap: 2px; max-height: 320px; overflow: auto; }
.u-pick2-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 6px 8px; border: 0; border-radius: var(--u-r); background: none; color: var(--u-t2); text-align: left; }
.u-pick2-row:hover { background: var(--u-hover); color: var(--u-t1); }
.u-pick2-row > .u-t2 { flex: 1; }
.u-pick2-row > .u-i:last-child { color: var(--u-t4); }
@media (max-width: 640px) { .u-pick2-l { max-height: none; } }
@container u-frame (max-width: 640px) { .u-pick2-l { max-height: none; } }

/* ---------- 4. Device row with three tool buttons (.u-devrow) ----------
   Remote, Terminal and Files sit on the row. Online rows show the tools in their live
   colour; offline rows dim and the tools are disabled. 40px targets on a phone. */
.u-devrow { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 44px; padding: 4px 6px 4px 8px; border-radius: var(--u-r); }
.u-devrow:hover { background: var(--u-hover); }
.u-devrow > .u-t2 { flex: 1; }
.u-devrow-ic { position: relative; display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 8px; background: var(--u-gray-10); color: var(--u-t2); }
.u-devrow-ic > .u-presence { position: absolute; right: -2px; bottom: -2px; width: 9px; height: 9px; border-radius: 50%; background: var(--u-t4); box-shadow: 0 0 0 2px var(--u-lv1); }
.u-devrow-tools { display: flex; gap: 2px; flex: none; }
.u-devrow-tools > .u-ibtn { color: var(--u-blue-t); }
.u-devrow-tools > .u-ibtn:hover { background: var(--u-blue-10); color: var(--u-blue-t); }
.u-devrow.is-offline > .u-devrow-ic, .u-devrow.is-offline > .u-t2 { opacity: .55; }
.u-devrow.is-offline .u-devrow-tools > .u-ibtn { color: var(--u-t4); }
@media (max-width: 640px) { .u-devrow-tools > .u-ibtn { --h: 40px; } }
@container u-frame (max-width: 640px) { .u-devrow-tools > .u-ibtn { --h: 40px; } }

/* ---------- 5. Ringing tile (.u-vtile.is-ringing) ----------
   Someone you called who hasn't picked up: the avatar shows with two soft rings going
   out from it and a "Ringing" tag. */
.u-vtile.is-ringing > .u-vtile-feed { display: none; }
.u-vtile.is-ringing > .u-avatar { display: grid; }
.u-vtile.is-ringing > .u-avatar::before, .u-vtile.is-ringing > .u-avatar::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--u-blue) 60%, transparent); opacity: 0; animation: u-hring 2s var(--u-ease-out) infinite; pointer-events: none; }
.u-vtile.is-ringing > .u-avatar::after { animation-delay: 1s; }
.u-vtile-ring { position: absolute; left: 50%; top: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: var(--u-r-full); background: color-mix(in srgb, var(--u-lv0) 84%, transparent); color: var(--u-blue-t); font-size: var(--u-fs-xs); font-weight: 500; transform: translateX(-50%); }
.u-vtile-ring > .u-i { width: 12px; height: 12px; }
@keyframes u-hring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.5); } }

/* ---------- 7. Radio and huddle in one call dock (.u-calldock) ----------
   One bar at the bottom: the radio channel you're on (push to talk) on the left, the
   huddle's people and call buttons on the right. Either half can be there alone. */
.u-calldock { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 64px; padding: 8px 10px; border-top: 1px solid var(--u-hair); background: var(--u-lv0); }
.u-calldock-radio { display: flex; align-items: center; gap: 8px; min-width: 0; }
.u-calldock-radio > .u-t2 { min-width: 0; }
.u-calldock-ch { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 9px; background: var(--u-ok-10); color: var(--u-ok-t); }
.u-calldock > .u-sep--v { height: 32px; align-self: center; }
.u-calldock-call { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.u-calldock-call > .u-avstack { flex: none; }
.u-calldock-btns { display: flex; align-items: flex-start; gap: 8px; margin-left: auto; }
@media (max-width: 640px) {
  .u-calldock { gap: 8px; padding: 8px; }
  .u-calldock-radio > .u-t2 { display: none; }
  .u-calldock-call > .u-avstack { display: none; }
  .u-calldock-btns { margin: 0 auto; }
}
@container u-frame (max-width: 640px) {
  .u-calldock { gap: 8px; padding: 8px; }
  .u-calldock-radio > .u-t2 { display: none; }
  .u-calldock-call > .u-avstack { display: none; }
  .u-calldock-btns { margin: 0 auto; }
}

/* ---------- 9. Picked people (.u-chip--pick) ----------
   A person picked for a call or channel: blue tint, a blue edge and a check, with a 20px
   face and dark words. A plain .u-chip.is-on (a filter that's on) is blue words on the same
   tint, with no check (0.13.0). */
.u-chip--pick { border-color: color-mix(in srgb, var(--u-blue) 45%, transparent); background: var(--u-blue-10); color: var(--u-t1); }
.u-chip--pick:hover { background: var(--u-blue-20); }
.u-chip--pick > .u-i:last-child { width: 13px; height: 13px; color: var(--u-blue-t); }

/* ---------- 11. Quoted reply in a channel message ----------
   .u-rquote already lives in bubbles; in a channel row it sits above the text and stops
   at a readable width. */
.u-cmsg-b > .u-rquote { max-width: 440px; margin: 2px 0 4px; }

/* ---------- 12. Stick to the bottom ([data-u-stick], Umbra.stick) ----------
   A message list stays at the newest message while you're at the bottom. Scrolled up,
   new messages don't move you; a "New Messages" pill takes you down. */
.u-stick-new { position: sticky; bottom: 10px; z-index: 3; display: flex; width: max-content; margin: 0 auto; animation: u-rise var(--u-med) var(--u-ease); }
.u-stick-new[hidden] { display: none; }
.u-stick-new > .u-btn { box-shadow: var(--u-sh-pop); }

/* ---------- 14. Who's replying (.u-replying) and the list hint ---------- */
.u-replying { display: flex; align-items: center; gap: 6px; min-height: 20px; padding: 0 4px; color: var(--u-t3); font-size: var(--u-fs-sm); }
.u-replying > .u-typing { padding: 0; }
.u-replying > .u-typing i { width: 4px; height: 4px; }
.u-replying[hidden] { display: none; }
.u-cch > .u-typing { margin-left: auto; padding: 0 2px; }
.u-cch > .u-typing i { width: 4px; height: 4px; background: var(--u-blue-t); }

/* ---------- 15. Chat background (data-u-bg on the message list) and its picker ----------
   Plain by default. Dots is Umbra's faded dot grid, held still behind the messages. */
[data-u-bg] { position: relative; isolation: isolate; }
[data-u-bg="dots"] { background-image: radial-gradient(var(--u-dot) 1px, transparent 1.2px); background-size: 20px 20px; background-attachment: local; }
[data-u-bg="grid"] { background-image: linear-gradient(var(--u-hair) 1px, transparent 1px), linear-gradient(90deg, var(--u-hair) 1px, transparent 1px); background-size: 24px 24px; background-attachment: local; }
.u-bgpick { display: flex; flex-wrap: wrap; gap: 8px; }
.u-bgpick > button { display: grid; gap: 6px; justify-items: center; padding: 0; border: 0; background: none; color: var(--u-t3); font-size: var(--u-fs-xs); }
.u-bgpick-sw { display: block; width: 64px; height: 44px; border-radius: 9px; border: 1px solid var(--u-hair2); background-color: var(--u-lv1); }
.u-bgpick > button[aria-pressed="true"] { color: var(--u-t1); }
.u-bgpick > button[aria-pressed="true"] > .u-bgpick-sw { border-color: var(--u-blue); box-shadow: 0 0 0 3px var(--u-blue-10); }

/* ---------- 16 and 17. Foldable client row (.u-cfold) and device conversations ----------
   A client folds open to its sub-channels (Tickets, Devices...). A device conversation
   row keeps Remote and Device Details one click away. */
.u-cfold { display: flex; flex-direction: column; gap: 1px; }
.u-cfold-hr { display: flex; align-items: center; gap: 0; }
.u-cfold-hr > .u-cch { flex: 1; min-width: 0; }
.u-cfold-x.u-ibtn { --h: 22px; flex: none; color: var(--u-t4); }
.u-cfold-x > .u-i { width: 12px; height: 12px; transition: transform .25s var(--u-ease); }
.u-cfold-x[aria-expanded="false"] > .u-i { transform: rotate(-90deg); }
.u-cfold-l { display: flex; flex-direction: column; gap: 1px; padding-left: 22px; }
.u-cfold-l[hidden] { display: none; }
.u-cch-acts { display: flex; gap: 1px; margin-left: auto; opacity: 0; transition: opacity var(--u-fast); }
.u-cch-acts > .u-ibtn { --h: 22px; }
.u-cch-acts .u-i { width: 13px; height: 13px; }
.u-cch:hover > .u-cch-acts, .u-cch:focus-within > .u-cch-acts, .u-cch.is-on > .u-cch-acts { opacity: 1; }
@media (hover: none) { .u-cch-acts { opacity: 1; } }

/* ---------- 20. Photo avatar with an initials fallback ----------
   <span class="u-avatar" data-u-initials="AC"><img src alt=""></span>. If the photo
   doesn't load, umbra.js takes it out and the initials show. */
.u-avatar:has(> img) { background: var(--u-lv3); }

/* ---------- 22. Toast pile (html[data-u-toast-pile], umbra.js) ----------
   Toasts stack into one card with the older ones peeking ~10px behind it. Hover, focus
   or a tap fans them out and pauses every timer; they pick up again ~2s after you leave.
   umbra.js places each toast with transform; at phone width the pile sits at the top. */
.u-toasts.u-toasts--pile { display: block; --pile-dir: -1; }
.u-toasts--pile > .u-toast { position: absolute; left: 0; right: 0; bottom: 0; transform-origin: 50% 0; transition: transform .38s var(--u-ease), opacity .2s ease; }
.u-toasts--pile > .u-toast > * { transition: opacity .2s ease; }
.u-toasts--pile > .u-toast.is-behind { overflow: hidden; }
.u-toasts--pile > .u-toast.is-behind > * { opacity: 0; }
.u-toasts--pile > .u-toast.is-gone { opacity: 0; pointer-events: none; }
.u-toasts--pile > .u-toast.is-closing { animation: u-fade-out .16s ease-in forwards; }
@media (max-width: 640px) {
  .u-toasts.u-toasts--pile { --pile-dir: 1; top: calc(12px + env(safe-area-inset-top, 0px)); bottom: auto; }
  .u-toasts--pile > .u-toast { top: 0; bottom: auto; transform-origin: 50% 100%; animation-name: u-pile-in-t; }
}
@container u-frame (max-width: 640px) {
  .u-toasts.u-toasts--pile { --pile-dir: 1; top: calc(12px + env(safe-area-inset-top, 0px)); bottom: auto; }
  .u-toasts--pile > .u-toast { top: 0; bottom: auto; transform-origin: 50% 100%; animation-name: u-pile-in-t; }
}
@keyframes u-pile-in-t { from { opacity: 0; transform: translateY(-16px); } }

/* ---------- 24. Phone message field (.u-pillbox) ----------
   A round + outside, then a pill with Send inside it. Send is grey until there's
   something to send. Focus is one blue edge, no ring. .is-note is a staff-only note
   (amber, as everywhere in Umbra). A reply bar lines up with the pill. */
.u-pillbox { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 8px; min-width: 0; padding: 8px; }
.u-pillbox > .u-replybar { flex: 0 0 calc(100% - 44px); margin-left: 44px; }
.u-pillbox-add.u-ibtn { --h: 36px; margin-bottom: 2px; border-radius: 50%; border-color: var(--u-hair2); background: var(--u-lv2); color: var(--u-t2); }
.u-pillbox-f { flex: 1; display: flex; align-items: flex-end; gap: 6px; min-width: 0; min-height: 40px; padding: 4px 4px 4px 14px; border-radius: 20px; border: 1px solid var(--u-hair2); background: var(--u-fld); box-shadow: var(--u-fld-in); }
.u-pillbox-f:focus-within { border-color: var(--u-blue); }
.u-pillbox-f > textarea { flex: 1; min-width: 0; min-height: 30px; max-height: 140px; padding: 5px 0; border: 0; outline: 0; background: none; resize: none; color: var(--u-t1); font: inherit; line-height: 20px; }
.u-pillbox-send.u-ibtn { --h: 30px; border-radius: 50%; }
.u-pillbox-send:not(.u-ibtn--primary) { background: var(--u-gray-10); color: var(--u-t4); }
.u-pillbox.is-note .u-pillbox-f { border-color: color-mix(in srgb, var(--u-warn) 45%, transparent); background: color-mix(in srgb, var(--u-warn) 7%, var(--u-fld)); }
.u-pillbox.is-note .u-pillbox-f:focus-within { border-color: var(--u-warn); }
@media (max-width: 640px) { .u-pillbox-f > textarea { font-size: 16px; } }
@container u-frame (max-width: 640px) { .u-pillbox-f > textarea { font-size: 16px; } }

/* ---------- 25 to 27. Phone headers (.u-phead) and two-line titles (.u-t2) ----------
   Flat 40px buttons with 20px icons, 8px from the edge, no Back on a top-level screen,
   the Huddle button turns green while you're in a call. Every phone header is the same
   height. .u-t2 is a name over its parent (client, site), both cut with an ellipsis. */
.u-phead { display: flex; align-items: center; gap: 2px; height: 56px; flex: none; padding: 0 8px; border-bottom: 1px solid var(--u-hair); background: var(--u-lv1); min-width: 0; }
.u-phead > .u-ibtn { --h: 40px; border-radius: 10px; }
.u-phead > .u-ibtn .u-i { width: 20px; height: 20px; }
.u-phead > .u-t2 { flex: 1; padding: 0 6px; }
.u-phead.is-root > .u-phead-back { display: none; }
.u-phead.is-root > .u-t2 { padding-left: 8px; }
.u-ibtn.u-huddlebtn.is-live { background: var(--u-ok-10); color: var(--u-ok-t); }
.u-t2 { display: grid; min-width: 0; line-height: 1.25; }
.u-t2 > b { overflow: hidden; color: var(--u-t1); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.u-t2 > span { overflow: hidden; color: var(--u-t3); font-size: var(--u-fs-xs); text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 28. Tabs with something at the end (.u-tabs-end) ---------- */
.u-tabs > .u-tabs-end { display: flex; align-items: center; gap: 6px; flex: none; margin-left: auto; padding: 0 4px 0 8px; }

/* ---------- 30. Menus as bottom sheets on a phone (html[data-u-menu-sheet]) ----------
   umbra.js adds .is-sheet to an action menu (not a select's list) when there is phone
   width or less, and sizes it to the frame it opens in. */
.u-menu.is-sheet { max-width: none; max-height: min(70vh, calc(var(--u-vh, 100vh) - 48px)); padding: 6px; border-radius: 16px; animation: u-sheet-in-b .26s var(--u-ease); }
.u-menu.is-sheet.is-closing { animation: u-sheet-out-b .18s ease-in forwards; }
.u-menu.is-sheet .u-menu-item { min-height: 44px; padding: 0 12px; border-radius: 10px; }
.u-menu.is-sheet .u-menu-item > .u-i { width: 18px; height: 18px; }

/* ---------- 31. Phone day counters (.u-statrow--fit), actions first ----------
   On a phone the counters keep the 2 by 2 grid every .u-statrow uses there: equal cells,
   exactly as wide as the cards around them, every label in full. The counts use the page's
   own digits, not tabular ones, so they read as the same type as the rest of the screen.
   (0.9.0 first drew this as a sideways swipe; Enzo saw it run past the card edge, clip
   "Done This Week" mid-word and leave the cells uneven, Nov 22.) */
.u-statrow--fit b { font-variant-numeric: normal; }
@media (max-width: 640px) {
  .u-phone-first { order: -1; }
}
@container u-frame (max-width: 640px) {
  .u-phone-first { order: -1; }
}

/* ---------- 32. Folded on a phone (.u-pfold) ----------
   A card (the Copilot card in Huddle) that is open on a computer and folds to one line on
   a phone; its header opens it. */
.u-pfold-x { display: none; }
@media (max-width: 640px) {
  .u-pfold-x { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; background: none; color: var(--u-t1); font-weight: 500; text-align: left; }
  .u-pfold-x > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .u-pfold-x > .u-i:last-child { color: var(--u-t4); transition: transform .25s var(--u-ease); }
  .u-pfold-x[aria-expanded="true"] > .u-i:last-child { transform: rotate(180deg); }
  .u-pfold:not(.is-open) > .u-pfold-b { display: none; }
  .u-pfold > .u-pfold-h { display: none; }
}
@container u-frame (max-width: 640px) {
  .u-pfold-x { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; background: none; color: var(--u-t1); font-weight: 500; text-align: left; }
  .u-pfold-x > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .u-pfold-x > .u-i:last-child { color: var(--u-t4); transition: transform .25s var(--u-ease); }
  .u-pfold-x[aria-expanded="true"] > .u-i:last-child { transform: rotate(180deg); }
  .u-pfold:not(.is-open) > .u-pfold-b { display: none; }
  .u-pfold > .u-pfold-h { display: none; }
}

/* ---------- 33. A list fades above a docked call bar (.u-fade-dock) ---------- */
.u-fade-dock { -webkit-mask: linear-gradient(180deg, #000 calc(100% - 28px), transparent 100%); mask: linear-gradient(180deg, #000 calc(100% - 28px), transparent 100%); }

/* ---- umbra-fleet.css ---- */
/* ==========================================================================
   Umbra 0.10.0: Fleet Console's additions (Version 3 Design Audit, Nov 22 2026)
   Enzo approved every fix in the audit ("Yes make all these fixes"); 83 of its 228
   fixes needed these pieces, drawn in the console's Version 2 preview.
   Every piece here is new or an opt-in modifier: no app changes until it adopts one.
   Where the preview broke a standing rule, the rule won and the note says so:
   flat colours (gradients still await his pick), 11px smallest text, blur only
   behind an open dialog, flat side accents.
   ========================================================================== */

/* =============== Docked session: flat bar, screen, tools column =============== */
/* The session's own bar: 40px on the page colour, so it docks to the screen
   instead of floating on a raised strip (.u-rdbar is 42px on lv2). */
.u-rdbar--flat { min-height: 40px; background: var(--u-lv0); box-shadow: var(--u-edge); }
.u-session { display: flex; min-width: 0; min-height: 0; height: 100%; background: var(--u-lv0); }
/* The remote screen sits edge to edge on near-black in both themes: it frames a picture */
.u-session-screen { position: relative; flex: 1 1 auto; min-width: 0; min-height: 0; overflow: hidden; background: #050507; }
.u-session-tools { flex: none; display: flex; flex-direction: column; width: var(--u-tools-w, 420px); max-width: 100%; min-width: 0; min-height: 0; background: var(--u-lv2); border-left: 1px solid var(--u-hair); }
/* Tools Only: the screen steps aside and the tools take the whole width */
.u-session--tools > .u-session-screen, .u-session--tools > .u-ssplit { display: none; }
.u-session--tools > .u-session-tools { flex: 1 1 auto; width: auto; border-left: 0; }
/* The resize line between screen and tools: 1px at rest, a grip only on hover or drag */
.u-ssplit { position: relative; flex: none; width: 1px; background: var(--u-hair); cursor: col-resize; touch-action: none; }
.u-ssplit::before { content: ""; position: absolute; top: 0; bottom: 0; left: -4px; right: -4px; }
.u-ssplit::after { content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 36px; border-radius: 2px; background: var(--u-hair3); transform: translate(-50%, -50%); opacity: 0; transition: opacity var(--u-fast); pointer-events: none; }
.u-ssplit:hover::after, .u-ssplit.is-drag::after, .u-ssplit:focus-visible::after { opacity: 1; }
.u-ssplit.is-drag::after { background: var(--u-blue); }

/* The tools column's bar: Add, a pane count, layout buttons */
.u-wsbar { display: flex; align-items: center; gap: 4px; height: 38px; flex: none; padding: 0 6px 0 4px; border-bottom: 1px solid var(--u-hair); }
.u-wsbar .u-ibtn { --h: 24px; }
.u-wsbar-n { color: var(--u-t4); font: 500 var(--u-fs-xs) var(--u-f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.u-wsbar-sp { flex: 1 1 auto; }
/* Panes in a grid, split by 6px dividers that turn blue on hover (set the columns and
   rows with --u-ws-cols / --u-ws-rows, dividers included, e.g. "1fr 6px 1fr") */
.u-wsgrid { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: var(--u-ws-cols, minmax(0, 1fr)); grid-template-rows: var(--u-ws-rows, minmax(0, 1fr)); background: var(--u-lv0); }
.u-wdiv { position: relative; background: var(--u-lv0); cursor: row-resize; touch-action: none; }
.u-wdiv::after { content: ""; position: absolute; left: 50%; top: 50%; width: 26px; height: 2px; border-radius: 1px; background: var(--u-hair3); transform: translate(-50%, -50%); }
.u-wdiv--v { cursor: col-resize; }
.u-wdiv--v::after { width: 2px; height: 26px; }
.u-wdiv:hover, .u-wdiv.is-drag { background: var(--u-blue-10); }
.u-wdiv:hover::after, .u-wdiv.is-drag::after { background: var(--u-blue); }
/* A docked pane: square, no border; the current one has a flat 2px blue line on top
   (the preview drew it with the gradient; flat while the gradients await Enzo's pick) */
.u-wpane { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--u-lv2); overflow: hidden; }
.u-wpane.is-current::before { content: ""; position: absolute; z-index: 2; left: 0; right: 0; top: 0; height: 2px; background: var(--u-blue); pointer-events: none; }
.u-wpane-h { display: flex; align-items: center; gap: 6px; height: 32px; flex: none; padding: 0 4px 0 8px; background: var(--u-lv1); border-bottom: 1px solid var(--u-hair); }
.u-wpane.is-current > .u-wpane-h { background: var(--u-lv3); }
.u-wpane-ic { display: grid; place-items: center; width: 18px; height: 18px; flex: none; border-radius: 5px; background: var(--u-blue-10); color: var(--u-blue-t); }
.u-wpane-ic > .u-i { width: 12px; height: 12px; }
.u-wpane-ic--warn { background: var(--u-warn-10); color: var(--u-warn-t); }
.u-wpane-ic--ok { background: var(--u-ok-10); color: var(--u-ok-t); }
.u-wpane-n { flex: none; color: var(--u-t1); font-size: var(--u-fs-sm); font-weight: 600; white-space: nowrap; }
.u-wpane-s { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--u-t3); font-size: 11.5px; }
.u-wpane-acts { display: flex; gap: 2px; margin-left: auto; flex: none; }
.u-wpane-acts .u-ibtn { --h: 22px; }
.u-wpane-b { position: relative; display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow: auto; }

/* =============== Session bar pieces: name, live readouts =============== */
.u-sname { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.u-sname-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--u-ok); }
.u-sname-dot.is-warn { background: var(--u-warn); } .u-sname-dot.is-bad { background: var(--u-bad); } .u-sname-dot.is-off { background: var(--u-t4); }
.u-sname-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--u-t1); font-size: var(--u-fs); font-weight: 550; }
/* Frame rate, latency, size: small sunken readouts in mono */
.u-tele { display: inline-flex; align-items: center; gap: 6px; }
.u-tele > span { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 7px; border-radius: 6px; border: 1px solid var(--u-hair); background: var(--u-sunken); color: var(--u-t3); font: 11.5px/1 var(--u-f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.u-tele > span > b { color: var(--u-t1); font-weight: 500; }
/* A square picker inside the always-dark terminal bar (Run As, shell) */
.u-term-bar .u-termsel { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 8px; border-radius: 7px; border: 1px solid var(--u-term-bd); background: color-mix(in srgb, var(--u-term-fg) 6%, transparent); color: var(--u-term-fg); font-size: var(--u-fs-sm); }
.u-term-bar .u-termsel > .u-i { color: var(--u-term-dim); }

/* =============== Files pane: compact path, ruled rows, docked transfers =============== */
.u-fbar { display: flex; align-items: center; gap: 6px; flex: none; padding: 8px 10px; border-bottom: 1px solid var(--u-hair); }
.u-pathbar--sm .u-pathbar-seg { height: 20px; padding: 2px 5px; font-size: var(--u-fs-sm); }
.u-filerows--ruled { padding: 0; }
.u-filerows--ruled .u-filerow { height: 34px; border-bottom: 1px solid var(--u-hair); font-size: 12.5px; }
.u-filerows--ruled .u-filerow-size, .u-filerows--ruled .u-filerow-date { color: var(--u-t4); font-size: var(--u-fs-xs); }
/* Selection docked to the pane's foot, tinted blue */
.u-selbar--docked { min-height: 38px; padding: 4px 8px 4px 12px; background: var(--u-blue-10); box-shadow: none; animation: none; }
/* Transfers docked under the list instead of a floating card */
.u-xfers--docked { flex: none; border: 0; border-top: 1px solid var(--u-hair); border-radius: 0; background: none; box-shadow: none; }
.u-xfers--docked .u-xfer-h { min-height: 0; padding: 8px 10px; gap: 6px; border-bottom: 0; }
.u-xfers--docked .u-xfer-h > .u-progress { max-width: 140px; }
.u-xfers--docked .u-xfer { min-height: 36px; padding: 4px 10px; border-radius: 0; }

/* =============== Session states: notice over the screen, ended terminal, peek bar =============== */
/* A notice over the remote screen (connection lost, consent waiting). No blur: Umbra
   blurs only behind an open dialog (the preview had a 3px blur). The screen is dark
   in both themes, so one scrim colour serves both. */
.u-sover { position: absolute; inset: 0; z-index: 9; display: grid; place-items: center; padding: 16px; background: rgba(6, 6, 8, .62); animation: u-fade .25s var(--u-ease); }
.u-sover-card { display: grid; gap: 14px; width: min(380px, 100%); padding: 18px; border-radius: 12px; border: 1px solid var(--u-hair2); background: var(--u-lv3); box-shadow: var(--u-sh-pop); color: var(--u-t2); }
.u-sover-h { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.u-sover-ic { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 9px; background: var(--u-blue-10); color: var(--u-blue-t); }
.u-sover-ic--warn { background: var(--u-warn-10); color: var(--u-warn-t); } .u-sover-ic--bad { background: var(--u-bad-10); color: var(--u-bad-t); }
.u-sover-h b { display: block; color: var(--u-t1); font-size: var(--u-fs-md); font-weight: 600; }
.u-sover-h p { margin: 2px 0 0; color: var(--u-t3); font-size: var(--u-fs); line-height: 1.45; }
.u-sover-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
/* Steps in a card: tighter, with the time each took in mono on the right (.u-msl from umbra.js) */
.u-msl--timed { gap: 9px; font-size: 12.5px; }
.u-msl--timed > li > .u-msl-ic { width: 18px; height: 18px; }
.u-msl-ms { margin-left: auto; color: var(--u-t4); font: var(--u-fs-xs) var(--u-f-mono); font-variant-numeric: tabular-nums; }
/* The line a terminal leaves when its session ends, and the terminal's foot */
.u-tend { display: flex; align-items: center; gap: 10px; margin: 8px 0; padding: 10px; border-radius: 8px; border: 1px dashed color-mix(in srgb, var(--u-term-fg) 15%, transparent); color: var(--u-term-dim); font-size: var(--u-fs-sm); }
.u-tend > .u-btn { margin-left: auto; }
.u-tfoot { display: flex; align-items: center; gap: 6px; flex: none; padding: 5px 10px; border-top: 1px solid var(--u-term-bd); background: var(--u-term-bar); color: var(--u-term-dim); font-size: var(--u-fs-xs); }
.u-tfoot > .u-i { width: 12px; height: 12px; }
.u-tfoot-r { margin-left: auto; font-family: var(--u-f-mono); font-variant-numeric: tabular-nums; }
/* Full screen: a quiet pill at the top that wakes on hover or focus */
.u-fpill { position: absolute; z-index: 8; top: 10px; left: 50%; display: inline-flex; align-items: center; gap: 10px; padding: 5px 6px 5px 12px; border-radius: var(--u-r-full); border: 1px solid var(--u-hair2); background: var(--u-lv3); box-shadow: var(--u-sh-pop); transform: translateX(-50%); opacity: .25; transition: opacity var(--u-med) var(--u-ease); }
.u-fpill:hover, .u-fpill:focus-within { opacity: 1; }
.u-fpill-n { color: var(--u-t1); font-size: var(--u-fs); font-weight: 700; white-space: nowrap; }
.u-fpill-t { color: var(--u-t3); font: var(--u-fs-sm) var(--u-f-mono); font-variant-numeric: tabular-nums; }

/* =============== Figure tile with a trend graph =============== */
/* The graph is Umbra.spark(el, data, { straight: true }) in a .u-ptile-ch box: straight
   segments, a fading fill and the usual tooltip on every point. */
.u-ptile { display: flex; flex-direction: column; min-width: 0; padding: 14px 16px 12px; }
.u-ptile-l { display: flex; align-items: center; gap: 6px; color: var(--u-t3); font-size: var(--u-fs-sm); font-weight: 500; }
.u-ptile-l > .u-i { width: 14px; height: 14px; }
.u-ptile-l > .u-ibtn { margin: -4px -6px -4px auto; }
.u-ptile-v { margin-top: 6px; color: var(--u-t1); font: 600 26px/1.1 var(--u-f-mono); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.u-ptile-v > small { margin-left: 3px; color: var(--u-t3); font: 500 var(--u-fs)/1 var(--u-f-ui); letter-spacing: 0; }
/* a word in place of a number (Not Reported, Idle) */
.u-ptile-v.is-word { font: 600 20px/1.2 var(--u-f-ui); letter-spacing: -.01em; }
.u-ptile-ch { --u-ch: 58px; margin-top: 10px; }
.u-ptile--sm .u-ptile-v { font-size: 20px; }
.u-ptile--sm .u-ptile-ch { --u-ch: 40px; }
.u-ptile-nd { display: grid; place-items: center; height: 58px; margin-top: 10px; border: 1px dashed var(--u-hair2); border-radius: 6px; color: var(--u-t4); font-size: 11.5px; }
.u-ptile--sm .u-ptile-nd { height: 40px; }
/* start and end of the range under the graph (the preview had 10.5px; 11 is the floor) */
.u-ptile-ax { display: flex; justify-content: space-between; margin-top: 5px; color: var(--u-t4); font: var(--u-fs-xs) var(--u-f-mono); }
.u-ptile-f { margin-top: 8px; color: var(--u-t3); font-size: var(--u-fs-sm); }

/* =============== Device and page header =============== */
.u-dhead { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; min-width: 0; }
.u-dhead-ic { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; border: 1px solid var(--u-hair2); background: var(--u-lv3); box-shadow: var(--u-sh-card); color: var(--u-t1); }
.u-dhead-ic > .u-i { width: 20px; height: 20px; }
.u-dhead-t { min-width: 0; flex: 1 1 240px; }
.u-dhead-t h1, .u-vh h1 { margin: 0; color: var(--u-t1); font-size: 20px; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; overflow-wrap: anywhere; }
.u-dhead-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
/* Facts under the name: small capitals over mono values */
.u-facts { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 6px 0 0; }
.u-facts > div { min-width: 0; }
.u-facts dt { color: var(--u-t4); font-size: var(--u-fs-xs); font-weight: 550; letter-spacing: .05em; text-transform: uppercase; }
.u-facts dd { margin: 1px 0 0; color: var(--u-t1); font: 500 12.5px var(--u-f-mono); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
/* Page title and its line under it */
.u-vh { min-width: 0; }
.u-vh p { margin: 3px 0 0; color: var(--u-t3); font-size: var(--u-fs); }

/* =============== List with a docked inspector; docked drawer =============== */
.u-dock { display: flex; min-width: 0; min-height: 0; height: 100%; }
.u-dock-main { flex: 1 1 auto; min-width: 0; min-height: 0; overflow: auto; }
.u-insp { flex: none; display: flex; flex-direction: column; width: var(--u-iw, 360px); max-width: 100%; min-height: 0; background: var(--u-lv2); border-left: 1px solid var(--u-hair); }
.u-insp-h { flex: none; padding: 16px 16px 12px; border-bottom: 1px solid var(--u-hair); }
.u-insp-b { flex: 1 1 auto; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 14px; padding: 14px 16px; }
/* the handle that resizes it: a 7px target whose line turns blue */
.u-isplit { position: relative; flex: none; width: 7px; margin: 0 -3px 0 -4px; z-index: 1; cursor: col-resize; touch-action: none; }
.u-isplit::after { content: ""; position: absolute; top: 0; bottom: 0; left: 3px; width: 1px; background: transparent; }
.u-isplit:hover::after, .u-isplit.is-drag::after, .u-isplit:focus-visible::after { background: var(--u-blue); }
/* Stacked (narrow screens, or the user's pick): the inspector sits under the list */
.u-dock--stack { flex-direction: column; }
.u-dock--stack > .u-insp { width: auto; height: var(--u-ih, 300px); border-left: 0; border-top: 1px solid var(--u-hair); }
.u-dock--stack > .u-isplit { width: auto; height: 7px; margin: -4px 0 -3px; cursor: row-resize; }
.u-dock--stack > .u-isplit::after { top: 3px; bottom: auto; left: 0; right: 0; width: auto; height: 1px; }
/* A group heading inside it, and three small figure wells */
.u-grp-h { margin: 0 0 8px; color: var(--u-t4); font-size: var(--u-fs-xs); font-weight: 550; letter-spacing: .05em; text-transform: uppercase; }
.u-mstat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.u-mstat > div { min-width: 0; padding: 9px 10px; border-radius: var(--u-r-md); background: var(--u-sunken); box-shadow: var(--u-fld-in); }
.u-mstat span { display: block; color: var(--u-t3); font-size: var(--u-fs-xs); }
.u-mstat b { display: block; margin-top: 2px; color: var(--u-t1); font: 600 15px/1.2 var(--u-f-mono); font-variant-numeric: tabular-nums; }
/* A drawer docked to the right edge: full height, square, no gap (.u-drawer floats 8px in) */
.u-drawer--docked { top: var(--u-lt, 0px); right: var(--u-lr, 0px); bottom: var(--u-lb, 0px); width: min(var(--u-dw, 440px), calc(var(--u-vw, 100vw) - 16px)); border-radius: 0; border-width: 0 0 0 1px; }
.u-drawer--docked > .u-drawer-h { height: auto; padding: 14px 16px; }
/* its scrim darkens only (no blur): the page beside it stays readable */
.u-scrim--clear { -webkit-backdrop-filter: none; backdrop-filter: none; }

/* =============== Cards: plain heading, figure, well, ruled list, icon facts =============== */
.u-card-h--plain { min-height: 0; padding: 13px 16px 0; border-bottom: 0; }
.u-card-h--plain h3, .u-card-h--plain .u-card-t { font-size: var(--u-fs-md); font-weight: 600; }
.u-card-h--plain + .u-card-b { padding: 12px 16px 16px; }
.u-stat--lg { padding: 14px 16px; }
.u-stat--lg .u-stat-v { font-size: 26px; }
.u-stat--lg .u-stat-d, .u-stat--lg .u-stat-f { font-size: var(--u-fs-sm); }
.u-stat-f { color: var(--u-t3); font-size: var(--u-fs-xs); }
.u-well { min-width: 0; padding: 9px 11px; border-radius: var(--u-r-md); background: var(--u-sunken); box-shadow: var(--u-fld-in); }
.u-well > span { display: block; color: var(--u-t3); font-size: var(--u-fs-sm); }
.u-well > b { display: block; margin-top: 2px; color: var(--u-t1); font-size: var(--u-fs); font-weight: 500; }
/* A list whose rows are split by hairlines, each with a small raised icon */
.u-rlist { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.u-rlist > * + * { border-top: 1px solid var(--u-hair); }
.u-rlist-i { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 9px 0; color: var(--u-t2); }
.u-rlist-ic { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 8px; border: 1px solid var(--u-hair); background: var(--u-lv3); box-shadow: var(--u-edge); color: var(--u-t2); }
.u-rlist-ic > .u-i { width: 14px; height: 14px; }
.u-rlist-t { min-width: 0; flex: 1 1 auto; }
.u-rlist-t > b { display: block; color: var(--u-t1); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-rlist-t > span { display: block; color: var(--u-t3); font-size: var(--u-fs-sm); }
.u-rlist-m { flex: none; color: var(--u-t4); font-size: var(--u-fs-xs); white-space: nowrap; }
.u-rlist-a { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex: none; margin-left: auto; }
/* Facts with an icon by each label */
.u-kv--sm { grid-template-columns: minmax(110px, 40%) 1fr; gap: 7px 12px; font-size: 12.5px; }
.u-kv--ic { grid-template-columns: 136px 1fr; gap: 7px 16px; font-size: 12.5px; }
.u-kv--ic dt { display: flex; align-items: center; gap: 6px; }
.u-kv--ic dt > .u-i { width: 14px; height: 14px; color: var(--u-t4); }

/* =============== Client initials tile =============== */
/* The client's colour at 22% with its initials. 20px, so two letters fit at 11px
   (the preview had 18px at 9.5px, under the floor). --c sets the colour. */
.u-orgtile { --c: var(--u-blue); display: inline-grid; place-items: center; width: 20px; height: 20px; flex: none; border-radius: 5px; background: color-mix(in srgb, var(--c) 22%, transparent); box-shadow: inset 0 0 0 1px var(--u-hair); color: var(--u-t1); font: 650 var(--u-fs-xs)/1 var(--u-f-ui); letter-spacing: -.02em; }
.u-orgtile--lg { width: 44px; height: 44px; border-radius: 12px; font-size: 15px; }

/* =============== Availability squares =============== */
.u-squares { display: grid; grid-template-columns: repeat(var(--n, 20), minmax(0, 1fr)); gap: 3px; }
.u-squares > i { aspect-ratio: 1; border-radius: 2px; background: color-mix(in srgb, var(--u-t4) 45%, transparent); }
.u-squares > i.is-ok { background: var(--u-ok); } .u-squares > i.is-warn { background: var(--u-warn); } .u-squares > i.is-bad { background: var(--u-bad); }
.u-squares-v { color: var(--u-t1); font: 600 34px/1.1 var(--u-f-mono); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.u-squares-k { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; color: var(--u-t3); font-size: var(--u-fs-sm); }
.u-squares-k > span { display: inline-flex; align-items: center; gap: 6px; }
.u-squares-k > span > i { width: 8px; height: 8px; border-radius: 2px; background: color-mix(in srgb, var(--u-t4) 45%, transparent); }
.u-squares-k > span > i.is-ok { background: var(--u-ok); } .u-squares-k > span > i.is-warn { background: var(--u-warn); } .u-squares-k > span > i.is-bad { background: var(--u-bad); }

/* =============== Dialogs, counts, save bar, danger card =============== */
/* A wide dialog for tables and two-column forms (the usual width stays 440px) */
.u-modal--wide { --u-mw: 640px; }
/* A count as plain mono text, no pill (.u-count stays a pill) */
.u-count--plain { height: auto; min-width: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--u-t4); font: 500 var(--u-fs-xs) var(--u-f-mono); }
/* A save bar docked to the bottom of the page (.u-savebar floats as a card) */
.u-savebar--docked { bottom: 0; margin: 16px -24px 0; padding: 10px 24px; border-radius: 0; border-width: 1px 0 0; background: var(--u-lv2); box-shadow: 0 -8px 20px -14px rgba(0, 0, 0, .45); }
/* The danger card: a red-tinted border, a red title, rows split by hairlines */
.u-card--danger { border-color: color-mix(in srgb, var(--u-bad) 30%, var(--u-hair)); }
.u-card--danger .u-card-h h3, .u-card--danger .u-card-t { color: var(--u-bad-t); }
.u-dzr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 11px 0; border-top: 1px solid var(--u-hair); }
.u-dzr:first-child { border-top: 0; }
.u-dzr > div { flex: 1 1 220px; min-width: 0; }
.u-dzr b { display: block; color: var(--u-t1); font-weight: 500; }
.u-dzr p { margin: 2px 0 0; color: var(--u-t3); font-size: var(--u-fs-sm); }

/* =============== Sign-in: dot grid, status pill, small page state =============== */
/* The dot grid behind sign-in, with the soft glow; the pixel canvas steps aside */
.u-auth--grid > canvas.u-pixels { display: none; }
.u-auth--grid::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: radial-gradient(var(--u-dot) 1px, transparent 1.2px); background-size: 20px 20px; -webkit-mask: radial-gradient(ellipse 60% 55% at 50% 45%, #000 15%, transparent 75%); mask: radial-gradient(ellipse 60% 55% at 50% 45%, #000 15%, transparent 75%); }
/* Service status under the form: a small pill with a ringed dot */
.u-spill { --c: var(--u-ok); display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 10px 0 8px; border-radius: 12px; border: 1px solid var(--u-hair); background: var(--u-lv2); box-shadow: var(--u-edge); color: var(--u-t2); font-size: 11.5px; font-weight: 500; white-space: nowrap; }
.u-spill > i { width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent); }
.u-spill--warn { --c: var(--u-warn); } .u-spill--bad { --c: var(--u-bad); }
/* Connected: the same pill tinted green with a dot that breathes */
.u-cpill { display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 10px 0 8px; border-radius: 12px; border: 1px solid var(--u-hair); background: var(--u-ok-10); color: var(--u-ok-t); font-size: 11.5px; font-weight: 550; white-space: nowrap; }
.u-cpill > i { position: relative; width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--u-ok); }
.u-cpill > i::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; background: var(--u-ok); opacity: .3; opacity: 0; animation: u-wait-ring 2s var(--u-ease) infinite; }
/* A page state at card size: 44px tile, 14px title (.u-page-state is 52px and 19px) */
.u-page-state--sm { gap: 6px; }
.u-page-state--sm .u-page-state-ic { width: 44px; height: 44px; margin-bottom: 6px; border-radius: 12px; }
.u-page-state--sm .u-page-state-ic > .u-i { width: 20px; height: 20px; }
.u-page-state--sm .u-page-state-t { font-size: var(--u-fs-md); letter-spacing: -.01em; }
/* Dots that fade downward behind the top of a page */
.u-fadedots { position: absolute; left: 0; right: 0; top: 0; height: 320px; z-index: -1; pointer-events: none; background-image: radial-gradient(var(--u-dot) 1px, transparent 1.2px); background-size: 20px 20px; -webkit-mask: linear-gradient(#000, transparent); mask: linear-gradient(#000, transparent); }

/* =============== Small settles =============== */
/* Day heading on the left with a count on the right (.u-daysep stays centred) */
.u-daysep--left::before { display: none; }
.u-daysep--left { color: var(--u-t3); font-weight: 550; }
.u-daysep-n { order: 2; color: var(--u-t4); font: var(--u-fs-xs) var(--u-f-mono); }
/* A group band across a table */
.u-gband { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; background: var(--u-lv1); border-bottom: 1px solid var(--u-hair); color: var(--u-t3); font-size: var(--u-fs-xs); font-weight: 550; letter-spacing: .05em; text-transform: uppercase; }
.u-gband > .u-count--plain { margin-left: auto; letter-spacing: 0; }
/* A code block that stays dark in both themes, on the terminal's colours (#273449 in light) */
.u-code--term { border-color: var(--u-term-bd); background: var(--u-term-bg); color-scheme: dark; }
.u-code--term pre { padding: 9px 11px; font-size: var(--u-fs-sm); color: var(--u-term-fg); }
.u-code--term pre > span::before { display: none; }
.u-code--term .u-code-h { border-color: var(--u-term-bd); color: var(--u-term-dim); }
/* Setting rows with the line on top and tighter padding (.u-setrow keeps 14px and the line below) */
.u-setrow--top { padding: 11px 0; border-bottom: 0; border-top: 1px solid var(--u-hair); }
.u-setrow--top:first-child { border-top: 0; }
/* Switches in two columns */
.u-permg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.u-permr { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--u-hair); }
.u-permr:nth-child(-n+2) { border-top: 0; }
.u-permr > span { min-width: 0; color: var(--u-t1); }
/* A countdown centred in a dialog (the ring is .u-ringp at --s: 56px) */
.u-countdown--center { flex-direction: column; justify-content: center; gap: 10px; padding: 22px 22px 6px; border: 0; background: none; box-shadow: none; text-align: center; }
.u-countdown--center .u-ringp > b { font-size: var(--u-fs-xs); } /* 11px floor; the ring's own label is 10.5px */
/* Two-line name cell: the name, and a quiet line under it */
.u-name2 { display: flex; flex-direction: column; min-width: 0; }
.u-name2 > b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--u-t1); font-weight: 500; }
.u-name2 > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--u-t4); font-size: 11.5px; }
/* The pager under a table, flush with it */
.u-table-foot--flush { padding: 10px 2px 0; border-top: 0; color: var(--u-t3); font-size: var(--u-fs-sm); }
/* The command palette, denser: 580px, 28px rows, quiet mono hints on the right */
.u-cmdk--compact { top: 70px; width: min(580px, calc(var(--u-vw, 100vw) - 24px)); }
.u-cmdk--compact .u-cmdk-l .u-menu-item { min-height: 28px; }
.u-cmdk--compact .u-menu-item > .u-kbd, .u-cmdk--compact .u-cmdk-meta { margin-left: auto; color: var(--u-t4); font: var(--u-fs-xs) var(--u-f-mono); }

@media (max-width: 640px) {
  .u-session-tools { width: 100%; }
  .u-dock:not(.u-dock--keep) { flex-direction: column; }
  .u-dock:not(.u-dock--keep) > .u-insp { width: auto; height: var(--u-ih, 300px); border-left: 0; border-top: 1px solid var(--u-hair); }
  .u-dock:not(.u-dock--keep) > .u-isplit { display: none; }
  .u-permg { grid-template-columns: 1fr; }
  .u-permr:nth-child(2) { border-top: 1px solid var(--u-hair); }
  .u-cmdk--compact { top: 8px; }
  .u-savebar--docked { margin: 16px -16px 0; padding: 10px 16px; }
  .u-drawer--docked { left: 0; border-radius: 0; border-width: 1px 0 0; }
  /* 0.11.1, from Fleet Console (Nov 24): on a phone a ruled list row wraps instead of cutting its name.
     The look-only test of Fleet's Software Library cut an update's name to "Google..." beside its buttons;
     Fleet wrapped the row itself until Umbra could. The words take the width and wrap, the meta drops
     under them, and the actions keep their size at the row's end: one control (a button, a badge,
     a menu) stays beside the words, a group of two or more takes a line of its own under the meta,
     still at the end. Whatever trails the words counts as actions, so a row made before .u-rlist-a
     existed wraps the same way. */
  .u-rlist-i { flex-wrap: wrap; align-items: flex-start; row-gap: 8px; }
  .u-rlist-i > :first-child:not(.u-rlist-t) { margin-top: 1px; }
  .u-rlist-t { flex: 1 1 180px; }
  .u-rlist-t > b, .u-rlist-t > span { white-space: normal; overflow-wrap: anywhere; }
  .u-rlist-m { order: 2; flex: 1 0 100%; padding-left: var(--u-rlist-in, 38px); white-space: normal; }
  .u-rlist-t:first-child ~ .u-rlist-m { padding-left: 0; }
  .u-rlist-i > :not(:first-child):not(.u-rlist-t):not(.u-rlist-m) { order: 1; flex: 0 1 auto; max-width: 100%; margin-left: auto; }
  .u-rlist-i > :not(:first-child):not(.u-rlist-t):not(.u-rlist-m):not(button, a, .u-btn, .u-badge):has(> * + *) { order: 3; }
  .u-rlist-a { flex-wrap: wrap; }
}
@container u-frame (max-width: 640px) {
  .u-session-tools { width: 100%; }
  .u-dock:not(.u-dock--keep) { flex-direction: column; }
  .u-dock:not(.u-dock--keep) > .u-insp { width: auto; height: var(--u-ih, 300px); border-left: 0; border-top: 1px solid var(--u-hair); }
  .u-dock:not(.u-dock--keep) > .u-isplit { display: none; }
  .u-permg { grid-template-columns: 1fr; }
  .u-permr:nth-child(2) { border-top: 1px solid var(--u-hair); }
  .u-cmdk--compact { top: 8px; }
  .u-savebar--docked { margin: 16px -16px 0; padding: 10px 16px; }
  .u-drawer--docked { left: 0; border-radius: 0; border-width: 1px 0 0; }
  /* 0.11.1, from Fleet Console (Nov 24): on a phone a ruled list row wraps instead of cutting its name.
     The look-only test of Fleet's Software Library cut an update's name to "Google..." beside its buttons;
     Fleet wrapped the row itself until Umbra could. The words take the width and wrap, the meta drops
     under them, and the actions keep their size at the row's end: one control (a button, a badge,
     a menu) stays beside the words, a group of two or more takes a line of its own under the meta,
     still at the end. Whatever trails the words counts as actions, so a row made before .u-rlist-a
     existed wraps the same way. */
  .u-rlist-i { flex-wrap: wrap; align-items: flex-start; row-gap: 8px; }
  .u-rlist-i > :first-child:not(.u-rlist-t) { margin-top: 1px; }
  .u-rlist-t { flex: 1 1 180px; }
  .u-rlist-t > b, .u-rlist-t > span { white-space: normal; overflow-wrap: anywhere; }
  .u-rlist-m { order: 2; flex: 1 0 100%; padding-left: var(--u-rlist-in, 38px); white-space: normal; }
  .u-rlist-t:first-child ~ .u-rlist-m { padding-left: 0; }
  .u-rlist-i > :not(:first-child):not(.u-rlist-t):not(.u-rlist-m) { order: 1; flex: 0 1 auto; max-width: 100%; margin-left: auto; }
  .u-rlist-i > :not(:first-child):not(.u-rlist-t):not(.u-rlist-m):not(button, a, .u-btn, .u-badge):has(> * + *) { order: 3; }
  .u-rlist-a { flex-wrap: wrap; }
}

/* ---- umbra-whisper.css ---- */
/* Umbra 0.11.0: Whisper, subtle gradients in place of flat colours.
   Enzo asked (Nov 22) for every coloured piece to carry a subtle gradient instead of a flat
   colour, so the apps feel more premium. Of the looks drawn for him he picked Whisper (Nov 23):
   a small lightness shift from top to bottom, the same hue all the way, no shine.

   Filled controls (buttons, checks, switches, the sent message bubble, the selected day) already
   run from --u-bp-top to --u-bp-bot, so Whisper is that same top-to-bottom shift carried to the
   pieces that were still flat: count badges, tinted washes (badges, alerts, finished steps, the
   red Off layer of a call button), avatars, calendar events, progress fills and uptime days.

   This part comes after every other part (only motion follows it) and uses the same selectors the
   shared pieces use, so it replaces their flat fill and nothing more specific: a state or an app's
   own override still wins. Side accent stripes stay flat lines (Enzo, Nov 19); Whisper never
   touches a border.

   Browsers without relative colours (oklch(from ...), before Chrome 119 and Safari 16.4) keep the
   flat colours: everything but the two count badges sits inside @supports. */

.u-count--blue { background: linear-gradient(180deg, var(--u-bp-top), var(--u-bp-bot)); }
.u-count--bad { background: linear-gradient(180deg, var(--u-bd-top), var(--u-bd-bot)); }

@supports (color: oklch(from red l c h)) {
  /* Tinted washes: the piece's own colour (--c), a touch lighter at the top and a touch darker at
     the bottom, .17 fading to .07 (the flat washes sat at about .12). */
  .u-badge, .u-alert, .u-wizard > li.is-done > i {
    background: linear-gradient(180deg,
      oklch(from var(--wc, var(--c)) calc(l + .035) c h / .17),
      oklch(from var(--wc, var(--c)) calc(l - .035) c h / .07));
  }
  .u-wizard > li.is-done > i { --wc: var(--u-ok); }
  /* the red layer a call button fades in when it is turned off, over the page colour */
  .u-callbtn > .u-callbtn-c::before {
    background:
      linear-gradient(180deg,
        oklch(from var(--u-bad) calc(l + .035) c h / .17),
        oklch(from var(--u-bad) calc(l - .035) c h / .07)),
      var(--u-lv0);
  }
  /* Avatars and calendar events: the same tint mixed into the card colour, now two tints */
  .u-avatar {
    background: linear-gradient(180deg,
      color-mix(in srgb, oklch(from var(--c) calc(l + .035) c h) 27%, var(--u-lv2)),
      color-mix(in srgb, oklch(from var(--c) calc(l - .035) c h) 17%, var(--u-lv2)));
  }
  .u-ev:not(.is-past) {
    background: linear-gradient(180deg,
      color-mix(in srgb, oklch(from var(--c) calc(l + .035) c h) 19%, var(--u-lv2)),
      color-mix(in srgb, oklch(from var(--c) calc(l - .035) c h) 10%, var(--u-lv2))) padding-box;
  }
  /* Solid bars: a progress fill brightens toward its end; an uptime day runs top to bottom */
  .u-progress > i { --wc: var(--u-blue); }
  .u-progress--ok > i { --wc: var(--u-ok); }
  .u-progress--warn > i { --wc: var(--u-warn); }
  .u-progress--bad > i { --wc: var(--u-bad); }
  .u-progress > i {
    background: linear-gradient(90deg,
      oklch(from var(--wc) calc(l - .035) c h),
      oklch(from var(--wc) calc(l + .035) c h));
  }
  .u-uptime > i { --wc: var(--u-ok); }
  .u-uptime > i.w { --wc: var(--u-warn); }
  .u-uptime > i.b { --wc: var(--u-bad); }
  .u-uptime > i:not(.n) {
    background: linear-gradient(180deg,
      oklch(from var(--wc) calc(l + .035) c h),
      oklch(from var(--wc) calc(l - .035) c h));
  }
}

/* ---- umbra-jobs.css ---- */
/* =====================================================================
   Umbra: job tracker (0.12.0)
   Fleet Console asked for it on Nov 26 2026: a long job (an agent update, a script run on many
   machines) shrinks out of its dialog into a pill on the title bar, as Inbox Mail's running rule
   does, and the pill opens a panel with every job and where each one stands. Picked by Enzo from
   the Fleet Console Job Tracker concept ("looks great, go ahead and add that").
   Pieces, all built on what Umbra already has:
     .u-jobpill      a small button (.u-btn.u-btn--sm) on the title bar: icon, words, thin bar,
                     "3 of 12", a red count when something needs a look
     .u-pop.u-jobs   the panel the pill opens ([data-u-pop], so it places, closes and animates
                     like every other popover)
     .u-jobcard          one job in the panel: a header button that opens it, a bar with the run
                     summary, and the job's .u-runlist underneath
     .u-vline        a version line: "0.0.85 → 0.0.86", the build code only in a tooltip
     .u-jobghost     the copy of a dialog that flies into the pill (Umbra.jobs.minimize)
   Shared with Inbox Mail (0.12.0 review, Nov 26): Inbox Mail's running-rule pill and this one
   were two pills that differed in eight ways. Enzo settled them ("5px, like Umbra" for the one he
   was asked; the other seven take the picks on the conflict page). So: the pill floats in a
   .u-jobslot and nothing beside it moves; the panel is 320px unless the app sets --u-jobs-w
   (Fleet Console uses 400px); a job may be a plain row with no machine list and a worded Stop;
   small buttons are Umbra's 24px and sit 6px apart; the pill's inner gap is the small button's
   5px; stopped is gray and failed is red with its count, in every app; the heading is 11px; and
   on a phone a minimized job reopens with the dialog's own zoom from the center.
   Motion is transform and opacity only. Nothing here changes height or width over time: a job
   that opens shows its machines at once and they fade in, while the jobs under it slide down
   from where they were (Umbra.jobs.toggle moves them with transform).
   ===================================================================== */

/* ---------- The pill ---------- */
.u-btn.u-jobpill { max-width: 360px; flex: none; }
/* Where the pill floats. A slot takes no room in the bar; the pill hangs off its end and grows
   back into the bar's empty middle, so the buttons around it never move when a job starts or
   ends (Inbox Mail's way; Fleet's first concept pushed them over). Put the slot right after the
   bar's spacer. .u-jobslot--start hangs the pill the other way, for a slot placed before it. */
.u-jobslot { position: relative; flex: none; width: 0; height: var(--u-ctl-sm); align-self: center; }
.u-jobslot > .u-jobpill { position: absolute; top: 0; right: 0; }
.u-jobslot--start > .u-jobpill { right: auto; left: 0; }
.u-jobpill[hidden] { display: none; }
.u-jobpill.is-new { animation: u-jobpill-in var(--u-slow) var(--u-ease); }
.u-jobpill.is-closing { animation: u-jobpill-out .18s ease-in forwards; pointer-events: none; }
.u-jobpill.is-landed { animation: u-jobpill-land .42s var(--u-ease); }
.u-jobpill[aria-expanded="true"] { transform: translateY(-1px); }
/* .u-btn > span is a one-line block; the pill's own parts set their own box. */
.u-jobpill > .u-jobpill-ic { display: grid; place-items: center; width: 14px; height: 14px; flex: none; line-height: 1; transform: none; color: var(--u-blue-t); }
.u-jobpill-ic .u-i { width: 14px; height: 14px; }
.u-jobpill-ic .u-spin { width: 13px; height: 13px; border-width: 2px; }
.u-jobpill[data-state="done"] .u-jobpill-ic { color: var(--u-ok); }
.u-jobpill[data-state="attn"] .u-jobpill-ic { color: var(--u-bad); }
.u-jobpill[data-state="paused"] .u-jobpill-ic { color: var(--u-warn); }
/* Stopped (someone pressed Stop) is gray: nothing went wrong. Failed is attn, red with its count. */
.u-jobpill[data-state="stopped"] .u-jobpill-ic, .u-jobpill[data-state="stopping"] .u-jobpill-ic { color: var(--u-t4); }
.u-jobpill > .u-jobpill-l { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-jobpill > .u-jobpill-bar { display: block; width: 64px; height: 5px; flex: none; line-height: 0; transform: none; }
.u-jobpill[data-state="done"] .u-jobpill-bar > i { background: var(--u-ok); }
.u-jobpill[data-state="attn"] .u-jobpill-bar > i { background: var(--u-bad); }
.u-jobpill[data-state="stopped"] .u-jobpill-bar > i, .u-jobpill[data-state="stopping"] .u-jobpill-bar > i { background: var(--u-t4); }
.u-jobpill > .u-jobpill-n { color: var(--u-t2); font: 500 var(--u-fs-xs)/var(--h) var(--u-f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.u-jobpill > .u-jobpill-bad { display: inline-grid; margin-left: -2px; line-height: 1; transform: none; }
.u-jobpill > .u-jobpill-bad[hidden] { display: none; }
@media (max-width: 1180px) { .u-jobpill > .u-jobpill-l { display: none; } }
@container u-frame (max-width: 1180px) { .u-jobpill > .u-jobpill-l { display: none; } }
@media (max-width: 980px) { .u-jobpill > .u-jobpill-bar { width: 40px; } }
@container u-frame (max-width: 980px) { .u-jobpill > .u-jobpill-bar { width: 40px; } }
/* a phone's title bar keeps its search: the pill is its icon and "3 of 12" */
@media (max-width: 640px) { .u-jobpill > .u-jobpill-bar { display: none; } .u-btn.u-jobpill { padding: 0 8px; } }
@container u-frame (max-width: 640px) { .u-jobpill > .u-jobpill-bar { display: none; } .u-btn.u-jobpill { padding: 0 8px; } }

/* ---------- The panel ---------- */
.u-pop.u-jobs { display: flex; flex-direction: column; width: var(--u-jobs-w, 320px); max-width: calc(var(--u-vw, 100vw) - 16px); max-height: min(560px, calc(var(--u-vh, 100vh) - 96px)); padding: 0; overflow: hidden; }
.u-jobs-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 6px 8px 2px 14px; }
.u-jobs-h h2 { margin: 0; color: var(--u-t3); font-size: var(--u-fs-xs); font-weight: 500; }
.u-jobs-l { flex: 1; min-height: 0; overflow: auto; padding: 0 6px 6px; }
.u-jobs-empty { padding: 18px 14px 22px; color: var(--u-t3); font-size: var(--u-fs-sm); text-align: center; }
.u-jobs-f { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 14px; border-top: 1px solid var(--u-hair); color: var(--u-t3); font-size: var(--u-fs-xs); }
.u-jobs-f > span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.u-jobs-f .u-i { width: 13px; height: 13px; flex: none; color: var(--u-t4); }

/* ---------- One job ---------- */
.u-jobcard { position: relative; border: 1px solid transparent; border-radius: 10px; }
.u-jobcard + .u-jobcard { margin-top: 4px; }
.u-jobcard.is-new { animation: u-rise var(--u-slow) var(--u-ease); }
.u-jobcard.is-closing { animation: u-fade-out .16s ease-in forwards; }
.u-jobcard.is-open { border-color: var(--u-hair); background: var(--u-lv2); box-shadow: var(--u-edge); }
.u-jobcard-top { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; grid-template-areas: "ic t acts" "ic s acts" "ic bar bar"; align-items: center; column-gap: 10px; row-gap: 1px; padding: 9px 8px 10px; border-radius: 10px; cursor: pointer; }
.u-jobcard:not(.is-open) > .u-jobcard-top:hover { background: var(--u-hover); }
.u-jobcard-top:focus-visible { outline-offset: -2px; }
.u-jobcard-ic { grid-area: ic; align-self: start; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--u-blue-10); color: var(--u-blue-t); box-shadow: inset 0 0 0 1px var(--u-hair); }
.u-jobcard-ic .u-i { width: 15px; height: 15px; }
.u-jobcard[data-state="done"] .u-jobcard-ic { background: var(--u-ok-10); color: var(--u-ok-t); }
.u-jobcard[data-state="attn"] .u-jobcard-ic { background: var(--u-bad-10); color: var(--u-bad-t); }
.u-jobcard[data-state="paused"] .u-jobcard-ic { background: var(--u-warn-10); color: var(--u-warn-t); }
.u-jobcard[data-state="stopped"] .u-jobcard-ic, .u-jobcard[data-state="stopping"] .u-jobcard-ic { background: var(--u-gray-10); color: var(--u-t3); }
.u-jobcard-t { grid-area: t; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--u-t1); font-size: var(--u-fs); font-weight: 500; }
.u-jobcard-t > .u-jobcard-v { margin-left: 4px; color: var(--u-t2); font: 500 var(--u-fs-sm) var(--u-f-mono); }
.u-jobcard-s { grid-area: s; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--u-t3); font-size: var(--u-fs-sm); }
.u-jobcard-acts { grid-area: acts; align-self: start; display: inline-flex; align-items: center; gap: 6px; margin-top: -2px; }
.u-jobcard-acts .u-i { width: 14px; height: 14px; }
.u-jobcard-acts .u-jobcard-chev { transition: transform var(--u-med) var(--u-ease); }
.u-jobcard.is-open .u-jobcard-chev { transform: rotate(180deg); }
.u-jobcard-bar { grid-area: bar; display: flex; align-items: center; gap: 8px; margin-top: 8px; min-width: 0; }
.u-jobcard-bar > .u-progress { flex: 1; min-width: 40px; height: 4px; }
.u-jobcard[data-state="done"] .u-jobcard-bar > .u-progress > i { background: var(--u-ok); }
.u-jobcard[data-state="attn"] .u-jobcard-bar > .u-progress > i { background: var(--u-bad); }
.u-jobcard[data-state="stopped"] .u-jobcard-bar > .u-progress > i, .u-jobcard[data-state="stopping"] .u-jobcard-bar > .u-progress > i { background: var(--u-t4); }
/* A plain job (Inbox Mail's running rule): no machine list, so the row doesn't open; pressing it
   fires umbra:jobact with act "open" (Inbox Mail opens the rule). */
.u-jobcard--plain + .u-jobcard--plain { margin-top: 0; }
.u-jobcard--plain + .u-jobcard--plain::before { content: ""; position: absolute; left: 46px; right: 8px; top: 0; height: 1px; background: var(--u-hair); }
.u-jobcard-bar > .u-runsum { flex: none; font-size: var(--u-fs-xs); }
.u-jobcard-more[hidden] { display: none; }
.u-jobcard-more { animation: u-jobcard-more-in var(--u-slow) var(--u-ease); }
.u-jobcard-more > .u-runlist { border-top: 1px solid var(--u-hair); }
.u-jobcard-more .u-run { padding: 9px 10px 9px 46px; }
.u-jobcard-more .u-run-name { font-size: var(--u-fs-sm); }
.u-jobcard-more > .u-jobcard-acts2 { display: flex; justify-content: flex-end; gap: 6px; padding: 8px 10px 10px; border-top: 1px solid var(--u-hair); }
.u-jobcard-more > .u-jobcard-acts2:empty { display: none; }
@media (max-width: 640px) {
  .u-pop.u-jobs { width: calc(var(--u-vw, 100vw) - 16px); }
  .u-jobcard-more .u-run { padding-left: 12px; }
}
@container u-frame (max-width: 640px) {
  .u-pop.u-jobs { width: calc(var(--u-vw, 100vw) - 16px); }
  .u-jobcard-more .u-run { padding-left: 12px; }
}

/* ---------- Version line: "0.0.85 → 0.0.86" ---------- */
.u-vline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.u-vline-from { color: var(--u-t3); font: var(--u-fs) var(--u-f-mono); }
.u-vline-to { color: var(--u-blue-t); font: 500 var(--u-fs) var(--u-f-mono); }
.u-vline-to[data-u-tip] { border-bottom: 1px dotted color-mix(in srgb, var(--u-blue-t) 45%, transparent); cursor: help; }
.u-vline > .u-i { width: 14px; height: 14px; color: var(--u-t4); }
.u-vline > .u-badge { height: 18px; }

/* ---------- The dialog copy that flies into the pill ---------- */
.u-jobghost { position: fixed; z-index: var(--u-z-toast); margin: 0; overflow: hidden; pointer-events: none; transform-origin: 0 0; border: 1px solid var(--u-hair2); border-radius: var(--u-r-xl); background: var(--u-lv3); box-shadow: var(--u-sh-pop); will-change: transform, opacity; }
/* the dialog itself while its copy flies: kept in place (focus and layout stay put), unseen */
.is-u-minimizing { opacity: 0 !important; animation: none !important; }
/* ...and once its copy has grown back out, it shows as it is, with no second entrance */
.is-u-grown:not(.is-closing) { animation: none !important; }

/* ---------- A plain job's title is its open button (0.12.0 shared) ---------- */
button.u-jobcard-tt { max-width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
button.u-jobcard-tt:hover { text-decoration: underline; text-decoration-color: var(--u-t4); text-underline-offset: 2px; }
.u-jobcard--plain > .u-jobcard-top { cursor: default; }
.u-jobcard--plain:not(.is-open) > .u-jobcard-top:hover { background: none; }
.u-jobcard-acts > .u-btn--sm { margin-top: 0; }

/* ---- umbra-effects.css ---- */
/* ==========================================================================
   Umbra motion. Quick and Apple-like: things move into place on
   cubic-bezier(.32,.72,0,1). Keyframes animate only transform and opacity
   (Fleet Console's animation lint enforces the same), so motion stays smooth
   on old client PCs. Exits are faster than entrances.
   ========================================================================== */

@keyframes u-fade { from { opacity: 0; } }
@keyframes u-fade-out { to { opacity: 0; } }
@keyframes u-rise { from { opacity: 0; transform: translateY(6px); } }
@keyframes u-menu-in { from { opacity: 0; transform: scale(.97); } }
@keyframes u-menu-out { to { opacity: 0; transform: scale(.98); } }
@keyframes u-modal-in { from { opacity: 0; transform: translate(-50%, -50%) scale(.97); } }
@keyframes u-modal-out { to { opacity: 0; transform: translate(-50%, -50%) scale(.98); } }
@keyframes u-cmdk-in { from { opacity: 0; transform: translateX(-50%) scale(.97); } }
@keyframes u-cmdk-out { to { opacity: 0; transform: translateX(-50%) scale(.98); } }
@keyframes u-sheet-in { from { opacity: 0; transform: translate(-50%, 24px); } }
@keyframes u-sheet-out { to { opacity: 0; transform: translate(-50%, 16px); } }
@keyframes u-sheet-in-b { from { opacity: 0; transform: translateY(24px); } }
@keyframes u-sheet-out-b { to { opacity: 0; transform: translateY(16px); } }
@keyframes u-drawer-in { from { opacity: 0; transform: translateX(24px); } }
@keyframes u-drawer-out { to { opacity: 0; transform: translateX(16px); } }
@keyframes u-toast-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes u-toast-out { to { opacity: 0; transform: translateY(8px); } }
@keyframes u-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes u-spin { to { transform: rotate(360deg); } }
@keyframes u-blink { 50% { opacity: 0; } }
@keyframes u-typing { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes u-indet { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
/* The skeleton shimmer is a soft strip (.u-skel::after) slid across by transform. It
   used to move a background-position, the last motion in Umbra outside transform and
   opacity; Fleet Console's rule asked for it to go (owner's call, Nov 19 2026). */
@keyframes u-shim { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* Job tracker (0.12.0): the pill comes in by dropping 3px and growing from .96, leaves the
   same way, and gives a small bump when a dialog lands in it. A job's machines fade down 4px. */
@keyframes u-jobpill-in { from { opacity: 0; transform: translateY(-3px) scale(.96); } }
@keyframes u-jobpill-out { to { opacity: 0; transform: translateY(-3px) scale(.96); } }
@keyframes u-jobpill-land { 40% { transform: scale(1.06); } }
@keyframes u-jobcard-more-in { from { opacity: 0; transform: translateY(-4px); } }

/* Views fade in and rise 6px */
.u-view-in { animation: u-rise var(--u-slow) var(--u-ease); }
.u-stagger > * { animation: u-rise var(--u-slow) var(--u-ease) both; }
.u-stagger > *:nth-child(2) { animation-delay: .04s; } .u-stagger > *:nth-child(3) { animation-delay: .08s; }
.u-stagger > *:nth-child(4) { animation-delay: .12s; } .u-stagger > *:nth-child(5) { animation-delay: .16s; }
.u-stagger > *:nth-child(n+6) { animation-delay: .2s; }

/* Spotlight that follows the pointer over a card (umbra.js sets --u-mx/--u-my on .u-spot,
   in px). It moves by transform, not left/top, so following the pointer never repaints
   the card's layout. */
.u-spot { position: relative; overflow: hidden; isolation: isolate; }
.u-spot::before { content: ""; position: absolute; z-index: -1; left: 0; top: 0; width: 320px; height: 320px; transform: translate(calc(var(--u-mx, 160px) - 160px), calc(var(--u-my, 160px) - 160px)); background: radial-gradient(closest-side, color-mix(in srgb, var(--u-blue) 16%, transparent), transparent); opacity: 0; transition: opacity .3s var(--u-ease); pointer-events: none; }
.u-spot:hover::before { opacity: 1; }

/* Thin moving gradient border, for one featured thing per screen at most */
.u-glowline { position: relative; }
.u-glowline::after { content: ""; position: absolute; left: 12%; right: 12%; top: -1px; height: 1px; background: var(--u-grad); -webkit-mask: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); mask: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); opacity: .8; }

/* Touch screens keep :hover on after a tap, so a tapped button stayed lifted and lit until
   something else was tapped (0.13.0, design audit Nov 27). Lift and hover light only where
   there is a real mouse; a press still sinks the button. */
@media (hover: none) {
  :is(.u, .u-layer) .u-btn:hover:not(:active), :is(.u, .u-layer) .u-card--hover:hover, :is(.u, .u-layer) .u-ev:hover, :is(.u, .u-layer) .u-callbtn:hover > .u-callbtn-c { transform: none; }
  :is(.u, .u-layer) .u-btn:hover::after, :is(.u, .u-layer) .u-ibtn:hover::after { opacity: 0; }
}

/* Reduced motion: swap movement for short fades */
@media (prefers-reduced-motion: reduce) {
  /* .u-layer too: menus, toasts and dialogs moved to <body> sit outside .u when only
     part of a page uses Umbra (Nov 16 audit). */
  .u *, .u *::before, .u *::after,
  .u-layer, .u-layer *, .u-layer *::before, .u-layer *::after { animation-duration: .12s !important; animation-iteration-count: 1 !important; transition-duration: .1s !important; }
  .u .u-spin, .u-layer .u-spin { animation: u-spin 1.4s linear infinite !important; }
  .u .u-btn:hover, .u .u-card--hover:hover, .u .u-ev:hover, .u .u-callbtn:hover > .u-callbtn-c { transform: none; }
  /* The plan's breathing ring is movement for its own sake: off, the blue ring stays. */
  .u .u-plan-step > .u-plan-dot::after { display: none; }
  /* Moving entrances and exits become a plain fade (0.5.3 design audit). Shortening the
     time alone still slid and zoomed things, which is the movement this setting asks us to
     drop. A keyframe that names no transform leaves the element's own transform alone, so
     centred dialogs and sheets stay centred. */
  @keyframes u-rise { from { opacity: 0; } }
  @keyframes u-menu-in { from { opacity: 0; } }
  @keyframes u-modal-in { from { opacity: 0; } }
  @keyframes u-cmdk-in { from { opacity: 0; } }
  @keyframes u-sheet-in { from { opacity: 0; } }
  @keyframes u-sheet-in-b { from { opacity: 0; } }
  @keyframes u-drawer-in { from { opacity: 0; } }
  @keyframes u-toast-in { from { opacity: 0; } }
  @keyframes u-chat-sheet-in { from { opacity: 0; } }
  @keyframes u-comms-in-r { from { opacity: 0; } }
  @keyframes u-comms-zoom-in { from { opacity: 0; } }
  @keyframes u-confirm-in { from { opacity: 0; } }
  @keyframes u-ct-in { from { opacity: 0; } }
  @keyframes u-ct-pop { from { opacity: 0; } }
  @keyframes u-bulk-in { from { opacity: 0; } }
  @keyframes u-ops-in { from { opacity: 0; } }
  @keyframes u-ops-pop { from { opacity: 0; } }
  @keyframes u-wtoast-in { from { opacity: 0; } }
  @keyframes u-ws-tab-in { from { opacity: 0; } }
  @keyframes u-cap-in { from { opacity: 0; } }
  @keyframes u-vin { from { opacity: 0; } }
  @keyframes u-menu-out { to { opacity: 0; } }
  @keyframes u-modal-out { to { opacity: 0; } }
  @keyframes u-cmdk-out { to { opacity: 0; } }
  @keyframes u-sheet-out { to { opacity: 0; } }
  @keyframes u-sheet-out-b { to { opacity: 0; } }
  @keyframes u-drawer-out { to { opacity: 0; } }
  @keyframes u-toast-out { to { opacity: 0; } }
  @keyframes u-chat-sheet-out { to { opacity: 0; } }
  @keyframes u-comms-zoom-out { to { opacity: 0; } }
  @keyframes u-bulk-out { to { opacity: 0; } }
  @keyframes u-wtoast-out { to { opacity: 0; } }
  @keyframes u-ws-tab-out { to { opacity: 0; } }
  @keyframes u-sheet-drop { to { opacity: 0; } }
  @keyframes u-vout { to { opacity: 0; } }
  @keyframes u-jobpill-in { from { opacity: 0; } }
  @keyframes u-jobpill-out { to { opacity: 0; } }
  @keyframes u-jobpill-land { from { opacity: 1; } }
  @keyframes u-jobcard-more-in { from { opacity: 0; } }
}
