/* NT Somic (SIL Open Font License 1.1, fonts/nt-somic/OFL.txt) from github.com/nnttttyyppee/NT-Somic @6f3e8dd. Weights 400-700, no italics: never synthesise others. */
@font-face{font-family:"NT Somic";src:url("/assets/wesfin-brand/fonts/nt-somic/NTSomic-Regular.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"NT Somic";src:url("/assets/wesfin-brand/fonts/nt-somic/NTSomic-Medium.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"NT Somic";src:url("/assets/wesfin-brand/fonts/nt-somic/NTSomic-Semibold.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"NT Somic";src:url("/assets/wesfin-brand/fonts/nt-somic/NTSomic-Bold.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"Wesfin Sans";src:url("/assets/wesfin-brand/fonts/wesfin-sans/WesfinSans-Regular-v1.0.3.woff2") format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Wesfin Mono";src:url("/assets/wesfin-brand/fonts/wesfin-mono/WesfinMono-Regular-v1.0.0.woff2") format("woff2");font-weight:400;font-display:swap}
/* Onest 2.001 (SIL Open Font License 1.1, fonts/onest/OFL.txt) from google/fonts ofl/onest/Onest[wght].ttf, sha256 966c5c29b4755da84b6854d5c21dd4eaa2420225d0e9874de602de176d4a9f31, converted to woff2 unchanged. Variable weight 100-900, no italics. Display, interface and number face since D41 (--font-display, --font-ui, --font-num). */
@font-face{font-family:"Onest";src:url("/assets/wesfin-brand/fonts/onest/Onest-VF-v2.001.woff2") format("woff2");font-weight:100 900;font-style:normal;font-display:swap}

/* Generated from tokens/foundation.tokens.json by scripts/build.mjs. Do not edit: change the JSON and run pnpm build.
   Brand foundation: the Wesfin palette, neutrals, spacing, radii, elevation, layers and layout. Every other token
   and every component builds on these. */
:root {
  --wf-navy-950: #052261;
  --wf-navy-900: #0B2B66;
  --wf-blue-700: #0D5D9F;
  --wf-blue-600: #0A79C4;
  --wf-blue-500: #0AA0D3;
  --wf-cyan-500: #0BCDD5;
  --wf-dusk-500: #F0762B;
  --wf-dusk-700: #AE4D0E;
  --wf-on-dusk: #0E1116;
  --wf-dusk-100: #FDEEE3;
  --wf-enermera-wordmark: #2C3A47;
  --wf-teal-500: #0A95AE;
  --wf-white: #FFFFFF;
  --wf-static-white: #FFFFFF;
  --wf-surface: #F1F5F8;
  --wf-surface-2: #EEF5F8;
  --wf-border: #D9E4EA;
  --wf-border-overlay: var(--wf-border);
  --wf-text: #0B1B36;
  --wf-text-muted: #53657A;
  --wf-text-soft: #5F6F82;
  --wf-border-control: #6F8296;
  --wf-heading: var(--wf-navy-950);
  --wf-ink: #15171C;
  --wf-on-ink: #FFFFFF;
  --wf-link: var(--wf-blue-700);
  --wf-on-brand: #FFFFFF;
  --wf-ondeep-raised: rgba(255, 255, 255, .04);
  --wf-ondeep-hover: rgba(255, 255, 255, .1);
  --wf-ondeep-border: rgba(255, 255, 255, .12);
  --wf-ondeep-pressed: rgba(255, 255, 255, .14);
  --wf-ondeep-control: rgba(255, 255, 255, .45);
  --wf-ondeep-text-soft: rgba(255, 255, 255, .7);
  --wf-ondeep-shade: rgba(0, 0, 0, .28);

  --wf-space-half: 2px;
  --wf-space-1: 4px;
  --wf-space-1-half: 6px;
  --wf-space-2: 8px;
  --wf-space-3: 12px;
  --wf-space-4: 16px;
  --wf-space-5: 20px;
  --wf-space-6: 24px;
  --wf-space-8: 32px;
  --wf-space-10: 40px;
  --wf-space-12: 48px;
  --wf-space-16: 64px;
  --wf-space-20: 80px;
  --wf-space-24: 96px;
  --wf-space-30: 120px;
  --wf-space-36: 144px;

  --wf-border-w: 1px;
  --wf-border-w-strong: 1.5px;

  --wf-radius-2xs: 4px;
  --wf-radius-xs: 6px;
  --wf-radius-sm: 8px;
  --wf-radius-md: 12px;
  --wf-radius-lg: 18px;
  --wf-radius-xl: 24px;
  --wf-radius-pill: 9999px;

  --wf-container: 1240px;

  --wf-shadow-xs: 0 1px 2px rgba(5, 34, 97, .12);
  --wf-shadow-panel: 0 1px 2px rgba(5, 34, 97, .06), 0 2px 10px rgba(5, 34, 97, .04);
  --wf-shadow-card: 0 12px 40px rgba(5, 34, 97, 0.08);
  --wf-shadow-popover: 0 24px 64px rgba(5, 34, 97, .18);
  --wf-shadow-drawer: 0 24px 64px rgba(5, 34, 97, .2);

  --wf-brand-gradient: linear-gradient(120deg, #0A79C4 0%, #0AA0D3 45%, #0BCDD5 100%);

  --wf-z-behind: -1;
  --wf-z-sticky: 30;
  --wf-z-app-header: 40;
  --wf-z-drawer: 45;
  --wf-z-header: 50;
  --wf-z-popover: 60;
  --wf-z-overlay: 80;
  --wf-z-toast: 90;
  --wf-z-skip: 100;

  --wf-bp-sm: 640px;
  --wf-bp-md: 900px;
  --wf-bp-lg: 1100px;
}

/* Generated from tokens/semantic.tokens.json by scripts/build.mjs. Do not edit: change the JSON and run pnpm build.
   Semantic colours with fixed meaning on every site and in both themes: status, data state, environment, control
   state and energy-market lifecycles. */
:root {
  --status-success: #035F3D;
  --status-success-bg: #EAF6F0;
  --status-warning: #986601;
  --status-warning-bg: #FFF4D6;
  --status-danger: #A12B2B;
  --status-danger-bg: #FDECEC;
  --status-info: #0D5D9F;
  --status-info-bg: #EAF3FA;

  --data-fresh: #035F3D;
  --data-stale: #986601;
  --data-offline: #A12B2B;
  --data-unknown: #53657A;
  --data-unavailable: #728296;

  --environment-local: #53657A;
  --environment-dev: #0D5D9F;
  --environment-staging: #865FC1;
  --environment-prod: #A12B2B;
  --environment-dr: #986601;

  --control-simulated: #53657A;
  --control-shadow: #865FC1;
  --control-pilot: #986601;
  --control-active: #035F3D;
  --control-disabled: #728296;
  --control-observe-only: #986601;

  --flex-up: #0D5D9F;
  --flex-down: #0A95AE;
  --flex-reserved: #865FC1;
  --flex-committed: #986601;
  --flex-firm: #035F3D;
  --flex-unavailable: #728296;

  --chart-1: #2165B3;
  --chart-2: #CC7444;
  --chart-3: #2D989E;
  --chart-4: #976DF7;
  --chart-5: #AA227A;
  --chart-6: #805E12;
  --chart-charge: var(--chart-3);
  --chart-discharge: var(--chart-2);
  --chart-battery: var(--chart-3);
  --chart-pv: var(--chart-2);
  --chart-grid: var(--chart-1);
  --chart-load: var(--chart-4);
  --chart-soc: #3B4A5E;
  --chart-rule: #E3EBF0;
  --chart-axis: #8A9AAD;
  --chart-hatch: #9AA9BA;
  --chart-cursor: #53657A;

  --dispatch-created: #53657A;
  --dispatch-validating: #0D5D9F;
  --dispatch-acknowledged: #865FC1;
  --dispatch-executing: #986601;
  --dispatch-verified: #035F3D;
  --dispatch-reduced: #986601;
  --dispatch-failed: #A12B2B;
  --dispatch-unknown: #53657A;

  --settlement-provisional: #986601;
  --settlement-final: #035F3D;
  --settlement-revised: #865FC1;
}

/* Generated from tokens/sites.tokens.json by scripts/build.mjs. Do not edit: change the JSON and run pnpm build.
   Site colours, palette v3 «Spectrum» (D8): eight evenly spaced OKLCH hues at matched lightness, plus the internal
   Wesfin Office in Energy blue with a neutral deep shade (D16). Each site has accent (text and links, >= 4.5:1),
   fill with on-fill (bright fills, text on them >= 4.5:1), grad2 (gradient end) and deep (dark sections, ink
   headers, primary button; white text >= 10:1). Site colours are never used for status, data state, environment or
   control state. Names: <site>.<role> becomes --<role>-<site>, so charge.accent is --accent-charge. */
:root {
  --accent-energy: #006AD5;
  --fill-energy: #0475E1;
  --on-fill-energy: #FFFFFF;
  --grad2-energy: #01AAC6;
  --deep-energy: var(--wf-navy-950);
  --cyan-energy: #2EC4DA;
  --cyan-text-energy: #00687A;

  --accent-flex: #00787E;
  --fill-flex: #02A6AD;
  --on-fill-flex: #0E1116;
  --grad2-flex: #04C5B5;
  --deep-flex: #002D2F;

  --accent-lab: #8244E7;
  --fill-lab: #8347E9;
  --on-fill-lab: #FFFFFF;
  --grad2-lab: #7977FF;
  --deep-lab: #2B1A4D;
  --copper-lab: #D38B5D;
  --copper-text-lab: #95522B;

  --accent-service: #B34E00;
  --fill-service: #EB7007;
  --on-fill-service: #0E1116;
  --grad2-service: #F99603;
  --deep-service: #401A01;

  --accent-knowledge: #C31B9E;
  --fill-knowledge: #CE2AA7;
  --on-fill-knowledge: #FFFFFF;
  --grad2-knowledge: #DB57E4;
  --deep-knowledge: #410F34;

  --accent-technologies: #007F18;
  --fill-technologies: #33B544;
  --on-fill-technologies: #0E1116;
  --grad2-technologies: #78CA3E;
  --deep-technologies: #013007;

  --accent-finance: #8B6600;
  --fill-finance: #E5AE0D;
  --on-fill-finance: #0E1116;
  --grad2-finance: #FEC076;
  --deep-finance: #322401;

  --accent-charge: #D60C49;
  --fill-charge: #E12251;
  --on-fill-charge: #FFFFFF;
  --grad2-charge: #FE6652;
  --deep-charge: #490C18;
  --linen-charge: #E8CFA0;
  --linen-text-charge: #76561C;

  --accent-office: #006AD5;
  --fill-office: #0475E1;
  --on-fill-office: #FFFFFF;
  --grad2-office: #01AAC6;
  --deep-office: #1E2228;

  --accent-mail: #4A3BF0;
  --fill-mail: #4A3BF0;
  --on-fill-mail: #FFFFFF;
  --grad2-mail: #7C7CFF;
  --deep-mail: #361A6E;

  --accent-identity: #315A6A;
  --fill-identity: #315A6A;
  --on-fill-identity: #FFFFFF;
  --grad2-identity: #748A93;
  --deep-identity: #1E2228;

  --accent-trader: #536017;
  --fill-trader: #D7F542;
  --on-fill-trader: #19232C;
  --grad2-trader: #71879A;
  --deep-trader: #19232C;
  --steel-trader: #A7B9C8;
  --steel-text-trader: #4D6172;

  --accent-enermera: #7F387A;
  --fill-enermera: #8E4088;
  --on-fill-enermera: #FFFFFF;
  --grad2-enermera: #C074AE;
  --deep-enermera: #271A26;

  --accent-ems: #0F718C;
  --fill-ems: #00B4D8;
  --on-fill-ems: #101D26;
  --grad2-ems: #91DFEE;
  --deep-ems: #1F3847;
  --titanium-ems: #C3CDD6;
  --titanium-text-ems: #4E5E6C;

  --accent-news: #44631E;
  --fill-news: #D2F16D;
  --on-fill-news: #151B20;
  --grad2-news: #A7CC51;
  --deep-news: #151B20;
  --ink-news: #151B20;
  --canvas-news: #F6F7F1;
  --paper-news: #FFFFFF;
  --muted-news: #5E6767;
  --line-news: #DCE1D7;

  --accent-microgrid: #246B59;
  --fill-microgrid: #246B59;
  --on-fill-microgrid: #FFFFFF;
  --grad2-microgrid: #8CB7A4;
  --deep-microgrid: #173B35;
  --pale-microgrid: #EAF3ED;
  --brass-microgrid: #D9AA56;
  --brass-text-microgrid: #86601C;

  --accent-geo: #9A4426;
  --fill-geo: #B5532F;
  --on-fill-geo: #FFFFFF;
  --grad2-geo: #D98A5F;
  --deep-geo: #3A1A10;
}

:root[data-theme="dark"] {
  --accent-energy: #54A0FE;
  --fill-energy: #54A0FE;
  --on-fill-energy: #0E1116;
  --deep-energy: #050E22;
  --cyan-text-energy: #2EC4DA;
  --accent-flex: #09B4BB;
  --fill-flex: #09B4BB;
  --on-fill-flex: #0E1116;
  --deep-flex: #00191A;
  --accent-lab: #A884FF;
  --fill-lab: #A884FF;
  --on-fill-lab: #0E1116;
  --deep-lab: #180E2A;
  --copper-text-lab: #D38B5D;
  --accent-service: #F57404;
  --fill-service: #F57404;
  --on-fill-service: #0E1116;
  --deep-service: #230E01;
  --accent-knowledge: #F554CA;
  --fill-knowledge: #F554CA;
  --on-fill-knowledge: #0E1116;
  --deep-knowledge: #24081D;
  --accent-technologies: #3BBC4A;
  --fill-technologies: #3BBC4A;
  --on-fill-technologies: #0E1116;
  --deep-technologies: #011A04;
  --accent-finance: #C79608;
  --fill-finance: #C79608;
  --on-fill-finance: #0E1116;
  --deep-finance: #1C1401;
  --accent-charge: #FE6077;
  --fill-charge: #FE6077;
  --on-fill-charge: #0E1116;
  --deep-charge: #28070D;
  --linen-text-charge: #E8CFA0;
  --accent-office: #54A0FE;
  --fill-office: #54A0FE;
  --on-fill-office: #0E1116;
  --deep-office: #0F1215;
  --accent-mail: #9A9CFF;
  --fill-mail: #9A9CFF;
  --on-fill-mail: #0E1116;
  --deep-mail: #150A30;
  --accent-identity: #A2C7D4;
  --fill-identity: #A2C7D4;
  --on-fill-identity: #0E1116;
  --deep-identity: #0F1215;
  --accent-trader: #D7F542;
  --fill-trader: #D7F542;
  --on-fill-trader: #19232C;
  --deep-trader: #10171D;
  --steel-text-trader: #A7B9C8;
  --accent-enermera: #DC9AD6;
  --fill-enermera: #DC9AD6;
  --on-fill-enermera: #0E1116;
  --deep-enermera: #130A12;
  --accent-ems: #91DFEE;
  --fill-ems: #65D7E1;
  --on-fill-ems: #101D26;
  --deep-ems: #122832;
  --titanium-text-ems: #C3CDD6;
  --accent-news: #C0E77C;
  --fill-news: #D2F16D;
  --on-fill-news: #151B20;
  --deep-news: #0B1014;
  --ink-news: #EDF2E6;
  --canvas-news: #10171B;
  --paper-news: #192227;
  --muted-news: #B6C2BE;
  --line-news: #37444B;
  --accent-microgrid: #8CB7A4;
  --fill-microgrid: #8CB7A4;
  --on-fill-microgrid: #173B35;
  --brass-text-microgrid: #D9AA56;
  --accent-geo: #E9A07C;
  --fill-geo: #C8673F;
  --on-fill-geo: #101D26;
  --deep-geo: #2A140D;
}

/* Generated by scripts/build.mjs from the $extensions.wesfin.dark values in tokens/*.tokens.json. Do not edit.
   Dark theme is opt-in: set data-theme="dark" on <html> from the user's saved choice. There is deliberately no
   prefers-color-scheme rule. Text tokens are >= 4.5:1 on card, page surface and 16% status tint; control border >= 3:1. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --wf-dusk-700: #F0762B;
  --wf-enermera-wordmark: #C8D4DF;
  --wf-white: #101D36;
  --wf-surface: #0A1428;
  --wf-surface-2: #16264A;
  --wf-border: #26385C;
  --wf-border-overlay: #3A5080;
  --wf-text: #E8EEF6;
  --wf-text-muted: #A3B2C6;
  --wf-text-soft: #8596AD;
  --wf-border-control: #6B7F9E;
  --wf-heading: #E8EEF6;
  --wf-ink: #E8EEF6;
  --wf-on-ink: #071634;
  --wf-link: #52A9F1;
  --wf-shadow-xs: 0 0 0 1px var(--wf-border-overlay);
  --wf-shadow-panel: none;
  --wf-shadow-card: none;
  --wf-shadow-popover: none;
  --wf-shadow-drawer: none;

  --status-success: #60D99D;
  --status-success-bg: #143641;
  --status-warning: #DA942C;
  --status-warning-bg: #312F2D;
  --status-danger: #FF7A7A;
  --status-danger-bg: #3B2638;
  --status-info: #52A9F1;
  --status-info-bg: #1B3354;
  --data-fresh: #60D99D;
  --data-stale: #DA942C;
  --data-offline: #FF7A7A;
  --data-unknown: #95A5B7;
  --data-unavailable: #7C8DA3;
  --environment-local: #95A5B7;
  --environment-dev: #52A9F1;
  --environment-staging: #A998C7;
  --environment-prod: #FF7A7A;
  --environment-dr: #DA942C;
  --control-simulated: #95A5B7;
  --control-shadow: #A998C7;
  --control-pilot: #DA942C;
  --control-active: #60D99D;
  --control-disabled: #7C8DA3;
  --control-observe-only: #DA942C;
  --flex-up: #52A9F1;
  --flex-down: #0CB2D0;
  --flex-reserved: #A998C7;
  --flex-committed: #DA942C;
  --flex-firm: #60D99D;
  --flex-unavailable: #7C8DA3;
  --chart-1: #7EA6E8;
  --chart-2: #C58658;
  --chart-3: #4ED3D2;
  --chart-4: #8D78EE;
  --chart-5: #E539A7;
  --chart-6: #E3B048;
  --chart-charge: #4ED3D2;
  --chart-discharge: #C58658;
  --chart-battery: #4ED3D2;
  --chart-pv: #C58658;
  --chart-grid: #7EA6E8;
  --chart-load: #8D78EE;
  --chart-soc: #C3CFDD;
  --chart-rule: #1E2E50;
  --chart-axis: #5B6F90;
  --chart-hatch: #4D6185;
  --chart-cursor: #A3B2C6;
  --dispatch-created: #95A5B7;
  --dispatch-validating: #52A9F1;
  --dispatch-acknowledged: #A998C7;
  --dispatch-executing: #DA942C;
  --dispatch-verified: #60D99D;
  --dispatch-reduced: #DA942C;
  --dispatch-failed: #FF7A7A;
  --dispatch-unknown: #95A5B7;
  --settlement-provisional: #DA942C;
  --settlement-final: #60D99D;
  --settlement-revised: #A998C7;
}

/* Generated from tokens/typography.tokens.json by scripts/build.mjs. Do not edit: change the JSON and run pnpm build.
   Type (D13): NT Somic 400-700 for display and UI, Wesfin Sans 400 for tabular numbers, Wesfin Mono for IDs, UTC
   times and code. Fonts ship in @wesfin/brand (fonts.css). Never synthesise a weight the files do not have. Since
   D41 Onest (variable 100-900) is the face for display, interface and numbers; NT Somic stays as the fallback.
   data-typeface="somic" brings the D13 stacks back on a page or section while a site checks the change. */
:root {
  --font-ui: "Onest", "NT Somic", system-ui, -apple-system, "Segoe UI", sans-serif;

  --font-display: "Onest", "NT Somic", "Wesfin Sans", system-ui, sans-serif;

  --font-num: "Onest", "Wesfin Sans", system-ui, sans-serif;

  --font-mono: "Wesfin Mono", "Wesfin Sans", ui-monospace, SFMono-Regular, Menlo, monospace;

  --font-body: "Wesfin Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --t-2xs: 11px;

  --t-xs: 12px;

  --t-caption: 13px;

  --t-label: var(--t-caption);

  --t-sm: var(--t-body-sm);

  --t-body-sm: 14px;
  --t-body-md: var(--t-body-sm);

  --t-control: 15px;

  --t-base: 16px;

  --t-md: 18px;

  --t-title: 20px;

  --t-lg: 22px;

  --t-xl: 28px;

  --t-2xl: 36px;

  --t-3xl: 48px;

  --t-4xl: 64px;

  --t-5xl: 84px;

  --wf-weight-light: 400;
  --wf-weight-regular: 400;
  --wf-weight-medium: 500;
  --wf-weight-semibold: 600;
  --wf-weight-bold: 700;
  --wf-weight-extrabold: 700;

  --wf-leading-display: 1.02;
  --wf-leading-heading: 1.08;
  --wf-leading-snug: 1.25;
  --wf-leading-body: 1.55;

  --wf-tracking-display: -0.025em;
  --wf-tracking-heading: -0.02em;
  --wf-tracking-tight: -0.01em;
  --wf-tracking-wide: .16em;
  --wf-tracking-caps: .06em;
}

[data-typeface="somic"] {
  --font-ui: "NT Somic", "Wesfin Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "NT Somic", "Wesfin Sans", system-ui, sans-serif;
  --font-num: "Wesfin Sans", "NT Somic", system-ui, sans-serif;
}

/* Generated from tokens/motion.tokens.json by scripts/build.mjs. Do not edit: change the JSON and run pnpm build.
   Motion. Wesfin moves to explain a change of state (something opened, arrived, updated, is loading), never to
   decorate. Every animation has a reduced-motion fallback; @wesfin/ui switches all motion off under
   prefers-reduced-motion. */
:root {
  --wf-duration-instant: 80ms;
  --wf-duration-fast: 160ms;
  --wf-duration-base: 200ms;
  --wf-duration-slow: 320ms;
  --wf-duration-slower: 480ms;
  --wf-duration-loop: 1600ms;

  --wf-ease-standard: cubic-bezier(.2, .7, .2, 1);
  --wf-ease-enter: cubic-bezier(0, 0, .2, 1);
  --wf-ease-exit: cubic-bezier(.4, 0, 1, 1);
  --wf-ease-emphasized: cubic-bezier(.3, 0, 0, 1);
  --wf-ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  --wf-press-scale: 0.97;
  --wf-press-scale-icon: 0.9;

  --wf-hover-lift: 2px;

  --wf-nudge: 3px;

  --wf-motion-distance: 8px;

  --wf-stagger: 40ms;
}

/* Generated from tokens/component.tokens.json by scripts/build.mjs. Do not edit: change the JSON and run pnpm build.
   Component tokens: the sizes and few fixed colours that @wesfin/ui components read. Change a value here and every
   button, input or panel on every site follows. Components never hard-code these. */
:root {
  --wf-control-h: 44px;
  --wf-control-h-sm: 34px;
  --wf-control-h-lg: 52px;
  --wf-control-radius: var(--wf-radius-sm);
  --wf-control-pad-x: 12px;
  --wf-control-font: var(--t-control);

  --wf-btn-pad-x: 20px;
  --wf-btn-pad-x-sm: 12px;
  --wf-btn-pad-x-lg: 26px;
  --wf-btn-font-sm: var(--t-body-sm);
  --wf-btn-font-lg: var(--t-base);
  --wf-btn-weight: var(--wf-weight-semibold);

  --wf-iconbtn-size: 40px;
  --wf-iconbtn-radius: 10px;

  --wf-seg-radius: 10px;
  --wf-seg-item-radius: 7px;

  --wf-tag-radius: var(--wf-radius-xs);

  --wf-chip-radius: 5px;

  --wf-menu-item-radius: 10px;

  --wf-crumb-h: var(--wf-control-h-sm);
  --wf-crumb-radius: var(--wf-radius-pill);
  --wf-crumb-pad: 4px;
  --wf-crumb-gap: 6px;
  --wf-crumb-icon: 26px;
  --wf-crumb-font: var(--t-body-sm);
  --wf-crumb-current-max: 36ch;

  --wf-focus-width: 2px;
  --wf-focus-offset: 2px;
  --wf-focus-radius: var(--wf-radius-2xs);

  --wf-panel-radius: var(--wf-radius-md);
  --wf-panel-shadow: var(--wf-shadow-panel);
  --wf-panel-pad-x: 20px;
  --wf-panel-pad-y: 16px;
  --wf-panel-title: var(--t-md);

  --wf-table-head-bg: var(--wf-surface);
  --wf-table-row-hover: var(--wf-surface-2);

  --wf-table-pad-x: 14px;
  --wf-table-pad-y: 11px;

  --wf-facts-pad-y: 11px;

  --wf-kpi-stripe: 3px;

  --wf-chart-line-w: 2px;
  --wf-chart-line-w-thin: 1.5px;
  --wf-chart-area-opacity: 0.14;
  --wf-chart-band-opacity: 0.2;
  --wf-chart-hatch-opacity: 0.6;
  --wf-chart-h: 240px;
  --wf-chart-pane-gap: 28px;

  --wf-sparkline-w: 120px;
  --wf-sparkline-h: 32px;

  --wf-track-h: 8px;
  --wf-track-radius: var(--wf-radius-2xs);

  --wf-line-radius: 2px;

  --wf-indicator-radius: 3px;

  --wf-switch-w: 40px;
  --wf-switch-h: 24px;

  --wf-check-size: 20px;
  --wf-check-row-min: 24px;

  --wf-dialog-w: 560px;
  --wf-dialog-radius: var(--wf-radius-lg);

  --wf-toast-w: 380px;

  --wf-backdrop: rgba(5, 14, 34, .48);

  --wf-icon-duo-opacity: 0.2;
  --wf-icon-duo-opacity-solid: 0.32;
  --wf-icon-tile-sm: 28px;
  --wf-icon-tile-md: 36px;
  --wf-icon-tile-lg: 48px;
  --wf-icon-tile-radius: var(--wf-radius-sm);

  --wf-launcher-badge: var(--wf-icon-tile-lg);
  --wf-launcher-badge-sm: var(--wf-icon-tile-sm);
  --wf-launcher-badge-radius: var(--wf-radius-md);
  --wf-launcher-well-radius: var(--wf-radius-md);
  --wf-launcher-panel-w: 380px;

  --wf-mascot-fur: #2F7BFF;
  --wf-mascot-fur-deep: #1746D1;
  --wf-mascot-fur-light: #7FD0FF;
  --wf-mascot-face: #CDEFFF;
  --wf-mascot-accent: #8BE84A;
  --wf-mascot-hoodie: #1B1E24;
  --wf-mascot-hoodie-light: #2C3039;
  --wf-mascot-ink: #0D1E4D;
  --wf-mascot-iris: #2DBE66;
  --wf-mascot-mouth: #3B1022;
  --wf-mascot-tongue: #FF7C98;
  --wf-mascot-heart: #FF4F7B;
  --wf-mascot-white: #FFFFFF;

  --wf-mascot-xs: 56px;
  --wf-mascot-sm: 96px;
  --wf-mascot-md: 160px;
  --wf-mascot-lg: 240px;

  --wf-lockup-size: 21px;
  --wf-lockup-size-sm: 16px;
  --wf-lockup-size-lg: 32px;

  --wf-metric-size: var(--t-xl);
  --wf-metric-size-big: 40px;

  --wf-soon-size: 11.5px;

  --wf-tooltip-w: 280px;

  --wf-popover-w: 320px;
  --wf-popover-radius: var(--wf-radius-sm);
  --wf-popover-arrow: 8px;

  --wf-card-min: 260px;
  --wf-card-radius: var(--wf-radius-md);

  --wf-badge-radius: var(--wf-radius-xs);

  --wf-hourboard-h: clamp(160px, 24vw, 280px);
  --wf-hourboard-gap: 2px;

  --wf-deadline-size: clamp(36px, 5vw, 64px);

  --wf-checklist-marker: 26px;

  --wf-spectrum-bar-h: 6px;
  --wf-spectrum-bar-h-current: 10px;
  --wf-spectrum-bar-gap: 3px;
  --wf-spectrum-radius: 3px;
  --wf-spectrum-dash: 3px;
  --wf-spectrum-swatch-w: 14px;
  --wf-spectrum-swatch-h: 4px;
  --wf-spectrum-outline-w: 1.5px;
  --wf-spectrum-gap-x: 16px;
  --wf-spectrum-gap-y: 8px;
  --wf-spectrum-key-size: var(--t-caption);

  --wf-log-bg: #0B1B36;
  --wf-log-border: transparent;
  --wf-log-text: #C9D6E3;
  --wf-log-time: #7F93AB;
  --wf-log-ok: #5BD08A;
  --wf-log-warn: #F2C45A;
  --wf-log-bad: #FF8A80;
  --wf-log-info: #8FC3F5;
  --wf-log-row-hover: rgba(255, 255, 255, .05);
  --wf-code-bg: var(--wf-log-bg);
  --wf-code-border: var(--wf-log-border);
  --wf-code-text: var(--wf-log-text);
  --wf-code-comment: var(--wf-log-time);
  --wf-code-keyword: #C3A6FF;
  --wf-code-string: #9BE3B0;
  --wf-code-tag: var(--wf-log-info);
  --wf-code-attr: var(--wf-log-warn);

  --wf-rhythm-section: clamp(56px, 6vw, 88px);
  --wf-rhythm-section-compact: clamp(40px, 4vw, 56px);
  --wf-rhythm-block: clamp(32px, 3.5vw, 48px);
  --wf-rhythm-head: var(--wf-space-6);
  --wf-rhythm-title: var(--wf-space-3);
  --wf-rhythm-stack: var(--wf-space-4);
  --wf-rhythm-page-top: clamp(24px, 3vw, 40px);
  --wf-rhythm-page-end: var(--wf-rhythm-section-compact);

  --wf-screen-margin: 16px;

  --wf-sheet-radius: var(--wf-radius-xl);
  --wf-sheet-handle-w: 36px;
  --wf-sheet-handle-h: 4px;

  --wf-tabbar-h: 56px;

  --wf-slide-h: 56px;

  --wf-map-pin: 36px;
  --wf-map-pin-selected: 48px;

  --wf-map-bg: #EEF2F6;
  --wf-map-route: var(--wf-blue-600);
  --wf-map-pin-ring: var(--wf-white);
  --wf-map-cluster: var(--wf-ink);
  --wf-hatch-line: var(--wf-border);

  --wf-hatch-step: 6px;

  --wf-evidence-node: 14px;
  --wf-evidence-node-ring: 2px;
  --wf-evidence-line: 3px;
  --wf-evidence-step: 128px;
  --wf-evidence-delta-radius: var(--wf-radius-pill);

  --wf-matrix-cell-h: 44px;
}

:root[data-theme="dark"] {
  --wf-table-head-bg: #0D1830;
  --wf-chart-band-opacity: 0.28;
  --wf-backdrop: rgba(0, 0, 0, .6);
  --wf-log-bg: #050C1C;
  --wf-log-border: var(--wf-border);
  --wf-map-bg: #0E1A2E;
  --wf-map-route: #5FB4F0;
}

/* Generated from tokens/surface.tokens.json by scripts/build.mjs. Do not edit: change the JSON and run pnpm build.
   What a page reads for its site colour. Every site sets data-surface on <html> (or on a section); chrome and
   components read only surface.*, never a site's raw colour. {site.<role>} means the current site's value from
   sites.tokens.json. Energy is the default (:root) and keeps navy headings, the blue link and the blue-cyan
   gradient; $extensions.wesfin.sites sets per-site values. */
:root, [data-surface="energy"] {
  --surface-accent: var(--accent-energy);
  --surface-fill: var(--fill-energy);
  --surface-on-fill: var(--on-fill-energy);
  --surface-grad2: var(--grad2-energy);
  --surface-support: var(--grad2-energy);
  --surface-support-tint: color-mix(in srgb, var(--surface-support) 14%, var(--wf-white));
  --surface-deep: var(--deep-energy);
  --surface-deep-hover: var(--wf-navy-900);
  --surface-on-deep: #DCE6F2;
  --surface-on-deep-muted: #A9BCD3;
  --surface-gradient: var(--wf-brand-gradient);
  --surface-tint: color-mix(in srgb, var(--surface-accent) 8%, var(--wf-white));
  --surface-accent-bright: color-mix(in srgb, var(--surface-accent) 55%, #fff);
  --surface-highlight: var(--cyan-energy);
  --surface-on-highlight: var(--deep-energy);
  --surface-highlight-text: var(--cyan-text-energy);
  --surface-highlight-wash: color-mix(in srgb, var(--surface-highlight) 8%, var(--wf-surface));
}
[data-surface="flex"] { --surface-accent: var(--accent-flex); --surface-fill: var(--fill-flex); --surface-on-fill: var(--on-fill-flex); --surface-grad2: var(--grad2-flex); --surface-support: var(--grad2-flex); --surface-deep: var(--deep-flex); }
[data-surface="lab"] { --surface-accent: var(--accent-lab); --surface-fill: var(--fill-lab); --surface-on-fill: var(--on-fill-lab); --surface-grad2: var(--grad2-lab); --surface-support: var(--grad2-lab); --surface-deep: var(--deep-lab); }
[data-surface="service"] { --surface-accent: var(--accent-service); --surface-fill: var(--fill-service); --surface-on-fill: var(--on-fill-service); --surface-grad2: var(--grad2-service); --surface-support: var(--grad2-service); --surface-deep: var(--deep-service); }
[data-surface="knowledge"] { --surface-accent: var(--accent-knowledge); --surface-fill: var(--fill-knowledge); --surface-on-fill: var(--on-fill-knowledge); --surface-grad2: var(--grad2-knowledge); --surface-support: var(--grad2-knowledge); --surface-deep: var(--deep-knowledge); }
[data-surface="technologies"] { --surface-accent: var(--accent-technologies); --surface-fill: var(--fill-technologies); --surface-on-fill: var(--on-fill-technologies); --surface-grad2: var(--grad2-technologies); --surface-support: var(--grad2-technologies); --surface-deep: var(--deep-technologies); }
[data-surface="finance"] { --surface-accent: var(--accent-finance); --surface-fill: var(--fill-finance); --surface-on-fill: var(--on-fill-finance); --surface-grad2: var(--grad2-finance); --surface-support: var(--grad2-finance); --surface-deep: var(--deep-finance); }
[data-surface="charge"] { --surface-accent: var(--accent-charge); --surface-fill: var(--fill-charge); --surface-on-fill: var(--on-fill-charge); --surface-grad2: var(--grad2-charge); --surface-support: var(--grad2-charge); --surface-deep: var(--deep-charge); }
[data-surface="office"] { --surface-accent: var(--accent-office); --surface-fill: var(--fill-office); --surface-on-fill: var(--on-fill-office); --surface-grad2: var(--grad2-office); --surface-support: var(--grad2-office); --surface-deep: var(--deep-office); }
[data-surface="mail"] { --surface-accent: var(--accent-mail); --surface-fill: var(--fill-mail); --surface-on-fill: var(--on-fill-mail); --surface-grad2: var(--grad2-mail); --surface-support: var(--grad2-mail); --surface-deep: var(--deep-mail); }
[data-surface="identity"] { --surface-accent: var(--accent-identity); --surface-fill: var(--fill-identity); --surface-on-fill: var(--on-fill-identity); --surface-grad2: var(--grad2-identity); --surface-support: var(--grad2-identity); --surface-deep: var(--deep-identity); }
[data-surface="trader"] { --surface-accent: var(--accent-trader); --surface-fill: var(--fill-trader); --surface-on-fill: var(--on-fill-trader); --surface-grad2: var(--grad2-trader); --surface-support: var(--grad2-trader); --surface-deep: var(--deep-trader); }
[data-surface="enermera"] { --surface-accent: var(--accent-enermera); --surface-fill: var(--fill-enermera); --surface-on-fill: var(--on-fill-enermera); --surface-grad2: var(--grad2-enermera); --surface-support: var(--grad2-enermera); --surface-deep: var(--deep-enermera); }
[data-surface="ems"] { --surface-accent: var(--accent-ems); --surface-fill: var(--fill-ems); --surface-on-fill: var(--on-fill-ems); --surface-grad2: var(--grad2-ems); --surface-support: var(--grad2-ems); --surface-deep: var(--deep-ems); }
[data-surface="news"] { --surface-accent: var(--accent-news); --surface-fill: var(--fill-news); --surface-on-fill: var(--on-fill-news); --surface-grad2: var(--grad2-news); --surface-support: var(--grad2-news); --surface-deep: var(--deep-news); }
[data-surface="microgrid"] { --surface-accent: var(--accent-microgrid); --surface-fill: var(--fill-microgrid); --surface-on-fill: var(--on-fill-microgrid); --surface-grad2: var(--grad2-microgrid); --surface-support: var(--brass-microgrid); --surface-deep: var(--deep-microgrid); }
[data-surface="geo"] { --surface-accent: var(--accent-geo); --surface-fill: var(--fill-geo); --surface-on-fill: var(--on-fill-geo); --surface-grad2: var(--grad2-geo); --surface-support: var(--grad2-geo); --surface-deep: var(--deep-geo); }
[data-surface="flex"], [data-surface="lab"], [data-surface="service"], [data-surface="knowledge"], [data-surface="technologies"], [data-surface="finance"], [data-surface="charge"], [data-surface="office"], [data-surface="mail"], [data-surface="identity"], [data-surface="trader"], [data-surface="enermera"], [data-surface="ems"], [data-surface="news"], [data-surface="microgrid"], [data-surface="geo"] {
  --surface-support-tint: color-mix(in srgb, var(--surface-support) 14%, var(--wf-white));
  --surface-deep-hover: color-mix(in srgb, var(--surface-deep) 88%, #fff);
  --surface-on-deep: rgba(255, 255, 255, .88);
  --surface-on-deep-muted: rgba(255, 255, 255, .68);
  --surface-gradient: linear-gradient(120deg, var(--surface-fill) 0%, var(--surface-grad2) 100%);
  --surface-tint: color-mix(in srgb, var(--surface-accent) 8%, var(--wf-white));
  --surface-accent-bright: color-mix(in srgb, var(--surface-accent) 55%, #fff);
  --surface-highlight: var(--surface-fill);
  --surface-on-highlight: var(--surface-on-fill);
  --surface-highlight-text: var(--surface-accent);
  --surface-highlight-wash: color-mix(in srgb, var(--surface-highlight) 8%, var(--wf-surface));
  --wf-heading: var(--wf-ink);
  --wf-link: var(--surface-accent);
}
[data-surface="flex"] { --surface-highlight: var(--wf-dusk-500); --surface-on-highlight: var(--wf-on-dusk); --surface-highlight-text: var(--wf-dusk-700); }
[data-surface="lab"] { --surface-highlight: var(--copper-lab); --surface-on-highlight: var(--deep-lab); --surface-highlight-text: var(--copper-text-lab); }
[data-surface="charge"] { --surface-highlight: var(--linen-charge); --surface-on-highlight: var(--deep-charge); --surface-highlight-text: var(--linen-text-charge); --wf-link: var(--wf-ink); }
[data-surface="trader"] { --surface-highlight: var(--steel-trader); --surface-highlight-text: var(--steel-text-trader); }
[data-surface="ems"] { --surface-highlight: var(--titanium-ems); --surface-highlight-text: var(--titanium-text-ems); }
[data-surface="microgrid"] { --surface-highlight: var(--brass-microgrid); --surface-on-highlight: var(--deep-microgrid); --surface-highlight-text: var(--brass-text-microgrid); }

/* Generated from tokens/profile.tokens.json by scripts/build.mjs. Do not edit: change the JSON and run pnpm build.
   Expression profiles (D22): a second register a page or a section opts into with data-profile, on top of its site
   colours. A profile changes the ground, the scale and the edges, never what a colour means: site colours stay off
   status, and status keeps its icon and word. Every value reads the current site through surface.*, so a profile
   works on all eleven surfaces; $extensions.wesfin.sites holds per-site values. A profile with
   $extensions.wesfin.theme = dark is dark in both themes: the build writes every dark-theme value and the site
   colours again under its selector, so components inside it read as they do in the dark theme. With theme = follow
   it takes the page theme, and a token's $extensions.wesfin.dark is written under the dark theme. */
[data-profile="pulse"] {
  --pulse-ground: color-mix(in srgb, var(--surface-deep) 3%, #FBFCFB);
  --pulse-ground-raised: #FFFFFF;
  --pulse-ground-sunk: color-mix(in srgb, var(--surface-deep) 7%, #F2F4F3);
  --pulse-line: color-mix(in srgb, var(--surface-deep) 14%, transparent);
  --pulse-line-strong: color-mix(in srgb, var(--surface-deep) 62%, transparent);
  --pulse-grid: color-mix(in srgb, var(--surface-deep) 6%, transparent);
  --pulse-text: color-mix(in srgb, var(--surface-deep) 45%, #07090B);
  --pulse-text-muted: color-mix(in srgb, var(--surface-deep) 40%, #3B4148);
  --pulse-text-soft: color-mix(in srgb, var(--surface-deep) 35%, #565D66);
  --pulse-signal: var(--surface-fill);
  --pulse-on-signal: var(--surface-on-fill);
  --pulse-mark: var(--surface-accent);
  --pulse-signal-text: color-mix(in srgb, var(--surface-accent) 80%, #07090B);
  --pulse-signal-wash: color-mix(in srgb, var(--surface-fill) 22%, transparent);
  --pulse-signal-line: color-mix(in srgb, var(--surface-accent) 60%, transparent);
  --pulse-display: clamp(48px, 7vw, 112px);
  --pulse-h2: clamp(34px, 4.4vw, 68px);
  --pulse-figure: clamp(36px, 4.6vw, 72px);
  --pulse-display-leading: 0.94;
  --pulse-display-tracking: -0.04em;
  --pulse-radius: var(--wf-radius-2xs);
  --pulse-section-y: var(--wf-rhythm-section);
  --pulse-tape-h: 44px;
  --pulse-board-h: clamp(200px, 30vw, 380px);
  --pulse-board-gap: 3px;
}
:root[data-theme="dark"] [data-profile="pulse"], :root[data-theme="dark"][data-profile="pulse"] {
  --pulse-ground: color-mix(in srgb, var(--surface-deep) 34%, #040506);
  --pulse-ground-raised: color-mix(in srgb, var(--surface-deep) 52%, #0B0D10);
  --pulse-ground-sunk: color-mix(in srgb, var(--surface-deep) 18%, #020303);
  --pulse-line: rgba(255, 255, 255, .11);
  --pulse-line-strong: rgba(255, 255, 255, .42);
  --pulse-grid: rgba(255, 255, 255, .045);
  --pulse-text: #F3F6F4;
  --pulse-text-muted: rgba(243, 246, 244, .74);
  --pulse-text-soft: rgba(243, 246, 244, .58);
  --pulse-mark: var(--surface-fill);
  --pulse-signal-text: color-mix(in srgb, var(--surface-fill) 74%, #fff);
  --pulse-signal-wash: color-mix(in srgb, var(--surface-fill) 14%, transparent);
  --pulse-signal-line: color-mix(in srgb, var(--surface-fill) 60%, transparent);
}
[data-profile="schema"] {
  --schema-ground: color-mix(in srgb, var(--surface-deep) 2%, #FAFBFA);
  --schema-ground-raised: #FFFFFF;
  --schema-dot: color-mix(in srgb, var(--surface-deep) 17%, transparent);
  --schema-line: color-mix(in srgb, var(--surface-deep) 13%, transparent);
  --schema-line-mid: color-mix(in srgb, var(--surface-deep) 40%, transparent);
  --schema-ink: color-mix(in srgb, var(--surface-deep) 45%, #07090B);
  --schema-on-ink: #FFFFFF;
  --schema-text-muted: color-mix(in srgb, var(--surface-deep) 40%, #3B4148);
  --schema-text-soft: color-mix(in srgb, var(--surface-deep) 35%, #565D66);
  --schema-thread-1: var(--surface-accent);
  --schema-thread-2: var(--surface-highlight-text);
  --schema-knot: var(--surface-highlight);
  --schema-on-knot: var(--surface-on-highlight);
  --schema-wash: color-mix(in srgb, var(--surface-fill) 12%, transparent);
  --schema-cell: 20px;
  --schema-edge: var(--wf-border-w-strong);
  --schema-radius: 0px;
  --schema-display: clamp(40px, 6.4vw, 84px);
  --schema-display-leading: 0.98;
  --schema-h2: clamp(30px, 3.5vw, 44px);
  --schema-lead: clamp(17px, 1.5vw, 19px);
  --schema-section-y: var(--wf-rhythm-section);
  --schema-title: clamp(34px, 4.2vw, 56px);
  --schema-border-cell: 5px;
  --schema-band-h: clamp(88px, 11vw, 152px);
}
:root[data-theme="dark"] [data-profile="schema"], :root[data-theme="dark"][data-profile="schema"] {
  --schema-ground: color-mix(in srgb, var(--surface-deep) 38%, #07090B);
  --schema-ground-raised: color-mix(in srgb, var(--surface-deep) 54%, #0C0F12);
  --schema-dot: rgba(255, 255, 255, .1);
  --schema-line: rgba(255, 255, 255, .11);
  --schema-line-mid: rgba(255, 255, 255, .4);
  --schema-ink: #F3F6F4;
  --schema-on-ink: color-mix(in srgb, var(--surface-deep) 60%, #07090B);
  --schema-text-muted: rgba(243, 246, 244, .76);
  --schema-text-soft: rgba(243, 246, 244, .6);
  --schema-thread-1: color-mix(in srgb, var(--surface-fill) 78%, #fff);
  --schema-thread-2: var(--surface-highlight);
  --schema-wash: color-mix(in srgb, var(--surface-fill) 16%, transparent);
}


/* @wesfin/ui base layer on top of @wesfin/design-tokens (font stacks, type scale and --surface-accent live there). */

:root {
  --ink: var(--wf-heading);
  --page: var(--wf-white);
  --ease: var(--wf-ease-standard);
  --header-h: 72px;
  --app-header-h: 60px;
  --strip-h: 36px;
  --rail-w: 240px;
}
/* --ink resolves where it is declared, so each surface re-reads its heading colour; a surface nested inside
   another (a site chip inside a dark section) keeps the --ink it inherits. */
[data-surface] { --ink: var(--wf-heading); }
[data-surface] [data-surface] { --ink: inherit; }

*, *::before, *::after { box-sizing: border-box; }
html { font-synthesis: weight; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-ui);
  font-weight: var(--wf-weight-regular);
  font-size: var(--t-base);
  line-height: var(--wf-leading-body);
  color: var(--wf-text);
  background: var(--wf-white);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern";
}
/* data-typeface (D37, D41) on a section re-reads the interface face there; on <html> body already does. */
[data-typeface] { font-family: var(--font-ui); }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--wf-link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: var(--wf-focus-width) solid var(--surface-accent); outline-offset: var(--wf-focus-offset); border-radius: var(--wf-focus-radius); }
::selection { background: color-mix(in srgb, var(--surface-accent) 22%, transparent); }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0; letter-spacing: var(--wf-tracking-tight); text-wrap: balance; }
h1 { font-weight: var(--wf-weight-extrabold); }
h2 { font-weight: var(--wf-weight-bold); }
h3 { font-weight: var(--wf-weight-semibold); }
h4 { font-weight: var(--wf-weight-semibold); }
p { margin: 0; text-wrap: pretty; }

.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.mono { font-family: var(--font-mono); font-size: .92em; }
/* Browsers give code, kbd, samp and pre a generic monospace that ignores the inherited stack; Wesfin Mono is the face for IDs and code. */
code, kbd, samp, pre { font-family: var(--font-mono); }
.muted { color: var(--wf-text-muted); }
.soft { color: var(--wf-text-soft); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: calc(var(--wf-container) + 2 * var(--gutter, 32px)); margin-inline: auto; padding-inline: var(--gutter, 32px); }
@media (max-width: 720px) { :root { --gutter: 16px; } }

.skip-link { position: absolute; left: 16px; top: -48px; z-index: var(--wf-z-skip); background: var(--ink); color: var(--wf-on-ink); padding: 8px 14px; border-radius: var(--wf-radius-sm); }
.skip-link:focus { top: 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- buttons, segmented, icon buttons ---------- */
.wf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--wf-control-h); padding: 0 var(--wf-btn-pad-x); border-radius: var(--wf-control-radius);
  font-family: var(--font-ui); font-weight: var(--wf-btn-weight); font-size: var(--wf-control-font); letter-spacing: .005em;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color var(--wf-duration-fast) var(--ease), border-color var(--wf-duration-fast) var(--ease), color var(--wf-duration-fast) var(--ease),
    transform var(--wf-duration-instant) var(--wf-ease-standard);
}
/* Press: the button sinks at once and springs back on release. An end arrow steps forward under the pointer. */
.wf-btn:active:not(:disabled):not(.is-loading) { transform: scale(var(--wf-press-scale)); }
.wf-btn__end { transition: transform var(--wf-duration-base) var(--wf-ease-spring); }
.wf-btn:hover .wf-btn__end, .wf-btn:focus-visible .wf-btn__end { transform: translateX(var(--wf-nudge)); }
.wf-btn--primary { background: var(--surface-deep); color: var(--wf-on-brand); }
.wf-btn--primary:hover { background: var(--surface-deep-hover); }
[data-theme="dark"] .wf-btn--primary { background: var(--wf-ink); color: var(--wf-on-ink); }
[data-theme="dark"] .wf-btn--primary:hover { background: var(--wf-static-white); }
.wf-btn--accent { background: var(--surface-fill); color: var(--surface-on-fill); }
.wf-btn--accent:hover { background: color-mix(in srgb, var(--surface-fill) 88%, var(--surface-deep)); }
/* Long localized labels in narrow containers wrap instead of overflowing; the default stays one line. */
.wf-btn--wrap { max-width: 100%; min-width: 0; height: auto; min-height: var(--wf-control-h); padding-block: var(--wf-space-2); white-space: normal; overflow-wrap: anywhere; text-align: center; }
.wf-btn--wrap.wf-btn--sm { min-height: var(--wf-control-h-sm); }
.wf-btn--wrap.wf-btn--lg { min-height: var(--wf-control-h-lg); }
/* The site's second colour (Flex: dusk orange). One per view, for the action the page wants most. Its text is surface.on-highlight in both themes. */
.wf-btn--highlight { background: var(--surface-highlight); color: var(--surface-on-highlight); }
.wf-btn--highlight:hover { background: color-mix(in srgb, var(--surface-highlight) 88%, var(--surface-on-highlight)); }

.wf-btn--ghost { background: transparent; color: var(--ink); border-color: var(--wf-border-control); }
.wf-btn--ghost:hover { border-color: var(--ink); }
.wf-btn--quiet { background: var(--wf-surface-2); color: var(--ink); }
.wf-btn--quiet:hover { background: color-mix(in srgb, var(--wf-surface-2) 70%, var(--wf-border)); }
.wf-btn--onink { background: var(--wf-static-white); color: var(--surface-deep); }
.wf-btn--onink-ghost { background: transparent; color: var(--wf-on-brand); border-color: var(--wf-ondeep-control); }
.wf-btn--onink-ghost:hover { border-color: var(--wf-on-brand); }
.wf-btn--lg { height: var(--wf-control-h-lg); padding: 0 var(--wf-btn-pad-x-lg); font-size: var(--wf-btn-font-lg); }
.wf-btn--sm { height: var(--wf-control-h-sm); padding: 0 var(--wf-btn-pad-x-sm); font-size: var(--wf-btn-font-sm); }
.wf-btn:disabled { opacity: .5; cursor: not-allowed; }

.wf-iconbtn {
  display: inline-grid; place-items: center; width: var(--wf-iconbtn-size); height: var(--wf-iconbtn-size); border-radius: var(--wf-iconbtn-radius);
  background: transparent; border: 1px solid transparent; color: var(--ink); cursor: pointer;
  transition: background-color var(--wf-duration-fast) var(--ease), color var(--wf-duration-fast) var(--ease), transform var(--wf-duration-instant) var(--wf-ease-standard);
}
.wf-iconbtn:hover { background: var(--wf-surface-2); }
.wf-iconbtn:active { transform: scale(var(--wf-press-scale-icon)); }
/* D48: the language switch is one button that names the other language. */
.wf-lang { font-size: var(--t-caption); font-weight: var(--wf-weight-semibold); }
.wf-site-nav__mobile-extra .wf-lang { justify-self: start; }

.wf-seg { --ix: 0px; --iw: 0px; position: relative; display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--wf-seg-radius); background: var(--wf-surface-2); }
.wf-seg button { position: relative; border: 0; background: transparent; padding: 5px 10px; border-radius: var(--wf-seg-item-radius); font-weight: var(--wf-weight-semibold); font-size: var(--t-caption); color: var(--wf-text-muted); cursor: pointer; transition: color var(--wf-duration-fast) var(--ease); }
.wf-seg button:hover { color: var(--ink); }
/* Sliding thumb: Segmented measures the chosen button (--ix, --iw) and the thumb glides there. It sits before the
   buttons in the DOM, so the positioned buttons paint over it. Before the measure the chosen button keeps its own fill. */
.wf-seg__thumb {
  position: absolute; top: 3px; bottom: 3px; left: 0; width: var(--iw); transform: translateX(var(--ix));
  border-radius: var(--wf-seg-item-radius); background: var(--wf-white); box-shadow: var(--wf-shadow-xs);
}
.wf-seg.is-ready .wf-seg__thumb { transition: transform var(--wf-duration-base) var(--wf-ease-spring), width var(--wf-duration-base) var(--wf-ease-standard); }
.wf-seg--quiet .wf-seg__thumb { background: var(--wf-surface-2); box-shadow: none; }
.wf-seg.has-thumb button[aria-pressed="true"] { background: transparent; box-shadow: none; }
.wf-seg button[aria-pressed="true"] { background: var(--wf-white); color: var(--ink); box-shadow: var(--wf-shadow-xs); }
.wf-seg--quiet { background: transparent; }
.wf-seg--quiet button[aria-pressed="true"] { background: var(--wf-surface-2); box-shadow: none; }

.wf-hide-sm { }
.wf-show-sm { display: none; }
@media (max-width: 960px) { .wf-hide-sm { display: none !important; } .wf-show-sm { display: inline-grid; } }

/* ---------- lockup ---------- */
.wf-lockup-link { text-decoration: none; color: inherit; display: inline-flex; border-radius: var(--wf-radius-xs); }
.wf-lockup { --mark-h: 26px; display: inline-flex; align-items: center; gap: 9px; color: var(--ink); line-height: 1; }
.wf-lockup__mark { height: var(--mark-h); width: auto; flex: none; }
/* Letter symbols sit closer to the type size than the infinity loops do. */
.wf-lockup__mark[data-letters] { height: calc(var(--mark-h) * .84); }
.wf-lockup__text { font-family: var(--font-display); font-weight: var(--wf-weight-bold); font-size: var(--wf-lockup-size); letter-spacing: var(--wf-tracking-tight); white-space: nowrap; }
.wf-lockup__word { color: var(--surface-deep); }
.wf-lockup__name { color: var(--surface-fill); }
/* News lime is artwork; use the readable accent for its wordmark on paper. */
.wf-lockup[data-surface="news"] .wf-lockup__name { color: var(--surface-accent); }
.wf-site-header--ink .wf-lockup[data-surface="news"] .wf-lockup__name,
.wf-site-footer--ink .wf-lockup[data-surface="news"] .wf-lockup__name { color: var(--surface-fill); }
[data-theme="dark"] .wf-lockup__word { color: var(--wf-heading); }
.wf-lockup--sm { --mark-h: 20px; }
.wf-lockup--sm .wf-lockup__text { font-size: var(--wf-lockup-size-sm); }
.wf-lockup--lg { --mark-h: 40px; }
.wf-lockup--lg .wf-lockup__text { font-size: var(--wf-lockup-size-lg); }
/* A tool's own artwork (the Wesfin Mail envelope) carries detail the loops don't: it stands taller than the type
   so the folds and ribbons stay readable in a header. */
.wf-lockup--art { --mark-h: 38px; gap: 10px; }
.wf-lockup--art.wf-lockup--sm { --mark-h: 32px; }
.wf-lockup--art.wf-lockup--lg { --mark-h: 60px; gap: 14px; }
.wf-site-header--ink .wf-lockup__word, .wf-section--ink .wf-lockup__word, .wf-site-footer--ink .wf-lockup__word { color: var(--wf-on-brand); }
/* Research project (D33): the project's name alone, in capitals, letter-spaced, in its wordmark colour. */
.wf-lockup--project .wf-lockup__text { letter-spacing: var(--wf-tracking-caps); }
.wf-lockup--project .wf-lockup__word, [data-theme="dark"] .wf-lockup--project .wf-lockup__word { color: var(--wf-enermera-wordmark); }
.wf-site-header--ink .wf-lockup--project .wf-lockup__word, .wf-section--ink .wf-lockup--project .wf-lockup__word, .wf-site-footer--ink .wf-lockup--project .wf-lockup__word { color: var(--wf-on-brand); }
.wf-site-footer__initiator { margin: 0 0 var(--wf-space-2); }

/* ---------- orbit switcher ---------- */
.wf-orbit { position: relative; }
.wf-orbit__trigger { color: var(--ink); border-radius: var(--wf-icon-tile-radius); background: var(--wf-surface-2); }
.wf-orbit__trigger[aria-expanded="true"] { background: var(--wf-white); border-color: var(--surface-accent); }
.wf-orbit__panel {
  animation: wf-menu-in var(--wf-duration-base) var(--wf-ease-emphasized) both; transform-origin: top right;
  position: absolute; right: 0; top: calc(100% + 10px); z-index: var(--wf-z-popover); width: var(--wf-launcher-panel-w); max-width: calc(100vw - 24px);
  background: var(--wf-white); border: 1px solid var(--wf-border-overlay); border-radius: var(--wf-radius-lg);
  box-shadow: var(--wf-shadow-popover); padding: 16px; color: var(--wf-text);
  max-height: calc(100dvh - 88px); overflow-y: auto; overscroll-behavior: contain;
}
.wf-orbit__head { display: flex; align-items: center; justify-content: space-between; font-weight: var(--wf-weight-semibold); color: var(--ink); margin-bottom: 8px; }
/* grid view: a launcher of round product badges, one tinted well per group */
.wf-launcher { display: grid; gap: 10px; }
.wf-launcher__well { background: var(--wf-surface-2); border-radius: var(--wf-launcher-well-radius); padding: 12px 8px 6px; }
.wf-launcher__group { margin: 0 8px 8px; font-size: var(--t-caption); font-weight: var(--wf-weight-semibold); color: var(--wf-text); }
.wf-launcher__apps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.wf-launcher__app {
  display: grid; justify-items: center; align-content: start; gap: 6px; min-height: var(--wf-control-h); padding: 8px 4px 10px; text-align: center;
  border-radius: var(--wf-launcher-well-radius); text-decoration: none; color: var(--ink); font-size: var(--t-body-sm); font-weight: var(--wf-weight-medium);
  transition: background-color var(--wf-duration-fast) var(--wf-ease-standard), transform var(--wf-duration-instant) var(--wf-ease-standard);
}
a.wf-launcher__app:hover { background: color-mix(in srgb, var(--wf-white) 72%, transparent); }
a.wf-launcher__app:active { transform: scale(var(--wf-press-scale)); }
.wf-launcher li[aria-current] .wf-launcher__app { background: var(--wf-white); box-shadow: inset 0 0 0 1.5px var(--surface-accent); }
.wf-launcher__name { overflow-wrap: anywhere; }
.wf-launcher__app .wf-soon { margin-top: -4px; }
.wf-launcher__badge {
  display: inline-grid; place-items: center; flex: none; width: var(--wf-launcher-badge); height: var(--wf-launcher-badge);
  border-radius: var(--wf-launcher-badge-radius); background: var(--surface-fill); color: var(--surface-on-fill);
}
.wf-launcher__mark { width: 62%; height: 62%; display: block; }
.wf-launcher__mark[data-letters] { width: 76%; }
.wf-launcher__badge--sm .wf-launcher__mark { width: 70%; height: 70%; }
.wf-launcher__badge--sm { width: var(--wf-launcher-badge-sm); height: var(--wf-launcher-badge-sm); border-radius: var(--wf-radius-xs); }
/* not live yet: the same coloured tile with a dashed ring outside it, said in words by .wf-soon; the site colour is never greyed (D14) */
.is-soon .wf-launcher__badge { outline: 1.5px dashed var(--surface-fill); outline-offset: 3px; }
.is-soon .wf-launcher__badge--sm { outline-offset: 1px; }
.wf-orbit__list ul { list-style: none; margin: 0 0 12px; padding: 0; }
.wf-orbit__group { font-size: var(--t-caption); color: var(--wf-text-soft); margin: 10px 0 4px; font-weight: var(--wf-weight-semibold); }
.wf-orbit__list .wf-orbit__item { display: grid; grid-template-columns: var(--wf-launcher-badge-sm) 1fr; column-gap: 12px; align-items: center; padding: 8px; border-radius: var(--wf-menu-item-radius); text-decoration: none; color: var(--wf-text); }
.wf-orbit__list a.wf-orbit__item:hover, .wf-orbit__list li[aria-current] .wf-orbit__item { background: var(--wf-surface-2); }
.wf-orbit__name { font-weight: var(--wf-weight-semibold); color: var(--ink); }
.wf-orbit__item.is-soon { cursor: default; color: var(--wf-text-muted); }
.wf-orbit__item.is-soon .wf-orbit__name { color: var(--wf-text-muted); }
.wf-soon { font-size: var(--wf-soon-size); font-weight: var(--wf-weight-semibold); color: var(--wf-text-soft); }
.wf-orbit__list .wf-soon { grid-column: 2; }
.wf-orbit__sum { grid-column: 2; font-size: var(--t-caption); color: var(--wf-text-muted); line-height: 1.35; }
@media (max-width: 520px) {
  .wf-orbit__panel { position: fixed; inset: 64px 8px auto 8px; width: auto; max-height: calc(100dvh - 72px); }
}

/* ---------- public header ---------- */
.wf-site-header { position: sticky; top: 0; z-index: var(--wf-z-header); background: color-mix(in srgb, var(--wf-white) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--wf-border); }
/* Doubled class: base.css sets --ink on nested [data-surface] at (0,2,0), and the header carries data-surface itself. */
.wf-site-header.wf-site-header--ink { background: var(--surface-deep); border-bottom-color: var(--wf-ondeep-border); --ink: var(--wf-on-brand); color: var(--wf-on-brand); }
.wf-site-header--ink .wf-iconbtn, .wf-site-header--ink .wf-orbit__trigger { color: var(--wf-on-brand); }
/* on ink the launcher tile is a light wash of on-brand, so the ink-coloured centre cell (now on-brand) stays visible open or closed */
.wf-site-header--ink .wf-orbit__trigger, .wf-site-header--ink .wf-orbit__trigger[aria-expanded="true"] { background: color-mix(in srgb, var(--wf-on-brand) 14%, transparent); }
.wf-site-header--ink .wf-orbit__trigger[aria-expanded="true"] { border-color: var(--wf-on-brand); }
.wf-site-header--ink .wf-iconbtn:hover { background: var(--wf-ondeep-hover); }
.wf-site-header--ink .wf-seg button { color: var(--wf-ondeep-text-soft); }
.wf-site-header--ink .wf-seg button[aria-pressed="true"] { background: var(--wf-ondeep-pressed); color: var(--wf-on-brand); }
.wf-site-header--ink .wf-btn--primary { background: var(--wf-static-white); color: var(--surface-deep); }
.wf-site-header--ink .wf-btn--ghost { color: var(--wf-on-brand); border-color: var(--wf-ondeep-control); }
.wf-site-header__in { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.wf-site-nav { flex: 1; }
.wf-site-nav ul { list-style: none; display: flex; justify-content: flex-end; gap: 4px; margin: 0; padding: 0; }
/* Items keep their width, so the menu's measured width is its real width (SiteHeader folds on it). */
.wf-site-nav li { flex: none; }
.wf-site-nav li > a { display: inline-block; white-space: nowrap; padding: 8px 12px; border-radius: var(--wf-radius-sm); text-decoration: none; color: var(--ink); font-weight: var(--wf-weight-medium); font-size: var(--t-control); opacity: .82; }
.wf-site-nav li > a:hover { opacity: 1; background: color-mix(in srgb, var(--ink) 6%, transparent); }
.wf-site-nav li > a.active { opacity: 1; box-shadow: inset 0 -2px 0 var(--surface-accent); border-radius: 0; }
.wf-site-nav__mobile-extra { display: none; }
.wf-site-header__tools { display: flex; align-items: center; gap: 8px; }
/* The menu sits at the right, next to the tools, with a thin rule between the two groups (owner 2026-11-19). */
.wf-site-header:not(.is-compact) .wf-site-header__tools { padding-inline-start: var(--wf-space-4); border-inline-start: var(--wf-border-w) solid var(--wf-border); }
.wf-site-header--ink:not(.is-compact) .wf-site-header__tools { border-inline-start-color: var(--wf-ondeep-border); }
/* The open menu hangs from the header (absolute, top: 100%): the header's backdrop-filter makes it the containing
   block of fixed children, so a fixed panel would be clipped to the header's own height. */
@media (max-width: 960px) {
  .wf-site-header__in { gap: 12px; justify-content: space-between; }
  .wf-site-nav { position: absolute; top: 100%; left: 0; right: 0; height: calc(100dvh - var(--header-h)); background: var(--wf-white); padding: 16px; display: none; overflow: auto; flex: none; }
  .wf-site-header--ink .wf-site-nav { background: var(--surface-deep); }
  .wf-site-nav.is-open { display: block; animation: wf-fade-in var(--wf-duration-base) var(--wf-ease-enter) both; }
  .wf-site-nav.is-open li { animation: wf-drop-in var(--wf-duration-slow) var(--wf-ease-enter) both; }
  .wf-site-nav.is-open li:nth-child(2) { animation-delay: var(--wf-stagger); }
  .wf-site-nav.is-open li:nth-child(3) { animation-delay: calc(2 * var(--wf-stagger)); }
  .wf-site-nav.is-open li:nth-child(4) { animation-delay: calc(3 * var(--wf-stagger)); }
  .wf-site-nav.is-open li:nth-child(n + 5) { animation-delay: calc(4 * var(--wf-stagger)); }
  .wf-site-nav ul { flex-direction: column; justify-content: flex-start; }
  .wf-site-nav li > a { font-size: var(--t-title); padding: 14px 8px; display: block; }
  .wf-site-nav__mobile-extra { display: grid; gap: 10px; margin-top: 16px; }
  .wf-site-header__tools .wf-seg, .wf-site-header__tools .wf-lang { display: none; }
  .wf-site-header:not(.is-compact) .wf-site-header__tools { padding-inline-start: 0; border-inline-start: 0; }
}
/* The same fold above the phone breakpoint when the menu does not fit on one line (SiteHeader measures it). */
.wf-site-header.is-compact .wf-site-header__in { gap: 12px; justify-content: space-between; }
.wf-site-header.is-compact .wf-site-nav { position: absolute; top: 100%; left: 0; right: 0; height: calc(100dvh - var(--header-h)); background: var(--wf-white); padding: 16px; display: none; overflow: auto; flex: none; }
.wf-site-header--ink.is-compact .wf-site-nav { background: var(--surface-deep); }
.wf-site-header.is-compact .wf-site-nav.is-open { display: block; animation: wf-fade-in var(--wf-duration-base) var(--wf-ease-enter) both; }
.wf-site-header.is-compact .wf-site-nav ul { flex-direction: column; justify-content: flex-start; }
.wf-site-header.is-compact .wf-site-nav li > a { font-size: var(--t-title); padding: 14px 8px; display: block; }
.wf-site-header.is-compact .wf-site-nav__mobile-extra { display: grid; gap: 10px; margin-top: 16px; }
.wf-site-header.is-compact .wf-hide-sm { display: none !important; }
.wf-site-header.is-compact .wf-show-sm { display: inline-grid; }

/* ---------- public footer ---------- */
.wf-site-footer { background: var(--wf-surface); border-top: 1px solid var(--wf-border); padding: 64px 0 28px; font-size: var(--t-body-sm); }
.wf-site-footer__top { display: grid; grid-template-columns: minmax(240px, 1.4fr); grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--wf-border); }
/* With three or more link columns the product spectrum takes two tracks, so its names stay in two columns and the key on one line instead of crowding one narrow track. */
@media (min-width: 961px) { .wf-site-footer__top:has(> :nth-child(5)) > .wf-site-footer__col--group:has(.wf-spectrum) { grid-column: span 2; } }
.wf-site-footer__brand { display: grid; gap: 16px; align-content: start; max-width: 340px; }
.wf-site-footer__title { font-weight: var(--wf-weight-semibold); color: var(--ink); margin-bottom: 12px; }
.wf-site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wf-site-footer a { color: var(--wf-text-muted); text-decoration: none; }
.wf-site-footer a:hover { color: var(--ink); text-decoration: underline; }
/* Product spectrum: every Wesfin product as one bar of site colours (ProductSpectrum, the footer's «Продукти Wesfin»).
   Not live yet is a dash and a word in the key, never a grey or a status colour. */
.wf-spectrum { display: grid; gap: 14px; }
.wf-spectrum__bar { display: grid; grid-template-columns: repeat(8, 1fr); gap: var(--wf-spectrum-bar-gap); align-items: end; height: var(--wf-spectrum-bar-h-current); }
.wf-spectrum__bar i { height: var(--wf-spectrum-bar-h); border-radius: var(--wf-spectrum-radius); background: linear-gradient(90deg, var(--surface-fill), var(--surface-grad2)); }
.wf-spectrum__bar i.is-soon { background: repeating-linear-gradient(90deg, var(--surface-fill) 0 var(--wf-spectrum-dash), transparent var(--wf-spectrum-dash) calc(var(--wf-spectrum-dash) * 2)); }
.wf-spectrum__bar i.is-current { height: var(--wf-spectrum-bar-h-current); }
.wf-spectrum .wf-spectrum__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--wf-spectrum-gap-y) var(--wf-spectrum-gap-x); }
.wf-spectrum__item { display: inline-flex; align-items: center; gap: 8px; min-width: 0; text-decoration: none; color: var(--ink); font-weight: var(--wf-weight-medium); }
.wf-site-footer a.wf-spectrum__item { color: var(--ink); }
a.wf-spectrum__item:hover { text-decoration: underline; }
.wf-spectrum__list .is-soon .wf-spectrum__item { color: var(--wf-text-muted); font-weight: var(--wf-weight-regular); }
.wf-spectrum__list .is-current .wf-spectrum__item { font-weight: var(--wf-weight-semibold); }
.wf-spectrum__swatch { flex: none; box-sizing: border-box; width: var(--wf-spectrum-swatch-w); height: var(--wf-spectrum-swatch-h); border-radius: var(--wf-spectrum-radius); background: var(--surface-fill); }
.wf-spectrum .is-soon .wf-spectrum__swatch { height: calc(var(--wf-spectrum-swatch-h) + 2 * var(--wf-spectrum-outline-w)); background: transparent; border: var(--wf-spectrum-outline-w) dashed var(--surface-fill); }
.wf-spectrum__key { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; font-size: var(--wf-spectrum-key-size); font-weight: var(--wf-weight-medium); color: var(--wf-text-soft); }
/* Between the phone and desktop footers the column is too narrow for two columns of names. */
@media (max-width: 960px) { .wf-spectrum .wf-spectrum__list { grid-template-columns: minmax(0, 1fr); } }
.wf-spectrum__key > span { display: inline-flex; align-items: center; gap: 6px; }
.wf-spectrum__key .wf-spectrum__swatch { background: var(--wf-text-muted); }
.wf-spectrum__key .is-soon .wf-spectrum__swatch { background: transparent; border-color: var(--wf-text-muted); }
.wf-spectrum__key .is-current .wf-spectrum__swatch { width: var(--wf-spectrum-swatch-h); height: var(--wf-spectrum-bar-h-current); }
.wf-site-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; padding-top: 24px; font-size: var(--t-body-sm); color: var(--wf-text-muted); }
.wf-site-footer__legal-links { display: flex; gap: 16px; align-items: center; }
/* Ink tone: the footer on the site's own --surface-deep, one shade darker, in the light and the dark theme. The shade
   and the on-deep hairline keep it apart from a .wf-section--ink band that ends the page right above it.
   Two classes: the footer's own data-surface would otherwise reset --ink to the heading colour. */
.wf-site-footer.wf-site-footer--ink { background: linear-gradient(var(--wf-ondeep-shade), var(--wf-ondeep-shade)), var(--surface-deep); color: var(--surface-on-deep); border-top-color: var(--wf-ondeep-border); --ink: var(--wf-on-brand); --wf-text-muted: var(--surface-on-deep-muted); --wf-text-soft: var(--surface-on-deep-muted); --wf-border: var(--wf-ondeep-border); }
.wf-site-footer--ink .wf-seg { background: var(--wf-ondeep-raised); }
.wf-site-footer--ink .wf-seg button { color: var(--wf-ondeep-text-soft); }
.wf-site-footer--ink .wf-seg button[aria-pressed="true"] { background: var(--wf-ondeep-pressed); color: var(--wf-on-brand); box-shadow: none; }
.wf-site-footer--ink .wf-seg.has-thumb button[aria-pressed="true"] { background: transparent; }
.wf-site-footer--ink .wf-seg__thumb, .wf-site-header--ink .wf-seg__thumb { background: var(--wf-ondeep-pressed); box-shadow: none; }
.wf-site-footer--ink a:focus-visible { outline-color: var(--wf-on-brand); }
@media (max-width: 720px) { .wf-site-footer__top { grid-template-columns: 1fr 1fr; grid-auto-flow: row; } .wf-site-footer__brand, .wf-site-footer__col--group { grid-column: 1 / -1; } }

/* ---------- app shell ---------- */
.wf-app { min-height: 100vh; background: var(--wf-surface); }
.wf-app-header {
  position: sticky; top: 0; z-index: var(--wf-z-app-header); height: var(--app-header-h); display: flex; align-items: center; gap: 8px;
  padding: 0 16px 0 20px; background: var(--wf-white); border-bottom: 1px solid var(--wf-border);
}
.wf-app-header__spacer { flex: 1; }
.wf-app-header__menu { display: none; }
.wf-app-header__area { font-weight: var(--wf-weight-semibold); font-size: var(--t-body-sm); color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: var(--wf-radius-sm); }
.wf-app-header__area:hover { background: var(--wf-surface-2); }
.wf-app-header__lang { display: flex; align-items: center; }
.wf-rail__lang { padding: 0 12px 12px; }
.wf-account { display: flex; align-items: center; gap: 10px; background: transparent; border: 0; padding: 4px 6px; border-radius: var(--wf-menu-item-radius); cursor: pointer; text-align: left; }
.wf-account:hover { background: var(--wf-surface-2); }
.wf-account__avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: var(--wf-weight-bold); font-size: var(--t-caption); color: var(--surface-on-fill); background: var(--surface-fill); }

.wf-account__text { display: grid; line-height: 1.2; font-size: var(--t-body-sm); font-weight: var(--wf-weight-semibold); color: var(--ink); }
.wf-account__text .soft { font-weight: var(--wf-weight-regular); font-size: var(--t-xs); }
.wf-account--static { cursor: default; }
.wf-account--static:hover { background: transparent; }
.wf-account__chev { color: var(--wf-text-soft); transition: transform var(--wf-duration-base) var(--wf-ease-standard); }
.wf-account[aria-expanded="true"] .wf-account__chev { transform: rotate(180deg); }

/* ---------- account menu: who is signed in, their own pages and sign-out ---------- */
.wf-account-menu { position: relative; }
.wf-account-menu__panel {
  animation: wf-menu-in var(--wf-duration-base) var(--wf-ease-emphasized) both; transform-origin: top right;
  position: absolute; right: 0; top: calc(100% + 8px); z-index: var(--wf-z-popover); min-width: 240px; max-width: calc(100vw - 24px);
  background: var(--wf-white); border: 1px solid var(--wf-border-overlay); border-radius: var(--wf-radius-lg);
  box-shadow: var(--wf-shadow-popover); padding: 6px; color: var(--wf-text);
}
.wf-account-menu__who { display: grid; gap: 2px; padding: 10px 10px 12px; border-bottom: 1px solid var(--wf-border); margin-bottom: 6px; font-size: var(--t-caption); overflow-wrap: anywhere; }
.wf-account-menu__name { font-size: var(--t-body-sm); font-weight: var(--wf-weight-semibold); color: var(--ink); }
.wf-account-menu__list { list-style: none; margin: 0; padding: 0; }
.wf-account-menu__out { margin: 6px 0 0; padding-top: 6px; border-top: 1px solid var(--wf-border); }
.wf-account-menu__who + .wf-account-menu__out { margin-top: 0; padding-top: 0; border-top: 0; }
.wf-account-menu__item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: var(--wf-menu-item-radius);
  background: transparent; color: var(--wf-text); font: inherit; font-size: var(--t-body-sm); font-weight: var(--wf-weight-medium); text-decoration: none; text-align: start; cursor: pointer;
}
.wf-account-menu__item svg { color: var(--wf-text-muted); flex: none; }
.wf-account-menu__item:hover { background: var(--wf-surface-2); color: var(--ink); }
.wf-account-menu__item:focus-visible { outline: var(--wf-focus-width) solid var(--surface-accent); outline-offset: calc(-1 * var(--wf-focus-width)); }

.wf-env {
  position: sticky; top: var(--app-header-h); z-index: var(--wf-z-sticky); min-height: var(--strip-h); display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 6px 20px; background: var(--wf-surface-2); border-bottom: 1px solid var(--wf-border); font-size: var(--t-caption);
}
.wf-env__env { display: inline-flex; align-items: center; gap: 8px; font-weight: var(--wf-weight-semibold); color: var(--env-c, var(--environment-dev)); }
.wf-env__env .mono { padding: 2px 7px; border-radius: var(--wf-chip-radius); border: 1.5px solid currentColor; font-size: var(--t-xs); }
.wf-env--dev { --env-c: var(--environment-dev); }
.wf-env--local { --env-c: var(--environment-local); }
.wf-env--staging { --env-c: var(--environment-staging); }
.wf-env--prod { --env-c: var(--environment-prod); background: var(--status-danger-bg); }
.wf-env--prod .wf-env__env .mono { background: var(--environment-prod); color: var(--wf-on-brand); border-color: var(--environment-prod); }
.wf-env--dr { --env-c: var(--environment-dr); background: repeating-linear-gradient(135deg, var(--status-warning-bg) 0 10px, color-mix(in srgb, var(--status-warning-bg) 60%, var(--wf-white)) 10px 20px); }
/* An alert strip publishes its measured height as --strip-h (EnvStrip), so it must not also be held at that height. */
.wf-env--alert { min-height: auto; }
.wf-env__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.wf-env__chip { padding: 2px 9px; border-radius: var(--wf-radius-xs); border: 1px solid var(--wf-border-control); color: var(--wf-text-muted); background: var(--wf-white); }
.wf-env__chip--sim { border-style: dashed; }
.wf-env__chip--warn { border-color: var(--status-warning); color: var(--status-warning); background: var(--status-warning-bg); }

/* On a phone the strip keeps one row: the environment code stays, its long label goes, and neutral chips scroll inside the strip. */
@media (max-width: 640px) {
  .wf-env { flex-wrap: nowrap; gap: 10px; padding: 6px 16px; }
  .wf-env__label { display: none; }
  .wf-env__chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; min-width: 0; }
  .wf-env__chips::-webkit-scrollbar { display: none; }
  .wf-env__chip { white-space: nowrap; }
  /* Except when a chip warns or marks simulation: those must stay readable without a swipe. */
  .wf-env__chips--alert { flex-wrap: wrap; overflow-x: visible; }
  .wf-env__chips--alert .wf-env__chip { white-space: normal; }
}

.wf-tabs { position: sticky; top: var(--app-header-h); z-index: var(--wf-z-sticky); background: var(--wf-white); border-bottom: 1px solid var(--wf-border); }
.wf-tabs__in { max-width: var(--wf-container); margin: 0 auto; padding: 0 24px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.wf-tabs a { padding: 14px 14px 12px; text-decoration: none; color: var(--wf-text-muted); font-weight: var(--wf-weight-semibold); font-size: var(--t-control); white-space: nowrap; border-bottom: 2px solid transparent; }
.wf-tabs a:hover { color: var(--ink); }
.wf-tabs a.active { color: var(--ink); border-bottom-color: var(--surface-accent); }

.wf-app__body { display: block; }
.wf-app__body.has-rail { display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); }
.wf-rail {
  position: sticky; top: calc(var(--app-header-h) + var(--strip-h)); align-self: start; height: calc(100vh - var(--app-header-h) - var(--strip-h));
  overflow: auto; padding: 18px 12px; background: var(--wf-white); border-right: 1px solid var(--wf-border);
}
.wf-rail__sec + .wf-rail__sec { margin-top: 18px; }
.wf-rail__title { font-size: var(--t-xs); font-weight: var(--wf-weight-semibold); color: var(--wf-text-soft); padding: 0 10px 6px; }
.wf-rail ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.wf-rail a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--wf-radius-sm); color: var(--wf-text-muted); text-decoration: none; font-weight: var(--wf-weight-medium); font-size: var(--t-body-sm); position: relative; }
.wf-rail a:hover { background: var(--wf-surface-2); color: var(--ink); }
.wf-rail a.active { background: color-mix(in srgb, var(--surface-accent) 10%, transparent); color: var(--ink); font-weight: var(--wf-weight-semibold); }
.wf-rail a.active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 var(--wf-indicator-radius) var(--wf-indicator-radius) 0; background: var(--surface-fill); }
.wf-rail__alert { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--status-warning); }
.wf-app__main { padding: 24px 32px 32px; min-width: 0; max-width: 1560px; }
.wf-app--customer .wf-app__main { max-width: 1240px; margin: 0 auto; padding: 32px 24px; }
/* A customer app with a left menu: no environment strip, so the rail starts under the header, and the page sits against the rail. */
.wf-app--customer { --strip-h: 0px; }
.wf-app--customer .wf-app__body.has-rail .wf-app__main { margin: 0; }
/* highlight: the rail marks the active item in the site's second colour. The indicator takes the text role (4.5:1 on the ground); the active item is also bold and washed, so colour is never the only cue. */
.wf-app--highlight .wf-rail a.active { background: var(--surface-highlight-wash); }
.wf-app--highlight .wf-rail a.active::before { background: var(--surface-highlight-text); }
.wf-crumbs { color: var(--wf-text-soft); font-size: var(--t-caption); margin-bottom: 10px; }
.wf-app__legal { margin-top: 40px; font-size: var(--t-caption); }
.wf-app--developer { --strip-h: 36px; }
@media (max-width: 1199px) { :root { --rail-w: 200px; } }
@media (max-width: 900px) {
  .wf-app__body.has-rail { grid-template-columns: 1fr; }
  .wf-app-header__menu { display: inline-grid; }
  .wf-rail { position: fixed; z-index: var(--wf-z-drawer); left: 0; top: var(--app-header-h); height: calc(100vh - var(--app-header-h)); width: 280px; transform: translateX(-100%); transition: transform var(--wf-duration-base) var(--ease); box-shadow: var(--wf-shadow-drawer); border-right-color: var(--wf-border-overlay); }
  /* A closed drawer is hidden once it has slid out, so its links leave the keyboard order and assistive technology; it shows at once when opened. */
  .wf-rail:not(.is-open) { visibility: hidden; transition: transform var(--wf-duration-base) var(--ease), visibility var(--wf-duration-base) step-end; }
  .wf-rail.is-open { transform: none; visibility: visible; }
  .wf-app__main { padding: 16px; }
  .wf-app--customer .wf-app__main { padding: 20px 16px; }
}

/* lockups never shrink inside headers; on narrow phones the text tightens instead of colliding */
.wf-site-header .wf-lockup-link, .wf-app-header .wf-lockup-link { flex: none; }
@media (max-width: 440px) {
  .wf-site-header .wf-lockup, .wf-app-header .wf-lockup { gap: 7px; }
  .wf-site-header .wf-lockup, .wf-app-header .wf-lockup { --mark-h: 20px; }
  .wf-app-header .wf-lockup--art { --mark-h: 28px; }
  .wf-site-header .wf-lockup__text, .wf-app-header .wf-lockup__text { font-size: var(--wf-lockup-size-sm); }
}
.wf-iconbtn { flex: none; }
@media (max-width: 440px) { .wf-app-header { gap: 4px; padding: 0 10px 0 12px; } }

/* Trader name is text: the bright chartreuse fill is reserved for artwork. */
.wf-lockup[data-tool="trader"] .wf-lockup__name { color: var(--surface-accent); }
/* On a deep ground (an ink header, footer or section) the light-theme accent is too dark to read; the name takes the
   chartreuse fill there, which is 12:1 on graphite. */
.wf-site-header--ink .wf-lockup[data-tool="trader"] .wf-lockup__name,
.wf-section--ink .wf-lockup[data-tool="trader"] .wf-lockup__name,
.wf-site-footer--ink .wf-lockup[data-tool="trader"] .wf-lockup__name { color: var(--surface-fill); }

/* Keep the Trader intersection readable in narrow app headers too. */
.wf-lockup[data-tool="trader"].wf-lockup--sm { --mark-h: 32px; }

/* ---------- icon tile ---------- */
.wf-icon-tile { --c: var(--surface-accent); --icon-accent: var(--c); display: inline-grid; place-items: center; flex: none; width: var(--wf-icon-tile-md); height: var(--wf-icon-tile-md); border-radius: var(--wf-icon-tile-radius); color: var(--c); background: color-mix(in srgb, var(--c) 12%, var(--wf-white)); }
.wf-icon-tile--sm { width: var(--wf-icon-tile-sm); height: var(--wf-icon-tile-sm); border-radius: var(--wf-radius-xs); }
.wf-icon-tile--lg { width: var(--wf-icon-tile-lg); height: var(--wf-icon-tile-lg); border-radius: var(--wf-radius-md); }
.wf-icon-tile--neutral { --c: var(--wf-text-muted); }
.wf-icon-tile--success { --c: var(--status-success); }
.wf-icon-tile--warning { --c: var(--status-warning); }
.wf-icon-tile--danger { --c: var(--status-danger); }
.wf-icon-tile--info { --c: var(--status-info); }
.wf-icon-tile.is-solid { color: var(--wf-static-white); --icon-accent: var(--wf-static-white); --wf-icon-duo-opacity: var(--wf-icon-duo-opacity-solid); background: var(--c); }
.wf-icon-tile--brand.is-solid { color: var(--surface-on-fill); --icon-accent: var(--surface-on-fill); background: var(--surface-gradient); }

/* ---------- status ---------- */
.wf-status { display: inline-flex; align-items: center; gap: 6px; font-weight: var(--wf-weight-semibold); font-size: var(--t-body-sm); color: var(--c); line-height: 1.2; }
.wf-status--sm { font-size: var(--t-caption); gap: 4px; }
.wf-status--success { --c: var(--status-success); }
.wf-status--warning { --c: var(--status-warning); }
.wf-status--danger { --c: var(--status-danger); }
.wf-status--info { --c: var(--status-info); }
.wf-status--unknown { --c: var(--data-unknown); }
.wf-status--staging { --c: var(--control-shadow); }
.wf-status--neutral { --c: var(--wf-text-muted); }

.wf-fresh { display: inline-flex; align-items: center; gap: 7px; font-size: var(--t-body-sm); }
.wf-fresh__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); border: 2px solid var(--c); }
.wf-fresh--fresh { --c: var(--data-fresh); }
.wf-fresh--stale { --c: var(--data-stale); }
.wf-fresh--offline { --c: var(--data-offline); }
.wf-fresh--unknown { --c: var(--data-unknown); }
.wf-fresh--unknown .wf-fresh__dot { background: transparent; }

/* ---------- panel ---------- */
.wf-panel { background: var(--wf-white); border: 1px solid var(--wf-border); border-radius: var(--wf-panel-radius); box-shadow: var(--wf-panel-shadow); min-width: 0; }
.wf-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: var(--wf-panel-pad-y) var(--wf-panel-pad-x); border-bottom: 1px solid var(--wf-border); }
.wf-panel__title { margin: 0; font-size: var(--wf-panel-title); font-weight: var(--wf-weight-semibold); color: var(--wf-heading); letter-spacing: var(--wf-tracking-tight); line-height: var(--wf-leading-snug); }
.wf-panel__aside { display: flex; align-items: center; gap: 8px; font-size: var(--t-caption); color: var(--wf-text-muted); }
.wf-panel__body { padding: var(--wf-panel-pad-y) var(--wf-panel-pad-x) var(--wf-panel-pad-x); }
/* Panel emphasis: brand decoration on the head only, never a status. */
.wf-panel--brand > .wf-panel__head { background: var(--surface-deep); color: var(--surface-on-deep); border-color: var(--surface-deep); }
.wf-panel--brand > .wf-panel__head .wf-panel__title { color: var(--surface-on-deep); }
.wf-panel--brand > .wf-panel__head .wf-panel__aside { color: var(--surface-on-deep-muted); }
.wf-panel--brand > .wf-panel__head, .wf-panel--warm > .wf-panel__head { border-radius: var(--wf-panel-radius) var(--wf-panel-radius) 0 0; }
.wf-panel--warm > .wf-panel__head { background: var(--surface-support-tint); border-top: var(--wf-focus-width) solid var(--surface-support); }

/* ---------- metric ---------- */
.wf-metric { display: grid; gap: 4px; min-width: 0; }
.wf-metric__label { margin: 0; font-size: var(--t-body-sm); color: var(--wf-text-muted); font-weight: var(--wf-weight-medium); }
.wf-metric__value { margin: 0; display: flex; align-items: baseline; gap: 6px; font-family: var(--font-num); font-variant-numeric: tabular-nums; font-size: var(--wf-metric-size); color: var(--ink); line-height: 1.1; letter-spacing: var(--wf-tracking-tight); }
.wf-metric--big .wf-metric__value { font-size: var(--wf-metric-size-big); }
.wf-metric__unit { font-size: var(--t-control); color: var(--wf-text-muted); font-family: var(--font-ui); font-weight: var(--wf-weight-medium); }
.wf-metric__none { font-size: var(--t-md); color: var(--data-unknown); font-weight: var(--wf-weight-medium); }
.wf-metric--stale .wf-metric__value { color: var(--wf-text-muted); }
.wf-metric__sub { margin: 0; font-size: var(--t-caption); color: var(--wf-text-muted); }
/* Metric tone: a tile with a brand, warm or neutral wash. Decoration only; unknown values still read «Немає даних». */
.wf-metric--tile { padding: var(--wf-space-5); border-radius: var(--wf-panel-radius); border: 1px solid var(--wf-border); align-content: start; gap: var(--wf-space-2); }
.wf-metric--brand { background: var(--surface-tint); border-color: color-mix(in srgb, var(--surface-accent) 24%, var(--wf-border)); }
.wf-metric--warm { background: var(--surface-support-tint); border-color: color-mix(in srgb, var(--surface-support) 48%, var(--wf-border)); }
.wf-metric--neutral { background: var(--wf-surface-2); }
.wf-metric__spark { margin-top: 4px; }

.wf-rot90 { transform: rotate(90deg); }

/* ---------- table ---------- */
.wf-table-wrap { overflow-x: auto; }
.wf-table { width: 100%; border-collapse: collapse; font-size: var(--t-body-sm); }
.wf-table th { font-weight: var(--wf-weight-semibold); font-size: var(--t-caption); color: var(--wf-text-muted); background: var(--wf-table-head-bg); padding: 9px var(--wf-table-pad-x); border-bottom: 1px solid var(--wf-border); white-space: nowrap; text-align: start; }
.wf-table td { padding: var(--wf-table-pad-y) var(--wf-table-pad-x); border-bottom: 1px solid var(--wf-border); vertical-align: middle; color: var(--wf-text); }
.wf-table tbody tr:last-child td { border-bottom: 0; }
.wf-table tbody tr { transition: background-color var(--wf-duration-fast) var(--wf-ease-standard); }
.wf-table tbody tr:hover td { background: var(--wf-table-row-hover); }
.wf-table tr.is-dim td { color: var(--wf-text-soft); }
.wf-table td.num, .wf-table .num { white-space: nowrap; font-family: var(--font-num); font-variant-numeric: tabular-nums; }
/* stack: below the phone breakpoint rows turn into cards; the first column is the card's title, the rest sit under their labels. */
@media (max-width: 640px) {
  .wf-table-wrap--stack { overflow-x: visible; }
  .wf-table-wrap--stack .wf-table, .wf-table-wrap--stack tbody, .wf-table-wrap--stack tr, .wf-table-wrap--stack td { display: block; }
  .wf-table-wrap--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .wf-table-wrap--stack tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 16px; padding: 14px 16px; border-bottom: 1px solid var(--wf-border); }
  .wf-table-wrap--stack tbody tr:last-child { border-bottom: 0; }
  .wf-table-wrap--stack td { padding: 0; border: 0; text-align: start !important; min-width: 0; overflow-wrap: anywhere; }
  .wf-table-wrap--stack td:first-child { grid-column: 1 / -1; }
  .wf-table-wrap--stack td[data-label]:not(:first-child)::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: var(--t-caption); font-weight: var(--wf-weight-semibold); color: var(--wf-text-soft); }
  .wf-table-wrap--stack tbody tr:hover td { background: transparent; }
}

/* ---------- event log ---------- */
.wf-log { list-style: none; margin: 0; padding: 12px 0; background: var(--wf-log-bg); border: 1px solid var(--wf-log-border); border-radius: var(--wf-radius-sm); font-family: var(--font-mono); font-size: var(--t-caption); color: var(--wf-log-text); max-height: 320px; overflow: auto; }
.wf-log__row { display: grid; grid-template-columns: max-content 3.25rem minmax(0, 1fr); gap: 12px; padding: 4px 16px; border-inline-start: 2px solid transparent; }
.wf-log__row:hover { background: var(--wf-log-row-hover); }
.wf-log__t { color: var(--wf-log-time); white-space: nowrap; font-variant-numeric: tabular-nums; }
.wf-log__lvl { font-weight: var(--wf-weight-semibold); }
.wf-log__row--warn { border-inline-start-color: var(--wf-log-warn); }
.wf-log__row--bad { border-inline-start-color: var(--wf-log-bad); }
.wf-log--tagged .wf-log__row { grid-template-columns: max-content 8.5rem minmax(0, 1fr); }
.wf-log__msg { min-width: 0; overflow-wrap: anywhere; }
.wf-log__msg a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.wf-log--empty { padding: 12px 14px; }
@media (max-width: 640px) { .wf-log__row { grid-template-columns: max-content minmax(0, 1fr); } .wf-log__row .wf-log__msg { grid-column: 1 / -1; } .wf-log--tagged .wf-log__row { grid-template-columns: max-content minmax(0, 1fr); } .wf-log--tagged .wf-log__msg { grid-column: 1 / -1; } }
.wf-log__row--ok .wf-log__lvl { color: var(--wf-log-ok); }
.wf-log__row--warn .wf-log__lvl { color: var(--wf-log-warn); }
.wf-log__row--bad .wf-log__lvl { color: var(--wf-log-bad); }
.wf-log__row--info .wf-log__lvl { color: var(--wf-log-info); }

/* ---------- stepper ---------- */
.wf-stepper { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; counter-reset: s; flex-wrap: wrap; }
.wf-stepper li { display: flex; align-items: center; gap: 8px; font-size: var(--t-body-sm); color: var(--wf-text-muted); font-weight: var(--wf-weight-medium); }
.wf-stepper li + li::before { content: ""; width: 28px; height: 1px; background: var(--wf-border-control); margin-right: 4px; }
.wf-stepper__n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--wf-border-control); font-size: var(--t-caption); font-weight: var(--wf-weight-semibold); font-family: var(--font-num); }
.wf-stepper li.is-current { color: var(--ink); font-weight: var(--wf-weight-semibold); }
.wf-stepper li.is-current .wf-stepper__n { border-color: var(--surface-accent); color: var(--surface-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--surface-accent) 16%, transparent); }
.wf-stepper li.is-done .wf-stepper__n { background: var(--ink); border-color: var(--ink); color: var(--wf-on-ink); }
.wf-stepper__t { display: grid; gap: 2px; min-width: 0; }
.wf-stepper__note { font-size: var(--t-caption); font-weight: var(--wf-weight-regular); color: var(--wf-text-muted); }
.wf-stepper--notes li { align-items: flex-start; }
.wf-stepper--notes li + li::before { margin-top: 13px; }
@media (max-width: 720px) { .wf-stepper .wf-stepper__l, .wf-stepper .wf-stepper__note { display: none; } .wf-stepper li.is-current :is(.wf-stepper__l, .wf-stepper__note) { display: inline; } }

/* ---------- fields ---------- */
.wf-field { display: grid; gap: 6px; align-content: start; font-size: var(--t-body-sm); }
.wf-field__label { font-weight: var(--wf-weight-semibold); color: var(--ink); }
.wf-field__hint { color: var(--wf-text-soft); font-size: var(--t-caption); }
.wf-field__error { color: var(--status-danger); font-size: var(--t-caption); display: inline-flex; gap: 6px; align-items: center; }
.wf-input, .wf-select, .wf-textarea {
  width: 100%; min-height: var(--wf-control-h); padding: 10px var(--wf-control-pad-x); border-radius: var(--wf-control-radius); border: 1px solid var(--wf-border-control);
  background: var(--wf-white); color: var(--wf-text); font-size: var(--wf-control-font);
}
.wf-textarea { min-height: 96px; resize: vertical; }
.wf-input:focus, .wf-select:focus, .wf-textarea:focus { outline: var(--wf-focus-width) solid var(--surface-accent); outline-offset: 0; border-color: transparent; }
.wf-field.has-error :is(.wf-input, .wf-select, .wf-textarea) { border-color: var(--status-danger); }

.wf-tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: var(--wf-tag-radius); background: var(--wf-surface-2); color: var(--wf-text-muted); font-size: var(--t-caption); font-weight: var(--wf-weight-semibold); }

/* ---------- page head ---------- */
.wf-pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.wf-pagehead__title { font-size: var(--t-xl); font-weight: var(--wf-weight-bold); }
.wf-pagehead__sub { margin-top: 4px; font-size: var(--t-control); }
.wf-pagehead__actions { display: flex; gap: 8px; flex-wrap: wrap; }


/* ---------- grid helpers for app screens ---------- */
.wf-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.wf-grid--kpi { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wf-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wf-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wf-grid--main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .wf-grid--kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wf-grid--main, .wf-grid--3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .wf-grid--kpi, .wf-grid--2 { grid-template-columns: 1fr; } }

.wf-status svg, .wf-fresh__dot { flex: none; }
.wf-input--sm, .wf-select--sm { min-height: var(--wf-control-h-sm); padding: 5px 10px; font-size: var(--t-body-sm); }

/* KPI strip (promoted from the Flex reference mockup): four across, two on a laptop, one on a phone. */
.wf-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--wf-white); border: 1px solid var(--wf-border); border-radius: var(--wf-radius-md); box-shadow: var(--wf-panel-shadow); overflow: hidden; }
.wf-kpi { position: relative; padding: 18px 20px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.wf-kpi__title { margin: 0; font-size: var(--t-caption); font-weight: var(--wf-weight-semibold); color: var(--wf-text-muted); }
/* A KPI cell with a status tone: a stripe on top and a faint wash find it; its Status word and icon say it. */
.wf-kpi[data-tone] { --kpi-c: var(--wf-border-control); --kpi-bg: transparent; background: var(--kpi-bg); }
.wf-kpi[data-tone]::before { content: ""; position: absolute; inset: 0 0 auto; height: var(--wf-kpi-stripe); background: var(--kpi-c); }
.wf-kpi[data-tone="success"] { --kpi-c: var(--status-success); }
.wf-kpi[data-tone="warning"] { --kpi-c: var(--status-warning); --kpi-bg: var(--status-warning-bg); }
.wf-kpi[data-tone="danger"] { --kpi-c: var(--status-danger); --kpi-bg: var(--status-danger-bg); }
.wf-kpi[data-tone="info"] { --kpi-c: var(--status-info); }
.wf-kpi[data-tone="unknown"] { --kpi-c: var(--data-unknown); }
.wf-kpi + .wf-kpi { border-left: 1px solid var(--wf-border); }
.wf-kpi__foot { margin: 0; font-size: var(--t-caption); color: var(--wf-text-muted); }
.wf-kpi__legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--t-caption); }
@media (max-width: 1240px) {
  .wf-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wf-kpi:nth-child(3) { border-left: 0; }
  .wf-kpi:nth-child(n+3) { border-top: 1px solid var(--wf-border); }
}
@media (max-width: 640px) {
  .wf-kpis { grid-template-columns: minmax(0, 1fr); }
  .wf-kpi + .wf-kpi { border-left: 0; border-top: 1px solid var(--wf-border); }
}

