/* Appraisal design tokens — framework-neutral CSS custom properties plus the Roboto / Roboto Mono
   @font-face rules (font urls are relative to this file: ./fonts/*.woff2). Shared by the Jinja pages
   and the React app. Nothing here styles an element; components and the shell live in /static/ui/.

   Each section below is a verbatim copy of one file from the Appraisal design export
   (.design_system/tokens/, 2026-10-06), itself a verbatim copy of the Zeus Design System token
   files (project 51e5d1fd…) plus the Appraisal alias block at the end of each. Zeus wins on any
   conflict. On a merge into Zeus: delete this file and rename the alias names at the call sites
   (see the design export's ZEUS_MAPPING.md). Load order matters: a later section overrides an
   earlier one (typography's --text-body: 12px wins over the colour alias of the same name). */

/* ===== tokens/fonts.css (verbatim) ===== */
/* Self-hosted Roboto + Roboto Mono, vendored from Zeus v3 (react/src/assets/fonts, Apache-2.0 / OFL-1.1).
   Zeus ships byte-identical woff2 files for 400/500/600/700, so one file covers the 400–700 range here. */
@font-face{font-family:'Roboto';font-style:normal;font-weight:400 700;font-display:swap;src:url('./fonts/roboto-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Roboto';font-style:normal;font-weight:400 700;font-display:swap;src:url('./fonts/roboto-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Roboto Mono';font-style:normal;font-weight:100 700;font-display:swap;src:url('./fonts/roboto-mono-latin-var.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* ===== tokens/colors.css (verbatim) ===== */
/* colors.css — copied verbatim from the Zeus Design System (tokens/colors.css, project 51e5d1fd…) on 2026-10-06 so this
   system speaks Zeus's token names and values. Zeus wins on any conflict. Appraisal-only names follow at the end,
   aliased onto the Zeus values so existing components keep resolving. */
/* Colours — the values in the shipped shell and the v2 page corpus.
   Base ramp first, semantic aliases second. Authority: react/tailwind.config.ts,
   react/src/styles/tokens.css, design_system_token_baseline.md v1.5, and
   .design_ref/specs/ui/_shared.md §D. */
:root {
  /* Brand ramp — verbatim from react/src/styles/tokens.css (synced 2026-09-12).
     The 100 / 300 / 400 steps here previously carried values that belong to
     other roles (tone-info-border, the selected border, the rail active edge);
     those now live under their own names below. */
  --zeus-50: #ebf3fb;
  --zeus-100: #cfe2f5;
  --zeus-200: #9fc4ea;
  --zeus-300: #5e9ddb;
  --zeus-400: #2278c9;
  --zeus-500: #0e6bbe;
  --zeus-600: #0a60ac;
  --zeus-700: #084e8c;
  --zeus-800: #063a69;
  --zeus-900: #042747;

  /* Neutral ramp — light surface */
  --slate-25: #fbfcfd;
  --slate-50: #f8fafc;
  --slate-75: #f6f8fa;
  --slate-100: #f1f5f9;
  --slate-150: #eef1f4;
  --slate-200: #edf1f5;
  --slate-250: #e2e8f0;
  --slate-300: #dee5ee;
  --slate-400: #cbd5e1;
  --slate-600: #607087;
  --slate-700: #3d5165;
  --slate-900: #0f172a;

  /* Status ramps — text / fill / border / dot.
     UPSTREAM NAME MAP (react/src/styles/tokens.css): this system's tone "ink"
     is upstream --tone-ROLE-text-strong, and this system's "dot" is upstream
     --tone-ROLE-text. Same values; the darker step carries badge text because
     it is the one that measures AA on the fill. */
  --green-text: #146c3c;
  --green-fill: #e7f6ee;
  --green-border: #bbe6cd;
  --green-dot: #1a7f47;
  --amber-text: #8f4d0c;
  --amber-fill: #fdf1e3;
  --amber-border: #f6d9b0;
  --amber-dot: #b26c09;
  --red-text: #a5322a;
  --red-fill: #fcebea;
  --red-border: #f3c2bd;
  --red-dot: #c0392b;
  --purple-text: #5b21b6;
  --purple-fill: #f1ebfd;

  /* Dark shell ramp */
  --shell-900: #08131e;
  --shell-800: #0a1521;
  --shell-700: #0c1a28;
  --shell-600: #101f30;
  --shell-500: #12283c;
  --shell-400: #16293c;
  --shell-300: #2a3f55;

  /* ---- Semantic: surfaces ---- */
  --canvas: var(--slate-100);
  --surface: #ffffff;
  --surface-sunken: var(--slate-50);
  --surface-band: var(--slate-75);
  --surface-inset: var(--slate-25);
  --surface-track: var(--slate-150);
  --surface-selected: #edf5fd;
  /* Upstream surface.sunken: slate-200, one step deeper than canvas, because a
     skeleton must read against BOTH #fff cards and the #f1f5f9 page ground —
     anything lighter is invisible on half the surfaces it lands on. */
  --surface-skeleton: #e2e8f0;

  /* ---- Semantic: ink ---- */
  --ink-primary: var(--slate-900);
  --ink-secondary: var(--slate-700);
  --ink-muted: var(--slate-600);
  --ink-inverse: #ffffff;
  --ink-brand: var(--zeus-600);
  --ink-faint: #93a7bd;
  /* Upstream --accent-tint. Menu hover; this system had guessed .055. */
  --accent-tint: rgba(10, 96, 172, 0.07);

  /* ---- Semantic: lines ---- */
  --line-subtle: var(--slate-250);
  --line-faint: var(--slate-200);
  --line-control: var(--slate-400);
  --line-table: var(--slate-300);
  --line-hover: #cfdae6;
  --line-selected: #6ca9de; /* selected-surface border — _shared.md D, no repo counterpart */
  --line-dashed: #c3cfdb;

  /* ---- Semantic: action ---- */
  --action-primary: var(--zeus-600);
  --action-primary-ink: #ffffff;
  --action-secondary-bg: var(--surface);
  --action-secondary-ink: var(--ink-secondary);
  --link: var(--zeus-600);
  --link-hover: var(--zeus-700);
  --focus-ring: var(--zeus-600);
  --focus-ring-dark: #7cc0ff;

  /* ---- Semantic: tones ----
     INVARIANT: every tone defines ALL FOUR parts — fill, ink, border, dot.
     Components build these names dynamically (`var(--tone-${tone}-border)`),
     and an unresolved custom property invalidates the entire declaration it
     sits in, so a single missing part silently drops a whole border or
     background. Two bugs came from exactly that (a transparent info dot, a
     borderless neutral pill). If you add a tone, add four lines. */
  --tone-info-fill: var(--zeus-50);
  --tone-info-ink: var(--zeus-600);
  --tone-info-border: #c7dcf1;
  --tone-info-dot: var(--zeus-600);
  --tone-success-fill: var(--green-fill);
  --tone-success-ink: var(--green-text);
  --tone-success-border: var(--green-border);
  --tone-success-dot: var(--green-dot);
  --tone-warning-fill: var(--amber-fill);
  --tone-warning-ink: var(--amber-text);
  --tone-warning-border: var(--amber-border);
  --tone-warning-dot: var(--amber-dot);
  --tone-critical-fill: var(--red-fill);
  --tone-critical-ink: var(--red-text);
  --tone-critical-border: var(--red-border);
  --tone-critical-dot: var(--red-dot);
  --tone-neutral-fill: #eef2f6;
  --tone-neutral-ink: #5d7085;
  --tone-neutral-border: #e2e8f0; /* upstream --tone-neutral-border */
  --tone-neutral-dot: #8595a6;
  --tone-accent-fill: var(--purple-fill);
  --tone-accent-ink: var(--purple-text);
  --tone-accent-border: #ddccf7;
  --tone-accent-dot: var(--purple-text);

  /* ---- Semantic: header state (upstream --state-*, synced 2026-09-12) ----
     The bands' chip tones, connection dots and availability ring. NOT the same
     values as the status ramps: the good border, the warn ink and both bad
     steps are their own. */
  --state-good-ink: #146c3c;
  --state-good-bg: #e7f6ee;
  --state-good-border: #bfe0cb;
  --state-warn-ink: #8a6321;
  --state-warn-bg: #fdf1e3;
  --state-warn-border: #f6d9b0;
  --state-bad-ink: #a5322a;
  --state-bad-bg: #fbeceb;
  --state-bad-border: #f3c9c4;
  --state-live-dot: #1a7f47;
  --state-reconnect-dot: #b7791f;
  --state-offline-dot: #c0392b;
  --state-ring-taking: #1a7f47;
  /* Painted ONLY for an explicit off — an ungranted slot renders no ring. */
  --state-ring-off: #c0392b;

  /* ---- Temperature (upstream --shell-temp-*) ----
     Hot / warm / cold alias the critical text, the note accent and the BRAND
     BLUE: cold is blue, not grey. Unscored is its own neutral. */
  --temp-hot: #c0392b;
  --temp-warm: #b26c09;
  --temp-cold: #0a60ac;
  --temp-unscored: #cfd8e2;

  /* ---- Semantic: shell (the dark rail) ---- */
  --shell-bg: var(--shell-700);
  --shell-bg-deep: var(--shell-900);
  --shell-line: var(--shell-400);
  --shell-active-bg: var(--shell-500);
  --shell-active-edge: #4f9fe0; /* upstream --shell-active-bar */
  --shell-hover-bg: rgba(255, 255, 255, 0.06);
  --shell-ink-title: #eef4fa;
  --shell-ink-body: #cfe6fb;
  --shell-ink-label: #7d93a9;
  --shell-ink-hover: #e8f0f7;
  --shell-ink-item: #8ba1b6;
  --shell-ink-count: #9db0c3;
  --shell-active-count: #8fc4ee;
  /* The landing line under the wordmark reads as a link cue, not tenant grey. */
  --shell-home-ink: #7fb3e0;
  --shell-badge-bg: #c0392b;
  --shell-logo-ink: #ffffff;
  --shell-pill-bg: var(--shell-400);
  --shell-scrollbar: var(--shell-300);
}

/* ---- Appraisal aliases (pre-Zeus names) ---- */
:root{
--accent:var(--zeus-600);--accent-hover:var(--zeus-700);--accent-pressed:var(--zeus-700);
--info-fill:var(--tone-info-fill);--info-border:var(--tone-info-border);--info-text:var(--tone-info-ink);
--success-fill:var(--tone-success-fill);--success-border:var(--tone-success-border);--success-text:var(--tone-success-ink);
--warning-fill:var(--tone-warning-fill);--warning-border:var(--tone-warning-border);--warning-text:var(--tone-warning-ink);
--danger-fill:var(--tone-critical-fill);--danger-border:var(--tone-critical-border);--danger-text:var(--tone-critical-ink);
--neutral-fill:var(--tone-neutral-fill);--neutral-border:var(--tone-neutral-border);--neutral-text:var(--tone-neutral-ink);
--line-strong:var(--line-control);
--ink-subtle:var(--ink-muted);--ink-body:var(--ink-secondary);
--surface-muted:var(--surface-sunken);
--ring-focus:var(--focus-ring);
/* Chart series — Zeus repo tokens.css §4.5 (the Zeus DS defines none) */
--chart-1:#0a60ac;--chart-2:#1a9e5f;--chart-3:#7c5cfc;--chart-4:#c9780f;
--chart-5:#d14343;--chart-6:#2197b0;--chart-7:#c2557e;--chart-8:#5b7085;
--chart-grid:#e2e8f0;--chart-axis:#607087;--chart-positive:#1a7f47;--chart-negative:#c0392b;
/* Appraisal semantic roles */
--bg-page:var(--canvas);--bg-card:var(--surface);--bg-row-hover:var(--surface-inset);
--bg-auth:linear-gradient(to bottom right,var(--zeus-50),var(--canvas));
--border-card:var(--line-subtle);--border-control:var(--line-control);
--text-body:var(--ink-primary);--text-muted:var(--ink-muted);--text-on-accent:var(--ink-inverse);
--text-brand:var(--zeus-700);--brand-mark-bg:var(--zeus-600);
}

/* ===== tokens/typography.css (verbatim) ===== */
/* typography.css — copied verbatim from the Zeus Design System (tokens/typography.css, project 51e5d1fd…) on 2026-10-06 so this
   system speaks Zeus's token names and values. Zeus wins on any conflict. Appraisal-only names follow at the end,
   aliased onto the Zeus values so existing components keep resolving. */
/* Type — one family, one small dense scale.
   Zeus screens run one to two steps smaller than a marketing surface would:
   the work is a dense desktop workbench and the scale is deliberate.
   Weights: 400 body, 500 controls and row titles, 600 emphasis, 700 headings. */
:root {
  --font-sans: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, SFMono-Regular, monospace;

  /* Sizes */
  --text-micro: 10px;      /* uppercase eyebrow, column head */
  --text-meta: 11px;       /* badge text, sub-line */
  --text-meta-lg: 11.5px;  /* band labels, health-fact label */
  --text-body: 12px;       /* prose, list detail — the corpus plurality */
  --text-body-lg: 12.5px;  /* rail row, menu item, record meta */
  --text-row: 13px;        /* row title, control label */
  --text-card-title: 14px; /* card and dialog title */
  --text-value: 15px;      /* emphasised value */
  --text-figure: 17px;     /* KPI figure, empty-state title */
  --text-title: 19px;      /* page h1 (v1 corpus) */
  --text-title-lg: 21px;   /* page h1 — upstream --type-shell-title, 1.3125rem */
  --text-rail-group: 10px; /* upstream --rail-group-head-size, set at .1em */
  --text-section: 18px;    /* upstream fontSize.section, 18/26/600 */
  --text-heading: 24px;    /* upstream fontSize.heading, 24/32/600 */

  /* Line heights */
  --leading-micro: 14px;
  --leading-meta: 15px;
  --leading-body: 17px;
  --leading-body-lg: 18px;
  --leading-row: 19px;
  --leading-value: 20px;
  --leading-figure: 25px;
  --leading-title: 26px;

  /* Weights */
  --weight-body: 400;
  --weight-control: 500;
  --weight-emphasis: 600;
  --weight-heading: 700;

  /* Letter spacing */
  --tracking-title: -0.011em;  /* 21px h1 */
  --tracking-eyebrow: 0.07em;  /* 10px uppercase column head */
  --tracking-label: 0.06em;    /* 10.5px uppercase, the shared shell group head */
  --tracking-rail: 0.1em;      /* the RAIL's own group head: tighter size, wider track */
  --tracking-caps: 0.09em;     /* 10px uppercase menu section */

  /* Roles */
  --type-eyebrow: var(--weight-heading) var(--text-micro) / var(--leading-micro) var(--font-sans);
  --type-meta: var(--weight-control) var(--text-meta) / var(--leading-meta) var(--font-sans);
  --type-body: var(--weight-body) var(--text-body) / var(--leading-body-lg) var(--font-sans);
  --type-row: var(--weight-control) var(--text-row) / var(--leading-row) var(--font-sans);
  --type-card-title: var(--weight-heading) var(--text-card-title) / var(--leading-value) var(--font-sans);
  --type-figure: var(--weight-heading) var(--text-figure) / var(--leading-figure) var(--font-sans);
  --type-page-title: var(--weight-heading) var(--text-title-lg) / 28px var(--font-sans);
}

/* ---- Appraisal aliases (pre-Zeus names) ---- */
:root{
--fs-display:36px;--fs-heading:var(--text-heading);--fs-page-title:var(--text-title-lg);--fs-section:var(--text-section);
--fs-meta:var(--text-row);--fs-body:var(--text-body);--fs-micro:var(--text-meta);
--lh-display:40px;--lh-heading:32px;--lh-section:26px;--lh-meta:18px;--lh-micro:var(--leading-micro);
--lh-body:1.5; /* @kind font */
--fw-regular:var(--weight-body); /* @kind font */
--fw-medium:var(--weight-control); /* @kind font */
--fw-semibold:var(--weight-emphasis); /* @kind font */
--fw-bold:var(--weight-heading); /* @kind font */
}

/* ===== tokens/spacing.css (verbatim) ===== */
/* spacing.css — copied verbatim from the Zeus Design System (tokens/spacing.css, project 51e5d1fd…) on 2026-10-06 so this
   system speaks Zeus's token names and values. Zeus wins on any conflict. Appraisal-only names follow at the end,
   aliased onto the Zeus values so existing components keep resolving. */
/* Space, radii and control heights.
   The corpus uses every integer gap from 1 to 14px, so the honest statement is
   a DENSITY, not a 4px scale: 7 / 9 / 10 / 12 / 14 carry almost everything.
   Radii are role-named because the repo's three-step scale never covered the
   7px and 8px control steps every page actually uses. */
:root {
  --space-1: 2px;
  --space-2: 4px;
  --space-3: 6px;
  --space-4: 7px;
  --space-5: 9px;
  --space-6: 10px;
  --space-7: 12px;
  --space-8: 14px;
  --space-9: 16px;
  --space-10: 20px;

  --gutter-page: 20px;      /* band and body horizontal gutter */
  --row-padding: 10px 12px; /* list row */
  --card-header-padding: 11px 13px;

  --radius-chip: 6px;
  --radius-control: 7px;    /* picker, back arrow, small icon button */
  --radius-button: 8px;     /* buttons, rows, inputs */
  --radius-card: 10px;      /* cards, menus, popovers */
  --radius-dialog: 12px;
  --radius-pill: 9999px;

  /* Upstream --control-h / -small / -icon are 36 / 28 / 34. */
  --control-h-chip: 26px;
  --control-h-picker: 28px;  /* upstream --control-h-small */
  --control-h-slim: 30px;    /* upstream --density-control-h, slim default */
  --control-h-axis: 32px;    /* band 2 axis pill */
  --control-h-row: 34px;     /* upstream --control-h-icon, square icon controls */
  --control-h-band: 36px;    /* upstream --control-h, band 2's cluster */

  --band-1-h: 56px;
  --band-1-h-record: 78px;
  --band-2-h: 50px;
  --band-3-h: 44px;
  --rail-w: 184px;           /* upstream --rail-width-wide */
  --rail-w-md: 168px;        /* --rail-width-mid, at or below 1439px */
  --rail-w-collapsed: 56px;  /* --rail-width-collapsed, at or below 1100px */
  /* The collapsed rail's label flyout, and the rail's own row metrics: the row
     is 13px/18px text in 6px 8px padding = 30px, stepped 1px apart, so the
     pitch is the row height alone (the rail keeps a no-gap list). */
  --rail-flyout-w: 237px;
  --rail-row-h: 30px;
  --rail-row-step: 1px;
  --rail-top-h: 58px;
  --context-rail-w: 340px;
  --record-rail-w: 262px;
  --drawer-w: 392px;
}

/* ---- Appraisal aliases (pre-Zeus names) ---- */
:root{
--r-xs:4px;
--r-sm:var(--radius-chip);--r-md:var(--radius-card);--r-lg:var(--radius-card);--r-full:var(--radius-pill);
--r-control:var(--radius-button);--r-dialog:var(--radius-dialog);
--btn-h:var(--control-h-band);--btn-h-sm:var(--control-h-axis);--header-h:var(--band-1-h);
--content-max:1200px;--auth-card-max:448px;--card-p:13px;--cell-py:10px;--cell-px:12px;
--motion-instant:0ms; /* @kind other */
--motion-fast:110ms; /* @kind other */
--motion-base:200ms; /* @kind other */
--motion-slow:320ms; /* @kind other */
--ease-standard:cubic-bezier(.4,0,.2,1); /* @kind other */
}
@media (prefers-reduced-motion:reduce){:root{
--motion-fast:0ms; /* @kind other */
--motion-base:0ms; /* @kind other */
--motion-slow:0ms; /* @kind other */
}}

/* ===== tokens/elevation.css (verbatim) ===== */
/* elevation.css — copied verbatim from the Zeus Design System (tokens/elevation.css, project 51e5d1fd…) on 2026-10-06 so this
   system speaks Zeus's token names and values. Zeus wins on any conflict. Appraisal-only names follow at the end,
   aliased onto the Zeus values so existing components keep resolving. */
/* Elevation, scrims and motion.
   Cards are FLAT — a border, never a shadow. Elevation is reserved for things
   that float: menus, popovers, drawers, modals, toasts. */
:root {
  --shadow-menu: 0 10px 26px rgba(16, 32, 46, 0.16);
  --shadow-popover: 0 24px 60px rgba(8, 19, 30, 0.28);
  --shadow-dialog: 0 24px 60px rgba(8, 19, 30, 0.34);
  --shadow-palette: 0 18px 48px rgba(13, 26, 40, 0.32);
  --shadow-toast: 0 12px 30px rgba(13, 26, 40, 0.3);
  --shadow-drawer: -18px 0 44px rgba(13, 26, 40, 0.22);
  /* row and card hover */
  --ring-hover: inset 0 0 0 1px #cfdae6; /* @kind shadow */
  /* rail active row */
  --ring-active-edge: inset 2px 0 0 #4f9fe0; /* @kind shadow */

  --scrim: rgba(16, 24, 40, 0.45);
  --scrim-light: rgba(16, 32, 46, 0.34);

  /* Upstream --motion-shell-ease; all three motion leaves declare this curve. */
  --ease: ease; /* @kind other */
  --duration-tint: 110ms;   /* hover background and colour */
  /* flyout, row actions */
  --duration-fade: 130ms; /* @kind other */
  /* rail width */
  --duration-layout: 150ms; /* @kind other */

  --z-sticky: 5; /* @kind other */
  --z-menu: 70; /* @kind other */
  --z-popover: 80; /* @kind other */
  --z-overlay: 200; /* @kind other */
}

/* ---- Appraisal aliases (pre-Zeus names). Cards are flat in Zeus, so the card shadow is none. ---- */
:root{
--shadow-sm:none;
--shadow:var(--shadow-menu);
--shadow-lg:var(--shadow-dialog);
--focus-shadow:0 0 0 2px var(--surface),0 0 0 4px var(--focus-ring);
}

/* ===== tokens/shell.css (verbatim) ===== */
/* Appraisal shell extras. Names the Zeus Design System defines (shell-*, state-*) now come from tokens/colors.css.
   Zeus v3 app-shell tokens — dark navy nav rail + header bands.
   Verbatim from nickkolay/zeus_v3 react/src/styles/tokens.css (RL-S1 shell family, SHELL-HARNESS v1 rail/band/control/state).
   Shell chrome ONLY (rail); page content stays light and the header stays white. */
:root{
/* Shell (dark navy) */


--shell-hover-ink:var(--shell-ink-hover);
--shell-active-bg-strong:rgba(10,96,172,.34);--shell-active-ink:#cfe6fb;--shell-active-bar:var(--shell-active-edge);
--shell-pill-border:#1d3448;--shell-pill-ink:#7fb3e0;
--shell-avatar-bg:#1b4a75;--shell-avatar-ink:#bcdcf5;

/* Rail state family */
--rail-group-head-ink:#7d93a9;--rail-row-active-bg:#12283c;--rail-focus-ring:#7cc0ff;
--rail-badge-bg:#c0392b;--rail-badge-ink:#ffffff;--rail-logo-ink:#ffffff;--rail-tenant-sub-ink:#7d93a9;
--rail-scroll-thumb:#2a3f55;--rail-separator:#2a3f55;--rail-home-ink:#7fb3e0;
--rail-flyout-shadow:-18px 0 44px rgba(13,26,40,.22);
--rail-peek-shadow:6px 0 24px -6px rgba(4,12,22,.55),1px 0 0 0 rgba(255,255,255,.04);
--rail-row-height:31px;--rail-top-height:58px;--rail-row-radius:6px;
--rail-group-head-size:10px;--rail-icon-size:18px;--rail-glyph-size:17px;
--rail-width-wide:184px;--rail-width-mid:168px;--rail-width-collapsed:56px;--rail-flyout-width:237px;

/* Header bands (band 1 = 56px top bar, 2 = title row, 3 = toolbar, min-height) */
--band-h1:56px;--band-h2:50px;--band-h3:44px;--band-bg3:#f6f8fa;--band-rule:#e2e8f0;--band-pad-x:20px;

/* Header ink / accent */
--ink-title:#0f172a;--ink-body:#3d5165;--ink-on-accent:#ffffff;


/* Chip / connection states */





/* Header controls */
--control-h:36px;--control-h-small:28px;--control-h-icon:34px;
--control-border:#e2e8f0;--control-hairline:#edf1f5;--control-hairline2:#f2f5f8;--control-field-bg:#f8fafc;
--control-menu-shadow:0 24px 60px rgba(8,19,30,.28);

/* Density (Zeus slim default) */
--density-row-py:10px;--density-cell-px:12px;--density-card-p:11px 13px; /* @kind spacing */
--density-control-h:30px;

/* Action accents (communication / activity) */
--accent-call:#0a60ac;--accent-sms:#1a9e5f;--accent-email:#5b21b6;--accent-note:#b26c09;
--accent-call-tint:#ebf3fb;--accent-sms-tint:#e7f6ee;--accent-email-tint:#f1ebfd;--accent-note-tint:#fdf1e3;

/* Shell type + radius + motion leaves */
--type-shell-title:21px;--type-shell-meta:12.5px;--type-shell-chip:12px;--type-shell-group-head:10.5px;--type-shell-count:12px;--type-shell-badge:10px;
--radius-shell-chip:6px;--radius-shell-button:7px;--radius-shell-control:8px;--radius-shell-card:10px;
--motion-rail-width:150ms; /* @kind other */
--motion-hover:110ms; /* @kind other */
--motion-flyout:130ms; /* @kind other */
--accent-bar-h:3px;
/* Scaffold block header — Zeus Design System --shell-800 */
--scaffold-head:var(--shell-800);
}

/* ===== Appraisal-owned: theme (NOT part of the Zeus export) =====
   Zeus defines no dark theme; this one is Appraisal's (owner request, 2026-10-07). On a merge
   into Zeus, keep this section as Appraisal's own or replace it with Zeus's dark theme.

   Light (default) first: the colours components used to hard-code, now named, at the same
   values, so light mode is unchanged. Then dark, under BOTH
     :root[data-theme="dark"]                                   (the person chose Dark), and
     @media (prefers-color-scheme: dark) :root:not([data-theme="light"])   (System, OS dark).
   The two dark blocks must stay identical (tests/test_web_theme.py checks it, and that every
   light colour token has a dark value). data-theme comes from static/ds/theme-init.js, before
   first paint; the account menus write the choice (localStorage 'appraisal.theme').

   The dark palette is anchored on Zeus's dark shell ramp, so the rail and the page read as one
   system: page ground --shell-900, cards and header --shell-600, sunken areas --shell-700, the
   rail unchanged between them; focus is the rail's own --focus-ring-dark. Ink is a cool grey
   ramp checked to WCAG AA on every surface it sits on (text 4.5:1; control borders, focus ring
   and status dots 3:1). Tones keep all four parts (fill, ink, border, dot; see the invariant in
   colors.css). Cards stay flat: a border, never a shadow. */
:root{
color-scheme:light;
/* Disabled ink (buttons, controls, menu items); was #7f96ac in four components. */
--ink-disabled:#7f96ac;
/* Skeleton placeholders: the block and its softer secondary line (kit PageStates). */
--skeleton:#eef1f4;--skeleton-soft:#f2f5f8;
/* Button states the components spelled with ramp steps. */
--action-primary-hover:var(--zeus-700);
--action-secondary-hover-bg:var(--surface-sunken);
/* The band-1 avatar. */
--account-avatar-bg:var(--zeus-100);--account-avatar-ink:var(--zeus-700);
/* The native select's chevron (an image, so it can't use currentColor). */
--control-select-arrow:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
/* The vAuto sign-in window's screen behind the noVNC canvas: dark in both themes. */
--vauto-screen-bg:#20252e;
}

:root[data-theme="dark"]{
color-scheme:dark;
/* surfaces (shell ramp) */
--canvas:var(--shell-900);--surface:var(--shell-600);--surface-sunken:var(--shell-700);
--surface-band:#0e1c2b;--surface-inset:#13253a;--surface-track:#182c41;--surface-selected:#0f2c4a;
--surface-skeleton:#1d3247;--skeleton:#1c3045;--skeleton-soft:#172a3e;
/* ink */
--ink-primary:#e8eef5;--ink-secondary:#c0cddb;--ink-muted:#94a7bb;--ink-faint:#7a8fa5;
--ink-brand:#7cc0ff;--ink-disabled:#5b7187;--accent-tint:rgba(124,192,255,.1);
/* lines */
--line-subtle:#1f3448;--line-faint:#192c3f;--line-control:#5b748e;--line-table:#1f3448;
--line-hover:#3a5571;--line-selected:#4a8ccc;--line-dashed:#3a5068;
/* action, link, focus */
--action-primary:#1d6fc0;--action-primary-hover:#175fa8;--action-secondary-hover-bg:#172b40;
--link:#7cc0ff;--link-hover:#a9d6ff;--focus-ring:var(--focus-ring-dark);
/* tones: fill, ink, border, dot */
--tone-info-fill:#0e2a47;--tone-info-ink:#a3d1ff;--tone-info-border:#1f4b75;--tone-info-dot:#5aaaf0;
--tone-success-fill:#0c2a1f;--tone-success-ink:#8fdcb2;--tone-success-border:#1c4b35;--tone-success-dot:#3db878;
--tone-warning-fill:#2c2010;--tone-warning-ink:#f3c37e;--tone-warning-border:#5b4320;--tone-warning-dot:#e09b3d;
--tone-critical-fill:#331719;--tone-critical-ink:#ffaca5;--tone-critical-border:#66292d;--tone-critical-dot:#f2665a;
--tone-neutral-fill:#182b3f;--tone-neutral-ink:#aebdcc;--tone-neutral-border:#2a3f55;--tone-neutral-dot:#7f95ab;
--tone-accent-fill:#231b3e;--tone-accent-ink:#cdb8ff;--tone-accent-border:#45357c;--tone-accent-dot:#a78bfa;
/* header state */
--state-good-ink:#8fdcb2;--state-good-bg:#0c2a1f;--state-good-border:#1c4b35;
--state-warn-ink:#f3c37e;--state-warn-bg:#2c2010;--state-warn-border:#5b4320;
--state-bad-ink:#ffaca5;--state-bad-bg:#331719;--state-bad-border:#66292d;
--state-live-dot:#3db878;--state-reconnect-dot:#e09b3d;--state-offline-dot:#f2665a;
--state-ring-taking:#3db878;--state-ring-off:#f2665a;
/* temperature */
--temp-hot:#f2665a;--temp-warm:#e09b3d;--temp-cold:#5aaaf0;--temp-unscored:#3b5068;
/* Appraisal aliases with literal values */
--accent:var(--action-primary);--accent-hover:var(--action-primary-hover);--accent-pressed:var(--action-primary-hover);
--chart-1:#5aaaf0;--chart-2:#3fbf80;--chart-3:#a08bff;--chart-4:#e8a43e;
--chart-5:#f07272;--chart-6:#4cc3dc;--chart-7:#e683a9;--chart-8:#8ea3b8;
--chart-grid:#1f3448;--chart-axis:#94a7bb;--chart-positive:#3db878;--chart-negative:#f2665a;
--bg-auth:linear-gradient(to bottom right,#0f2a45,var(--canvas));
--text-brand:#9cc8f2;
--account-avatar-bg:var(--shell-avatar-bg);--account-avatar-ink:var(--shell-avatar-ink);
--control-select-arrow:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a3b4c6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
/* elevation: deeper shadows and scrims on a dark ground */
--shadow-menu:0 10px 26px rgba(0,0,0,.42);--shadow-popover:0 24px 60px rgba(0,0,0,.55);
--shadow-dialog:0 24px 60px rgba(0,0,0,.62);--shadow-palette:0 18px 48px rgba(0,0,0,.55);
--shadow-toast:0 12px 30px rgba(0,0,0,.5);--shadow-drawer:-18px 0 44px rgba(0,0,0,.45);
--ring-hover:inset 0 0 0 1px #3a5571;
--scrim:rgba(2,7,13,.66);--scrim-light:rgba(2,7,13,.5);
--rail-flyout-shadow:-18px 0 44px rgba(0,0,0,.45);
--rail-peek-shadow:6px 0 24px -6px rgba(0,0,0,.7),1px 0 0 0 rgba(255,255,255,.04);
/* shell.css header / control literals */
--band-bg3:var(--surface-band);--band-rule:var(--line-subtle);
--ink-title:var(--ink-primary);--ink-body:var(--ink-secondary);
--control-border:var(--line-control);--control-hairline:var(--line-faint);--control-hairline2:#16283b;
--control-field-bg:var(--surface-sunken);--control-menu-shadow:0 24px 60px rgba(0,0,0,.55);
--accent-call:#5aaaf0;--accent-sms:#3fbf80;--accent-email:#b59cff;--accent-note:#e09b3d;
--accent-call-tint:#0e2a47;--accent-sms-tint:#0c2a1f;--accent-email-tint:#231b3e;--accent-note-tint:#2c2010;
}

@media (prefers-color-scheme: dark){
:root:not([data-theme="light"]){
color-scheme:dark;
/* surfaces (shell ramp) */
--canvas:var(--shell-900);--surface:var(--shell-600);--surface-sunken:var(--shell-700);
--surface-band:#0e1c2b;--surface-inset:#13253a;--surface-track:#182c41;--surface-selected:#0f2c4a;
--surface-skeleton:#1d3247;--skeleton:#1c3045;--skeleton-soft:#172a3e;
/* ink */
--ink-primary:#e8eef5;--ink-secondary:#c0cddb;--ink-muted:#94a7bb;--ink-faint:#7a8fa5;
--ink-brand:#7cc0ff;--ink-disabled:#5b7187;--accent-tint:rgba(124,192,255,.1);
/* lines */
--line-subtle:#1f3448;--line-faint:#192c3f;--line-control:#5b748e;--line-table:#1f3448;
--line-hover:#3a5571;--line-selected:#4a8ccc;--line-dashed:#3a5068;
/* action, link, focus */
--action-primary:#1d6fc0;--action-primary-hover:#175fa8;--action-secondary-hover-bg:#172b40;
--link:#7cc0ff;--link-hover:#a9d6ff;--focus-ring:var(--focus-ring-dark);
/* tones: fill, ink, border, dot */
--tone-info-fill:#0e2a47;--tone-info-ink:#a3d1ff;--tone-info-border:#1f4b75;--tone-info-dot:#5aaaf0;
--tone-success-fill:#0c2a1f;--tone-success-ink:#8fdcb2;--tone-success-border:#1c4b35;--tone-success-dot:#3db878;
--tone-warning-fill:#2c2010;--tone-warning-ink:#f3c37e;--tone-warning-border:#5b4320;--tone-warning-dot:#e09b3d;
--tone-critical-fill:#331719;--tone-critical-ink:#ffaca5;--tone-critical-border:#66292d;--tone-critical-dot:#f2665a;
--tone-neutral-fill:#182b3f;--tone-neutral-ink:#aebdcc;--tone-neutral-border:#2a3f55;--tone-neutral-dot:#7f95ab;
--tone-accent-fill:#231b3e;--tone-accent-ink:#cdb8ff;--tone-accent-border:#45357c;--tone-accent-dot:#a78bfa;
/* header state */
--state-good-ink:#8fdcb2;--state-good-bg:#0c2a1f;--state-good-border:#1c4b35;
--state-warn-ink:#f3c37e;--state-warn-bg:#2c2010;--state-warn-border:#5b4320;
--state-bad-ink:#ffaca5;--state-bad-bg:#331719;--state-bad-border:#66292d;
--state-live-dot:#3db878;--state-reconnect-dot:#e09b3d;--state-offline-dot:#f2665a;
--state-ring-taking:#3db878;--state-ring-off:#f2665a;
/* temperature */
--temp-hot:#f2665a;--temp-warm:#e09b3d;--temp-cold:#5aaaf0;--temp-unscored:#3b5068;
/* Appraisal aliases with literal values */
--accent:var(--action-primary);--accent-hover:var(--action-primary-hover);--accent-pressed:var(--action-primary-hover);
--chart-1:#5aaaf0;--chart-2:#3fbf80;--chart-3:#a08bff;--chart-4:#e8a43e;
--chart-5:#f07272;--chart-6:#4cc3dc;--chart-7:#e683a9;--chart-8:#8ea3b8;
--chart-grid:#1f3448;--chart-axis:#94a7bb;--chart-positive:#3db878;--chart-negative:#f2665a;
--bg-auth:linear-gradient(to bottom right,#0f2a45,var(--canvas));
--text-brand:#9cc8f2;
--account-avatar-bg:var(--shell-avatar-bg);--account-avatar-ink:var(--shell-avatar-ink);
--control-select-arrow:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a3b4c6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
/* elevation: deeper shadows and scrims on a dark ground */
--shadow-menu:0 10px 26px rgba(0,0,0,.42);--shadow-popover:0 24px 60px rgba(0,0,0,.55);
--shadow-dialog:0 24px 60px rgba(0,0,0,.62);--shadow-palette:0 18px 48px rgba(0,0,0,.55);
--shadow-toast:0 12px 30px rgba(0,0,0,.5);--shadow-drawer:-18px 0 44px rgba(0,0,0,.45);
--ring-hover:inset 0 0 0 1px #3a5571;
--scrim:rgba(2,7,13,.66);--scrim-light:rgba(2,7,13,.5);
--rail-flyout-shadow:-18px 0 44px rgba(0,0,0,.45);
--rail-peek-shadow:6px 0 24px -6px rgba(0,0,0,.7),1px 0 0 0 rgba(255,255,255,.04);
/* shell.css header / control literals */
--band-bg3:var(--surface-band);--band-rule:var(--line-subtle);
--ink-title:var(--ink-primary);--ink-body:var(--ink-secondary);
--control-border:var(--line-control);--control-hairline:var(--line-faint);--control-hairline2:#16283b;
--control-field-bg:var(--surface-sunken);--control-menu-shadow:0 24px 60px rgba(0,0,0,.55);
--accent-call:#5aaaf0;--accent-sms:#3fbf80;--accent-email:#b59cff;--accent-note:#e09b3d;
--accent-call-tint:#0e2a47;--accent-sms-tint:#0c2a1f;--accent-email-tint:#231b3e;--accent-note-tint:#2c2010;
}
}
