/* ══════════════════════════════════════════════════════════════════════
   BOMB DEFUSAL BENCHMARK STYLESHEET (style.css)
   Conforms to ReflexBench Assessment Development Specification
   Screen-Fitted Military EOD Ordnance Station
   ══════════════════════════════════════════════════════════════════════ */

:root {
  --test-accent: #ef4444;
  --test-accent-soft: rgba(239, 68, 68, 0.14);
  --test-accent-border: rgba(239, 68, 68, 0.32);
  --arena-bg: #080c14;
  --arena-border: rgba(239, 68, 68, 0.25);
}

/* ── Fullscreen Fit-to-Screen Constraints during Active Gameplay ONLY ── */
body:has(#panelTask.active) {
  overflow: hidden !important;
}

body:has(#panelTask.active) header.panda-header,
body:has(#panelTask.active) .panda-nav,
body:has(#panelTask.active) footer.panda-footer,
body:has(#panelTask.active) .t-ambient-glow,
body:has(#panelTask.active) .t-seo-container,
body:has(#panelTask.active) .t-nav {
  display: none !important;
}

body:has(#panelTask.active) .t-shell {
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100vh !important;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

body:has(#panelTask.active) .t-card {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100vh !important;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: #080c14 !important;
  box-shadow: none !important;
  z-index: 9999 !important;
  display: flex !important;
  flex-direction: column !important;
}

body:has(#panelTask.active) #panelTask {
  position: relative !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  padding: 10px 20px 12px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: space-between !important;
  overflow: hidden !important;
}

/* ── Minimalist Top HUD ── */
.top-header {
  position: absolute !important;
  top: 16px !important;
  left: 20px !important;
  right: 20px !important;
  width: auto !important;
  max-width: calc(100vw - 40px) !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  z-index: 30 !important;
  pointer-events: none !important;
}

.top-header .round-pill,
.top-header .restart-pill {
  pointer-events: auto !important;
}

.top-header .round-pill {
  border-radius: 8px !important;
}

.top-header .restart-pill,
.restart-pill {
  margin-left: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 14px !important;
  background: rgba(239, 68, 68, 0.12) !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
  border-radius: 8px !important;
  color: #f87171 !important;
  font-family: inherit !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
  transition: all 0.15s ease !important;
  pointer-events: auto !important;
}

.top-header .restart-pill:hover,
.restart-pill:hover {
  background: rgba(239, 68, 68, 0.25) !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.35) !important;
}

/* ══════════════════════════════════════════════════════════════════════
   ANIMATED VISUAL PREVIEW BOX ("How It Works")
   ══════════════════════════════════════════════════════════════════════ */
/* ══════════════════════════════════════════════════════════════════════
   AUTHENTIC MINI PCB DETONATOR PREVIEW BOX ("How It Works")
   ══════════════════════════════════════════════════════════════════════ */
.defusal-preview-box {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 16px auto 10px;
  padding: 0;
  box-sizing: border-box;
}

.prev-pcb-chassis.wire-only-chassis {
  position: relative;
  width: 100%;
  background: 
    radial-gradient(circle, rgba(16, 185, 129, 0.12) 1.5px, transparent 1.5px) 0 0 / 14px 14px,
    linear-gradient(180deg, #092c1c 0%, #051a10 60%, #03100a 100%);
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  border-top: 1.5px solid rgba(52, 211, 153, 0.45);
  border-bottom: 1.5px solid rgba(6, 78, 59, 0.7);
  border-radius: 8px;
  padding: 10px 16px 12px;
  box-shadow: 
    0 12px 30px rgba(0, 0, 0, 0.85),
    inset 0 0 0 1px rgba(16, 185, 129, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 25px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
  overflow: hidden;
}

.prev-pcb-chassis .pcb-standoff {
  width: 11px;
  height: 11px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.prev-pcb-chassis .pcb-standoff svg {
  display: block;
  filter: drop-shadow(0 1.5px 3px rgba(0, 0, 0, 0.85));
}

.prev-pcb-chassis .pcb-standoff.tl { top: 6px; left: 6px; }
.prev-pcb-chassis .pcb-standoff.tr { top: 6px; right: 6px; }
.prev-pcb-chassis .pcb-standoff.bl { bottom: 6px; left: 6px; }
.prev-pcb-chassis .pcb-standoff.br { bottom: 6px; right: 6px; }

.prev-pcb-chassis .pcb-standoff.tl svg { transform: rotate(18deg); }
.prev-pcb-chassis .pcb-standoff.tr svg { transform: rotate(67deg); }
.prev-pcb-chassis .pcb-standoff.bl svg { transform: rotate(112deg); }
.prev-pcb-chassis .pcb-standoff.br svg { transform: rotate(43deg); }

/* ── Compact Wire Harness Top Header ── */
.prev-harness-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 6px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.prev-bar-tag {
  font-family: var(--font-mono, monospace);
  font-size: 0.58rem;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.08em;
}

.prev-defused-badge {
  font-family: var(--font-mono, monospace);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.45);
  border-radius: 4px;
  padding: 2px 7px;
  opacity: 0;
  animation: prevDefusedTag 5s infinite;
}

@keyframes prevDefusedTag {
  0%, 39% { opacity: 0; transform: scale(0.8); }
  42%, 85% { opacity: 1; transform: scale(1); }
  90%, 100% { opacity: 0; transform: scale(0.8); }
}

.prev-wire-harness {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 16px;
  position: relative;
}

.prev-wire-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 48px;
}

.prev-wire-strand {
  width: 24px;
  height: 75px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prev-wire-strand svg {
  width: 24px;
  height: 75px;
  display: block;
}

.prev-wire-strand.red svg path:first-child { filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.6)); }
.prev-wire-strand.blue svg path:first-child { filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.6)); }
.prev-wire-strand.yellow svg path:first-child { filter: drop-shadow(0 0 6px rgba(234, 179, 8, 0.6)); }

/* Target Wire #4 Dual Layer: 100% uncut before click, cleanly severed after click */
.target-cut-strand {
  position: relative;
  width: 24px;
  height: 75px;
}

.wire-uncut {
  position: absolute;
  inset: 0;
  width: 24px;
  height: 75px;
  animation: prevUncutWire 5s infinite;
}

.wire-uncut svg {
  width: 24px;
  height: 75px;
  display: block;
}

.wire-severed {
  position: absolute;
  inset: 0;
  width: 24px;
  height: 75px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  animation: prevSeveredWire 5s infinite;
}

.severed-top, .severed-btm {
  width: 24px;
  height: 35px;
  position: relative;
}

.severed-top svg, .severed-btm svg {
  width: 24px;
  height: 35px;
  display: block;
}

.severed-top {
  animation: prevSeveredTop 5s infinite;
}

.severed-btm {
  animation: prevSeveredBtm 5s infinite;
}

.strand-cut-spark {
  position: absolute;
  top: 36px;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, #fde047 50%, transparent 85%);
  pointer-events: none;
  z-index: 8;
  animation: prevCutSpark 5s infinite;
}

@keyframes prevUncutWire {
  0%, 37% { opacity: 1; }
  38%, 88% { opacity: 0; }
  92%, 100% { opacity: 1; }
}

@keyframes prevSeveredWire {
  0%, 37% { opacity: 0; pointer-events: none; }
  38%, 88% { opacity: 1; }
  92%, 100% { opacity: 0; }
}

@keyframes prevSeveredTop {
  0%, 37% { transform: translateY(0) rotate(0deg); }
  38% { transform: translateY(-2px) rotate(-2deg); }
  42%, 85% { transform: translateY(-5px) rotate(-4deg); }
  90%, 100% { transform: translateY(0) rotate(0deg); }
}

@keyframes prevSeveredBtm {
  0%, 37% { transform: translateY(0) rotate(0deg); }
  38% { transform: translateY(2px) rotate(2deg); }
  42%, 85% { transform: translateY(5px) rotate(4deg); }
  90%, 100% { transform: translateY(0) rotate(0deg); }
}

@keyframes prevCutSpark {
  0%, 36% { opacity: 0; transform: translate(-50%, -50%) scale(0); }
  38% { opacity: 1; transform: translate(-50%, -50%) scale(2); box-shadow: 0 0 16px #fde047; }
  41% { opacity: 0.6; transform: translate(-50%, -50%) scale(0.9); }
  44%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0); }
}

/* Animated Cursor Anchored Directly on Wire #4 */
.prev-hand-cursor {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 10;
  animation: prevHandMotion 5s infinite;
}

.prev-hand-cursor span {
  font-size: 22px;
  line-height: 1;
  display: block;
  color: #ffffff;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.95));
}

@keyframes prevHandMotion {
  0% {
    opacity: 0;
    transform: translate(-35%, -15%) translate(50px, 45px) scale(0.9);
  }
  15% {
    opacity: 1;
    transform: translate(-35%, -15%) translate(35px, 25px) scale(1);
  }
  32% {
    transform: translate(-35%, -15%) translate(0px, 0px) scale(1);
  }
  38% {
    transform: translate(-35%, -15%) translate(0px, 0px) scale(0.78);
  }
  44% {
    transform: translate(-35%, -15%) translate(0px, 0px) scale(1);
  }
  75% {
    opacity: 1;
    transform: translate(-35%, -15%) translate(0px, 0px) scale(1);
  }
  88%, 100% {
    opacity: 0;
    transform: translate(-35%, -15%) translate(20px, 35px) scale(0.85);
  }
}

.defusal-preview-caption {
  font-size: 0.82rem;
  color: var(--color-on-surface-variant, #94a3b8);
  margin-top: 6px;
  text-align: center;
  line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════════════════
   DETONATOR WORKSTATION — Viewport Screen-Fitted Ordnance Console
   ══════════════════════════════════════════════════════════════════════ */
.detonator-workstation {
  flex: 1;
  width: 100%;
  min-height: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  user-select: none;
  cursor: default;
  padding: 6px 12px;
  box-sizing: border-box;
}

.round-pill.timer-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-surface, rgba(15, 23, 42, 0.75));
  border: 1px solid var(--card-border, rgba(255, 255, 255, 0.12));
  border-radius: 8px !important;
  padding: 5px 16px;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-on-background, #f1f5f9);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.round-pill.timer-pill.critical {
  border-color: #ef4444;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.45);
  animation: pulseTimerCritical 0.7s infinite alternate ease-in-out;
}

.round-pill.timer-pill.critical #hud-timer {
  color: #f87171;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--test-accent, #ef4444);
  box-shadow: 0 0 8px var(--test-accent, #ef4444);
  animation: pulseDot 1.2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

@keyframes pulseTimerCritical {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

.restart-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  background: var(--color-surface, rgba(15, 23, 42, 0.75));
  border: 1px solid var(--card-border, rgba(255, 255, 255, 0.12));
  border-radius: 20px;
  padding: 5px 14px;
  color: var(--color-on-surface-variant, #94a3b8);
  font-size: 0.82rem;
  font-family: var(--font-b, 'Lexend', sans-serif);
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.restart-pill:hover {
  color: var(--color-on-background, #ffffff);
  border-color: rgba(255, 255, 255, 0.35);
  background: var(--color-surface-dim, rgba(255, 255, 255, 0.08));
}

/* ── Tactical 3-2-1 Countdown Overlay (Rock Solid, Zero Flicker) ── */
.bd-countdown-overlay {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 12, 20, 0.95);
  z-index: 100;
  pointer-events: auto;
}

.bd-countdown-overlay.active {
  display: flex;
}

.bd-countdown-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  user-select: none;
}

.bd-countdown-tag {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.80rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.bd-countdown-num {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 6rem;
  font-weight: 900;
  color: #ef4444;
  line-height: 1;
  min-width: 160px;
  text-shadow: 0 0 30px rgba(239, 68, 68, 0.7);
  transform-origin: center center;
  will-change: transform;
}

.bd-countdown-num.animate {
  animation: bdCountScale 0.18s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}

.bd-countdown-num.go {
  font-size: 4.5rem;
  color: #22c55e;
  text-shadow: 0 0 35px rgba(34, 197, 94, 0.8);
}

.bd-countdown-sub {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.74rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@keyframes bdCountScale {
  0% {
    transform: scale(1.35);
  }
  100% {
    transform: scale(1);
  }
}

/* ════ Tactical PCB Detonator Terminal Unit ════ */
.detonator-rig {
  position: relative;
  width: 100%;
  max-width: 800px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.08s ease;
}

.detonator-rig.bomb--shake {
  animation: bombShake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes bombShake {
  0% { transform: translate(0, 0) rotate(0deg); }
  15% { transform: translate(-7px, 3px) rotate(-1deg); }
  30% { transform: translate(7px, -4px) rotate(1.2deg); }
  50% { transform: translate(-5px, 3px) rotate(-0.8deg); }
  70% { transform: translate(5px, -2px) rotate(0.6deg); }
  85% { transform: translate(-2px, 1px) rotate(-0.3deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

/* ════ The Industrial PCB Detonator Unit ════ */
.bomb-chassis.pcb-board {
  position: relative;
  width: 100%;
  max-width: 800px;
  max-height: calc(100vh - 66px);
  background: 
    radial-gradient(circle, rgba(16, 185, 129, 0.12) 1.5px, transparent 1.5px) 0 0 / 16px 16px,
    linear-gradient(180deg, #0a3321 0%, #062316 60%, #03140c 100%);
  border: 1.5px solid rgba(16, 185, 129, 0.4);
  border-top: 2px solid rgba(52, 211, 153, 0.55);
  border-bottom: 2px solid rgba(6, 78, 59, 0.85);
  border-radius: 8px;
  padding: 10px 18px 12px;
  box-shadow: 
    0 18px 50px rgba(0, 0, 0, 0.95),
    inset 0 0 0 1px rgba(16, 185, 129, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 0 35px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 7px;
  box-sizing: border-box;
  overflow: hidden;
  transition: transform 0.08s ease, box-shadow 0.2s ease;
}

/* Authentic Industrial Standoff Mounting Screws */
.pcb-standoff {
  position: absolute;
  width: 13px;
  height: 13px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
}

.pcb-standoff svg {
  display: block;
  filter: drop-shadow(0 1.5px 3px rgba(0, 0, 0, 0.85));
}

.pcb-standoff.tl { top: 7px; left: 7px; }
.pcb-standoff.tr { top: 7px; right: 7px; }
.pcb-standoff.bl { bottom: 7px; left: 7px; }
.pcb-standoff.br { bottom: 7px; right: 7px; }

.pcb-standoff.tl svg { transform: rotate(18deg); }
.pcb-standoff.tr svg { transform: rotate(67deg); }
.pcb-standoff.bl svg { transform: rotate(112deg); }
.pcb-standoff.br svg { transform: rotate(43deg); }

/* ── Electronic Hardware Decor Row ── */
.pcb-hardware-decor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
}

.multiplexer {
  position: relative;
  width: 110px;
  height: 18px;
  background: #1c1d22;
  border: 1px solid #000;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.chip-notch {
  position: absolute;
  left: -1px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 6px;
  background: #062316;
  border: 1px solid #000;
  border-left: none;
  border-radius: 0 3px 3px 0;
}

.multiplexer__text {
  font-family: var(--font-mono, monospace);
  font-size: 0.50rem;
  letter-spacing: 0.08em;
  color: #9ca3af;
  margin: 0;
  line-height: 1;
}

.multiplexer__text--bold {
  color: #d1d5db;
  font-weight: 800;
}

.multiplexer .pin {
  position: absolute;
  width: 3px;
  height: 3px;
  background: linear-gradient(180deg, #e5e7eb 0%, #6b7280 100%);
  border: 0.5px solid #1f2937;
  border-radius: 1px;
}

.pin.pin-1 { top: -4px; left: 12px; }
.pin.pin-2 { top: -4px; left: 24px; }
.pin.pin-3 { top: -4px; left: 36px; }
.pin.pin-4 { top: -4px; left: 48px; }
.pin.pin-5 { top: -4px; left: 60px; }
.pin.pin-6 { top: -4px; left: 72px; }
.pin.pin-7 { top: -4px; left: 84px; }
.pin.pin-8 { top: -4px; left: 96px; }

.pin.pin-9  { bottom: -4px; left: 12px; }
.pin.pin-10 { bottom: -4px; left: 24px; }
.pin.pin-11 { bottom: -4px; left: 36px; }
.pin.pin-12 { bottom: -4px; left: 48px; }
.pin.pin-13 { bottom: -4px; left: 60px; }
.pin.pin-14 { bottom: -4px; left: 72px; }
.pin.pin-15 { bottom: -4px; left: 84px; }
.pin.pin-16 { bottom: -4px; left: 96px; }

.piezo-buzzer {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(#6b7280 14%, #0f172a 18%, #0f172a 46%, #1e293b 54%, #475569 58%, #94a3b8 62%, #334155 65%, #94a3b8 68%, #1e293b 72%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
  border: 1px solid #000;
}

.solder-tin {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f8fafc 0%, #94a3b8 50%, #334155 100%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* ── Top Avionics Bay ── */
.avionics-bay {
  display: grid;
  grid-template-columns: 1.15fr 1.15fr 0.9fr;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.serial-badge-plate {
  position: relative;
  background: linear-gradient(180deg, #2d3648 0%, #1a202d 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  border-bottom: 1px solid rgba(0, 0, 0, 0.8);
  border-radius: 4px;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 4px 10px rgba(0, 0, 0, 0.5);
  min-width: 0;
}

.plate-screw {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #64748b;
  box-shadow: inset 0 1px 1px #000;
}
.plate-screw.tl { top: 3px; left: 3px; }
.plate-screw.tr { top: 3px; right: 3px; }
.plate-screw.bl { bottom: 3px; left: 3px; }
.plate-screw.br { bottom: 3px; right: 3px; }

.serial-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
  white-space: nowrap;
}

.serial-tag {
  font-family: var(--font-mono, monospace);
  font-size: 0.56rem;
  letter-spacing: 0.10em;
  color: #94a3b8;
}

.serial-barcode {
  font-family: monospace;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: #475569;
  line-height: 1;
}

.serial-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  white-space: nowrap;
}

.serial-val {
  font-family: var(--font-mono, monospace);
  font-size: 0.82rem;
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
  flex-shrink: 0;
}

.serial-parity-tag {
  font-family: var(--font-mono, monospace);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 1px 4px;
  border-radius: 3px;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.serial-parity-tag.odd {
  background: rgba(245, 158, 11, 0.25);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.55);
}

.serial-parity-tag.even {
  background: rgba(56, 189, 248, 0.25);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.55);
}

/* Tactical Countdown Timer Terminal */
.digital-clock-frame {
  position: relative;
  background: #090304;
  border: 1px solid rgba(239, 68, 68, 0.45);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.95), 0 0 14px rgba(239, 68, 68, 0.12);
  border-radius: 5px;
  padding: 5px 10px 4px;
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.timer-crt-scanlines {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.22) 0px, rgba(0, 0, 0, 0.22) 1px, transparent 1px, transparent 3px);
  pointer-events: none;
  z-index: 3;
}

.timer-terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 2px;
  border-bottom: 1px solid rgba(239, 68, 68, 0.22);
  padding-bottom: 2px;
  z-index: 2;
}

.timer-terminal-radar {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 6px #ef4444;
  animation: diodeBlink 1s infinite alternate ease-in-out;
}

.timer-terminal-title {
  font-family: var(--font-mono, monospace);
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #ef4444;
  text-transform: uppercase;
}

.timer-terminal-readout {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  z-index: 2;
  margin: 1px 0;
}

.digital-clock-led {
  position: relative;
  font-family: var(--font-mono, monospace);
  font-size: 1.65rem;
  font-weight: 900;
  color: #ff3333;
  letter-spacing: 0.08em;
  line-height: 1;
  text-shadow: 0 0 14px rgba(255, 51, 51, 0.85), 0 0 3px rgba(255, 170, 170, 0.95);
  z-index: 2;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.timer-unit {
  font-family: var(--font-mono, monospace);
  font-size: 0.76rem;
  font-weight: 800;
  color: rgba(239, 68, 68, 0.7);
  z-index: 2;
}

.clock-label {
  position: relative;
  font-family: var(--font-mono, monospace);
  font-size: 0.50rem;
  letter-spacing: 0.14em;
  color: #64748b;
  margin-top: 2px;
  z-index: 2;
  text-transform: uppercase;
}

/* Status Diode & Strike Sockets */
.status-diodes-box {
  background: #0f141f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.status-diode-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.diode-label, .strikes-label {
  font-family: var(--font-mono, monospace);
  font-size: 0.58rem;
  color: #94a3b8;
  letter-spacing: 0.08em;
}

.diode-socket {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #1e293b;
  border: 1px solid #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 2px #000;
}

.diode-bulb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.85);
  transition: all 0.2s ease;
}

.diode-bulb.flashing {
  animation: diodeBlink 0.6s infinite alternate ease-in-out;
}

@keyframes diodeBlink {
  from { opacity: 0.20; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1.15); box-shadow: 0 0 14px currentColor; }
}

.diode-state-text {
  font-family: var(--font-mono, monospace);
  font-size: 0.64rem;
  font-weight: 700;
  color: #cbd5e1;
}

.strikes-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.strike-socket {
  width: 18px;
  height: 18px;
  background: #090c13;
  border: 1px solid #334155;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.strike-bulb {
  font-size: 0.68rem;
  font-weight: 900;
  color: rgba(239, 68, 68, 0.2);
  line-height: 1;
  transition: all 0.2s ease;
}

.strike-bulb.struck {
  color: #ffffff;
  text-shadow: 0 0 12px #ef4444, 0 0 4px #ff8888;
  animation: strikeBlink 0.4s ease-out;
}

@keyframes strikeBlink {
  0% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* ── Tactical Protocol Terminal (Clean, High-Readability Design) ── */
.protocol-terminal {
  position: relative;
  background: #060c14;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 6px;
  padding: 8px 12px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8);
  flex-shrink: 0;
}

.protocol-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 4px;
}

.protocol-header-left {
  display: flex;
  align-items: center;
  gap: 7px;
}

.terminal-radar {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 6px #38bdf8;
}

.protocol-title {
  font-family: var(--font-mono, monospace);
  font-size: 0.66rem;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.08em;
}

.protocol-hint-badge {
  font-family: var(--font-mono, monospace);
  font-size: 0.54rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1px 6px;
  border-radius: 3px;
  white-space: nowrap;
}

.protocol-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.protocol-rule-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.025);
  border-radius: 5px;
  border-left: 3px solid transparent;
  transition: all 0.15s ease;
  width: 100%;
}

.protocol-rule-row:hover {
  background: rgba(255, 255, 255, 0.05);
  border-left-color: #38bdf8;
}

.rule-num {
  font-family: var(--font-mono, monospace);
  font-size: 0.80rem;
  font-weight: 800;
  color: #38bdf8;
  width: 18px;
  flex-shrink: 0;
}

.rule-text {
  font-family: var(--font-mono, monospace);
  font-size: 0.80rem;
  font-weight: 500;
  color: #cbd5e1;
  line-height: 1.5;
  display: inline;
}

.rule-text strong {
  color: #f8fafc;
  font-weight: 700;
}

.rule-action {
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  font-weight: 800;
  color: #fef08a;
  background: rgba(234, 179, 8, 0.16);
  border: 1px solid rgba(234, 179, 8, 0.40);
  padding: 1px 6px;
  border-radius: 3px;
  white-space: nowrap;
  letter-spacing: 0.02em;
  display: inline-block;
  vertical-align: baseline;
}

/* High-Visibility Micro-Tags for Important Elements */
.tag-wire {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  font-family: var(--font-mono, monospace);
  font-size: 0.70rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.tag-wire.tag-red {
  background: rgba(220, 38, 38, 0.28);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.55);
}

.tag-wire.tag-blue {
  background: rgba(37, 99, 235, 0.28);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.55);
}

.tag-wire.tag-yellow {
  background: rgba(234, 179, 8, 0.25);
  color: #fef08a;
  border: 1px solid rgba(234, 179, 8, 0.55);
}

.tag-wire.tag-white {
  background: rgba(255, 255, 255, 0.20);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
}

.tag-wire.tag-black {
  background: #1e293b;
  color: #f8fafc;
  border: 1px solid #64748b;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6);
}

.tag-serial {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  background: rgba(245, 158, 11, 0.22);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.55);
  font-family: var(--font-mono, monospace);
  font-size: 0.70rem;
  font-weight: 800;
  line-height: 1.2;
}

@media (max-width: 640px) {
  .rule-desc {
    min-width: unset;
    width: auto;
  }
  .protocol-rule-row {
    flex-wrap: wrap;
    gap: 6px;
  }
}

/* ── Wire Harness Bay ── */
.wire-bay {
  flex: 1;
  min-height: 140px;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 4px 16px 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: visible;
}

.wire-bay-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 2px;
  margin-bottom: 22px;
  flex-shrink: 0;
}

.wire-bay-radar-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #eab308;
  box-shadow: 0 0 6px #eab308;
}

.wire-bay-title {
  font-family: var(--font-mono, monospace);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #94a3b8;
  text-transform: uppercase;
}

.wire-harness-container {
  flex: 1;
  width: 100%;
  min-height: 0;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  gap: 16px;
  margin: 0 auto;
  transition: max-width 0.25s ease;
}

.wire-harness-container[data-wires="3"] { max-width: 440px; }
.wire-harness-container[data-wires="4"] { max-width: 540px; }
.wire-harness-container[data-wires="5"] { max-width: 650px; }
.wire-harness-container[data-wires="6"] { max-width: 760px; }

/* Individual Interactive Wire Unit */
.wire-unit {
  flex: 1;
  max-width: 105px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: crosshair;
  position: relative;
  transition: transform 0.15s ease;
  height: 100%;
}

.wire-unit:hover {
  transform: translateY(-2px);
}

.wire-unit:hover .wire-lug {
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.wire-unit:hover .wire-strand-main {
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}

.wire-terminal-tag {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 7px;
  pointer-events: none;
  user-select: none;
  z-index: 4;
}

.wire-num-badge {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.64rem;
  font-weight: 800;
  color: #f1f5f9;
  background: rgba(15, 23, 42, 0.90);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 3px;
  padding: 1px 4px;
  line-height: 1.1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  transition: all 0.15s ease;
}

.wire-key-badge {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.54rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 3px;
  padding: 1px 3px;
  line-height: 1.1;
}

.wire-unit:hover .wire-num-badge {
  color: #ffffff;
  border-color: #38bdf8;
  background: rgba(2, 132, 199, 0.5);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.7);
}

.wire-color-tag {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-top: 5px;
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
  z-index: 4;
  transition: all 0.15s ease;
}

.wire-color-tag.red    { color: #f87171; text-shadow: 0 0 6px rgba(239, 68, 68, 0.35); }
.wire-color-tag.yellow { color: #fde047; text-shadow: 0 0 6px rgba(234, 179, 8, 0.35); }
.wire-color-tag.blue   { color: #60a5fa; text-shadow: 0 0 6px rgba(59, 130, 246, 0.35); }
.wire-color-tag.white  { color: #f8fafc; text-shadow: 0 0 6px rgba(255, 255, 255, 0.35); }
.wire-color-tag.black  { color: #94a3b8; text-shadow: 0 0 6px rgba(148, 163, 184, 0.25); }

.wire-unit:hover .wire-color-tag {
  color: #ffffff;
  filter: brightness(1.25);
  transform: scale(1.06);
}

.wire-lug {
  width: 22px;
  height: 12px;
  background: linear-gradient(180deg, #ea580c 0%, #9a3412 70%, #7c2d12 100%);
  border: 1px solid #c2410c;
  border-top: 1px solid #fdba74;
  border-radius: 3px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 3;
  flex-shrink: 0;
}

.wire-lug::before {
  content: '';
  position: absolute;
  top: 2px; left: 7px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #fbbf24 0%, #b45309 80%);
  border: 1px solid #78350f;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.5);
}

.wire-lug::after {
  content: '+';
  position: absolute;
  top: -1px; left: 8px;
  font-size: 9px;
  font-family: monospace;
  font-weight: 900;
  color: #451a03;
  line-height: 1;
}

.wire-canvas-wrap {
  flex: 1;
  width: 100%;
  max-width: 56px;
  min-height: 0;
  display: flex;
  justify-content: center;
  position: relative;
  overflow: visible;
}

.wire-canvas-wrap svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.wire-strand-shadow {
  fill: none;
  stroke: rgba(0, 0, 0, 0.65);
  stroke-width: 20;
  stroke-linecap: round;
  filter: blur(2px);
}

.wire-strand-main {
  fill: none;
  stroke-width: 14;
  stroke-linecap: round;
  transition: opacity 0.15s ease;
}

.wire-strand-highlight {
  fill: none;
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 3;
  stroke-linecap: round;
  pointer-events: none;
}

.wire-strand-severed-top, .wire-strand-severed-btm {
  fill: none;
  stroke-width: 14;
  stroke-linecap: round;
}

.frayed-copper {
  fill: none;
  stroke: #d97706;
  stroke-width: 3;
  stroke-linecap: round;
}

.wire-unit.cut {
  pointer-events: none;
}

.snip-spark {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fde047;
  box-shadow: 0 0 10px #fde047;
  pointer-events: none;
  animation: sparkBurst 0.4s ease-out forwards;
}

@keyframes sparkBurst {
  0% { opacity: 1; transform: translate(0, 0) scale(1.2); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.2); }
}

.chassis-disarm-flash {
  animation: chassisGreenFlash 0.45s ease-out;
}

@keyframes chassisGreenFlash {
  0% { box-shadow: 0 0 45px rgba(34, 197, 94, 0.7), inset 0 0 25px rgba(34, 197, 94, 0.35); }
  100% { box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85); }
}

.chassis-strike-shake {
  animation: chassisShake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes chassisShake {
  10%, 90% { transform: translate3d(-4px, 0, 0); }
  20%, 80% { transform: translate3d(5px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-6px, 0, 0); }
  40%, 60% { transform: translate3d(6px, 0, 0); }
}

.floating-feedback {
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono, monospace);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  padding: 7px 20px;
  border-radius: 6px;
  pointer-events: none;
  z-index: 50;
  animation: floatFeedback 0.75s ease-out forwards;
}

@keyframes floatFeedback {
  0% { opacity: 0; transform: translate(-50%, -30%) scale(0.85); }
  20% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
  80% { opacity: 1; transform: translate(-50%, -55%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -70%) scale(0.95); }
}

.floating-feedback.success {
  background: rgba(22, 101, 52, 0.94);
  border: 2px solid #22c55e;
  color: #86efac;
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.65);
}

.floating-feedback.strike {
  background: rgba(127, 29, 29, 0.94);
  border: 2px solid #ef4444;
  color: #fca5a5;
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.65);
}

/* ══════════════════════════════════════════════════════════════════════
   PERFORMANCE BRACKETS HIGHLIGHT (.rt-range-row.active)
   ══════════════════════════════════════════════════════════════════════ */
.rt-range-row.active {
  opacity: 1 !important;
  transform: scale(1.02) !important;
  border-width: 1.5px !important;
  font-weight: 700 !important;
}

.rt-range-row.active.elite {
  background: rgba(16, 185, 129, 0.16) !important;
  border-color: #10b981 !important;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.25) !important;
}
.rt-range-row.active.elite .rt-range-dot {
  background: #10b981 !important;
  box-shadow: 0 0 10px #10b981 !important;
  opacity: 1 !important;
  transform: scale(1.3) !important;
}
.rt-range-row.active.elite .rt-range-val {
  color: #10b981 !important;
  font-weight: 700 !important;
}

.rt-range-row.active.fast {
  background: rgba(14, 165, 233, 0.16) !important;
  border-color: #0ea5e9 !important;
  box-shadow: 0 0 16px rgba(14, 165, 233, 0.25) !important;
}
.rt-range-row.active.fast .rt-range-dot {
  background: #0ea5e9 !important;
  box-shadow: 0 0 10px #0ea5e9 !important;
  opacity: 1 !important;
  transform: scale(1.3) !important;
}
.rt-range-row.active.fast .rt-range-val {
  color: #0ea5e9 !important;
  font-weight: 700 !important;
}

.rt-range-row.active.avg {
  background: rgba(245, 158, 11, 0.16) !important;
  border-color: #f59e0b !important;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.25) !important;
}
.rt-range-row.active.avg .rt-range-dot {
  background: #f59e0b !important;
  box-shadow: 0 0 10px #f59e0b !important;
  opacity: 1 !important;
  transform: scale(1.3) !important;
}
.rt-range-row.active.avg .rt-range-val {
  color: #f59e0b !important;
  font-weight: 700 !important;
}

.rt-range-row.active.slow {
  background: rgba(239, 68, 68, 0.16) !important;
  border-color: #ef4444 !important;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.25) !important;
}
.rt-range-row.active.slow .rt-range-dot {
  background: #ef4444 !important;
  box-shadow: 0 0 10px #ef4444 !important;
  opacity: 1 !important;
  transform: scale(1.3) !important;
}
.rt-range-row.active.slow .rt-range-val {
  color: #ef4444 !important;
  font-weight: 700 !important;
}

/* ══════════════════════════════════════════════════════════════════════
   MOBILE VIEWPORT OPTIMIZATIONS (Strictly Scoped to Mobile Screen Widths)
   ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  body:has(#panelTask.active) .t-shell,
  body:has(#panelTask.active) .t-card,
  body:has(#panelTask.active) #panelTask {
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;
    padding: 8px 10px max(12px, env(safe-area-inset-bottom, 0px)) !important;
    overflow: hidden !important;
  }

  .top-header {
    top: max(10px, env(safe-area-inset-top, 10px)) !important;
    left: 12px !important;
    right: 12px !important;
    max-width: calc(100vw - 24px) !important;
  }

  .detonator-workstation {
    padding: 0 !important;
    align-items: center !important;
    max-height: calc(100dvh - 48px) !important;
  }

  .detonator-rig {
    max-width: 100% !important;
  }

  .bomb-chassis.pcb-board {
    padding: 8px 10px 10px !important;
    max-height: calc(100dvh - 54px) !important;
    gap: 5px !important;
    border-radius: 8px !important;
  }

  /* Hide cosmetic decorative chip row on mobile to preserve vertical space */
  .pcb-hardware-decor {
    display: none !important;
  }

  /* Compact 3-Column Avionics Bay */
  .avionics-bay {
    display: grid !important;
    grid-template-columns: 1.15fr 1.05fr 0.95fr !important;
    gap: 6px !important;
    padding-bottom: 5px !important;
  }

  .serial-badge-plate {
    padding: 4px 6px !important;
  }
  .serial-meta-row {
    margin-bottom: 0 !important;
  }
  .serial-barcode {
    display: none !important;
  }
  .serial-tag {
    font-size: 0.50rem !important;
  }
  .serial-val {
    font-size: 0.72rem !important;
  }
  .serial-parity-tag {
    font-size: 0.50rem !important;
    padding: 0 3px !important;
  }

  /* Digital Countdown Clock - Proportional Sizing with Zero Overflow */
  .digital-clock-frame {
    padding: 3px 6px !important;
    border-radius: 4px !important;
  }
  .timer-terminal-title {
    font-size: 0.46rem !important;
    letter-spacing: 0.06em !important;
  }
  .timer-terminal-radar {
    width: 4px !important;
    height: 4px !important;
  }
  .digital-clock-led {
    font-size: 1.15rem !important;
    letter-spacing: 0.04em !important;
  }
  .timer-unit {
    font-size: 0.65rem !important;
  }
  .clock-label {
    display: none !important;
  }

  /* Diode and Strikes Box */
  .status-diodes-box {
    padding: 4px 6px !important;
    gap: 3px !important;
  }
  .diode-label, .strikes-label {
    font-size: 0.50rem !important;
    letter-spacing: 0.04em !important;
  }
  .diode-socket {
    width: 13px !important;
    height: 13px !important;
  }
  .diode-bulb {
    width: 8px !important;
    height: 8px !important;
  }
  .diode-state-text {
    font-size: 0.54rem !important;
  }
  .strike-socket {
    width: 14px !important;
    height: 14px !important;
  }
  .strike-bulb {
    font-size: 0.58rem !important;
  }

  /* Protocol Display Terminal */
  .protocol-terminal {
    padding: 5px 8px !important;
    border-radius: 5px !important;
  }
  .protocol-header {
    margin-bottom: 4px !important;
    padding-bottom: 3px !important;
  }
  .protocol-title {
    font-size: 0.58rem !important;
  }
  .protocol-hint-badge {
    font-size: 0.48rem !important;
    padding: 0 4px !important;
  }
  .protocol-body {
    gap: 2px !important;
  }
  .protocol-rule-row {
    padding: 2.5px 6px !important;
    gap: 6px !important;
    border-radius: 4px !important;
    flex-wrap: wrap !important;
  }
  .rule-num {
    font-size: 0.70rem !important;
    width: 14px !important;
  }
  .rule-text {
    font-size: 0.66rem !important;
    line-height: 1.35 !important;
  }
  .tag-wire {
    font-size: 0.58rem !important;
    padding: 0 4px !important;
  }
  .tag-serial {
    font-size: 0.58rem !important;
    padding: 0 4px !important;
  }
  .rule-action {
    font-size: 0.64rem !important;
    padding: 0 4px !important;
  }

  /* Wire Harness Cutting Bay */
  .wire-bay {
    min-height: 85px !important;
    padding-top: 2px !important;
  }
  .wire-bay-header {
    margin-bottom: 4px !important;
  }
  .wire-bay-title {
    font-size: 0.50rem !important;
  }
  .wire-harness-container {
    padding: 2px 4px !important;
  }
  .wire-unit {
    padding: 0 3px !important;
  }
  .wire-strand {
    height: 52px !important;
    width: 20px !important;
  }
  .wire-color-tag {
    font-size: 0.55rem !important;
    padding: 2px 4px !important;
  }
  .wire-num-badge {
    font-size: 0.55rem !important;
  }
}