/* Attention list: ranked rows, the tone on the left edge plus an icon and a hidden word. */
.wf-attn { list-style: none; margin: 0; padding: 0; }
.wf-attn__item { position: relative; display: grid; gap: 4px; padding: 14px 18px; border-bottom: 1px solid var(--wf-border); }
.wf-attn__item:last-child { border-bottom: 0; }
.wf-attn__item::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 var(--wf-indicator-radius) var(--wf-indicator-radius) 0; background: var(--attn-c, transparent); }
.wf-attn__item--warning { --attn-c: var(--status-warning); }
.wf-attn__item--danger { --attn-c: var(--status-danger); }
.wf-attn__item--unknown { --attn-c: var(--data-unknown); }
.wf-attn__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.wf-attn__title { display: inline-flex; align-items: flex-start; gap: 8px; font-weight: var(--wf-weight-semibold); color: var(--ink); }
.wf-attn__title svg { flex: none; margin-top: 2px; color: var(--attn-c, var(--wf-text-muted)); }
.wf-attn__impact { font-size: var(--t-caption); color: var(--wf-text-muted); white-space: nowrap; }
.wf-attn__meta { margin: 0; font-size: var(--t-xs); color: var(--wf-text-soft); font-family: var(--font-mono); }
.wf-attn__why { margin: 0; font-size: var(--t-body-sm); color: var(--wf-text-muted); }
.wf-attn__next { display: inline-flex; align-items: center; gap: 2px; width: fit-content; margin-top: 2px; font-size: var(--t-body-sm); font-weight: var(--wf-weight-semibold); color: var(--surface-accent); text-decoration: none; }
.wf-attn__next:hover { text-decoration: underline; }
.wf-attn__empty { margin: 0; padding: 14px 18px; color: var(--wf-text-muted); }

