:root {
  font-family: "IBM Plex Sans", sans-serif;
  color: #e5eee8;
  background: #0b2d27;
  font-synthesis: none;
  font-size: 13px;
  --pine: #0b2d27;
  --panel: #12372f;
  --line: #426057;
  --muted: #afc6bb;
  --mint: #75d7ac;
  --amber: #ee9848;
  --violet: #aa88dc;
  --blue: #76bfda;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
select,
input,
textarea {
  font: inherit;
}
button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button,
select {
  color: inherit;
}
button {
  background: none;
  border: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
textarea:focus-visible,
.town-scene:focus-visible {
  outline: 2px solid #a9f1d1;
  outline-offset: 4px;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.7;
  flex-shrink: 0;
}
button svg,
a svg {
  pointer-events: none;
}
button {
  touch-action: manipulation;
}
.town-app {
  height: 100dvh;
  min-height: 620px;
  display: grid;
  grid-template-rows: 64px minmax(0, 1fr) 122px 80px;
  overflow: hidden;
}
.town-command {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  z-index: 10;
  background: #0a2923;
  border-bottom: 1px solid #44675c;
  box-shadow: 0 3px 15px #081d1a50;
}
.town-brand {
  width: 109px;
  padding-right: 14px;
  border-right: 1px solid #476057;
  flex-shrink: 0;
}
.town-brand img {
  width: 96px;
  display: block;
}
.town-title {
  flex-shrink: 0;
}
.town-title h1 {
  font-size: 17px;
  line-height: 1.3;
  font-weight: 600;
  margin: 0;
  text-transform: uppercase;
}
.town-title > span {
  font-size: 10px;
  color: #bad0c5;
}
.town-stats {
  display: flex;
  border: 1px solid #345348;
  background: #183b31;
  border-radius: 6px;
  padding: 6px 0;
}
.town-stats > div {
  display: grid;
  gap: 2px;
  padding: 0 14px;
  border-right: 1px solid #3a564d;
  white-space: nowrap;
}
.town-stats > div:last-child {
  border: 0;
}
.town-stats span {
  font-size: 9px;
  color: #c2d2c9;
}
.town-stats strong {
  font-size: 12px;
  font-weight: 550;
  color: #8ad7ac;
}
.town-stats strong.at-risk {
  color: #ffc083;
}
.command-spacer {
  flex: 1;
}
.simulation-label {
  font-size: 10px;
  color: #c0d0c7;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.simulation-label time {
  padding-left: 9px;
  border-left: 1px solid #4b635a;
  font-variant-numeric: tabular-nums;
}
.status-dot {
  height: 8px;
  width: 8px;
  display: inline-block;
  background: #75d7ac;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #75d7ac2a;
  flex-shrink: 0;
}
.speed-control {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #557064;
  border-radius: 5px;
  padding: 8px 10px;
  white-space: nowrap;
}
.speed-control select {
  border: 0;
  background: #102f28;
  font-size: 11px;
  cursor: pointer;
  outline-offset: 2px;
}
.town-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #587568;
  background: #12372fc9;
  border-radius: 5px;
  padding: 9px 13px;
  font-size: 11px;
  white-space: nowrap;
  min-height: 34px;
}
.town-button:hover,
.town-icon:hover {
  background: #2c5547;
  border-color: #86b49a;
}
.pause-control {
  min-width: 82px;
}
.operator-button {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}
.operator-button > span:first-child {
  height: 26px;
  width: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #9075b7;
  font-weight: 600;
  font-size: 10px;
}
.town-icon {
  border: 1px solid transparent;
  border-radius: 4px;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  flex-shrink: 0;
}
.town-scene {
  position: relative;
  overflow: hidden;
  background: #275867;
  touch-action: none;
  isolation: isolate;
  cursor: grab;
}
.town-scene:active {
  cursor: grabbing;
}
.town-world {
  position: absolute;
  width: 1719px;
  height: 915px;
  transform-origin: 0 0;
  will-change: transform;
  user-select: none;
}
.world-art {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  object-fit: contain;
  transition: filter 400ms;
}
.town-world canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.town-world.night .world-art {
  filter: brightness(0.55) saturate(0.8) hue-rotate(6deg);
}
.building-tag {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 7px 12px 6px;
  background: #0b2d27f0;
  border: 1px solid #557062;
  border-radius: 4px;
  min-width: 112px;
  box-shadow: 0 3px 7px #051b1890;
  display: grid;
  gap: 3px;
  text-align: center;
  transition:
    border-color 140ms,
    background 140ms;
  z-index: 4;
  cursor: pointer;
}
.building-tag strong {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  line-height: 1.25;
}
.building-tag strong span {
  font-weight: 600;
  color: #b8d7c4;
  margin-right: 5px;
}
.building-tag small {
  font-size: 10px;
  line-height: 1.1;
  color: #b8ccbf;
}
.building-tag:hover {
  background: #245447;
  outline: 2px solid #b1eccc;
  outline-offset: 3px;
  z-index: 5;
}
.building-tag.selected,
.building-tag.mission-owner {
  border-color: #f7c291;
  background: #684322;
  box-shadow:
    0 0 0 2px #ee984850,
    0 4px 9px #0b211aaa;
}
.building-tag.needs-decision {
  border-color: #bea0e1;
}
.building-tag.unavailable {
  border-color: #dc8b75;
}
.building-tag.busy small {
  color: #8cf1c5;
}
.building-tag.muted-layer {
  opacity: 0.16;
  pointer-events: none;
}
.town-world.hide-labels .building-tag {
  opacity: 0;
}
.town-world.hide-labels .building-tag:hover,
.town-world.hide-labels .building-tag:focus-visible {
  opacity: 1;
}
.building-tag.poi {
  min-width: 0;
  padding: 4px 8px;
}
.building-tag.poi strong {
  font-size: 11px;
}
.neighbourhood {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #ffb56d;
  background: #9c551cf2;
  color: #ffefce;
  border-radius: 5px;
  padding: 6px 10px;
  z-index: 6;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 0 18px #ffb25845;
}
.neighbourhood svg {
  height: 20px;
  width: 20px;
}
.move-pin {
  border-color: #8fe7c5;
  background: #1f765ef5;
  color: #e0fff0;
  box-shadow: 0 0 18px #7efdc344;
}
.neighbourhood.resolved {
  background: #225b42;
  border-color: #80dba6;
}
.traveller {
  position: absolute;
  transform: translate(-50%, -65%);
  pointer-events: none;
  z-index: 3;
  image-rendering: auto;
  filter: drop-shadow(0 3px 2px #0b201b70);
}
.traveller.van {
  width: 68px;
  height: auto;
}
.traveller.person {
  height: 34px;
  width: auto;
}
.town-detail {
  position: absolute;
  right: 28px;
  top: 28px;
  width: 232px;
  max-height: calc(100% - 96px);
  overflow: auto;
  background: #0c2e27f5;
  border: 1px solid #678274;
  border-radius: 6px;
  box-shadow: 0 8px 30px #051e1a50;
  z-index: 9;
  cursor: default;
  scrollbar-width: thin;
  scrollbar-color: #4b7765 #193b30;
}
.town-detail:empty {
  display: none;
}
.detail-header {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #12352c;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 13px 12px;
  border-bottom: 1px solid #3c574d;
}
.mission-symbol {
  display: grid;
  place-items: center;
  border-radius: 50%;
  width: 31px;
  height: 31px;
  border: 1px solid currentColor;
  background: #885022;
  color: #ffc078;
  box-shadow: 0 0 14px #ed994025;
  flex-shrink: 0;
}
.mission-symbol svg {
  width: 22px;
  height: 22px;
}
.detail-header > div:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.detail-header h2 {
  font-size: 15px;
  font-weight: 550;
  margin: 0 0 3px;
  line-height: 1.2;
}
.detail-header p {
  font-size: 10px;
  color: #bed0c6;
  margin: 0;
}
.detail-header > .town-icon {
  align-self: flex-start;
  width: 24px;
  height: 24px;
}
.detail-header > .town-icon svg {
  width: 14px;
  height: 14px;
}
.detail-body {
  padding: 0 14px 14px;
}
.detail-intro {
  padding: 15px 0 12px;
}
.detail-intro strong {
  font-size: 12px;
  font-weight: 500;
  display: block;
  margin-bottom: 6px;
}
.detail-intro p {
  font-size: 11px;
  line-height: 1.6;
  margin: 0;
  color: #b5cabe;
}
.detail-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #3c574d;
  border-bottom: 1px solid #3c574d;
  margin-bottom: 15px;
}
.detail-stats > div {
  padding: 11px 0;
}
.detail-stats > div + div {
  border-left: 1px solid #3c574d;
  padding-left: 14px;
}
.detail-stats span {
  font-size: 10px;
  color: #aac3b5;
  display: block;
  margin-bottom: 4px;
}
.detail-stats strong {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}
.detail-section h3 {
  font-size: 11px;
  font-weight: 500;
  color: #d5e3db;
  margin: 15px 0 10px;
}
.mission-checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.mission-checks li {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: #b9cfc2;
}
.mission-checks svg {
  width: 12px;
  height: 12px;
  color: #739684;
}
.mission-checks li.done svg {
  color: #8ddbaf;
}
.mission-checks li.current {
  color: #fff;
}
.mission-checks li.current svg {
  color: var(--amber);
}
.mission-checks small {
  font-size: 9px;
  color: #9fbcad;
}
.mission-checks li.current small {
  color: #d6b8fa;
}
.detail-section.customer-update {
  border-top: 1px solid #3c574d;
  margin-top: 15px;
  padding-top: 1px;
}
.detail-section p {
  font-size: 11px;
  color: #bbd0c4;
  line-height: 1.6;
}
.human-action {
  width: 100%;
  background: #654d89;
  border: 1px solid #a990ca;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 5px;
  margin-top: 15px;
  text-align: left;
}
.human-action:hover {
  background: #7b5fa4;
}
.human-action svg {
  height: 24px;
  width: 24px;
  color: #dac6ef;
}
.human-action strong {
  display: block;
  font-size: 11px;
  font-weight: 550;
}
.human-action small {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  color: #e1d1ef;
}
.primary-action {
  background: #317857;
  border-color: #7bca9f;
  width: 100%;
  font-size: 12px;
  margin-top: 15px;
}
.primary-action:hover {
  background: #3e8c65;
}
.detail-actions {
  border-top: 1px solid #3c574d;
  margin-top: 14px;
  padding-top: 10px;
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: space-between;
}
.detail-actions .town-icon {
  border-color: #446154;
  width: 30px;
  height: 27px;
}
.detail-actions .town-button {
  font-size: 10px;
  border: 0;
  padding: 4px 0;
  min-height: 27px;
}
.decision-note {
  margin-top: 10px;
  font-size: 10px;
  line-height: 1.5;
  color: #bdb1d2;
}
.detail-agent {
  padding: 10px 0;
  border-bottom: 1px solid #314e41;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.detail-agent strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
}
.detail-agent small {
  display: block;
  font-size: 10px;
  color: #adc6b5;
  margin-top: 3px;
}
.detail-agent button {
  font-size: 10px;
  border: 1px solid #4c6b59;
  border-radius: 4px;
  padding: 5px 8px;
}
.detail-case-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  border: 1px solid #466353;
  border-radius: 4px;
  margin-top: 7px;
  font-size: 11px;
  background: #173e31;
}
.detail-case-link small {
  display: block;
  font-size: 10px;
  color: #abc7b5;
  margin-top: 4px;
}
.town-map-tools {
  position: absolute;
  left: 22px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  background: #0b2d27ed;
  border: 1px solid #628271;
  border-radius: 5px;
  z-index: 7;
  cursor: default;
}
.town-map-tools #zoom-level {
  font-size: 11px;
  width: 38px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.tool-divider {
  height: 21px;
  width: 1px;
  background: #496857;
  margin: 0 2px;
}
.town-map-tools .town-icon {
  width: 30px;
  height: 28px;
}
.town-view-tools {
  position: absolute;
  left: 22px;
  top: 22px;
  display: flex;
  gap: 3px;
  border: 1px solid #628271;
  background: #0b2d27ed;
  padding: 4px;
  border-radius: 5px;
  z-index: 7;
}
.town-view-tools button {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  padding: 7px 10px;
  border-radius: 3px;
  color: #c7d8cd;
}
.town-view-tools button.active {
  background: #406e56;
  color: #fff;
}
.town-view-tools svg {
  width: 14px;
  height: 14px;
}
.map-help {
  position: absolute;
  bottom: 32px;
  left: 305px;
  font-size: 10px;
  color: #fff;
  text-shadow: 0 1px 5px #05251f;
  background: #0b2d2799;
  padding: 5px 8px;
  border-radius: 4px;
  pointer-events: none;
}
.town-selection-caption {
  position: absolute;
  bottom: 22px;
  right: 28px;
  background: #0c2e27e8;
  border: 1px solid #53745f;
  border-radius: 4px;
  padding: 9px 12px;
  font-size: 10px;
  pointer-events: none;
  max-width: 300px;
  color: #c4dccb;
}
.town-selection-caption:empty {
  display: none;
}
.mission-dock {
  display: flex;
  align-items: stretch;
  gap: 15px;
  background: #0b2a23;
  border-top: 1px solid #46715b;
  padding: 11px 20px;
  z-index: 10;
}
.mission-dock-title {
  width: 101px;
  flex-shrink: 0;
  border-right: 1px dashed #436553;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding-right: 15px;
}
.mission-dock-title strong {
  font-size: 12px;
  font-weight: 500;
}
.mission-dock-title > span {
  font-size: 11px;
  color: #b7ccbf;
}
.mission-dock-title .town-icon {
  width: 24px;
  height: 23px;
  border: 1px solid #466957;
  margin-top: 1px;
}
.mission-dock-title svg {
  width: 13px;
}
.mission-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #568369 #0b2d27;
}
.mission-card {
  border: 1px solid #8f73b6;
  border-radius: 5px;
  background: #14372f;
  display: block;
  text-align: left;
  padding: 10px 13px 8px;
  position: relative;
  min-width: 205px;
  transition: background 150ms;
}
.mission-card:hover {
  background: #214d3c;
}
.mission-card.outage {
  border-color: #e8994c;
}
.mission-card.connector {
  border-color: #609cbb;
}
.mission-card.selected {
  background: #183d2d;
  box-shadow: inset 0 0 0 1px var(--accent, #e9a453);
}
.mission-card.complete {
  border-color: #4d8667;
}
.mission-card-head {
  display: flex;
  align-items: center;
  gap: 9px;
}
.mission-card-head > svg {
  height: 25px;
  width: 25px;
  color: var(--accent, #b497d4);
}
.mission-card-head strong {
  display: block;
  font-size: 12px;
  font-weight: 550;
  margin-bottom: 2px;
}
.mission-card-head small {
  display: block;
  font-size: 10px;
  color: #bccdc2;
}
.mission-card-head .mission-badge {
  font-size: 9px;
  margin-left: auto;
  align-self: flex-start;
  color: #cfc0e2;
  white-space: nowrap;
}
.mission-progress {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin-top: 10px;
  padding: 0 3px;
}
.mission-stage {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 5px;
}
.mission-stage:not(:last-child):before {
  content: "";
  position: absolute;
  height: 1px;
  left: 50%;
  right: -50%;
  top: 7px;
  background: #597363;
}
.mission-stage > span {
  width: 15px;
  height: 15px;
  border: 1px solid #668776;
  border-radius: 50%;
  background: #11332a;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
}
.mission-stage svg {
  width: 9px;
  height: 9px;
}
.mission-stage.complete > span {
  background: var(--accent, #8a70b1);
  border-color: var(--accent, #ab91ce);
  color: #fff;
}
.mission-stage.current > span {
  border-color: var(--accent, #c1a8e5);
  box-shadow: 0 0 0 3px #af94d72a;
}
.mission-stage.complete:not(:last-child):before {
  background: var(--accent, #a286c5);
}
.mission-stage > small {
  font-size: 8px;
  color: #bbd0c1;
  white-space: nowrap;
}
.town-activity {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #102f26;
  padding: 14px 21px;
  z-index: 10;
  border-top: 1px solid #234d3a;
}
.activity-heading {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 100px;
}
.activity-heading strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
}
.activity-heading small {
  display: block;
  font-size: 9px;
  color: #bdd2c3;
  margin-top: 4px;
  white-space: nowrap;
}
.town-ticker {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 27px;
  overflow: hidden;
  white-space: nowrap;
  border: 1px solid #365744;
  background: #14352b;
  border-radius: 5px;
  padding: 12px 15px;
  align-items: center;
}
.ticker-event {
  font-size: 10px;
  color: #c5d7cb;
  max-width: 400px;
  flex-shrink: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ticker-event time {
  font-size: 9px;
  color: #9dbaa6;
  margin-right: 8px;
  font-variant-numeric: tabular-nums;
}
.town-activity > .town-button {
  font-size: 10px;
}
.town-toast {
  position: fixed;
  left: 50%;
  bottom: 219px;
  transform: translate(-50%, 15px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 150ms,
    transform 150ms;
  max-width: min(520px, 90vw);
  border: 1px solid #709581;
  background: #133d2df7;
  color: #e4f5e9;
  border-radius: 6px;
  padding: 12px 17px;
  box-shadow: 0 7px 25px #05201666;
  z-index: 30;
  font-size: 12px;
  text-align: center;
}
.town-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.town-dialog {
  width: 540px;
  max-width: calc(100vw - 30px);
  max-height: 85dvh;
  color: #e5eee8;
  background: #11342a;
  border: 1px solid #6a8d79;
  border-radius: 9px;
  padding: 0;
  box-shadow: 0 20px 70px #031e1b99;
}
.town-dialog::backdrop {
  background: #04231caa;
  backdrop-filter: blur(4px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid #45634f;
}
.dialog-heading h2 {
  font-size: 21px;
  font-weight: 550;
  margin: 0;
}
.dialog-body {
  padding: 20px 22px;
}
.dialog-body > p {
  color: #b8cec0;
  font-size: 13px;
  line-height: 1.65;
  margin: 0 0 17px;
}
.dialog-body h3 {
  font-size: 13px;
  font-weight: 550;
}
.dialog-body ul {
  padding-left: 19px;
  font-size: 12px;
  color: #c5d8ca;
  line-height: 1.8;
}
.dialog-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0;
}
.dialog-facts > div {
  border: 1px solid #486b55;
  background: #1c422f;
  padding: 13px;
  border-radius: 5px;
}
.dialog-facts span {
  font-size: 11px;
  color: #b9d2c0;
  display: block;
  margin-bottom: 5px;
}
.dialog-facts strong {
  font-weight: 500;
  font-size: 14px;
}
.dialog-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  justify-content: flex-end;
}
.dialog-actions .primary-action {
  width: auto;
  margin: 0;
}
.town-menu-links {
  display: grid;
  gap: 10px;
}
.town-menu-links a,
.town-menu-links button,
.new-mission-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border: 1px solid #4b705a;
  border-radius: 5px;
  background: #1b4230;
  text-align: left;
  width: 100%;
  font-size: 13px;
}
.town-menu-links a:hover,
.town-menu-links button:hover,
.new-mission-option:hover {
  background: #2c5941;
}
.town-menu-links span {
  flex: 1;
}
.new-mission-option {
  margin-bottom: 10px;
}
.new-mission-option > svg {
  color: #b99cdc;
  width: 25px;
  height: 25px;
}
.new-mission-option strong {
  display: block;
  font-weight: 550;
}
.new-mission-option small {
  display: block;
  color: #bdd3c2;
  font-size: 11px;
  margin-top: 5px;
}
.town-log {
  display: grid;
  gap: 0;
}
.town-log article {
  border-bottom: 1px solid #365441;
  padding: 12px 0;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
}
.town-log time {
  font-size: 10px;
  color: #9ab79f;
}
.town-log p {
  margin: 0;
  line-height: 1.6;
  font-size: 12px;
  color: #c4d7c9;
}
.town-log small {
  display: block;
  color: #9fbbaa;
  font-size: 10px;
  margin-top: 5px;
}
.return-form label {
  display: grid;
  gap: 9px;
  font-size: 12px;
}
.return-form textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  background: #0e2a23;
  border: 1px solid #63856f;
  border-radius: 5px;
  padding: 10px;
  color: #e0eee2;
  line-height: 1.5;
}
.town-paused .status-dot {
  background: #e9b26e;
  box-shadow: 0 0 0 3px #e9b26e20;
}
.scene-error {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 25px;
  background: #14372f;
  border: 1px solid #b79459;
  z-index: 20;
  width: 300px;
  text-align: center;
}
.scene-error p {
  line-height: 1.6;
  font-size: 12px;
}
@media (min-width: 1650px) {
  .town-stats > div {
    padding: 0 20px;
  }
  .town-command {
    gap: 20px;
  }
  .town-detail {
    width: 285px;
  }
  .detail-header h2 {
    font-size: 17px;
  }
  .detail-intro strong {
    font-size: 13px;
  }
  .detail-intro p,
  .detail-section p {
    font-size: 12px;
  }
  .mission-checks li {
    font-size: 11px;
  }
  .mission-card-head strong {
    font-size: 13px;
  }
  .mission-stage > small {
    font-size: 9px;
  }
}
@media (max-width: 1320px) {
  .town-app {
    grid-template-rows: 60px minmax(0, 1fr) 108px 60px;
  }
  .town-command {
    gap: 11px;
    padding: 0 14px;
  }
  .town-brand {
    width: 101px;
  }
  .town-title h1 {
    font-size: 15px;
  }
  .town-title > span {
    font-size: 9px;
  }
  .town-stats > div {
    padding: 0 10px;
  }
  .simulation-label {
    font-size: 0;
    gap: 6px;
  }
  .simulation-label time {
    font-size: 10px;
  }
  .town-detail {
    top: 18px;
    right: 18px;
    width: 250px;
    max-height: calc(100% - 80px);
  }
  .mission-dock {
    padding: 9px 14px;
    gap: 11px;
  }
  .mission-cards {
    gap: 10px;
  }
  .mission-card {
    padding: 8px 10px;
    min-width: 205px;
  }
  .mission-dock-title {
    width: 91px;
  }
  .mission-card-head strong {
    font-size: 11px;
  }
  .mission-stage > small {
    font-size: 7px;
  }
  .town-activity {
    padding: 10px 16px;
    gap: 14px;
  }
  .town-ticker {
    padding: 10px 12px;
  }
  .town-toast {
    bottom: 190px;
  }
  .town-selection-caption {
    right: 18px;
  }
  .map-help {
    display: none;
  }
}
@media (max-width: 1050px) {
  .town-stats > div:nth-child(3),
  .town-stats > div:nth-child(4) {
    display: none;
  }
  .simulation-label {
    display: none;
  }
  .town-command {
    gap: 12px;
  }
  .town-title > span {
    font-size: 9px;
  }
  .mission-cards {
    display: flex;
  }
  .mission-card {
    flex: 0 0 235px;
  }
  .operator-button > span:last-child {
    display: none;
  }
  .town-selection-caption {
    display: none;
  }
  .town-detail {
    width: 245px;
  }
  .town-view-tools {
    top: 14px;
    left: 14px;
  }
  .town-map-tools {
    left: 14px;
    bottom: 15px;
  }
  .town-activity > .town-button {
    font-size: 0;
    padding: 8px;
  }
  .town-activity > .town-button:after {
    content: "Activity";
    font-size: 11px;
  }
}
@media (max-width: 720px) {
  .town-app {
    min-height: 580px;
    grid-template-rows: 58px minmax(0, 1fr) 107px 56px;
  }
  .town-command {
    padding: 0 10px;
    gap: 9px;
  }
  .town-brand {
    width: 83px;
    padding-right: 9px;
  }
  .town-brand img {
    width: 73px;
  }
  .town-title h1 {
    font-size: 14px;
  }
  .town-title > span {
    display: none;
  }
  .town-stats {
    display: none;
  }
  .operator-button {
    display: none;
  }
  .speed-control {
    font-size: 0;
    padding: 7px 3px;
    gap: 0;
    border: 0;
  }
  .speed-control select {
    font-size: 11px;
    max-width: 46px;
  }
  .pause-control {
    font-size: 0;
    min-width: 30px;
    padding: 7px;
    gap: 0;
  }
  .pause-control svg {
    width: 16px;
  }
  .town-command > .town-icon {
    width: 26px;
  }
  .town-detail {
    top: 54px;
    right: 10px;
    width: 260px;
    max-height: calc(100% - 111px);
    background: #0c2e27fa;
  }
  .town-view-tools {
    left: 10px;
    top: 10px;
    padding: 3px;
    gap: 1px;
  }
  .town-view-tools button {
    font-size: 10px;
    padding: 7px;
    gap: 5px;
  }
  .town-view-tools svg {
    width: 13px;
  }
  .town-map-tools {
    left: 10px;
    bottom: 12px;
    padding: 4px;
  }
  .town-map-tools .town-icon {
    width: 29px;
    height: 29px;
  }
  .town-map-tools #zoom-level {
    font-size: 10px;
    width: 33px;
  }
  .mission-dock {
    padding: 8px 10px;
    gap: 9px;
  }
  .mission-dock-title {
    width: 76px;
    padding-right: 8px;
  }
  .mission-dock-title strong {
    font-size: 10px;
  }
  .mission-dock-title > span {
    font-size: 10px;
  }
  .mission-cards {
    gap: 9px;
  }
  .mission-card {
    flex-basis: 252px;
  }
  .mission-stage > small {
    font-size: 8px;
  }
  .town-activity {
    gap: 10px;
    padding: 8px 11px;
  }
  .activity-heading {
    min-width: 88px;
    gap: 9px;
  }
  .activity-heading strong {
    font-size: 10px;
  }
  .activity-heading small {
    font-size: 8px;
  }
  .town-ticker {
    font-size: 9px;
    border: 0;
    padding: 6px 0;
  }
  .ticker-event {
    font-size: 9px;
    max-width: 210px;
  }
  .town-activity > .town-button {
    min-height: 30px;
  }
  .town-activity > .town-button:after {
    font-size: 9px;
  }
  .town-toast {
    bottom: 177px;
    font-size: 11px;
  }
  .town-dialog {
    max-height: 90dvh;
  }
  .dialog-heading {
    padding: 17px;
  }
  .dialog-heading h2 {
    font-size: 19px;
  }
  .dialog-body {
    padding: 17px;
  }
  .dialog-facts {
    grid-template-columns: 1fr;
  }
  .dialog-actions {
    flex-wrap: wrap;
  }
  .dialog-actions .town-button {
    flex: 1;
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
.town-app {
  grid-template-columns: minmax(0, 1fr);
}
.town-app > header,
.town-app > main,
.town-app > section,
.town-app > footer {
  min-width: 0;
}
