/* The shop dashboard's own identity: calm, warm paper and a deep green, built for a busy owner on a phone.
   Every colour is a token here; no other file holds a colour value. Text pairs meet 4.5:1 in both themes. */
:root {
  color-scheme: light;
  --bg: #f4f1ea;
  --card: #ffffff;
  --ink: #1c1b19;
  --muted: #5b574f;
  --line: #e2ddd2;
  --soft: #ece8de;
  --accent: #0e6655;
  --accent-ink: #ffffff;
  --accent-soft: #dcefe9;
  --accent-text: #0b5446;
  --hot: #b3341c;
  --hot-ink: #ffffff;
  --hot-soft: #fbe5df;
  --hot-text: #9c2c16;
  --warn-soft: #f8ecd0;
  --warn-text: #74500a;
  --ok-soft: #e0f1e6;
  --ok-text: #1a5c36;
  --info-soft: #e3e9f7;
  --info-text: #2a4a8f;
  --muted-soft: #ecebe7;
  --muted-text: #57534b;
  --focus: #0e6655;
  --shadow: 0 1px 2px rgb(28 27 25 / 6%), 0 6px 18px -10px rgb(28 27 25 / 18%);
  --shadow-up: 0 -6px 18px -12px rgb(28 27 25 / 25%);
  --scrim: rgb(20 19 17 / 45%);
  --press: rgb(0 0 0 / 10%);        /* a button under the pointer: shaded from inside */
  --press-soft: rgb(0 0 0 / 4%);
  --awning: #f4c478;

  --font: system-ui, -apple-system, "Segoe UI", "Noto Sans Arabic", "Noto Sans", Tahoma, "DejaVu Sans", sans-serif;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --gap: 12px;
  --pad: 16px;
  --tap: 44px;
  --side: 248px;
  --bar: 64px;
  /* the demo dashboard's own palette (sites/lib/eg|us/assets/dashboard.tpl.html, its :root), for the screens ported from it */
  --dm-bg: #f3f3f1;
  --dm-card: #ffffff;
  --dm-ink: #16171b;
  --dm-muted: #6c6e75;
  --dm-line: #e6e6e2;
  --dm-soft: #f5f5f2;
  --dm-ok: #16804f;
  --dm-ok2: #e2f4ea;
  --dm-warn: #a96f00;
  --dm-warn2: #fbf0d9;
  --dm-bad: #c2412d;
  --dm-bad2: #fbe5e1;
  --dm-solid: #16171b;
  --dm-solidfg: #ffffff;
  --dm-knob: #ffffff;
  --dm-scrim: rgb(0 0 0 / 50%);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #121311;
    --card: #1b1c1a;
    --ink: #eeebe4;
    --muted: #b0aba1;
    --line: #2f302d;
    --soft: #252623;
    --accent: #5ec7ae;
    --accent-ink: #0a1f1a;
    --accent-soft: #163a32;
    --accent-text: #7fd8c2;
    --hot: #ff8a70;
    --hot-ink: #2a0d06;
    --hot-soft: #3d1a12;
    --hot-text: #ffab98;
    --warn-soft: #3a2e12;
    --warn-text: #f0c56b;
    --ok-soft: #14301f;
    --ok-text: #7fd6a0;
    --info-soft: #1a2640;
    --info-text: #a9c0f2;
    --muted-soft: #262724;
    --muted-text: #b9b4aa;
    --focus: #5ec7ae;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%);
    --shadow-up: 0 -6px 18px -12px rgb(0 0 0 / 60%);
    --scrim: rgb(0 0 0 / 60%);
    --dm-bg: #0e0f11;
    --dm-card: #18191d;
    --dm-ink: #efefed;
    --dm-muted: #a2a4ab;
    --dm-line: #2a2b30;
    --dm-soft: #202126;
    --dm-ok: #3cc488;
    --dm-ok2: #11301f;
    --dm-warn: #e3a93a;
    --dm-warn2: #3a2d10;
    --dm-bad: #f0735f;
    --dm-bad2: #3a1712;
    --dm-solid: #efefed;
    --dm-solidfg: #16171b;
  }
}