/* Cell stack: a table cell's main line and a quiet line under it. */
.wf-cellstack { display: grid; gap: 1px; min-width: 0; }
.wf-cellstack--r { justify-items: end; text-align: right; }
.wf-cellstack__main { font-weight: var(--wf-weight-semibold); color: var(--ink); }
.wf-cellstack__sub { font-size: var(--t-caption); color: var(--wf-text-muted); }
.wf-table tr.is-dim .wf-cellstack__main { color: var(--wf-text-muted); }

/* Signal list: tiles of service signals, the age on a bar whose tick is the freshness threshold. */
.wf-signals { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1px; background: var(--wf-border); }
.wf-signal { background: var(--wf-white); padding: 16px 18px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.wf-signal__head { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.wf-signal__name { font-weight: var(--wf-weight-semibold); color: var(--ink); }
.wf-signal__bar { position: relative; height: 6px; border-radius: var(--wf-indicator-radius); background: var(--wf-surface-2); }
.wf-signal__bar--off { background: transparent; border: 1px solid var(--wf-border); }
.wf-signal__fill { position: absolute; inset: 0 auto 0 0; min-width: 3px; border-radius: var(--wf-indicator-radius); background: var(--wf-border-control); }
.wf-signal__fill--success { background: var(--status-success); }
.wf-signal__fill--warning { background: var(--status-warning); }
.wf-signal__fill--danger { background: var(--status-danger); }
.wf-signal__fill--info { background: var(--status-info); }
.wf-signal__none { position: absolute; inset: 0; border-radius: var(--wf-indicator-radius); border: 1.5px dashed var(--data-unknown); }
.wf-signal__tick { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); border-radius: var(--wf-indicator-radius); }
.wf-signal__meta { margin: 0; font-size: var(--t-caption); color: var(--wf-text-muted); }
.wf-signal__meta b { font-weight: var(--wf-weight-regular); color: var(--ink); }
.wf-signal__na { color: var(--data-unknown); }
.wf-signal__code { margin: 0; font-family: var(--font-mono); font-size: var(--t-xs); color: var(--wf-text-soft); overflow-wrap: anywhere; }

/* Fact grid: four short facts across, two on a laptop, one on a phone. */
.wf-factgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; }
.wf-factgrid dt { font-size: var(--t-caption); color: var(--wf-text-muted); margin-bottom: 4px; }
.wf-factgrid dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
@media (max-width: 900px) { .wf-factgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .wf-factgrid { grid-template-columns: minmax(0, 1fr); } }

/* Public-site building blocks shared by all eight sites.
   Signature motif: the flow line. Wesfin's visual grammar is nodes -> connections -> flows -> states -> evidence,
   so sections on public pages hang off one thin gradient line with nodes, instead of floating cards. */

/* Spacing rhythm (D45): a band takes rhythm-section above and below its content, a service section rhythm-section-compact.
   Two neighbouring bands on the same ground share one gap: the second starts at its content. */
.wf-section { padding: var(--wf-rhythm-section) 0; position: relative; }
.wf-section--tight { padding: var(--wf-rhythm-section-compact) 0; }
.wf-section:not(.wf-section--tint, .wf-section--ink, .wf-section--warm) + .wf-section:not(.wf-section--tint, .wf-section--ink, .wf-section--warm),
.wf-section--tint + .wf-section--tint, .wf-section--ink + .wf-section--ink, .wf-section--warm + .wf-section--warm { padding-top: 0; }
.wf-section--tint { background: var(--wf-surface); }
.wf-section--warm, .wf-tile.wf-section--warm { background: var(--surface-support-tint); color: var(--wf-text); border-block-start: var(--wf-space-2) solid var(--surface-support); }
.wf-section--ink, .wf-tile.wf-section--ink { background: var(--surface-deep); color: var(--surface-on-deep); --ink: var(--wf-on-brand); --wf-text-muted: var(--surface-on-deep-muted); --wf-border: var(--wf-ondeep-border); }

.wf-display { font-family: var(--font-display); font-weight: var(--wf-weight-extrabold); font-size: clamp(40px, 6.2vw, var(--t-5xl)); line-height: var(--wf-leading-display); letter-spacing: var(--wf-tracking-display); color: var(--ink); }
.wf-display--light { font-weight: var(--wf-weight-light); }
.wf-h2 { font-size: clamp(30px, 3.6vw, var(--t-3xl)); line-height: var(--wf-leading-heading); font-weight: var(--wf-weight-bold); letter-spacing: var(--wf-tracking-heading); }
.wf-h3 { font-size: var(--t-lg); line-height: var(--wf-leading-snug); font-weight: var(--wf-weight-semibold); }
.wf-lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--wf-text-muted); max-width: 62ch; }
.wf-kicker { display: inline-flex; align-items: center; gap: 10px; font-weight: var(--wf-weight-semibold); font-size: var(--t-control); color: var(--surface-accent); margin-bottom: 18px; }
.wf-kicker::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.wf-section--ink .wf-kicker { color: var(--surface-accent-bright); }

.wf-measure { max-width: 64ch; }
.wf-stack { display: grid; gap: 20px; }
.wf-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* two-column split used by most section heads: title left, text right */
.wf-split-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: end; margin-bottom: 56px; }
@media (max-width: 900px) { .wf-split-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 36px; } }

/* flow line: list of nodes on a vertical connector */
.wf-flow { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 0; }
.wf-flow::before { content: ""; position: absolute; left: 11px; top: 14px; bottom: 14px; width: 2px; background: var(--surface-gradient); border-radius: var(--wf-line-radius); }
.wf-flow > li { position: relative; padding: 0 0 36px 52px; }
.wf-flow > li:last-child { padding-bottom: 0; }
.wf-flow > li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--wf-white); border: 2px solid var(--surface-accent); }
.wf-section--ink .wf-flow > li::before { background: var(--surface-deep); }
.wf-flow h3 { font-size: var(--t-title); margin-bottom: 6px; }

/* horizontal flow: equipment -> edge -> model -> market */
.wf-hflow { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; position: relative; }
.wf-hflow::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: var(--surface-gradient); }
.wf-hflow > :is(div, li) { position: relative; padding: 36px 24px 0 0; }
.wf-hflow > :is(div, li)::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--wf-white); border: 2px solid var(--surface-accent); }
.wf-section--ink .wf-hflow > :is(div, li)::before { background: var(--surface-deep); }
@media (max-width: 900px) {
  .wf-hflow { grid-auto-flow: row; }
  .wf-hflow::before { left: 7px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .wf-hflow > :is(div, li) { padding: 0 0 28px 40px; }
}

/* fact rows: label left, value right, ruled.
   A long value (an address, a delivery method) wraps inside at most 60 % of the row and never squeezes the label;
   when the list itself is narrow (a phone, a narrow column) the label stacks above the value.
   The list is a size container, so it must get its width from its parent (block flow or a stretched grid item). */
.wf-facts { display: grid; border-top: 1px solid var(--wf-border); container-type: inline-size; }
.wf-facts > div { display: grid; grid-template-columns: minmax(0, 1fr) fit-content(60%); gap: 16px; padding: var(--wf-facts-pad-y) 0; border-bottom: 1px solid var(--wf-border); align-items: baseline; }
.wf-facts dt, .wf-facts dd { min-width: 0; overflow-wrap: anywhere; }
.wf-facts dt { color: var(--wf-text-muted); font-size: var(--t-body-sm); }
.wf-facts dd { margin: 0; color: var(--ink); font-weight: var(--wf-weight-semibold); font-variant-numeric: tabular-nums; text-align: right; }
@container (max-width: 420px) {
  .wf-facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .wf-facts dd { text-align: left; }
}

/* honest status box: what is real today */
.wf-realbox { border: 1px solid var(--wf-border); border-left: 3px solid var(--surface-accent); border-radius: var(--wf-radius-sm); padding: 18px 20px; background: var(--wf-white); }
.wf-section--ink .wf-realbox { background: var(--wf-ondeep-raised); }

/* a quiet tile: used sparingly, not as the default container */
.wf-tile { border: 1px solid var(--wf-border); border-radius: var(--wf-radius-md); padding: 24px; background: var(--wf-white); display: grid; gap: 10px; align-content: start; }
.wf-section--ink .wf-tile { background: var(--wf-ondeep-raised); }
a.wf-tile { text-decoration: none; color: inherit; transition: border-color var(--wf-duration-fast) var(--ease), transform var(--wf-duration-base) var(--wf-ease-standard); }
a.wf-tile:hover { border-color: var(--surface-accent); transform: translateY(calc(-1 * var(--wf-hover-lift))); }
a.wf-tile:active { transform: none; }

.wf-cta-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
@media (max-width: 800px) { .wf-cta-band { grid-template-columns: 1fr; } }

/* Inner-page blocks for every public Wesfin site (pages.tsx). Tokens only; site colour through --surface-*;
   light and dark come from the tokens themselves. */

/* ---------- Trail: Breadcrumbs and PageHero's way back ----------
   One pill above the page title (--wf-crumb-* tokens). A round icon in the site's tint opens it (home or the arrow
   back) and fills with the site colour on hover; chevrons sit between levels; the current page is the strongest word
   and an ellipsis cuts it before the pill outgrows the line. */
.wf-crumbs-nav { min-width: 0; max-width: 100%; }
.wf-breadcrumbs, .wf-page-hero__back {
  display: inline-flex; align-items: center; gap: var(--wf-crumb-gap); max-width: 100%; min-height: var(--wf-crumb-h);
  margin: 0; padding: var(--wf-crumb-pad) 14px; border: 1px solid var(--wf-border); border-radius: var(--wf-crumb-radius);
  background: color-mix(in srgb, var(--wf-white) 72%, transparent); font-size: var(--wf-crumb-font); line-height: var(--wf-leading-snug);
}
.wf-breadcrumbs:has(> li:first-child .wf-crumb-icon), .wf-page-hero__back { padding-left: var(--wf-crumb-pad); }
.wf-breadcrumbs { list-style: none; color: var(--wf-text-muted); }
.wf-breadcrumbs li { display: inline-flex; align-items: center; gap: var(--wf-crumb-gap); flex: none; }
.wf-breadcrumbs li:last-child { flex: 0 1 auto; min-width: 0; }
.wf-breadcrumbs__sep { flex: none; color: var(--wf-text-soft); }
.wf-breadcrumbs a, .wf-page-hero__back { color: var(--wf-text-muted); font-weight: var(--wf-weight-medium); text-decoration: none; white-space: nowrap; transition: color var(--wf-duration-fast) var(--wf-ease-standard), border-color var(--wf-duration-fast) var(--wf-ease-standard); }
.wf-breadcrumbs a { display: inline-flex; align-items: center; gap: 8px; border-radius: var(--wf-crumb-radius); }
.wf-breadcrumbs a:hover, .wf-page-hero__back:hover { color: var(--ink); }
.wf-page-hero__back:hover { border-color: var(--wf-border-control); }
.wf-breadcrumbs a:focus-visible, .wf-page-hero__back:focus-visible { outline: var(--wf-focus-width) solid var(--surface-accent); outline-offset: var(--wf-focus-offset); }
.wf-page-hero__back > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.wf-crumb-icon {
  display: grid; place-items: center; flex: none; width: var(--wf-crumb-icon); height: var(--wf-crumb-icon); border-radius: var(--wf-crumb-radius);
  background: var(--surface-tint); color: var(--surface-accent);
  transition: background-color var(--wf-duration-fast) var(--wf-ease-standard), color var(--wf-duration-fast) var(--wf-ease-standard);
}
.wf-crumb-icon svg { transition: transform var(--wf-duration-base) var(--wf-ease-emphasized); }
a:hover > .wf-crumb-icon { background: var(--surface-fill); color: var(--surface-on-fill); }
.wf-page-hero__back:hover .wf-crumb-icon svg { transform: translateX(-2px); }
.wf-breadcrumbs [aria-current="page"] { display: block; max-width: var(--wf-crumb-current-max); overflow: hidden; color: var(--ink); font-weight: var(--wf-weight-semibold); text-overflow: ellipsis; white-space: nowrap; }
.wf-breadcrumbs { overflow: hidden; }
@media (max-width: 560px) {
  .wf-page-hero__top { flex-wrap: wrap; }
  /* Phones keep home (its icon alone; the name stays for screen readers), the parent and the current page. */
  .wf-breadcrumbs li:not(:first-child):not(:nth-last-child(-n + 2)) { display: none; }
  .wf-breadcrumbs .wf-crumb-icon + span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .wf-breadcrumbs li:not(:first-child) { flex: 0 1 auto; min-width: 0; }
  .wf-breadcrumbs li:not(:first-child) a { min-width: 0; }
  .wf-breadcrumbs li:not(:first-child) a > span:last-child { overflow: hidden; text-overflow: ellipsis; }
}
@media (prefers-reduced-motion: reduce) { .wf-crumb-icon svg { transition: none; } }

/* ---------- PageHero ---------- */
.wf-page-hero { padding: var(--wf-rhythm-page-top) 0 var(--wf-rhythm-section-compact); border-bottom: 1px solid var(--wf-border); }
.wf-page-hero--tint { background: linear-gradient(180deg, var(--surface-tint), var(--page)); }
.wf-page-hero__top { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; min-height: var(--wf-crumb-h); margin-bottom: var(--wf-rhythm-block); }
.wf-page-hero__top > :first-child { min-width: 0; }
.wf-page-hero__status { flex: none; }
.wf-page-hero__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--wf-rhythm-block); align-items: end; }
.wf-page-hero.has-side .wf-page-hero__in { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.wf-page-hero__copy { max-width: 760px; }
.wf-page-hero__title { font-size: clamp(36px, 4.6vw, var(--t-4xl)); line-height: var(--wf-leading-display); letter-spacing: var(--wf-tracking-display); font-weight: var(--wf-weight-bold); }
.wf-page-hero .wf-lead { margin-top: var(--wf-rhythm-title); }
.wf-page-hero__actions { margin-top: var(--wf-rhythm-head); }
.wf-page-hero__copy > .wf-chipnav { margin-top: 28px; }
.wf-page-hero__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border: 1px solid var(--wf-border); border-radius: var(--wf-radius-md); background: var(--wf-white); overflow: hidden; }
.wf-page-hero__facts > div { display: grid; gap: 4px; padding: 16px 20px; border-top: 1px solid var(--wf-border); }
.wf-page-hero__facts > div:nth-child(-n + 2) { border-top: 0; }
.wf-page-hero__facts > div:nth-child(even) { border-left: 1px solid var(--wf-border); }
.wf-page-hero__facts > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.wf-page-hero__facts dt { color: var(--wf-text-muted); font-size: var(--t-caption); }
.wf-page-hero__facts dd { margin: 0; color: var(--ink); font-family: var(--font-display); font-size: var(--t-title); font-weight: var(--wf-weight-semibold); overflow-wrap: anywhere; }
.wf-page-hero__media { overflow: hidden; border-radius: var(--wf-radius-lg); aspect-ratio: 4 / 3; background: var(--wf-surface-2); }
.wf-page-hero__media > img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .wf-page-hero.has-side .wf-page-hero__in { grid-template-columns: 1fr; gap: var(--wf-rhythm-head); }
}

