/* Simplified workspace: navigation, primary controls and progressive disclosure. */
:root {
  --radius: 10px;
  --shadow: none;
}
body {
  font-size: 14px;
}
.tag {
  font-size: 13px;
}
.more-candidates {
  margin: 20px 0;
}
.more-candidates > summary {
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.result-table:focus-visible {
  outline: 3px solid #2f8c68;
  outline-offset: -3px;
}
.queue-window,
.queue-count,
.queue-pool {
  font-size: 13px;
}
.queue-count {
  white-space: nowrap;
  margin-left: auto;
}
.queue-dots {
  flex: 1;
  min-width: 0;
}
.minimal-scene .scene-sign,
.minimal-scene .scene-grade-banner,
.minimal-scene .scene-pool-label,
.minimal-scene .scene-wayfinding,
.minimal-scene .is-closed,
.minimal-scene .scene-station-label small,
.minimal-scene .scene-station-label i {
  display: none !important;
}
.minimal-scene .scene-zone-banner {
  top: 12px !important;
}
.minimal-scene .scene-zone-banner > span {
  font-size: 12px !important;
}
.minimal-scene .scene-station-label b,
.minimal-scene .scene-station-label span {
  font-size: 12px !important;
}
.scene-toolbar button[aria-pressed='true'] {
  background: var(--pale);
  border-radius: 5px;
}

.field {
  font-size: 14px;
}
.field input,
.field select {
  min-height: 42px;
  font-size: 14px;
}
.field .caption,
.form-help {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}
.parameter-group {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.parameter-group > summary {
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.parameter-group[open] > summary {
  margin-bottom: 18px;
}
.parameter-group .check {
  align-self: center;
  font-size: 14px;
}
.grade-fields {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 12px 0 18px;
}
.grade-fields:last-child {
  border-bottom: 0;
}
.dialog-actions {
  position: sticky;
  bottom: -26px;
  background: white;
  padding: 16px 0;
  z-index: 2;
}
.grade-panel > .text-button,
.inspector p,
.inspector dl,
.assumptions p {
  font-size: 13px;
}
.page-heading p {
  font-size: 14px;
}
.compare-setup p,
.compare-setup .text-button,
.experiment-control label,
.search-setup p,
.search-setup .check,
.result-heading p,
.result-note,
.prose p,
.prose li,
.prose label,
.prose a,
.formula,
.prose textarea {
  font-size: 14px;
}
.compare-setup h2 {
  font-size: 18px;
}
.compare-setup .button {
  margin-top: 10px;
}
.inline-option {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}
.inline-option summary,
.search-method summary,
.prose summary {
  cursor: pointer;
}
.search-method {
  padding: 18px 2px 0;
  color: var(--muted);
  font-size: 14px;
}
.search-method p {
  line-height: 1.8;
  max-width: 850px;
}
.empty-state {
  padding: 48px 24px;
  border-style: solid;
  background: transparent;
}
.empty-state h2 {
  font-size: 17px;
  font-weight: 500;
  color: var(--muted);
}
.empty-state p {
  font-size: 14px;
}
.result-heading h2 {
  font-size: 22px;
  line-height: 1.5;
}
.result-heading .result-meta {
  font-size: 13px;
  color: var(--muted);
}
.result-note h3 {
  font-size: 16px;
}
.result-note summary {
  cursor: pointer;
}
th,
td {
  font-size: 14px;
}
.candidate-metrics span {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.candidate-metrics strong {
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}
.candidate-row h3 {
  font-size: 16px;
}
.candidate-row p {
  font-size: 13px;
}
.prose h2 {
  font-size: 19px;
  margin-top: 0;
}
.prose .tag + h2 {
  margin-top: 16px;
}
.prose p,
.prose li {
  line-height: 1.85;
}
.prose details {
  font-size: 14px;
  margin: 18px 0;
}
.prose .note-storage {
  font-size: 13px;
  margin-bottom: 0;
  color: var(--muted);
}
.quick-start ol {
  padding-left: 22px;
}
.quick-start li {
  padding-left: 6px;
  margin: 18px 0;
}
.quick-start li p {
  margin: 4px 0 0;
}
.prose > summary {
  font-size: 15px;
  font-weight: 600;
}
@media (min-width: 651px) {
  #parameter-fields > section:first-child .grade-fields {
    display: grid;
    grid-template-columns: 52px 1fr;
    align-items: center;
    gap: 14px;
  }
  #parameter-fields > section:first-child .grade-fields > h3 {
    margin: 20px 0 0;
  }
}
@media (max-width: 650px) {
  .learning-grid > .prose:nth-child(2),
  .learning-grid > .prose:first-child {
    grid-column: auto;
    grid-row: auto;
  }
  .candidate-metrics {
    gap: 16px;
    flex-wrap: wrap;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    order: 2;
  }
  .candidate-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
  }
  .candidate-row > div:first-child {
    width: 100%;
  }
  .candidate-row > button {
    order: 3;
  }
  .candidate-metrics span {
    font-size: 12px;
  }
  .result-table::after {
    content: '左右滑动查看完整表格';
    display: block;
    position: sticky;
    left: 0;
    padding: 10px 12px;
    font-size: 13px;
    color: var(--muted);
  }
  .candidate-metrics strong {
    font-size: 22px;
  }
  .result-heading h2 {
    font-size: 20px;
  }
  th,
  td {
    padding: 12px;
  }
}
.rail {
  padding: 32px 16px 24px;
}
.rail > nav {
  margin-top: 40px;
}
.rail > .secondary-nav {
  margin-top: auto;
  padding-top: 32px;
}
.nav {
  font-size: 14px;
  padding: 12px 16px;
  margin-bottom: 8px;
}
.topbar {
  height: 56px;
  font-size: 13px;
}
.data-note {
  border: 0;
  background: transparent;
  color: var(--amber);
  padding: 8px 0;
  font-size: 13px;
}
main {
  padding-top: 24px;
}
h1 {
  font-size: 28px;
  margin-bottom: 0;
  letter-spacing: 0;
}
h2 {
  font-size: 17px;
}
.page-heading {
  margin-bottom: 16px;
}
.button,
.text-button {
  font-size: 14px;
}
.button {
  min-height: 40px;
}
.scenario-bar {
  background: transparent;
  border: 0;
  padding: 0 0 16px;
  margin-bottom: 0;
}
.scenario-bar b,
.scenario-bar #scenario-detail {
  font-size: 13px;
  font-weight: 400;
}
.scenario-bar #scenario-detail {
  margin-left: 16px;
}
.kpi-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.kpi {
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 16px 24px;
  box-shadow: none;
}
.kpi + .kpi {
  border-left: 1px solid var(--line);
}
.kpi .label {
  font-size: 14px;
  margin-bottom: 4px;
}
.kpi strong {
  font-size: 30px;
}
.kpi .unit {
  font-size: 14px;
}
.workspace-grid {
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 20px;
}
.scene-panel {
  padding: 20px;
}
.scene-3d,
.scene-2d {
  height: 420px;
}
.scene-toolbar {
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.scene-toolbar .legend {
  font-size: 13px;
}
.scene-toolbar .text-button {
  font-size: 13px;
  padding: 6px 8px;
}
.scene-toolbar button[aria-pressed='true'] {
  background: var(--pale);
  border-radius: 6px;
}
.clock {
  font-size: 21px;
  font-variant-numeric: tabular-nums;
}
.segmented button {
  min-width: 40px;
  font-size: 13px;
}
.playback {
  margin-top: 0;
  margin-bottom: 14px;
}
.playback select {
  font-size: 13px;
  min-height: 36px;
}
.play-button {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.live-counts {
  padding-top: 16px;
  margin-top: 16px;
  gap: 8px;
}
.live-counts span,
.live-counts b {
  font-size: 13px;
}
.insights {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.grade-panel {
  padding: 20px;
}
.grade-row {
  padding: 16px 0;
}
.grade-row b,
.grade-row strong {
  font-size: 14px;
}
.grade-row span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}
.grade-panel > .text-button {
  padding-left: 0;
  margin-top: 8px;
}
.insights details.panel {
  padding: 16px 20px;
}
summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}
details > p,
details > div > p {
  font-size: 14px;
  margin-top: 12px;
  line-height: 1.7;
}
.inspector[open] > summary,
.metric-explanation[open] > summary {
  margin-bottom: 16px;
}
.inspector dl,
.metric-explanation dl {
  margin: 12px 0;
}
.inspector dl > div,
.metric-explanation dl > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
}
.inspector dt,
.metric-explanation dt {
  color: var(--muted);
}
.inspector dd,
.metric-explanation dd {
  margin: 0;
}
.scene-explanation,
.chart-explanation {
  margin-top: 16px;
  color: var(--muted);
}
.scene-explanation summary,
.chart-explanation summary {
  font-size: 13px;
}
.scene-explanation p,
.chart-explanation p {
  margin-bottom: 0;
}
.chart-panel {
  margin-top: 20px;
  padding: 20px;
}
.chart-axis {
  font-size: 13px;
}
.file-menu {
  position: relative;
}
.file-menu > summary {
  list-style: none;
  gap: 8px;
}
.file-menu > summary::-webkit-details-marker {
  display: none;
}
.file-menu > summary::after {
  content: '⌄';
  font-size: 14px;
}
.menu-content {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 8px 24px #203b3514;
  z-index: 30;
}
.menu-content .text-button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  text-align: left;
}
.minimal-scene:not(.show-labels) .scene-sign,
.minimal-scene:not(.show-labels) .scene-zone-banner,
.minimal-scene:not(.show-labels) .scene-grade-banner,
.minimal-scene:not(.show-labels) .scene-pool-label,
.minimal-scene:not(.show-labels) .scene-wayfinding,
.minimal-scene:not(.show-labels) .is-closed,
.minimal-scene:not(.show-labels) .scene-station-label small,
.minimal-scene:not(.show-labels) .scene-station-label i {
  display: none !important;
}
.minimal-scene:not(.show-labels) .scene-station-label {
  min-width: 60px;
  padding: 5px 8px;
  line-height: 1.3;
}
.minimal-scene:not(.show-labels) .scene-station-label b,
.minimal-scene:not(.show-labels) .scene-station-label span {
  font-size: 12px;
}
.minimal-scene:not(.show-labels) .many-stations .scene-station-label {
  min-width: 48px;
  padding: 4px;
}
footer {
  font-size: 13px;
  border: 0;
  padding: 16px 0 24px;
  margin-top: 0;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .workspace-grid {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 16px;
  }
  .scene-panel {
    padding: 16px;
  }
  .scene-toolbar .text-button {
    font-size: 12px;
  }
  .scenario-bar #scenario-detail {
    display: inline;
    margin-left: 12px;
  }
}
@media (max-width: 950px) {
  .workspace-grid {
    grid-template-columns: 1fr;
  }
  .insights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .grade-panel {
    grid-row: span 3;
  }
  .assumptions {
    grid-column: auto;
  }
  .kpi {
    padding: 16px;
  }
}
@media (max-width: 650px) {
  .rail {
    padding: 16px;
  }
  .rail .brand {
    font-size: 21px;
  }
  .rail > nav {
    margin-top: 16px;
    flex-wrap: wrap;
    gap: 4px;
    overflow: visible;
  }
  .rail > .secondary-nav {
    margin-top: 8px;
    padding: 0;
  }
  .rail .nav {
    padding: 8px 12px;
    font-size: 14px;
  }
  .rail .secondary-nav .nav {
    color: var(--muted);
    padding: 4px 12px;
    font-size: 13px;
  }
  .topbar {
    height: 44px;
    padding: 0 16px;
  }
  .topbar > span {
    font-size: 12px;
  }
  .data-note {
    font-size: 12px;
  }
  main {
    padding: 20px 16px 0;
  }
  h1 {
    font-size: 24px;
  }
  .page-heading {
    gap: 12px;
  }
  .page-heading .actions {
    gap: 8px;
  }
  .button {
    font-size: 13px;
    padding: 8px 12px;
  }
  .scenario-bar {
    align-items: flex-start;
    gap: 8px;
  }
  .scenario-bar #scenario-detail {
    display: block;
    margin-left: 0;
  }
  .scenario-bar > .text-button {
    font-size: 13px;
    padding: 0;
  }
  .kpi {
    padding: 12px 8px;
  }
  .kpi .label {
    font-size: 12px;
  }
  .kpi strong {
    font-size: 24px;
  }
  .kpi .unit {
    font-size: 12px;
  }
  .scene-panel {
    padding: 12px;
  }
  .scene-3d,
  .scene-2d {
    height: 360px;
  }
  .scene-toolbar > div {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
  }
  .scene-toolbar .text-button {
    padding: 6px;
  }
  .scene-toolbar .legend {
    font-size: 12px;
  }
  .clock {
    font-size: 17px;
  }
  .live-counts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .insights {
    grid-template-columns: 1fr;
  }
  .grade-panel {
    grid-row: auto;
  }
  .chart-panel {
    padding: 16px;
  }
  .chart-panel .panel-heading {
    gap: 8px;
    flex-wrap: wrap;
  }
  .minimal-scene:not(.show-labels) .scene-station-label {
    min-width: 48px;
    padding: 4px;
  }
}
@media (min-width: 951px) {
  .scene-3d,
  .scene-2d {
    height: clamp(240px, calc(100dvh - 500px), 420px);
  }
}
@media (min-width: 951px) and (max-height: 750px) {
  main {
    padding-top: 16px;
  }
  .page-heading {
    margin-bottom: 12px;
  }
  .scenario-bar {
    margin-bottom: 12px;
  }
  .kpi {
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .kpi strong {
    font-size: 26px;
  }
  .scene-toolbar {
    margin-top: 8px;
    margin-bottom: 8px;
  }
}
.scenario-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}
.scenario-links .text-button {
  padding: 0;
  font-size: 13px;
}
.scenario-links #guided-compare {
  font-weight: 700;
}
.experiment-steps {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 0 0 16px;
  padding: 0;
  color: var(--muted);
  font-size: 14px;
}
.experiment-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.experiment-steps li span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid #c9d5ce;
  border-radius: 50%;
  font-size: 12px;
}
.experiment-steps [aria-current='step'] {
  color: var(--green);
  font-weight: 700;
}
.experiment-steps [aria-current='step'] span,
.experiment-steps .complete span {
  background: #e7f0e9;
  border-color: #9fbeb0;
  color: #155f4f;
}
.example-actions {
  display: grid;
  justify-items: start;
  gap: 8px;
  margin-top: 10px;
}
.example-actions .text-button {
  text-align: left;
}
.decision-insight {
  background: #f1f7f1;
  border-left: 3px solid #338065;
  padding: 16px 20px;
  margin: 20px 0;
}
.decision-insight.caution {
  background: #fcf7ec;
  border-color: #b68a34;
}
.decision-insight h3 {
  font-size: 17px;
  margin: 0 0 8px;
}
.decision-insight p {
  font-size: 14px;
  line-height: 1.7;
  margin: 6px 0;
}
.scenario-check {
  margin-top: 24px;
  padding: 22px;
}
.scenario-check > summary {
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
}
.scenario-check p {
  font-size: 14px;
  line-height: 1.75;
  max-width: 880px;
}
.scenario-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin: 20px 0;
}
.scenario-controls label {
  display: grid;
  gap: 7px;
  font-size: 13px;
}
.scenario-controls select {
  min-width: 110px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #d3ded6;
  border-radius: 6px;
  background: #fff;
  color: #173f3b;
  font: inherit;
}
.scenario-method {
  color: var(--muted);
  font-size: 13px;
  margin: 14px 0;
}
.scenario-result {
  margin-top: 24px;
  border-top: 1px solid #d9e2d9;
  padding-top: 20px;
}
.scenario-result h3 {
  font-size: 20px;
  margin-bottom: 10px;
}
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.scenario-cell {
  background: #f2f7f1;
  border: 1px solid #d9e4d7;
  border-radius: 8px;
  padding: 16px;
  display: grid;
  gap: 7px;
  font-size: 13px;
}
.scenario-cell.caution {
  background: #fbf7ee;
  border-color: #e7dfcd;
}
.scenario-cell strong {
  color: #155f4f;
  font-size: 25px;
  line-height: 1.25;
}
.scenario-cell small {
  font-size: 12px;
  font-weight: 400;
  margin-left: 3px;
}
.scenario-result > details {
  margin-top: 18px;
  font-size: 14px;
}
@media (max-width: 480px) {
  .scenario-check {
    padding: 16px;
  }
  .scenario-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
  .scenario-controls select {
    min-width: 0;
    width: 100%;
  }
  .scenario-grid {
    gap: 7px;
  }
  .scenario-cell {
    padding: 10px 7px;
    font-size: 12px;
    gap: 7px;
  }
  .scenario-cell strong {
    font-size: 20px;
  }
  .scenario-cell small {
    margin-left: 1px;
  }
}
@media (max-width: 480px) {
  .scenario-links {
    gap: 10px;
  }
  .experiment-steps {
    gap: 8px 14px;
    font-size: 13px;
  }
  .experiment-steps li {
    gap: 5px;
  }
  .decision-insight {
    padding: 14px;
  }
}

/* The two end doors are essential wayfinding even in the simplified scene. */
.minimal-scene.two-sided-hall:not(.show-labels) .scene-wayfinding {
  display: block !important;
  font-size: 11px;
  padding: 3px 7px;
}
