:root {
  color-scheme: dark;
  --bg: #141311;
  --sidebar: #181715;
  --panel: #1c1a17;
  --well: #161513;
  --raised: #23201c;
  --topbar: #171613;
  --border: #39332d;
  --field-border: #5a5046;
  --ink: #f0e9df;
  --muted: #b7aa9c;
  --subtle: #a39587;
  --accent: #e8946d;
  --accent-strong: #ec9b76;
  --accent-hover: #ffb18e;
  --accent-ink: #21130d;
  --active-text: #f1a17a;
  --selection: #30241e;
  --selection-edge: #5b3e31;
  --chip: #38291f;
  --chip-edge: #684937;
  --chip-ink: #efb18f;
  --badge-edge: #735140;
  --badge-inner: #594137;
  --disabled-bg: #32271f;
  --disabled-edge: #4a3b30;
  --disabled-ink: #cec1b4;
  --roll-bg: #241e19;
  --roll-hover: #39281e;
  --pip: #302a24;
  --pip-edge: #51463c;
  --hp: #e28b68;
  --mind: #a49fd1;
  --rad: #d3b26e;
  --xp: #9ab38b;
  --saved: #a5bba0;
  --danger: #ffb39e;
  --toast: #2b2a1f;
  --toast-edge: #6b6956;
  --toast-danger: #3e261c;
  --toast-danger-edge: #9c6249;
  --inset: #fff1dc08;
  --shadow: #080501ab;
  --backdrop: #0e0a08bf;
  --cover: url("/static/ash-meridian.webp");
  --cover-base: #211711;
  --cover-start: #17120f;
  --cover-mid: #17120f9c;
  --cover-end: #17120f0a;
  --cover-foot: #18130fd9;
  --cover-line: #574237;
  --cover-title: #f0e9df;
  --cover-accent: #f4a680;
  --cover-meta: #e1ccbd;
  --cover-button: #1e1713e8;
  --cover-button-edge: #81624e;
  --cover-login-shade: #17110eab;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", system-ui, -apple-system, sans-serif;
  --radius-control: 6px;
  --radius-panel: 10px;
  --radius-cover: 11px;
}

:root[data-tone="light"] {
  color-scheme: light;
  --bg: #f4eee5;
  --sidebar: #efe6d9;
  --panel: #fffaf3;
  --well: #fffcf8;
  --raised: #f3e8db;
  --topbar: #fbf5ec;
  --border: #d3c3b4;
  --field-border: #9c8271;
  --ink: #2a1c17;
  --muted: #604b3e;
  --subtle: #6f5446;
  --accent: #8e3b24;
  --accent-strong: #8e3b24;
  --accent-hover: #742e1c;
  --accent-ink: #fff9f4;
  --active-text: #85331e;
  --selection: #efddce;
  --selection-edge: #b58c75;
  --chip: #ead4c3;
  --chip-edge: #bb8b73;
  --chip-ink: #782f1d;
  --badge-edge: #a56d54;
  --badge-inner: #c69a82;
  --disabled-bg: #f2e7dc;
  --disabled-edge: #d3c3b4;
  --disabled-ink: #6f5446;
  --roll-bg: #f7ecdf;
  --roll-hover: #eddbc8;
  --pip: #f2e5d7;
  --pip-edge: #9a7f6d;
  --hp: #a94e37;
  --mind: #62529a;
  --rad: #80600e;
  --xp: #466c3a;
  --saved: #456a3a;
  --danger: #8f271e;
  --toast: #edf2e4;
  --toast-edge: #869c75;
  --toast-danger: #f7e5df;
  --toast-danger-edge: #bf7263;
  --inset: #fffaf466;
  --shadow: #39271e48;
  --backdrop: #21181294;
}

