/* Shared tokens and element base. Components own all control appearance. */

/* Font: Instrument Sans, normal, weight 400 700, extended Latin. */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/instrument-sans-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Font: Instrument Sans, normal, weight 400 700, Latin. */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/instrument-sans-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Font: Instrument Sans, italic, weight 400 700, extended Latin. */
@font-face {
  font-family: "Instrument Sans";
  font-style: italic;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/instrument-sans-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Font: Instrument Sans, italic, weight 400 700, Latin. */
@font-face {
  font-family: "Instrument Sans";
  font-style: italic;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/instrument-sans-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Font: DM Mono, normal, weight 300, extended Latin. */
@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/dm-mono-300-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Font: DM Mono, normal, weight 300, Latin. */
@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/dm-mono-300-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Font: DM Mono, normal, weight 400, extended Latin. */
@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/dm-mono-400-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Font: DM Mono, normal, weight 400, Latin. */
@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/dm-mono-400-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Font: DM Mono, normal, weight 500, extended Latin. */
@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/dm-mono-500-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Font: DM Mono, normal, weight 500, Latin. */
@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/dm-mono-500-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Font: DM Mono, italic, weight 300, extended Latin. */
@font-face {
  font-family: "DM Mono";
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/dm-mono-300-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Font: DM Mono, italic, weight 300, Latin. */
@font-face {
  font-family: "DM Mono";
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/dm-mono-300-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Font: DM Mono, italic, weight 400, extended Latin. */
@font-face {
  font-family: "DM Mono";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/dm-mono-400-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Font: DM Mono, italic, weight 400, Latin. */
@font-face {
  font-family: "DM Mono";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/dm-mono-400-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Font: DM Mono, italic, weight 500, extended Latin. */
@font-face {
  font-family: "DM Mono";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/dm-mono-500-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Font: DM Mono, italic, weight 500, Latin. */
@font-face {
  font-family: "DM Mono";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/dm-mono-500-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Tokens: the single default palette and sizing authority. */
:root {
  /* Result measure: standalone receipts retain their narrow reading column. */
  --measure-result: 520px;
 /* Staging paper: preserve the archived fixture palette. */
 --color-staging-paper: #f7f1e5;
  --color-staging-text: #18202a;
  --color-staging-heading: #17324d;
  --color-staging-focus: #9a4f2c;

  color-scheme: dark;

  /* Palette: exact shared colors for light and dark surfaces and their states. */
  /* Color: text dim keeps the current measured value. */
  --color-text-dim: #aaa;
  /* Color: success halo keeps the current measured value. */
  --color-success-halo: rgba(140, 230, 122, 0.11);
  /* Color: surface hover keeps the current measured value. */
  --color-surface-hover: #141414;
  /* Color: success border keeps the current measured value. */
  --color-success-border: rgba(140, 230, 122, 0.4);
  /* Color: success wash keeps the current measured value. */
  --color-success-wash: rgba(140, 230, 122, 0.08);
  /* Color: revocation border keeps the current measured value. */
  --color-revocation-border: rgba(255, 133, 133, 0.42);
  /* Color: replacement border keeps the current measured value. */
  --color-replacement-border: rgba(255, 209, 102, 0.38);
  /* Color: completion wash keeps the current measured value. */
  --color-completion-wash: rgba(140, 230, 122, 0.1);
  /* Color: choice border hover keeps the current measured value. */
  --color-choice-border-hover: #686868;
  /* Color: detail wash keeps the current measured value. */
  --color-detail-wash: rgba(255, 255, 255, 0.015);
  /* Color: education border keeps the current measured value. */
  --color-education-border: rgba(142, 202, 255, 0.3);
  /* Color: approval border keeps the current measured value. */
  --color-approval-border: #46552f;
  /* Color: approval wash keeps the current measured value. */
  --color-approval-wash: rgba(191, 255, 94, 0.035);
  /* Color: action bar surface keeps the current measured value. */
  --color-action-bar-surface: rgba(18, 18, 18, 0.95);
  /* Color: freshness border keeps the current measured value. */
  --color-freshness-border: rgba(140, 230, 122, 0.38);
  /* Color: stale border keeps the current measured value. */
  --color-stale-border: rgba(255, 209, 102, 0.4);
  /* Color: paper border keeps the current measured value. */
  --color-paper-border: #3c3c3c;
  /* Color: paper warm keeps the current measured value. */
  --color-paper-warm: #f4f1e8;
  /* Color: paper ink keeps the current measured value. */
  --color-paper-ink: #171717;
  /* Color: white keeps the current measured value. */
  --color-white: #fff;
  /* Color: registration wash keeps the current measured value. */
  --color-registration-wash: rgba(255, 255, 255, 0.12);
  /* Color: issue wash keeps the current measured value. */
  --color-issue-wash: rgba(191, 255, 94, 0.055);
  /* Color: batch border keeps the current measured value. */
  --color-batch-border: rgba(140, 230, 122, 0.33);
  /* Color: batch wash keeps the current measured value. */
  --color-batch-wash: rgba(140, 230, 122, 0.06);
  /* Color: validation danger keeps the current measured value. */
  --color-validation-danger: #dc3545;
  /* Color: notification surface keeps the current measured value. */
  --color-notification-surface: #1c1c1c;
  /* Color: brand result wash keeps the current measured value. */
  --color-brand-result-wash: rgba(var(--accent-rgb),0.08);
  /* Color: brand translucent border keeps the current measured value. */
  --color-brand-translucent-border: rgba(var(--accent-rgb), .3);
  /* Color: modal scrim keeps the current measured value. */
  --color-modal-scrim: rgb(0 0 0 / .75);
  /* Color: canvas dark keeps the current measured value. */
  --color-canvas-dark: #0a0a0a;
  /* Color: surface dark keeps the current measured value. */
  --color-surface-dark: #111111;
  /* Color: surface raised dark keeps the current measured value. */
  --color-surface-raised-dark: #181818;
  /* Color: surface overlay dark keeps the current measured value. */
  --color-surface-overlay-dark: #202020;
  /* Color: border dark keeps the current measured value. */
  --color-border-dark: #2a2a2a;
  /* Color: border strong dark keeps the current measured value. */
  --color-border-strong-dark: #444444;
  /* Color: border disabled dark keeps the current measured value. */
  --color-border-disabled-dark: #666666;
  /* Color: text dark keeps the current measured value. */
  --color-text-dark: #e0e0e0;
  /* Color: text muted dark keeps the current measured value. */
  --color-text-muted-dark: #a1a1a1;
  /* Color: text faint dark keeps the current measured value. */
  --color-text-faint-dark: #858585;
  /* Color: brand dark keeps the current measured value. */
  --color-brand-dark: #b8ff6e;
  /* Color: brand hover dark keeps the current measured value. */
  --color-brand-hover-dark: #7ddb3a;
  /* Color: brand wash dark keeps the current measured value. */
  --color-brand-wash-dark: rgba(184, 255, 110, 0.09);
  /* Color: brand ink dark keeps the current measured value. */
  --color-brand-ink-dark: #071000;
  /* Color: success dark keeps the current measured value. */
  --color-success-dark: #6fcf97;
  /* Color: success wash dark keeps the current measured value. */
  --color-success-wash-dark: rgba(111, 207, 151, 0.11);
  /* Color: warning dark keeps the current measured value. */
  --color-warning-dark: #f59e0b;
  /* Color: warning wash dark keeps the current measured value. */
  --color-warning-wash-dark: rgba(245, 158, 11, 0.11);
  /* Color: danger dark keeps the current measured value. */
  --color-danger-dark: #ff5c5c;
  /* Color: danger wash dark keeps the current measured value. */
  --color-danger-wash-dark: rgba(255, 92, 92, 0.1);
  /* Color: info dark keeps the current measured value. */
  --color-info-dark: #7dd3fc;
  /* Color: info wash dark keeps the current measured value. */
  --color-info-wash-dark: rgba(125, 211, 252, 0.1);
  /* Color: viewer overlay dark keeps the current measured value. */
  --color-viewer-overlay-dark: rgba(0, 0, 0, 0.68);
  /* Color: shadow raised dark keeps the current measured value. */
  --color-shadow-raised-dark: rgba(0, 0, 0, 0.38);
  /* Color: shadow dialog dark keeps the current measured value. */
  --color-shadow-dialog-dark: rgba(0, 0, 0, 0.24);
  /* Color: canvas light keeps the current measured value. */
  --color-canvas-light: #f4f4f0;
  /* Color: surface raised light keeps the current measured value. */
  --color-surface-raised-light: #ecece7;
  /* Color: border light keeps the current measured value. */
  --color-border-light: #d7d7cf;
  /* Color: border strong light keeps the current measured value. */
  --color-border-strong-light: #aaa99f;
  /* Color: control border light keeps the current measured value. */
  --color-control-border-light: #6f6f68;
  /* Color: text light keeps the current measured value. */
  --color-text-light: #252521;
  /* Color: text strong light keeps the current measured value. */
  --color-text-strong-light: #11110f;
  /* Color: text muted light keeps the current measured value. */
  --color-text-muted-light: #5f5f58;
  /* Color: text disabled light keeps the current measured value. */
  --color-text-disabled-light: #65655e;
  /* Color: brand light keeps the current measured value. */
  --color-brand-light: #2d6500;
  /* Color: brand hover light keeps the current measured value. */
  --color-brand-hover-light: #204b00;
  /* Color: brand wash light keeps the current measured value. */
  --color-brand-wash-light: rgba(45, 101, 0, 0.09);
  /* Color: success light keeps the current measured value. */
  --color-success-light: #17653a;
  /* Color: success wash light keeps the current measured value. */
  --color-success-wash-light: rgba(23, 101, 58, 0.09);
  /* Color: warning light keeps the current measured value. */
  --color-warning-light: #8a5200;
  /* Color: warning wash light keeps the current measured value. */
  --color-warning-wash-light: rgba(138, 82, 0, 0.09);
  /* Color: danger light keeps the current measured value. */
  --color-danger-light: #b42318;
  /* Color: danger wash light keeps the current measured value. */
  --color-danger-wash-light: rgba(180, 35, 24, 0.08);
  /* Color: info light keeps the current measured value. */
  --color-info-light: #075985;
  /* Color: info wash light keeps the current measured value. */
  --color-info-wash-light: rgba(7, 89, 133, 0.08);
  /* Color: viewer overlay light keeps the current measured value. */
  --color-viewer-overlay-light: rgba(17, 17, 15, 0.54);
  /* Color: shadow raised light keeps the current measured value. */
  --color-shadow-raised-light: rgba(35, 35, 26, 0.16);
  /* Color: shadow dialog light keeps the current measured value. */
  --color-shadow-dialog-light: rgba(35, 35, 26, 0.10);
  /* Color: brand wordmark dark keeps the current measured value. */
  --color-brand-wordmark-dark: #f0f0ec;
  /* Color: brand wordmark accent dark keeps the current measured value. */
  --color-brand-wordmark-accent-dark: #bfff5e;
  /* Color: brand wordmark light keeps the current measured value. */
  --color-brand-wordmark-light: #181a15;
  /* Color: brand wordmark accent light keeps the current measured value. */
  --color-brand-wordmark-accent-light: #4b7300;
  /* Color: black keeps the current measured value. */
  --color-black: #000;
  /* Color: tool dialog scrim keeps the current measured value. */
  --color-tool-dialog-scrim: rgb(5 8 13 / 72%);
  /* Color: transparency tile keeps the current measured value. */
  --color-transparency-tile: #d2d2d2;
  /* Color: recovery shadow keeps the current measured value. */
  --color-recovery-shadow: rgba(0,0,0,.35);
  /* Color: drop success wash keeps the current measured value. */
  --color-drop-success-wash: rgba(163,230,53,.15);
  /* Color: drop error wash keeps the current measured value. */
  --color-drop-error-wash: rgba(220,38,38,.15);
  /* Color: review shadow keeps the current measured value. */
  --color-review-shadow: rgba(0,0,0,.45);
  /* Color: language notice border keeps the current measured value. */
  --color-language-notice-border: rgba(191, 255, 94, 0.45);
  /* Color: language notice surface keeps the current measured value. */
  --color-language-notice-surface: rgba(17, 17, 17, 0.97);
  /* Color: feedback scrim keeps the current measured value. */
  --color-feedback-scrim: #000b;
  /* Color: paper cream keeps the current measured value. */
  --color-paper-cream: #fffdf8;
  /* Color: paper ink blue keeps the current measured value. */
  --color-paper-ink-blue: #15272b;
  /* Color: paper link keeps the current measured value. */
  --color-paper-link: #27636f;
  /* Color: paper border warm keeps the current measured value. */
  --color-paper-border-warm: #c9c2b3;
  /* Color: control disabled light keeps the current measured value. */
  --color-control-disabled-light: #85857e;
  /* Color: control disabled border light keeps the current measured value. */
  --color-control-disabled-border-light: #b5b5ad;
  /* Color: button outline dark is a mid grey so secondary actions sit below primary ones. */
  --color-button-outline-dark: #858580;


  /* Colors: shared values for every component. */

  --bg: var(--color-canvas-dark);

  --surface: var(--color-surface-dark);

  --surface2: var(--color-surface-raised-dark);

  /* Overlay surface: retained live results sit above the ordinary card. */
  --surface-overlay: light-dark(var(--color-white),var(--color-surface-overlay-dark));

  --border: var(--color-border-dark);

  --border-hover: var(--color-border-strong-dark);

  --accent: var(--color-brand-dark);

  --accent-rgb: 184,255,110;

  --accent2: var(--color-brand-hover-dark);

  --accent-bg: rgba(184,255,110,0.05);

  --accent-bg2: rgba(184,255,110,0.08);

  --accent-bg3: rgba(184,255,110,0.03);

  --accent-bg4: rgba(184,255,110,0.04);

  --accent-bg5: rgba(184,255,110,0.15);

  --text: var(--color-text-dark);

  --muted: #888888;

  --danger: var(--color-danger-dark);

  --danger-bg: var(--color-danger-wash-dark);

  --danger-bg2: rgba(255,92,92,0.15);

  --warn: var(--color-warning-dark);

  --warn-bg: rgba(245,158,11,0.12);

  --success: var(--color-success-dark);

  --text-dim: var(--color-text-dim);

  --text-dimmer: var(--color-border-disabled-dark);

  --text-faint: #555;

  --accent-bg6: rgba(184,255,110,0.06);

  --white: var(--color-white);

  --white-02: rgba(255,255,255,0.02);

  --white-03: rgba(255,255,255,0.03);

  --white-06: rgba(255,255,255,0.06);

  --white-35: rgba(255,255,255,0.35);

  --white-55: rgba(255,255,255,0.55);

  --white-60: rgba(255,255,255,0.6);

  --white-65: rgba(255,255,255,0.65);

  --white-85: rgba(255,255,255,0.85);

  --lime: #b6f542;

  --lime-dim: rgba(182,245,66,.12);

  --info: #8ecaff;

  --info-soft: rgb(142 202 255 / .1);

  --shadow: 0 22px 70px rgb(0 0 0 / .42);

  /* Dialog backdrop: keep the active modal separate from its page. */
  --dialog-backdrop: var(--color-modal-scrim);
  /* Dialog backdrop: a transparent review wrapper keeps the page tint. */
  --dialog-backdrop-muted: color-mix(in srgb,var(--bg) 75%,transparent);

  /* Type: shared values for every component. */

  --mono: 'SF Mono', 'Cascadia Code', 'Fira Code', 'JetBrains Mono', Consolas, monospace;

  --sans: 'Instrument Sans', system-ui, sans-serif;

  --text-xs: 13px;

  --text-sm: 14px;

  /* Input hint: preserve readable spacing below its associated field. */
  --field-hint-leading: 1.4;

  --text-base: 15px;

  --text-md: 16px;

  --text-lg: 18px;

  --text-3xs: 11px;

  --text-2xs: 12px;

  --text-xl: 24px;

  --text-2xl: 28px;

  --text-3xl: 36px;

  --text-4xl: 40px;

  --text-5xl: 48px;

  --text-6xl: 56px;

  --text-title: 30px;

  --text-section: 20px;

  --text-subsection: 17px;

  /* Choice labels: shared emphasis for the native group legend and title. */
  --weight-label: 650;

  /* Medium label weight: smaller groups retain their quieter emphasis. */
  --weight-medium: 600;

  /* Strong label weight: technical facts remain distinct from their explanation. */
  --weight-strong: 700;
  /* Save bar: keep the pending receipt above ordinary content. */
  --z-save-bar: 20;
  /* Table heading: keep a sticky heading above its own record cells. */
  --z-table-heading: 1;
  /* Product thumbnail: bound the preview without sizing its label or action. */
  --preview-thumbnail: 6rem;
  /* Save content: reserve space before the first bar measurement. */
  --save-height-fallback: 6.25rem;
  /* Dialog: keep comparison receipts within a readable desktop measure. */
  --dialog-measure: 35rem;

  /* Spacing: shared values for every component. */

  --sp-xs: 4px;

  --sp-sm: 8px;

  --sp-md: 12px;

  --sp-lg: 16px;

  --sp-xl: 20px;

  --sp-2xl: 24px;

  --sp-3xl: 32px;

  --sp-4xl: 36px;

  --sp-5xl: 48px;

  /* Brand mark: the trademark stays half the size of its parent label. */
  --brand-mark-size: .5em;

  /* Shape: shared values for every component. */

  --radius: 8px;

  --radius-md: 6px;

  --radius-sm: 5px;

  --radius-xs: 3px;

  --radius-lg: var(--radius);

  /* Control states: shared values for every component. */

  --control-border: #b3b3b3;

  /* Button outline: secondary actions use one mid grey boundary in both themes. */
  --button-outline: light-dark(var(--color-control-border-light), var(--color-button-outline-dark));

  --control-text: var(--color-white);

  --control-disabled-text: var(--muted);

  --control-disabled-border: var(--color-border-disabled-dark);

  --control-stroke: 1px;
  /* Select option: reserve the existing row size before offscreen content paints. */
  --select-option-size: 3.5rem;

  --control-height: 44px;

  --control-radius: var(--radius);

  --control-gap: var(--sp-sm);
  /* Button rows: allow a complete short action to share a narrow line. */
  --control-action-basis: 7.5rem;

  /* Action label: reserve room for a short word before wrapping the row. */
  --control-action-label: 9rem;

  --control-padding-inline: var(--sp-lg);

  --control-border-hover: var(--accent);

  --control-padding-block: 10px;

  --control-icon-size: 18px;

  --control-choice-size: 20px;

  --spinner-stroke: 2px;
  /* Pending button: the save indicator retains its existing cadence. */
  --pending-duration: 1s;

  --radius-round: 50%;

  --busy-duration: .7s;

  --focus-width: 3px;

  /* Result boundary: a leading rule keeps compact outcomes identifiable. */
  --status-stroke: 3px;

  /* Notes and short supporting text: shared boundary and reading rhythm. */
  --note-stroke: 2px;
  --copy-compact-leading: 1.35;
  /* Card popover: explanations retain the body reading rhythm. */
  --copy-body-leading: 1.55;
  /* Card heading: compact titles stay distinct from their explanation. */
  --copy-heading-leading: 1.15;
  /* Card copy: ordinary explanation text uses the regular font weight. */
  --weight-regular: 400;


  /* Card captions: compact product names and identifiers use a shared reading size. */
  --text-caption: 0.75rem;

  --focus-offset: 3px;

  --selection-bg: #304425;

  --selection-border: #8ec057;

  --selection-text: var(--white);

  /* Compatibility token names: shared values for every component. */

  --page: var(--bg);

  --surface-raised: var(--surface2);

  --surface-soft: var(--surface2);

  --border-strong: var(--control-border);

  --text-soft: var(--text);

  --accent-hover: var(--accent);

  --accent-ink: var(--bg);

  --accent-soft: var(--accent-bg2);

  --danger-hover: var(--danger);

  --danger-soft: var(--danger-bg);

  --warning: var(--warn);

  --warning-soft: var(--warn-bg);

}

/* Light theme: activate the shared light palette for every control. */
:root:where([data-theme="light"]) {
  color-scheme: light;
  --bg: var(--color-canvas-light); --surface: var(--color-white); --surface2: var(--color-surface-raised-light); --border: var(--color-border-light);
  --control-border: var(--color-control-border-light); --control-text: var(--color-text-strong-light); --text: var(--color-text-light);
  --text-dim: var(--color-text-muted-light); --muted: var(--color-text-muted-light); --accent: var(--color-brand-light);
  --accent-bg2: var(--color-brand-wash-light); --danger: var(--color-danger-light);
  --danger-bg: var(--color-danger-wash-light); --warn: var(--color-warning-light);
  --warn-bg: var(--color-warning-wash-light); --success: var(--color-success-light);
  --control-disabled-text: var(--color-control-disabled-light); --control-disabled-border: var(--color-control-disabled-border-light);
  --color-language-notice-surface: var(--surface);
  --color-surface-hover: var(--surface2);
  --selection-bg: var(--color-brand-wash-light); --selection-border: var(--color-brand-light); --selection-text: var(--color-text-strong-light);
}

/* Element base: signed-in surfaces inherit the shared dark palette and type. */
:where([data-ad-controls]) { margin:0; background:var(--bg); color:var(--text); font:var(--text-md)/1.5 var(--sans); }
/* Element base: padding and borders stay inside the assigned width. */
:where([data-ad-controls]) *, :where([data-ad-controls]) *::before, :where([data-ad-controls]) *::after { box-sizing:border-box; }
/* Element base: hidden attributes and visibility classes keep controls out of layout and input. */
[data-ad-controls] :is([hidden],.is-hidden) { display:none; }
/* Element base: keyboard focus uses one ring on all surfaces. */
:where([data-ad-controls]) :focus-visible { outline:var(--focus-width) solid var(--accent); outline-offset:var(--focus-offset); }
/* Element base: script-focused navigation headings never draw a control ring. */
:is(h1,h2,h3,h4)[tabindex="-1"]:focus { outline:none; }
/* Element base: touch activation works without a double tap. */
:where([data-ad-controls]) :is(button,input,select,textarea,a) { touch-action:manipulation; }
/* Element base: headings and paragraphs share their default separation. */
:where([data-ad-controls]) :is(h1,h2,h3,h4,p) { margin:0 0 var(--sp-md); }
/* Element base: page titles use the shared title size. */
:where([data-ad-controls]) h1 { font-size:var(--text-title); line-height:1.2; }
/* Element base: section titles use the shared section size. */
:where([data-ad-controls]) h2 { font-size:var(--text-section); }
/* Element base: subsection titles use the shared subsection size. */
:where([data-ad-controls]) h3 { font-size:var(--text-subsection); }
/* Element base: links retain readable text even for long destinations. */
:where([data-ad-controls]) a { color:var(--accent); overflow-wrap:anywhere; }
/* Reduced motion: honor the system preference even for legacy animation hooks. */
@media (prefers-reduced-motion:reduce) {
 /* Element base: remove animation, transitions and smooth scrolling. */
 :where([data-ad-controls]) *, :where([data-ad-controls]) *::before, :where([data-ad-controls]) *::after { animation-duration:0.01ms!important; animation-iteration-count:1!important; transition-duration:0.01ms!important; scroll-behavior:auto!important; }
}
/* Forced colors: native system colors replace the default control tokens. */
@media (forced-colors:active) {
 /* Tokens: map focus, labels and selection to the user's system palette. */
 :root { --bg:Canvas; --surface:Canvas; --surface2:Canvas; --border:CanvasText; --text:CanvasText; --text-dim:CanvasText; --accent:Highlight; --control-border:ButtonText; --control-text:ButtonText; --control-disabled-text:GrayText; --control-disabled-border:GrayText; --selection-bg:Highlight; --selection-border:Highlight; --selection-text:HighlightText; }
}

/* Japanese text: use native script fonts and strict line breaking. */
:where([data-ad-controls]):lang(ja) { font-family:"Noto Sans JP","Hiragino Kaku Gothic ProN",Meiryo,var(--sans); line-break:strict; word-break:normal; }
/* Korean text: keep syllables of a word together when labels wrap. */
:where([data-ad-controls]):lang(ko) { font-family:"Noto Sans KR","Malgun Gothic",var(--sans); word-break:keep-all; }
/* Hindi text: leave room above and below the Devanagari marks. */
:where([data-ad-controls]):lang(hi) { font-family:"Noto Sans Devanagari","Nirmala UI",Mangal,var(--sans); line-height:1.7; }

