@font-face {
  font-family: "Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/IBMPlexMono-500.woff2") format("woff2");
}
@font-face {
  font-family: "Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/IBMPlexSans-400.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #000000;
  --text: #111111;
  --sub: #5e5e5e;
  --line: #d4d4d4;
  --guide: #8f8f8f;
  --frame: #1c1c1c;
  --band: rgba(0, 0, 0, 0.05);
  --scrim: rgba(255, 255, 255, 0.84);
  --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: "Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Resource and specialty hues carry identity; everything else is grey. */
  --power: #967000;
  --o2: #007f89;
  --water: #28549e;
  --food: #548538;
  --parts: #8051a5;
  --materials: #aa784d;
  --morale: #9d3f61;
  /* Darker green/violet separate the botanist from the engineer and the
     pilot from the geologist under simulated CVD. */
  --botanist: #387127;
  --geologist: #5aa6e0;
  --engineer: #e0a33f;
  --medic: #e06a6a;
  --pilot: #7750a4;
  --commander: #e8e2d8;
  --rookie: #d8c3a5;
  --crew-ink: #111111;
  --crew-light-ink: #ffffff;
  --bar-height: 48px;
  --bar-bottom: max(6px, env(safe-area-inset-bottom));
  --bar-clearance: calc(var(--bar-height) + var(--bar-bottom) + 12px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #000000;
    --ink: #ffffff;
    --text: #ededed;
    --sub: #a6a6a6;
    --line: #2f2f2f;
    --guide: #8f8f8f;
    --frame: #ededed;
    --band: rgba(255, 255, 255, 0.06);
    --scrim: rgba(0, 0, 0, 0.8);
    --power: #d5ad3c;
    --o2: #83cbd2;
    --water: #588bc8;
    --food: #9ac57a;
    --parts: #a68bc9;
    --materials: #d1ad8b;
    --morale: #c97795;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --ink: #ffffff;
  --text: #ededed;
  --sub: #a6a6a6;
  --line: #2f2f2f;
  --guide: #8f8f8f;
  --frame: #ededed;
  --band: rgba(255, 255, 255, 0.06);
  --scrim: rgba(0, 0, 0, 0.8);
  --power: #d5ad3c;
  --o2: #83cbd2;
  --water: #588bc8;
  --food: #9ac57a;
  --parts: #a68bc9;
  --materials: #d1ad8b;
  --morale: #c97795;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border-radius: 0;
}
html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font: 400 14px/1.45 var(--sans);
  -webkit-text-size-adjust: 100%;
}
button,
select,
input {
  font: inherit;
  color: inherit;
}
button { cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; }
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
[hidden] { display: none !important; }
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
kbd { font: 500 1em var(--mono); border: 0; }

