:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: #dbe6e7;
  background: #10191f;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: #a6c6bc;
  text-decoration: none;
}
button,
.button,
select {
  font: inherit;
  font-size: 12px;
  color: #dbe6e7;
  border: 1px solid #3c4e55;
  border-radius: 5px;
  background: #233239;
  padding: 9px 12px;
  cursor: pointer;
}
button:hover,
.button:hover {
  background: #334b50;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid #a7d9bf;
  outline-offset: 3px;
}
button.active {
  background: #b1c8a6;
  color: #182c2c;
  border-color: #b1c8a6;
}
header {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #2a3940;
  padding: 0 36px;
  font-size: 11px;
  letter-spacing: 0.08em;
}
.brand {
  font-size: 13px;
  color: #d4e1de;
}
main {
  max-width: 1800px;
  margin: auto;
  padding: 30px 36px;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.15em;
  font-weight: 650;
  color: #aac7ba;
  margin: 0;
}
h1 {
  font-size: 42px;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin: 5px 0 8px;
}
h2 {
  font-size: 22px;
  font-weight: 450;
  letter-spacing: -0.02em;
  margin: 8px 0;
}
.intro p:not(.eyebrow) {
  font-size: 13px;
  color: #98abb2;
  margin: 0;
}
.live {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #a6bbb4;
}
.live i {
  width: 6px;
  height: 6px;
  background: #bdd3a2;
  border-radius: 50%;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 304px;
  gap: 18px;
}
.visual {
  position: relative;
  min-width: 0;
  height: 680px;
  background: #15252c;
  border: 1px solid #314148;
  border-radius: 8px;
  overflow: hidden;
}
#scene {
  display: block;
  width: 100%;
  height: 580px;
  touch-action: none;
}
.scene-bar {
  position: absolute;
  top: 18px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}
.segmented {
  display: flex;
  gap: 4px;
}
#time {
  font:
    12px ui-monospace,
    monospace;
  color: #c5d2cc;
}
.scene-caption {
  position: absolute;
  top: 80px;
  left: 23px;
  pointer-events: none;
}
.scene-caption p {
  font-size: 11px;
  color: #99afb5;
  margin: 0;
}
.view-controls {
  position: absolute;
  bottom: 137px;
  left: 20px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 11px;
  background: #17262bd9;
  padding: 9px;
  border-radius: 5px;
}
.view-controls label {
  display: flex;
  align-items: center;
  gap: 5px;
}
.scene-footer {
  position: absolute;
  bottom: 108px;
  left: 23px;
  right: 23px;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #9bafb5;
  gap: 10px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 100px;
  background: #1b2b31;
  border-top: 1px solid #35444a;
  padding: 20px 22px;
  gap: 8px;
}
.metrics span,
.registers span {
  display: block;
  font-size: 10px;
  color: #9cb0b7;
  margin-bottom: 8px;
}
.metrics strong {
  font-size: 25px;
  font-weight: 450;
  font-variant-numeric: tabular-nums;
}
.metrics small {
  font-size: 12px;
  color: #8ea6a9;
}
aside,
.panel {
  border: 1px solid #314148;
  border-radius: 8px;
  background: #17252b;
  padding: 19px;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.panel-heading > span:not(.eyebrow) {
  font-size: 9px;
  color: #98acae;
}
#run-state {
  color: #b4d8a4;
}
.actions {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
.actions button {
  flex: 1;
}
.field {
  display: block;
  font-size: 11px;
  color: #afc1c4;
  margin: 16px 0;
}
.field select {
  width: 100%;
  margin-top: 8px;
}
.range-heading {
  display: flex;
  justify-content: space-between;
}
.range-heading output {
  color: #d5e4d5;
  font-variant-numeric: tabular-nums;
}
input[type="range"] {
  width: 100%;
  margin: 10px 0 0;
  accent-color: #b0cba0;
  height: 12px;
}
input[type="checkbox"] {
  accent-color: #b0cba0;
}
.switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  margin: 12px 0;
}
.preset-row {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.preset-row button {
  font-size: 10px;
  padding: 7px 9px;
}
.inspector {
  border-top: 1px solid #33444a;
  margin-top: 17px;
  padding-top: 15px;
}
.inspector select {
  width: 100%;
  margin: 10px 0 0;
}
.inspector p {
  font-size: 11px;
  line-height: 1.7;
  color: #aabdc2;
  margin: 10px 0 0;
}
.diagnostics {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  margin-top: 18px;
}
.panel {
  min-width: 0;
}
#plot {
  display: block;
  width: 100%;
  height: 152px;
}
.plot-key {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 10px;
  color: #bdd3a2;
  margin-top: 7px;
}
.plot-key span:nth-child(2) {
  color: #7eb8d1;
}
#energy {
  color: #9caaaf;
  margin-left: auto;
}
.registers {
  display: flex;
  gap: 38px;
}
.registers strong {
  font:
    24px ui-monospace,
    monospace;
  color: #c6d7ba;
}
#program {
  display: flex;
  gap: 6px;
  margin-top: 16px;
  flex-wrap: wrap;
}
#program span {
  font:
    11px ui-monospace,
    monospace;
  padding: 6px 9px;
  background: #23343c;
  border: 1px solid transparent;
  border-radius: 3px;
}
#program span.active {
  border-color: #9bb28f;
}
#instructions,
.muted {
  font-size: 10px;
  line-height: 1.6;
  color: #8fa6af;
}
.muted {
  margin-bottom: 0;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 35px;
  margin-top: 24px;
  padding: 15px 0;
  font-size: 11px;
  color: #96abb2;
}
footer b {
  font-size: 12px;
  color: #c5d6d4;
  font-weight: 450;
}
footer p {
  max-width: 820px;
  line-height: 1.7;
  margin: 7px 0;
}
footer a {
  font-size: 10px;
}
.exports {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  justify-content: end;
  gap: 7px;
  min-width: 260px;
}
.exports small {
  width: 100%;
  text-align: right;
  font-size: 10px;
}
#error {
  color: #f6b6a4;
  padding: 15px;
  border: 1px solid #a35548;
  border-radius: 6px;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
