/* HSC Admin tokens (John's side). Created 30 Oct 2026 from Specs/Admin spec LOCKED.md §6.3.
   A parallel copy, not a shared file (Julia, 30 Oct): admin.html loads THIS file and never tokens.css.
   The Colors, Radius and Space values were copied from css/tokens.css on 30 Oct 2026 and are independent from now on.
   A value meant to change on both sides is changed in both files, by hand, on purpose.
   Size, Stroke, Type, Motion, Z-index and Shadow come from Specs/Design system.md §2; only the Size values
   control-h-md and panel-w are the Admin's own. 30 Oct 2026, Increment 2a (Specs/Admin IA spec LOCKED.md §1, r1 §1.1): control-h-md 40 -> 48
   (one touch-sized density for the whole Admin; control-h-sm is retired), --type-body (400 16/1.5) and --size-icon (the button spinner) added from Design system §2.
   Names are the flat names of tokens.css, so both sides speak one vocabulary. */
:root {
  /* Colors (17). blue, muted-on-dark, line-on-dark and highlight aren't used by the Admin yet. */
  --blue: #0596E5;
  --logo-blue: #143D8D;
  --navy: #062B52;
  --ink: #0B1726;
  --white: #FFFFFF;
  --text: #2F3D4E;
  --muted: #4E647E;
  --line: #D5E3EF;
  --mist: #EEF6FC;
  --sky: #8FD3FF;
  --text-on-dark: #D5E3EF;
  --muted-on-dark: #AFC0D2;
  --line-on-dark: #4E647E;
  --orange: #FF720B;
  --green: #2DBE6C;
  --green-done: #0B8E4B; /* Julia, 3 Nov: "Keep white and select a new green to accomodate 3:1"; only the done circle of the event stepper */
  --highlight: #AEFF00;
  --red: #C9302C;
  /* Admin layer only (Specs/Admin Calendar presence r1 §1.1, approved by the PM 31 Oct): the checked-in fill, the Key swatch and the landing beat's end state. `green` at 20% over `white` (renders #D5F2E2); no new hex, tokens.css and Figma Colors don't change. */
  --green-tint: color-mix(in srgb, var(--green) 20%, var(--white));
  --chip-mist: #DAEFFF; /* Admin only (Julia, 3 Nov: "mist is too light for chips"; Design system 2.7): a chip or pill that sat on --mist; --mist stays for panels and alerts */
  --red-tint: color-mix(in srgb, var(--red) 20%, var(--white)); /* Admin only (Events and Event Ops r1 4.1): an incident count; `red` at 20% over `white`, as orange-tint; no new hex */
  --orange-tint: color-mix(in srgb, var(--orange) 20%, var(--white)); /* Admin only (Calendar halls r1 §4.3, approved by Julia 1 Nov): an event's setup and takedown; `orange` at 20% over `white` (renders #FFE3CE), as green-tint; no new hex */
  --blue-fill: color-mix(in srgb, var(--blue) 30%, var(--white)); /* Admin only (block colours r2, 1b; Julia, 4 Nov: "need lighter shade of blue here for readability"): booked */
  --field-border: #92A6BD; /* Admin only (Figma 167:47): a field's rest border */
  --field-border-hover: #768DA8; /* Admin only (Figma 167:54): a field's hover border */
  --hover-tint: color-mix(in srgb, var(--sky) 40%, var(--white)); /* Admin only (Julia, 2 Nov: option B, sky blue): hover, open and selected states; fills keep --mist */
  --icon-success: color-mix(in srgb, var(--green) 65%, var(--ink)); /* Admin only: state icons reach 3:1 on white */
  --icon-warning: color-mix(in srgb, var(--orange) 80%, var(--ink));
  --bar-hover: color-mix(in srgb, var(--blue) 15%, transparent); /* Admin only (Figma 291:228): date bar hover */
  --bar-active: color-mix(in srgb, var(--blue) 30%, transparent); /* date bar pressed and open */
  --orange-mid: color-mix(in srgb, var(--orange) 72%, var(--white)); /* Admin only (Julia's Figma 390:3, 6 Nov: "My draft"): the 230 to 330 band of the gate load scale, drawn with an inside edge in --orange */
  --red-soft: #F35C58; /* Admin only (Julia's Figma 390:3, 6 Nov: "My draft"): the over 330 band of the gate load scale; her hex, it is not a mix of --red */
  --green-mid: color-mix(in srgb, var(--green) 45%, var(--white)); /* Admin only (Julia, 3 Nov): the middle green of the Gate load heat scale, 30 to 50% of capacity */
  --green-fill: color-mix(in srgb, var(--green) 70%, var(--white)); /* Admin only (block colours r2, 1b): checked in, session under way */

  /* Radius (5). xl is unused for now. */
  --radius-sm: 8px; /* 4px grid review 10 Nov: was 6 */
  --radius-xs: 4px; /* 4px grid review 10 Nov: new, marks 20 px high or less (legend swatch, key swatch, now pill, segment, chart bar) */
  --radius-md: 12px;
  --radius-none-focus: 4px; /* Admin only (Figma borderRadiusNoneFocus, 3 Nov): the inside focus ring on a square element, element radius 0 + 4 */
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-full: 999px;

  /* Space (11) */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 20px;
  --space-xl: 24px;
  --space-2xl: 32px;
  --space-3xl: 40px;
  --space-4xl: 64px;
  --space-5xl: 80px;
  --space-6xl: 112px;

  /* Size. control-h-md and panel-w are the Admin's own; dot, icon and avatar are Design system §2.2 (the avatar is no longer used by the Admin: the switcher circles are control-h-md). */
  --size-control-h-md: 48px;
  --size-panel-w: 400px;
  --size-dot: 8px;
  --size-icon: 24px; /* 4px grid review 10 Nov: was 22 */
  --size-icon-sm: 16px; /* 4px grid review 10 Nov: new, icons inside a line of text and tags (same as tokens.css) */
  --size-choice: 24px; /* Admin only (Julia, 3 Nov; Figma 167:159): a checkbox or radio */
  --size-avatar: 44px;
  --size-field-h: 44px; /* Admin only (Julia, 2 Nov): a form box; her words win over Figma's 48 */
  --nav-current: #00A5FF; /* Admin only (Julia, 3 Nov; Figma header r2): the 4 px bar under the current or open tab */
  --stroke-indicator: 4px; /* Admin only (same): that bar's thickness */
  --size-control-sm: 32px; /* Admin only (Julia, 3 Nov; Event Ops Overview spec §9): the icon-only trigger of a dense row, e.g. the Actions menu */
  --size-marker: 32px; /* Admin only (Julia, 3 Nov; Figma): the least box of a header counter; it grows with the number */

  /* Stroke (4), Design system §2.2 */
  --stroke-divider: 1px;
  --stroke-border: 1.5px;
  --stroke-border-strong: 2px;
  --stroke-underline-offset: 3px;
  --field-label-gap: 4px; /* Admin only (Figma 167:47): label to box */
  --stroke-focus: 4px; /* Admin only (Julia, 2 Nov): the focus ring */
  --focus-offset: 0; /* Julia, 3 Nov: 4 px blue, no gap (Figma 160:132, 160:72, 167:61) */

  /* Type: Inter, 400 / 500 / 600 / 700 only. Each style is one shorthand, used as font: var(--type-...). Tabular figures are font-variant-numeric on the element. */
  --font: 'Inter', 'Alexandria', system-ui, sans-serif;
  --type-h3: 700 20px/28px var(--font); /* 4px grid review 10 Nov: was 1.3 */
  --type-body: 400 16px/1.5 var(--font);
  --type-body-strong: 600 16px/1.5 var(--font);
  --type-nav: 500 16px/1.5 var(--font);
  --type-body-sm: 400 14px/20px var(--font); /* 4px grid review 10 Nov: was 1.5 */
  --type-label: 600 14px/20px var(--font); /* kept in the file; no Admin screen uses it since 2a (the dock's Demo controls may) */
  --type-page-title: 700 26px/32px var(--font); /* 4px grid review 10 Nov: was 1.3 */ /* Admin only (Julia, 3 Nov: "A, event as title"): the Event Ops page title */
  --type-caption: 500 12px/16px var(--font); /* same */
  --type-mark: italic 900 20px/28px var(--font); /* 4px grid review 10 Nov: was 30px */ /* Admin only (Julia, 3 Nov; Figma header r2): the ADMIN word beside the logo; the one place Inter 900 italic is used */

  /* Motion (easing stays the CSS default, ease) */
  --dur-fast: 150ms;
  --dur-slow: 600ms;

  /* Z-index */
  --z-planner-head: 4; /* Admin only (Julia, 3 Nov): the planner's pool and lane headers sit above every block, the Arena event's .over block included */
  --z-nav: 5;
  --z-demo: 90;
  --z-toast: 100;

  /* Shadow: Design system §2.3 recipes, built from the copied colours */
  --shadow-sm: 0 10px 30px color-mix(in srgb, var(--navy) 15%, transparent);
  --shadow-lg: 0 12px 32px color-mix(in srgb, var(--ink) 35%, transparent);
}
