/* imuimu cloud, face "Sky" (Google feel, the default face): tokens v1.0, 6 Oct 2026.
   Plan: machines/tcn/imuimu-cloud-redesign-v1.0-261006.md section 4.1. Every slot is filled here and nowhere else:
   display Figtree 500-700, body Roboto 400/500, data Roboto Mono 500 (self-hosted, latin, SIL OFL 1.1, licences in
   /static/fonts/*-OFL.txt, fetched from Google Fonts on 6 Oct 2026; one variable woff2 per family).
   Light and Dark (27 Oct 2026, owner: three themes on one button, Light the default). :root is Light. The Dark set is the last
   block of this file: it applies only on screen (print is always light) and only where early.js put data-theme="dark" on
   <html>, so the members' portal, the older shells and the print sheets never see it. Dark is drawn from Okra's own dark
   palette (okra.css, palette "sky": ground #10141A, surface #191E25, ink #E4E9F0, accent #9BC3F5), not inverted from
   Light. Contrast of every text and icon pair is checked in tests/test_theme.py.
   Mark (cloud next L2, 7 Oct 2026): the tab icon is the imuimu mark, unchanged (static/icons/favicon.svg), and the top bar and
   sign-in show logo B as supplied (machines/tcn/cloud-logo-261003); files in static/faces/sky/brand/. */

