/* COMPOSER Studio's one palette (US-40): defined here once, used by Studio's page (style.css) and by text2midi's
   window (t2m-ui/studio/theme.css imports this file into its build). Dark is fm1-emu's own palette (its style.css:
   --room, --card, --well, --rule, --ink, --dim, --amber), so the two sides read as one app; light is the same, warm. */
:root {
  --c-bg: #f3f1ec;           /* the desk behind the panels */
  --c-surface: #fbfaf7;      /* a panel */
  --c-surface-2: #efece6;    /* a well inside a panel: inputs, takes, hover */
  --c-line: #e0dcd3;         /* hairlines */
  --c-text: #23211d;
  --c-muted: #6b6760;
  --c-accent: #f2a33a;       /* fm1-emu's amber: buttons, the selected example */
  --c-accent-ink: #2a1a03;   /* text on the accent */
  --c-accent-text: #9a5a06;  /* the accent as text (links), readable on a panel */
  --c-bad: #b42318;
  --c-thumb: #cdc8bd;        /* scrollbars */
  --c-thumb-hover: #aea89c;
  --c-device: #18191b;       /* the FM-1 emulator's page background (it is dark in both themes) */
  --c-lane-a: #f8f6f2;
  --c-lane-b: #f0ede7;
  --c-ribbon: #e6e2d9;
  --c-radius: 12px;          /* panels */
  --c-radius-sm: 8px;        /* controls */
  --c-gap: 8px;
  --c-shadow: 0 1px 2px rgba(35, 33, 29, .05), 0 6px 20px rgba(35, 33, 29, .06);
  --c-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --c-font-head: "Archivo", -apple-system, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --c-bg: #161719;
    --c-surface: #1e1f22;
    --c-surface-2: #232427;
    --c-line: #2a2b2e;
    --c-text: #e9e6de;
    --c-muted: #a9a7a1;
    --c-accent-text: #f2a33a;
    --c-bad: #f97066;
    --c-thumb: #3a3b3f;
    --c-thumb-hover: #55565b;
    --c-lane-a: #1b1c1f;
    --c-lane-b: #212226;
    --c-ribbon: #2c2d31;
    --c-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

/* slim scrollbars everywhere: 8 px, a rounded thumb, the track the panel's own colour (transparent over it).
   Chromium and Safari draw ::-webkit-scrollbar; the others get scrollbar-width / -color (Chromium would let these
   override the 8 px styles with its wider "thin", so they apply only where ::-webkit-scrollbar is not known). */
@supports not selector(::-webkit-scrollbar) { * { scrollbar-width: thin; scrollbar-color: var(--c-thumb) transparent; } }
::-webkit-scrollbar { width: 8px; height: 8px; background: transparent; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--c-thumb); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: var(--c-thumb-hover); }
::-webkit-scrollbar-corner { background: transparent; }
