:root {
  color-scheme:light;
  --radius:10px;
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
  font-size:14px;
  font-variant-numeric:tabular-nums;
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
  background:var(--page);
  color:var(--ink);
  line-height:1.5;
}

button,input,select {
  font:inherit;
  color:inherit;
}

button,select,input {
  border:1px solid var(--line);
  border-radius:6px;
  padding:9px 12px;
  background:var(--surface);
  min-height:37px;
}

button {
  cursor:pointer;
  font-weight:550;
  white-space:nowrap;
  transition:background .18s,transform .18s,border-color .18s;
}

button:hover {
  background:var(--agent-soft);
  border-color:var(--agent);
}

button:active {
  transform:translateY(1px);
}

button:disabled,select:disabled,input:disabled {
  opacity:.5;
  cursor:not-allowed;
}

button.primary {
  background:var(--agent);
  color:var(--on-solid);
  border-color:var(--agent);
}

button.primary:hover {
  background:var(--teal-solid);
}

button.quiet {
  background:transparent;
}

button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible {
  outline:3px solid var(--teal-mid);
  outline-offset:4px;
}

a {
  color:var(--agent);
  text-decoration:none;
}

a:hover {
  text-decoration:underline;
}

svg {
  display:block;
  width:100%;
}

[hidden] {
  display:none!important;
}

.skip-link {
  position:absolute;
  top:-60px;
  left:16px;
  background:var(--surface);
  padding:12px;
  z-index:5;
}

.skip-link:focus {
  top:10px;
}









main {
  max-width:1448px;
  margin:auto;
  padding:30px 28px 0;
}

.intro {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:25px;
  margin-bottom:25px;
}

.eyebrow {
  font-size:11px;
  letter-spacing:.08em;
  color:var(--muted);
  margin:0 0 8px;
}

h1 {
  font-size:clamp(27px,3vw,39px);
  font-weight:640;
  letter-spacing:-1px;
  line-height:1.2;
  margin:0;
  text-wrap:balance;
}

.intro-note {
  font-size:13px;
  color:var(--muted);
  margin:12px 0 0;
}

.round-clock {
  text-align:right;
  display:flex;
  flex-direction:column;
  flex-shrink:0;
}

.round-clock>span:first-child {
  font-size:11px;
  color:var(--muted);
  letter-spacing:.02em;
}

.round-clock strong {
  font-size:25px;
  letter-spacing:-.7px;
  font-weight:550;
  margin:3px 0;
}

.round-clock>span:last-child {
  font-size:11px;
  color:var(--world);
}

.run-bar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:13px 17px;
  background:var(--line);
  border:1px solid var(--line);
  border-radius:8px;
  margin-bottom:18px;
}

.run-state {
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}

.run-state strong {
  font-size:12px;
  font-weight:600;
  white-space:nowrap;
}

.run-state>span:last-child {
  font-size:10px;
  color:var(--muted);
  margin-left:6px;
}

.status-dot {
  width:7px;
  height:7px;
  border:1px solid var(--agent);
  border-radius:50%;
  flex-shrink:0;
}

.status-dot.running {
  background:var(--agent);
  box-shadow:0 0 0 4px color-mix(in srgb,var(--teal-mid) 7%,transparent);
}

.run-controls {
  display:flex;
  gap:7px;
  align-items:center;
}

.run-controls button,.run-controls select {
  font-size:11px;
  padding:7px 11px;
  min-height:34px;
}

.run-controls select {
  color:var(--muted);
  background:transparent;
  max-width:105px;
}

.arena {
  display:grid;
  grid-template-columns:minmax(0,1fr) 120px minmax(0,1fr);
  align-items:stretch;
}

.system {
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--surface);
  overflow:hidden;
  min-width:0;
}

.world-system {
  border-top:3px solid var(--world);
}

.agent-system {
  border-top:3px solid var(--agent);
}

.system-heading {
  display:flex;
  align-items:center;
  gap:12px;
  padding:20px 22px 0;
}

