/* hud-skins.css — SENTARIS HUD skins (v3.9.1, 3 Oct 2026; approved in the
   HUD Skin Design Lab). Four atmospheres over the SAME product: core,
   burgundy, silver, premium-light. data-hud-skin on <html> is set by app.jsx
   from localStorage `fsw.hudskin` (per browser); the picker lives in the
   sidebar account menu. Burgundy/Silver force dark mode, Premium Light forces
   light while active — the user's Light/Auto/Dark choice stays stored.

   Architecture: each skin sets semantic --hud-* tokens, then maps the
   existing --fz-* tokens onto them, so every real component (they all read
   --fz-* / the remapped legacy tokens) re-skins with ZERO component changes.
   Core = no attribute / data-hud-skin="core" → fz-tokens.css as-is.

   Status colours stay semantic in every skin (green/amber/red/blue families);
   only decorative accent + surfaces + atmosphere change. Glass only on
   Level 1–2 surfaces, with opaque fallbacks via @supports. */

/* ───────────────────────── shared glass plumbing ───────────────────────── */
:root[data-hud-skin="burgundy"],
:root[data-hud-skin="silver"],
:root[data-hud-skin="premium-light"] {
  --hud-blur: 14px;
  --hud-radius-card: var(--fz-r-xl);
  --hud-radius-control: var(--fz-r-sm);
}
@media (prefers-reduced-motion: no-preference) {
  :root[data-hud-skin] .xcs-app { transition: background-color .2s ease, color .2s ease; }
}

/* ═══════════════ ENVIRONMENT LAYER (v3.10, 4 Oct 2026) ═══════════════════
   BUG FIXED HERE — the pixelated phone background. Up to v3.9.x every skin
   painted its image `center / cover` on body AND .xcs-main. .xcs-main is as
   tall as the whole document (≈7 800px for the client list on a 390px phone),
   so `cover` scaled the 2000×1116 JPG to the PAGE height: a 6–10× upscale,
   i.e. a smeared, blocky canvas behind every long page.

   Now each skin's environment lives on ONE fixed, viewport-sized layer:
     L0  html canvas   solid skin base (first paint, iOS overscroll)
     L1  body::before  position: fixed; top 0; 100lvh tall; z-index -1 in the
                       ROOT stacking context (body is static), so it sits under
                       every in-flow box, the silver slab (.xcs-app::before lives
                       in .xcs-app's own context), the fixed bell / FAB, modals
                       and drawers. 100lvh (fallback 100vh) = the LARGE viewport,
                       so the layer never resizes when a phone's URL bar slides.
                       Never background-attachment: fixed (iOS ignores it and it
                       repaints on every scroll frame elsewhere).
     body, .xcs-main   transparent, so nothing scales with the document height.
   Layer stack inside L1, top → bottom (8 layers, the size/position/repeat
   lists below depend on this exact count):
     1 noise    tiny inline-SVG grain (≤ .035 alpha) — breaks gradient banding
     2–4 veil   calms the photo so content reads first (skin-specific)
     5 photo    the owner-approved skin image, `cover`, viewport-sized
     6–8 ambient resolution-independent radial light: what the first paint and a
                slow network show before the photo arrives (and if it never does)
   Photo source per viewport — never a smaller file stretched over a bigger screen:
     phones             (≤767px)                                 → <skin>-portrait.webp  724×2172
     landscape default                                           → <skin>-1920.webp     1920×1072
     ≥1600px wide, ≥1080px tall, portrait tablet (768–1023),
     or ≥1.5dppx at ≥1024px                                      → <skin>-2752.webp     2752×1536
   Fallback: url(<skin>.jpg) is the base declaration; image-set(webp, jpg) only
   inside @supports — a var() holding an image-set the browser can't parse makes
   the declaration invalid at COMPUTED time (= no photo), it would not fall back. */
:root[data-hud-skin] {
  --hud-env-base: var(--fz-bg);
  --hud-env-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .045 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  --hud-env-v1: none; --hud-env-v2: none; --hud-env-v3: none;
  --hud-env-a1: none; --hud-env-a2: none; --hud-env-a3: none;
  --hud-env-jpg: none;
  --hud-env-img-p: none; --hud-env-img-l: none; --hud-env-img-xl: none;
  --hud-env-img: var(--hud-env-img-l);
  --hud-env-pos: 50% 50%;
  background: var(--hud-env-base) !important;   /* L0 — beats fz-tokens `html { … !important }` */
}
:root[data-hud-skin] body,
html[data-theme][data-hud-skin] body { background: transparent !important; }
:root[data-hud-skin] .xcs-app .xcs-main { background: transparent !important; background-image: none !important; }
/* nova.css paints a fixed green fog on .xcs-main::before in dark (also z -1, root
   context, LATER in tree order → it would sit over L1 and tint silver/burgundy
   lime). The environment carries its own ambient light now. */
:root[data-hud-skin] .xcs-main::before { content: none; }

:root[data-hud-skin] body::before {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 100vh;
  height: 100lvh;
  z-index: -1;
  pointer-events: none;
  background-color: var(--hud-env-base);
  background-image: var(--hud-env-noise), var(--hud-env-v1), var(--hud-env-v2), var(--hud-env-v3), var(--hud-env-jpg), var(--hud-env-a1), var(--hud-env-a2), var(--hud-env-a3);
  background-size: auto, auto, auto, auto, cover, auto, auto, auto;
  background-position: 0 0, 0 0, 0 0, 0 0, var(--hud-env-pos), 0 0, 0 0, 0 0;
  background-repeat: repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
}
@supports (background-image: image-set(url("assets/hud/core.jpg") type("image/jpeg"))) {
  :root[data-hud-skin] body::before {
    background-image: var(--hud-env-noise), var(--hud-env-v1), var(--hud-env-v2), var(--hud-env-v3), var(--hud-env-img), var(--hud-env-a1), var(--hud-env-a2), var(--hud-env-a3);
  }
}
/* Source picking. Order matters: the portrait rule comes last and wins.
   Refine v3.10: portrait TABLETS (768–1023 wide, e.g. 768×1024 / 834×1194 at
   2dppx) took the 724px portrait file to ~1540–1670 device px (2.1–2.3×, the
   thin arcs went soft); they now take the 2752 file (≈1.3–1.55×). The portrait
   file is the owner's ORIGINAL (HUD SKIN BG/*.png, 724×2172) — there is no
   larger source, so phones (≤767) keep it at ≈1.6× on a 3dppx screen. */