@font-face { font-family: "Figtree"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url("/static/fonts/figtree-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; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url("/static/fonts/roboto-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; }
@font-face { font-family: "Roboto Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/static/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; }

:root {
  color-scheme: light;
  /* type */
  --fd: "Figtree", system-ui, sans-serif;
  --fb: "Roboto", system-ui, sans-serif;
  --fm: "Roboto Mono", ui-monospace, monospace;
  --fs-body: 15px; --fs-small: 13px; --fs-label: 12px; --fs-h1: 22px; --fs-h2: 18px;
  /* palette */
  --ground: #EEF6FC; --surface: #FFFFFF; --tint: #E1F3FC; --inset: #F1F7FB;
  --ink: #1B2A38; --ink2: #3E4F60; --ink3: #5F7080;
  --line: #D6E4F0; --line2: #B9D0E4;
  /* control edge (cleanup release, 6 Oct 2026): every input, select and textarea border; >= 3:1 against --ground,
     --surface, --inset and --tint (WCAG 1.4.11). --line2 measured 1.59:1 on --surface. Checked in tests/test_cleanup_release.py */
  --ctl-edge: #738BA1;
  --accent: #006FBE; --accent2: #4FB3EA; --on-accent: #FFFFFF;
  --good: #1E7A46; --warn: #9A5B00; --bad: #B42318;
  --good-bg: #E6F4EC; --warn-bg: #FBF0DF; --bad-bg: #FBEAE8; --off: #5F7080; --off-bg: #EDF1F5; --hold: #006FBE; --hold-bg: #E1F3FC;
  /* planogram (cloud next P1): product families on a drawn facing, ink on each >= 10:1; the drawn cabinet */
  --cat-drink: #D4ECFA; --cat-milk: #E4E6F7; --cat-snack: #F5E8D0; --cat-noodle: #DCEFD8; --cat-other: #EDF1F5;
  --cab-shell: #CDE4F4; --cab-glass: #F7FBFE; --cab-door: #BFD6E9;
  /* shape */
  --r-panel: 16px; --r-card: 12px; --r-ctl: 20px; --r-chip: 8px;
  --row: 48px; --pad: 24px; --gap: 16px; --btn-h: 40px; --field-h: 40px; --search-h: 48px;
  --topbar-h: 64px; --detail-w: 392px; --detail-w-tab: 360px;
  /* the desk shell (9 Nov 2026): one left rail, the pages with the open one's sections under it; a side panel between rail and content on wide screens */
  --nav-w: 256px; --nav-w-mini: 72px; --side-w: 312px; --drawer-w: 280px;
  --rail-on: var(--tint); --rail-on-ink: var(--accent);      /* the open page's pill on the rail */
  --nav-on: var(--tint);                                      /* the open section in the left list */
  --badge: var(--bad); --on-badge: var(--on-accent);          /* the count on Faults and Cases */
  --tip: var(--ink); --on-tip: var(--surface);                /* the small name beside an icon */
  --scrim: rgba(27,42,56,.32);                                /* behind the left list when it opens over the page */
  --border: 1px;
  /* the New button and menus only */
  --shadow: 0 1px 3px rgba(27,42,56,.18), 0 4px 12px rgba(27,42,56,.10);
  /* motion */
  --ease: cubic-bezier(0, 0, .2, 1); --dur: 160ms;
  /* chart */
  --bar: #4FB3EA; --bar-t: #006FBE;
  /* sales by category (S3, 7 Oct 2026): one fill per category, each >= 3:1 on --inset and --surface; not sorted = --ctl-edge */
  --c-drinks: #006FBE; --c-snacks: #9A5B00; --c-coffee: #1E7A46; --c-other: #7B4FAE; --c-none: #738BA1;
  /* map pins (27 Oct 2026; were literals in runs.css and trips.css) */
  --pin-shadow: rgba(27,42,56,.4);
  /* trips: team colours (a ring on each pin and the code chip in the list; each >= 4.5:1 on --surface, --ground and --inset)
     and the job kinds on the day board (the ink on each fill >= 4.5:1; none of them a status colour) */
  --team-1: #006FBE; --team-2: #1E7A46; --team-3: #9A5B00; --team-4: #7A3E9D; --team-5: #B42318; --team-6: #0E7C86;
  --tl-fill: #006FBE; --tl-fill-ink: #FFFFFF;
  --tl-fix: #7B4FAE; --tl-fix-ink: #FFFFFF;
  --tl-clean: #4FB3EA; --tl-clean-ink: #1B2A38;
  --tl-service: #3E4F60; --tl-service-ink: #FFFFFF;
  --tl-other: #B9D0E4; --tl-other-ink: #1B2A38;
  --tl-travel: #EDF1F5; --tl-travel-ink: #3E4F60;
  /* focus */
  --focus-ring: 2px solid #006FBE; --focus-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur: 0ms; }
}

/* ---------------------------------------------------------------- Dark (27 Oct 2026)
   Screen only: print stays light. Every colour token that Light sets is set again here; sizes, fonts and motion are not.
   Pairs checked (tests/test_theme.py): ink, ink2 and ink3 >= 4.5:1 on --ground, --surface, --inset and --tint; --accent text
   >= 4.5:1 on the same four; --ctl-edge, chart fills and the category fills >= 3:1; status inks >= 4.5:1 on their own fills. */
@media screen {
  html[data-theme="dark"] {
    color-scheme: dark;
    --ground: #10141A; --surface: #191E25; --tint: #14324A; --inset: #222831;
    --ink: #E4E9F0; --ink2: #BAC3CF; --ink3: #939CA9;
    --line: #29303A; --line2: #3C4451;
    --ctl-edge: #7D8798;
    --accent: #7DC4F2; --accent2: #3F86B8; --on-accent: #06263F;
    --good: #7BD39C; --warn: #F2A763; --bad: #F4948B;
    --good-bg: #1B3226; --warn-bg: #3A2716; --bad-bg: #3D1F1C; --off: #939CA9; --off-bg: #222831; --hold: #7DC4F2; --hold-bg: #14324A;
    --cat-drink: #1D3A4F; --cat-milk: #2A2D4C; --cat-snack: #443621; --cat-noodle: #25402A; --cat-other: #2A313B;
    --cab-shell: #2B3C4D; --cab-glass: #151B22; --cab-door: #34475A;
    --badge: #D23A50; --on-badge: #FFFFFF;
    --scrim: rgba(0,0,0,.6);
    --shadow: 0 1px 3px rgba(0,0,0,.5), 0 4px 12px rgba(0,0,0,.35);
    --pin-shadow: rgba(0,0,0,.65);
    --bar: #3F86B8; --bar-t: #7DC4F2;
    --c-drinks: #6BB6EA; --c-snacks: #E0A25A; --c-coffee: #6CC38E; --c-other: #B79AE8; --c-none: #7D8798;
    --team-1: #6DB3F0; --team-2: #6CC38E; --team-3: #E0A25A; --team-4: #C79BEA; --team-5: #F4948B; --team-6: #5CC6D0;
    --tl-fill: #9BC3F5; --tl-fill-ink: #0A2748;
    --tl-fix: #C3A8F0; --tl-fix-ink: #1F1038;
    --tl-clean: #6FD0D8; --tl-clean-ink: #05262A;
    --tl-service: #C4CCD6; --tl-service-ink: #10141A;
    --tl-other: #7D8798; --tl-other-ink: #0B0F14;
    --tl-travel: #222831; --tl-travel-ink: #BAC3CF;
    --focus-ring: 2px solid #7DC4F2;
  }
  /* The replenish sheet on screen is a sheet of paper (machine_sheet.html): it stays white and dark-inked in Dark, so what
     is read on screen is what prints. The file itself is not touched; only the tokens it reads are put back to Light. */
  html[data-theme="dark"] .ms-sheet {
    --surface: #FFFFFF; --ink: #1B2A38; --ink2: #3E4F60; --ctl-edge: #738BA1;
    --shadow: 0 1px 3px rgba(27,42,56,.18), 0 4px 12px rgba(27,42,56,.10);
  }
  /* Tote labels (loading.css): the label sheet is paper on screen too, white and dark-inked in Dark. */
  html[data-theme="dark"] .tl-sheet { --surface: #FFFFFF; --ink: #1B2A38; --line2: #B9D0E4; }
}