/* ---------- MediaSplit ---------- */
.wf-media-split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.wf-media-split--reverse .wf-media-split__media { order: -1; }
.wf-media-split__media { margin: 0; }
.wf-media-split__media > img, .wf-media-split__media > picture img { display: block; width: 100%; height: auto; border-radius: var(--wf-radius-lg); }
.wf-media-split__media figcaption { margin-top: 10px; color: var(--wf-text-soft); font-size: var(--t-caption); }
@media (max-width: 900px) {
  .wf-media-split { grid-template-columns: 1fr; gap: 28px; }
  .wf-media-split--reverse .wf-media-split__media { order: 0; }
}

/* ---------- FlowList (React form of .wf-flow and .wf-hflow) ---------- */
.wf-flow__title { font-size: var(--t-title); line-height: var(--wf-leading-snug); margin-bottom: 6px; }
.wf-flow__text { color: var(--wf-text-muted); line-height: var(--wf-leading-body); }
.wf-flow__meta { margin-top: 6px; color: var(--wf-text-soft); font-size: var(--t-caption); }
.wf-flowbox { container-type: inline-size; }
.wf-hflow--list { margin: 0; padding: 0; list-style: none; }
.wf-hflow--list .wf-flow__text { font-size: var(--t-body-sm); }
@container (max-width: 760px) {
  .wf-hflow--list { grid-auto-flow: row; }
  .wf-hflow--list::before { left: 7px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .wf-hflow--list > li { padding: 0 0 28px 40px; }
}
@container (max-width: 1040px) {
  .wf-hflow--list[data-dense] { grid-auto-flow: row; }
  .wf-hflow--list[data-dense]::before { left: 7px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .wf-hflow--list[data-dense] > li { padding: 0 0 28px 40px; }
}

/* ---------- DocumentList ---------- */
.wf-doclist { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--wf-border); }
.wf-doclist__item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 32px; align-items: start; padding: 24px 0; border-bottom: 1px solid var(--wf-border); }
.wf-doclist__issuer { margin-bottom: 6px; color: var(--surface-accent); font-size: var(--t-caption); font-weight: var(--wf-weight-semibold); }
.wf-doclist__title { font-size: var(--t-title); line-height: var(--wf-leading-snug); }
.wf-doclist__title a { color: var(--ink); text-decoration: none; }
.wf-doclist__title a:hover { color: var(--surface-accent); text-decoration: underline; }
.wf-doclist__title svg, .wf-doclist__link svg { display: inline-block; margin-left: 6px; vertical-align: -2px; color: var(--wf-text-soft); }
.wf-doclist__meta { margin-top: 6px; color: var(--wf-text-soft); font-size: var(--t-body-sm); }
.wf-doclist__text { max-width: 72ch; margin-top: 8px; color: var(--wf-text-muted); }
.wf-doclist__links { display: grid; gap: 8px; justify-items: end; padding-top: 2px; }
.wf-doclist__link { display: inline-flex; align-items: center; min-height: 32px; color: var(--surface-accent); font-size: var(--t-body-sm); font-weight: var(--wf-weight-semibold); text-decoration: none; }
.wf-doclist__link:hover { text-decoration: underline; }
@media (max-width: 720px) {
  .wf-doclist__item { grid-template-columns: 1fr; }
  .wf-doclist__links { justify-items: start; }
}

/* ---------- Prose ---------- */
.wf-prose { max-width: 72ch; color: var(--wf-text); font-size: var(--t-base); line-height: 1.7; }
.wf-prose--wide { max-width: none; }
.wf-prose > * + * { margin-top: 1em; }
.wf-prose h2 { margin-top: 2.2em; font-size: var(--t-xl); line-height: var(--wf-leading-heading); letter-spacing: var(--wf-tracking-heading); scroll-margin-top: calc(var(--header-h) + 24px); }
.wf-prose h3 { margin-top: 1.8em; font-size: var(--t-lg); line-height: var(--wf-leading-snug); scroll-margin-top: calc(var(--header-h) + 24px); }
.wf-prose h4 { margin-top: 1.6em; font-size: var(--t-md); line-height: var(--wf-leading-snug); }
.wf-prose > :first-child { margin-top: 0; }
.wf-prose h2 + *, .wf-prose h3 + *, .wf-prose h4 + * { margin-top: .6em; }
.wf-prose ul, .wf-prose ol { padding-left: 1.4em; }
.wf-prose li + li { margin-top: .4em; }
.wf-prose li::marker { color: var(--wf-text-soft); }
.wf-prose a { color: var(--wf-link); }
.wf-prose strong { font-weight: var(--wf-weight-semibold); color: var(--ink); }
.wf-prose blockquote { margin-inline: 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--surface-accent); color: var(--wf-text-muted); }
.wf-prose hr { border: 0; border-top: 1px solid var(--wf-border); margin-block: 2.4em; }
.wf-prose table { width: 100%; border-collapse: collapse; font-size: var(--t-body-sm); display: block; overflow-x: auto; }
.wf-prose th, .wf-prose td { padding: 10px 12px; border-bottom: 1px solid var(--wf-border); text-align: left; vertical-align: top; }
.wf-prose th { color: var(--wf-text-muted); font-weight: var(--wf-weight-semibold); }
.wf-prose code { padding: 1px 6px; border-radius: var(--wf-radius-xs); background: var(--wf-surface-2); font-family: var(--font-mono); font-size: .9em; }
.wf-prose pre { padding: 16px; border-radius: var(--wf-radius-sm); background: var(--wf-code-bg); color: var(--wf-code-text); overflow-x: auto; }
.wf-prose pre code { padding: 0; background: none; color: inherit; }
.wf-prose img { max-width: 100%; height: auto; border-radius: var(--wf-radius-md); }
.wf-prose figcaption { margin-top: 8px; color: var(--wf-text-soft); font-size: var(--t-caption); }

/* ---------- DocumentLayout ---------- */
.wf-doc { display: grid; grid-template-columns: minmax(220px, 3fr) minmax(0, 9fr); gap: 56px; align-items: start; }
.wf-doc__side { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 24px; max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; }
.wf-doc__body { min-width: 0; }
.wf-toc__title { margin-bottom: 12px; color: var(--wf-text-muted); font-size: var(--t-caption); font-weight: var(--wf-weight-semibold); }
.wf-toc__list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--wf-border); }
.wf-toc__list a { display: block; margin-left: -1px; padding: 6px 0 6px 14px; border-left: 2px solid transparent; color: var(--wf-text-muted); font-size: var(--t-body-sm); line-height: var(--wf-leading-snug); text-decoration: none; transition: color var(--wf-duration-fast) var(--wf-ease-standard), border-color var(--wf-duration-fast) var(--wf-ease-standard); }
.wf-toc__list .is-sub a { padding-left: 26px; }
.wf-toc__list a:hover { color: var(--ink); }
.wf-toc__list a[aria-current] { border-left-color: var(--surface-accent); color: var(--ink); font-weight: var(--wf-weight-medium); }
.wf-toc__fold { display: none; }
.wf-toc__fold summary { display: flex; align-items: center; justify-content: space-between; min-height: var(--wf-control-h); padding: 0 16px; border: 1px solid var(--wf-border); border-radius: var(--wf-radius-sm); background: var(--wf-white); color: var(--ink); font-weight: var(--wf-weight-semibold); cursor: pointer; list-style: none; }
.wf-toc__fold summary::-webkit-details-marker { display: none; }
.wf-toc__fold[open] summary svg { transform: rotate(180deg); }
.wf-toc__fold .wf-toc__list { margin-top: 12px; }
@media (max-width: 960px) {
  .wf-doc { grid-template-columns: 1fr; gap: 28px; }
  .wf-doc__side { position: static; max-height: none; overflow: visible; }
  .wf-toc__fold { display: block; }
  .wf-toc__full { display: none; }
}

/* ---------- Callout ---------- */
.wf-callout { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; padding: 16px 18px; border: 1px solid var(--wf-border); border-radius: var(--wf-radius-sm); background: var(--wf-white); --c: var(--surface-accent); }
.wf-callout--info { --c: var(--status-info); background: var(--status-info-bg); border-color: transparent; }
.wf-callout--warning { --c: var(--status-warning); background: var(--status-warning-bg); border-color: transparent; }
.wf-callout--success { --c: var(--status-success); background: var(--status-success-bg); border-color: transparent; }
.wf-callout__icon { margin-top: 2px; color: var(--c); }
.wf-callout__title { color: var(--ink); font-weight: var(--wf-weight-semibold); }
.wf-callout__title + .wf-callout__text { margin-top: 4px; }
.wf-callout__text { color: var(--wf-text-muted); font-size: var(--t-body-sm); line-height: var(--wf-leading-body); }
.wf-callout__text > * + * { margin-top: 8px; }

/* ---------- ChipNav ---------- */
.wf-chipnav ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.wf-chipnav a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border: 1px solid var(--wf-border); border-radius: var(--wf-radius-pill); background: var(--wf-white); color: var(--wf-text); font-size: var(--t-body-sm); font-weight: var(--wf-weight-medium); text-decoration: none; transition: border-color var(--wf-duration-fast) var(--wf-ease-standard), background var(--wf-duration-fast) var(--wf-ease-standard); }
.wf-chipnav a:hover { border-color: var(--wf-border-control); }
.wf-chipnav a.is-current { border-color: var(--surface-deep); background: var(--surface-deep); color: var(--wf-on-brand); }
.wf-chipnav__count { color: var(--wf-text-soft); font-size: var(--t-caption); }
.wf-chipnav a.is-current .wf-chipnav__count { color: var(--surface-on-deep-muted); }
[data-theme="dark"] .wf-chipnav a.is-current { border-color: var(--wf-ink); background: var(--wf-ink); color: var(--wf-on-ink); }
[data-theme="dark"] .wf-chipnav a.is-current .wf-chipnav__count { color: color-mix(in srgb, var(--wf-on-ink) 65%, transparent); }

/* ---------- Pagination ---------- */
.wf-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; }
.wf-pagination ol { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.wf-pagination ol a, .wf-pagination ol [aria-current] { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border-radius: var(--wf-radius-sm); color: var(--wf-text); font-weight: var(--wf-weight-medium); text-decoration: none; }
.wf-pagination ol a:hover { background: var(--wf-surface-2); }
.wf-pagination ol [aria-current] { background: var(--surface-deep); color: var(--wf-on-brand); }
[data-theme="dark"] .wf-pagination ol [aria-current] { background: var(--wf-ink); color: var(--wf-on-ink); }
.wf-pagination__gap { min-width: 24px; color: var(--wf-text-soft); text-align: center; }
.wf-pagination__step { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; color: var(--surface-accent); font-weight: var(--wf-weight-semibold); text-decoration: none; }
.wf-pagination__step.is-off { color: var(--wf-text-soft); }

/* ---------- FormSection, grid, choices ---------- */
.wf-form-section { padding: 32px 0; border-top: 1px solid var(--wf-border); }
.wf-form-section:first-child { padding-top: 0; border-top: 0; }
.wf-form-section__head { margin-bottom: 20px; }
.wf-form-section__title { font-size: var(--t-lg); line-height: var(--wf-leading-snug); }
.wf-form-section__desc { margin-top: 6px; max-width: 64ch; color: var(--wf-text-muted); font-size: var(--t-body-sm); }
.wf-form-grid { display: grid; gap: 18px 20px; align-items: start; }
.wf-form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wf-form-grid > .wf-span-2, .wf-form-grid > .wf-choices { grid-column: 1 / -1; }
@media (max-width: 720px) { .wf-form-grid--2 { grid-template-columns: 1fr; } }

.wf-choices { min-width: 0; margin: 0; padding: 0; border: 0; }
.wf-choices__legend { margin-bottom: 10px; padding: 0; color: var(--wf-text); font-size: var(--t-body-sm); font-weight: var(--wf-weight-semibold); }
.wf-choices__req { color: var(--status-danger); }
.wf-choices__hint { margin: -4px 0 10px; color: var(--wf-text-muted); font-size: var(--t-caption); }
.wf-choices__error { display: flex; align-items: center; gap: 6px; margin: -4px 0 10px; color: var(--status-danger); font-size: var(--t-caption); }
.wf-choices__grid { display: grid; gap: 8px 16px; }
.wf-choices__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wf-choices__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wf-choices--cards .wf-choices__grid { gap: 10px; }
.wf-choices--cards .wf-check { min-height: 56px; padding: 12px 14px; border: 1px solid var(--wf-border); border-radius: var(--wf-radius-sm); background: var(--wf-white); align-items: center; transition: border-color var(--wf-duration-fast) var(--wf-ease-standard), background var(--wf-duration-fast) var(--wf-ease-standard); }
.wf-choices--cards .wf-check:hover { border-color: var(--wf-border-control); }
.wf-choices--cards .wf-check:has(input:checked) { border-color: var(--surface-accent); background: var(--surface-tint); }
[data-theme="dark"] .wf-choices--cards .wf-check:has(input:checked) { background: var(--wf-surface-2); }
.wf-choices.has-error .wf-choices__grid { padding-left: 12px; border-left: 2px solid var(--status-danger); }
@media (max-width: 720px) { .wf-choices__grid--2, .wf-choices__grid--3 { grid-template-columns: 1fr; } }
@media (min-width: 721px) and (max-width: 960px) { .wf-choices__grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Confirmation ---------- */
.wf-confirm { display: grid; gap: 16px; justify-items: start; max-width: 640px; }
.wf-confirm__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--wf-radius-pill); background: var(--status-success-bg); color: var(--status-success); }
.wf-confirm .wf-kicker { margin-bottom: 0; }
.wf-confirm__title { font-size: clamp(30px, 3.6vw, var(--t-3xl)); line-height: var(--wf-leading-heading); letter-spacing: var(--wf-tracking-heading); }
.wf-confirm__text { color: var(--wf-text-muted); font-size: var(--t-md); line-height: var(--wf-leading-body); }
.wf-confirm__text > * + * { margin-top: 10px; }
.wf-confirm__ref { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; align-items: center; width: 100%; padding: 16px 18px; border: 1px solid var(--wf-border); border-radius: var(--wf-radius-sm); background: var(--wf-white); }
.wf-confirm__ref-label { grid-column: 1; color: var(--wf-text-muted); font-size: var(--t-caption); }
.wf-confirm__ref-value { grid-column: 1; color: var(--ink); font-size: var(--t-title); font-weight: var(--wf-weight-semibold); overflow-wrap: anywhere; }
.wf-confirm__ref .wf-btn { grid-column: 2; grid-row: 1 / 3; }
.wf-confirm__next { width: 100%; margin-top: 8px; }
.wf-confirm__next-title { margin-bottom: 16px; color: var(--ink); font-weight: var(--wf-weight-semibold); }
.wf-confirm__next .wf-flow > li { padding-bottom: 20px; }
.wf-confirm__actions { margin-top: 8px; }

/* ---------- AuthLayout: sign-in, sign-up, password and confirmation screens ---------- */
.wf-auth { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--wf-surface); color: var(--wf-text); }
.wf-auth__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--app-header-h);
  padding: 0 24px; background: var(--wf-white); border-bottom: 1px solid var(--wf-border);
}
.wf-auth__actions { display: flex; align-items: center; gap: 8px; }
.wf-auth__back {
  white-space: nowrap; color: var(--ink); font-weight: var(--wf-weight-semibold); font-size: var(--t-body-sm);
  text-decoration: none; padding: 8px 12px; border-radius: var(--wf-radius-sm);
}
.wf-auth__back:hover { background: var(--wf-surface-2); }
.wf-auth__back:focus-visible { outline: var(--wf-focus-width) solid var(--surface-accent); outline-offset: var(--wf-focus-offset); }
.wf-auth__main {
  flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 56px 24px 72px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 32px; align-items: start;
}
.wf-auth__main:not(:has(.wf-auth__aside)) { grid-template-columns: minmax(0, 560px); justify-content: center; }
.wf-auth__card { background: var(--wf-white); border: 1px solid var(--wf-border); border-radius: var(--wf-radius-lg); padding: 40px; }
.wf-auth__title, .wf-auth__aside-title { text-wrap: balance; }
/* Without a lead the form still keeps its distance from the title. */
.wf-auth__title:not(:has(+ .wf-auth__lead)) { margin-bottom: var(--wf-space-6); }
.wf-auth__title { font-size: var(--t-2xl); line-height: var(--wf-leading-heading); font-weight: var(--wf-weight-bold); letter-spacing: var(--wf-tracking-heading); }
.wf-auth__lead { margin: 12px 0 28px; color: var(--wf-text-muted); font-size: var(--t-base); line-height: 1.55; max-width: 52ch; text-wrap: pretty; }
.wf-auth__form { display: grid; gap: 18px; }
/* Every button in an auth form fills the card, like the provider buttons above it (D30): one column, one width. Links centre. */
.wf-auth__form .wf-btn { width: 100%; }
.wf-auth__form .wf-auth__link { justify-self: center; }
.wf-auth__card .wf-auth__note { text-align: center; }
.wf-auth__card > .wf-auth__note { margin-top: var(--wf-space-4); }
.wf-auth__form .wf-input { width: 100%; }
.wf-auth__note { margin: 0; color: var(--wf-text-muted); font-size: var(--t-body-sm); }
.wf-auth__note a, .wf-auth__link { color: var(--wf-link); text-decoration-line: underline; text-underline-offset: 3px; }
button.wf-auth__link { background: none; border: 0; padding: 0; font-family: inherit; line-height: inherit; text-decoration: underline; cursor: pointer; }
.wf-auth__text { margin: 0; color: var(--wf-text-muted); font-size: var(--t-body-sm); }
.wf-auth__link { justify-self: start; font-size: var(--t-body-sm); font-weight: var(--wf-weight-semibold); }
.wf-auth__code {
  display: block; overflow-wrap: anywhere; padding: 12px; border-radius: var(--wf-radius-sm); background: var(--wf-surface-2);
  font-family: var(--font-mono); font-size: var(--t-body-sm);
}
.wf-auth__link--center, .wf-auth__note--center { justify-self: center; text-align: center; }
/* The terms line under a sign-up button (D53): small, balanced, never a checkbox. */
.wf-auth__legal { max-width: 44ch; font-size: var(--t-caption); text-wrap: balance; }
.wf-auth__or { display: flex; align-items: center; gap: 12px; margin: 0; color: var(--wf-text-muted); font-size: var(--t-body-sm); }
.wf-auth__or::before, .wf-auth__or::after { content: ""; flex: 1; border-top: 1px solid var(--wf-border); }
.wf-auth__provider { gap: 10px; }
/* Email first (D29): Google and Apple fill the card's width on top, then «або», then the email or phone. */
.wf-auth__providers { display: grid; gap: var(--wf-space-3); }
.wf-auth__form .wf-auth__providers .wf-auth__provider { width: 100%; min-width: 0; }
.wf-auth__who { position: relative; }
.wf-auth__who .wf-input[readonly] { background: var(--wf-surface-2); color: var(--wf-text-muted); }
.wf-auth__change { position: absolute; top: 0; right: 0; }
.wf-auth__password[hidden] { display: none; }
.wf-auth__provider-mark { flex: none; }
.wf-auth__provider.is-soon { cursor: not-allowed; }
.wf-auth__provider.is-soon .wf-auth__provider-mark { filter: grayscale(1); opacity: .55; }
.wf-auth__soon { font-size: var(--t-caption); color: var(--wf-text-muted); }
.wf-auth__mono { font-family: var(--font-mono); }
.wf-auth__steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--wf-text-muted); font-size: var(--t-body-sm); line-height: 1.5; }
.wf-auth__qr { justify-self: center; padding: 12px; background: var(--wf-static-white); border: 1px solid var(--wf-border); border-radius: var(--wf-radius-sm); line-height: 0; }
.wf-auth__qr :is(img, svg) { display: block; width: 176px; height: 176px; }
.wf-auth__secret { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.wf-auth__form .wf-auth__secret .wf-btn, .wf-auth__form > .wf-btn--quiet.wf-btn--sm { width: auto; justify-self: start; }
.wf-auth__codes { list-style: none; margin: 0; padding: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px;
  border-radius: var(--wf-radius-sm); background: var(--wf-surface-2); font-family: var(--font-mono); font-size: var(--t-body-sm); }
/* The quiet ways out of a step (back, send again, later, forgot) share one row under the primary button, so a step ends
   in one full-width action and a line of links instead of a stack of buttons. */
.wf-auth__aux { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--wf-space-2) var(--wf-space-4); }
.wf-auth__aux > :only-child { margin-inline: auto; }
.wf-auth__aux button.wf-auth__link:disabled { color: var(--wf-text-muted); text-decoration: none; cursor: default; }
/* A password field with a «Показати» word inside its right edge. */
.wf-auth__secretfield { position: relative; display: block; }
.wf-auth__secretfield .wf-input { padding-right: 104px; }
.wf-auth__reveal {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%); min-height: 32px; padding: 0 10px; border: 0; border-radius: var(--wf-radius-sm);
  background: none; color: var(--wf-text); font: inherit; font-size: var(--t-caption); font-weight: var(--wf-weight-semibold); cursor: pointer;
}
.wf-auth__reveal:hover { background: var(--wf-surface-2); }
.wf-auth__reveal:focus-visible { outline: var(--wf-focus-width) solid var(--surface-accent); outline-offset: 0; }
/* The length of a new password: one stitch per character up to the minimum, and the same in words. */
.wf-auth__length { display: grid; gap: 6px; }
.wf-auth__length-cells { display: flex; gap: 3px; }
.wf-auth__length-cells i { width: 10px; height: 10px; border: var(--wf-border-w) dashed var(--wf-border-control); }
.wf-auth__length-cells i.is-on { border-style: solid; background: var(--wf-text); border-color: var(--wf-text); }
.wf-auth__aside { background: var(--surface-deep); color: var(--surface-on-deep); border-radius: var(--wf-radius-lg); padding: 32px; }
.wf-auth__aside-title { font-size: var(--t-lg); line-height: var(--wf-leading-snug); font-weight: var(--wf-weight-bold); color: var(--wf-static-white); margin: 0 0 20px; }
.wf-auth__aside ul { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 14px; }
.wf-auth__aside li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; font-size: var(--t-control); line-height: 1.45; }
.wf-auth__aside li svg { margin-top: 2px; color: var(--wf-static-white); }
/* highlight: the site's second colour on the primary action and the aside's marks (Flex: dusk orange with dark text). */
.wf-auth--highlight .wf-btn--primary, [data-theme="dark"] .wf-auth--highlight .wf-btn--primary { background: var(--surface-highlight); color: var(--surface-on-highlight); }
.wf-auth--highlight .wf-btn--primary:hover, [data-theme="dark"] .wf-auth--highlight .wf-btn--primary:hover { background: color-mix(in srgb, var(--surface-highlight) 88%, var(--surface-on-highlight)); }
.wf-auth--highlight .wf-auth__aside li svg { color: var(--surface-highlight); }
.wf-auth--highlight .wf-auth__aside-title::after { content: ""; display: block; width: var(--wf-space-8); height: 4px; margin-top: var(--wf-space-3); border-radius: var(--wf-radius-pill); background: var(--surface-highlight); }
/* ornament: one rosette on the aside, half off its bottom-right corner, and one at a whisper on the page ground, half off the bottom-left. */
.wf-auth--ornament { position: relative; overflow: hidden; isolation: isolate; }
.wf-auth--ornament .wf-auth__aside { position: relative; overflow: hidden; isolation: isolate; padding-bottom: clamp(132px, 13vw, 176px); }
.wf-auth__rosette { position: absolute; z-index: var(--wf-z-behind); }
.wf-auth__rosette--aside { width: 68%; right: 0; bottom: 0; transform: translate(30%, 34%); }
.wf-auth__rosette--ground { width: clamp(220px, 28vw, 400px); left: 0; bottom: 0; transform: translate(-40%, 40%); }
.wf-auth__aside-note { margin: 0; padding-top: 20px; border-top: 1px solid var(--wf-ondeep-border); font-size: var(--t-body-sm); line-height: 1.5; color: var(--surface-on-deep-muted); }
@media (max-width: 860px) {
  .wf-auth__main { grid-template-columns: 1fr; padding: 24px 16px 40px; gap: 20px; }
  .wf-auth[data-surface="identity"] .wf-auth__aside { display: none; }
  .wf-auth__card { padding: 28px 20px; }
  .wf-auth__title { font-size: var(--t-xl); }
  .wf-auth__bar { padding: 0 12px 0 16px; }
}

/* ---------- controls added with the design library (WES-270) ----------
   Button, IconButton and Segmented reuse .wf-btn, .wf-iconbtn and .wf-seg from shell.css. */

.wf-btn.is-loading { cursor: progress; }
.wf-btn .wf-spinner { --w: 16px; }

/* in-page tabs; the sticky app tab bar is .wf-tabs in shell.css */
.wf-tablist { --ix: 0px; --iw: 0px; position: relative; display: flex; gap: 4px; border-bottom: 1px solid var(--wf-border); overflow-x: auto; scrollbar-width: none; }
.wf-tablist button {
  border: 0; background: transparent; cursor: pointer; padding: 10px 12px 9px; margin-bottom: -1px;
  font-weight: var(--wf-weight-semibold); font-size: var(--t-body-sm); color: var(--wf-text-muted); white-space: nowrap;
  border-bottom: 2px solid transparent; transition: color var(--wf-duration-fast) var(--ease), border-color var(--wf-duration-fast) var(--ease);
}
.wf-tablist button:hover { color: var(--ink); }
.wf-tablist button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--surface-accent); }
/* Sliding underline: Tabs measures the selected tab (--ix, --iw); until then the tab draws its own border. */
.wf-tablist__ink { position: absolute; left: 0; bottom: 0; height: 2px; width: var(--iw); transform: translateX(var(--ix)); background: var(--surface-accent); border-radius: var(--wf-line-radius); }
.wf-tablist.is-ready .wf-tablist__ink { transition: transform var(--wf-duration-base) var(--wf-ease-emphasized), width var(--wf-duration-base) var(--wf-ease-emphasized); }
.wf-tablist.has-ink button[aria-selected="true"] { border-bottom-color: transparent; }
.wf-tabpanel { padding-top: 16px; animation: wf-fade-in var(--wf-duration-fast) var(--wf-ease-enter); }

/* switch */
.wf-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: var(--t-body-sm); color: var(--wf-text); background: none; border: 0; padding: 0; text-align: left; }
.wf-switch__track {
  position: relative; flex: none; width: var(--wf-switch-w); height: var(--wf-switch-h); border-radius: var(--wf-radius-pill);
  background: var(--wf-surface-2); border: 1px solid var(--wf-border-control);
  transition: background-color var(--wf-duration-base) var(--ease), border-color var(--wf-duration-base) var(--ease);
}
.wf-switch__thumb {
  position: absolute; top: 2px; left: 2px; width: calc(var(--wf-switch-h) - 6px); height: calc(var(--wf-switch-h) - 6px); border-radius: 50%;
  background: var(--wf-border-control); transition: transform var(--wf-duration-base) var(--wf-ease-spring), background-color var(--wf-duration-base) var(--ease);
}
.wf-switch[aria-checked="true"] .wf-switch__track { background: var(--surface-fill); border-color: var(--surface-fill); }
.wf-switch[aria-checked="true"] .wf-switch__thumb { background: var(--surface-on-fill); transform: translateX(calc(var(--wf-switch-w) - var(--wf-switch-h))); }
.wf-switch:disabled { cursor: not-allowed; opacity: .5; }

/* checkbox and radio: native inputs, drawn with tokens */
.wf-check { min-height: var(--wf-check-row-min); display: inline-grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: start; cursor: pointer; font-size: var(--t-body-sm); color: var(--wf-text); }
.wf-check input {
  appearance: none; margin: 0; width: var(--wf-check-size); height: var(--wf-check-size); flex: none; display: grid; place-items: center;
  border: 1.5px solid var(--wf-border-control); border-radius: var(--wf-radius-xs); background: var(--wf-white); cursor: inherit;
  transition: background-color var(--wf-duration-instant) var(--ease), border-color var(--wf-duration-instant) var(--ease);
}
.wf-check input[type="radio"] { border-radius: 50%; }
.wf-check input::after { content: ""; width: 10px; height: 6px; border: 2px solid var(--surface-on-fill); border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform var(--wf-duration-base) var(--wf-ease-spring); }
.wf-check input[type="radio"]::after { width: 8px; height: 8px; border: 0; border-radius: 50%; background: var(--surface-on-fill); transform: scale(0); }
.wf-check input:checked { background: var(--surface-fill); border-color: var(--surface-fill); }
.wf-check input:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.wf-check input[type="radio"]:checked::after { transform: scale(1); }
.wf-check input:focus-visible { outline: var(--wf-focus-width) solid var(--surface-accent); outline-offset: var(--wf-focus-offset); }
.wf-check__hint { grid-column: 2; color: var(--wf-text-soft); font-size: var(--t-body-sm); }
.wf-check:has(input:disabled) { cursor: not-allowed; opacity: .5; }

/* empty state: what is missing, why, and the one next step */
.wf-empty { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 40px 24px; color: var(--wf-text-muted); }
.wf-empty__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--wf-surface-2); color: var(--wf-text-muted); margin-bottom: 4px; }
.wf-empty__title { font-size: var(--t-base); font-weight: var(--wf-weight-semibold); color: var(--ink); }
.wf-empty__body { max-width: 44ch; font-size: var(--t-body-sm); }
.wf-empty__action { margin-top: 8px; }

/* dialog: native <dialog>, so focus trapping and Escape come from the browser */
.wf-dialog {
  width: min(var(--wf-dialog-w), calc(100vw - 32px)); max-height: calc(100vh - 64px); padding: 0; border: 1px solid var(--wf-border-overlay);
  border-radius: var(--wf-dialog-radius); background: var(--wf-white); color: var(--wf-text); box-shadow: var(--wf-shadow-drawer);
}
.wf-dialog[open] { animation: wf-scale-in var(--wf-duration-base) var(--wf-ease-emphasized) both; }
.wf-dialog::backdrop { background: var(--wf-backdrop); animation: wf-fade-in var(--wf-duration-base) var(--wf-ease-enter) both; }
/* Exit: Dialog adds .is-closing and closes the element when this animation ends. */
.wf-dialog[open].is-closing { animation: wf-scale-out var(--wf-duration-fast) var(--wf-ease-exit) both; }
.wf-dialog.is-closing::backdrop { animation: wf-fade-out var(--wf-duration-fast) var(--wf-ease-exit) both; }
.wf-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 0 24px; }
.wf-dialog__title { font-size: var(--t-md); font-weight: var(--wf-weight-bold); }
.wf-dialog__body { padding: 12px 24px 8px; overflow: auto; }
.wf-dialog__actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; padding: 16px 24px 20px; }

/* toasts: short confirmations; anything the user must act on belongs on the page */
.wf-toasts { position: fixed; z-index: var(--wf-z-toast); right: 16px; bottom: 16px; display: grid; gap: 8px; width: min(var(--wf-toast-w), calc(100vw - 32px)); margin: 0; padding: 0; list-style: none; }
.wf-toast {
  display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; padding: 12px 8px 12px 14px;
  background: var(--wf-white); border: 1px solid var(--wf-border-overlay); border-left: 3px solid var(--c, var(--wf-border-control));
  border-radius: var(--wf-radius-md); box-shadow: var(--wf-shadow-popover); font-size: var(--t-body-sm); color: var(--wf-text);
  animation: wf-rise-in var(--wf-duration-slow) var(--wf-ease-enter) both;
}
.wf-toast.is-leaving { animation: wf-toast-out var(--wf-duration-fast) var(--wf-ease-exit) both; }
@keyframes wf-toast-out { to { opacity: 0; transform: translateX(var(--wf-motion-distance)); } }
.wf-toast > svg { color: var(--c, var(--wf-text-muted)); margin-top: 1px; }
.wf-toast__title { font-weight: var(--wf-weight-semibold); color: var(--ink); }
.wf-toast .wf-iconbtn { --wf-iconbtn-size: 28px; margin-top: -4px; }
.wf-toast--success { --c: var(--status-success); }
.wf-toast--warning { --c: var(--status-warning); }
.wf-toast--danger { --c: var(--status-danger); }
.wf-toast--info { --c: var(--status-info); }

/* disclosure: native details; the chevron turns and the body rises in */
.wf-disclosure { border-bottom: 1px solid var(--wf-border); }
.wf-disclosure summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; cursor: pointer; list-style: none;
  font-weight: var(--wf-weight-semibold); color: var(--ink); transition: color var(--wf-duration-fast) var(--ease);
}
.wf-disclosure summary::-webkit-details-marker { display: none; }
.wf-disclosure summary:hover { color: var(--surface-accent); }
.wf-disclosure summary:focus-visible { outline: var(--wf-focus-width) solid var(--surface-accent); outline-offset: var(--wf-focus-offset); border-radius: var(--wf-radius-2xs); }
.wf-disclosure__chevron { flex: none; color: var(--wf-text-muted); transition: transform var(--wf-duration-base) var(--wf-ease-emphasized); }
.wf-disclosure[open] .wf-disclosure__chevron { transform: rotate(180deg); }
.wf-disclosure__body { padding: 0 0 18px; color: var(--wf-text-muted); max-width: 70ch; }
.wf-disclosure[open] .wf-disclosure__body { animation: wf-rise-in var(--wf-duration-base) var(--wf-ease-enter) both; }

/* ---------- motion kit ----------
   Motion explains a change of state: something opened, arrived, updated or is still loading. It never decorates a
   static page (no fade-up on every section). Durations and easings come from tokens/motion.tokens.json; under
   prefers-reduced-motion base.css switches every animation off, and loops below fall back to a still state. */

@keyframes wf-fade-in { from { opacity: 0; } }
@keyframes wf-fade-out { to { opacity: 0; } }
@keyframes wf-rise-in { from { opacity: 0; transform: translateY(var(--wf-motion-distance)); } }
@keyframes wf-drop-in { from { opacity: 0; transform: translateY(calc(-1 * var(--wf-motion-distance))); } }
@keyframes wf-scale-in { from { opacity: 0; transform: scale(.96); } }
@keyframes wf-scale-out { to { opacity: 0; transform: scale(.96); } }
@keyframes wf-slide-in-left { from { transform: translateX(-100%); } }
@keyframes wf-slide-in-right { from { transform: translateX(100%); } }
@keyframes wf-spin { to { transform: rotate(360deg); } }
@keyframes wf-pulse-ring { from { transform: scale(1); opacity: .55; } to { transform: scale(2.6); opacity: 0; } }
@keyframes wf-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes wf-indeterminate { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@keyframes wf-flash { from { background-color: color-mix(in srgb, var(--surface-accent) 18%, transparent); } }
@keyframes wf-flow-dash { to { stroke-dashoffset: -24; } }
@keyframes wf-icon-swap { from { opacity: 0; transform: rotate(-90deg) scale(.6); } }
@keyframes wf-pop { 45% { transform: scale(1.22); } }
@keyframes wf-menu-in { from { opacity: 0; transform: translateY(calc(-.5 * var(--wf-motion-distance))) scale(.97); } }
@keyframes wf-flow-run { from { background-position: 0 0; } to { background-position: 0 -200%; } }

/* Enter: elements arriving on screen decelerate into place. */
.wf-anim-fade { animation: wf-fade-in var(--wf-duration-fast) var(--wf-ease-enter) both; }
.wf-anim-rise { animation: wf-rise-in var(--wf-duration-slow) var(--wf-ease-enter) both; }
.wf-anim-drop { animation: wf-drop-in var(--wf-duration-base) var(--wf-ease-enter) both; }
.wf-anim-scale { animation: wf-scale-in var(--wf-duration-base) var(--wf-ease-emphasized) both; transform-origin: var(--wf-origin, top center); }
.wf-anim-slide-left { animation: wf-slide-in-left var(--wf-duration-base) var(--wf-ease-emphasized) both; }
.wf-anim-slide-right { animation: wf-slide-in-right var(--wf-duration-base) var(--wf-ease-emphasized) both; }
/* Exit: accelerate away, shorter than the entrance. */
.wf-anim-out { animation: wf-fade-out var(--wf-duration-fast) var(--wf-ease-exit) both; }
.wf-anim-scale-out { animation: wf-scale-out var(--wf-duration-fast) var(--wf-ease-exit) both; }

/* A list that arrives together (search results, a refreshed table): each child waits --i steps. */
.wf-stagger > * { animation: wf-rise-in var(--wf-duration-slow) var(--wf-ease-enter) both; animation-delay: calc(var(--i, 0) * var(--wf-stagger)); }

/* A value that just changed: a short accent wash that fades out. Re-key the element to replay it. */
.wf-flash { animation: wf-flash var(--wf-duration-slower) var(--wf-ease-standard) both; border-radius: var(--wf-radius-2xs); }

/* Live: a reading that is arriving right now. Use only next to fresh data, never for decoration. */
.wf-live { position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--data-fresh); flex: none; }
.wf-live::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--data-fresh); animation: wf-pulse-ring var(--wf-duration-loop) var(--wf-ease-exit) infinite; }