@media (min-width: 1600px) {
  .visual {
    height: 760px;
  }
  #scene {
    height: 660px;
  }
}
@media (max-width: 1000px) {
  header {
    padding: 0 20px;
  }
  main {
    padding: 24px 20px;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
  .metrics strong {
    font-size: 21px;
  }
  .scene-footer span:last-child {
    display: none;
  }
  .scene-caption h2 {
    font-size: 19px;
  }
}
@media (max-width: 740px) {
  header {
    padding: 0 16px;
    height: 58px;
  }
  header > span {
    display: none;
  }
  header > a:last-child {
    font-size: 9px;
  }
  main {
    padding: 22px 14px;
  }
  .intro {
    align-items: start;
    gap: 10px;
  }
  h1 {
    font-size: 32px;
  }
  .intro p:not(.eyebrow) {
    max-width: 210px;
    line-height: 1.5;
  }
  .live {
    font-size: 9px;
    max-width: 95px;
    padding-top: 8px;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .visual {
    height: 560px;
  }
  #scene {
    height: 460px;
  }
  .scene-caption {
    top: 76px;
    left: 16px;
  }
  .scene-caption h2 {
    font-size: 18px;
  }
  .scene-bar {
    left: 14px;
    right: 14px;
  }
  .scene-caption .eyebrow {
    font-size: 8px;
  }
  .view-controls {
    left: 12px;
    right: 12px;
    font-size: 10px;
    gap: 9px;
    bottom: 136px;
  }
  .metrics {
    padding: 20px 12px;
    gap: 6px;
  }
  .metrics strong {
    font-size: 20px;
  }
  .metrics small {
    font-size: 9px;
  }
  .metrics span {
    font-size: 8px;
  }
  .scene-footer {
    left: 18px;
    font-size: 8px;
  }
  .diagnostics {
    grid-template-columns: 1fr;
  }
  aside {
    padding: 20px;
  }
  .field {
    margin: 20px 0;
  }
  footer {
    flex-direction: column;
    gap: 15px;
  }
  .exports {
    justify-content: start;
  }
  .exports small {
    text-align: left;
  }
  .panel-heading {
    gap: 5px;
  }
  .panel-heading .eyebrow {
    font-size: 9px;
  }
}

@media (max-width: 740px) {
  .scene-caption {
    background: #142128d9;
    padding: 9px 11px;
    border-radius: 4px;
    right: 16px;
  }
  .scene-caption h2 {
    font-size: 16px;
    margin: 5px 0;
  }
  .scene-caption p {
    font-size: 10px;
  }
}

.thermal-settings {
  border: 1px solid #36505b;
  margin: 22px 0;
  padding: 12px;
  min-width: 0;
}
.thermal-settings .field {
  margin: 12px 0;
}
.thermal-study {
  margin-top: 24px;
}
.study-actions {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
}
.study-actions label {
  display: grid;
  gap: 6px;
  font-size: 12px;
}
.study-actions input {
  max-width: 160px;
  padding: 9px;
  background: #14242c;
  border: 1px solid #45616c;
  color: #dde9e9;
}
.study-table {
  overflow-x: auto;
  max-width: 100%;
  margin: 18px 0;
}
.study-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  white-space: nowrap;
}
.study-table th,
.study-table td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid #304852;
}
.study-table th {
  color: #a6c5c4;
}
.view-controls {
  flex-wrap: wrap;
}
.view-controls select {
  max-width: 230px;
}
#study-status,
#study-recommendation {
  overflow-wrap: anywhere;
}

.visual-settings {
  margin: 20px 0;
}
.visual-settings label {
  display: grid;
  gap: 8px;
  font-size: 12px;
}
.visual-settings .muted {
  display: block;
  font-size: 11px;
  margin-top: 8px;
}
