/* ZPH shared shell — layer 0: fonts + accessibility base.        09/08/2026
   SINGLE SOURCE (10/08): this file exists ONCE, here, served to every page at
   /shared/zph-shell.css. Its url('fonts/…') refs resolve to /shared/fonts/…
   Loaded by EVERY surface: suite apps, Welcome, index, Console, codes,
   the 8 BIM pages, login, View Lab.  Rules here must be surface-agnostic:
   no tokens, no layout, no per-app values — those stay in each page until
   shell layer 1 (injected chrome) lands.

   Fonts are SELF-HOSTED (fonts/ beside this file): the NAS must render the
   house identity with no internet. Never reintroduce fonts.googleapis.com
   links — parity-check.py fails any page that does.

   Chakra Petch is fully retired (suite 01/08/2026, BIM migrated 09/08/2026
   on the owner's decision) — parity-check.py fails any surface that names it. */

/* ---- JetBrains Mono (variable, weights 400-700 in one file) ---- */
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400 700;font-display:swap;src:url('fonts/jetbrains-mono-wght.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'JetBrains Mono';font-style:italic;font-weight:400;font-display:swap;src:url('fonts/jetbrains-mono-400i.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

/* ---- Michroma (display: wordmark, titles, action buttons) ---- */
@font-face{font-family:'Michroma';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/michroma-400.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

/* ---- W13 UX110 (11/10, owner decision 11/10): TYPE - three faces, two body sizes ----
   QA 11/10: JetBrains Mono was on 4,707 text nodes (every word); hierarchy rested on weight and colour alone.
   [Owner 12/10: --f-ui is JetBrains Mono again (option A, note at :root below) - the roles here stay as written.]
   --f-ui       the DEVICE'S OWN system font (Segoe UI on Windows, San Francisco on Apple, Roboto on Android) - nothing
                extra downloads. Every word: prose, notes, names, menu items, labels (the small caps labels too - caps,
                600, .6px: a proportional face's capitals need less tracking than mono cells), status pills, fields,
                dialogs, toasts, empty states, dates (every table cell has tabular digits, so dates and counts in a
                column line up; a date column outside a table adds .zf-tnum).
   --f-mono     JetBrains Mono, self-hosted (above): CODES AND FIGURES ONLY - record codes (PAY-, INV-, request / SPB
                ids, item numbers, project code tags, cost codes, drawing numbers) and figures that must line up
                (money, quantities with units, percentages in data cells). Templates opt in with a class:
                .zf-code (a code) / .zf-num (a figure: + tabular digits) - never an inline font stack. A number FIELD
                (inputmode="decimal": amount, quantity, % - and a whole-unit quantity / % field with .zf-num) is mono +
                tabular like the figure it becomes; a date field (inputmode="numeric", DD/MM/YYYY) keeps the system
                font with tabular digits. Left mono on purpose: the printed paper (the invoice sheet, the snag inspection
                sheet) and Invoice Maker's typeface choice - a document's own type.
   --f-display  Michroma: wordmark, page titles / headings, the caps action buttons (.zp-btn-t) - unchanged.
   Sizes: 13px main text (rows, prose, names, fields, menu items) / 12px secondary (meta, captions, caps labels, pills,
   and the mono codes and figures). Measured in Chrome / Windows: the system font's x-height at 13px = 7px = JetBrains
   Mono's at 12px (the system font at 12px is 6px), so a 13px name and a 12px mono figure on one row read as one size;
   a 13px sentence is still 26% narrower than the old 12px mono one (282 vs 382px), so nothing that fitted grows wider.
   Phones keep 16px fields (UX99) and headings keep their sizes.
   The BIM pages share this file: the tokens and classes are inert there; every base rule below is body.zp-suite. */
/* Owner 12/10 (Thomas, after seeing the options): "i still like jetbrains mono for text" - option A, JetBrains Mono
   everywhere: --f-ui is the mono stack again; the W13 sizes stay (13px main / 12px secondary), and .zf-code / .zf-num
   still mark codes and figures (tabular digits), so a proportional face can come back with this one line. */
:root{--f-ui:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --f-mono:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;--f-display:'Michroma',sans-serif;}
.zf-code{font-family:var(--f-mono) !important;}
.zf-num{font-family:var(--f-mono) !important;font-variant-numeric:tabular-nums;}
.zf-tnum{font-variant-numeric:tabular-nums;}
body.zp-suite{font-family:var(--f-ui);
  --zsh-font:var(--f-ui);--zsh-fs:13px;--zsh-item-ls:0;--zsh-caps-ls:.8px;}   /* the injected rail / menu (zph-shell.js) */
:root{--zsh-fs:13px;--zsh-item-ls:0;--zsh-caps-ls:.8px;}   /* W29 (01/11, Thomas): the BIM pages' body has no .zp-suite, so their rail fell back to the shell's 12px + .3px */
body.zp-suite input[inputmode="decimal"]{font-family:var(--f-mono);font-variant-numeric:tabular-nums;}
body.zp-suite input[inputmode="numeric"]{font-variant-numeric:tabular-nums;}
body.zp-suite :is([role="cell"],[role="gridcell"],td){font-variant-numeric:tabular-nums;}

/* ---- Shell chrome tokens (10/08, Phase 2) ----
   The injected rail/tab (zph-shell.js) styles itself with the suite token
   names. Suite apps define them on body{} (which beats :root, so nothing
   changes there); these :root defaults make the SAME chrome work on Console
   and the BIM pages, which never carried the suite surface vars. Values =
   the suite dark/light sets. ---- */
/* W37C palette (Thomas 04/11): "Midnight slate" dark - the ONE dark colour set (A:\_knowledge\zph suite\palette-options.json,
   key midnight-slate). Flat, solid surfaces: no coloured glows, no glass. Every surface reads it from here (the four DC apps,
   Console, codes, the launcher, Welcome, login; BIM restates it in its own body {} block, its token names differ); a page's own
   :root only adds page extras. Was: #05070c page under blue / purple / teal glows, rgba(11,15,24,.66) glass cards, the amber
   #f5a623 accent. Text APCA Lc on the card: text 93, text2 80, muted 62, faint 57 (WCAG 13.9 / 11.2 / 8.5 / 7.6). */
:root{--bg:#090F1A;--side:#0C1220;--topbar:#0C1220;--card:#111829;--card2:#0F1523;--input:#0D1321;--notif-bg:#141B2D;
  --border:#273148;--border2:#1F283D;--hair:#1A2133;--border4:#313D5A;--track:#182135;--nav-active:#1E273E;--hover:#151E31;
  --dot:#6E778B;--dim-bar:#6E778B;--glass-spec:none;
  --text:#E8EBF3;--text2:#D2D6DE;--muted:#B1B7C6;--faint:#A5ADBF;
  --accent:#9EC9E8;--on-accent:#090F1A;--progress:#59A8CF;--link-hover:#C2DEF2;--nav-on:var(--text);
  --good:#3CC27A;--warn:#F2C94C;--bad:#F47174;--amberText:var(--warn);
  --good-bg:#10261B;--good-ink:#3CC27A;--warn-bg:#29230C;--warn-ink:#F2C94C;--bad-bg:#2B1418;--bad-ink:#F47174;
  --pending-bg:#2A1D10;--pending-ink:#F5A65B;--info-bg:#16213B;--info-ink:#9EC9E8;--void-bg:#271A26;--void-ink:#D9A0C8;
  --sn-red:#F47174;--sn-orange:#F5A65B;--sn-slate:#A5ADBF;--sn-blue:#9EC9E8;--sn-purple:#D9A0C8;
  --bad-fill:#C0333F;--good-fill:#3CC27A;--badge-bg:#C0333F;
  --avchip:linear-gradient(135deg,#5F95C8 0%,#9EC9E8 50%,#E8EBF3 100%);--avchip-ink:#090F1A;--hexon-ink:#090F1A;}
/* W37C: BIM's light class (body.theme-light) takes the whole Marina set below with body.light (it had only a grey chrome set,
   so every token it did not restate fell through to the dark :root - its project picker drew the dark field #0D1321) */

/* ---- W37C palette (Thomas 04/11): "Marina" light - the ONE light colour set ----
   Sand page, navy accent (palette-options.json, key midnight-slate, light side). Was the 10-colour coastal set of 28/09 (Sky
   Blue #B7E2E3, Aqua #7CC6BE, Teal #2D9CA8, Deep Blue #005B75, Sun Yellow, Peach, Pinky, Beach Plum, Sea Green, Rose Red) over
   three radial blobs; now flat and solid. The --zp-* NAMES stay (every page reads them); their VALUES are the Marina roles:
     --zp-deep   navy accent #0B3C5D (links, the active marker, focus, the one filled primary; white words 11.5:1)
     --zp-sky    sand edge #E4DBC8 (card borders, the light selection wash)    --zp-aqua  mid sand #C9BB9C (stronger rules)
     --zp-teal   progress blue #328CC1 (plan series, progress)                 --zp-teal-text  link hover navy #1F5F8B
     status [ink, tint]: good #1E6B47 / #D6EFE2 (--zp-green(-text) / --zp-mint), warn #7A5900 / #FCEFC2 (--zp-yellow-text /
     --zp-yellow), bad #B42B3A / #FBDDDF (--zp-red(-text) / --zp-pinky), pending #8A4A12 / #FBE1C8 (--zp-peach-text /
     --zp-peach), info #0B3C5D / #F2EDE3, void (plum) #7D4551 / #F3E5E6 (--zp-plum-text / --zp-plum-tint)
   One ink per state: the --zp-on-* inks equal the -text shades. Inks on their tint: 5.3 / 5.6 / 4.9 / 5.4 / 9.9 / 6.0:1.
   Text APCA Lc on the page: text 98, text2 88, muted 79, faint 75 (WCAG on page / card / selected rail row: muted 6.2 / 6.6 /
   5.3, faint 5.4 / 5.7 / 4.6). Every suite app reads its light tokens from here; a page's own body.light only adds extras. */
:root{--zp-sky:#E4DBC8;--zp-aqua:#C9BB9C;--zp-teal:#328CC1;--zp-deep:#0B3C5D;--zp-yellow:#FCEFC2;--zp-peach:#FBE1C8;--zp-pinky:#FBDDDF;--zp-plum:#9C5A6B;--zp-green:#1E6B47;--zp-red:#B42B3A;--zp-mint:#D6EFE2;--zp-plum-tint:#F3E5E6;
  --zp-green-text:#1E6B47;--zp-red-text:#B42B3A;--zp-teal-text:#1F5F8B;--zp-plum-text:#7D4551;--zp-peach-text:#8A4A12;--zp-yellow-text:#7A5900;
  --zp-on-sky:#0B3C5D;--zp-on-aqua:#2D2516;--zp-on-yellow:#7A5900;--zp-on-peach:#8A4A12;--zp-on-pinky:#B42B3A;--zp-on-mint:#1E6B47;--zp-on-plum-tint:#7D4551;}
/* dark red TEXT (owner 29/09, W37C): #F47174 - 5.96:1 on the card, 6.1 on its tint; a filled danger button keeps its own
   darker fill (--bad-fill #C0333F behind white words, 5.6:1) */
body.light,body.theme-light{
  --bg:#FAF8F5;
  --side:#F6F3EC;--topbar:#F6F3EC;--card:#FFFFFF;--card2:#FCFAF6;--input:#FFFFFF;
  --border:var(--zp-sky);--border2:#EAE3D4;--hair:#F0EBE0;--border4:var(--zp-aqua);--dot:#8A806D;--dim-bar:var(--zp-teal);
  --track:#EFE9DD;--nav-active:#EDE6D9;--hover:#F3EEE5;
  --glass-spec:none;--notif-bg:#FFFFFF;
  /* UX53 (28/09): --side / --topbar are opaque in light (were rgba .80 / .74 glass) - see the chrome block below */
  --text:#2D2516;--text2:#4D4433;--muted:#665C47;--faint:#71654C;
  --accent:var(--zp-deep);--on-accent:#FFFFFF;--progress:#328CC1;--link-hover:var(--zp-teal-text);
  --good:var(--zp-green-text);--warn:var(--zp-yellow-text);--amberText:var(--zp-yellow-text);--bad:var(--zp-red-text);
  --sn-red:var(--zp-red-text);--sn-orange:var(--zp-peach-text);--sn-slate:#71654C;--sn-blue:var(--zp-deep);--sn-purple:var(--zp-plum-text);
  /* W13 UX94 (11/10, QA 11/10): ONE green, amber and red for text - a tinted pill's words are the -text shade too. */
  --good-bg:var(--zp-mint);--good-ink:var(--zp-green-text);--bad-bg:var(--zp-pinky);--bad-ink:var(--zp-red-text);
  --warn-bg:var(--zp-yellow);--warn-ink:var(--zp-yellow-text);--pending-bg:var(--zp-peach);--pending-ink:var(--zp-on-peach);
  --info-bg:#F2EDE3;--info-ink:var(--zp-deep);--void-bg:var(--zp-plum-tint);--void-ink:var(--zp-on-plum-tint);
  --badge-bg:var(--zp-red);--bad-fill:var(--zp-red);--good-fill:var(--zp-green);
  /* rail user chip: sand to white, the dark chip's shape */
  --avchip:linear-gradient(135deg,var(--zp-aqua) 0%,#EDE6D9 55%,#FFFFFF 100%);--avchip-ink:var(--text);
  /* the "you are here" hex's letters; the page still supplies the fill (ti.bg) - a page on a dark palette fill sets this to #fff */
  --hexon-ink:var(--text);
}
/* UX74 (02/10): html keeps the page's dark :root --bg in light (html,body{background:var(--bg)}) and it IS the
   canvas until the app has drawn a full-height body - the dark frames of every light load. Off in light, body's
   light --bg reaches the canvas (Construction / Console carried this rule alone since 28/09). */
html:has(> body.light){background:none;}
/* UX83 (05/10, QA 04/10): the dark mirror - while a DC app boots its helmet (the page's own <style> with
   html,body{background:var(--bg)}) is taken out and put back, and in that gap html / body were transparent and the
   canvas the browser's WHITE (one task boundary in 16 of 16 dark loads). This file stays linked from <head> (UX74),
   so html gets the dark base meanwhile. :where() = no specificity: any page rule for html still wins once it is back;
   light pages (body.light) and the BIM pages' light class (body.theme-light) are left alone. */
:where(html:not(:has(> body.light)):not(:has(> body.theme-light))){background-color:#090F1A;}   /* W37C: was #05070c */
/* ---- GT8 (30/09, owner request): plan vs actual - ONE colour set ----
   Used wherever plan and actual meet: the Dashboard S-curve and project bars,
   Analytics schedule health, the Gantt, GC Editor's Plan / Actual columns and
   ZPH Owner's Site Progress. Plan = a calm reference (dashed line, hatched
   zone, 2px marker); Actual = solid (GT9: Sky in dark), the gap (actual - plan, in
   points) takes ONE rule, varianceTone() in each page: >= -1 good, -1..-5
   warn, <= -5 bad - always with its sign, number and words, never colour alone.
   Measured on the card (light #FCFDFD / dark #090C14): plan Teal 3.2:1 / grey
   5.4:1, actual Deep Blue 7.5:1 / amber 9.6:1; gap text good 6.3 / 8.1, warn
   6.5 / 9.6, bad 6.3 / 7.1; chip text on its tint 4.9-5.7 (light palette
   tints) / 6.0-7.7 (dark 14% tints). Grayscale: plan is lighter than actual in
   light (L .27 vs .09) and dimmer in dark (.24 vs .47), and dashed / hatched.
   Bars are outlined (--control-border, >=3.4:1) so a plan marker on an empty
   bar still has its edge; the marker's halo keeps it apart from the fill.
   GT9 (30/09): dark ACTUAL = Sky, one cool colour in every app (Construction,
   Owner, Planner) - it was the amber accent, the same colour as "slightly
   behind", and ZPH Owner's teal. Chosen by measurement: 13.1-14.4:1 on the
   dark page / card / track; CIEDE2000 vs good 28.4, warn 37.7, bad 45.2, plan
   grey 28.3 (deuteranopia 29.3 / 35.3 / 28.5 / 23.6, protanopia 28.5 / 33.7 /
   27.3 / 24.7); grayscale L .70 vs plan .24. Aqua and the Teal tints fell
   under 20 against the plan grey for a colour-blind reader. Light is unchanged
   (Deep Blue); "slightly behind" stays the suite amber in dark.
   W13 UX94 (11/10, owner 11/10): dark "slightly behind" is the warn yellow #ffeb3b (the amber is the accent only) -
   16.0:1 on the card, CIEDE2000 vs good 32.4 / bad 53.1 / actual Sky 34.5 / plan grey 51.6. */
/* W37C (Thomas 04/11): plan = a calm slate grey in dark (#808AA0, 4.9:1 on the card) / the progress blue in light (#328CC1,
   3.7:1), actual = the accent (dark #9EC9E8 9.6:1 / light navy #0B3C5D 11.5:1); the gap tones are the status inks on their tints. */
:root{--pva-plan:#808AA0;--pva-act:var(--accent);--pva-halo:#111829;
  --pva-good:#3CC27A;--pva-warn:#F2C94C;--pva-bad:#F47174;
  --pva-good-bg:#10261B;--pva-warn-bg:#29230C;--pva-bad-bg:#2B1418;
  --pva-hatch:repeating-linear-gradient(135deg,rgba(128,138,160,.6) 0 1.5px,transparent 1.5px 5px);}
body.light,body.theme-light{--pva-plan:var(--zp-teal);--pva-act:var(--zp-deep);--pva-halo:#FFFFFF;
  --pva-good:var(--zp-green-text);--pva-warn:var(--zp-yellow-text);--pva-bad:var(--zp-red-text);
  --pva-good-bg:var(--zp-mint);--pva-warn-bg:var(--zp-yellow);--pva-bad-bg:var(--zp-pinky);
  --pva-hatch:repeating-linear-gradient(135deg,rgba(50,140,193,.55) 0 1.5px,transparent 1.5px 5px);}
/* the gap chip ("−3,2 pts"): tone text on the tone's tint; data-tone="none" = not due yet (plain faint text) */
/* UX95 (08/10, QA 07/10): the chip was fill-only (1.12-1.27:1 against the card) - a 1px edge in its tone at 70% (the
   status pills' mix), >= 3:1 in both themes; the padding gives the px back so the chip keeps its size */
.zp-pva-chip{display:inline-flex;align-items:center;font-family:var(--f-mono);font-size:12px;font-weight:600;line-height:1.3;padding:1px 6px;border:1px solid color-mix(in srgb,currentColor 70%,transparent);border-radius:999px;white-space:nowrap;font-variant-numeric:tabular-nums;}
.zp-pva-chip[data-tone="good"]{color:var(--pva-good);background:var(--pva-good-bg);}
.zp-pva-chip[data-tone="warn"]{color:var(--pva-warn);background:var(--pva-warn-bg);}
.zp-pva-chip[data-tone="bad"]{color:var(--pva-bad);background:var(--pva-bad-bg);}
.zp-pva-chip[data-tone="none"]{color:var(--faint);background:transparent;font-weight:400;padding:2px 0;border:none;}
/* the plan-vs-actual bar: an outlined track, the plan zone hatched up to the plan marker, actual solid on top */
.zp-pva-bar{position:relative;height:10px;border-radius:var(--r-tag,3px);box-shadow:inset 0 0 0 1px var(--control-border);}
.zp-pva-bar > .pl{position:absolute;left:0;top:0;bottom:0;background:var(--pva-hatch);border-radius:var(--r-tag,3px) 0 0 var(--r-tag,3px);}
.zp-pva-bar > .ac{position:absolute;left:0;top:0;bottom:0;background:var(--pva-act);border-radius:var(--r-tag,3px);}
.zp-pva-bar > .mk{position:absolute;top:-3px;bottom:-3px;width:2px;margin-left:-1px;background:var(--pva-plan);border-radius:1px;box-shadow:0 0 0 1px var(--pva-halo);}
/* legend swatches: dashed plan line, solid actual line, hatched plan zone, a tone dot */
.zp-pva-sw{display:inline-block;flex:none;vertical-align:middle;}
.zp-pva-sw.plan{width:16px;height:0;border-top:2px dashed var(--pva-plan);}
.zp-pva-sw.act{width:16px;height:3px;border-radius:2px;background:var(--pva-act);}
.zp-pva-sw.zone{width:16px;height:10px;border-radius:2px;background:var(--pva-hatch);box-shadow:inset 0 0 0 1px var(--control-border);}
.zp-pva-sw.today{width:0;height:12px;border-left:1px dashed var(--muted);}
.zp-pva-sw[data-tone]{width:8px;height:8px;border-radius:50%;}
.zp-pva-sw[data-tone="good"]{background:var(--pva-good);} .zp-pva-sw[data-tone="warn"]{background:var(--pva-warn);} .zp-pva-sw[data-tone="bad"]{background:var(--pva-bad);}
/* UX46 (28/09): ONE visible edge for every control in light - inputs, selects,
   textareas, outlined buttons, inactive chips, KPI tiles that are buttons, the
   bell / Menu / theme buttons, tick boxes, radios, switch tracks, drop zones,
   dialogs and the date picker, Collapse / Suite / Sign out. Sky --border
   (1.1-1.4:1) stays for card borders and dividers; #4A8790 is 4.07:1 on white,
   3.96 card, 3.76 page, 3.20 on the tinted band, 3.35 on the drawer glass
   (measured on Construction's ~900 controls: 3.5-4.1). A page marks a drop
   zone with class="zdrop".
   Dark = the old --border literal, so dark does not move. Controls are styled
   inline, so the light rule matches the inline border (both serialisations -
   the runtime normalises "border:1px" to "border: 1px") and wins with
   !important; a control in an error / selected / accent state names another
   colour and keeps it. */
/* UX69 (29/09, owner-approved dark pack): dark gets its own visible edge too -
   #5b6780 (the Materials --mt-edge) = 3.44:1 on the card, 3.55 on the page, the
   amber accent unchanged. The rule below now runs in both themes on the suite
   apps (body.zp-suite: Construction, Owner, Design, Planner, Console, codes -
   the BIM pages share this file and keep their own look). */
/* W37C: the control edge >= 3:1 on the page, the card and the selected rail row - dark #6E778B 4.2 / 3.8 / 3.1:1 (was #5b6780),
   light #8A806D 3.7 / 3.9 / 3.1:1 (was #4A8790) */
:root{--control-border:#6E778B;}
body.light,body.theme-light{--control-border:#8A806D;
  --sel-row:#F2EDE3;   /* UX49 (28/09): a selected row is opaque - W37C: faint text 4.9:1 on it */
  --neutral-bg:#EEE9DF;--neutral-ink:#665C47;}   /* UX48 (28/09): the grey status pill (Void) - W37C 5.5:1 */
/* UX98 (08/10, QA 07/10): the PLANNED series (--dim-bar: manpower histogram, cashflow plan bars, Budget's committed
   bar) is a data mark - >= 3:1 against the card. Dark #1f2940 was 1.35:1 -> #5b6780 (the control edge grey, 3.44 card /
   3.55 page), still dimmer than the actual bar (amber 9.6:1); light #D3ECEC was 1.2:1 -> Teal (GT8's plan colour,
   3.2:1 on white) against the Deep Blue actual. Every suite app; the pages' own :root keep their old literal. */
body.zp-suite:not(.light){--dim-bar:#6E778B;}   /* W37C: was #5b6780 */
/* UX17 (29/09): a field in error (aria-invalid) is left to its red error
   border - this rule used to outrank `.zdlg [aria-invalid="true"]` in light. */
/* UX100 (08/10): a disabled control is left to the one disabled look below (its edge took this colour - two disabled edges) */
:is(body.light,body.zp-suite) :is(input,select,textarea,button,a,label,[role=button],[role=tab],[role=checkbox],[role=radio],[role=switch],[role=dialog],[role=alertdialog],.zdrop):not([aria-invalid="true"]):not([aria-disabled="true"]):not(:disabled):is(
    [style*="border: 1px solid var(--border"],[style*="border:1px solid var(--border"],[style*="border: 1.5px solid var(--border"],[style*="border:1.5px solid var(--border"],
    [style*="border: 2px solid var(--border"],[style*="border:2px solid var(--border"],[style*="border: 1px dashed var(--border"],[style*="border:1px dashed var(--border"]),
:is(body.light,body.zp-suite) :is([role=checkbox],[role=radio],[role=switch],[aria-pressed]):not([aria-disabled="true"]) span:not([style*="--r-tag"]):is(
    [style*="border: 1px solid var(--border"],[style*="border:1px solid var(--border"],[style*="border: 1.5px solid var(--border"],[style*="border:1.5px solid var(--border"],
    [style*="border: 2px solid var(--border"],[style*="border:2px solid var(--border"]),
:is(body.light,body.zp-suite) :has(> [aria-label="Light theme"])[style*="solid var(--border"],
:is(body.light,body.zp-suite) .zsh-tab,:is(body.light,body.zp-suite) .zsh-foot,:is(body.light,body.zp-suite) #zph-shell-skip{border-color:var(--control-border) !important;}
body.light .zsh-foot:hover{border-color:var(--zp-deep) !important;}
/* ...but a clickable picture CARD (Design's library tiles: card radius, a clipped
   image) keeps the sky card edge - its picture and name identify it */
:is(body.light,body.zp-suite) [role=button][style*="overflow: hidden"][style*="solid var(--border"]:is([style*="border-radius: 7px"],[style*="border-radius: var(--r-card)"]){border-color:var(--border) !important;}
/* UX69 (29/09): a progress / budget / task bar track (.zp-bar) in dark was rgba(20,25,39,.62) = 1.06:1 on
   the card, so a 0% bar showed nothing - a 1px #5b6780 edge (3.4:1+) gives it its full length.
   UX95 (08/10, QA 07/10): light too - the sky track was 1.15:1 (Budget & Cost's share bars); #4A8790 = 4.0:1 */
body.zp-suite .zp-bar{box-shadow:inset 0 0 0 1px var(--control-border);}
/* UX65 (29/09): the suite apps draw selects with appearance:none (no arrow - a
   select looked like a text box). Each app's select rule paints this chevron:
   the muted colour per theme (#8b93a7 dark 6:1+, #3F5A64 light 6.5:1+). */
:root{--sel-chev:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23B1B9C6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");}
body.light,body.theme-light{--sel-chev:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23665C47' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");}
/* UX69 (29/09): dark too - the active item was only a 1.11:1 fill at weight 400;
   now the same 3px bar in the app's dark accent (amber #f5a623, 9.9:1; Console's
   own pink) + 600. A hovered item gets the lighter --hover wash (zph-shell.js). */
body.zp-suite #zph-shell-rail .zsh-item:is([aria-current="page"],.zsh-navon){box-shadow:inset 3px 0 0 var(--accent, #9EC9E8);font-weight:600;}
/* UX47 (28/09): the active rail / drawer item was only a sky fill (1.14:1 vs
   the rail), same weight as the rest - a 3px Deep Blue bar (6.92:1) + 600.
   (.zsh-navon = the item the page paints active; not every app sets aria-current) */
body.light #zph-shell-rail .zsh-item:is([aria-current="page"],.zsh-navon){box-shadow:inset 3px 0 0 var(--zp-deep);font-weight:600;}
/* W29 (01/11, Thomas): the same selected item on the BIM pages (dark: no body class; light: .theme-light) */
body:not(.zp-suite):not(.light):not(.theme-light) #zph-shell-rail .zsh-item:is([aria-current="page"],.zsh-navon){box-shadow:inset 3px 0 0 var(--accent, #9EC9E8);font-weight:600;}
body.theme-light #zph-shell-rail .zsh-item:is([aria-current="page"],.zsh-navon){box-shadow:inset 3px 0 0 var(--zp-deep);font-weight:600;color:var(--zp-deep) !important;}
body:not(.zp-suite) #zph-shell-rail .zsh-nav:hover{background:var(--hover, var(--nav-active)) !important;color:var(--text) !important;}
/* UX47: an active filter chip's edge is its tone + bb (3.7-4.2:1; tone + 66 was
   1.9-2.0). The chips carry tone + 66 inline (serialised rgba(..., 0.4)) and
   their text IS the tone, so light re-mixes currentColor at bb (73.3%). */
/* UX69 (29/09): dark too - an inline-styled active chip (Planner) was amber at 40% = 2.39:1 */
:is(body.light,body.zp-suite) :is(button,[role=button])[style*="border-radius: 999px"][style*="border: 1px solid rgba("][style*=", 0.4)"]{border-color:color-mix(in srgb, currentColor 73.3%, transparent) !important;}
/* the phone drawer's scrim is inline near-black in zph-shell.js; Deep Blue in light (28/09) */
body.light #zph-shell-backdrop{background:rgba(11,60,93,.32) !important;}

/* ---- The chrome owns its own box model (10/08, geometry layer) ----
   zph-shell.js sets the rail to `width: sbWidth` PLUS its own 1px right
   border, then positions the tab at `sbWidth - 1` and the handle at
   `sbWidth - 3`. That arithmetic is only true under border-box. The suite
   pages carry a `*{box-sizing:border-box}` reset so it held there; the BIM
   pages never had one, so the same 216px rail measured 217px and the tab
   sat 2px INSIDE the rail's border instead of flush against it — caught by
   the runtime geometry scan (toggleOutsidePane FAIL on BIM only, every
   width). Shared chrome must not inherit its layout maths from whichever
   page happens to host it, so the shell declares it here. Scoped to the
   three elements the shell positions arithmetically — NOT the subtree, so
   a child with an explicit width plus padding (the hexagons) is untouched. */
#zph-shell-rail,.zsh-tab,#zph-shell-handle{box-sizing:border-box;}

/* Liquid glass for the injected chrome on surfaces whose own CSS has no
   frost selectors (Console, BIM pages). Suite apps re-declare the same
   values via their [style*="var(--side)"] rules — harmless double. Solid
   fallbacks per the house rule. */
#zph-shell-rail{backdrop-filter:blur(22px) saturate(1.7);-webkit-backdrop-filter:blur(22px) saturate(1.7);box-shadow:inset 0 1px 0 rgba(255,255,255,.08);}
.zsh-tab{backdrop-filter:blur(12px) saturate(1.6);-webkit-backdrop-filter:blur(12px) saturate(1.6);}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))){
  #zph-shell-rail,.zsh-tab{background:#0C1220 !important;}
  body.theme-light #zph-shell-rail,body.theme-light .zsh-tab{background:#F6F3EC !important;}
  body.light #zph-shell-rail,body.light .zsh-tab{background:#F6F3EC !important;}
}
@media (prefers-reduced-transparency: reduce){
  #zph-shell-rail,.zsh-tab{background:#0C1220 !important;backdrop-filter:none;-webkit-backdrop-filter:none;}
  body.theme-light #zph-shell-rail,body.theme-light .zsh-tab{background:#F6F3EC !important;}
  body.light #zph-shell-rail,body.light .zsh-tab{background:#F6F3EC !important;}
}
/* UX53 (28/09): light chrome is SOLID. The « tab was glass (rail colour at 80%
   + blur + saturate + a white inset): white cards scrolling behind it lit it
   into a pale patch, and Chrome left unrepainted light tiles on the glass
   layers. In light the rail, the tab and the top bar are the opaque rail
   colour (#EAF6F6, the tokens in body.light above - the top bar already read
   #EBF6F6 over the sky wash), with no backdrop-filter and no inset
   highlight; the tab keeps its one --control-border edge (rule above). The
   page's left gutter - rail edge to the first card - is painted in the rail
   colour too (it showed the page wash between the rail and the white cards:
   three near-whites at the corner). The band is sized off the content box
   (origin content-box, clip padding-box), so it fits whatever left padding
   the page uses; desktop only (the tab shows), screen only.
   Dark keeps its liquid glass: every rule here is body.light. */
body.light #zph-shell-rail,body.light .zsh-tab,body.light [style*="var(--topbar)"]{backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:none;}
/* W90G (19/11, Thomas 19/11: "the big dashboard text, i think there are lighter colour"): the gutter band (the rule that stood here,
   body.light.zsh-tab-on [style*="var(--topbar)"] ~ [style*="overflow-y"] painted the left padding in --side) is gone. With the Marina
   light palette (05/11) the rail is sand #F6F3EC and the page #FAF8F5, so the band was a 40px strip of rail colour beside the rail and
   everything from the page title on looked lighter. The page is one colour from the rail's edge now. */
/* UX53: the rail's and the page's scrollbars in light - Chrome drew its own
   ▲▼ buttons (and a light track on hover) for scrollbar-width:thin. The
   standard properties go back to auto so the ::-webkit-scrollbar rules apply:
   no buttons, no track, a 6px thumb (same 10px gutter - nothing reflows) that
   shows on hover or while scrolling (.zsh-scrolling, set by zph-shell.js). */
@supports selector(::-webkit-scrollbar){
  body.light #zph-shell-rail nav,body.light [style*="var(--topbar)"] ~ [style*="overflow-y"]{scrollbar-width:auto;scrollbar-color:auto;}
  body.light #zph-shell-rail nav::-webkit-scrollbar,body.light [style*="var(--topbar)"] ~ [style*="overflow-y"]::-webkit-scrollbar{width:10px;height:10px;background:transparent;}
  body.light #zph-shell-rail nav::-webkit-scrollbar-button,body.light [style*="var(--topbar)"] ~ [style*="overflow-y"]::-webkit-scrollbar-button{display:none;width:0;height:0;}
  body.light #zph-shell-rail nav::-webkit-scrollbar-track,body.light [style*="var(--topbar)"] ~ [style*="overflow-y"]::-webkit-scrollbar-track,
  body.light #zph-shell-rail nav::-webkit-scrollbar-corner,body.light [style*="var(--topbar)"] ~ [style*="overflow-y"]::-webkit-scrollbar-corner{background:transparent;}
  body.light #zph-shell-rail nav::-webkit-scrollbar-thumb,body.light [style*="var(--topbar)"] ~ [style*="overflow-y"]::-webkit-scrollbar-thumb{background:transparent;border:2px solid transparent;border-radius:5px;background-clip:padding-box;}
  body.light #zph-shell-rail nav:is(:hover,.zsh-scrolling)::-webkit-scrollbar-thumb,
  body.light [style*="var(--topbar)"] ~ [style*="overflow-y"]:is(:hover,.zsh-scrolling)::-webkit-scrollbar-thumb{background-color:var(--scroll-thumb);}
}
/* UX106 (08/10, QA 07/10): a scrollbar thumb is >= 3:1 - dark --dot #242c3e was 1.4:1 on the page (Receipt Vendor list,
   PAIR pane, page). Its own token (--dot also draws nav icons and step dots): dark #5b6780 3.5:1 page / 3.4 card,
   light #4A8790 3.8:1 page (the control edge greys). Every suite app's `*{scrollbar-color:var(--dot) ...}` is
   overridden here (the pages use scrollbar-width:thin, so the standard property is the one Chrome draws). */
:root{--scroll-thumb:#6E778B;} body.light{--scroll-thumb:#8A806D;}
body.zp-suite,body.zp-suite *{scrollbar-color:var(--scroll-thumb) transparent;}
body.zp-suite ::-webkit-scrollbar-thumb{background-color:var(--scroll-thumb);}

/* ---- The chrome must never print (10/08) ----
   Found while sweeping the 8 BIM pages. The injected rail is a body-level
   div with NO class, so the per-page `.no-print{display:none}` rules could
   not reach it, and nothing in this file hid it either — every surface
   printed its navigation rail on top of the report. That included BIM's
   dedicated print page, whose entire reason for existing is to be printed,
   and Owner's Print button. Before the shell migration each app rendered its
   own rail inside its template where .no-print DID reach it, so this arrived
   WITH the unification — a shared-chrome regression, fixed in the one place
   the chrome is defined. Paper has no navigation. */
@media print{
  #zph-shell-rail,.zsh-tab,#zph-shell-handle,#zph-shell-backdrop{display:none !important;}
}

/* ---- Spacing scale (UX31, owner decision 28/09; W27X CL3, owner decision F1 31/10: ONE scale, 4 / 8 / 12 / 16 / 24 / 40, through these tokens in every app) ----
   --sp-4 ... --sp-40  the steps. A padding or gap is one of them; a 1-2px nudge, a border and a reserve for something placed there (a column, an icon) are not spacing.
   The names below say what a step is for:
   --sp-page     the page's padding: 16px narrow phone (<=480) / 24px phone (<=760) / 32px tablet (kept off the scale: the Dashboard, Thomas's mockup, must not move) / 40px desktop (>=1200)
   --sp-section  between the blocks of a page (header, toolbar, tiles, cards) and between layout columns
   --sp-card     inside a card or panel
   --sp-tile     between tiles (KPI tiles, card grids, a list of item cards)
   --sp-step     between the steps of a step strip
   --sp-dialog   inside a dialog
   --sp-field    between the fields of a form
   Pages use these instead of literals. Kept on purpose: print paper (invoice sheet, snag sheet). */
:root{--sp-4:4px;--sp-8:8px;--sp-12:12px;--sp-16:16px;--sp-24:24px;--sp-40:40px;
  --sp-page:var(--sp-40);--sp-section:var(--sp-16);--sp-card:var(--sp-16);--sp-tile:var(--sp-12);--sp-step:var(--sp-8);--sp-dialog:var(--sp-24);--sp-field:var(--sp-16);}
@media (max-width:1199px){:root{--sp-page:32px;}}
@media (max-width:760px){:root{--sp-page:var(--sp-24);}}
@media (max-width:480px){:root{--sp-page:var(--sp-16);}}   /* UX102 (08/10): 12px text - a narrow phone keeps 16px gutters (the 24px left a 276px card at 375) */

/* ---- Keyboard focus ring — one rule for every surface (was copied per page;
        Welcome + codes never had it until this file).
        W26K CL32 (31/10, QA 31/10): one --focus token, the accent (amber in dark, Deep Blue in light) - the shell and BIM drew #4f8ff7 beside the pages'
        accent ring, two colours in one view. Set on body: BIM's --accent is set there, and the viewer's shadow root inherits it.
        UX93 (08/10, QA 07/10): no border-radius here any more - it squared a 999px chip / a round button on focus;
        the outline follows the control's own corner (a button without one is 5px - UX11 below). ---- */
body{--focus:var(--accent,#9EC9E8);}
:focus-visible{outline:2px solid var(--focus,#9EC9E8);outline-offset:2px;}

/* ---- Reduced motion, house-wide ---- */
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms !important;transition-duration:.01ms !important;}}

/* ---- W35 MOT12 (03/11, QA 02/11b T7 spec, decision 02/11b #3): ONE motion clock for the suite. Every app but BIM times its motion on these
        tokens (BIM's share waits for Thomas, so the suite-only rules below are scoped to body.zp-suite and BIM keeps what it has).
        Rules: motion only for a change of place or state; opacity / transform only (no width / height / top / margin animation); nothing over
        300ms; nothing moves content being read or about to be tapped; an action never waits on an animation (focus and the next tap work at
        t = 0); no count-up on IDR, no flash or pulse of a status or alert, no loop but a loading indicator. JS motion (element.animate) goes
        through ZPHShell.motion(), which returns null under reduced motion. ---- */
:root{
  --mo-fast:120ms;   /* chevrons, hover colour, menus / picker / status fade, tick reveal, every exit */
  --mo-base:180ms;   /* drawers, sheets, dialogs, bulk bar, backdrop */
  --mo-slow:240ms;   /* rows moving to a new place; the fade of a landed / changed tint */
  --mo-hold:600ms;   /* how long a landed / changed tint stays before it fades over --mo-slow */
  --mo-ease-enter:cubic-bezier(0.2,0,0,1);    /* decelerate: things arriving */
  --mo-ease-exit:cubic-bezier(0.4,0,1,1);     /* accelerate: things leaving */
  --mo-ease-move:cubic-bezier(0.4,0,0.2,1);   /* standard: things changing place */
}
/* Reduced motion: every duration 0 and nothing loops, the same end state. W35 MOT1: the spinner was left an infinite loop at .01ms, so it
   landed on a random frame at every paint; it is now a still ring beside its "Loading…", and the skeleton's shine a still tint. */
@media (prefers-reduced-motion:reduce){
  :root{--mo-fast:0ms;--mo-base:0ms;--mo-slow:0ms;--mo-hold:0ms;}
  body.zp-suite *,body.zp-suite *::before,body.zp-suite *::after{animation-iteration-count:1 !important;transition-duration:0s !important;}   /* W38 MOT3 (03/11): 0s, not .01ms - a .01ms transition painted the old value for one frame (the date picker's jump); nothing in the suite waits on transitionend */
  body.zp-suite .zp-spin{animation:none !important;}
  body.zp-suite .sc-placeholder::before,body.zp-suite .sc-interp.sc-missing::before{animation:none !important;background:color-mix(in srgb,currentColor 8%,transparent) !important;}
}

/* ---- Native controls follow the page (09/08) ----
   Windows draws <select> popups with UA colors: without color-scheme, a dark
   page gets a WHITE popup that inherits the page's LIGHT text — unreadable
   (found on BIM's company switcher) — and the popup list falls back to the
   system font unless the family is explicit on the control. Both body-class
   conventions covered: suite = body.light, BIM = body.theme-light. The BIM
   print page (light-only, no class, no native controls) sits under the dark
   default harmlessly. ---- */
select,input,textarea,button,option{font-family:inherit;}
body{color-scheme:dark;}
body.light,body.theme-light{color-scheme:light;}
/* XC50 (11/10, QA 11/10): the root element follows too - html computed "normal" in dark (the root scrollbar and canvas
   were drawn light-scheme); its scrollbar thumb is the suite's (it was --dot #242c3e, 1.4:1 in dark) */
html{color-scheme:dark;}
html:has(> body.light),html:has(> body.theme-light){color-scheme:light;}
html:has(> body.zp-suite){scrollbar-color:#6E778B transparent;}
html:has(> body.zp-suite.light){scrollbar-color:#8A806D transparent;}
/* Options must not inherit the page's on-dark text into the UA popup —
   Canvas/CanvasText are system colors that follow color-scheme, so the
   popup is dark-on-dark-scheme / light-on-light-scheme deterministically. */
option{background:Canvas;color:CanvasText;}

/* ---- W2E (29/09) cross-cutting pack: date picker, disabled look, light polish,
        touch sizes. Suite apps only (body.zp-suite) unless the rule names an id
        that only a suite page has. ---- */
/* UX1 / UX37 / UX41 / UX11: the date picker (#zph-dp) is a SOLID surface - dark
   was rgba(11,15,24,.66) with no blur, light .97, so the dialog's labels read
   through the day numbers. Its edge is the control edge, its shadow the theme's
   (teal-tinted in light, UX51). On a phone / touch screen it widens so a day
   cell is a 44px target (it was 31px wide at 375). */
:root{--dp-bg:#141B2D;--dp-shadow:0 14px 34px rgba(0,0,0,.5);--dp-w:258px;}
body.light,body.theme-light{--dp-bg:#FFFFFF;--dp-shadow:0 12px 32px rgba(45,37,22,.18);}   /* W26K CL27: + BIM's light class - the shared ⋯ menu was dark on its light pages */
@media (max-width:760px),(pointer:coarse){:root{--dp-w:346px;}}
/* UX15 / UX44: ONE disabled look for every button - aria-disabled (or :disabled),
   the muted --dis-ink at FULL opacity (dark #6b7489 4.1:1 on the picker / 3.9 on
   a card; light #6B858E 3.9:1 on white, 3.6 on the page), a dashed edge in the
   same ink, no fill, cursor not-allowed. It was opacity .45 (1.7-2.1:1) on some
   and the enabled colour on others (SUBMIT MATCH looked like SKIP FOR NOW). The
   reason sits in the button's title. A disabled day in the picker is the same
   ink with no edge. */
/* UX85 (05/10, QA 04/10): the ink is >= 4.5:1 now - the reason text sits beside these buttons and read as faint
   (was dark 4.30 on the page, light 3.62 on the page / 3.91 on white). Dark #808aa0: 5.8 page, 5.4 picker, >= 4.9
   on cards; light #4F6D77: 5.1 page, 5.6 white, 4.7 on a light tint. Still told apart from an enabled button by the
   dashed edge, no fill and the not-allowed cursor, not by a washed-out colour. */
/* UX100 (08/10, QA 07/10): ONE disabled colour, and an enabled control is never dimmer than a disabled one - dark #808aa0
   (5.64 card) was brighter than the enabled faint ✕ (5.42) and its dashed edge (5.58) out-shouted an enabled CANCEL's
   control edge (3.44). Now dark #767f94: 4.87 card / 5.02 page / 4.67 picker (< faint 5.42, < muted 6.36); light #55717B:
   5.11 card / 4.81 page / 5.21 white (< faint 5.66). The dashed edge is the same colour at 70% (--dis-edge: dark 2.94,
   light 2.85 on the card - under the enabled control edge's 3.44 / 3.99; disabled controls are exempt from 3:1).
   Dashed means disabled and nothing else (enabled + ADD TERMIN / + ADD ROW / Use ETA / the drop zones are solid). */
:root{--dis-ink:#7C8498;} body.light,body.theme-light{--dis-ink:#776C56;}
:root,body{--dis-edge:color-mix(in srgb,var(--dis-ink) 70%,transparent);}
/* W27X CL33 (31/10, QA 31/10): the BIM pages and the sign-in page (no .zp-suite) take the one look too */
body:is(.zp-suite,:not(.zp-suite)) :is(button,[role="button"]):is([aria-disabled="true"],:disabled){opacity:1 !important;background:transparent !important;color:var(--dis-ink) !important;border:1px dashed var(--dis-edge) !important;box-shadow:none !important;cursor:not-allowed !important;}
/* UX100: a disabled tick (Material Matching's not-ready lines, any role=checkbox / radio / switch) - its box takes the
   same look (dashed --dis-edge, --dis-ink glyph, no fill); the line's words keep their ink (MM14: they carry information) */
body.zp-suite :is([role="checkbox"],[role="radio"],[role="switch"])[aria-disabled="true"] :is(.zp-tick-box,span[style*="border: 1.5px solid"],span[style*="border:1.5px solid"]){border:1.5px dashed var(--dis-edge) !important;color:var(--dis-ink) !important;background:transparent !important;opacity:1 !important;}
#zph-dp [aria-disabled="true"]:not([role="button"]){opacity:1 !important;color:var(--dis-ink) !important;}
/* UX86 (06/10, QA 05/10): an off day differs from an open one by more than its ink - it is struck through in the
   same ink (a 1.5px line through the number, light and dark), as the off ›/» buttons carry the dashed edge */
#zph-dp [aria-disabled="true"]:not([role="button"]){text-decoration:line-through !important;text-decoration-thickness:1.5px !important;text-decoration-color:var(--dis-ink) !important;}
/* UX51 (light): ONE scrim - Deep Blue at .32 (the drawer's), not .30-.36 by
   dialog; the dialogs, the bell panel, the toasts and the invoice paper take a
   teal-tinted shadow (rgba(0,0,0,.45-.6) made a muddy halo on the teal scrim). */
body.light [style*="var(--scrim-rgb)"]{background:rgba(11,60,93,.32) !important;}
body.light :is([role="dialog"],[role="alertdialog"],[role="status"],[role="alert"],[role="toolbar"],.zdlg,#inv-sheet)[style*="box-shadow"]:not(#zph-dp){box-shadow:0 12px 32px rgba(45,37,22,.18) !important;}
/* UX51: a confirm over an open dialog adds no second scrim (the page went near
   black) - the dialog's own scrim is already under it. Both themes. */
/* W38 MOT6 (03/11): the page says it on the scrim when the confirm opens (data-ask-under) - the :has() form re-matched every div on each DOM change (≈20ms a change on Materials All) */
body.zp-suite [data-ask-under="true"]{background:transparent !important;backdrop-filter:none !important;-webkit-backdrop-filter:none !important;}
/* UX11: a button that sets no corner of its own is a 5px control (the UA's 0px
   showed on dialog x, Mark read, sort headers, Collapse, Owner toggles) -
   zero specificity, so every radius a page sets still wins. */
:where(body.zp-suite) :where(button,[role="button"]){border-radius:var(--r-ctl,5px);}
/* UX67: on a phone / touch screen a page's text box and select is a 44px
   target too (the dialogs' .zdlg rule already was) - Company Profile, Project
   Settings and the page filters stayed 30-32px. */
/* UX99 (08/10, QA 07/10): ...and 16px text at <= 760px whatever the pointer (it was (pointer:coarse) only on the pages:
   a narrow window, a tablet with a keyboard or stylus got 11-12px page fields - Company Profile, Project Settings,
   Manpower filters, Invoice Maker, the Materials approval selects, the top-bar project select (14px)). */
@media (max-width:760px),(pointer:coarse){
  body.zp-suite :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="range"]):not([type="color"]),select){min-height:44px;}
  body.zp-suite :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="range"]):not([type="color"]),select,textarea){font-size:16px !important;}
}
/* UX8: the top-bar search on a phone - 44px, 16px text (no iOS zoom), on its own
   full-width row under the bar so the placeholder is read whole ("Find a t…"). */
@media (max-width:760px){
  body.zp-suite .zp-topbar:has(.zp-tsearch){height:auto !important;min-height:52px;flex-wrap:wrap;row-gap:var(--sp-8);padding-top:var(--sp-4) !important;padding-bottom:var(--sp-8) !important;}
  body.zp-suite .zp-topbar .zp-tsearch{order:99;flex:1 1 100% !important;min-width:0 !important;height:44px;font-size:16px !important;}
}
/* UX66 (29/09, owner: buttons are UPPERCASE too): ONE quiet-button type - Michroma
   11px caps, 1.5px tracking, 0 12px - on the text buttons that were JetBrains
   sentence case or caps (Edit / Delete / Remove, Mark read, - Issue / + Receive,
   + ADD PHASE, row actions...). Typography only: a button keeps its own edge
   and colour, and its words stay as written (screen readers read "Mark read").
   .zp-btn-link: a button inside a sentence ("use it") - no padding. The dialog
   buttons (.zdlg-btn, e.g. the RFI drawer's Mark Answered) are caps as well. */
.zp-btn-t{font-family:'Michroma',sans-serif !important;font-size:12px !important;font-weight:400 !important;font-style:normal !important;letter-spacing:1.5px !important;line-height:1.2 !important;text-transform:uppercase !important;padding:0 var(--sp-12) !important;}
.zp-btn-t.zp-btn-link{padding:0 !important;}
.zdlg-btn{text-transform:uppercase;}
/* UX26 (29/09): a small spinner beside "Reading the folder…" (its line is aria-busy) */
.zp-spin{display:inline-block;width:10px;height:10px;margin-right:4px;vertical-align:-1px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:zp-spin .8s linear infinite;}
@keyframes zp-spin{to{transform:rotate(360deg);}}
/* UX34 (29/09): an empty state INSIDE a card (a list that is empty within its panel) - the same
   title + one line + action, without a second card around it */
.zp-empty.zp-empty-in{border:none !important;background:transparent !important;padding:var(--sp-16) var(--sp-8) !important;}
/* UX11 (29/09): a sortable column head's button is `all:unset` inline (its corner computed 0px) - the 5px control corner */
body.zp-suite :is([role="columnheader"],th) button{border-radius:var(--r-ctl,5px) !important;}
/* UX93 (08/10, QA 07/10): every pointer control has a hover AND a pressed state. Most controls are styled inline, and
   the runtime's style-hover rules (.scpN:hover) lose to an inline colour / edge (dark EXPORT CSV, the x, the approval
   select: :hover true, nothing changed) or were empty (zp-btn-t, sort heads, + ADD PHASE...). So the shell adds ONE
   cue that no inline style can hide: a wash of the control's own ink laid over its fill (a background-image, so the
   fill, the edge and the colour stay the page's) - 8% on hover, 18% while pressed; a select (its chevron is the
   background-image) takes the same wash as an inset shadow. An outlined quiet control's edge also lifts to --muted
   on hover (as .zp-chip / .zp-btn-q / .zdlg-btn). Disabled controls take neither (UX15's look stays still). */
body.zp-suite :is(button,[role="button"],[role="tab"],[role="checkbox"],[role="switch"],[role="radio"],[role="option"],[role="menuitem"],summary,a[href][style*="border"]):not([aria-disabled="true"]):not(:disabled):not(.gt-stk):not(#zph-shell-rail *):hover{background-image:linear-gradient(color-mix(in srgb,currentColor 8%,transparent),color-mix(in srgb,currentColor 8%,transparent)) !important;}
body.zp-suite :is(button,[role="button"],[role="tab"],[role="checkbox"],[role="switch"],[role="radio"],[role="option"],[role="menuitem"],summary,a[href][style*="border"]):not([aria-disabled="true"]):not(:disabled):not(.gt-stk):not(#zph-shell-rail *):active{background-image:linear-gradient(color-mix(in srgb,currentColor 18%,transparent),color-mix(in srgb,currentColor 18%,transparent)) !important;}
body.zp-suite select:not(:disabled):not([aria-disabled="true"]):hover{box-shadow:inset 0 0 0 100vmax color-mix(in srgb,currentColor 8%,transparent);}
body.zp-suite select:not(:disabled):not([aria-disabled="true"]):active{box-shadow:inset 0 0 0 100vmax color-mix(in srgb,currentColor 18%,transparent);}
:is(body.light,body.zp-suite) :is(button,select,a,[role=button],[role=tab],[role=checkbox],[role=radio],[role=switch]):not([aria-invalid="true"]):not([aria-disabled="true"]):not(:disabled):is(
    [style*="border: 1px solid var(--border"],[style*="border:1px solid var(--border"],[style*="border: 1.5px solid var(--border"],[style*="border:1.5px solid var(--border"]):hover{border-color:var(--muted) !important;}
/* a button inside a sentence ("use it") is underlined on hover; the tint stays off it (no box around words) */
.zp-btn-t.zp-btn-link:not([aria-disabled="true"]):not(:disabled):hover{text-decoration:underline !important;text-underline-offset:2px;background-image:none !important;}
/* W13 UX110 (11/10): the tiny label is the system font now - 12px / 600 / .6px caps (the mono cells carried .8px).
   UX102 (08/10, QA 07/10): ONE tiny label - JetBrains 11px / 600 / .8px, caps (there were 7: 400 / 500 / 600 at .5 / .8 / 1
   / normal). .zp-lbl is the class; the page's label classes (.zdlg-lbl, .zp-kpi-l, .zp-thr, .gc-pva-lbl, .mx-lbl, table heads)
   carry the same weight and tracking, and an inline-styled 11px caps label (no Michroma, not a control or pill, the white
   invoice paper excepted) is brought onto it here. */
.zp-lbl{font-family:var(--f-ui);font-size:12px;font-weight:600;letter-spacing:.6px;line-height:14px;text-transform:uppercase;color:var(--faint);}
body.zp-suite :not(#inv-sheet *):not(#inv-print-root *)[style*="font-size: 12px"][style*="text-transform: uppercase"][style*="letter-spacing"]:not([style*="Michroma"]):not(button):not([role="button"]):not(.zp-pill):not(.zp-chip):not(option){font-weight:600 !important;letter-spacing:.6px !important;}
/* ---- UX94 (08/10, QA 07/10): the STATE PALETTE - one tone per state family (pills: data-tone; dark = the hue, light = the
   shell's tint + ink pair). A state takes its family's tone and nothing else does:
     good     green  (#2fbe62 / Sea Green)    done, paid, received, closed, on track, OK
     warn     yellow (#ffeb3b / Sun Yellow)   waiting for someone (approval, payment, QC re-inspect), due soon, slightly behind,
                                              no invoice yet, a milestone date passed (CHECK MILESTONE)
     pending  orange (#f97316 / Peach)        under way: in progress, answered, part paid, partly delivered (and the Major severity)
     bad      red    (#f87171 / Rose Red)     late, overdue, rejected, over budget, urgent, critical - ONE red
     info     blue   (#4f8ff7 / Sky)          open (an RFI, a snag), awaiting (a delivery, an answer), issued, postponed
     void     purple (#c084fc / Plum)         disputed, void
     neutral  grey                            not started, awaiting milestone, codes, tags, "in progress" on a page still being built
   NOT states: the accent (amber in dark / Deep Blue in light) is for actions and selection only - the primary fill, a selected
   chip, an on switch's box, focus; categories (Gantt / GC Editor phases, calendar layers) take hues outside the families
   (dark: indigo, sand, pink, lime, teal, silver, sky). The light Gantt / GC Editor phases (GT7, owner decision 29/09) use the
   palette text shades on purpose - each bar sits under its heading. W13 (11/10, owner): dark warn is its own yellow; the
   amber #f5a623 is the dark accent only. Money paid out is not a state (BS4): the text tone. */
/* W37C (Thomas 04/11): the families above keep their roles; their values are the Marina / Midnight slate pairs at the top of this
   file - dark good #3CC27A, warn #F2C94C, pending #F5A65B, bad #F47174, info #9EC9E8 (= the accent), void #D9A0C8; light #1E6B47,
   #7A5900, #8A4A12, #B42B3A, #0B3C5D, #7D4551, each on its own tint. The amber accent is gone: amber means a warning only.
   Categories (Gantt / GC Editor, calendar layers, app colours) take the navy / blue / sand / clay / slate / muted teal family. */
/* UX109 (08/10, owner decision 08/10): an inline destructive control (Delete / Remove / the x that deletes - GC Editor
   DELETE, Manpower REMOVE, REMOVE LOGO, DELETE PHASE, the Diary / RFI / Photos / Project Settings / Stock x, the Materials x
   remove, a payment's Remove) is red at the control: its words the destructive red (dark #f87171 7.0+:1 on the card /
   light Rose Red text #B12C3A 6.0+:1) and its edge that red at 70% (>= 3:1); hover keeps the red (the wash is red too).
   Disabled keeps the one disabled look; an ARMED control (.zp-armed) keeps its red fill + white; UNDO / TAKE OFF / the undo
   arrow are not .zp-del and stay neutral. */
/* W19A (25/10, owner rule 6 of 18/10 + decision 6 of 20/10, settled for W19): the UX109 red above is REPLACED - an inline Delete / Remove /
   x is a NEUTRAL outline (the text ink, the control edge; hover lifts the edge to --muted like every outline); the red is only on the
   in-app confirm's YES (askConfirm danger) and on an ARMED control (.zp-armed keeps its red fill + white). !important: some of these
   controls still carry an inline red. */
body.zp-suite :is(button,[role="button"]).zp-del:not([aria-disabled="true"]):not(:disabled):not([aria-invalid="true"]):not(.zp-armed){color:var(--text2,var(--text)) !important;border-color:var(--control-border,var(--border4)) !important;}
body.zp-suite :is(button,[role="button"]).zp-del:not([aria-disabled="true"]):not(:disabled):not([aria-invalid="true"]):not(.zp-armed):hover{color:var(--text) !important;border-color:var(--muted) !important;}

/* =====================================================================================================================
   ==== W19X (24/10) - THE SHARED PAGE PATTERNS: QA 24/10 clutter round, owner decisions 24/10 rules 1-7 ===============
   =====================================================================================================================
   Built ONCE here, before the pages adopt them. The adoption guide (markup, helper calls, before -> after on a real
   screen) is the comment block at the top of the W19X section of zph-shell.js. Every class is .zs-*; tokens fall back,
   so the classes also work on a page that does not define the suite's radii / --tap. Light colours only from --zp-*. */

/* ---- 7 chrome: the rail's count pill (XC94, rule 5) - a NEUTRAL count; red only for late / overdue (countTone 'bad') ----
   neutral: dark #e6e9f0 on the 26% grey wash over the rail 11.8:1, light #0F2A33 on the 16% wash 10.9:1 */
:root{--zsh-count-bg:rgba(128,138,160,.26);--zsh-count-ink:#E8EBF3;}
body.light,body.theme-light{--zsh-count-bg:rgba(102,92,71,.16);--zsh-count-ink:#2D2516;}
/* W38R (Thomas 05/11: "make it accent blue for normal notification, and red if they are late"): a count is the accent (navy #0B3C5D with
   white words in light 11:1, sky #9EC9E8 with the page navy in dark 10.9:1); red (tone bad) only while it holds something late. Resolved on the
   pill itself, so light / dark / BIM each take their own --accent. --zsh-count-bg / -ink stay for any surface that still names them. */
.zsh-count[data-tone="neutral"]{background:var(--accent,#0B3C5D);color:var(--on-accent,#FFFFFF);}
.zsh-count[data-tone="bad"]{background:var(--badge-bg,#C0333F);color:#fff;}
/* XC97: slimmer group headers - 24px with a mouse (was 32; the group gap 14 -> 8px in zph-shell.js); 44px on touch (a toggle) */
#zph-shell-rail .zsh-ghead{min-height:24px;}
@media (max-width:760px),(pointer:coarse){#zph-shell-rail .zsh-ghead{min-height:44px;}}
/* XC97: the theme radios in the user menu - the one on carries the accent edge (selection) */
#zph-shell-menu .zsh-theme:is(:hover,:focus){background:var(--hover,var(--nav-active));}
#zph-shell-menu .zsh-theme[aria-checked="true"]{box-shadow:inset 0 0 0 1px var(--accent,#9EC9E8);font-weight:600;}

/* ---- 1 page header (XC90, XC89, XC106; rules 2, 3): title + count + ⓘ | ⋯ + the ONE filled primary at the right end ---- */
.zs-ph{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:var(--sp-12);row-gap:var(--sp-4);min-height:var(--tap,32px);margin:0 0 var(--sp-section,16px);}
.zs-ph-l{display:flex;flex-wrap:wrap;align-items:center;column-gap:var(--sp-12);row-gap:0;min-width:0;}
.zs-ph-t{margin:0;font-family:var(--f-display,'Michroma',sans-serif);font-weight:400;font-size:20px;line-height:28px;letter-spacing:2px;text-transform:uppercase;color:var(--text);}
.zs-ph-n{font-family:var(--f-ui);font-size:13px;line-height:20px;color:var(--muted);white-space:nowrap;}
.zs-ph-n:empty{display:none;}
/* W19A (25/10, track O note 1): a count bound with {{ }} leaves an empty span.sc-interp inside - that is empty too */
.zs-ph-n:has(> .sc-interp:only-child:empty),.zs-ph-line:empty,.zs-ph-line:has(> .sc-interp:only-child:empty){display:none;}
/* W19A (25/10, track O note 3): the ⓘ keeps its own 32px circle on touch too - an app's button{min-height:var(--tap)} made it a 32x44
   oval; the 44px hit area is the ::after below */
.zs-ph-i{box-sizing:border-box;flex:none;width:32px;height:32px;min-width:32px !important;min-height:32px !important;max-height:32px;margin:0 -6px;padding:0;display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:50%;background:transparent;color:var(--muted);font:inherit;font-size:16px;line-height:1;cursor:pointer;}
.zs-ph-i:hover,.zs-ph-i[aria-expanded="true"]{color:var(--text);border-color:var(--control-border,#6E778B);}
.zs-ph-r{display:flex;align-items:center;justify-content:flex-end;gap:var(--sp-8);}
/* W19A (25/10): a keeper / a fact as one short line beside the title ("Vendor invoices are under Purchasing › Invoice Vendor.", "Last saved
   12 Oct 2026 · Thomas Handoko · HISTORY") - muted 12px; on a phone it takes the line under the title */
.zs-ph-line{min-width:0;font-size:12px;line-height:20px;color:var(--muted);overflow-wrap:anywhere;}
.zs-ph-link{font:inherit;min-height:0;padding:0;border:0;background:transparent;color:var(--accent,#9EC9E8);text-decoration:underline;text-underline-offset:2px;cursor:pointer;}
@media (max-width:760px){.zs-ph-line{flex:1 1 100%;line-height:16px;}}
.zs-ph-note{grid-column:1 / -1;display:none;max-width:72ch;margin:0;font-size:12px;line-height:1.5;color:var(--muted);}
.zs-ph:has(.zs-ph-i[aria-expanded="true"]) > .zs-ph-note{display:block;}
/* the filled primary (the same look as Construction's .zp-btn-p, so it also works on a page that has no .zp-btn-p) */
.zs-ph-p,.zs-btn-p{font:inherit;box-sizing:border-box;position:relative;display:inline-flex;align-items:center;justify-content:center;gap:var(--sp-8);flex:none;min-height:var(--tap,32px);padding:0 var(--sp-12);border:1px solid var(--accent,#9EC9E8);border-radius:var(--r-ctl,5px);background:var(--accent,#9EC9E8);color:var(--on-accent,#090F1A);cursor:pointer;font-family:var(--f-display,'Michroma',sans-serif);font-size:12px;font-weight:400;letter-spacing:1.5px;line-height:1.2;white-space:nowrap;text-transform:uppercase;}
.zs-ph-p:hover,.zs-btn-p:hover{opacity:.88;}
.zs-ph-pg{display:inline-flex;}   /* W25C ICN8 (31/10): holds <z-i n="add"> (upload, photo) */
/* <= 760px: the title row is 44px - the title at 16px / 1px (20px Michroma is 325px for MATERIAL TRACKER, the row leaves
   235px beside ⋯ and +), two lines of 22px when a long title needs them; the count and ⓘ follow it, on a line of their own when it is long */
@media (max-width:760px){
  .zs-ph{align-items:start;min-height:44px;}
  .zs-ph-r{min-height:44px;}
  .zs-ph-t{flex:0 1 auto;display:flex;align-items:center;min-height:44px;font-size:16px;line-height:22px;letter-spacing:1px;overflow-wrap:normal;}
  .zs-ph-n{font-size:12px;line-height:16px;}
  .zs-ph-p:not([data-keep-label]){width:44px;min-width:44px;height:44px;padding:0;font-family:var(--f-ui);letter-spacing:0;}
  .zs-ph-p:not([data-keep-label]) > .zs-ph-pg{font-size:24px;line-height:1;}   /* a "+" still written as text in an app not on the kit yet; with <z-i> inside it the icon is 20 */
  .zs-ph-p:not([data-keep-label]) > .zs-ph-pl{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
}
/* ⓘ: 32px drawn, 44px to touch. W23A XC128 (31/10, QA 30/10): the band has its own 44×44, centred on the button (DR15's way) - inset:-6px on the padding box measured 42,8px, the 0,8px border short */
@media (max-width:760px),(pointer:coarse){.zs-ph-p,.zs-btn-p{min-height:44px;} .zs-ph-i{position:relative;} .zs-ph-i::after{content:"";position:absolute;left:50%;top:50%;width:44px;height:44px;transform:translate(-50%,-50%);}}
/* W19A (25/10, track O note 2): an ⓘ OUTSIDE the page header - .zs-info holds the .zs-ph-i and its .zs-note (the shell flips the ⓘ's
   aria-expanded anywhere; the note shows while its own ⓘ is expanded) */
.zs-info{position:relative;}
.zs-note{display:none;max-width:72ch;margin:4px 0 0;font-size:12px;line-height:1.5;color:var(--muted);}
.zs-info:has(.zs-ph-i[aria-expanded="true"]) .zs-note{display:block;}

/* ---- 2 chips row (XC88, rule 1): one row at every width - it swipes sideways, never wraps; the 44px chip hit areas fit ---- */
.zs-chips{display:flex;flex-wrap:nowrap;align-items:center;gap:var(--sp-8);min-width:0;margin:-4px 0 8px;padding:var(--sp-4) 2px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:thin;}
.zs-chips > *{flex:none;}
@media (max-width:760px),(pointer:coarse){
  .zs-chips{margin:-6px 0 6px;padding:6px 2px;scrollbar-width:none;scroll-snap-type:x proximity;}   /* 6px, not --sp-4: overflow-y clips the row, and a 32px chip needs 6 + 32 + 6 for its 44px hit area */
  .zs-chips::-webkit-scrollbar{display:none;}
  .zs-chips > *{scroll-snap-align:start;}
}

/* ---- 3 row actions + THE popup menu (XC87, rule 4): the row's next action, then ⋯ ---- */
.zs-row-act{display:flex;align-items:center;justify-content:flex-end;gap:var(--sp-8);flex:none;}
.zs-more,.zs-ic{box-sizing:border-box;position:relative;flex:none;width:var(--tap,32px);height:var(--tap,32px);padding:0;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--control-border,#6E778B);border-radius:var(--r-ctl,5px);background:transparent;color:var(--muted);font:inherit;font-size:16px;font-weight:700;line-height:1;cursor:pointer;}
.zs-more:hover,.zs-ic:hover{color:var(--text);border-color:var(--muted);}
.zs-more[aria-expanded="true"],.zs-ic[aria-expanded="true"]{color:var(--text);border-color:var(--muted);background-color:var(--hover,rgba(127,127,127,.12));}
@media (max-width:760px),(pointer:coarse){.zs-more,.zs-ic{width:44px;height:44px;}}
.zs-menu{position:fixed;z-index:95;box-sizing:border-box;display:flex;flex-direction:column;gap:2px;min-width:200px;max-width:min(340px,calc(100vw - 16px));overflow-y:auto;overscroll-behavior:contain;padding:var(--sp-4);background:var(--dp-bg,#141B2D);border:1px solid var(--control-border,#6E778B);border-radius:var(--r-card,7px);box-shadow:var(--dp-shadow,0 14px 34px rgba(0,0,0,.5));font-family:var(--f-ui);font-size:13px;color:var(--text);}
.zs-mi{font:inherit;box-sizing:border-box;position:relative;display:flex;flex-wrap:wrap;align-items:center;column-gap:var(--sp-12);width:100%;min-height:32px;padding:var(--sp-4) var(--sp-12);border:1px solid transparent;border-radius:var(--r-ctl,5px);background:transparent;color:var(--text);text-align:left;cursor:pointer;}
.zs-mi:not([aria-disabled="true"]):is(:hover,:focus){background-color:var(--hover,rgba(127,127,127,.12));border-color:var(--control-border,#6E778B);}
a.zs-mi{text-decoration:none;}   /* W19A: a link item (href) */
.zs-mi-l{flex:1 1 auto;min-width:0;}
.zs-mi-k{flex:none;font-family:var(--f-mono);font-size:12px;color:var(--muted);}
.zs-mi-why{flex:1 1 100%;font-size:12px;line-height:1.4;color:var(--muted);}
.zs-mi:is([role="menuitemradio"],[role="menuitemcheckbox"]){padding-left:30px;}
.zs-mi:is([role="menuitemradio"],[role="menuitemcheckbox"])[aria-checked="true"]::before{content:"";position:absolute;left:calc((30px - var(--zi-s)) / 2);width:var(--zi-s);height:var(--zi-s);background:var(--text);-webkit-mask:var(--zi-check) center/contain no-repeat;mask:var(--zi-check) center/contain no-repeat;}   /* ✓ in the text colour (owner 24/10); W25A: the kit's check */
.zs-msep{flex:none;height:1px;margin:3px 2px;background:var(--hair);}
.zs-mlab{padding:var(--sp-4) var(--sp-12) 2px;font-size:12px;font-weight:600;letter-spacing:.6px;line-height:14px;text-transform:uppercase;color:var(--faint);}
@media (max-width:760px),(pointer:coarse){.zs-mi{min-height:44px;}}

/* ---- 4 Deleted band (XC91): ONE collapsed "▸ Deleted · N" row at the bottom of the list, on a rule line ---- */
.zs-del{margin-top:var(--sp-section,16px);border-top:1px solid var(--hair);}
.zs-del-tg{font:inherit;box-sizing:border-box;display:flex;align-items:center;gap:var(--sp-8);width:100%;min-height:var(--tap,32px);padding:0;border:0;border-radius:var(--r-ctl,5px);background:transparent;color:var(--text2,var(--text));font-size:13px;text-align:left;cursor:pointer;}
.zs-del-tg:hover{color:var(--text);}
/* W25A ICN3 (31/10): the kit's chevron, turned when open (it was ▸ / ▾) */
.zs-del-tg::before{content:"";flex:none;width:var(--zi-s);height:var(--zi-s);background:var(--muted);-webkit-mask:var(--zi-open) center/contain no-repeat;mask:var(--zi-open) center/contain no-repeat;transition:transform .15s;}
.zs-del-tg[aria-expanded="true"]::before{transform:rotate(90deg);}
.zs-del > .zs-del-tg[aria-expanded="false"] ~ :not(.zs-del-tg){display:none;}   /* W38 MOT6 (03/11): the toggle is each fold's first child, so a sibling rule says it - the :has() form cost ≈60-80ms of style work on every DOM change of a heavy page */   /* shut: only the row (the hint shows once opened) */
.zs-del-hint{margin:0 0 4px calc(var(--zi-s) + 8px);font-size:12px;line-height:1.5;color:var(--muted);}
.zs-del-row{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-4) var(--sp-16);padding:8px 0 8px calc(var(--zi-s) + 8px);border-top:1px solid var(--hair);}
.zs-del-main{flex:1 1 220px;min-width:0;}
.zs-del-t{font-size:13px;color:var(--text);overflow-wrap:anywhere;}
.zs-del-meta{margin-top:2px;font-size:12px;color:var(--muted);overflow-wrap:anywhere;}

/* ---- 5 empty state (XC98): one per page - one sentence + at most one button; no box of its own ---- */
.zs-empty{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-8) var(--sp-16);padding:var(--sp-16) 0;font-size:13px;line-height:1.5;color:var(--text2,var(--text));}
.zs-empty-t{flex:1 1 240px;min-width:0;margin:0;overflow-wrap:anywhere;}
.zs-empty-t > .zp-spin{margin-right:8px;}
.zs-empty > :not(.zs-empty-t){flex:none;}
.zs-empty[data-kind="error"]{padding-left:var(--sp-12);border-left:3px solid var(--bad,#F47174);color:var(--text);}
/* W30K CL68 (01/11, QA 01/11b): ONE alert look in every app - the rule, the sentence in ink, an outlined RETRY - so a page writes only class="zs-empty" data-kind="error" and its button
   (a plain line in Planner and Design, a pink box in Console and codes, red text + a filled RETRY in BIM before). 44 on touch here: not every page defines --tap. A failed REFRESH over kept rows
   stays the quiet "As of …" line (kind stale). */
.zs-empty[data-kind="error"] > button{font:inherit;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-height:var(--tap,32px);padding:0 var(--sp-16);border:1px solid var(--control-border,var(--border));border-radius:var(--r-ctl,5px);background:transparent;color:var(--text);cursor:pointer;font-family:'Michroma';font-size:12px;font-weight:400;letter-spacing:1.5px;line-height:1.2;white-space:nowrap;}
.zs-empty[data-kind="error"] > button:hover{border-color:var(--muted);}
@media (max-width:760px),(pointer:coarse){.zs-empty[data-kind="error"] > button{min-width:44px;min-height:44px;}}
.zs-empty[data-kind="stale"]{padding:0;margin-bottom:var(--sp-section,16px);}

/* ---- 6 status word (rule 6, MT36, XC81): plain for settled; pending / warn / bad only for what needs attention, each
   with its shape (never colour alone); "3d late" is the only red (ZPHShell.eta) ---- */
.zs-st{color:var(--text);white-space:nowrap;}
.zs-st[data-tone="muted"]{color:var(--muted);}
.zs-st[data-tone="pending"]{color:var(--sn-orange,#F5A65B);font-weight:600;}
.zs-st[data-tone="warn"]{color:var(--warn,#F2C94C);font-weight:600;}
.zs-st[data-tone="bad"]{color:var(--bad,#F47174);font-weight:600;}
body.light .zs-st[data-tone="pending"]{color:var(--zp-peach-text);}
body.light .zs-st[data-tone="warn"]{color:var(--zp-yellow-text);}
body.light .zs-st[data-tone="bad"]{color:var(--zp-red-text);}
/* W25C ICN9 (31/10): the shape is the kit's, drawn in the word's colour: [clock] for what waits or falls due (pending, "Due today"), [warn] for what is late or wrong (bad).
   14px at every width, the size in the preview (QA 31/10 images 08 / 10 / 11): a mark beside a 12px word, 16 or 20 would grow the row or wrap the word. Nothing is read aloud (content is empty). ▲ keeps only "sort". */
.zs-st[data-tone="pending"]::before,.zs-st[data-tone="warn"]::before,.zs-st[data-tone="bad"]::before{content:"";display:inline-block;width:14px;height:14px;margin-right:3px;vertical-align:-2px;background:currentColor;}
.zs-st[data-tone="pending"]::before,.zs-st[data-tone="warn"]::before{-webkit-mask:var(--zi-clock) center/contain no-repeat;mask:var(--zi-clock) center/contain no-repeat;}
.zs-st[data-tone="bad"]::before{-webkit-mask:var(--zi-warn) center/contain no-repeat;mask:var(--zi-warn) center/contain no-repeat;}
@media (max-width:760px){.zs-st[data-tone="pending"]::before,.zs-st[data-tone="warn"]::before,.zs-st[data-tone="bad"]::before{width:12px;height:12px;margin-right:2px;vertical-align:-1px;}}   /* the phone's narrow cards: the preview's 375 size */

/* ---- 8 "Refreshing…" (XC108) - THE shared one: a small note fixed at the foot of the window, over the page - it never
   takes a line in the flow (nothing moves) and never covers the header's actions; place it anywhere (not inside a card that
   has a backdrop-filter: that would capture position:fixed) ---- */
.zs-busy{position:fixed;left:50%;bottom:16px;z-index:80;transform:translateX(-50%);max-width:calc(100vw - 32px);pointer-events:none;}
.zs-busy > span{display:inline-flex;align-items:center;gap:var(--sp-8);height:28px;box-sizing:border-box;padding:0 var(--sp-12);border:1px solid var(--control-border,#6E778B);border-radius:999px;background:var(--dp-bg,#141B2D);box-shadow:var(--dp-shadow,0 14px 34px rgba(0,0,0,.5));font-size:12px;color:var(--text2,var(--text));white-space:nowrap;}
.zs-busy .zp-spin{margin:0;}

/* ---- 8 save bar (XC105): only while something changed - "3 changes · SAVE", sticky at the foot of the page ---- */
.zs-save{position:sticky;bottom:0;z-index:6;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:var(--sp-8) var(--sp-12);margin-top:var(--sp-section,16px);padding:var(--sp-8) var(--sp-12);border:1px solid var(--control-border,#6E778B);border-radius:var(--r-card,7px);background:var(--dp-bg,#141B2D);box-shadow:var(--dp-shadow,0 14px 34px rgba(0,0,0,.5));}
.zs-save-n{margin-right:auto;font-size:13px;color:var(--text);}

/* ---- 8 the detail view (UX175): ONE pattern - the side sheet. A 480px modal sheet over a scrim below 1600px (the whole
   width on a phone); from 1600px, inside .zs-split, a pane docked beside its list (ZPHShell.sheetMode) ---- */
.zs-sheet-scrim{position:fixed;inset:0;z-index:70;background:rgba(6,9,14,.55);}
body.light .zs-sheet-scrim{background:rgba(11,60,93,.32);}
.zs-sheet{position:fixed;top:0;right:0;bottom:0;z-index:71;box-sizing:border-box;width:min(480px,100vw);display:flex;flex-direction:column;background:var(--dp-bg,#141B2D);border-left:1px solid var(--control-border,#6E778B);box-shadow:-16px 0 48px rgba(0,0,0,.35);color:var(--text);outline:none;}
body.light .zs-sheet{box-shadow:-12px 0 32px rgba(45,37,22,.18);}
.zs-sheet-h{flex:none;display:flex;align-items:flex-start;gap:var(--sp-8);padding:var(--sp-12) var(--sp-card,16px);border-bottom:1px solid var(--hair);}
.zs-sheet-hm{flex:1;min-width:0;}
.zs-sheet-k{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-4) var(--sp-12);font-size:12px;color:var(--muted);}
.zs-sheet-t{margin:4px 0 0;font-size:16px;font-weight:600;line-height:1.4;color:var(--text);overflow-wrap:anywhere;}
.zs-sheet-x{font:inherit;box-sizing:border-box;flex:none;width:var(--tap,32px);min-height:var(--tap,32px);padding:0;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--control-border,#6E778B);border-radius:var(--r-ctl,5px);background:transparent;color:var(--muted);font-size:12px;letter-spacing:1px;cursor:pointer;}
.zs-sheet-x:hover{color:var(--text);border-color:var(--muted);}
.zs-sheet-b{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:var(--sp-card,16px);}
.zs-sheet-f{flex:none;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:var(--sp-8);padding:var(--sp-12) var(--sp-card,16px);border-top:1px solid var(--hair);}
@media (min-width:1600px){
  .zs-split{display:grid;grid-template-columns:minmax(0,1fr) 420px;gap:var(--sp-section,16px);align-items:start;}
  .zs-split > .zs-sheet-scrim{display:none;}
  .zs-split > .zs-sheet{position:sticky;top:12px;z-index:auto;width:auto;max-height:calc(100vh - 120px);border:1px solid var(--border,#273148);border-radius:var(--r-card,7px);background:var(--card,#111829);box-shadow:none;}
}

/* ---- 8 one frame level (UX174): inside a card, rule lines - never a box inside a box ---- */
.zs-rule{display:block;height:0;margin:12px 0;border:0;border-top:1px solid var(--hair);}
.zs-sect + .zs-sect{margin-top:12px;padding-top:var(--sp-12);border-top:1px solid var(--hair);}
.zs-flat{border:0 !important;border-radius:0 !important;background:transparent !important;box-shadow:none !important;padding-left:0 !important;padding-right:0 !important;}
/* ---- Calendar date cards (W40C, 05/11, Thomas: "for calender, the right skeleton, might need to group by the date, and each date has their own
   skeleton?"): the panel beside the month in Construction, Planner and Design is a COLUMN of date cards - today (or the picked day) with its title
   and TODAY, then NEXT 7 DAYS and one card for each day with something on it, its date at the top ("Tomorrow · Fri 06 Nov 2026", "Mon 09 Nov 2026").
   It was one card with every day's lines run together under small grey date words. No box inside a box (UX174): the column itself has no frame.
   Beside the month (data-fit) the column scrolls on its own and the month keeps its size; stacked (below 1024) the page scrolls. ---- */
.zs-cal-col{display:flex;flex-direction:column;gap:var(--sp-8);min-width:0;}
.zs-cal-col[data-fit="true"]{min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;}
.zs-cal-dc{flex:none;background:var(--card);border:1px solid var(--border);border-radius:var(--r-card,7px);padding:var(--sp-12) var(--sp-card,16px);}
.zs-cal-dh{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-8);flex-wrap:wrap;margin-bottom:var(--sp-8);}
.zs-cal-dt{margin:0 0 var(--sp-8);font-family:'Michroma';font-weight:400;font-size:12px;line-height:1.5;letter-spacing:.5px;text-transform:none;color:var(--text);outline:none;}
.zs-cal-dh .zs-cal-dt{margin:0;}
.zs-cal-none{font-size:12px;color:var(--faint);}
.zs-cal-li{margin-bottom:var(--sp-8);}
.zs-cal-li:last-child{margin-bottom:0;}
.zs-cal-sep{padding:var(--sp-8) 0;}
.zs-cal-sep + .zs-cal-sep{border-top:1px solid var(--hair);}
:is(.zs-cal-dh,.zs-cal-dt) + .zs-cal-sep{padding-top:0;}
.zs-cal-sep:last-child{padding-bottom:0;}

/* ---- 8 the "?" shortcut sheet (XC100) - replaces the printed "Keys: …" lines; a key hint is for a keyboard ---- */
.zs-keys-scrim{position:fixed;inset:0;z-index:96;display:flex;align-items:center;justify-content:center;padding:var(--sp-16);background:rgba(6,9,14,.55);}
body.light .zs-keys-scrim{background:rgba(11,60,93,.32);}
.zs-keys{box-sizing:border-box;width:min(520px,100%);max-height:calc(100vh - 32px);overflow-y:auto;padding:var(--sp-12) var(--sp-16) var(--sp-16);background:var(--dp-bg,#141B2D);border:1px solid var(--control-border,#6E778B);border-radius:var(--r-dlg,10px);box-shadow:var(--dp-shadow,0 14px 34px rgba(0,0,0,.5));color:var(--text);font-family:var(--f-ui);font-size:13px;outline:none;}
.zs-keys-hd{display:flex;align-items:center;gap:var(--sp-8);margin-bottom:6px;}
.zs-keys-t{flex:1;margin:0;font-family:var(--f-display,'Michroma',sans-serif);font-weight:400;font-size:12px;letter-spacing:1.5px;line-height:1.5;text-transform:uppercase;}
.zs-keys-p{font-family:var(--f-ui);font-size:13px;letter-spacing:0;text-transform:none;color:var(--muted);}
.zs-keys-x{font:inherit;box-sizing:border-box;flex:none;width:var(--tap,32px);height:var(--tap,32px);padding:0;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--control-border,#6E778B);border-radius:var(--r-ctl,5px);background:transparent;color:var(--muted);font-size:16px;cursor:pointer;}
.zs-keys-g{margin:14px 0 4px;font-size:12px;font-weight:600;letter-spacing:.6px;text-transform:uppercase;color:var(--faint);}
.zs-keys-l{margin:0;}
.zs-keys-r{display:grid;grid-template-columns:minmax(120px,max-content) 1fr;gap:var(--sp-4) var(--sp-16);padding:var(--sp-4) 0;border-top:1px solid var(--hair);}
.zs-keys-r > dt{margin:0;white-space:nowrap;}
.zs-keys-r > dd{margin:0;color:var(--text2,var(--text));}
.zs-kbd{display:inline-block;box-sizing:border-box;min-width:22px;padding:0 var(--sp-8);border:1px solid var(--control-border,#6E778B);border-radius:4px;font-family:var(--f-mono);font-size:12px;line-height:20px;text-align:center;color:var(--text);}
.zs-keys-btn{box-sizing:border-box;flex:none;width:var(--tap,32px);height:var(--tap,32px);padding:0;border:1px solid var(--control-border,#6E778B);border-radius:50%;background:transparent;color:var(--muted);font:inherit;font-size:13px;font-weight:700;cursor:pointer;}
@media (pointer:coarse){.zs-keys-btn{display:none;}}

/* ---- 7 top-bar search (XC93, rule 7): a 🔍 opens the field on list pages; at <= 760 the open field covers the top bar
   (no own row); a search left on shows as a dot on the 🔍 there ---- */
/* W86S (19/11, Thomas: the 🔍 sat on the bell at 375 - Purchasing › Stock Dashboard, Material Pricelist): .zs-find could shrink to
   nothing (min-width:0) while its 44px 🔍 kept its size, so on a full phone bar (Menu + the picker's 210px + 🔍 + bell = 406px in 375)
   it was squeezed to 14px and the 🔍 spilled 22px over the bell. Its floor is now one button (--tap), and a picker in the top bar
   gives way instead (min-width:0 below - a <select> otherwise never goes under its widest option): 🔍 and bell side by side, 8px apart. */
.zs-find{position:relative;display:flex;align-items:center;gap:var(--sp-8);flex:0 1 auto;min-width:var(--tap,32px);}
.zp-topbar > select{min-width:0;text-overflow:ellipsis;}
.zs-find-btn{box-sizing:border-box;position:relative;flex:none;width:var(--tap,32px);height:var(--tap,32px);padding:0;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--control-border,#6E778B);border-radius:50%;background:transparent;color:var(--muted);font:inherit;cursor:pointer;}
.zs-find-btn:hover,.zs-find-btn[aria-expanded="true"]{color:var(--text);}
.zs-find-in{display:none;box-sizing:border-box;width:260px;max-width:34vw;height:var(--tap,32px);padding:0 var(--sp-12);background:var(--input,transparent);border:1px solid var(--control-border,#6E778B);border-radius:var(--r-ctl,5px);color:var(--text);font:inherit;font-size:13px;}
.zs-find[data-open="true"] > .zs-find-in{display:block;}
@media (min-width:761px){.zs-find:has(> .zs-find-in:not(:placeholder-shown)) > .zs-find-in{display:block;}}   /* wider than a phone: a search left on stays in view */
.zs-find-x{display:none;box-sizing:border-box;flex:none;width:44px;height:44px;padding:0;align-items:center;justify-content:center;border:1px solid var(--control-border,#6E778B);border-radius:var(--r-ctl,5px);background:transparent;color:var(--muted);font:inherit;font-size:18px;cursor:pointer;}
@media (max-width:760px){
  .zs-find:not([data-open="true"]):has(> .zs-find-in:not(:placeholder-shown)) > .zs-find-btn::after{content:"";position:absolute;top:1px;right:1px;width:9px;height:9px;border-radius:50%;background:var(--accent,#9EC9E8);box-shadow:0 0 0 2px var(--topbar,#0C1220);}
  .zs-find[data-open="true"]{position:absolute;inset:0;z-index:5;padding:0 var(--sp-8) 0 var(--sp-16);gap:var(--sp-8);}
  .zs-find[data-open="true"] > .zs-find-btn{display:none;}
  .zs-find[data-open="true"] > .zs-find-in{flex:1;width:auto;max-width:none;height:44px;font-size:16px;}
  .zs-find[data-open="true"] > .zs-find-x{display:inline-flex;}
  .zp-topbar:has(> .zs-find[data-open="true"]) > :not(.zs-find){visibility:hidden;}
}
/* W41S (05/11, Thomas: "for the search button, please do 1. icon expand animations 2. live suggestion 3. clear field button"):
   - wider than a phone the round 🔍 GROWS into the field: the field is laid over the 🔍 as a circle and widens to 260px (34vw at most)
     leftwards - the bell stays put, the 🔍 rides the field's left edge as its icon - over --mo-base (180ms, decelerating); it shrinks
     back into the circle over 120ms when it closes. Thomas 05/11 ("play it anyway"): the ONE exception to the suite's reduced-motion
     rule - it grows under prefers-reduced-motion too (his PC has Windows animations off), on its own clock (--zf-open / --zf-close,
     not the --mo-* tokens that read 0 there). A phone's field (over the top bar) fades in instead, on the same clock.
   - a clear button (×) in the field's right end while it holds text: it empties the field and keeps it open, the caret in it (the
     phone keeps its own × beside the field, which clears and closes). The browser's own × of a search field is hidden.
   - the suggestions under the field: .zs-sug (built by the shell). */
.zs-find-in::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none;display:none;}
.zs-find-clr{display:none;}
:root{--zf-open:180ms;--zf-close:120ms;}
@media (min-width:761px){
  .zs-find{width:var(--tap,32px);transition:width var(--zf-close) var(--mo-ease-exit);}
  .zs-find > .zs-find-btn{z-index:1;transition:border-color var(--zf-close) var(--mo-ease-exit);}
  .zs-find > .zs-find-in{display:block;position:absolute;top:0;bottom:0;left:0;right:0;width:auto;max-width:none;height:auto;padding:0 var(--tap,32px);border-radius:calc(var(--tap,32px) / 2);visibility:hidden;
    transition:border-radius var(--zf-close) var(--mo-ease-exit),visibility 0s linear var(--zf-close);}
  .zs-find:is([data-open="true"],:has(> .zs-find-in:not(:placeholder-shown))){width:min(260px,34vw);transition:width var(--zf-open) var(--mo-ease-enter);}
  .zs-find:is([data-open="true"],:has(> .zs-find-in:not(:placeholder-shown))) > .zs-find-btn{border-color:transparent;transition:none;}
  .zs-find:is([data-open="true"],:has(> .zs-find-in:not(:placeholder-shown))) > .zs-find-in{visibility:visible;border-radius:var(--r-ctl,5px);transition:border-radius var(--zf-open) var(--mo-ease-enter),visibility 0s;}
  .zs-find > .zs-find-in:not(:placeholder-shown) ~ .zs-find-clr{position:absolute;top:0;right:0;z-index:1;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:var(--tap,32px);height:100%;padding:0;border:0;border-radius:var(--r-ctl,5px);background:transparent;color:var(--muted);font:inherit;cursor:pointer;}
  .zs-find > .zs-find-clr:hover{color:var(--text);}
}
@media (max-width:760px){
  .zs-find[data-open="true"]{animation:zs-find-fade var(--zf-open) var(--mo-ease-enter);}
}
/* the exception's teeth: the reduced-motion rule sets every transition to 0s !important (body.zp-suite *) - these win it for the search alone */
@media (prefers-reduced-motion:reduce){
  @media (min-width:761px){
    body.zp-suite .zs-find{transition-duration:var(--zf-close) !important;}
    body.zp-suite .zs-find:is([data-open="true"],:has(> .zs-find-in:not(:placeholder-shown))){transition-duration:var(--zf-open) !important;}
    body.zp-suite .zs-find > .zs-find-btn{transition-duration:var(--zf-close) !important;}
    body.zp-suite .zs-find > .zs-find-in{transition-duration:var(--zf-close),0s !important;}
    body.zp-suite .zs-find:is([data-open="true"],:has(> .zs-find-in:not(:placeholder-shown))) > .zs-find-in{transition-duration:var(--zf-open),0s !important;}
  }
}
@keyframes zs-find-fade{from{opacity:0;}to{opacity:1;}}
.zs-sug{position:fixed;z-index:95;box-sizing:border-box;display:none;flex-direction:column;gap:2px;max-height:min(60vh,360px);overflow-y:auto;overscroll-behavior:contain;padding:var(--sp-4);background:var(--dp-bg,#141B2D);border:1px solid var(--control-border,#6E778B);border-radius:var(--r-card,7px);box-shadow:var(--dp-shadow,0 14px 34px rgba(0,0,0,.5));font-family:var(--f-ui);font-size:13px;color:var(--text);transition:opacity var(--mo-fast) var(--mo-ease-enter);}
.zs-sug[data-open="true"]{display:flex;opacity:1;}
@starting-style{.zs-sug[data-open="true"]{opacity:0;}}
.zs-sug-o{display:flex;align-items:center;gap:var(--sp-12);min-height:var(--tap,32px);padding:0 var(--sp-8);border-radius:var(--r-ctl,5px);cursor:pointer;}
.zs-sug-o[aria-selected="true"]{background:var(--nav-active,var(--hover));}
.zs-sug-t{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text2);}
.zs-sug-t > b{font-weight:600;color:var(--text);}
.zs-sug-n{flex:none;font-size:12px;color:var(--faint);font-variant-numeric:tabular-nums;}

/* =====================================================================================================================
   ==== W25A (31/10) - THE ICON KIT: Lucide v0.454.0 (ISC, LICENSE-lucide.txt), owner decisions A1 - A5 =================
   =====================================================================================================================
   zph-icons.js holds the drawings (24 grid, stroke 1.75, currentColor, no opacity) and <z-i>; the rules for page authors are in the "9 ICONS" note in
   zph-shell.js. Sizes: 16 in rows, buttons and headers, 20 in the collapsed rail and on touch (a phone width or a coarse pointer, as the 44px targets).
   Icons take no pointer events: the event's target stays the control (a row handler that tests e.target.tagName or closest() sees the button, not a path). */
:root{--zi-s:16px;}
z-i{display:inline-flex;flex:none;vertical-align:-3px;line-height:0;}
z-i,.zi{pointer-events:none;}
.zi{flex:none;vertical-align:-3px;}
@media (max-width:760px),(pointer:coarse){
  :root{--zi-s:20px;}
  .zi:not(z-i[size] > .zi){width:20px;height:20px;}   /* an explicit size on a <z-i> stays what it says (a 16px mark beside a 12px word in a row) */
}
/* a fold: <z-i n="open"> as the direct child of the control that carries aria-expanded turns to point down when open (one chevron, not two glyphs) */
z-i[n="open"]{transition:transform .15s;}
body.zp-suite z-i[n="open"],body.zp-suite .zs-del-tg::before{transition:transform var(--mo-fast) var(--mo-ease-move);}   /* W38K MOT8 (03/11): the suite's chevrons on the shared clock (150ms before); BIM keeps .15s */
[aria-expanded="true"] > z-i[n="open"]{transform:rotate(90deg);}
/* .zs-ic is the icon-only control (with .zs-more, above): 32px, 44px on touch, the control edge. .zs-ic-q takes the edge off (a bare fold). */
.zs-ic.zs-ic-q{border-color:transparent;background:transparent;}
/* .zs-iw is icon + word on a control or in a line: centred, 6px apart */
.zs-iw{display:inline-flex;align-items:center;gap:var(--sp-8);}
/* W76 (Thomas 17/11, on an iPad: "the bottom card doesnt show"): a page whose root is 100vh tall with its overflow hidden is
   taller than an iPad's visible screen - Safari's 100vh is the height with its bars put away - so the strip at its foot (the 3D
   view's icon bar on the BIM Viewer) sat below the screen's edge. Every width now, and only elements whose own height is 100vh
   (not min- / max-height): the visible height (dvh). On a desktop dvh is vh. */
/* the suite apps' roots (Construction, Design, Owner, Planner: display flex, height 100vh) too */
[style^="height: 100vh"], [style*="; height: 100vh"] { height: 100dvh !important; }
