/* Station workspace and entry screen. Responsive rules belong to their component; no historical override sheet. */
body {
  background-color: var(--color-background);
  background-image: radial-gradient(ellipse at 5% 0%,#38725f21,transparent 60%),radial-gradient(ellipse at 100% 30%,#4d66531a,transparent 55%),linear-gradient(#85c7b707 1px,transparent 1px),linear-gradient(90deg,#85c7b707 1px,transparent 1px);
  background-size: auto,auto,40px 40px,40px 40px;
}
header {
  min-height: 92px;
  height: auto;
  padding: 18px 36px;
  gap: 24px;
  background: #10262beF;
  border-color: #3c5a56;
  box-shadow: 0 2px 22px #0002;
}
.brand,.header-actions,.runtime {
  flex-shrink: 0;
}
.brand {
  font-size: 36px;
  gap: 12px;
  color: #efbd78;
}
.brand>.ui-icon,.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  padding: 7px;
  border: 1px solid #b58e5688;
  border-radius: 13px;
  background: #473e29;
  color: #ffd592;
}
.brand span {
  font-family: var(--font-display);
  font-size: 23px;
  letter-spacing: 4px;
  font-weight: 700;
}
.brand small {
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 1.1px;
  line-height: 1.5;
  color: #a5bbb4;
}
.chapter {
  min-width: 0;
  font: 11px/1.5 var(--font-body);
  letter-spacing: 1px;
  color: #9dbbb4;
}
.chapter b {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0;
  line-height: 1.5;
  margin-top: 4px;
  color: #e0ece5;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.header-actions button {
  font-size: 14px;
  min-height: var(--control-min);
  white-space: nowrap;
  padding: 10px 13px;
}
.header-actions #player-label {
  font: 12px/1.5 var(--font-body);
  color: #bcdbc8;
  max-width: 125px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.header-actions+.runtime {
  margin-left: 0;
}
.runtime {
  white-space: nowrap;
  border: 1px solid #41695b;
  border-radius: 13px;
  padding: 12px;
  font: 12px/1.5 var(--font-body);
  background: #142f2b;
  color: #b6e1c1;
}
main {
  max-width: 1640px;
  padding: 28px 36px;
}
.mode-switch {
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.mode-switch button {
  font-size: 14px;
  background: #1d393d;
}
.mode-switch button[aria-pressed=true] {
  background: #493f2c;
  border-color: #ddb174;
  color: #ffe0a6;
  box-shadow: inset 0 1px #ffdf9b13,0 3px 0 #1c231b;
}
#orders {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 12px;
  margin-bottom: 26px;
}
.order-button {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  min-height: 100px;
  padding: 16px;
  text-align: left;
  background: linear-gradient(145deg,#1c393e,#142d33);
  border-color: #446461;
  border-radius: var(--radius-panel);
  min-width: 0;
  box-shadow: inset 0 1px #b0e8cd09,0 4px 14px #0001;
}
.order-button>span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  flex: 0 0 34px;
  margin-top: 1px;
  border-radius: 10px;
  background: #2d4e4c;
  border: 1px solid #50756b;
  font: 14px/1 var(--font-code);
  color: #c9decb;
}
.order-button>span .ui-icon {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
}
.order-button>div {
  min-width: 0;
}
.order-button b {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
  overflow-wrap: anywhere;
  color: #d8e9df;
}
.order-button small {
  display: block;
  font: 12px/1.5 var(--font-body);
  margin-top: 7px;
  color: #a2bbb2;
}
.order-button.active {
  background: linear-gradient(135deg,#493f2c,#31392c);
  border: 1px solid #e4b575;
  box-shadow: inset 0 3px #efc47b,0 4px 15px #0002;
}
.order-button.active>span {
  background: #725d36;
  border-color: #c4a16b;
  color: #ffdfa7;
}
.order-button[aria-current=step] b {
  color: #ffe0a7;
}
.order-button.done small,.order-button.done>span {
  color: #afe2bd;
}
.order-button.locked {
  opacity: 1;
  background: #122b31;
  border-color: #345259;
  box-shadow: none;
}
.order-button.locked b {
  color: #91aaa7;
}
.order-button.locked small {
  color: #91aaa7;
}
.order-button.locked>span {
  background: #1c363c;
  color: #9aafa9;
  border-color: #385958;
}
#missions {
  gap: 8px;
  flex-wrap: wrap;
}
.layout {
  gap: 24px;
}
.layout>*,.mission-head>div,.telemetry>section,.key-value>* {
  min-width: 0;
}
.mission-head {
  gap: 16px;
}
.sector {
  flex-shrink: 0;
  font-size: 10px;
  letter-spacing: 1px;
  color: #9bb0ae;
}
.sector b {
  font-size: 22px;
}
h1 {
  font-size: 31px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.6px;
}
h2 {
  font-size: 21px;
  line-height: 1.35;
  letter-spacing: -.2px;
}
.eyebrow {
  font: 11px/1.6 var(--font-body);
  letter-spacing: 1px;
  color: #a1bfb7;
  margin-bottom: 9px;
}
.description {
  font: 15px/1.8 var(--font-body);
  color: #bdcfcb;
  margin: 15px 0 20px;
  min-height: 0;
  max-width: 750px;
}
.level-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  font: 12px/1.6 var(--font-body);
  padding: 9px 12px;
  margin-top: 13px;
  border-radius: 10px;
  color: #f7d49a;
  background: #3e3627;
  border-color: #86734d;
}
.level-status.passed {
  background: #214736;
  border-color: #547e5f;
  color: #c2ebc6;
}
.dispatch {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 14px;
  margin-bottom: 20px;
  padding: 18px;
  border-radius: var(--radius-panel);
  background: linear-gradient(125deg,#3d3829,#2a342a);
  border: 1px solid #8d774b;
  box-shadow: inset 0 1px #ffdf9b0c;
}
.dispatch>div {
  min-width: 0;
}
.dispatch span {
  display: flex;
  align-items: center;
  gap: 7px;
  font: 11px/1.5 var(--font-body);
  letter-spacing: 1px;
  color: #c0b597;
  margin-bottom: 7px;
}
.dispatch span .ui-icon {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
}
.dispatch b {
  font-size: 20px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -.25px;
  color: #ffe1a6;
}
.dispatch p {
  grid-column: 1/-1;
  margin: 3px 0 0;
  font: 13px/1.75 var(--font-body);
  color: #cbbd9e;
}
.dispatch .overdue {
  color: var(--color-error);
}
.mission-rule-cards {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
  margin: 0 0 20px;
}
.mission-rule-card {
  padding: 16px;
  background: #163d3c;
  border: 1px solid #4b7a6e;
  border-radius: var(--radius-panel);
  display: grid;
  grid-template-columns: 34px minmax(0,1fr);
  gap: 4px 12px;
  min-width: 0;
}
.mission-rule-card>.section-badge,.mission-rule-card>.ui-icon {
  grid-row: 1/3;
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  border-radius: 10px;
}
.mission-rule-card b {
  font-size: 15px;
  line-height: 1.5;
  color: #d1ebd7;
  overflow-wrap: anywhere;
}
.mission-rule-card p {
  font: 13px/1.7 var(--font-body);
  color: #abcac0;
  margin: 3px 0 0;
}
.learning-guide {
  padding: 0;
  background: #173b34;
  border: 1px solid #4b7161;
  border-radius: var(--radius-panel);
  overflow: hidden;
  margin-bottom: 20px;
}
.learning-guide>summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 700;
  color: #d6ead8;
  list-style: none;
}
.learning-guide>summary::-webkit-details-marker {
  display: none;
}
.learning-guide>summary::after {
  content: '+';
  font: 21px/1 var(--font-code);
  margin-left: auto;
  color: #aad1b7;
}
.learning-guide[open]>summary::after {
  content: '−';
}
.learning-guide[open]>summary {
  border-bottom: 1px solid #43695a;
}
.guide-tabs {
  background: #112f2b;
  gap: 4px;
  padding: 6px;
  border-bottom: 1px solid #3c5e51;
}
.guide-tabs button {
  font-size: 13px;
  min-width: 0;
  min-height: var(--control-min);
  line-height: 1.4;
  padding: 9px 6px;
  border-radius: 9px;
  box-shadow: none;
  border: 1px solid transparent;
  color: #bfd7c7;
}
.guide-tabs button[aria-pressed=true] {
  background: #335944;
  color: #ffe0a6;
  border-color: #668663;
  box-shadow: none;
}
#guide-content {
  padding: 16px;
  font: 14px/1.8 var(--font-body);
  color: #cce0d0;
}
#guide-content ol {
  padding-left: 22px;
}
#guide-content li {
  margin: 6px 0;
}
#guide-content pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 340px;
  padding: 14px;
  background: #102824;
  border: 1px solid #375949;
  border-radius: var(--radius-control);
}
#guide-content>button {
  font-size: 14px;
  min-height: var(--control-min);
  border-radius: 11px;
  background: #d9a963;
  border-color: #f6cc8b;
  color: #25352a;
}
.scene {
  background: #153038;
  border: 1px solid #476b6b;
  overflow: hidden;
}
.scene-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(130deg,#23454a,#1c3b42);
  border-bottom: 1px solid #406160;
  color: #bad5cf;
  font: 12px/1.5 var(--font-body);
  letter-spacing: .5px;
  flex-wrap: wrap;
}
.scene-top>span {
  display: flex;
  align-items: center;
  gap: 9px;
}
.scene-top label {
  font: 13px/1.5 var(--font-body);
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  letter-spacing: 0;
}
.scene-top select {
  max-width: 250px;
  min-width: 0;
  font-size: 13px;
  letter-spacing: 0;
}
.world-viewport {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  background: #142c34;
}
.scene #world {
  display: block;
  width: 100%;
  height: auto;
}
.scene svg.ui-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
}
.scene-scroll-note {
  font: 12px/1.7 var(--font-body);
  color: #b8d1c8;
  padding: 11px 15px;
  margin: 0;
  background: #17323a;
}
.energy-bar {
  font: 13px/1.6 var(--font-body);
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 14px 16px;
  background: #19373d;
  border-color: #3f6463;
}
.energy-bar span {
  min-width: 0;
}
.energy-bar b {
  font-size: 15px;
  font-weight: 700;
}
.telemetry {
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
  margin-top: 16px;
}
.telemetry>section {
  border: 1px solid #3e6663;
  border-radius: var(--radius-panel);
  padding: 16px;
  background: linear-gradient(145deg,#19373d,#153138);
  min-height: 170px;
  box-shadow: inset 0 1px #dcffe307;
}
.telemetry .eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  line-height: 1.6;
  color: #b8d1c6;
}
.telemetry small {
  font: 13px/1.7 var(--font-body);
  color: #aac3be;
  margin-top: 14px;
}
.key-value {
  font: 13px/1.65 var(--font-code);
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 8px 0;
}
.key-value>* {
  overflow-wrap: anywhere;
}
.key-value b {
  color: #f5cd92;
}
.inspector .key-value span {
  font-size: 13px;
}
.feedback {
  font: 14px/1.8 var(--font-body);
  color: #bbd5cb;
  padding: 18px 1px;
  min-height: 64px;
}
.feedback.error {
  color: var(--color-error);
}
.feedback.success {
  color: #c0e9ba;
}
.next,#next-order {
  font-size: 14px;
  min-height: var(--control-min);
  padding: 11px 15px;
  border-radius: var(--radius-control);
  margin: 0 0 18px;
}
#next-order {
  background: #3b5739;
  border-color: #8bb17c;
  color: #e4f0cf;
}
.code-panel {
  border: 1px solid #4a706a;
  background: #122e34;
  overflow: hidden;
}
.code-header {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 18px;
  gap: 14px;
  background: linear-gradient(145deg,#23474a,#19383e);
  border-color: #456b65;
}
.code-header h2 {
  font-size: 21px;
  line-height: 1.5;
  color: #e4f0e4;
}
.code-header h2>span:not(.section-badge) {
  font: 11px/1.3 var(--font-code);
  border-color: #648876;
  border-radius: 6px;
  padding: 4px 6px;
  margin-left: 5px;
  background: #173d35;
  color: #b6e1bd;
}
.editor-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 1;
}
.code-header button {
  font-size: 14px;
  min-height: var(--control-min);
  padding: 10px 11px;
}
.code-header button .ui-icon {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
}
.code-toolbox {
  padding: 15px 18px;
  background: #19393e;
  border-color: #41645f;
}
.code-toolbox p {
  font: 13px/1.7 var(--font-body);
  color: #b7cfc7;
  margin: 0 0 11px;
}
#code-tokens {
  gap: 7px;
}
#code-tokens button {
  font: 13px/1.5 var(--font-code);
  padding: 8px 10px;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: left;
  background: #294941;
  border-color: #51735e;
  color: #f3d8a7;
  border-radius: 10px;
  box-shadow: 0 2px #0e2928;
}
.editor-wrap {
  height: 400px;
  background: #0c232a;
}
#gutter {
  background: #102a31;
  color: #6e949c;
}
#gutter .current {
  color: #ffe6b8;
  background: #715f38;
  border-radius: 6px;
}
#code-highlight {
  color: #dcebdc;
}
#gutter .hint-line {
  color: #e2f8df;
  background: #316351;
  border-radius: 6px;
}
#code-highlight.hint-line {
  background: linear-gradient(#295446,#295446) no-repeat;
  background-size: 100% var(--code-line-height);
  background-position: 0 calc(18px + var(--code-line-height) * var(--hint-line-index));
}
#code {
  caret-color: #ffd392;
}
.py-comment {
  color: #9dbfa5;
}
.py-keyword {
  color: #d1b7ff;
}
.py-string {
  color: #f2cc8e;
}
.py-number {
  color: #a9e1ba;
}
.py-builtin {
  color: #99ddeb;
}
.line-status {
  font: 12px/1.6 var(--font-code);
  padding: 11px 18px;
  background: #1a3b40;
  border-color: #3f6660;
  color: #b0cbc2;
}
.controls {
  display: grid;
  grid-template-columns: minmax(0,1.2fr) repeat(2,minmax(0,1fr));
  gap: 8px;
  padding: 16px 18px 0;
}
.controls button {
  font-size: 14px;
  min-height: var(--control-min);
  white-space: normal;
  padding: 10px;
}
.playback {
  font: 13px/1.6 var(--font-body);
  min-height: 62px;
  padding: 10px 18px 14px;
  gap: 12px;
  flex-wrap: wrap;
  color: #b5ccc3;
}
.playback label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
}
.playback select {
  font-size: 13px;
  min-height: var(--control-min);
  padding: 10px 34px 10px 11px;
  margin: 0;
}
.playback button {
  font-size: 14px;
  padding: 9px 12px;
  background: #2e3d3e;
  border: 1px solid #7d7061;
  border-radius: 11px;
  box-shadow: none;
  color: #eed5bd;
}
.verify {
  display: flex;
  font-size: 14px;
  min-height: var(--control-min);
  margin-bottom: 16px;
  background: #2d5748;
  border-color: #608b70;
  color: #cce9cd;
}
.order-controls {
  padding: 0 18px 16px;
}
.order-controls button {
  display: flex;
  width: 100%;
  font-size: 14px;
  min-height: var(--field-min);
  background: linear-gradient(180deg,#badc9a,#98c77e);
  border-color: #c5e8a7;
  color: #253c27;
  box-shadow: 0 3px #47623a;
}
.order-controls button:hover:not(:disabled) {
  background: linear-gradient(180deg,#d0e9b3,#b0d798);
}
.order-controls p,.skip-playback {
  font: 13px/1.7 var(--font-body);
  color: #b3cbbd;
}
.order-controls p {
  margin-top: 12px;
}
.skip-playback {
  display: flex;
  border: 1px dashed #607962;
  border-radius: 10px;
  background: #193530;
  margin: 0 18px 16px;
  padding: 9px 12px;
  min-height: var(--control-min);
  box-shadow: none;
  text-align: left;
}
.console {
  background: #0f2b32;
  border-color: #3e615e;
  padding: 16px 18px;
}
.console .eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
}
.console pre {
  line-height: 1.8;
  color: #b7d9c4;
  min-height: var(--control-min);
}
.editor-help details {
  font: 14px/1.8 var(--font-body);
  border-color: #3c615e;
  padding: 14px 18px;
  background: #132f35;
}
.editor-help summary {
  font-size: 14px;
  color: #c4ddd0;
}
.editor-help code {
  overflow-wrap: anywhere;
  font-family: var(--font-code);
}
.editor-help dt {
  color: #f2ce9a;
  overflow-wrap: anywhere;
}
.editor-help dd {
  color: #adc9bf;
}
.editor-help p {
  color: #bed3c8;
}
kbd {
  background: #2a4544;
  border: 1px solid #587369;
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 2px 5px;
  font: 12px var(--font-code);
  color: #e4e9cf;
}
.order-report {
  background: linear-gradient(145deg,#1a3c34,#153139);
  border: 1px solid #618064;
  padding: 20px;
}
.order-report h2 {
  font-size: 23px;
  line-height: 1.4;
  color: #e4f0db;
}
.order-report .eyebrow {
  color: #b0c9b2;
}
.report-metrics {
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 12px;
  margin: 18px 0;
}
.report-metrics>div {
  background: #102d2a;
  border: 1px solid #46664d;
  border-radius: 13px;
  padding: 14px;
}
.report-metrics b {
  font-size: 21px;
  line-height: 1.5;
  color: #d7edbe;
}
.report-metrics span {
  font: 12px/1.6 var(--font-body);
  color: #a9c2ac;
  margin-top: 6px;
}
.order-report table,.order-report th {
  font: 13px/1.7 var(--font-body);
}
.order-report th {
  font-weight: 600;
  color: #b4d0ba;
}
.order-report td {
  overflow-wrap: anywhere;
  color: #cee0d1;
}
.order-report td,.order-report th {
  padding: 12px 7px;
  border-color: #3a5a4c;
}
.order-report>p:last-child {
  font: 13px/1.75 var(--font-body);
  color: #adc5b1;
}
.order-report.failed {
  border-color: #b28b70;
}
.report-metrics .overdue {
  border-color: #b7876e;
  background: #45352a;
}
.report-metrics .overdue b {
  color: #ffccb4;
}
.workspace-short-label {
  display: none;
}
.workspace-links {
  display: none;
}
#scene,#editor-title,#feedback {
  scroll-margin-top: 82px;
}
.welcome {
  max-width: 1460px;
  min-height: calc(100vh - 170px);
  grid-template-columns: minmax(0,1.1fr) minmax(360px,.9fr);
  align-items: center;
  gap: 64px;
  padding: 44px 44px 54px;
}
.welcome-copy {
  position: relative;
  min-width: 0;
}
.hero-kicker,.welcome-copy>.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: 12px/1.6 var(--font-body);
  letter-spacing: 1.3px;
  color: #b6d9bc;
  margin: 0 0 13px;
}
.hero-kicker .ui-icon {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
}
.welcome-copy h1 {
  font-size: clamp(36px,3.8vw,55px);
  line-height: 1.12;
  letter-spacing: -1.6px;
  margin: 0 0 19px;
  color: #f0f3dc;
  max-width: 650px;
  font-weight: 700;
}
.welcome-copy h1 em {
  font-style: normal;
  color: #efc47e;
}
.welcome-copy>p:not(.eyebrow):not(.hero-kicker) {
  font: 16px/1.8 var(--font-body);
  color: #b6cfc5;
  max-width: 550px;
  margin: 0 0 18px;
}
.welcome-missions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 20px 0 0;
}
.welcome-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #4f7567;
  border-radius: 11px;
  padding: 10px 12px;
  background: #193b34;
  color: #c8e0cb;
  font: 13px/1.4 var(--font-body);
}
.welcome-feature .ui-icon {
  width: 19px;
  height: 19px;
  flex-basis: 19px;
  color: #e5c581;
}
.welcome-art {
  position: relative;
  isolation: isolate;
  min-height: 250px;
  max-width: 540px;
  margin: 15px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.welcome-art::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 16px 40px 8px;
  border: 1px solid #7dc8a421;
  border-radius: 50%;
  background: radial-gradient(ellipse,#5cb28c20,transparent 67%);
  transform: rotate(-12deg);
}
.welcome-art::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 78%;
  height: 65%;
  border: 1px dashed #7fb1933a;
  border-radius: 50%;
  transform: rotate(17deg);
}
.welcome-art img {
  display: block;
  width: 300px;
  max-width: 65%;
  height: 270px;
  object-fit: contain;
  filter: drop-shadow(0 22px 26px #0004);
  animation: robi-float 6s ease-in-out infinite;
}
.orbit-tag {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #61856e;
  border-radius: var(--radius-control);
  background: #183b35ee;
  box-shadow: 0 8px 24px #0003;
  font: 13px/1.4 var(--font-body);
  color: #d9ead3;
  max-width: 180px;
}
.orbit-tag .ui-icon {
  color: #f0c77f;
}
.orbit-tag--scan {
  left: 1%;
  top: 24%;
}
.orbit-tag--code {
  right: 0;
  top: 12%;
}
.orbit-tag--energy {
  right: 4%;
  bottom: 14%;
}
.welcome-story {
  font: 13px/1.8 var(--font-body);
  color: #aac7b7;
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}
.hero-mission-count {
  display: flex;
  align-items: center;
  gap: 9px;
  font: 13px/1.6 var(--font-body);
  color: #bad4bd;
  margin-top: 14px;
}
.entry-card {
  position: relative;
  background: linear-gradient(145deg,#21433f,#17363c);
  border: 1px solid #658370;
  border-radius: 24px;
  padding: 28px;
  box-shadow: inset 0 1px #e3ffdc16,0 24px 60px #0003;
  min-width: 0;
}
.entry-card::before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 32px;
  right: 32px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg,transparent,#e0c07d,transparent);
}
.entry-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 20px;
}
.entry-heading>.section-badge {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
  border-radius: 14px;
  background: #3f5437;
  border-color: #8a9b65;
  color: #e2eab1;
}
.entry-heading .eyebrow {
  margin: 0 0 4px;
}
.entry-heading h2 {
  font-size: 25px;
  line-height: 1.4;
  margin: 0;
}
.entry-card h2 {
  font-size: 25px;
  line-height: 1.4;
  margin-bottom: 22px;
}
.entry-card .entry-heading h2 {
  margin-bottom: 0;
}
.entry-card>label,.entry-card .field-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 14px/1.6 var(--font-body);
  color: #cee0cf;
  margin: 16px 0 8px;
}
.entry-card input:not([type=checkbox]),.entry-card>select {
  display: block;
  width: 100%;
  min-height: var(--field-min);
  font: 15px/1.5 var(--font-body);
  border: 1px solid #658575;
  border-radius: var(--radius-control);
  background-color: #102e32;
  color: #edf2df;
  padding: 11px 14px;
  outline-offset: 3px;
  box-shadow: inset 0 2px 5px #0001;
}
.entry-card>select {
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23c4d9cc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
.entry-card input::placeholder {
  color: #8aaba1;
}
.entry-help {
  font: 13px/1.75 var(--font-body);
  color: #abc9b6;
  margin: 16px 0;
}
.entry-submit {
  width: 100%;
  min-height: 52px;
  font-size: 15px;
  border-radius: 13px;
  margin-top: 1px;
}
.entry-card small {
  display: block;
  font: 12px/1.7 var(--font-body);
  color: #a9c6b3;
  margin-top: 16px;
}
footer {
  max-width: 1640px;
  font: 12px/1.7 var(--font-body);
  color: #99b8ad;
  gap: 12px 24px;
  flex-wrap: wrap;
  padding: 14px 36px 25px;
}
footer button {
  font-size: 13px;
  min-height: var(--control-min);
  padding: 7px 10px;
  color: #c2d8c6;
  background: none;
  border: 1px solid #425f58;
  box-shadow: none;
  border-radius: 9px;
}
.station-bay .bay-status-led {
  filter: drop-shadow(0 0 3px currentColor);
}
.entry-card>select {
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
}
.entry-privacy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  color: #adccba;
}
.entry-privacy>span {
  display: inline-flex;
  flex: 0 0 20px;
  margin-top: 2px;
}
.entry-privacy small {
  margin: 0 !important;
  font-size: 12px;
  line-height: 1.7;
}
.welcome-shortcut {
  display: none;
}
.brand .brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
}
#player-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.editor-help summary>[data-icon] {
  display: inline-flex;
  vertical-align: middle;
  margin-right: 9px;
}
.batch-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #53776e;
  border-radius: 10px;
  background: #153a39;
  color: #c9e1d4;
  font: 13px/1.5 var(--font-body);
  letter-spacing: 0;
}
.parameter-report {
  border-top: 1px solid #47675b;
  margin-top: 20px;
  padding-top: 16px;
}
.parameter-report h3 {
  font-size: 15px;
  margin: 0 0 12px;
  color: #d8ead5;
}
.parameter-report>div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
  font-size: 13px;
  padding: 10px 0;
  border-top: 1px solid #36534c;
}
.parameter-report code {
  font: 12px/1.8 var(--font-code);
  overflow-wrap: anywhere;
  color: #efce95;
}
.mission-rule-card code {
  display: inline-block;
  font: 13px/1.5 var(--font-code);
  color: #f6d396;
  background: #132e30;
  border: 1px solid #557464;
  padding: 4px 8px;
  border-radius: 7px;
}
.primary:disabled:hover {
  background: linear-gradient(180deg,#efcb8d,#d7a255);
  transform: none;
  box-shadow: inset 0 1px #fff4;
}
.order-controls button:disabled:hover {
  background: linear-gradient(180deg,#b9e5bf,#8ebd9d);
  transform: none;
  box-shadow: none;
}
.station-bay.busy .bay-status-led {
  animation: bay-heartbeat 1.8s ease-in-out infinite;
}
.station-bay .bay-detail {
  opacity: .65;
}
.station-bay .bay-ring {
  transform-box: fill-box;
  transform-origin: center;
}
.station-bay.is-active .bay-status-led {
  animation: bay-heartbeat 1.8s ease-in-out infinite;
}
@keyframes robi-float {
  0%,100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-7px) rotate(1deg);
  }
}
@keyframes bay-heartbeat {
  0%,100% {
    opacity: .55;
  }
  50% {
    opacity: 1;
  }
}
.layout {
  grid-template-columns: minmax(var(--diagram-column-min),1.2fr) minmax(420px,1fr);
}
.scene #world {
  min-width: var(--diagram-min);
}
.world-viewport {
  max-width: 100%;
}
.scene-scroll-note {
  display: none;
}
.scene.is-scrollable .scene-scroll-note {
  display: block;
}
.battery:focus-visible .battery-body {
  stroke: #ffe3a3;
  stroke-width: 4px;
}
.editor-wrap,#code,#code-highlight,#gutter {
  font: var(--font-size-code)/var(--code-line-height) var(--font-code);
}
#gutter div {
  height: var(--code-line-height);
}
.eyebrow,.code-header .eyebrow,.hero-kicker,.welcome-copy>.eyebrow {
  font-size: var(--secondary-size);
}
.dispatch span,.scene-top>span,.order-button small {
  font-size: var(--secondary-size);
}
.orbit-tag {
  font-size: var(--secondary-size);
}
.dispatch p,.mission-rule-card p,.code-toolbox p,.entry-help,.welcome-story {
  font-size: var(--instruction-size);
}
#guide-content {
  font-size: var(--instruction-size);
}
#guide-content pre {
  font-size: 15px;
  line-height: 24px;
}
.editor-help dd,.editor-help p {
  font-size: var(--instruction-size);
}
.editor-help dt {
  font-size: 14px;
}
#missions .course-note,#missions .course-chapters li {
  font-size: var(--instruction-size);
}
#missions .course-heading .eyebrow {
  font-size: var(--secondary-size);
}
.console pre {
  font-size: 14px;
}
.order-controls p,.order-report>p:last-child {
  font-size: var(--instruction-size);
}
.skip-playback {
  font-size: 14px;
}
#code-tokens button {
  min-height: var(--control-min);
  font-size: 14px;
}
.editor-help summary {
  min-height: var(--control-min);
  padding: 9px 0;
}
.test-results .test-result {
  min-height: var(--control-min);
  font-size: 14px;
}
.welcome-feature {
  min-height: var(--control-min);
}
.editor-keyboard-help {
  padding: 12px 24px;
  margin: 0;
  color: #b7cec2;
  font-size: 12px;
  line-height: 1.65;
  border-top: 1px solid #3b5654;
}
.run-result {
  margin: 16px 24px 24px;
  scroll-margin-top: 85px;
}
.run-result .feedback {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.7;
}
.run-result .feedback:focus-visible {
  outline: 3px solid #f3cf8e;
  outline-offset: 3px;
}
.run-result .test-results:empty {
  display: none;
}
.run-result>button {
  margin-top: 10px;
  width: 100%;
  min-height: var(--control-min);
  white-space: normal;
}
.report-link {
  display: flex;
  align-items: center;
  min-height: var(--control-min);
  margin-top: 12px;
  color: #f3cf8e;
  font-size: 15px;
  line-height: 1.5;
}
.empty-memory {
  color: #acc6bb;
  font-size: 14px;
}
#order-report {
  scroll-margin-top: 85px;
}
@media(max-width:980px) {
  .welcome-shortcut {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: var(--control-min);
    padding: 10px 14px;
    margin-top: 16px;
    border: 1px solid #71997b;
    border-radius: var(--radius-control);
    background: #294c3b;
    color: #e2efd8;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
  }
}
@media(max-width:1240px) {
  header {
    padding-left: 26px;
    padding-right: 26px;
    gap: 16px;
  }
  .header-actions #player-label {
    display: none;
  }
  .chapter {
    max-width: 180px;
  }
  .welcome {
    gap: 35px;
    padding: 40px 30px;
  }
  .welcome-copy h1 {
    font-size: 43px;
  }
  .welcome-art {
    max-width: 470px;
  }
  .orbit-tag {
    padding: 9px;
    max-width: 145px;
  }
  .orbit-tag--scan {
    left: 0;
  }
  .orbit-tag--code {
    right: 0;
  }
  .entry-card {
    padding: 25px;
  }
}
@media(max-width:1149px) {
  .chapter {
    display: none;
  }
  #orders {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .order-button {
    min-height: 90px;
  }
  .layout {
    gap: 20px;
  }
  .welcome {
    grid-template-columns: minmax(0,1.1fr) minmax(330px,.9fr);
    gap: 26px;
  }
  .welcome-copy h1 {
    font-size: 39px;
  }
  .welcome-copy>p:not(.eyebrow):not(.hero-kicker) {
    font-size: 15px;
  }
  .welcome-feature {
    font-size: 12px;
    padding: 9px 10px;
  }
  .orbit-tag {
    max-width: 135px;
  }
  .welcome-art img {
    height: 250px;
  }
}
@media(max-width:980px) {
  .code-panel {
    margin-top: 0;
    overflow: clip;
  }
  .mobile-run:not([hidden]) {
    position: sticky;
    top: max(calc(var(--control-min) + 21px), var(--editor-viewport-top, 0px));
    z-index: 4;
    padding: 8px 16px;
    background: #19393e;
    border-bottom: 1px solid #456b65;
  }
  .mobile-run #run {
    width: 100%;
    min-height: var(--control-min);
    white-space: normal;
  }
  .controls {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .workspace-links {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 10px 0;
    background: #0e272df5;
    border-bottom: 1px solid #476b60;
    gap: 8px;
    margin-bottom: 20px;
  }
  .workspace-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 1;
    min-width: 0;
    text-align: center;
    padding: 10px 6px;
    min-height: var(--control-min);
    font-size: 13px;
    color: #dcebd7;
    text-decoration: none;
    border: 1px solid #5c7e6d;
    border-radius: 11px;
    background: #24473d;
    line-height: 1.4;
  }
  .workspace-links .ui-icon {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }
  .editor-wrap {
    height: 380px;
    --font-size-code: 16px;
  }
  .welcome {
    grid-template-columns: minmax(0,1fr);
    gap: 28px;
    max-width: 740px;
    padding: 32px 28px;
    min-height: 0;
  }
  .welcome-copy h1 {
    font-size: 43px;
    max-width: 680px;
  }
  .welcome-copy>p:not(.eyebrow):not(.hero-kicker) {
    max-width: 680px;
  }
  .welcome-missions {
    margin-top: 16px;
  }
  .welcome-art {
    min-height: 220px;
    width: 100%;
    max-width: 500px;
    margin-top: 12px;
  }
  .welcome-art img {
    height: 220px;
    width: 260px;
  }
  .entry-card {
    max-width: 680px;
    width: 100%;
    margin: 0 auto;
    padding: 28px;
  }
  .orbit-tag--scan {
    left: 3%;
  }
  .orbit-tag--code {
    right: 3%;
  }
  .orbit-tag--energy {
    right: 7%;
  }
}
@media(max-width:700px) {
  header {
    gap: 12px;
    padding: 14px 16px;
    min-height: 84px;
    flex-wrap: wrap;
  }
  .brand {
    flex: 1;
    min-width: 165px;
    font-size: 30px;
    gap: 9px;
  }
  .brand>.ui-icon,.brand-mark {
    width: 35px;
    height: 35px;
    flex-basis: 35px;
    padding: 6px;
    border-radius: 11px;
  }
  .brand span {
    font-size: 19px;
    letter-spacing: 3px;
  }
  .brand small {
    font-size: 8px;
    letter-spacing: .8px;
  }
  .header-actions {
    gap: 7px;
    max-width: 100%;
    margin-left: auto;
  }
  .header-actions button {
    font-size: 14px;
    padding: 10px;
    min-height: var(--control-min);
  }
  .header-actions button .ui-icon {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }
  .runtime {
    display: none;
  }
  main {
    padding: 20px 12px;
  }
  .welcome {
    padding: 28px 18px;
    gap: 24px;
    max-width: 620px;
  }
  .hero-kicker,.welcome-copy>.eyebrow {
    letter-spacing: 1px;
  }
  .welcome-copy h1 {
    font-size: 35px;
    letter-spacing: -1px;
    margin-bottom: 16px;
  }
  .welcome-copy>p:not(.eyebrow):not(.hero-kicker) {
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
  }
  .welcome-missions {
    gap: 7px;
  }
  .welcome-feature {
    font-size: 12px;
    padding: 8px 10px;
  }
  .welcome-feature .ui-icon {
    width: 17px;
    height: 17px;
    flex-basis: 17px;
  }
  .welcome-art {
    min-height: 205px;
    margin: 9px 0 0;
    max-width: 100%;
  }
  .welcome-art img {
    height: 205px;
    width: 240px;
    max-width: 65%;
  }
  .welcome-art::before {
    inset: 10px 25px;
  }
  .welcome-art::after {
    width: 85%;
  }
  .orbit-tag {
    padding: 8px;
    gap: 6px;
    border-radius: 10px;
  }
  .orbit-tag .ui-icon {
    width: 17px;
    height: 17px;
    flex-basis: 17px;
  }
  .orbit-tag--scan {
    left: 0;
    top: 25%;
  }
  .orbit-tag--code {
    right: 0;
    top: 10%;
  }
  .orbit-tag--energy {
    right: 0;
    bottom: 9%;
  }
  .welcome-story {
    text-align: left;
    margin-top: 4px;
  }
  .entry-card {
    padding: 22px;
    border-radius: var(--radius-card);
  }
  .entry-heading {
    gap: 11px;
    margin-bottom: 18px;
  }
  .entry-heading h2,.entry-card h2 {
    font-size: 23px;
  }
  .entry-heading>.section-badge {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }
  #orders {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
  }
  .order-button {
    gap: 9px;
    padding: 12px;
    min-height: 104px;
  }
  .order-button>span {
    width: 29px;
    height: 29px;
    min-width: 29px;
    flex-basis: 29px;
    border-radius: 9px;
    font-size: 12px;
  }
  .order-button b {
    font-size: 13px;
    line-height: 1.5;
  }
  .order-button small {
    line-height: 1.5;
    margin-top: 5px;
  }
  .mode-switch button {
    font-size: 14px;
    padding: 10px 13px;
  }
  .mission-head h1 {
    font-size: 28px;
    line-height: 1.25;
  }
  .sector {
    display: none;
  }
  .description {
    font-size: 15px;
    line-height: 1.8;
  }
  .level-status {
    font-size: 12px;
    padding: 8px 10px;
  }
  .dispatch {
    padding: 15px;
    gap: 12px 9px;
  }
  .dispatch span {
    letter-spacing: .6px;
  }
  .dispatch b {
    font-size: 17px;
  }
  .dispatch p {
    line-height: 1.75;
    margin-top: 5px;
  }
  .mission-rule-cards {
    grid-template-columns: minmax(0,1fr);
    gap: 10px;
  }
  .mission-rule-card {
    padding: 14px;
  }
  .telemetry {
    grid-template-columns: minmax(0,1fr);
    gap: 12px;
  }
  .telemetry>section {
    min-height: 0;
    padding: 16px;
  }
  .scene-top {
    padding: 13px 14px;
    gap: 10px;
  }
  .scene-top label {
    flex: 1;
    max-width: 100%;
  }
  .scene-top select {
    flex: 1;
    max-width: 100%;
    font-size: 13px;
  }
  #world {
    min-width: 640px;
  }
  .energy-bar {
    font-size: 12px;
    gap: 7px 12px;
    padding: 12px 14px;
  }
  .code-header h2 {
    font-size: 20px;
  }
  .code-header {
    padding: 16px;
    gap: 12px;
  }
  .editor-actions {
    gap: 7px;
  }
  .code-header button {
    font-size: 14px;
    padding: 9px 11px;
  }
  .code-toolbox {
    padding: 14px 16px;
  }
  .controls {
    padding: 14px 16px 0;
  }
  .controls button {
    gap: 6px;
    padding: 10px 7px;
  }
  .controls button .ui-icon {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }
  .playback {
    padding-left: 16px;
    padding-right: 16px;
  }
  .guide-tabs button {
    padding: 9px 4px;
  }
  .guide-tabs {
    gap: 3px;
    padding: 5px;
  }
  #guide-content {
    padding: 14px;
  }
  .report-metrics {
    grid-template-columns: minmax(0,1fr);
    gap: 9px;
  }
  .report-metrics>div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
  }
  .report-metrics span {
    margin: 0;
  }
  .report-metrics b {
    font-size: 20px;
  }
  .order-report {
    padding: 16px;
  }
  .order-report h2 {
    font-size: 22px;
  }
  .order-report table {
    min-width: 0;
    table-layout: fixed;
    font-size: 12px;
  }
  .order-report th {
    font-size: 12px;
  }
  .order-report th:nth-child(1) {
    width: 57px;
  }
  .order-report th:nth-child(3) {
    width: 49px;
  }
  .order-report th:nth-child(4) {
    width: 60px;
  }
  .order-report td,.order-report th {
    padding: 11px 5px;
  }
  footer {
    padding: 15px 16px;
    gap: 8px 20px;
    font-size: 12px;
  }
}
@media(max-width:380px) {
  #orders {
    grid-template-columns: minmax(0,1fr);
  }
  .order-button {
    min-height: 74px;
    padding: 12px;
    align-items: center;
  }
  .order-button>div {
    display: flex;
    flex: 1;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 10px;
    flex-wrap: wrap;
  }
  .order-button small {
    margin-top: 0;
  }
  .order-button b {
    font-size: 13px;
  }
  .welcome-art {
    min-height: 175px;
  }
  .welcome-art img {
    height: 175px;
    max-width: 67%;
  }
  .orbit-tag {
    padding: 7px;
  }
  .welcome-copy h1 {
    font-size: 32px;
  }
  .header-actions button {
    font-size: 13px;
  }
  .entry-card {
    padding: 19px;
  }
  .entry-heading h2 {
    font-size: 21px;
  }
  .dispatch {
    gap: 10px 6px;
    padding: 13px;
  }
  .dispatch b {
    font-size: 15px;
  }
  .controls button {
    font-size: 13px;
    gap: 5px;
  }
  .controls button .ui-icon {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media(max-width:1279px) {
  .layout {
    grid-template-columns: minmax(0,1fr);
  }
  .code-panel {
    margin-top: 0;
  }
  .workspace-links {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 10px 0;
    background: #0e272df5;
    border-bottom: 1px solid #476b60;
    gap: 8px;
    margin-bottom: 20px;
  }
  .workspace-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 1;
    min-width: 0;
    text-align: center;
    padding: 10px 6px;
    min-height: var(--control-min);
    font-size: 13px;
    color: #dcebd7;
    text-decoration: none;
    border: 1px solid #5c7e6d;
    border-radius: 11px;
    background: #24473d;
    line-height: 1.4;
  }
  .workspace-links .ui-icon {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }
}
@media(max-width:700px) {
  .workspace-full-label {
    display: none;
  }
  .workspace-short-label {
    display: inline;
  }
  .workspace-links .ui-icon {
    display: none;
  }
  .orbit-tag {
    max-width: 124px;
  }
  .guide-tabs button {
    font-size: 13px;
  }
  .controls button {
    font-size: 14px;
  }
}
@media(max-width:380px) {
  .orbit-tag {
    max-width: 112px;
  }
  .workspace-links a {
    font-size: 12px;
    gap: 4px;
  }
  .workspace-links .ui-icon {
    display: none;
  }
}
@media (max-width:700px) {
  .run-result {
    margin: 16px;
  }
  .editor-keyboard-help {
    padding: 12px 16px;
  }
}