.system-number {
  font-family:"SFMono-Regular",Consolas,monospace;
  font-size:23px;
  font-weight:400;
  letter-spacing:-1px;
  color:var(--world);
  background:var(--world-soft);
  width:45px;
  height:45px;
  display:grid;
  place-items:center;
  border-radius:7px;
}

.agent-system .system-number {
  color:var(--agent);
  background:var(--agent-soft);
}

.system-heading p {
  margin:0 0 1px;
  font-size:9px;
  color:var(--muted);
  letter-spacing:.12em;
}

.system-heading h2 {
  font-size:21px;
  font-weight:620;
  letter-spacing:-.5px;
  margin:0;
}

.system-tag {
  font-size:9px;
  color:var(--muted);
  border-left:1px solid var(--line);
  padding-left:10px;
  margin-left:auto;
  white-space:nowrap;
}

.system-description {
  font-size:11px;
  color:var(--muted);
  margin:12px 22px 0;
  line-height:1.7;
}

.world-caption {
  display:flex;
  justify-content:space-between;
  gap:10px;
  color:var(--muted);
  font-size:9px;
  padding:17px 22px 0;
}

.world-caption>span:last-child {
  color:var(--world);
}

.world-scene-wrap {
  min-height:190px;
}

.world-scene {
  max-height:215px;
}

.wire {
  fill:none;
  stroke:var(--line-strong);
  stroke-width:3;
  stroke-linecap:round;
}

.device {
  fill:none;
  stroke:var(--muted);
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.solar-panel {
  fill:var(--line);
}

.bus-node {
  fill:var(--world);
  stroke:var(--orange-line);
  stroke-width:5;
}

.scene-label {
  font-size:11px;
  fill:var(--muted);
}

.scene-value {
  font-size:19px;
  font-weight:550;
  fill:var(--ink);
}

.scene-unit {
  font-size:9px;
  font-weight:400;
  fill:var(--muted);
}

.battery-case {
  fill:var(--surface-2);
  stroke:var(--muted);
  stroke-width:1.5;
}

.battery-level {
  fill:var(--green-soft);
}

.energy-text {
  fill:var(--ink);
  font-size:17px;
  font-weight:550;
}

.power-path {
  fill:none;
  stroke:transparent;
  stroke-width:3;
}

.power-path.flowing {
  stroke:var(--agent);
  stroke-dasharray:7 6;
  animation:flow 1.4s linear infinite;
}

.power-path.flowing.charge {
  animation-direction:reverse;
}

.flow-label {
  font-size:10px;
  fill:var(--agent);
}

@keyframes flow {
  to {
    stroke-dashoffset:26;
  }
}

.price-chart-wrap {
  padding:14px 22px 3px;
  border-top:1px solid var(--line);
  background:var(--surface-2);
}

.chart-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:10px;
  color:var(--muted);
}

.chart-heading strong {
  color:var(--world);
  font-size:16px;
  font-weight:550;
}

.chart-heading small {
  font-size:9px;
  font-weight:400;
}

.price-chart {
  margin-top:5px;
  max-height:164px;
}

.chart-grid {
  fill:none;
  stroke:var(--line);
  stroke-width:1;
}

.axis-text {
  fill:var(--muted);
  font-size:9px;
  font-variant-numeric:tabular-nums;
}

.price-line {
  fill:none;
  stroke:var(--world);
  stroke-width:2;
}

.price-fill {
  fill:color-mix(in srgb,var(--orange-solid) 7%,transparent);
}

.price-cursor {
  fill:none;
  stroke:var(--ink);
  stroke-width:1;
  stroke-dasharray:3 3;
}

.price-now {
  fill:var(--world);
  stroke:white;
  stroke-width:1.5;
}

.world-footer {
  display:flex;
  gap:10px;
  justify-content:space-between;
  padding:8px 22px 14px;
  font-size:9px;
  color:var(--muted);
  background:var(--surface-2);
}

.exchange {
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  padding:28px 8px;
  text-align:center;
}

.exchange-line {
  width:100%;
  color:var(--world);
}

.exchange-line.return {
  color:var(--agent);
}

