/* Harvest Compute theme: palette.css
   Three colour schemes, chosen per person under Colours in the top bar's More menu (a list in the bar on a phone) (Ben, 9 Nov 2026: "build in the option
   for it to be any one of the three, but start with A"). The choice is kept in this browser only.
     A  Warm (the default): the cream and forest green in common.css; light or dark follows the device.
     B  Charcoal and white: a charcoal top bar with the white Harvest Compute mark, a light grey work area, white
        panels and green actions; on a device set to dark it uses C's greys.
     C  Dark grey throughout (index.html also sets data-theme="dark", so every add-on's own dark rules apply).
   Only token values change here; every screen already draws with the tokens. Text pairs checked at 4.5:1 or better,
   control outlines at 3:1. Scope: :root[data-palette] and the top bar. No url(), no @import. */

:root[data-palette="b"]{
  --bg:#eef0f0; --panel:#ffffff; --fg:#1f2528; --muted:#566064; --line:#d9dddf; --line2:#e8ebec; --ctl:#848d91;
  --accent:#2e7d4f; --accent-fg:#ffffff; --sel:#0e7a80; --warn:#8b4b20; --bad:#a62d29; --ok:#2e7d4f; --power:#c46f1f;
  --chip:#e2e7e5; --shadow:0 4px 16px rgba(31,37,40,.10);
}
:root[data-palette="b"] #top{
  --bg:#3a3f42; --panel:#3a3f42; --fg:#ffffff; --muted:#d0d6d8; --line:#5a6165; --line2:#4a5054; --ctl:#9aa4a8;
  --accent:#9bd7b2; --accent-fg:#1f2528; --chip:#4d5357; --sel:#7fd8dc;
  background:var(--panel); color:var(--fg); border-bottom-color:#2c3033;
}
:root[data-palette="b"] .hc-ink{display:none}
:root[data-palette="b"] .hc-white{display:block}

/* C, and B on a device set to dark */
:root[data-palette="c"]{
  --bg:#2b3134; --panel:#343b3e; --fg:#eef1f2; --muted:#b4bcbf; --line:#4a5458; --line2:#3c4447; --ctl:#7f8b90;
  --accent:#74c597; --accent-fg:#16201a; --sel:#6fd3d3; --warn:#edb77e; --bad:#ffaaa0; --ok:#74c597; --power:#e0954a;
  --chip:#3f474a; --shadow:0 4px 16px rgba(0,0,0,.35); color-scheme:dark;
}
:root[data-palette="c"] #top{--panel:#24292b; --bg:#24292b; --line:#3a4144; background:var(--panel)}
@media (prefers-color-scheme: dark){
  :root[data-palette="b"]:not([data-theme="light"]){
    --bg:#2b3134; --panel:#343b3e; --fg:#eef1f2; --muted:#b4bcbf; --line:#4a5458; --line2:#3c4447; --ctl:#7f8b90;
    --accent:#74c597; --accent-fg:#16201a; --sel:#6fd3d3; --warn:#edb77e; --bad:#ffaaa0; --ok:#74c597; --power:#e0954a;
    --chip:#3f474a; --shadow:0 4px 16px rgba(0,0,0,.35);
  }
  :root[data-palette="b"]:not([data-theme="light"]) #top{--panel:#24292b; --bg:#24292b; --line:#3a4144}
}

/* the Colours menu in the top bar */
#hc-pal{font-size:12px;padding:3px 6px;width:auto;max-width:none;border-radius:6px;background:var(--panel);color:var(--fg)}
