:root {
  color-scheme: light;
  --ink: #24251e;
  --muted: #696a60;
  --paper: #f3efe6;
  --card: #faf7ef;
  --line: #ddd6c9;
  --rust: #a94725;
  --dark: #171c19;
  --title: Georgia, 'Times New Roman', serif;
  --mono: ui-monospace, 'Courier New', monospace;
  font-family: system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
select {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.43;
}
button:focus-visible,
select:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 2px solid #e38f5e;
  outline-offset: 3px;
}
button {
  color: inherit;
}
a {
  color: inherit;
}
.mast {
  border-bottom: 1px solid var(--line);
  background: #f9f5eb;
}
.mast-inner,
main {
  max-width: 1520px;
  margin: auto;
  padding-inline: clamp(16px, 4vw, 66px);
}
.mast-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  line-height: 1;
  font-weight: 850;
  font-size: 17px;
  letter-spacing: 0.13em;
}
.brand img {
  width: 38px;
  height: 38px;
}
.brand-joined {
  color: #a94725;
}
.brand small {
  font: 700 8px var(--mono);
  display: block;
  margin-top: 5px;
}
.mast-right {
  display: flex;
  gap: 24px;
  align-items: center;
}
.mast-label,
.machine-tag,
.eyebrow,
.kicker,
.clock,
.scene-status,
.transport label {
  font: 700 10px var(--mono);
  letter-spacing: 0.12em;
}
.mast-label {
  color: var(--muted);
}
.mast-label b {
  color: #b95832;
  margin: 0 5px;
}
.plain {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 8px;
  padding: 9px 13px;
  font-size: 12px;
  font-weight: 700;
}
.plain:hover,
.transport button:hover:not(:disabled) {
  background: #eee5d8;
}
.plain span {
  margin-left: 5px;
  color: var(--rust);
}
main {
  padding-top: 24px;
}
.workbench,
.telemetry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 338px;
  gap: 16px;
}
.viewport {
  height: 540px;
  isolation: isolate;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  color: #f8ebd8;
  background: #1a201c;
}
.viewport:fullscreen {
  height: 100%;
  width: 100%;
  border-radius: 0;
}
.viewport.sim-full {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  border-radius: 0;
}
body.sim-full-open {
  overflow: hidden;
}
#world {
  position: absolute;
  inset: 0;
  touch-action: none;
}
#world canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
}
#world canvas:active {
  cursor: grabbing;
}
.scene-copy {
  position: absolute;
  top: 32px;
  left: 31px;
  pointer-events: none;
  text-shadow: 0 2px 20px #151713;
  padding: 0 16px 14px 0;
  background: radial-gradient(ellipse at 0 26%, #131713a8, transparent 72%);
}
.kicker {
  color: #efb78e;
  display: flex;
  align-items: center;
  gap: 8px;
}
.kicker span,
.eyebrow i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #bd633f;
  display: inline-block;
  margin-right: 4px;
}
.scene-copy h1 {
  font: 500 clamp(44px, 5.6vw, 88px) / 0.87 var(--title);
  letter-spacing: -0.075em;
  margin: 18px 0 13px;
}
.scene-copy h1 em {
  color: #e8a477;
  font-weight: 400;
}
.scene-copy p {
  font-size: 12px;
  color: #f4e4d3;
  margin: 0;
}
.scene-status {
  position: absolute;
  right: 20px;
  top: 20px;
  padding: 9px 10px;
  border: 1px solid #e3b99b55;
  border-radius: 6px;
  background: #1a1d18e8;
  display: flex;
  align-items: center;
  gap: 7px;
}
.scene-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e4a570;
  box-shadow: 0 0 9px #eb8956;
}
.markers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.markers button {
  pointer-events: auto;
  position: absolute;
  transform: translate(-50%, -50%);
  border: 1px solid #f3c49a;
  background: #26231bd9;
  color: #ffe3c5;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 19px;
  line-height: 1;
}
.markers button:hover {
  background: #a94725;
}
.view-bottom {
  position: absolute;
  bottom: 19px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.views,
.fullscreen {
  pointer-events: auto;
  border: 1px solid #e3b99b55;
  border-radius: 8px;
  background: #1a1d18ef;
  color: #f8ebd8;
}
.views {
  padding: 3px;
  display: flex;
}
.views button,
.fullscreen {
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 7px 10px;
}
.views button {
  background: transparent;
  color: #ede2d4;
  border: 0;
}
.views button.active,
.views button:hover {
  color: #221f18;
  background: #ebc4a2;
}
.fullscreen {
  font-size: 21px;
  line-height: 20px;
  padding: 4px 9px;
}
.scene-help {
  position: absolute;
  bottom: 30px;
  right: 72px;
  font-size: 10px;
  color: #fff2e1;
  text-shadow: 0 1px 8px black;
  pointer-events: none;
}
.scene-help b {
  color: #e8a477;
  margin: 0 4px;
}
#webgl-error {
  position: absolute;
  bottom: 62px;
  left: 20px;
  right: 20px;
  background: #201c17;
  padding: 12px;
  border-radius: 8px;
}
.console,
.profile,
.batch,
.practice {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  padding: 23px;
}
.console {
  display: flex;
  flex-direction: column;
}
.console-top,
.profile-head,
.batch-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.eyebrow {
  color: #853c24;
}
.machine-tag {
  color: #68655a;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 5px;
}
.console h2,
.profile h2,
.batch h2,
.practice h2,
dialog h2 {
  font: 500 33px/1 var(--title);
  letter-spacing: -0.045em;
  margin: 12px 0;
}
.intro {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
  margin: 0 0 20px;
}
.slider {
  display: block;
  margin-bottom: 16px;
}
.slider span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 13px;
}
.slider output {
  font: 700 12px var(--mono);
  color: var(--rust);
  background: #f0e3d6;
  padding: 4px 6px;
  border-radius: 4px;
}
.slider input {
  display: block;
  width: 100%;
  margin: 0;
  height: 20px;
  appearance: none;
  background: transparent;
  cursor: ew-resize;
}
.slider input::-webkit-slider-runnable-track {
  background: linear-gradient(to right, #ad4e2d var(--fill), #e2dbce var(--fill));
  height: 4px;
  border-radius: 5px;
}
.slider input::-moz-range-track {
  background: linear-gradient(to right, #ad4e2d var(--fill), #e2dbce var(--fill));
  height: 4px;
  border-radius: 5px;
}
.slider input::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  margin-top: -6px;
  background: #aa4929;
  border: 2px solid #faf7ef;
  box-shadow: 0 0 0 1px #aa4929;
}
.slider input::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #aa4929;
  border: 2px solid #faf7ef;
  box-shadow: 0 0 0 1px #aa4929;
}
.slider input:disabled {
  opacity: 0.48;
  cursor: default;
}
.action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #a94725;
  color: #fff8ed;
  border: 0;
  border-radius: 8px;
  font-weight: 750;
  min-height: 45px;
  padding: 9px 14px;
  margin-top: auto;
}
.action:hover:not(:disabled) {
  background: #88361d;
}
.action span + span {
  font-size: 20px;
}
.transport {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-top: 10px;
}
.transport button,
.transport select {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 7px;
  min-height: 37px;
  min-width: 39px;
  font-weight: 700;
}
.transport label {
  margin-left: auto;
  color: var(--muted);
}
.transport select {
  padding: 0 6px;
  font-size: 12px;
}
.telemetry {
  margin-top: 16px;
}
.profile h2,
.batch h2,
.practice h2 {
  font-size: 28px;
  margin-bottom: 13px;
}
.clock {
  background: #272a22;
  color: #f7e9d9;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 15px;
  letter-spacing: 0.02em;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}