.exchange-label {
  font-size:10px;
  font-weight:600;
  display:block;
}

.exchange-line .arrow-right,.exchange-line .arrow-left {
  font-size:38px;
  line-height:1.2;
  display:block;
  font-family:Georgia,serif;
  font-weight:400;
}

.exchange-line small {
  font-size:8px;
  color:var(--muted);
  display:block;
  line-height:1.6;
}

.versus {
  font-size:12px;
  font-weight:600;
  font-family:Georgia,serif;
  font-style:italic;
  border:1px solid var(--line);
  border-radius:50%;
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  margin:17px 0;
  color:var(--muted);
  background:var(--line);
}

.exchange-feedback {
  display:flex;
  gap:6px;
  align-items:center;
  margin-top:26px;
  color:var(--muted);
}

.exchange-feedback>span {
  font-size:27px;
  font-weight:400;
  line-height:1;
}

.exchange-feedback small {
  font-size:8px;
  line-height:1.6;
  text-align:left;
}

.agent-decision {
  margin:19px 22px 0;
  padding:17px 18px;
  background:var(--agent-soft);
  border-left:3px solid var(--agent);
  border-radius:0 7px 7px 0;
}

.decision-caption {
  display:flex;
  justify-content:space-between;
  gap:8px;
  font-size:9px;
  color:var(--agent);
  margin-bottom:8px;
}

.decision-caption>span:last-child {
  font-size:8px;
  color:var(--muted);
}

#decision-power {
  display:block;
  font-size:27px;
  line-height:1.3;
  font-weight:580;
  letter-spacing:-.6px;
  color:var(--teal-fg);
}

#decision-reason {
  font-size:11px;
  line-height:1.75;
  color:var(--green-fg);
  margin:9px 0 14px;
  min-height:38px;
  overflow-wrap:anywhere;
}

.prediction-row {
  border-top:1px solid var(--green-line);
  padding-top:11px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.prediction-row>div>span {
  font-size:9px;
  color:var(--muted);
  display:block;
}

.prediction-row strong {
  font-size:20px;
  font-weight:550;
  letter-spacing:-.3px;
  display:block;
  margin-top:3px;
}

.prediction-row small {
  font-size:9px;
  font-weight:400;
  color:var(--muted);
  letter-spacing:0;
}

.candidate-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin:17px 22px 0;
}

.candidate-heading h3 {
  font-size:11px;
  font-weight:600;
  margin:0;
}

.candidate-heading span {
  font-size:8px;
  color:var(--muted);
}

.candidate-list {
  list-style:none;
  padding:0;
  margin:7px 22px 0;
}

.candidate-list li {
  display:flex;
  align-items:flex-start;
  gap:9px;
  padding:9px 0;
  border-bottom:1px solid var(--line);
}

.candidate-list li:last-child {
  border-bottom:0;
}

.candidate-mark {
  font-size:13px;
  color:var(--muted);
  width:12px;
  flex-shrink:0;
}

.candidate-list li.selected .candidate-mark {
  color:var(--agent);
}

.candidate-list li>div:nth-child(2) {
  min-width:0;
  flex:1;
}

.candidate-list strong {
  font-size:10px;
  font-weight:550;
  display:block;
}

.candidate-list li>div:nth-child(2)>span {
  font-size:9px;
  color:var(--muted);
  display:block;
  margin-top:3px;
  line-height:1.5;
}

.candidate-cost {
  text-align:right;
  flex-shrink:0;
  max-width:105px;
}

.candidate-cost>strong {
  font-size:11px;
  font-variant-numeric:tabular-nums;
}

.candidate-cost>small {
  font-size:8px;
  color:var(--muted);
}

.agent-boundary {
  font-size:9px;
  color:var(--muted);
  margin:10px 22px 15px;
}

.candidates .empty-state {
  margin:0;
  padding:14px 22px 15px;
  font-size:10px;
}

.protocol {
  margin:16px 0 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:13px 18px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--surface-3);
}

.protocol ol {
  display:flex;
  align-items:center;
  gap:25px;
  list-style:none;
  margin:0;
  padding:0;
  flex-shrink:0;
}