/* Loading. A skeleton keeps the layout still while data loads; a spinner is for short waits inside a control. */
.wf-skeleton {
  display: block; width: var(--w, 100%); height: var(--h, 1em); border-radius: var(--wf-radius-2xs);
  background: linear-gradient(90deg, var(--wf-surface-2) 0%, color-mix(in srgb, var(--wf-surface-2) 40%, var(--wf-white)) 50%, var(--wf-surface-2) 100%);
  background-size: 200% 100%; animation: wf-shimmer var(--wf-duration-loop) linear infinite;
}
.wf-skeleton--text { height: .9em; margin: .3em 0; }
.wf-skeleton--circle { border-radius: 50%; width: var(--w, 32px); height: var(--w, 32px); }
.wf-spinner {
  display: inline-block; width: var(--w, 18px); height: var(--w, 18px); flex: none; border-radius: 50%;
  border: 2px solid color-mix(in srgb, currentColor 22%, transparent); border-top-color: currentColor;
  animation: wf-spin calc(var(--wf-duration-loop) / 2) linear infinite;
}
.wf-progress { position: relative; display: block; height: var(--wf-track-h); border-radius: var(--wf-track-radius); background: var(--wf-surface-2); overflow: hidden; }
.wf-progress__bar { display: block; height: 100%; width: var(--p, 0%); background: var(--surface-fill); border-radius: inherit; transition: width var(--wf-duration-slow) var(--wf-ease-standard); }
.wf-progress--indeterminate .wf-progress__bar { width: 40%; animation: wf-indeterminate calc(var(--wf-duration-loop) * .9) var(--wf-ease-standard) infinite; }

/* The Wesfin flow line, live: energy moving along a connection. On an SVG path or line with class wf-flowing. */
.wf-flowing { stroke-dasharray: 6 6; animation: wf-flow-dash calc(var(--wf-duration-loop) / 2) linear infinite; }
.wf-flow--live::before { background: linear-gradient(180deg, var(--surface-fill), var(--surface-grad2), var(--surface-fill)); background-size: 100% 200%; animation: wf-flow-run calc(var(--wf-duration-loop) * 2) linear infinite; }

/* Icon swap: menu to close, sun to moon, copy to check. IconButton, ThemeToggle and the site menu add these only when
   the icon changes, never on first render. Pop is for a toggle turning on (a star, a pin). */
.wf-icon-swap { animation: wf-icon-swap var(--wf-duration-base) var(--wf-ease-spring) both; }
.wf-icon-pop { animation: wf-pop var(--wf-duration-slow) var(--wf-ease-spring) both; }

/* Press feedback for custom tappable surfaces. */
.wf-pressable { transition: transform var(--wf-duration-instant) var(--wf-ease-standard); }
.wf-pressable:active { transform: scale(.98); }

@media (prefers-reduced-motion: reduce) {
  .wf-live::after, .wf-flowing, .wf-flow--live::before { animation: none; }
  .wf-skeleton { animation: none; }
  .wf-progress--indeterminate .wf-progress__bar { animation: none; width: 100%; opacity: .45; }
}

/* Guidance and catalogue pieces: Tooltip, Term, Badge, Card, CardGrid, Checklist, TourStep (Lab onboarding and
   marketplace). Floating panels follow D10: a shadow in light, an overlay border in dark. */

/* tooltip */
.wf-tooltip { position: relative; display: inline-flex; }
.wf-tooltip__bubble {
  position: absolute; left: 50%; transform: translateX(-50%); z-index: var(--wf-z-popover); width: max-content; max-width: min(var(--wf-tooltip-w), calc(100vw - 32px));
  padding: 6px 10px; border-radius: var(--wf-popover-radius); background: var(--wf-ink); color: var(--wf-on-ink);
  font-size: var(--t-caption); font-weight: var(--wf-weight-medium); line-height: 1.4; text-align: center; pointer-events: none;
  animation: wf-fade-in var(--wf-duration-fast) var(--wf-ease-enter) both;
}
.wf-tooltip__bubble[hidden] { display: none; }
.wf-tooltip__bubble--top { bottom: calc(100% + 8px); }
.wf-tooltip__bubble--bottom { top: calc(100% + 8px); }

/* term: a glossary word with its popover */
.wf-term { position: relative; display: inline; }
.wf-term__word {
  display: inline; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: help;
  text-decoration: underline dotted; text-decoration-color: var(--wf-text-soft); text-underline-offset: .2em; text-decoration-thickness: 1.5px;
}
.wf-term__word:hover, .wf-term__word[aria-expanded="true"] { text-decoration-color: var(--surface-accent); color: var(--ink); }
.wf-term__pop {
  position: absolute; left: 0; top: calc(100% + 6px); z-index: var(--wf-z-popover); display: grid; gap: 8px;
  width: max-content; max-width: min(var(--wf-popover-w), calc(100vw - 32px)); padding: 12px 14px;
  border-radius: var(--wf-popover-radius); border: 1px solid var(--wf-border-overlay); background: var(--wf-white); box-shadow: var(--wf-shadow-popover);
  font-size: var(--t-body-sm); font-weight: var(--wf-weight-regular); line-height: 1.45; color: var(--wf-text); text-align: left;
  animation: wf-fade-in var(--wf-duration-fast) var(--wf-ease-enter) both;
}
.wf-term__pop[hidden] { display: none; }
.wf-term__link { font-weight: var(--wf-weight-semibold); color: var(--wf-link); text-decoration: none; }
.wf-term__link:hover { text-decoration: underline; }

/* badges: the word is always there; weight rises from community to certified */
.wf-badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border: 1px solid transparent; border-radius: var(--wf-badge-radius);
  font-size: var(--t-caption); font-weight: var(--wf-weight-semibold); line-height: 1.5; white-space: nowrap;
}
.wf-badge--example { border: 1px dashed var(--wf-border-control); color: var(--wf-text-muted); }
.wf-badge--simulated { color: var(--control-simulated); background: color-mix(in srgb, var(--control-simulated) 12%, transparent); }
.wf-badge--community { border-color: var(--wf-border-control); color: var(--wf-text); }
.wf-badge--verified { background: var(--wf-surface-2); border-color: var(--wf-border); color: var(--ink); }
.wf-badge--certified { background: var(--wf-ink); color: var(--wf-on-ink); }
.wf-badge--pilot { background: var(--wf-surface-2); border-color: var(--wf-border-control); color: var(--wf-text); }
.wf-badge--soon { border: 1px dashed var(--wf-border-control); color: var(--wf-text-soft); }
.wf-badge--roadmap { border: 1px dotted var(--wf-border-control); color: var(--wf-text-soft); }
/* on a deep (ink) section the listing badges keep their word readable: the simulated tint and the soft text of soon
   and roadmap would fall under 4.5:1 on --surface-deep */
.wf-section--ink .wf-badge--simulated { color: var(--surface-on-deep); background: color-mix(in srgb, var(--surface-on-deep) 14%, transparent); }
.wf-section--ink :is(.wf-badge--soon, .wf-badge--roadmap, .wf-badge--example) { color: var(--surface-on-deep-muted); border-color: var(--wf-ondeep-border); }
.wf-badge--standard { background: var(--wf-surface-2); color: var(--wf-text-muted); font-family: var(--font-mono); font-weight: var(--wf-weight-medium); }

/* card */
.wf-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(var(--wf-card-min), 100%), 1fr)); gap: 16px; }
.wf-card {
  position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  border: 1px solid var(--wf-border); border-radius: var(--wf-card-radius); background: var(--wf-white);
  transition: border-color var(--wf-duration-fast) var(--wf-ease-standard), box-shadow var(--wf-duration-fast) var(--wf-ease-standard), transform var(--wf-duration-base) var(--wf-ease-standard);
}
.wf-card--link:hover { border-color: var(--wf-border-control); box-shadow: var(--wf-shadow-card); transform: translateY(calc(-1 * var(--wf-hover-lift))); }
.wf-card--link:focus-within { border-color: var(--surface-accent); }
.wf-card__media { aspect-ratio: 16 / 9; background: var(--wf-surface-2); overflow: hidden; }
.wf-card__media > img, .wf-card__media > svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.wf-card__body { display: grid; gap: 8px; align-content: start; padding: 16px 16px 12px; flex: 1; }
.wf-card__eyebrow { margin: 0; font-size: var(--t-caption); font-weight: var(--wf-weight-semibold); color: var(--wf-text-soft); }
.wf-card__title { margin: 0; font-size: var(--t-base); font-weight: var(--wf-weight-bold); color: var(--ink); line-height: 1.3; }
.wf-card__link { color: inherit; text-decoration: none; }
.wf-card__link::after { content: ""; position: absolute; inset: 0; }
.wf-card__link:focus-visible { outline: none; }
.wf-card__link:focus-visible::after { outline: var(--wf-focus-width) solid var(--surface-accent); outline-offset: calc(var(--wf-focus-width) * -1); border-radius: var(--wf-card-radius); }
.wf-card--link:hover .wf-card__link { text-decoration: underline; }
.wf-card__badges { display: flex; flex-wrap: wrap; gap: 6px; }
.wf-card__text { font-size: var(--t-body-sm); color: var(--wf-text-muted); }
.wf-card__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: var(--t-caption); color: var(--wf-text-soft); }
.wf-card__actions { position: relative; display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px 16px; border-top: 1px solid var(--wf-border); }

/* checklist */
.wf-checklist { display: grid; gap: 12px; }
.wf-checklist__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.wf-checklist__title { margin: 0; font-size: var(--t-base); font-weight: var(--wf-weight-bold); color: var(--ink); }
.wf-checklist__count { font-size: var(--t-caption); font-weight: var(--wf-weight-semibold); color: var(--wf-text-muted); white-space: nowrap; }
.wf-checklist__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.wf-checklist__list > li { display: grid; grid-template-columns: var(--wf-checklist-marker) minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 10px 12px; border-radius: var(--wf-radius-sm); }
.wf-checklist__list > li.is-next { background: var(--surface-tint); }
.wf-checklist__marker {
  display: grid; place-items: center; width: var(--wf-checklist-marker); height: var(--wf-checklist-marker); border-radius: 50%;
  border: 1.5px solid var(--wf-border-control); font-size: var(--t-caption); font-weight: var(--wf-weight-semibold); color: var(--wf-text-muted); font-family: var(--font-num);
}
.is-next > .wf-checklist__marker { border-color: var(--surface-fill); color: var(--surface-accent); }
.is-done > .wf-checklist__marker { border-color: var(--surface-fill); background: var(--surface-fill); color: var(--surface-on-fill); }
.wf-checklist__text { display: grid; gap: 2px; padding-top: 2px; }
.wf-checklist__label { font-weight: var(--wf-weight-semibold); color: var(--ink); }
.wf-checklist__label a { color: inherit; text-decoration: none; }
.wf-checklist__label a:hover { text-decoration: underline; }
.is-done .wf-checklist__label { font-weight: var(--wf-weight-medium); color: var(--wf-text-muted); }
.wf-checklist__hint { font-size: var(--t-body-sm); color: var(--wf-text-muted); }
.wf-checklist__action { align-self: center; }
@media (max-width: 480px) { .wf-checklist__list > li { grid-template-columns: var(--wf-checklist-marker) minmax(0, 1fr); } .wf-checklist__action { grid-column: 2; } }

/* tour step */
.wf-tour {
  position: relative; display: grid; gap: 8px; width: min(var(--wf-popover-w), calc(100vw - 32px)); padding: 14px 16px 16px;
  border-radius: var(--wf-popover-radius); border: 1px solid var(--wf-border-overlay); background: var(--wf-white); box-shadow: var(--wf-shadow-popover);
  color: var(--wf-text); animation: wf-scale-in var(--wf-duration-base) var(--wf-ease-emphasized) both;
}
.wf-tour:focus { outline: none; }
.wf-tour:focus-visible { outline: var(--wf-focus-width) solid var(--surface-accent); outline-offset: var(--wf-focus-offset); }
.wf-tour::before {
  content: ""; position: absolute; width: var(--wf-popover-arrow); height: var(--wf-popover-arrow); background: inherit;
  border: inherit; border-width: 1px 0 0 1px; transform: rotate(45deg);
}
.wf-tour--bottom::before { top: calc(var(--wf-popover-arrow) / -2 - 1px); left: 24px; }
.wf-tour--top::before { bottom: calc(var(--wf-popover-arrow) / -2 - 1px); left: 24px; transform: rotate(225deg); }
.wf-tour--right::before { left: calc(var(--wf-popover-arrow) / -2 - 1px); top: 20px; transform: rotate(-45deg); }
.wf-tour--left::before { right: calc(var(--wf-popover-arrow) / -2 - 1px); top: 20px; transform: rotate(135deg); }
.wf-tour__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wf-tour__count { font-size: var(--t-caption); font-weight: var(--wf-weight-semibold); color: var(--surface-accent); }
.wf-tour__close { display: grid; place-items: center; width: 28px; height: 28px; margin: -4px -6px -4px 0; padding: 0; border: 0; border-radius: var(--wf-radius-xs); background: none; color: var(--wf-text-muted); cursor: pointer; }
.wf-tour__close:hover { background: var(--wf-surface-2); color: var(--ink); }
.wf-tour__title { margin: 0; font-size: var(--t-base); font-weight: var(--wf-weight-bold); color: var(--ink); }
.wf-tour__body { font-size: var(--t-body-sm); color: var(--wf-text-muted); }
.wf-tour__foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }

/* info tip: a small (i) beside a label; its explanation reuses the term popover */
.wf-infotip { display: inline-flex; vertical-align: middle; margin-inline-start: var(--wf-space-1); }
.wf-infotip__btn {
  display: inline-grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 1px solid var(--wf-border-control);
  border-radius: 50%; background: transparent; color: var(--wf-text-muted); cursor: help;
}
.wf-infotip__btn:hover, .wf-infotip__btn[aria-expanded="true"] { color: var(--ink); border-color: var(--ink); }
/* a 22px target grows to 44px of touch area without moving the layout */
.wf-infotip__btn { position: relative; }
.wf-infotip__btn::after { content: ""; position: absolute; inset: -11px; }

/* next step: the one thing to do now on a cabinet or form page */
.wf-nextstep {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--wf-space-4) var(--wf-space-6); align-items: start;
  padding: var(--wf-space-5); border: 1px solid var(--wf-border); border-radius: var(--wf-panel-radius); background: var(--wf-white);
}
.wf-nextstep--you { border-color: var(--surface-accent); box-shadow: inset 4px 0 0 var(--surface-accent); }
.wf-nextstep__main { display: grid; gap: var(--wf-space-2); min-width: 0; }
.wf-nextstep__kicker {
  display: inline-flex; align-items: center; gap: var(--wf-space-1); margin: 0; font-size: var(--t-caption); font-weight: var(--wf-weight-semibold);
  letter-spacing: var(--wf-tracking-caps); text-transform: uppercase; color: var(--wf-text-muted);
}
.wf-nextstep--you .wf-nextstep__kicker { color: var(--surface-accent); }
.wf-nextstep__title { margin: 0; font-family: var(--font-display); font-size: var(--t-lg); font-weight: var(--wf-weight-bold); line-height: var(--wf-leading-heading); color: var(--ink); text-wrap: balance; }
.wf-nextstep__body { color: var(--wf-text-muted); line-height: var(--wf-leading-body); max-width: 68ch; }
.wf-nextstep__body > * { margin: 0; }
.wf-nextstep__body > * + * { margin-top: var(--wf-space-2); }
.wf-nextstep__actions { display: grid; gap: var(--wf-space-2); justify-items: stretch; min-width: min(100%, 15rem); }
.wf-nextstep__facts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--wf-space-2) var(--wf-space-6); margin: 0; padding-top: var(--wf-space-3); border-top: 1px solid var(--wf-border); }
.wf-nextstep__facts > div { display: grid; gap: 2px; min-width: 0; }
.wf-nextstep__facts dt { font-size: var(--t-caption); color: var(--wf-text-muted); }
.wf-nextstep__facts dd { margin: 0; font-size: var(--t-body-sm); font-weight: var(--wf-weight-semibold); color: var(--ink); }
.wf-nextstep__after { grid-column: 1 / -1; margin: 0; font-size: var(--t-body-sm); color: var(--wf-text-muted); line-height: var(--wf-leading-body); }
.wf-nextstep__after b { margin-inline-end: var(--wf-space-2); color: var(--ink); font-weight: var(--wf-weight-semibold); }
.wf-nextstep__after b::after { content: ":"; }
@media (max-width: 720px) {
  .wf-nextstep { grid-template-columns: minmax(0, 1fr); padding: var(--wf-space-4); }
  .wf-nextstep__actions { min-width: 0; }
}

/* QrHandoff: continue on the phone. The code on the left, what to do on the right; on a phone they stack. Motion
   only says "waiting" (corners breathe, the current step pulses, the code is being drawn) or "changed" (a badge pops
   in); all of it stops under prefers-reduced-motion. */
@keyframes wf-handoff-sweep { from { transform: translateY(-110%); } to { transform: translateY(110%); } }
@keyframes wf-handoff-breathe { 50% { transform: scale(1.035); opacity: .55; } }
@keyframes wf-handoff-bob { 50% { transform: translateY(calc(-.5 * var(--wf-motion-distance))); } }
@keyframes wf-handoff-ring { from { transform: scale(1); opacity: .5; } to { transform: scale(2.2); opacity: 0; } }

.wf-handoff {
  --wf-handoff-qr: 196px;
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--wf-space-6); align-items: start;
}
/* On a phone the code is for someone else's camera: the button that opens the app on this phone comes first. */
@media (max-width: 640px) { .wf-handoff { grid-template-columns: minmax(0, 1fr); justify-items: center; } .wf-handoff__side { justify-self: stretch; } .wf-handoff__open { order: -1; } }

.wf-handoff__visual { display: grid; gap: var(--wf-space-3); justify-items: center; width: calc(var(--wf-handoff-qr) + 2 * var(--wf-space-5)); max-width: 100%; }
.wf-handoff__frame {
  position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; padding: var(--wf-space-5);
  border-radius: var(--wf-radius-md); background: var(--wf-surface-2); overflow: hidden; isolation: isolate;
}
/* Viewfinder corners: four L marks drawn with gradients, outside the code's quiet zone so they never touch a module. */
.wf-handoff__corners {
  position: absolute; inset: var(--wf-space-2); pointer-events: none; color: var(--surface-accent);
  --c: 22px; --w: 3px;
  background:
    linear-gradient(currentColor, currentColor) top left / var(--c) var(--w),
    linear-gradient(currentColor, currentColor) top left / var(--w) var(--c),
    linear-gradient(currentColor, currentColor) top right / var(--c) var(--w),
    linear-gradient(currentColor, currentColor) top right / var(--w) var(--c),
    linear-gradient(currentColor, currentColor) bottom left / var(--c) var(--w),
    linear-gradient(currentColor, currentColor) bottom left / var(--w) var(--c),
    linear-gradient(currentColor, currentColor) bottom right / var(--c) var(--w),
    linear-gradient(currentColor, currentColor) bottom right / var(--w) var(--c);
  background-repeat: no-repeat;
}
.wf-handoff--scan .wf-handoff__corners, .wf-handoff--preparing .wf-handoff__corners { animation: wf-handoff-breathe var(--wf-duration-loop) var(--wf-ease-standard) infinite; }
.wf-handoff--done .wf-handoff__corners { color: var(--status-success); }
.wf-handoff--ended .wf-handoff__corners { color: var(--wf-text-muted); }

.wf-handoff__qr {
  display: grid; place-items: center; width: var(--wf-handoff-qr); max-width: 100%; aspect-ratio: 1; line-height: 0;
  background: var(--wf-static-white); border-radius: var(--wf-radius-sm);
  transition: opacity var(--wf-duration-slow) var(--wf-ease-standard), filter var(--wf-duration-slow) var(--wf-ease-standard);
}
.wf-handoff__qr > :is(svg, img) { display: block; width: 100%; height: 100%; animation: wf-scale-in var(--wf-duration-slow) var(--wf-ease-emphasized) both; }
.wf-handoff--preparing .wf-handoff__qr { background: var(--wf-surface); }
.wf-handoff__ghost { color: var(--wf-text-muted); opacity: .5; }
/* While the code is being made, a soft band runs down the empty frame. */
.wf-handoff__sweep {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--surface-accent) 22%, transparent) 50%, transparent 100%);
  animation: wf-handoff-sweep var(--wf-duration-loop) var(--wf-ease-standard) infinite;
}
/* After the scan the code steps back and a badge says what is happening now. */
.wf-handoff:is(.wf-handoff--opened, .wf-handoff--checking, .wf-handoff--done, .wf-handoff--ended) .wf-handoff__qr { opacity: .12; filter: blur(1px); }
.wf-handoff__badge {
  position: absolute; display: grid; place-items: center; width: 64px; height: 64px; border-radius: var(--wf-radius-pill);
  background: var(--surface-accent); color: var(--surface-on-fill);
  animation: wf-scale-in var(--wf-duration-base) var(--wf-ease-spring) both;
}
.wf-handoff__badge::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: var(--wf-border-w-strong) solid var(--surface-accent); animation: wf-handoff-ring var(--wf-duration-loop) var(--wf-ease-exit) infinite; }
.wf-handoff--opened .wf-handoff__badge svg { animation: wf-handoff-bob var(--wf-duration-loop) var(--wf-ease-standard) infinite; }
.wf-handoff--checking .wf-handoff__badge::before {
  content: ""; position: absolute; inset: calc(-1 * var(--wf-space-1)); border-radius: inherit;
  border: var(--wf-border-w-strong) solid transparent; border-top-color: var(--surface-accent);
  animation: wf-spin calc(var(--wf-duration-loop) / 2) linear infinite;
}
.wf-handoff--checking .wf-handoff__badge::after { animation: none; opacity: 0; }
.wf-handoff--done .wf-handoff__badge { background: var(--status-success); color: var(--wf-static-white); animation: wf-pop var(--wf-duration-slow) var(--wf-ease-spring) both; }
.wf-handoff--done .wf-handoff__badge::after, .wf-handoff--ended .wf-handoff__badge::after { animation: none; opacity: 0; }
.wf-handoff--ended .wf-handoff__badge { background: var(--wf-surface); color: var(--wf-text-muted); border: var(--wf-border-w) solid var(--wf-border); }

.wf-handoff__timer { display: grid; gap: var(--wf-space-1); width: 100%; font-size: var(--t-body-sm); color: var(--wf-text-muted); font-variant-numeric: tabular-nums; }
.wf-handoff__timer .wf-progress { width: 100%; }
.wf-handoff__timer > span { display: inline-flex; align-items: center; gap: var(--wf-space-1); justify-self: center; }
.wf-handoff__open { width: 100%; justify-content: center; }

.wf-handoff__side { display: grid; gap: var(--wf-space-4); min-width: 0; }
.wf-handoff__status { margin: 0; display: flex; align-items: center; gap: var(--wf-space-2); font-weight: var(--wf-weight-semibold); color: var(--wf-text); }
.wf-handoff--done .wf-handoff__status { color: var(--status-success); }
.wf-handoff--ended .wf-handoff__status { color: var(--wf-text-muted); }
.wf-handoff__pulse { position: relative; width: 10px; height: 10px; flex: none; border-radius: var(--wf-radius-pill); background: var(--surface-accent); }
.wf-handoff__pulse::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--surface-accent); animation: wf-handoff-ring var(--wf-duration-loop) var(--wf-ease-exit) infinite; }

.wf-handoff__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: none; }
.wf-handoff__steps > li { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--wf-space-3); padding-bottom: var(--wf-space-4); }
.wf-handoff__steps > li:last-child { padding-bottom: 0; }
/* The thread between knots: solid once a step is behind, dashed ahead. */
.wf-handoff__steps > li:not(:last-child)::before {
  content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; border-left: var(--wf-border-w-strong) dashed var(--wf-border-control);
}
.wf-handoff__steps > li.is-done:not(:last-child)::before { border-left-style: solid; border-left-color: var(--wf-text); }
.wf-handoff__knot {
  position: relative; display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--wf-radius-pill);
  border: var(--wf-border-w-strong) dashed var(--wf-border-control); color: var(--wf-text-muted); font-size: var(--t-body-sm); font-weight: var(--wf-weight-semibold);
  font-variant-numeric: tabular-nums; background: var(--wf-surface);
}
.wf-handoff__steps > li.is-done .wf-handoff__knot { border-style: solid; border-color: var(--wf-text); background: var(--wf-text); color: var(--wf-surface); }
.wf-handoff__steps > li.is-done .wf-handoff__knot svg { animation: wf-icon-swap var(--wf-duration-base) var(--wf-ease-spring) both; }
.wf-handoff__steps > li.is-current .wf-handoff__knot { border-style: solid; border-color: var(--surface-accent); background: var(--surface-accent); color: var(--surface-on-fill); }
.wf-handoff__steps > li.is-current .wf-handoff__knot::after { content: ""; position: absolute; inset: calc(-1 * var(--wf-border-w-strong)); border-radius: inherit; border: var(--wf-border-w-strong) solid var(--surface-accent); animation: wf-handoff-ring var(--wf-duration-loop) var(--wf-ease-exit) infinite; }
.wf-handoff__text { display: grid; gap: var(--wf-space-1); padding-top: var(--wf-space-1); min-width: 0; }
.wf-handoff__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--wf-space-2); font-weight: var(--wf-weight-semibold); color: var(--wf-text); }
.wf-handoff__steps > li.is-ahead .wf-handoff__title { color: var(--wf-text-muted); font-weight: var(--wf-weight-medium); }
.wf-handoff__now { font-size: var(--t-xs); font-weight: var(--wf-weight-semibold); text-transform: uppercase; letter-spacing: .06em; color: var(--surface-accent); }
.wf-handoff__hint { font-size: var(--t-body-sm); color: var(--wf-text-muted); }
.wf-handoff__actions { display: flex; flex-wrap: wrap; gap: var(--wf-space-2); }

@media (prefers-reduced-motion: reduce) {
  .wf-handoff__corners, .wf-handoff__sweep, .wf-handoff__badge, .wf-handoff__badge::after, .wf-handoff__badge::before, .wf-handoff__badge svg,
  .wf-handoff__pulse::after, .wf-handoff__knot::after, .wf-handoff__knot svg, .wf-handoff__qr > :is(svg, img) { animation: none !important; }
  .wf-handoff__sweep { display: none; }
  .wf-handoff__qr { transition: none; }
}

/* Wesfin Knowledge pieces: SourceKind, Citation, SummaryNote, ActDates. ActStatus and SourceCheck are Status. */

.wf-srckind { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-caption); font-weight: var(--wf-weight-medium); color: var(--wf-text-muted); white-space: nowrap; }

/* citation: the official words, set apart from ours by a rule and the source line */
.wf-citation { margin: 0; display: grid; gap: 10px; padding: 4px 0 4px 18px; border-left: 2px solid var(--wf-border-control); }
.wf-citation__quote { margin: 0; font-size: var(--t-base); line-height: 1.6; color: var(--ink); }
.wf-citation__cap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: var(--t-caption); color: var(--wf-text-muted); }
.wf-citation__src { display: inline-flex; align-items: center; gap: 4px; font-weight: var(--wf-weight-semibold); color: var(--wf-link); text-decoration: none; }
.wf-citation__src:hover, .wf-citation__snap:hover { text-decoration: underline; }
.wf-citation__loc { font-family: var(--font-mono); }
.wf-citation__snap { color: var(--wf-text-muted); text-decoration: none; }

/* summary: our words, always labelled */
.wf-summary { display: grid; gap: 8px; padding: 14px 16px; border-radius: var(--wf-panel-radius); background: var(--wf-surface-2); }
.wf-summary__label { margin: 0; display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-caption); font-weight: var(--wf-weight-semibold); color: var(--wf-text-muted); }
.wf-summary__body { font-size: var(--t-body-sm); line-height: 1.55; color: var(--wf-text); }
.wf-summary__body > :first-child { margin-top: 0; }
.wf-summary__body > :last-child { margin-bottom: 0; }

/* act dates */
.wf-actdates { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px 24px; }
.wf-actdates__row { display: grid; gap: 2px; }
.wf-actdates dt { font-size: var(--t-caption); color: var(--wf-text-muted); }
.wf-actdates dd { margin: 0; font-size: var(--t-body-sm); font-weight: var(--wf-weight-semibold); color: var(--ink); }
.wf-actdates dd.wf-actdates__none { color: var(--wf-text-soft); font-weight: var(--wf-weight-regular); }

/* ---------- mascot ---------- */
.wf-mascot { display: inline-block; flex: none; width: var(--wf-mascot-md); line-height: 0; }
.wf-mascot--xs { width: var(--wf-mascot-xs); }
.wf-mascot--sm { width: var(--wf-mascot-sm); }
.wf-mascot--lg { width: var(--wf-mascot-lg); }
.wf-mascot svg { display: block; width: 100%; height: auto; overflow: visible; }
.wf-mascot g { transform-box: fill-box; }

.wf-mascot.is-alive .m-head { animation: wf-mascot-bob calc(var(--wf-duration-loop) * 2) var(--wf-ease-standard) infinite; }
.wf-mascot.is-alive .m-eyes { transform-origin: center; animation: wf-mascot-blink calc(var(--wf-duration-loop) * 3) linear infinite; }
.wf-mascot.is-alive .m-tail { transform-origin: 0% 100%; animation: wf-mascot-wag calc(var(--wf-duration-loop) * 1.5) var(--wf-ease-standard) infinite; }
.wf-mascot.is-alive .m-sparks { animation: wf-mascot-flicker var(--wf-duration-loop) steps(2, jump-none) infinite; }
.wf-mascot.is-alive .m-zzz, .wf-mascot.is-alive .m-float { animation: wf-mascot-float calc(var(--wf-duration-loop) * 2) var(--wf-ease-standard) infinite; }
.wf-mascot.is-alive .m-confetti { animation: wf-mascot-float var(--wf-duration-loop) var(--wf-ease-standard) infinite; }
.wf-mascot.is-alive[data-mood="cheer"] .m-arms, .wf-mascot.is-alive[data-mood="celebrate"] .m-arms { transform-origin: center bottom; animation: wf-mascot-pump var(--wf-duration-loop) var(--wf-ease-standard) infinite; }
.wf-mascot.is-alive[data-mood="determined"] .m-body, .wf-mascot.is-alive[data-mood="determined"] .m-head { animation: wf-mascot-step var(--wf-duration-slower) var(--wf-ease-standard) infinite alternate; }

@keyframes wf-mascot-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(1.5%); } }
@keyframes wf-mascot-blink { 0%, 46%, 50%, 100% { transform: scaleY(1); } 48% { transform: scaleY(.1); } }
@keyframes wf-mascot-wag { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(6deg); } }
@keyframes wf-mascot-flicker { 0% { opacity: 1; } 100% { opacity: .35; } }
@keyframes wf-mascot-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6%); } }
@keyframes wf-mascot-pump { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4%); } }
@keyframes wf-mascot-step { from { transform: translateY(0); } to { transform: translateY(-1.5%); } }

@media (prefers-reduced-motion: reduce) {
  .wf-mascot * { animation: none !important; }
}

.wf-mascot--render { height: auto; aspect-ratio: 1; object-fit: contain; }

.wf-empty--mascot { gap: 6px; }

.wf-mascot-setting { display: grid; gap: 4px; }
.wf-mascot-setting__hint { margin: 0; padding-left: calc(var(--wf-switch-w) + 10px); font-size: var(--t-body-sm); color: var(--wf-text-muted); max-width: 60ch; }

/* Pulse profile (D22): the loud register for product and campaign landing pages of trading and market products.
   Opt in with data-profile="pulse" on a page wrapper or a section. Tokens: --pulse-* (profile.tokens.json); Pulse
   follows the page theme (light by default, dark with data-theme="dark"). This file maps the page roles onto the Pulse
   ground and adds the blocks a Pulse page is built from. The site fill is the one signal colour and is never status;
   it is never text or a thin mark on the light ground, where --pulse-signal-text and --pulse-mark take the accent.
   Motif: the trading day as columns. Hairline hour grids, sharp edges, one giant headline, figures set large. */

[data-profile="pulse"] {
  background: var(--pulse-ground);
  color: var(--pulse-text);
  --ink: var(--pulse-text);
  --wf-text: var(--pulse-text);
  --wf-text-muted: var(--pulse-text-muted);
  --wf-text-soft: var(--pulse-text-soft);
  --wf-white: var(--pulse-ground-raised);
  --wf-surface: var(--pulse-ground);
  --wf-surface-2: var(--pulse-ground-raised);
  --wf-border: var(--pulse-line);
  --wf-border-control: var(--pulse-line-strong);
  --wf-control-radius: var(--pulse-radius);
  --wf-panel-radius: var(--pulse-radius);
  --wf-card-radius: var(--pulse-radius);
  --wf-hourboard-h: var(--pulse-board-h);
  --wf-hourboard-gap: var(--pulse-board-gap);
  scrollbar-color: var(--pulse-line-strong) var(--pulse-ground);
}
[data-profile="pulse"] ::selection { background: var(--pulse-signal); color: var(--pulse-on-signal); }
[data-profile="pulse"] :focus-visible { outline-color: var(--pulse-signal-text); }
[data-profile="pulse"] a:not([class]) { color: var(--pulse-signal-text); text-underline-offset: .2em; text-decoration-thickness: var(--wf-border-w); }
[data-profile="pulse"] .wf-btn--primary { background: var(--pulse-signal); color: var(--pulse-on-signal); }
[data-profile="pulse"] .wf-btn--primary:hover { background: color-mix(in srgb, var(--pulse-signal) 86%, var(--pulse-text)); }
[data-profile="pulse"] .wf-btn--ghost { border-color: var(--pulse-line-strong); color: var(--pulse-text); }
[data-profile="pulse"] .wf-btn--ghost:hover { border-color: var(--pulse-text); }
[data-profile="pulse"] .wf-site-header, .wf-site-header[data-profile="pulse"] { background: var(--pulse-ground); backdrop-filter: none; border-bottom-color: var(--pulse-line); }
[data-profile="pulse"] .wf-site-footer { background: var(--pulse-ground-sunk); }
[data-profile="pulse"] .wf-lockup__word { color: var(--pulse-text); }
[data-profile="pulse"] .wf-site-nav li > a { color: var(--pulse-text); }
[data-profile="pulse"] .wf-site-nav li > a:hover { background: var(--pulse-signal-wash); }

/* Sections. One rhythm: the same padding everywhere, a hairline between sections, more air above a heading than below. */
.wf-pulse-section { position: relative; padding-block: var(--pulse-section-y); border-top: var(--wf-border-w) solid var(--pulse-line); }
.wf-pulse-section--sunk { background: var(--pulse-ground-sunk); }
.wf-pulse-section--flush { padding-block: 0; }
/* The hour grid: 24 hairline columns behind a section, the page's one recurring motif. */
.wf-pulse-hours { background-image: linear-gradient(to right, var(--pulse-grid) var(--wf-border-w), transparent var(--wf-border-w)); background-size: calc(100% / 24) 100%; }

.wf-pulse-display { margin: 0; font-family: var(--font-display); font-weight: var(--wf-weight-extrabold); font-size: var(--pulse-display); line-height: var(--pulse-display-leading); letter-spacing: var(--pulse-display-tracking); color: var(--pulse-text); text-wrap: balance; }
.wf-pulse-h2 { margin: 0; font-family: var(--font-display); font-weight: var(--wf-weight-bold); font-size: var(--pulse-h2); line-height: var(--wf-leading-heading); letter-spacing: var(--wf-tracking-display); color: var(--pulse-text); text-wrap: balance; max-width: 22ch; }
.wf-pulse-h3 { margin: 0; font-size: var(--t-title); line-height: var(--wf-leading-snug); font-weight: var(--wf-weight-semibold); color: var(--pulse-text); }
/* The signal word inside a headline: colour only, never gradient text. */
.wf-pulse-hl { color: var(--pulse-signal-text); }
.wf-pulse-lead { margin: 0; font-size: clamp(var(--t-base), 1.45vw, var(--t-title)); line-height: var(--wf-leading-body); color: var(--pulse-text-muted); max-width: 58ch; text-wrap: pretty; }
.wf-pulse-body { margin: 0; line-height: var(--wf-leading-body); color: var(--pulse-text-muted); max-width: 64ch; }
.wf-pulse-figure { font-family: var(--font-display); font-weight: var(--wf-weight-bold); font-variant-numeric: tabular-nums; white-space: nowrap; font-size: var(--pulse-figure); line-height: var(--pulse-display-leading); letter-spacing: var(--pulse-display-tracking); color: var(--pulse-text); }
.wf-pulse-source { font-size: var(--t-caption); color: var(--pulse-text-soft); }

/* Section head: heading left, a paragraph right, both on the baseline of the grid. */
.wf-pulse-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--wf-space-6) var(--wf-space-12); align-items: end; margin-bottom: var(--wf-space-16); }
@media (max-width: 900px) { .wf-pulse-head { grid-template-columns: minmax(0, 1fr); margin-bottom: var(--wf-space-10); } }

/* Tape: a strip of short facts under the hero, scrolls sideways on a phone. */
.wf-pulse-tape { display: flex; align-items: stretch; min-height: var(--pulse-tape-h); background: var(--pulse-ground-sunk); border-block: var(--wf-border-w) solid var(--pulse-line); overflow-x: auto; scrollbar-width: none; margin: 0; padding: 0; list-style: none; }
.wf-pulse-tape::-webkit-scrollbar { display: none; }
.wf-pulse-tape:focus-visible { outline-offset: calc(-1 * var(--wf-focus-width)); }
/* More facts than fit: the strip scrolls (focusable, so keys reach it) and fades at its right edge. */
.wf-pulse-tape { mask-image: linear-gradient(to right, var(--pulse-text) 88%, transparent); }
.wf-pulse-tape > li { flex: none; display: flex; align-items: center; gap: var(--wf-space-2); padding: 0 var(--wf-space-6); border-right: var(--wf-border-w) solid var(--pulse-line); font-size: var(--t-body-sm); color: var(--pulse-text-muted); white-space: nowrap; }
.wf-pulse-tape b { font-family: var(--font-num); font-weight: var(--wf-weight-regular); color: var(--pulse-text); }

/* Panel: a raised block with a ruled head. */
.wf-pulse-panel { background: var(--pulse-ground-raised); border: var(--wf-border-w) solid var(--pulse-line); border-radius: var(--pulse-radius); min-width: 0; }
.wf-pulse-panel__head { display: flex; flex-wrap: wrap; gap: var(--wf-space-3); justify-content: space-between; align-items: center; padding: var(--wf-space-4) var(--wf-space-5); border-bottom: var(--wf-border-w) solid var(--pulse-line); font-size: var(--t-body-sm); color: var(--pulse-text-soft); }
.wf-pulse-panel__body { padding: var(--wf-space-5); }

