/* Sentinel v2 - tokens.css
   GENERATED by tools/ui/gen-tokens.mjs - do not edit by hand (change the inputs there and run it again).
   Design system v2: the static scales, the nine themes computed in OKLCH (+ System and High contrast), and every
   old token name aliased onto the new ones. Owned by the 'tokens' area of the v2 redesign.

   THEME ROOTS: <html>, <body>, .app and .v2-theme-scope carrying data-theme="<key>". <body> is themed itself, so
   the panels appended to it (menus, popovers, the run panel, toasts) and the sign-in screen take the reader's theme.
   A preview card can show a theme with class="v2-theme-scope" data-theme="<key>".
   data-theme="system" is Parchment, or Midnight under prefers-color-scheme: dark.
   data-contrast="high" (on a theme root or any ancestor) deepens inks, lines and outlines.
   data-density="compact" (on any ancestor) tightens the control heights. */


:root {
  /* type: size / line (px). Nothing below 11 px. */
  --fs-display: 44px; --lh-display: 52px;
  --fs-h1: 28px; --lh-h1: 36px;
  --fs-h2: 22px; --lh-h2: 30px;
  --fs-h3: 18px; --lh-h3: 26px;
  --fs-reader: 17px; --lh-reader: 27.5px;
  --fs-body: 14px; --lh-body: 20px;
  --fs-body-read: 15px; --lh-body-read: 22px;
  --fs-small: 13px; --lh-small: 18px;
  --fs-label: 12px; --lh-label: 16px; --tracking-label: 0.06em;
  --fs-micro: 11px; --lh-micro: 14px;
  --font-sans: var(--font-ui); /* two rules read this name; it is the UI face */
  --fw-regular: 400; --fw-medium: 500; --fw-semibold: 600; --fw-bold: 700;
  /* radius */
  --radius-xs: 4px; --radius-sm: 6px; --radius-md: 10px; --radius-lg: 14px; --radius-xl: 20px; --radius-pill: 999px;
  /* spacing, 4-pt */
  --space-2: 2px; --space-4: 4px; --space-6: 6px; --space-8: 8px; --space-12: 12px; --space-16: 16px;
  --space-20: 20px; --space-24: 24px; --space-32: 32px; --space-40: 40px; --space-48: 48px; --space-64: 64px;
  /* controls */
  --ctl-sm: 28px; --ctl-md: 34px; --ctl-lg: 40px; --ctl-touch: 44px;
  /* focus ring: 2px brand, 2px gap of whatever is behind (outline-offset) */
  --focus-width: 2px; --focus-offset: 2px;
  /* z-index: the motion layer's scale (motion-layer.css), the same names and numbers */
  --z-sticky: 8; --z-handle: 18; --z-drawer: 50; --z-rail-over-drawer: 51; --z-pill: 60; --z-modal: 60;
  --z-palette: 80; --z-toast: 90; --z-tooltip: 95;
}
@media (pointer: coarse) {
  :root { --ctl-sm: 36px; --ctl-md: 44px; --ctl-lg: 44px; }
}
[data-density="compact"] { --ctl-sm: 24px; --ctl-md: 30px; --ctl-lg: 36px; }


/* parchment (light) */
:root,
:is(html, body, .app, .v2-theme-scope)[data-theme="parchment"],
:is(html, body, .app, .v2-theme-scope)[data-theme="system"] {
  --surface-page: #f5f2ec;
  --surface-app: #faf8f3;
  --surface-pane: #fcfaf6;
  --surface-card: #ffffff;
  --surface-sunken: #f1ede4;
  --surface-raised: #ffffff;
  --line-1: #ede6d6;
  --line-2: #e6e0d2;
  --line-3: #c7c0b1;
  --surface-hover: rgba(31, 41, 51, 0.04);
  --surface-hover-2: rgba(31, 41, 51, 0.07);
  --ink-1: #1a2330;
  --ink-2: #4a515e;
  --ink-3: #59626e;
  --ink-4: #858d98;
  --line-control: #8d887d;
  --brand: #1a2fe6;
  --brand-hover: #1424b8;
  --brand-press: #101d94;
  --on-brand: #ffffff;
  --brand-ink: #1a2fe6;
  --brand-soft: rgba(26, 47, 230, 0.08);
  --brand-soft-2: rgba(26, 47, 230, 0.14);
  --focus: #1a2fe6;
  --sev-critical: #9f1239;
  --sev-critical-soft: rgba(159, 18, 57, 0.1);
  --sev-high: #b03c0e;
  --sev-high-soft: rgba(176, 60, 14, 0.1);
  --sev-medium: #8f5603;
  --sev-medium-soft: rgba(143, 86, 3, 0.1);
  --sev-low: #5b6470;
  --sev-low-soft: rgba(91, 100, 112, 0.1);
  --ok: #117135;
  --ok-soft: rgba(17, 113, 53, 0.1);
  --warn: #a14a07;
  --warn-soft: rgba(161, 74, 7, 0.1);
  --party-a: #166e67;
  --party-a-soft: rgba(22, 110, 103, 0.1);
  --party-b: #6d28d9;
  --party-b-soft: rgba(109, 40, 217, 0.1);
  --surface-mark: #fff1c2;
  --surface-scrim: rgba(22, 28, 38, 0.32);
  --selection: #cdd9ee;
  --selection-ink: #1a2fe6;
  --shimmer: #ffffff;
  --e0: 0 0 0 1px #ede6d6;
  --e1: 0 1px 2px rgba(26, 35, 48, 0.06), 0 1px 1px rgba(26, 35, 48, 0.04);
  --e2: 0 2px 4px rgba(26, 35, 48, 0.06), 0 8px 16px -6px rgba(26, 35, 48, 0.14);
  --e3: 0 4px 10px rgba(26, 35, 48, 0.07), 0 18px 36px -10px rgba(26, 35, 48, 0.22);
  --e4: 0 8px 18px rgba(26, 35, 48, 0.08), 0 32px 64px -16px rgba(26, 35, 48, 0.32);
  --ev-party: #1d3557;
  --ev-person: #7c3aed;
  --ev-company: #0f766e;
  --ev-date: #15803d;
  --ev-time: #1a7e91;
  --ev-money: #9f6814;
  --ev-number: #1b7d98;
  --ev-identifier: #0e7490;
  --ev-amount: #8a6f23;
  --ev-percent: #c2410c;
  --ev-ratio: #9a3412;
  --ev-duration: #6b3d9c;
  --ev-distance: #7e3f98;
  --ev-location: #038277;
  --ev-regulation: #b42318;
  --ev-citation: #315f9f;
  --ev-court: #7a1d3a;
  --ev-jurisdiction: #5a4632;
  --ev-url: #0369a1;
  --ev-email: #0369a1;
  --ev-phone: #0369a1;
  --ev-ssn: #be185d;
  --ev-product: #b45309;
  --ev-address: #64748b;
  --ev-definition: #6b21a8;
  --ev-defined_term: #7c3aed;
  --ev-crossref: #2563eb;
  --ev-external_value: #c026d3;
  --ev-party_role_expr: #d82375;
  --ev-event_ref: #c54e17;
  --ev-deontic: #dc2626;
  --ev-negation: #b91c1c;
  --ev-condition-marker: #ae5f05;
  --ev-recurrence-marker: #9a6a15;
  --ev-vague-standard: #4e8005;
  --ev-computation-marker: #038277;
  --ev-quantifier: #4f46e5;
  --ev-sequence-marker: #9333ea;
  --ev-automation-marker: #0b79b5;
  --ev-maintenance-marker: #00845c;
  --ev-copyright: #7c2d12;
  --ev-trademark: #92400e;
  color-scheme: light;
}

