:root {
  --sidebar-width: 320px;
  color-scheme: dark;
  font-family: Inter, "Segoe UI", sans-serif;
  color: #e4ebe5;
  background: #10201b;
}
#infantry {
  width: 100%;
}
#infantry[aria-pressed="true"] {
  background: #355440;
  border-color: #afcf91;
}
#infantry-prompt {
  position: absolute;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  padding: 12px 18px;
  background: #14231eee;
  border: 1px solid #a0c79a;
  border-radius: 5px;
  font-size: 14px;
  pointer-events: none;
}
#infantry-terminal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 45;
  width: min(420px, 90%);
  padding: 26px;
  background: #172a23;
  border: 1px solid #9ac195;
  border-radius: 8px;
  box-shadow: 0 20px 80px #0009;
}
#infantry-terminal h2 {
  margin-top: 0;
  font-weight: 500;
}
#infantry-terminal.vehicle-terminal {
  width: min(740px, 92%);
  max-height: 90%;
  overflow: auto;
  padding: 28px;
}
.vehicle-terminal #infantry-terminal-base {
  color: #b3d79b;
  margin-bottom: 5px;
}
.vehicle-terminal #infantry-terminal-detail {
  color: #82978b;
  font-size: 11px;
  margin-top: 0;
}
.vehicle-menu-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  margin-top: 26px;
}
.vehicle-menu-list {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.vehicle-menu-layout:has(.vehicle-menu-list[hidden]) {
  grid-template-columns: 1fr;
}
.vehicle-menu-list legend {
  margin-bottom: 12px;
  color: #acb8ae;
  font-size: 12px;
}
.vehicle-menu-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 14px;
  margin-bottom: 10px;
  border: 1px solid #415847;
  border-radius: 6px;
  cursor: pointer;
  background: #11231c;
}
.vehicle-menu-card:has(input:checked) {
  border-color: #b3d79b;
  background: #314834;
}
.vehicle-menu-card:has(input:focus-visible) {
  outline: 2px solid #d9edcc;
  outline-offset: 3px;
}
.vehicle-menu-card input {
  margin: 0;
  width: auto;
  accent-color: #b3d79b;
}
.vehicle-menu-card-text {
  display: grid;
  gap: 5px;
}
.vehicle-menu-card-text strong {
  font-size: 17px;
  font-weight: 500;
}
.vehicle-menu-card-text span {
  font-size: 11px;
  color: #b4c0b6;
  line-height: 1.45;
}
.vehicle-menu-name {
  margin: 0 0 6px;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.6px;
}
.vehicle-menu-label {
  color: #c2d1bd;
  font-size: 13px;
  margin: 0 0 18px;
}
.vehicle-menu-description {
  min-height: 60px;
  line-height: 1.6;
  color: #b2c1b5;
  font-size: 13px;
}
.vehicle-menu-spawn {
  border-top: 1px solid #3c5141;
  margin-top: 20px;
  padding-top: 14px;
}
.vehicle-menu-spawn h4 {
  font-size: 12px;
  font-weight: 400;
  color: #a2b5a7;
  margin: 0 0 10px;
}
.vehicle-menu-pad {
  width: 100%;
  margin-bottom: 6px;
  text-align: left;
  font-size: 12px;
}
.vehicle-menu-status {
  min-height: 20px;
  color: #c9e5b2;
  font-size: 13px;
}
.vehicle-menu-confirm {
  width: 100%;
  background: #bedda8;
  color: #13271a;
  border-color: #bedda8;
  padding: 13px 18px;
  font-weight: 600;
}
.vehicle-menu-confirm:hover {
  background: #d4ecc3;
}
.vehicle-menu-confirm:disabled {
  background: #304035;
  border-color: #405048;
  color: #819084;
}
.vehicle-menu-footnote {
  margin: 22px 0 16px;
  font-size: 12px;
  line-height: 1.6;
  color: #a0b0a2;
}
.terminal-error {
  color: #f0bdb0;
}
@media (max-width: 850px) {
  .vehicle-menu-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .vehicle-menu-card {
    padding: 12px 14px;
  }
  .vehicle-menu-description {
    min-height: 0;
  }
}
#infantry-prompt[hidden],
#infantry-terminal[hidden] {
  display: none;
}
body.capture-transfer-active #candidate-labels,
body.capture-transfer-active #capture-editor-labels {
  display: none;
}
* {
  box-sizing: border-box;
}
html {
  height: 100%;
  overflow: hidden;
}
body {
  --sidebar-space: var(--sidebar-width);
  margin: 0;
  display: grid;
  grid-template-columns: var(--sidebar-space) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  height: 100vh;
  overflow: hidden;
}
body.sidebar-collapsed {
  --sidebar-space: 0px;
}
#sidebar-shell {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  min-height: 0;
}
#sidebar {
  container: sidebar / inline-size;
  width: 100%;
  height: 100%;
  padding: 24px 21px;
  background: #13231d;
  border-right: 1px solid #32483d;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #597361 #13231d;
  overflow-wrap: anywhere;
}
#sidebar-toggle {
  position: fixed;
  z-index: 60;
  top: 17px;
  left: var(--sidebar-space);
  width: 28px;
  height: 52px;
  padding: 4px;
  border-left: 0;
  border-radius: 0 8px 8px 0;
  background: #1c3328;
  color: #c5dfa9;
  box-shadow: 3px 3px 12px #0003;
}
.sidebar-collapsed #sidebar-toggle svg {
  transform: rotate(180deg);
}
#sidebar-resizer {
  position: absolute;
  z-index: 61;
  right: -4px;
  top: 0;
  bottom: 0;
  width: 8px;
  cursor: col-resize;
  touch-action: none;
}
#sidebar-resizer::after {
  content: "";
  position: absolute;
  top: calc(50% - 24px);
  left: 3px;
  width: 2px;
  height: 48px;
  background: #7b9c80;
  border-radius: 2px;
}
#sidebar-resizer:hover,
#sidebar-resizer:focus-visible,
.sidebar-resizing #sidebar-resizer {
  background: #aac78a66;
  outline: none;
}
.sidebar-resizing,
.sidebar-resizing * {
  cursor: col-resize !important;
  user-select: none !important;
}
#sidebar-toggle:focus-visible {
  outline: 2px solid #d5eab9;
  outline-offset: 2px;
}
.sidebar-heading {
  margin-bottom: 24px;
}
.sidebar-heading .eyebrow {
  margin-top: 20px;
}
.sidebar-section {
  margin-bottom: 24px;
}
.sidebar-section h2 {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 500;
  color: #a4bb9d;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.sidebar-section > label:first-of-type {
  margin-top: 0;
}
.sidebar-section .modes {
  margin-top: 7px;
}
#sidebar .legacy-tools > summary {
  color: #91a397;
}
#sidebar #map-open {
  margin-top: 9px;
}
@container sidebar (max-width: 230px) {
  #sidebar .tmo-filters {
    grid-template-columns: 1fr;
  }
  .telemetry dl {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .telemetry dd {
    margin-bottom: 8px;
  }
}
.back {
  color: #a8c9b5;
  font-size: 12px;
  text-decoration: none;
}
#map-open {
  width: 100%;
}
.map-tool-details {
  border-top: 1px solid #415448;
  margin: 14px 0;
  padding-top: 12px;
}
.map-tool-details summary {
  cursor: pointer;
  font-size: 13px;
  color: #d9e8d1;
}
#map-panel {
  position: absolute;
  inset: 0;
  z-index: 40;
  background: #14231e;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#map-panel[hidden],