:root[data-theme="playbook"] {
  --bg: #0b1016;
  --sidebar: #0d141c;
  --panel: #111b26;
  --well: #0c151f;
  --raised: #192738;
  --topbar: #0c131d;
  --border: #2b4056;
  --field-border: #506b88;
  --ink: #f0f4fa;
  --muted: #b7c8db;
  --subtle: #97aec5;
  --accent: #79b7f4;
  --accent-strong: #84bff9;
  --accent-hover: #aed6ff;
  --accent-ink: #112335;
  --active-text: #a3d1ff;
  --selection: #1c3045;
  --selection-edge: #3e6690;
  --chip: #1a3048;
  --chip-edge: #4a749a;
  --chip-ink: #b4d7ff;
  --badge-edge: #4a779d;
  --badge-inner: #315375;
  --disabled-bg: #1b2a38;
  --disabled-edge: #3a526a;
  --disabled-ink: #b3c5d6;
  --roll-bg: #142438;
  --roll-hover: #233d56;
  --pip: #203044;
  --pip-edge: #526984;
  --hp: #e78c8c;
  --mind: #94aef4;
  --rad: #dcc170;
  --xp: #8bc6ab;
  --saved: #8bc6ab;
  --danger: #ffaaa1;
  --toast: #152b2d;
  --toast-edge: #41656d;
  --toast-danger: #392329;
  --toast-danger-edge: #925461;
  --inset: #afd6ff12;
  --shadow: #01060cb0;
  --backdrop: #060c14bf;
  --cover-base: #0c151d;
  --cover-start: #081019;
  --cover-mid: #08101989;
  --cover-end: #08101908;
  --cover-foot: #0a141ed9;
  --cover-line: #42627c;
  --cover-title: #f1f6fc;
  --cover-accent: #a5d5ff;
  --cover-meta: #c6d9eb;
  --cover-button: #0e1c2aeb;
  --cover-button-edge: #567b9b;
  --cover-login-shade: #081019c6;
  --serif: "Avenir Next Condensed", "Arial Narrow", system-ui, sans-serif;
  --radius-control: 3px;
  --radius-panel: 4px;
  --radius-cover: 4px;
}

:root[data-theme="playbook"][data-tone="light"] {
  --bg: #ecf1f6;
  --sidebar: #e9f0f8;
  --panel: #fafcff;
  --well: #fff;
  --raised: #e8f0fa;
  --topbar: #f4f8fc;
  --border: #bacade;
  --field-border: #7a90aa;
  --ink: #122335;
  --muted: #42586f;
  --subtle: #526980;
  --accent: #245c98;
  --accent-strong: #245c98;
  --accent-hover: #154779;
  --accent-ink: #f8fbff;
  --active-text: #1c548e;
  --selection: #dae9f9;
  --selection-edge: #7799bd;
  --chip: #dceaf9;
  --chip-edge: #809fc0;
  --chip-ink: #244e78;
  --badge-edge: #6386a8;
  --badge-inner: #95b0c9;
  --disabled-bg: #e7eef6;
  --disabled-edge: #b6c8dc;
  --disabled-ink: #51677f;
  --roll-bg: #e8f1fb;
  --roll-hover: #d5e6f8;
  --pip: #e7edf5;
  --pip-edge: #879db6;
  --hp: #ad4358;
  --mind: #475f9f;
  --rad: #795b0f;
  --xp: #28664d;
  --saved: #28664d;
  --danger: #9c283a;
  --toast: #e3f0ef;
  --toast-edge: #69928c;
  --toast-danger: #f8e6e9;
  --toast-danger-edge: #af6977;
  --inset: #fff9;
  --shadow: #10243d48;
  --backdrop: #0b172a94;
}

[data-cover="orbital-harbor"] { --cover: url("/static/orbital-harbor.webp"); }
[data-cover="basalt-expanse"] { --cover: url("/static/basalt-expanse.webp"); }
[data-cover="nightfall-array"] { --cover: url("/static/nightfall-array.webp"); }
[data-cover="cinder-canyon"] { --cover: url("/static/cinder-canyon.webp"); }
[data-cover="red-drydock"] { --cover: url("/static/red-drydock.webp"); }
[data-cover="terminator-pass"] { --cover: url("/static/terminator-pass.webp"); }
[data-cover="glass-sea"] { --cover: url("/static/glass-sea.webp"); }
[data-cover="asteroid-tug"] { --cover: url("/static/asteroid-tug.webp"); }
[data-cover="ochre-elevator"] { --cover: url("/static/ochre-elevator.webp"); }
[data-cover="pegasus-port"] { --cover: url("/static/pegasus-port.webp"); }
[data-cover="survey-bridge"] { --cover: url("/static/survey-bridge.webp"); }
[data-cover="relay-eclipse"] { --cover: url("/static/relay-eclipse.webp"); }
[data-cover="ice-dock"] { --cover: url("/static/ice-dock.webp"); }
[data-cover="silent-gate"] { --cover: url("/static/silent-gate.webp"); }
[data-cover="blackwater-quay"] { --cover: url("/static/blackwater-quay.webp"); }
[data-cover="drift-station"] { --cover: url("/static/drift-station.webp"); }
[data-cover="cargo-corridor"] { --cover: url("/static/cargo-corridor.webp"); }
[data-cover="frozen-crater"] { --cover: url("/static/frozen-crater.webp"); }
[data-cover="nebula-crossing"] { --cover: url("/static/nebula-crossing.webp"); }