/* paper (light) */
:is(html, body, .app, .v2-theme-scope)[data-theme="paper"] {
  --surface-page: #f3f3f3;
  --surface-app: #f9f9f9;
  --surface-pane: #fbfbfb;
  --surface-card: #ffffff;
  --surface-sunken: #eeeeee;
  --surface-raised: #ffffff;
  --line-1: #e7e7e7;
  --line-2: #e1e1e1;
  --line-3: #c1c1c1;
  --surface-hover: rgba(31, 41, 51, 0.04);
  --surface-hover-2: rgba(31, 41, 51, 0.07);
  --ink-1: #1c232d;
  --ink-2: #4b515b;
  --ink-3: #5b636f;
  --ink-4: #878d95;
  --line-control: #8c8983;
  --brand: #1a2fe6;
  --brand-hover: #1424b8;
  --brand-press: #101d94;
  --on-brand: #ffffff;
  --brand-ink: #1a2fe6;
  --brand-soft: rgba(26, 47, 230, 0.08);
  --brand-soft-2: rgba(26, 47, 230, 0.14);
  --focus: #1a2fe6;
  --sev-critical: #9f1239;
  --sev-critical-soft: rgba(159, 18, 57, 0.1);
  --sev-high: #b03c0e;
  --sev-high-soft: rgba(176, 60, 14, 0.1);
  --sev-medium: #8f5603;
  --sev-medium-soft: rgba(143, 86, 3, 0.1);
  --sev-low: #5b6470;
  --sev-low-soft: rgba(91, 100, 112, 0.1);
  --ok: #137336;
  --ok-soft: rgba(19, 115, 54, 0.1);
  --warn: #a14a07;
  --warn-soft: rgba(161, 74, 7, 0.1);
  --party-a: #176f68;
  --party-a-soft: rgba(23, 111, 104, 0.1);
  --party-b: #6d28d9;
  --party-b-soft: rgba(109, 40, 217, 0.1);
  --surface-mark: #fff1c2;
  --surface-scrim: rgba(22, 28, 38, 0.32);
  --selection: #cdd9ee;
  --selection-ink: #1a2fe6;
  --shimmer: #ffffff;
  --e0: 0 0 0 1px #e7e7e7;
  --e1: 0 1px 2px rgba(28, 35, 45, 0.06), 0 1px 1px rgba(28, 35, 45, 0.04);
  --e2: 0 2px 4px rgba(28, 35, 45, 0.06), 0 8px 16px -6px rgba(28, 35, 45, 0.14);
  --e3: 0 4px 10px rgba(28, 35, 45, 0.07), 0 18px 36px -10px rgba(28, 35, 45, 0.22);
  --e4: 0 8px 18px rgba(28, 35, 45, 0.08), 0 32px 64px -16px rgba(28, 35, 45, 0.32);
  --ev-party: #1d3557;
  --ev-person: #7c3aed;
  --ev-company: #0f766e;
  --ev-date: #15803d;
  --ev-time: #1c7f93;
  --ev-money: #9f6814;
  --ev-number: #1d7e99;
  --ev-identifier: #0e7490;
  --ev-amount: #8a6f23;
  --ev-percent: #c2410c;
  --ev-ratio: #9a3412;
  --ev-duration: #6b3d9c;
  --ev-distance: #7e3f98;
  --ev-location: #038277;
  --ev-regulation: #b42318;
  --ev-citation: #315f9f;
  --ev-court: #7a1d3a;
  --ev-jurisdiction: #5a4632;
  --ev-url: #0369a1;
  --ev-email: #0369a1;
  --ev-phone: #0369a1;
  --ev-ssn: #be185d;
  --ev-product: #b45309;
  --ev-address: #64748b;
  --ev-definition: #6b21a8;
  --ev-defined_term: #7c3aed;
  --ev-crossref: #2563eb;
  --ev-external_value: #c026d3;
  --ev-party_role_expr: #da2576;
  --ev-event_ref: #c54e17;
  --ev-deontic: #dc2626;
  --ev-negation: #b91c1c;
  --ev-condition-marker: #ae5f05;
  --ev-recurrence-marker: #9b6b17;
  --ev-vague-standard: #4e8005;
  --ev-computation-marker: #038277;
  --ev-quantifier: #4f46e5;
  --ev-sequence-marker: #9333ea;
  --ev-automation-marker: #0e7ab7;
  --ev-maintenance-marker: #00845c;
  --ev-copyright: #7c2d12;
  --ev-trademark: #92400e;
  color-scheme: light;
}

/* slate (light) */
:is(html, body, .app, .v2-theme-scope)[data-theme="slate"] {
  --surface-page: #e8ecf2;
  --surface-app: #eef2f7;
  --surface-pane: #f1f4f8;
  --surface-card: #ffffff;
  --surface-sunken: #e1e7f0;
  --surface-raised: #ffffff;
  --line-1: #d6e1f0;
  --line-2: #d2dbe8;
  --line-3: #b1bbca;
  --surface-hover: rgba(31, 41, 51, 0.04);
  --surface-hover-2: rgba(31, 41, 51, 0.07);
  --ink-1: #1a2330;
  --ink-2: #454d5a;
  --ink-3: #555e6a;
  --ink-4: #808893;
  --line-control: #7d838e;
  --brand: #1a2fe6;
  --brand-hover: #1424b8;
  --brand-press: #101d94;
  --on-brand: #ffffff;
  --brand-ink: #1a2fe6;
  --brand-soft: rgba(26, 47, 230, 0.08);
  --brand-soft-2: rgba(26, 47, 230, 0.14);
  --focus: #1a2fe6;
  --sev-critical: #9f1239;
  --sev-critical-soft: rgba(159, 18, 57, 0.1);
  --sev-high: #ab3705;
  --sev-high-soft: rgba(171, 55, 5, 0.1);
  --sev-medium: #875310;
  --sev-medium-soft: rgba(135, 83, 16, 0.1);
  --sev-low: #58606c;
  --sev-low-soft: rgba(88, 96, 108, 0.1);
  --ok: #096e32;
  --ok-soft: rgba(9, 110, 50, 0.1);
  --warn: #9d4600;
  --warn-soft: rgba(157, 70, 0, 0.1);
  --party-a: #0f6a63;
  --party-a-soft: rgba(15, 106, 99, 0.1);
  --party-b: #6d28d9;
  --party-b-soft: rgba(109, 40, 217, 0.1);
  --surface-mark: #fff1c2;
  --surface-scrim: rgba(22, 28, 38, 0.32);
  --selection: #cdd9ee;
  --selection-ink: #1a2fe6;
  --shimmer: #ffffff;
  --e0: 0 0 0 1px #d6e1f0;
  --e1: 0 1px 2px rgba(26, 35, 48, 0.06), 0 1px 1px rgba(26, 35, 48, 0.04);
  --e2: 0 2px 4px rgba(26, 35, 48, 0.06), 0 8px 16px -6px rgba(26, 35, 48, 0.14);
  --e3: 0 4px 10px rgba(26, 35, 48, 0.07), 0 18px 36px -10px rgba(26, 35, 48, 0.22);
  --e4: 0 8px 18px rgba(26, 35, 48, 0.08), 0 32px 64px -16px rgba(26, 35, 48, 0.32);
  --ev-party: #1d3557;
  --ev-person: #7c3aed;
  --ev-company: #0f766e;
  --ev-date: #15803d;
  --ev-time: #137a8e;
  --ev-money: #9b640d;
  --ev-number: #157994;
  --ev-identifier: #0e7490;
  --ev-amount: #866b1f;
  --ev-percent: #c2410c;
  --ev-ratio: #9a3412;
  --ev-duration: #6b3d9c;
  --ev-distance: #7e3f98;
  --ev-location: #187d73;
  --ev-regulation: #b42318;
  --ev-citation: #315f9f;
  --ev-court: #7a1d3a;
  --ev-jurisdiction: #5a4632;
  --ev-url: #0369a1;
  --ev-email: #0369a1;
  --ev-phone: #0369a1;
  --ev-ssn: #be185d;
  --ev-product: #b45309;
  --ev-address: #617187;
  --ev-definition: #6b21a8;
  --ev-defined_term: #7c3aed;
  --ev-crossref: #2563eb;
  --ev-external_value: #bb1dce;
  --ev-party_role_expr: #d41c71;
  --ev-event_ref: #bf480f;
  --ev-deontic: #d92223;
  --ev-negation: #b91c1c;
  --ev-condition-marker: #a55d15;
  --ev-recurrence-marker: #95650c;
  --ev-vague-standard: #4e7c16;
  --ev-computation-marker: #187d73;
  --ev-quantifier: #4f46e5;
  --ev-sequence-marker: #9333ea;
  --ev-automation-marker: #0175b2;
  --ev-maintenance-marker: #177f5a;
  --ev-copyright: #7c2d12;
  --ev-trademark: #92400e;
  color-scheme: light;
}

