/* wwwroot/css/tokens.css - single source of colour/size tokens (DESIGN.md v4.1.0). */

/* colours of the dark theme. The same values hold for the dark islands of the light theme (redesign 2026-11): the report frames (embedded and native, DESIGN.md 3.6)
   stay the colour of the Power BI report, the report loader (.mm-load, on <body> over the report frame) reads on it, and the top bar's content and the context row stand on the indigo band; the band's own overrides follow the light theme below. */
:root,
:root[data-theme="light"] :is(.ds-embed__frame, .ds-report, .ds-report-collapse, .mm-load, .ds-topbar > :not(.ds-scrim), .ds-context) {
  /* surfaces and depth ladder */
  --color-bg: #02040F;
  --color-bg-glow-1: #031020;
  --color-bg-glow-2: #041128;
  --color-surface-1: #0A0C16;
  --color-surface-2: #131626;
  --color-surface-3: #212643;
  --color-surface-hover-1: #0F1220;
  --color-surface-hover-2: #1A1F38;

  /* top bar gradient */
  --color-nav-start: #2F2F50;
  --color-nav-peak: #38386C;
  --color-nav-mid: #323656;
  --color-nav-end: #313153;
  --color-nav-edge: #2B2E48;
  --color-nav-base: #202939;

  /* top bar (redesign 2026-11): a quiet translucent band; tokens.css redefines them for the light theme */
  --hdr-bg: rgba(8, 10, 22, 0.88);
  --hdr-solid: #080A16;            /* the bar's colour behind the unread count ring */
  --hdr-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.07);
  --hdr-text: #FFFFFF;
  --hdr-muted: #A4A7B4;
  --hdr-subtle: #8B8EA0;
  --hdr-hair: rgba(255, 255, 255, 0.12);
  --hdr-hover: rgba(255, 255, 255, 0.08);
  --hdr-hover-strong: rgba(255, 255, 255, 0.12);
  --hdr-chip: rgba(255, 255, 255, 0.06);
  --count-text: #1A0507;            /* the unread count on --color-negative */
  --avatar-bg: linear-gradient(135deg, #5B3FA6, #352A71);
  --avatar-text: #FFFFFF;

  /* depth and atmosphere (redesign 2026-11): glass cards, the segmented well, the page glows */
  --card-bg: linear-gradient(180deg, rgba(22, 26, 46, 0.78), rgba(12, 14, 26, 0.82));
  --card-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 30px 80px -30px rgba(0, 0, 0, 0.85);
  --well-bg: rgba(2, 4, 15, 0.55);
  --well-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 1px 2px rgba(0, 0, 0, 0.4);
  --pill-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
  --pill-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 4px 12px -4px rgba(0, 0, 0, 0.6);
  --pill-text: #FFFFFF;
  --color-glow-brand: rgba(71, 48, 128, 0.35);
  --color-glow-green: color-mix(in srgb, var(--brand-green) 10%, transparent);
  --net-opacity: 0.28;

  /* the chat (redesign 2026-11): hairlines, the composer's glowing edge, the tool cards, the size switch */
  --chat-hair: rgba(255, 255, 255, 0.09);
  --chat-hover: rgba(255, 255, 255, 0.06);
  --chat-glow: rgba(104, 126, 255, 0.18);
  /* the brand dot (AIS-517): the green dot of the bce. logo is the AI assistant - the chat avatar, the thinking dot, the splash dot and its flight */
  /* AIS-A527: the brand green, measured on the bce. logo, as a flat colour (the owner rejected gradients). AIS-A538 (D-20261110-one-brand-green): the owner's decision
     of 10.11. - every green of the app is this one; only these shades exist, every green token below is derived from them and a tint is a color-mix of it. */
  --brand-green: #78BE25;          /* fills, and green text/icons on a dark background (8.95:1 on --color-bg) */
  --brand-green-hover: #8BCB3F;
  --brand-green-pressed: #6AAA1F;
  --brand-green-ink: #3D6E0D;      /* green text/icon on a light background: 4.81:1 on the light surface-3 (the darker ink of the brief reached only 4.10 there), 6.11:1 on white */
  /* AIS-A531: the colours of the feature icons (Lucide on a tile of the same colour); the tile is the colour at --icon-tile-mix */
  --icon-blue: #80B3FF;
  --icon-violet: #A99BFF;
  --icon-green: var(--brand-green);
  --icon-amber: #F5B53F;
  --icon-teal: #4FD1C5;
  --icon-pink: #FF8FB1;
  --icon-red: #FF7A7D;
  --icon-gray: #A4A7B4;
  --icon-tile-mix: 16%;
  --brand-dot: var(--brand-green);
  /* AIS-A528: the shadow of the chat's side panels (answer details from the end, the conversations from the start) */
  --chat-side-shadow: -20px 0 60px rgba(0, 0, 0, 0.45);
  --chat-side-shadow-start: 20px 0 60px rgba(0, 0, 0, 0.45);
  --brand-dot-glow: 0 0 14px color-mix(in srgb, var(--brand-green) 65%, transparent);
  --brand-dot-glow-strong: 0 0 22px color-mix(in srgb, var(--brand-green) 90%, transparent);
  --brand-dot-glow-splash: 0 0 24px color-mix(in srgb, var(--brand-green) 70%, transparent);
  --brand-dot-glow-fly: 0 0 30px 6px color-mix(in srgb, var(--brand-green) 55%, transparent);
  --brand-dot-ring: color-mix(in srgb, var(--brand-green) 70%, transparent);
  --brand-dot-hi-bg: var(--brand-green);
  --brand-dot-hi-fg: var(--color-on-primary);
  --brand-dot-hi-shadow: 0 10px 26px -10px color-mix(in srgb, var(--brand-green) 80%, transparent);
  /* AIS-518: the sleeping dot (the connection is down), its floating "z", the line the dot reads while the report loads */
  --brand-dot-sleep: #8B8EA0;
  --brand-dot-sleep-glow: 0 0 6px rgba(139, 142, 160, 0.35);
  --brand-dot-z: #A4A7B4;
  --brand-dot-scan: linear-gradient(90deg, transparent, color-mix(in srgb, var(--brand-green) 25%, transparent), transparent);
  /* AIS-520: the dot inside the green sign-in button, and the veil that puts the app out of focus while the dot greets */
  --brand-dot-button: var(--brand-green);
  --brand-dot-button-glow: 0 0 10px rgba(255, 255, 255, 0.5);
  --focus-veil: rgba(3, 5, 14, 0.38);
  /* AIS-523: the band of light of a section switch and the glow behind the content that follows the section */
  --sweep-band: linear-gradient(100deg, transparent 0%, rgba(128, 179, 255, 0.10) 42%, color-mix(in srgb, var(--brand-green) 12%, transparent) 55%, transparent 100%);
  --aura: radial-gradient(closest-side, rgba(104, 126, 255, 0.16), color-mix(in srgb, var(--brand-green) 5%, transparent) 60%, transparent);
  --splash-logo-glow: drop-shadow(0 0 30px color-mix(in srgb, var(--brand-green) 25%, transparent));
  --splash-skip: #8B8EA0;
  /* AIS-517: the composer edge while an answer comes, the glow of a lifted card or suggestion, the light that runs once around the report card */
  --composer-ring-breathe: 0 14px 50px -10px rgba(104, 126, 255, 0.9);
  --lift-glow: rgba(128, 179, 255, 0.6);
  --report-sweep: linear-gradient(90deg, color-mix(in srgb, var(--brand-green) 60%, #FFFFFF), rgba(128, 179, 255, 0.9));
  --mask-fill: linear-gradient(#000 0 0);   /* a solid mask layer (only its alpha counts) */
  --chat-bubble: rgba(255, 255, 255, 0.07);
  --chat-bubble-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --chat-grip: rgba(255, 255, 255, 0.18);
  --composer-bg: #0E1122;
  --composer-ring: linear-gradient(135deg, color-mix(in srgb, var(--brand-green) 55%, transparent), rgba(128, 179, 255, 0.45) 45%, rgba(255, 255, 255, 0.09) 75%);
  --composer-ring-shadow: 0 14px 40px -18px rgba(104, 126, 255, 0.55);
  --send-bg: var(--color-primary);   /* AIS-A538: flat, no gradient */
  --send-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 6px 18px -6px color-mix(in srgb, var(--brand-green) 90%, transparent);
  --send-fg: var(--color-on-primary);
  --canopy: none;   /* the indigo band of the light theme */
  --tool-off-bg: rgba(255, 255, 255, 0.025);
  --tool-off-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  --tool-on-bg: linear-gradient(180deg, rgba(128, 179, 255, 0.14), rgba(128, 179, 255, 0.04));
  --tool-on-shadow: inset 0 0 0 1px rgba(128, 179, 255, 0.45), 0 10px 24px -14px rgba(128, 179, 255, 0.6);
  --tool-well-fast: rgba(255, 255, 255, 0.05);
  --tool-well-delta: rgba(255, 255, 255, 0.05);
  --tool-well-income: rgba(255, 255, 255, 0.05);
  --tool-well-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --seg-on-bg: rgba(255, 255, 255, 0.12);
  --seg-on-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
  --live-text: var(--brand-green);
  --live-bg: color-mix(in srgb, var(--brand-green) 14%, transparent);
  --live-dot: var(--brand-green);

  /* action and accent. AIS-A538: the primary is the logo green in both themes, with dark text on it (8.95:1; white would be 2.28:1); green as text, an icon or a
     line on a background is --color-primary-text */
  --color-primary: var(--brand-green);
  --color-primary-hover: var(--brand-green-hover);
  --color-primary-pressed: var(--brand-green-pressed);
  --color-on-primary: #02040F;
  --color-primary-text: var(--brand-green);
  --color-on-negative: #02040F;   /* text on a --color-negative fill (the red counter, the danger button): it no longer borrows --color-on-primary */
  --color-accent: #80B3FF;
  --color-accent-hover: #9CC4FF;
  --color-accent-pressed: #6EA3F0;
  --color-on-accent: #02040F;
  --color-accent-strong: #687EFF;
  --color-chart-pair-light: #88B9FF;
  --color-check: var(--brand-green);
  --color-on-check: #02040F;
  --color-indicator-positive: var(--brand-green);
  --color-brand-purple: #473080;
  --color-brand-purple-ring: #352A71;
  --color-tenant-red: #A63137;

  /* text */
  --color-text: #FFFFFF;
  --color-text-body: #E6E7EB;
  --color-text-muted: #A9AAB2;
  --color-text-subtle: #8E90A0;
  --color-text-disabled: #5B5E70;

  /* semantic (always with icon / sign + word) */
  --color-positive: var(--brand-green);
  --color-positive-strong: var(--brand-green);
  --color-negative: #FF6B6E;
  --color-warning: #F5B83D;
  --color-info: #80B3FF;
  --tint-info: #1D273B;       /* 16 % of --color-info over surface-1 */
  --tint-warning: #30281C;
  --tint-negative: #311B24;
  --tint-positive: color-mix(in srgb, var(--brand-green) 14%, transparent);
  --tint-neutral: #131626;

  /* lines, overlays, states */
  --color-border-subtle: rgba(255, 255, 255, 0.08);
  --color-border-strong: rgba(255, 255, 255, 0.16);
  --color-field-border-hc: #898B93;
  --color-focus-ring: #80B3FF;
  --color-scrim: rgba(2, 4, 15, 0.72);
  --color-send-arrow-disabled: #282E50;
  --color-toggle-off: #5B6385;

  /* report replica skin */
  --color-report-frame: #19212E;
  --color-report-panel: #263144;
  --color-report-header: #354262;
  --color-report-slicer: #3C3664;
  --color-report-slicer-neutral: #333333;
  --color-report-divider: #4A5568;
  --color-scrollbar-thumb: #6D7179;

  /* categorical chart palette for new charts - fixed order, never cycled */
  --color-chart-1: #687EFF;
  --color-chart-2: #D95926;
  --color-chart-3: var(--icon-teal);   /* AIS-A538: teal, so it never reads as a second green beside the brand green (#4FD1C5 dark, #11807A light) */
  --color-chart-4: #C98500;
  --color-chart-5: #D55181;
  --color-chart-6: var(--brand-green);   /* AIS-A538: the green series is the brand green; --color-chart-3 stays teal */
  --color-chart-7: #9085E9;
  --color-chart-8: #E66767;
  /* the label drawn on a segment of slot N (DESIGN.md 3.7): near-black on every dark slot; the light theme sets its own below */
  --color-chart-label-1: var(--color-on-accent);
  --color-chart-label-2: var(--color-on-accent);
  --color-chart-label-3: var(--color-on-accent);
  --color-chart-label-4: var(--color-on-accent);
  --color-chart-label-5: var(--color-on-accent);
  --color-chart-label-6: var(--color-on-primary);
  --color-chart-label-7: var(--color-on-accent);
  --color-chart-label-8: var(--color-on-accent);
}

:root {
  color-scheme: dark;

  /* typography (13 px body; DESIGN.md 4.1) */
  --font-family: Poppins, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-family-code: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, "Liberation Mono", monospace; /* debug payloads (N-18) and the configuration path (N-22); system fonts, no file */
  --text-display: 2.5rem;       /* 40 - login slogan */
  --text-hero: 1.5rem;          /* 24 - CONTACT US / FOLLOW US */
  --text-kpi: 1.375rem;         /* 22 - KPI values */
  --text-xl: 1.25rem;           /* 20 - the visible page heading */
  --text-login: 1.125rem;       /* 18 - login heading; the page heading on phones */
  --text-lg: 1rem;              /* 16 - heading-2, price */
  --text-md: 0.875rem;          /* 14 - lg buttons, login field values */
  --text-tab: 0.875rem;         /* 14 - section tabs, in-page tab strips */
  --text-sm: 0.8125rem;         /* 13 - body, buttons, sidebar labels, domain tabs, card titles */
  --text-chat: 0.8125rem;       /* 13 */
  --text-xs: 0.75rem;           /* 12 - the floor */
  --text-code: 0.75rem;         /* 12 - debug payloads */
  /* the redesign's built roles (DESIGN.md typography); the five below 12 px are chrome roles only (D-20261104-design3-micro-type) */
  --text-greeting: 1.625rem;    /* 26 - the empty chat's greeting */
  --text-composer: 0.875rem;    /* 14 - the question in the composer */
  --text-chat-title: 0.84375rem; /* 13.5 - the chat header's title */
  --text-domain-tab: 0.78125rem; /* 12.5 - a domain in the domain well */
  --text-tool-desc: 0.71875rem; /* 11.5 - a tool card's description */
  --text-micro: 0.6875rem;      /* 11 - chat subtitle, composer hint, audit line */
  --text-avatar: 0.6875rem;     /* 11 - initials in the account button's disc */
  --text-kicker: 0.65625rem;    /* 10.5 - IZVEŠTAJ, PREDLOŽENA PITANJA */
  --text-count: 0.625rem;       /* 10 - the unread count on the bell */
  --lh-display: 1.2;
  --lh-tight: 1.33;             /* 16 on 12 */
  --lh-body: 1.54;              /* 20 on 13 */
  --lh-chat: 1.54;
  --lh-code: 1.5;               /* 18 on 12 */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --tracking-upper: 0.04em;
  --tracking-card-title: 0.02em;
  --tracking-nav: 0.02em;
  --tracking-kicker: 0.1em;

  /* spacing: 4 px grid */
  --space-1: 0.25rem;           /* 4 */
  --space-2: 0.5rem;            /* 8 */
  --space-3: 0.75rem;           /* 12 */
  --space-4: 1rem;              /* 16 */
  --space-5: 1.25rem;           /* 20 */
  --space-6: 1.5rem;            /* 24 */
  --space-7: 2rem;              /* 32 */
  --space-8: 2.5rem;            /* 40 */
  --nav-gap: 0.25rem;           /* 4 - between top-bar entries */

  /* radii */
  --radius-xs: 4px;
  --radius-seg-sm: 7px;         /* a button of the chat size switch */
  --radius-chip: 6px;
  --radius-md: 8px;
  --radius-field-sm: 8px;
  --radius-field: 8px;
  --radius-seg: 9px;            /* the raised pill and the items of a well */
  --radius-lg: 10px;
  --radius-xl: 12px;
  --radius-chat: 12px;
  --radius-inner: 14px;         /* tool cards; content panel, inner cards, visual tiles, board columns */
  --radius-card: 18px;          /* glass cards and report cards, dialogs, drawers' free side */
  --radius-composer: 20px;      /* the composer's glowing edge */
  --radius-bubble: 18px 18px 6px 18px;   /* the user's message */
  --radius-pill: 999px;

  /* elevation: none, except overlays */
  --shadow-overlay: 0 12px 32px rgba(0, 0, 0, 0.55);
  /* the report card's depth: outside the dark-island list above, so the report cards take the light value in the light theme (DESIGN.md colors-light) */
  --report-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 30px 80px -30px rgba(0, 0, 0, 0.85);

  /* layout */
  --nav-height: 64px;
  --gutter: 24px;
  --header-inset: var(--gutter);  /* alias: the top bar and the context row share the content inset */
  --content-top: 16px;
  --card-gap: 16px;
  --sidebar-width: 272px;      /* AIS-A532, ZADATAK 11 addition: every Serbian item on one line from 1100 px up (Podrška – primljene poruke with a 99+ counter) */
  --chat-width: clamp(340px, 26vw, 440px);
  --debug-panel-w: clamp(360px, 28vw, 520px);   /* the docked debug panel, >= 1280 px (DESIGN.md N-18) */

  /* controls, items, rows, targets (DESIGN.md 5.4, 14) */
  --control-h-sm: 28px;
  --control-h-md: 32px;
  --control-h-lg: 40px;
  --field-stacked-h: 44px;
  --sidebar-item-h: 40px;      /* AIS-A532: one fixed row height for the menu (the 33 px icon tile fits with room) */
  --table-head-h: 32px;
  --table-row-h: 36px;
  --table-row-compact-h: 32px;
  --target-min: 32px;            /* fine pointer (WCAG 2.2 AA 2.5.8 asks for 24) */
  --touch-min: 44px;
  --field-edge: transparent;      /* field outline colour; switched on by prefers-contrast: more */

  /* motion */
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 320ms;
  --ease: cubic-bezier(0.2, 0, 0, 1);

  /* z-index scale */
  --z-sticky: 20;
  --z-nav: 40;
  --z-drawer: 60;
  --z-dialog: 70;
  --z-toast: 80;
}

@media (max-width: 1099px) { :root { --gutter: 16px; } }
@media (max-width: 767px) {
  :root {
    --gutter: 12px; --card-gap: 12px; --content-top: 12px;
  }
}
/* touch: every target reaches 44 px; the look of sm controls stays compact (DESIGN.md 14) */
@media (pointer: coarse), (max-width: 767px) {
  :root {
    --target-min: var(--touch-min); --control-h-sm: 36px; --control-h-md: var(--touch-min); --control-h-lg: var(--touch-min);
    --sidebar-item-h: var(--touch-min);
  }
}
@media (prefers-contrast: more) {
  :root { --field-edge: var(--color-field-border-hc); }
}

/* the light theme (redesign 2026-11): a light canvas with white cards; the top bar and the context row stand on an indigo band across the top, in white letters;
   the report card stays dark (#19212E) to match the Power BI report. The server renders data-theme on <html> from the user's setting (App.razor). */
:root[data-theme="light"] {
  /* AIS-A531: the feature icon colours of the light theme */
  --icon-blue: #2E6BD6;
  --icon-violet: #6A4FE0;
  --icon-green: var(--brand-green-ink);   /* AIS-A538: the brand green as an icon on light */
  --icon-amber: #AA6600;   /* #B26B00 of the choice, darkened to reach 3:1 against its tile on surface-3 */
  --icon-teal: #11807A;
  --icon-pink: #C2416C;
  --icon-red: #C93C3F;
  --icon-gray: #5B5F75;
  --icon-tile-mix: 12%;
  color-scheme: light;
  --aura: radial-gradient(closest-side, rgba(104, 126, 255, 0.10), transparent);
  --splash-skip: var(--color-text-muted);   /* AIS-V931: 6.14:1 on the canvas, 5.46 over the splash glow (the dark #8B8EA0 was 2.97 here) */

  --color-bg: #F3F5FA;
  --color-bg-glow-1: rgba(104, 126, 255, 0.05);
  --color-bg-glow-2: color-mix(in srgb, var(--brand-green) 4%, transparent);
  --color-surface-1: #FFFFFF;
  --color-surface-2: #EEF0F6;
  --color-surface-3: #E1E4EE;
  --color-surface-hover-1: #F6F7FB;
  --color-surface-hover-2: #E7EAF2;

  --hdr-bg: transparent;
  --hdr-solid: #30306A;
  --hdr-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.10);
  --hdr-text: #FFFFFF;
  --hdr-muted: rgba(255, 255, 255, 0.86);
  --hdr-subtle: rgba(255, 255, 255, 0.70);
  --hdr-hair: rgba(255, 255, 255, 0.20);
  --hdr-hover: rgba(255, 255, 255, 0.12);
  --hdr-hover-strong: rgba(255, 255, 255, 0.18);
  --hdr-chip: rgba(255, 255, 255, 0.12);
  --canopy: radial-gradient(760px 300px at 12% -10%, rgba(140, 150, 255, 0.55), transparent 70%), radial-gradient(600px 260px at 95% 0%, color-mix(in srgb, var(--brand-green) 28%, transparent), transparent 70%),
    linear-gradient(115deg, #24244E 0%, #33337A 38%, #3A2E7C 68%, #283A70 100%);

  --card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.90));
  --card-shadow: inset 0 0 0 1px rgba(16, 20, 40, 0.06), inset 0 1px 0 #FFFFFF, 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 20px -10px rgba(16, 24, 40, 0.10), 0 32px 64px -32px rgba(40, 52, 110, 0.22);
  --report-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 2px 4px rgba(16, 24, 40, 0.08), 0 36px 70px -30px rgba(20, 28, 60, 0.55);
  --well-bg: rgba(16, 20, 40, 0.05);
  --well-shadow: inset 0 0 0 1px rgba(16, 20, 40, 0.04);
  --pill-bg: #FFFFFF;
  --pill-shadow: 0 1px 2px rgba(16, 24, 40, 0.08), 0 2px 8px -2px rgba(16, 24, 40, 0.10);
  --pill-text: #0F1222;
  --color-glow-brand: rgba(104, 126, 255, 0.14);
  --color-glow-green: color-mix(in srgb, var(--brand-green) 10%, transparent);
  --net-opacity: 0.09;

  --chat-hair: rgba(16, 20, 40, 0.09);
  --chat-hover: rgba(16, 20, 40, 0.05);
  --chat-glow: rgba(104, 126, 255, 0.12);
  --composer-ring-breathe: 0 16px 44px -12px rgba(59, 85, 209, 0.6);
  --lift-glow: rgba(59, 85, 209, 0.45);
  --chat-bubble: #EEF0F6;
  --chat-grip: rgba(16, 20, 40, 0.18);
  --composer-bg: #FFFFFF;
  --composer-ring: linear-gradient(135deg, color-mix(in srgb, var(--brand-green) 55%, transparent), rgba(59, 85, 209, 0.45) 45%, rgba(16, 20, 40, 0.10) 75%);
  --composer-ring-shadow: 0 16px 36px -20px rgba(59, 85, 209, 0.40);
  --send-bg: var(--color-primary);
  --send-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.30), 0 6px 16px -6px color-mix(in srgb, var(--brand-green) 70%, transparent);
  --send-fg: var(--color-on-primary);
  --tool-off-bg: #FFFFFF;
  --tool-off-shadow: inset 0 0 0 1px rgba(16, 20, 40, 0.07), 0 1px 2px rgba(16, 24, 40, 0.04);
  --tool-on-bg: linear-gradient(180deg, rgba(59, 85, 209, 0.07), rgba(59, 85, 209, 0.02));
  --tool-on-shadow: inset 0 0 0 1px rgba(59, 85, 209, 0.40), 0 10px 24px -16px rgba(59, 85, 209, 0.5);
  --tool-well-fast: linear-gradient(135deg, color-mix(in srgb, var(--brand-green) 12%, #FFFFFF), color-mix(in srgb, var(--brand-green) 22%, #FFFFFF));
  --tool-well-delta: linear-gradient(135deg, #E6EBFF, #D3DBFF);
  --tool-well-income: linear-gradient(135deg, #FFF1DC, #FFE2B8);
  --seg-on-bg: #FFFFFF;
  --seg-on-shadow: 0 1px 2px rgba(16, 24, 40, 0.10);
  --live-text: var(--brand-green-ink);
  --live-bg: color-mix(in srgb, var(--brand-green) 12%, transparent);
  --live-dot: var(--brand-green);

  --brand-green-hover: #6AAA1F;
  --brand-green-pressed: #5E9A1A;
  --color-primary: var(--brand-green);   /* AIS-A538: the same green fill with dark text as the dark theme */
  --color-primary-hover: var(--brand-green-hover);
  --color-primary-pressed: var(--brand-green-pressed);
  --color-on-primary: #02040F;
  --color-primary-text: var(--brand-green-ink);
  --color-on-negative: #FFFFFF;
  --color-accent: #3B55D1;
  --color-accent-hover: #2F47B8;
  --color-accent-pressed: #283E9F;
  --color-on-accent: #FFFFFF;
  --color-accent-strong: #3B55D1;
  --color-chart-pair-light: #8FA2F0;
  --color-check: var(--brand-green);
  --color-on-check: #02040F;
  --color-indicator-positive: var(--brand-green-ink);

  --color-text: #0F1222;
  --color-text-body: #2B2F44;
  --color-text-muted: #575B70;
  --color-text-subtle: #62667A;
  --color-text-disabled: #9A9DAD;

  --color-positive: var(--brand-green-ink);
  --color-positive-strong: var(--brand-green-ink);   /* positive text on surface-3: 4.81:1 (AIS-A538) */
  --color-negative: #C2343A;
  --color-warning: #8F5B00;
  --color-info: #2A44C9;
  --tint-info: #E8ECFB;
  --tint-warning: #FBF1DD;
  --tint-negative: #FBE7E8;
  --tint-positive: color-mix(in srgb, var(--brand-green) 12%, var(--color-surface-1));   /* AIS-V931: opaque, so the ink holds 5.56:1 on every surface; the translucent tint gave 4.48 on a selected surface-3 row (DESIGN.md 3.5) */
  --tint-neutral: #EEF0F6;

  --color-border-subtle: rgba(16, 20, 40, 0.09);
  --color-border-strong: rgba(16, 20, 40, 0.18);
  --color-field-border-hc: #575B70;
  --color-focus-ring: #3B55D1;
  --color-scrim: rgba(15, 18, 34, 0.45);
  --color-send-arrow-disabled: #B6BBCB;
  --color-toggle-off: #787F99;   /* AIS-V817: 3.97:1 on white (the white knob on it too), 3.12:1 on surface-3, the 3:1 of WCAG 1.4.11 for a component state; the earlier #B0B5C6 was 2.04:1 (DESIGN.md 15.1) */
  --color-scrollbar-thumb: #B6BBCB;
  --color-chart-4: #A36B00;           /* the dark amber is 3.07:1 on white; 4.51:1 here (DESIGN.md 3.7) */
  --color-chart-label-1: var(--color-on-primary);   /* AIS-V931 (DESIGN.md 3.7): near-black where it passes 4.5:1 (5.18-6.54), white (on-accent) stays only on slots 3 and 4 */
  --color-chart-label-2: var(--color-on-primary);
  --color-chart-label-5: var(--color-on-primary);
  --color-chart-label-7: var(--color-on-primary);
  --color-chart-label-8: var(--color-on-primary);
  --color-chart-6: color-mix(in srgb, var(--brand-green) 50%, var(--brand-green-ink));   /* the brand green is 2.28:1 on white; this half-way shade to the ink is 3.61:1 on white and keeps the near-black segment label (--color-on-primary) at 5.67:1 (AIS-V805, AIS-V808; the pure ink would give that label 3.34:1) */

  --shadow-overlay: 0 12px 32px rgba(16, 24, 40, 0.18);
}

/* the band: the top bar's content and the context row keep the dark colours (block at the top) with the band's own well, pill and badge */
:root[data-theme="light"] :is(.ds-topbar > :not(.ds-scrim), .ds-context) {
  --hdr-muted: rgba(255, 255, 255, 0.86);   /* AIS-V931: the inactive section tab over the top-left glow is 4.5:1 or more (78 % gave 4.2-4.4; DESIGN.md 15.1) */
  --hdr-subtle: rgba(255, 255, 255, 0.70);
  --hdr-hair: rgba(255, 255, 255, 0.20);
  --hdr-hover: rgba(255, 255, 255, 0.12);
  --hdr-hover-strong: rgba(255, 255, 255, 0.18);
  --hdr-chip: rgba(255, 255, 255, 0.12);
  --hdr-solid: #30306A;
  --color-text-muted: rgba(255, 255, 255, 0.86);   /* the inactive domain tab in the well, the same */
  --well-bg: rgba(255, 255, 255, 0.10);
  --well-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  --pill-bg: #FFFFFF;
  --pill-text: #1F2150;
  --pill-shadow: 0 4px 14px -4px rgba(0, 0, 0, 0.35);
  --color-info: #CFE0FF;
  --tint-info: rgba(255, 255, 255, 0.08);
  --live-text: color-mix(in srgb, var(--brand-green) 55%, var(--hdr-text));   /* AIS-V805: the brand green lightened toward white; the brand green on its 20 % tint over the band was 3.7-4.4:1 as rendered, now 4.5:1 or more at every width (DESIGN.md 15.1) */
  --live-bg: color-mix(in srgb, var(--brand-green) 8%, transparent);
  --live-dot: var(--brand-green);
}
