:root,
[data-finish="gunmetal"] {
  --workbench-bg: #111317;
  --chassis-top: #2d323b;
  --chassis-bottom: #1d2026;
  --chassis-border: #434a57;
  --panel-recess: #15181d;
  --panel-rim-light: rgba(255, 255, 255, 0.12);
  --panel-rim-dark: rgba(0, 0, 0, 0.85);
  --text-engraved: #e2e8f0;
  --text-muted: #94a3b8;
  --accent: #ea580c;
  --accent-bright: #fb923c;
  --accent-glow: rgba(234, 88, 12, 0.55);
  --lcd-bg: #121915;
  --lcd-text: #f97316;
}

[data-finish="silver"] {
  --workbench-bg: #1b1e24;
  --chassis-top: #d8dee9;
  --chassis-bottom: #aeb8c7;
  --chassis-border: #f8fafc;
  --panel-recess: #232830;
  --panel-rim-light: rgba(255, 255, 255, 0.78);
  --panel-rim-dark: rgba(51, 65, 85, 0.55);
  --text-engraved: #1e293b;
  --text-muted: #334155;
  --accent: #d97706;
  --accent-bright: #f59e0b;
  --accent-glow: rgba(245, 158, 11, 0.5);
  --lcd-bg: #181c1a;
  --lcd-text: #fbbf24;
}

[data-finish="carbon"] {
  --workbench-bg: #090a0d;
  --chassis-top: #1a1c20;
  --chassis-bottom: #101215;
  --chassis-border: #2e323b;
  --panel-recess: #0b0c0e;
  --panel-rim-light: rgba(255, 255, 255, 0.08);
  --panel-rim-dark: rgba(0, 0, 0, 0.95);
  --text-engraved: #f1f5f9;
  --text-muted: #64748b;
  --accent: #e11d48;
  --accent-bright: #fb7185;
  --accent-glow: rgba(225, 29, 72, 0.55);
  --lcd-bg: #140d10;
  --lcd-text: #fb7185;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background-color: var(--workbench-bg);
  background-image:
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.05), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.012) 0px, rgba(255, 255, 255, 0.012) 2px, transparent 2px, transparent 6px);
  color: var(--text-engraved);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif;
  overflow-x: hidden;
}

.workbench-backdrop {
  display: flex;
  justify-content: center;
  padding: 12px 10px 34px;
}

/* Main Brushed Metal Handheld Chassis */
.device-chassis {
  position: relative;
  width: 100%;
  max-width: 440px;
  border-radius: 30px;
  padding: 20px 16px 18px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.018) 0px,
      rgba(255, 255, 255, 0.018) 1px,
      transparent 1px,
      transparent 3px
    ),
    linear-gradient(165deg, var(--chassis-top) 0%, var(--chassis-bottom) 100%);
  border: 2px solid var(--chassis-border);
  box-shadow:
    0 26px 50px rgba(0, 0, 0, 0.85),
    0 4px 12px rgba(0, 0, 0, 0.6),
    inset 0 2px 2px var(--panel-rim-light),
    inset 0 -3px 6px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.device-chassis.recoil-bump {
  animation: chassisRecoil 0.12s ease-out;
}

@keyframes chassisRecoil {
  0% { transform: translateY(0); }
  45% { transform: translateY(1.8px) scale(0.998); }
  100% { transform: translateY(0); }
}

/* Corner Machined Screws */
.chassis-screw {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #94a3b8, #334155 75%);
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.8),
    0 1px 1px var(--panel-rim-light);
  pointer-events: none;
}

.chassis-screw::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 2px;
  right: 2px;
  height: 2px;
  background: #1e293b;
  transform: rotate(32deg);
}

.screw-tl { top: 10px; left: 10px; }
.screw-tr { top: 10px; right: 10px; transform: rotate(55deg); }
.screw-bl { bottom: 10px; left: 10px; transform: rotate(-25deg); }
.screw-br { bottom: 10px; right: 10px; transform: rotate(15deg); }

/* Engraved Top Nameplate */
.nameplate-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  margin: 0 6px;
  border-radius: 10px;
  background: linear-gradient(180deg, #16191e, #0e1014);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, 0.9),
    0 1px 0 var(--panel-rim-light);
}