/* sage (light) */
:is(html, body, .app, .v2-theme-scope)[data-theme="sage"] {
  --surface-page: #e7ede1;
  --surface-app: #edf2e9;
  --surface-pane: #f0f4ec;
  --surface-card: #fbfef7;
  --surface-sunken: #e1e9d8;
  --surface-raised: #fbfef7;
  --line-1: #d6e4c6;
  --line-2: #d2dec4;
  --line-3: #b1bfa2;
  --surface-hover: rgba(31, 41, 51, 0.04);
  --surface-hover-2: rgba(31, 41, 51, 0.07);
  --ink-1: #1b232f;
  --ink-2: #454d59;
  --ink-3: #555e6a;
  --ink-4: #808791;
  --line-control: #7d8672;
  --brand: #1a2fe6;
  --brand-hover: #1424b8;
  --brand-press: #101d94;
  --on-brand: #ffffff;
  --brand-ink: #1a2fe6;
  --brand-soft: rgba(26, 47, 230, 0.08);
  --brand-soft-2: rgba(26, 47, 230, 0.14);
  --focus: #1a2fe6;
  --sev-critical: #9f1239;
  --sev-critical-soft: rgba(159, 18, 57, 0.1);
  --sev-high: #ab3705;
  --sev-high-soft: rgba(171, 55, 5, 0.1);
  --sev-medium: #875310;
  --sev-medium-soft: rgba(135, 83, 16, 0.1);
  --sev-low: #58606c;
  --sev-low-soft: rgba(88, 96, 108, 0.1);
  --ok: #096e32;
  --ok-soft: rgba(9, 110, 50, 0.1);
  --warn: #984812;
  --warn-soft: rgba(152, 72, 18, 0.1);
  --party-a: #0f6a63;
  --party-a-soft: rgba(15, 106, 99, 0.1);
  --party-b: #6d28d9;
  --party-b-soft: rgba(109, 40, 217, 0.1);
  --surface-mark: #fff1c2;
  --surface-scrim: rgba(22, 28, 38, 0.32);
  --selection: #cdd9ee;
  --selection-ink: #1a2fe6;
  --shimmer: #ffffff;
  --e0: 0 0 0 1px #d6e4c6;
  --e1: 0 1px 2px rgba(27, 35, 47, 0.06), 0 1px 1px rgba(27, 35, 47, 0.04);
  --e2: 0 2px 4px rgba(27, 35, 47, 0.06), 0 8px 16px -6px rgba(27, 35, 47, 0.14);
  --e3: 0 4px 10px rgba(27, 35, 47, 0.07), 0 18px 36px -10px rgba(27, 35, 47, 0.22);
  --e4: 0 8px 18px rgba(27, 35, 47, 0.08), 0 32px 64px -16px rgba(27, 35, 47, 0.32);
  --ev-party: #1d3557;
  --ev-person: #7c3aed;
  --ev-company: #0f766e;
  --ev-date: #15803d;
  --ev-time: #11798d;
  --ev-money: #9a630a;
  --ev-number: #127893;
  --ev-identifier: #0e7490;
  --ev-amount: #866b1f;
  --ev-percent: #c2410c;
  --ev-ratio: #9a3412;
  --ev-duration: #6b3d9c;
  --ev-distance: #7e3f98;
  --ev-location: #167c72;
  --ev-regulation: #b42318;
  --ev-citation: #315f9f;
  --ev-court: #7a1d3a;
  --ev-jurisdiction: #5a4632;
  --ev-url: #0369a1;
  --ev-email: #0369a1;
  --ev-phone: #0369a1;
  --ev-ssn: #be185d;
  --ev-product: #b45309;
  --ev-address: #5f6f86;
  --ev-definition: #6b21a8;
  --ev-defined_term: #7c3aed;
  --ev-crossref: #2563eb;
  --ev-external_value: #bb1dce;
  --ev-party_role_expr: #d21a70;
  --ev-event_ref: #bf480f;
  --ev-deontic: #d82022;
  --ev-negation: #b91c1c;
  --ev-condition-marker: #a55d15;
  --ev-recurrence-marker: #95650c;
  --ev-vague-standard: #4d7a14;
  --ev-computation-marker: #167c72;
  --ev-quantifier: #4f46e5;
  --ev-sequence-marker: #9333ea;
  --ev-automation-marker: #0175b2;
  --ev-maintenance-marker: #147e59;
  --ev-copyright: #7c2d12;
  --ev-trademark: #92400e;
  color-scheme: light;
}

/* sand (light) */
:is(html, body, .app, .v2-theme-scope)[data-theme="sand"] {
  --surface-page: #ebe0c7;
  --surface-app: #efe5d1;
  --surface-pane: #efe8d8;
  --surface-card: #fdf6e6;
  --surface-sunken: #ebdab5;
  --surface-raised: #fdf6e6;
  --line-1: #efd18e;
  --line-2: #e7cc92;
  --line-3: #caac6b;
  --surface-hover: rgba(31, 41, 51, 0.04);
  --surface-hover-2: rgba(31, 41, 51, 0.07);
  --ink-1: #1b232f;
  --ink-2: #3f4752;
  --ink-3: #4f5864;
  --ink-4: #797f8a;
  --line-control: #8f7a4a;
  --brand: #1a2fe6;
  --brand-hover: #1424b8;
  --brand-press: #101d94;
  --on-brand: #ffffff;
  --brand-ink: #1a2fe6;
  --brand-soft: rgba(26, 47, 230, 0.08);
  --brand-soft-2: rgba(26, 47, 230, 0.14);
  --focus: #1a2fe6;
  --sev-critical: #86002c;
  --sev-critical-soft: rgba(134, 0, 44, 0.1);
  --sev-high: #9e350c;
  --sev-high-soft: rgba(158, 53, 12, 0.1);
  --sev-medium: #804d05;
  --sev-medium-soft: rgba(128, 77, 5, 0.1);
  --sev-low: #505964;
  --sev-low-soft: rgba(80, 89, 100, 0.1);
  --ok: #0f662f;
  --ok-soft: rgba(15, 102, 47, 0.1);
  --warn: #914208;
  --warn-soft: rgba(145, 66, 8, 0.1);
  --party-a: #13625c;
  --party-a-soft: rgba(19, 98, 92, 0.1);
  --party-b: #6d28d9;
  --party-b-soft: rgba(109, 40, 217, 0.1);
  --surface-mark: #fff1c2;
  --surface-scrim: rgba(22, 28, 38, 0.32);
  --selection: #cdd9ee;
  --selection-ink: #1a2fe6;
  --shimmer: #ffffff;
  --e0: 0 0 0 1px #efd18e;
  --e1: 0 1px 2px rgba(27, 35, 47, 0.06), 0 1px 1px rgba(27, 35, 47, 0.04);
  --e2: 0 2px 4px rgba(27, 35, 47, 0.06), 0 8px 16px -6px rgba(27, 35, 47, 0.14);
  --e3: 0 4px 10px rgba(27, 35, 47, 0.07), 0 18px 36px -10px rgba(27, 35, 47, 0.22);
  --e4: 0 8px 18px rgba(27, 35, 47, 0.08), 0 32px 64px -16px rgba(27, 35, 47, 0.32);
  --ev-party: #1d3557;
  --ev-person: #7c3aed;
  --ev-company: #0c756d;
  --ev-date: #047936;
  --ev-time: #017387;
  --ev-money: #915e15;
  --ev-number: #03728d;
  --ev-identifier: #08728e;
  --ev-amount: #7f6515;
  --ev-percent: #bc3c01;
  --ev-ratio: #9a3412;
  --ev-duration: #6b3d9c;
  --ev-distance: #7e3f98;
  --ev-location: #08766c;
  --ev-regulation: #b42318;
  --ev-citation: #315f9f;
  --ev-court: #7a1d3a;
  --ev-jurisdiction: #5a4632;
  --ev-url: #0369a1;
  --ev-email: #0369a1;
  --ev-phone: #0369a1;
  --ev-ssn: #be185d;
  --ev-product: #a84f13;
  --ev-address: #5a6a80;
  --ev-definition: #6b21a8;
  --ev-defined_term: #7c3aed;
  --ev-crossref: #205ee5;
  --ev-external_value: #b309c6;
  --ev-party_role_expr: #cb0a6a;
  --ev-event_ref: #b84201;
  --ev-deontic: #d0121a;
  --ev-negation: #b91c1c;
  --ev-condition-marker: #9d5508;
  --ev-recurrence-marker: #8a6014;
  --ev-vague-standard: #477409;
  --ev-computation-marker: #08766c;
  --ev-quantifier: #4f46e5;
  --ev-sequence-marker: #9130e7;
  --ev-automation-marker: #0e6ea5;
  --ev-maintenance-marker: #067854;
  --ev-copyright: #7c2d12;
  --ev-trademark: #92400e;
  color-scheme: light;
}

