/* MetaComp Design System tokens (Layer 1 primitives + Layer 2 semantics).
 * Extracted verbatim from the MDS bundle in legacy/VisionX Website.html. Do not hand-edit values;
 * site-specific variables live in site.css. */
@font-face{font-family:'Poppins';src:url("../fonts/poppins-400.woff2") format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Poppins';src:url("../fonts/poppins-600.woff2") format('woff2');font-weight:600;font-style:normal;font-display:swap}

/*
 * MetaComp Design System — Layer 1: Primitive Tokens
 * Source: MDS Figma file, `Scheme` collection, MetaComp Light mode.
 * File key: qFc0CmdzcEKS080mOlCsUZ — verified against mds-export/color.metacomp-light.json
 * (see that file's README.md: mds-export is the source of truth; fix here, not there).
 *
 * RULE: These variables are NEVER used directly in components.
 *       Components only reference Layer 2 semantic tokens.
 *       This layer is the raw "paint" — Layer 2 assigns meaning.
 *
 * Primitives in this layer:
 *   1. Typeface  — the raw font-family stack (--font-poppins). MetaComp brand font is
 *                  Poppins only, weights 400 (Regular) and 600 (SemiBold) — no
 *                  Bold (700), no monospace face. The ROLE name components use
 *                  (--font-brand) lives in Layer 2, like every other role.
 *   2. Palette   — raw colour swatches, named after the MDS path minus `Scheme`
 *                  (Scheme/MetaComp Primary/800 → --metacomp-primary-800), stops unchanged.
 *                  MetaComp Primary / Secondary carry 13 stops:
 *                  10 / 50 / 100 / 200 / 300 / 400 / 500 / 600 / 700 / 800 / 900 / 950 / 990
 *                  Neutral carries 15: 0 / 10 / 50 / … / 950 / 990 / 1000
 *                  Conditions Success / Error / Danger / Info / Critical carry 11 stops:
 *                  0 / 100 / 200 / 300 / 400 / 500 / 600 / 700 / 800 / 900 / 1000
 *   3. Highlight — 5 decorative/data-viz accent families (Scheme.Highlight), 7 stops
 *                  each: 200 / 300 / 400 / 500 / 600 / 700 / 800. Not yet wired through
 *                  Layer 2 — currently consumed ad hoc by metacomp-ds-guide/css/guide.css.
 *   4. Product literals — Product/Treasury Management and Product/FIP, the two MDS colours
 *                  published as literal values per mode: --treasury-management-light/-dark,
 *                  --fip-light/-dark (see layer2-tokens/semantic/product.md).
 */

/* ─────────────────────────────────────────────────────────────
   TYPEFACE PRIMITIVE
   Named by its VALUE, the way every primitive is — a primitive names a value,
   a semantic names a meaning. Layer 2 aliases this as --font-brand
   (MDS `Static/Font/Brand`), and that is the only name a component may use.
   Renamed from --font-brand 2026-08-25: the old spelling was a role name sitting
   in the value layer, which is what let Layer 3 reach past Layer 2 for the font.
   No call site moved — --font-brand still exists, one layer up.
───────────────────────────────────────────────────────────── */
:root {
  --font-poppins: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ─────────────────────────────────────────────────────────────
   RAW PALETTE
   MetaComp Primary/Secondary and Neutral verified against mds-export/color.metacomp-light.json
   (Scheme.Primary / Scheme.Secondary / Scheme.Neutral).
───────────────────────────────────────────────────────────── */
:root {

  /* ─── Scheme/MetaComp Primary ──────────────────────────────── */
  --metacomp-primary-10:    #fffbfe;
  --metacomp-primary-50:   #f6edff;
  --metacomp-primary-100:  #eaddff;
  --metacomp-primary-200:  #d0bcff;
  --metacomp-primary-300:  #b69df8;
  --metacomp-primary-400:  #9a82db;
  --metacomp-primary-500:  #7f67be;
  --metacomp-primary-600:  #6750a4;
  --metacomp-primary-700:  #4f378b;
  --metacomp-primary-800:  #381e72;
  --metacomp-primary-900:  #211050;
  --metacomp-primary-950:  #180c3e;
  --metacomp-primary-990: #0f052d;

  /* ─── Scheme/MetaComp Secondary ──────────────────────────────── */
  --metacomp-secondary-10:    #f2ffff;
  --metacomp-secondary-50:   #f3fcfc;
  --metacomp-secondary-100:  #e3f7f7;
  --metacomp-secondary-200:  #bcecea;
  --metacomp-secondary-300:  #93ddda;
  --metacomp-secondary-400:  #5ecac6;
  --metacomp-secondary-500:  #379e9a;
  --metacomp-secondary-600:  #2a7e7b;
  --metacomp-secondary-700:  #206563;
  --metacomp-secondary-800:  #184f4d;
  --metacomp-secondary-900:  #113b3a;
  --metacomp-secondary-950:  #0d2e2d;
  --metacomp-secondary-990: #031e1d;

  /* ─── Neutral (Surfaces, Text, Borders) ───────────────────── */
  /* Scheme/Neutral, all fifteen stops. --neutral-0 / --neutral-1000 are MDS's pure white
     and pure black; --neutral-10 / --neutral-990 are the softened ends (#fcfcfc / #1b1b1b). */
  --neutral-0: #ffffff;   /* MDS Neutral.0 */
  --neutral-1000: #000000;   /* MDS Neutral.1000 */
  --neutral-10:    #fcfcfc;
  --neutral-50:   #f9f9f7;
  --neutral-100:  #ededed;
  --neutral-200:  #d6d6d6;
  --neutral-300:  #b8b8b8;
  --neutral-400:  #969696;
  --neutral-500:  #757575;
  --neutral-600:  #595959;
  --neutral-700:  #454545;
  --neutral-800:  #333333;
  --neutral-900:  #212121;
  --neutral-950:  #181818;
  --neutral-990: #1b1b1b;

  /* ─── Scheme/Conditions/Error (see the condition-ramp note below) ─── */
  --conditions-error-0:   #fffbf3;
  --conditions-error-100:  #fff5e2;
  --conditions-error-200:  #ffeac1;
  --conditions-error-300:  #ffdb93;
  --conditions-error-400:  #ffcc66;
  --conditions-error-500:  #ffba30;
  --conditions-error-600:  #cd9526;
  --conditions-error-700:  #9f741e;
  --conditions-error-800:  #765616;
  --conditions-error-900:  #543d0f;
  --conditions-error-1000:  #543d0f;

  /* ─── Condition ramps — Verified against mds-export/color.metacomp-light.json ── */
  /*
   * Closed 2026-08-14. These five families were CDS Starter Kit placeholders while the
   * Figma variables were unreachable; they are now Scheme/Conditions, stop for stop:
   *   amber -> Conditions/Error    green -> Conditions/Success   red -> Conditions/Danger
   *   blue  -> Conditions/Info     orange -> Conditions/Critical
   * Since 2026-10-01 each family is named after its MDS path and carries exactly the
   * eleven stops MDS publishes, numbered as MDS numbers them (0, 100 … 900, 1000).
   * MDS publishes Error .900 and .1000 at ONE value, so --conditions-error-900 == --conditions-error-1000.
   */

  /* Scheme/Conditions/Success */
  --conditions-success-0:   #f2faf3;
  --conditions-success-100:  #e0f4e2;
  --conditions-success-200:  #bde8c1;
  --conditions-success-300:  #8dd693;
  --conditions-success-400:  #5cc565;
  --conditions-success-500:  #23b12f;
  --conditions-success-600:  #1d8f27;
  --conditions-success-700:  #18701f;
  --conditions-success-800:  #135518;
  --conditions-success-900:  #0f3e13;
  --conditions-success-1000:  #0a250c;

  /* Scheme/Conditions/Danger */
  --conditions-danger-0:   #fef3f3;
  --conditions-danger-100:  #fee4e4;
  --conditions-danger-200:  #fcc5c5;
  --conditions-danger-300:  #fa9a9a;
  --conditions-danger-400:  #f86f6f;
  --conditions-danger-500:  #f53d3d;
  --conditions-danger-600:  #c53131;
  --conditions-danger-700:  #992525;
  --conditions-danger-800:  #721b1b;
  --conditions-danger-900:  #511313;
  --conditions-danger-1000:  #2e0a0a;

  /* Scheme/Conditions/Info */
  --conditions-info-0:   #f4f8fe;
  --conditions-info-100:  #e6eefd;
  --conditions-info-200:  #c9dafb;
  --conditions-info-300:  #a1bef8;
  --conditions-info-400:  #7aa3f5;
  --conditions-info-500:  #4b82f1;
  --conditions-info-600:  #3c68c1;
  --conditions-info-700:  #2e5096;
  --conditions-info-800:  #213b6f;
  --conditions-info-900:  #172a4f;
  --conditions-info-1000:  #0b172c;

  /* Scheme/Conditions/Critical */
  --conditions-critical-0:   #fff7f3;
  --conditions-critical-100:  #feede3;
  --conditions-critical-200:  #fed8c3;
  --conditions-critical-300:  #fcbb97;
  --conditions-critical-400:  #fb9e6b;
  --conditions-critical-500:  #fa7c37;
  --conditions-critical-600:  #c9632c;
  --conditions-critical-700:  #9c4d22;
  --conditions-critical-800:  #743918;
  --conditions-critical-900:  #522811;
  --conditions-critical-1000:  #2e1609;

  /* ─── Highlight — decorative / data-viz accents ──────────────
   * Verified against mds-export/color.metacomp-light.json (Scheme.Highlight).
   * Five sibling families, 7 stops each. Figma names group 05's stops "Sunset-*"
   * instead of a bare number; kept as -05 here for naming parity with 01-04.
   */

  /* Highlight 01 */
  --highlight-01-200: #b8ccf0;
  --highlight-01-300: #88abe7;
  --highlight-01-400: #5c8de0;
  --highlight-01-500: #3270d9;
  --highlight-01-600: #1f53ad;
  --highlight-01-700: #163e83;
  --highlight-01-800: #0e2958;

  /* Highlight 02 */
  --highlight-02-200: #bbe7ec;
  --highlight-02-300: #8ed9e1;
  --highlight-02-400: #65ccd7;
  --highlight-02-500: #33becc;
  --highlight-02-600: #2898a4;
  --highlight-02-700: #1d727c;
  --highlight-02-800: #134d53;

  /* Highlight 03 */
  --highlight-03-200: #b8f0dc;
  --highlight-03-300: #88e7c6;
  --highlight-03-400: #5ce0b2;
  --highlight-03-500: #32d99f;
  --highlight-03-600: #1fad7b;
  --highlight-03-700: #16835d;
  --highlight-03-800: #0e583e;

  /* Highlight 04 */
  --highlight-04-200: #eaf0b8;
  --highlight-04-300: #dee788;
  --highlight-04-400: #d3e05c;
  --highlight-04-500: #c8d932;
  --highlight-04-600: #9fad1f;
  --highlight-04-700: #788316;
  --highlight-04-800: #50580e;

  /* Highlight 05 (Figma: "Sunset") */
  --highlight-05-sunset-200: #f0cbb8;
  --highlight-05-sunset-300: #e7a988;
  --highlight-05-sunset-400: #e08a5c;
  --highlight-05-sunset-500: #d96d32;
  --highlight-05-sunset-600: #ad511f;
  --highlight-05-sunset-700: #833c16;
  --highlight-05-sunset-800: #58280e;

  /* ─────────────────────────────────────────────────────────────
     PRODUCT LITERALS — Product/Treasury Management and Product/FIP are the only MDS colours
     published as literal values (no Scheme alias), and they differ per mode, so each mode's value
     is its own primitive: the MDS path minus its collection (`Product`), plus the mode it belongs
     to. Layer 2's --product-treasury-management / --product-fip pick the mode.
     ───────────────────────────────────────────────────────────── */
  --treasury-management-light: #ffd2b9;  /* Product/Treasury Management, MetaComp Light */
  --treasury-management-dark:  #a66e4e;  /* Product/Treasury Management, MetaComp Dark */
  --fip-light:                 #f8ffbb;  /* Product/FIP, MetaComp Light */
  --fip-dark:                  #7a8234;  /* Product/FIP, MetaComp Dark */

}

/*
 * MetaComp Design System — Layer 2: Semantic Tokens
 * Source: MDS Figma `Scheme`/`State/*` collections (Background, Stroke, Form/Text, Iconography,
 *         Button, Condition, Form/Field) — verified against mds-export/color.metacomp-{light,dark}.json and
 *         metacomp-ds-guide/css/guide.css. "CDS Starter Kit" was the original scaffold used before
 *         Figma access existed; every category below now traces to MDS directly, not to CDS.
 *
 * RULE: Components ONLY reference tokens from this file.
 *       Tokens ONLY reference palette vars from layer1-palette/palette.css.
 *       Never hardcode hex values here; always reference --palette-var.
 *
 * Theme switching: toggle data-theme="dark" on <html>.
 *   document.documentElement.setAttribute('data-theme', 'dark')
 *
 * Full per-category reference (role tables, rename history, known gaps, quirks) — one file per
 * Semantic category, kept in sync with this file:
 *   layer2-tokens/semantic/{text,surface,border,icon,action,status}.md
 *   Form/Field is documented inside its owning Surface / Border / Icon category files.
 */


/* ─────────────────────────────────────────────────────────────
   LIGHT THEME (default)
───────────────────────────────────────────────────────────── */
:root {

  /* Surfaces & Backgrounds */
  --surface-background:           var(--neutral-50);
  --surface-app-background:       var(--neutral-50);       /* State/Background/App Background — same value as Background in light, diverges in dark */
  --surface-on-card:              var(--neutral-50);
  --surface-overlay:              var(--neutral-10);        /* modals, dropdowns */
  --surface-elevated:             var(--neutral-100);       /* input bg, tag bg */
  --surface-elevated-hover:       var(--neutral-10);
  --surface-item-hover:           var(--neutral-100);       /* list row hover */
  --surface-glass:                rgba(249,249,247,.85);    /* topbar backdrop-blur */
  --surface-disabled:             var(--neutral-200);
  --surface-white:                var(--neutral-0);    /* State/Background/White — MDS true white (Neutral/0), not the softened --neutral-10 */
  --surface-mask:                 color-mix(in srgb, var(--metacomp-primary-900) calc(var(--opacity-25) * 100%), transparent);  /* Background/Mask — modal scrim (Popup); not in MDS, set by the user 2026-10-09; same in both themes */

  /* Borders */
  /* Stroke/Minimal · Stroke/Subtle · Stroke/Strong — the MDS ladder.
     Renamed 2026-08-14: what call sites used to reach through --border-strong is
     the SUBTLE rung and now says so; --border-strong took Stroke/Strong. */
  --border-minimal:               var(--neutral-100);
  --border-subtle:                var(--neutral-200);       /* hover border, dashed placeholder */
  --border-strong:                var(--neutral-300);       /* Stroke/Strong */
  /* State/Disabled/Outline. NOT part of the Stroke ladder above — it comes from the Disabled
     collection, which publishes fill / On / Outline and lands one leaf in each of three
     categories: --surface-disabled, --text-disabled, and this. Same value as --text-disabled
     in both modes because MDS gives both leaves the same alias; two roles, two names. */
  --border-disabled:              var(--neutral-400);       /* State/Disabled/Outline */
  --border-field-outline:         var(--neutral-200);       /* State/Form/Field/Outline */
  --border-field-hover:           var(--neutral-400);       /* State/Form/Field/Hover */

  /* Text */
  --text:                         var(--neutral-990);
  --text-muted:                   var(--neutral-600);       /* secondary labels */
  --text-subtle:                  var(--neutral-400);       /* meta, icon, caption */
  --text-disabled:                var(--neutral-400);
  /* State/Form/Text/* — eight MDS roles. Page Title/Textlink share one value (Primary.800),
     as do Header/Remarks (Neutral.500); MDS names two roles per rung, not four distinct ones. */
  --text-page-title:              var(--metacomp-primary-800);  /* State/Form/Text/Page Title */
  --text-header:                  var(--neutral-500); /* State/Form/Text/Header */
  --text-description:             var(--neutral-800); /* State/Form/Text/Description */
  --text-preset:                  var(--neutral-300); /* State/Form/Text/Preset */
  --text-remarks:                 var(--neutral-500); /* State/Form/Text/Remarks */
  /* State/Form/Text/Success · /Error — these two rows used to paint from the Status family
     (`--success` / `--danger`), i.e. a Status name on a Text role. Own tokens now, same values.
     No dark override: MDS resolves both to the .500 stop in either mode.
     NOTE Text/Error is Conditions/DANGER (#f53d3d), not Conditions/Error — MDS uses the word
     "Error" in both collections for different colours, so --text-error ≠ --status-error. */
  --text-success:                 var(--conditions-success-500);
  --text-error:                   var(--conditions-danger-500);
  --text-link:                    var(--metacomp-primary-800);  /* State/Form/Text/Textlink — different value from --accent-text, do not alias */
  --on-primary:                   var(--neutral-10);         /* text on accent-bg */

  /* Icon (MDS Iconography — six roles, each a colour and a grayscale variant) */
  --icon-primary-1:               var(--metacomp-primary-600);  /* Iconography/Primary 1 */
  --icon-primary-2:               var(--metacomp-primary-500);  /* Iconography/Primary 2 */
  --icon-secondary-1:             var(--metacomp-secondary-400);    /* Iconography/Secondary 1 */
  --icon-secondary-2:             var(--metacomp-secondary-600);    /* Iconography/Secondary 2 */
  --icon-overlap:                 var(--metacomp-secondary-500);    /* Iconography/Overlap */
  --icon-on-icon:                 var(--neutral-10);   /* Iconography/On Icon */
  --icon-primary-1-grayscale:     var(--neutral-600); /* Iconography/Grayscale/Primary 1 */
  --icon-primary-2-grayscale:     var(--neutral-500); /* Iconography/Grayscale/Primary 2 */
  --icon-secondary-1-grayscale:   var(--neutral-300); /* Iconography/Grayscale/Secondary 1 */
  --icon-secondary-2-grayscale:   var(--neutral-400); /* Iconography/Grayscale/Secondary 2 */
  --icon-overlap-grayscale:       var(--neutral-400); /* Iconography/Grayscale/Overlap */
  --icon-on-icon-grayscale:       var(--neutral-10);   /* Iconography/Grayscale/On Icon */
  --icon-field:                   var(--neutral-500); /* State/Form/Field/Icon */
  --icon-functional:              var(--neutral-950); /* Functional Icon default — MDS --neutral-950 */

  /* State/Form/Field surfaces — the two field backgrounds are distinct MDS roles. */
  --surface-field-on-white-background: var(--neutral-10);    /* State/Form/Field/On White Background */
  --surface-field-background:          var(--neutral-0);/* State/Form/Field/Background */

  /* Table — MDS publishes `Table` as its own collection, so its parts get their own names here
     rather than borrowing from Surface or Icon. Borrowing is what went wrong before: the header
     band was painted with --surface-elevated, whose dark value (#212121) is nothing like the
     #595959 the collection actually resolves to, and the sort icon was overridden to --text-muted
     in dark when its leaf does not change with the theme at all.
     Two of the five leaves alias Stroke/Minimal, so these resolve THROUGH --border-minimal rather
     than restating its values — one definition, and dark follows automatically.
     All five leaves are carried since 2026-09-30 (pengshz): `Table/Content Hover` aliases
     {Scheme.Neutral.0} exactly as State/Background/White does, so it resolves through
     --surface-white (#ffffff / #000000); `Table/Frozen Outline` aliases {Stroke.Strong}, so it
     resolves through --border-strong. See layer2-tokens/semantic/table.md. */
  --table-header-background:      var(--border-minimal); /* Table/Header Background -> Stroke/Minimal */
  --table-content-hover:          var(--surface-white);  /* Table/Content Hover     -> Scheme/Neutral/0 */
  --table-outline:                var(--border-minimal); /* Table/Outline           -> Stroke/Minimal */
  --table-frozen-outline:         var(--border-strong);  /* Table/Frozen Outline    -> Stroke/Strong */
  --table-icon:                   var(--neutral-500);    /* Table/Icon -> Scheme/Neutral/500, both themes */

  /* Accent (MetaComp Primary) */
  --accent:                       var(--metacomp-primary-800);        /* primary button bg, selected */
  --accent-hover:                 var(--metacomp-primary-600);
  --accent-secondary:             var(--metacomp-primary-300);
  --accent-subtle:                var(--metacomp-primary-50);         /* selected row bg, tag */
  --accent-text:                  var(--metacomp-primary-700);        /* links, active nav text */

  /* Action — Button (MDS State/Button) */
  --button-primary-default:       var(--metacomp-primary-800);  /* State/Button/Primary/Default */
  --button-primary-on-default:    var(--metacomp-primary-100);  /* State/Button/Primary/On Default */
  --button-primary-muted:         var(--metacomp-primary-700);  /* State/Button/Primary/Muted */
  --button-primary-on-muted:      var(--metacomp-primary-400);  /* State/Button/Primary/On Muted */
  --button-primary-hover:         var(--metacomp-primary-600);  /* State/Button/Primary/Hover */
  --button-ghosted-default:       var(--metacomp-primary-50);   /* State/Button/Ghosted/Default */
  --button-ghosted-on-default:    var(--metacomp-primary-800);  /* State/Button/Ghosted/On Default */
  --button-ghosted-muted:         var(--metacomp-primary-200);  /* State/Button/Ghosted/Muted */
  --button-ghosted-on-muted:      var(--metacomp-primary-500);  /* State/Button/Ghosted/On Muted */
  --button-ghosted-outline:       var(--metacomp-primary-200);  /* State/Button/Ghosted/Outline */
  --button-ghosted-hover:         var(--metacomp-primary-300);  /* State/Button/Ghosted/Hover */
  --button-secondary-default:     var(--metacomp-primary-800);  /* State/Button/Secondary/Default */
  --button-secondary-on-muted:    var(--metacomp-primary-400);  /* State/Button/Secondary/On Muted */
  --button-secondary-hover:       var(--metacomp-primary-600);  /* State/Button/Secondary/Hover */
  --button-subtle-default:        var(--metacomp-primary-800);  /* State/Button/Subtle/Default */
  --button-subtle-on-muted:       var(--metacomp-primary-400);  /* State/Button/Subtle/On Muted */
  --button-subtle-hover:          var(--metacomp-primary-600);  /* State/Button/Subtle/Hover */
  --button-subtle-stroke:         var(--neutral-200); /* State/Button/Subtle/Stroke */
  --button-tertiary-default:      var(--metacomp-primary-800);  /* State/Button/Tertiary/Default */
  --button-tertiary-on-muted:     var(--metacomp-primary-400);  /* State/Button/Tertiary/On Muted */
  --button-tertiary-hover:        var(--neutral-100);  /* State/Button/Tertiary/Hover — hover background */
  --button-navigation-active:     var(--metacomp-primary-50);   /* State/Button/Navigation/Active */
  --button-navigation-on-active:  var(--metacomp-primary-700);  /* State/Button/Navigation/On Active */
  --button-navigation-default:    var(--neutral-50);  /* State/Button/Navigation/Default */
  --button-navigation-on-default: var(--neutral-400); /* State/Button/Navigation/On Default */
  --button-navigation-hover:      var(--metacomp-primary-100);  /* State/Button/Navigation/Hover */
  --button-white:                 var(--neutral-0);  /* State/Button/White = Neutral.0 */
  --button-white-16-transparent:                 rgb(255 255 255 / var(--opacity-16)); /* State/Button/White 16 Transparent — Layer 3 (button.md), kept here for API completeness */

  /* Status — Success. Outline/On both alias Base: MDS resolves State/Condition/Success Outline
     and On Success to the identical Scheme/Conditions/Success/500 alias as Base, in both themes
     (mds-export/color.metacomp-{light,dark}.json, verified 2026-08-22). They used to carry the
     pre-2026-08-17-rename --success-border/-text house tint scale under the new names — a rename
     regression, not a design decision (see layer2-tokens/semantic/status.md). */
  --status-success:               var(--conditions-success-500);
  --status-success-fill:          var(--conditions-success-100);
  --status-success-outline:       var(--status-success);
  --status-success-on:            var(--status-success);

  /* Status — Danger. Outline/On both alias Base — see Success comment above, same pattern. */
  --status-danger:                var(--conditions-danger-500);
  --status-danger-fill:           var(--conditions-danger-100);
  --status-danger-outline:        var(--status-danger);
  --status-danger-on:             var(--status-danger);

  /* Status — Error (MDS State/Condition/Error; the `warning` variant word paints from it) */
  --status-error:                 var(--conditions-error-600);
  --status-error-fill:            var(--conditions-error-100);

  /* Status — Info. Outline/On both alias Base — see Success comment above, same pattern. */
  --status-info:                  var(--conditions-info-500);
  --status-info-fill:             var(--conditions-info-100);
  --status-info-outline:          var(--status-info);
  --status-info-on:               var(--status-info);

  /* Status — Critical (orange, stronger than Error). Outline/On both alias Base — see Success
     comment above, same pattern. */
  --status-critical:              var(--conditions-critical-500);
  --status-critical-fill:         var(--conditions-critical-100);
  --status-critical-outline:      var(--status-critical);
  --status-critical-on:           var(--status-critical);

  /* Status — Default (MDS State/Condition/Default) */
  --status-default:               var(--neutral-400);
  --status-default-fill:          var(--neutral-50);
  --status-default-on:            var(--neutral-400);  /* State/Condition/On Default — equals Base in light only */

  /* Status — Quarantined (MDS State/Condition/Quarantined). Added 2026-08-26 for Indicator.
     MIRRORS: Neutral.700 #454545 light -> Neutral.300 #b8b8b8 dark. Indicator painted
     var(--neutral-700) direct, and a Layer 1 primitive does NOT remap, so the dark dot was
     #454545 on a dark surface — near-invisible. */
  --status-quarantined:           var(--neutral-700);

  /* Status — Disabled (MDS State/Disabled/On Disabled). Added 2026-08-26 for Indicator.
     Same value as --text-disabled in both modes: MDS lands the Disabled collection's three
     leaves in three categories and this is the Status-family alias for the `On` one, so a
     status mark spells it --status-disabled and a text run spells it --text-disabled. */
  --status-disabled:              var(--neutral-400);

  /* Overlay */
  --surface-backdrop:             rgba(0,0,0,.45);

  /* Shadows */
  --shadow-sm:                    0 1px 3px rgba(0,0,0,.06);
  --shadow:                       0 2px 8px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-lg:                    0 8px 24px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --shadow-overlay:               0 16px 48px rgba(0,0,0,.14), 0 4px 12px rgba(0,0,0,.08);
  --shadow-brand:                 0 4px 20px rgba(33,16,80,.25);   /* purple glow */
  /* MDS effect styles (styles.json → effectStyles) — colour binding is value-inferred,
     not a real Figma variable binding. See layer2-tokens/semantic/shadow.md. */
  --avatar-inner-shadow:          inset 0 0 4px 0 var(--neutral-300);  /* Avatar/Inner Shadow */
  --elevation-raised:             0 0 16px 0 var(--neutral-100);       /* Elevation/Raised */
  --elevation-hover:              0 4px 25px 0 var(--neutral-100);     /* Elevation/Hover */

  /* MDS colour style `Gradient/Light` (styles.json → colors, one of 14 Gradient/* styles).
     "Light" is the STYLE's name — a soft gradient — not a mode; this token remaps per theme like
     everything else in this layer. A style carries no value of its own in the export, so the two
     ends are the variables the artwork binds: Scheme/Primary/10 → Scheme/Secondary/10, vertical.
     Named here rather than left to each consumer because two already share it — Avatar's plate
     and the entity tag's icon frame — and because a Layer 3 rule may not reach a ramp stop. */
  --gradient-light:               linear-gradient(180deg, var(--metacomp-primary-10) 0%, var(--metacomp-secondary-10) 100%);

  /* MDS colour style `Gradient/Gradient_Bar` (styles.json → colors). Unlike `Gradient/Light`
     above, this one does NOT remap: its two ends bind `Product/Asset/Gradient Bar 1` and `2`,
     which the colour export publishes as #381e72 and #6750a4 in BOTH modes — the same pair as
     `Product/Asset/MetaComp/MetaComp Pri 1/2`. It is fixed brand artwork, not a themable UI
     surface, so the dark block below repeats these values rather than mirroring them. Read from
     Figma node 69090:70 on 2026-09-21.
     Four components reconstruct this gradient — Preloader's arc, Carousel's dots, Loading &
     Progress's fill, Document Upload's donut — and all four previously rebuilt it from `--accent`
     and `--accent-hover`, which DO remap. In dark that painted #b69df8 → #9a82db instead of the
     brand purple. Naming the two stops here is what stops the next consumer repeating it. */
  --gradient-bar-1:               var(--metacomp-primary-800);   /* Product/Asset/Gradient Bar 1 — #381e72 */
  --gradient-bar-2:               var(--metacomp-primary-600);   /* Product/Asset/Gradient Bar 2 — #6750a4 */

  /* Product — MDS `Product` collection, MetaComp entity (layer2-tokens/semantic/product.md).
     Gradient Bar 1/2 are the two tokens above, kept under their historic names. */
  --product-treasury-management:  var(--treasury-management-light); /* Product/Treasury Management */
  --product-fip:                  var(--fip-light);                 /* Product/FIP */
  --product-crypto:               var(--metacomp-secondary-200);    /* Product/Crypto -> Scheme/Secondary/200 */
  --product-fiat:                 var(--metacomp-primary-100);      /* Product/Fiat -> Scheme/Primary/100 */
  --product-asset-metacomp-primary-1:    var(--metacomp-primary-800);   /* Product/Asset/MetaComp/MetaComp Pri 1 */
  --product-asset-metacomp-primary-2:    var(--metacomp-primary-600);   /* Product/Asset/MetaComp/MetaComp Pri 2 */
  --product-asset-metacomp-logo-color-1: var(--metacomp-secondary-500); /* Product/Asset/MetaComp/Logo Color 1 */
  --product-asset-metacomp-logo-color-2: var(--metacomp-primary-900);   /* Product/Asset/MetaComp/Logo Color 2 */
  --product-asset-metacomp-on-gradient:  var(--metacomp-primary-10);    /* Product/Asset/MetaComp/On Gradient */
  --product-asset-metacomp-remark:       var(--metacomp-primary-200);   /* Product/Asset/MetaComp/Remark */

  /* Logo */
  --logo-fill:                    var(--metacomp-primary-900);

}

/* ─────────────────────────────────────────────────────────────
   DARK THEME
───────────────────────────────────────────────────────────── */
[data-theme="dark"] {

  /* Surfaces */
  --surface-background:           var(--neutral-950);
  --surface-app-background:       var(--metacomp-primary-990);      /* State/Background/App Background — diverges from Background here, resolves through Scheme/Primary not Scheme/Neutral */
  --surface-on-card:              var(--neutral-950);
  --surface-overlay:              var(--neutral-990);
  --surface-elevated:             var(--neutral-900);
  --surface-elevated-hover:       var(--neutral-990);
  --surface-item-hover:           var(--neutral-900);
  --surface-glass:                rgba(24,24,24,.85);
  --surface-disabled:             var(--neutral-800);
  --surface-white:                var(--neutral-1000);    /* State/Background/White — MDS true black in dark (Neutral/1000), not the softened --neutral-990 */
  --surface-mask:                 color-mix(in srgb, var(--metacomp-primary-900) calc(var(--opacity-25) * 100%), transparent);  /* same as light — primitives do not remap */

  /* Borders */
  --border-minimal:               var(--neutral-600);
  --border-subtle:                var(--neutral-500);
  --border-strong:                var(--neutral-400);
  --border-disabled:              var(--neutral-600);       /* State/Disabled/Outline */
  --border-field-outline:         var(--neutral-600);       /* State/Form/Field/Outline */
  --border-field-hover:           var(--neutral-400);       /* State/Form/Field/Hover — #969696 in both themes */

  /* Text */
  --text:                         var(--neutral-10);
  --text-muted:                   var(--neutral-400);
  --text-subtle:                  var(--neutral-600);
  --text-disabled:                var(--neutral-600);
  --text-page-title:              var(--metacomp-primary-200);
  /* --text-header and --text-remarks have no dark override on purpose: MDS resolves both
     to Neutral.500 in BOTH modes, so the light definition is the value. */
  --text-description:             var(--neutral-200);
  --text-preset:                  var(--neutral-700);
  --text-link:                    var(--metacomp-primary-200);
  --on-primary:                   var(--neutral-10);

  /* Icon — eight of the twelve leaves land on a different primitive stop in dark, not a
     mirrored one (all six grayscale leaves, plus Primary 1 and Secondary 2 in colour). */
  --icon-primary-1:               var(--metacomp-primary-300);
  --icon-primary-2:               var(--metacomp-primary-500);  /* no dark override on purpose — same stop both modes */
  --icon-secondary-1:             var(--metacomp-secondary-600);
  --icon-secondary-2:             var(--metacomp-secondary-300);
  --icon-overlap:                 var(--metacomp-secondary-500);    /* no dark override on purpose — same stop both modes */
  --icon-on-icon:                 var(--neutral-990);
  --icon-primary-1-grayscale:     var(--neutral-500);
  --icon-primary-2-grayscale:     var(--neutral-700);
  --icon-secondary-1-grayscale:   var(--neutral-600);
  --icon-secondary-2-grayscale:   var(--neutral-800);
  --icon-overlap-grayscale:       var(--neutral-700);
  --icon-on-icon-grayscale:       var(--neutral-200);
  --icon-field:                   var(--neutral-500); /* State/Form/Field/Icon — #757575 in both themes */
  --icon-functional:              var(--neutral-50);  /* Functional Icon default — MDS --neutral-950 dark value */

  --surface-field-on-white-background: var(--neutral-900);   /* State/Form/Field/On White Background */
  --surface-field-background:          var(--neutral-1000); /* State/Form/Field/Background */

  /* Accent — flip: dark mode uses lighter purple */
  --accent:                       var(--metacomp-primary-300);
  --accent-hover:                 var(--metacomp-primary-400);
  --accent-secondary:             var(--metacomp-primary-700);
  --accent-subtle:                var(--metacomp-primary-900);
  --accent-text:                  var(--metacomp-primary-300);

  /* Action — Button (MDS State/Button) */
  --button-primary-default:       var(--metacomp-primary-200);  /* State/Button/Primary/Default */
  --button-primary-on-default:    var(--metacomp-primary-800);  /* State/Button/Primary/On Default */
  --button-primary-muted:         var(--metacomp-primary-300);  /* State/Button/Primary/Muted */
  --button-primary-on-muted:      var(--metacomp-primary-600);  /* State/Button/Primary/On Muted */
  --button-primary-hover:         var(--metacomp-primary-400);  /* State/Button/Primary/Hover */
  --button-ghosted-default:       var(--metacomp-primary-950);  /* State/Button/Ghosted/Default */
  --button-ghosted-on-default:    var(--metacomp-primary-200);  /* State/Button/Ghosted/On Default */
  --button-ghosted-muted:         var(--metacomp-primary-800);  /* State/Button/Ghosted/Muted */
  /* --button-ghosted-on-muted has no dark override on purpose: MDS resolves it to
     Scheme.Primary.500 (#7f67be) in BOTH modes, so the light definition is the value. */
  --button-ghosted-outline:       var(--metacomp-primary-800);  /* State/Button/Ghosted/Outline */
  --button-ghosted-hover:         var(--metacomp-primary-700);  /* State/Button/Ghosted/Hover */
  --button-secondary-default:     var(--metacomp-primary-200);  /* State/Button/Secondary/Default */
  --button-secondary-on-muted:    var(--metacomp-primary-600);  /* State/Button/Secondary/On Muted */
  --button-secondary-hover:       var(--metacomp-primary-400);  /* State/Button/Secondary/Hover */
  --button-subtle-default:        var(--metacomp-primary-200);  /* State/Button/Subtle/Default */
  --button-subtle-on-muted:       var(--metacomp-primary-600);  /* State/Button/Subtle/On Muted */
  --button-subtle-hover:          var(--metacomp-primary-400);  /* State/Button/Subtle/Hover */
  --button-subtle-stroke:         var(--neutral-500); /* State/Button/Subtle/Stroke */
  --button-tertiary-default:      var(--metacomp-primary-200);  /* State/Button/Tertiary/Default */
  --button-tertiary-on-muted:     var(--metacomp-primary-600);  /* State/Button/Tertiary/On Muted */
  --button-tertiary-hover:        var(--neutral-900);  /* State/Button/Tertiary/Hover — hover background */
  --button-navigation-active:     var(--neutral-800); /* State/Button/Navigation/Active */
  --button-navigation-on-active:  var(--metacomp-primary-200);  /* State/Button/Navigation/On Active */
  --button-navigation-default:    var(--neutral-900); /* State/Button/Navigation/Default */
  --button-navigation-hover:      var(--neutral-600); /* State/Button/Navigation/Hover */
  /* No dark override for --button-navigation-on-default on purpose: MDS publishes
     Navigation/On Default as #969696 in BOTH modes, so the light value is correct here.
     Do not "fix" this by adding a darker stop. */
  --button-white:                 var(--neutral-1000);  /* State/Button/White = Neutral.1000 */
  --button-white-16-transparent:                 rgb(0 0 0 / var(--opacity-16));       /* State/Button/White 16 Transparent — tint flips from white to black */

  /* Status — Success. Outline/On both alias Base in dark too — see the light :root comment. */
  --status-success:               var(--conditions-success-500);
  --status-success-fill:          var(--conditions-success-900);
  --status-success-outline:       var(--status-success);
  --status-success-on:            var(--status-success);

  /* Status — Danger. Outline/On both alias Base in dark too. */
  --status-danger:                var(--conditions-danger-500);
  --status-danger-fill:           var(--conditions-danger-900);
  --status-danger-outline:        var(--status-danger);
  --status-danger-on:             var(--status-danger);

  /* Status — Error (MDS State/Condition/Error; the `warning` variant word paints from it) */
  --status-error:                 var(--conditions-error-600);
  --status-error-fill:            var(--conditions-error-900);

  /* Status — Info. Outline/On both alias Base in dark too. */
  --status-info:                  var(--conditions-info-500);
  --status-info-fill:             var(--conditions-info-900);
  --status-info-outline:          var(--status-info);
  --status-info-on:               var(--status-info);

  /* Status — Critical. Outline/On both alias Base in dark too. */
  --status-critical:              var(--conditions-critical-500);
  --status-critical-fill:         var(--conditions-critical-900);
  --status-critical-outline:      var(--status-critical);
  --status-critical-on:           var(--status-critical);

  /* Status — Default (MDS State/Condition/Default) */
  --status-default:               var(--neutral-600);
  --status-default-fill:          var(--neutral-950);
  --status-default-on:            var(--neutral-700);  /* State/Condition/On Default — #454545, splits from Outline (#595959) in dark */
  --status-quarantined:           var(--neutral-300);  /* #b8b8b8 — the mirror of #454545 */
  --status-disabled:              var(--neutral-600);  /* #595959 */

  /* Shadows deepen on dark */
  --shadow-sm:                    0 1px 3px rgba(0,0,0,.30);
  --shadow:                       0 2px 8px rgba(0,0,0,.40), 0 1px 2px rgba(0,0,0,.25);
  --shadow-lg:                    0 8px 24px rgba(0,0,0,.50), 0 2px 6px rgba(0,0,0,.30);
  --shadow-overlay:               0 16px 48px rgba(0,0,0,.60), 0 4px 12px rgba(0,0,0,.40);
  --shadow-brand:                 0 4px 20px rgba(182,157,248,.20);
  /* Dark-mode stops are looked up by value, not by mirroring the light ramp index —
     Scheme/Neutral/300 → 700 and Scheme/Neutral/100 → 900 in dark. */
  --avatar-inner-shadow:          inset 0 0 4px 0 var(--neutral-700);
  --elevation-raised:             0 0 16px 0 var(--neutral-900);
  --elevation-hover:              0 4px 25px 0 var(--neutral-900);

  /* Both stops mirror: Scheme/Primary/10 #fffbfe → #0f052d, Scheme/Secondary/10 #f2ffff → #031e1d. */
  --gradient-light:               linear-gradient(180deg, var(--metacomp-primary-990) 0%, var(--metacomp-secondary-990) 100%);

  /* Gradient/Gradient_Bar is fixed brand artwork — identical to the light values on purpose.
     Declared here so the pair reads the same way every other token in this file does, and so a
     future edit to the light stops cannot silently leave dark behind. */
  --gradient-bar-1:               var(--metacomp-primary-800);   /* #381e72 in both modes */
  --gradient-bar-2:               var(--metacomp-primary-600);   /* #6750a4 in both modes */

  /* Product, dark — values read from mds-export/color.metacomp-dark.json and matched by value. */
  --product-treasury-management:  var(--treasury-management-dark);
  --product-fip:                  var(--fip-dark);
  --product-crypto:               var(--metacomp-secondary-800);    /* #184f4d */
  --product-fiat:                 var(--metacomp-primary-800);      /* #381e72 */
  --product-asset-metacomp-primary-1:    var(--metacomp-primary-800);
  --product-asset-metacomp-primary-2:    var(--metacomp-primary-600);
  --product-asset-metacomp-logo-color-1: var(--neutral-0);
  --product-asset-metacomp-logo-color-2: var(--neutral-0);
  --product-asset-metacomp-on-gradient:  var(--metacomp-primary-10);
  --product-asset-metacomp-remark:       var(--metacomp-primary-200);

  --logo-fill:                    var(--neutral-10);

}

/* ─────────────────────────────────────────────────────────────
   LAYOUT TOKENS (theme-independent)
───────────────────────────────────────────────────────────── */
:root {
  --header-h:                     60px;
  --sidebar-w:                    220px;
  --sidebar-px:                   16px;

  /* Grid — MDS publishes this as a Figma *style* (mds-export/styles.json → gridStyles),
     not a variable, so there is no Figma name to mirror; --grid-* is this skill's own
     naming. Values resolved from the export's five desktop styles (see
     layer2-tokens/primitive/grid.md) — gutter never varies across any published style.
     --grid-content-max is unset (auto) below 1921px on purpose: the app fills the
     viewport rather than capping at a fixed width until MDS's own cap applies. */
  --grid-columns:                 4; /* @kind other */
  --grid-gutter:                  16px;
  --grid-margin:                  16px;
  --grid-content-max:             none;
}

@media (min-width: 744px) {
  :root { --grid-columns: 12; /* @kind other */ }
}

@media (min-width: 1440px) {
  :root { --grid-margin: 32px; }
}

@media (min-width: 1921px) {
  :root {
    --grid-margin: 272px;
    --grid-content-max: 1136px;
  }
}

/* ─────────────────────────────────────────────────────────────
   SHAPE TOKENS
   Source: MDS Figma `Shape` collection (mds-export/shapeDirect.json, single mode `Direct`) —
   one collection, no light/dark axis. Radius/App/Default and Radius/App/Button are
   MDS aliases onto Radius/L and Radius/Full — they introduce no value of their own and
   get no custom property of their own; see layer2-tokens/primitive/radius.md.
───────────────────────────────────────────────────────────── */
:root {
  --radius-none:                  0;      /* corner rounding, none */
  /* NOT buttons. MDS binds `Radius/App/Button → {Radius.Full}` and publishes no rectangular
     Button — see layer3-components/component-new/specs/button.md. The old "buttons (rectangle)"
     note here outlived the `Shape = Pill | Rectangle` axis it came from (removed 2026-08-25).
     Actual consumers: inputs, form controls, dropdown triggers, fullwidth search, pagination, tooltip, filter chips, the Selectable tag, and Avatar Square S/XS. */
  --radius-s:                    4px;    /* Radius/S */
  --radius-m:                    8px;    /* cards, panels, dropdowns */
  --radius-l:                    16px;   /* modals, large panels */
  --radius-full:                  1000px; /* pills, avatars */

  /* Spacing — gaps, padding, margins (distance BETWEEN objects; see layer2-tokens/primitive/spacing.md) */
  --spacing-0:                    0px;
  --spacing-4:                    4px;
  --spacing-8:                    8px;
  --spacing-16:                   16px;
  --spacing-24:                   24px;
  --spacing-32:                   32px;
  --spacing-40:                   40px;
  --spacing-48:                   48px; /* Spacing/48px — added in Figma 2026-10-02 */

  /* Size — an object's OWN dimension: icon boxes, avatars, control heights (see layer2-tokens/primitive/size.md) */
  --size-8:                       8px;
  --size-12:                      12px;
  --size-16:                      16px;
  --size-20:                      20px;
  --size-24:                      24px;
  --size-32:                      32px;
  --size-40:                      40px;
  --size-48:                      48px;
  --size-56:                      56px;
  --size-64:                      64px;
  --size-72:                      72px;

  /* Stroke Width — line width, not colour. Distinct from the --border-* colour ladder above
     (see layer2-tokens/primitive/stroke-width.md). */
  --stroke-xs:                    1px;
  --stroke-s:                     2px;
  --stroke-m:                     3px;
  --stroke-l:                     4px;
  --stroke-xl:                    8px;

  /* Opacity — MDS Scheme/Opacity, byte-identical in both themes, no dark override needed.
     --opacity-0 is a house stop MDS does not publish; kept for API compatibility only
     (see layer2-tokens/primitive/opacity.md). */
  --opacity-0:                    0; /* @kind other */
  --opacity-10:                   .1; /* @kind other */
  --opacity-16:                   .16; /* @kind other */
  --opacity-25:                   .25; /* @kind other */
  --opacity-50:                   .5; /* @kind other */
  --opacity-75:                   .75; /* @kind other */
  --opacity-90:                   .9; /* @kind other */
  --opacity-100:                  1; /* @kind other */
}

/* ─────────────────────────────────────────────────────────────
   TYPOGRAPHY — the four Static roles, then the scale
   MDS `mds-export/typescale.json` publishes exactly four Static entries plus a Size and a
   Line Height per style. Those four are roles, so they are named here, in Layer 2 — Layer 1
   only holds the raw stack (--font-poppins).
───────────────────────────────────────────────────────────── */
:root {
  --font-brand:           var(--font-poppins);  /* Static/Font/Brand — the only font name a
                                                   component may reference */
  --font-weight-regular:  400;                  /* Static/Weight/Regular */
  --font-weight-bold:     600;                  /* Static/Weight/Bold — the family ships
                                                   Semibold AS its Bold; there is no 700 face */
  --font-letter-spacing:  0.2px;                /* Static/Font/Letter Spacing — one global
                                                   value, not a per-style one */
}

/* ── Type Scale ──────────────────────────────────────────────
   Usage: <p class="type-body-m font-semibold text-(--accent-text)">
   Rule:  NEVER use Tailwind's text-sm / text-xs / text-base.
          Always use .type-* for size, then font-* for weight.

   Each class carries THREE things: the family, the global tracking, and its own size/line-height.

   · Family — added 2026-08-25. Before that the classes set size only, so a `.type-h4` on a page
     that had not set the font somewhere up the tree rendered at the right size in the browser's
     default face. Size right, letterforms wrong, and nothing in the markup said why.
   · Tracking — `Static/Font/Letter Spacing` is ONE global value in the export (0.2px); no style
     carries its own. It used to be applied to `.type-caption` alone, so a `.btn` (which sets it
     directly) tracked at 0.2px while a `.type-body-m` paragraph tracked at 0. Now every class
     carries it, which is what "applied globally" always meant.
     ⚠️ Consequence: `.type-caption` is now byte-identical to `.type-body-s` — caption WAS
     "Body/S plus the global tracking", and the tracking is no longer its to add. It is kept as an
     alias so existing call sites keep working; whether to retire it is the design owner's call.
   · Weight — deliberately NOT set. `.type-*` names a size role, weight is a separate axis:
     `font-semibold` / `font-bold` (both land on 600 — see --font-weight-bold above).

   MetaComp has no monospace typeface — use weight 600 for numeric emphasis, plus .tabular-nums
   (which is currently a no-op; see the note on that class below).
───────────────────────────────────────────────────────────── */
.type-h1,
.type-h2,
.type-h3,
.type-h4, .type-h5, .type-h6, .type-h7, .type-h8,
.type-body-l, .type-body-m, .type-body-s, .type-caption, .type-body-xs {
  font-family: var(--font-brand);
  letter-spacing: var(--font-letter-spacing);
}

.type-h1  { font-size: 64px; line-height: 80px; }
/* Header/H2 and Header/H3 read 72 and 56 in mds-export/typescale.json (Line Height, mode
   "MetaComp"); this file carried 74 and 58. The export wins. */
.type-h2  { font-size: 56px; line-height: 72px; }
.type-h3  { font-size: 40px; line-height: 56px; }
.type-h4         { font-size: 34px; line-height: 48px; }
.type-h5         { font-size: 28px; line-height: 40px; }
.type-h6         { font-size: 24px; line-height: 32px; }
.type-h7         { font-size: 22px; line-height: 32px; }
.type-h8         { font-size: 18px; line-height: 28px; }
.type-body-l    { font-size: 16px; line-height: 24px; }
.type-body-m       { font-size: 14px; line-height: 20px; }
.type-body-s    { font-size: 12px; line-height: 16px; }
.type-caption    { font-size: 12px; line-height: 16px; }   /* === .type-body-s — see above */
.type-body-xs         { font-size: 9px;  line-height: 12px; }   /* Body/XS */

/* Tabular numbers — amounts, IDs, table cells.
   ⚠️ CURRENTLY A NO-OP. The vendored Poppins faces (Regular 400, SemiBold 600) carry no `tnum`
   feature, so this declaration changes nothing. Measured 2026-08-25, headless Chrome, 40px/600:
   per-digit advance ranges 14.48px ("1") to 26.44px ("4") — an 11.96px spread — with the class
   applied. Numeric columns WILL jitter; do not promise alignment in a review on the strength of
   this class.
   The rule is kept so the day a Poppins build with tnum (or a companion numeric face) is adopted,
   every call site starts working with no code change. Choosing that face is the design owner's
   call — see layer2-tokens/primitive/type-scale.md for the options and do not switch unilaterally. */
.tabular-nums { font-variant-numeric: tabular-nums lining-nums; }

/* Hide scrollbar but keep scrolling */
.scrollbar-hide {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.scrollbar-hide::-webkit-scrollbar { display: none; }