.stats div {
  background: #f1ece1;
  border: 1px solid #eae2d6;
  border-radius: 8px;
  padding: 9px 11px;
}
.stats span,
.stats small {
  font: 700 9px var(--mono);
  color: #65645a;
}
.stats span {
  display: block;
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}
.stats strong {
  font: 700 22px var(--mono);
  margin-right: 4px;
}
.plot-wrap {
  height: 139px;
  margin-top: 10px;
}
.plot-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.plot-key {
  display: flex;
  gap: 16px;
  padding: 4px 0 0 4px;
  flex-wrap: wrap;
  font-size: 10px;
  color: var(--muted);
}
.plot-key i {
  display: inline-block;
  width: 14px;
  height: 2px;
  margin-right: 4px;
  vertical-align: middle;
  background: #ad4e2d;
}
.plot-key span:nth-child(2) i {
  background: #626f5c;
}
.plot-key span:nth-child(3) i {
  background: #a07a43;
}
.batch ol {
  padding: 0;
  margin: 0 0 11px;
  list-style: none;
}
.batch li {
  border-left: 1px solid #e4d9c8;
  margin-left: 6px;
  padding: 4px 0 8px 16px;
  position: relative;
  color: #504e44;
}
.batch li:last-child {
  border-color: transparent;
}
.batch li i {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f8f3e8;
  border: 1px solid #ae9d86;
  top: 8px;
  left: -5px;
}
.batch li.active {
  color: #8f3c23;
}
.batch li.active i {
  background: #ae4d2c;
  border-color: #ae4d2c;
  box-shadow: 0 0 0 3px #ecd2bf;
}
.batch li.done i {
  background: #78836d;
  border-color: #78836d;
}
.batch li span {
  font-size: 13px;
  font-weight: 750;
}
.batch li p {
  margin: 2px 0 0;
  font-size: 11px;
  color: #6a675c;
}
.batch-foot {
  gap: 8px;
  font-size: 11px;
  color: #615d51;
  border-top: 1px solid var(--line);
  padding-top: 11px;
}
.batch-foot b {
  display: block;
  color: #26261e;
  font: 700 15px var(--mono);
  margin-top: 3px;
}
.practice {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.practice div {
  margin-right: auto;
}
.practice h2 {
  margin-bottom: 0;
}
.practice p {
  width: 100%;
  margin: 6px 0 0;
  color: #633d2a;
  font-size: 13px;
}
.practice p[hidden] {
  display: none;
}
footer {
  font: 700 10px var(--mono);
  color: #655e53;
  letter-spacing: 0.12em;
  display: flex;
  justify-content: space-between;
  padding: 22px 2px;
}
dialog {
  background: #faf7ef;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 15px;
  width: min(495px, calc(100% - 28px));
  max-height: 85vh;
  padding: 22px;
  box-shadow: 0 24px 80px #14161155;
}
dialog::backdrop {
  background: #131713a6;
}
.dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#close {
  font-size: 19px;
  padding: 3px 9px;
}
#modal-body {
  color: #5c5b50;
  font-size: 14px;
  line-height: 1.55;
}
#modal-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
#modal-actions .action {
  min-height: 36px;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