/* lavender (light) */
:is(html, body, .app, .v2-theme-scope)[data-theme="lavender"] {
  --surface-page: #ebe6f2;
  --surface-app: #f0ecf6;
  --surface-pane: #f2eff7;
  --surface-card: #ffffff;
  --surface-sunken: #e7e0f1;
  --surface-raised: #ffffff;
  --line-1: #e3d6f4;
  --line-2: #ddd1ec;
  --line-3: #beb1cf;
  --surface-hover: rgba(31, 41, 51, 0.04);
  --surface-hover-2: rgba(31, 41, 51, 0.07);
  --ink-1: #1a2330;
  --ink-2: #434b58;
  --ink-3: #535c67;
  --ink-4: #7e8591;
  --line-control: #877e94;
  --brand: #1a2fe6;
  --brand-hover: #1424b8;
  --brand-press: #101d94;
  --on-brand: #ffffff;
  --brand-ink: #1a2fe6;
  --brand-soft: rgba(26, 47, 230, 0.08);
  --brand-soft-2: rgba(26, 47, 230, 0.14);
  --focus: #1a2fe6;
  --sev-critical: #86002c;
  --sev-critical-soft: rgba(134, 0, 44, 0.1);
  --sev-high: #a93502;
  --sev-high-soft: rgba(169, 53, 2, 0.1);
  --sev-medium: #84510c;
  --sev-medium-soft: rgba(132, 81, 12, 0.1);
  --sev-low: #555e6a;
  --sev-low-soft: rgba(85, 94, 106, 0.1);
  --ok: #036b2f;
  --ok-soft: rgba(3, 107, 47, 0.1);
  --warn: #95460f;
  --warn-soft: rgba(149, 70, 15, 0.1);
  --party-a: #0a6861;
  --party-a-soft: rgba(10, 104, 97, 0.1);
  --party-b: #6d28d9;
  --party-b-soft: rgba(109, 40, 217, 0.1);
  --surface-mark: #fff1c2;
  --surface-scrim: rgba(22, 28, 38, 0.32);
  --selection: #cdd9ee;
  --selection-ink: #1a2fe6;
  --shimmer: #ffffff;
  --e0: 0 0 0 1px #e3d6f4;
  --e1: 0 1px 2px rgba(26, 35, 48, 0.06), 0 1px 1px rgba(26, 35, 48, 0.04);
  --e2: 0 2px 4px rgba(26, 35, 48, 0.06), 0 8px 16px -6px rgba(26, 35, 48, 0.14);
  --e3: 0 4px 10px rgba(26, 35, 48, 0.07), 0 18px 36px -10px rgba(26, 35, 48, 0.22);
  --e4: 0 8px 18px rgba(26, 35, 48, 0.08), 0 32px 64px -16px rgba(26, 35, 48, 0.32);
  --ev-party: #1d3557;
  --ev-person: #7c3aed;
  --ev-company: #0f766e;
  --ev-date: #107e3b;
  --ev-time: #0e788b;
  --ev-money: #986005;
  --ev-number: #107792;
  --ev-identifier: #0e7490;
  --ev-amount: #856a1d;
  --ev-percent: #c2410c;
  --ev-ratio: #9a3412;
  --ev-duration: #6b3d9c;
  --ev-distance: #7e3f98;
  --ev-location: #147a70;
  --ev-regulation: #b42318;
  --ev-citation: #315f9f;
  --ev-court: #7a1d3a;
  --ev-jurisdiction: #5a4632;
  --ev-url: #0369a1;
  --ev-email: #0369a1;
  --ev-phone: #0369a1;
  --ev-ssn: #be185d;
  --ev-product: #b15103;
  --ev-address: #5e6e85;
  --ev-definition: #6b21a8;
  --ev-defined_term: #7c3aed;
  --ev-crossref: #2563eb;
  --ev-external_value: #b91acc;
  --ev-party_role_expr: #d1176f;
  --ev-event_ref: #be470c;
  --ev-deontic: #d61d20;
  --ev-negation: #b91c1c;
  --ev-condition-marker: #a45b13;
  --ev-recurrence-marker: #936409;
  --ev-vague-standard: #4c7912;
  --ev-computation-marker: #147a70;
  --ev-quantifier: #4f46e5;
  --ev-sequence-marker: #9333ea;
  --ev-automation-marker: #1773aa;
  --ev-maintenance-marker: #127d58;
  --ev-copyright: #7c2d12;
  --ev-trademark: #92400e;
  color-scheme: light;
}

/* graphite (light) */
:is(html, body, .app, .v2-theme-scope)[data-theme="graphite"] {
  --surface-page: #d4d6d8;
  --surface-app: #dadbdd;
  --surface-pane: #dcdedf;
  --surface-card: #f3f4f5;
  --surface-sunken: #ced1d4;
  --surface-raised: #f3f4f5;
  --line-1: #c4cbd1;
  --line-2: #bec5cc;
  --line-3: #9fa7ae;
  --surface-hover: rgba(31, 41, 51, 0.04);
  --surface-hover-2: rgba(31, 41, 51, 0.07);
  --ink-1: #171a1c;
  --ink-2: #3d4043;
  --ink-3: #4e5155;
  --ink-4: #76787b;
  --line-control: #6f7579;
  --brand: #1a2fe6;
  --brand-hover: #1424b8;
  --brand-press: #101d94;
  --on-brand: #ffffff;
  --brand-ink: #1a2fe6;
  --brand-soft: rgba(26, 47, 230, 0.08);
  --brand-soft-2: rgba(26, 47, 230, 0.14);
  --focus: #1a2fe6;
  --sev-critical: #86002c;
  --sev-critical-soft: rgba(134, 0, 44, 0.1);
  --sev-high: #962d00;
  --sev-high-soft: rgba(150, 45, 0, 0.1);
  --sev-medium: #754708;
  --sev-medium-soft: rgba(117, 71, 8, 0.1);
  --sev-low: #4a535f;
  --sev-low-soft: rgba(74, 83, 95, 0.1);
  --ok: #015f29;
  --ok-soft: rgba(1, 95, 41, 0.1);
  --warn: #853d0b;
  --warn-soft: rgba(133, 61, 11, 0.1);
  --party-a: #065c55;
  --party-a-soft: rgba(6, 92, 85, 0.1);
  --party-b: #671cd1;
  --party-b-soft: rgba(103, 28, 209, 0.1);
  --surface-mark: #fff1c2;
  --surface-scrim: rgba(22, 28, 38, 0.32);
  --selection: #cdd9ee;
  --selection-ink: #1a2fe6;
  --shimmer: #ffffff;
  --e0: 0 0 0 1px #c4cbd1;
  --e1: 0 1px 2px rgba(23, 26, 28, 0.06), 0 1px 1px rgba(23, 26, 28, 0.04);
  --e2: 0 2px 4px rgba(23, 26, 28, 0.06), 0 8px 16px -6px rgba(23, 26, 28, 0.14);
  --e3: 0 4px 10px rgba(23, 26, 28, 0.07), 0 18px 36px -10px rgba(23, 26, 28, 0.22);
  --e4: 0 8px 18px rgba(23, 26, 28, 0.08), 0 32px 64px -16px rgba(23, 26, 28, 0.32);
  --ev-party: #1d3557;
  --ev-person: #7833e7;
  --ev-company: #146d65;
  --ev-date: #117135;
  --ev-time: #0d6b7d;
  --ev-money: #885605;
  --ev-number: #0e6b83;
  --ev-identifier: #116a83;
  --ev-amount: #795f0a;
  --ev-percent: #af3b0c;
  --ev-ratio: #9a3412;
  --ev-duration: #6b3d9c;
  --ev-distance: #7e3f98;
  --ev-location: #116d64;
  --ev-regulation: #b42318;
  --ev-citation: #315f9f;
  --ev-court: #7a1d3a;
  --ev-jurisdiction: #5a4632;
  --ev-url: #15679a;
  --ev-email: #15679a;
  --ev-phone: #15679a;
  --ev-ssn: #bd165c;
  --ev-product: #a04805;
  --ev-address: #536379;
  --ev-definition: #6b21a8;
  --ev-defined_term: #7833e7;
  --ev-crossref: #1956dd;
  --ev-external_value: #a618b7;
  --ev-party_role_expr: #bb1463;
  --ev-event_ref: #aa3f0a;
  --ev-deontic: #c11c1d;
  --ev-negation: #b91c1c;
  --ev-condition-marker: #935212;
  --ev-recurrence-marker: #845a09;
  --ev-vague-standard: #436c10;
  --ev-computation-marker: #116d64;
  --ev-quantifier: #4f46e5;
  --ev-sequence-marker: #8b26e0;
  --ev-automation-marker: #156798;
  --ev-maintenance-marker: #10704e;
  --ev-copyright: #7c2d12;
  --ev-trademark: #92400e;
  color-scheme: light;
}