/* Versus: the same job done two ways, row by row. Column A is the old way (muted), B the product. */
.wf-pulse-vs { display: grid; margin: 0; padding: 0; list-style: none; }
.wf-pulse-vs__head, .wf-pulse-vs > li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.wf-pulse-vs__head { font-size: var(--t-caption); color: var(--pulse-text-soft); border-bottom: var(--wf-border-w) solid var(--pulse-line); }
.wf-pulse-vs__head > *, .wf-pulse-vs > li > * { padding: var(--wf-space-3) var(--wf-space-5); display: flex; gap: var(--wf-space-2); align-items: flex-start; min-width: 0; }
.wf-pulse-vs__head > :last-child { color: var(--pulse-text); font-weight: var(--wf-weight-semibold); }
/* The column name inside each cell: hidden while the head row shows, a caption once the rows stack. */
.wf-pulse-vs__tag { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wf-pulse-vs > li + li { border-top: var(--wf-border-w) solid var(--pulse-line); }
.wf-pulse-vs > li > :first-child { color: var(--pulse-text-soft); font-size: var(--t-body-sm); }
.wf-pulse-vs > li > :last-child { color: var(--pulse-text); font-size: var(--t-body-sm); background: var(--pulse-signal-wash); }
.wf-pulse-vs > li > :last-child svg { color: var(--pulse-text-muted); flex: none; margin-top: var(--wf-space-half); }
.wf-pulse-vs > li > :first-child svg { flex: none; margin-top: var(--wf-space-half); }
.wf-pulse-vs > li > * > span:not(.wf-pulse-vs__tag) { flex: 1; min-width: 0; }
@media (max-width: 520px) {
  .wf-pulse-vs__head { display: none; }
  .wf-pulse-vs > li > * { flex-wrap: wrap; }
  .wf-pulse-vs__tag { position: static; width: 100%; height: auto; overflow: visible; clip-path: none; font-size: var(--t-caption); color: var(--pulse-text-soft); }
  .wf-pulse-vs > li { grid-template-columns: minmax(0, 1fr); }
}

/* Rules: one large figure per row and what it means. */
.wf-pulse-rules { margin: 0; display: grid; grid-template-columns: minmax(max-content, 4fr) minmax(0, 8fr); column-gap: var(--wf-space-12); border-top: var(--wf-border-w) solid var(--pulse-line-strong); }
.wf-pulse-rules > div { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; gap: var(--wf-space-4) var(--wf-space-12); padding: var(--wf-space-8) 0; border-bottom: var(--wf-border-w) solid var(--pulse-line); align-items: baseline; }
.wf-pulse-rules dt { margin: 0; }
.wf-pulse-rules dd { margin: 0; display: grid; gap: var(--wf-space-2); }
.wf-pulse-rules dd strong { font-size: var(--t-title); font-weight: var(--wf-weight-semibold); color: var(--pulse-text); line-height: var(--wf-leading-snug); }
@media (max-width: 720px) { .wf-pulse-rules { grid-template-columns: minmax(0, 1fr); } .wf-pulse-rules > div { grid-template-columns: minmax(0, 1fr); padding: var(--wf-space-6) 0; } }

/* Day clock: events of a trading day on a 24-hour rail (--at = hour, 0..24). Labels alternate above and below.
   Markup: .wf-pulse-day > .wf-pulse-clock__hours (24 spans, aria-hidden) + ol.wf-pulse-clock > li. */
.wf-pulse-day { position: relative; padding-bottom: var(--wf-space-8); }
.wf-pulse-clock { position: relative; margin: 0; padding: 0; list-style: none; height: calc(var(--wf-space-36) * 2 + var(--wf-space-12)); }
.wf-pulse-clock::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: var(--wf-border-w); background: var(--pulse-line-strong); }
.wf-pulse-clock__hours { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); pointer-events: none; }
.wf-pulse-clock__hours > span { display: flex; align-items: flex-end; border-left: var(--wf-border-w) solid var(--pulse-grid); font-family: var(--font-num); font-size: var(--t-2xs); color: var(--pulse-text-soft); padding: 0 0 0 var(--wf-space-1); }
.wf-pulse-clock > li { position: absolute; left: calc(var(--at, 0) / 24 * 100%); top: 50%; width: min(200px, 18vw); padding-left: var(--wf-space-3); border-left: var(--wf-border-w) solid var(--pulse-line-strong); }
.wf-pulse-clock > li:nth-of-type(odd) { transform: translateY(-100%); padding-bottom: var(--wf-space-4); }
.wf-pulse-clock > li:nth-of-type(even) { padding-top: var(--wf-space-4); }
.wf-pulse-clock > li.is-key { border-left-color: var(--pulse-mark); border-left-width: var(--wf-border-w-strong); }
.wf-pulse-clock time { display: block; font-family: var(--font-display); font-weight: var(--wf-weight-bold); white-space: nowrap; font-size: var(--t-xl); line-height: 1; color: var(--pulse-text); letter-spacing: var(--wf-tracking-heading); }
.wf-pulse-clock li.is-key time { color: var(--pulse-signal-text); }
.wf-pulse-clock strong { display: block; margin-top: var(--wf-space-2); font-size: var(--t-body-sm); color: var(--pulse-text); font-weight: var(--wf-weight-semibold); }
.wf-pulse-clock p { margin: var(--wf-space-1) 0 0; font-size: var(--t-caption); color: var(--pulse-text-soft); line-height: var(--wf-leading-snug); }
@media (max-width: 1100px) {
  .wf-pulse-clock { height: auto; display: grid; gap: 0; border-left: var(--wf-border-w) solid var(--pulse-line-strong); margin-left: var(--wf-space-2); }
  .wf-pulse-clock::before, .wf-pulse-clock__hours { display: none; }
  .wf-pulse-clock > li, .wf-pulse-clock > li:nth-of-type(odd), .wf-pulse-clock > li:nth-of-type(even) { position: relative; left: auto; top: auto; transform: none; width: auto; border-left: 0; padding: var(--wf-space-4) 0 var(--wf-space-4) var(--wf-space-6); }
  .wf-pulse-clock > li::before { content: ""; position: absolute; left: calc(-1 * var(--wf-space-1-half)); top: var(--wf-space-5); width: var(--wf-space-3); height: var(--wf-space-3); background: var(--pulse-ground); border: var(--wf-border-w-strong) solid var(--pulse-line-strong); border-radius: var(--wf-radius-pill); }
  .wf-pulse-clock > li.is-key::before { background: var(--pulse-mark); border-color: var(--pulse-mark); }
}

/* Questions: native details rows. */
.wf-pulse-faq { border-top: var(--wf-border-w) solid var(--pulse-line-strong); }
.wf-pulse-faq details { border-bottom: var(--wf-border-w) solid var(--pulse-line); }
.wf-pulse-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: var(--wf-space-6); align-items: baseline; padding: var(--wf-space-6) 0; font-size: var(--t-title); font-weight: var(--wf-weight-semibold); color: var(--pulse-text); }
.wf-pulse-faq summary::-webkit-details-marker { display: none; }
.wf-pulse-faq summary::after { content: "+"; font-family: var(--font-num); font-weight: var(--wf-weight-regular); font-size: var(--t-xl); line-height: 1; color: var(--pulse-text-soft); transition: transform var(--wf-duration-base) var(--wf-ease-standard); }
.wf-pulse-faq details[open] summary::after { transform: rotate(45deg); }
.wf-pulse-faq details > div { padding: 0 0 var(--wf-space-6); max-width: 70ch; color: var(--pulse-text-muted); line-height: var(--wf-leading-body); }

/* Code: an API call or a route, in the terminal palette. */
.wf-pulse-code { margin: 0; padding: var(--wf-space-5); background: var(--wf-code-bg); border: var(--wf-border-w) solid var(--wf-code-border); border-radius: var(--pulse-radius); font-family: var(--font-mono); font-size: var(--t-body-sm); line-height: var(--wf-leading-body); color: var(--wf-code-text); overflow-x: auto; white-space: pre; }
.wf-pulse-code .c { color: var(--wf-code-comment); }
.wf-pulse-code .k { color: var(--wf-code-keyword); }
.wf-pulse-code .s { color: var(--wf-code-string); }

/* HourBoard (works on any register; Pulse makes it taller). */
.wf-hourboard { --wf-hourboard-mark: var(--surface-accent); margin: 0; display: grid; gap: var(--wf-space-4); min-width: 0; }
.wf-hourboard__readout { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--wf-space-2) var(--wf-space-5); min-height: var(--wf-space-12); }
.wf-hourboard__hour { font-size: var(--t-body-sm); color: var(--wf-text-soft); }
.wf-hourboard__value { font-family: var(--font-num); font-size: var(--t-2xl); line-height: 1; color: var(--ink); letter-spacing: var(--wf-tracking-heading); }
.wf-hourboard__unit { margin-left: var(--wf-space-1-half); font-size: var(--t-body-sm); color: var(--wf-text-muted); letter-spacing: 0; }
.wf-hourboard__none { font-family: var(--font-ui); font-size: var(--t-md); color: var(--wf-text-muted); letter-spacing: 0; }
.wf-hourboard__note { font-size: var(--t-body-sm); color: var(--wf-text-muted); }
.wf-hourboard__cols { margin: 0; padding: 0 0 var(--wf-space-6); list-style: none; display: grid; grid-template-columns: repeat(var(--n, 24), minmax(0, 1fr)); gap: var(--wf-hourboard-gap); height: calc(var(--wf-hourboard-h) + var(--wf-space-6)); align-items: stretch;
  background-image: linear-gradient(to top, var(--wf-border) var(--wf-border-w), transparent var(--wf-border-w)); background-size: 100% calc(var(--wf-hourboard-h) / 4); background-repeat: repeat-y; background-position: 0 calc(-1 * var(--wf-space-6)); }
.wf-hourboard__cols > li { position: relative; min-width: 0; height: var(--wf-hourboard-h); border-bottom: var(--wf-border-w) solid var(--wf-border-control); }
.wf-hourboard__cols button { all: unset; box-sizing: border-box; cursor: pointer; position: absolute; inset: 0 0 calc(-1 * var(--wf-space-6)); display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; padding-bottom: var(--wf-space-6); }
.wf-hourboard__cols button:focus-visible { outline: var(--wf-focus-width) solid var(--surface-accent); outline-offset: var(--wf-space-half); border-radius: var(--wf-radius-2xs); }
.wf-hourboard__bar { display: block; height: calc(var(--v, 0) * 100%); min-height: var(--wf-space-half); background: color-mix(in srgb, var(--wf-hourboard-mark) 42%, transparent); border-radius: var(--wf-radius-2xs) var(--wf-radius-2xs) 0 0; transform-origin: bottom; transition: background-color var(--wf-duration-fast) var(--wf-ease-standard); animation: wf-hourboard-rise var(--wf-duration-slower) var(--wf-ease-enter) both; animation-delay: calc(var(--i, 0) * var(--wf-stagger) / 4); }
.wf-hourboard__cols button:hover .wf-hourboard__bar { background: color-mix(in srgb, var(--wf-hourboard-mark) 70%, transparent); }
.wf-hourboard__cols button.is-selected .wf-hourboard__bar { background: var(--wf-hourboard-mark); }
.wf-hourboard__cols > li.is-none .wf-hourboard__bar { height: 100%; background: transparent; outline: var(--wf-border-w) dashed var(--wf-border-control); outline-offset: calc(-1 * var(--wf-border-w)); animation: none; }
.wf-hourboard__label { position: absolute; left: 0; right: 0; bottom: var(--wf-space-1); text-align: center; font-size: var(--t-2xs); color: var(--wf-text-soft); }
.wf-hourboard__cols button.is-selected .wf-hourboard__label { color: var(--ink); }
.wf-hourboard__mark { align-self: center; margin-bottom: var(--wf-space-1); font-size: var(--t-2xs); color: var(--wf-text-soft); white-space: nowrap; }
.wf-hourboard__source { display: flex; flex-wrap: wrap; gap: var(--wf-space-2) var(--wf-space-4); align-items: center; font-size: var(--t-caption); color: var(--wf-text-soft); }
/* Bars take the accent on a light ground and the fill on a dark one: the fill is too light for a mark on white. */
:root[data-theme="dark"] .wf-hourboard { --wf-hourboard-mark: var(--surface-fill); }
[data-profile="pulse"] .wf-hourboard { --wf-hourboard-mark: var(--pulse-mark); }
@media (max-width: 640px) {
  .wf-hourboard__cols > li:not(:nth-child(3n + 1)) .wf-hourboard__label { visibility: hidden; }
  .wf-hourboard__mark { display: none; }
}
.wf-hourboard__empty { margin: 0; min-height: var(--wf-space-12); display: flex; align-items: center; font-size: var(--t-md); color: var(--wf-text-muted); }
.wf-hourboard--empty .wf-hourboard__cols { height: calc(var(--wf-space-12) + var(--wf-space-6)); background-image: none; }
.wf-hourboard--empty .wf-hourboard__cols > li { height: var(--wf-space-12); border-bottom-color: var(--wf-border-control); }
.wf-hourboard--empty .wf-hourboard__label { bottom: calc(-1 * var(--wf-space-5)); }
@keyframes wf-hourboard-rise { from { transform: scaleY(0); } }

/* DeadlineClock */
.wf-deadline { display: grid; gap: var(--wf-space-1); }
.wf-deadline__label { font-size: var(--t-body-sm); color: var(--wf-text-muted); }
.wf-deadline__figures { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-size: var(--wf-deadline-size); line-height: 1; letter-spacing: var(--wf-tracking-heading); color: var(--ink); }
[data-profile="pulse"] .wf-deadline__figures { color: var(--pulse-text); }
.wf-deadline__caption { font-size: var(--t-caption); color: var(--wf-text-soft); }

/* Schema profile (D35, owner decision 2026-11-17): «Схема», the stitch chart.
   Opt in with data-profile="schema" on a page wrapper. Tokens: --schema-* (profile.tokens.json); Schema follows the
   page theme. The page is a cloth on a visible cell; a sheet is a ruled rectangle laid on it, with one drawn edge and
   no shadow; a day is 24 cells and what happens in an hour is one stitch. Two threads per site (its colour and its
   second colour) and neither is status: every meaning has its own symbol and a key says it in words.
   Ornament is for the edges of public pages and sign-in only. */

[data-profile="schema"] {
  background-color: var(--schema-ground);
  background-image: radial-gradient(circle at var(--wf-border-w) var(--wf-border-w), var(--schema-dot) var(--wf-border-w), transparent calc(var(--wf-border-w) * 1.5));
  background-size: var(--schema-cell) var(--schema-cell);
  color: var(--schema-ink);
  --ink: var(--schema-ink);
  --wf-text: var(--schema-ink);
  --wf-text-muted: var(--schema-text-muted);
  --wf-text-soft: var(--schema-text-soft);
  --wf-white: var(--schema-ground-raised);
  --wf-surface: var(--schema-ground);
  --wf-surface-2: var(--schema-ground-raised);
  --wf-border: var(--schema-line);
  --wf-border-control: var(--schema-ink);
  --wf-control-radius: var(--schema-radius);
  --wf-panel-radius: var(--schema-radius);
  --wf-card-radius: var(--schema-radius);
  --wf-panel-shadow: none;
  --wf-shadow-card: none;
  --wf-shadow-panel: none;
  --wf-shadow-xs: none;
  scrollbar-color: var(--schema-line-mid) var(--schema-ground);
}
[data-profile="schema"] ::selection { background: var(--schema-ink); color: var(--schema-on-ink); }
[data-profile="schema"] :focus-visible { outline-color: var(--schema-ink); }
[data-profile="schema"] a:not([class]) { color: var(--schema-ink); text-decoration-color: var(--schema-thread-1); text-decoration-thickness: var(--schema-edge); text-underline-offset: .22em; }
[data-profile="schema"] .wf-btn { border-radius: var(--schema-radius); border-width: var(--schema-edge); }
[data-profile="schema"] .wf-btn--primary { background: var(--schema-ink); color: var(--schema-on-ink); }
[data-profile="schema"] .wf-btn--primary:hover { background: color-mix(in srgb, var(--schema-ink) 86%, var(--schema-thread-1)); }
[data-profile="schema"] .wf-btn--ghost { background: var(--schema-ground); border-color: var(--schema-ink); color: var(--schema-ink); }
[data-profile="schema"] .wf-btn--ghost:hover { background: var(--schema-ground-raised); }
[data-profile="schema"] .wf-btn--highlight { background: var(--schema-knot); color: var(--schema-on-knot); }
[data-profile="schema"] .wf-site-header, .wf-site-header[data-profile="schema"] { background: var(--schema-ground); backdrop-filter: none; border-bottom: var(--schema-edge) solid var(--schema-ink); }
/* The header on Schema (owner 2026-11-19: polish the navbar). SiteHeader profile="schema" puts the profile on the header
   itself, so it stays sticky. Its controls are square like the page; the ink tone keeps the site's deep ground, white
   text, the second colour on the one action and a white outline on the other, in both themes. */
:is([data-profile="schema"] .wf-site-header, .wf-site-header[data-profile="schema"]) :is(.wf-seg, .wf-seg button, .wf-seg__thumb, .wf-iconbtn, .wf-orbit__trigger, .wf-btn) { border-radius: var(--schema-radius); }
:is([data-profile="schema"] .wf-site-header, .wf-site-header[data-profile="schema"]) .wf-site-nav li > a { border-radius: 0; padding-inline: var(--wf-space-2); }
/* Tighter groups, so the theme switch fits without folding the menu any earlier. */
:is([data-profile="schema"] .wf-site-header, .wf-site-header[data-profile="schema"]) .wf-site-header__in { gap: var(--wf-space-5); }
:is([data-profile="schema"] .wf-site-header, .wf-site-header[data-profile="schema"]) .wf-site-header__tools { gap: var(--wf-space-1); }
:is([data-profile="schema"] .wf-site-header, .wf-site-header[data-profile="schema"]) .wf-site-header__tools > .wf-btn { margin-inline-start: var(--wf-space-1); }
:is([data-profile="schema"] .wf-site-header, .wf-site-header[data-profile="schema"]) .wf-site-nav li > a.active { box-shadow: inset 0 calc(var(--schema-edge) * -1) 0 var(--surface-highlight-text); }
/* On the light header the marker takes the second colour as text, so a pale fill (Charge linen) still reads; the ink header keeps the fill. */
:is([data-profile="schema"] .wf-site-header--ink, .wf-site-header--ink[data-profile="schema"]) .wf-site-nav li > a.active { box-shadow: inset 0 calc(var(--schema-edge) * -1) 0 var(--surface-highlight); }
:is([data-profile="schema"] .wf-site-header--ink, .wf-site-header--ink[data-profile="schema"]) { background: var(--surface-deep); border-bottom-color: var(--surface-deep); color: var(--wf-static-white); --ink: var(--wf-static-white); }
:is([data-profile="schema"] .wf-site-header--ink, .wf-site-header--ink[data-profile="schema"]) .wf-site-nav li > a { color: var(--wf-static-white); opacity: 1; }
:is([data-profile="schema"] .wf-site-header--ink, .wf-site-header--ink[data-profile="schema"]) .wf-site-nav li > a:hover { background: color-mix(in srgb, var(--wf-static-white) 10%, transparent); }
:is([data-profile="schema"] .wf-site-header--ink, .wf-site-header--ink[data-profile="schema"]) :is(.wf-site-header__tools > .wf-iconbtn, .wf-orbit__trigger, .wf-site-header__tools > .wf-seg button) { color: var(--wf-static-white); }
/* The products panel is a sheet on the page ground: it takes the page's ink again. */
:is([data-profile="schema"] .wf-site-header--ink, .wf-site-header--ink[data-profile="schema"]) .wf-orbit__panel { --ink: var(--schema-ink); color: var(--schema-ink); }
:is([data-profile="schema"] .wf-site-header--ink, .wf-site-header--ink[data-profile="schema"]) .wf-site-header__tools > .wf-seg { background: color-mix(in srgb, var(--wf-static-white) 10%, transparent); }
:is([data-profile="schema"] .wf-site-header--ink, .wf-site-header--ink[data-profile="schema"]) .wf-site-header__tools > .wf-seg .wf-seg__thumb { background: color-mix(in srgb, var(--wf-static-white) 22%, transparent); box-shadow: none; }
:is([data-profile="schema"] .wf-site-header--ink, .wf-site-header--ink[data-profile="schema"]) .wf-btn--primary { background: var(--surface-highlight); border-color: var(--surface-highlight); color: var(--surface-on-highlight); }
:is([data-profile="schema"] .wf-site-header--ink, .wf-site-header--ink[data-profile="schema"]) .wf-btn--primary:hover { background: color-mix(in srgb, var(--surface-highlight) 86%, var(--wf-static-white)); }
:is([data-profile="schema"] .wf-site-header--ink, .wf-site-header--ink[data-profile="schema"]) .wf-btn--ghost { background: transparent; border-color: var(--wf-static-white); color: var(--wf-static-white); }
:is([data-profile="schema"] .wf-site-header--ink, .wf-site-header--ink[data-profile="schema"]) .wf-btn--ghost:hover { background: color-mix(in srgb, var(--wf-static-white) 12%, transparent); }
:is([data-profile="schema"] .wf-site-header--ink, .wf-site-header--ink[data-profile="schema"]) .wf-lockup__word { color: var(--wf-static-white); }
[data-profile="schema"] .wf-site-footer { background: var(--schema-ground-raised); border-top: var(--schema-edge) solid var(--schema-ink); }
[data-profile="schema"] .wf-lockup__word { color: var(--schema-ink); }
/* D43: EMS draws its logo in its two Schema colours, ink to titanium, so the mark is not a third colour on the page. */
[data-profile="schema"] .wf-lockup[data-surface="ems"] .wf-lockup__mark { --surface-fill: var(--schema-ink); --surface-grad2: var(--surface-highlight-text); }
[data-profile="schema"] .wf-lockup[data-surface="ems"] .wf-lockup__name { color: var(--surface-highlight-text); }
[data-profile="schema"] .wf-site-nav li > a { color: var(--schema-ink); border-radius: var(--schema-radius); }

/* Sections and type. One headline per page; the first thread on one phrase of it, as colour only. */
/* Spacing rhythm (D45): sections on the cloth share one gap (the second starts at its content); a tight section and
   every section after a ServiceHead takes the compact service rhythm. */
.wf-schema-section { padding-block: var(--schema-section-y); }
.wf-schema-section--tight, .wf-schema-head ~ .wf-schema-section { --schema-section-y: var(--wf-rhythm-section-compact); }
.wf-schema-section + .wf-schema-section { padding-block-start: 0; }
.wf-schema-head ~ .wf-section { padding-block: var(--wf-rhythm-section-compact); }
.wf-schema-head + :is(.wf-schema-section, .wf-section) { padding-block-start: var(--wf-rhythm-block); }
/* Inside a section: a heading group, then its content, then the next block. */
.wf-schema-stack { display: grid; gap: var(--wf-rhythm-head); min-width: 0; }
.wf-schema-stack--title { gap: var(--wf-rhythm-title); }
.wf-schema-stack--block { gap: var(--wf-rhythm-block); }
.wf-schema-display { margin: 0; font-family: var(--font-display); font-weight: var(--wf-weight-bold); font-size: var(--schema-display); line-height: var(--schema-display-leading); letter-spacing: var(--wf-tracking-display); color: var(--schema-ink); text-wrap: balance; }
.wf-schema-hl { color: var(--schema-thread-1); }
.wf-schema-h2 { margin: 0; font-family: var(--font-display); font-weight: var(--wf-weight-bold); font-size: var(--schema-h2); line-height: var(--wf-leading-heading); letter-spacing: var(--wf-tracking-heading); color: var(--schema-ink); text-wrap: balance; max-width: 18ch; }
.wf-schema-lead { margin: 0; font-size: var(--schema-lead); line-height: var(--wf-leading-body); color: var(--schema-text-muted); max-width: 46ch; text-wrap: pretty; }
.wf-schema-body { margin: 0; line-height: var(--wf-leading-body); color: var(--schema-text-muted); max-width: 62ch; text-wrap: pretty; }
.wf-schema-note { margin: 0; font-size: var(--t-body-sm); line-height: var(--wf-leading-snug); color: var(--schema-text-muted); }

/* Hero: the headline takes two thirds, the lead and the facts sit on its last line. */
.wf-schema-hero { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: calc(var(--schema-cell) * 2) calc(var(--schema-cell) * 3); align-items: end; }
.wf-schema-hero__side { display: grid; gap: var(--schema-cell); }
/* A heading with its content beside it. */
.wf-schema-split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: calc(var(--schema-cell) * 2) calc(var(--schema-cell) * 3); align-items: start; }
/* The line under a sheet: a note on the left, the action on the right. */
.wf-schema-under { display: flex; flex-wrap: wrap; gap: var(--schema-cell); justify-content: space-between; align-items: center; margin-top: calc(var(--schema-cell) * 1.5); }
@media (max-width: 900px) {
  .wf-schema-hero, .wf-schema-split { grid-template-columns: minmax(0, 1fr); }
}

/* Sheet: a ruled rectangle on the cloth. One drawn edge, square corners, no shadow. */
.wf-schema-sheet { background: var(--schema-ground-raised); border: var(--schema-edge) solid var(--schema-ink); min-width: 0; }
/* Ledger: what is recorded, row by row, each with its state in words. */
.wf-schema-ledger { margin: 0; }
.wf-schema-ledger > div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--wf-space-2) var(--schema-cell); align-items: baseline; padding: calc(var(--schema-cell) * .7) var(--schema-cell); border-bottom: var(--wf-border-w) solid var(--schema-line); }
.wf-schema-ledger > div:last-child { border-bottom: 0; }
.wf-schema-ledger dt { font-weight: var(--wf-weight-semibold); color: var(--schema-ink); }
.wf-schema-ledger dd { margin: 0; display: grid; gap: var(--wf-space-1); color: var(--schema-text-muted); line-height: var(--wf-leading-snug); }
@media (max-width: 640px) { .wf-schema-ledger > div { grid-template-columns: minmax(0, 1fr); } }

/* Stitches: one symbol per meaning. A cross takes, a filled square gives, a dot is no change, an empty dashed cell
   is no data. The threads colour them, the shapes carry the meaning. */
.wf-stitch { fill: none; stroke: none; }
.wf-stitch--take { stroke: var(--schema-thread-1); stroke-width: 1.7; stroke-linecap: round; }
.wf-stitch--give { fill: var(--schema-thread-2); }
.wf-stitch--hold { fill: var(--schema-line-mid); }
.wf-stitch--none { stroke: var(--schema-text-soft); stroke-width: .55; stroke-dasharray: 1.3 1.3; }
.wf-stitch-block--take { fill: var(--schema-thread-1); }
.wf-stitch-block--give { fill: var(--schema-knot); }

.wf-stitchkey { display: flex; flex-wrap: wrap; gap: var(--wf-space-2) calc(var(--schema-cell) * 1.4); margin: 0; padding: 0; list-style: none; font-size: var(--t-body-sm); color: var(--schema-ink); }
.wf-stitchkey li { display: flex; align-items: center; gap: var(--wf-space-2); }
.wf-stitchkey svg { flex: none; width: var(--schema-cell); height: var(--schema-cell); }

/* DaySheet. The label column is 16 cells; the 24 hours share the rest, so a cell stays square at every width. */
.wf-daysheet { --wf-daysheet-label: calc(var(--schema-cell) * 16); min-width: 0; }
.wf-daysheet__sheet { background: var(--schema-ground-raised); border: var(--schema-edge) solid var(--schema-ink); }
.wf-daysheet__head, .wf-daysheet__row { display: grid; grid-template-columns: var(--wf-daysheet-label) minmax(0, 1fr); }
.wf-daysheet__head { border-bottom: var(--schema-edge) solid var(--schema-ink); }
.wf-daysheet__title { padding: calc(var(--schema-cell) * .7) var(--schema-cell); font-weight: var(--wf-weight-semibold); font-size: var(--t-control); line-height: var(--wf-leading-snug); align-self: end; }
.wf-daysheet__title span { display: block; font-weight: var(--wf-weight-regular); font-size: var(--t-caption); color: var(--schema-text-muted); }
.wf-daysheet__hours { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); align-items: end; padding-top: calc(var(--schema-cell) * .5); border-left: var(--schema-edge) solid var(--schema-ink); }
.wf-daysheet__band { grid-row: 1; min-width: 0; padding: var(--wf-space-half) var(--wf-space-1); border: var(--schema-edge) solid currentColor; border-bottom: 0; font-size: var(--t-xs); font-weight: var(--wf-weight-semibold); line-height: var(--wf-leading-snug); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wf-daysheet__band--1 { color: var(--schema-thread-1); }
.wf-daysheet__band--2 { color: var(--schema-thread-2); }
.wf-daysheet__hour { grid-row: 2; padding-block: var(--wf-space-1-half) var(--wf-space-2); font-family: var(--font-mono); font-size: var(--t-xs); color: var(--schema-text-soft); text-align: center; }
.wf-daysheet__row { border-bottom: var(--wf-border-w) solid var(--schema-line); }
.wf-daysheet__row:last-child { border-bottom: 0; }
.wf-daysheet__label { display: flex; align-items: center; gap: var(--wf-space-3); min-width: 0; padding: 0 var(--schema-cell); border: 0; background: none; color: var(--schema-ink); font: inherit; font-size: var(--t-control); text-align: left; }
button.wf-daysheet__label { cursor: pointer; transition: background var(--wf-duration-fast) var(--wf-ease-standard), color var(--wf-duration-fast) var(--wf-ease-standard); }
button.wf-daysheet__label::before { content: ""; flex: none; width: calc(var(--schema-cell) * .7); height: calc(var(--schema-cell) * .7); border: var(--schema-edge) solid currentColor; }
button.wf-daysheet__label:hover { background: var(--schema-wash); }
button.wf-daysheet__label:focus-visible { outline-offset: calc(-1 * var(--wf-focus-width)); }
.wf-daysheet__row.is-on button.wf-daysheet__label { background: var(--schema-ink); color: var(--schema-on-ink); font-weight: var(--wf-weight-semibold); }
.wf-daysheet__row.is-on button.wf-daysheet__label::before { background: var(--schema-knot); box-shadow: inset 0 0 0 var(--wf-space-half) var(--schema-ink); }
.wf-daysheet__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wf-daysheet__label small { margin-left: auto; flex: none; font-family: var(--font-mono); font-size: var(--t-2xs); font-weight: var(--wf-weight-regular); color: var(--schema-text-soft); }
.wf-daysheet__row.is-on .wf-daysheet__label small { color: inherit; opacity: .78; }
.wf-daysheet__cells { display: block; width: 100%; height: auto; border-left: var(--schema-edge) solid var(--schema-ink);
  background-image: linear-gradient(to right, var(--schema-line-mid) var(--wf-border-w), transparent var(--wf-border-w)), linear-gradient(to right, var(--schema-line) var(--wf-border-w), transparent var(--wf-border-w));
  background-size: 25% 100%, calc(100% / 24) 100%; background-position: calc(-1 * var(--wf-border-w)) 0; }
.wf-daysheet__row.is-on .wf-daysheet__cells { background-color: var(--schema-wash); }
.wf-daysheet__row--total { border-top: var(--schema-edge) solid var(--schema-ink); }
.wf-daysheet__row--total .wf-daysheet__label { font-weight: var(--wf-weight-bold); font-size: var(--t-md); }
.wf-daysheet__onblock .wf-stitch--take { stroke: var(--schema-ground-raised); stroke-width: 1.5; }
.wf-daysheet__onblock .wf-stitch--give { fill: var(--schema-on-knot); }
.wf-daysheet__foot { display: grid; grid-template-columns: var(--wf-daysheet-label) minmax(0, 1fr); gap: var(--wf-space-3) 0; align-items: start; margin-top: var(--schema-cell); }
.wf-daysheet__foot .wf-stitchkey { grid-column: 2; }
.wf-daysheet__readout { grid-column: 2; margin: 0; font-size: var(--t-body-sm); line-height: var(--wf-leading-body); color: var(--schema-text-muted); max-width: 78ch; }
.wf-daysheet__readout b { color: var(--schema-ink); font-weight: var(--wf-weight-semibold); }
@media (max-width: 1000px) { .wf-daysheet { --wf-daysheet-label: calc(var(--schema-cell) * 11); } .wf-daysheet__label small { display: none; } }
/* Phone: the label lies over its row of cells, so the 24 hours get the full width. The hours sit inside a
   small inset so the first and last cells, the bands and the hour ticks never touch the sheet's edge; the
   ticks stand on the six-hour guides (00, 06, 12, 18), and a picked row washes its label and cells as one. */
@media (max-width: 720px) {
  .wf-daysheet { --wf-daysheet-inset: calc(var(--schema-cell) * .75); }
  .wf-daysheet__head, .wf-daysheet__row, .wf-daysheet__foot { grid-template-columns: minmax(0, 1fr); }
  .wf-daysheet__title { border-bottom: var(--wf-border-w) solid var(--schema-line); }
  .wf-daysheet__hours, .wf-daysheet__cells { border-left: 0; width: calc(100% - 2 * var(--wf-daysheet-inset)); margin-inline: var(--wf-daysheet-inset); }
  .wf-daysheet__hour:not(:nth-child(6n + 1 of .wf-daysheet__hour)) { visibility: hidden; }
  .wf-daysheet__hour { justify-self: start; transform: translateX(-50%); overflow: visible; white-space: nowrap; }
  .wf-daysheet__row { padding-bottom: var(--wf-space-2); }
  .wf-daysheet__row.is-on { background: var(--schema-wash); }
  .wf-daysheet__row.is-on .wf-daysheet__cells { background-color: transparent; }
  .wf-daysheet__row.is-on button.wf-daysheet__label { background: none; color: var(--schema-ink); }
  .wf-daysheet__row.is-on button.wf-daysheet__label::before { box-shadow: inset 0 0 0 var(--wf-space-half) var(--schema-wash); }
  .wf-daysheet__row.is-on .wf-daysheet__label small { opacity: 1; }
  .wf-daysheet__label { min-height: calc(var(--schema-cell) * 1.9); margin-bottom: var(--wf-space-1); }
  .wf-daysheet__label small { display: inline; }
  .wf-daysheet__band { font-size: var(--t-2xs); padding-inline: 0; }
  .wf-daysheet__foot .wf-stitchkey, .wf-daysheet__readout { grid-column: 1; }
}

/* OrnamentBand: rosettes between two running borders, cut evenly at both sides. */
.wf-ornament { display: flex; justify-content: center; overflow: hidden; padding-block: calc(var(--schema-cell) * .5); }
.wf-ornament svg { flex: none; display: block; height: var(--schema-band-h); width: auto; max-width: none; }
/* The clones a <use> draws take their colours through inheritance, so the threads are set on the band itself. */
.wf-ornament { --wf-ornament-k: var(--schema-ink); --wf-ornament-r: var(--schema-thread-2); }
.wf-ornament--deep { background: var(--surface-deep); --wf-ornament-k: var(--wf-static-white); --wf-ornament-r: var(--surface-highlight); }
.wf-ornament__k { fill: var(--wf-ornament-k); }
.wf-ornament__r { fill: var(--wf-ornament-r); }
.wf-ornament__edge { fill: none; stroke-width: .84; }
.wf-ornament__edge--k { stroke: var(--wf-ornament-k); stroke-dasharray: .84 1.16; }
.wf-ornament__edge--r { stroke: var(--wf-ornament-r); stroke-dasharray: .84 3.16; stroke-dashoffset: -1; }

/* SeamSteps: knots on a running stitch. The seam is stitched up to the last step that exists. */
.wf-seam { --wf-seam-knot: var(--schema-cell); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin: 0; padding: 0; list-style: none; }
.wf-seam li { position: relative; display: grid; align-content: start; gap: var(--wf-space-2); padding: calc(var(--wf-seam-knot) + var(--schema-cell)) var(--schema-cell) 0 0; }
.wf-seam__knot { position: absolute; top: 0; left: 0; width: var(--wf-seam-knot); height: var(--wf-seam-knot); }
.wf-seam__knot rect { fill: var(--schema-ground-raised); stroke: var(--schema-thread-1); stroke-width: 1.5; }
.wf-seam li.is-pending .wf-seam__knot rect { fill: none; stroke: var(--schema-text-soft); stroke-width: 1; stroke-dasharray: 1.6 1.6; }
.wf-seam li::before { content: ""; position: absolute; top: calc(var(--wf-seam-knot) / 2 - var(--wf-space-half)); left: calc(var(--wf-seam-knot) + var(--wf-space-1)); right: var(--wf-space-1); height: var(--wf-space-1);
  background: repeating-linear-gradient(to right, var(--schema-thread-1) 0 calc(var(--schema-cell) * .5), transparent calc(var(--schema-cell) * .5) calc(var(--schema-cell) * .8)); }
.wf-seam li:has(+ li.is-pending)::before, .wf-seam li.is-pending::before { height: var(--wf-border-w); top: calc(var(--wf-seam-knot) / 2); background: repeating-linear-gradient(to right, var(--schema-text-soft) 0 calc(var(--schema-cell) * .2), transparent calc(var(--schema-cell) * .2) calc(var(--schema-cell) * .5)); }
.wf-seam li:last-child::before { display: none; }
.wf-seam__title { margin: 0; font-size: var(--t-md); line-height: var(--wf-leading-snug); font-weight: var(--wf-weight-semibold); color: var(--schema-ink); }
.wf-seam__text { margin: 0; font-size: var(--t-body-sm); line-height: var(--wf-leading-body); color: var(--schema-text-muted); }
.wf-seam__tag { margin: 0; font-family: var(--font-mono); font-size: var(--t-2xs); color: var(--schema-text-soft); }
.wf-seam__tag--pending { font-family: inherit; font-size: var(--t-caption); font-weight: var(--wf-weight-semibold); color: var(--schema-ink); }
@media (max-width: 900px) {
  .wf-seam { grid-auto-flow: row; gap: calc(var(--schema-cell) * 1.4); }
  .wf-seam li { padding: 0 0 0 calc(var(--wf-seam-knot) + var(--schema-cell)); }
  .wf-seam li::before { top: calc(var(--wf-seam-knot) + var(--wf-space-1)); bottom: calc(-1.4 * var(--schema-cell) + var(--wf-space-1)); left: calc(var(--wf-seam-knot) / 2 - var(--wf-space-half)); right: auto; width: var(--wf-space-1); height: auto;
    background: repeating-linear-gradient(to bottom, var(--schema-thread-1) 0 calc(var(--schema-cell) * .5), transparent calc(var(--schema-cell) * .5) calc(var(--schema-cell) * .8)); }
  .wf-seam li:has(+ li.is-pending)::before, .wf-seam li.is-pending::before { width: var(--wf-border-w); height: auto; left: calc(var(--wf-seam-knot) / 2); top: calc(var(--wf-seam-knot) + var(--wf-space-1)); background: repeating-linear-gradient(to bottom, var(--schema-text-soft) 0 calc(var(--schema-cell) * .2), transparent calc(var(--schema-cell) * .2) calc(var(--schema-cell) * .5)); }
}

/* Ruled table on a sheet: rows are things, columns what is true of each. Scrolls sideways on a phone only if it must;
   under 720px each row becomes a block with its column names. */
.wf-schema-table { width: 100%; border-collapse: collapse; background: var(--schema-ground-raised); border: var(--schema-edge) solid var(--schema-ink); }
.wf-schema-table th, .wf-schema-table td { padding: calc(var(--schema-cell) * .8) var(--schema-cell); text-align: left; vertical-align: top; border-bottom: var(--wf-border-w) solid var(--schema-line); line-height: var(--wf-leading-snug); }
.wf-schema-table thead th { font-size: var(--t-caption); font-weight: var(--wf-weight-semibold); color: var(--schema-text-muted); border-bottom: var(--schema-edge) solid var(--schema-ink); }
.wf-schema-table tbody th { font-size: var(--t-md); font-weight: var(--wf-weight-semibold); color: var(--schema-ink); }
.wf-schema-table tbody th small { display: block; margin-top: var(--wf-space-1); font-size: var(--t-caption); font-weight: var(--wf-weight-regular); color: var(--schema-text-muted); }
.wf-schema-table td { color: var(--schema-text-muted); }
.wf-schema-table tbody tr:last-child > * { border-bottom: 0; }
@media (max-width: 720px) {
  .wf-schema-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .wf-schema-table, .wf-schema-table tbody, .wf-schema-table tr, .wf-schema-table th, .wf-schema-table td { display: block; }
  .wf-schema-table tr { border-bottom: var(--schema-edge) solid var(--schema-ink); padding-block: calc(var(--schema-cell) * .5); }
  .wf-schema-table tbody tr:last-child { border-bottom: 0; }
  .wf-schema-table th, .wf-schema-table td { border-bottom: 0; padding-block: var(--wf-space-1-half); }
  .wf-schema-table td[data-label]::before { content: attr(data-label); display: block; font-size: var(--t-caption); font-weight: var(--wf-weight-semibold); color: var(--schema-ink); }
}

/* Ladder: an order of precedence, highest first. One rung can be marked as the reader's own. */
.wf-schema-ladder { margin: 0; padding: 0; list-style: none; counter-reset: rung; background: var(--schema-ground-raised); border: var(--schema-edge) solid var(--schema-ink); }
.wf-schema-ladder li { counter-increment: rung; display: grid; grid-template-columns: calc(var(--schema-cell) * 2) minmax(0, 1fr); gap: 0 var(--schema-cell); align-items: baseline; padding: calc(var(--schema-cell) * .6) var(--schema-cell); border-bottom: var(--wf-border-w) solid var(--schema-line); color: var(--schema-ink); }
.wf-schema-ladder li:last-child { border-bottom: 0; }
.wf-schema-ladder li::before { content: counter(rung); font-family: var(--font-mono); font-size: var(--t-caption); color: var(--schema-text-soft); }
.wf-schema-ladder li small { grid-column: 2; display: block; font-size: var(--t-caption); color: var(--schema-text-muted); }
.wf-schema-ladder li.is-yours { background: var(--schema-ink); color: var(--schema-on-ink); font-weight: var(--wf-weight-semibold); }
.wf-schema-ladder li.is-yours::before, .wf-schema-ladder li.is-yours small { color: inherit; font-weight: var(--wf-weight-regular); }
.wf-schema-ladder li.is-below { color: var(--schema-text-muted); }

/* Cases: a ruled list of ways in, each a whole-row link. */
.wf-schema-cases { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: var(--schema-edge) solid var(--schema-ink); }
.wf-schema-cases a { display: flex; justify-content: space-between; align-items: center; gap: var(--schema-cell); min-height: calc(var(--schema-cell) * 3); padding: var(--wf-space-2) var(--wf-space-2) var(--wf-space-2) 0; border-bottom: var(--wf-border-w) solid var(--schema-line-mid); color: var(--schema-ink); font-size: var(--t-md); font-weight: var(--wf-weight-medium); text-decoration: none; transition: padding var(--wf-duration-fast) var(--wf-ease-standard), background var(--wf-duration-fast) var(--wf-ease-standard); }
.wf-schema-cases li:nth-child(odd) a { margin-right: var(--schema-cell); }
.wf-schema-cases li:nth-child(even) a { margin-left: var(--schema-cell); }
.wf-schema-cases a:hover { background: var(--schema-wash); padding-left: var(--wf-space-3); }
.wf-schema-cases a svg { flex: none; color: var(--schema-thread-1); }
@media (max-width: 720px) { .wf-schema-cases { grid-template-columns: minmax(0, 1fr); } .wf-schema-cases li a { margin-inline: 0; } }
@media (prefers-reduced-motion: reduce) { .wf-schema-cases a, button.wf-daysheet__label { transition: none; } }

/* ---------- the loud register (D36): a moving hero, capitals, solid blocks. Public pages only. ---------- */
.wf-stitch-motion { position: absolute; inset: 0; width: 100%; height: 100%; display: block; font-family: var(--font-display); }
.wf-stitch-motion--word { position: static; height: auto; aspect-ratio: 6.3 / 1; touch-action: pan-y; }

.wf-shout { --wf-shout-thread: color-mix(in srgb, var(--surface-fill) 78%, var(--wf-static-white)); position: relative; overflow: hidden; background-color: var(--surface-deep); background-image: radial-gradient(circle, color-mix(in srgb, var(--wf-static-white) 16%, transparent) var(--wf-border-w), transparent calc(var(--wf-border-w) + .5px)); background-size: var(--schema-cell) var(--schema-cell); color: var(--wf-static-white); padding-block: calc(var(--schema-cell) * 4) calc(var(--schema-cell) * 3); }
.wf-shout > .container { position: relative; }
.wf-shout__eyebrow { margin: 0 0 var(--schema-cell); font-family: var(--font-mono); font-size: var(--t-body-sm); letter-spacing: var(--wf-tracking-caps); text-transform: uppercase; color: var(--surface-highlight); }
.wf-shout__h { margin: 0; font-family: var(--font-display); font-weight: var(--wf-weight-bold); font-size: min(calc(var(--schema-display) * 1.75), 11.6vw); color: var(--wf-static-white); line-height: var(--schema-display-leading); letter-spacing: var(--wf-tracking-display); text-transform: uppercase; }
.wf-shout__h span { display: inline-block; margin-top: .12em; padding: .16em .14em .06em; background: var(--surface-highlight); color: var(--surface-on-highlight); }
.wf-shout__h span.is-thread { background: var(--wf-shout-thread); }
.wf-shout--day .wf-shout__h { font-size: min(calc(var(--schema-display) * 1.3), 8vw); }
.wf-shout--day .wf-shout__h span { white-space: nowrap; }
.wf-shout__h--lead { font-size: min(var(--schema-display), 7.4vw); }
.wf-shout__h--end { font-size: min(calc(var(--schema-display) * 1.3), 10.4vw); }
.wf-shout__top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: calc(var(--schema-cell) * 2); align-items: stretch; }
.wf-shout__top [data-stitch-slot] { min-height: calc(var(--schema-cell) * 15); }
.wf-shout--gather .wf-shout__h { font-size: min(calc(var(--schema-display) * 1.12), 11.6vw); }
.wf-shout__row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: calc(var(--schema-cell) * 2) calc(var(--schema-cell) * 3); align-items: start; margin-top: calc(var(--schema-cell) * 1.5); padding-top: calc(var(--schema-cell) * 1.5); border-top: var(--schema-edge) solid var(--wf-static-white); }
.wf-shout__claims { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--wf-space-1); font-family: var(--font-display); font-weight: var(--wf-weight-bold); font-size: var(--schema-h2); line-height: var(--wf-leading-heading); }
.wf-shout__claims li:last-child { color: var(--surface-highlight); }
.wf-shout__side { display: grid; gap: var(--schema-cell); }
.wf-shout__lead { margin: 0; max-width: 52ch; font-size: var(--schema-lead); line-height: var(--wf-leading-body); color: color-mix(in srgb, var(--wf-static-white) 84%, transparent); }
/* D52: a loud hero's actions are one column of equal buttons, as wide as the longest label allows: the label starts
   at the lead's edge and the arrow sits at the far end, so the two buttons read as a pair. */
