:root {
  color-scheme: dark;
  font: 16px/1.5 system-ui, sans-serif;
  color: #e7efff;
  background: #090f21;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: radial-gradient(ellipse at 50% 0%, #253654, transparent 55%); }
main { width: min(1280px, 100% - 2.5rem); margin: auto; padding: 20px 0 28px; }
a { color: #f2dbb1; text-underline-offset: .2em; }
.demo-nav, .demo-bar, dialog header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.demo-brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.25rem; text-decoration: none; color: #f5f6ff; }
.demo-brand img { width: 34px; height: 34px; }
.demo-link { font-size: .88rem; }
.demo-intro { margin: 26px 0 20px; }
.demo-kicker { color: #cbd8f8; font-size: .69rem; font-weight: 800; letter-spacing: .13em; }
.demo-kicker span { display: inline-block; margin-right: 5px; width: 7px; height: 7px; border-radius: 50%; background: #9aeccd; box-shadow: 0 0 12px #82ebc4; }
h1 { font-size: clamp(2.1rem, 5vw, 4.25rem); line-height: 1; letter-spacing: -.065em; margin: 6px 0 10px; color: #fcf2de; }
.demo-intro p { margin: 0; max-width: 760px; color: #cbd7ed; }
#demoWorld .colony-viewport { height: clamp(380px, 59vw, 650px); max-height: 65vh; aspect-ratio: auto; }
.demo-bar { margin-top: 12px; }
.demo-bar p { margin: 0; }
button { font: inherit; cursor: pointer; }
.demo-bar button, dialog button {
  background: #20314c;
  border: 1px solid #6c85ac;
  color: #f1f5ff;
  border-radius: 8px;
  padding: 8px 12px;
}
button:focus-visible, a:focus-visible { outline: 2px solid #f2d49d; outline-offset: 3px; }
footer { margin-top: 18px; color: #acbad2; font-size: .84rem; }
dialog {
  width: min(610px, 100% - 2rem);
  max-height: 90vh;
  background: #131d33;
  color: #e7efff;
  border: 1px solid #8098bd;
  border-radius: 18px;
  padding: 0;
  box-shadow: 0 24px 90px #02040fcc;
}
dialog::backdrop { background: #05091dba; }
dialog header { padding: 14px 18px; border-bottom: 1px solid #516586; }
dialog h2 { margin: 0; color: #faeed9; }
.demo-task-body { padding: 2px 18px 18px; }
#taskStatus { color: #c5d8f4; }
#issueReports { border: 1px solid #5d7293; border-radius: 10px; padding: 10px 14px; }
#issueReports h3, #issueReports dl { margin: 4px 0; }
#issueReports dd { margin: 0 0 9px; color: #c7d5eb; }
.demo-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
#approve { background: #f0d7a7; color: #151b29; }
#result { padding: 12px; border-left: 3px solid #9ee5cc; background: #172f42; }
summary { cursor: pointer; color: #d2e4ff; }
@media (max-width: 620px) {
  main { width: calc(100% - 1.2rem); padding-top: 12px; }
  .demo-intro { margin: 16px 0 12px; }
  .demo-intro p { font-size: .89rem; }
  #demoWorld .colony-viewport { min-height: 310px; height: 38vh; }
  .colony-map-key { display: none; }
  .demo-bar { align-items: flex-start; font-size: .81rem; }
  .demo-bar button { flex-shrink: 0; }
}

.demo-bar { margin: 0 0 12px; }
#missionAction { flex-shrink: 0; background: #f0d7a7; color:#151d30; font-weight:750; }
#reset { margin-top:12px;background:transparent;border:1px solid #5d7398;border-radius:7px;padding:7px 11px;color:#d7e4fb; }
.station-evidence { font-family:system-ui,sans-serif; }
.demo-options { display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px;font-size:.82rem; }
.demo-options label { display:flex;align-items:center;gap:5px; }
.demo-options #reset { margin:0; }
@media(min-width: 621px) {
  #demoWorld .colony-viewport { max-height: 50vh; }
}