.serial-block {
  display: flex;
  flex-direction: column;
}

.model-badge {
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #f8fafc;
}

.sub-spec {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-bright);
}

.metal-finish-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 7px;
  background: linear-gradient(180deg, #333944, #1e2229);
  border: 1px solid #4b5563;
  color: #f1f5f9;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.metal-finish-btn:active {
  transform: translateY(1px);
}

.rivet-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

/* 4-Channel Interlocking Bank Buttons */
.channel-bank {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  padding: 6px;
  border-radius: 12px;
  background: var(--panel-recess);
  box-shadow:
    inset 0 3px 6px rgba(0, 0, 0, 0.85),
    0 1px 0 var(--panel-rim-light);
}

.channel-btn {
  position: relative;
  padding: 7px 4px;
  border-radius: 8px;
  background: linear-gradient(180deg, #323842 0%, #1f232a 100%);
  border: 1px solid #47505e;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  box-shadow:
    0 3px 5px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.channel-btn.active {
  transform: translateY(2px);
  background: linear-gradient(180deg, #1b1f26 0%, #262b34 100%);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, 0.85),
    0 0 8px var(--accent-glow);
}

.chan-led {
  width: 14px;
  height: 4px;
  border-radius: 2px;
  background: #334155;
  margin-bottom: 2px;
}

.channel-btn.active .chan-led {
  background: var(--accent-bright);
  box-shadow: 0 0 8px var(--accent);
}

.chan-code {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.chan-mini-count {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent-bright);
}

/* Odometer Housing & Mechanical Split-Drum Reels */
.odometer-housing {
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, #1b1e24, #121418);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 3px 8px rgba(0, 0, 0, 0.9),
    0 1px 0 var(--panel-rim-light);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.housing-header-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.engraved-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brass-plate-btn {
  padding: 3px 8px;
  border-radius: 5px;
  background: linear-gradient(180deg, #475569, #1e293b);
  border: 1px solid #64748b;
  color: #f8fafc;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.odometer-window {
  position: relative;
  height: 92px;
  border-radius: 12px;
  padding: 6px 8px;
  background: #07080a;
  border: 3px solid #2e3440;
  box-shadow:
    inset 0 8px 18px rgba(0, 0, 0, 0.95),
    0 2px 0 rgba(255, 255, 255, 0.12);
  overflow: hidden;
  cursor: ns-resize;
  touch-action: none;
}

.odometer-window.backlight-on {
  border-color: color-mix(in srgb, var(--accent) 65%, #334155);
  box-shadow:
    inset 0 0 22px var(--accent-glow),
    inset 0 8px 18px rgba(0, 0, 0, 0.9),
    0 0 14px rgba(234, 88, 12, 0.2);
}

.odometer-reels {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
  height: 100%;
  position: relative;
  z-index: 1;
}

.reel-slot {
  position: relative;
  height: 74px;
  border-radius: 6px;
  background: #14171c;
  border-left: 1px solid #333945;
  border-right: 1px solid #090b0e;
  overflow: hidden;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.85);
}

.reel-slot.ones-reel {
  background: linear-gradient(180deg, #9a3412 0%, #ea580c 50%, #7c2d12 100%);
  border-left-color: #fdba74;
}

.reel-ribbon {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 814px; /* 11 cells * 74px */
  transition: transform 0.34s cubic-bezier(0.22, 1.08, 0.34, 1);
  will-change: transform;
}

.reel-digit {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "SF Mono", "JetBrains Mono", "Roboto Mono", "Courier New", monospace;
  font-size: 2.75rem;
  font-weight: 900;
  color: #f8fafc;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.odometer-window.backlight-on .reel-digit {
  color: #fff7ed;
  text-shadow: 0 0 10px var(--accent-glow), 0 2px 3px rgba(0, 0, 0, 0.9);
}

/* 3D Cylindrical Drum Shading & Curved Glass Reflection */
.cylinder-shadow-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.25) 20%,
    rgba(255, 255, 255, 0.05) 48%,
    rgba(0, 0, 0, 0.25) 80%,
    rgba(0, 0, 0, 0.86) 100%
  );
}

.window-glass-glare {
  position: absolute;
  top: 0;
  left: -10%;
  right: -10%;
  height: 38%;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.01));
  transform: skewY(-3deg);
}

/* LCD Telemetry Sub-Strip */
.telemetry-strip {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 1.25fr;
  gap: 6px;
}

.lcd-module {
  height: 30px;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--lcd-bg);
  border: 1px solid #29322c;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.9);
  color: var(--lcd-text);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.03em;
}