/* midnight (dark) */
:is(html, body, .app, .v2-theme-scope)[data-theme="midnight"] {
  --surface-page: #0b0d12;
  --surface-app: #0e1016;
  --surface-pane: #11141b;
  --surface-card: #171b24;
  --surface-sunken: #080a0e;
  --surface-raised: #1e2330;
  --line-1: rgba(255, 255, 255, 0.06);
  --line-2: rgba(255, 255, 255, 0.10);
  --line-3: rgba(255, 255, 255, 0.18);
  --surface-hover: rgba(255, 255, 255, 0.05);
  --surface-hover-2: rgba(255, 255, 255, 0.09);
  --ink-1: #f2f3f5;
  --ink-2: #c1c7d2;
  --ink-3: #9ba2ae;
  --ink-4: #646870;
  --line-control: #6c727b;
  --brand: #8ea0ff;
  --brand-hover: #a4b3ff;
  --brand-press: #7b8ff5;
  --on-brand: #07080b;
  --brand-ink: #8ea0ff;
  --brand-soft: rgba(142, 160, 255, 0.16);
  --brand-soft-2: rgba(142, 160, 255, 0.28);
  --focus: #8ea0ff;
  --sev-critical: #fc7388;
  --sev-critical-soft: rgba(252, 115, 136, 0.13);
  --sev-high: #ff9f43;
  --sev-high-soft: rgba(255, 159, 67, 0.13);
  --sev-medium: #e0b64a;
  --sev-medium-soft: rgba(224, 182, 74, 0.13);
  --sev-low: #9aa1ad;
  --sev-low-soft: rgba(154, 161, 173, 0.13);
  --ok: #2fd27f;
  --ok-soft: rgba(47, 210, 127, 0.13);
  --warn: #e0a24a;
  --warn-soft: rgba(224, 162, 74, 0.13);
  --party-a: #3fd1bb;
  --party-a-soft: rgba(63, 209, 187, 0.13);
  --party-b: #c4a1ff;
  --party-b-soft: rgba(196, 161, 255, 0.13);
  --surface-mark: rgba(255, 214, 102, 0.22);
  --surface-scrim: rgba(0, 0, 0, 0.55);
  --selection: #4a56a6;
  --selection-ink: #ffffff;
  --shimmer: #ffffff;
  --e0: 0 0 0 1px rgba(255, 255, 255, 0.06);
  --e1: 0 1px 2px rgba(0, 0, 0, 0.45);
  --e2: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 18px -6px rgba(0, 0, 0, 0.55);
  --e3: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 0 1px rgba(255, 255, 255, 0.06), 0 18px 44px -10px rgba(0, 0, 0, 0.65);
  --e4: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.08), 0 36px 90px -18px rgba(0, 0, 0, 0.75);
  --ev-party: #6984ab;
  --ev-person: #9267f9;
  --ev-company: #369088;
  --ev-date: #329551;
  --ev-time: #06b6d4;
  --ev-money: #b7791f;
  --ev-number: #0891b2;
  --ev-identifier: #348daa;
  --ev-amount: #9b8036;
  --ev-percent: #dd5a2d;
  --ev-ratio: #cf6444;
  --ev-duration: #9b6ed2;
  --ev-distance: #a969c5;
  --ev-location: #0d9488;
  --ev-regulation: #e35343;
  --ev-citation: #5484c7;
  --ev-court: #c7637a;
  --ev-jurisdiction: #957f69;
  --ev-url: #368ac4;
  --ev-email: #368ac4;
  --ev-phone: #368ac4;
  --ev-ssn: #e6477d;
  --ev-product: #cb6829;
  --ev-address: #74859c;
  --ev-definition: #a462e9;
  --ev-defined_term: #9267f9;
  --ev-crossref: #417dfb;
  --ev-external_value: #d23de5;
  --ev-party_role_expr: #ec3c85;
  --ev-event_ref: #ea580c;
  --ev-deontic: #f13f39;
  --ev-negation: #e74e44;
  --ev-condition-marker: #d97706;
  --ev-recurrence-marker: #ca8a04;
  --ev-vague-standard: #65a30d;
  --ev-computation-marker: #0d9488;
  --ev-quantifier: #6d74f9;
  --ev-sequence-marker: #a85afd;
  --ev-automation-marker: #148ace;
  --ev-maintenance-marker: #059669;
  --ev-copyright: #c16b50;
  --ev-trademark: #c36c40;
  color-scheme: dark;
}