@media (min-width: 1600px), (min-width: 768px) and (min-height: 1080px),
       (min-width: 768px) and (orientation: portrait),
       (min-width: 1024px) and (min-resolution: 1.5dppx),
       (min-width: 1024px) and (-webkit-min-device-pixel-ratio: 1.5) {
  :root[data-hud-skin] { --hud-env-img: var(--hud-env-img-xl); }
}
@media (max-width: 767px) {
  :root[data-hud-skin] { --hud-env-img: var(--hud-env-img-p); }
}
@media print {
  :root[data-hud-skin] body::before { display: none; }
  :root[data-hud-skin] { background: #FFFFFF !important; }
}

/* ═════════ SKIN 00 — CORE ATMOSPHERE (owner-supplied lime glass BG) ═════════
   Core components stay EXACTLY as in production; only the canvas behind them
   gains the brand lime-glass environment, veiled so content areas stay calm.
   Refine v3.10 (judge: "too visible" — arcs reached L≈40 over an L≈8 canvas
   behind the title band, the card gaps and the 62% Batches strip):
     v1  soft lime KEY LIGHT on the top-right edge, ABOVE the veils — the
         recognisable brand glow, as a smooth gradient instead of hard arcs,
         so the page is calm but never flat
     v2  charcoal veil centred on the content column (~86% over the photo
         there, easing to ~73% at the corners) → arcs ≤ ~+12 L under content
     v3  top-to-bottom charcoal wash */
:root[data-hud-skin="core"] {
  --hud-env-v1: radial-gradient(1100px 680px at 100% -8%, rgba(163, 255, 77, .075), rgba(163, 255, 77, 0) 64%);
  --hud-env-v2: radial-gradient(ellipse 70% 80% at 58% 45%, rgba(12, 15, 14, .62), rgba(12, 15, 14, .30) 75%, rgba(12, 15, 14, .10) 100%);
  --hud-env-v3: linear-gradient(180deg, rgba(12, 15, 14, .70) 0%, rgba(12, 15, 14, .64) 35%, rgba(12, 15, 14, .70) 70%, rgba(12, 15, 14, .80) 100%);
  --hud-env-a1: radial-gradient(1100px 720px at 88% -12%, rgba(163, 255, 77, .08), transparent 62%);
  --hud-env-a2: radial-gradient(900px 640px at -6% 108%, rgba(70, 170, 90, .13), transparent 60%);
  --hud-env-a3: radial-gradient(1400px 900px at 50% 42%, rgba(255, 255, 255, .03), transparent 70%);
  --hud-env-jpg: url("assets/hud/core.jpg");
  --hud-env-img-p:  image-set(url("assets/hud/core-portrait.webp") type("image/webp"), url("assets/hud/core.jpg") type("image/jpeg"));
  --hud-env-img-l:  image-set(url("assets/hud/core-1920.webp") type("image/webp"), url("assets/hud/core.jpg") type("image/jpeg"));
  --hud-env-img-xl: image-set(url("assets/hud/core-2752.webp") type("image/webp"), url("assets/hud/core.jpg") type("image/jpeg"));
}
:root[data-hud-skin="core"] .xcs-sidebar { background: rgba(13, 16, 15, .86) !important; }

/* ══════════════════════ SKIN 01 — BURGUNDY GLASS (dark) ═════════════════ */
:root[data-hud-skin="burgundy"] {
  /* semantic hud tokens */
  --hud-bg: #120709;
  --hud-bg-secondary: #1C0C12;
  --hud-surface: #291419;            /* opaque fallback for glass cards */
  --hud-surface-glass: rgba(38, 15, 21, .50);
  --hud-surface-raised: #33191F;
  --hud-border: rgba(255, 255, 255, .08);
  --hud-border-strong: rgba(255, 255, 255, .14);
  --hud-text: #F7F2F3;
  --hud-text-secondary: #C9B6BB;
  /* fix v3.10.1: was #A18B91 — 4.1–4.5:1 on the real (glass-over-silk) pixels of
     the panels it labels; #AA959A ≥ 4.66 on all three measured panels. */
  --hud-text-muted: #AA959A;
  --hud-accent: #F46F7B;
  --hud-accent-hover: #FF7C86;
  --hud-accent-soft: rgba(244, 111, 123, .14);
  --hud-shadow: 0 2px 4px rgba(10, 2, 5, .35), 0 16px 40px -16px rgba(10, 2, 5, .65);
  --hud-glow: 0 0 0 1px rgba(255, 255, 255, .04) inset, 0 1px 0 rgba(255, 255, 255, .06) inset;

  /* map the product tokens onto the skin */
  --fz-bg: var(--hud-bg);
  --fz-sidebar: #1A0B10;
  --fz-surface-1: var(--hud-surface);
  --fz-surface-2: #2F1820;
  --fz-surface-3: #3B2029;
  --fz-surface-hover: #351B23;
  --fz-surface-sunken: #1B0C11;
  --fz-scrim: rgba(10, 3, 6, .68);
  /* v3.10: tonal hairlines (white-alpha, warm) instead of drawn wine lines */
  --fz-border: rgba(255, 220, 228, .07);
  --fz-border-strong: rgba(255, 220, 228, .13);
  --fz-focus: #FF8A93;
  --fz-text-1: var(--hud-text);
  --fz-text-2: var(--hud-text-secondary);
  --fz-text-3: var(--hud-text-muted);
  --fz-text-on-accent: #2A0B10;
  --fz-accent: var(--hud-accent);
  --fz-accent-hover: var(--hud-accent-hover);
  --fz-accent-ink: #FF9AA3;
  --fz-accent-soft: var(--hud-accent-soft);
  --fz-accent-line: rgba(244, 111, 123, .55);
  /* status: semantic hues kept; crit pushed BRIGHTER than the decoration so
     the red list still reads as the emergency, not as more burgundy (§24). */
  --fz-ok: #4FC98D;   --fz-ok-soft: rgba(79, 201, 141, .15);   --fz-ok-ink: #8BE2B8;
  --fz-warn: #ECAC3E; --fz-warn-soft: rgba(236, 172, 62, .15); --fz-warn-ink: #F5C97A;
  --fz-crit: #FF6B5A; --fz-crit-soft: rgba(255, 107, 90, .17); --fz-crit-ink: #FFA296;
  --fz-info: #6FA4EC; --fz-info-soft: rgba(111, 164, 236, .16);--fz-info-ink: #A9CAF8;
  --fz-violet: #B18BF2; --fz-violet-soft: rgba(177, 139, 242, .16); --fz-violet-ink: #CDB4FA;
  --fz-neutral: #A08B90; --fz-neutral-soft: rgba(160, 139, 144, .15); --fz-neutral-ink: #C8B7BB;
  --fz-shadow-soft: var(--hud-shadow);
  --fz-shadow-pop: 0 6px 18px rgba(10, 2, 5, .40), 0 32px 72px -20px rgba(10, 2, 5, .80);
  /* Swiss-leaning type (§7) — system stack only, no bundled fonts */
  --fz-font-display: "Helvetica Neue", Helvetica, Arial, system-ui, -apple-system, "Segoe UI", sans-serif;
}
/* environment (see ENVIRONMENT LAYER): the rose key light stays ABOVE the veil
   (it is part of the approved look), the wine wash calms the centre column.
   Refine v3.10: same principle as Core, lightly — centre veil .28 → .40 and
   the wash one notch up, so the silk arcs read at the edges, not under text. */
:root[data-hud-skin="burgundy"] {
  --hud-env-v1: radial-gradient(900px 620px at 12% -8%, rgba(228, 66, 98, .16), transparent 62%);
  --hud-env-v2: radial-gradient(ellipse 72% 70% at 56% 46%, rgba(16, 6, 9, .40), rgba(16, 6, 9, .12) 78%, rgba(16, 6, 9, 0) 100%);
  --hud-env-v3: linear-gradient(180deg, rgba(16, 6, 9, .46) 0%, rgba(16, 6, 9, .50) 55%, rgba(16, 6, 9, .60) 100%);
  --hud-env-a1: radial-gradient(1000px 700px at 10% -10%, rgba(228, 66, 98, .16), transparent 62%);
  --hud-env-a2: radial-gradient(900px 640px at 100% 104%, rgba(170, 40, 70, .14), transparent 60%);
  --hud-env-a3: radial-gradient(1400px 900px at 50% 42%, rgba(255, 220, 225, .02), transparent 70%);
  --hud-env-jpg: url("assets/hud/burgundy.jpg");
  --hud-env-img-p:  image-set(url("assets/hud/burgundy-portrait.webp") type("image/webp"), url("assets/hud/burgundy.jpg") type("image/jpeg"));
  --hud-env-img-l:  image-set(url("assets/hud/burgundy-1920.webp") type("image/webp"), url("assets/hud/burgundy.jpg") type("image/jpeg"));
  --hud-env-img-xl: image-set(url("assets/hud/burgundy-2752.webp") type("image/webp"), url("assets/hud/burgundy.jpg") type("image/jpeg"));
}
@supports (backdrop-filter: blur(1px)) {
  :root[data-hud-skin="burgundy"] .fsw-card,
  :root[data-hud-skin="burgundy"] .fz-panel {
    border-color: transparent;
    /* glass sheet + specular rim: inner layer is the frosted fill, the
       border-box gradient is the light catching the top edge of the glass */
    background:
      linear-gradient(var(--hud-surface-glass), var(--hud-surface-glass)) padding-box,
      linear-gradient(150deg, rgba(255, 210, 215, .38), rgba(255, 255, 255, .06) 30%, rgba(255, 255, 255, 0) 58%, rgba(244, 111, 123, .42)) border-box;
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .14),
      0 28px 70px -26px rgba(8, 1, 4, .85),
      0 0 60px -8px rgba(244, 111, 123, .34);
  }
  :root[data-hud-skin="burgundy"] .fz-metric {
    border-color: transparent;
    background:
      linear-gradient(rgba(47, 24, 32, .72), rgba(47, 24, 32, .72)) padding-box,
      linear-gradient(150deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .04) 36%, rgba(244, 111, 123, .20)) border-box;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 14px 34px -16px rgba(10, 2, 5, .70), 0 0 30px -10px rgba(244, 111, 123, .18);
  }
}
/* Glass sidebar. fz-shell.css §2 resets EVERY sidebar to an opaque surface —
   `background` / `backdrop-filter: none` at (0,3,0) !important, and the
   `border-right` hairline at (0,4,0) !important (its :not([data-hud-skin=
   "silver"]) rule) — which silently killed this pane in v3.10; restated at
   (0,4,0) !important (later file, so it wins the border tie too).
   Desktop only: on phones the sidebar is the slide-over drawer and must stay
   opaque (fz-shell's (0,5,0) phone rule wins there anyway). */
