:root {
  --ink: #eaf1f3;
  --muted: #91a3aa;
  --panel: #10222b;
  --panel-2: #142b35;
  --line: #28414a;
  --black: #071219;
  --orange: #ff6a2a;
  --orange-2: #ff8d42;
  --green: #4bd39b;
  --red: #ff5e61;
  --yellow: #ffc857;
  --white: #fff;
  --shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--black); }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 20%, rgba(255,106,42,.08), transparent 30rem),
    linear-gradient(135deg, #071219 0%, #0b1b23 100%);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}
button, input, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(255,141,66,.55);
  outline-offset: 3px;
}

.topbar {
  height: 76px;
  padding: 0 clamp(18px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 3vw, 44px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(7,18,25,.82);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand {
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  cursor: pointer;
  text-align: left;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--orange);
  box-shadow: 0 8px 24px rgba(255,106,42,.25);
}
.brand-mark svg { width: 28px; fill: #fff; }
.brand-mark .inner { fill: #ffbf91; }
.brand strong { display: block; font-size: 18px; letter-spacing: -.3px; }
.brand small { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 1.3px; margin-top: 2px; }
.topbar-game-controls {
  min-width: 0;
  flex: 1;
  display: grid;
  grid-template-columns: 78px minmax(150px, 1fr) 74px;
  gap: clamp(12px, 2vw, 28px);
  align-items: center;
}
.topbar-game-controls[hidden] { display: none; }
.session-summary { display: flex; gap: 14px; align-items: center; }
.session-summary[hidden] { display: none; }
.tech-badge {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #dce7ea;
  font-weight: 700;
}
.text-button, .back-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.text-button:hover, .back-button:hover { color: var(--white); }

.screen { display: none; min-height: calc(100vh - 76px); }
.screen.active { display: block; }
.welcome-screen.active {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 480px);
  gap: clamp(40px, 8vw, 130px);
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px clamp(24px, 5vw, 72px);
}
.eyebrow, .step-label, .panel-label {
  margin: 0 0 14px;
  color: var(--orange-2);
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.welcome-copy h1, .section-heading h1 {
  margin: 0;
  font-size: clamp(48px, 6.5vw, 88px);
  line-height: .96;
  letter-spacing: -4px;
}
.welcome-copy h1 span { color: var(--orange); }
.lead {
  max-width: 650px;
  margin: 30px 0;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
  color: #b8c6cb;
}
.feature-row {
  display: flex;
  gap: clamp(20px, 4vw, 56px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.feature-row div { display: flex; flex-direction: column; gap: 4px; }
.feature-row strong { font-size: 28px; }
.feature-row span { color: var(--muted); font-size: 13px; }
.login-card {
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(20,43,53,.98), rgba(13,31,39,.98));
  box-shadow: var(--shadow);
}
.login-card h2, .modal h2 { margin: 0 0 12px; font-size: 32px; letter-spacing: -1px; }
.login-card > p:not(.step-label):not(.local-note), .modal > p:not(.eyebrow) { color: var(--muted); line-height: 1.55; }
label { display: block; margin: 28px 0 8px; color: #cbd8dc; font-size: 13px; font-weight: 700; }
input {
  width: 100%;
  padding: 17px 18px;
  color: var(--white);
  border: 1px solid #38505a;
  border-radius: 10px;
  background: #091920;
  font-size: 18px;
}
input::placeholder { color: #62767e; }
.primary-button, .secondary-button, .diagnose-button, .hint-button, .bug-report-button {
  min-height: 54px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
}
.primary-button {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 9px 25px rgba(255,106,42,.2);
}
.primary-button:hover { background: #ff7b3d; transform: translateY(-1px); }
.primary-button:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.secondary-button { background: #203740; color: var(--ink); }
.login-card .primary-button { width: 100%; margin-top: 16px; display: flex; justify-content: space-between; align-items: center; }
.local-note { margin: 18px 0 0; text-align: center; font-size: 12px; color: #72868e; }
.auth-tabs {
  margin-top: 24px;
  padding: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border: 1px solid #314953;
  border-radius: 11px;
  background: #0a1b22;
}
.auth-tab {
  min-height: 40px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.auth-tab.active { background: #203a44; color: var(--white); }
.auth-panel[hidden] { display: none; }
.auth-panel label { margin-top: 18px; }
.auth-panel input { padding: 13px 15px; font-size: 15px; }
.pin-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-status { min-height: 21px; margin: 13px 0 0; color: var(--muted); font-size: 12px; }
.auth-status.error { color: var(--red); }
.auth-status.success { color: var(--green); }

.level-screen { max-width: 1320px; margin: 0 auto; padding: 56px clamp(20px, 4vw, 56px) 80px; }
.section-heading { display: flex; justify-content: space-between; gap: 40px; align-items: end; margin-bottom: 38px; }
.section-heading h1 { font-size: clamp(40px, 5vw, 62px); letter-spacing: -2.5px; }
.section-heading > div > p:last-child { color: var(--muted); font-size: 17px; }
.progress-card { width: min(290px, 100%); padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.progress-card > span { font-size: 13px; font-weight: 700; }
.progress-track { height: 7px; background: #08171e; border-radius: 10px; margin-top: 12px; overflow: hidden; }
.progress-track span { display: block; width: 0; height: 100%; background: var(--orange); border-radius: inherit; transition: width .5s; }
.overall-scoreboard {
  margin-top: 34px;
  padding: 24px;
  border: 1px solid #38545e;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255,106,42,.07), transparent 38%),
    #0d2028;
  box-shadow: 0 18px 44px rgba(0,0,0,.2);
}
.overall-board-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}
.overall-board-heading h2 { margin: 4px 0 5px; font-size: 27px; }
.overall-board-heading p:last-child { margin: 0; color: var(--muted); font-size: 12px; }
.overall-leader {
  min-width: 270px;
  padding: 15px 18px;
  border: 1px solid #8d6238;
  border-radius: 12px;
  background: #2a211a;
}
.overall-leader span,
.overall-leader strong,
.overall-leader small { display: block; }
.overall-leader span { color: #ffad68; font-size: 8px; font-weight: 900; letter-spacing: 1.2px; }
.overall-leader strong { margin-top: 5px; font-size: 18px; }
.overall-leader small { margin-top: 3px; color: #a99a8e; font-size: 9px; }
.overall-summary {
  margin: 20px 0 10px;
  color: #80969e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.overall-standings { display: grid; gap: 7px; }
.overall-standing {
  border: 1px solid #29434d;
  border-radius: 10px;
  background: rgba(8,24,31,.8);
  overflow: hidden;
}
.overall-standing.leader { border-color: #8d6238; }
.overall-standing summary {
  min-height: 56px;
  padding: 10px 13px;
  display: grid;
  grid-template-columns: 38px minmax(130px,1fr) repeat(4, minmax(74px,auto));
  gap: 14px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}
.overall-standing summary::-webkit-details-marker { display: none; }
.standing-rank { color: var(--orange-2); font-size: 15px; font-weight: 900; }
.standing-tech strong,
.standing-tech small { display: block; }
.standing-tech strong { font-size: 13px; }
.standing-tech small { margin-top: 2px; color: #718991; font-size: 8px; }
.standing-stat { text-align: right; }
.standing-stat span,
.standing-stat strong { display: block; }
.standing-stat span { color: #6f8790; font-size: 7px; font-weight: 900; letter-spacing: .7px; }
.standing-stat strong { margin-top: 3px; font-size: 11px; font-variant-numeric: tabular-nums; }
.standing-breakdown {
  padding: 10px 13px 13px 65px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  border-top: 1px solid #233d47;
}
.standing-breakdown span {
  padding: 5px 7px;
  border-radius: 5px;
  background: #18313a;
  color: #a9bec4;
  font: 800 8px Consolas,monospace;
}
.overall-empty { padding: 20px; border: 1px dashed #38525c; border-radius: 10px; color: #718991; text-align: center; }
.level-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.level-card {
  min-height: 190px;
  padding: 22px;
  color: var(--ink);
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg, #122731, #0e2028);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: .2s ease;
}
.level-card:hover:not(:disabled) { border-color: #52717c; transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,0,0,.2); }
.level-card:disabled { cursor: not-allowed; opacity: .42; filter: saturate(.4); }
.level-card.completed { border-color: rgba(75,211,155,.5); }
.level-card.current { border-color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); }
.level-number { display: flex; justify-content: space-between; color: var(--orange-2); font-weight: 900; font-size: 12px; letter-spacing: 1px; }
.level-number i { font-style: normal; color: var(--green); }
.level-system {
  display: inline-block;
  margin-top: 15px;
  padding: 4px 7px;
  border: 1px solid #35505a;
  border-radius: 5px;
  color: #91aab2;
  background: #0b1d24;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .8px;
}
.level-card h3 { margin: 15px 0 8px; font-size: 20px; letter-spacing: -.5px; }
.level-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.level-tools { display: flex; gap: 5px; margin-top: 18px; }
.level-tools span { padding: 5px 7px; border-radius: 5px; background: #203740; font-size: 10px; color: #bcd0d6; }
.lock-mark { position: absolute; right: 18px; bottom: 18px; color: #6d8188; font-size: 17px; }

.game-screen { padding: 0; }
.back-button { font-weight: 700; text-align: left; }
.game-title { text-align: center; }
.game-title span { color: var(--orange-2); font-size: 10px; font-weight: 900; letter-spacing: 1.6px; }
.game-title h1 {
  margin: 3px 0 0;
  overflow: hidden;
  font-size: 20px;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.timer { text-align: right; }
.timer span { display: block; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: 1.5px; }
.timer strong { display: inline-block; font-variant-numeric: tabular-nums; font-size: 24px; }
.timer strong.penalty-applied { animation: penaltyPulse .7s ease-out; }
@keyframes penaltyPulse {
  35% { color: #ff9f5f; transform: scale(1.12); text-shadow: 0 0 14px rgba(255,106,42,.6); }
}
.game-layout {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: 230px minmax(560px, 1fr) 230px;
}
.call-panel, .readings-panel { padding: 26px 22px; background: rgba(11,29,37,.75); }
.call-panel { border-right: 1px solid var(--line); }
.readings-panel { border-left: 1px solid var(--line); }
.customer-quote { color: #eff5f6; font-size: 17px; line-height: 1.55; font-style: italic; }
.call-facts { margin: 24px 0; border-top: 1px solid var(--line); }
.call-facts div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.call-facts dt { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .7px; }
.call-facts dd { margin: 0; text-align: right; font-size: 12px; font-weight: 700; }
.objective { margin: 24px 0; padding: 16px; border-left: 3px solid var(--orange); background: #132832; }
.objective span { color: var(--orange-2); font-size: 9px; font-weight: 900; letter-spacing: 1.2px; }
.objective p { margin: 7px 0 0; color: #b3c3c8; font-size: 12px; line-height: 1.55; }
.diagnose-button { width: 100%; background: var(--orange); }
.hint-button {
  padding: 7px 8px;
  border: 1px solid #53727d;
  background: #17323c;
  color: #dce9ec;
}
.dispatch-hint-button {
  width: 100%;
  min-height: 42px;
  margin: 10px 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dispatch-hint-button span { font-size: 11px; }
.dispatch-hint-button small { margin: 0; font-size: 8px; }
.bug-report-button {
  width: 100%;
  min-height: 38px;
  margin: -7px 0 17px;
  padding: 6px 9px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #3b5660;
  background: transparent;
  color: #aebfc4;
}
.bug-report-button:hover { border-color: #76909a; color: var(--white); background: rgba(255,255,255,.03); }
.bug-report-button span { font-size: 10px; }
.bug-report-button small { color: #6f858d; font-size: 7px; }
.hint-button:hover:not(:disabled) { border-color: #ff9f5f; background: #1d3b46; }
.hint-button span,
.hint-button small { display: block; }
.hint-button span { font-size: 12px; font-weight: 900; }
.hint-button small { margin-top: 3px; color: #91a9b1; font-size: 7px; font-weight: 700; }
.hint-button.used {
  border-color: #52656c;
  background: #10252d;
  color: #80939a;
  cursor: default;
}
.hint-button.used small { color: #6d8188; }
.service-hint {
  margin: -6px 0 16px;
  padding: 12px 13px;
  border: 1px solid #8a6b38;
  border-left: 3px solid #ffad59;
  border-radius: 8px;
  background: #28251b;
  animation: hintReveal .25s ease-out;
}
.service-hint[hidden] { display: none; }
.service-hint span {
  color: #ffb66d;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1px;
}
.service-hint p {
  margin: 5px 0 0;
  color: #d8d5c7;
  font-size: 10px;
  line-height: 1.45;
}
@keyframes hintReveal {
  from { opacity: 0; transform: translateY(-5px); }
}

.workbench { min-width: 0; display: flex; flex-direction: column; background: #09171e; }
.bench-top { height: 64px; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.bench-top .panel-label { margin: 0 0 5px; font-size: 8px; }
.status-lights { display: flex; gap: 14px; font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: .7px; }
.status-lights b { font: inherit; }
.light { display: inline-block; width: 7px; height: 7px; margin-right: 4px; border-radius: 50%; background: #36515b; }
.light.power, .light.call { background: var(--green); box-shadow: 0 0 8px var(--green); }
.light.fault.active { background: var(--red); box-shadow: 0 0 8px var(--red); }
.furnace-stage {
  flex: 1;
  min-height: 510px;
  padding: 46px 12px 16px;
  position: relative;
  display: grid;
  place-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 24px 24px;
}
.bench-meter {
  position: absolute;
  top: 56px;
  right: 22px;
  z-index: 18;
  width: 178px;
  min-height: 104px;
  padding: 12px 14px;
  border: 3px solid #405159;
  border-radius: 12px;
  background: linear-gradient(145deg,#26383f,#101d22);
  box-shadow: 0 14px 34px rgba(0,0,0,.42);
  pointer-events: none;
}
.bench-meter[hidden] { display: none; }
.bench-meter span {
  display: block;
  color: #ffb06d;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1px;
}
.bench-meter strong {
  display: block;
  margin: 7px 0 5px;
  color: #c9ffe9;
  font: 800 28px Consolas,monospace;
  font-variant-numeric: tabular-nums;
}
.bench-meter small {
  display: block;
  color: #9eb0b6;
  font-size: 9px;
  line-height: 1.35;
}
.bench-meter.black-latched { border-color: #67d5aa; box-shadow: 0 0 0 3px rgba(75,211,155,.12), 0 14px 34px rgba(0,0,0,.42); }
.instrument-overlay {
  position: absolute;
  inset: 0;
  z-index: 15;
  pointer-events: none;
  overflow: hidden;
}
.lead-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lead-cable {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  opacity: 0;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.45));
  transition: opacity .18s;
}
.instrument-overlay.active .lead-cable.visible { opacity: 1; }
.black-cable { stroke: #11181b; }
.red-cable { stroke: #ed3c45; }
.blue-cable { stroke: #28a8df; }
.floating-tool {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  transform: translate(-100px,-100px);
  transition: opacity .1s;
  will-change: transform;
  filter: drop-shadow(0 7px 8px rgba(0,0,0,.5));
}
.floating-tool.visible { opacity: 1; }
.probe-set { width: 72px; height: 92px; }
.probe {
  position: absolute;
  top: 24px;
  width: 14px;
  height: 64px;
  border-radius: 7px 7px 4px 4px;
}
.probe::before {
  content: "";
  position: absolute;
  left: 5px;
  top: -20px;
  width: 4px;
  height: 25px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg,#839096,#e7edef,#707b80);
}
.probe i { position: absolute; inset: 14px 3px; border-radius: 3px; background: rgba(255,255,255,.18); }
.black-probe {
  left: 12px;
  top: 26px;
  background: linear-gradient(90deg,#111,#3c4447,#080a0b);
  transform: rotate(-10deg);
  transform-origin: 50% 8px;
}
.red-probe {
  left: 43px;
  top: 24px;
  background: linear-gradient(90deg,#9f151d,#f24b54,#8e1118);
}
.probe-set.black-active .black-probe {
  left: 29px;
  top: 24px;
  transform: none;
}
.probe-set.black-active .red-probe { opacity: 0; }
.probe-set.red-active .black-probe { opacity: 0; }
.amp-clamp { width: 76px; height: 105px; }
.clamp-jaw {
  position: absolute;
  top: 0;
  width: 38px;
  height: 58px;
  border: 10px solid #f0a72b;
  background: transparent;
  transition: transform .18s;
}
.clamp-jaw.left { left: 4px; border-radius: 38px 0 0 38px; border-right: 0; transform-origin: bottom right; }
.clamp-jaw.right { right: 4px; border-radius: 0 38px 38px 0; border-left: 0; transform-origin: bottom left; }
.amp-clamp.hovering .clamp-jaw.left { transform: rotate(-18deg); }
.amp-clamp.hovering .clamp-jaw.right { transform: rotate(18deg); }
.amp-clamp.testing .clamp-jaw { transform: rotate(0); }
.clamp-body {
  position: absolute;
  left: 17px;
  top: 47px;
  width: 43px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 8px 8px 13px 13px;
  background: linear-gradient(90deg,#202b2f,#4b5a60,#182126);
  border: 2px solid #68777c;
  color: #bcebdd;
  font: 800 17px Consolas,monospace;
}
.pressure-probe { width: 62px; height: 70px; }
.pressure-probe i, .analyzer-probe i {
  position: absolute;
  height: 8px;
  border-radius: 5px;
  background: linear-gradient(#e6ecee,#687a81);
  transform-origin: left center;
}
.pressure-probe i { left: 33px; top: 24px; width: 34px; }
.hose-port {
  position: absolute;
  left: 0;
  top: 9px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 5px solid #248ebd;
  background: #182b33;
  color: #8fdcff;
  font-weight: 900;
}
.analyzer-probe { width: 94px; height: 42px; }
.analyzer-probe span {
  position: absolute;
  left: 0;
  top: 4px;
  width: 48px;
  height: 33px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #e3ad2e;
  border: 3px solid #ffe19a;
  color: #182128;
  font: 900 11px Consolas,monospace;
}
.analyzer-probe i { left: 43px; top: 17px; width: 55px; }
.refrigeration-probe {
  width: 104px;
  height: 74px;
}
.refrigeration-display {
  position: absolute;
  left: 21px;
  top: 8px;
  width: 60px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 4px solid #4d5d63;
  border-radius: 9px;
  background: #bcead5;
  color: #18372d;
  font: 900 12px Consolas,monospace;
}
.refrigeration-blue-hose,
.refrigeration-red-hose {
  position: absolute;
  top: 43px;
  width: 43px;
  height: 25px;
  border: 5px solid;
  border-top: 0;
  border-radius: 0 0 28px 28px;
}
.refrigeration-blue-hose { left: 8px; border-color: #279cd1; }
.refrigeration-red-hose { right: 8px; border-color: #df4c52; }
.refrigeration-clamp {
  position: absolute;
  right: -9px;
  top: 4px;
  width: 23px;
  height: 34px;
  border: 6px solid #f1b42c;
  border-left-width: 3px;
  border-radius: 12px;
  transform: rotate(16deg);
}
.meter-anchor {
  position: absolute;
  right: 82px;
  top: 83px;
  width: 54px;
  height: 66px;
  display: none;
  place-items: center;
  border: 3px solid #3c4c52;
  border-radius: 8px;
  background: linear-gradient(145deg,#25363d,#0e1a1f);
  box-shadow: 0 8px 18px rgba(0,0,0,.4);
  color: #bfe5d7;
  font: 800 10px Consolas,monospace;
}
.instrument-overlay.active .meter-anchor { display: grid; }
.furnace-stage.instrument-ready [data-component] { cursor: crosshair; }
.furnace-stage.instrument-ready [data-component]::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px dashed transparent;
  border-radius: inherit;
  pointer-events: none;
}
.furnace-stage.instrument-ready [data-component]:hover::after {
  border-color: rgba(255,141,66,.85);
  animation: targetPulse .85s infinite alternate;
}
.furnace-stage .tested-point { box-shadow: 0 0 0 4px rgba(75,211,155,.18), 0 0 18px rgba(75,211,155,.35) !important; }
@keyframes targetPulse { to { inset: -9px; opacity: .35; } }
.hint-banner {
  position: absolute;
  left: 50%;
  top: 15px;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 30px);
  padding: 8px 12px;
  border-radius: 7px;
  color: #9eb2b8;
  background: #132830;
  font-size: 11px;
  text-align: center;
}
.furnace { width: 360px; height: 440px; position: relative; perspective: 700px; }
.furnace-panel {
  position: absolute;
  left: 45px;
  width: 270px;
  border: 2px solid #52646b;
  border-radius: 4px;
  background: linear-gradient(135deg, #728187, #46565d);
  box-shadow: inset 0 0 0 5px rgba(255,255,255,.035), 8px 12px 30px rgba(0,0,0,.28);
  color: #d8e0e2;
  cursor: pointer;
  transition: transform .5s, opacity .5s;
  z-index: 5;
}
.upper-panel { top: 15px; height: 193px; }
.lower-panel { top: 214px; height: 218px; }
.furnace-panel.open { transform: translateX(-245px) rotateY(-12deg); opacity: .48; pointer-events: none; }
.panel-name { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.panel-fastener { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #26373d; top: 8px; }
.panel-fastener.one { left: 9px; } .panel-fastener.two { right: 9px; }
.compartment {
  display: none;
  position: absolute;
  left: 0;
  width: 100%;
  border: 2px solid #344950;
  background:
    radial-gradient(circle at 55% 45%, rgba(54,103,116,.22), transparent 60%),
    #0c1b22;
  box-shadow: inset 0 0 30px rgba(82,143,158,.12);
  z-index: -1;
}
.upper-components { top: 0; height: 193px; }
.lower-components { top: 0; height: 218px; }
.furnace-panel.open .compartment { display: block; transform: translateX(245px) rotateY(12deg); opacity: 2.08; pointer-events: auto; z-index: 6; }
.component, .duct span, .flue span, .gas-line span {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid #56717a;
  background: #18313b;
  color: #d5e0e3;
  font-size: 9px;
  font-weight: 700;
  text-align: center;
  cursor: crosshair;
  z-index: 10;
}
.component:hover, .duct span:hover, .flue span:hover, .gas-line span:hover { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,106,42,.13); }
.furnace-panel.open .component {
  border-color: #6f929d;
  background-color: #1b3b47;
  color: #f2f8f9;
  text-shadow: 0 1px 2px #000;
}
.inducer { width: 70px; height: 70px; border-radius: 50%; left: 16px; top: 20px; }
.pressure { width: 65px; height: 40px; left: 100px; top: 18px; border-radius: 20px; }
.igniter { width: 47px; height: 32px; left: 105px; top: 105px; }
.flame { width: 47px; height: 32px; left: 160px; top: 105px; }
.gas { width: 68px; height: 38px; right: 14px; top: 28px; }
.limit { width: 50px; height: 30px; left: 25px; bottom: 14px; }
.board {
  width: 112px;
  height: 104px;
  left: 11px;
  top: 12px;
  display: block;
  padding: 7px;
  background:
    linear-gradient(90deg,transparent 48%,rgba(126,202,114,.12) 49% 51%,transparent 52%),
    #183c32 !important;
  border-color: #6cae84 !important;
}
.board > b { display: block; margin-bottom: 7px; font-size: 8px; color: #d8f3df; }
.line-terminals, .thermostat-strip { display: flex; position: relative; gap: 4px; }
.line-terminals { margin-bottom: 9px; }
.thermostat-strip { gap: 2px; padding-top: 7px; border-top: 1px solid rgba(255,255,255,.18); }
.terminal {
  position: relative;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid #b7c3c6;
  background: #202b2f;
  color: #fff;
  font: 900 8px Arial,sans-serif;
  font-style: normal;
  cursor: crosshair;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.35);
}
.line-terminal { border-color: #d7bd56; background: #4b3c0e; }
.neutral-terminal { border-color: #f1f1e8; background: #676963; }
.terminal-r { border-color: #ed4b4b; background: #701d1d; }
.terminal-c { border-color: #4a77c8; background: #1d396d; }
.terminal-g { border-color: #58be73; background: #205c30; }
.terminal-w { border-color: #f1f1e8; background: #777870; }
.terminal-y { border-color: #e2c347; background: #6d5c18; }
.terminal-o { border-color: #ec8b3b; background: #753b12; }
.terminal.black-reference {
  box-shadow: 0 0 0 4px rgba(75,211,155,.24), 0 0 15px rgba(75,211,155,.72);
}
.test-terminal {
  position: absolute;
  bottom: -7px;
  min-width: 15px;
  height: 15px;
  padding: 0 2px;
  display: grid;
  place-items: center;
  border: 2px solid #d7dfe1;
  border-radius: 8px;
  background: #15242a;
  color: #fff;
  font: 900 6px Arial,sans-serif;
  font-style: normal;
  box-shadow: 0 2px 4px rgba(0,0,0,.5);
  z-index: 3;
}
.test-terminal.left { left: 5px; }
.test-terminal.right { right: 5px; }
.test-terminal:hover { border-color: var(--orange); transform: scale(1.18); }
.capacitor { width: 35px; height: 57px; right: 30px; top: 18px; border-radius: 45%; }
.blower { width: 112px; height: 68px; border-radius: 50%; left: 86px; bottom: 15px; }
.transformer { width: 58px; height: 42px; left: 15px; bottom: 21px; }
.filter { width: 20px; height: 105px; right: 10px; bottom: 15px; background: repeating-linear-gradient(90deg,#294651 0 2px,#10232b 2px 5px); writing-mode: vertical-rl; }
.duct { position: absolute; z-index: 1; border: 2px solid #41565e; background: #21353d; }
.supply-duct { top: -40px; left: 75px; width: 160px; height: 65px; }
.return-duct { bottom: -35px; left: 55px; width: 200px; height: 55px; }
.duct span, .flue span, .gas-line span { padding: 5px; border-radius: 5px; }
.supply-duct span { right: 8px; top: 10px; }
.return-duct span { left: 8px; top: 7px; }
.flue { position: absolute; width: 42px; height: 125px; border: 2px solid #41565e; background: #293d45; left: 5px; top: -15px; z-index: 1; }
.flue span { left: -22px; top: 18px; width: 80px; }
.gas-line { position: absolute; width: 95px; height: 8px; background: #d8b52c; right: -34px; top: 150px; }
.gas-line .gas-tap { width: 66px; }
.gas-line .inlet-tap { left: 42px; top: -15px; }
.gas-line .manifold-tap { left: 4px; top: 23px; }

.equipment-diagram {
  width: 760px;
  height: 520px;
  flex: 0 0 auto;
  position: relative;
  border: 2px solid #415861;
  border-radius: 12px;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    #0a1920;
  background-size: 20px 20px;
  box-shadow: inset 0 0 45px rgba(0,0,0,.38), 0 18px 42px rgba(0,0,0,.22);
}
.equipment-diagram.layout-furnace {
  width: 824px;
  height: 420px;
  background-size: 16px 16px;
}
.equipment-diagram.layout-rtu,
.equipment-diagram.layout-mua,
.equipment-diagram.layout-freezer { width: 760px; }
.system-layout {
  position: absolute;
  inset: 0;
  display: none;
}
.equipment-diagram.layout-furnace .furnace-layout,
.equipment-diagram.layout-rtu .rtu-layout,
.equipment-diagram.layout-mua .mua-layout,
.equipment-diagram.layout-freezer .freezer-layout { display: block; }
.equipment-diagram.layout-furnace .furnace-layout {
  width: 1024px;
  height: 520px;
  transform: scale(.8);
  transform-origin: left top;
}
.equipment-diagram.layout-furnace > .diagram-key {
  right: 10px;
  top: 7px;
  transform: scale(.8);
  transform-origin: right top;
}
.equipment-diagram.layout-rtu {
  background:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(145deg,#101d22,#071319);
  background-size: 20px 20px,20px 20px,auto;
}
.equipment-diagram.layout-mua {
  background:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(145deg,#132026,#08151b);
  background-size: 20px 20px,20px 20px,auto;
}
.equipment-diagram.layout-freezer {
  background:
    linear-gradient(rgba(164,222,239,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(164,222,239,.025) 1px, transparent 1px),
    linear-gradient(145deg,#10232b,#07151c);
  background-size: 20px 20px,20px 20px,auto;
}
.diagram-key {
  position: absolute;
  right: 12px;
  top: 9px;
  z-index: 6;
  display: flex;
  gap: 12px;
  color: #8fa5ad;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .4px;
  text-transform: uppercase;
}
.diagram-key span { display: flex; align-items: center; gap: 5px; }
.diagram-key i { width: 20px; height: 3px; border-radius: 3px; background: #e6bd37; }
.diagram-key .key-control { background: #ef6b57; }
.diagram-key .key-neutral { background: #c4d1d5; }
.equipment-zone {
  position: absolute;
  left: 10px;
  right: 10px;
  border: 1px solid #29434d;
  border-radius: 9px;
  background: rgba(15,39,48,.42);
}
.furnace-layout .equipment-zone {
  right: auto;
  width: 738px;
}
.burner-zone { top: 34px; height: 225px; }
.controls-zone { top: 268px; height: 240px; }
.zone-label {
  position: absolute;
  left: 10px;
  top: 8px;
  color: #6f8790;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}
.wiring-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.furnace-layout > .wiring-layer,
.furnace-layout > .gas-train-layer,
.furnace-layout > .airflow-layer { width: 760px; }
.gas-train-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  filter: drop-shadow(0 3px 2px rgba(0,0,0,.48));
}
.gas-pipe {
  fill: none;
  stroke: #d5b44a;
  stroke-width: 9;
  stroke-linecap: square;
  stroke-linejoin: round;
}
.gas-pipe::after { content: ""; }
.gas-fitting {
  fill: none;
  stroke: #8f7731;
  stroke-width: 7;
  stroke-linecap: round;
}
.gas-flow {
  fill: none;
  stroke: #fff0a3;
  stroke-width: 2;
  stroke-dasharray: 4 3;
  marker-end: url(#gasFlowArrow);
}
#gasFlowArrow path { fill: #fff0a3; }
.manual-shutoff path {
  fill: #c9a536;
  stroke: #ffdf71;
  stroke-width: 2;
}
.manual-shutoff .shutoff-handle {
  fill: none;
  stroke: #df4a42;
  stroke-width: 6;
  stroke-linecap: round;
}
.burner-feed,
.burner-head {
  fill: none;
  stroke: #b28b35;
  stroke-width: 7;
  stroke-linecap: round;
}
.burner-head { stroke-width: 9; }
.burner-flame {
  fill: #3f9fff;
  stroke: #9bd5ff;
  stroke-width: 1.5;
  opacity: .9;
}
.gas-label {
  fill: #a99552;
  font: 800 7px Inter,Arial,sans-serif;
  letter-spacing: .8px;
}
.airflow-layer {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 2;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.air-duct {
  fill: rgba(73,110,123,.09);
  stroke: #3b5f6b;
  stroke-width: 2;
  stroke-linecap: square;
  stroke-linejoin: round;
  stroke-dasharray: 5 4;
}
.furnace-air-path {
  fill: none;
  stroke: #62b8cf;
  stroke-width: 4;
  stroke-dasharray: 9 7;
  stroke-linecap: round;
  marker-end: url(#furnaceAirArrow);
  opacity: .82;
}
#furnaceAirArrow path { fill: #62b8cf; }
.airflow-label {
  fill: #78aebc;
  font: 900 7px Inter,Arial,sans-serif;
  letter-spacing: 1px;
}
.conductor {
  fill: none;
  stroke: #e6bd37;
  stroke-width: 3.5;
  stroke-linecap: round;
  opacity: .88;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.8));
  transition: opacity .18s, stroke-width .18s;
}
.conductor.control-wire { stroke: #ef6b57; }
.conductor.neutral-wire { stroke: #c4d1d5; }
.conductor.thermostat-wire { stroke-width: 2.5; }
.conductor.red-wire { stroke: #ef5559; }
.conductor.blue-wire { stroke: #4f8de3; }
.conductor.white-wire { stroke: #f2f0e8; }
.conductor.green-wire { stroke: #52bd74; }
.conductor.yellow-wire { stroke: #edcb48; }
.conductor.orange-wire { stroke: #ed8c3d; }
.conductor.sensor-wire { stroke: #bd75df; }
.conductor.capacitor-wire { stroke: #9b6f49; }
.conductor.disconnected {
  opacity: .42;
  stroke-dasharray: 7 6;
  animation: openCircuit 1s linear infinite;
}
@keyframes openCircuit { to { stroke-dashoffset: -13; } }

.equipment-component {
  position: absolute;
  z-index: 4;
  min-height: 66px;
  padding: 10px 9px 9px;
  border: 1px solid #58727c;
  border-radius: 9px;
  background: linear-gradient(145deg, #1a3540, #102730);
  box-shadow: 0 7px 17px rgba(0,0,0,.28);
  color: #e4edef;
  text-align: left;
}
.equipment-component::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(255,255,255,.035);
  border-radius: 6px;
  pointer-events: none;
}
.equipment-component strong,
.equipment-component small {
  display: block;
  position: relative;
  z-index: 2;
}
.equipment-component strong { font-size: 10px; letter-spacing: -.1px; }
.equipment-component small { margin-top: 2px; color: #8ea3aa; font-size: 8px; }
.component-visual {
  position: absolute;
  z-index: 1;
  display: block;
  pointer-events: none;
}
.terminal-row {
  position: relative;
  z-index: 5;
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 9px;
}
.wiring-terminal {
  position: relative;
  z-index: 5;
  min-width: 25px;
  height: 25px;
  padding: 2px 5px 0;
  display: inline-grid;
  place-items: center;
  border: 2px solid #c2cdd0;
  border-radius: 50%;
  background: #202b2f;
  color: #fff;
  font: 900 8.5px/1 Arial,sans-serif;
  letter-spacing: -.15px;
  text-shadow: 0 1px 2px #000, 0 0 3px #000;
  cursor: crosshair;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.35), 0 2px 4px rgba(0,0,0,.35);
  transition: transform .18s, box-shadow .18s, opacity .18s;
}
.wiring-terminal::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 4px;
  width: 8px;
  height: 1.5px;
  border-radius: 2px;
  background: rgba(255,255,255,.45);
  transform: translateX(-50%) rotate(-18deg);
  opacity: .72;
  transition: transform .22s;
  pointer-events: none;
}
.wiring-terminal:hover { transform: scale(1.16); border-color: var(--orange); }
.wiring-terminal.disconnected {
  transform: translateY(5px) rotate(7deg);
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255,106,42,.16), 0 6px 11px rgba(0,0,0,.45);
}
.wiring-terminal.disconnected::before { transform: translateX(-50%) rotate(72deg); }
.wiring-terminal.terminal-line { border-color: #e6bd37; background: #50400f; }
.wiring-terminal.terminal-neutral { border-color: #e9edeb; background: #596268; }
.wiring-terminal.terminal-control { border-color: #ed8c3d; background: #643a17; }
.wiring-terminal.terminal-sensor { border-color: #bd75df; background: #543064; }
.wiring-terminal.terminal-capacitor { border-color: #af815b; background: #513823; }
.wiring-terminal.terminal-r { border-color: #ed4b4b; background: #701d1d; }
.wiring-terminal.terminal-c { border-color: #4a77c8; background: #1d396d; }
.wiring-terminal.terminal-g { border-color: #58be73; background: #205c30; }
.wiring-terminal.terminal-w { border-color: #f1f1e8; background: #777870; }
.wiring-terminal.terminal-y { border-color: #e2c347; background: #6d5c18; }
.wiring-terminal.terminal-o { border-color: #ec8b3b; background: #753b12; }
.terminal-service-ready .wiring-terminal {
  cursor: pointer;
  animation: terminalReady 1s ease-in-out infinite alternate;
}
@keyframes terminalReady {
  to { box-shadow: inset 0 0 0 2px rgba(0,0,0,.35), 0 0 0 4px rgba(255,141,66,.13); }
}
.terminal-service-ready .equipment-component { cursor: default; }

.thermostat-component { left: 24px; top: 302px; width: 114px; }
.thermostat-component .terminal-row { flex-wrap: wrap; gap: 4px; }
.thermostat-component .wiring-terminal { min-width: 22px; width: 22px; height: 22px; padding: 2px 0 0; font-size: 8px; }
.inducer-component {
  left: 30px;
  top: 72px;
  width: 137px;
  min-height: 96px;
  padding: 20px 9px 10px 68px;
  border-radius: 52% 42% 44% 52%;
  background: radial-gradient(circle at 30% 50%,#3f5962 0 8%,#182f38 9% 30%,#284650 31% 34%,#112832 35%);
}
.inducer-component::before { display: none; }
.inducer-visual {
  left: 12px;
  top: 22px;
  width: 48px;
  height: 48px;
  border: 5px solid #79909a;
  border-radius: 50%;
  box-shadow: inset 0 0 0 5px #17282f, inset 0 0 14px #020608;
}
.inducer-visual i {
  position: absolute;
  left: 13px;
  top: 13px;
  width: 13px;
  height: 13px;
  border: 3px solid #a9bbc0;
  border-radius: 50%;
}
.inducer-visual b {
  position: absolute;
  right: -13px;
  top: 13px;
  width: 18px;
  height: 14px;
  border-radius: 0 8px 8px 0;
  background: #526971;
}
.pressure-component {
  left: 184px;
  top: 79px;
  width: 126px;
  min-height: 84px;
  padding: 14px 8px 9px 55px;
  border-radius: 26px 9px 9px 26px;
}
.pressure-component::before { display: none; }
.pressure-visual {
  left: 8px;
  top: 14px;
  width: 40px;
  height: 40px;
  border: 4px solid #96a9ae;
  border-radius: 50%;
  background: radial-gradient(circle,#253a42 0 20%,#60767e 22% 26%,#172b33 28%);
}
.pressure-visual i {
  position: absolute;
  right: -16px;
  top: 4px;
  width: 17px;
  height: 8px;
  border-radius: 4px;
  background: #71868d;
}
.pressure-visual b {
  position: absolute;
  left: 10px;
  bottom: -13px;
  width: 5px;
  height: 14px;
  border-radius: 4px;
  background: #5a9aa9;
}
.igniter-component {
  left: 315px;
  top: 111px;
  width: 112px;
  min-height: 82px;
  padding: 13px 7px 8px 48px;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.igniter-component::before { display: none; }
.igniter-visual {
  left: 8px;
  top: 10px;
  width: 31px;
  height: 58px;
}
.igniter-visual i {
  position: absolute;
  left: 7px;
  bottom: 0;
  width: 19px;
  height: 22px;
  border-radius: 4px;
  background: linear-gradient(90deg,#d2d5ca,#fff,#aeb2a8);
  box-shadow: inset 0 0 0 3px #8b918a;
}
.igniter-visual b {
  position: absolute;
  left: 13px;
  top: 0;
  width: 8px;
  height: 42px;
  border: 4px solid #ded6c0;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  box-shadow: inset 0 0 0 2px #24282a;
}
.gas-component {
  left: 488px;
  top: 128px;
  width: 112px;
  min-height: 82px;
  padding: 12px 8px 8px 51px;
  border-radius: 19px 8px 16px 8px;
  border-color: #74848a;
  background: linear-gradient(145deg,#5b686c,#29383d 55%,#17282e);
}
.gas-component::before { display: none; }
.gas-valve-visual {
  left: 7px;
  top: 15px;
  width: 40px;
  height: 43px;
}
.gas-valve-visual::before,
.gas-valve-visual::after {
  content: "";
  position: absolute;
  top: 17px;
  width: 12px;
  height: 15px;
  background: #9a863e;
}
.gas-valve-visual::before { left: -9px; }
.gas-valve-visual::after { right: -9px; }
.gas-valve-visual i {
  position: absolute;
  inset: 8px 0 0;
  border: 3px solid #8d9a9e;
  border-radius: 8px;
  background: linear-gradient(#45575d,#1d2d32);
}
.gas-valve-visual b {
  position: absolute;
  left: 8px;
  top: 0;
  width: 24px;
  height: 18px;
  border: 3px solid #839196;
  border-radius: 5px 5px 2px 2px;
  background: repeating-linear-gradient(90deg,#172126 0 3px,#39494e 3px 5px);
}
.flame-component {
  left: 438px;
  top: 77px;
  width: 78px;
  min-height: 86px;
  padding: 11px 6px 8px 30px;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.flame-component::before { display: none; }
.flame-sensor-visual {
  left: 8px;
  top: 9px;
  width: 18px;
  height: 62px;
}
.flame-sensor-visual i {
  position: absolute;
  left: 5px;
  top: 0;
  width: 5px;
  height: 45px;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(90deg,#929da1,#f2f5f3,#758287);
  transform: rotate(8deg);
  transform-origin: bottom;
}
.flame-sensor-visual b {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 17px;
  height: 20px;
  border-radius: 3px;
  background: #eee8d8;
  box-shadow: inset 0 0 0 3px #98968d;
}
.limit-component {
  left: 553px;
  top: 48px;
  width: 119px;
  min-height: 76px;
  padding: 15px 7px 8px 50px;
  border-radius: 38px 9px 9px 38px;
}
.limit-component::before { display: none; }
.limit-visual {
  left: 9px;
  top: 13px;
  width: 36px;
  height: 36px;
  border: 4px solid #9aa9ad;
  border-radius: 50%;
  background: radial-gradient(circle,#506269 0 13%,#1b3038 15% 45%,#6b7d82 47% 54%,#172930 56%);
}
.limit-visual i {
  position: absolute;
  left: 13px;
  top: -7px;
  width: 4px;
  height: 47px;
  background: rgba(255,255,255,.16);
  transform: rotate(45deg);
}
.board-component {
  left: 150px;
  top: 302px;
  width: 260px;
  min-height: 181px;
  border-color: #68a37b;
  background:
    linear-gradient(90deg, transparent 49%, rgba(118,196,111,.06) 50%, transparent 51%),
    linear-gradient(145deg, #173b32, #102a25);
}
.board-terminal-group {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 9px;
  padding-top: 7px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.board-terminal-group > span {
  flex: 0 0 52px;
  color: #82a892;
  font-size: 6px;
  font-weight: 900;
  line-height: 1.2;
}
.board-terminal-group .wiring-terminal {
  min-width: 23px;
  height: 23px;
  padding: 2px 4px 0;
  font-size: 7.5px;
}
.board-outputs { flex-wrap: wrap; padding-left: 56px; }
.board-outputs > span { position: absolute; left: 0; top: 11px; }
.transformer-component {
  left: 420px;
  top: 375px;
  width: 116px;
  min-height: 104px;
  padding: 13px 7px 8px 48px;
  background: linear-gradient(145deg,#293b40,#14262d);
}
.transformer-component::before { display: none; }
.transformer-visual {
  left: 7px;
  top: 18px;
  width: 37px;
  height: 55px;
  border-top: 7px solid #77858a;
  border-bottom: 7px solid #77858a;
  background: repeating-linear-gradient(0deg,#4f5e62 0 2px,#1d2b30 2px 4px);
}
.transformer-visual i {
  position: absolute;
  left: 8px;
  top: 6px;
  width: 21px;
  height: 30px;
  border: 6px solid #b9873e;
  border-radius: 8px;
  background: #1a2529;
}
.transformer-visual b {
  position: absolute;
  left: -4px;
  right: -4px;
  top: 23px;
  height: 7px;
  background: #8a999d;
}
.transformer-component .terminal-row { flex-wrap: wrap; gap: 4px; }
.blower-component {
  left: 540px;
  top: 319px;
  width: 164px;
  min-height: 150px;
  padding: 10px;
  border-radius: 12px;
  border-color: #68818a;
  background: linear-gradient(145deg,#243b43,#10262e);
}
.blower-component::before { display: none; }
.blower-assembly-visual {
  position: absolute;
  left: 4px;
  top: 25px;
  z-index: 2;
  width: 156px;
  height: 106px;
  overflow: visible;
  filter: drop-shadow(0 4px 4px rgba(0,0,0,.42));
}
.blower-housing {
  fill: #1d343d;
  stroke: #91a5ab;
  stroke-width: 4;
  stroke-linejoin: round;
}
.blower-wheel {
  fill: #13262d;
  stroke: #738b93;
  stroke-width: 3;
}
.blower-wheel-inner {
  fill: none;
  stroke: #435d66;
  stroke-width: 2;
}
.blower-hub {
  fill: #263d45;
  stroke: #c0cdd0;
  stroke-width: 3;
}
.blower-blades path {
  fill: none;
  stroke: #80969d;
  stroke-width: 4;
  stroke-linecap: round;
}
.blower-shaft {
  fill: none;
  stroke: #c5d0d2;
  stroke-width: 4;
}
.blower-motor {
  fill: #3d5259;
  stroke: #899da3;
  stroke-width: 3;
}
.motor-ribs {
  fill: none;
  stroke: #1c3037;
  stroke-width: 2;
}
.blower-discharge {
  fill: none;
  stroke: #9aadb2;
  stroke-width: 4;
  stroke-linecap: square;
}
.blower-tongue {
  fill: none;
  stroke: #91a5ab;
  stroke-width: 3;
  stroke-linecap: round;
}
.blower-component > strong {
  position: absolute;
  left: 10px;
  top: 8px;
  width: 144px;
  font-size: 8.5px;
  line-height: 1.2;
}
.blower-component > small {
  position: absolute;
  left: 10px;
  top: 19px;
  width: 144px;
  font-size: 6.5px;
  line-height: 1.25;
}
.blower-component .terminal-row {
  position: absolute;
  left: 34px;
  bottom: 8px;
  margin: 0;
}
.blower-component .wiring-terminal {
  width: 25px;
  min-width: 25px;
}
.capacitor-component {
  left: 708px;
  top: 414px;
  width: 44px;
  min-height: 86px;
  border-radius: 27px 27px 14px 14px;
  padding: 15px 6px 8px;
  background: linear-gradient(90deg,#68777c,#b7c1c3 45%,#526167);
  color: #142127;
}
.capacitor-component::before { inset: 5px; border-color: rgba(0,0,0,.12); border-radius: 22px 22px 10px 10px; }
.capacitor-visual {
  left: 7px;
  top: -5px;
  width: 30px;
  height: 10px;
  border-radius: 50%;
  background: #cfd7d8;
  border: 2px solid #68777c;
}
.capacitor-visual i {
  position: absolute;
  left: 6px;
  top: -5px;
  width: 4px;
  height: 8px;
  background: #d7b64c;
  box-shadow: 12px 0 #d7b64c;
}
.capacitor-component strong { font-size: 8px; }
.capacitor-component small { display: none; }
.capacitor-component .terminal-row { gap: 3px; }
.capacitor-component .wiring-terminal { min-width: 20px; width: 20px; height: 20px; padding: 0; }
.filter-component {
  left: 716px;
  top: 332px;
  width: 28px;
  height: 72px;
  min-height: 0;
  padding: 9px 5px;
  background: repeating-linear-gradient(90deg,#294651 0 3px,#10232b 3px 7px);
}
.filter-component strong { writing-mode: vertical-rl; font-size: 8px; }
.filter-component small { display: none; }

.test-port {
  position: absolute;
  z-index: 5;
  padding: 5px 7px;
  border: 1px solid #55717a;
  border-radius: 6px;
  background: #142f39;
  color: #c7d5d9;
  font-size: 7px;
  font-weight: 800;
  cursor: crosshair;
}
.test-port:hover { border-color: var(--orange); }
.flue-port { left: 15px; top: 185px; }
.gas-test-port {
  height: 22px;
  padding: 3px 7px 3px 19px;
  border-color: #b49435;
  background: #2b291a;
  color: #f1d878;
  white-space: nowrap;
}
.gas-test-port::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 100%;
  width: 5px;
  height: 10px;
  border-radius: 0 0 3px 3px;
  background: #c6a23c;
}
.gas-test-port i {
  position: absolute;
  left: 5px;
  top: 7px;
  width: 7px;
  height: 7px;
  border: 2px solid #f0d77d;
  border-radius: 50%;
  background: #50431d;
}
.inlet-port { left: 614px; top: 184px; }
.manifold-port { left: 390px; top: 182px; }
.static-test-port {
  width: 112px;
  min-height: 34px;
  padding: 5px 6px 4px 21px;
  border-color: #4f8fa2;
  background: #102d37;
  color: #d7edf2;
  text-align: left;
  box-shadow: 0 5px 12px rgba(0,0,0,.28);
}
.static-test-port strong,
.static-test-port small { display: block; pointer-events: none; }
.static-test-port strong { font-size: 8px; letter-spacing: .15px; }
.static-test-port small { margin-top: 1px; color: #80aab6; font-size: 6.5px; line-height: 1.15; }
.static-test-port i {
  position: absolute;
  left: 7px;
  top: 9px;
  width: 8px;
  height: 8px;
  border: 2px solid #9ed9e7;
  border-radius: 50%;
  background: #173f4b;
  box-shadow: 0 0 0 2px rgba(98,184,207,.14);
}
.static-test-port::before {
  content: "";
  position: absolute;
  width: 2px;
  background: #5d9aaa;
  pointer-events: none;
}
.supply-port { left: 548px; top: 279px; }
.supply-port::before { left: 36px; top: 100%; height: 18px; }
.return-port { left: 586px; top: 474px; width: 112px; }
.return-port::before { left: 82px; bottom: 100%; height: 17px; }

.diagnostic-ladder {
  position: absolute;
  left: 768px;
  top: 34px;
  z-index: 4;
  width: 244px;
  height: 474px;
  overflow: hidden;
  border: 1px solid #526b75;
  border-radius: 10px;
  background:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.022) 1px,transparent 1px),
    #0d2028;
  background-size: 16px 16px;
  box-shadow: inset 0 0 24px rgba(0,0,0,.35), 0 8px 20px rgba(0,0,0,.24);
}
.diagnostic-ladder header {
  height: 52px;
  padding: 10px 12px;
  border-bottom: 1px solid #314c56;
  background: rgba(19,45,55,.88);
}
.diagnostic-ladder header span,
.diagnostic-ladder header strong { display: block; }
.diagnostic-ladder header span {
  color: #ff9f5f;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1.15px;
  text-transform: uppercase;
}
.diagnostic-ladder header strong {
  margin-top: 4px;
  color: #dce8ea;
  font-size: 10px;
}
.diagnostic-ladder svg {
  width: 100%;
  height: 420px;
  display: block;
}
.ladder-rail,
.ladder-rung path,
.ladder-rung circle {
  fill: none;
  stroke: #e7c453;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ladder-rung.low-voltage path,
.ladder-rung.low-voltage circle,
.ladder-rail.low-voltage { stroke: #eb765f; }
.ladder-device {
  fill: #142e37;
  stroke: #8aa1a8;
  stroke-width: 1.5;
}
.ladder-motor-symbol,
.ladder-coil {
  fill: #172c34 !important;
  stroke-width: 2 !important;
}
.ladder-capacitor { stroke-width: 3 !important; }
.ladder-contact.open-contact { stroke: #eb765f; }
.diagnostic-ladder text {
  fill: #aebec3;
  font-family: Inter,Arial,sans-serif;
  font-size: 6.5px;
  font-weight: 800;
  letter-spacing: .1px;
}
.diagnostic-ladder .ladder-section-label {
  fill: #78919a;
  font-size: 7px;
  letter-spacing: .8px;
}
.diagnostic-ladder .ladder-rail-label {
  fill: #f0ce5b;
  font-size: 9px;
}
.diagnostic-ladder .ladder-rail-label.low-voltage { fill: #ef8069; }
.diagnostic-ladder .ladder-device-label {
  fill: #e2ecee;
  font-size: 6px;
  text-anchor: middle;
}
.diagnostic-ladder .ladder-device-sub {
  fill: #79939b;
  font-size: 5.5px;
  text-anchor: middle;
}
.diagnostic-ladder .ladder-rung-label {
  fill: #c9d7da;
  font-size: 6px;
  text-anchor: middle;
}
.diagnostic-ladder .ladder-note {
  fill: #68838c;
  font-size: 5.2px;
  letter-spacing: .2px;
  text-anchor: middle;
}

.system-process-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.system-electrical-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.system-zone {
  position: absolute;
  z-index: 1;
  border: 1px solid #304a53;
  border-radius: 12px;
  background: rgba(13,34,42,.64);
  box-shadow: inset 0 0 28px rgba(0,0,0,.24);
}
.system-zone > span {
  position: absolute;
  left: 11px;
  top: 9px;
  color: #748c94;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.special-component {
  position: absolute;
  z-index: 4;
  padding: 10px;
  border: 1px solid #59727b;
  border-radius: 10px;
  color: #e7eff1;
  background: linear-gradient(145deg,#1c3540,#102630);
  box-shadow: 0 7px 17px rgba(0,0,0,.3);
}
.special-component strong,
.special-component small { position: relative; z-index: 2; display: block; }
.special-component strong { font-size: 10px; }
.special-component small { margin-top: 3px; color: #91a4aa; font-size: 7.5px; }
.special-component .terminal-row { margin-top: 8px; gap: 4px; flex-wrap: wrap; }
.special-component .wiring-terminal { min-width: 23px; height: 23px; font-size: 7px; }
.process-label {
  fill: #7d959d;
  font: 900 7px Inter,Arial,sans-serif;
  letter-spacing: .8px;
}

/* Packaged rooftop unit */
.rtu-condenser-zone { left: 12px; top: 34px; width: 520px; height: 250px; }
.rtu-air-zone { left: 12px; top: 294px; width: 548px; height: 214px; }
.rtu-control-zone { right: 12px; top: 34px; width: 184px; height: 474px; }
.refrigerant-line {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.6));
}
.hot-gas-line { stroke: #d95e4f; }
.liquid-line { stroke: #d9a93d; }
.suction-line { stroke: #4a87c8; }
.air-path {
  fill: none;
  stroke: #63b8cf;
  stroke-width: 4;
  stroke-dasharray: 9 7;
  marker-end: url(#rtuAirArrow);
  opacity: .76;
}
#rtuAirArrow path { fill: #63b8cf; }
.rtu-compressor {
  left: 40px;
  top: 104px;
  width: 183px;
  min-height: 150px;
  padding: 20px 12px 10px 92px;
  border-radius: 48% 48% 20px 20px;
}
.rtu-compressor-shell {
  position: absolute;
  left: 18px;
  top: 20px;
  width: 62px;
  height: 92px;
  border: 4px solid #71858c;
  border-radius: 31px 31px 15px 15px;
  background: linear-gradient(90deg,#18272d,#52666d 45%,#17262c);
  box-shadow: inset 0 0 16px #071014;
}
.rtu-compressor-shell::before {
  content: "";
  position: absolute;
  left: 13px;
  top: -13px;
  width: 10px;
  height: 17px;
  border-radius: 4px 4px 0 0;
  background: #b36e45;
  box-shadow: 25px 5px #5b8aa5;
}
.rtu-compressor-shell::after {
  content: "SCROLL";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 38px;
  color: #8ea2a9;
  font: 800 7px Arial,sans-serif;
  text-align: center;
}
.rtu-condenser-fan {
  left: 245px;
  top: 66px;
  width: 148px;
  height: 166px;
  padding: 104px 9px 8px;
  text-align: center;
  border-radius: 50% 50% 14px 14px;
}
.fan-graphic {
  position: absolute;
  left: 50%;
  top: 15px;
  width: 78px;
  height: 78px;
  border: 6px solid #71868d;
  border-radius: 50%;
  transform: translateX(-50%);
  background: #14252b;
}
.fan-graphic i,
.fan-graphic b,
.fan-graphic em {
  position: absolute;
  left: 30px;
  top: 8px;
  width: 10px;
  height: 55px;
  border-radius: 80% 20%;
  background: #71858c;
  transform-origin: center;
}
.fan-graphic b { transform: rotate(60deg); }
.fan-graphic em { transform: rotate(120deg); }
.fan-graphic::after {
  content: "";
  position: absolute;
  left: 26px;
  top: 26px;
  width: 16px;
  height: 16px;
  border: 4px solid #c1cccf;
  border-radius: 50%;
  background: #25373d;
}
.rtu-condenser-coil {
  left: 418px;
  top: 67px;
  width: 91px;
  height: 193px;
  padding-top: 76px;
  background: repeating-linear-gradient(90deg,#273e47 0 4px,#73878d 4px 6px,#142831 6px 10px);
  text-align: center;
}
.rtu-condenser-coil small { padding: 0 4px; color: #c2ced1; }
.rtu-economizer {
  left: 28px;
  top: 324px;
  width: 139px;
  min-height: 145px;
  padding-top: 88px;
}
.damper-graphic {
  position: absolute;
  left: 15px;
  top: 17px;
  width: 105px;
  height: 58px;
  border: 4px solid #687f87;
  background: #0e2027;
}
.damper-graphic i,
.damper-graphic b,
.damper-graphic em {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 7px;
  border-radius: 5px;
  background: #8fa1a6;
  transform: rotate(-20deg);
}
.damper-graphic i { top: 10px; }
.damper-graphic b { top: 24px; }
.damper-graphic em { top: 38px; }
.rtu-filter {
  left: 181px;
  top: 326px;
  width: 39px;
  height: 149px;
  padding: 12px 4px;
  background: repeating-linear-gradient(90deg,#28444e 0 3px,#8a9ca1 3px 5px,#12272f 5px 9px);
}
.rtu-filter strong { writing-mode: vertical-rl; margin: auto; font-size: 8px; }
.rtu-evaporator-coil {
  left: 239px;
  top: 321px;
  width: 73px;
  height: 160px;
  padding: 55px 6px 5px;
  background:
    repeating-linear-gradient(90deg,transparent 0 5px,rgba(138,178,191,.7) 5px 7px),
    linear-gradient(145deg,#1b3741,#102730);
  text-align: center;
}
.rtu-supply-fan {
  left: 332px;
  top: 326px;
  width: 154px;
  height: 151px;
  padding: 95px 10px 8px;
  border-radius: 55% 50% 14px 14px;
  text-align: center;
}
.rtu-supply-fan .fan-graphic { width: 69px; height: 69px; }
.rtu-supply-fan .fan-graphic i,
.rtu-supply-fan .fan-graphic b,
.rtu-supply-fan .fan-graphic em { left: 26px; height: 47px; }
.rtu-supply-fan .fan-graphic::after { left: 22px; top: 22px; }
.rtu-contactor { right: 25px; top: 78px; width: 158px; min-height: 126px; }
.rtu-contactor::before {
  content: "";
  display: block;
  width: 45px;
  height: 27px;
  margin: 0 0 7px;
  border: 4px solid #75888e;
  border-radius: 5px;
  background: repeating-linear-gradient(90deg,#17252a 0 4px,#586b71 4px 6px);
}
.rtu-controller {
  right: 25px;
  top: 223px;
  width: 158px;
  min-height: 160px;
  border-color: #649376;
  background: linear-gradient(145deg,#18392f,#102a25);
}
.rtu-controller .terminal-row { gap: 3px; }
.rtu-return-port { left: 50px; bottom: 17px; }
.rtu-supply-port { left: 441px; bottom: 17px; }
.rtu-coil-port { left: 247px; bottom: 17px; }

/* Engineered Air make-up-air unit */
.mua-air-zone { left: 12px; top: 34px; width: 736px; height: 260px; }
.mua-control-zone { left: 12px; top: 304px; width: 736px; height: 204px; }
.mua-air-stream {
  fill: none;
  stroke: #66c2d9;
  stroke-width: 5;
  stroke-dasharray: 12 8;
  marker-end: url(#muaAirArrow);
  opacity: .78;
}
.mua-air-stream.lower-stream { opacity: .38; }
#muaAirArrow path { fill: #66c2d9; }
.mua-gas-pipe,
.mua-gas-branch,
.mua-gas-cap {
  fill: none;
  stroke: #d0ab3d;
  stroke-width: 9;
  stroke-linejoin: round;
  stroke-linecap: square;
}
.mua-gas-cap { stroke-width: 7; stroke-linecap: round; }
.mua-flow {
  fill: none;
  stroke: #fff0a3;
  stroke-width: 2;
  stroke-dasharray: 5 4;
}
.mua-intake {
  left: 25px;
  top: 92px;
  width: 112px;
  height: 159px;
  padding-top: 101px;
  text-align: center;
}
.intake-louver {
  position: absolute;
  left: 13px;
  top: 18px;
  width: 86px;
  height: 67px;
  border: 4px solid #647b83;
  background: #0d2028;
}
.intake-louver i,
.intake-louver b,
.intake-louver em {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 8px;
  background: #7f9298;
  transform: skewX(-28deg);
}
.intake-louver i { top: 10px; }
.intake-louver b { top: 27px; }
.intake-louver em { top: 44px; }
.mua-filter {
  left: 151px;
  top: 91px;
  width: 42px;
  height: 166px;
  padding: 13px 5px;
  background: repeating-linear-gradient(90deg,#294650 0 3px,#9bacb0 3px 5px,#112630 5px 9px);
}
.mua-filter strong,
.mua-filter small { writing-mode: vertical-rl; margin: auto; }
.mua-filter small { margin-top: 7px; }
.mua-supply-fan {
  left: 211px;
  top: 75px;
  width: 151px;
  height: 193px;
  padding: 112px 10px 8px;
  border-radius: 52% 48% 14px 14px;
  text-align: center;
}
.mua-supply-fan .fan-graphic { width: 82px; height: 82px; }
.mua-burner-profile {
  left: 390px;
  top: 81px;
  width: 131px;
  height: 180px;
  padding: 113px 8px 8px;
  text-align: center;
  background: linear-gradient(90deg,#182e36,#3e5157 48%,#162c34);
}
.profile-plate {
  position: absolute;
  left: 22px;
  top: 16px;
  width: 86px;
  height: 86px;
  border: 7px solid #8d999c;
  border-radius: 9px;
  background: #17272d;
}
.profile-plate::before {
  content: "";
  position: absolute;
  left: 34px;
  top: -9px;
  width: 7px;
  height: 92px;
  background: #b4bdbf;
}
.profile-plate i,
.profile-plate b,
.profile-plate em {
  position: absolute;
  left: 9px;
  width: 22px;
  height: 30px;
  border-radius: 50% 50% 25% 25%;
  background: linear-gradient(#79caff,#1470d0);
  clip-path: polygon(50% 0,100% 72%,80% 100%,20% 100%,0 72%);
}
.profile-plate i { top: 10px; }
.profile-plate b { top: 42px; }
.profile-plate em { left: 48px; top: 26px; }
.mua-airflow-switch {
  left: 376px;
  top: 38px;
  width: 153px;
  min-height: 78px;
  padding: 12px 8px 8px 55px;
  border-radius: 32px 9px 9px 32px;
}
.pressure-switch-graphic {
  position: absolute;
  left: 9px;
  top: 17px;
  width: 38px;
  height: 38px;
  border: 4px solid #9baaad;
  border-radius: 50%;
  background: radial-gradient(circle,#21363e 0 24%,#667a80 26% 31%,#162a32 33%);
}
.mua-vfd {
  left: 35px;
  top: 337px;
  width: 169px;
  min-height: 147px;
  border-color: #6d7c81;
  background: linear-gradient(145deg,#38484d,#17262c);
}
.vfd-display {
  margin: 10px 0 8px;
  padding: 7px 9px;
  border: 2px solid #34484e;
  border-radius: 4px;
  background: #b9e6cf;
  color: #18352a;
  font: 900 15px Consolas,monospace;
}
.mua-controller {
  left: 222px;
  top: 330px;
  width: 195px;
  min-height: 155px;
  border-color: #649376;
  background: linear-gradient(145deg,#18392f,#102a25);
}
.mua-freeze-stat { left: 435px; top: 417px; width: 151px; min-height: 74px; }
.mua-discharge-sensor {
  left: 550px;
  top: 91px;
  width: 150px;
  min-height: 136px;
  padding: 18px 9px 8px 57px;
}
.sensor-probe {
  position: absolute;
  left: 22px;
  top: 15px;
  width: 6px;
  height: 78px;
  border-radius: 4px;
  background: linear-gradient(90deg,#829095,#e8edeb,#6e7c81);
  transform: rotate(-8deg);
}
.sensor-probe::after {
  content: "";
  position: absolute;
  left: -7px;
  bottom: -14px;
  width: 20px;
  height: 20px;
  border: 3px solid #8f999b;
  border-radius: 4px;
  background: #eee9da;
}
.mua-gas-modulator {
  right: 30px;
  top: 330px;
  width: 151px;
  min-height: 112px;
  border-color: #9a843b;
  background: linear-gradient(145deg,#514928,#28291e);
}
.mua-gas-modulator::before {
  content: "";
  display: block;
  width: 48px;
  height: 31px;
  margin: 0 0 8px;
  border: 4px solid #8d989b;
  border-radius: 7px;
  background: repeating-linear-gradient(90deg,#172329 0 4px,#526268 4px 6px);
}
.mua-profile-port { left: 433px; top: 266px; }
.mua-manifold-port { right: 37px; top: 286px; border-color: #b49435; color: #f1d878; }
.mua-supply-port { right: 28px; top: 231px; }

/* Walk-in freezer */
.freezer-condensing-zone { left: 12px; top: 34px; width: 530px; height: 236px; }
.freezer-evaporator-zone { left: 12px; top: 280px; width: 530px; height: 228px; }
.freezer-control-zone { right: 12px; top: 34px; width: 194px; height: 474px; }
.freezer-air-path {
  fill: none;
  stroke: #82d4e8;
  stroke-width: 4;
  stroke-dasharray: 10 7;
  marker-end: url(#freezerFlowArrow);
  opacity: .75;
}
.freezer-air-path.return { opacity: .38; }
#freezerFlowArrow path { fill: #82d4e8; }
.freezer-compressor {
  left: 31px;
  top: 78px;
  width: 151px;
  min-height: 153px;
  padding: 85px 9px 9px;
  border-radius: 34px 34px 12px 12px;
  text-align: center;
}
.freezer-compressor-shell {
  position: absolute;
  left: 44px;
  top: 15px;
  width: 62px;
  height: 66px;
  border: 5px solid #70848b;
  border-radius: 27px 27px 12px 12px;
  background: linear-gradient(90deg,#14252b,#566b72 48%,#16272d);
  box-shadow: inset 0 0 16px #071014;
}
.freezer-compressor-shell::before,
.freezer-compressor-shell::after {
  content: "";
  position: absolute;
  top: -12px;
  width: 10px;
  height: 16px;
  border-radius: 4px 4px 0 0;
  background: #b9774d;
}
.freezer-compressor-shell::before { left: 8px; }
.freezer-compressor-shell::after { right: 8px; background: #5688a4; }
.freezer-condenser {
  left: 195px;
  top: 66px;
  width: 69px;
  height: 181px;
  padding: 63px 5px 5px;
  background: repeating-linear-gradient(90deg,#29424c 0 4px,#879ba1 4px 6px,#122731 6px 10px);
  text-align: center;
}
.freezer-condenser-fan {
  left: 278px;
  top: 69px;
  width: 116px;
  height: 166px;
  padding: 103px 7px 7px;
  border-radius: 50% 50% 12px 12px;
  text-align: center;
}
.freezer-condenser-fan .fan-graphic { width: 72px; height: 72px; }
.freezer-condenser-fan .fan-graphic i,
.freezer-condenser-fan .fan-graphic b,
.freezer-condenser-fan .fan-graphic em { left: 27px; height: 49px; }
.freezer-condenser-fan .fan-graphic::after { left: 23px; top: 23px; }
.freezer-receiver {
  left: 408px;
  top: 62px;
  width: 111px;
  height: 120px;
  padding: 79px 7px 6px;
  text-align: center;
}
.receiver-shell {
  position: absolute;
  left: 28px;
  top: 16px;
  width: 55px;
  height: 55px;
  border: 5px solid #77898e;
  border-radius: 27px;
  background: linear-gradient(90deg,#16262c,#566970,#15252b);
}
.freezer-filter-drier {
  left: 405px;
  top: 197px;
  width: 116px;
  min-height: 64px;
  padding: 12px 8px 8px 58px;
}
.drier-shell {
  position: absolute;
  left: 10px;
  top: 20px;
  width: 42px;
  height: 17px;
  border: 4px solid #bc9f42;
  border-radius: 13px;
  background: #82702d;
}
.drier-shell::before,
.drier-shell::after {
  content: "";
  position: absolute;
  top: 4px;
  width: 13px;
  height: 2px;
  background: #c9a93e;
}
.drier-shell::before { left: -15px; }
.drier-shell::after { right: -15px; }
.freezer-solenoid {
  left: 294px;
  top: 193px;
  width: 100px;
  min-height: 70px;
  padding: 11px 7px 7px 42px;
}
.solenoid-shell {
  position: absolute;
  left: 9px;
  top: 15px;
  width: 29px;
  height: 33px;
  border: 4px solid #6e7f84;
  border-radius: 5px;
  background: repeating-linear-gradient(90deg,#15242a 0 4px,#56666b 4px 6px);
}
.freezer-txv {
  left: 210px;
  top: 304px;
  width: 88px;
  min-height: 71px;
  padding: 13px 7px 7px 44px;
}
.txv-body {
  position: absolute;
  left: 9px;
  top: 17px;
  width: 29px;
  height: 29px;
  border: 5px solid #ba9340;
  transform: rotate(45deg);
  background: #5f4d20;
}
.freezer-evaporator {
  left: 34px;
  top: 318px;
  width: 164px;
  height: 166px;
  padding: 126px 8px 6px;
  overflow: hidden;
  text-align: center;
  background:
    repeating-linear-gradient(90deg,transparent 0 6px,rgba(143,190,204,.72) 6px 8px),
    linear-gradient(145deg,#18333d,#102730);
}
.freezer-frost {
  position: absolute;
  inset: 18px 13px 49px;
  border: 4px solid rgba(217,247,255,.72);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 30%,rgba(239,253,255,.95) 0 7px,transparent 8px),
    radial-gradient(circle at 61% 22%,rgba(213,244,252,.9) 0 10px,transparent 11px),
    radial-gradient(circle at 81% 64%,rgba(239,253,255,.9) 0 8px,transparent 9px),
    rgba(173,225,239,.24);
  box-shadow: inset 0 0 18px rgba(205,246,255,.55);
  opacity: .08;
}
.equipment-diagram.freezer-iced .freezer-frost { opacity: 1; }
.equipment-diagram.freezer-starved .freezer-frost { right: 60%; opacity: .85; }
.freezer-evap-fan {
  left: 217px;
  top: 333px;
  width: 120px;
  height: 151px;
  padding: 95px 7px 7px;
  border-radius: 50% 50% 12px 12px;
  text-align: center;
}
.freezer-evap-fan .fan-graphic { width: 69px; height: 69px; }
.freezer-evap-fan .fan-graphic i,
.freezer-evap-fan .fan-graphic b,
.freezer-evap-fan .fan-graphic em { left: 26px; height: 47px; }
.freezer-evap-fan .fan-graphic::after { left: 22px; top: 22px; }
.freezer-defrost-heater {
  left: 350px;
  top: 365px;
  width: 171px;
  min-height: 116px;
  padding: 71px 8px 7px;
  text-align: center;
}
.heater-bank {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 17px;
  height: 42px;
}
.heater-bank i,
.heater-bank b,
.heater-bank em {
  position: absolute;
  left: 0;
  right: 0;
  height: 5px;
  border-radius: 5px;
  background: repeating-linear-gradient(90deg,#6e7e84 0 10px,#b2bfc2 10px 18px);
  box-shadow: inset 0 0 2px rgba(255,255,255,.25);
}
.heater-bank i { top: 0; }
.heater-bank b { top: 17px; }
.heater-bank em { top: 34px; }
.freezer-defrost-sensor {
  left: 354px;
  top: 287px;
  width: 167px;
  min-height: 69px;
  padding: 11px 8px 7px 47px;
}
.freezer-defrost-sensor .sensor-probe {
  left: 21px;
  top: 9px;
  height: 41px;
}
.freezer-defrost-sensor .sensor-probe::after { display: none; }
.freezer-controller {
  right: 25px;
  top: 55px;
  width: 168px;
  min-height: 122px;
  border-color: #648f78;
  background: linear-gradient(145deg,#17382f,#102923);
}
.controller-display {
  margin: 8px 0 6px;
  padding: 5px 7px;
  border: 2px solid #354d49;
  border-radius: 4px;
  background: #c2ead8;
  color: #17372c;
  font: 900 14px Consolas,monospace;
}
.freezer-controller .terminal-row { gap: 3px; margin-top: 6px; }
.freezer-controller .wiring-terminal { min-width: 20px; height: 21px; padding: 1px 3px 0; font-size: 6.5px; }
.freezer-low-pressure {
  right: 25px;
  top: 185px;
  width: 168px;
  min-height: 75px;
  padding: 11px 7px 7px 55px;
  border-radius: 31px 9px 9px 31px;
}
.freezer-low-pressure .pressure-switch-graphic { top: 16px; }
.freezer-contactor,
.freezer-defrost-contactor {
  top: 270px;
  width: 80px;
  min-height: 91px;
  padding: 8px 6px;
}
.freezer-contactor { right: 113px; }
.freezer-defrost-contactor { right: 25px; }
.freezer-contactor .terminal-row,
.freezer-defrost-contactor .terminal-row { gap: 2px; }
.freezer-contactor .wiring-terminal,
.freezer-defrost-contactor .wiring-terminal { min-width: 19px; width: 19px; height: 19px; padding: 0; font-size: 6px; }
.freezer-ladder {
  position: absolute;
  z-index: 3;
  right: 21px;
  top: 369px;
  width: 176px;
  height: 128px;
  border: 1px solid #3e565f;
  border-radius: 7px;
  background: #0b1b22;
  pointer-events: none;
}
.freezer-ladder path,
.freezer-ladder circle,
.freezer-ladder rect {
  fill: none;
  stroke: #9db0b5;
  stroke-width: 1.4;
}
.freezer-ladder text {
  fill: #9fb2b8;
  font: 700 6px Arial,sans-serif;
  text-anchor: middle;
}
.freezer-ladder text:first-child {
  fill: #ef9a62;
  font-weight: 900;
  letter-spacing: .4px;
}
.freezer-suction-port { left: 38px; top: 260px; border-color: #4385c2; color: #a9d7ff; }
.freezer-discharge-port { left: 119px; top: 56px; border-color: #bd5b50; color: #ffc0b7; }
.freezer-liquid-port { left: 410px; top: 174px; border-color: #b99638; color: #f5db7f; }
.freezer-drier-inlet { left: 421px; top: 259px; border-color: #b99638; color: #f5db7f; }

.tool-dock { min-height: 96px; padding: 12px; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; border-top: 1px solid var(--line); background: #0e2028; }
.tool-button {
  min-width: 0;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #132832;
  cursor: pointer;
  text-align: left;
}
.tool-button:hover:not(:disabled) { border-color: #58747e; background: #18323d; }
.tool-button.active { border-color: var(--orange); background: rgba(255,106,42,.12); }
.tool-button:disabled { opacity: .24; cursor: not-allowed; }
.tool-icon { flex: 0 0 35px; height: 35px; display: grid; place-items: center; border-radius: 8px; background: #243e48; color: var(--orange-2); font-size: 12px; font-weight: 900; }
.tool-button strong, .tool-button small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tool-button strong { font-size: 11px; } .tool-button small { color: var(--muted); font-size: 9px; margin-top: 3px; }

.meter-mode { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; padding: 4px; border-radius: 8px; background: #091920; }
.mode-button { padding: 7px 2px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); font-size: 9px; cursor: pointer; }
.mode-button.active { background: #2b4650; color: var(--white); }
.current-reading {
  margin: 16px 0 24px;
  min-height: 136px;
  padding: 17px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid #35505a;
  border-radius: 10px;
  background: #071219;
}
.current-reading span { color: var(--orange-2); font-size: 9px; font-weight: 900; letter-spacing: 1.1px; }
.current-reading strong { margin: 9px 0 4px; color: #d9f6e9; font-family: Consolas, monospace; font-size: 27px; font-variant-numeric: tabular-nums; }
.current-reading p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
.log-heading { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 9px; color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: 1px; }
.log-heading button { padding: 0; border: 0; background: none; color: #6e858d; font-size: 9px; cursor: pointer; }
.reading-log { max-height: 430px; overflow-y: auto; }
.empty-log { color: #60747c; font-size: 11px; line-height: 1.5; }
.log-item { padding: 11px 0; border-bottom: 1px solid rgba(40,65,74,.65); }
.log-item span { display: block; color: var(--muted); font-size: 9px; }
.log-item strong { display: block; margin-top: 3px; color: #dce8eb; font-size: 12px; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(3,10,14,.82);
  backdrop-filter: blur(8px);
}
.modal-backdrop[hidden] { display: none; }
.modal {
  width: min(560px, 100%);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  padding: clamp(28px, 5vw, 44px);
  border: 1px solid #38515b;
  border-radius: 20px;
  background: #11252e;
  box-shadow: var(--shadow);
  position: relative;
}
.modal-close { position: absolute; right: 18px; top: 14px; border: 0; background: none; color: var(--muted); font-size: 28px; cursor: pointer; }
.diagnosis-options { display: grid; gap: 9px; margin: 25px 0; }
.diagnosis-option {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #314b55;
  border-radius: 10px;
  background: #0d1e26;
  cursor: pointer;
  text-align: left;
}
.diagnosis-option:hover { border-color: #647d86; }
.diagnosis-option.selected { border-color: var(--orange); background: rgba(255,106,42,.1); }
.diagnosis-option i { width: 20px; height: 20px; border: 2px solid #526a73; border-radius: 50%; }
.diagnosis-option.selected i { border: 6px solid var(--orange); }
.modal > .primary-button { width: 100%; }
.bug-report-modal textarea {
  width: 100%;
  min-height: 160px;
  padding: 14px 15px;
  resize: vertical;
  color: var(--white);
  border: 1px solid #38505a;
  border-radius: 10px;
  background: #091920;
  line-height: 1.5;
}
.bug-report-modal textarea::placeholder { color: #62767e; }
.bug-report-modal label { margin-top: 22px; }
.bug-report-level { margin-bottom: 0; padding: 10px 12px; border-radius: 8px; background: #0b1c23; font-size: 12px; }
.bug-report-status { min-height: 21px; margin: 10px 0; color: var(--muted); font-size: 12px; }
.bug-report-status.success { color: var(--green); }
.bug-report-status.error { color: var(--red); }
.result-modal { text-align: center; }
.result-icon { width: 64px; height: 64px; margin: 0 auto 22px; display: grid; place-items: center; border-radius: 50%; background: rgba(75,211,155,.14); color: var(--green); font-size: 31px; font-weight: 900; }
.result-modal.incorrect .result-icon { background: rgba(255,94,97,.12); color: var(--red); }
.result-stats { margin: 24px 0; padding: 17px; border: 1px solid var(--line); border-radius: 10px; background: #0b1c23; }
.result-stats strong { display: block; font-size: 26px; font-variant-numeric: tabular-nums; }
.result-stats span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: 1px; }
.leaderboard-card { margin: 20px 0; padding: 20px; border-radius: 12px; background: #0b1b22; text-align: left; }
.leaderboard-card > div { display: flex; justify-content: space-between; align-items: baseline; }
.leaderboard-card .panel-label { margin: 0; }
.leaderboard-card > div strong { font-size: 12px; }
.leaderboard-card ol { margin: 15px 0 0; padding: 0; list-style: none; }
.leaderboard-card li { display: grid; grid-template-columns: 24px 1fr auto; padding: 8px 0; border-top: 1px solid var(--line); font-size: 12px; }
.leaderboard-card li span:first-child { color: var(--orange-2); font-weight: 900; }
.leaderboard-card li strong { font-variant-numeric: tabular-nums; }
.result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

@media (max-width: 1120px) {
  .game-layout { grid-template-columns: 230px minmax(480px,1fr); }
  .furnace-stage { overflow-x: auto; place-items: center start; }
  .equipment-diagram { margin-left: 10px; }
  .readings-panel { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 190px 1fr; gap: 16px; }
  .readings-panel > .panel-label, .readings-panel > .meter-mode { grid-column: 1; }
  .current-reading { grid-column: 1; margin: -2px 0 0; }
  .log-heading, .reading-log { grid-column: 2; }
  .log-heading { grid-row: 1; align-self: end; }
  .reading-log { grid-row: 2 / span 3; max-height: 175px; }
  .level-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 800px) {
  .topbar.game-active { gap: 12px; }
  .topbar.game-active .session-summary { display: none; }
  .topbar-game-controls { grid-template-columns: 68px minmax(100px, 1fr) 66px; gap: 8px; }
  .welcome-screen.active { grid-template-columns: 1fr; }
  .welcome-copy h1 { letter-spacing: -2.5px; }
  .section-heading { display: block; }
  .progress-card { margin-top: 24px; }
  .overall-board-heading { display: block; }
  .overall-leader { min-width: 0; margin-top: 18px; }
  .overall-standing summary { grid-template-columns: 34px 1fr 70px 70px; }
  .standing-stat:nth-child(5),
  .standing-stat:nth-child(6) { display: none; }
  .standing-breakdown { padding-left: 13px; }
  .level-grid { grid-template-columns: repeat(2,1fr); }
  .game-layout { display: block; }
  .call-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .call-facts { display: grid; grid-template-columns: repeat(2,1fr); gap: 0 18px; }
  .workbench { min-height: 700px; }
  .readings-panel { display: block; }
  .current-reading { margin: 16px 0; }
  .reading-log { max-height: 220px; }
}
@media (max-width: 540px) {
  .topbar { height: 66px; padding: 0 14px; }
  .brand small, .text-button { display: none; }
  .topbar.game-active .brand > span:last-child { display: none; }
  .topbar.game-active .brand-mark { width: 38px; height: 38px; border-radius: 10px; }
  .topbar-game-controls { grid-template-columns: 54px minmax(80px, 1fr) 54px; gap: 6px; }
  .topbar-game-controls .back-button { font-size: 12px; }
  .game-title span { font-size: 8px; letter-spacing: .8px; }
  .game-title h1 { font-size: 14px; }
  .timer span { font-size: 8px; }
  .timer strong { font-size: 17px; }
  .screen { min-height: calc(100vh - 66px); }
  .welcome-screen.active { padding: 42px 18px; }
  .feature-row { gap: 16px; }
  .feature-row span { font-size: 10px; }
  .pin-fields { grid-template-columns: 1fr; gap: 0; }
  .level-screen { padding: 38px 14px 60px; }
  .level-grid { grid-template-columns: 1fr; }
  .level-card { min-height: 165px; }
  .game-layout { min-height: calc(100vh - 66px); }
  .furnace-stage { padding-left: 5px; padding-right: 5px; overflow-x: auto; justify-content: start; }
  .furnace { margin-left: 15px; transform: scale(.92); transform-origin: left center; }
  .equipment-diagram { margin-left: 8px; }
  .tool-dock { grid-template-columns: repeat(2,1fr); }
  .result-actions { grid-template-columns: 1fr; }
}
