/* SBL DAM — generated from tokens.json */
:root, [data-theme="dark"] {
  --bg-top: #010101; /* Top stop of the app gradient. `text-primary` reads on it in both themes. */
  --bg-mid: #0a1b4c; /* Middle stop of the app gradient (at 55%) and the flat ground of the cover. `text-primary` and `text-muted` read on it. */
  --bg-bottom: #13348d; /* Bottom stop of the app gradient. `text-primary` 11:1 (dark) and 13:1 (light); `text-muted` 6.3:1 (dark) and 5.9:1 (light). */
  --surface-field: #0b1b41; /* Fill of text fields. `text-primary` for typed values, `text-placeholder` for hints. */
  --border-field: #6f8ccc; /* 1px border of fields. 3.9:1 (dark) and 3.3:1 (light) against the app gradient where forms sit, so a field can be found without its fill. */
  --border-hair: rgba(255, 255, 255, 0.16); /* Decorative hairline around the logo tile and cards; carries no meaning. */
  --text-primary: #ffffff; /* Headings, typed values, links. On `bg-top`, `bg-mid`, `bg-bottom` and `surface-field`. */
  --text-muted: #b8c4e6; /* Labels, subtitles, captions, eyebrow lines. On `bg-mid`, `bg-bottom` and `surface-field`, at least 5.9:1. */
  --text-placeholder: #a3b2dd; /* Placeholder text inside `surface-field` (8:1 dark, 5:1 light). Never for labels. */
  --focus-ring: #8fb8ff; /* Solid 2px focus outline on every interactive element. At least 5.3:1 on the app gradient and `surface-field` in both themes. */
  --focus-glow: #2e71d1; /* Soft blue halo around a focused field, drawn with `focus-ring`; never the only focus cue. */
  --btn-top: #1c1c1e; /* Top stop of the primary button gradient, both themes. `text-on-btn` 17:1. */
  --btn-bottom: #030303; /* Bottom stop of the primary button gradient, both themes. */
  --btn-border: #6f8ccc; /* 1px edge of the primary button; on the dark gradient it lifts the button off the ground (3.9:1). */
  --text-on-btn: #ffffff; /* Label on the primary button (`btn-top` to `btn-bottom`), both themes. */
  --logo-tile: #fbf6f0; /* Tile the logo sits on, with a `border-hair` edge. The logo's blue layer disappears on the dark gradient without it. */
  --accent-blue: #7db3f0; /* Blue icons and thin strokes. 7.5:1 on `bg-mid` (dark), 8.2:1 on white (light). */
  --accent-audio: #cbced2; /* Grey blocks and chips for audio. Pair with `brand-blue` marks (6.6:1 dark, 3.2:1 light). */
  --danger-text: #ffb3b3; /* Error message under a field, always with an icon and the word 'Error'. 7.7:1 on the dark gradient, 5.2:1 on `bg-bottom` (light). */
  --brand-blue: #03518a; /* Logo blue (document layer). A fill with `brand-paper` or white on top; as text or icon on dark grounds use `accent-blue`. */
  --brand-green: #8fc45a; /* Logo green (video layer). Highlights, video tiles, progress. Text on it is `on-brand-green`. */
  --brand-grey: #cbced2; /* Logo grey (audio layer). Audio icons on the hero panel. */
  --brand-paper: #fbf6f0; /* Logo off-white; document glyph fills. */
  --brand-cobalt: #13348d; /* Deep cobalt from the app gradient, used as a solid block (cover, charts). */
  --on-brand-green: #0b2a0a; /* Text and icons on `brand-green` fills (7.6:1). */
  --hero-top: #010101; /* Top of the hero panel. The hero is dark in BOTH themes. */
  --hero-bottom: #0a1b4c; /* Bottom of the hero panel. */
  --hero-text: #ffffff; /* Headline and icons on the hero panel (`hero-top` to `hero-bottom`). */
  --hero-muted: #b8c4e6; /* Subtext and tile labels on the hero panel (10:1 on `hero-bottom`). */
  --hero-sky: #7db3f0; /* Ridge lines and the document icon on the hero panel (7.5:1). */
  --hero-glass: rgba(255, 255, 255, 0.07); /* Frosted fill of cards and tiles on the hero panel. */
  --hero-glass-border: rgba(255, 255, 255, 0.16); /* Decorative hairline on hero glass; carries no meaning. */
  --canvas: #060e2b; /* Page ground inside the app (behind cards and panels). `text-primary` 19:1 dark, 15.6:1 light; `text-muted` at least 6.8:1. */
  --surface: #0b1840; /* Sidebar, top bar, cards, tables and panels. `text-primary`, `text-muted` and `accent-blue` read on it. */
  --surface-raised: #12235a; /* Menus, dropdown lists, dialogs and toasts, always with `shadow-pop` and a `border-subtle` edge. `text-muted` 8.5:1 in dark. */
  --surface-hover: rgba(255, 255, 255, 0.06); /* Hover fill for nav items, menu items, ghost buttons and table rows; also the table header fill. */
  --surface-selected: rgba(79, 143, 240, 0.20); /* Fill of the selected nav item, selected table row, current page number. Text on it: `accent-blue` (5.8:1 dark, 6.9:1 light) or `text-primary`. */
  --border-subtle: rgba(255, 255, 255, 0.10); /* Dividers and card edges; decorative, never the only mark of a control. */
  --control-on: #4f8ff0; /* Fill of a checked checkbox, selected radio and an on switch. 5.4:1 against `surface` in dark, 8.2:1 in light. */
  --on-control-on: #ffffff; /* The check mark, dot and switch thumb on `control-on` (3.2:1 dark, 8.2:1 light). */
  --success-text: #a6dc72; /* Text and icon of a success badge, alert or toast, on `success-bg` (8:1 dark, 5.8:1 light). */
  --success-bg: rgba(143, 196, 90, 0.16); /* Tint behind success text. */
  --warning-text: #ffd27a; /* Text and icon of a warning badge, alert or toast, on `warning-bg` (8.4:1 dark, 5.5:1 light). */
  --warning-bg: rgba(255, 210, 122, 0.16); /* Tint behind warning text. */
  --danger-bg: rgba(255, 179, 179, 0.14); /* Tint behind `danger-text` in error badges and alerts. */
  --info-bg: rgba(125, 179, 240, 0.16); /* Tint behind `accent-blue` text in info badges and alerts. */
  --danger-fill: #c62d22; /* Fill of the destructive button, both themes; label is `text-on-danger` (5.5:1). */
  --text-on-danger: #ffffff; /* Label on `danger-fill`. */
  --scrim: rgba(1, 3, 12, 0.70); /* Overlay behind a dialog. */
  --shadow-focus: 0 0 0 2px #8fb8ff, 0 0 28px rgba(46, 113, 209, 0.6); /* Focused field: solid ring plus blue halo. */
  --shadow-card: 0 28px 70px rgba(0, 0, 0, 0.45); /* Glass cards floating on the hero panel. */
  --shadow-pop: 0 16px 48px rgba(0, 0, 0, 0.55); /* Menus, dialogs, toasts and tooltips. */
}
[data-theme="light"] {
  --bg-top: #ffffff;
  --bg-mid: #f1f5fd;
  --bg-bottom: #dbe6fb;
  --surface-field: #ffffff;
  --border-field: #6a7ca8;
  --border-hair: rgba(11, 27, 65, 0.14);
  --text-primary: #0b1b41;
  --text-muted: #46557a;
  --text-placeholder: #5f6f94;
  --focus-ring: #1d4ed8;
  --focus-glow: #1d4ed8;
  --btn-border: #0b1b41;
  --logo-tile: #ffffff;
  --accent-blue: #03518a;
  --accent-audio: #9aa3b2;
  --danger-text: #b42318;
  --canvas: #f4f6fb;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-hover: #eef2f9;
  --surface-selected: #e2ebfa;
  --border-subtle: #e0e6f0;
  --control-on: #03518a;
  --success-text: #2c6a0e;
  --success-bg: #e6f4d7;
  --warning-text: #8a5300;
  --warning-bg: #fcefd0;
  --danger-bg: #fde8e6;
  --info-bg: #dfecfb;
  --scrim: rgba(11, 27, 65, 0.45);
  --shadow-focus: 0 0 0 2px #1d4ed8, 0 0 20px rgba(29, 78, 216, 0.28);
  --shadow-pop: 0 12px 32px rgba(11, 27, 65, 0.18);
}
:root {
  --space-1: 4px; /* Icon-to-text gaps. */
  --space-2: 8px; /* Label to field; eyebrow to title; title to subtitle. */
  --space-3: 12px; /* Inside a field, between icon and value; logo tile to name. */
  --space-4: 16px; /* Field horizontal padding; gap between fields; hero panel inset. */
  --space-6: 24px; /* Password field to the button. */
  --space-8: 32px; /* Subtitle to the first field; panel padding. */
  --space-12: 48px; /* Field and button height; hero text bottom padding. */
  --space-16: 64px; /* Large vertical separation. */
  --space-5: 20px; /* Card padding on dense screens; gap between sidebar groups. */
  --space-10: 40px; /* Control height (md); page bottom padding. */
  --radius-xs: 4px; /* Checkboxes. */
  --radius-sm: 8px; /* Small marks, pills in patterns, ghost buttons. */
  --radius-ctl: 12px; /* In-app controls and nav items: buttons, fields, menus, tabs focus. */
  --radius-md: 16px; /* Fields, buttons and the logo tile. */
  --radius-lg: 20px; /* The hero panel and glass cards. */
  --radius-pill: 999px; /* Badges, switches, avatars, the organization chip. */
  --motion-fast: 120ms; /* Color, border and icon swaps, and the press on buttons. */
  --motion-base: 200ms; /* Hover lifts, row actions, menus and popovers, the tab underline. */
  --motion-slow: 320ms; /* Modal, drawer, toast and thumbnail zoom. */
  --ease-out: cubic-bezier(.2,0,0,1); /* Default for anything entering, lifting or sliding. */
  --ease-spring: cubic-bezier(.34,1.56,.64,1); /* Checkmarks, the switch thumb, the nav marker and the modal rise. */
  --z-sticky: 4; /* Sticky table header, first column and row actions. */
  --z-bulk: 30; /* Floating bulk-action bar. */
  --z-overlay: 100; /* Scrim, modal, drawer, popover and toast. */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text-hero: 300 40px/48px var(--font-sans); /* The hero panel headline ('Digital asset management'). */
  --text-title: 700 36px/40px var(--font-sans); /* Screen title above a form ('Welcome back'). */
  --text-subtitle: 400 16px/24px var(--font-sans); /* One line under the title, in `text-muted`. */
  --text-input: 400 16px/24px var(--font-sans); /* Typed value and placeholder inside a field. */
  --text-label: 500 14px/20px var(--font-sans); /* Field labels, above the field, in `text-muted`. */
  --text-button: 500 16px/24px var(--font-sans); /* Button labels. */
  --text-caption: 400 14px/20px var(--font-sans); /* Hero subtext, helper and error text, links. */
  --text-eyebrow: 500 13px/16px var(--font-sans); /* Small line above a title, in `text-muted`. */
  --text-page-title: 700 28px/36px var(--font-sans); /* The page title at the top of an app screen. */
  --text-card-title: 600 18px/28px var(--font-sans); /* Title of a card, dialog or panel. */
  --text-body: 400 14px/20px var(--font-sans); /* Default app text: nav items, table cells, descriptions. */
  --text-body-strong: 600 14px/20px var(--font-sans); /* Active nav item, table row titles, selected tab. */
  --text-section-label: 600 12px/16px var(--font-sans); /* Sidebar group labels and table headers; the only text set in capitals, in `text-muted`. */
}
