/* Escape tokens — Navy & Gold, ONE palette for both shells (phone public/styles.css
   and office public/office/office.css). Approved by Anthony 2026-11-23; see
   plans/COCKPIT_REDESIGN.md "Visual system" and the design canvas
   https://claude.ai/artifact/GCSXR37mfqpaf7WQrDTfGW (board "Color directions").

   Two themes, picked per person (Settings › Appearance: Dark / Light / Auto):
     <html data-theme="dark">  (default)   <html data-theme="light">
   Everything is prefixed --esc- so it never collides with a shell's own names;
   each shell maps its variables onto these.

   Rules:
   - Gold is the brand: logo, primary buttons. Gold buttons always carry dark text.
   - Sky blue (--esc-ai) means "the AI said or suggests this", and nothing else.
   - "On the way" is royal blue, darker than the AI blue, so the two never blur.
   - Status colors are fixed per theme and never shop-themed.
   - Shop themes (data-brand / data-skin) change the accent stripe only.
   - Home Passport (customer page) is the cream exception and gets its own sheet. */

:root, html[data-theme="dark"] {
  /* frame */
  --esc-frame: #0C1830;        /* page background */
  --esc-bar: #0A1428;          /* top bar / side menu */
  --esc-panel: #12223F;        /* cards */
  --esc-panel-2: #172A4C;      /* inputs, raised */
  --esc-line: #24395F;
  --esc-line-2: #1B2E50;

  /* text */
  --esc-text: #F3F6FB;
  --esc-text-2: #B3C2DB;
  --esc-muted: #8FA0BD;

  /* brand */
  --esc-gold: #E8BF5A;         /* fills: buttons, badges */
  --esc-gold-text: #E8BF5A;    /* gold used as text */
  --esc-gold-deep: #B8860B;
  --esc-on-gold: #1A1505;

  /* the AI (Autopilot): orb, suggestions, anything Escape drafted */
  --esc-ai: #5CD3FF;
  --esc-ai-edge: #0C1830;

  /* status */
  --esc-st-scheduled-line: #4A6290;   /* dashed edge, no fill */
  --esc-st-onway: #5B7CFF;   --esc-st-onway-ink: #FFFFFF;
  --esc-st-onsite: #F5A524;  --esc-st-onsite-ink: #1A1205;
  --esc-st-done: #3FCF8E;    --esc-st-done-ink: #04170D;
  --esc-st-late: #FF5D5D;    --esc-st-late-ink: #1F0606;   /* late / flagged */

  /* shop accent stripe */
  --esc-stripe: #E8BF5A;

  /* type */
  --esc-font-title: 'Barlow Condensed', 'Arial Narrow', sans-serif;   /* section titles: caps, letter-spaced */
  --esc-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --esc-font-num: 'JetBrains Mono', ui-monospace, Consolas, monospace; /* money, times, counts */
  color-scheme: dark;
}

html[data-theme="light"] {
  --esc-frame: #F3F6FA;
  --esc-bar: #0C1830;          /* the navy stays: top bar / side menu */
  --esc-panel: #FFFFFF;
  --esc-panel-2: #FFFFFF;
  --esc-line: #D7DFEA;
  --esc-line-2: #E6EBF2;

  --esc-text: #0C1830;
  --esc-text-2: #4A5B78;
  --esc-muted: #66768F;

  --esc-gold: #E8BF5A;
  --esc-gold-text: #8A6410;    /* gold as text must go deeper to read on white */
  --esc-gold-deep: #8A6410;
  --esc-on-gold: #1A1505;

  --esc-ai: #0A7BC2;
  --esc-ai-edge: #BFE6FA;

  --esc-st-scheduled-line: #9AA8BE;
  --esc-st-onway: #3F5FE0;   --esc-st-onway-ink: #FFFFFF;
  --esc-st-onsite: #F0A01F;  --esc-st-onsite-ink: #1A1205;
  --esc-st-done: #1E9E62;    --esc-st-done-ink: #FFFFFF;
  --esc-st-late: #D93A3A;    --esc-st-late-ink: #FFFFFF;
  color-scheme: light;
}

html[data-brand="invincible"], html[data-skin="invincible"] { --esc-stripe: #E63A35; }
html[data-brand="elevate"], html[data-skin="elevate"] { --esc-stripe: #E8BF5A; }