.protocol li {
  display:flex;
  gap:7px;
  align-items:center;
  font-size:10px;
  color:var(--muted);
}

.protocol li b {
  font-size:9px;
  border:1px solid var(--line-strong);
  display:grid;
  place-items:center;
  width:19px;
  height:19px;
  border-radius:50%;
  font-weight:500;
}

.protocol li.active {
  color:var(--agent);
  font-weight:600;
}

.protocol li.active b {
  background:var(--agent);
  border-color:var(--agent);
  color:white;
}

.protocol p {
  font-size:10px;
  color:var(--muted);
  margin:0;
  line-height:1.6;
  max-width:400px;
}

.settlement {
  margin-top:12px;
  padding:15px 20px;
  background:var(--surface-2);
  border:1px solid var(--line);
  border-radius:8px;
  min-height:88px;
}

.settlement-empty {
  display:flex;
  gap:13px;
  align-items:center;
}

.settlement-symbol {
  font-size:27px;
  color:var(--world);
}

.settlement-empty p {
  font-size:11px;
  color:var(--muted);
  margin:0;
}

.settlement-empty strong {
  display:block;
  font-size:12px;
  color:var(--ink);
  margin-bottom:3px;
  font-weight:550;
}

.settlement-heading {
  display:flex;
  align-items:center;
  gap:12px;
  font-size:9px;
  color:var(--world);
  margin-bottom:9px;
}

.settlement-heading strong {
  font-weight:400;
  color:var(--muted);
}

.settlement-values {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
}

.settlement-values>div>span {
  font-size:9px;
  display:block;
  color:var(--muted);
}

.settlement-values strong {
  display:block;
  font-size:18px;
  font-weight:550;
  margin-top:3px;
}

.settlement-values small {
  font-size:10px;
  color:var(--muted);
  font-weight:400;
}

.feedback-text {
  font-size:10px;
  color:var(--muted);
  line-height:1.6;
  margin:9px 0 0;
}

.comparison {
  margin-top:28px;
}

.section-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin-bottom:15px;
}

.section-heading h2 {
  font-size:19px;
  letter-spacing:-.4px;
  font-weight:580;
  margin:0;
}

.section-heading .eyebrow {
  font-size:9px;
  margin-bottom:5px;
}

.section-heading>p {
  font-size:10px;
  color:var(--muted);
  margin:0;
  max-width:330px;
  text-align:right;
}

.section-heading>span {
  font-size:9px;
  color:var(--muted);
}

.score-table {
  border-collapse:collapse;
  width:100%;
  font-size:12px;
  text-align:right;
  background:var(--surface-2);
  border:1px solid var(--line);
  font-variant-numeric:tabular-nums;
}

.score-table thead {
  background:var(--line);
  color:var(--muted);
}

.score-table th,.score-table td {
  padding:12px 17px;
  border-bottom:1px solid var(--line);
}

.score-table thead th {
  font-size:9px;
  font-weight:450;
  white-space:nowrap;
}

.score-table th:first-child {
  text-align:left;
}

.score-table tbody th {
  font-size:12px;
  font-weight:550;
  white-space:nowrap;
}

.score-table small {
  display:block;
  font-size:8px;
  font-weight:400;
  color:var(--muted);
  margin-top:3px;
}

.score-table td:last-child {
  font-size:11px;
}

.score-table td:last-child strong {
  font-weight:600;
}

.agent-score {
  background:var(--green-soft);
}

.strategy-dot {
  display:inline-block;
  width:6px;
  height:6px;
  border-radius:50%;
  margin-right:7px;
  vertical-align:middle;
}

.strategy-dot.rule {
  background:var(--orange-solid);
}

.strategy-dot.rolling {
  background:var(--muted);
}

.strategy-dot.agent {
  background:var(--agent);
}

.saving {
  color:var(--agent);
}

.warning {
  color:var(--danger);
}

.comparison-note {
  font-size:9px;
  color:var(--muted);
  margin:8px 0 0;
  line-height:1.75;
}

