/* 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: #ae4a5d;
  --sev-critical-glyph: #d46b7e;
  --sev-critical-soft: rgba(212, 107, 126, 0.13);
  --sev-high: #af4e1e;
  --sev-high-glyph: #d57043;
  --sev-high-soft: rgba(213, 112, 67, 0.13);
  --sev-medium: #926201;
  --sev-medium-glyph: #bc800f;
  --sev-medium-soft: rgba(188, 128, 15, 0.13);
  --sev-low: #616c7c;
  --sev-low-glyph: #808c9c;
  --sev-low-soft: rgba(128, 140, 156, 0.13);
  --ok: #0b7b4b;
  --ok-glyph: #3d9d6b;
  --ok-soft: rgba(61, 157, 107, 0.13);
  --warn: #a45800;
  --warn-glyph: #d1740d;
  --warn-soft: rgba(209, 116, 13, 0.13);
  --party-a: #166e67;
  --party-a-soft: rgba(22, 110, 103, 0.1);
  --party-b: #6d28d9;
  --party-b-soft: rgba(109, 40, 217, 0.1);
  --ins-short: #ae4a5d;
  --ins-short-glyph: #d46b7e;
  --ins-short-soft: rgba(212, 107, 126, 0.13);
  --ins-partly: #9c5c12;
  --ins-partly-glyph: #c47b30;
  --ins-partly-soft: rgba(196, 123, 48, 0.13);
  --ins-eye: #745db1;
  --ins-eye-glyph: #957ed6;
  --ins-eye-soft: rgba(149, 126, 214, 0.13);
  --ins-absent: #5c6d80;
  --ins-absent-glyph: #7d8ea2;
  --ins-absent-soft: rgba(125, 142, 162, 0.13);
  --ins-meets: #0b7b4b;
  --ins-meets-glyph: #3d9d6b;
  --ins-meets-soft: rgba(61, 157, 107, 0.13);
  --ins-na: #716b61;
  --ins-na-glyph: #918a80;
  --ins-na-soft: rgba(145, 138, 128, 0.13);
  --ins-info: #2471a5;
  --ins-info-glyph: #4892c8;
  --ins-info-soft: rgba(72, 146, 200, 0.13);
  --ins-mark: #fff1c2;
  --deal-teal: #49998e;
  --deal-plum: #9a73ad;
  --deal-sky: #5491c0;
  --deal-sand: #ac8545;
  --deal-rose: #c27584;
  --deal-moss: #7a9555;
  --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: #b04b5e;
  --sev-critical-glyph: #d46b7e;
  --sev-critical-soft: rgba(212, 107, 126, 0.13);
  --sev-high: #b14f20;
  --sev-high-glyph: #d57043;
  --sev-high-soft: rgba(213, 112, 67, 0.13);
  --sev-medium: #926201;
  --sev-medium-glyph: #bc800f;
  --sev-medium-soft: rgba(188, 128, 15, 0.13);
  --sev-low: #616c7c;
  --sev-low-glyph: #828e9d;
  --sev-low-soft: rgba(130, 142, 157, 0.13);
  --ok: #0e7c4c;
  --ok-glyph: #3d9d6b;
  --ok-soft: rgba(61, 157, 107, 0.13);
  --warn: #a45800;
  --warn-glyph: #d1740d;
  --warn-soft: rgba(209, 116, 13, 0.13);
  --party-a: #176f68;
  --party-a-soft: rgba(23, 111, 104, 0.1);
  --party-b: #6d28d9;
  --party-b-soft: rgba(109, 40, 217, 0.1);
  --ins-short: #b04b5e;
  --ins-short-glyph: #d46b7e;
  --ins-short-soft: rgba(212, 107, 126, 0.13);
  --ins-partly: #9d5d14;
  --ins-partly-glyph: #c57c32;
  --ins-partly-soft: rgba(197, 124, 50, 0.13);
  --ins-eye: #755eb2;
  --ins-eye-glyph: #957ed6;
  --ins-eye-soft: rgba(149, 126, 214, 0.13);
  --ins-absent: #5c6d80;
  --ins-absent-glyph: #7d8ea2;
  --ins-absent-soft: rgba(125, 142, 162, 0.13);
  --ins-meets: #0e7c4c;
  --ins-meets-glyph: #3d9d6b;
  --ins-meets-soft: rgba(61, 157, 107, 0.13);
  --ins-na: #716b61;
  --ins-na-glyph: #928c82;
  --ins-na-soft: rgba(146, 140, 130, 0.13);
  --ins-info: #2471a5;
  --ins-info-glyph: #4892c8;
  --ins-info-soft: rgba(72, 146, 200, 0.13);
  --ins-mark: #fff1c2;
  --deal-teal: #49998e;
  --deal-plum: #9a73ad;
  --deal-sky: #5592c2;
  --deal-sand: #ae8646;
  --deal-rose: #c47685;
  --deal-moss: #7a9555;
  --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: #aa465a;
  --sev-critical-glyph: #cf6779;
  --sev-critical-soft: rgba(207, 103, 121, 0.13);
  --sev-high: #ab4a1a;
  --sev-high-glyph: #d06b3e;
  --sev-high-soft: rgba(208, 107, 62, 0.13);
  --sev-medium: #8a5e10;
  --sev-medium-glyph: #b77c00;
  --sev-medium-soft: rgba(183, 124, 0, 0.13);
  --sev-low: #5d6877;
  --sev-low-glyph: #7d8998;
  --sev-low-soft: rgba(125, 137, 152, 0.13);
  --ok: #017748;
  --ok-glyph: #389866;
  --ok-soft: rgba(56, 152, 102, 0.13);
  --warn: #9b5610;
  --warn-glyph: #c7721f;
  --warn-soft: rgba(199, 114, 31, 0.13);
  --party-a: #0f6a63;
  --party-a-soft: rgba(15, 106, 99, 0.1);
  --party-b: #6d28d9;
  --party-b-soft: rgba(109, 40, 217, 0.1);
  --ins-short: #aa465a;
  --ins-short-glyph: #cf6779;
  --ins-short-soft: rgba(207, 103, 121, 0.13);
  --ins-partly: #98580b;
  --ins-partly-glyph: #be762a;
  --ins-partly-soft: rgba(190, 118, 42, 0.13);
  --ins-eye: #7059ad;
  --ins-eye-glyph: #907ad0;
  --ins-eye-soft: rgba(144, 122, 208, 0.13);
  --ins-absent: #58697b;
  --ins-absent-glyph: #77889c;
  --ins-absent-soft: rgba(119, 136, 156, 0.13);
  --ins-meets: #017748;
  --ins-meets-glyph: #389866;
  --ins-meets-soft: rgba(56, 152, 102, 0.13);
  --ins-na: #6d665d;
  --ins-na-glyph: #8c867c;
  --ins-na-soft: rgba(140, 134, 124, 0.13);
  --ins-info: #1e6da0;
  --ins-info-glyph: #438dc3;
  --ins-info-soft: rgba(67, 141, 195, 0.13);
  --ins-mark: #fff1c2;
  --deal-teal: #439489;
  --deal-plum: #9a73ad;
  --deal-sky: #508dbc;
  --deal-sand: #a78040;
  --deal-rose: #be7180;
  --deal-moss: #769051;
  --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: #aa465a;
  --sev-critical-glyph: #ce6578;
  --sev-critical-soft: rgba(206, 101, 120, 0.13);
  --sev-high: #ab4a1a;
  --sev-high-glyph: #d06b3e;
  --sev-high-soft: rgba(208, 107, 62, 0.13);
  --sev-medium: #8a5e10;
  --sev-medium-glyph: #b27c1e;
  --sev-medium-soft: rgba(178, 124, 30, 0.13);
  --sev-low: #5d6877;
  --sev-low-glyph: #7c8797;
  --sev-low-soft: rgba(124, 135, 151, 0.13);
  --ok: #017748;
  --ok-glyph: #389866;
  --ok-soft: rgba(56, 152, 102, 0.13);
  --warn: #9b5610;
  --warn-glyph: #c7721f;
  --warn-soft: rgba(199, 114, 31, 0.13);
  --party-a: #0f6a63;
  --party-a-soft: rgba(15, 106, 99, 0.1);
  --party-b: #6d28d9;
  --party-b-soft: rgba(109, 40, 217, 0.1);
  --ins-short: #aa465a;
  --ins-short-glyph: #ce6578;
  --ins-short-soft: rgba(206, 101, 120, 0.13);
  --ins-partly: #98580b;
  --ins-partly-glyph: #be762a;
  --ins-partly-soft: rgba(190, 118, 42, 0.13);
  --ins-eye: #7059ad;
  --ins-eye-glyph: #8f78cf;
  --ins-eye-soft: rgba(143, 120, 207, 0.13);
  --ins-absent: #58697b;
  --ins-absent-glyph: #77889c;
  --ins-absent-soft: rgba(119, 136, 156, 0.13);
  --ins-meets: #017748;
  --ins-meets-glyph: #389866;
  --ins-meets-soft: rgba(56, 152, 102, 0.13);
  --ins-na: #6d665d;
  --ins-na-glyph: #8c867c;
  --ins-na-soft: rgba(140, 134, 124, 0.13);
  --ins-info: #1c6c9f;
  --ins-info-glyph: #438dc3;
  --ins-info-soft: rgba(67, 141, 195, 0.13);
  --ins-mark: #fff1c2;
  --deal-teal: #439489;
  --deal-plum: #9a73ad;
  --deal-sky: #4f8cbb;
  --deal-sand: #a78040;
  --deal-rose: #be7180;
  --deal-moss: #748f4f;
  --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: #a23f53;
  --sev-critical-glyph: #c75f72;
  --sev-critical-soft: rgba(199, 95, 114, 0.13);
  --sev-high: #a3430f;
  --sev-high-glyph: #c86437;
  --sev-high-soft: rgba(200, 100, 55, 0.13);
  --sev-medium: #835802;
  --sev-medium-glyph: #aa7512;
  --sev-medium-soft: rgba(170, 117, 18, 0.13);
  --sev-low: #566170;
  --sev-low-glyph: #758090;
  --sev-low-soft: rgba(117, 128, 144, 0.13);
  --ok: #0d6f44;
  --ok-glyph: #2f915f;
  --ok-soft: rgba(47, 145, 95, 0.13);
  --warn: #934f02;
  --warn-glyph: #bf6b13;
  --warn-soft: rgba(191, 107, 19, 0.13);
  --party-a: #13625c;
  --party-a-soft: rgba(19, 98, 92, 0.1);
  --party-b: #6d28d9;
  --party-b-soft: rgba(109, 40, 217, 0.1);
  --ins-short: #a23f53;
  --ins-short-glyph: #c75f72;
  --ins-short-soft: rgba(199, 95, 114, 0.13);
  --ins-partly: #8d5312;
  --ins-partly-glyph: #b66f21;
  --ins-partly-soft: rgba(182, 111, 33, 0.13);
  --ins-eye: #6a52a5;
  --ins-eye-glyph: #8972c8;
  --ins-eye-soft: rgba(137, 114, 200, 0.13);
  --ins-absent: #516274;
  --ins-absent-glyph: #718296;
  --ins-absent-soft: rgba(113, 130, 150, 0.13);
  --ins-meets: #0d6f44;
  --ins-meets-glyph: #2f915f;
  --ins-meets-soft: rgba(47, 145, 95, 0.13);
  --ins-na: #665f56;
  --ins-na-glyph: #857e75;
  --ins-na-soft: rgba(133, 126, 117, 0.13);
  --ins-info: #136698;
  --ins-info-glyph: #3b86bb;
  --ins-info-soft: rgba(59, 134, 187, 0.13);
  --ins-mark: #fff1c2;
  --deal-teal: #3c8d82;
  --deal-plum: #9871aa;
  --deal-sky: #4885b3;
  --deal-sand: #a07939;
  --deal-rose: #b66a79;
  --deal-moss: #6d8848;
  --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: #a84358;
  --sev-critical-glyph: #cc6477;
  --sev-critical-soft: rgba(204, 100, 119, 0.13);
  --sev-high: #a94816;
  --sev-high-glyph: #cd693c;
  --sev-high-soft: rgba(205, 105, 60, 0.13);
  --sev-medium: #885c0c;
  --sev-medium-glyph: #af791a;
  --sev-medium-soft: rgba(175, 121, 26, 0.13);
  --sev-low: #5a6674;
  --sev-low-glyph: #7b8696;
  --sev-low-soft: rgba(123, 134, 150, 0.13);
  --ok: #167448;
  --ok-glyph: #359664;
  --ok-soft: rgba(53, 150, 100, 0.13);
  --warn: #98540c;
  --warn-glyph: #c5701c;
  --warn-soft: rgba(197, 112, 28, 0.13);
  --party-a: #0a6861;
  --party-a-soft: rgba(10, 104, 97, 0.1);
  --party-b: #6d28d9;
  --party-b-soft: rgba(109, 40, 217, 0.1);
  --ins-short: #a84358;
  --ins-short-glyph: #cc6477;
  --ins-short-soft: rgba(204, 100, 119, 0.13);
  --ins-partly: #955606;
  --ins-partly-glyph: #bc7427;
  --ins-partly-soft: rgba(188, 116, 39, 0.13);
  --ins-eye: #6e57aa;
  --ins-eye-glyph: #8d77ce;
  --ins-eye-soft: rgba(141, 119, 206, 0.13);
  --ins-absent: #566679;
  --ins-absent-glyph: #76879b;
  --ins-absent-soft: rgba(118, 135, 155, 0.13);
  --ins-meets: #167448;
  --ins-meets-glyph: #359664;
  --ins-meets-soft: rgba(53, 150, 100, 0.13);
  --ins-na: #6a645a;
  --ins-na-glyph: #8b847b;
  --ins-na-soft: rgba(139, 132, 123, 0.13);
  --ins-info: #1a6a9d;
  --ins-info-glyph: #408bc0;
  --ins-info-soft: rgba(64, 139, 192, 0.13);
  --ins-mark: #fff1c2;
  --deal-teal: #419187;
  --deal-plum: #9a73ad;
  --deal-sky: #4d8ab9;
  --deal-sand: #a57e3e;
  --deal-rose: #ba6e7d;
  --deal-moss: #738e4e;
  --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: #9a374d;
  --sev-critical-glyph: #bd576a;
  --sev-critical-soft: rgba(189, 87, 106, 0.13);
  --sev-high: #963f12;
  --sev-high-glyph: #be5c2e;
  --sev-high-soft: rgba(190, 92, 46, 0.13);
  --sev-medium: #79520a;
  --sev-medium-glyph: #a06f1b;
  --sev-medium-soft: rgba(160, 111, 27, 0.13);
  --sev-low: #4f5a69;
  --sev-low-glyph: #6e7989;
  --sev-low-soft: rgba(110, 121, 137, 0.13);
  --ok: #12673f;
  --ok-glyph: #258958;
  --ok-soft: rgba(37, 137, 88, 0.13);
  --warn: #884a0a;
  --warn-glyph: #b2651a;
  --warn-soft: rgba(178, 101, 26, 0.13);
  --party-a: #065c55;
  --party-a-soft: rgba(6, 92, 85, 0.1);
  --party-b: #671cd1;
  --party-b-soft: rgba(103, 28, 209, 0.1);
  --ins-short: #9a374d;
  --ins-short-glyph: #bd576a;
  --ins-short-soft: rgba(189, 87, 106, 0.13);
  --ins-partly: #854c05;
  --ins-partly-glyph: #ad6714;
  --ins-partly-soft: rgba(173, 103, 20, 0.13);
  --ins-eye: #634b9e;
  --ins-eye-glyph: #806abf;
  --ins-eye-soft: rgba(128, 106, 191, 0.13);
  --ins-absent: #4b5b6d;
  --ins-absent-glyph: #697a8d;
  --ins-absent-soft: rgba(105, 122, 141, 0.13);
  --ins-meets: #12673f;
  --ins-meets-glyph: #258958;
  --ins-meets-soft: rgba(37, 137, 88, 0.13);
  --ins-na: #5f594f;
  --ins-na-glyph: #7e776e;
  --ins-na-soft: rgba(126, 119, 110, 0.13);
  --ins-info: #025d90;
  --ins-info-glyph: #327eb2;
  --ins-info-soft: rgba(50, 126, 178, 0.13);
  --ins-mark: #fff1c2;
  --deal-teal: #33857b;
  --deal-plum: #906aa3;
  --deal-sky: #417dac;
  --deal-sand: #987231;
  --deal-rose: #ad6271;
  --deal-moss: #678041;
  --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: #e06d80;
  --sev-critical-glyph: #e06d80;
  --sev-critical-soft: rgba(224, 109, 128, 0.16);
  --sev-high: #d9764c;
  --sev-high-glyph: #d9764c;
  --sev-high-soft: rgba(217, 118, 76, 0.16);
  --sev-medium: #be8728;
  --sev-medium-glyph: #be8728;
  --sev-medium-soft: rgba(190, 135, 40, 0.16);
  --sev-low: #8f9cb0;
  --sev-low-glyph: #8f9cb0;
  --sev-low-soft: rgba(143, 156, 176, 0.16);
  --ok: #3fae72;
  --ok-glyph: #3fae72;
  --ok-soft: rgba(63, 174, 114, 0.16);
  --warn: #cf7d2c;
  --warn-glyph: #cf7d2c;
  --warn-soft: rgba(207, 125, 44, 0.16);
  --party-a: #3fd1bb;
  --party-a-soft: rgba(63, 209, 187, 0.13);
  --party-b: #c4a1ff;
  --party-b-soft: rgba(196, 161, 255, 0.13);
  --ins-short: #e06d80;
  --ins-short-glyph: #e06d80;
  --ins-short-soft: rgba(224, 109, 128, 0.16);
  --ins-partly: #d98a3e;
  --ins-partly-glyph: #d98a3e;
  --ins-partly-soft: rgba(217, 138, 62, 0.16);
  --ins-eye: #9b84dd;
  --ins-eye-glyph: #9b84dd;
  --ins-eye-soft: rgba(155, 132, 221, 0.16);
  --ins-absent: #8a9db5;
  --ins-absent-glyph: #8a9db5;
  --ins-absent-soft: rgba(138, 157, 181, 0.16);
  --ins-meets: #3fae72;
  --ins-meets-glyph: #3fae72;
  --ins-meets-soft: rgba(63, 174, 114, 0.16);
  --ins-na: #a39a8c;
  --ins-na-glyph: #a39a8c;
  --ins-na-soft: rgba(163, 154, 140, 0.16);
  --ins-info: #5aa6dd;
  --ins-info-glyph: #5aa6dd;
  --ins-info-soft: rgba(90, 166, 221, 0.16);
  --ins-mark: rgba(255, 214, 102, 0.22);
  --deal-teal: #5fb3a7;
  --deal-plum: #b48dc6;
  --deal-sky: #7ab3e0;
  --deal-sand: #d2ae72;
  --deal-rose: #dc95a3;
  --deal-moss: #9bb576;
  --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: #e16e81;
  --sev-critical-glyph: #e06d80;
  --sev-critical-soft: rgba(224, 109, 128, 0.16);
  --sev-high: #da774d;
  --sev-high-glyph: #d9764c;
  --sev-high-soft: rgba(217, 118, 76, 0.16);
  --sev-medium: #be8728;
  --sev-medium-glyph: #be8728;
  --sev-medium-soft: rgba(190, 135, 40, 0.16);
  --sev-low: #8f9cb0;
  --sev-low-glyph: #8f9cb0;
  --sev-low-soft: rgba(143, 156, 176, 0.16);
  --ok: #3fae72;
  --ok-glyph: #3fae72;
  --ok-soft: rgba(63, 174, 114, 0.16);
  --warn: #d07e2e;
  --warn-glyph: #cf7d2c;
  --warn-soft: rgba(207, 125, 44, 0.16);
  --party-a: #3fd1bb;
  --party-a-soft: rgba(63, 209, 187, 0.13);
  --party-b: #c4a1ff;
  --party-b-soft: rgba(196, 161, 255, 0.13);
  --ins-short: #e16e81;
  --ins-short-glyph: #e06d80;
  --ins-short-soft: rgba(224, 109, 128, 0.16);
  --ins-partly: #d98a3e;
  --ins-partly-glyph: #d98a3e;
  --ins-partly-soft: rgba(217, 138, 62, 0.16);
  --ins-eye: #9b84dd;
  --ins-eye-glyph: #9b84dd;
  --ins-eye-soft: rgba(155, 132, 221, 0.16);
  --ins-absent: #8a9db5;
  --ins-absent-glyph: #8a9db5;
  --ins-absent-soft: rgba(138, 157, 181, 0.16);
  --ins-meets: #3fae72;
  --ins-meets-glyph: #3fae72;
  --ins-meets-soft: rgba(63, 174, 114, 0.16);
  --ins-na: #a39a8c;
  --ins-na-glyph: #a39a8c;
  --ins-na-soft: rgba(163, 154, 140, 0.16);
  --ins-info: #5aa6dd;
  --ins-info-glyph: #5aa6dd;
  --ins-info-soft: rgba(90, 166, 221, 0.16);
  --ins-mark: rgba(255, 214, 102, 0.22);
  --deal-teal: #5fb3a7;
  --deal-plum: #b48dc6;
  --deal-sky: #7ab3e0;
  --deal-sand: #d2ae72;
  --deal-rose: #dc95a3;
  --deal-moss: #9bb576;
  --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: #e06d80;
    --sev-critical-glyph: #e06d80;
    --sev-critical-soft: rgba(224, 109, 128, 0.16);
    --sev-high: #d9764c;
    --sev-high-glyph: #d9764c;
    --sev-high-soft: rgba(217, 118, 76, 0.16);
    --sev-medium: #be8728;
    --sev-medium-glyph: #be8728;
    --sev-medium-soft: rgba(190, 135, 40, 0.16);
    --sev-low: #8f9cb0;
    --sev-low-glyph: #8f9cb0;
    --sev-low-soft: rgba(143, 156, 176, 0.16);
    --ok: #3fae72;
    --ok-glyph: #3fae72;
    --ok-soft: rgba(63, 174, 114, 0.16);
    --warn: #cf7d2c;
    --warn-glyph: #cf7d2c;
    --warn-soft: rgba(207, 125, 44, 0.16);
    --party-a: #3fd1bb;
    --party-a-soft: rgba(63, 209, 187, 0.13);
    --party-b: #c4a1ff;
    --party-b-soft: rgba(196, 161, 255, 0.13);
    --ins-short: #e06d80;
    --ins-short-glyph: #e06d80;
    --ins-short-soft: rgba(224, 109, 128, 0.16);
    --ins-partly: #d98a3e;
    --ins-partly-glyph: #d98a3e;
    --ins-partly-soft: rgba(217, 138, 62, 0.16);
    --ins-eye: #9b84dd;
    --ins-eye-glyph: #9b84dd;
    --ins-eye-soft: rgba(155, 132, 221, 0.16);
    --ins-absent: #8a9db5;
    --ins-absent-glyph: #8a9db5;
    --ins-absent-soft: rgba(138, 157, 181, 0.16);
    --ins-meets: #3fae72;
    --ins-meets-glyph: #3fae72;
    --ins-meets-soft: rgba(63, 174, 114, 0.16);
    --ins-na: #a39a8c;
    --ins-na-glyph: #a39a8c;
    --ins-na-soft: rgba(163, 154, 140, 0.16);
    --ins-info: #5aa6dd;
    --ins-info-glyph: #5aa6dd;
    --ins-info-soft: rgba(90, 166, 221, 0.16);
    --ins-mark: rgba(255, 214, 102, 0.22);
    --deal-teal: #5fb3a7;
    --deal-plum: #b48dc6;
    --deal-sky: #7ab3e0;
    --deal-sand: #d2ae72;
    --deal-rose: #dc95a3;
    --deal-moss: #9bb576;
    --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: #8d2b42;
  --sev-critical-glyph: #b24d61;
  --sev-critical-soft: rgba(178, 77, 97, 0.13);
  --sev-high: #85370e;
  --sev-high-glyph: #b35223;
  --sev-high-soft: rgba(179, 82, 35, 0.13);
  --sev-medium: #6b4806;
  --sev-medium-glyph: #966509;
  --sev-medium-soft: rgba(150, 101, 9, 0.13);
  --sev-low: #454f5e;
  --sev-low-glyph: #636f7e;
  --sev-low-soft: rgba(99, 111, 126, 0.13);
  --ok: #0d5a37;
  --ok-glyph: #147f4e;
  --ok-soft: rgba(20, 127, 78, 0.13);
  --warn: #774005;
  --warn-glyph: #a65b05;
  --warn-soft: rgba(166, 91, 5, 0.13);
  --party-a: #02504a;
  --party-a-soft: rgba(2, 80, 74, 0.1);
  --party-b: #5914b8;
  --party-b-soft: rgba(89, 20, 184, 0.1);
  --ins-short: #8d2b42;
  --ins-short-glyph: #b24d61;
  --ins-short-soft: rgba(178, 77, 97, 0.13);
  --ins-partly: #754201;
  --ins-partly-glyph: #9f5f17;
  --ins-partly-soft: rgba(159, 95, 23, 0.13);
  --ins-eye: #584091;
  --ins-eye-glyph: #7760b5;
  --ins-eye-soft: rgba(119, 96, 181, 0.13);
  --ins-absent: #405062;
  --ins-absent-glyph: #5f7083;
  --ins-absent-soft: rgba(95, 112, 131, 0.13);
  --ins-meets: #0d5a37;
  --ins-meets-glyph: #147f4e;
  --ins-meets-soft: rgba(20, 127, 78, 0.13);
  --ins-na: #544e45;
  --ins-na-glyph: #756e65;
  --ins-na-soft: rgba(117, 110, 101, 0.13);
  --ins-info: #025380;
  --ins-info-glyph: #2774a7;
  --ins-info-soft: rgba(39, 116, 167, 0.13);
  --deal-teal: #267a70;
  --deal-plum: #876099;
  --deal-sky: #3673a0;
  --deal-sand: #8d6725;
  --deal-rose: #a25867;
  --deal-moss: #5e7738;
  --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: #8d2b42;
  --sev-critical-glyph: #b24d61;
  --sev-critical-soft: rgba(178, 77, 97, 0.13);
  --sev-high: #8a3401;
  --sev-high-glyph: #b35223;
  --sev-high-soft: rgba(179, 82, 35, 0.13);
  --sev-medium: #6b4806;
  --sev-medium-glyph: #966509;
  --sev-medium-soft: rgba(150, 101, 9, 0.13);
  --sev-low: #46505f;
  --sev-low-glyph: #65707f;
  --sev-low-soft: rgba(101, 112, 127, 0.13);
  --ok: #0f5b38;
  --ok-glyph: #147f4e;
  --ok-soft: rgba(20, 127, 78, 0.13);
  --warn: #794107;
  --warn-glyph: #a75c08;
  --warn-soft: rgba(167, 92, 8, 0.13);
  --party-a: #02504a;
  --party-a-soft: rgba(2, 80, 74, 0.1);
  --party-b: #5a16ba;
  --party-b-soft: rgba(90, 22, 186, 0.1);
  --ins-short: #8d2b42;
  --ins-short-glyph: #b24d61;
  --ins-short-soft: rgba(178, 77, 97, 0.13);
  --ins-partly: #764303;
  --ins-partly-glyph: #a45e01;
  --ins-partly-soft: rgba(164, 94, 1, 0.13);
  --ins-eye: #584091;
  --ins-eye-glyph: #7760b5;
  --ins-eye-soft: rgba(119, 96, 181, 0.13);
  --ins-absent: #415163;
  --ins-absent-glyph: #607184;
  --ins-absent-soft: rgba(96, 113, 132, 0.13);
  --ins-meets: #0f5b38;
  --ins-meets-glyph: #147f4e;
  --ins-meets-soft: rgba(20, 127, 78, 0.13);
  --ins-na: #544e45;
  --ins-na-glyph: #756e65;
  --ins-na-soft: rgba(117, 110, 101, 0.13);
  --ins-info: #025380;
  --ins-info-glyph: #2774a7;
  --ins-info-soft: rgba(39, 116, 167, 0.13);
  --deal-teal: #267a70;
  --deal-plum: #876099;
  --deal-sky: #3774a2;
  --deal-sand: #8e6927;
  --deal-rose: #a35968;
  --deal-moss: #5e7738;
  --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: #88263e;
  --sev-critical-glyph: #ad485c;
  --sev-critical-soft: rgba(173, 72, 92, 0.13);
  --sev-high: #813309;
  --sev-high-glyph: #af4e1e;
  --sev-high-soft: rgba(175, 78, 30, 0.13);
  --sev-medium: #64440d;
  --sev-medium-glyph: #8e6216;
  --sev-medium-soft: rgba(142, 98, 22, 0.13);
  --sev-low: #414c5a;
  --sev-low-glyph: #606b7a;
  --sev-low-soft: rgba(96, 107, 122, 0.13);
  --ok: #045632;
  --ok-glyph: #087a4a;
  --ok-soft: rgba(8, 122, 74, 0.13);
  --warn: #743d00;
  --warn-glyph: #9e5a16;
  --warn-soft: rgba(158, 90, 22, 0.13);
  --party-a: #0a4b46;
  --party-a-soft: rgba(10, 75, 70, 0.1);
  --party-b: #560bb4;
  --party-b-soft: rgba(86, 11, 180, 0.1);
  --ins-short: #88263e;
  --ins-short-glyph: #ad485c;
  --ins-short-soft: rgba(173, 72, 92, 0.13);
  --ins-partly: #6e3f09;
  --ins-partly-glyph: #9a5a10;
  --ins-partly-soft: rgba(154, 90, 16, 0.13);
  --ins-eye: #543b8c;
  --ins-eye-glyph: #735cb0;
  --ins-eye-soft: rgba(115, 92, 176, 0.13);
  --ins-absent: #3c4c5d;
  --ins-absent-glyph: #5b6c7f;
  --ins-absent-soft: rgba(91, 108, 127, 0.13);
  --ins-meets: #045632;
  --ins-meets-glyph: #087a4a;
  --ins-meets-soft: rgba(8, 122, 74, 0.13);
  --ins-na: #514a41;
  --ins-na-glyph: #706960;
  --ins-na-soft: rgba(112, 105, 96, 0.13);
  --ins-info: #0a4e78;
  --ins-info-glyph: #2270a4;
  --ins-info-soft: rgba(34, 112, 164, 0.13);
  --deal-teal: #22776d;
  --deal-plum: #825c94;
  --deal-sky: #326f9d;
  --deal-sand: #8a6421;
  --deal-rose: #9e5463;
  --deal-moss: #597233;
  --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: #88263e;
  --sev-critical-glyph: #ad485c;
  --sev-critical-soft: rgba(173, 72, 92, 0.13);
  --sev-high: #803207;
  --sev-high-glyph: #ae4d1d;
  --sev-high-soft: rgba(174, 77, 29, 0.13);
  --sev-medium: #64440d;
  --sev-medium-glyph: #8e6216;
  --sev-medium-soft: rgba(142, 98, 22, 0.13);
  --sev-low: #414c5a;
  --sev-low-glyph: #606b7a;
  --sev-low-soft: rgba(96, 107, 122, 0.13);
  --ok: #045632;
  --ok-glyph: #087a4a;
  --ok-soft: rgba(8, 122, 74, 0.13);
  --warn: #703d0c;
  --warn-glyph: #9d5814;
  --warn-soft: rgba(157, 88, 20, 0.13);
  --party-a: #0a4b46;
  --party-a-soft: rgba(10, 75, 70, 0.1);
  --party-b: #560bb4;
  --party-b-soft: rgba(86, 11, 180, 0.1);
  --ins-short: #88263e;
  --ins-short-glyph: #ad485c;
  --ins-short-soft: rgba(173, 72, 92, 0.13);
  --ins-partly: #6e3f09;
  --ins-partly-glyph: #9a5a10;
  --ins-partly-soft: rgba(154, 90, 16, 0.13);
  --ins-eye: #543b8c;
  --ins-eye-glyph: #735cb0;
  --ins-eye-soft: rgba(115, 92, 176, 0.13);
  --ins-absent: #3c4c5d;
  --ins-absent-glyph: #5b6c7f;
  --ins-absent-soft: rgba(91, 108, 127, 0.13);
  --ins-meets: #045632;
  --ins-meets-glyph: #087a4a;
  --ins-meets-soft: rgba(8, 122, 74, 0.13);
  --ins-na: #514a41;
  --ins-na-glyph: #706960;
  --ins-na-soft: rgba(112, 105, 96, 0.13);
  --ins-info: #0a4e78;
  --ins-info-glyph: #216fa2;
  --ins-info-soft: rgba(33, 111, 162, 0.13);
  --deal-teal: #20766c;
  --deal-plum: #825c94;
  --deal-sky: #326f9d;
  --deal-sand: #886320;
  --deal-rose: #9e5463;
  --deal-moss: #597233;
  --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: #801e37;
  --sev-critical-glyph: #a64257;
  --sev-critical-soft: rgba(166, 66, 87, 0.13);
  --sev-high: #752f09;
  --sev-high-glyph: #a74715;
  --sev-high-soft: rgba(167, 71, 21, 0.13);
  --sev-medium: #5d3e03;
  --sev-medium-glyph: #875b09;
  --sev-medium-soft: rgba(135, 91, 9, 0.13);
  --sev-low: #3a4552;
  --sev-low-glyph: #596473;
  --sev-low-soft: rgba(89, 100, 115, 0.13);
  --ok: #094f2f;
  --ok-glyph: #147247;
  --ok-soft: rgba(20, 114, 71, 0.13);
  --warn: #683702;
  --warn-glyph: #975309;
  --warn-soft: rgba(151, 83, 9, 0.13);
  --party-a: #0a443f;
  --party-a-soft: rgba(10, 68, 63, 0.1);
  --party-b: #4e0ca3;
  --party-b-soft: rgba(78, 12, 163, 0.1);
  --ins-short: #801e37;
  --ins-short-glyph: #a64257;
  --ins-short-soft: rgba(166, 66, 87, 0.13);
  --ins-partly: #683900;
  --ins-partly-glyph: #935401;
  --ins-partly-soft: rgba(147, 84, 1, 0.13);
  --ins-eye: #4d3484;
  --ins-eye-glyph: #6d56a9;
  --ins-eye-soft: rgba(109, 86, 169, 0.13);
  --ins-absent: #364658;
  --ins-absent-glyph: #556578;
  --ins-absent-soft: rgba(85, 101, 120, 0.13);
  --ins-meets: #094f2f;
  --ins-meets-glyph: #147247;
  --ins-meets-soft: rgba(20, 114, 71, 0.13);
  --ins-na: #49433a;
  --ins-na-glyph: #696359;
  --ins-na-soft: rgba(105, 99, 89, 0.13);
  --ins-info: #0c486d;
  --ins-info-glyph: #19699c;
  --ins-info-soft: rgba(25, 105, 156, 0.13);
  --deal-teal: #187066;
  --deal-plum: #7b558d;
  --deal-sky: #2a6895;
  --deal-sand: #825d18;
  --deal-rose: #964d5d;
  --deal-moss: #536c2d;
  --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: #85233c;
  --sev-critical-glyph: #ac475b;
  --sev-critical-soft: rgba(172, 71, 91, 0.13);
  --sev-high: #7e3003;
  --sev-high-glyph: #ab4a1a;
  --sev-high-soft: rgba(171, 74, 26, 0.13);
  --sev-medium: #624209;
  --sev-medium-glyph: #8b6012;
  --sev-medium-soft: rgba(139, 96, 18, 0.13);
  --sev-low: #3f4a58;
  --sev-low-glyph: #5e6978;
  --sev-low-soft: rgba(94, 105, 120, 0.13);
  --ok: #025431;
  --ok-glyph: #017748;
  --ok-soft: rgba(1, 119, 72, 0.13);
  --warn: #6e3c0a;
  --warn-glyph: #9c5712;
  --warn-soft: rgba(156, 87, 18, 0.13);
  --party-a: #064944;
  --party-a-soft: rgba(6, 73, 68, 0.1);
  --party-b: #5404b2;
  --party-b-soft: rgba(84, 4, 178, 0.1);
  --ins-short: #85233c;
  --ins-short-glyph: #ac475b;
  --ins-short-soft: rgba(172, 71, 91, 0.13);
  --ins-partly: #6c3e07;
  --ins-partly-glyph: #99590d;
  --ins-partly-soft: rgba(153, 89, 13, 0.13);
  --ins-eye: #523989;
  --ins-eye-glyph: #7059ad;
  --ins-eye-soft: rgba(112, 89, 173, 0.13);
  --ins-absent: #3a4a5b;
  --ins-absent-glyph: #596a7d;
  --ins-absent-soft: rgba(89, 106, 125, 0.13);
  --ins-meets: #025431;
  --ins-meets-glyph: #017748;
  --ins-meets-soft: rgba(1, 119, 72, 0.13);
  --ins-na: #4e483f;
  --ins-na-glyph: #6e675e;
  --ins-na-soft: rgba(110, 103, 94, 0.13);
  --ins-info: #064c75;
  --ins-info-glyph: #1f6ea1;
  --ins-info-soft: rgba(31, 110, 161, 0.13);
  --deal-teal: #1d7369;
  --deal-plum: #7f5992;
  --deal-sky: #2f6d9a;
  --deal-sand: #87621e;
  --deal-rose: #9b5261;
  --deal-moss: #577031;
  --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: #781531;
  --sev-critical-glyph: #9e3b50;
  --sev-critical-soft: rgba(158, 59, 80, 0.13);
  --sev-high: #692a08;
  --sev-high-glyph: #9e3e06;
  --sev-high-soft: rgba(158, 62, 6, 0.13);
  --sev-medium: #553805;
  --sev-medium-glyph: #7d5510;
  --sev-medium-soft: rgba(125, 85, 16, 0.13);
  --sev-low: #343e4c;
  --sev-low-glyph: #535e6c;
  --sev-low-soft: rgba(83, 94, 108, 0.13);
  --ok: #0a472b;
  --ok-glyph: #046b40;
  --ok-soft: rgba(4, 107, 64, 0.13);
  --warn: #5f3204;
  --warn-glyph: #8b4d0e;
  --warn-soft: rgba(139, 77, 14, 0.13);
  --party-a: #003d38;
  --party-a-soft: rgba(0, 61, 56, 0.1);
  --party-b: #450b92;
  --party-b-soft: rgba(69, 11, 146, 0.1);
  --ins-short: #781531;
  --ins-short-glyph: #9e3b50;
  --ins-short-soft: rgba(158, 59, 80, 0.13);
  --ins-partly: #5d3301;
  --ins-partly-glyph: #884f0a;
  --ins-partly-soft: rgba(136, 79, 10, 0.13);
  --ins-eye: #472d7d;
  --ins-eye-glyph: #664fa1;
  --ins-eye-soft: rgba(102, 79, 161, 0.13);
  --ins-absent: #2f3f50;
  --ins-absent-glyph: #4e5f71;
  --ins-absent-soft: rgba(78, 95, 113, 0.13);
  --ins-meets: #0a472b;
  --ins-meets-glyph: #046b40;
  --ins-meets-soft: rgba(4, 107, 64, 0.13);
  --ins-na: #433d34;
  --ins-na-glyph: #625c53;
  --ins-na-soft: rgba(98, 92, 83, 0.13);
  --ins-info: #024166;
  --ins-info-glyph: #0d6295;
  --ins-info-soft: rgba(13, 98, 149, 0.13);
  --deal-teal: #0a695f;
  --deal-plum: #734e85;
  --deal-sky: #23618e;
  --deal-sand: #7b560e;
  --deal-rose: #8e4656;
  --deal-moss: #4c6425;
  --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: #fb8e9e;
  --sev-high: #f99368;
  --sev-medium: #dca44a;
  --sev-low: #a1afc3;
  --ok: #56c385;
  --warn: #f09b4e;
  --party-a: #4ddcc5;
  --party-a-soft: rgba(77, 220, 197, 0.13);
  --party-b: #d3befc;
  --party-b-soft: rgba(211, 190, 252, 0.13);
  --ins-short: #fb8e9e;
  --ins-partly: #ec9c51;
  --ins-eye: #b7a1fc;
  --ins-absent: #9cb0c8;
  --ins-meets: #56c385;
  --ins-na: #b6ad9e;
  --ins-info: #69b5ed;
  --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: #fb9daa;
  --sev-high: #fd9f78;
  --sev-medium: #e5ad53;
  --sev-low: #abb9cd;
  --ok: #60cc8e;
  --warn: #f9a457;
  --party-a: #5be8d1;
  --party-a-soft: rgba(91, 232, 209, 0.13);
  --party-b: #dbc9fe;
  --party-b-soft: rgba(219, 201, 254, 0.13);
  --ins-short: #fb9daa;
  --ins-partly: #f7a65b;
  --ins-eye: #beaaff;
  --ins-absent: #a5b9d1;
  --ins-meets: #60cc8e;
  --ins-na: #bfb5a7;
  --ins-info: #72bef7;
  --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: #fb8e9e;
    --sev-high: #f99368;
    --sev-medium: #dca44a;
    --sev-low: #a1afc3;
    --ok: #56c385;
    --warn: #f09b4e;
    --party-a: #4ddcc5;
    --party-a-soft: rgba(77, 220, 197, 0.13);
    --party-b: #d3befc;
    --party-b-soft: rgba(211, 190, 252, 0.13);
    --ins-short: #fb8e9e;
    --ins-partly: #ec9c51;
    --ins-eye: #b7a1fc;
    --ins-absent: #9cb0c8;
    --ins-meets: #56c385;
    --ins-na: #b6ad9e;
    --ins-info: #69b5ed;
    --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);
}