.clickable-lcd {
  cursor: pointer;
}

.timer-lcd {
  justify-content: space-between;
}

.mini-timer-btn {
  padding: 2px 6px;
  border-radius: 4px;
  background: #27302a;
  border: 1px solid var(--lcd-text);
  color: var(--lcd-text);
  font-size: 0.6rem;
  font-weight: 800;
  cursor: pointer;
}

.mini-timer-btn.running {
  background: var(--accent);
  color: #fff;
  border-color: #fff;
}

/* Dual Instrument Cluster: Analog Gauge + Rotary Knob */
.instrument-cluster {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.instrument-bay {
  padding: 10px;
  border-radius: 14px;
  background: var(--panel-recess);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    inset 0 3px 7px rgba(0, 0, 0, 0.88),
    0 1px 0 var(--panel-rim-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.bay-caption {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  color: #94a3b8;
}

/* Analog Gauge */
.analog-gauge {
  position: relative;
  width: 118px;
  height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gauge-led-ring {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3px;
  pointer-events: none;
}

.bezel-led {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #262b33;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8);
}

.bezel-led.lit {
  background: var(--accent-bright);
  box-shadow: 0 0 6px var(--accent);
}

.bezel-led.peak {
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

.gauge-face {
  position: relative;
  width: 98px;
  height: 98px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #242933, #0c0e12 80%);
  border: 3px solid #3b4252;
  box-shadow:
    inset 0 4px 10px rgba(0, 0, 0, 0.95),
    0 2px 5px rgba(0, 0, 0, 0.7);
}

.gauge-scale-marks {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.22);
}

.gauge-needle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 36px;
  background: linear-gradient(180deg, var(--accent-bright) 0%, #dc2626 100%);
  border-radius: 2px;
  transform-origin: 50% 100%;
  transform: translate(-50%, -100%) rotate(-120deg);
  transition: transform 0.36s cubic-bezier(0.22, 1.15, 0.36, 1);
  box-shadow: 0 0 6px var(--accent);
}

.gauge-cap {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 35% 35%, #cbd5e1, #334155);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.gauge-pct-readout {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.72rem;
  font-weight: 900;
  color: #f8fafc;
}

/* Rotary Step Selector Knob */
.rotary-stage {
  position: relative;
  width: 126px;
  height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.knob-tick {
  position: absolute;
  font-size: 0.62rem;
  font-weight: 800;
  color: #64748b;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
}

.knob-tick.active {
  color: var(--accent-bright);
  text-shadow: 0 0 6px var(--accent);
}

.tick-1 { bottom: 14px; left: 4px; }
.tick-2 { top: 42px; left: 0px; }
.tick-3 { top: 6px; left: 20px; }
.tick-4 { top: 6px; right: 18px; }
.tick-5 { top: 42px; right: -2px; }
.tick-6 { bottom: 14px; right: 0px; }

.knurled-knob-well {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #0d0f13;
  padding: 5px;
  box-shadow:
    inset 0 3px 6px rgba(0, 0, 0, 0.95),
    0 1px 0 rgba(255, 255, 255, 0.1);
}

.knurled-knob {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px dashed #64748b;
  background: conic-gradient(
    from 0deg,
    #2b303a,
    #475061,
    #1e2229,
    #475061,
    #1e2229,
    #2b303a
  );
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.85),
    inset 0 1px 2px rgba(255, 255, 255, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.24s cubic-bezier(0.22, 1.2, 0.36, 1);
}

.knob-indicator-line {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 12px;
  border-radius: 2px;
  background: var(--accent-bright);
  box-shadow: 0 0 6px var(--accent);
}

.knob-center-cap {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #383f4d, #171a21);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.52rem;
  font-weight: 900;
  color: #cbd5e1;
  letter-spacing: 0.06em;
}

/* Primary Mechanical Plunger Deck */
.plunger-deck {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 12px;
  align-items: stretch;
}

.secondary-trigger-column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.mech-lever-btn {
  position: relative;
  flex: 1;
  min-height: 82px;
  border-radius: 16px;
  border: 2px solid #4b5563;
  background: linear-gradient(180deg, #3b4250 0%, #222730 100%);
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow:
    0 7px 0 #111419,
    0 10px 18px rgba(0, 0, 0, 0.85),
    inset 0 1.5px 1px rgba(255, 255, 255, 0.28);
  transition: transform 0.06s ease, box-shadow 0.06s ease;
}

.mech-lever-btn.depressed,
.mech-lever-btn:active {
  transform: translateY(5px);
  box-shadow:
    0 2px 0 #111419,
    0 4px 8px rgba(0, 0, 0, 0.8),
    inset 0 2px 5px rgba(0, 0, 0, 0.6);
}

.lever-grip {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: repeating-linear-gradient(90deg, #111, #111 3px, #555 3px, #555 6px);
  margin-bottom: 4px;
}

.lever-symbol {
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1;
}

.lever-badge {
  font-size: 0.7rem;
  font-weight: 800;
  color: #cbd5e1;
}

.aux-mech-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.small-mech-btn {
  height: 36px;
  border-radius: 9px;
  border: 1px solid #475569;
  background: linear-gradient(180deg, #2d333f, #1a1e25);
  color: #e2e8f0;
  font-size: 0.65rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow:
    0 3px 0 #0e1014,
    0 4px 8px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.small-mech-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.small-mech-btn:not(:disabled):active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #0e1014;
}

.small-mech-btn.danger-mech {
  color: #fca5a5;
  border-color: #7f1d1d;
}

/* Hero Spring-Loaded Thumb Plunger */
.primary-plunger-well {
  padding: 8px;
  border-radius: 24px;
  background: #0f1217;
  border: 2px solid #2d333f;
  box-shadow:
    inset 0 5px 12px rgba(0, 0, 0, 0.95),
    0 1px 0 var(--panel-rim-light);
  display: flex;
}

.hero-plunger-btn {
  width: 100%;
  min-height: 118px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
  display: flex;
}

.plunger-outer-ring {
  width: 100%;
  border-radius: 18px;
  padding: 5px;
  background: linear-gradient(180deg, #525b6c 0%, #232831 100%);
  box-shadow:
    0 9px 0 #090b0e,
    0 14px 24px rgba(0, 0, 0, 0.92),
    inset 0 1.5px 1px rgba(255, 255, 255, 0.4);
  display: flex;
  transition: transform 0.05s ease, box-shadow 0.05s ease;
}

.plunger-dome {
  width: 100%;
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.35), transparent 55%),
    linear-gradient(180deg, var(--accent-bright) 0%, var(--accent) 65%, #9a3412 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.38);
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.45),
    inset 0 -4px 8px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.65);
}

.hero-plunger-btn.depressed .plunger-outer-ring,
.hero-plunger-btn:active .plunger-outer-ring {
  transform: translateY(7px);
  box-shadow:
    0 2px 0 #090b0e,
    0 4px 10px rgba(0, 0, 0, 0.85),
    inset 0 2px 4px rgba(0, 0, 0, 0.6);
}

.plunger-plus {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 0.95;
}

.plunger-step-tag {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.86rem;
  font-weight: 900;
  margin-top: 2px;
}

.plunger-sublabel {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  opacity: 0.92;
  margin-top: 3px;
}

/* Acoustic Sub-Bass Synthesizer Rack */
.acoustic-rack {
  padding: 12px;
  border-radius: 14px;
  background: var(--panel-recess);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 3px 8px rgba(0, 0, 0, 0.9),
    0 1px 0 var(--panel-rim-light);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rack-top-row {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 10px;
  align-items: center;
}

.pilot-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 4px;
}

.pilot-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #334155;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8);
}

.pilot-led.on {
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

.recessed-mode-btn {
  width: 100%;
  height: 34px;
  padding: 0 8px;
  border-radius: 7px;
  background: #0c0e12;
  border: 1px solid #334155;
  color: var(--accent-bright);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.66rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.9);
}

.fader-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 4px;
}

.fader-label-row strong {
  color: var(--accent-bright);
}

.hardware-fader {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 5px;
  background: #090b0e;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.95);
  border: 1px solid #2d3440;
}

.hardware-fader::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: linear-gradient(180deg, #e2e8f0, #64748b);
  border: 1px solid #0f172a;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

.toggle-switch-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.toggle-unit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
}

.metal-toggle {
  position: relative;
  width: 46px;
  height: 24px;
  border-radius: 999px;
  background: #090b0e;
  border: 2px solid #3b4252;
  padding: 2px;
  cursor: pointer;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.95);
}

.toggle-bat {
  display: block;
  width: 18px;
  height: 16px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 30%, #f8fafc, #64748b);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.85);
  transition: transform 0.14s cubic-bezier(0.22, 1, 0.36, 1);
}

.metal-toggle.switched-on .toggle-bat {
  transform: translateX(20px);
}

/* Recessed Paper Tape Printer Bay */
.paper-printer-bay {
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--panel-recess);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.9);
}

.printer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.printer-title {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #94a3b8;
}

.printer-actions {
  display: flex;
  gap: 6px;
}

.tape-action-btn {
  padding: 3px 8px;
  border-radius: 5px;
  background: #232832;
  border: 1px solid #475569;
  color: #e2e8f0;
  font-size: 0.6rem;
  font-weight: 800;
  cursor: pointer;
}

.paper-slot {
  border-radius: 8px;
  padding: 4px;
  background: #07080a;
  box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.95);
}