.evidence-grid {
  display:grid;
  grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);
  gap:25px;
  margin-top:25px;
}

.trace-section,.history-section {
  border-top:1px solid var(--line);
  padding-top:17px;
  min-width:0;
}

.trace-section .section-heading h2,.history-section .section-heading h2 {
  font-size:13px;
}

.chart-legend {
  display:flex;
  gap:14px;
  font-size:9px;
  color:var(--muted);
}

.trace-chart {
  max-height:190px;
}

.trace-line {
  fill:none;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.trace-line.rule {
  stroke:var(--orange-mid);
  stroke-dasharray:4 2;
}

.trace-line.rolling {
  stroke:var(--muted);
}

.trace-line.agent {
  stroke:var(--agent);
  stroke-width:2.5;
}

.event-list {
  list-style:none;
  margin:0;
  padding:0;
  max-height:170px;
  overflow:auto;
}

.event-list li {
  display:grid;
  grid-template-columns:52px 1fr;
  gap:8px;
  padding:8px 0;
  border-top:1px solid var(--line);
  font-size:10px;
}

.event-list li:first-child {
  border-top:0;
}

.event-list span {
  color:var(--world);
  font-size:9px;
}

.event-list p {
  margin:0;
  color:var(--muted);
  line-height:1.7;
}

.empty-state {
  font-size:11px;
  color:var(--muted);
  padding:20px 0;
  line-height:1.8;
  margin:0;
}

.experiment-settings {
  margin-top:23px;
  padding:22px 0;
  border-top:1px solid var(--line);
  display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);
  gap:30px;
}

.experiment-settings h2 {
  font-size:14px;
  font-weight:550;
  margin:0 0 6px;
}

.experiment-settings p {
  font-size:10px;
  color:var(--muted);
  margin:0 0 13px;
  line-height:1.7;
}

.experiment-settings form {
  display:flex;
  align-items:flex-end;
  gap:9px;
}

.experiment-settings label {
  display:flex;
  flex-direction:column;
  gap:5px;
  font-size:9px;
  color:var(--muted);
}

.experiment-settings select,.experiment-settings input,.experiment-settings button {
  font-size:11px;
  min-height:35px;
  padding:7px 9px;
}

.experiment-settings input {
  width:90px;
}

.rules-details summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  cursor:pointer;
  font-size:12px;
  font-weight:550;
  list-style:none;
  padding:2px 0 11px;
}

.rules-details summary::-webkit-details-marker {
  display:none;
}

.rules-details summary>span {
  font-size:18px;
  color:var(--agent);
  font-weight:400;
}

.rules-details[open] summary>span {
  transform:rotate(45deg);
}

.rule-list {
  font-size:10px;
  margin:0;
}

.rule-list>div {
  display:grid;
  grid-template-columns:110px 1fr;
  gap:10px;
  padding:7px 0;
  border-top:1px solid var(--line);
}

.rule-list dt {
  color:var(--muted);
}

.rule-list dd {
  margin:0;
}

.rule-hash {
  overflow-wrap:anywhere;
  font-family:"SFMono-Regular",Consolas,monospace;
  font-size:8px;
}

.experiment-settings .scope-note {
  font-size:9px;
  color:var(--muted);
  line-height:1.7;
  margin:10px 0 0;
}

footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  border-top:1px solid var(--line);
  padding:14px 0 22px;
  font-size:9px;
  color:var(--muted);
}

footer p {
  margin:0;
}

.error-banner {
  padding:12px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:14px;
  border:1px solid var(--red-mid);
  background:var(--orange-soft);
  border-radius:7px;
  color:var(--danger);
  font-size:12px;
}

.error-banner button {
  font-size:11px;
  min-height:30px;
  padding:6px 9px;
}

.loading-block {
  height:210px;
  display:grid;
  place-items:center;
  color:var(--muted);
  font-size:11px;
  background:repeating-linear-gradient(0deg,transparent,transparent 19px,color-mix(in srgb,var(--line) 19%,transparent) 20px);
}