.wf-shout__actions { display: grid; gap: var(--wf-space-2); width: 100%; max-width: calc(var(--schema-cell) * 22); }
.wf-shout__actions > .wf-btn { width: 100%; justify-content: space-between; text-align: start; }
.wf-shout__word { margin-top: calc(var(--schema-cell) * 1.5); }
.wf-shout--day { padding-bottom: calc(100vw / 6 + var(--schema-cell) * 2); }
.wf-shout__clock { position: absolute; top: 0; right: var(--wf-space-4); margin: 0; font-family: var(--font-mono); font-size: var(--t-lg); font-variant-numeric: tabular-nums; }
.wf-shout__clock::before { content: "●"; margin-right: var(--wf-space-2); color: var(--surface-highlight); }
.wf-shout__fine { margin: var(--schema-cell) 0 0; font-family: var(--font-mono); font-size: var(--t-xs); color: color-mix(in srgb, var(--wf-static-white) 70%, transparent); }
[data-profile="schema"] .wf-shout .wf-btn--ghost { background: transparent; border-color: var(--wf-static-white); color: var(--wf-static-white); }
[data-profile="schema"] .wf-shout .wf-btn--ghost:hover { background: color-mix(in srgb, var(--wf-static-white) 12%, transparent); }
@media (max-width: 900px) {
  .wf-shout { padding-block: calc(var(--schema-cell) * 2.5) calc(var(--schema-cell) * 2); }
  .wf-shout__row, .wf-shout__top { grid-template-columns: minmax(0, 1fr); }
  .wf-shout__top [data-stitch-slot] { min-height: 0; aspect-ratio: 1.25 / 1; }
  .wf-shout--day { padding-bottom: calc(100vw / 6 + var(--schema-cell)); }
  .wf-shout__clock { position: static; margin-bottom: var(--wf-space-2); }
}

.wf-marquee { overflow: hidden; white-space: nowrap; padding-block: var(--wf-space-3); font-family: var(--font-display); font-weight: var(--wf-weight-bold); font-size: var(--t-xl); text-transform: uppercase; letter-spacing: var(--wf-tracking-caps); }
.wf-marquee--knot { background: var(--surface-highlight); color: var(--surface-on-highlight); }
.wf-marquee--deep { background: var(--surface-deep); color: var(--wf-static-white); }
.wf-marquee span { display: inline-block; animation: wf-marquee calc(var(--wf-duration-loop) * 28) linear infinite; }
@keyframes wf-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .wf-marquee span { animation: none; } }

.wf-bold-head { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--schema-cell) calc(var(--schema-cell) * 3); align-items: end; }
.wf-bold-head > p { margin: 0; color: var(--schema-text-muted); line-height: var(--wf-leading-body); }
.wf-bold-h { margin: 0; font-family: var(--font-display); font-weight: var(--wf-weight-bold); font-size: min(calc(var(--schema-h2) * 1.5), 9.4vw); line-height: var(--schema-display-leading); letter-spacing: var(--wf-tracking-display); text-transform: uppercase; color: var(--schema-ink); text-wrap: balance; }
.wf-bold-mark { display: inline-block; margin-top: .12em; padding: .16em .14em .06em; }
.wf-bold-mark--knot { background: var(--schema-knot); color: var(--schema-on-knot); }
.wf-bold-mark--thread { background: var(--surface-fill); color: var(--surface-on-fill); }
.wf-bold-mark--ink { background: var(--schema-ink); color: var(--schema-on-ink); }
@media (max-width: 900px) { .wf-bold-head { grid-template-columns: minmax(0, 1fr); } }

.wf-bold-net { margin: 0; padding: 0; list-style: none; border-top: var(--schema-edge) solid var(--schema-ink); }
.wf-bold-net li { display: grid; grid-template-columns: calc(var(--schema-cell) * 4) minmax(0, 6fr) minmax(0, 6fr); gap: var(--wf-space-1) var(--schema-cell); align-items: center; padding-block: calc(var(--schema-cell) * .7); border-bottom: var(--wf-border-w) solid var(--schema-line-mid); color: var(--schema-text-muted); line-height: var(--wf-leading-snug); }
.wf-bold-net li strong { font-family: var(--font-display); font-size: var(--t-2xl); line-height: var(--wf-leading-heading); font-weight: var(--wf-weight-bold); color: var(--schema-ink); }
.wf-bold-net li em { display: inline-block; vertical-align: middle; margin-left: var(--wf-space-2); padding: 0 var(--wf-space-1); border: var(--wf-border-w) dashed var(--schema-line-mid); font-family: var(--font-mono); font-size: var(--t-xs); font-style: normal; font-weight: var(--wf-weight-regular); color: var(--schema-text-muted); }
.wf-bold-net__sign { display: grid; place-items: center; width: calc(var(--schema-cell) * 3); height: calc(var(--schema-cell) * 3); font-family: var(--font-display); font-size: var(--t-4xl); font-weight: var(--wf-weight-bold); line-height: 1; }
.wf-bold-net li.is-plus .wf-bold-net__sign { background: var(--surface-fill); color: var(--surface-on-fill); }
.wf-bold-net li.is-minus .wf-bold-net__sign { border: var(--schema-edge) solid var(--schema-ink); color: var(--schema-ink); }
.wf-bold-net li.is-net { background: var(--schema-knot); color: var(--schema-on-knot); border-bottom: 0; padding-inline: var(--schema-cell); margin-inline: calc(var(--schema-cell) * -1); padding-block: var(--schema-cell); }
.wf-bold-net li.is-net strong { color: var(--schema-on-knot); font-size: var(--schema-h2); text-transform: uppercase; }
.wf-bold-net li.is-net .wf-bold-net__sign { background: var(--schema-on-knot); color: var(--schema-knot); }
@media (max-width: 900px) {
  .wf-bold-net li { grid-template-columns: calc(var(--schema-cell) * 3) minmax(0, 1fr); align-items: start; }
  .wf-bold-net li > span:last-child { grid-column: 2; }
  .wf-bold-net__sign { width: calc(var(--schema-cell) * 2.2); height: calc(var(--schema-cell) * 2.2); font-size: var(--t-2xl); }
  .wf-bold-net li strong { font-size: var(--t-xl); }
  .wf-bold-net li.is-net { margin-inline: calc(var(--wf-space-2) * -1); padding-inline: var(--wf-space-2); }
}

.wf-bold-tiles { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wf-bold-tiles > li { display: grid; }
.wf-bold-tiles > li > * { display: grid; align-content: start; grid-template-rows: auto auto 1fr auto; gap: var(--wf-space-3); min-height: calc(var(--schema-cell) * 11); padding: calc(var(--schema-cell) * 1.5); color: inherit; text-decoration: none; }
.wf-bold-tiles > li:nth-child(3n + 1) { background: var(--surface-fill); color: var(--surface-on-fill); }
.wf-bold-tiles > li:nth-child(3n + 2) { background: var(--schema-knot); color: var(--schema-on-knot); }
.wf-bold-tiles > li:nth-child(3n) { background: var(--schema-ink); color: var(--schema-on-ink); }
.wf-bold-tiles > li > a:any-link { color: inherit; }
.wf-schema-split .wf-bold-h { font-size: min(calc(var(--schema-h2) * 1.1), 9.4vw); }
.wf-bold-tiles h3 { margin: 0; font-family: var(--font-display); font-weight: var(--wf-weight-bold); font-size: min(calc(var(--schema-h2) * .74), 7.6vw); overflow-wrap: anywhere; line-height: var(--schema-display-leading); text-transform: uppercase; letter-spacing: var(--wf-tracking-display); color: inherit; text-wrap: balance; }
.wf-bold-tiles p { margin: 0; line-height: var(--wf-leading-body); color: inherit; }
.wf-bold-tiles small { font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: var(--wf-tracking-caps); text-transform: uppercase; }
.wf-bold-tiles > li > *:not(:has(small)) { grid-template-rows: auto 1fr auto; }
.wf-bold-tiles__go { display: inline-flex; align-items: center; justify-content: space-between; gap: var(--wf-space-2); padding-top: var(--wf-space-3); border-top: var(--schema-edge) solid currentColor; font-weight: var(--wf-weight-bold); }
.wf-bold-tiles__go svg { transition: transform var(--wf-duration-fast) var(--wf-ease-standard); }
.wf-bold-tiles a:hover .wf-bold-tiles__go svg { transform: translateX(var(--wf-space-2)); }
.wf-bold-tiles a:focus-visible { outline: var(--schema-edge) solid var(--schema-ink); outline-offset: var(--wf-space-1); }
@media (max-width: 900px) { .wf-bold-tiles { grid-template-columns: minmax(0, 1fr); } .wf-bold-tiles > li > * { min-height: 0; } }
@media (prefers-reduced-motion: reduce) { .wf-bold-tiles__go svg { transition: none; } }
/* Story tiles: the same solid tiles for headlines people read (news, notes). A title keeps its own case at a
   reading size, and the lead stops after four lines so a row of tiles keeps one rhythm. */
.wf-bold-tiles--story h3 { font-size: var(--t-xl); line-height: var(--wf-leading-snug); text-transform: none; letter-spacing: normal; }
.wf-bold-tiles--story p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }

/* Path chart (.wf-bold-path): who does what along a sequence, in the loud register. Stages run across
   (.wf-bold-path__stages, an <ol>), each party is a lane (.wf-bold-path__lane) with its name, role and link
   (.wf-bold-path__who) and a solid bar (.wf-bold-path__bar) over the stages it owns, set per lane with --path-from and
   --path-to (first stage and one past the last, counted from 1). Four stages; lanes take thread, knot and ink in turn;
   .is-here washes the reader's own lane. .wf-bold-path__track draws the stage guides behind the bar. */
.wf-bold-path { --path-cols: minmax(0, 5fr) repeat(4, minmax(0, 2fr)); border-top: var(--schema-edge) solid var(--schema-ink); }
.wf-bold-path__row { display: grid; grid-template-columns: var(--path-cols); margin: 0; padding: 0; list-style: none; }
.wf-bold-path__lanes { margin: 0; padding: 0; list-style: none; }
.wf-bold-path__stages > li { padding: var(--wf-space-2) var(--wf-space-3); border-left: var(--wf-border-w) solid var(--schema-line-mid); font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: var(--wf-tracking-caps); text-transform: uppercase; color: var(--schema-text-muted); }
.wf-bold-path__stages > li:first-child { grid-column: 2; }
.wf-bold-path__lane { --path-from: 1; --path-to: 2; align-items: stretch; border-top: var(--schema-edge) solid var(--schema-ink); }
.wf-bold-path__lane.is-here { background: var(--schema-wash); }
.wf-bold-path__track { grid-row: 1; grid-column: 2 / -1; background-image: linear-gradient(to right, var(--schema-line-mid) var(--wf-border-w), transparent var(--wf-border-w)); background-size: 25% 100%; }
.wf-bold-path__lane:last-child { border-bottom: var(--schema-edge) solid var(--schema-ink); }
.wf-bold-path__who { grid-column: 1; grid-row: 1; display: grid; align-content: start; gap: var(--wf-space-2); padding: calc(var(--schema-cell) * 1.5) calc(var(--schema-cell) * 1.5) calc(var(--schema-cell) * 1.5) 0; }
.wf-bold-path__who h3 { margin: 0; font-family: var(--font-display); font-weight: var(--wf-weight-bold); font-size: min(calc(var(--schema-h2) * .74), 7.6vw); line-height: var(--schema-display-leading); text-transform: uppercase; letter-spacing: var(--wf-tracking-display); color: var(--schema-ink); overflow-wrap: anywhere; }
.wf-bold-path__role { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wf-space-2); margin: 0; font-weight: var(--wf-weight-bold); color: var(--schema-ink); }
.wf-bold-path__here { padding: 0 var(--wf-space-2); background: var(--schema-knot); color: var(--schema-on-knot); font-family: var(--font-mono); font-size: var(--t-xs); font-weight: var(--wf-weight-regular); letter-spacing: var(--wf-tracking-caps); text-transform: uppercase; }
.wf-bold-path__text { margin: 0; max-width: 46ch; color: var(--schema-text-muted); line-height: var(--wf-leading-body); }
.wf-bold-path__go { justify-self: start; display: inline-flex; align-items: center; gap: var(--wf-space-2); margin-top: var(--wf-space-2); padding-bottom: var(--wf-space-1); border-bottom: var(--schema-edge) solid currentColor; color: var(--schema-ink); font-weight: var(--wf-weight-bold); text-decoration: none; }
.wf-bold-path__go svg { transition: transform var(--wf-duration-fast) var(--wf-ease-standard); }
.wf-bold-path__go:hover svg { transform: translateX(var(--wf-space-1)); }
.wf-bold-path__go:focus-visible { outline: var(--schema-edge) solid var(--schema-ink); outline-offset: var(--wf-space-1); }
.wf-bold-path__bar { grid-row: 1; grid-column: calc(var(--path-from) + 1) / calc(var(--path-to) + 1); align-self: center; position: relative; margin: var(--schema-cell) 0; padding: var(--schema-cell); display: flex; align-items: center; min-height: calc(var(--schema-cell) * 3); }
.wf-bold-path__lane:nth-child(3n + 1) .wf-bold-path__bar { background: var(--surface-fill); color: var(--surface-on-fill); }
.wf-bold-path__lane:nth-child(3n + 2) .wf-bold-path__bar { background: var(--schema-knot); color: var(--schema-on-knot); }
.wf-bold-path__lane:nth-child(3n) .wf-bold-path__bar { background: var(--schema-ink); color: var(--schema-on-ink); }
.wf-bold-path__bar { font-family: var(--font-display); font-weight: var(--wf-weight-bold); text-transform: uppercase; letter-spacing: var(--wf-tracking-display); line-height: var(--schema-display-leading); }

@media (max-width: 900px) {
  .wf-bold-path { --path-cols: repeat(4, minmax(0, 1fr)); }
  .wf-bold-path__stages > li { padding-inline: var(--wf-space-1); letter-spacing: normal; hyphens: auto; }
  .wf-bold-path__stages > li:first-child { grid-column: 1; }
  .wf-bold-path__track { grid-row: 2; grid-column: 1 / -1; margin-bottom: calc(var(--schema-cell) * 1.5); }
  .wf-bold-path__who { grid-column: 1 / -1; padding-right: 0; padding-bottom: 0; }
  .wf-bold-path__bar { grid-row: 2; grid-column: var(--path-from) / var(--path-to); margin-bottom: calc(var(--schema-cell) * 1.5); }
}
@media (prefers-reduced-motion: reduce) { .wf-bold-path__go svg { transition: none; } }

.wf-bold-rows { margin: 0; padding: 0; list-style: none; border-top: var(--schema-edge) solid var(--schema-ink); }
.wf-bold-rows > li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: var(--schema-cell) calc(var(--schema-cell) * 2); align-items: start; padding-block: calc(var(--schema-cell) * 1.5); border-bottom: var(--schema-edge) solid var(--schema-ink); }
.wf-bold-rows h3 { margin: 0; font-family: var(--font-display); font-weight: var(--wf-weight-bold); font-size: min(var(--schema-h2), 8.4vw); line-height: var(--schema-display-leading); text-transform: uppercase; letter-spacing: var(--wf-tracking-display); color: var(--schema-ink); overflow-wrap: anywhere; }
.wf-bold-rows h3 small { display: block; margin-top: var(--wf-space-2); font-family: var(--font-mono); font-size: var(--t-xs); font-weight: var(--wf-weight-regular); letter-spacing: var(--wf-tracking-caps); color: var(--schema-thread-1); }
.wf-bold-rows p { margin: 0; color: var(--schema-text-muted); line-height: var(--wf-leading-body); }
.wf-bold-rows > li > div { display: grid; gap: var(--wf-space-3); justify-items: start; }
.wf-bold-rows__pay { font-size: var(--t-body-sm); }
.wf-bold-rows__pay span { display: block; font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: var(--wf-tracking-caps); text-transform: uppercase; color: var(--schema-text-soft); }
@media (max-width: 900px) { .wf-bold-rows > li { grid-template-columns: minmax(0, 1fr); } }

/* Schema in apps, cabinets and sign-in (D40). The same cloth and ruled sheets as a public page, with no ornament on
   the cloth and no shout: the AppShell header and rail lie on the cloth with one drawn edge, panels, tiles and the
   sign-in card are sheets, and the active rail item is the selected row of a sheet. */
[data-profile="schema"] .wf-app, [data-profile="schema"] .wf-auth { background: transparent; }
[data-profile="schema"] .wf-app-header { background: var(--schema-ground); border-bottom: var(--schema-edge) solid var(--schema-ink); }
[data-profile="schema"] .wf-rail { background: var(--schema-ground); border-right: var(--wf-border-w) solid var(--schema-ink); }
[data-profile="schema"] .wf-rail a, [data-profile="schema"] .wf-app-header__area, [data-profile="schema"] .wf-account { border-radius: var(--schema-radius); }
[data-profile="schema"] .wf-rail a.active { background: var(--schema-wash); }
[data-profile="schema"] .wf-rail a.active::before { border-radius: var(--schema-radius); background: var(--schema-thread-1); }
[data-profile="schema"] .wf-panel, [data-profile="schema"] .wf-tile, [data-profile="schema"] .wf-auth__card { background: var(--schema-ground-raised); border: var(--schema-edge) solid var(--schema-ink); border-radius: var(--schema-radius); }
[data-profile="schema"] .wf-panel__head { border-bottom-color: var(--schema-ink); }
[data-profile="schema"] .wf-auth__aside { border-radius: var(--schema-radius); }
/* Sign-in, sign-up and reset on the cloth (AuthLayout profile="schema"). The card and the Wesfin ID panel are two ruled
   sheets laid edge to edge at one height, the bar is the Schema header, steps are stitched segments (solid where done,
   the second colour where you are, dashed ahead) and the product's hem closes the pair. The code is typed into six
   ruled cells. No shout and no ornament behind text (D35); the rosette stays on the panel, as D30 has it. */
/* The profile sits on the same element as data-surface, whose own --ink (base.css) must not win on the order of stylesheets. */
.wf-auth[data-profile="schema"] { --ink: var(--schema-ink); }
.wf-auth[data-profile="schema"] .wf-auth__bar { background: var(--schema-ground); border-bottom: var(--schema-edge) solid var(--schema-ink); }
.wf-auth[data-profile="schema"] .wf-auth__back { border-radius: var(--schema-radius); border: var(--wf-border-w) solid var(--schema-ink); padding: 6px 12px; }
.wf-auth[data-profile="schema"] .wf-auth__back:hover { background: var(--schema-ground-raised); }
.wf-auth[data-profile="schema"] .wf-auth__main { max-width: 1040px; padding: calc(var(--schema-cell) * 3) var(--schema-cell) calc(var(--schema-cell) * 4); gap: 0; align-items: stretch;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px); grid-template-rows: auto auto; align-content: start; }
.wf-auth[data-profile="schema"] .wf-auth__main:not(:has(.wf-auth__aside)) { grid-template-columns: minmax(0, 560px); }
.wf-auth[data-profile="schema"] .wf-auth__card { padding: calc(var(--schema-cell) * 2) calc(var(--schema-cell) * 2.4); display: flex; flex-direction: column; }
.wf-auth[data-profile="schema"] .wf-auth__card:has(+ .wf-auth__aside) { border-right: 0; }
.wf-auth[data-profile="schema"] .wf-auth__title { font-family: var(--font-display); font-size: var(--schema-h2); letter-spacing: var(--wf-tracking-heading); color: var(--schema-ink); }
.wf-auth[data-profile="schema"] .wf-auth__lead { color: var(--schema-text-muted); margin: var(--wf-rhythm-title) 0 var(--wf-space-6); }
.wf-auth[data-profile="schema"] .wf-auth__aside { border: var(--schema-edge) solid var(--schema-ink); display: flex; flex-direction: column; padding: calc(var(--schema-cell) * 2) calc(var(--schema-cell) * 1.6); padding-bottom: clamp(160px, 15vw, 200px); }
.wf-auth[data-profile="schema"] .wf-auth__aside-note { margin-top: auto; }
.wf-auth[data-profile="schema"] .wf-auth__aside a { color: var(--wf-static-white); text-decoration-color: var(--surface-highlight); text-decoration-thickness: var(--schema-edge); text-underline-offset: .22em; }
.wf-auth[data-profile="schema"].wf-auth--highlight .wf-btn--primary, :root[data-theme="dark"] .wf-auth[data-profile="schema"].wf-auth--highlight .wf-btn--primary { background: var(--schema-knot); color: var(--schema-on-knot); border-color: var(--schema-ink); }
.wf-auth[data-profile="schema"].wf-auth--highlight .wf-btn--primary:hover { background: color-mix(in srgb, var(--schema-knot) 86%, var(--schema-ink)); }
.wf-auth[data-profile="schema"].wf-auth--highlight .wf-auth__aside-title::after { border-radius: var(--schema-radius); height: 6px; }
.wf-auth[data-profile="schema"] .wf-auth__hem { grid-column: 1 / -1; margin-top: var(--wf-space-3); }
.wf-auth[data-profile="schema"] .wf-auth__or::before, .wf-auth[data-profile="schema"] .wf-auth__or::after { border-top-color: var(--schema-line-mid); }
.wf-auth[data-profile="schema"] .wf-auth__note a, .wf-auth[data-profile="schema"] .wf-auth__link { color: var(--schema-ink); text-decoration-color: var(--schema-thread-1); text-decoration-thickness: var(--schema-edge); }
.wf-auth[data-profile="schema"] .wf-auth__who .wf-input[readonly] { background: var(--schema-ground); border-style: dashed; }
.wf-auth[data-profile="schema"] .wf-auth__reveal { border-radius: var(--schema-radius); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: var(--wf-tracking-caps); font-size: var(--t-xs); }
.wf-auth[data-profile="schema"] .wf-auth__length-cells i { border-color: var(--schema-line-mid); }
.wf-auth[data-profile="schema"] .wf-auth__length-cells i.is-on { background: var(--schema-ink); border-color: var(--schema-ink); }
.wf-auth[data-profile="schema"] .wf-auth__stitches ol { gap: var(--wf-space-1); }
.wf-auth[data-profile="schema"] .wf-auth__stitches li { height: 6px; border-radius: var(--schema-radius); background: none; border-top: var(--schema-edge) dashed var(--schema-line-mid); margin: 2px 0 0; }
.wf-auth[data-profile="schema"] .wf-auth__stitches li.is-done { border-top-style: solid; border-top-color: var(--schema-ink); background: var(--schema-ink); height: 6px; margin: 0; border: 0; }
.wf-auth[data-profile="schema"] .wf-auth__stitches li.is-current { background: var(--schema-knot); border: 0; height: 6px; margin: 0; }
.wf-auth[data-profile="schema"] .wf-auth__stitches p { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--schema-text-soft); }
.wf-auth[data-profile="schema"] .wf-auth__codes, .wf-auth[data-profile="schema"] .wf-auth__qr, .wf-auth[data-profile="schema"] div.wf-auth__secret code { border-radius: var(--schema-radius); }
.wf-auth[data-profile="schema"] input.wf-auth__code {
  --cell: min(56px, calc((100vw - 88px) / 6));
  box-sizing: content-box; width: calc(var(--cell) * 6 - (var(--cell) - 1ch) / 2); max-width: none; justify-self: start; height: calc(var(--cell) * 1.15); min-height: 0;
  padding: 0 0 0 calc((var(--cell) - 1ch) / 2); overflow: hidden; border: var(--schema-edge) solid var(--schema-ink); border-radius: var(--schema-radius);
  font-family: var(--font-mono); font-size: var(--t-xl); letter-spacing: calc(var(--cell) - 1ch); background: var(--schema-ground-raised)
    repeating-linear-gradient(90deg, transparent 0 calc(var(--cell) - var(--wf-border-w)), var(--schema-line-mid) calc(var(--cell) - var(--wf-border-w)) var(--cell))
    0 0 / calc(var(--cell) * 5) 100% no-repeat; }
.wf-auth[data-profile="schema"] .wf-auth__form .wf-auth__code { width: calc(var(--cell) * 6 - (var(--cell) - 1ch) / 2); }
@media (max-width: 860px) {
  .wf-auth[data-profile="schema"] .wf-auth__main { grid-template-columns: minmax(0, 1fr); padding: var(--schema-cell) var(--wf-space-4) calc(var(--schema-cell) * 2); }
  .wf-auth[data-profile="schema"] .wf-auth__card { padding: calc(var(--schema-cell) * 1.4) var(--schema-cell); }
  .wf-auth[data-profile="schema"] .wf-auth__card:has(+ .wf-auth__aside) { border-right: var(--schema-edge) solid var(--schema-ink); border-bottom: 0; }
  .wf-auth[data-profile="schema"] .wf-auth__aside { padding: var(--schema-cell); padding-bottom: 136px; }
  .wf-auth[data-profile="schema"] .wf-auth__rosette--aside { width: 48%; transform: translate(26%, 30%); }
  .wf-auth[data-profile="schema"] .wf-auth__title { font-size: var(--t-2xl); }
}
/* The guided pieces of a cabinet on the cloth: a page heading at the Schema title size, steps as square knots on a
   seam (stitched where done, dashed ahead), callouts and the next step as ruled sheets, and hints with square
   corners and an ink edge instead of a shadow. Whose move it is stays a word and an icon; the knot fill only marks
   the one step that is the reader's. */
[data-profile="schema"] .wf-pagehead { margin-bottom: var(--wf-rhythm-head); }
[data-profile="schema"] .wf-pagehead__title { font-family: var(--font-display); font-size: var(--schema-title); line-height: var(--wf-leading-heading); letter-spacing: var(--wf-tracking-heading); color: var(--schema-ink); }
[data-profile="schema"] .wf-pagehead__sub { margin-top: var(--wf-rhythm-title); max-width: 68ch; color: var(--schema-text-muted); }
[data-profile="schema"] .wf-stepper { gap: var(--wf-space-2); }
[data-profile="schema"] .wf-stepper li + li::before { width: calc(var(--schema-cell) * 1.4); height: 0; background: none; border-top: var(--schema-edge) dashed var(--schema-line-mid); }
[data-profile="schema"] .wf-stepper li.is-done + li::before { border-top-style: solid; border-top-color: var(--schema-ink); }
[data-profile="schema"] .wf-stepper__n { border-radius: var(--schema-radius); border: var(--schema-edge) solid var(--schema-ink); background: var(--schema-ground-raised); color: var(--schema-ink); }
[data-profile="schema"] .wf-stepper li:not(.is-done):not(.is-current) .wf-stepper__n { border-style: dashed; border-color: var(--schema-line-mid); color: var(--schema-text-muted); background: transparent; }
[data-profile="schema"] .wf-stepper li.is-current .wf-stepper__n { border-color: var(--schema-ink); background: var(--schema-knot); color: var(--schema-on-knot); box-shadow: none; }
[data-profile="schema"] .wf-stepper li.is-done .wf-stepper__n { background: var(--schema-ink); border-color: var(--schema-ink); color: var(--schema-on-ink); }
[data-profile="schema"] .wf-stepper li.is-current { color: var(--schema-ink); }
[data-profile="schema"] .wf-callout { border-radius: var(--schema-radius); border: var(--wf-border-w) solid var(--schema-line); box-shadow: inset 3px 0 0 var(--c); }
[data-profile="schema"] .wf-callout:not(.wf-callout--info, .wf-callout--warning, .wf-callout--success) { background: var(--schema-ground-raised); --c: var(--schema-ink); }
[data-profile="schema"] .wf-nextstep { border: var(--schema-edge) solid var(--schema-ink); border-radius: var(--schema-radius); background: var(--schema-ground-raised); box-shadow: none; }
[data-profile="schema"] .wf-nextstep--you { box-shadow: inset calc(var(--schema-edge) * 2) 0 0 var(--schema-thread-1); }
[data-profile="schema"] .wf-nextstep__kicker { color: var(--schema-text-muted); }
[data-profile="schema"] .wf-nextstep--you .wf-nextstep__kicker { justify-self: start; padding: 2px var(--wf-space-2); background: var(--schema-knot); color: var(--schema-on-knot); }
[data-profile="schema"] .wf-nextstep--wesfin .wf-nextstep__kicker { justify-self: start; padding: 1px var(--wf-space-2); border: var(--wf-border-w) dashed var(--schema-ink); color: var(--schema-ink); }
[data-profile="schema"] .wf-nextstep__title { font-size: var(--t-xl); color: var(--schema-ink); }
[data-profile="schema"] .wf-nextstep__facts { border-top: var(--wf-border-w) solid var(--schema-line); }
[data-profile="schema"] :is(.wf-term__pop, .wf-tour) { border-radius: var(--schema-radius); border: var(--schema-edge) solid var(--schema-ink); background: var(--schema-ground-raised); box-shadow: none; }
[data-profile="schema"] .wf-tooltip__bubble { border-radius: var(--schema-radius); background: var(--schema-ink); color: var(--schema-on-ink); }
[data-profile="schema"] .wf-infotip__btn { border-radius: var(--schema-radius); border-color: var(--schema-line-mid); }
[data-profile="schema"] .wf-infotip__btn:hover, [data-profile="schema"] .wf-infotip__btn[aria-expanded="true"] { border-color: var(--schema-ink); color: var(--schema-ink); }
/* QrHandoff on the cloth: a ruled sheet around the code, square knots on a thread, the current one in knot colour. */
[data-profile="schema"] .wf-handoff__frame { border-radius: var(--schema-radius); border: var(--schema-edge) solid var(--schema-ink); background: var(--schema-ground-raised); }
[data-profile="schema"] .wf-handoff__corners { color: var(--schema-ink); }
[data-profile="schema"] .wf-handoff__qr { border-radius: var(--schema-radius); }
[data-profile="schema"] .wf-handoff__badge { border-radius: var(--schema-radius); background: var(--schema-knot); color: var(--schema-on-knot); border: var(--schema-edge) solid var(--schema-ink); }
[data-profile="schema"] .wf-handoff__badge::after { border-color: var(--schema-knot); }
/* A spinning arc reads as a stray line around a square knot: on the cloth, checking pulses like waiting and the status line spins. */
[data-profile="schema"] .wf-handoff--checking .wf-handoff__badge::before { display: none; }
[data-profile="schema"] .wf-handoff--checking .wf-handoff__badge::after { opacity: 1; animation: wf-handoff-ring var(--wf-duration-loop) var(--wf-ease-exit) infinite; }
[data-profile="schema"] .wf-handoff--done .wf-handoff__badge { background: var(--schema-ink); color: var(--schema-on-ink); }
[data-profile="schema"] .wf-handoff--ended .wf-handoff__badge { background: var(--schema-ground-raised); color: var(--schema-text-muted); border-style: dashed; }
[data-profile="schema"] .wf-handoff__knot { border-radius: var(--schema-radius); border-color: var(--schema-line-mid); background: var(--schema-ground-raised); color: var(--schema-text-muted); }
[data-profile="schema"] .wf-handoff__steps > li:not(:last-child)::before { border-left-color: var(--schema-line-mid); }
[data-profile="schema"] .wf-handoff__steps > li.is-done:not(:last-child)::before { border-left-color: var(--schema-ink); }
[data-profile="schema"] .wf-handoff__steps > li.is-done .wf-handoff__knot { border-color: var(--schema-ink); background: var(--schema-ink); color: var(--schema-on-ink); }
[data-profile="schema"] .wf-handoff__steps > li.is-current .wf-handoff__knot { border-color: var(--schema-ink); background: var(--schema-knot); color: var(--schema-on-knot); }
[data-profile="schema"] .wf-handoff__steps > li.is-current .wf-handoff__knot::after { border-color: var(--schema-knot); }
[data-profile="schema"] :is(.wf-handoff__pulse, .wf-handoff__pulse::after) { border-radius: var(--schema-radius); background: var(--schema-knot); }
[data-profile="schema"] .wf-handoff__now { padding: 0 var(--wf-space-1); background: var(--schema-knot); color: var(--schema-on-knot); }
[data-profile="schema"] .wf-term__word:hover, [data-profile="schema"] .wf-term__word[aria-expanded="true"] { text-decoration-color: var(--schema-thread-1); color: var(--schema-ink); }
[data-profile="schema"] .wf-checklist__marker { border-radius: var(--schema-radius); }
[data-profile="schema"] .wf-checklist__list > li { border-radius: var(--schema-radius); }
[data-profile="schema"] .wf-checklist__list > li.is-next { background: var(--schema-wash); }

