:root {
  --ink: #203b35;
  --muted: #62736c;
  --green: #16624e;
  --green-deep: #104936;
  --pale: #e8f0e9;
  --bg: #f4f6f2;
  --paper: #fff;
  --line: #dce4dc;
  --amber: #87601f;
  --orange: #c87954;
  --blue: #5288ab;
  --gold: #b18a32;
  --radius: 12px;
  --shadow: 0 4px 20px #183b2906;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  font-family: 'Microsoft YaHei', 'Segoe UI', sans-serif;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.6;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: var(--green);
}
button,
a,
input,
select,
summary,
textarea {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
textarea:focus-visible {
  outline: 3px solid #2f8c68;
}
button {
  transition:
    background 0.15s,
    border-color 0.15s;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 29px;
  line-height: 1.3;
  letter-spacing: -0.8px;
  margin-bottom: 10px;
}
h2 {
  font-size: 17px;
  line-height: 1.5;
  margin-bottom: 12px;
}
h3 {
  font-size: 15px;
}
p {
  color: var(--muted);
}
small,
.caption {
  font-size: 12px;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  background: white;
  padding: 10px;
  z-index: 100;
}
.skip-link:focus {
  top: 10px;
}
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: 178px;
  padding: 30px 16px 20px;
  background: #fbfcfa;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 2px;
}
.brand small {
  display: block;
  letter-spacing: 2px;
  font-size: 9px;
  font-weight: 500;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 42px;
  background: var(--green);
  color: #fff;
  border-radius: 11px;
  font-size: 23px;
  font-weight: 400;
}
.rail-label {
  font-size: 11px;
  margin: 42px 6px 15px;
  letter-spacing: 1px;
}
.nav {
  border: 0;
  background: none;
  padding: 12px 10px;
  display: flex;
  gap: 12px;
  width: 100%;
  border-radius: 7px;
  margin-bottom: 7px;
  text-align: left;
  font-size: 13px;
  color: var(--muted);
}
.nav span {
  font-size: 10px;
  opacity: 0.7;
  align-self: center;
}
.nav.active {
  color: var(--green);
  background: var(--pale);
  font-weight: 700;
}
.nav:hover {
  background: #eef2eb;
}
.rail-note {
  margin: 40px 8px 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.rail-note b {
  font-size: 16px;
  line-height: 1.9;
}
.rail-note p {
  font-size: 11px;
  margin-top: 12px;
}
.queue-art {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 35px;
  margin-bottom: 16px;
}
.queue-art i {
  width: 12px;
  height: 40%;
  background: #bbceae;
  border-radius: 3px;
}
.queue-art i:nth-child(2) {
  height: 75%;
}
.queue-art i:nth-child(3) {
  height: 100%;
  background: #63956c;
}
.queue-art i:nth-child(4) {
  height: 80%;
  background: #63956c;
}
.queue-art i:nth-child(5) {
  height: 52%;
}
.rail-bottom {
  margin-top: auto;
  font-size: 10px;
  color: var(--muted);
}
.rail-bottom small {
  display: block;
  font-size: 10px;
  margin: 5px 10px;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3a8b61;
  margin-right: 6px;
  vertical-align: middle;
}
.shell {
  margin-left: 178px;
}
.topbar {
  height: 62px;
  border-bottom: 1px solid var(--line);
  padding: 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fbfcfa;
  font-size: 12px;
}
.topbar b {
  font-weight: 500;
}
.topbar > div {
  display: flex;
  align-items: center;
  gap: 15px;
}
.slash {
  margin: 0 12px;
  color: #bac7bc;
}
.badge,
.tag {
  font-size: 11px;
  border: 1px solid #d7e3d8;
  background: #eef4ed;
  color: var(--green);
  padding: 4px 9px;
  border-radius: 5px;
  display: inline-block;
}
.amber {
  background: #faf4e8;
  border-color: #eaddbf;
  color: #77571c;
}
.tag.dark {
  background: var(--green);
  color: white;
}
.icon-button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  font-size: 18px;
}
.icon-button:hover {
  background: var(--pale);
}
main {
  max-width: 1660px;
  padding: 28px 30px 0;
  margin: auto;
}
.page {
  display: none;
}
.page.active {
  display: block;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.page-heading p {
  font-size: 13px;
  margin-bottom: 0;
}
.eyebrow {
  font-size: 9px !important;
  letter-spacing: 2px;
  font-weight: 600;
  color: #6b8174;
  margin-bottom: 8px !important;
}
.actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.button {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}
.button:hover {
  border-color: #9cb7a7;
  background: #f1f5ef;
}
.button.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.button.primary:hover {
  background: var(--green-deep);
}
.text-button {
  border: 0;
  background: none;
  color: var(--green);
  font-size: 12px;
  padding: 7px;
  white-space: nowrap;
}
.text-button:hover {
  background: var(--pale);
  border-radius: 5px;
}
.scenario-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #eaf0e7;
  border: 1px solid #d9e3d6;
  border-radius: 7px;
  font-size: 12px;
  margin-bottom: 18px;
}
.scenario-bar b {
  font-size: 12px;
}
.scenario-bar #scenario-detail {
  color: var(--muted);
  margin-left: 16px;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.kpi {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.kpi .label {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}
.kpi strong {
  font-size: 32px;
  line-height: 1.4;
  color: var(--green);
  font-weight: 650;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
.kpi .unit {
  font-size: 11px;
  margin-left: 5px;
  color: var(--muted);
}
.kpi small {
  display: block;
  font-size: 10px;
}
.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 264px;
  gap: 18px;
  align-items: start;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.panel-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}
.panel-heading h2 {
  margin: 0;
}
.panel-heading .eyebrow {
  margin-bottom: 3px !important;
}
.scene-panel {
  padding: 18px;
  min-width: 0;
}
.segmented {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: #eff3ed;
  border: 1px solid var(--line);
  border-radius: 7px;
  margin-left: auto;
}
.segmented button {
  border: 0;
  border-radius: 4px;
  padding: 4px 10px;
  background: none;
  font-size: 11px;
}
.segmented button.selected {
  background: white;
  color: var(--green);
  box-shadow: 0 1px 3px #193b2914;
}
.clock {
  font-variant-numeric: tabular-nums;
  font-size: 22px;
  letter-spacing: -0.5px;
  margin-left: 10px;
  color: var(--green);
}
.scene-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 12px 0 10px;
}
.legend {
  font-size: 11px;
  white-space: nowrap;
}
.legend i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin: 0 4px 0 8px;
}
.g1 {
  background: var(--blue);
}
.g2 {
  background: var(--orange);
}
.g3 {
  background: var(--gold);
}
.scene-toolbar .text-button {
  font-size: 10px;
  padding: 4px 6px;
}
.scene-3d {
  height: 470px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #edf1e8;
  border: 1px solid #dce5d7;
}
.canteen-webgl {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
}
.scene-label-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.scene-station-label {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: auto;
  min-width: 42px;
  background: #fffffff0;
  border: 1px solid #b5c7b6;
  border-radius: 6px;
  padding: 3px 5px 5px;
  line-height: 1.2;
  text-align: center;
  color: #315f49;
  white-space: nowrap;
  box-shadow: 0 2px 6px #163b1910;
}
.scene-station-label b {
  font-size: 12px;
  display: block;
}
.scene-station-label span,
.scene-station-label small {
  display: block;
  font-size: 8px;
  margin-top: 2px;
}
.scene-station-label em {
  font-style: normal;
}
.scene-station-label i {
  display: block;
  position: absolute;
  left: 3px;
  bottom: 1px;
  height: 2px;
  background: var(--green);
  width: calc(var(--progress, 0%) * 0.85);
}
.scene-station-label.is-closed {
  font-size: 8px;
  background: #edf1e8a8;
  color: #778c76;
  border: 0;
}
.scene-sign {
  position: absolute;
}
.scene-wayfinding,
.scene-pool-label {
  position: absolute;
  left: 0;
  top: 0;
  border: 1px solid #c8d8c2;
  padding: 2px 7px;
  border-radius: 6px;
  background: #f9fcf3eb;
  color: #43684b;
  font-size: 10px;
  white-space: nowrap;
}
.scene-wayfinding.exit,
.scene-pool-label {
  background: #fff8e9ed;
  border-color: #e3d4b4;
  color: #7c6436;
}
.scene-footnote {
  font-size: 10px;
  color: #647568;
  margin: 9px 0 10px;
  line-height: 1.7;
}
.playback {
  display: flex;
  align-items: center;
  gap: 13px;
}
.play-button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  border: 0;
  font-size: 12px;
  flex-shrink: 0;
}
.playback input {
  flex: 1;
  min-width: 0;
  accent-color: var(--green);
}
.playback select {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  padding: 5px;
  font-size: 11px;
}
.live-counts {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 7px;
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 12px;
  font-size: 10px;
  color: var(--muted);
}
.live-counts b {
  color: var(--green);
  font-size: 14px;
  margin-left: 3px;
  font-variant-numeric: tabular-nums;
}
.insights {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.grade-panel {
  padding: 17px;
}
.grade-row {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid #edf0e9;
  align-items: start;
}
.grade-row > i {
  width: 5px;
  height: 32px;
  border-radius: 2px;
  margin-top: 4px;
}
.grade-row b {
  font-size: 13px;
}
.grade-row small {
  display: block;
  font-size: 10px;
  margin-top: 2px;
}
.grade-row strong {
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}
.grade-panel > .text-button {
  font-size: 11px;
  padding: 12px 0 0;
}
.inspector {
  padding: 17px;
}
.inspector h2 {
  font-size: 15px;
}
.inspector p {
  font-size: 12px;
  line-height: 1.9;
  margin-bottom: 0;
}
.inspector dl {
  font-size: 11px;
  margin: 10px 0 0;
}
.inspector dl > div {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px solid #eef2eb;
}
.inspector dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.assumptions {
  padding: 14px 16px;
  background: #fdfbf5;
}
.assumptions summary {
  font-size: 12px;
  cursor: pointer;
  color: #725e33;
}
.assumptions p {
  font-size: 11px;
  margin: 10px 0 0;
}
.chart-panel {
  padding: 20px;
  margin-top: 18px;
}
.chart-panel svg {
  width: 100%;
  height: 170px;
  display: block;
  margin-top: 14px;
}
.chart-axis {
  fill: #5e7264;
  font-size: 11px;
}
.scene-2d {
  height: 470px;
  overflow: auto;
  padding: 24px;
  background: #f2f5ee;
  border-radius: 8px;
}
.queue-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.queue-window {
  border: 0;
  background: var(--green);
  color: white;
  padding: 10px;
  border-radius: 6px;
  font-size: 12px;
  min-width: 80px;
}
.queue-dots {
  letter-spacing: 3px;
  color: #739c82;
  overflow: hidden;
  max-width: 60%;
  white-space: nowrap;
}
.compare-setup {
  display: grid;
  grid-template-columns: 1fr 32px 1fr 230px;
  gap: 24px;
  padding: 24px;
  align-items: center;
}
.compare-setup h2 {
  margin: 12px 0 8px;
}
.compare-setup p {
  font-size: 12px;
}
.compare-setup .text-button {
  display: block;
  padding-left: 0;
  font-size: 11px;
}
.versus {
  font-size: 28px;
  color: #9bb2a0;
}
.experiment-control {
  border-left: 1px solid var(--line);
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.experiment-control label {
  font-size: 12px;
}
.experiment-control select {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}
.experiment-control small {
  font-size: 10px;
}
.empty-state {
  text-align: center;
  background: #ffffff80;
  border: 1px dashed #ceddce;
  border-radius: 12px;
  margin-top: 22px;
  padding: 70px 20px;
}
.empty-state > span {
  font-size: 40px;
  color: #7fa387;
}
.empty-state h2 {
  font-size: 19px;
  margin: 12px 0;
}
.empty-state p {
  font-size: 13px;
  line-height: 2;
}
.comparison-result {
  margin-top: 22px;
}
.result-heading {
  padding: 22px;
  border-bottom: 1px solid var(--line);
}
.result-heading h2 {
  font-size: 20px;
  margin-bottom: 7px;
}
.result-heading p {
  font-size: 12px;
  margin-bottom: 0;
}
.result-table {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-variant-numeric: tabular-nums;
}
th {
  background: #f5f7f1;
  color: #596b60;
  font-size: 11px;
  font-weight: 500;
}
td {
  font-size: 13px;
}
th,
td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
}
.good {
  color: #156447;
}
.bad {
  color: #9a5434;
}
.neutral {
  color: #6c7365;
}
.result-note {
  padding: 16px 22px;
  font-size: 12px;
  color: var(--muted);
}
.search-setup {
  padding: 24px;
  display: flex;
  gap: 25px;
  align-items: center;
  justify-content: space-between;
}
.search-setup p {
  font-size: 12px;
  margin-bottom: 0;
}
.search-setup .check {
  font-size: 12px;
  max-width: 230px;
}
.check input {
  accent-color: var(--green);
}
.check span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin: 6px 0 0 22px;
}
.notice {
  background: #f8f4e8;
  border: 1px solid #e5dcc4;
  border-radius: 7px;
  padding: 12px 15px;
  color: #735f33;
  font-size: 12px;
  margin: 16px 0;
}
.search-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}
.candidate-row {
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.candidate-row h3 {
  margin: 0 0 6px;
}
.candidate-row p {
  font-size: 12px;
  margin: 0;
}
.candidate-metrics {
  display: flex;
  gap: 20px;
}
.candidate-metrics strong {
  display: block;
  font-size: 20px;
  color: var(--green);
}
.candidate-metrics small {
  font-size: 10px;
}
.progress-wrap {
  padding: 30px;
  text-align: center;
}
.progress-wrap progress {
  width: min(500px, 100%);
  accent-color: var(--green);
  height: 10px;
}
.evidence-grid,
.learning-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.prose {
  padding: 26px;
}
.prose h2 {
  font-size: 21px;
  margin: 15px 0;
}
.prose p,
.prose li {
  font-size: 13px;
  line-height: 2;
}
.prose a {
  font-size: 12px;
}
.formula {
  background: #eef4eb;
  border-left: 3px solid #759d77;
  padding: 15px;
  font-size: 13px;
  color: #385b40;
  margin: 20px 0;
  line-height: 1.9;
}
.prose textarea {
  width: 100%;
  resize: vertical;
  padding: 12px;
  margin: 10px 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  line-height: 1.8;
}
.prose label {
  font-size: 12px;
  color: var(--muted);
}
.full {
  grid-column: 1/-1;
}
.prose li {
  margin: 8px 0;
}
footer {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 10px;
  color: #647368;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 20px 80px #173c292f;
  padding: 26px;
  max-height: 90vh;
  width: min(900px, 94vw);
  color: var(--ink);
}
dialog::backdrop {
  background: #14372b70;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dialog-heading h2 {
  font-size: 24px;
  margin: 0;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 22px;
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.field {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  gap: 6px;
}
.field input,
.field select {
  width: 100%;
  padding: 9px;
  border: 1px solid #c9d7c9;
  border-radius: 6px;
  background: white;
}
.field .caption {
  font-size: 10px;
}
.form-section {
  margin: 22px 0;
}
.form-section h3 {
  font-size: 15px;
  margin-bottom: 12px;
}
.grade-fields {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  margin: 12px 0;
}
.grade-fields h3 {
  margin: 0 0 12px;
}
.error {
  color: #a44326;
  font-size: 13px;
}
#message-dialog {
  width: min(500px, 90vw);
}
#message-dialog p {
  white-space: pre-line;
  font-size: 13px;
  line-height: 1.9;
}
@media (min-width: 1500px) {
  .scene-3d,
  .scene-2d {
    height: 520px;
  }
}
@media (max-width: 1200px) {
  .rail {
    width: 150px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .shell {
    margin-left: 150px;
  }
  main {
    padding: 22px 20px 0;
  }
  .topbar {
    padding: 0 20px;
  }
  .workspace-grid {
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 14px;
  }
  .page-heading {
    align-items: flex-start;
  }
  h1 {
    font-size: 25px;
  }
  .page-heading .actions {
    max-width: 240px;
    justify-content: flex-end;
  }
  .scene-3d,
  .scene-2d {
    height: 450px;
  }
  .scene-panel {
    padding: 14px;
  }
  .scene-toolbar .legend {
    font-size: 10px;
  }
  .scene-toolbar {
    gap: 6px;
  }
  .compare-setup {
    grid-template-columns: 1fr 24px 1fr;
    gap: 16px;
  }
  .experiment-control {
    grid-column: 1/-1;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 16px 0 0;
    flex-direction: row;
    align-items: center;
  }
  .search-setup {
    flex-wrap: wrap;
  }
  .clock {
    font-size: 18px;
  }
  .scenario-bar #scenario-detail {
    display: block;
    margin-left: 13px;
  }
}
@media (max-width: 950px) {
  .workspace-grid {
    grid-template-columns: 1fr;
  }
  .insights {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .assumptions {
    grid-column: 1/-1;
  }
  .scene-3d,
  .scene-2d {
    height: 470px;
  }
  .kpi {
    padding: 12px;
  }
  .kpi strong {
    font-size: 27px;
  }
  .kpi .label {
    font-size: 11px;
  }
  .rail-note {
    display: none;
  }
  .page-heading {
    flex-wrap: wrap;
  }
  .page-heading .actions {
    max-width: none;
    justify-content: flex-start;
  }
  .evidence-grid,
  .learning-grid {
    grid-template-columns: 1fr;
  }
  .candidate-row {
    flex-wrap: wrap;
  }
  .candidate-metrics {
    flex: 1;
    justify-content: space-between;
  }
  .field-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 650px) {
  .rail {
    position: static;
    width: auto;
    padding: 13px 15px;
    display: block;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    font-size: 20px;
  }
  .brand-mark {
    width: 30px;
    height: 33px;
    font-size: 19px;
  }
  .brand small {
    font-size: 8px;
  }
  .rail-label,
  .rail-bottom {
    display: none;
  }
  .rail nav {
    display: flex;
    margin-top: 14px;
    gap: 3px;
    overflow: auto;
  }
  .nav {
    width: auto;
    white-space: nowrap;
    margin: 0;
    padding: 8px 10px;
    font-size: 11px;
    gap: 0;
  }
  .nav span {
    display: none;
  }
  .shell {
    margin-left: 0;
  }
  .topbar {
    height: 48px;
    padding: 0 15px;
    font-size: 10px;
  }
  .topbar .badge {
    font-size: 9px;
  }
  .topbar .icon-button {
    display: none;
  }
  main {
    padding: 20px 14px 0;
  }
  .page-heading {
    gap: 16px;
    margin-bottom: 16px;
  }
  h1 {
    font-size: 25px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .kpi-grid {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }
  .scenario-bar {
    padding: 9px 11px;
    font-size: 10px;
  }
  .scenario-bar b {
    font-size: 11px;
  }
  .scenario-bar #scenario-detail {
    font-size: 10px;
  }
  .scene-panel {
    padding: 12px;
  }
  .scene-3d,
  .scene-2d {
    height: 400px;
  }
  .scene-toolbar {
    flex-wrap: wrap;
  }
  .scene-toolbar .text-button {
    font-size: 10px;
  }
  .scene-panel .panel-heading h2 {
    font-size: 15px;
  }
  .clock {
    font-size: 17px;
    margin-left: 2px;
  }
  .segmented button {
    padding: 4px 7px;
  }
  .insights {
    grid-template-columns: 1fr;
  }
  .assumptions {
    grid-column: auto;
  }
  .chart-panel {
    padding: 14px;
  }
  .chart-panel .caption {
    font-size: 10px;
  }
  .scene-station-label {
    min-width: 29px;
    padding: 3px;
  }
  .scene-station-label b {
    font-size: 9px;
  }
  .scene-station-label small,
  .scene-station-label span {
    font-size: 7px;
  }
  .scene-zone-banner {
    max-width: 80% !important;
  }
  .scene-wayfinding,
  .scene-pool-label {
    display: none;
  }
  .scene-sign {
    font-size: 8px !important;
  }
  .scene-grade-banner span {
    font-size: 8px !important;
  }
  .compare-setup {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
  }
  .versus {
    display: none;
  }
  .experiment-control {
    flex-wrap: wrap;
  }
  .experiment-control select {
    flex: 1;
  }
  .search-setup {
    padding: 20px;
  }
  .evidence-grid,
  .learning-grid {
    gap: 14px;
  }
  .prose {
    padding: 20px;
  }
  .prose h2 {
    font-size: 20px;
  }
  .candidate-metrics {
    gap: 12px;
  }
  .candidate-metrics strong {
    font-size: 18px;
  }
  .candidate-row {
    padding: 16px;
  }
  th,
  td {
    padding: 10px 13px;
    white-space: nowrap;
  }
  .field-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  dialog {
    padding: 18px;
  }
  .dialog-heading h2 {
    font-size: 21px;
  }
  .grade-fields {
    padding: 12px;
  }
  .field {
    font-size: 11px;
  }
  footer {
    flex-direction: column;
    gap: 5px;
  }
  .scene-pool-label,
  .scene-wayfinding {
    font-size: 8px;
  }
  .empty-state {
    padding: 40px 18px;
  }
  .live-counts {
    justify-content: flex-start;
    column-gap: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