@media(max-width:1200px) {
  .arena {
    grid-template-columns:minmax(0,1fr) 87px minmax(0,1fr);
  }
  .run-state>span:last-child {
    display:none;
  }
  .system-heading {
    padding:17px 17px 0;
  }
  .system-description {
    margin-left:17px;
    margin-right:17px;
  }
  .system-heading h2 {
    font-size:19px;
  }
  .system-tag {
    font-size:8px;
    padding-left:7px;
  }
  .system-number {
    width:39px;
    height:39px;
    font-size:21px;
  }
  .agent-decision {
    margin:17px 17px 0;
    padding:14px;
  }
  .candidate-heading {
    margin:14px 17px 0;
  }
  .candidate-list {
    margin-left:17px;
    margin-right:17px;
  }
  .agent-boundary {
    margin-left:17px;
    margin-right:17px;
    font-size:8px;
  }
  .protocol ol {
    gap:14px;
  }
  .protocol p {
    max-width:310px;
    font-size:9px;
  }
  .protocol li {
    font-size:9px;
  }
  .world-footer {
    font-size:8px;
    gap:7px;
    padding-left:17px;
    padding-right:17px;
  }
  .world-caption {
    padding-left:17px;
    padding-right:17px;
  }
  .price-chart-wrap {
    padding-left:17px;
    padding-right:17px;
  }
  .decision-caption {
    font-size:8px;
  }
  .candidate-list li>div:nth-child(2)>span {
    font-size:8px;
  }
  .candidate-cost {
    max-width:80px;
  }
  .candidate-cost>strong {
    font-size:10px;
  }
}

@media(max-width:980px) {
  main {
    padding:22px 18px 0;
  }
  .system-tag {
    display:none;
  }
  .arena {
    grid-template-columns:minmax(0,1fr) 65px minmax(0,1fr);
  }
  .exchange {
    padding:20px 4px;
  }
  .exchange-line small {
    font-size:7px;
  }
  .exchange-feedback {
    flex-direction:column;
    gap:3px;
    margin-top:15px;
  }
  .exchange-feedback small {
    text-align:center;
  }
  .system-description {
    font-size:10px;
  }
  .agent-decision {
    margin-top:14px;
  }
  #decision-power {
    font-size:23px;
  }
  #decision-reason {
    font-size:10px;
    min-height:51px;
  }
  .candidate-heading span {
    display:none;
  }
  .protocol {
    flex-wrap:wrap;
    gap:8px;
  }
  .protocol p {
    max-width:none;
  }
  .protocol ol {
    justify-content:space-between;
    width:100%;
  }
  .settlement-values strong {
    font-size:15px;
  }
  .settlement-values small {
    font-size:9px;
  }
  .score-table th,.score-table td {
    padding:11px 10px;
  }
  .experiment-settings {
    grid-template-columns:1fr;
  }
  .rules-details {
    max-width:650px;
  }
  .evidence-grid {
    gap:18px;
    grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);
  }
  .chart-legend {
    gap:8px;
    font-size:8px;
  }
  .section-heading h2 {
    font-size:17px;
  }
}

