/* CLM One "Casefile" design system. Precise, authoritative, and optimized
   for contract operations: deep-navy foundation, cobalt action, teal
   support, warm-neutral workspace, and archival status pills. */

/* Inter, self-hosted (#2460): variable font, one file per subset, so no request
   leaves for Google. Latin covers English and Dutch; latin-ext adds the rarer
   accented letters. Licence: theme/static/fonts/inter/OFL.txt. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter/inter-latin-ext.01ba6c2a184b.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter/inter-latin.65850a373e25.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* ── Brand palette — the source of truth for the rebrand. Everything
        below (forest/copper/seal aliases, ds-* tokens, inline base.html
        vars) resolves back to these. Deep navy foundation, cobalt action,
        teal support. ──────────────────────────────────────────────── */
  --color-brand-foundation: #0B1728;       /* Deep Navy — shell, nav, top-level headers */
  --color-brand-foundation-raised: #14213A; /* hover/raised panels within the navy shell */
  --color-brand-foundation-border: rgba(255, 255, 255, 0.08);
  --color-brand-primary: #168C8C;          /* Teal-green — primary action */
  --color-brand-primary-hover: #12706F;
  --color-brand-primary-pressed: #0E5B5A;
  --color-brand-primary-subtle: #E3F5F4;   /* light selected background */
  --color-brand-primary-disabled: #8AC6C4; /* desaturated teal, reduced contrast by design */
  --color-interaction-secondary: #168C8C;  /* Teal — secondary interaction & navigation */
  --color-interaction-secondary-hover: #12706F;
  --color-interaction-secondary-subtle: #E3F5F4;
  --color-surface-page: #F7F9FC;           /* Cool operational canvas — workspace background */
  --color-surface-card: #FFFFFF;           /* cards, modals, form panels, tables */
  --color-surface-canvas-cool: #F7F9FC;    /* expressive dashboards and command surfaces */
  --color-surface-soft: #F3F6F8;           /* setup rows and low-emphasis grouped actions */
  --color-surface-soft-hover: #EBF3F7;
  /* Warm paper — the public website and landing canvas (owner decision
     2026-10-24, Refs #775). The product workspace stays on the cool canvas.
     White cards sit on it; secondary text uses the warm role (4.79:1 on the
     deep band, where the legacy slate is 4.18:1). */
  --color-surface-warm: #F7F5F0;
  --color-surface-warm-deep: #EFEBE3;
  --color-border-warm: #E3DDD2;
  --color-text-secondary-warm: #5D677A;
  --color-text-attention-warm: #8D6018;   /* attention text on warm paper and the amber tint (the concept's light value) */
  /* Warm well and hairline: transactional e-mail (email_layout.py) and the
     public pages. The product workspace no longer uses them. */
  --color-surface-warm-well: #F5F3EF;
  --color-border-warm-hairline: #EEEBE5;
  /* Neutral workspace (owner 2026-11-05, #1591): the light new design's
     default background ("Linen") maps its shell, page, lines, soft fills and
     wells onto these, replacing the warm ivory. Cards stay white. */
  --color-surface-neutral-page: #F7F6F3;
  --color-surface-neutral-shell: #FAF9F7;   /* sidebar: a step lighter than the canvas, warm for evening use */
  --color-surface-neutral-hairline: #EEECE8; /* row lines inside a card */
  --color-surface-neutral-soft: #F1F0EC;    /* hover and quiet fills */
  --color-surface-neutral-soft-hover: #EAE8E3;
  --color-surface-neutral-well: #F3F2EE;
  --color-border-neutral: #E6E4DF;          /* section edge, panel line */
  --color-border-neutral-strong: #D6D3CC;   /* filter chips, quiet controls */
  --color-text-primary-neutral: #172235;
  --color-text-secondary-neutral: #596579;  /* 4.8:1+ on the canvas, sidebar and tints */
  --color-text-strong-neutral: #334155;     /* navigation labels, table column headers */
  /* Muted Raspberry (owner 2026-11-06, #1629): the raspberry accent's light
     mode. Raspberry action, Linen canvas, white cards, the neutral sidebar.
     Contrast: white on raspberry 6.1:1, raspberry on Linen 5.7:1 and on its
     tint 5.2:1. The soft accent is 2.0:1 on Linen, so it is never text on a
     light surface: outlines and the disabled fill only. */
  --color-brand-raspberry: #A63A71;
  --color-brand-raspberry-deep: #713851;    /* hover/pressed */
  --color-brand-raspberry-soft: #E89AC1;
  --color-brand-raspberry-tint: #FCE9F2;    /* selected background */
  --color-surface-linen: #F8F7F4;
  /* Slate (owner 2026-11-06): the slate accent's light mode, from CLM One's
     own navy family, so it never reads as a status colour (blue is info,
     green success, amber attention, red danger). Linear-style composition:
     a warm grey frame and sidebar around a near-white work surface, white
     cards, and a quiet grey selected item, so the cool slate stays the only
     colour. Contrast: white on slate 10.3:1, slate on the work surface
     9.9:1; on the frame navy text 13.9:1, secondary 5.0:1 (4.7:1 on hover,
     4.6:1 on the selected fill). The soft step is outlines and the disabled
     fill only, never text. */
  --color-brand-slate: #33415A;
  --color-brand-slate-deep: #232E42;        /* hover/pressed */
  --color-brand-slate-soft: #A7B1C2;
  --color-brand-slate-tint: #E8ECF2;        /* selected controls */
  --color-surface-slate-page: #FBFAF9;      /* work surface */
  --color-surface-slate-frame: #EDEBE7;     /* sidebar and frame */
  --color-surface-slate-frame-hover: #E8E5E0;
  --color-surface-slate-frame-selected: #E5E2DD;
  /* Warm stone sidebar and frame (owner 2026-11-06): a step deeper than Linen.
     Navy text 14.2:1, secondary 5.1:1, raspberry 5.3:1 on it; the selected
     item is filled raspberry with white text (6.1:1); hover keeps the
     secondary text at 4.6:1. */
  --color-surface-stone: #F2EEEA;
  --color-surface-stone-hover: #E8E2DC;
  --color-text-primary-navy: #142031;
  /* Navy sidebar (owner 2026-11-06, #1629): teal's light mode. The selected
     item is teal's approved fill #12706F with white text (5.9:1; 2.8:1
     against the navy), focus the dark-mode teal text (9.8:1 on navy). */
  --color-surface-sidebar-navy: #142031;
  --color-surface-sidebar-navy-raised: #1A2740; /* search field on the navy sidebar */
  --color-surface-sidebar-navy-hover: #213348;
  --color-text-sidebar-strong: #E9EFF7;     /* 14.2:1 on the sidebar */
  --color-text-sidebar: #C5D0DE;            /* nav labels */
  --color-text-sidebar-muted: #A7B4C6;      /* 7.8:1; 6.1:1 on hover */
  --color-text-sidebar-subtle: #8794A8;     /* 5.3:1 */
  --color-border-sidebar: #304257;
  --color-border-sidebar-strong: #3E5168;
  --color-focus-sidebar-navy: #7BD8CF;
  /* Sign-in and auth pages (PDR-0051 amendment, owner 2026-11-03, #1397):
     the lavender to sage-teal backdrop, the hairline between its columns and
     the lifted form card. Values moved here unchanged from components.css. */
  --gradient-auth-backdrop: linear-gradient(135deg, #ECE7F6 0%, #E6EAF2 50%, #E2EDEE 100%);
  --color-border-auth-divider: rgba(255, 255, 255, 0.7);
  --color-border-auth-card: rgba(23, 26, 31, 0.06);
  --shadow-auth-card: 0 1px 2px rgba(23, 26, 31, 0.05), 0 12px 32px rgba(23, 26, 31, 0.08);
  --color-text-secondary: #667085;         /* Slate Text */
  --color-border-default: #DCE2E8;         /* Border Grey */
  --color-border-soft: rgba(117, 135, 158, 0.18);
  --color-border-soft-muted: rgba(117, 135, 158, 0.14);
  --color-status-success: #27865B;
  --color-status-warning: #D99A2B;
  --color-status-error: #C4423D;
  --color-status-info: #3478C7;

  /* Semantic outlines are part of the status vocabulary. Components must
     pair these with the matching foreground/background role instead of
     inventing a page-local tint. */
  --color-status-success-border: #B9DFCE;
  --color-status-warning-border: #ECD8B3;
  --color-status-error-border: #EACAC7;
  --color-status-info-border: #CAD8EB;
  --color-status-special-border: #DED2E7;
  --color-status-neutral-border: #CDD2D8;

  /* Shared low-emphasis interaction surfaces. */
  --color-surface-card-hover: #FBFCFE;
  --color-surface-table-head: #FAFBFB;
  --color-surface-action-hover: #F7FBFA;

  /* Selected controls use one semantic treatment across tabs, filters,
     saved views, and segmented controls. Navigation chrome and data-row
     selection remain separate interaction patterns. */
  --color-control-selected-bg: var(--color-brand-primary-subtle);
  --color-control-selected-border: var(--color-brand-primary);
  --color-control-selected-text: var(--color-brand-primary-hover);
  --color-control-selected-marker: var(--color-brand-primary);

  /* Expressive workspace palette. These roles support feature surfaces,
     command dashboards, and setup guidance; they are not workflow status
     colours and must not replace the semantic status vocabulary below. */
  --color-shell-deep: #111827;
  --color-shell-raised: #1A2740;
  --color-shell-accent: #22B8E9;
  --color-shell-callout-border: rgba(91, 163, 255, 0.16);
  --color-feature-cyan: #0CB2E3;
  --color-feature-blue: #078EDC;
  --color-feature-cobalt: #0870D5;
  --color-feature-deep: #0B59C6;
  --color-feature-ring: #076FD3;
  --color-feature-action: #0879A9;
  --color-feature-action-soft: #EEF8FB;
  --color-feature-icon-soft: #E1F2F7;
  --color-state-clear: #1C7D67;
  --color-state-clear-dot: #3CC18F;
  --color-state-clear-soft: rgba(60, 193, 143, 0.11);
  --color-state-ready-dot: #78E3AE;
  --color-state-next-dot: #FFD37D;

  /* Composite fills are tokens because every consumer must preserve the
     same brand direction and contrast stops. */
  --gradient-feature: radial-gradient(circle at 76% 4%, rgba(30, 45, 203, 0.72) 0 18%, transparent 42%), linear-gradient(118deg, var(--color-feature-cyan) 0%, var(--color-feature-blue) 43%, var(--color-feature-cobalt) 70%, var(--color-feature-deep) 100%);
  --gradient-feature-clear: radial-gradient(circle at 78% 5%, rgba(24, 41, 196, 0.66) 0 16%, transparent 40%), linear-gradient(118deg, var(--color-feature-cyan) 0%, var(--color-feature-blue) 45%, var(--color-feature-cobalt) 72%, var(--color-feature-deep) 100%);
  /* A calmer feature treatment for information-dense operational surfaces.
     The cyan stop is mixed ten percent toward the adjacent blue role rather
     than introducing a page-owned colour. */
  --gradient-feature-calm: radial-gradient(circle at 76% 4%, rgba(30, 45, 203, 0.72) 0 18%, transparent 42%), linear-gradient(118deg, color-mix(in srgb, var(--color-feature-cyan) 90%, var(--color-feature-blue)) 0%, var(--color-feature-blue) 43%, var(--color-feature-cobalt) 70%, var(--color-feature-deep) 100%);
  --gradient-feature-clear-calm: radial-gradient(circle at 78% 5%, rgba(24, 41, 196, 0.66) 0 16%, transparent 40%), linear-gradient(118deg, color-mix(in srgb, var(--color-feature-cyan) 90%, var(--color-feature-blue)) 0%, var(--color-feature-blue) 45%, var(--color-feature-cobalt) 72%, var(--color-feature-deep) 100%);
  --gradient-shell-callout: linear-gradient(145deg, #172541, #111E34);
  --gradient-avatar-expressive: linear-gradient(145deg, #18A9E6, #1B67D9);
  --gradient-action-blue: linear-gradient(105deg, #087ED1, #0CA8DF);

  /* Brand and semantic primitives. */
  --clmone-deep-navy: #0B1728;
  --clmone-navy: #14213A;
  --clmone-teal: #168C8C;
  --clmone-white: #FFFFFF;
  --clmone-light-gray: var(--color-surface-page);
  --clmone-font: "Inter", "Segoe UI", system-ui, sans-serif;

  /* Teal-green is the primary action, selection, progress, and trust signal.
     Named "forest" for template-compatibility. */
  --casefile-forest-700: var(--color-brand-primary-hover);
  --casefile-forest-600: var(--color-brand-primary);
  --casefile-forest-500: var(--color-brand-primary);
  --casefile-forest-100: #C6E9E8;
  --casefile-forest-50: var(--color-brand-primary-subtle);
  --casefile-teal-700: var(--color-interaction-secondary-hover);
  --casefile-teal-600: var(--color-interaction-secondary);
  --casefile-teal-50: var(--color-interaction-secondary-subtle);
  --casefile-blue-700: #2A5FA0;
  --casefile-blue-600: var(--color-status-info);
  --casefile-blue-100: #D3E3F5;
  --casefile-blue-50: #E9F1FB;
  --casefile-amber-700: #A76500;
  --casefile-amber-600: var(--color-status-warning);
  --casefile-amber-50: #FBF1DE;
  --casefile-red-700: #A8342F;
  --casefile-red-600: var(--color-status-error);
  --casefile-red-50: #FBEAE9;
  --casefile-success-700: #1F6E49;
  --casefile-success-600: var(--color-status-success);
  --casefile-success-50: #E7F4EE;
  --casefile-plum-700: #654978;
  --casefile-plum-600: #765B8C;
  --casefile-plum-50: #F3EFF7;

  /* Logo sizing (existing, unchanged) */
  --clmone-logo-header-height: 40px;
  --clmone-logo-mobile-height: 32px;
  --clmone-mark-size: 36px;

  /* ── Ink ramp — navy-undertoned text & line colors.
        Replaces every gray-* / slate-* usage. ─────────────────────── */
  --ink-900: #171A1F;
  --ink-700: #353A42;
  --ink-600: #4B525C;
  --ink-500: var(--color-text-secondary);
  --ink-400: #8B929C;
  --ink-300: #B4BAC1;
  /* Compatibility ramp stops still referenced by legacy workflow and upload
     surfaces. Keep these canonical rather than allowing an undefined custom
     property to invalidate a colour or background declaration. */
  --ink-200: #D7DCE1;
  --ink-800: #252A31;
  --line-strong: #CDD2D8;
  --line: var(--color-border-default);
  --hairline: #ECEEF0;
  --paper: var(--color-surface-page);
  --card: var(--color-surface-card); /* raised working surfaces */
  --well: #F0F2F3;
  --shell: #FAFBFB;

  /* Legacy CTA aliases retained for template compatibility. */
  --copper-600: var(--color-brand-primary);
  --copper-700: var(--color-brand-primary);
  --copper-800: var(--color-brand-primary-hover);
  --copper-500: var(--color-brand-primary);
  --copper-400: #42A5A5;
  --copper-tint: var(--color-brand-primary-subtle);
  --copper-tint-dark: rgba(22, 140, 140, 0.14);

  /* Teal-green is the primary action, selection, progress, and trust signal. */
  --seal: var(--color-brand-primary);
  --seal-dark: var(--color-brand-primary-hover);
  --seal-bg: var(--color-brand-primary-subtle);
  --focus-ring: rgba(22, 140, 140, 0.28);
  --seal-bg-dark: rgba(22, 140, 140, 0.14);

  /* ── Status vocabulary — archival, desaturated, tinted-pill pairs.
        (bg = tint, fg = text) Never raw saturated hues. Semantic only:
        never reused for brand/decorative purposes. ───────────────── */
  --status-positive-fg: var(--casefile-success-700);
  --status-positive-bg: var(--casefile-success-50);
  --status-pending-fg: var(--casefile-amber-700);
  /* Document viewer and tracked-change redline palette (PDR-0038). */
  --doc-viewer-canvas: #E9EBEF;
  --doc-viewer-page-border: #D9DCE2;
  --doc-viewer-ink: #111827;
  --redline-paper-ink: #1A2330;
  --redline-insert-fg: #1C6B50;
  --redline-delete-fg: #A1362F;
  --redline-counterparty-fg: #8A4B00;
  --redline-counterparty-accent: #D67A0A;
  --redline-ai-fg: #5B3EA6;
  --redline-ai-accent: #785AC8;
  --redline-stale: #C0463A;
  --status-pending-bg: var(--casefile-amber-50);
  --status-progress-fg: var(--casefile-blue-700);
  --status-progress-bg: var(--casefile-blue-50);
  --status-danger-fg: var(--casefile-red-700);
  --status-danger-bg: var(--casefile-red-50);
  --status-neutral-fg: var(--ink-500);
  --status-neutral-bg: #EEF0F2;
  --status-special-fg: var(--casefile-plum-700);
  --status-special-bg: var(--casefile-plum-50);

  /* Numeric and tabular content uses stable, comparable figures. */
  --money-font-feature: "tnum" 1, "lnum" 1;    /* tabular numerals, always */
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --ledger-rule: var(--ink-300);        /* single rule above totals */
  --ledger-rule-final: var(--ink-400);  /* double rule under final totals */
  --debit: var(--status-danger-fg);
  --credit: var(--status-positive-fg);

  /* ── Type scale — Inter only. Weights 400/500/600, display 650.
        No 700+ in product chrome; authority comes from spacing and
        ink, not boldness. ─────────────────────────────────────────── */
  --font-sans: var(--clmone-font);
  --text-display: 650 24px/32px var(--font-sans);
  --text-title: 650 22px/28px var(--font-sans);
  --text-section: 650 18px/24px var(--font-sans);
  --text-heading: 600 15px/22px var(--font-sans);   /* panel titles */
  --text-subheading: 600 14px/20px var(--font-sans);
  --text-body: 400 14px/22px var(--font-sans);
  --text-small: 400 13px/18px var(--font-sans);
  --text-meta: 400 12px/16px var(--font-sans);      /* letter-spacing -0.01em */
  --text-eyebrow: 600 11px/16px var(--mono);        /* uppercase, +0.14em */
  --text-data: 400 13px/20px var(--font-sans);      /* table cells, tnum */

  /* Atomic typography values for compatibility APIs and CSS properties that
     cannot consume the font shorthand tokens above. */
  --font-size-eyebrow: 11px;
  --font-size-meta: 12px;
  --font-size-small: 13px;
  --font-size-body: 14px;
  --font-size-heading: 15px;
  --font-size-section: 18px;
  --font-size-title: 22px;
  --font-size-display: 24px;
  --line-height-tight: 1.2;
  --line-height-base: 1.45;

  /* Canonical spacing scale from the CMS case-study foundation. */
  --space-2: 2px;
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-14: 14px;
  --space-16: 16px;
  --space-18: 18px;
  --space-20: 20px;
  --space-24: 24px;
  --space-28: 28px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-56: 56px;
  --space-64: 64px;
  --space-80: 80px;
  --space-96: 96px;
  --space-120: 120px;

  --grid-columns: 12;
  --grid-margin: 24px;
  --grid-gutter: 16px;
  --page-max-width: 1480px;
  --page-padding-x: var(--space-24);
  --page-padding-top: var(--space-16);
  --page-padding-bottom: var(--space-40);
  --control-height: 36px;
  --shell-topbar-height: 72px;

  /* ── Shape — borders over shadows; precision over softness. ─────── */
  --radius-sm: 4px;
  --radius-control: 6px;   /* buttons, inputs, selects */
  --radius-card: 8px;
  --radius-panel: 8px;
  --radius-action: 8px;  /* prominent actions on expressive surfaces */
  --radius-subpanel: 10px;
  --radius-surface: 12px; /* spacious dashboard and context surfaces */
  --radius-premium-card: var(--space-16); /* shared launch, catalog, and operational cards */
  --radius-feature: 12px; /* branded feature surfaces */
  --radius-pill: 999px;    /* status pills and people chips ONLY */

  /* ── Elevation — ink-tinted, overlays only. Working surfaces use
        1px borders, never drop shadows. ──────────────────────────── */
  --shadow-card: none;
  --shadow-card-hover: none;
  --shadow-card-subtle: 0 1px 2px rgba(35, 55, 82, 0.04);
  --shadow-surface-expressive: 0 12px 34px rgba(35, 55, 82, 0.065);
  --shadow-feature: 0 18px 42px rgba(10, 114, 202, 0.22);
  --shadow-feature-clear: 0 18px 42px rgba(10, 114, 202, 0.20);
  --shadow-shell-edge: 14px 0 36px rgba(10, 24, 48, 0.08);
  --shadow-shell-callout: 0 18px 34px rgba(2, 12, 29, 0.22);
  --shadow-action-on-feature: 0 10px 24px rgba(3, 53, 123, 0.20);
  --shadow-avatar-expressive: 0 10px 22px rgba(12, 126, 217, 0.34);
  --shadow-overlay: 0 12px 32px rgba(23, 26, 31, 0.12), 0 2px 8px rgba(23, 26, 31, 0.06);
  --shadow-drawer: -16px 0 40px rgba(11, 19, 48, 0.12);

  /* ── Motion ──────────────────────────────────────────────────── */
  --duration-fast: 120ms;
  --duration-base: 180ms;
  --duration-slow: 240ms;
  --ease-standard: cubic-bezier(.2, 0, 0, 1);
  --transition-fast: var(--duration-fast) var(--ease-standard);
  --transition-base: var(--duration-base) var(--ease-standard);

  /* Spacious operational shell dimensions. Compact workspaces may retain
     their existing widths; these values are for command/dashboard layouts. */
  --shell-sidebar-width-spacious: 256px;
  --context-rail-width-spacious: 352px;
  --feature-surface-min-height: 336px;

  /* Data visualization palette. Charts are semantic consumers of the same
     brand and status vocabulary, not a separate colour system. */
  --chart-1: var(--seal);
  --chart-2: var(--color-status-info);
  --chart-3: var(--color-status-warning);
  --chart-4: var(--casefile-plum-600);
  --chart-5: var(--color-status-error);
  --chart-grid: var(--line);
  --chart-axis: var(--ink-500);

  /* ── Deprecated design-system adapter aliases ───────────────────
     Existing .dc-ds-* and compatibility consumers still use --ds-* names.
     These aliases remain functional until repository-wide usage reaches
     zero. New code must use the canonical token named on each line. */
  --ds-color-shell: var(--shell); /* deprecated: use --shell */
  --ds-color-shell-border: var(--line); /* deprecated: use --line */
  --ds-color-canvas: var(--paper); /* deprecated: use --paper */
  --ds-color-surface: var(--card); /* deprecated: use --card */
  --ds-color-surface-muted: var(--well); /* deprecated: use --well */
  --ds-color-surface-raised: var(--card); /* deprecated: use --card */
  --ds-color-border: var(--line); /* deprecated: use --line */
  --ds-color-border-strong: var(--line-strong); /* deprecated: use --line-strong */
  --ds-color-text: var(--ink-900); /* deprecated: use --ink-900 */
  --ds-color-text-secondary: var(--ink-500); /* deprecated: use --ink-500 */
  --ds-color-text-muted: var(--ink-400); /* deprecated: use --ink-400 */
  --ds-color-trust: var(--seal); /* deprecated: use --seal */
  --ds-color-trust-hover: var(--seal-dark); /* deprecated: use --seal-dark */
  --ds-color-trust-soft: var(--seal-bg); /* deprecated: use --seal-bg */
  --ds-color-action: var(--seal); /* deprecated: use --seal */
  --ds-color-action-hover: var(--seal-dark); /* deprecated: use --seal-dark */
  --ds-color-action-soft: var(--seal-bg); /* deprecated: use --seal-bg */
  --ds-color-progress: var(--status-progress-fg); /* deprecated: use --status-progress-fg */
  --ds-color-progress-soft: var(--status-progress-bg); /* deprecated: use --status-progress-bg */
  --ds-color-attention: var(--status-pending-fg); /* deprecated: use --status-pending-fg */
  --ds-color-attention-soft: var(--status-pending-bg); /* deprecated: use --status-pending-bg */
  --ds-color-danger: var(--status-danger-fg); /* deprecated: use --status-danger-fg */
  --ds-color-danger-soft: var(--status-danger-bg); /* deprecated: use --status-danger-bg */
  --ds-color-special: var(--status-special-fg); /* deprecated: use --status-special-fg */
  --ds-color-special-soft: var(--status-special-bg); /* deprecated: use --status-special-bg */
  --ds-color-success: var(--status-positive-fg); /* deprecated: use --status-positive-fg */
  --ds-color-success-soft: var(--status-positive-bg); /* deprecated: use --status-positive-bg */
  --ds-font-sans: var(--font-sans); /* deprecated: use --font-sans */
  --ds-font-serif: var(--font-sans); /* deprecated: product UI uses --font-sans */
  --ds-text-xs: var(--font-size-eyebrow); /* deprecated: use --font-size-eyebrow */
  --ds-text-sm: var(--font-size-meta); /* deprecated: use --font-size-meta */
  --ds-text-md: var(--font-size-body); /* deprecated: use --font-size-body */
  --ds-text-lg: var(--font-size-heading); /* deprecated: use --font-size-heading */
  --ds-text-xl: var(--font-size-section); /* deprecated: use --font-size-section */
  --ds-text-title: var(--font-size-display); /* deprecated: use --font-size-display */
  --ds-line-tight: var(--line-height-tight); /* deprecated: use --line-height-tight */
  --ds-line-base: var(--line-height-base); /* deprecated: use --line-height-base */
  --ds-space-1: var(--space-4); /* deprecated: use --space-4 */
  --ds-space-2: var(--space-8); /* deprecated: use --space-8 */
  --ds-space-3: var(--space-12); /* deprecated: use --space-12 */
  --ds-space-4: var(--space-16); /* deprecated: use --space-16 */
  --ds-space-5: var(--space-20); /* deprecated: use --space-20 */
  --ds-space-6: var(--space-24); /* deprecated: use --space-24 */
  --ds-space-8: var(--space-32); /* deprecated: use --space-32 */
  --ds-space-10: var(--space-40); /* deprecated: use --space-40 */
  --ds-space-16: var(--space-64); /* deprecated: use --space-64 */
  --ds-space-20: var(--space-80); /* deprecated: use --space-80 */
  --ds-space-24: var(--space-96); /* deprecated: use --space-96 */
  --ds-space-30: var(--space-120); /* deprecated: use --space-120 */
  --ds-grid-columns: var(--grid-columns); /* deprecated: use --grid-columns */
  --ds-grid-margin: var(--grid-margin); /* deprecated: use --grid-margin */
  --ds-grid-gutter: var(--grid-gutter); /* deprecated: use --grid-gutter */
  --ds-radius-sm: var(--radius-sm); /* deprecated: use --radius-sm */
  --ds-radius-md: var(--radius-control); /* deprecated: use --radius-control */
  --ds-radius-lg: var(--radius-card); /* deprecated: use --radius-card */
  --ds-radius-pill: var(--radius-pill); /* deprecated: use --radius-pill */
  --ds-shadow-hairline: var(--shadow-card); /* deprecated: use --shadow-card */
  --ds-focus-ring: 0 0 0 3px var(--focus-ring); /* deprecated: use --focus-ring */
  --ds-motion-fast: var(--duration-fast); /* deprecated: use --duration-fast */
  --ds-motion-base: var(--duration-base); /* deprecated: use --duration-base */
  --ds-motion-slow: var(--duration-slow); /* deprecated: use --duration-slow */
  --ds-ease-standard: var(--ease-standard); /* deprecated: use --ease-standard */
  --ds-chart-1: var(--chart-1); /* deprecated: use --chart-1 */
  --ds-chart-2: var(--chart-2); /* deprecated: use --chart-2 */
  --ds-chart-3: var(--chart-3); /* deprecated: use --chart-3 */
  --ds-chart-4: var(--chart-4); /* deprecated: use --chart-4 */
  --ds-chart-5: var(--chart-5); /* deprecated: use --chart-5 */
  --ds-chart-grid: var(--chart-grid); /* deprecated: use --chart-grid */
  --ds-chart-axis: var(--chart-axis); /* deprecated: use --chart-axis */
  --ds-page-max: var(--page-max-width); /* deprecated: use --page-max-width */
  --ds-page-x: var(--page-padding-x); /* deprecated: use --page-padding-x */
  --ds-page-top: var(--page-padding-top); /* deprecated: use --page-padding-top */
  --ds-page-bottom: var(--page-padding-bottom); /* deprecated: use --page-padding-bottom */
  --ds-control-height: var(--control-height); /* deprecated: use --control-height */
  --ds-surface-shadow: var(--shadow-card); /* deprecated: use --shadow-card */
  --ds-surface-shadow-hover: var(--shadow-card-hover); /* deprecated: use --shadow-card-hover */
}

/* Owner-requested reference composition, 18 October 2026.
   Shared relaxed-density values consumed by all authenticated work surfaces. */
:root {
  --workspace-sidebar-width: 256px;
  --workspace-header-height: 80px;
  --workspace-title: 650 30px/40px var(--font-sans);
  --workspace-section: 650 22px/28px var(--font-sans);
  --workspace-body: 400 16px/24px var(--font-sans);
  --workspace-label: 600 16px/24px var(--font-sans);
  --workspace-meta: 400 14px/20px var(--font-sans);
  --workspace-action-bg: #F0F3FF;
  --workspace-action-fg: #0968D9;
  --workspace-surface-border: #E1E6EE;
  --workspace-ink: #0B1424;
  --workspace-muted: #67748E;
  --workspace-teal: #008C91;
  --workspace-nav: #0F1827;
}

/* Laptop density follows available CSS pixels, never browser zoom. */
@media (min-width: 961px) and (max-width: 1536px), (min-width: 961px) and (max-height: 800px) {
  :root {
    --workspace-sidebar-width: 216px;
    --workspace-header-height: 64px;
    --workspace-title: 650 24px/32px var(--font-sans);
    --workspace-section: 650 18px/24px var(--font-sans);
    --workspace-body: 400 14px/20px var(--font-sans);
    --workspace-label: 600 14px/20px var(--font-sans);
    --workspace-meta: 400 13px/18px var(--font-sans);
  }
}

/* ── Approved CLM One concept (owner decision, 20 October 2026) ─────────
   docs/design-system/APPROVED_UI_CONCEPT_2026-10-20.md

   Appearance is two independent root attributes, read from the browser
   preference before first paint and never written back by a page load:

     <html data-theme="light|dark" data-accent="teal|purple|raspberry|slate">

   Only the accent roles below change with data-accent. Status, validation,
   document and feature roles keep their own meaning in every combination;
   dark mode gives them their own contrast values without inverting colour.
   Pages outside the concept preview keep the teal/light values until the
   migration is complete (html[data-ui-concept] marks a migrated surface). */
:root {
  --color-scheme: light;
  /* Accent roles: text, filled control, hover, text on the fill, tint,
     data-row selection and accent outline are distinct so one value never
     has to satisfy several contrast roles. */
  --color-accent-text: var(--color-brand-primary-hover);
  --color-accent-fill: var(--color-brand-primary);
  --color-accent-fill-hover: var(--color-brand-primary-hover);
  --color-on-accent: var(--clmone-white);
  /* Label on the filled danger button: white on the light-theme red, the dark
     shell on the light dark-theme red, 4.5:1 in every variant (#1799). */
  --color-on-danger: var(--clmone-white);
  --color-accent-tint: var(--color-brand-primary-subtle);
  --color-accent-selection: #EFF8F7;
  --color-accent-border: #B5D8D3;
  /* Boundary of an input, select or textarea: 3:1 against the control fill and
     the surfaces it sits on (WCAG 1.4.11). Hairline --line stays for panels. */
  --color-border-control: #7E8693;
  /* Filter chips are buttons named by their label, not text fields, so on
     migrated surfaces they take the quiet strong line instead (#1591).
     Classic keeps the control boundary. */
  --color-border-chip: var(--color-border-control);
  /* Shell composition roles: quiet shell behind an inset work surface. */
  --color-surface-shell: #F1F4F6;
  --color-surface-inset: var(--color-surface-page);
  --color-surface-hairline: #EAEFF3;
  --color-backdrop: rgba(11, 23, 40, 0.32);
  --shadow-surface-inset: 0 2px 7px rgba(11, 23, 40, 0.05);
  --shadow-popover: 0 8px 30px rgba(11, 23, 40, 0.13);
  --shadow-dialog: 0 20px 70px rgba(11, 23, 40, 0.13);
  /* Page title composition of the approved concept. */
  --text-page-title: 600 30px/38px var(--font-sans);
  --text-page-title-tracking: -0.035em;
  --text-panel-title: 600 19px/26px var(--font-sans);
  --text-panel-title-tracking: -0.02em;
}

/* Migrated surfaces use the approved light primary fill (#12706F); the
   brand teal (#168C8C) stays the identity in marks and status-free chrome. */
html[data-ui-concept] {
  --color-accent-fill: var(--color-brand-primary-hover);
  --color-accent-fill-hover: var(--color-brand-primary-pressed);
  --color-control-selected-text: var(--color-accent-text);
  --color-border-chip: var(--line-strong);
}
/* Light only: attention text reads at 4.5:1 on the inset surface and hovered
   rows too (the approved concept's amber text value). Scoped to the light mode
   so the dark value below is not outranked by this selector's specificity. */
html[data-ui-concept][data-theme="light"] {
  --casefile-amber-700: #8D6018;
  /* Secondary text reads at 4.5:1 on the tinted surfaces it sits on too
     (neutral and success badge fills, soft rows, code, the purple tint):
     the shared slate measured 4.35-4.42:1 there. 4.8:1 or more on every one. */
  --color-text-secondary: #5D677A;
  /* Default background (PDR-0051 option B, accepted 2026-10-24; retuned from
     warm ivory to neutral off-white by the owner 2026-11-05, #1591): light
     mode of the new design only. Dark mode and Classic keep the cool canvas.
     --color-surface-canvas-cool keeps its name; its light value is this page. */
  --color-surface-shell: var(--color-surface-neutral-shell);
  --color-surface-page: var(--color-surface-neutral-page);
  --color-surface-inset: var(--color-surface-neutral-page);
  --color-surface-canvas-cool: var(--color-surface-neutral-page);
  --color-surface-hairline: var(--color-surface-neutral-hairline);
  --color-surface-soft: var(--color-surface-neutral-soft);
  --color-surface-soft-hover: var(--color-surface-neutral-soft-hover);
  --well: var(--color-surface-neutral-well);
  --hairline: var(--color-surface-neutral-hairline);
  --color-border-default: var(--color-border-neutral);
  --line-strong: var(--color-border-neutral-strong);
  /* One primary text colour: concept-shell.css maps body --ink-900 to the
     foundation role, which on migrated light surfaces is text, never a fill. */
  --ink-900: var(--color-text-primary-neutral);
  --ink-700: var(--color-text-strong-neutral);
  --color-brand-foundation: var(--color-text-primary-neutral);
  --color-text-secondary: var(--color-text-secondary-neutral);
}
/* Purple on migrated light surfaces (owner 2026-11-05, #1591): one primary
   #5140B8 for fill and text (7.6:1 on white, 6.4:1 on its tint), a darker
   pressed/hover step and a lavender selected background. Teal is unchanged.
   The shell layers read the fill from --color-brand-primary-hover (teal's
   approved #12706F), so for purple that role carries the primary too. */
html[data-ui-concept][data-theme="light"][data-accent="purple"] {
  --color-brand-primary: #5140B8;
  --color-brand-primary-hover: #5140B8;
  --color-brand-primary-pressed: #43349E;
  --color-brand-primary-subtle: #EEEAFE;
  --color-interaction-secondary: #5140B8;
  --color-interaction-secondary-hover: #43349E;
  --color-interaction-secondary-subtle: #EEEAFE;
  --workspace-teal: #5140B8;
  --focus-ring: rgba(81, 64, 184, 0.3);
  --color-accent-text: #5140B8;
  --color-accent-fill: #5140B8;
  --color-accent-fill-hover: #43349E;
  --color-accent-tint: #EEEAFE;
  --color-accent-selection: #F6F4FE;
  --color-accent-border: #C9C1F0;
}
/* Raspberry on migrated light surfaces (owner 2026-11-06, #1629): a warm
   stone sidebar and frame (the navy one belongs to teal, see concept-shell.css),
   raspberry fill and text, the deep step for hover/pressed, the pink tint for selected controls, Linen canvas and navy
   text. Status roles are unchanged. As for purple, the shell layers read the
   fill from --color-brand-primary-hover, so that role carries the primary.
   Dark mode has its own raspberry values at the end of this file. */
html[data-ui-concept][data-theme="light"][data-accent="raspberry"] {
  --color-brand-primary: var(--color-brand-raspberry);
  --color-brand-primary-hover: var(--color-brand-raspberry);
  --color-brand-primary-pressed: var(--color-brand-raspberry-deep);
  --color-brand-primary-subtle: var(--color-brand-raspberry-tint);
  --color-brand-primary-disabled: var(--color-brand-raspberry-soft);
  --color-interaction-secondary: var(--color-brand-raspberry);
  --color-interaction-secondary-hover: var(--color-brand-raspberry-deep);
  --color-interaction-secondary-subtle: var(--color-brand-raspberry-tint);
  --casefile-forest-100: color-mix(in srgb, var(--color-brand-raspberry-soft) 40%, var(--clmone-white));
  --copper-400: var(--color-brand-raspberry-soft);
  --copper-tint-dark: rgba(166, 58, 113, 0.14);
  --seal-bg-dark: rgba(166, 58, 113, 0.14);
  --workspace-teal: var(--color-brand-raspberry);
  --focus-ring: var(--color-brand-raspberry);
  --color-accent-text: var(--color-brand-raspberry);
  --color-accent-fill: var(--color-brand-raspberry);
  --color-accent-fill-hover: var(--color-brand-raspberry-deep);
  --color-accent-tint: var(--color-brand-raspberry-tint);
  --color-accent-selection: color-mix(in srgb, var(--color-brand-raspberry-tint) 50%, var(--clmone-white));
  --color-accent-border: var(--color-brand-raspberry-soft);
  --color-surface-neutral-page: var(--color-surface-linen);
  --color-surface-neutral-shell: var(--color-surface-stone);
  --color-text-primary-neutral: var(--color-text-primary-navy);
}
/* Slate on migrated light surfaces (owner 2026-11-06): a warm grey sidebar
   and frame around a near-white work surface, slate fill and text, the deep step for hover/pressed and
   a cool grey tint for selected controls. Status roles are unchanged. As for
   purple, the shell layers read the fill from --color-brand-primary-hover.
   Dark mode has its own slate values at the end of this file. */
html[data-ui-concept][data-theme="light"][data-accent="slate"] {
  --color-brand-primary: var(--color-brand-slate);
  --color-brand-primary-hover: var(--color-brand-slate);
  --color-brand-primary-pressed: var(--color-brand-slate-deep);
  --color-brand-primary-subtle: var(--color-brand-slate-tint);
  --color-brand-primary-disabled: var(--color-brand-slate-soft);
  --color-interaction-secondary: var(--color-brand-slate);
  --color-interaction-secondary-hover: var(--color-brand-slate-deep);
  --color-interaction-secondary-subtle: var(--color-brand-slate-tint);
  --casefile-forest-100: color-mix(in srgb, var(--color-brand-slate-soft) 40%, var(--clmone-white));
  --copper-400: var(--color-brand-slate-soft);
  --copper-tint-dark: rgba(51, 65, 90, 0.12);
  --seal-bg-dark: rgba(51, 65, 90, 0.12);
  --workspace-teal: var(--color-brand-slate);
  --focus-ring: var(--color-brand-slate);
  --color-accent-text: var(--color-brand-slate);
  --color-accent-fill: var(--color-brand-slate);
  --color-accent-fill-hover: var(--color-brand-slate-deep);
  --color-accent-tint: var(--color-brand-slate-tint);
  --color-accent-selection: color-mix(in srgb, var(--color-brand-slate-tint) 50%, var(--clmone-white));
  --color-accent-border: var(--color-brand-slate-soft);
  --color-surface-neutral-page: var(--color-surface-slate-page);
  --color-surface-neutral-shell: var(--color-surface-slate-frame);
  --color-text-primary-neutral: var(--color-text-primary-navy);
}

/* ── Section surfaces (owner request 2026-11-02) ─────────────────────────
   Major content sections are distinct white cards on a quiet canvas instead
   of blending through divider lines. Thin dividers stay inside a card only.
   Consumed by global-shell/section-surfaces.css; rules of use in
   docs/design/DESIGN_SYSTEM.md "Section surfaces". Classic keeps its look:
   the :root values below reproduce the flat card on the work surface. */
:root {
  --color-surface-workspace: var(--color-surface-card);  /* canvas behind sections */
  --color-surface-section: var(--color-surface-card);    /* the section card */
  --color-border-section: var(--color-border-soft);
  --radius-section: var(--radius-surface);               /* 12px */
  --shadow-section: none;
  --space-section-gap: var(--space-20);                  /* between sections */
  --space-section-pad: var(--space-20);                  /* inside a section */
  --color-shadow-sticky-bar: rgb(0 0 0 / 0.14);          /* lift above a sticky action bar */
}
html[data-ui-concept] {
  --color-surface-workspace: var(--color-surface-page);
  --color-border-section: var(--color-surface-hairline);
  /* Quiet lift (owner 2026-11-05, #1591): the neutral hairline carries the
     edge, the shadow only separates the card from the canvas. */
  --shadow-section: 0 1px 2px rgba(15, 23, 42, 0.04), 0 2px 8px rgba(15, 23, 42, 0.04);
}
html[data-ui-concept][data-theme="light"] {
  --color-border-section: var(--color-border-neutral);
}
/* Dark: elevation reads as a lighter card on the darker shell canvas; the
   hairline carries the edge because shadows are invisible on navy. */
html[data-ui-concept][data-theme="dark"] {
  --color-surface-workspace: var(--color-surface-shell);
  --color-border-section: var(--line);
  --shadow-section: 0 1px 2px rgba(0, 0, 0, 0.28), 0 4px 14px rgba(0, 0, 0, 0.18);
}
/* The Background choice (Linen/Sage, 2026-11-02) was removed by the owner
   on 2026-11-06 (#1629): every light appearance uses its own default canvas. */
@media (min-width: 1440px) {
  :root { --space-section-gap: var(--space-24); --space-section-pad: var(--space-24); }
}
@media (max-width: 650px) {
  :root { --space-section-gap: var(--space-16); --space-section-pad: var(--space-16); }
}

/* Optional accent: purple. Only accent roles move. */
[data-accent="purple"] {
  --color-brand-primary: #5B4BCC;
  --color-brand-primary-hover: #493AAE;
  --color-brand-primary-pressed: #493AAE;
  --color-brand-primary-subtle: #EDE9FC;
  --color-brand-primary-disabled: #B4ABE6;
  --color-interaction-secondary: #5B4BCC;
  --color-interaction-secondary-hover: #493AAE;
  --color-interaction-secondary-subtle: #EDE9FC;
  --casefile-forest-100: #D9D2F7;
  --copper-400: #8C7FE0;
  --copper-tint-dark: rgba(91, 75, 204, 0.14);
  --seal-bg-dark: rgba(91, 75, 204, 0.14);
  --focus-ring: rgba(91, 75, 204, 0.3);
  --workspace-teal: #5B4BCC;
  --color-accent-text: #5B4BCC;
  --color-accent-fill: #5B4BCC;
  --color-accent-fill-hover: #493AAE;
  --color-accent-tint: #EDE9FC;
  --color-accent-selection: #F5F2FF;
  --color-accent-border: #CCC3ED;
}

/* Dark colour mode: navy surfaces with their own readable text, line and
   status values. Semantic meaning is unchanged; nothing is inverted. */
[data-theme="dark"] {
  --color-scheme: dark;
  --color-on-danger: var(--color-surface-shell);
  --color-surface-warm: var(--color-surface-page);
  --color-surface-warm-deep: var(--well);
  --color-border-warm: var(--line);
  --color-text-secondary-warm: var(--ink-500);
  --color-text-attention-warm: var(--casefile-amber-700);
  --color-surface-shell: #0B1728;
  --color-surface-page: #142438;
  --color-surface-card: #111F30;
  --color-surface-inset: #142438;
  --color-surface-canvas-cool: #142438;
  --color-surface-soft: #213348;
  --color-surface-soft-hover: #28405A;
  --color-surface-card-hover: #15253A;
  --color-surface-table-head: #15253A;
  --color-surface-action-hover: #172A40;
  --color-surface-hairline: #25364A;
  --color-text-secondary: #A7B4C6;
  --color-border-default: #304257;
  --color-border-control: #667690;
  --color-border-soft: rgba(167, 180, 198, 0.22);
  --color-border-soft-muted: rgba(167, 180, 198, 0.16);
  --color-brand-foundation: #E9EFF7;
  --color-brand-foundation-raised: #213348;
  --color-brand-foundation-border: rgba(233, 239, 247, 0.1);
  --color-status-success-border: #2F5A45;
  --color-status-warning-border: #5A4A2A;
  --color-status-error-border: #5E3335;
  --color-status-info-border: #2E4668;
  --color-status-special-border: #4A3D5E;
  --color-status-neutral-border: #3E5168;
  --clmone-light-gray: #142438;
  --ink-900: #E9EFF7;
  --ink-800: #DCE4EE;
  --ink-700: #C5D0DE;
  --ink-600: #B3BFD0;
  --ink-500: #A7B4C6;
  --ink-400: #8794A8;
  --ink-300: #5F6E85;
  --ink-200: #3E4E64;
  --line-strong: #3E5168;
  --line: #304257;
  --hairline: #25364A;
  --well: #182A3F;
  --shell: #0B1728;
  --casefile-success-700: #87CEA5;
  --casefile-success-50: #1B3A2E;
  --casefile-blue-700: #9ABCF4;
  --casefile-blue-100: #2E4668;
  --casefile-blue-50: #1E2F4D;
  --casefile-amber-700: #E9C483;
  --casefile-amber-50: #3D3020;
  --casefile-red-700: #F2A49E;
  --casefile-red-50: #432426;
  --casefile-plum-700: #D2BFE9;
  --casefile-plum-50: #352B45;
  --status-neutral-bg: #213348;
  --doc-viewer-canvas: #0B1728;
  --doc-viewer-page-border: #304257;
  --color-backdrop: rgba(3, 11, 22, 0.65);
  --shadow-surface-inset: 0 2px 7px rgba(0, 0, 0, 0.15);
  --shadow-popover: 0 8px 30px rgba(0, 0, 0, 0.4);
  --shadow-dialog: 0 20px 70px rgba(0, 0, 0, 0.4);
  --shadow-overlay: 0 12px 32px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-card-subtle: 0 1px 2px rgba(0, 0, 0, 0.2);
  --workspace-ink: #E9EFF7;
  --workspace-muted: #A7B4C6;
  --workspace-surface-border: #304257;
  --workspace-nav: #0B1728;
  --workspace-action-bg: #1E2F4D;
  --workspace-action-fg: #9ABCF4;
}

[data-theme="dark"],
[data-theme="dark"][data-accent="teal"] {
  --color-brand-primary: #55C7BB;
  --color-brand-primary-hover: #7EDBD1;
  --color-brand-primary-pressed: #7EDBD1;
  --color-brand-primary-subtle: #173C42;
  --color-brand-primary-disabled: #3B7A74;
  --color-interaction-secondary: #7BD8CF;
  --color-interaction-secondary-hover: #7EDBD1;
  --color-interaction-secondary-subtle: #173C42;
  --casefile-forest-100: #1F4D52;
  --copper-400: #55C7BB;
  --copper-tint-dark: rgba(123, 216, 207, 0.16);
  --seal-bg-dark: rgba(123, 216, 207, 0.16);
  --focus-ring: rgba(123, 216, 207, 0.38);
  --workspace-teal: #55C7BB;
  --color-accent-text: #7BD8CF;
  --color-accent-fill: #55C7BB;
  --color-accent-fill-hover: #7EDBD1;
  --color-on-accent: #072725;
  --color-accent-tint: #173C42;
  --color-accent-selection: #153239;
  --color-accent-border: #376B70;
}

[data-theme="dark"][data-accent="purple"] {
  --color-brand-primary: #B1A0F4;
  --color-brand-primary-hover: #C3B5FF;
  --color-brand-primary-pressed: #C3B5FF;
  --color-brand-primary-subtle: #343252;
  --color-brand-primary-disabled: #6B629C;
  --color-interaction-secondary: #C0B4FF;
  --color-interaction-secondary-hover: #C3B5FF;
  --color-interaction-secondary-subtle: #343252;
  --casefile-forest-100: #45406B;
  --copper-400: #B1A0F4;
  --copper-tint-dark: rgba(192, 180, 255, 0.16);
  --seal-bg-dark: rgba(192, 180, 255, 0.16);
  --focus-ring: rgba(192, 180, 255, 0.38);
  --workspace-teal: #B1A0F4;
  --color-accent-text: #C0B4FF;
  --color-accent-fill: #B1A0F4;
  --color-accent-fill-hover: #C3B5FF;
  --color-on-accent: #201044;
  --color-accent-tint: #343252;
  --color-accent-selection: #2A2C46;
  --color-accent-border: #655E8E;
}

/* Raspberry in dark mode (owner 2026-11-06, #1629): the soft accent #E89AC1
   is the fill with deep plum text on it (7.7:1), a lighter pink is the text
   role (9.2:1 or more on the dark page, card and inset; 8.0:1 on its tint),
   and a plum tint marks selected controls. Surfaces and status roles are the
   shared dark values. As in light, the shell layers read the fill from
   --color-brand-primary-hover, so that role carries the primary. */
[data-theme="dark"][data-accent="raspberry"] {
  --color-brand-primary: #E89AC1;
  --color-brand-primary-hover: #E89AC1;
  --color-brand-primary-pressed: #F2B5D3;
  --color-brand-primary-subtle: #3D2638;
  --color-brand-primary-disabled: #7A4D66;
  --color-interaction-secondary: #F2B5D3;
  --color-interaction-secondary-hover: #F2B5D3;
  --color-interaction-secondary-subtle: #3D2638;
  --casefile-forest-100: #4A2E42;
  --copper-400: #E89AC1;
  --copper-tint-dark: rgba(242, 181, 211, 0.16);
  --seal-bg-dark: rgba(242, 181, 211, 0.16);
  --focus-ring: rgba(242, 181, 211, 0.38);
  --workspace-teal: #E89AC1;
  --color-accent-text: #F2B5D3;
  --color-accent-fill: #E89AC1;
  --color-accent-fill-hover: #F2B5D3;
  --color-on-accent: #3A1028;
  --color-accent-tint: #3D2638;
  --color-accent-selection: #2E2638;
  --color-accent-border: #7A4D66;
}

/* Slate in dark mode (owner 2026-11-06): a light slate fill with deep ink text
   on it, a lighter slate as the text role and a slate tint for selected
   controls. Surfaces and status roles are the shared dark values. As in
   light, the shell layers read the fill from --color-brand-primary-hover. */
[data-theme="dark"][data-accent="slate"] {
  --color-brand-primary: #C7D1DF;
  --color-brand-primary-hover: #C7D1DF;
  --color-brand-primary-pressed: #DCE3EC;
  --color-brand-primary-subtle: #2A3546;
  --color-brand-primary-disabled: #4D5B70;
  --color-interaction-secondary: #D5DDE8;
  --color-interaction-secondary-hover: #DCE3EC;
  --color-interaction-secondary-subtle: #2A3546;
  --casefile-forest-100: #34415A;
  --copper-400: #C7D1DF;
  --copper-tint-dark: rgba(213, 221, 232, 0.14);
  --seal-bg-dark: rgba(213, 221, 232, 0.14);
  --focus-ring: rgba(213, 221, 232, 0.4);
  --workspace-teal: #C7D1DF;
  --color-accent-text: #D5DDE8;
  --color-accent-fill: #C7D1DF;
  --color-accent-fill-hover: #DCE3EC;
  --color-on-accent: #16202E;
  --color-accent-tint: #2A3546;
  --color-accent-selection: #222D3C;
  --color-accent-border: #4D5B70;
}

/* Person and stage colours (owner 2026-11-06, after Linear): each person's
   initials avatar takes one of six soft tones, chosen by a stable hash of the
   name (clmone_format.avatar_tone), and the phase dots take the colour of the
   current phase. Neither is a status: text on every tone is 5.2:1 or more,
   dots 4.9:1 or more on white. */
:root {
  --color-avatar-1-bg: #E6E8FA; --color-avatar-1-fg: #3B44A0;
  --color-avatar-2-bg: #DDF1EE; --color-avatar-2-fg: #1D6B63;
  --color-avatar-3-bg: #F1E4F2; --color-avatar-3-fg: #7A3B80;
  --color-avatar-4-bg: #F8E3E3; --color-avatar-4-fg: #9A3A3A;
  --color-avatar-5-bg: #F5EBD9; --color-avatar-5-fg: #7F5A17;
  --color-avatar-6-bg: #E3EEDF; --color-avatar-6-fg: #3F6A34;
  --color-stage-create: var(--status-progress-fg);
  --color-stage-review: #6D4FC2;
  --color-stage-sign: #0F7C8A;
  --color-stage-complete: var(--status-positive-fg);
}
[data-theme="dark"] {
  --color-avatar-1-bg: #2B2F5A; --color-avatar-1-fg: #C3C8F5;
  --color-avatar-2-bg: #183D3A; --color-avatar-2-fg: #9EDDD5;
  --color-avatar-3-bg: #3D2A44; --color-avatar-3-fg: #E1BDE6;
  --color-avatar-4-bg: #472A2E; --color-avatar-4-fg: #F0BDBD;
  --color-avatar-5-bg: #43361F; --color-avatar-5-fg: #E9CF9C;
  --color-avatar-6-bg: #2A3B27; --color-avatar-6-fg: #BBD8B1;
  --color-stage-review: #B9A6F5;
  --color-stage-sign: #6FD3DE;
}
