/* Layout: one full-height stage; every panel floats over it. Tokens below are the
   whole palette: the scene, the labels and the panels all read from them. */
:root {
  --bg: #eef2f6; --bg-glow: #fbfcfd; --bg-raised: #ffffff; --fg: #12283a; --muted: #566878; --line: #d6dee6; --accent: #1f6fd0;
  --plate: #e3eaf1; --plate-edge: #bccad7; --edge: #566878; --ghost: #77889a;
  --st-qualified: #1baf7a; --st-landed: #2a78d6; --st-established: #71869c; --st-designed: #eda100;
  --st-planned: #9aa8b6; --st-failed: #d03b3b; --st-external: #a1978c; --st-unstated: #aebbc8;
  --kind-requires: #12283a; --kind-writes: #12283a; --kind-runs: #12283a; --kind-conflicts: #d03b3b; --kind-extends: #77889a;
  /* What each kind of part is drawn in when colour shows biology, not status. */
  --bio-membrane: #2fb3a3; --bio-cyto: #a3c9ee; --bio-nucleus: #8d68d6; --bio-er: #b59ae8; --bio-ribosome: #4c4aa8;
  --bio-mito: #f0874a; --bio-protein: #3f86e0; --bio-pump: #6877e6; --bio-fuel: #f3b72f; --bio-water: #55b5ef;
  --bio-signal: #e062a6; --bio-ion: #37b58c; --bio-wound: #e2574c; --bio-cell: #48b9a9; --bio-chloroplast: #7fae35; --bio-golgi: #f2a7b8;
  /* The protein atlas: a generic law, with no protein assigned, is drawn in this grey. */
  --atlas-generic: #8794a2;
  /* The species' own proteins (docs/ATLAS_LOOK.md, decided 16 November 2026): the side of each protein's own membrane,
     and the two ramps "Colour" also offers (how the side is known; essentiality). Checked by tests/palette.test.mjs as
     tokens and by tools/check_shelves.mjs "colours" as drawn: lightness keeps them apart under every kind of
     colour-vision deficiency, hue for everyone else; none is a status colour. */
  --own-outside: #57295d; --own-in: #4a4cd0; --own-inside: #a04600;
  --own-basis-1: #241133; --own-basis-2: #5b327a; --own-basis-3: #874db2;
  --own-mark-1: #2c1402; --own-mark-2: #6b3809; --own-mark-3: #9d5513;
  /* A magnitude (a replay's voltage): one hue from little to much. Light to dark here, and dark
     to light on a dark page, so "more" always stands out. Both ends stay clear of the page. */
  --seq-0: #6da7ec; --seq-1: #3987e5; --seq-2: #256abf; --seq-3: #184f95; --seq-4: #0d366b;
  --is-dark: 0;
  --font-display: "Space Grotesk", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b151e; --bg-glow: #15293a; --bg-raised: #162432; --fg: #e6edf3; --muted: #95a6b7; --line: #283b4d; --accent: #5b9dee;
    --plate: #172836; --plate-edge: #314a60; --edge: #95a6b7; --ghost: #8496a8;
    --st-qualified: #199e70; --st-landed: #3987e5; --st-established: #6f849a; --st-designed: #c98500;
    --st-planned: #6c7e90; --st-failed: #d03b3b; --st-external: #8f867d; --st-unstated: #52667a;
    --kind-requires: #e6edf3; --kind-writes: #e6edf3; --kind-runs: #e6edf3; --kind-conflicts: #e66767; --kind-extends: #8496a8;
    --bio-membrane: #2aa596; --bio-cyto: #5f93c8; --bio-nucleus: #8a66d8; --bio-er: #a88ce0; --bio-ribosome: #9e9cf0;
    --bio-mito: #ea7d3f; --bio-protein: #4a90ea; --bio-pump: #7482ee; --bio-fuel: #eeb02a; --bio-water: #58b4ee;
    --bio-signal: #e268ac; --bio-ion: #35ad86; --bio-wound: #e25c52; --bio-cell: #3aa797; --bio-chloroplast: #8dbb45; --bio-golgi: #f4afbf;
    --atlas-generic: #7d8c9c;
  --own-outside: #efb9e4; --own-in: #7c6cf2; --own-inside: #ef6c1a;
  --own-basis-1: #e5cff6; --own-basis-2: #c79ae5; --own-basis-3: #a469c5;
  --own-mark-1: #f8d0a9; --own-mark-2: #ea9c64; --own-mark-3: #bd6c3a;
    --seq-0: #1c5cab; --seq-1: #2a78d6; --seq-2: #5598e7; --seq-3: #86b6ef; --seq-4: #b7d3f6;
    --is-dark: 1;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b151e; --bg-glow: #15293a; --bg-raised: #162432; --fg: #e6edf3; --muted: #95a6b7; --line: #283b4d; --accent: #5b9dee;
  --plate: #172836; --plate-edge: #314a60; --edge: #95a6b7; --ghost: #8496a8;
  --st-qualified: #199e70; --st-landed: #3987e5; --st-established: #6f849a; --st-designed: #c98500;
  --st-planned: #6c7e90; --st-failed: #d03b3b; --st-external: #8f867d; --st-unstated: #52667a;
  --kind-requires: #e6edf3; --kind-writes: #e6edf3; --kind-runs: #e6edf3; --kind-conflicts: #e66767; --kind-extends: #8496a8;
  --bio-membrane: #2aa596; --bio-cyto: #5f93c8; --bio-nucleus: #8a66d8; --bio-er: #a88ce0; --bio-ribosome: #9e9cf0;
  --bio-mito: #ea7d3f; --bio-protein: #4a90ea; --bio-pump: #7482ee; --bio-fuel: #eeb02a; --bio-water: #58b4ee;
  --bio-signal: #e268ac; --bio-ion: #35ad86; --bio-wound: #e25c52; --bio-cell: #3aa797; --bio-chloroplast: #8dbb45; --bio-golgi: #f4afbf;
  --atlas-generic: #7d8c9c;
  --own-outside: #efb9e4; --own-in: #7c6cf2; --own-inside: #ef6c1a;
  --own-basis-1: #e5cff6; --own-basis-2: #c79ae5; --own-basis-3: #a469c5;
  --own-mark-1: #f8d0a9; --own-mark-2: #ea9c64; --own-mark-3: #bd6c3a;
  --seq-0: #1c5cab; --seq-1: #2a78d6; --seq-2: #5598e7; --seq-3: #86b6ef; --seq-4: #b7d3f6;
  --is-dark: 1;
  color-scheme: dark;
}
html, body { height: 100%; }
body { background: var(--bg); color: var(--fg); font-family: var(--font-body); overflow: hidden; }
cells-viewer { display: block; height: 100%; }
.boot {
  padding-block: 28px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  color: var(--muted); font-size: 14px;
}