#route-info[hidden] {
  display: none;
}
#map-close {
  align-self: flex-end;
  flex-shrink: 0;
}
#strategic-map {
  flex: 1;
  min-height: 0;
  min-width: 0;
}
#route-info {
  position: absolute;
  top: 96px;
  left: 20px;
  right: 20px;
  z-index: 5;
  background: #14231eee;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}
#route-info button {
  flex-shrink: 0;
  padding: 5px 8px;
}
.eyebrow {
  color: #8da797;
  font-size: 10px;
  letter-spacing: 0.14em;
  margin: 25px 0 8px;
}
h1 {
  font-size: 33px;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.04em;
}
.intro {
  font-size: 13px;
  color: #b6c4bb;
  line-height: 1.6;
  margin-bottom: 25px;
}
.war-panel {
  border: 1px solid #415448;
  border-radius: 5px;
  padding: 12px;
  margin: 0 -5px 20px;
  background: #192d23;
}
.war-panel .eyebrow {
  margin-top: 0;
}
.war-panel label {
  margin-top: 11px;
}
.war-controls {
  margin: 9px 0 14px;
}
.war-controls select {
  width: 65px;
}
.war-controls #war-reset {
  flex: 0;
  font-size: 18px;
  padding: 5px 10px;
}
#war-player {
  width: 100%;
  min-width: 0;
  color: #e3ece5;
  background: #20372b;
  border: 1px solid #45604d;
  border-radius: 5px;
  padding: 8px;
}
.war-clock {
  display: flex;
  justify-content: space-between;
  color: #c6d9ba;
  font-size: 11px;
  margin: 6px 0 9px;
  font-variant-numeric: tabular-nums;
}
.war-factions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
  margin: 8px 0;
}
.war-overlay {
  position: absolute;
  left: 20px;
  top: 60px;
  font-size: 11px;
  color: #e9e7bf;
  padding: 7px 10px;
  background: #15281fec;
  border: 1px solid #526549;
  border-radius: 3px;
  pointer-events: none;
}
label {
  display: block;
  font-size: 12px;
  margin: 18px 0 8px;
}
select,
button {
  font: inherit;
  font-size: 12px;
  color: #e3ece5;
  background: #20372b;
  border: 1px solid #45604d;
  border-radius: 5px;
  padding: 10px;
}
select {
  width: 100%;
}
button {
  cursor: pointer;
}
button:hover {
  background: #304b39;
}
button[aria-pressed="true"] {
  background: #b9d89c;
  color: #15251b;
  border-color: #b9d89c;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
.buttons {
  display: flex;
  gap: 7px;
  margin-top: 9px;
}
.buttons > button {
  flex: 1;
}
.modes {
  margin-top: 20px;
}
output {
  float: right;
  color: #bdd89e;
}
input {
  accent-color: #bdd89e;
}
input[type="range"] {
  width: 100%;
  margin: 0;
}
.toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.note {
  color: #94a79a;
  font-size: 11px;
  line-height: 1.6;
  margin: 6px 0 13px;
}
.telemetry {
  border-top: 1px solid #314637;
  margin-top: 21px;
}
dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
  font-size: 11px;
}
dt {
  color: #a9bbae;
}
dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.error {
  color: #fac094;
  font-size: 12px;
  overflow-wrap: anywhere;
}
main {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
canvas {
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
  touch-action: none;
}
canvas:focus-visible {
  outline: 1px solid #bed8a4;
  outline-offset: -2px;
}
.camera-looking {
  cursor: grabbing;
}
.topline {
  position: absolute;
  top: 17px;
  left: 44px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  pointer-events: none;
  text-shadow: 0 1px 4px #000;
}
.topline span {
  padding: 7px 10px;
  background: #102019d9;
  border-radius: 3px;
}
footer {
  position: absolute;
  bottom: 16px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 13px;
  background: #102019e8;
  border: 1px solid #3d5544;
  border-radius: 4px;
  pointer-events: none;
  font-size: 11px;
}
footer strong {
  color: #cae7ae;
  font-weight: 500;
}
footer span {
  color: #b5c7b9;
}
#status {
  position: absolute;
  top: 43%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #14271eee;
  padding: 24px 30px;
  max-width: 500px;
  text-align: center;
  border: 1px solid #577057;
  border-radius: 6px;
}
#status p {
  color: #adbdaf;
  font-size: 13px;
  line-height: 1.5;
}
#labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.facility-label {
  position: absolute;
  font-size: 10px;
  color: #d2e4bf;
  background: #19291fe0;
  border-radius: 3px;
  padding: 4px 6px;
  transform: translate(-50%, -100%);
  white-space: nowrap;
  border-bottom: 2px solid #aac286;
}
[hidden] {
  display: none !important;
}
.parked-vehicle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #405447;
}
.parked-vehicle-row button {
  width: auto;
  flex: 0 0 auto;
}
#road-overlay-panel,
#road-network-panel {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #102019;
}
#road-overlay-open,
#road-network-open {
  margin-top: 8px;
  width: 100%;
}
@media (max-width: 760px) {
  body {
    grid-template-columns: 0 minmax(0, 1fr);
  }
  #sidebar-shell {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-space);
    z-index: 50;
  }
  #sidebar {
    padding: 15px 13px;
  }
  .topline {
    flex-direction: column;
    align-items: flex-start;
  }
  footer {
    left: 8px;
    right: 8px;
    font-size: 10px;
  }
}