/* eclipse (dark) */
:is(html, body, .app, .v2-theme-scope)[data-theme="eclipse"] {
  --surface-page: #141414;
  --surface-app: #171717;
  --surface-pane: #1b1b1b;
  --surface-card: #222222;
  --surface-sunken: #111111;
  --surface-raised: #2b2b2b;
  --line-1: rgba(255, 255, 255, 0.06);
  --line-2: rgba(255, 255, 255, 0.10);
  --line-3: rgba(255, 255, 255, 0.18);
  --surface-hover: rgba(255, 255, 255, 0.05);
  --surface-hover-2: rgba(255, 255, 255, 0.09);
  --ink-1: #f3f3f3;
  --ink-2: #d1d1d1;
  --ink-3: #aaaaaa;
  --ink-4: #6c6c6c;
  --line-control: #747474;
  --brand: #8ea0ff;
  --brand-hover: #a4b3ff;
  --brand-press: #7b8ff5;
  --on-brand: #07080b;
  --brand-ink: #92a4fb;
  --brand-soft: rgba(142, 160, 255, 0.16);
  --brand-soft-2: rgba(142, 160, 255, 0.28);
  --focus: #8ea0ff;
  --sev-critical: #fb97a2;
  --sev-critical-soft: rgba(251, 151, 162, 0.13);
  --sev-high: #ff9f43;
  --sev-high-soft: rgba(255, 159, 67, 0.13);
  --sev-medium: #e0b64a;
  --sev-medium-soft: rgba(224, 182, 74, 0.13);
  --sev-low: #a3aab6;
  --sev-low-soft: rgba(163, 170, 182, 0.13);
  --ok: #2fd27f;
  --ok-soft: rgba(47, 210, 127, 0.13);
  --warn: #e0a24a;
  --warn-soft: rgba(224, 162, 74, 0.13);
  --party-a: #3fd1bb;
  --party-a-soft: rgba(63, 209, 187, 0.13);
  --party-b: #c4a1ff;
  --party-b-soft: rgba(196, 161, 255, 0.13);
  --surface-mark: rgba(255, 214, 102, 0.22);
  --surface-scrim: rgba(0, 0, 0, 0.55);
  --selection: #4a56a6;
  --selection-ink: #ffffff;
  --shimmer: #ffffff;
  --e0: 0 0 0 1px rgba(255, 255, 255, 0.06);
  --e1: 0 1px 2px rgba(0, 0, 0, 0.45);
  --e2: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 18px -6px rgba(0, 0, 0, 0.55);
  --e3: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 0 1px rgba(255, 255, 255, 0.06), 0 18px 44px -10px rgba(0, 0, 0, 0.65);
  --e4: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.08), 0 36px 90px -18px rgba(0, 0, 0, 0.75);
  --ev-party: #6e8ab2;
  --ev-person: #9671f7;
  --ev-company: #3d978e;
  --ev-date: #3a9b56;
  --ev-time: #06b6d4;
  --ev-money: #ba7b23;
  --ev-number: #1395b6;
  --ev-identifier: #3b93b0;
  --ev-amount: #a1863c;
  --ev-percent: #e46034;
  --ev-ratio: #d66a4a;
  --ev-duration: #a274d8;
  --ev-distance: #b06fcc;
  --ev-location: #19998d;
  --ev-regulation: #ea5949;
  --ev-citation: #5a8ace;
  --ev-court: #ce6980;
  --ev-jurisdiction: #9b856f;
  --ev-url: #3b8fc9;
  --ev-email: #3b8fc9;
  --ev-phone: #3b8fc9;
  --ev-ssn: #ed4e83;
  --ev-product: #d26e31;
  --ev-address: #7a8ba2;
  --ev-definition: #aa69f0;
  --ev-defined_term: #9671f7;
  --ev-crossref: #4c84f7;
  --ev-external_value: #d945ec;
  --ev-party_role_expr: #f4438b;
  --ev-event_ref: #eb590f;
  --ev-deontic: #f94840;
  --ev-negation: #ee554a;
  --ev-condition-marker: #d97706;
  --ev-recurrence-marker: #ca8a04;
  --ev-vague-standard: #65a30d;
  --ev-computation-marker: #19998d;
  --ev-quantifier: #747df7;
  --ev-sequence-marker: #ab66fa;
  --ev-automation-marker: #2090d4;
  --ev-maintenance-marker: #159b6e;
  --ev-copyright: #c87156;
  --ev-trademark: #c97246;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  /* system, dark: Midnight */
  :is(html, body, .app, .v2-theme-scope)[data-theme="system"] {
    --surface-page: #0b0d12;
    --surface-app: #0e1016;
    --surface-pane: #11141b;
    --surface-card: #171b24;
    --surface-sunken: #080a0e;
    --surface-raised: #1e2330;
    --line-1: rgba(255, 255, 255, 0.06);
    --line-2: rgba(255, 255, 255, 0.10);
    --line-3: rgba(255, 255, 255, 0.18);
    --surface-hover: rgba(255, 255, 255, 0.05);
    --surface-hover-2: rgba(255, 255, 255, 0.09);
    --ink-1: #f2f3f5;
    --ink-2: #c1c7d2;
    --ink-3: #9ba2ae;
    --ink-4: #646870;
    --line-control: #6c727b;
    --brand: #8ea0ff;
    --brand-hover: #a4b3ff;
    --brand-press: #7b8ff5;
    --on-brand: #07080b;
    --brand-ink: #8ea0ff;
    --brand-soft: rgba(142, 160, 255, 0.16);
    --brand-soft-2: rgba(142, 160, 255, 0.28);
    --focus: #8ea0ff;
    --sev-critical: #fc7388;
    --sev-critical-soft: rgba(252, 115, 136, 0.13);
    --sev-high: #ff9f43;
    --sev-high-soft: rgba(255, 159, 67, 0.13);
    --sev-medium: #e0b64a;
    --sev-medium-soft: rgba(224, 182, 74, 0.13);
    --sev-low: #9aa1ad;
    --sev-low-soft: rgba(154, 161, 173, 0.13);
    --ok: #2fd27f;
    --ok-soft: rgba(47, 210, 127, 0.13);
    --warn: #e0a24a;
    --warn-soft: rgba(224, 162, 74, 0.13);
    --party-a: #3fd1bb;
    --party-a-soft: rgba(63, 209, 187, 0.13);
    --party-b: #c4a1ff;
    --party-b-soft: rgba(196, 161, 255, 0.13);
    --surface-mark: rgba(255, 214, 102, 0.22);
    --surface-scrim: rgba(0, 0, 0, 0.55);
    --selection: #4a56a6;
    --selection-ink: #ffffff;
    --shimmer: #ffffff;
    --e0: 0 0 0 1px rgba(255, 255, 255, 0.06);
    --e1: 0 1px 2px rgba(0, 0, 0, 0.45);
    --e2: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 18px -6px rgba(0, 0, 0, 0.55);
    --e3: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 0 1px rgba(255, 255, 255, 0.06), 0 18px 44px -10px rgba(0, 0, 0, 0.65);
    --e4: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.08), 0 36px 90px -18px rgba(0, 0, 0, 0.75);
    --ev-party: #6984ab;
    --ev-person: #9267f9;
    --ev-company: #369088;
    --ev-date: #329551;
    --ev-time: #06b6d4;
    --ev-money: #b7791f;
    --ev-number: #0891b2;
    --ev-identifier: #348daa;
    --ev-amount: #9b8036;
    --ev-percent: #dd5a2d;
    --ev-ratio: #cf6444;
    --ev-duration: #9b6ed2;
    --ev-distance: #a969c5;
    --ev-location: #0d9488;
    --ev-regulation: #e35343;
    --ev-citation: #5484c7;
    --ev-court: #c7637a;
    --ev-jurisdiction: #957f69;
    --ev-url: #368ac4;
    --ev-email: #368ac4;
    --ev-phone: #368ac4;
    --ev-ssn: #e6477d;
    --ev-product: #cb6829;
    --ev-address: #74859c;
    --ev-definition: #a462e9;
    --ev-defined_term: #9267f9;
    --ev-crossref: #417dfb;
    --ev-external_value: #d23de5;
    --ev-party_role_expr: #ec3c85;
    --ev-event_ref: #ea580c;
    --ev-deontic: #f13f39;
    --ev-negation: #e74e44;
    --ev-condition-marker: #d97706;
    --ev-recurrence-marker: #ca8a04;
    --ev-vague-standard: #65a30d;
    --ev-computation-marker: #0d9488;
    --ev-quantifier: #6d74f9;
    --ev-sequence-marker: #a85afd;
    --ev-automation-marker: #148ace;
    --ev-maintenance-marker: #059669;
    --ev-copyright: #c16b50;
    --ev-trademark: #c36c40;
    color-scheme: dark;
  }
}

/* parchment, high contrast */
:root[data-contrast="high"],
:is(html, body, .app, .v2-theme-scope)[data-theme="parchment"]:is([data-contrast="high"], [data-contrast="high"] *),
:is(html, body, .app, .v2-theme-scope)[data-theme="system"]:is([data-contrast="high"], [data-contrast="high"] *) {
  --line-1: #e6e0d2;
  --line-2: #c7c0b1;
  --line-3: #979287;
  --ink-1: #0e1623;
  --ink-2: #2e3642;
  --ink-3: #3e4752;
  --ink-4: #686f7a;
  --line-control: #706b61;
  --brand-ink: #161edb;
  --sev-critical: #710a26;
  --sev-critical-soft: rgba(113, 10, 38, 0.1);
  --sev-high: #7f2a0a;
  --sev-high-soft: rgba(127, 42, 10, 0.1);
  --sev-medium: #673d05;
  --sev-medium-soft: rgba(103, 61, 5, 0.1);
  --sev-low: #3f4752;
  --sev-low-soft: rgba(63, 71, 82, 0.1);
  --ok: #0e5226;
  --ok-soft: rgba(14, 82, 38, 0.1);
  --warn: #743305;
  --warn-soft: rgba(116, 51, 5, 0.1);
  --party-a: #02504a;
  --party-a-soft: rgba(2, 80, 74, 0.1);
  --party-b: #5914b8;
  --party-b-soft: rgba(89, 20, 184, 0.1);
  --selection-ink: #161edb;
  --e0: 0 0 0 1px #e6e0d2;
  --e1: 0 1px 2px rgba(14, 22, 35, 0.06), 0 1px 1px rgba(14, 22, 35, 0.04);
  --e2: 0 2px 4px rgba(14, 22, 35, 0.06), 0 8px 16px -6px rgba(14, 22, 35, 0.14);
  --e3: 0 4px 10px rgba(14, 22, 35, 0.07), 0 18px 36px -10px rgba(14, 22, 35, 0.22);
  --e4: 0 8px 18px rgba(14, 22, 35, 0.08), 0 32px 64px -16px rgba(14, 22, 35, 0.32);
}

/* paper, high contrast */
:is(html, body, .app, .v2-theme-scope)[data-theme="paper"]:is([data-contrast="high"], [data-contrast="high"] *) {
  --line-1: #e1e1e1;
  --line-2: #c1c1c1;
  --line-3: #939393;
  --ink-1: #101620;
  --ink-2: #2f363f;
  --ink-3: #3f4853;
  --ink-4: #6a6f78;
  --line-control: #6f6c66;
  --brand-ink: #161edb;
  --sev-critical: #720c27;
  --sev-critical-soft: rgba(114, 12, 39, 0.1);
  --sev-high: #7f2a0a;
  --sev-high-soft: rgba(127, 42, 10, 0.1);
  --sev-medium: #673d05;
  --sev-medium-soft: rgba(103, 61, 5, 0.1);
  --sev-low: #404854;
  --sev-low-soft: rgba(64, 72, 84, 0.1);
  --ok: #0e5226;
  --ok-soft: rgba(14, 82, 38, 0.1);
  --warn: #753507;
  --warn-soft: rgba(117, 53, 7, 0.1);
  --party-a: #02504a;
  --party-a-soft: rgba(2, 80, 74, 0.1);
  --party-b: #5a16ba;
  --party-b-soft: rgba(90, 22, 186, 0.1);
  --selection-ink: #161edb;
  --e0: 0 0 0 1px #e1e1e1;
  --e1: 0 1px 2px rgba(16, 22, 32, 0.06), 0 1px 1px rgba(16, 22, 32, 0.04);
  --e2: 0 2px 4px rgba(16, 22, 32, 0.06), 0 8px 16px -6px rgba(16, 22, 32, 0.14);
  --e3: 0 4px 10px rgba(16, 22, 32, 0.07), 0 18px 36px -10px rgba(16, 22, 32, 0.22);
  --e4: 0 8px 18px rgba(16, 22, 32, 0.08), 0 32px 64px -16px rgba(16, 22, 32, 0.32);
}