/* ServiceHead (D45): the heading of a service page (help, legal, privacy, contacts, news lists, regulatory).
   One short band instead of a hero: the trail, the title with its lead on the same line, what the page holds, and a
   seam that closes the band. The seam is the ink rule with a running stitch of the first thread under it. */
.wf-schema-head { padding-block: var(--wf-rhythm-page-top) 0; }
.wf-schema-head__in { display: grid; gap: var(--wf-rhythm-head); padding-block-end: var(--wf-rhythm-head); }
.wf-schema-head__main { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--wf-rhythm-title) calc(var(--schema-cell) * 3); align-items: end; }
.wf-schema-head__main:not(:has(.wf-schema-head__lead)) { grid-template-columns: minmax(0, 1fr); }
.wf-schema-head__titles { display: grid; gap: var(--wf-rhythm-title); min-width: 0; }
.wf-schema-head__kicker { display: flex; align-items: center; gap: var(--wf-space-2); margin: 0; font-family: var(--font-mono); font-size: var(--t-caption); letter-spacing: var(--wf-tracking-caps); text-transform: uppercase; color: var(--schema-text-soft); }
.wf-schema-head__kicker svg { flex: none; width: calc(var(--schema-cell) * .6); height: calc(var(--schema-cell) * .6); }
.wf-schema-head__title { margin: 0; font-family: var(--font-display); font-weight: var(--wf-weight-bold); font-size: var(--schema-title); line-height: var(--wf-leading-display); letter-spacing: var(--wf-tracking-display); color: var(--schema-ink); text-wrap: balance; max-width: 22ch; }
.wf-schema-head__lead { margin: 0; font-size: var(--schema-lead); line-height: var(--wf-leading-body); color: var(--schema-text-muted); max-width: 48ch; text-wrap: pretty; }
.wf-schema-head__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--wf-space-3) calc(var(--schema-cell) * 2); }
.wf-schema-head__facts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wf-space-2) calc(var(--schema-cell) * 1.2); min-width: 0; }
.wf-schema-head__meta { display: flex; flex-wrap: wrap; gap: var(--wf-space-1) calc(var(--schema-cell) * 1.2); margin: 0; font-size: var(--t-body-sm); color: var(--schema-text-muted); }
.wf-schema-head__meta > div { display: flex; gap: var(--wf-space-1-half); align-items: baseline; }
.wf-schema-head__meta dt { font-family: var(--font-mono); font-size: var(--t-caption); color: var(--schema-text-soft); }
.wf-schema-head__meta dt::after { content: ":"; }
.wf-schema-head__meta dd { margin: 0; color: var(--schema-ink); font-weight: var(--wf-weight-medium); }
.wf-schema-head__actions { display: flex; flex-wrap: wrap; gap: var(--wf-space-2); }
/* «На сторінці»: the page's own sections as square tabs; one row that scrolls sideways on a phone. */
.wf-schema-head__toc { display: flex; align-items: center; gap: var(--wf-space-2) var(--wf-space-3); min-width: 0; }
.wf-schema-head__toc > span { flex: none; font-family: var(--font-mono); font-size: var(--t-caption); color: var(--schema-text-soft); }
.wf-schema-head__toc ol { display: flex; flex-wrap: wrap; gap: var(--wf-space-2); margin: 0; padding: 0; list-style: none; counter-reset: wf-toc; min-width: 0; }
.wf-schema-head__toc li { counter-increment: wf-toc; }
.wf-schema-head__toc a { display: inline-flex; align-items: center; gap: var(--wf-space-2); min-height: var(--wf-control-h-sm); padding-inline: var(--wf-space-3); border: var(--wf-border-w) solid var(--schema-line-mid); background: var(--schema-ground-raised); color: var(--schema-ink); font-size: var(--t-body-sm); font-weight: var(--wf-weight-medium); text-decoration: none; white-space: nowrap; transition: border-color var(--wf-duration-fast) var(--wf-ease-standard), background var(--wf-duration-fast) var(--wf-ease-standard); }
.wf-schema-head__toc a::before { content: counter(wf-toc, decimal-leading-zero); font-family: var(--font-mono); font-size: var(--t-xs); color: var(--schema-text-soft); }
.wf-schema-head__toc a:hover { border-color: var(--schema-ink); background: var(--schema-wash); }
.wf-schema-head__seam { height: calc(var(--schema-edge) + var(--wf-space-1) * 2); border-top: var(--schema-edge) solid var(--schema-ink);
  background: repeating-linear-gradient(to right, var(--schema-thread-1) 0 calc(var(--schema-cell) * .5), transparent 0 var(--schema-cell)) 0 var(--wf-space-1) / 100% var(--schema-edge) no-repeat; }
@media (max-width: 900px) {
  .wf-schema-head__main { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .wf-schema-head__toc { flex-direction: column; align-items: stretch; }
  .wf-schema-head__toc ol { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter, var(--wf-screen-margin))); padding-inline: var(--gutter, var(--wf-screen-margin)); }
}

/* EmbroideryBorder (D46): a product's running motif between two stitched edges. Each thread is a mask over a solid
   colour, so the border takes the Schema ink and the site's second colour in both themes. */
.wf-embroidery { --wf-embroidery-c: var(--schema-border-cell); --wf-embroidery-k: none; --wf-embroidery-r: none; --wf-embroidery-tw: 1; position: relative; height: calc(var(--wf-embroidery-c) * 13); color: var(--schema-ink);
  background:
    repeating-linear-gradient(to right, var(--schema-ink) 0 calc(var(--wf-embroidery-c) * .8), transparent 0 calc(var(--wf-embroidery-c) * 2)) 0 calc(var(--wf-embroidery-c) * .1) / 100% calc(var(--wf-embroidery-c) * .8) no-repeat,
    repeating-linear-gradient(to right, var(--schema-thread-2) 0 calc(var(--wf-embroidery-c) * .8), transparent 0 calc(var(--wf-embroidery-c) * 4)) var(--wf-embroidery-c) calc(var(--wf-embroidery-c) * 1.1) / 100% calc(var(--wf-embroidery-c) * .8) no-repeat,
    repeating-linear-gradient(to right, var(--schema-thread-2) 0 calc(var(--wf-embroidery-c) * .8), transparent 0 calc(var(--wf-embroidery-c) * 4)) var(--wf-embroidery-c) calc(var(--wf-embroidery-c) * 11.1) / 100% calc(var(--wf-embroidery-c) * .8) no-repeat,
    repeating-linear-gradient(to right, var(--schema-ink) 0 calc(var(--wf-embroidery-c) * .8), transparent 0 calc(var(--wf-embroidery-c) * 2)) 0 calc(var(--wf-embroidery-c) * 12.1) / 100% calc(var(--wf-embroidery-c) * .8) no-repeat; }
.wf-embroidery::before, .wf-embroidery::after { content: ""; position: absolute; inset: calc(var(--wf-embroidery-c) * 2) 0; -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x; -webkit-mask-size: calc(var(--wf-embroidery-tw) * var(--wf-embroidery-c)) 100%; mask-size: calc(var(--wf-embroidery-tw) * var(--wf-embroidery-c)) 100%; }
.wf-embroidery::before { background: var(--schema-ink); -webkit-mask-image: var(--wf-embroidery-k); mask-image: var(--wf-embroidery-k); }
.wf-embroidery::after { background: var(--schema-thread-2); -webkit-mask-image: var(--wf-embroidery-r); mask-image: var(--wf-embroidery-r); }
.wf-schema-head__border { margin-top: var(--wf-space-2); }

/* Embroidery: the rosette and the stitched progress line. Colours are tokens; the second thread is the site's second colour. */
.wf-rosette { display: block; pointer-events: none; }
.wf-rosette--dark .wf-rosette__k { fill: color-mix(in srgb, var(--wf-static-white) 11%, transparent); }
.wf-rosette--dark .wf-rosette__r { fill: color-mix(in srgb, var(--surface-highlight) 62%, transparent); }
.wf-rosette--light .wf-rosette__k { fill: color-mix(in srgb, var(--wf-ink) 7%, transparent); }
.wf-rosette--light .wf-rosette__r { fill: color-mix(in srgb, var(--surface-highlight) 32%, transparent); }

.wf-auth__stitches { display: grid; gap: 8px; margin: 0 0 var(--wf-space-5); }
.wf-auth__stitches ol { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--wf-space-3); }
.wf-auth__stitches li { flex: 1; height: 4px; border-radius: var(--wf-radius-pill); background: repeating-linear-gradient(90deg, var(--wf-border-control) 0 7px, transparent 7px 12px); }
.wf-auth__stitches li.is-done, .wf-auth__stitches li.is-current { background: repeating-linear-gradient(90deg, var(--surface-highlight-text) 0 7px, transparent 7px 12px); }
.wf-auth__stitches li.is-current { height: 6px; margin-top: -1px; }
.wf-auth__stitches p { margin: 0; color: var(--wf-text-muted); font-size: var(--t-caption); }

/* Evidence components: the truthful flow line (owner, 2026-10-27). Solid only between recorded events, dashed where
   nothing is known; a node is filled only when its event was recorded. Colour repeats a word, never replaces it. */

/* ---------- result word ---------- */
.wf-result { display: inline-flex; align-items: center; gap: 5px; font-weight: var(--wf-weight-semibold); font-size: var(--t-body-sm); color: var(--c); line-height: 1.2; white-space: nowrap; }
.wf-result--sm { font-size: var(--t-caption); gap: 4px; }
.wf-result svg { flex: none; }
.wf-result--pass { --c: var(--status-success); }
.wf-result--fail { --c: var(--status-danger); }
.wf-result--unknown { --c: var(--data-unknown); }
.wf-result--na { --c: var(--wf-text-muted); }

/* ---------- hash ---------- */
.wf-hash { display: inline-flex; align-items: center; gap: 2px; min-width: 0; max-width: 100%; }
.wf-hash code { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wf-hash__copy { display: inline-grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: var(--wf-radius-xs); background: transparent; color: var(--wf-text-soft); cursor: pointer; transition: color var(--wf-duration-base) var(--wf-ease-standard), background var(--wf-duration-base) var(--wf-ease-standard); }
.wf-hash__copy:hover { color: var(--surface-accent); background: var(--wf-surface-2); }
.wf-hash__copy:active { transform: scale(var(--wf-press-scale-icon)); }

/* ---------- evidence trace ---------- */
.wf-trace { --wf-trace-cols: 1; --wf-trace-lanes: 1; --lane-h: 48px; --x: 10px; display: grid; grid-template-columns: auto minmax(min-content, 1fr); gap: 0 16px; overflow-x: auto; padding-bottom: 4px; }
.wf-trace__lanes { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-rows: var(--lane-h); align-content: start; border-right: 1px solid var(--wf-border); padding-right: 12px; }
.wf-trace__lanes li { display: flex; align-items: center; font-size: var(--t-caption); color: var(--wf-text-soft); white-space: nowrap; }
.wf-trace__events { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--wf-trace-cols), minmax(var(--wf-evidence-step), 1fr)); background:
  repeating-linear-gradient(to bottom, transparent 0 calc(var(--lane-h) / 2 - 0.5px), var(--wf-border) calc(var(--lane-h) / 2 - 0.5px) calc(var(--lane-h) / 2 + 0.5px), transparent calc(var(--lane-h) / 2 + 0.5px) var(--lane-h))
  top / 100% calc(var(--wf-trace-lanes) * var(--lane-h)) no-repeat; }
.wf-trace__ev { --lane: 0; --from: 0; --span: 0; position: relative; min-width: 0; padding: calc(var(--wf-trace-lanes) * var(--lane-h) + 12px) 12px 0 0; }
.wf-trace__node { position: absolute; left: calc(var(--x) - var(--wf-evidence-node) / 2); top: calc(var(--lane) * var(--lane-h) + var(--lane-h) / 2 - var(--wf-evidence-node) / 2); width: var(--wf-evidence-node); height: var(--wf-evidence-node); border-radius: var(--wf-radius-pill); border: var(--wf-evidence-node-ring) dashed var(--wf-border-control); background: var(--wf-white); transition: background var(--wf-duration-base) var(--wf-ease-standard), border-color var(--wf-duration-base) var(--wf-ease-standard); }
.wf-trace__ev.is-recorded .wf-trace__node { border-style: solid; border-color: var(--surface-fill); background: var(--surface-fill); }
.wf-trace__link { position: absolute; left: var(--x); width: 100%; top: calc(var(--from) * var(--lane-h) + var(--lane-h) / 2); height: calc(var(--span) * var(--lane-h)); overflow: visible; fill: none; }
.wf-trace__link.is-flat { top: calc(var(--from) * var(--lane-h) + var(--lane-h) / 2 - var(--wf-evidence-line)); height: calc(var(--wf-evidence-line) * 2); }
.wf-trace__link path { stroke: var(--surface-fill); stroke-width: var(--wf-evidence-line); stroke-linecap: round; }
.link-unknown > .wf-trace__link path { stroke: var(--wf-border-control); stroke-dasharray: 4 5; stroke-width: 2px; }
.wf-trace__gap { position: absolute; left: calc(var(--x) + 50%); top: calc((var(--from) + var(--span) / 2) * var(--lane-h) + var(--lane-h) / 2); transform: translate(-50%, -50%); padding: 1px 8px; border: 1px solid var(--wf-border); border-radius: var(--wf-evidence-delta-radius); background: var(--wf-white); font-size: var(--t-xs); color: var(--wf-text); white-space: nowrap; }
.wf-trace__text { display: grid; gap: 2px; min-width: 0; }
.wf-trace__label { font-size: var(--t-body-sm); font-weight: var(--wf-weight-semibold); color: var(--ink); }
.wf-trace__meta { font-size: var(--t-xs); color: var(--wf-text-soft); overflow-wrap: anywhere; }
.wf-trace__facts { display: grid; gap: 2px; margin: 6px 0 0; font-size: var(--t-caption); }
.wf-trace__facts > div { display: flex; flex-wrap: wrap; gap: 0 6px; min-width: 0; }
.wf-trace__facts dt { color: var(--wf-text-soft); min-width: 0; overflow-wrap: anywhere; }
.wf-trace__facts dd { margin: 0; color: var(--wf-text); min-width: 0; overflow-wrap: anywhere; }

@media (max-width: 640px) {
  .wf-trace { grid-template-columns: minmax(0, 1fr); overflow-x: visible; }
  .wf-trace__lanes, .wf-trace__link { display: none; }
  .wf-trace__events { grid-template-columns: minmax(0, 1fr); background: none; }
  .wf-trace__ev { padding: 0 0 18px 30px; }
  .wf-trace__node { left: calc(var(--x) - var(--wf-evidence-node) / 2); top: 3px; }
  .wf-trace__ev:is(.link-solid, .link-unknown)::before { content: ""; position: absolute; left: calc(var(--x) - var(--wf-evidence-line) / 2); top: calc(3px + var(--wf-evidence-node)); bottom: 3px; width: var(--wf-evidence-line); background: var(--surface-fill); }
  .wf-trace__ev.link-unknown::before { width: 2px; background: repeating-linear-gradient(to bottom, var(--wf-border-control) 0 4px, transparent 4px 9px); }
  .wf-trace__gap { position: static; transform: none; justify-self: start; display: inline-block; margin-top: 6px; order: 2; }
  .wf-trace__ev { display: grid; }
}

/* ---------- stage line ---------- */
.wf-stages { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px; }
.wf-stages__st { position: relative; display: grid; gap: 4px; align-content: start; min-width: 0; }
.wf-stages__node { position: relative; display: grid; place-items: center; width: 26px; height: 26px; border-radius: var(--wf-radius-pill); border: 2px dashed var(--wf-border-control); background: var(--wf-white); color: var(--wf-text-soft); margin-bottom: 6px; }
.wf-stages__st--pass .wf-stages__node, .wf-stages__st--na .wf-stages__node { border-style: solid; border-color: var(--surface-fill); background: var(--surface-fill); color: var(--surface-on-fill); }
.wf-stages__st--fail .wf-stages__node { border-style: solid; border-color: var(--status-danger); color: var(--status-danger); }
.wf-stages__st.has-line::after, .wf-stages__st.has-gap::after { content: ""; position: absolute; top: 12px; left: 34px; right: -4px; height: 2px; background: var(--surface-fill); }
.wf-stages__st.has-gap::after { background: repeating-linear-gradient(to right, var(--wf-border-control) 0 4px, transparent 4px 9px); }
.wf-stages__label { font-size: var(--t-body-sm); font-weight: var(--wf-weight-semibold); color: var(--ink); }
.wf-stages__result { font-size: var(--t-caption); color: var(--wf-text-muted); }
.wf-stages__detail { font-size: var(--t-caption); color: var(--wf-text-soft); }
@media (max-width: 520px) {
  .wf-stages { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
  .wf-stages__st::after { display: none; }
}

/* ---------- verdict ---------- */
.wf-verdict { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px 32px; padding: 24px; border-radius: var(--wf-panel-radius); background: var(--surface-deep); color: var(--surface-on-deep); }
.wf-verdict__main { display: grid; gap: 10px; align-content: start; min-width: 0; }
.wf-verdict__result { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-body-sm); font-weight: var(--wf-weight-semibold); }
.wf-verdict__code { font-weight: var(--wf-weight-regular); color: var(--surface-on-deep-muted); font-size: var(--t-xs); }
.wf-verdict__title { font-size: var(--t-xl); line-height: var(--wf-leading-heading); font-weight: var(--wf-weight-bold); color: var(--surface-on-deep); overflow-wrap: anywhere; }
.wf-verdict__summary { font-size: var(--t-body-sm); color: var(--surface-on-deep-muted); max-width: 64ch; }
.wf-verdict__counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 16px; margin: 0; align-content: start; }
.wf-verdict__counts dt { font-size: var(--t-caption); color: var(--surface-on-deep-muted); }
.wf-verdict__counts dd { margin: 2px 0 0; font-size: var(--t-2xl); line-height: 1.1; color: var(--surface-on-deep); }
.wf-verdict__counts small { font-size: var(--t-body-sm); color: var(--surface-on-deep-muted); margin-left: 4px; }
.wf-verdict__none { font-size: var(--t-md); color: var(--surface-on-deep-muted); }
.wf-verdict__scope { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.wf-verdict__scope li { font-family: var(--font-mono); font-size: var(--t-xs); padding: 3px 8px; border: 1px solid color-mix(in srgb, var(--surface-on-deep) 45%, transparent); border-radius: var(--wf-radius-xs); }
.wf-verdict__scope li.is-absent { border-style: dotted; color: var(--surface-on-deep-muted); }
.wf-verdict__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 760px) { .wf-verdict { grid-template-columns: minmax(0, 1fr); padding: 18px; } .wf-verdict__counts dd { font-size: var(--t-xl); } }

/* ---------- proof scope ---------- */
.wf-proof { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--wf-border); border-radius: var(--wf-panel-radius); background: var(--wf-white); }
.wf-proof > section { padding: 16px 18px; min-width: 0; }
.wf-proof > section + section { border-left: 1px solid var(--wf-border); }
.wf-proof__title { font-size: var(--t-body-sm); font-weight: var(--wf-weight-semibold); margin-bottom: 10px; }
.wf-proof ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: var(--t-body-sm); }
.wf-proof li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: baseline; }
@media (max-width: 640px) { .wf-proof { grid-template-columns: minmax(0, 1fr); } .wf-proof > section + section { border-left: 0; border-top: 1px solid var(--wf-border); } }

/* ---------- compatibility matrix ---------- */
.wf-matrix-wrap { overflow-x: auto; }
.wf-matrix { width: 100%; border-collapse: separate; border-spacing: 4px; font-size: var(--t-body-sm); }
.wf-matrix thead th { font-size: var(--t-caption); font-weight: var(--wf-weight-semibold); color: var(--wf-text-soft); text-align: start; padding: 4px 8px; white-space: nowrap; }
.wf-matrix tbody th { text-align: start; font-weight: var(--wf-weight-regular); padding: 6px 8px; vertical-align: middle; min-width: 140px; }
.wf-matrix__target { display: block; font-family: var(--font-mono); color: var(--ink); }
.wf-matrix__sub { display: block; font-size: var(--t-xs); color: var(--wf-text-soft); }
.wf-matrix__cell { height: var(--wf-matrix-cell-h); padding: 0 10px; border-radius: var(--wf-radius-sm); vertical-align: middle; min-width: 120px; }
.wf-matrix__cell--pass { background: var(--status-success-bg); }
.wf-matrix__cell--fail { background: var(--status-danger-bg); }
.wf-matrix__cell--unknown { border: 1px dashed var(--wf-border-control); background: repeating-linear-gradient(135deg, var(--wf-hatch-line) 0 1px, transparent 1px var(--wf-hatch-step)); }
.wf-matrix__cell--na { border: 1px dotted var(--wf-border-control); }

/* ---------- address by КАТОТТГ (WESFIN-ADDR-001) ---------- */
.wf-settlement__box { position: relative; }
.wf-settlement__list {
  position: absolute; z-index: var(--wf-z-popover); top: calc(100% + 4px); left: 0; right: 0; max-height: 320px; overflow-y: auto;
  margin: 0; padding: 4px; list-style: none; background: var(--wf-white); color: var(--wf-text);
  border: 1px solid var(--wf-border); border-radius: var(--wf-radius-md); box-shadow: var(--wf-shadow-popover);
}
.wf-settlement__list [role="option"] { display: grid; gap: 2px; padding: 8px 10px; border-radius: var(--wf-radius-xs); cursor: pointer; }
.wf-settlement__list [role="option"].is-active { background: var(--wf-surface-2); }
.wf-settlement__name { font-weight: var(--wf-weight-semibold); }
.wf-settlement__path { font-size: var(--t-caption); color: var(--wf-text-soft); }
.wf-settlement__status { padding: 8px 10px; font-size: var(--t-caption); color: var(--wf-text-soft); }

.wf-address { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; border: 0; min-width: 0; }
.wf-address__settlement, .wf-address__street, .wf-address__mode { grid-column: span 4; }
.wf-address__cadastral { grid-column: span 3; }
@media (min-width: 720px) { .wf-address__street { grid-column: span 2; } }
@media (max-width: 719px) { .wf-address { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wf-address__settlement, .wf-address__street, .wf-address__mode, .wf-address__cadastral { grid-column: span 2; } }

/* Waves: ribbons across the edge of a band, in the site's gradient. The band gets .wf-wavy and room for them; the waves sit
   behind the band's content (negative z-index inside the isolated band), so content needs no positioning. */
.wf-wavy { position: relative; isolation: isolate; overflow: hidden; }
.wf-wavy--bottom { padding-bottom: calc(var(--wf-space-16) + var(--wf-waves-height)); }
.wf-wavy--top { padding-top: calc(var(--wf-space-12) + var(--wf-waves-height)); }
.wf-waves { --wf-waves-line: var(--surface-on-fill); position: absolute; inset-inline: 0; z-index: var(--wf-z-behind); height: var(--wf-waves-height); pointer-events: none; }
.wf-waves--bottom { bottom: 0; }
.wf-waves--top { top: 0; transform: scaleY(-1); }
.wf-waves__svg { display: block; width: 100%; height: 100%; }
.wf-waves__svg.is-flipped { transform: scaleX(-1); }
.wf-waves__stop-0 { stop-color: var(--surface-grad2); stop-opacity: 0; }
.wf-waves__stop-1 { stop-color: var(--surface-grad2); stop-opacity: .8; }
.wf-waves__stop-2 { stop-color: var(--surface-fill); stop-opacity: 1; }
.wf-waves__line-0 { stop-color: var(--wf-waves-line); stop-opacity: 0; }
.wf-waves__line-1 { stop-color: var(--wf-waves-line); stop-opacity: .85; }
.wf-waves__line-2 { stop-color: var(--wf-waves-line); stop-opacity: .6; }
.wf-waves__line { stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.wf-section--ink .wf-waves, .wf-section--deep .wf-waves { --wf-waves-line: var(--surface-on-deep); }
:root { --wf-waves-height: clamp(96px, 11vw, 168px); }

/* Popup controls (D38): Select and Menu. ui-sdk only adds behaviour and data-* state; the look is ours.
   The list is a sheet laid over the page: one drawn edge, the site's popover radius and shadow, square and flat on
   «Схема». --anchor-width and --available-height are set on the popup by the engine while it is open. */

.wf-pick { position: relative; }
.wf-pick__trigger { display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: start; cursor: pointer; font: inherit; font-size: var(--wf-control-font); }
.wf-pick__trigger:focus-visible { outline: var(--wf-focus-width) solid var(--surface-accent); outline-offset: 0; border-color: transparent; }
.wf-pick__trigger[data-disabled] { cursor: not-allowed; opacity: .6; }
.wf-pick__value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wf-pick__value[data-placeholder] { color: var(--wf-text-soft); }
.wf-pick__chevron, .wf-menu__chevron { flex: none; color: var(--wf-text-muted); transition: transform var(--wf-duration-fast) var(--wf-ease-standard); }
.wf-pick__trigger[data-open] .wf-pick__chevron, .wf-menu__trigger[data-open] .wf-menu__chevron { transform: rotate(180deg); }
.wf-field.has-error .wf-pick__trigger { border-color: var(--status-danger); }

.wf-popup {
  z-index: var(--wf-z-popover); box-sizing: border-box; display: grid; gap: 2px; padding: 4px; margin: 0;
  min-width: max(var(--anchor-width, 0px), 180px); max-width: min(var(--wf-popover-w), calc(100vw - 32px));
  max-height: min(var(--available-height, 360px), 360px); overflow-y: auto; overscroll-behavior: contain;
  border: 1px solid var(--wf-border-overlay); border-radius: var(--wf-popover-radius); background: var(--wf-white);
  box-shadow: var(--wf-shadow-popover); color: var(--wf-text); font-size: var(--t-body-sm);
  transform-origin: var(--transform-origin, top center);
  transition: opacity var(--wf-duration-fast) var(--wf-ease-enter), transform var(--wf-duration-fast) var(--wf-ease-enter);
}
.wf-popup:focus { outline: none; }
.wf-popup[data-starting-style], .wf-popup[data-ending-style] { opacity: 0; transform: scale(.96); }
.wf-popup[data-ending-style] { transition-duration: var(--wf-duration-instant); transition-timing-function: var(--wf-ease-exit); }

.wf-popup__item {
  display: flex; align-items: center; gap: 10px; min-height: var(--wf-control-h-sm); padding: 6px 10px;
  border-radius: var(--wf-radius-xs); cursor: pointer; user-select: none; outline: none;
}
.wf-popup__item[data-highlighted] { background: var(--wf-surface-2); }
.wf-popup[data-modality="keyboard"] .wf-popup__item[data-highlighted] { box-shadow: inset 0 0 0 var(--wf-focus-width) var(--surface-accent); }
.wf-popup__item[data-selected] { font-weight: var(--wf-weight-semibold); }
.wf-popup__item[data-disabled] { color: var(--wf-text-soft); cursor: not-allowed; }
.wf-popup__item[data-pending] { cursor: progress; color: var(--wf-text-muted); }
.wf-popup__text { display: grid; gap: 1px; flex: 1; min-width: 0; }
.wf-popup__hint { color: var(--wf-text-muted); font-size: var(--t-caption); font-weight: var(--wf-weight-regular); }
.wf-popup__icon { flex: none; color: var(--wf-text-muted); }
.wf-popup__check { flex: none; display: inline-flex; color: var(--surface-accent); }
.wf-popup__sep { height: 1px; margin: 4px -4px; background: var(--wf-border); border: 0; }

.wf-menu__trigger:is(.wf-btn--ghost, .wf-btn--quiet, .wf-iconbtn)[data-open] { background: var(--wf-surface-2); }

@media (prefers-reduced-motion: reduce) {
  .wf-popup, .wf-pick__chevron, .wf-menu__chevron { transition: none; }
}

/* «Схема»: the list is a ruled sheet, square, with the ink edge and no shadow. */
[data-profile="schema"] .wf-popup { border: var(--schema-edge) solid var(--schema-ink); border-radius: var(--schema-radius); box-shadow: none; background: var(--schema-ground-raised); }
[data-profile="schema"] .wf-popup__item { border-radius: var(--schema-radius); }
[data-profile="schema"] .wf-popup__item[data-highlighted] { background: var(--schema-ink); color: var(--schema-on-ink); }
[data-profile="schema"] .wf-popup__item[data-highlighted] :is(.wf-popup__hint, .wf-popup__icon, .wf-popup__check) { color: var(--schema-on-ink); }
[data-profile="schema"] .wf-popup__sep { background: var(--schema-line); }
[data-profile="schema"] .wf-popup[data-modality="keyboard"] .wf-popup__item[data-highlighted] { box-shadow: none; }


/* EDDIE UA project-only identity. Shared semantic, spacing, Schema and type
   tokens are unmodified generated snapshots from @wesfin/design-tokens 0.29.0.
   EDDIE is NOT Wesfin Energy: never inherit Energy navy/brand colours. */
:root[data-surface="eddie"] {
  --eddie-blue: #075FCC;
  --eddie-electric: #097BFB;
  --eddie-cyan: #24D6ED;
  --eddie-deep: #07142C;
  --eddie-ice: #EAF7FF;
  --eddie-white: #FFFFFF;
  --surface-accent: #0755BB;
  --surface-fill: var(--eddie-blue); /* white text on fill needs 4.5:1: #075FCC gives 6.3, the electric #097BFB only 4.0 */
  --surface-on-fill: #FFFFFF;
  --surface-grad2: var(--eddie-cyan);
  --surface-deep: var(--eddie-deep);
  --surface-deep-hover: #0D2751;
  --surface-on-deep: #E8F4FF;
  --surface-on-deep-muted: #AABED8;
  --surface-gradient: linear-gradient(120deg, var(--surface-fill) 0%, var(--surface-grad2) 100%);
  --surface-tint: #EAF7FF;
  --surface-support: var(--eddie-cyan);
  --surface-support-tint: #EAF7FF;
  --surface-highlight: var(--eddie-cyan);
  --surface-on-highlight: #061A37;
  --surface-highlight-text: #00667E;
  --surface-highlight-wash: #E5FBFF;
  --wf-link: var(--surface-accent);
  --wf-heading: var(--wf-ink);
}
:root[data-surface="eddie"][data-theme="dark"] {
  --surface-accent: #91C9FF;
  --surface-fill: #4899FF;
  --surface-on-fill: #07142C;
  --surface-grad2: #37E1F1;
  --surface-deep: #07142C;
  --surface-deep-hover: #0C2145;
  --surface-on-deep: #E8F4FF;
  --surface-on-deep-muted: #AABED8;
  --surface-tint: #132947;
  --surface-highlight: #34D8EA;
  --surface-on-highlight: #07142C;
  --surface-highlight-text: #34D8EA;
  --surface-highlight-wash: #0B3145;
  --wf-link: var(--surface-accent);
}


/* EDDIE UA on Wesfin «Схема» (D35/D36). Everything above is the unmodified @wesfin snapshot (brand fonts 0.29.2,
   design tokens 0.29.0, ui 0.29.2: base, shell, primitives, schema, embroidery …). This file only adds what the
   page needs and the system does not yet have, in tokens only. Candidates for @wesfin/ui once the owner approves:
   .eddie-lockup (a project lockup from an owner PNG) and .eddie-doors (the same ruled sheet as .energy-doors).
   Cell: --schema-cell 20px. */

body { background: var(--schema-ground); color: var(--schema-ink); }

/* The lockup: the owner's exact EDDIE PNG as the mark, "UA" as the word. The PNG is transparent with navy letters,
   so in the dark theme it sits on a white plate instead of being recoloured. */
.eddie-lockup { --mark-h: 40px; gap: var(--wf-space-1); }
/* The PNG carries transparent margins (left 16 %, right 23 % of its height): pull them in so the logo sits on the
   container edge like any lockup mark. */
.eddie-lockup .eddie-lockup__mark { height: var(--mark-h); width: auto; margin-inline: calc(var(--mark-h) * -.16) calc(var(--mark-h) * -.2); }
.eddie-lockup .eddie-lockup__mark--dark { display: none; }
[data-theme="dark"] .eddie-lockup .eddie-lockup__mark--light { display: none; }
[data-theme="dark"] .eddie-lockup .eddie-lockup__mark--dark { display: block; }
.eddie-lockup .wf-lockup__name { color: var(--surface-fill); letter-spacing: var(--wf-tracking-caps); }
[data-theme="dark"] .eddie-lockup .wf-lockup__name { color: var(--surface-highlight); }
@media (max-width: 960px) { .wf-site-header .eddie-lockup { --mark-h: 32px; } }

.eddie-stack { display: grid; gap: var(--wf-rhythm-block); }
.eddie-stack > .wf-schema-note { margin-top: calc(var(--wf-rhythm-block) * -.5); }

.eddie-go { display: inline-flex; align-items: center; gap: var(--wf-space-2); padding-bottom: var(--wf-space-1); border-bottom: var(--schema-edge) solid currentColor; color: var(--schema-ink); font-weight: var(--wf-weight-bold); text-decoration: none; justify-self: start; }
.eddie-go svg { transition: transform var(--wf-duration-fast) var(--wf-ease-standard); }
.eddie-go:hover svg { transform: translateX(var(--wf-space-1)); }
.eddie-go:focus-visible { outline: var(--schema-edge) solid var(--schema-ink); outline-offset: var(--wf-space-1); }

/* Materials: a ruled sheet, one cell per document, the same grammar as the doors on wesfin.energy. */
.eddie-doors { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: var(--schema-edge) solid var(--schema-ink); border-left: var(--wf-border-w) solid var(--schema-line-mid); }
.eddie-doors > li { display: grid; grid-template-rows: auto 1fr auto; gap: var(--wf-space-3); padding: calc(var(--schema-cell) * 1.5); border-right: var(--wf-border-w) solid var(--schema-line-mid); border-bottom: var(--wf-border-w) solid var(--schema-line-mid); background: var(--schema-ground-raised); }
.eddie-doors > li:hover { background: var(--schema-wash); }
.eddie-doors h3 { margin: 0; font-family: var(--font-display); font-weight: var(--wf-weight-bold); font-size: min(calc(var(--schema-h2) * .62), 7vw); line-height: var(--schema-display-leading); letter-spacing: var(--wf-tracking-display); text-transform: uppercase; color: var(--schema-ink); overflow-wrap: anywhere; }
.eddie-doors p { margin: 0; color: var(--schema-text-muted); font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: var(--wf-tracking-caps); text-transform: uppercase; }

.wf-schema-ledger dd a { color: var(--wf-link); white-space: nowrap; }

/* The independence line is the second note under the footer lockup. */
.wf-site-footer__brand .eddie-disclaimer { font-size: var(--t-caption); }

@media (max-width: 1100px) { .eddie-doors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .eddie-doors { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .eddie-go svg { transition: none; } }

/* Header and footer slots filled by site-chrome.js: the wrapper must not break the sticky header. */
.eddie-chrome { display: contents; }


/* Editorial EU research-origin bridge on the landing page – Schema tokens only. */
.eddie-origin{background:var(--schema-ground-raised);border-top:var(--schema-edge) solid var(--schema-ink);border-bottom:var(--schema-edge) solid var(--schema-line);}
.eddie-origin__body{display:grid;grid-template-columns:minmax(0,0.85fr) minmax(0,1.15fr);gap:calc(var(--schema-cell)*2);align-items:start;}
.eddie-origin h2{font-family:var(--font-display);color:var(--schema-ink);font-size:clamp(1.6rem,3.2vw,3rem);font-weight:var(--wf-weight-bold);letter-spacing:var(--wf-tracking-heading);line-height:1.18;margin:var(--wf-space-3) 0;}
.eddie-origin p{color:var(--schema-ink);line-height:1.75;font-size:var(--t-base);margin:0 0 var(--wf-space-5);}
.eddie-origin .wf-schema-kicker{color:var(--schema-thread-1);font-size:var(--t-caption);font-weight:var(--wf-weight-bold);letter-spacing:var(--wf-tracking-wide);}
.eddie-origin a{display:inline-flex;align-items:center;gap:var(--wf-space-2);}
@media(max-width:760px){.eddie-origin__body{grid-template-columns:1fr;gap:var(--schema-cell);}.eddie-origin p{font-size:var(--t-body-sm);}}
/* The footer has a Contact column next to Research (2026-11-21): from the tablet width down it uses the system's
   two-column footer (shell.css applies it from 720px), so five tracks do not push the page sideways. */
@media (max-width: 960px) { .wf-site-footer__top { grid-template-columns: 1fr 1fr; grid-auto-flow: row; } .wf-site-footer__brand, .wf-site-footer__col--group { grid-column: 1 / -1; } }