@media (min-width: 769px) {
  @supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
    :root[data-hud-skin="burgundy"] .xcs-app .xcs-sidebar {
      background: rgba(24, 9, 14, .66) !important;
      backdrop-filter: blur(22px) saturate(140%) !important;
      -webkit-backdrop-filter: blur(22px) saturate(140%) !important;
      border-right: 1px solid rgba(255, 170, 180, .10) !important;
    }
  }
}
:root[data-hud-skin="burgundy"] .fsw-avatar.has-photo { box-shadow: 0 0 0 1px rgba(255, 170, 160, .28); }
/* Current-step segment: the coral accent read as one more red "late" signal
   beside the Red pills on a client card. A neutral bright rose-white marks
   "you are here" instead; the legend dot follows its segment. */
:root[data-hud-skin="burgundy"] .fz-seg.is-accent,
:root[data-hud-skin="burgundy"] .fz-seglegend-dot.is-accent { background: #F3E3E7; box-shadow: none; }
/* Photo-less covers: the Core palette (sage / teal / plum / moss / pine /
   jade) clashed with the wine canvas. Same deep 3-stop build, warm family. */
:root[data-hud-skin="burgundy"] :is(.fz-cover, .fz-tone).is-p0 { --fz-cover-bg: linear-gradient(150deg, #3C1D26 0%, #27121A 58%, #1B0C12 100%); --fz-cover-ink: #F2D7DE; }  /* wine      */
:root[data-hud-skin="burgundy"] :is(.fz-cover, .fz-tone).is-p1 { --fz-cover-bg: linear-gradient(150deg, #3E2427 0%, #29171A 58%, #1C0F11 100%); --fz-cover-ink: #F3DCDB; }  /* rosewood  */
:root[data-hud-skin="burgundy"] :is(.fz-cover, .fz-tone).is-p2 { --fz-cover-bg: linear-gradient(150deg, #382131 0%, #241520 58%, #180E16 100%); --fz-cover-ink: #ECD6E6; }  /* mulberry  */
:root[data-hud-skin="burgundy"] :is(.fz-cover, .fz-tone).is-p3 { --fz-cover-bg: linear-gradient(150deg, #3B2B21 0%, #271C15 58%, #1A130E 100%); --fz-cover-ink: #EFE0D3; }  /* umber     */
:root[data-hud-skin="burgundy"] :is(.fz-cover, .fz-tone).is-p4 { --fz-cover-bg: linear-gradient(150deg, #421B21 0%, #2B1116 58%, #1D0B0F 100%); --fz-cover-ink: #F6D5D8; }  /* oxblood   */
:root[data-hud-skin="burgundy"] :is(.fz-cover, .fz-tone).is-p5 { --fz-cover-bg: linear-gradient(150deg, #34292B 0%, #221A1C 58%, #171113 100%); --fz-cover-ink: #E9DDDF; }  /* taupe     */

/* ══════════════════════ SKIN 02 — SILVER GLASS (dark) ═══════════════════
   v3 material: ONE smoked-glass slab floating in a chrome environment.
   Layering: body = environment (chrome image + soft light sources, barely
   veiled) → .xcs-app::before = the glass slab (the ONLY big backdrop blur;
   a pseudo so position:fixed children keep their containing block) → cards
   are thinner smoked panes with NO own blur (the slab already blurred the
   world) → nested rows more opaque for reading. */
:root[data-hud-skin="silver"] {
  --hud-bg: #0A0B0B;
  --hud-bg-secondary: #0C0E0E;
  --hud-surface: #1A1D1D;
  --hud-surface-glass: rgba(28, 31, 31, .48);
  --hud-surface-raised: #232727;
  --hud-border: rgba(235, 240, 240, .11);
  --hud-border-strong: rgba(235, 240, 240, .18);
  --hud-text: #F5F7F6;
  --hud-text-secondary: #A7ADAA;
  /* v3.10: was #828987 = 4.4:1 on surface-3. fix v3.10.1: #8A918E still measured
     3.5–4.4:1 on the real pixels (the slab and panes are translucent, so the
     bright chrome shows through); #9AA19E = 5.0:1 on rgb(47,48,50), still a
     clear step below text-2 #A7ADAA. */
  --hud-text-muted: #9AA19E;
  --hud-accent: #E8EDEB;
  --hud-accent-hover: #FFFFFF;
  --hud-accent-soft: rgba(230, 235, 234, .12);
  --hud-shadow: 0 1px 0 rgba(255, 255, 255, .09) inset, 0 -1px 0 rgba(0, 0, 0, .25) inset, 0 16px 35px rgba(0, 0, 0, .30);
  --hud-glow: 0 0 0 transparent;
  --hud-bg-image: url("assets/hud/silver.jpg");

  --fz-bg: var(--hud-bg);
  --fz-sidebar: #101212;
  --fz-surface-1: var(--hud-surface);
  --fz-surface-2: rgba(22, 25, 25, .70);
  --fz-surface-3: rgba(36, 40, 40, .74);
  --fz-surface-hover: rgba(30, 34, 34, .72);
  --fz-surface-sunken: rgba(10, 12, 12, .55);
  --fz-scrim: rgba(3, 4, 4, .72);
  --fz-border: rgba(235, 240, 240, .10);
  --fz-border-strong: rgba(235, 240, 240, .18);
  --fz-focus: #EDF3F1;
  --fz-text-1: var(--hud-text);
  --fz-text-2: var(--hud-text-secondary);
  --fz-text-3: var(--hud-text-muted);
  --fz-text-on-accent: #101313;
  --fz-accent: var(--hud-accent);
  --fz-accent-hover: var(--hud-accent-hover);
  --fz-accent-ink: #EAF0EE;
  --fz-accent-soft: var(--hud-accent-soft);
  --fz-accent-line: rgba(225, 232, 230, .40);
  /* operational colours unchanged (Core dark values) */
  --fz-shadow-soft: var(--hud-shadow);
  --fz-shadow-pop: 0 8px 22px rgba(0, 0, 0, .46), 0 36px 80px -20px rgba(0, 0, 0, .85);
  --fz-font-display: "Helvetica Neue", Helvetica, Arial, system-ui, -apple-system, "Segoe UI", sans-serif;
}
/* LAYER 0+1+2 — neutral graphite env, BIG visible chrome, soft reflected light.
   Barely veiled on purpose: the slab below is what calms it (ENVIRONMENT LAYER). */
:root[data-hud-skin="silver"] {
  --hud-env-v1: linear-gradient(180deg, rgba(8, 9, 9, .08), rgba(8, 9, 9, .20));
  --hud-env-a1: radial-gradient(1000px 700px at 86% -8%, rgba(235, 243, 243, .07), transparent 62%);
  --hud-env-a2: radial-gradient(900px 640px at 4% 104%, rgba(215, 225, 225, .05), transparent 60%);
  --hud-env-a3: radial-gradient(1400px 900px at 50% 42%, rgba(255, 255, 255, .02), transparent 70%);
  --hud-env-jpg: url("assets/hud/silver.jpg");
  --hud-env-img-p:  image-set(url("assets/hud/silver-portrait.webp") type("image/webp"), url("assets/hud/silver.jpg") type("image/jpeg"));
  --hud-env-img-l:  image-set(url("assets/hud/silver-1920.webp") type("image/webp"), url("assets/hud/silver.jpg") type("image/jpeg"));
  --hud-env-img-xl: image-set(url("assets/hud/silver-2752.webp") type("image/webp"), url("assets/hud/silver.jpg") type("image/jpeg"));
}
/* LAYER 3 — the main glass slab, floating with environment visible around it */
:root[data-hud-skin="silver"] .xcs-app {
  position: relative; z-index: 0;
  margin: 20px; border-radius: 26px;
  /* v3.10: `clip`, not `hidden` — hidden made .xcs-app a scroll container, so the
     sticky sidebar (desktop) and the sticky phone top bar scrolled AWAY in silver.
     clip still rounds the slab corners but creates no scroller. */
  overflow: hidden;
  overflow: clip;
  background: transparent;
}
@media (max-width: 768px) { :root[data-hud-skin="silver"] .xcs-app { margin: 0; border-radius: 0; } }
:root[data-hud-skin="silver"] .xcs-app::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  /* fog → localized reflections → smoked tint; blur lives HERE only */
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, 0) 42%),
    radial-gradient(640px 420px at 88% 2%, rgba(255, 255, 255, .085), transparent 62%),
    radial-gradient(520px 380px at 96% 86%, rgba(225, 235, 235, .06), transparent 64%),
    radial-gradient(560px 360px at 40% 108%, rgba(235, 243, 243, .05), transparent 66%),
    linear-gradient(rgba(19, 21, 21, .44), rgba(19, 21, 21, .44)) padding-box,
    linear-gradient(120deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .03) 18%, rgba(255, 255, 255, .01) 72%, rgba(215, 225, 225, .12)) border-box;
  border: 1px solid transparent;
  backdrop-filter: blur(26px) saturate(122%);
  -webkit-backdrop-filter: blur(26px) saturate(122%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .16) inset,
    0 -1px 0 rgba(0, 0, 0, .30) inset,
    0 30px 80px rgba(0, 0, 0, .40);
}
@supports not (backdrop-filter: blur(1px)) {
  :root[data-hud-skin="silver"] .xcs-app::before { background: linear-gradient(135deg, rgba(255,255,255,.03), transparent 40%), #141717; }
}
/* Phones/tablets ≤768: the slab has no margin or radius there, so it does not
   need to be as tall as the document (it was ≈10 400px on Clients at 390 —
   a 10k-px backdrop blur, with its highlights scrolling away). It becomes a
   FIXED, viewport-sized pane like the environment layer under it: still a
   pseudo-element (fixed children keep the viewport as containing block), and
   .xcs-app's `overflow: clip` does not clip it (its containing block is the
   viewport, not .xcs-app). */
@media (max-width: 768px) {
  :root[data-hud-skin="silver"] .xcs-app::before {
    position: fixed;
    inset: 0 0 auto 0;
    height: 100vh;
    height: 100lvh;
    border-width: 0;
  }
}
/* The slab floats 20px inside the window on desktop, but the fixed bell /
   assistant / notification panel are placed from the WINDOW edge (bell
   top 16 right 20, panel top 70 right 16, FAB right 16 bottom 18), so the bell
   sat across the slab's rounded corner. Silver only, desktop only: each moves
   in by the slab margin, which keeps it inside the slab's own 70/84px right
   rail and level with the Jump field (top 20 + 16). Size / z-index untouched. */
@media (min-width: 769px) {
  :root[data-hud-skin="silver"] .xcs-notif-bell { top: 36px; right: 40px; }
  :root[data-hud-skin="silver"] .xcs-notif-panel { top: 90px; right: 36px; }
  :root[data-hud-skin="silver"] .fsw-assist-fab { right: 36px; bottom: 38px; }
  /* fix v3.10.1: the sticky sidebar (styles.css: top 0, 100vh) starts 20px down
     inside the slab, so at scroll 0 its last 20px — the account button's lower
     edge — sat below the fold. It now sticks at the slab inset and is 40px
     shorter, so the account row is whole at every scroll position. */
  :root[data-hud-skin="silver"] .xcs-app .xcs-sidebar {
    top: 20px;
    height: calc(100vh - 40px);
    height: calc(100dvh - 40px);
  }
}
/* sidebar is part of the slab — smoked, the chrome faintly behind it */
:root[data-hud-skin="silver"] .xcs-app .xcs-sidebar {
  background: rgba(15, 17, 17, .52) !important;
  border-right: 1px solid rgba(255, 255, 255, .10);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, .05);
}
/* LAYER 3.5 — panes: NO own blur (the slab blurred the env already) */
:root[data-hud-skin="silver"] .fsw-card,
:root[data-hud-skin="silver"] .fz-panel {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--hud-surface-glass), var(--hud-surface-glass)) padding-box,
    linear-gradient(145deg, rgba(255, 255, 255, .20), rgba(255, 255, 255, .04) 26%, rgba(255, 255, 255, .01) 64%, rgba(0, 0, 0, .30)) border-box;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .09) inset,
    0 -1px 0 rgba(0, 0, 0, .26) inset,
    0 16px 35px rgba(0, 0, 0, .28);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
/* major analytical modules show MORE environment than ordinary cards */
:root[data-hud-skin="silver"] .fz-panel { background:
    linear-gradient(rgba(24, 27, 27, .42), rgba(24, 27, 27, .42)) padding-box,
    linear-gradient(145deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .05) 26%, rgba(255, 255, 255, .01) 64%, rgba(0, 0, 0, .30)) border-box; }
:root[data-hud-skin="silver"] .fz-metric {
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(26, 29, 29, .55), rgba(26, 29, 29, .55)) padding-box,
    linear-gradient(145deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .03) 32%, rgba(0, 0, 0, .26)) border-box;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 -1px 0 rgba(0, 0, 0, .22) inset, 0 10px 24px rgba(0, 0, 0, .24);
}
/* active nav = small raised silver-glass control, NOT a solid accent slab */
:root[data-hud-skin="silver"] .xcs-app .xcs-sidebar .fz-nav-it.is-active {
  background: linear-gradient(180deg, rgba(235, 240, 239, .16), rgba(230, 235, 234, .10)) !important;
  border: 1px solid rgba(255, 255, 255, .16);
  color: #F5F7F6 !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 2px 6px rgba(0, 0, 0, .35);
}
:root[data-hud-skin="silver"] .xcs-app .xcs-sidebar .fz-nav-it.is-active .fz-nav-ic { color: #F5F7F6 !important; }
:root[data-hud-skin="silver"] .xcs-app .xcs-sidebar .fz-nav-it.is-active .fz-nav-n:not(.is-red) { background: rgba(255, 255, 255, .18); color: #F5F7F6 !important; }
/* tactile silver hardware: primary CTA + the floating assistant button (colour only) */
:root[data-hud-skin="silver"] .xcs-btn-primary {
  background: linear-gradient(180deg, #FFFFFF 0%, #C9D1CF 100%);
  color: #101313;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .85) inset, 0 -1px 0 rgba(0, 0, 0, .14) inset, 0 1px 2px rgba(0, 0, 0, .35), 0 7px 18px rgba(0, 0, 0, .35);
}
:root[data-hud-skin="silver"] .xcs-btn-primary:hover { transform: translateY(-1px); background: linear-gradient(180deg, #FFFFFF 0%, #D7DEDC 100%); }
:root[data-hud-skin="silver"] .xcs-btn-primary:active { transform: translateY(1px); filter: none; box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 1px 2px rgba(0, 0, 0, .3); }
/* fz-base.css clears button shadows on focus (one outline ring everywhere);
   the silver hardware keeps its body while the ring shows. */
:root[data-hud-skin="silver"] .xcs-btn-primary:focus-visible { box-shadow: 0 1px 0 rgba(255, 255, 255, .85) inset, 0 -1px 0 rgba(0, 0, 0, .14) inset, 0 1px 2px rgba(0, 0, 0, .35), 0 7px 18px rgba(0, 0, 0, .35) !important; }
/* Desktop only: ≤768 the assistant is a plain icon in the phone top bar
   (nova-shell §12) — the white 44px disc there was the brightest object on
   the screen, louder than the page's own Add button. */
@media (min-width: 769px) {
  :root[data-hud-skin="silver"] .fsw-assist-fab {
    background: linear-gradient(180deg, #FFFFFF, #BEC6C4) !important;
    color: #101313 !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 8px 22px rgba(0, 0, 0, .5) !important;
  }
}
/* smoked-glass capsule search — the desktop TOP-BAR capsule only (fz-shell
   §1b makes that wrapper the pill). fix v3.10.1: unscoped, this also painted
   the page-head "Jump to client…" wrapper (≤768, e.g. Today), whose wrapper is
   square — only its INPUT is a pill (fz-base) — so a square frame showed
   behind the rounded field. (0,4,0) still beats fz-shell's (0,2,0)/(0,3,0). */
:root[data-hud-skin="silver"] .fz-topbar .fsw-jump {
  background: rgba(14, 16, 16, .40);
  border: 1px solid rgba(235, 243, 243, .14);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .10) inset, 0 2px 6px rgba(0, 0, 0, .30);
}
/* floating layer: more opaque, its own small blur is fine */
:root[data-hud-skin="silver"] .fsw-menu,
:root[data-hud-skin="silver"] .fz-pop,
:root[data-hud-skin="silver"] .fsw-modal,
:root[data-hud-skin="silver"] .fsw-drawer {
  background: rgba(20, 23, 23, .90);
  border: 1px solid rgba(255, 255, 255, .15);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset, 0 28px 70px rgba(0, 0, 0, .55);
}
@media (prefers-reduced-motion: no-preference) {
  :root[data-hud-skin="silver"] .xcs-btn-primary,
  :root[data-hud-skin="silver"] .fsw-card.is-click,
  :root[data-hud-skin="silver"] .fz-metric.is-click { transition: transform .16s ease, box-shadow .16s ease; }
  :root[data-hud-skin="silver"] .fsw-card.is-click:hover,
  :root[data-hud-skin="silver"] .fz-metric.is-click:hover { transform: translateY(-2px); }
}
:root[data-hud-skin="silver"] .fsw-avatar.has-photo { box-shadow: 0 0 0 1px rgba(235, 240, 240, .30); }
/* Photo-less covers (fix v3.10.1): Silver fell through to Core's saturated dark
   palette (bronze / plum / olive / navy / teal) — the loudest colour on a
   monochrome graphite-and-chrome skin, and with no client photos yet it is
   every card. Same deep 3-stop build as Burgundy, in a graphite / steel family:
   one material, the six slots still tell neighbouring cards apart. */
:root[data-hud-skin="silver"] :is(.fz-cover, .fz-tone).is-p0 { --fz-cover-bg: linear-gradient(150deg, #3A3F3F 0%, #262A2A 58%, #1A1D1D 100%); --fz-cover-ink: #E6ECEA; }  /* graphite  */
:root[data-hud-skin="silver"] :is(.fz-cover, .fz-tone).is-p1 { --fz-cover-bg: linear-gradient(150deg, #343B42 0%, #23292E 58%, #181C20 100%); --fz-cover-ink: #DDE5EC; }  /* steel     */
:root[data-hud-skin="silver"] :is(.fz-cover, .fz-tone).is-p2 { --fz-cover-bg: linear-gradient(150deg, #3D3A37 0%, #292725 58%, #1C1B1A 100%); --fz-cover-ink: #ECE6E0; }  /* warm grey */
:root[data-hud-skin="silver"] :is(.fz-cover, .fz-tone).is-p3 { --fz-cover-bg: linear-gradient(150deg, #353A40 0%, #24282C 58%, #191B1E 100%); --fz-cover-ink: #E1E6EC; }  /* gunmetal  */
:root[data-hud-skin="silver"] :is(.fz-cover, .fz-tone).is-p4 { --fz-cover-bg: linear-gradient(150deg, #2F3536 0%, #202425 58%, #161919 100%); --fz-cover-ink: #DCE4E3; }  /* slate     */
:root[data-hud-skin="silver"] :is(.fz-cover, .fz-tone).is-p5 { --fz-cover-bg: linear-gradient(150deg, #403F42 0%, #2B2A2D 58%, #1D1C1F 100%); --fz-cover-ink: #E9E7EC; }  /* pewter    */

/* ═══════════════════ SKIN 03 — PREMIUM LIGHT (light) ════════════════════
   v3 material: a real depth system. L0 near-white studio-lit canvas (the
   liquid-glass field is veiled until it is felt, not seen) → L1 frosted
   sidebar → L2 raised translucent cards with top-edge light, contact +
   ambient shadow and a colored bounce beneath → L3 tactile controls (lift
   on hover, compress on press; inputs sit INSET) → L4 floating surfaces. */
:root[data-hud-skin="premium-light"] {
  --hud-bg: #F7F8FB;
  --hud-bg-secondary: #FAFAFC;
  --hud-surface: #FFFFFF;
  --hud-surface-glass: rgba(255, 255, 255, .74);
  --hud-surface-raised: rgba(255, 255, 255, .84);
  --hud-border: rgba(30, 40, 45, .08);
  --hud-border-strong: rgba(30, 40, 45, .16);
  --hud-text: #151719;
  /* v3.10: muted #6E7579 measured 4.0:1 on surface-3 and 4.4:1 on the canvas;
     both steps darkened one notch. fix v3.10.1: #62696D still read 4.32–4.35:1
     where page subtitles sit — the canvas behind the header is ≈rgb(233,224,229)
     (pink veil), not #F7F8FB — so one more notch: #5A6165 = 4.88:1 there,
     5.4:1 on surface-3, 6.3:1 on white. */
  --hud-text-secondary: #50575B;
  --hud-text-muted: #5A6165;
  /* fix v3.10.1: the accent is a FILL under white text (--fz-text-on-accent):
     #7276EA + white was 3.82:1 and the lighter hover #8588F2 3.09:1. #5B5EDB =
     5.16:1; hover goes DARKER (#5053D0, 6.02:1), never lighter. Tints that carry
     no text (accent-soft / accent-line / progress fill) keep the old periwinkle. */
  --hud-accent: #5B5EDB;
  --hud-accent-hover: #5053D0;
  --hud-accent-soft: rgba(111, 114, 232, .12);
  --hud-blur: 16px;
  /* depth tokens — reused, never reinvented per component */
  --light-shadow-contact: 0 2px 4px rgba(30, 40, 60, .05);
  --light-shadow-card:
    inset 0 1px 1px rgba(255, 255, 255, .85),
    inset 0 -1px 1px rgba(20, 30, 45, .045),
    0 2px 4px rgba(30, 40, 60, .05),
    0 14px 34px rgba(40, 45, 70, .09);
  --light-shadow-raised:
    inset 0 1px 1px rgba(255, 255, 255, .95),
    inset 0 -1px 1px rgba(20, 30, 45, .05),
    0 2px 5px rgba(30, 40, 60, .06),
    0 18px 44px rgba(40, 45, 70, .11),
    0 26px 48px -18px rgba(95, 130, 255, .16),
    0 20px 44px -20px rgba(255, 140, 185, .13);
  --light-shadow-floating:
    0 2px 6px rgba(30, 40, 60, .08),
    0 26px 64px rgba(40, 45, 70, .20);
  --light-reflection-blue: rgba(95, 130, 255, .14);
  --light-reflection-violet: rgba(157, 120, 255, .13);
  --light-reflection-pink: rgba(255, 140, 185, .12);
  --hud-shadow: var(--light-shadow-card);
  --hud-glow: inset 0 1px 1px rgba(255, 255, 255, .85);

  --fz-bg: var(--hud-bg);
  --fz-sidebar: #FBFBFD;
  --fz-surface-1: var(--hud-surface);
  --fz-surface-2: #F3F4F8;
  --fz-surface-3: #EBEDF4;
  --fz-surface-hover: #F4F5FA;
  --fz-surface-sunken: #F1F2F7;
  --fz-scrim: rgba(22, 24, 38, .36);
  --fz-border: #E6E8EF;
  --fz-border-strong: #D1D4E0;
  --fz-focus: #4F52C9;
  --fz-text-1: var(--hud-text);
  --fz-text-2: var(--hud-text-secondary);
  --fz-text-3: var(--hud-text-muted);
  --fz-text-on-accent: #FFFFFF;
  --fz-accent: var(--hud-accent);
  --fz-accent-hover: var(--hud-accent-hover);
  --fz-accent-ink: #4F52C9;
  --fz-accent-soft: var(--hud-accent-soft);
  --fz-accent-line: rgba(111, 114, 232, .45);
  --fz-shadow-soft: var(--light-shadow-card);
  --fz-shadow-pop: var(--light-shadow-floating);
  --fz-font-display: "Helvetica Neue", Helvetica, Arial, system-ui, -apple-system, "Segoe UI", sans-serif;
}
/* L0 — almost-white studio lighting; the liquid field is felt at the corners.
   Same three veils as v3.9.1, now on the fixed environment layer; the grain is
   a DARK one here (white grain vanishes on a light canvas). */
:root[data-hud-skin="premium-light"] {
  --hud-env-base: #F7F8FB;
  --hud-env-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .22 0 0 0 0 .3 0 0 0 .03 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  --hud-env-v1: radial-gradient(circle at 15% 5%, rgba(118, 144, 255, .06), transparent 32%);
  /* refine v3.10: centre pearl veil .52 → .60 (same principle as Core, lightly) */
  --hud-env-v2: radial-gradient(1000px 680px at 54% 44%, rgba(250, 249, 251, .60), transparent 74%);
  --hud-env-v3: linear-gradient(rgba(249, 248, 251, .42), rgba(249, 248, 251, .60));
  --hud-env-a1: radial-gradient(1000px 700px at 12% -8%, rgba(118, 144, 255, .10), transparent 60%);
  --hud-env-a2: radial-gradient(900px 640px at 96% 104%, rgba(255, 150, 190, .10), transparent 60%);
  --hud-env-a3: radial-gradient(1400px 900px at 50% 42%, rgba(255, 255, 255, .70), transparent 70%);
  --hud-env-jpg: url("assets/hud/light.jpg");
  --hud-env-img-p:  image-set(url("assets/hud/light-portrait.webp") type("image/webp"), url("assets/hud/light.jpg") type("image/jpeg"));
  --hud-env-img-l:  image-set(url("assets/hud/light-1920.webp") type("image/webp"), url("assets/hud/light.jpg") type("image/jpeg"));
  --hud-env-img-xl: image-set(url("assets/hud/light-2752.webp") type("image/webp"), url("assets/hud/light.jpg") type("image/jpeg"));
}
/* L1 — frosted sidebar panel sitting on the canvas. v3.10: fz-shell.css §2
   resets every sidebar with !important — backdrop-filter none + opaque fill at
   (0,3,0), hairline + no shadow at (0,4,0) — so the frost/shadow below carry
   !important too (this rule is (0,4,0), later file); desktop only — the phone
   drawer stays opaque. */
@supports (backdrop-filter: blur(1px)) {
  :root[data-hud-skin="premium-light"] .xcs-app .xcs-sidebar {
    background: rgba(249, 250, 252, .72) !important;
  }
}
@media (min-width: 769px) {
  @supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
    :root[data-hud-skin="premium-light"] .xcs-app .xcs-sidebar {
      backdrop-filter: blur(18px) saturate(125%) !important;
      -webkit-backdrop-filter: blur(18px) saturate(125%) !important;
    }
  }
  :root[data-hud-skin="premium-light"] .xcs-app .xcs-sidebar {
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, .9), 10px 0 30px rgba(50, 55, 80, .05) !important;
    border-right: 1px solid rgba(30, 40, 45, .06) !important;
  }
}
/* L2 — default cards: frosted, lit from the top-left, colored bounce below */
:root[data-hud-skin="premium-light"] .fsw-card,
:root[data-hud-skin="premium-light"] .fz-metric {
  border: 1px solid transparent;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, .62) 55%, rgba(255, 255, 255, .72)) padding-box,
    linear-gradient(150deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .55) 40%, rgba(214, 216, 255, .55) 75%, rgba(255, 190, 215, .45)) border-box;
  box-shadow: var(--light-shadow-card), 0 16px 36px -18px var(--light-reflection-blue), 0 14px 32px -18px var(--light-reflection-pink);
}
/* L2.5 — major analytical modules: brighter, stronger separation + reflection */
:root[data-hud-skin="premium-light"] .fz-panel {
  border: 1px solid transparent;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .70) 55%, rgba(255, 255, 255, .80)) padding-box,
    linear-gradient(150deg, #FFFFFF, rgba(255, 255, 255, .60) 38%, rgba(214, 216, 255, .60) 72%, rgba(255, 190, 215, .50)) border-box;
  box-shadow: var(--light-shadow-raised);
}
@supports (backdrop-filter: blur(1px)) {
  :root[data-hud-skin="premium-light"] .fsw-card,
  :root[data-hud-skin="premium-light"] .fz-panel {
    backdrop-filter: blur(var(--hud-blur)) saturate(128%);
    -webkit-backdrop-filter: blur(var(--hud-blur)) saturate(128%);
  }
}
/* semantic light: metric tones reflect their state from BENEATH, not by tint */
:root[data-hud-skin="premium-light"] .fz-metric.is-crit { box-shadow: var(--light-shadow-card), 0 16px 32px -14px rgba(217, 67, 61, .22); }
:root[data-hud-skin="premium-light"] .fz-metric.is-warn { box-shadow: var(--light-shadow-card), 0 16px 32px -14px rgba(194, 124, 12, .20); }
:root[data-hud-skin="premium-light"] .fz-metric.is-ok   { box-shadow: var(--light-shadow-card), 0 16px 32px -14px rgba(30, 154, 90, .18); }
/* L3 — tactile controls. Primary CTA = physical button. fix v3.10.1: the
   gradient follows the darker accent — top stop was #898CF6 (2.94:1 under the
   white label), now #6366E0 → #5558D6 = 4.66 → 5.6:1. */
:root[data-hud-skin="premium-light"] .xcs-btn-primary {
  background: linear-gradient(180deg, #6366E0 0%, #5558D6 100%);
  color: #FFFFFF;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .45) inset,
    0 -1px 0 rgba(40, 45, 120, .22) inset,
    0 1px 2px rgba(30, 35, 90, .14),
    0 7px 18px rgba(90, 95, 220, .28);
}
:root[data-hud-skin="premium-light"] .xcs-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 -1px 0 rgba(40, 45, 120, .22) inset, 0 2px 3px rgba(30, 35, 90, .14), 0 10px 24px rgba(90, 95, 220, .34); }
:root[data-hud-skin="premium-light"] .xcs-btn-primary:active { transform: translateY(1px); filter: none; box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset, 0 1px 2px rgba(30, 35, 90, .16), 0 3px 8px rgba(90, 95, 220, .22); }
:root[data-hud-skin="premium-light"] .xcs-btn-primary:focus-visible { box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset, 0 -1px 0 rgba(40, 45, 120, .22) inset, 0 1px 2px rgba(30, 35, 90, .14), 0 7px 18px rgba(90, 95, 220, .28) !important; }
/* fix v3.10.1: the border was white .85 — on a white panel (client detail:
   Edit details, Notes, Change PIC …) the button had no edge at all (≈1.0:1).
   It now takes the skin's strong hairline, like the ghost buttons in every
   other skin; the fill stays as it was, so border-less ghost rows (menus set
   border: 0) look exactly the same. */
:root[data-hud-skin="premium-light"] .xcs-btn-ghost {
  background: rgba(255, 255, 255, .58);
  border-color: var(--fz-border-strong);
  box-shadow: inset 0 1px 0 #FFFFFF, var(--light-shadow-contact);
}
:root[data-hud-skin="premium-light"] .xcs-btn-ghost:hover { background: rgba(255, 255, 255, .85); box-shadow: inset 0 1px 0 #FFFFFF, 0 3px 8px rgba(30, 40, 60, .09); }
/* selected pills / toggles rise; unselected stay low */
:root[data-hud-skin="premium-light"] .fsw-tog.is-on,
:root[data-hud-skin="premium-light"] .fz-fpill.is-on {
  background: rgba(255, 255, 255, .95);
  border-color: rgba(255, 255, 255, .95);
  box-shadow: inset 0 1px 0 #FFFFFF, 0 2px 4px rgba(30, 40, 60, .07), 0 8px 18px -8px var(--light-reflection-violet);
  transform: translateY(-1px);
}
/* active nav (refine v3.10): premium-light keeps its OWN tinted pill (fz-shell
   §6 is neutral — a text-1 wash, no tint, no rim): a periwinkle tint, text-1
   label, accent-ink icon, a faint accent rim, plus the skin's lit top edge.
   Was a solid periwinkle slab with white text, the one loud block left in the
   sidebar. The neutral counter on it becomes the one solid dot (accent-ink +
   white, 6.2:1). */
:root[data-hud-skin="premium-light"] .xcs-app .xcs-sidebar .fz-nav-it.is-active,
:root[data-hud-skin="premium-light"] .xcs-app .xcs-sidebar .fz-nav-it.is-active:hover,
:root[data-hud-skin="premium-light"] .xcs-app .xcs-sidebar .fz-nav-it.is-active:active {
  background: linear-gradient(180deg, rgba(111, 114, 232, .15) 0%, rgba(111, 114, 232, .11) 100%) !important;
  color: var(--fz-text-1) !important;
  box-shadow: inset 0 0 0 1px rgba(111, 114, 232, .18), inset 0 1px 0 rgba(255, 255, 255, .65);
}
:root[data-hud-skin="premium-light"] .xcs-app .xcs-sidebar .fz-nav-it.is-active .fz-nav-ic { color: var(--fz-accent-ink) !important; }
:root[data-hud-skin="premium-light"] .xcs-app .xcs-sidebar .fz-nav-it.is-active .fz-nav-n:not(.is-red) { background: var(--fz-accent-ink); color: #FFFFFF !important; }
/* inputs sit INSET into the surface — the counterpart of raised cards */
:root[data-hud-skin="premium-light"] .fsw-input,
:root[data-hud-skin="premium-light"] .xcs-input,
:root[data-hud-skin="premium-light"] select.fsw-input {
  background: rgba(246, 247, 250, .80);
  border-color: rgba(30, 40, 45, .10);
  box-shadow: inset 0 1px 2px rgba(30, 40, 60, .07), 0 1px 0 rgba(255, 255, 255, .9);
}
:root[data-hud-skin="premium-light"] .fsw-input:focus,
:root[data-hud-skin="premium-light"] .xcs-input:focus {
  background: #FFFFFF;
  border-color: rgba(255, 255, 255, .95);
  box-shadow: inset 0 1px 2px rgba(30, 40, 60, .05), 0 0 0 3px rgba(111, 114, 232, .22);
}
/* search = frosted glass capsule, gently inset — top-bar capsule only (see the
   Silver note: the page-head wrapper is square, its input is the pill) */
:root[data-hud-skin="premium-light"] .fz-topbar .fsw-jump {
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: inset 0 1px 0 #FFFFFF, inset 0 -1px 1px rgba(20, 30, 45, .04), 0 2px 6px rgba(30, 40, 60, .06);
}
/* progress: track carved in, fill softly lit */
:root[data-hud-skin="premium-light"] .fz-prog-track, :root[data-hud-skin="premium-light"] .fsw-bar {
  background: rgba(70, 80, 100, .07);
  box-shadow: inset 0 1px 2px rgba(20, 30, 50, .09), 0 1px 0 rgba(255, 255, 255, .85);
}
:root[data-hud-skin="premium-light"] .fz-prog-fill {
  background: linear-gradient(180deg, #8C8FF2, #7175E7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45);
}
/* L4 — floating: more opaque, bright border, big ambient, light blur */
:root[data-hud-skin="premium-light"] .fsw-menu,
:root[data-hud-skin="premium-light"] .fz-pop,
:root[data-hud-skin="premium-light"] .fsw-modal,
:root[data-hud-skin="premium-light"] .fsw-drawer {
  background: rgba(255, 255, 255, .94);
  border: 1px solid #FFFFFF;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--light-shadow-floating);
}
@media (prefers-reduced-motion: no-preference) {
  :root[data-hud-skin="premium-light"] .fsw-card.is-click,
  :root[data-hud-skin="premium-light"] .fz-metric.is-click,
  :root[data-hud-skin="premium-light"] .xcs-btn-primary,
  :root[data-hud-skin="premium-light"] .fsw-tog, :root[data-hud-skin="premium-light"] .fz-fpill { transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease; }
  :root[data-hud-skin="premium-light"] .fsw-card.is-click:hover,
  :root[data-hud-skin="premium-light"] .fz-metric.is-click:hover { transform: translateY(-2px); box-shadow: var(--light-shadow-raised); }
}
:root[data-hud-skin="premium-light"] .fsw-avatar.has-photo {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .9), 0 2px 6px rgba(21, 23, 40, .14);
}
/* Photo-less covers (fix v3.10.1): the Core light palette's sage / moss /
   graphite-jade slots read off-key on the pearl–pink–periwinkle canvas. A
   pearl family instead (lavender, rose, sky, sand, lilac, pewter), same
   2-stop build as the Core light covers. */
:root[data-hud-skin="premium-light"] :is(.fz-cover, .fz-tone).is-p0 { --fz-cover-bg: linear-gradient(150deg, #ECEAF7 0%, #D9D6EE 100%); --fz-cover-ink: #3E3A63; }  /* lavender */
:root[data-hud-skin="premium-light"] :is(.fz-cover, .fz-tone).is-p1 { --fz-cover-bg: linear-gradient(150deg, #F4E6EC 0%, #E6CFDA 100%); --fz-cover-ink: #5A3446; }  /* rose     */
:root[data-hud-skin="premium-light"] :is(.fz-cover, .fz-tone).is-p2 { --fz-cover-bg: linear-gradient(150deg, #E3EAF5 0%, #CBD6E8 100%); --fz-cover-ink: #2F4363; }  /* sky      */
:root[data-hud-skin="premium-light"] :is(.fz-cover, .fz-tone).is-p3 { --fz-cover-bg: linear-gradient(150deg, #F1ECE4 0%, #E0D7CA 100%); --fz-cover-ink: #4F4535; }  /* sand     */
:root[data-hud-skin="premium-light"] :is(.fz-cover, .fz-tone).is-p4 { --fz-cover-bg: linear-gradient(150deg, #EDE4F3 0%, #DACDE6 100%); --fz-cover-ink: #4A3760; }  /* lilac    */
:root[data-hud-skin="premium-light"] :is(.fz-cover, .fz-tone).is-p5 { --fz-cover-bg: linear-gradient(150deg, #ECEDF1 0%, #D8DAE2 100%); --fz-cover-ink: #3A3D4A; }  /* pewter   */


/* ───────────────────── HUD skin picker (sidebar account menu) ───────────────────── */
/* The grid borrows 4px of the section's 8px side padding: at the 12px label
   floor "Burgundy" is 55–57px wide (medium / semibold) and a 61px cell left
   only 51px of content, so it ran into the cell border. Cells are now 63px. */
.fz-umenu-hud .fz-hudpick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--fz-s-1); margin-inline: calc(-1 * var(--fz-s-1)); }
.fz-hud-opt { display: flex; flex-direction: column; gap: 4px; align-items: stretch; border: 1px solid var(--fz-border); background: var(--fz-surface-2); border-radius: var(--fz-r-sm); padding: 4px; cursor: pointer; }
.fz-hud-opt:hover { border-color: var(--fz-border-strong); }
.fz-hud-opt[aria-checked="true"] { border-color: var(--fz-accent-line); box-shadow: 0 0 0 1px var(--fz-accent-line) inset; }
/* Swatches use 192×64 thumbnails (<skin>-swatch.webp, ~2 KB) — not the full environment files. */
.fz-hud-sw { height: 26px; border-radius: 7px; border: 1px solid rgba(127, 127, 127, .25); background-size: cover; background-position: center; }
/* plain url() first; browsers that parse image-set(type()) take the lighter webp */
.fz-hud-sw.is-core { background-color: #0C120F; background-image: url("assets/hud/core.jpg"); background-image: image-set(url("assets/hud/core-swatch.webp") type("image/webp"), url("assets/hud/core.jpg") type("image/jpeg")); }
.fz-hud-sw.is-burgundy { background-color: #2A0D14; background-image: url("assets/hud/burgundy.jpg"); background-image: image-set(url("assets/hud/burgundy-swatch.webp") type("image/webp"), url("assets/hud/burgundy.jpg") type("image/jpeg")); }
.fz-hud-sw.is-silver { background-color: #141717; background-image: url("assets/hud/silver.jpg"); background-image: image-set(url("assets/hud/silver-swatch.webp") type("image/webp"), url("assets/hud/silver.jpg") type("image/jpeg")); }
.fz-hud-sw.is-premium-light { background-color: #F3ECEE; background-image: url("assets/hud/light.jpg"); background-image: image-set(url("assets/hud/light-swatch.webp") type("image/webp"), url("assets/hud/light.jpg") type("image/jpeg")); }
/* 12px floor (owner: no 10–11px text), one line. The label may use 2px of
   the cell's 4px side padding (the swatch keeps the full inset), so the
   longest name fits inside the border even in its semibold "on" state. */
.fz-hud-opt > span:not(.fz-hud-sw) { margin-inline: -2px; font-size: var(--fz-fs-micro); line-height: 1.2; text-align: center; color: var(--fz-text-2); font-weight: var(--fz-fw-medium); letter-spacing: -.01em; white-space: nowrap; }
.fz-hud-opt[aria-checked="true"] > span:not(.fz-hud-sw) { color: var(--fz-text-1); font-weight: var(--fz-fw-semi); }