@media(max-width:720px) {
  .intro {
    gap:12px;
    margin-bottom:20px;
  }
  .intro h1 {
    font-size:26px;
    max-width:260px;
  }
  .intro-note {
    font-size:11px;
    max-width:255px;
    line-height:1.8;
    margin-top:9px;
  }
  .eyebrow {
    font-size:9px;
  }
  .round-clock strong {
    font-size:18px;
    max-width:120px;
  }
  .round-clock>span:first-child,.round-clock>span:last-child {
    font-size:9px;
  }
  main {
    padding:22px 12px 0;
  }
  .run-bar {
    padding:12px;
    align-items:flex-start;
    flex-direction:column;
    gap:10px;
    margin-bottom:14px;
  }
  .run-state>span:last-child {
    display:block;
    font-size:9px;
  }
  .run-controls {
    width:100%;
    flex-wrap:wrap;
  }
  .run-controls button,.run-controls select {
    font-size:10px;
    padding:7px 9px;
    min-height:33px;
  }
  .run-controls select {
    margin-left:auto;
  }
  .arena {
    grid-template-columns:1fr;
  }
  .exchange {
    display:grid;
    grid-template-columns:1fr auto 1fr;
    align-items:center;
    gap:16px;
    padding:10px 22px;
  }
  .exchange-line .arrow-right,.exchange-line .arrow-left {
    font-size:25px;
    line-height:1;
  }
  .exchange-line .arrow-right {
    transform:rotate(90deg);
  }
  .exchange-line .arrow-left {
    transform:rotate(90deg);
  }
  .exchange-line small {
    font-size:8px;
  }
  .exchange-label {
    font-size:9px;
  }
  .versus {
    margin:0;
    width:29px;
    height:29px;
    font-size:11px;
  }
  .exchange-feedback {
    display:none;
  }
  .system-heading {
    padding:17px 19px 0;
  }
  .system-description {
    margin-left:19px;
    margin-right:19px;
  }
  .system-tag {
    display:block;
  }
  .world-scene {
    max-height:210px;
  }
  .world-footer {
    font-size:9px;
  }
  .price-chart {
    max-height:155px;
  }
  .agent-decision {
    margin:17px 19px 0;
  }
  #decision-power {
    font-size:27px;
  }
  #decision-reason {
    min-height:0;
    font-size:11px;
  }
  .candidate-heading {
    margin:16px 19px 0;
  }
  .candidate-heading span {
    display:block;
  }
  .candidate-list {
    margin-left:19px;
    margin-right:19px;
  }
  .candidate-list li>div:nth-child(2)>span {
    font-size:9px;
  }
  .candidate-cost {
    max-width:105px;
  }
  .agent-boundary {
    font-size:9px;
    margin-left:19px;
    margin-right:19px;
  }
  .protocol {
    padding:12px;
    margin-top:14px;
  }
  .protocol li {
    gap:5px;
    font-size:8px;
  }
  .protocol ol {
    gap:6px;
  }
  .protocol li b {
    width:16px;
    height:16px;
    font-size:8px;
  }
  .settlement {
    padding:13px;
  }
  .settlement-values {
    grid-template-columns:1fr;
    gap:8px;
  }
  .settlement-values>div {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
  }
  .settlement-values strong {
    margin:0;
    font-size:15px;
  }
  .settlement-values small {
    font-size:9px;
  }
  .section-heading {
    align-items:flex-start;
    gap:10px;
  }
  .section-heading h2 {
    font-size:16px;
  }
  .section-heading>p {
    font-size:9px;
    max-width:150px;
  }
  .table-scroll {
    overflow-x:auto;
  }
  .score-table {
    min-width:740px;
  }
  .score-table th,.score-table td {
    padding:11px;
  }
  .comparison {
    margin-top:23px;
  }
  .comparison-note {
    font-size:9px;
  }
  .evidence-grid {
    grid-template-columns:1fr;
  }
  .trace-chart {
    max-height:200px;
  }
  .trace-section .section-heading {
    align-items:center;
  }
  .event-list {
    max-height:210px;
  }
  .experiment-settings {
    padding:20px 0;
    margin-top:22px;
  }
  .experiment-settings form {
    flex-wrap:wrap;
    gap:10px;
  }
  .experiment-settings select {
    max-width:170px;
  }
  .experiment-settings input {
    width:85px;
  }
  .experiment-settings p {
    font-size:10px;
  }
  .experiment-settings button {
    margin-top:4px;
  }
  footer {
    display:block;
    font-size:9px;
    line-height:1.8;
  }
  footer>span {
    display:block;
    margin-top:5px;
  }
  .error-banner {
    font-size:11px;
  }
  .feedback-text {
    font-size:10px;
  }
  .settlement-empty p {
    font-size:10px;
  }
}

@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    animation:none!important;
    transition:none!important;
  }
}

.candidate-status {
  font-size:8px;
  font-weight:400;
  margin-left:4px;
  color:var(--muted);
}

.candidate-status.warning {
  color:var(--danger);
}
