:root {
  color-scheme:dark;
  --bg:#11171b;
  --panel:#1a2228;
  --deep:#141c21;
  --line:#344149;
  --sub:#aab8bf;
  --ink:#eef3f4;
  --orange:#ff984f;
  --blue:#8dc2d6;
  --mono:"SFMono-Regular",Menlo,Consolas,"Liberation Mono",monospace;
  font:16px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  background:var(--bg);
  color:var(--ink);
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
}

button,input,select {
  font:inherit;
}

button,a,input,select {
  touch-action:manipulation;
}

button,select {
  color:inherit;
  cursor:pointer;
}

button {
  border:0;
  background:none;
}

a {
  color:inherit;
}

button:hover:not(:disabled),select:hover {
  filter:brightness(1.14);
}

button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible,canvas:focus-visible {
  outline:2px solid var(--orange);
  outline-offset:3px;
}

button:disabled,input:disabled,select:disabled {
  opacity:.42;
  cursor:default;
}

[hidden] {
  display:none!important;
}

#space {
  position:absolute;
  inset:0;
}

#model {
  width:100%;
  height:100%;
  display:block;
  touch-action:none;
  cursor:grab;
}

#model:active {
  cursor:grabbing;
}

#markers {
  position:absolute;
  inset:0;
  pointer-events:none;
  overflow:hidden;
}

.marker {
  position:absolute;
  z-index:1;
  transform:translate(-50%,-50%);
  white-space:nowrap;
  display:flex;
  align-items:center;
  gap:6px;
  border:1px solid #91a0a9b0;
  background:#172229ed;
  border-radius:3px;
  padding:4px 8px;
  color:#f0f3f2;
  font:500 .67rem var(--mono);
  pointer-events:auto;
}

.marker:before {
  content:"";
  background:var(--orange);
  width:4px;
  height:4px;
  border-radius:50%;
}

.leader {
  position:absolute;
  height:1px;
  transform-origin:0 50%;
  background:#b3bfc5a3;
}

.anchor {
  position:absolute;
  width:5px;
  height:5px;
  margin:-2.5px;
  border:1px solid #ffcfa5;
  background:#965830;
  border-radius:50%;
}

.range {
  min-width:0;
}

.range label,.throttle-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:4px;
}

.range label {
  font-size:.76rem;
  font-weight:570;
}

.range output {
  font-size:.73rem;
  color:var(--orange);
}

input[type=range] {
  appearance:none;
  display:block;
  width:100%;
  height:18px;
  background:transparent;
  margin:3px 0 0;
  cursor:pointer;
}

input[type=range]::-webkit-slider-runnable-track {
  height:3px;
  border-radius:4px;
  background:linear-gradient(to right,#cf8751 var(--fill,0%),#44535c var(--fill,0%));
}

input[type=range]::-moz-range-track {
  height:3px;
  background:#44535c;
}

input[type=range]::-moz-range-progress {
  height:3px;
  background:#cf8751;
}

input[type=range]::-webkit-slider-thumb {
  appearance:none;
  width:12px;
  height:12px;
  margin-top:-4.5px;
  background:#f9b37c;
  border-radius:2px;
  border:1px solid #fbd3b2;
}

input[type=range]::-moz-range-thumb {
  width:11px;
  height:11px;
  background:#f9b37c;
  border-radius:2px;
  border:1px solid #fbd3b2;
}

#plate {
  width:22px;
  height:22px;
  flex-shrink:0;
}

.throttle-row input {
  min-width:0;
}

dialog {
  width:min(540px,calc(100% - 24px));
  padding:18px;
  border:1px solid #55656e;
  border-radius:8px;
  color:var(--ink);
  background:#1a242b;
}

dialog::backdrop {
  background:#090f14b8;
}

.dlghead {
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-bottom:1px solid var(--line);
  padding-bottom:10px;
}

.dlghead h2 {
  margin:0;
  font-size:1.15rem;
}

.dlghead button {
  font:24px/1 sans-serif;
}

#dlgBody p {
  font-size:.88rem;
  color:#d0dbe0;
}

#dlgBody dl>div {
  display:flex;
  justify-content:space-between;
  gap:12px;
  border-bottom:1px solid var(--line);
  padding:5px 0;
  font-size:.83rem;
}

#dlgBody dd {
  text-align:right;
  margin:0;
}

#dlgBody a {
  font-size:.8rem;
  color:#a1d9e9;
}