.paper-tape {
  max-height: 120px;
  overflow-y: auto;
  border-radius: 5px;
  padding: 8px 10px;
  background:
    repeating-linear-gradient(0deg, #e5e0d5 0px, #e5e0d5 22px, #dad4c8 22px, #dad4c8 23px);
  color: #1e293b;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.74rem;
  font-weight: 700;
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.35);
}

.tape-row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  border-bottom: 1px dashed rgba(30, 41, 59, 0.25);
}

.tape-seq { color: #64748b; }
.tape-delta { color: #b45309; font-weight: 900; }
.tape-total { color: #0f172a; font-weight: 900; }
.tape-time { color: #475569; font-size: 0.68rem; }

.tape-empty {
  text-align: center;
  padding: 10px 4px;
  font-size: 0.68rem;
  color: #475569;
}

/* Chassis Footer */
.chassis-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 8px 0;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  opacity: 0.85;
}

/* Calibration Modal */
.calibration-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.calibration-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.calibration-plate {
  width: 100%;
  max-width: 380px;
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(165deg, #2b303a, #191c22);
  border: 2px solid #4b5563;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.9);
  color: #f8fafc;
}

.calibration-plate h3 {
  margin: 0 0 12px;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  color: var(--accent-bright);
}

.plate-label {
  display: block;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #cbd5e1;
  margin: 10px 0 4px;
}

.recessed-input {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border-radius: 8px;
  background: #0d1014;
  border: 1px solid #3b4252;
  color: #f8fafc;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.88rem;
  font-weight: 800;
}

.plate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.plate-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.plate-btn {
  flex: 1;
  height: 38px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  cursor: pointer;
  border: 1px solid #4b5563;
}

.plate-btn.cancel {
  background: #1f242d;
  color: #cbd5e1;
}

.plate-btn.save {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent-bright);
}

/* LED Status Banner */
.led-status-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translate(-50%, 16px);
  padding: 8px 16px;
  border-radius: 8px;
  background: #0d110f;
  border: 1.5px solid var(--accent);
  color: var(--accent-bright);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.85), 0 0 12px var(--accent-glow);
  opacity: 0;
  pointer-events: none;
  z-index: 60;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.led-status-banner.active {
  opacity: 1;
  transform: translate(-50%, 0);
}