@media (max-width: 1050px) {
  .workbench,
  .telemetry {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
  .console,
  .profile,
  .batch,
  .practice {
    padding: 18px;
  }
  .scene-copy {
    left: 22px;
  }
  .scene-help {
    display: none;
  }
}
@media (max-width: 750px) {
  .workbench,
  .telemetry {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .mast-inner {
    height: 59px;
  }
  .mast-label {
    display: none;
  }
  main {
    padding-top: 13px;
  }
  .viewport {
    height: clamp(420px, 105vw, 510px);
  }
  .scene-copy {
    top: 23px;
    left: 18px;
  }
  .scene-copy h1 {
    font-size: clamp(48px, 12vw, 70px);
  }
  .scene-copy p {
    max-width: 205px;
  }
  .scene-status {
    top: 14px;
    right: 11px;
    font-size: 8px;
    padding: 6px;
  }
  .view-bottom {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
  .console {
    min-height: 475px;
  }
  .plot-wrap {
    height: 144px;
  }
  .stats div {
    padding: 7px 5px;
  }
  .stats strong {
    font-size: 17px;
  }
  .stats span,
  .stats small {
    font-size: 8px;
  }
  .telemetry,
  .practice {
    margin-top: 12px;
  }
}

.arrow {
  display: inline-block;
  width: 11px;
  height: 11px;
  position: relative;
  color: inherit;
  vertical-align: -1px;
}
.arrow::before,
.arrow::after {
  content: '';
  position: absolute;
  display: block;
}
.arrow::before {
  width: 7px;
  height: 7px;
  border-top: 1.4px solid currentColor;
  border-right: 1.4px solid currentColor;
  right: 0;
  top: 0;
}
.arrow::after {
  height: 1.4px;
  width: 12px;
  right: 0;
  top: 5px;
  background: currentColor;
  transform: rotate(-45deg);
}
.action .arrow {
  margin-right: 3px;
}
.viewport.close-view .scene-copy {
  visibility: hidden;
}
@media (max-width: 750px) {
  .scene-copy p {
    max-width: 155px;
  }
}