/* Readout: what matters now, one line, top centre. */
.hud {
  position: absolute;
  top: max(6px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: calc(100% - 24px);
  min-height: 44px;
  overflow: hidden;
  white-space: nowrap;
  color: var(--sub);
  font: 500 13px/1 var(--mono);
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}
.hud svg { width: 14px; height: 14px; flex: none; }
#sol-label { min-width: 5ch; }
#urgent, #stability-alert { overflow: hidden; text-overflow: ellipsis; }
#urgent.danger, #stability-alert { color: var(--ink); }

/* Board first; the ledger sits beside it on wide screens and under it on phones. */
.composition {
  min-height: 100svh;
  padding: clamp(64px, 9vh, 112px) 24px max(86px, var(--bar-clearance));
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 48px;
}
.colony-field { width: 660px; flex: 0 1 auto; min-width: 0; }
.forecast {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.wx { display: grid; gap: 3px; font-size: 13px; }
.wx-day { color: var(--sub); font: 500 12px/1.2 var(--mono); }
.wx[aria-current] .wx-day { color: var(--text); }
.wx-condition { display: flex; gap: 5px; align-items: center; }
.wx-short { display: none; }
.wx .note { color: var(--sub); font-size: 12px; }
.wx svg { width: 18px; height: 18px; flex: none; }

.board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-content: start;
}
.post {
  position: relative;
  border: 1px solid var(--line);
  min-width: 0;
  min-height: 128px;
  display: flex;
  flex-direction: column;
  transition: border-color .15s;
}
.post:has(.post-target:hover), .post:has(.post-target:focus-visible) { border-color: var(--guide); }
.post.hot, .post.proposed { outline: 2px solid var(--ink); outline-offset: -2px; }
.post-target {
  border: 0;
  padding: 10px;
  background: none;
  text-align: left;
  width: 100%;
  min-height: 62px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 3px;
}
.post-target::after { content: ''; position: absolute; inset: 0; }
.post-heading { display: flex; align-items: flex-start; gap: 5px; }
.post-icon { width: 16px; height: 16px; flex: none; }
.post-name { font: 400 15px/1.2 var(--sans); }
.post-effect { color: var(--sub); font: 400 13px/1.3 var(--sans); }
.post.offline {
  border-style: dashed;
  background: repeating-linear-gradient(135deg, transparent 0 7px, var(--line) 7px 8px);
}
.post[data-post='solar']:not(.offline) {
  background-image: radial-gradient(var(--line) 0.6px, transparent 0.8px);
  background-size: var(--dust-gap) var(--dust-gap);
}
/* A picked person turns every post into a comparison. */
.post.comparing { border-color: var(--guide); }
.post.comparing .post-effect { color: var(--text); }
.post.comparing.risk .post-effect { color: var(--ink); }
.post.current-assignment { border-style: dashed; }
.tokens:empty { display: none; }
.tokens {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 6px 4px;
  padding: 8px;
  pointer-events: none;
}
.token, .ghost {
  position: relative;
  z-index: 1;
  width: 76px;
  min-height: 59px;
  border: 0;
  padding: 0;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.token { pointer-events: auto; touch-action: none; user-select: none; -webkit-user-select: none; }
.token.dragging { pointer-events: none; z-index: 30; }
.crew-dot {
  width: 30px;
  height: 30px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--trait);
  color: var(--trait-ink, var(--crew-ink));
  transition: transform .1s;
}
.crew-dot svg { width: 16px; height: 16px; pointer-events: none; }
.selected .crew-dot { transform: translateY(-2px); outline: 2px solid var(--ink); outline-offset: 2px; }
/* Where the picked person would stand. */
.ghost .crew-dot { opacity: .5; border-style: dashed; }
.ghost .crew-name { color: var(--sub); }
[data-trait='botanist'] { --trait: var(--botanist); --trait-ink: var(--crew-light-ink); }
[data-trait='geologist'] { --trait: var(--geologist); }
[data-trait='engineer'] { --trait: var(--engineer); }
[data-trait='medic'] { --trait: var(--medic); }
[data-trait='pilot'] { --trait: var(--pilot); --trait-ink: var(--crew-light-ink); }
[data-trait='commander'] { --trait: var(--commander); }
[data-trait='rookie'] { --trait: var(--rookie); }
.crew-name {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  font: 400 12px/1.25 var(--sans);
}
.health { display: flex; gap: 3px; }
.health i { width: 5px; height: 5px; border: 1px solid var(--ink); border-radius: 50%; }
.health .filled { background: var(--ink); }
.zzz { position: absolute; top: 0; right: 4px; font: 500 11px var(--mono); }
.toggle { position: relative; width: 32px; height: 16px; border: 1px solid var(--ink); margin-top: 6px; }
.toggle i { position: absolute; top: 3px; left: 3px; width: 8px; height: 8px; background: var(--ink); transition: left .15s; }
[aria-checked='true'] .toggle i { left: 19px; }
.switch-state { font: 500 12px var(--mono); }
.work-line { display: block; margin-top: 3px; width: 100%; height: 1px; background: var(--line); }
.work-line i { display: block; height: 1px; background: var(--ink); transition: width .3s; }
.post-controls {
  position: relative;
  z-index: 2;
  padding: 0 8px 8px;
  font: 400 12px/1.35 var(--sans);
}
.post-controls select { width: 100%; min-width: 0; font-size: 12px; padding-left: 6px; }
.post-controls p:empty { display: none; }
.post-controls p { margin: 5px 0 0; color: var(--sub); text-wrap: pretty; }
.admission-row { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.admission-row .text-action { padding: 4px 6px; font: 400 12px var(--sans); }
#bunks { white-space: nowrap; color: var(--sub); }
.practice-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.practice-step { font: 500 12px/1.5 var(--mono); color: var(--sub); }
#practice-result { min-height: 3em; }

/* Tomorrow morning: a quiet ledger, hairline above, figures in Mono. */
.supplies { width: 300px; flex: none; padding-top: 64px; }
.supply-heading {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--sub);
  font: 500 13px/1.3 var(--mono);
  letter-spacing: .02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#ledger { display: grid; gap: 14px; margin-top: 14px; }
.projection-note { margin: 3px 0 0; color: var(--sub); font: 400 12px/1.35 var(--sans); }
.res {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 84px;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}
.res .name { color: var(--text); }
.resource-bar { height: 6px; background: var(--band); position: relative; }
.now { position: absolute; inset: 0 auto 0 0; background: var(--supply); transition: width .3s cubic-bezier(.2,.7,.2,1); }
[data-resource='power'] { --supply: var(--power); }
[data-resource='o2'] { --supply: var(--o2); }
[data-resource='water'] { --supply: var(--water); }
[data-resource='food'] { --supply: var(--food); }
[data-resource='parts'] { --supply: var(--parts); }
[data-resource='materials'] { --supply: var(--materials); }
[data-resource='morale'] { --supply: var(--morale); }
.gap {
  position: absolute;
  top: 0;
  bottom: 0;
  background: repeating-linear-gradient(135deg, var(--bg) 0 2px, var(--supply) 2px 3px);
  transition: left .3s cubic-bezier(.2,.7,.2,1), width .3s cubic-bezier(.2,.7,.2,1);
}
.next, .resource-bar .proposal {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  background: var(--ink);
  outline: 1px solid var(--bg);
  transition: left .3s cubic-bezier(.2,.7,.2,1);
}
.resource-bar .proposal::before {
  content: '';
  position: absolute;
  left: -3px;
  top: -4px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--ink);
}
.nums {
  font: 500 13px var(--mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.nums b { display: inline-block; font-weight: 500; }
.nums .delta { color: var(--sub); display: inline-block; min-width: 3ch; margin-left: 6px; font-size: 12px; }
.res.danger .name, .res.danger .nums, .res.danger .delta { color: var(--ink); }
.res.preview-change .name, .res.preview-change .nums { color: var(--ink); }
.supplies.previewing .next { opacity: .45; }
.supplies.previewing .gap { opacity: .4; }

/* One line (two at most) of guidance, never a button. */
.strip {
  margin: 16px 0 0;
  min-height: 42px;
  color: var(--sub);
  font: 400 15px/21px var(--sans);
  text-wrap: pretty;
}

/* Bottom bar: actions left, Settings and Help right, End sol centred. */
.bar {
  position: fixed;
  left: max(6px, env(safe-area-inset-left));
  right: max(6px, env(safe-area-inset-right));
  bottom: var(--bar-bottom);
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}
.bar::before { content: ''; position: absolute; inset: -6px; background: var(--bg); z-index: -1; }
.group { display: flex; gap: 0; pointer-events: auto; }
.ib {
  appearance: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  transition: opacity .15s, transform .1s;
}
.ib:active { transform: scale(.94); }
.ib svg { width: 24px; height: 24px; }
.ib:disabled { opacity: .4; }
.ib[data-armed='true'] { outline: 1px dashed var(--ink); outline-offset: -5px; }
@media (hover: hover) { .ib:hover:not(:disabled) { background: var(--band); } }
.go {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  height: var(--bar-height);
  width: 15ch;
  padding: 0 18px;
  white-space: nowrap;
  border: 1px solid var(--ink);
  color: var(--bg);
  background: var(--ink);
  font: 500 15px var(--mono);
  pointer-events: auto;
  transition: background-color .15s, color .15s;
}
.go:active:not(:disabled) { transform: translateX(-50%) scale(.98); }
.go:disabled { background: var(--bg); color: var(--sub); border-color: var(--sub); }

/* Sheets: a fixed head, one scrolling body. */
dialog.sheet {
  width: min(32rem, calc(100vw - 16px));
  max-width: none;
  max-height: calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  height: fit-content;
  padding: 0;
  margin: auto;
  border: 1px solid var(--frame);
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}
dialog.sheet[open] { display: block; animation: sheet-in .18s ease-out; }
@keyframes sheet-in { from { opacity: 0; } to { opacity: 1; } }
dialog.sheet::backdrop { background: var(--scrim); }
.sheet-in {
  max-height: calc(100dvh - 18px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  min-height: 0;
  font: 400 16px/1.45 var(--sans);
}
.sheet-head {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
}
.sheet-head form { margin: 0; }
.sheet h2 { margin: 0; font: 500 16px/1.3 var(--mono); }
.sheet-x { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--text); }
.sheet-x svg { width: 24px; height: 24px; }
.sheet-body { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 20px 24px; }
.sheet p { margin: 0 0 16px; max-width: 60ch; }
.sheet section + section { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; }
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  min-height: 48px;
}
.value { font: 500 15px var(--mono); font-variant-numeric: tabular-nums; color: var(--text); }
.text-action, select {
  appearance: none;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: none;
  color: var(--text);
  font: 500 15px/1.3 var(--mono);
}
select {
  max-width: 100%;
  padding-right: 28px;
  background: linear-gradient(45deg, transparent 50%, var(--sub) 50%) right 14px center / 5px 5px no-repeat,
    linear-gradient(-45deg, transparent 50%, var(--sub) 50%) right 9px center / 5px 5px no-repeat;
}
select option { background: var(--bg); color: var(--text); }
.text-action:disabled, select:disabled { opacity: .45; cursor: default; }
@media (hover: hover) { .text-action:hover:not(:disabled), .sheet-x:hover { background: var(--band); } }
#theme-btn { display: flex; align-items: center; gap: 8px; }
#theme-btn svg { width: 20px; height: 20px; flex: none; }
.controls { margin: 0; display: grid; gap: 6px; }
.controls div { display: flex; flex-wrap: wrap; gap: 0 8px; }
.controls dt { color: var(--text); }
.controls dt::after { content: " \2014"; color: var(--sub); }
.controls dd { margin: 0; color: var(--sub); }
.sheet-foot { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 20px; }
.foot-btn { display: inline-flex; align-items: center; min-height: 44px; color: var(--sub); text-underline-offset: 3px; }

/* Ending: words on the scrim, no card. */
.ending {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: var(--scrim);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  overflow: auto;
}
.ending > div { width: 100%; max-width: 30rem; }
.ending h2 { margin: 0 0 12px; font: 400 26px/1.2 var(--sans); color: var(--ink); }
.ending p { margin: 0 0 16px; }
.e-kicker { font: 500 13px/1.5 var(--mono); color: var(--sub); }
.pill {
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--frame);
  background: var(--bg);
  color: var(--text);
  font: 500 15px/1 var(--mono);
}

/* Phones and narrow windows: board, then ledger. */
@media (max-width: 940px) {
  .composition {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 58px 12px max(60px, var(--bar-clearance));
  }
  .colony-field, .supplies { width: min(100%, 430px); }
  .supplies { padding-top: 0; }
  .forecast { gap: 6px; margin-bottom: 10px; }
  .wx { display: flex; align-items: center; gap: 4px; }
  .wx-day, .wx-condition { white-space: nowrap; }
  .wx .note, .wx-full {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  .wx-short { display: inline; }
  .wx svg { width: 16px; height: 16px; }
  .board { gap: 4px; }
  .post { min-height: 96px; }
  .post-target { padding: 5px; min-height: 44px; }
  .post-name { font-size: 13px; }
  .post-heading { gap: 4px; }
  .post-icon { width: 14px; height: 14px; }
  .post-effect { font-size: 12px; }
  .tokens { padding: 3px; gap: 5px 2px; }
  .token, .ghost { width: calc(50% - 1px); min-width: 44px; max-width: 70px; min-height: 44px; }
  .post-controls { padding: 0 4px 4px; }
  .admission-row { position: relative; display: block; }
  .admission-row .text-action { width: 100%; text-align: left; padding: 3px 4px 17px; }
  #bunks { position: absolute; top: 25px; left: 5px; pointer-events: none; }
  .token:only-child, .ghost:only-child { width: 70px; max-width: 100%; }
  .crew-dot { width: 24px; height: 24px; }
  .crew-name { font-size: 11px; }
  .health i { width: 4px; height: 4px; }
  .supply-heading { padding-top: 8px; font-size: 12px; }
  #ledger { gap: 6px; margin-top: 8px; }
  .res { grid-template-columns: 70px minmax(0, 1fr) 88px; font-size: 12px; }
  .nums { font-size: 12px; }
  .nums .delta { font-size: 11px; }
  .strip { margin-top: 12px; font-size: 14px; line-height: 19px; min-height: 38px; }
}
@media (max-width: 480px) { .sheet-body { padding: 16px; } .sheet-head { padding: 8px 12px; } }
@media (max-width: 359px) {
  .wx { flex-wrap: wrap; }
  .post-heading { flex-direction: row; }
  .post-name { font-size: 12px; }
  .tokens { padding: 1px 0; gap: 0; }
  .token, .ghost { width: 44px; max-width: 44px; }
  .post-controls p, .admission-row .text-action, #bunks { font-size: 11px; }
  .forecast { margin-bottom: 6px; }
  .hud { font-size: 12px; gap: 5px; }
  .bar .ib { width: 44px; }
  .go { width: 14ch; padding: 0 8px; }
}

/* Landscape phones: the bar becomes a right rail; board and ledger sit side by side. */
@media (orientation: landscape) and (max-height: 500px) {
  :root { --rail: calc(64px + env(safe-area-inset-right)); }
  .hud { min-height: 34px; top: max(2px, env(safe-area-inset-top)); left: calc(50% - var(--rail) / 2); }
  .composition {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
    padding: 38px calc(var(--rail) + 12px) 8px max(12px, env(safe-area-inset-left));
  }
  .colony-field { width: auto; flex: 1 1 520px; max-width: 560px; }
  .supplies { width: 240px; padding-bottom: 64px; }
  .forecast { margin-bottom: 6px; }
  .post { min-height: 96px; }
  .post-target { padding: 5px 6px; gap: 1px; }
  .tokens { padding: 2px 4px 4px; }
  .token, .ghost { min-height: 45px; }
  #ledger { gap: 7px; margin-top: 8px; }
  .res { grid-template-columns: 64px minmax(0, 1fr) 80px; gap: 6px; }
  .strip { margin-top: 8px; font-size: 13px; line-height: 18px; min-height: 36px; }
  .bar {
    left: auto;
    right: 0;
    top: 0;
    bottom: 0;
    width: var(--rail);
    flex-direction: column;
    padding: max(4px, env(safe-area-inset-top)) env(safe-area-inset-right) max(4px, env(safe-area-inset-bottom)) 0;
    border-left: 1px solid var(--line);
    pointer-events: auto;
    background: var(--bg);
  }
  .bar::before { display: none; }
  .bar .group { flex-direction: column; align-items: center; width: 64px; }
  .go {
    position: fixed;
    left: auto;
    right: calc(var(--rail) + 12px);
    bottom: max(8px, env(safe-area-inset-bottom));
    transform: none;
    width: 240px;
  }
  .go:active:not(:disabled) { transform: scale(.98); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (forced-colors: active) {
  :root {
    --ink: CanvasText;
    --text: CanvasText;
    --bg: Canvas;
    --line: GrayText;
    --guide: GrayText;
    --frame: CanvasText;
    --sub: CanvasText;
    --band: Canvas;
    --crew-ink: CanvasText;
    --crew-light-ink: CanvasText;
    --botanist: Canvas;
    --geologist: Canvas;
    --engineer: Canvas;
    --medic: Canvas;
    --pilot: Canvas;
    --commander: Canvas;
    --rookie: Canvas;
    --power: CanvasText;
    --o2: CanvasText;
    --water: CanvasText;
    --food: CanvasText;
    --parts: CanvasText;
    --materials: CanvasText;
    --morale: CanvasText;
  }
  .crew-dot, .resource-bar, .health { forced-color-adjust: none; }
  .post { border-color: CanvasText; }
  .resource-bar { border: 1px solid CanvasText; }
}