/* slate, high contrast */
:is(html, body, .app, .v2-theme-scope)[data-theme="slate"]:is([data-contrast="high"], [data-contrast="high"] *) {
  --line-1: #d2dbe8;
  --line-2: #b1bbca;
  --line-3: #868d98;
  --ink-1: #0e1623;
  --ink-2: #2b333f;
  --ink-3: #3b444f;
  --ink-4: #636b75;
  --line-control: #616772;
  --brand-ink: #1516d6;
  --sev-critical: #6d0423;
  --sev-critical-soft: rgba(109, 4, 35, 0.1);
  --sev-high: #7b2605;
  --sev-high-soft: rgba(123, 38, 5, 0.1);
  --sev-medium: #603a0a;
  --sev-medium-soft: rgba(96, 58, 10, 0.1);
  --sev-low: #3b434e;
  --sev-low-soft: rgba(59, 67, 78, 0.1);
  --ok: #064e22;
  --ok-soft: rgba(6, 78, 34, 0.1);
  --warn: #703001;
  --warn-soft: rgba(112, 48, 1, 0.1);
  --party-a: #0a4b46;
  --party-a-soft: rgba(10, 75, 70, 0.1);
  --party-b: #560bb4;
  --party-b-soft: rgba(86, 11, 180, 0.1);
  --selection-ink: #1516d6;
  --e0: 0 0 0 1px #d2dbe8;
  --e1: 0 1px 2px rgba(14, 22, 35, 0.06), 0 1px 1px rgba(14, 22, 35, 0.04);
  --e2: 0 2px 4px rgba(14, 22, 35, 0.06), 0 8px 16px -6px rgba(14, 22, 35, 0.14);
  --e3: 0 4px 10px rgba(14, 22, 35, 0.07), 0 18px 36px -10px rgba(14, 22, 35, 0.22);
  --e4: 0 8px 18px rgba(14, 22, 35, 0.08), 0 32px 64px -16px rgba(14, 22, 35, 0.32);
}

/* sage, high contrast */
:is(html, body, .app, .v2-theme-scope)[data-theme="sage"]:is([data-contrast="high"], [data-contrast="high"] *) {
  --line-1: #d2dec4;
  --line-2: #b1bfa2;
  --line-3: #86907b;
  --ink-1: #0f1622;
  --ink-2: #2b333e;
  --ink-3: #3a434e;
  --ink-4: #646b74;
  --line-control: #616a56;
  --brand-ink: #1516d6;
  --sev-critical: #6d0423;
  --sev-critical-soft: rgba(109, 4, 35, 0.1);
  --sev-high: #7b2605;
  --sev-high-soft: rgba(123, 38, 5, 0.1);
  --sev-medium: #603a0a;
  --sev-medium-soft: rgba(96, 58, 10, 0.1);
  --sev-low: #3b434e;
  --sev-low-soft: rgba(59, 67, 78, 0.1);
  --ok: #064e22;
  --ok-soft: rgba(6, 78, 34, 0.1);
  --warn: #703001;
  --warn-soft: rgba(112, 48, 1, 0.1);
  --party-a: #0a4b46;
  --party-a-soft: rgba(10, 75, 70, 0.1);
  --party-b: #560bb4;
  --party-b-soft: rgba(86, 11, 180, 0.1);
  --selection-ink: #1516d6;
  --e0: 0 0 0 1px #d2dec4;
  --e1: 0 1px 2px rgba(15, 22, 34, 0.06), 0 1px 1px rgba(15, 22, 34, 0.04);
  --e2: 0 2px 4px rgba(15, 22, 34, 0.06), 0 8px 16px -6px rgba(15, 22, 34, 0.14);
  --e3: 0 4px 10px rgba(15, 22, 34, 0.07), 0 18px 36px -10px rgba(15, 22, 34, 0.22);
  --e4: 0 8px 18px rgba(15, 22, 34, 0.08), 0 32px 64px -16px rgba(15, 22, 34, 0.32);
}

/* sand, high contrast */
:is(html, body, .app, .v2-theme-scope)[data-theme="sand"]:is([data-contrast="high"], [data-contrast="high"] *) {
  --line-1: #e7cc92;
  --line-2: #caac6b;
  --line-3: #958050;
  --ink-1: #0c121e;
  --ink-2: #242c37;
  --ink-3: #353d48;
  --ink-4: #5d646e;
  --line-control: #725e2f;
  --brand-ink: #1216c1;
  --sev-critical: #61041f;
  --sev-critical-soft: rgba(97, 4, 31, 0.1);
  --sev-high: #6f2205;
  --sev-high-soft: rgba(111, 34, 5, 0.1);
  --sev-medium: #593401;
  --sev-medium-soft: rgba(89, 52, 1, 0.1);
  --sev-low: #343d48;
  --sev-low-soft: rgba(52, 61, 72, 0.1);
  --ok: #07461e;
  --ok-soft: rgba(7, 70, 30, 0.1);
  --warn: #662c03;
  --warn-soft: rgba(102, 44, 3, 0.1);
  --party-a: #0a443f;
  --party-a-soft: rgba(10, 68, 63, 0.1);
  --party-b: #4e0ca3;
  --party-b-soft: rgba(78, 12, 163, 0.1);
  --selection-ink: #1216c1;
  --e0: 0 0 0 1px #e7cc92;
  --e1: 0 1px 2px rgba(12, 18, 30, 0.06), 0 1px 1px rgba(12, 18, 30, 0.04);
  --e2: 0 2px 4px rgba(12, 18, 30, 0.06), 0 8px 16px -6px rgba(12, 18, 30, 0.14);
  --e3: 0 4px 10px rgba(12, 18, 30, 0.07), 0 18px 36px -10px rgba(12, 18, 30, 0.22);
  --e4: 0 8px 18px rgba(12, 18, 30, 0.08), 0 32px 64px -16px rgba(12, 18, 30, 0.32);
}

/* lavender, high contrast */
:is(html, body, .app, .v2-theme-scope)[data-theme="lavender"]:is([data-contrast="high"], [data-contrast="high"] *) {
  --line-1: #ddd1ec;
  --line-2: #beb1cf;
  --line-3: #8e859b;
  --ink-1: #0e1623;
  --ink-2: #28303c;
  --ink-3: #39414d;
  --ink-4: #616973;
  --line-control: #6a6176;
  --brand-ink: #150fd3;
  --sev-critical: #6a0021;
  --sev-critical-soft: rgba(106, 0, 33, 0.1);
  --sev-high: #782301;
  --sev-high-soft: rgba(120, 35, 1, 0.1);
  --sev-medium: #5e3806;
  --sev-medium-soft: rgba(94, 56, 6, 0.1);
  --sev-low: #38414c;
  --sev-low-soft: rgba(56, 65, 76, 0.1);
  --ok: #014a1f;
  --ok-soft: rgba(1, 74, 31, 0.1);
  --warn: #6a3009;
  --warn-soft: rgba(106, 48, 9, 0.1);
  --party-a: #064944;
  --party-a-soft: rgba(6, 73, 68, 0.1);
  --party-b: #5404b2;
  --party-b-soft: rgba(84, 4, 178, 0.1);
  --selection-ink: #150fd3;
  --e0: 0 0 0 1px #ddd1ec;
  --e1: 0 1px 2px rgba(14, 22, 35, 0.06), 0 1px 1px rgba(14, 22, 35, 0.04);
  --e2: 0 2px 4px rgba(14, 22, 35, 0.06), 0 8px 16px -6px rgba(14, 22, 35, 0.14);
  --e3: 0 4px 10px rgba(14, 22, 35, 0.07), 0 18px 36px -10px rgba(14, 22, 35, 0.22);
  --e4: 0 8px 18px rgba(14, 22, 35, 0.08), 0 32px 64px -16px rgba(14, 22, 35, 0.32);
}

