@font-face {
  font-family: Inter;
  src: url(assets/inter.woff2) format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --ink: #21352b;
  --muted: #637168;
  --forest: #193e30;
  --stroke: #dce2d8;
  --paper: #fffefa;
  --sage: #f5f6ee;
  --lime: #d2ed9e;
  --radius: 15px;
  font-family: Inter, 'Avenir Next', Arial, sans-serif;
  color: var(--ink);
  background: var(--sage);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: default;
}
button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #75a94a;
  outline-offset: 3px;
}
button {
  touch-action: manipulation;
}
button svg,
i svg {
  display: block;
  flex: none;
}
i[data-i] {
  display: inline-flex;
  font-style: normal;
}
h1,
h2,
p {
  margin: 0;
}
button {
  border: 0;
}
button,
dialog {
  color: var(--ink);
}
.topbar {
  background: var(--forest);
  color: #f4f7ef;
}
.topinner,
.dashboard {
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 clamp(20px, 3.5vw, 62px);
}
.topinner {
  height: 70px;
  display: flex;
  align-items: center;
  gap: clamp(30px, 4.7vw, 78px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: none;
  padding: 0;
  color: #fffefa;
  font-size: 25px;
  font-weight: 790;
  letter-spacing: -1.4px;
}
.brand img {
  width: 39px;
  height: 39px;
}
.brand > span > span {
  color: #d4ebac;
}
.mainnav {
  display: flex;
  gap: 7px;
  align-self: center;
}
.mainnav button,
.toptools button {
  background: transparent;
  color: #e0e8dc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.mainnav button {
  font-size: 13px;
  font-weight: 590;
  border-radius: 8px;
  padding: 11px 15px;
  transition: background 0.2s;
}
.mainnav button svg {
  width: 17px;
  height: 17px;
}
.mainnav button:hover,
.toptools button:hover {
  background: #31523f;
}
.mainnav button.nav-current {
  background: #395a43;
  color: #f1f8dc;
}
.nav-current svg {
  color: #d6ecad;
}
.toptools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 17px;
}
.toptools .top-help {
  padding: 6px;
  border-radius: 50%;
  color: #c7d5c5;
}
.toptools .top-help svg {
  width: 20px;
  height: 20px;
}
.user-divider {
  height: 24px;
  width: 1px;
  background: #486253;
}
.toptools .user-btn {
  padding: 3px 0 3px 3px;
  font-size: 13px;
  font-weight: 590;
  border-radius: 18px;
}
.user-btn > i svg {
  width: 13px;
  height: 13px;
}
.avatar {
  border-radius: 50%;
  background: #dbe6c8;
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  color: #3d6747;
}
.avatar svg {
  width: 15px;
  height: 15px;
}
.dashboard {
  padding-bottom: 32px;
}
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 27px 0 21px;
  gap: 16px;
}
.location {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  color: #65735e;
  font-weight: 580;
  margin-bottom: 5px;
}
.location svg {
  width: 14px;
  height: 14px;
  color: #668157;
}
.intro h1 {
  font-size: clamp(28px, 2.6vw, 43px);
  font-weight: 730;
  line-height: 1.1;
  letter-spacing: -1.7px;
}
.clock {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--paper);
  border: 1px solid var(--stroke);
  border-radius: 11px;
  padding: 8px 14px 8px 10px;
}
.sun-box {
  color: #ab791a;
  background: #fbefc9;
  display: grid;
  place-items: center;
  border-radius: 8px;
  width: 31px;
  height: 31px;
}
.sun-box svg {
  width: 19px;
  height: 19px;
}
.clock b,
.clock small {
  display: block;
}
.clock b {
  font-size: 12px;
  line-height: 1.45;
}
.clock small {
  font-size: 10px;
  color: var(--muted);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.metric {
  background: var(--paper);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 83px;
  text-align: left;
  padding: 14px 18px;
  transition:
    transform 0.18s,
    border-color 0.18s;
}
.metric:hover,
.quick-grid button:hover {
  border-color: #99b397;
  transform: translateY(-2px);
}
.metric-icon,
.quick-icon {
  display: grid;
  place-items: center;
  border-radius: 12px;
  flex: none;
}
.metric-icon {
  width: 43px;
  height: 43px;
}
.metric-icon svg {
  width: 22px;
  height: 22px;
}
.mint {
  background: #e5efd9;
  color: #537445;
}
.blue {
  background: #dfedf2;
  color: #47748c;
}
.amber {
  background: #fbedd0;
  color: #a97725;
}
.lilac {
  background: #eae4f1;
  color: #806890;
}
.metric span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 520;
}
.metric strong {
  display: block;
  line-height: 1.3;
  font-size: clamp(20px, 1.75vw, 30px);
  letter-spacing: -1.1px;
  font-weight: 690;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.metric strong em {
  font-style: normal;
  font-size: 0.67em;
  letter-spacing: -0.45px;
  font-weight: 600;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 2.45fr) minmax(262px, 1fr);
  gap: 19px;
  align-items: start;
}
.paper {
  background: var(--paper);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
}
.map-card {
  overflow: hidden;
}
.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  min-height: 57px;
}
.heading-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.heading-group > i {
  color: #5b775c;
}
.heading-group > i svg {
  width: 20px;
  height: 20px;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.65px;
  font-weight: 680;
  line-height: 1.25;
}
.subtle-btn,
.text-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
}
.subtle-btn {
  border: 1px solid var(--stroke);
  border-radius: 7px;
  padding: 6px 10px;
  color: #516450;
  background: #fcfdf8;
}
.subtle-btn svg,
.text-btn svg {
  width: 15px;
  height: 15px;
}
.subtle-btn:hover,
.subtle-btn[aria-pressed='true'] {
  background: #e8f0df;
  border-color: #aec2a7;
}
.text-btn {
  color: #52724e;
  padding: 5px 0;
}
.text-btn:hover {
  text-decoration: underline;
}
.map-viewport {
  height: clamp(330px, 29vw, 474px);
  overflow: hidden;
  position: relative;
  background: #9ebd65;
  isolation: isolate;
  touch-action: pan-y;
}
.map-world {
  position: absolute;
  inset: 0;
  transform-origin: center;
  user-select: none;
  -webkit-user-select: none;
}
.terrain,
.plot-grid,
.map-objects {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.terrain {
  object-fit: fill;
  pointer-events: none;
}
.plot-grid {
  z-index: 1;
  overflow: visible;
  filter: drop-shadow(0 1px 1px #332d2080);
}
.map-objects {
  pointer-events: none;
  z-index: 2;
}
.map-pin {
  position: absolute;
  transform: translate(-50%, -85%);
  background: transparent;
  padding: 0;
  width: 9%;
  pointer-events: auto;
  filter: drop-shadow(1px 3px 2px #35432169);
  transition:
    filter 0.15s,
    scale 0.15s;
  transform-origin: bottom;
}
.map-pin img {
  width: 100%;
  display: block;
}
.map-pin:hover {
  filter: drop-shadow(0 0 3px white) brightness(1.08);
  z-index: 50 !important;
}
.map-pin.constructing img {
  filter: sepia(0.5);
  opacity: 0.77;
}
.instance-number {
  position: absolute;
  z-index: 20;
  transform: translate(-50%, -50%);
  pointer-events: none;
  text-align: center;
  min-width: 18px;
  padding: 2px 4px;
  border: 1px solid #f4f7de;
  border-radius: 6px;
  background: var(--forest);
  color: white;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
}
.placing .plot-grid {
  z-index: 3;
}
.placing .instance-number {
  display: none;
}
.placing .map-pin {
  pointer-events: none;
  opacity: 0.65;
}
.placing .move-source {
  opacity: 0.42;
  filter: grayscale(1) drop-shadow(0 0 4px white);
}
.move-preview {
  position: absolute;
  width: 9%;
  transform: translate(-50%, -85%);
  filter: drop-shadow(0 0 3px white) drop-shadow(0 3px 5px #14472c);
  pointer-events: none;
  z-index: 30;
}
.placing .plot-tile:not(.plot-choice) {
  fill: #523c28;
  fill-opacity: 0.24;
}
.construction-mark {
  position: absolute;
  bottom: 4%;
  right: 0;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  background: #fff2cf;
  color: #795a1d;
  border: 1px solid #a3925a;
  border-radius: 50%;
}
.construction-mark svg {
  width: 13px;
  height: 13px;
}
.plot-tag,
.zoom-bar {
  position: absolute;
  z-index: 4;
  background: rgba(255, 255, 243, 0.95);
  border: 1px solid #7e8c6559;
  box-shadow: 0 2px 5px #283d2420;
}
.plot-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  top: 14px;
  left: 16px;
  padding: 6px 9px;
  color: #3e5238;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 1.05px;
  pointer-events: none;
}
.plot-tag span:first-child {
  border: 1.6px solid #718956;
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
}
.zoom-bar {
  right: 14px;
  bottom: 13px;
  display: flex;
  align-items: center;
  padding: 2px;
  border-radius: 8px;
  color: #3e533b;
}
.zoom-bar button {
  width: 28px;
  height: 26px;
  background: transparent;
  display: grid;
  place-items: center;
  border-radius: 4px;
}
.zoom-bar button:hover {
  background: #e6ecd7;
}
.zoom-bar button:disabled {
  opacity: 0.38;
}
.zoom-bar button svg {
  width: 15px;
  height: 15px;
}
.zoom-bar span {
  font-size: 10px;
  font-weight: 700;
  min-width: 33px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.zoom-bar button:last-child {
  border-left: 1px solid #cdd5be;
  border-radius: 0;
  margin-left: 3px;
}
.map-start {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transform: translate(-50%, -50%);
  background: none;
  padding: 3px;
  white-space: nowrap;
}
.map-start span {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 12px;
  background: var(--forest);
  color: var(--lime);
  box-shadow:
    0 2px 0 2px #f1f5cb,
    0 6px 9px #233d2b6b;
}
.map-start span svg {
  width: 25px;
  height: 25px;
}
.map-start b {
  color: white;
  background: #28462de8;
  border: 1px solid #799459;
  border-radius: 5px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 590;
  box-shadow: 0 2px 4px #1c341d25;
}
.map-start:hover span {
  background: #356044;
  transform: translateY(-2px);
}
[hidden] {
  display: none !important;
}
.map-footer,
.place-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 17px;
  font-size: 11px;
  color: #687568;
}
.footer-phase,
#save-status {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}
.plot-capacity {
  display: flex;
  align-items: center;
  gap: 10px;
}
#expand-plant {
  background: var(--forest);
  color: white;
  border-color: var(--forest);
}
#expand-plant:hover {
  background: #325f45;
}
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #85a653;
  border-radius: 50%;
}
.footer-phase {
  font-weight: 590;
  color: #516b4a;
}
.place-box {
  background: #f0f5e4;
  flex-wrap: wrap;
  font-size: 13px;
}
.place-box .place-info {
  flex: 1;
  min-width: 140px;
}
.place-box strong,
.place-box small {
  display: block;
}
.place-box small {
  color: #5d6b55;
  margin-top: 3px;
}
.place-box button {
  font-size: 12px;
  font-weight: 650;
  border-radius: 7px;
  padding: 8px 12px;
  background: #dae6cf;
}
.place-box .place-yes {
  background: var(--forest);
  color: white;
}
.place-box button:disabled {
  opacity: 0.45;
}
.plot-tile {
  fill: transparent;
  stroke: #faffdb;
  stroke-width: 1.8;
  vector-effect: non-scaling-stroke;
  stroke-opacity: 0.9;
}
.plot-choice {
  cursor: pointer;
  fill: #ecffb92b;
}
.plot-choice:hover,
.plot-choice:focus {
  fill: #dfff9b9c;
  outline: none;
  stroke: white;
}
.plot-selected {
  fill: #365a3bab;
  stroke: #fffbd9;
  stroke-width: 3;
}
.plot-border {
  fill: #e0f6a40b;
  stroke: #fcffd5;
  stroke-width: 2;
  stroke-dasharray: 7 7;
  stroke-opacity: 0.85;
  vector-effect: non-scaling-stroke;
}
.rail {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mission {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #f5f8e9;
  background: #254e37;
  border-radius: var(--radius);
  padding: 21px 21px 18px;
}
.contours {
  pointer-events: none;
  position: absolute;
  width: 72%;
  height: 140%;
  z-index: -1;
  right: -24%;
  top: -43%;
  transform: rotate(-26deg);
  border-radius: 48%;
  background: repeating-radial-gradient(
    ellipse at 80% 27%,
    transparent 0 8px,
    #54744d50 9px 10px,
    transparent 11px 16px
  );
  mask-image: linear-gradient(90deg, transparent, #000 22%);
}
.mission-eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #d3e5b2;
  letter-spacing: 1.3px;
  font-weight: 680;
  font-size: 9px;
}
.mission-eyebrow svg {
  width: 15px;
  height: 15px;
}
.mission h2 {
  margin: 12px 0 7px;
  font-size: clamp(21px, 1.65vw, 28px);
  letter-spacing: -0.85px;
  max-width: 82%;
}
.mission p {
  max-width: 34ch;
  color: #dde7d7;
  font-size: 13px;
  line-height: 1.5;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #dbe5d2;
  margin: 18px 0 7px;
}
.progress-label b {
  color: #eef5e3;
}
.progress-track {
  height: 5px;
  border-radius: 8px;
  background: #567057;
  overflow: hidden;
}
.progress-track span {
  display: block;
  height: 100%;
  background: #c9e999;
  transition: width 0.4s;
}
.mission-action {
  border-radius: 8px;
  padding: 11px 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: var(--lime);
  color: #28432c;
  font-size: 12px;
  font-weight: 700;
  margin-top: 15px;
  width: 100%;
}
.mission-action:hover {
  background: #e2f5b9;
}
.mission-action svg {
  width: 16px;
  height: 16px;
}
.quick {
  padding: 18px 18px 16px;
}
.quick h2 {
  font-size: 17px;
  margin-bottom: 13px;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.quick-grid button {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px;
  background: #fbfcf6;
  border: 1px solid #e1e5da;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 610;
  text-align: left;
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.quick-icon {
  width: 29px;
  height: 29px;
  border-radius: 8px;
}
.quick-icon svg {
  width: 16px;
  height: 16px;
}
.journal .card-heading {
  padding-bottom: 11px;
  min-height: 48px;
}
.journal-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border-top: 1px solid #e7ebe1;
  font-size: 12px;
  line-height: 1.45;
}
.journal .journal-line:first-child {
  border-top: 0;
  padding-top: 4px;
}
.journal .journal-line:last-child {
  padding-bottom: 17px;
}
.journal-leaf {
  display: grid;
  place-items: center;
  flex: none;
  width: 27px;
  height: 27px;
  background: #eaf1e2;
  color: #6f8c55;
  border-radius: 8px;
}
.journal-leaf svg {
  width: 15px;
  height: 15px;
}
.journal-line time {
  margin-left: auto;
  color: #697667;
  white-space: nowrap;
  font-size: 10px;
}
.bottom-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 5px 2px;
  font-size: 10px;
  color: var(--muted);
}
.bottom-tools .subtle-btn {
  background: transparent;
  font-size: 11px;
}
dialog {
  border: 1px solid #d7dfd2;
  border-radius: 18px;
  background: var(--paper);
  padding: 0;
  width: min(568px, calc(100vw - 30px));
  max-height: min(86dvh, 850px);
  box-shadow: 0 22px 75px #172a1d45;
}
dialog[open] {
  animation: appear 0.18s ease-out;
}
dialog::backdrop {
  background: #172a1ec2;
  backdrop-filter: blur(3px);
}
.dialog-shell {
  position: relative;
  padding: 26px;
}
.close-button {
  position: absolute;
  right: 18px;
  top: 18px;
  border-radius: 50%;
  width: 29px;
  height: 29px;
  background: #edf1e8;
  color: #567057;
  display: grid;
  place-items: center;
  z-index: 1;
}
.close-button svg {
  width: 17px;
  height: 17px;
}
.close-button:hover {
  background: #dce6d5;
}
.map-tools {
  display: flex;
  gap: 8px;
}
.board-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.board-option {
  display: grid;
  grid-template-columns: 34% 1fr 21px;
  align-items: center;
  gap: 16px;
  background: var(--paper);
  border: 1px solid var(--stroke);
  padding: 8px 14px 8px 8px;
  border-radius: 13px;
  text-align: left;
}
.board-option:hover {
  border-color: #789263;
}
.board-option[aria-pressed='true'] {
  border-color: #537a49;
  background: #eef5e6;
}
.board-option img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 8px;
}
.board-option strong {
  font-size: 16px;
}
.board-option small {
  display: block;
  margin-top: 5px;
  color: #536552;
  line-height: 1.45;
  font-size: 13px;
}
.board-check {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border: 1px solid #b5c5ad;
  border-radius: 50%;
}
.board-option[aria-pressed='true'] .board-check {
  color: white;
  border-color: var(--forest);
  background: var(--forest);
}
@media (max-width: 550px) {
  #map-title span,
  #grid-toggle span {
    display: none;
  }
  .board-option {
    gap: 9px;
    padding: 8px;
  }
  .board-option strong {
    font-size: 14px;
  }
  .board-option small {
    font-size: 12px;
  }
  .map-tools button {
    min-height: 36px;
  }
}
.local-panel h2 {
  font-size: 25px;
  padding-right: 35px;
  letter-spacing: -1px;
}
.local-panel > p {
  margin: 9px 0 16px;
  color: #586852;
  line-height: 1.55;
  font-size: 14px;
}
.local-panel .journal-line {
  padding: 12px 0;
}
.help-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 0;
  border-top: 1px solid var(--stroke);
}
.help-step > i {
  display: grid;
  place-items: center;
  background: #e8efdb;
  color: #59774c;
  padding: 8px;
  border-radius: 9px;
}
.help-step h3 {
  font-size: 15px;
  margin: 0 0 3px;
}
.help-step p {
  font-size: 13px;
  line-height: 1.44;
  color: #61725e;
}
.account-form {
  display: grid;
  gap: 12px;
}
.account-form label {
  display: grid;
  gap: 5px;
  font-size: 12px;
  font-weight: 630;
}
.account-form input {
  padding: 10px;
  border: 1px solid #bdcbb9;
  background: white;
  border-radius: 7px;
}
.account-form button,
.primary-btn {
  padding: 11px 15px;
  background: var(--forest);
  color: white;
  border-radius: 8px;
  font-weight: 650;
  font-size: 13px;
}
.account-switch {
  display: flex;
  gap: 3px;
  background: #edf1e7;
  border-radius: 9px;
  padding: 3px;
  margin-bottom: 16px;
}
.account-switch button {
  flex: 1;
  border-radius: 7px;
  background: none;
  padding: 8px;
  font-size: 12px;
}
.account-switch button.active {
  background: white;
  box-shadow: 0 1px 4px #364d3122;
}
.toast {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 25px;
  transform: translate(-50%, 12px);
  color: white;
  background: #203c2f;
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: 0 4px 20px #1d34294d;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.18s,
    transform 0.18s;
  text-align: center;
  font-size: 13px;
  max-width: calc(100vw - 30px);
  width: max-content;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.error-text {
  font-size: 13px;
  color: #94412d;
}
.offline .status-dot {
  background: #b37924;
}
@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 1560px) {
  .map-viewport {
    height: 458px;
  }
}
@media (max-width: 980px) {
  .topinner {
    gap: 22px;
  }
  .mainnav {
    gap: 0;
  }
  .mainnav button {
    padding: 10px;
  }
  .workspace {
    grid-template-columns: minmax(0, 1.95fr) minmax(237px, 0.95fr);
    gap: 13px;
  }
  .metrics {
    gap: 9px;
  }
  .metric {
    padding: 12px 11px;
    gap: 9px;
    min-height: 72px;
  }
  .metric-icon {
    width: 35px;
    height: 35px;
    border-radius: 9px;
  }
  .metric-icon svg {
    width: 18px;
    height: 18px;
  }
  .metric span {
    font-size: 11px;
  }
  .mission,
  .quick {
    padding: 16px;
  }
  .map-viewport {
    height: 350px;
  }
  .rail {
    gap: 12px;
  }
  .quick-grid button {
    padding: 7px 5px;
    gap: 5px;
  }
  .mission h2 {
    max-width: 100%;
  }
  .card-heading {
    padding: 13px 15px;
  }
  .map-footer {
    font-size: 10px;
  }
  .bottom-tools {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}
@media (max-width: 740px) {
  .topinner,
  .dashboard {
    padding-inline: 16px;
  }
  .topinner {
    height: 56px;
    gap: 15px;
  }
  .mainnav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #193e30;
    z-index: 6;
    justify-content: space-around;
    padding: 4px 8px calc(4px + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 8px #1e352520;
  }
  .mainnav button {
    flex: 1;
    max-width: 155px;
    gap: 4px;
    flex-direction: column;
    padding: 7px;
    font-size: 10px;
  }
  .mainnav button svg {
    width: 17px;
    height: 17px;
  }
  .brand {
    font-size: 22px;
    gap: 8px;
  }
  .brand img {
    width: 32px;
    height: 32px;
  }
  .toptools {
    gap: 11px;
  }
  .intro {
    padding: 20px 0 15px;
  }
  .intro h1 {
    font-size: 28px;
    letter-spacing: -1.3px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 13px;
  }
  .metric {
    min-height: 62px;
  }
  .workspace {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .map-viewport {
    height: clamp(255px, 55vw, 360px);
  }
  .rail {
    display: grid;
    grid-template-columns: 1.13fr 1fr;
    align-items: start;
  }
  .quick-grid {
    grid-template-columns: 1fr;
  }
  .mission,
  .quick {
    padding: 14px;
  }
  .mission h2 {
    font-size: 21px;
  }
  .map-footer {
    padding: 10px 12px;
  }
  .dashboard {
    padding-bottom: 85px;
  }
  .bottom-tools {
    padding: 0 2px;
    align-items: center;
  }
  .toast {
    bottom: 75px;
  }
  .location {
    font-size: 10px;
  }
  .clock {
    padding: 6px 8px;
  }
  .clock small {
    font-size: 9px;
  }
  .sun-box {
    width: 26px;
    height: 26px;
  }
  .sun-box svg {
    width: 16px;
    height: 16px;
  }
  .map-start span {
    width: 36px;
    height: 36px;
  }
  .map-start b {
    font-size: 10px;
  }
  .plot-tag {
    font-size: 8px;
    top: 10px;
    left: 10px;
  }
  .zoom-bar {
    bottom: 9px;
    right: 9px;
  }
  .journal h2,
  .map-card h2 {
    font-size: 16px;
  }
}
@media (max-width: 470px) {
  .map-footer:has(#expand-plant:not([hidden])) {
    flex-wrap: wrap;
  }
  .plot-capacity:has(#expand-plant:not([hidden])) {
    flex: 1 0 auto;
    justify-content: space-between;
  }
  .topinner,
  .dashboard {
    padding-inline: 12px;
  }
  .rail {
    grid-template-columns: 1fr;
  }
  .quick-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }
  .quick-grid button {
    flex-direction: column;
    gap: 5px;
    padding: 7px 3px;
    font-size: 11px;
  }
  .mission p {
    max-width: 100%;
  }
  .mission h2 {
    margin-top: 8px;
  }
  .progress-label {
    margin-top: 11px;
  }
  .metric strong {
    font-size: 20px;
  }
  .metric-icon {
    width: 32px;
    height: 32px;
  }
  .metric {
    gap: 8px;
  }
  .dialog-shell {
    padding: 20px 16px;
  }
  .map-viewport {
    height: 262px;
  }
  .card-heading {
    padding: 10px 12px;
    min-height: 45px;
  }
  .journal-line {
    padding-inline: 12px;
  }
  .journal .text-btn {
    font-size: 10px;
  }
  .journal .heading-group {
    gap: 6px;
  }
  .journal .heading-group > i svg {
    width: 16px;
    height: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.mission-model {
  position: absolute;
  z-index: -1;
  right: 11px;
  top: 12px;
  width: clamp(65px, 6.15vw, 94px);
  opacity: 0.94;
  filter: drop-shadow(0 4px 3px #102d213f);
  pointer-events: none;
}
.mission h2 {
  margin-right: 60px;
  max-width: none;
}
.mission p {
  padding-right: 28px;
}
@media (max-width: 980px) and (min-width: 741px) {
  .mission-model {
    width: 53px;
    top: 8px;
    right: 9px;
  }
  .mission h2 {
    margin-right: 31px;
  }
  .mission p {
    padding-right: 0;
  }
}
@media (max-width: 740px) {
  .mission-model {
    width: 58px;
  }
  .mission h2 {
    margin-right: 43px;
  }
  .mission p {
    padding-right: 0;
  }
}
.delivery-truck {
  position: absolute;
  width: 5.3%;
  height: auto;
  transform: translate(-50%, -70%);
  pointer-events: none;
  z-index: 3;
  filter: drop-shadow(0 2px 1px #2e341e40);
}
.map-pin.working::after {
  content: '';
  position: absolute;
  right: 5%;
  bottom: 6%;
  width: 7px;
  height: 7px;
  background: #c4fc80;
  border: 1px solid #315637;
  border-radius: 50%;
  animation: indicator 2.5s ease-in-out infinite;
}
@keyframes indicator {
  50% {
    box-shadow: 0 0 0 3px #c9f7843c;
  }
}
