/* Shared by the HMI, its canvas renderers and the sign-in page. A warm, friendly theme (2026-11-29):
   white cards on warm paper, navy ink from the app icon, soft wide shadows, status colours dark
   enough to read as text on white. */
:root {
  color-scheme: light;
  --deep: #f4f1eb;          /* sunken: map and drawing backgrounds */
  --bg: #f6f4ef;            /* the page: warm paper */
  --panel: #ffffff;         /* cards */
  --panel2: #fbfaf7;        /* a card inside a card, menus */
  --sub: #f2efe9;           /* hover, quiet fills */
  --line: #e8e4db;          /* hairlines between things */
  --field: #8e94a3;         /* the edge of a text field or select (3:1 on white) */
  --text: #1b2536;          /* navy ink, the icon's tile */
  --mute: #5f6573;
  --amber: #f5a524;         /* the icon's shared part: the brand's spark, never text */
  --blue: #2563eb;          /* the accent: links, focus, the selected item */
  --selected: #eaf1ff;
  --selected-line: #b7cdfb;
  --green: #15803d;
  --red: #d92d20;
  --orange: #c2570c;
  --yellow: #a16207;
  --purple: #7c3aed;
  --cyan: #0e7490;
  /* where energy comes from, in every picture of the microgrid; off = no power */
  --src-sun: #f59e0b;
  --src-grid: #2563eb;
  --src-bat: #15803d;
  --src-gen: #7c3aed;
  --src-off: #6b7280;
  --src-use: #64748b;       /* what the homes use: neutral, beside the sources' colours */
  /* parts of one amount, such as an invoice, in this order: neighbours can be told apart by colour-blind readers */
  --part1: #2563eb;
  --part2: #f59e0b;
  --part3: #7c3aed;
  --part4: #0d9488;
  /* tinted backgrounds for chips and notes */
  --green-bg: #e4f5ea;
  --red-bg: #fdecea;
  --orange-bg: #fff0e3;
  --yellow-bg: #fdf3d3;
  --blue-bg: #e9f0ff;
  --purple-bg: #f2ecff;
  --shadow: 0 1px 2px rgba(27, 37, 54, .04), 0 4px 14px rgba(27, 37, 54, .05);
  --shadow-lg: 0 16px 40px rgba(27, 37, 54, .16), 0 2px 6px rgba(27, 37, 54, .06);
  --radius: 16px;
}