/* graphite, high contrast */
:is(html, body, .app, .v2-theme-scope)[data-theme="graphite"]:is([data-contrast="high"], [data-contrast="high"] *) {
  --line-1: #bec5cc;
  --line-2: #9fa7ae;
  --line-3: #75797d;
  --ink-1: #010103;
  --ink-2: #212427;
  --ink-3: #33353a;
  --ink-4: #5c5d61;
  --line-control: #545a5e;
  --brand-ink: #1100b9;
  --sev-critical: #550119;
  --sev-critical-soft: rgba(85, 1, 25, 0.1);
  --sev-high: #631e04;
  --sev-high-soft: rgba(99, 30, 4, 0.1);
  --sev-medium: #4f2d01;
  --sev-medium-soft: rgba(79, 45, 1, 0.1);
  --sev-low: #2e3641;
  --sev-low-soft: rgba(46, 54, 65, 0.1);
  --ok: #053e1a;
  --ok-soft: rgba(5, 62, 26, 0.1);
  --warn: #592602;
  --warn-soft: rgba(89, 38, 2, 0.1);
  --party-a: #003d38;
  --party-a-soft: rgba(0, 61, 56, 0.1);
  --party-b: #450b92;
  --party-b-soft: rgba(69, 11, 146, 0.1);
  --selection-ink: #1100b9;
  --e0: 0 0 0 1px #bec5cc;
  --e1: 0 1px 2px rgba(1, 1, 3, 0.06), 0 1px 1px rgba(1, 1, 3, 0.04);
  --e2: 0 2px 4px rgba(1, 1, 3, 0.06), 0 8px 16px -6px rgba(1, 1, 3, 0.14);
  --e3: 0 4px 10px rgba(1, 1, 3, 0.07), 0 18px 36px -10px rgba(1, 1, 3, 0.22);
  --e4: 0 8px 18px rgba(1, 1, 3, 0.08), 0 32px 64px -16px rgba(1, 1, 3, 0.32);
}

/* midnight, high contrast */
:is(html, body, .app, .v2-theme-scope)[data-theme="midnight"]:is([data-contrast="high"], [data-contrast="high"] *) {
  --line-1: rgba(255, 255, 255, 0.14);
  --line-2: rgba(255, 255, 255, 0.24);
  --line-3: rgba(255, 255, 255, 0.42);
  --ink-2: #dbe1ec;
  --ink-3: #c0c7d3;
  --ink-4: #80848c;
  --line-control: #858b94;
  --brand-ink: #b8c5fb;
  --sev-critical: #fdc3c8;
  --sev-critical-soft: rgba(253, 195, 200, 0.13);
  --sev-high: #feb97e;
  --sev-high-soft: rgba(254, 185, 126, 0.13);
  --sev-medium: #ecc257;
  --sev-medium-soft: rgba(236, 194, 87, 0.13);
  --sev-low: #c0c7d3;
  --sev-low-soft: rgba(192, 199, 211, 0.13);
  --ok: #45e18d;
  --ok-soft: rgba(69, 225, 141, 0.13);
  --warn: #fbbc65;
  --warn-soft: rgba(251, 188, 101, 0.13);
  --party-a: #4ddcc5;
  --party-a-soft: rgba(77, 220, 197, 0.13);
  --party-b: #d3befc;
  --party-b-soft: rgba(211, 190, 252, 0.13);
  --e0: 0 0 0 1px rgba(255, 255, 255, 0.14);
}

/* eclipse, high contrast */
:is(html, body, .app, .v2-theme-scope)[data-theme="eclipse"]:is([data-contrast="high"], [data-contrast="high"] *) {
  --line-1: rgba(255, 255, 255, 0.14);
  --line-2: rgba(255, 255, 255, 0.24);
  --line-3: rgba(255, 255, 255, 0.42);
  --ink-2: #ededed;
  --ink-3: #d1d1d1;
  --ink-4: #8a8a8a;
  --line-control: #929292;
  --brand-ink: #c4d0fe;
  --sev-critical: #fdd3d6;
  --sev-critical-soft: rgba(253, 211, 214, 0.13);
  --sev-high: #fec79a;
  --sev-high-soft: rgba(254, 199, 154, 0.13);
  --sev-medium: #f7cc62;
  --sev-medium-soft: rgba(247, 204, 98, 0.13);
  --sev-low: #cbd2df;
  --sev-low-soft: rgba(203, 210, 223, 0.13);
  --ok: #54ed98;
  --ok-soft: rgba(84, 237, 152, 0.13);
  --warn: #ffc982;
  --warn-soft: rgba(255, 201, 130, 0.13);
  --party-a: #5be8d1;
  --party-a-soft: rgba(91, 232, 209, 0.13);
  --party-b: #dbc9fe;
  --party-b-soft: rgba(219, 201, 254, 0.13);
  --e0: 0 0 0 1px rgba(255, 255, 255, 0.14);
}

@media (prefers-color-scheme: dark) {
  :is(html, body, .app, .v2-theme-scope)[data-theme="system"]:is([data-contrast="high"], [data-contrast="high"] *) {
    --line-1: rgba(255, 255, 255, 0.14);
    --line-2: rgba(255, 255, 255, 0.24);
    --line-3: rgba(255, 255, 255, 0.42);
    --ink-2: #dbe1ec;
    --ink-3: #c0c7d3;
    --ink-4: #80848c;
    --line-control: #858b94;
    --brand-ink: #b8c5fb;
    --sev-critical: #fdc3c8;
    --sev-critical-soft: rgba(253, 195, 200, 0.13);
    --sev-high: #feb97e;
    --sev-high-soft: rgba(254, 185, 126, 0.13);
    --sev-medium: #ecc257;
    --sev-medium-soft: rgba(236, 194, 87, 0.13);
    --sev-low: #c0c7d3;
    --sev-low-soft: rgba(192, 199, 211, 0.13);
    --ok: #45e18d;
    --ok-soft: rgba(69, 225, 141, 0.13);
    --warn: #fbbc65;
    --warn-soft: rgba(251, 188, 101, 0.13);
    --party-a: #4ddcc5;
    --party-a-soft: rgba(77, 220, 197, 0.13);
    --party-b: #d3befc;
    --party-b-soft: rgba(211, 190, 252, 0.13);
    --e0: 0 0 0 1px rgba(255, 255, 255, 0.14);
  }
}

/* THE OLD NAMES, re-resolved on every theme root (a custom property resolves where it is declared). */
:root,
:is(html, body, .app, .v2-theme-scope)[data-theme] {
  --bg-page: var(--surface-page);
  --bg-app: var(--surface-app);
  --bg-pane: var(--surface-pane);
  --bg-doc: var(--surface-card);
  --bg-sunken: var(--surface-sunken);
  --bg-soft: var(--surface-hover);
  --bg-soft2: var(--surface-hover-2);
  --bg-mark: var(--surface-mark);
  --bg-active-amber: var(--warn-soft);
  --bg-active-red: var(--sev-critical-soft);
  --bg-active-green: var(--ok-soft);
  --bg-active-blue: var(--brand-soft);
  --bg-active-violet: var(--party-b-soft);
  --bg-active-teal: var(--party-a-soft);
  --bg-active-rose: var(--sev-critical-soft);
  --text-primary: var(--ink-1);
  --ink: var(--ink-1);
  --text: var(--ink-1);
  --text-secondary: var(--ink-2);
  --text-muted: var(--ink-3);
  --text-faint: var(--ink-4);
  --text-inverse: var(--on-brand);
  --border-hairline: var(--line-1);
  --border-subtle: var(--line-2);
  --border-strong: var(--line-3);
  --brand-navy: var(--brand);
  --brand-navy-hover: var(--brand-hover);
  --brand-blue: var(--brand);
  --brand-blue-soft: var(--brand-soft);
  --accent-ink: var(--brand-ink);
  --accent: var(--brand);
  --accent-soft: var(--brand-soft);
  --mode-detect: var(--brand);
  --mode-simulate: var(--brand);
  --mode-stress: var(--brand);
  --mode-draft: var(--brand);
  --mode-report: var(--brand);
  --mode-docs: var(--brand);
  --mode-drive: var(--brand);
  --mode-calendar: var(--brand);
  --severity-critical: var(--sev-critical);
  --severity-high: var(--sev-high);
  --severity-medium: var(--sev-medium);
  --severity-low: var(--sev-low);
  --severity-success: var(--ok);
  --gshadow: var(--e2);
  --gshadow-up: var(--e3);
}
