:root {
  --bg: #071824;
  --panel: #102531;
  --line: #2a4351;
  --text: #e2edf0;
  --muted: #93aebc;
  --cyan: #79dce5;
  --amber: #f1bc74;
  --red: #ff8d77;
}
.forecast-hours{display:grid;grid-template-columns:repeat(6,1fr);gap:4px;margin:10px 0}.forecast-hours span{text-align:center;background:#0a202c;padding:6px 1px}.forecast-hours small,.forecast-hours b{display:block;font-size:9px}.forecast-hours b{font-size:13px;color:var(--amber)}#forecastCard{font-size:11px}#forecastCard>small{font-size:9px;color:var(--muted)}#forecastCard strong{color:var(--amber)}#issueWarning{font-size:11px;margin-top:9px}#consequences{padding:10px;background:#0a202c;border-top:1px solid var(--amber);font-size:11px;margin:12px 0}#consequences strong{color:var(--amber)}#consequences p{margin:7px 0}#consequences small{font-size:10px;color:var(--muted)}#observationsPanel{font-size:11px;border:1px solid var(--line);padding:8px;margin:15px 0}#observationsPanel summary{cursor:pointer;color:var(--cyan)}#observations small{font-size:9px;color:var(--muted)}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    14px/1.6 "Microsoft YaHei",
    "Segoe UI",
    sans-serif;
  overflow: hidden;
}
button,
select,
input,
textarea {
  font: inherit;
  color: inherit;
}
button,
select,
textarea {
  background: #183440;
  border: 1px solid #345260;
  border-radius: 5px;
}
button {
  padding: 8px 10px;
  cursor: pointer;
  transition: background 0.15s;
}
button:hover,
button.active {
  background: #285461;
  border-color: var(--cyan);
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}
input[type="range"] {
  width: 100%;
  accent-color: var(--amber);
}
input[type="checkbox"] {
  accent-color: var(--cyan);
}
select,
textarea {
  padding: 8px;
  width: 100%;
}
textarea {
  resize: vertical;
}
a {
  color: var(--cyan);
}
header {
  height: 90px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 26px;
  gap: 26px;
  background: linear-gradient(100deg, #102c3a, #081c29);
}
.brand {
  text-decoration: none;
  color: #fff;
  font:
    bold 33px Georgia,
    serif;
  letter-spacing: -1px;
  line-height: 1;
}
.brand span {
  color: var(--amber);
}
.brand small {
  display: block;
  font:
    9px/2 "Microsoft YaHei",
    sans-serif;
  letter-spacing: 2px;
  color: var(--muted);
}
h1 {
  font-size: 23px;
  margin: 0;
  letter-spacing: 2px;
}
header p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.environment {
  margin-left: auto;
}
.environment b {
  color: var(--amber);
  font-size: 13px;
}
.environment small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
main {
  height: calc(100dvh - 168px);
  display: grid;
  grid-template-columns: 240px minmax(300px, 1fr) 320px;
}
.rail {
  overflow-y: auto;
  padding: 18px;
  background: var(--panel);
  scrollbar-width: thin;
  scrollbar-color: #456170 transparent;
}
.left {
  border-right: 1px solid var(--line);
}
.right {
  border-left: 1px solid var(--line);
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  margin: 0 0 14px;
  padding-bottom: 9px;
  letter-spacing: 1px;
  font-size: 12px;
  color: var(--cyan);
}
.section-title:not(:first-child) {
  margin-top: 22px;
}
.section-title b {
  font-weight: 400;
  color: var(--amber);
}
label {
  display: block;
  color: #b9d0da;
  margin: 9px 0 5px;
  font-size: 12px;
}
.muted {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}
.compact {
  margin: 6px 0 18px;
}
.button-grid,
.channel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin: 12px 0;
}
.button-grid button {
  font-size: 12px;
}
.landmark-list {
  margin-top: 10px;
}
.landmark-list button {
  display: block;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #24414f;
  border-radius: 0;
  width: 100%;
  text-align: left;
  padding: 7px 4px;
  font-size: 12px;
  color: #c3d8df;
}
.landmark-list button:hover {
  color: var(--amber);
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
}
#exportGLB {
  width: 100%;
  margin-top: 16px;
  font-size: 11px;
}
#xrActions {
  margin-top: 20px;
}
#xrActions button {
  width: 100%;
  color: var(--amber);
}
#xrActions small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 7px;
}
#viewport {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 45%, #193b48, #071824);
}
#viewport canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}
.map-caption {
  position: absolute;
  top: 26px;
  left: 24px;
  pointer-events: none;
  z-index: 2;
  text-shadow: 0 2px 8px #00121c;
  background:linear-gradient(90deg,#0a202bd9,#0a202b00);padding:10px 18px 10px 0;
}
.eyebrow {
  font: 10px monospace;
  letter-spacing: 3px;
  color: var(--amber);
}
h2 {
  margin: 4px 0;
  font-size: 22px;
  letter-spacing: 2px;
}
.map-caption p {
  color: #acc3cf;
  font-size: 11px;
  max-width: 360px;
}
.map-tools {
  position: absolute;
  left: 24px;
  bottom: 100px;
  display: flex;
  gap: 6px;
  z-index: 2;
}
.map-tools button {
  font-size: 11px;
  background: #102b3be8;
}
.north {
  position: absolute;
  top: 28px;
  right: 25px;
  text-align: center;
  font: 24px Georgia;
  color: var(--amber);
}
.north span {
  font: 10px "Microsoft YaHei";
}
.map-legend {
  position: absolute;
  bottom: 36px;
  left: 24px;
  right: 20px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 10px;
  color: #aac3cd;
  pointer-events: none;
  text-shadow:0 1px 4px #03111c;background:#0a202bb3;padding:7px;
}
.map-legend i {
  width: 9px;
  height: 9px;
  display: inline-block;
  margin-right: 6px;
}
.map-legend small {
  width: 100%;
  font-size: 10px;
  color: #8faab7;
}
.attribution {
  position: absolute;
  bottom: 5px;
  left: 24px;
  color: #718e9e;
  font-size: 8px;
  line-height: 1.4;
  pointer-events: none;
  background:#0a202bbd;padding:3px 6px;
}
#selection {
  position: absolute;
  top: 135px;
  left: 24px;
  max-width: 320px;
  padding: 12px;
  background: #102a38ed;
  border-left: 3px solid var(--amber);
  font-size: 12px;
}
#mapError {
  position: absolute;
  top: 180px;
  left: 20px;
  right: 20px;
  background: #552e2a;
  padding: 20px;
  z-index: 5;
}
.kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.kpis article {
  padding: 9px 8px;
  background: #0a202c;
  border-top: 1px solid #385363;
}
.kpis article span {
  font-size: 10px;
  color: var(--muted);
  display: block;
}
.kpis strong {
  display: block;
  font:
    28px/1.5 Georgia,
    serif;
  color: var(--amber);
  letter-spacing: 1px;
}
.kpis small {
  font: 10px "Microsoft YaHei";
  letter-spacing: 0;
  margin-left: 4px;
  color: #9bb8c6;
}
.resource-line {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 11px;
  margin: 14px 0;
}
.resource-line span {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #29424f;
}
.resource-line b {
  color: var(--cyan);
  font-size: 14px;
}
.reservoir {
  border: 1px solid var(--line);
  padding: 9px;
  margin: 8px 0;
}
.reservoir h4 {
  font-size: 12px;
  font-weight: 400;
  margin: 0 0 5px;
}
.reservoir .bar {
  height: 4px;
  background: #081c28;
  margin-top: 7px;
}
.reservoir .bar i {
  display: block;
  height: 100%;
  background: #4fbecf;
}
.reservoir p {
  font-size: 10px;
  color: #93acb8;
  margin: 4px 0;
}
.parameter {
  margin-bottom: 11px;
}
.parameter label {
  display: flex;
  justify-content: space-between;
  margin: 0;
  font-size: 11px;
}
.parameter output {
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}
.parameter input {
  height: 16px;
}
.text-button {
  border: 0;
  background: transparent;
  font-size: 11px;
  color: var(--muted);
  padding: 0;
}
.channel-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}
.channel-grid button {
  font-size: 10px;
  padding: 5px;
}
.channel-grid .active {
  border-color: var(--amber);
  color: var(--amber);
}
#sendNotice {
  width: 100%;
  margin-top: 6px;
  font-size: 12px;
}
#notices .notice {
  font-size: 10px;
  border-left: 2px solid var(--amber);
  padding: 5px 8px;
  margin: 8px 0;
  background: #16303c;
}
#notices .notice button {
  font-size: 10px;
  padding: 2px 7px;
  float: right;
}
.small-button {
  font-size: 10px;
  padding: 4px 8px;
  margin-top: 9px;
}
footer {
  height: 78px;
  padding: 15px 22px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 24px;
  background: #0d2532;
}
.playback {
  display: flex;
  align-items: center;
  gap: 8px;
}
footer button {
  font-size: 12px;
}
footer label {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  font-size: 11px;
}
footer select {
  padding: 7px;
  width: 74px;
}
.primary {
  background: var(--amber);
  color: #12232e;
  border-color: var(--amber);
  font-weight: bold;
}
.primary:hover {
  background: #ffce8b;
}
.timeline {
  flex: 1;
  min-width: 80px;
}
.time-track {
  height: 4px;
  background: #294350;
}
.time-track i {
  height: 100%;
  display: block;
  width: 0;
  background: var(--cyan);
}
.timeline > div:last-child {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  font-size: 10px;
  color: var(--muted);
}
.timeline b {
  font-weight: 400;
  color: var(--cyan);
}
.review {
  display: flex;
  gap: 8px;
}
dialog {
  color: var(--text);
  background: #102a38;
  border: 1px solid #436374;
  border-radius: 8px;
  padding: 28px;
  max-width: 850px;
  width: 90vw;
  max-height: 85vh;
  overflow: auto;
  box-shadow: 0 20px 80px #0009;
}
dialog::backdrop {
  background: #03111cbd;
}
dialog h2 {
  font-size: 22px;
  margin-bottom: 20px;
}
dialog h3 {
  color: var(--amber);
  font-size: 15px;
}
dialog p {
  font-size: 13px;
  color: #b3ccd7;
}
dialog .close {
  float: right;
}
.warning {
  border-left: 3px solid var(--amber);
  padding: 12px;
  background: #3c3325;
}
dialog .source {
  border-top: 1px solid var(--line);
  padding: 12px 0;
  font-size: 12px;
}
#chart {
  width: 100%;
  height: 200px;
  background: #091f2a;
}
#reviewContent table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
td,
th {
  text-align: left;
  padding: 9px;
  border-bottom: 1px solid #34505e;
}
#downloadRun {
  margin-top: 18px;
}
#viewport:fullscreen {
  width: 100vw;
  height: 100vh;
}
body.xr-mode .map-caption,
body.xr-mode .map-tools {
  display: none;
}
@media (min-width: 1700px) {
  main {
    grid-template-columns: 260px minmax(300px, 1fr) 350px;
  }
  body {
    font-size: 15px;
  }
  .rail {
    padding: 22px;
  }
  .parameter label {
    font-size: 12px;
  }
  .kpis article span {
    font-size: 11px;
  }
}
@media (max-width: 1100px) {
  main {
    grid-template-columns: 190px minmax(250px, 1fr) 270px;
  }
  .rail {
    padding: 12px;
  }
  header {
    padding: 0 16px;
    gap: 18px;
  }
  .heading p {
    display: none;
  }
  h1 {
    font-size: 19px;
  }
  .map-tools {
    left: 12px;
    gap: 3px;
  }
  .map-tools button {
    font-size: 10px;
    padding: 7px 5px;
  }
  footer {
    gap: 12px;
    padding: 12px;
  }
  .playback {
    gap: 5px;
  }
  .timeline b {
    display: none;
  }
}
@media (max-width: 800px) {
  body {
    overflow: auto;
  }
  header {
    height: 76px;
    padding: 10px 14px;
    gap: 12px;
  }
  .brand {
    font-size: 25px;
  }
  .brand small {
    font-size: 7px;
  }
  .heading {
    display: none;
  }
  .environment {
    margin-left: auto;
  }
  .environment b {
    font-size: 11px;
  }
  header > button {
    font-size: 10px;
    padding: 6px;
  }
  main {
    height: auto;
    display: flex;
    flex-wrap: wrap;
  }
  #viewport {
    order: 0;
    width: 100%;
    height: 62dvh;
    min-height: 420px;
  }
  .left {
    order: 1;
    width: 42%;
    border-top: 1px solid var(--line);
  }
  .right {
    order: 2;
    width: 58%;
    border-top: 1px solid var(--line);
  }
  .rail {
    max-height: none;
    overflow: visible;
  }
  .map-caption {
    top: 15px;
    left: 15px;
  }
  .map-caption p {
    max-width: 240px;
  }
  .map-tools {
    bottom: 107px;
    flex-wrap: wrap;
  }
  .map-legend {
    left: 15px;
    gap: 8px;
  }
  .attribution {
    left: 15px;
  }
  .north {
    right: 15px;
    top: 18px;
  }
  footer {
    height: auto;
    min-height: 110px;
    flex-wrap: wrap;
    position: sticky;
    bottom: 0;
    z-index: 4;
  }
  .playback {
    width: 100%;
    justify-content: space-between;
  }
  .playback button {
    font-size: 10px;
  }
  .timeline {
    min-width: 100px;
  }
  .review button {
    font-size: 10px;
  }
  .section-title {
    font-size: 10px;
    letter-spacing: 0;
  }
  .kpis strong {
    font-size: 23px;
  }
  .resource-line {
    grid-template-columns: 1fr;
  }
  .button-grid {
    grid-template-columns: 1fr;
  }
  .channel-grid {
    grid-template-columns: 1fr 1fr;
  }
  .kpis {
    gap: 5px;
  }
  .kpis article {
    padding: 5px;
  }
  .map-caption h2 {
    font-size: 20px;
  }
}
