@import url("./theme.css");
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Space+Grotesk:wght@400;500;600&display=swap");
:root {
  font-family: "DM Sans", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
header {
  height: 76px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 36px;
}
html.embedded-demo body > header {
  display: none;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
}
.mark {
  width: 32px;
  height: 32px;
  background: transparent;
  border-radius: 0;
  color: var(--text);
  font-size: 25px;
  text-align: center;
  line-height: 27px;
  letter-spacing: 0;
  display: block;
}
.divider {
  height: 19px;
  width: 1px;
  background: var(--raised);
  margin: 0 8px;
}
.brand-sub,
.header-right {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.3px;
}
.brand-sub {
  color: var(--muted);
}
.header-right {
  display: flex;
  align-items: center;
  gap: 9px;
}
.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.version {
  border-left: 1px solid var(--line);
  padding-left: 20px;
  margin-left: 10px;
  color: var(--muted);
}
.icon-button {
  border: 0;
  background: transparent;
  font-size: 20px;
  color: var(--muted);
  margin-left: 10px;
}
main {
  max-width: 1800px;
  margin: 0 auto;
  padding: 34px 36px 0;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 30px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.7px;
  font-weight: 600;
  color: var(--muted);
}
h1 {
  font-family: "Space Grotesk", Arial, sans-serif;
  font-weight: 500;
  font-size: 43px;
  letter-spacing: -1px;
  line-height: 1.1;
  margin: 12px 0 9px;
}
p {
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}
.heading-note {
  font:
    9px/1.9 "DM Sans",
    sans-serif;
  letter-spacing: 1px;
  color: var(--muted);
  text-align: right;
  padding-bottom: 3px;
}
.heading-note span:last-child {
  letter-spacing: 0.2px;
  font-size: 10px;
  color: var(--muted);
}
.small-cross {
  color: var(--accent);
  font-size: 16px;
  margin-right: 6px;
}
.workspace {
  display: grid;
  grid-template-columns: 234px minmax(0, 1fr) 215px;
  min-height: 568px;
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  background: var(--surface);
}
.setup-panel,
.telemetry-panel {
  padding: 22px 20px;
  position: relative;
  z-index: 1;
}
.setup-panel {
  border-right: 1px solid var(--line);
}
.panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1.1px;
}
.tag {
  color: var(--muted);
  font-size: 7px;
  letter-spacing: 0.7px;
}
.car-spec {
  display: flex;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 26px 0 23px;
}
.car-icon {
  font:
    40px/1 "Space Grotesk",
    sans-serif;
  color: var(--muted);
  transform: rotate(-12deg);
}
h2 {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 5px;
}
.car-spec p {
  font-size: 9px;
}
.setup-group {
  padding-top: 20px;
}
h3 {
  font-size: 10px;
  font-weight: 600;
  margin: 0 0 16px;
}
.setup-group label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  margin-top: 14px;
}
.setup-group output {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: 11px;
}
.setup-group input[type="range"] {
  margin: 11px 0 4px;
  width: 100%;
  accent-color: var(--accent);
  height: 3px;
  display: block;
  cursor: pointer;
}
.range-ends {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 7px;
  letter-spacing: 0.7px;
}
.propulsion {
  padding-top: 23px;
  border-top: 1px solid var(--line);
  margin-top: 20px;
}
.propulsion h3 {
  display: flex;
  justify-content: space-between;
  margin-bottom: 13px;
}
.propulsion h3 span {
  font-size: 7px;
  color: var(--muted);
  letter-spacing: 1px;
}
.propulsion > div {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--muted);
  margin-top: 9px;
}
.propulsion b {
  color: var(--text);
  font-weight: 500;
  font-size: 9px;
}
.switch-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  margin: 22px 0 20px;
  position: relative;
  cursor: pointer;
}
.sub-label {
  display: block;
  font-size: 8px;
  color: var(--muted);
  margin-top: 5px;
}
.switch-label input {
  position: absolute;
  right: 0;
  width: 30px;
  height: 20px;
  opacity: 0;
  cursor: pointer;
}
.switch {
  width: 28px;
  height: 16px;
  border-radius: 10px;
  background: var(--raised);
  padding: 3px;
  pointer-events: none;
}
.switch:after {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text);
  transition: transform 0.15s;
}
.switch-label input:checked + .switch {
  background: var(--accent);
}
.switch-label input:checked + .switch:after {
  transform: translateX(12px);
}
.primary-button {
  width: 100%;
  background: var(--text);
  border: 0;
  border-radius: 4px;
  color: var(--bg);
  font-size: 11px;
  padding: 13px 15px;
  display: flex;
  justify-content: space-between;
}
.primary-button span {
  font-size: 16px;
  line-height: 12px;
}
.compute-status {
  font-size: 8px;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 9px;
  text-align: center;
  height: 34px;
  overflow: auto;
}
.planning-status {
  position: absolute;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 32px);
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #101925ee;
  color: #eaf5ff;
  font-size: 13px;
  pointer-events: none;
}
.planning-status[hidden] {
  display: none;
}
.planning-spinner {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  border: 2px solid #4da3ff44;
  border-top-color: #4da3ff;
  border-radius: 50%;
  animation: planning-spin 0.9s linear infinite;
}
@keyframes planning-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .planning-spinner { animation: none; }
}
.viewport {
  position: relative;
  min-height: 568px;
  background: var(--surface);
  overflow: hidden;
}
.viewport #scene {
  position: absolute;
  inset: 0;
}
.viewport canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}
.scene-top {
  position: absolute;
  top: 23px;
  left: 22px;
  right: 22px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  font-size: 7px;
  letter-spacing: 1px;
  color: var(--muted);
}
.scene-label {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text);
}
.scene-label .live-dot {
  width: 5px;
  height: 5px;
  margin-right: 6px;
}
.scene-sub {
  display: block;
  font-size: 6px;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-top: 7px;
  padding-left: 13px;
}
#load-status {
  font-size: 7px;
  letter-spacing: 0.8px;
}
.view-switch {
  position: absolute;
  top: 76px;
  left: 22px;
  display: flex;
  background: #0c1118b3;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px;
  backdrop-filter: blur(8px);
}
.view-switch button {
  font-size: 9px;
  background: transparent;
  color: var(--muted);
  border: 0;
  border-radius: 2px;
  padding: 7px 12px;
}
.view-switch button.selected {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 4px #00000015;
}
.alt-ruler {
  position: absolute;
  right: 21px;
  top: 27%;
  bottom: 19%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--muted);
  font:
    7px "Space Grotesk",
    sans-serif;
  letter-spacing: 1px;
  pointer-events: none;
}
.scene-bottom {
  position: absolute;
  bottom: 54px;
  left: 22px;
  right: 22px;
  display: flex;
  justify-content: space-between;
  font-size: 6px;
  letter-spacing: 0.9px;
  color: var(--muted);
  pointer-events: none;
}
.axis-color {
  color: var(--accent);
  font-size: 14px;
  vertical-align: middle;
  margin-right: 3px;
}
.view-options {
  position: absolute;
  bottom: 18px;
  left: 22px;
  display: flex;
  gap: 16px;
  font-size: 8px;
  color: var(--muted);
}
.view-options label {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.view-options input {
  accent-color: var(--accent);
  width: 10px;
  height: 10px;
  margin: 0;
}
.outcome {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 90px;
  max-width: 90%;
  width: 320px;
  background: #0c1118e8;
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  padding: 15px 18px;
  border-radius: 5px;
  text-align: center;
  box-shadow: 0 4px 30px #00000012;
  font-size: 11px;
  line-height: 1.7;
}
.outcome b {
  display: block;
  font:
    500 17px "Space Grotesk",
    sans-serif;
  margin-bottom: 4px;
}
.outcome span {
  font-size: 9px;
  color: var(--muted);
}
.outcome.failed {
  border-color: var(--danger);
  color: var(--danger);
}
.telemetry-panel {
  border-left: 1px solid var(--line);
  padding: 22px 20px 16px;
}
.metric {
  padding: 18px 0 15px;
  border-bottom: 1px solid var(--line);
}
.metric > span,
.nozzle-panel > span {
  font-size: 7px;
  letter-spacing: 1.1px;
  color: var(--muted);
}
.metric > div {
  display: flex;
  gap: 7px;
  align-items: baseline;
  margin-top: 8px;
}
.metric b {
  font-family: "Space Grotesk", sans-serif;
  font-size: 25px;
  font-weight: 400;
  letter-spacing: -0.7px;
}
.metric small {
  font-size: 10px;
  color: var(--muted);
}
.primary-metric {
  padding-top: 23px;
}
.primary-metric b {
  font-size: 34px;
}
.primary-metric svg {
  color: var(--muted);
  width: 100%;
  height: 36px;
  display: block;
  margin-top: 8px;
}
.metric .gas-bar {
  display: block;
  height: 3px;
  background: var(--surface);
  margin-top: 12px;
}
.gas-bar i {
  display: block;
  height: 100%;
  background: var(--accent);
  width: 100%;
}
.nozzle-panel {
  margin-top: 18px;
}
.nozzle-car {
  height: 82px;
  position: relative;
  margin: 6px auto 0;
  width: 105px;
}
.nozzle-silhouette {
  border: 1px solid var(--line);
  border-radius: 22px 22px 13px 13px;
  position: absolute;
  width: 39px;
  height: 71px;
  left: 33px;
  top: 5px;
  background: linear-gradient(
    var(--raised) 25%,
    var(--line) 25%,
    var(--line) 47%,
    var(--raised) 47%
  );
}
#nozzle-grid {
  position: absolute;
  inset: 0;
}
.jet-led {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
  border: 1px solid var(--line);
  transition: background 0.1s;
}
.legend {
  font-size: 6px;
  letter-spacing: 0.6px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.legend i {
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}
.legend span {
  margin-left: auto;
  letter-spacing: 0;
}
.contact-info {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 6px;
  letter-spacing: 0.5px;
  color: var(--muted);
  padding: 14px 0;
  margin-top: 17px;
}
.text-button {
  width: 100%;
  margin-top: 15px;
  background: transparent;
  border: 0;
  display: flex;
  justify-content: space-between;
  padding: 0;
  color: var(--muted);
  font-size: 9px;
}
.playback {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 2px;
  margin-top: 12px;
  background: var(--surface);
}
.play-button {
  background: var(--text);
  color: var(--bg);
  border: 0;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 10px;
  flex-shrink: 0;
}
.restart-button {
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 22px;
  padding: 0;
  line-height: 20px;
}
.time-readout {
  font-family: "Space Grotesk", sans-serif;
  font-size: 10px;
  white-space: nowrap;
  display: flex;
  gap: 7px;
}
.time-readout b {
  font-weight: 500;
}
.time-readout span {
  color: var(--muted);
}
.timeline-wrap {
  flex: 1;
  min-width: 30px;
  position: relative;
  padding-bottom: 12px;
  align-self: center;
}
.timeline-wrap input {
  width: 100%;
  accent-color: var(--accent);
  height: 3px;
  display: block;
  margin: 0;
  cursor: pointer;
}
.phase-ticks {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  display: flex;
  justify-content: space-between;
  font-size: 6px;
  letter-spacing: 0.7px;
  color: var(--muted);
  pointer-events: none;
}
.phase-ticks span {
  position: absolute;
  transform: translateX(-50%);
}
.phase-ticks span:first-child {
  transform: none;
}
.playback select {
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 7px 5px;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
}
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  color: var(--muted);
  font-size: 7px;
  letter-spacing: 1px;
}
footer div {
  display: flex;
  align-items: center;
  gap: 22px;
}
footer button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 8px;
  padding: 0;
}
.footer-symbol {
  font-size: 12px;
  vertical-align: middle;
  margin-right: 7px;
}
dialog {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 8px;
  max-width: 660px;
  width: calc(100% - 40px);
  padding: 36px;
  max-height: 86vh;
  box-shadow: 0 20px 120px #00000040;
}
dialog::backdrop {
  background: #26354870;
  backdrop-filter: blur(5px);
}
dialog h2 {
  font:
    500 27px "Space Grotesk",
    sans-serif;
  letter-spacing: -1px;
  margin: 16px 0;
}
dialog h3 {
  margin: 24px 0 10px;
  font-size: 13px;
}
dialog p,
dialog li {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 11px;
}
dialog a {
  color: var(--text);
}
.close-button {
  float: right;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 25px;
  position: relative;
  top: -15px;
  right: -12px;
}
.note-small {
  font-size: 10px !important;
}
code {
  background: var(--surface);
  padding: 1px 4px;
  border-radius: 2px;
}
@media (min-width: 1550px) {
  .workspace {
    grid-template-columns: 260px minmax(0, 1fr) 235px;
    min-height: 660px;
  }
  .viewport {
    min-height: 660px;
  }
  .setup-panel,
  .telemetry-panel {
    padding: 26px;
  }
  .setup-group {
    padding-top: 25px;
  }
  .metric {
    padding: 23px 0;
  }
  .car-spec {
    padding: 30px 0;
  }
  .propulsion {
    margin-top: 30px;
  }
}
@media (max-width: 1100px) {
  header {
    padding: 0 20px;
  }
  .brand-sub {
    display: none;
  }
  main {
    padding: 25px 20px 0;
  }
  .workspace {
    grid-template-columns: 205px minmax(0, 1fr) 170px;
  }
  .setup-panel,
  .telemetry-panel {
    padding: 20px 15px;
  }
  .scene-top {
    left: 15px;
    right: 15px;
  }
  .scene-bottom span:last-child {
    display: none;
  }
  .heading-note {
    display: none;
  }
  h1 {
    font-size: 36px;
  }
  .view-switch button {
    padding: 6px 8px;
  }
  .metric b {
    font-size: 23px;
  }
  .nozzle-car {
    height: 78px;
  }
  .contact-info {
    font-size: 5px;
  }
  .view-options {
    gap: 9px;
    font-size: 7px;
  }
  .alt-ruler {
    right: 12px;
  }
  #load-status {
    display: none;
  }
}
@media (max-width: 780px) {
  header {
    height: 58px;
  }
  .brand {
    font-size: 12px;
    gap: 8px;
  }
  .header-right {
    font-size: 7px;
  }
  .version {
    display: none;
  }
  .heading {
    margin-bottom: 20px;
  }
  main {
    padding: 24px 12px 0;
  }
  h1 {
    font-size: 34px;
  }
  .heading p {
    font-size: 11px;
  }
  .workspace {
    grid-template-columns: 1fr;
    overflow: visible;
    background: transparent;
    border: 0;
    gap: 12px;
  }
  .viewport {
    min-height: 480px;
    border: 1px solid var(--line);
    border-radius: 6px;
    grid-row: 1;
  }
  .setup-panel {
    grid-row: 3;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
  }
  .setup-panel .car-spec {
    padding: 18px 0;
  }
  .setup-group input[type="range"] {
    margin: 13px 0;
  }
  .setup-panel .propulsion {
    margin-top: 20px;
  }
  .telemetry-panel {
    border: 1px solid var(--line);
    border-radius: 6px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 15px 8px;
    gap: 8px;
    background: var(--surface);
  }
  .telemetry-panel .panel-title {
    grid-column: 1/-1;
  }
  .metric {
    padding: 8px 6px 0;
    border: 0;
  }
  .metric b {
    font-size: 22px;
  }
  .primary-metric b {
    font-size: 22px;
  }
  .metric span {
    font-size: 6px;
    letter-spacing: 0.6px;
  }
  .metric small {
    font-size: 8px;
  }
  .metric > div {
    gap: 3px;
  }
  .primary-metric svg {
    height: 18px;
  }
  .nozzle-panel,
  .contact-info {
    display: none;
  }
  .text-button {
    grid-column: 1/-1;
    border-top: 1px solid var(--line);
    padding: 13px 5px 0;
    margin-top: 8px;
  }
  .playback {
    gap: 10px;
    padding: 15px 10px;
  }
  .time-readout {
    font-size: 8px;
    gap: 4px;
  }
  .playback select {
    font-size: 8px;
    width: 60px;
  }
  .phase-ticks {
    font-size: 5px;
  }
  .scene-bottom {
    font-size: 6px;
  }
  .view-options {
    font-size: 8px;
  }
  footer {
    font-size: 6px;
    letter-spacing: 0.5px;
  }
  footer div > span {
    display: none;
  }
  dialog {
    padding: 25px;
  }
  .scene-label {
    font-size: 7px;
  }
}
/* MPC inspector and real-time transport controls. */
.live-button {
  background: var(--raised);
  color: var(--accent);
  border: 1px solid var(--accent);
  margin-bottom: 8px;
}
.live-button.running {
  background: #512731;
  color: var(--text);
  border-color: var(--danger);
}
.transport-badge {
  font-size: 7px;
  padding: 3px 5px;
  border: 1px solid var(--line);
  border-radius: 3px;
  letter-spacing: 0.8px;
  color: var(--muted);
}
.transport-badge.live {
  color: var(--accent);
  background: var(--raised);
  border-color: var(--accent);
}
.mpc-inspector {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(200px, 1fr) minmax(
      230px,
      1fr
    );
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--surface);
  padding: 20px;
  margin-top: 12px;
}
.mpc-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 16px 0 8px;
}
.mpc-title h2 {
  margin: 0;
  font:
    500 16px "Space Grotesk",
    sans-serif;
}
.mpc-inspector p {
  font-size: 10px;
  line-height: 1.7;
}
.mpc-actions {
  display: flex;
  gap: 7px;
  margin-top: 14px;
}
.outline-button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 3px;
  font-size: 9px;
  padding: 7px 9px;
}
.mpc-plot svg {
  display: block;
  width: 100%;
  height: 112px;
  margin: 6px 0;
}
.mpc-legend {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 7px;
}
.planned {
  color: var(--accent);
}
.delivered {
  color: var(--delivered);
}
.rejected {
  color: var(--danger);
}
.mpc-diagnostics dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px 16px;
  margin: 0;
}
.mpc-diagnostics dl div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mpc-diagnostics dt {
  font-size: 7px;
  letter-spacing: 0.7px;
  color: var(--muted);
}
.mpc-diagnostics dd {
  margin: 0;
  font:
    11px "Space Grotesk",
    sans-serif;
  color: var(--text);
}
.mpc-diagnostics > p {
  font-size: 8px;
  margin-top: 12px;
  overflow-wrap: anywhere;
}
.mpc-inspector[data-state="rejected"] .mpc-title {
  color: var(--danger);
}
.mpc-inspector[data-state="rejected"] #mpc-dot {
  background: var(--danger);
}
.mpc-inspector[data-state="active"] #mpc-dot {
  background: var(--accent);
  box-shadow: 0 0 0 4px #4da3ff18;
}
.mpc-inspector[data-state="waiting"] #mpc-dot,
.mpc-inspector[data-state="disabled"] #mpc-dot {
  background: var(--raised);
}
@media (max-width: 1100px) {
  .mpc-inspector {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .mpc-diagnostics {
    grid-column: 1/-1;
  }
  .mpc-diagnostics dl {
    grid-template-columns: repeat(6, 1fr);
  }
  .view-switch button {
    padding: 6px 7px;
    font-size: 8px;
  }
}
@media (max-width: 650px) {
  .mpc-inspector {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .mpc-diagnostics {
    grid-column: auto;
  }
  .mpc-diagnostics dl {
    grid-template-columns: repeat(3, 1fr);
  }
  .mpc-plot svg {
    height: 145px;
  }
  .mpc-legend {
    font-size: 8px;
  }
  .view-switch button {
    padding: 6px 9px;
  }
  .mpc-inspector p {
    font-size: 11px;
  }
}

.plot-axis-labels {
  fill: var(--muted);
  font: 9px monospace;
}
.mpc-inspector .mpc-plot-note {
  font-size: 8px;
  color: var(--muted);
  margin: 6px 0 0;
}
.mpc-plot svg {
  height: 140px;
}

[hidden] {
  display: none !important;
}
.maneuver-control {
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}
.maneuver-control h3 {
  margin-bottom: 10px;
}
.maneuver-control button {
  display: block;
  width: 100%;
  padding: 9px 10px;
  text-align: left;
  font-size: 10px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  margin-top: 6px;
}
.maneuver-control button[aria-pressed="true"] {
  background: var(--raised);
  color: var(--text);
  border-color: var(--accent);
}

.primary-button:hover,
.play-button:hover {
  background: var(--accent);
}

header > .text-button {
  width: auto;
  margin: 0;
  font-size: 11px;
}

@media (max-width: 500px) {
  .brand {
    font-size: 11px;
    letter-spacing: 1px;
  }
  .brand .divider,
  .brand-sub {
    display: none;
  }
  .header-right {
    font-size: 0;
    gap: 6px;
  }
}

.sound-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 10px 18px;
  color: var(--muted);
  font-size: 12px;
}
.sound-controls button {
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--surface);
  padding: 7px 12px;
  border-radius: 3px;
  font: inherit;
}
.sound-controls button[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent);
}
.sound-controls label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.sound-controls input {
  accent-color: var(--accent);
}
.sound-controls input[type="range"] {
  width: 90px;
  margin: 0;
}

.goal-controls .planner-option {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  line-height: 1.5;
}
.goal-controls input[type="checkbox"] {
  accent-color: var(--accent);
}
#planner-status {
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}

#landing-x {
  width: 100%;
  box-sizing: border-box;
  background: var(--panel, #101722);
  color: var(--text, #e8edf4);
  border: 1px solid var(--line, #334155);
  border-radius: 4px;
  padding: 7px 9px;
}
.landing-hint {
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}
