/* Bolt Range - the design tokens and base rules every page shares
   (index, view, admin, login), as the proposal config's. Linked before
   each page's own <style>, which adds its own tokens and can override
   any of these. Dark first - it's meant to read like rack-mounted studio
   gear - with a light theme to switch to (theme.js sets data-theme on
   <html>). */
:root{
  --icon:var(--ink);
  /* the type scale - the proposal config's, by role; every text uses one:
     caption (uppercase labels, eyebrows) 10px · badge (pills, column heads) 10.5 ·
     meta (secondary lines, small buttons) 11 · small (notes, legends) 11.5 ·
     ui (fields, dropdowns, buttons, checkboxes) 12 · table 12.5 · text (body) 13 ·
     name (a card's title) 13.5 · title 16. Display headings and readouts keep their own. */
  --fs-caption:.625rem; --fs-badge:.65625rem; --fs-meta:.6875rem; --fs-small:.71875rem; --fs-ui:.75rem;
  --fs-table:.78125rem; --fs-text:.8125rem; --fs-name:.84375rem; --fs-title:1rem;

  --ground:#17141a; --panel:#201c24; --panel-2:#28222c; --line:#3a3140;
  --ink:#f1ede9; --dim:#a89dae; --dimmer:#786d7f;
  --accent:#c8102e; --accent-ink:#ffffff;
  --good:#5fbe86; --edge:#e8b04b;
  --font-display:'Big Shoulders Display',Impact,'Arial Narrow',sans-serif;
  --font-body:'IBM Plex Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --font-mono:'IBM Plex Mono',ui-monospace,'SF Mono',Menlo,Consolas,monospace;
  /* One control height, as in the proposal config: every field, dropdown
     and button is 28px (--ctl-h), so whatever sits side by side lines up.
     Checkboxes, radios, sliders, colour wells, text areas and card-like
     buttons (tiers, room sizes) aren't controls of this kind. */
  --ctl-h:28px;
  /* the light look (DESIGN.md): things are set apart by a tint, not an outline;
     what's picked by the accent's; popups float on a shadow. --tint / --tint-2:
     the ink at 5% / 9%; --accent-tint / -2: the accent at 10% / 16% (worked out
     from the theme's own ink, so they follow it). Panels and windows round to
     --r-panel, the cards inside them to --r-card, buttons and fields to --r-btn. */
  --tint:color-mix(in srgb,var(--ink) 5%,transparent);--tint-2:color-mix(in srgb,var(--ink) 9%,transparent);
  --accent-tint:color-mix(in srgb,var(--accent) 10%,transparent);--accent-tint-2:color-mix(in srgb,var(--accent) 16%,transparent);
  --float-shadow:0 14px 36px rgba(0,0,0,.22),0 2px 6px rgba(0,0,0,.08);
  --r-panel:10px;--r-card:6px;--r-btn:6px;
}
/* the light theme: the same tokens, a light ground - neutrals keep the
   faint violet of the dark ones */
:root[data-theme="light"]{
  --icon:#545454;
  --ground:#f5f5f7; --panel:#ffffff; --panel-2:#f5f5f7; --line:#dcd5e0;
  --ink:#1c1820; --dim:#5d5366; --dimmer:#706679;
  --good:#2e8a57; --edge:#a8701a;
}
*{box-sizing:border-box}
body{margin:0;background:var(--ground);color:var(--ink);font-family:var(--font-body);font-size:var(--fs-text);line-height:1.5;-webkit-font-smoothing:antialiased}
::selection{background:var(--accent);color:var(--accent-ink)}
/* the scrollbar's room kept whether or not the page scrolls, so a shorter
   page (a tab, a step) doesn't shift everything sideways */
html{scrollbar-gutter:stable}

/* the header's wordmark */
.brand-sub{font-size:var(--fs-meta);text-transform:uppercase;letter-spacing:.14em;color:var(--dimmer);font-weight:600}
h1 em{font-style:normal;color:var(--accent)}

/* fields and dropdowns at the one control height */
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]),select:not([multiple]):not([size]){
  height:var(--ctl-h);padding-top:0;padding-bottom:0;box-sizing:border-box;background:transparent}
/* (no fill on fields - just the border; an open list still needs a solid one) */
select option{background:var(--panel);color:var(--ink)}
/* iOS Safari zooms the page in when a focused field's text is under 16px,
   and never zooms back out - as in the proposal config, touch devices get
   16px fields so it never triggers */
@media (hover:none) and (pointer:coarse){input,select,textarea{font-size:16px!important}}