.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0 }
.boost-case { padding:5px; background:linear-gradient(160deg,#424951,#252a32 26%,#11161b 78%,#525b64); border:1px solid #53606a; border-radius:11px 6px 11px 6px; box-shadow:inset 0 1px 0 #73808b65,0 2px 6px #0005 }
.boost-bezel { padding:7px 10px 6px; border:1px solid #0b1115; border-radius:7px 4px; background:linear-gradient(155deg,#333d46,#222b34 56%,#192029); box-shadow:inset 0 1px 0 #55616a }
.boost-title { display:flex; align-items:center; gap:6px; padding-bottom:6px }
.boost-title h2 { font:italic 800 .78rem/1 Arial,sans-serif; letter-spacing:.075em; color:#d5dbdf; margin:0 }
.fastmark { font:italic 900 .85rem/1 Arial; letter-spacing:-.13em; color:#fa8b4e; padding-right:3px }
.screw { margin-left:auto; width:7px; height:7px; background:linear-gradient(132deg,#727c84 41%,#202831 44%,#202831 58%,#89939b 62%); border-radius:50%; box-shadow:0 0 0 1px #11181d }
.boost-face { display:grid; grid-template-columns:minmax(0,1fr) 32px; gap:7px }
.boost-lcd { display:grid; grid-template-columns:1.05fr 1fr; gap:3px 8px; padding:5px 8px; color:#96efe4; background:repeating-linear-gradient(0deg,#14393e39 0 1px,transparent 1px 3px),linear-gradient(150deg,#12383d,#08252c); border:2px solid #0d161c; border-radius:4px; box-shadow:inset 0 2px 6px #051216,0 1px 0 #74808a; font-family:var(--mono) }
.setpoint { position:relative; min-width:0; display:grid; grid-template-columns:1fr auto; align-items:end }
.setpoint label,.boost-readings span { color:#91c5c5; text-transform:uppercase; font:600 .53rem var(--mono); letter-spacing:.06em }
.setpoint label { grid-column:1/-1 }.setpoint svg { display:block; width:100%; max-width:76px; height:29px; filter:drop-shadow(0 0 2px #52d8c855) }.setpoint small { font-size:.62rem; margin-left:3px }
.boost-readings { display:flex; flex-direction:column; justify-content:space-evenly; border-left:1px solid #55858866; padding-left:7px }
.boost-readings>div { display:flex; align-items:baseline; justify-content:space-between; gap:3px }.boost-readings b { font:600 .83rem var(--mono); letter-spacing:-.055em }
#boostTrack { grid-column:1/-1; height:5px; position:relative; margin:3px 0 1px; background:repeating-linear-gradient(90deg,transparent 0 6px,#0b2d33 6px 8px),linear-gradient(90deg,#77e9db var(--level,0%),#2b555a var(--level,0%)) }
#boostTrack:after { content:""; position:absolute; left:clamp(0px,var(--target,68%),calc(100% - 2px)); height:7px; top:-1px; width:2px; background:#eac18b }
.boost-rocker { display:grid; gap:4px }.boost-rocker button,.boost-keys button { border:1px solid #11181d; background:linear-gradient(#505d69,#303b45); box-shadow:inset 0 1px #84909a85,0 1px 1px #080c10; border-radius:3px; color:#ebf1f5 }
.boost-rocker button { font:600 16px/1 var(--mono); min-height:22px }.boost-rocker button:active,.boost-keys button:active { background:#28333c; transform:translateY(1px) }
.boost-keys { margin-top:6px; display:flex; gap:8px; align-items:center }.boost-keys button { margin-left:auto; font:550 .61rem var(--mono); padding:3px 8px }
.hardware-led { display:flex; align-items:center; gap:4px; font:600 .52rem var(--mono); color:#a0abb2 }.hardware-led:before { content:""; width:4px; height:4px; border-radius:50%; background:#4d555b }.hardware-led.lit:before { background:#80ded1; box-shadow:0 0 4px #80ded1 }#ventLamp.lit:before { background:#ffa56d; box-shadow:0 0 5px #ffa56d }
#pods { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:5px; padding:8px 8px 10px; background:linear-gradient(#151d23,#1a232b); border-block:1px solid #334047 }
.pod { text-align:center; min-width:0; display:flex; align-items:center; flex-direction:column }.pod-face {position:relative;width:min(100%,108px);aspect-ratio:1;filter:drop-shadow(0 2px 2px #0009)}
.pod label { font-size:.65rem; line-height:1.1; color:#c3d0d7; margin:4px 0 3px }.pod output { font:550 .74rem var(--mono); color:#f3f5f4 }.pod output.warn { color:#ff9679 }

/* The stage fills the viewport. Only the floating controls intercept pointer events. */
html,body {width:100%;height:100%;overflow:hidden}
.viewer {
  --edge:clamp(12px,1.35vw,24px); --rail:clamp(232px,19vw,286px);
  --foot:32px; --dock-height:124px;
  position:relative; isolation:isolate; width:100%; height:100vh; height:100dvh;
  overflow:hidden; background:radial-gradient(ellipse at 42% 42%,#45565b 0%,#2d3b42 43%,#19252c 82%);
}
#space {background-image:radial-gradient(#bacbcc27 .7px,transparent 1px);background-size:22px 22px}
#stageFrame {position:absolute;inset:85px calc(var(--rail) + 2 * var(--edge)) calc(var(--dock-height) + var(--foot) + 19px) var(--edge);pointer-events:none}
header,.topline,.instruments,.dock,.stage-bottom,footer,.settings,#partInfo,#notice {position:absolute}
header {display:flex;align-items:center;justify-content:space-between;gap:12px;top:0;left:var(--edge);right:var(--edge);height:44px;border-bottom:1px solid #afc4ce38;pointer-events:none}
header>* {pointer-events:auto}
.identity,.brand,.headtools,.languages,.topline p,.session,.panelheading,.viewtools,.operations,.ignition,.segments,.camera-select,.cycle-heading,#banks,footer {display:flex;align-items:center}
.identity {gap:12px;font:600 10px var(--mono);letter-spacing:.08em;color:#c5d1d6}
.identity>i {height:13px;border-left:1px solid #70818a}
.identity em {color:#eb9b64;font-style:normal}
.brand {font:19px/1 Arial,sans-serif;letter-spacing:-.07em;color:#f3f6f7}
.brand b {font-weight:850}.brand span {margin-left:.16em;color:#acbcc3}.brand img {width:27px;height:24px;margin-right:6px}
.headtools {gap:8px}.headtools>button,.languages button {font:550 .73rem var(--mono);padding:4px 6px}
#help {border:1px solid #7d8b91;border-radius:50%;font:600 .66rem var(--mono);width:18px;height:18px;padding:0}
.headtools svg,.viewtools svg {display:block;width:17px;height:17px}
.headtools #volume {width:58px;margin:0}
.languages {border:1px solid #657781;border-radius:4px;overflow:hidden}
.languages .active {background:#dce7ea;color:#142129}
.topline {left:var(--edge);top:60px;pointer-events:none}
.topline h1 {margin:0;color:#e5ecee;font:italic 600 clamp(26px,3vw,48px)/.98 Arial,sans-serif;letter-spacing:-.065em}
.topline h1 strong {font-weight:850;color:white}
.topline p {margin:8px 0 11px;gap:6px;font:600 .65rem var(--mono);letter-spacing:.09em;color:#b5c5ce}
.topline p i {width:3px;height:3px;background:#a5b5bc;border-radius:50%}
.session {gap:7px;color:#c5d3d9;font:.68rem var(--mono)}
.session b {font-weight:500}.session>span:last-child {color:#9eafb8}
.dot {width:6px;height:6px;background:#92a0a9;border-radius:50%}.on .dot {background:#83dea6;box-shadow:0 0 6px #8bedad77}.fault .dot {background:#fe7d64}
.glass,#notice,#partInfo,.viewtools {background:linear-gradient(125deg,#203039ed,#152128f2);border:1px solid #60707b9c;border-radius:7px;box-shadow:0 4px 18px #09111630}
.instruments {top:55px;right:var(--edge);width:var(--rail);overflow:hidden}
.panelheading {min-height:31px;gap:7px;padding:6px 11px;border-bottom:1px solid #415059}
.panelheading h2 {margin:0;font-family:inherit;font-weight:600;font-size:.82rem;line-height:1.2}
.panelheading>i {color:var(--orange);font:bold 17px/1 var(--mono)}
.panelheading>span {margin-left:auto;font:600 .6rem var(--mono);letter-spacing:.1em;color:var(--sub)}
#revDial {width:100%;position:relative;padding:3px 4px 7px;text-align:center}
.tach-face {position:relative;margin:auto;width:min(100%,205px);height:clamp(83px,15vh,143px)}
.rpm {display:flex;align-items:baseline;justify-content:center;gap:5px;margin-top:-3px}
.rpm b {font:600 19px/1 var(--mono);letter-spacing:-.045em;font-variant-numeric:tabular-nums}
.rpm small {font:.6rem var(--mono);color:var(--sub)}
#pods {padding:6px;gap:4px;background:#15202885}.pod-face {max-width:84px}
.pod label {font-size:10px;line-height:1.1}.pod output {font-size:11px}
#readouts {padding:3px 10px 6px}
.sensor {display:grid;grid-template-columns:1fr 24px auto;align-items:center;gap:3px;border-bottom:1px solid #80919a27;min-height:23px}
.sensor:last-child {border:0}.sensor canvas {width:24px;height:14px}.sensor label {font-size:.72rem;color:#c7d3d9}
.sensor output {white-space:nowrap;font:.74rem var(--mono)}.sensor output small {color:#afbdc4;font-size:.59rem}
.dock {left:var(--edge);right:var(--edge);bottom:var(--foot);display:grid;grid-template-columns:clamp(210px,19vw,268px) minmax(0,1fr);align-items:end;gap:10px;pointer-events:none}
.dock>* {pointer-events:auto}
.deck {overflow:hidden}
.drive {display:grid;grid-template-columns:auto 1fr 1fr;gap:clamp(14px,3vw,48px);align-items:center;padding:11px 15px}
.range label {color:#d5e0e5;font-size:.77rem}.range output {font:.74rem var(--mono)}
.ignition,.segments {gap:4px}.ignition button,.segments button,.operations>button,.model-modes #explode,select,.viewtools button {
  appearance:none;border:1px solid #4d606c;background:#27363f;border-radius:4px;
  color:#e4ecef;font-family:inherit;font-weight:550;font-size:.74rem;line-height:1.2;padding:6px 10px;cursor:pointer
}
select {padding-right:21px;background:#27363f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='m1 1 4 4 4-4' fill='none' stroke='%23abc0c8' stroke-width='1.5'/%3E%3C/svg%3E") right 6px center/9px auto no-repeat}
.ignition button {min-height:37px;font-weight:650;white-space:nowrap}
#run {min-width:76px;background:#ff9855;border-color:#ffc192;color:#1b1715}
#run.running {background:#305043;border-color:#79a98b;color:#dcf7e4}
#rev:hover:not(:disabled) {filter:none;border-color:#8498a3}
.segments button.active,#rev.active,.viewtools .active,.operations button[aria-expanded=true] {border-color:#b48461;background:#3e332b;color:#ffc593}
.operations {border-top:1px solid #495a636b;padding:8px 15px;gap:12px;flex-wrap:wrap}
.camera-select {gap:6px}.camera-select span,.option>label,.option>span {font:.65rem var(--mono);color:#b4c6ce;text-transform:uppercase;letter-spacing:.035em}
.operations .tools-tab {margin-left:auto}
.settings {bottom:calc(var(--foot) + var(--dock-height) + 8px);right:var(--edge);width:min(310px,calc(100% - 24px));z-index:6}
.options {display:grid;padding:10px 12px;gap:9px}
.option {display:flex;align-items:center;justify-content:space-between;gap:8px}
.option .segments {flex-wrap:wrap;justify-content:flex-end}
.dismiss {font:20px/1 sans-serif;color:#d4dfe3;margin-left:auto}
.stock-short,.fuel-keys,.shift-selector abbr {display:none}
.stage-bottom {left:var(--edge);right:calc(var(--rail) + var(--edge) * 2);bottom:calc(var(--foot) + var(--dock-height) + 9px);display:flex;align-items:end;justify-content:space-between;gap:8px;pointer-events:none}
.stage-bottom>* {pointer-events:auto}
.cylinders {padding:6px 9px;min-width:154px}
.cycle-heading {justify-content:space-between;gap:9px;font:500 .62rem var(--mono);color:#c6d3d9}
#cycleAngle {flex:none;inline-size:7ch;text-align:right;white-space:nowrap;font-size:.59rem;font-variant-numeric:tabular-nums;color:#ffb37d}
#banks {gap:4px;margin-top:4px}.cylcell {flex:1;text-align:center;padding:2px 6px;background:#1a252c;border:1px solid #45565e;border-bottom:2px solid var(--stroke);border-radius:3px;color:#b6c3ca;font:600 .72rem var(--mono)}.cylcell.firing {background:#573b2c;color:#ffe7ce}
.viewtools {display:flex;gap:1px;padding:2px;box-shadow:none}.viewtools button {background:transparent;border-color:transparent;padding:4px 7px;min-width:28px;display:grid;place-items:center;font:17px/1 var(--mono)}
footer {left:var(--edge);right:var(--edge);height:var(--foot);bottom:0;gap:12px;color:#a6bbc5;font:.6rem var(--mono)}
footer a {color:#c3d1d8;text-decoration:none}.viewbar {margin-right:auto}.viewbar strong {font-weight:600;color:#dce5e9}
footer button {color:inherit;font:inherit}.viewbar,.orbit {white-space:nowrap}
#partInfo,#notice {left:var(--edge);top:154px;max-width:min(310px,90vw);padding:10px 26px 10px 12px;z-index:5}
#partInfo b {font-size:.89rem}#partInfo p {font-size:.78rem;color:#c0cfd6;margin:4px 0}
#partVal {color:#ffa56d;font:.75rem var(--mono)}#closePart {position:absolute;top:4px;right:4px;font-size:19px}
#notice {top:51px;left:50%;transform:translateX(-50%);color:#ffcfac;font:.74rem var(--mono);text-align:center;padding:6px 10px}
#notice.failed {background:#482a25;color:#ffdbcc;border-color:#d67b55}
#failureHeading {display:block;margin-bottom:3px;color:#fff4ea;font:bold .96rem/1.2 system-ui,sans-serif}
#failureSupport {display:grid;justify-items:center;gap:3px;margin-top:6px;border-top:1px solid #a56349;padding-top:6px;font:normal .85rem/1.3 system-ui,sans-serif}
#failureSupport small {font-size:.74rem}
.support-links {display:flex;gap:6px;margin-top:2px}
.support-links a {display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:2px 10px;border:1px solid #b77959;border-radius:5px;background:#39231f;color:#fff4ea;font-weight:600;text-decoration:none}
.support-links a:hover {background:#614032}
.support-links b {color:#ffb077}
.viewer.clean-view>:not(#space),.viewer.expanded>:not(#space):not(header):not(#viewDialog) {display:none}
.viewer.clean-view #stageFrame,.viewer.expanded #stageFrame {inset:0}
@media(min-width:761px) and (max-width:950px){.camera-select span {display:none}.operations,.drive {padding-inline:8px;gap:6px}.ignition button,.operations button {padding-inline:6px}.sensor canvas {display:none}.sensor {grid-template-columns:1fr auto}}
@media(max-height:700px) and (min-height:521px) and (min-width:761px){.tach-face {height:80px}.pod-face {max-width:61px}.sensor {min-height:18px}.instruments {top:48px}.panelheading {min-height:26px}.rpm b {font-size:16px}}
@media(max-width:760px),(max-height:520px){
  .viewer {--edge:10px;--foot:25px;--dock-height:110px}
  header {height:38px;gap:4px}.identity>i,.identity>span {display:none}.headtools {gap:4px}.headtools>button {font-size:10px}
  .headtools #volume {width:36px}.brand {font-size:15px}.brand img {width:20px;margin-right:4px}.languages button {font-size:10px}
  .topline {top:49px}.topline h1 {font-size:27px}.topline p {font-size:9px;margin:5px 0 7px}.session {font-size:9px}
  #stageFrame {inset:103px 4px calc(var(--foot) + var(--dock-height) + 44px)}
  .dock {display:block}.deck {width:100%}.drive {grid-template-columns:auto 1fr 1fr;padding:7px 8px;gap:8px}
  .ignition {gap:3px}.ignition button {padding:5px 7px;min-height:32px;font-size:12px}#run {min-width:0}
  .range label,.range output {font-size:11px}#plate {width:15px;height:15px}.range input {height:17px}
  .operations {padding:6px 8px;gap:5px}.operations button,select,.segments button {font-size:11px;padding:5px}
  select {padding-right:17px}.camera-select span {display:none}.segments {gap:2px}
  .operations .tools-tab {margin-left:auto}
  .stage-bottom {right:var(--edge);bottom:calc(var(--foot) + var(--dock-height) + 7px)}
  .cylinders {min-width:121px;padding:4px 6px}.cycle-heading {font-size:9px}.cylcell {font-size:10px}
  .settings {position:absolute;z-index:6;left:auto;right:var(--edge);width:min(285px,calc(100% - 20px));bottom:calc(var(--foot) + var(--dock-height) + 6px);top:auto;max-height:calc(100dvh - var(--dock-height) - var(--foot) - 48px);overflow-y:auto;overscroll-behavior:contain}
  .boost-case .dismiss {display:block}.boost-case .screw {display:none}
  .panelheading .dismiss {margin-left:7px}.settings .dismiss {margin-left:auto}.tach-face {height:85px}.pod-face {max-width:59px}
  footer {gap:6px;font-size:9px}.orbit {display:none}.viewbar {overflow:hidden;text-overflow:ellipsis}
  #partInfo {top:114px}.marker {padding:3px 5px;font-size:9px}#notice {top:102px;width:max-content;max-width:90vw}
}
@media(max-width:390px){.operations {gap:4px;padding-inline:5px}.operations button {font-size:10px;padding:5px 4px}.headtools #openSpec {max-width:72px;line-height:1.05}.drive {gap:5px}.deck .camera-select select {max-width:85px}}
@media(max-height:520px) and (min-width:560px){
  #stageFrame {inset:34px 105px calc(var(--foot) + var(--dock-height) + 2px) 115px}
  .viewer {--edge:8px;--foot:19px}.topline {top:42px}.topline h1 {font-size:20px}.topline p {font-size:8px}
  .deck {display:grid;grid-template-columns:1fr auto}.drive {gap:8px}.operations {max-width:260px;justify-content:flex-end;border:0}
  .cylinders {min-width:96px}.stage-bottom {align-items:center}
}

.tach-face canvas,.pod-face canvas {display:block;width:100%;height:100%}
.tach-hand,.pod-hand {position:absolute;display:block;transform-origin:0 50%;pointer-events:none;will-change:transform;transition:transform 32ms linear}
.tach-hand {left:50%;top:var(--hand-top);width:var(--hand-length);height:6px;margin-top:-3px}
#shiftGhost {opacity:0;transition:none;clip-path:inset(0 0 0 50%)}
#shiftGhost::after {display:none}
.tach-hand::before,.pod-hand::before {content:"";position:absolute;inset:0 0 0 -12%;background:#ff9859}
.tach-hand::before {clip-path:polygon(0 0,100% 25%,100% 75%,0 100%)}
.tach-hand::after {content:"";position:absolute;left:-4px;top:-1px;width:8px;height:8px;border-radius:50%;background:#d2dadd}
.pod-hand {left:50%;top:50%;width:39.5%;height:4%;margin-top:-2%}
.pod-hand::before {left:-18%;background:#ff6b4c;clip-path:polygon(0 10%,100% 50%,0 90%)}
.pod-face::after {content:"";position:absolute;left:46.5%;top:46.5%;width:7%;height:7%;background:#1d282e;border:1px solid #536069;border-radius:100%}
.pod-face .warn-light {position:absolute;left:63%;top:77%;width:3.5%;height:3.5%;border-radius:50%;background:#482b28}
.pod-face .warn-light.on {background:#ff5b43}
.cut-lamp {visibility:hidden;position:absolute;left:50%;top:var(--cut-y,82%);transform:translate(-50%,-50%);padding:2px 4px;border-radius:3px;background:#a13d26;color:#fff4e8;font:bold 9px/1 var(--mono)}
.at-limit .cut-lamp {visibility:visible}
#knockLamp {display:flex;align-items:center;gap:5px;width:max-content;margin:0 auto 4px;padding:2px 6px;border-radius:3px;background:#152025;color:#b9c4c7;font:600 9px/1.2 var(--mono)}
#knockLamp i {width:12px;height:12px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#925054,#54252a 75%);box-shadow:inset 0 0 0 1px #ae74774d}
#knockLamp.lit {background:#52282d;color:#ffd9d9}
#knockLamp.lit i {background:radial-gradient(circle at 35% 30%,#fff0e9,#ff454b 45%,#e91d30 90%);box-shadow:0 0 6px 1px #ff454bc9}
.time-controls {display:flex;align-items:center;gap:6px}.time-controls>span {font:.65rem var(--mono);letter-spacing:.035em;text-transform:uppercase;color:#b4c6ce}
#times button {font-family:var(--mono);padding-inline:7px;white-space:nowrap}
@media(max-width:760px),(max-height:520px){.time-controls {order:1;flex:1 0 100%;justify-content:space-between;border-top:1px solid #495a636b;padding-top:5px}#times {gap:4px}#times button {min-width:34px}}
@media(max-height:520px) and (min-width:560px){.time-controls {border:0;padding:0}.operations {max-width:304px}}

.viewtools #explode {display:flex;align-items:center;gap:4px;font-weight:550;font-family:inherit;font-size:.68rem;line-height:1.1}

.cylcell.faulty {outline:1px solid #ff896a;outline-offset:0;color:#ffe0cc;background:#603329}

.fuel-select {display:inline-flex;align-items:center;gap:6px;flex:none;padding:2px 2px 2px 8px;border:1px solid #53696d;border-radius:6px;background:#101b20}
.fuel-select span {color:#b9c9cd;font:600 .67rem var(--mono)}
.road-controls .fuel-select select {min-height:30px;padding:3px 20px 3px 7px;color:#ffd2a6;border-color:#665646;background-color:#332d27}
.short-label {display:none}
@media(min-height:850px),(min-height:740px) and (min-width:1200px) {#pods {grid-template-columns:repeat(2,minmax(0,1fr));row-gap:6px}.pod-face {max-width:82px}}

.cylcell small {display:none}
.cycle-events {display:none}
.show-strokes + .cycle-events {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;
  min-height:13px;margin-top:3px;font:550 9px/13px var(--mono);white-space:nowrap}
#banks.show-strokes .cylcell {border-bottom-width:3px;color:var(--stroke);min-width:68px;padding-inline:3px}
#banks.show-strokes small {display:block;inline-size:12ch;margin-inline:auto;white-space:nowrap;font:500 9px/1.25 var(--mono);color:#e2e8eb}
#banks.show-strokes .firing {background:#574923;color:#ffdf60}
@media(max-width:760px),(max-height:520px) {
  .stage-bottom .viewtools {margin-left:auto}
  .cylinders:has(.show-strokes) {position:absolute;bottom:37px;left:0}
  #banks.show-strokes .cylcell {min-width:63px;padding-inline:2px}
}

.road-controls,#roadControls,.gear-box,.splits {display:flex;align-items:center;gap:8px}
.road-controls {padding:5px 15px;border-bottom:1px solid #495a636b;min-height:30px}
#roadControls {flex:1;flex-wrap:wrap}
.gear-box {gap:3px}.gear-box #gear {font: bold .92rem var(--mono);color:#ffd2a6;min-width:2ch;text-align:center}
.road-controls button,.road-controls select {font:600 .72rem var(--mono);padding:3px 7px}
.splits {gap:12px;color:#99acb6;font: .68rem var(--mono);font-variant-numeric:tabular-nums}
.splits b {color:#dae9e9;font-weight:600}
#dialPair.road {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end}
#dialPair.road .tach-face {height:min(10vh,86px)}
#speedDial {text-align:center;padding:3px 4px 7px}
#speedNeedle::before {background:#8ad9cf;background:color-mix(in srgb,#8ad9cf,#ff6545 var(--wheelspin,0%))}
#slipLamp {position:absolute;left:50%;top:var(--slip-y,36%);transform:translate(-50%,-50%);border-radius:3px;padding:1px 3px;background:#ffda64;color:#332800;box-shadow:0 0 5px #ffda6470;font:700 clamp(7px,.66vw,9px)/1 var(--mono)}
.road-controls [hidden],#dialPair [hidden] {display:none}
@media(max-width:760px),(max-height:520px){
 .road-controls {padding:3px 7px;gap:5px}.road-controls button,.road-controls select {font-size:10px;padding:4px}
 #roadControls {gap:4px}.splits {gap:5px;font-size:9px}.splits span {white-space:nowrap}
}

.gear-box button {min-width:28px;min-height:26px;border:1px solid #52636c;border-radius:4px;background:#24313a}
@media(max-width:760px),(max-height:520px){.gear-box button {min-width:28px;min-height:27px}.road-controls select {max-width:118px}}

.test-selector,.shift-selector {display:inline-flex;align-items:stretch}
.test-selector {padding:2px;background:#101b20;border:1px solid #53696d;border-radius:6px;gap:2px}
.test-selector button,.shift-selector button {border:0;border-radius:3px;color:#b9c9cd;min-height:30px}
.test-selector button {padding:4px 12px;font-weight:700}
.test-selector .active {background:#9cd6cb;color:#172d2e}
.shift-selector button.active {background:#43575b;color:#f4fffe}
kbd {font:500 10px var(--mono);padding:1px 3px;border:1px solid currentColor;border-radius:3px;opacity:.72}
.road-controls button kbd,.ignition button kbd {margin-left:3px}
#gearBox[hidden],#gearBox button[hidden] {display:none}
.gear-box button,#rev,#brakePedal {touch-action:none;user-select:none;-webkit-touch-callout:none}
.gear-box button {background:#283d43;color:#d9eeeb;font-size:16px}
#run::after {content:'S';font:500 10px var(--mono);padding:1px 3px;border:1px solid currentColor;border-radius:3px;margin-left:5px;opacity:.7}
@media(max-width:760px),(max-height:520px){
 .road-controls {flex-wrap:wrap}.road-controls button {min-height:28px}
 .road-controls #roadControls {display:contents}.road-controls #roadControls[hidden] {display:none}
 .splits {flex:1;justify-content:flex-end;font-size:10px}
 .test-selector button {padding:5px 9px}.shift-selector button {padding:4px 6px}
 .road-test .drive {grid-template-columns:1fr 1fr}
 .road-test .ignition {grid-column:1/-1;display:grid;grid-template-columns:auto minmax(0,1.15fr) minmax(0,1fr) auto;gap:4px}
 .road-test #rev {height:47px;font-size:15px;color:#ffe2c4;background:#44372d;border:1px solid #bc946d}
 .road-test #rev.active {background:#795337}
 .road-test #gearBox {justify-self:end;gap:5px}
 .road-test .gear-box button {height:47px;width:50px;padding:2px;font-size:22px}
 .road-test .gear-box #gear {font-size:20px}
}
@media(pointer:coarse){.test-selector kbd,.ignition kbd,#run::after {display:none}}
.run-results {display:contents}
@media(min-width:360px) and (max-width:460px){
  .run-results {flex:1 0 100%;display:flex;align-items:center;gap:6px}
  .splits {justify-content:space-between}
}
@media(max-width:359px){
  .splits {order:1;flex:1 0 100%;justify-content:space-between}

}
@media(max-height:520px) and (min-width:560px){
 .deck {display:block}
 .road-test .drive {grid-template-columns:auto minmax(72px,.75fr) auto 1fr 1fr auto;align-items:center}
 .road-test .ignition {display:contents}
 .road-test .drive>.range {order:1}.road-test #gearBox {order:2}
 .deck .operations {max-width:none;justify-content:flex-start}
 .deck .time-controls {flex:0 1 auto;order:0}
}

.splits b {font-variant-numeric:tabular-nums;display:inline-block;min-width:5.6ch}
.splits .measuring {color:#95e4d7}
@media(max-width:760px),(max-height:520px){
  .viewer {--instrument-top:73px;--instrument-height:112px}
  .topline {top:42px;left:var(--edge);right:var(--edge);display:flex;align-items:center;justify-content:space-between}
  .topline h1 {font-size:23px}.topline p {display:none}
  .instruments {top:var(--instrument-top);left:var(--edge);right:var(--edge);width:auto;display:grid;
    grid-template-columns:1.16fr repeat(4,minmax(0,1fr));align-items:center;padding:5px 5px 0}
  .instruments:has(.road) {grid-template-columns:repeat(6,minmax(0,1fr))}
  .instruments .panelheading,.pod label,.sensor label,.sensor canvas {display:none}
  .instruments #dialPair,.instruments #pods {display:contents}
  #revDial,#speedDial {min-width:0;padding:0 2px;text-align:center}
  .instruments #dialPair .tach-face {width:100%;height:clamp(34px,10vw,54px)}
  .instruments .rpm {flex-direction:column;align-items:center;gap:0;margin:0}
  .rpm b {font-size:13px}.rpm small {font-size:9px}
  .tach-hand {height:3px;margin-top:-1.5px}.tach-hand::after {width:5px;height:5px;left:-2px}
  .cut-lamp {padding:1px 2px;font-size:7px}
  .pod-face {width:min(100%,clamp(32px,10vw,53px))}
  .short-label {display:block;font:500 10px/1.2 var(--mono);color:#bfced4;text-align:center}
  .pod .short-label {margin:2px 0}.pod output {font-size:clamp(9px,2.7vw,11px);white-space:nowrap;line-height:1.15}
  #readouts {order:2;grid-column:1/-1;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;
    margin:5px -5px 0;padding:4px 2px;background:#132027;border-top:1px solid #42535d}
  .sensor {display:flex;flex-direction:column;justify-content:center;gap:1px;border:0;min-width:0;min-height:0}
  .sensor+.sensor {border-left:1px solid #394a54}
  .sensor output {font-size:10px;line-height:1.25}.sensor output small {font-size:9px}
  #stageFrame {top:calc(var(--instrument-top) + var(--instrument-height) + 4px)}
  #partInfo,#notice {top:calc(var(--instrument-top) + var(--instrument-height) + 4px)}
  .fuel-select {margin-left:auto;gap:3px;padding-left:6px}.fuel-select span {font-size:10px}
  .road-controls .fuel-select select {min-height:28px}
}
@media(max-height:520px) and (min-width:560px){
  .viewer {--instrument-top:41px}
  .topline {top:49px;right:auto;display:block}.topline h1 {font-size:18px}.topline .session {margin-top:5px}
  .instruments {left:125px;padding-top:3px;grid-template-columns:1.16fr repeat(4,minmax(0,1fr)) 2.9fr}
  .instruments:has(.road) {grid-template-columns:repeat(6,minmax(0,1fr)) 2.9fr}
  .instruments #dialPair .tach-face {height:33px}.pod-face {width:32px}
  .instruments .rpm {flex-direction:row;justify-content:center;gap:2px}
  .pod .short-label {margin:0}.short-label {font-size:9px}.pod output {font-size:10px}
  #readouts {order:0;grid-column:auto;align-self:stretch;grid-template-columns:repeat(3,minmax(0,1fr));
    align-content:center;row-gap:3px;margin:-3px -5px 0 2px;padding:3px;border-top:0;border-left:1px solid #42535d}
  .sensor+.sensor {border-left:0}
  .fuel-select {margin-left:0}
  #stageFrame {left:5px;right:5px}
}

@media(max-width:480px) and (max-height:700px){
  .viewer {--instrument-top:40px;--foot:18px;--edge:6px}
  .topline {display:none}
  .road-controls {padding:2px 5px}
  .road-test .drive {padding:4px 6px;row-gap:2px}
  .road-test #rev,.road-test .gear-box button {height:38px;min-height:38px}
  .operations {padding:3px 5px;gap:3px}
  .time-controls {padding-top:2px}
  .operations .segments button,.operations>button {padding-block:3px}
  #stageFrame {bottom:calc(var(--foot) + var(--dock-height) + 32px)}
}
@media(min-width:560px) and (max-width:740px) and (max-height:520px){
  .road-controls .splits {position:fixed;left:var(--edge);top:94px;display:grid;gap:4px;width:108px;padding:5px 6px;
    background:#152128ed;border:1px solid #53696d;border-radius:4px}
  .splits span {display:flex;justify-content:space-between}
  .deck .time-controls>span {display:none}
  .deck .operations {gap:4px;padding-block:4px}.deck .operations button {padding-inline:4px}
  .deck .camera-select select {max-width:86px}
}
@media(min-width:761px) and (max-width:1199px) and (min-height:521px) and (max-height:849px){
  .pod label {display:none}
  .pod .short-label {display:block;margin:4px 0 3px;font-size:10px;color:#c3d0d7}
}

#gearBox #neutral {display:grid;place-content:center;gap:1px;min-width:36px;padding:2px 4px;line-height:1;background:#1a2a31}
#gearBox #neutral[aria-pressed=true] {border-color:#86c5b8;background:#253e3c}
#gearBox #neutral[aria-pressed=true] #gear {color:#ace8d7}
#gearTarget {font:600 10px/1 var(--mono);color:#bfced4}
@media(max-width:400px){.road-test #gearBox {gap:3px}.road-test #gearBox button {width:clamp(36px,11vw,44px)}}

#brakePedal {align-self:stretch;background:#442f30;border-color:#976968;color:#f6d8d1}
#brakePedal.active {background:#8c4941;border-color:#f5a08c;color:#fff4ed}
@media(max-width:480px){.road-test #rev,.road-test #brakePedal {padding-inline:3px;font-size:clamp(11px,3.2vw,15px)}.road-test .ignition kbd,.road-test #run::after {display:none}}

#tuningPanel {position:relative;display:grid;gap:4px;min-width:0}
#tuningSwitches {display:flex;align-items:stretch;flex-wrap:wrap;gap:3px}
#tuningSwitches .fuel-select {margin:0;padding:2px 4px;gap:3px}
#tuningSwitches .fuel-select select {min-width:0;max-width:90px;padding:4px 16px 4px 5px}
#tuningSwitches #oilCooler {margin:0}
.dock:has([data-popup][aria-expanded=true]) {z-index:7}
@media(max-width:760px),(max-height:520px){
  #tuningPanel {margin-bottom:3px;gap:2px}
  #tuningSwitches .fuel-select {display:none}
  #tuningSwitches .fuel-keys {display:flex}
  #tuningSwitches button,#boostPanel button {touch-action:none;user-select:none;-webkit-touch-callout:none}
  #tuningSwitches .boost-tab {padding:3px 6px;border:1px solid #53696d;border-radius:4px;background:#17262d;color:#a6e2d9;font:700 11px var(--mono)}
  .boost-tab::after {content:'▾';margin-left:3px}
  .boost-tab[aria-expanded=true]::after {content:'▴'}
  #mobileFuels {position:absolute;bottom:calc(100% + 3px);left:0;z-index:2;display:grid;grid-template-columns:repeat(4,1fr);gap:3px;background:#1a2931;padding:5px;border:1px solid #53696d;border-radius:5px}
  #mobileFuels button {min-width:42px;min-height:36px;font:600 12px var(--mono)}
  #tuningSwitches #knockLamp {align-self:center;margin:0;font-size:8px}
  #boostPanel {padding:2px}
  .boost-bezel {display:grid;align-items:center;grid-template-columns:42px minmax(0,1fr) auto;gap:4px;padding:2px 4px}
  .boost-title {padding:0}.boost-title h2 {font-size:9px}
  .boost-title .fastmark,.boost-title .screw {display:none}
  .boost-face {grid-template-columns:minmax(0,1fr) auto;gap:4px}
  .boost-lcd {grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:2px 4px;gap:1px 3px}
  .boost-readings {padding-left:3px}.boost-readings b {font-size:10px}
  .setpoint svg {height:16px}.setpoint small {font-size:8px}
  #boostTrack {height:3px;margin:0}
  .boost-rocker {display:flex;align-items:stretch;flex-direction:row-reverse;gap:2px}
  .boost-rocker button {min-width:32px;min-height:32px}
  .boost-keys {display:grid;grid-template-columns:auto auto;gap:1px 3px;margin:0}
  .hardware-led {gap:2px;font-size:7px}
  .boost-keys button {grid-column:1/-1;width:100%;margin:0;min-height:24px;padding:2px}
  .stock-full {display:none}.stock-short {display:inline}
  #partInfo,#notice {top:calc(var(--instrument-top) + var(--instrument-height) + 4px)}
}
@media(max-width:375px){
  #fuelDisclosure span {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  #fuelDisclosure::before {content:'⛽︎';margin-right:2px}
  .brand {display:grid;grid-template-columns:18px auto;column-gap:4px;font-size:12px}
  .brand img {grid-row:span 2;width:18px;margin:0}
  .brand span {margin:0}
}
#viewer #portraitPrompt[open] {display:grid;justify-items:center;gap:12px;width:min(380px,90vw);margin:auto;padding:24px;text-align:center}
#portraitPrompt::backdrop {background:#121d24}
#portraitPrompt h2 {margin:0;font:650 20px/1.2 system-ui,sans-serif}
#portraitPrompt p {margin:0;color:#b9c9cf;font:14px/1.4 system-ui,sans-serif}
#portraitPrompt i {display:block;width:23px;height:36px;border:2px solid #93d6c9;border-radius:5px}
@media(max-width:440px){
  .headtools {gap:2px}.headtools>button,.languages button {padding-inline:3px}
  .headtools #openSpec {max-width:72px;line-height:1.05}
}

.oil-switch {display:inline-flex;align-items:center;justify-content:center;gap:5px;margin-left:auto;padding:3px 6px;min-height:24px;border:1px solid #53696d;border-radius:4px;background:#1a2931;color:#c5d2d3;font:600 10px var(--mono)}
.oil-switch i {position:relative;width:22px;height:12px;border-radius:8px;background:#4b575e;flex:none}
.oil-switch i::after {content:'';position:absolute;top:2px;left:2px;width:8px;height:8px;border-radius:50%;background:#c9d1d1}
.oil-switch[aria-checked=true] {border-color:#72b9ad;color:#b5eee2}
.oil-switch[aria-checked=true] i {background:#378672}
.oil-switch[aria-checked=true] i::after {left:12px;background:#d6fff1}
.cooler-short {display:none}
#tuningSwitches .oil-switch {padding:3px 5px;min-height:30px}
#tuningSwitches .cooler-full {display:none}
#tuningSwitches .cooler-short {display:inline}

#launchSettings {display:flex;align-items:stretch;gap:0;pointer-events:auto}
#launchSettings[hidden],#launchSetup[hidden] {display:none}
#launchSwitch {margin:0;padding:4px 8px;min-height:30px;font-size:12px;border-radius:5px 0 0 5px}
#launchDisclosure {display:grid;place-items:center;min-width:32px;padding:4px;color:#bfdbd7;background:#1a2931;border:1px solid #53696d;border-left:0;border-radius:0 5px 5px 0}
#launchDisclosure i {width:8px;height:8px;border:solid currentColor;border-width:0 2px 2px 0;transform:translateY(-2px) rotate(45deg)}
#launchDisclosure[aria-expanded=true] i {transform:translateY(2px) rotate(225deg)}
#launchSetup {position:absolute;bottom:calc(100% + 4px);left:0;z-index:2;display:grid;gap:10px;width:min(252px,calc(100vw - 2 * var(--edge)));padding:10px;background:#1a2931}
#launchSetup small {font-size:11px;line-height:1.35;color:#beced0}
#noLiftSwitch {margin-left:5px;padding:4px 8px;white-space:nowrap;font-size:12px}
#noLiftSwitch.cutting {background:#773b20;border-color:#ffc78d;color:#fff4db}
#noLiftSwitch.cutting i {background:#e9964f}

.pod-face {container-type:inline-size}
.pod-name {position:absolute;top:59%;left:5%;right:5%;color:#eaf1f3;font:700 clamp(7px,16cqi,12px)/1 Arial,sans-serif;white-space:nowrap;text-shadow:0 1px 2px #000}
@media (max-width:760px) and (min-height:521px) {
  .instruments:has(#dialPair.road) #readouts {grid-template-columns:repeat(4,minmax(0,1fr))}
}
.phone-only,#pedalSliders {display:none}
.viewtools:has(#labelPage[hidden]) {display:none}
.model-modes {display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.model-modes #explode {display:flex;align-items:center;gap:4px;border:1px solid #53696d;border-radius:4px;background:#24343c}
.model-modes #explode.active {border-color:#b48461;background:#3e332b;color:#ffc593}
#labelPage {font:600 11px var(--mono);white-space:nowrap}

@media (max-width:600px) and (orientation:portrait) {
  .viewer {--edge:8px;--foot:max(8px,env(safe-area-inset-bottom));--instrument-top:46px}
  header {height:42px}
  .headtools {gap:4px}
  .headtools>button {display:grid;place-items:center;min-width:40px;height:40px}
  #identity {gap:5px}
  .brand img {width:22px;margin:0}
  .brand b,.brand span {display:none}
  #identity .topline {position:static;display:grid;gap:2px}
  .topline h1 {font-size:18px}
  .session {font-size:9px;letter-spacing:0;white-space:nowrap;gap:4px}

  .instruments,.instruments:has(.road) {
    display:block;padding:4px 5px 0;background:linear-gradient(110deg,#22313a,#152128);
  }
  .instruments #dialPair {display:flex;align-items:center;justify-content:center;gap:6px}
  .instruments #revDial,.instruments #speedDial {display:flex;align-items:center;justify-content:center;gap:5px;padding:0}
  .instruments #revDial {flex:1}
  .instruments #revDial .tach-face {width:clamp(96px,29vw,146px);height:clamp(78px,23vw,110px);margin:0}
  .instruments #speedDial {flex:0 0 36%;border-left:1px solid #43545e;flex-direction:column;gap:1px}
  .instruments #speedDial .rpm {flex-direction:row;align-items:baseline}
  .instruments #speedDial .tach-face {width:clamp(79px,21vw,103px);height:clamp(62px,16.5vw,79px);margin:0}
  .instruments .rpm {align-items:flex-start;gap:3px}
  #revReading {min-width:5.1ch}
  #revReading b {font-size:clamp(22px,6.6vw,32px)}
  .instruments .rpm small {font-size:10px}
  #speedDial .rpm b {font-size:clamp(16px,4.7vw,23px);color:#b4e5db}
  #revReading #knockLamp {margin:3px 0 0;padding:2px 3px;gap:3px;font-size:8px}
  #knockLamp i {width:7px;height:7px}
  .instruments #pods {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:3px -5px 0;padding:4px 2px;border-bottom:0}
  .pod-face {width:clamp(56px,16.2vw,79px);max-width:100%}
  .pod-name {font-size:clamp(8px,2.304vw,11.2px)}
  #readouts {margin-top:0;padding:3px 1px}
  .tach-hand {height:4px;margin-top:-2px}
  .cut-lamp {font-size:9px}
  .deck>.road-controls,.drive>.range,.ignition kbd,#run::after {display:none}
  #partInfo,#notice {top:calc(var(--instrument-top) + var(--instrument-height) + 6px)}
  .stage-bottom {bottom:calc(var(--foot) + var(--dock-height) + 6px)}
  #openView {display:block;border:1px solid #53696d;border-radius:4px;padding:4px 8px;min-height:36px;font:600 12px var(--mono)}
  .marker {max-width:45vw;white-space:normal;text-align:left;line-height:1.05}
  #stageFrame {bottom:calc(var(--foot) + var(--dock-height) + 6px)}
  .viewer:has(#explode[aria-pressed=true]) #stageFrame {bottom:calc(var(--foot) + var(--dock-height) + 40px)}
  #labelPage {min-height:32px}
  #driveSplits {display:flex;align-items:center;justify-content:space-between;gap:6px;padding:4px 7px;border-bottom:1px solid #43535d}
  #driveSplits .cylinders {position:static;min-width:0;padding:0;border:0;background:none;box-shadow:none}
  #driveSplits .cycle-heading {gap:3px}
  #driveSplits #banks {margin-top:2px;gap:2px}
  #driveSplits .cylcell {padding:1px 3px}
  #driveSplits .splits {flex:1;display:grid;grid-template-columns:repeat(3,1fr);gap:3px;text-align:right;font-size:9px}
  #driveSplits .splits span {display:grid;gap:2px}
  #driveSplits .splits b {min-width:0;font-size:10px}
  .deck:not(.road-test) #driveSplits .splits {display:none}
  #driveSplits:has(.show-strokes) {flex-wrap:wrap}
  #driveSplits .cylinders:has(.show-strokes) {width:100%}
  #driveSplits:has(.show-strokes) .splits span {display:block}
  #banks.show-strokes .cylcell {min-width:0}
  #banks.show-strokes small {inline-size:auto;white-space:normal}
  #driveBar {display:flex;align-items:center;justify-content:space-between;gap:3px;padding:4px;border-bottom:1px solid #43535d}
  #driveBar kbd,#driveBar .road-long {display:none}
  #driveBar .phone-only {display:inline}
  #driveBar .test-selector button {min-height:34px;padding:4px 8px;font-size:12px}
  #driveBar #run {min-width:44px;min-height:36px;border-radius:4px;padding:3px 8px;font-size:13px;font-weight:650}
  .deck .drive {display:block;padding:7px}
  .deck .ignition {display:flex;align-items:stretch;gap:5px}
  .ignition .phone-only {display:inline}
  .ignition .rev-long {display:none}
  .deck .ignition button {height:54px;min-height:48px;min-width:44px}
  .deck.road-test #gearBox {order:0;display:grid;grid-template-columns:repeat(3,minmax(44px,1fr));gap:3px;flex:1.12;margin-right:3px}
  .deck.road-test #gearBox button {width:100%;padding:1px;font-size:22px}
  #gearTarget {font-size:9px;white-space:normal}
  .deck .ignition #brakePedal {order:1;flex:.45;font-size:clamp(12px,3.2vw,16px)}
  .deck .ignition #rev {height:54px;order:2;flex:.55;font-size:16px;background:#513d2c;border:1px solid #bd8a61;color:#ffe1c1}
  .deck .ignition #rev.active {background:#865731;border-color:#ffc896}
  .deck:not(.road-test) #rev {flex:1}


}


@media (max-width:600px) and (orientation:portrait) {
  #headTools #openView {height:34px;min-height:34px}
  #driveBar :is(.test-selector,.shift-selector) {flex:1 0 auto}
  #driveBar :is(.test-selector,.shift-selector) button {flex:1}
  #driveBar .shift-selector button {padding:4px;min-height:36px;font-size:11px}
  .deck:not(.road-test) #driveBar .shift-selector {display:none}
  #driveSplits:has(#replaceBox:not([hidden])) {flex-wrap:wrap}
  #tuningSwitches {align-items:stretch;gap:2px}
  #tuningSwitches button {min-height:32px}
  #tuningSwitches .oil-switch {font-size:10px;gap:3px;padding-inline:4px}
  #tuningSwitches .oil-switch i {width:15px;height:10px}
  #tuningSwitches .oil-switch i::after {width:6px;height:6px}
  #tuningSwitches .oil-switch[aria-checked=true] i::after {left:7px}
  #launchDisclosure {min-width:25px}
  #noLiftSwitch {margin-left:2px}
}
@media (max-width:440px) and (orientation:portrait) {
  #driveBar .test-selector button {padding-inline:4px;font-size:11px}
  #driveBar .shift-selector button {min-width:22px;border:1px solid #4d606c}
  #driveBar .shift-selector span {display:none}
  #driveBar .shift-selector abbr {display:inline}
}

@media (max-width:359px) and (orientation:portrait) {
  #tuningSwitches .oil-switch i {width:6px;height:6px;border-radius:50%;background:#68777c}
  #tuningSwitches .oil-switch i::after {display:none}
  #tuningSwitches .oil-switch[aria-checked=true] i {background:#84e4c4}
  #tuningSwitches .oil-switch {padding-inline:3px}
}
@media (max-width:600px) and (max-height:700px) and (orientation:portrait) {
  .instruments,.instruments:has(.road) {display:grid;grid-template-columns:1.09fr 1fr;align-items:center}
  .instruments #dialPair {min-width:0;gap:2px;align-items:start}
  .instruments #revDial {flex-direction:column;gap:0;min-width:0}
  .instruments #revDial .tach-face {width:100%;max-width:116px;height:78px}
  .instruments #speedDial {flex:0 0 36%;border:0}
  .instruments #speedDial .tach-face {width:100%;height:51px}
  .instruments #speedDial .rpm {flex-direction:column;align-items:center}
  .instruments #revReading {display:flex;flex-flow:row wrap;align-items:baseline;justify-content:center;gap:0 3px}
  #revReading b {font-size:20px}
  #revReading #knockLamp {margin-top:0}
  .instruments #pods {grid-template-columns:repeat(2,minmax(0,1fr));gap:2px;margin:0;padding:0 2px;border:0;border-left:1px solid #43545e}
  .pod-face {width:clamp(46px,13.4vw,56px)}
  .pod-name {font-size:clamp(7px,1.92vw,8px)}
  .instruments #readouts {grid-column:1/-1;margin-top:3px}
  #driveBar {padding-block:3px}
  #driveSplits {padding-block:2px}
}

#openView,#headTools #resetStand,#viewDialog :is(button,select):not(.dlghead button) {
  font:600 12px/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
}
#openView,#headTools #resetStand,.view-preferences>button {
  padding:6px 12px;border:1px solid #4d606c;background:#25343d;border-radius:4px;
}
#headTools #resetStand {color:#ffd2ad;border-color:#785d49}
#viewDialog {padding:0;width:min(460px,calc(100% - 24px));max-height:88dvh;overflow:auto;overscroll-behavior:contain}
#viewDialog .dlghead {position:sticky;top:0;z-index:1;padding:6px 14px;background:#1a262e}
#viewDialog .dlghead button {width:36px;height:36px}
.view-body {padding:0 14px 12px}
#viewDialog .operations,#viewDialog .options,.view-preferences {padding:12px 0;gap:8px;border:0;border-bottom:1px solid #40505a}
#viewDialog .operations {display:grid;grid-template-columns:minmax(0,1fr)}
#viewDialog .model-modes {gap:4px}
#viewDialog .camera-select,#viewDialog .time-controls {display:flex;align-items:center;justify-content:space-between;border:0;padding:0}
#viewDialog .camera-select span,#viewDialog .time-controls>span {display:block}
#viewDialog .options {gap:10px}
#viewDialog .view-preferences {display:flex;flex-wrap:wrap;align-items:center;border-bottom:0}
#viewDialog :is(.segments,.model-modes) button,#viewDialog select {min-height:32px}
#viewDialog #expand svg {display:block;width:16px;height:16px}
#viewDialog #help {width:32px;height:32px}
#mobileFooter footer {position:static;height:auto;flex-wrap:wrap;gap:6px}
#mobileFooter:empty {display:none}
.sensor {min-height:20px}
@media(min-width:761px) and (min-height:521px) {
  .viewer {--panel-gap:clamp(8px,1vw,14px);--rail:clamp(258px,24vw,460px)}
  .stage-bottom {justify-content:flex-start;align-items:stretch}
  .stage-bottom .viewtools {align-self:end;margin-left:auto}
  .stage-bottom #openView {padding-inline:18px;border-radius:7px}
  #openView[aria-expanded=true] {border-color:#9bd5ca;color:#c1ede3}
  #viewDialog {position:absolute;inset:calc(44px + var(--panel-gap)) auto auto var(--edge);
    z-index:8;margin:0;width:min(385px,calc(100% - var(--rail) - 3 * var(--edge)));
    max-height:calc(100% - var(--dock-height) - var(--foot) - 125px - 2 * var(--panel-gap));box-shadow:0 6px 24px #08121766}
  .viewer.expanded #stageTools {display:flex}
  .viewer.expanded #stageTools>:not(#openView) {display:none}
  .viewer.expanded #stageTools {bottom:var(--edge)}
  .instruments {bottom:calc(var(--foot) + var(--dock-height) + var(--panel-gap));
    container:telemetry / size;--dial-label-limit:10px;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto}
  #dialPair {display:grid;min-height:0;grid-template-rows:minmax(0,1fr) auto}
  #dialPair.road {grid-template-columns:1.16fr 1fr;align-items:stretch}
  #dialPair :is(#revDial,#speedDial):not([hidden]) {display:flex;flex-direction:column;justify-content:center;min-height:0;container-type:size;padding:2px 3px}
  #dialPair .tach-face,#dialPair.road .tach-face {width:100%;height:min(calc(100cqh - 23px),calc(73cqw + 10px));margin:0 auto}
  .instruments #pods {grid-row:4;height:clamp(70px,calc(64cqh - 100px),56cqh);min-height:0;grid-template:repeat(2,minmax(0,1fr)) / repeat(2,minmax(0,1fr));align-items:stretch;gap:4px;padding:4px 8px}
  .pod {container-type:size;justify-content:center;gap:2px}
  .pod-face {width:min(100cqw,calc(100cqh - 18px));max-width:none}
  @container telemetry (max-height:390px) {
    .panelheading,#knockLamp {grid-area:1/1}
    #knockLamp {align-self:center;justify-self:end;margin:0 6px}
    #dialPair {grid-row:2}
    .instruments #pods {height:clamp(52px,27cqh,90px);grid-template: minmax(0,1fr) / repeat(4,minmax(0,1fr))}
    #readouts .sensor {min-height:17px}
  }
  .dock {grid-template-columns:clamp(246px,23vw,268px) minmax(0,1fr);gap:var(--panel-gap)}
  .instruments,.topline {top:calc(44px + var(--panel-gap))}
  .stage-bottom {bottom:calc(var(--foot) + var(--dock-height) + var(--panel-gap))}
  .deck {padding-block:3px}
  #dialPair > #readouts {grid-area:2/1/3/-1;padding:4px 10px}
  .pod output {white-space:nowrap}
  .pod-name {font-size:clamp(8px,14.2cqi,12px)}
}
@media(min-width:761px) and (max-width:1199px) and (min-height:521px) {
  #tuningPanel {grid-template-columns:minmax(0,1fr)}
  .drive {grid-template-columns:auto minmax(0,1fr) minmax(0,1fr);gap:8px;padding:8px}
  .road-controls {flex-wrap:wrap}
  .road-controls #roadControls:not([hidden]) {display:contents}
  .splits span {white-space:nowrap}
}
@media(min-width:761px) and (max-width:960px) and (min-height:521px) {
  .drive {grid-template-columns:repeat(2,minmax(0,1fr))}
  .ignition {grid-column:1/-1}
}
@media(min-width:1200px) and (min-height:521px) {
  .dock {grid-template-columns:clamp(390px,31vw,470px) minmax(0,1fr);align-items:stretch}
  #tuningPanel {grid-template-columns:minmax(150px,.85fr) minmax(190px,1.15fr);align-items:center;gap:8px;padding:7px;background:#1a272e;border:1px solid #42535d;border-radius:7px}
  .dock:has(#boostPanel[hidden]) {grid-template-columns:clamp(185px,17vw,245px) minmax(0,1fr)}
  #tuningPanel:has(#boostPanel[hidden]) {grid-template-columns:minmax(0,1fr)}
  #tuningSwitches {gap:5px}
  #tuningPanel #launchSettings {flex-wrap:wrap;row-gap:5px}
  #tuningPanel #noLiftSwitch {margin-left:0}
  .deck {display:flex;flex-direction:column;justify-content:center}
  .road-controls {padding:7px 10px}
  .drive {padding:9px 10px;gap:12px}
}
@media(max-width:600px) and (orientation:portrait) {
  .viewer {--slider-width:50px;--gas-edge:#bd8a61;--gas-base:#513d2c;--gas-text:#ffe1c1;
    --brake-edge:#b77b74;--brake-base:#442f30;--brake-text:#f6d8d1}
  .deck .ignition #rev:not(.active) {background:var(--gas-base);border-color:var(--gas-edge);color:var(--gas-text)}
  .deck .ignition #brakePedal:not(.active) {background:var(--brake-base);border-color:var(--brake-edge);color:var(--brake-text)}
  .pod output {margin-top:3px}
  #headTools .languages {flex:none}
  #headTools .languages button {min-height:30px;padding:3px 4px}
  #headTools :is(#openView,#resetStand) {height:34px;min-height:34px;padding-inline:9px}
  #pedalSliders {
    position:absolute;z-index:2;right:var(--edge);top:calc(var(--instrument-top) + var(--instrument-height) + 4px);
    bottom:calc(var(--foot) + var(--dock-height) + 4px);margin-block:auto;width:var(--slider-width);max-height:210px;
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px;padding:3px 0;
  }
  #stageFrame {right:calc(var(--edge) + var(--slider-width) + 5px)}
  #pedalSliders .range {--pedal-edge:#92b7c1;--pedal-base:#33474e;--pedal-text:#d4e7ed}
  #pedalSliders .range:has(#throttle) {--pedal-edge:var(--gas-edge);--pedal-base:var(--gas-base);--pedal-text:var(--gas-text)}
  .viewer:has(.road-test) #pedalSliders .range:has(#load) {
    order:-1;--pedal-edge:var(--brake-edge);--pedal-base:var(--brake-base);--pedal-text:var(--brake-text)
  }
  #pedalSliders label span {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  #pedalSliders .range {min-width:0;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr)}
  #pedalSliders .range label {flex-direction:column;gap:0;line-height:1.1;font-size:10px}
  #pedalSliders output {font:600 9px/1.4 var(--mono);color:color-mix(in srgb,var(--pedal-edge) 75%,white);text-shadow:0 1px 2px #10191e}
  #pedalSliders .throttle-row {display:flex;min-height:0}
  #pedalSliders #plate {display:none}
  #pedalSliders input {writing-mode:vertical-lr;direction:rtl;width:100%;height:100%;min-height:0;margin:0;touch-action:none}
  #pedalSliders input::-webkit-slider-runnable-track {width:3px;height:100%;background:linear-gradient(to top,var(--pedal-edge) var(--fill),var(--pedal-base) var(--fill))}
  #pedalSliders input::-webkit-slider-thumb {width:12px;height:13px;margin:0 0 0 -4.5px;background:var(--pedal-edge);border:1px solid var(--pedal-text)}
  #pedalSliders input::-moz-range-track {width:3px;height:100%;background:var(--pedal-base)}
  #pedalSliders input::-moz-range-progress {width:3px;background:var(--pedal-edge)}
  #pedalSliders input::-moz-range-thumb {width:10px;height:11px;background:var(--pedal-edge);border:1px solid var(--pedal-text)}
  .stage-bottom {right:calc(var(--edge) + var(--slider-width) + 5px)}
  #viewDialog {width:min(100%,480px);max-width:100%;margin:auto auto 0;border-radius:10px 10px 0 0}
  #viewDialog .view-body {padding-bottom:max(12px,env(safe-area-inset-bottom))}
  #viewDialog .model-modes {flex-wrap:wrap}
  #viewDialog .segments {flex-wrap:wrap}
}

@media(max-width:359px) and (orientation:portrait) {
  header,#headTools {gap:2px}
  #headTools #sound {width:26px;min-width:26px}
  #headTools :is(#openView,#resetStand) {min-width:0;padding-inline:6px}
  #identity .topline h1 {font-size:16px}
}

#openBuild {display:inline-flex;align-items:center;gap:.18em;padding:2px 5px 3px 0;min-height:32px;
  color:inherit;font:inherit;letter-spacing:inherit;pointer-events:auto;white-space:pre}
#openBuild i {width:.22em;height:.22em;min-width:6px;min-height:6px;border:solid var(--orange);
  border-width:0 2px 2px 0;transform:rotate(45deg);margin:0 .12em .12em .10em}
#openBuild:hover,#openBuild:focus-visible {color:var(--orange)}
#buildDialog {width:min(480px,calc(100% - 24px));padding:0;max-height:90dvh;overflow:auto}
#buildDialog .dlghead {padding:10px 18px}
#buildDialog .dlghead button {width:40px;height:40px}
.build-content {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px;padding:18px}
.build-content label {display:grid;gap:6px;color:var(--sub);font:600 .76rem var(--mono)}
.build-content select {min-width:0;width:100%;height:44px;background-color:var(--deep);color:var(--ink);font:600 .93rem var(--mono);
  border:1px solid var(--line);border-radius:5px;padding:0 20px 0 8px}
.build-gearbox,.build-content label:first-child:has(+label[hidden]) {grid-column:1/-1}
.build-detail {grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;
  border-block:1px solid var(--line);padding:12px 0;color:var(--sub);font:.76rem var(--mono)}
.build-detail b {color:var(--ink)}
.build-content p {grid-column:1/-1;margin:0;color:var(--sub);font-size:.84rem}
#installBuild {grid-column:1/-1;min-height:44px;border-radius:5px;background:var(--orange);color:var(--deep);font-weight:700}
#installBuild:disabled {opacity:.45}
@media(max-width:600px) and (orientation:portrait){
  #openBuild {min-height:26px;padding:1px 2px 1px 0}
  .build-content {grid-template-columns:minmax(0,1fr) minmax(0,1.25fr)}
  #buildDialog {width:100%;max-width:100%;margin:auto auto 0;border-radius:12px 12px 0 0}
  .build-content {padding-bottom:max(18px,env(safe-area-inset-bottom))}
}

.ecu-maps {margin:14px 0}
.ecu-maps label {display:grid;gap:6px;color:var(--ink);font-weight:600}
.ecu-maps select {width:100%;min-height:40px;padding:4px 8px}
.map-scroll {max-width:100%;max-height:35vh;overflow:auto;margin-top:8px}
.map-scroll table {border-collapse:separate;border-spacing:0;font:12px var(--mono);font-variant-numeric:tabular-nums}
.map-scroll caption {text-align:left;padding-bottom:5px}
.map-scroll :is(td,th) {padding:4px 7px;text-align:right;white-space:nowrap;border-bottom:1px solid var(--line)}
.map-scroll th {background:var(--deep);color:var(--ink);position:sticky}
.map-scroll thead th {top:0;z-index:1}
.map-scroll th:first-child {left:0}
.map-scroll thead th:first-child {z-index:2}

.dial-adjust {display:inline-flex;align-self:center;align-items:stretch;justify-content:center;max-width:100%;
  margin:2px auto 0;border:1px solid var(--line);border-radius:5px;background:var(--deep);color:var(--ink)}
.dial-adjust button {display:grid;place-content:center;min-height:26px;min-width:0;padding:0 6px;
  border:0;border-radius:4px;background:transparent;color:inherit;font:600 16px/1 var(--mono);touch-action:manipulation}
.dial-adjust button:focus-visible {outline:2px solid var(--orange);outline-offset:-2px}
.dial-adjust button:disabled {opacity:.35}
#massControl :is(#massDown,#massUp) {touch-action:none;user-select:none;-webkit-touch-callout:none}
.dial-adjust button:not(:disabled):hover {background:#35454d}
.dial-adjust :is(#limitReset,#massReset) {padding:0 3px;gap:1px;color:var(--orange);font-size:12px}
.dial-adjust small {font:500 9px/1 var(--mono);color:var(--sub)}
@media(min-width:761px) and (min-height:521px){
  #dialPair :is(#revDial,#speedDial) .tach-face {max-height:calc(100cqh - 53px)}
  #dialPair.road .dial-adjust {margin-top:auto}
}
@media (min-width:1600px) and (min-height:780px) {
  .viewer {--rail:clamp(430px,min(27vw,52vh),860px)}
  .instruments {max-height:calc(1.25 * var(--rail) + 180px);
    grid-template-rows:auto minmax(0,min(53%,calc(.39 * var(--rail) + 134px))) auto minmax(0,1fr);--dial-label-limit:16px}
  #dialPair.road {grid-template-columns:repeat(2,minmax(0,1fr))}
  #dialPair.road .dial-adjust {margin-top:5px}
  #dialPair > #readouts {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px;padding:8px 14px}
  #dialPair .sensor {min-height:26px}
  #dialPair .sensor label,#dialPair .sensor output {font-size:clamp(12px,.65vw,15px)}
  .instruments #pods {height:auto}
  .pod-face {width:min(71cqw,calc(100cqh - 22px))}
}
@media(max-width:600px) and (min-height:701px) and (orientation:portrait){
  .instruments #revDial {display:grid;grid-template-columns:minmax(0,auto) auto;grid-template-rows:auto auto;
    align-content:center;justify-items:center;gap:0 3px}
  .instruments #revDial .tach-face {grid-column:1;grid-row:1/3;max-width:100%}
  #revReading {align-self:end}
  #limiterControl {align-self:start}
}

#banks.show-strokes:has(.cylcell:nth-child(6)) {display:grid;grid-template-columns:repeat(6,minmax(0,1fr))}
#banks.show-strokes:has(.cylcell:nth-child(6)) .cylcell {min-width:0}

#banks:has(.cylcell:nth-child(6)) {flex-wrap:nowrap}
#banks.show-strokes:has(.cylcell:nth-child(6)) .cylcell {container-type:inline-size}
#banks.show-strokes:has(.cylcell:nth-child(6)) small {inline-size:auto;white-space:nowrap}
@container(max-width:65px) {
  #banks.show-strokes:has(.cylcell:nth-child(6)) small {font-size:0}
  #banks.show-strokes:has(.cylcell:nth-child(6)) small::after {content:attr(data-short);font-size:9px}
}

.stage-bottom .cylinders:has(#banks.show-strokes .cylcell:nth-child(6)) {width:min(440px,calc(100vw - 42px))}

#massControl #massReset {color:#b4e5db}
@media (max-width:600px) {
  .dial-adjust button {min-width:26px;min-height:30px;padding-inline:3px}
  #massControl small {white-space:nowrap}
}
@media (max-width:600px) and (max-height:700px) and (orientation:portrait) {
  .instruments:has(#dialPair.road) {grid-template-columns:minmax(0,1.8fr) minmax(0,1fr)}
  .instruments #dialPair.road {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
  .instruments #dialPair.road .tach-face {height:48px}
  .instruments #speedDial .rpm {flex-direction:row;align-items:baseline}
  #dialPair.road .dial-adjust {margin-top:auto}
  #dialPair.road .dial-adjust button {min-width:24px;padding-inline:2px}
}
