:root {
  --ink: #17333a;
  --nav: #112e35;
  --teal: #08786c;
  --line: #dce5e5;
  --sub: #52686c;
  --bg: #eff4f4;
  --green: #007861;
  --red: #ae413c;
  --amber: #905d18;
  font:
    16px/1.45 "Segoe UI",
    "Microsoft YaHei",
    "Noto Sans CJK SC",
    sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
select,
input {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #eaa640;
  outline-offset: 2px;
}
button:disabled {
  opacity: 0.52;
  cursor: default;
}
.symbols {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.ico {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
#shell {
  display: flex;
  min-height: 100vh;
}
aside {
  width: 184px;
  flex: none;
  background: var(--nav);
  color: white;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 15px;
  border-bottom: 1px solid #ffffff18;
}
.brandMark {
  display: flex;
  color: #88ead1;
}
.brandMark svg {
  width: 35px;
  height: 40px;
}
.brand strong {
  font-size: 18px;
  letter-spacing: 0.02em;
}
.brand small,
.terminal small {
  display: block;
  font-size: 12px;
  color: #a8bec1;
  margin-top: 3px;
}
.navLabel {
  font-size: 12px;
  color: #94b2b5;
  display: block;
  margin: 25px 19px 9px;
}
.navItem {
  display: flex;
  position: relative;
  align-items: center;
  gap: 13px;
  border: 0;
  background: transparent;
  color: #c5d6d8;
  padding: 13px 15px;
  width: calc(100% - 20px);
  margin: 3px 10px;
  text-align: left;
  border-radius: 6px;
  font-size: 15px;
}
.navItem:hover {
  background: #1c4046;
}
.navItem.active {
  background: #24504f;
  color: #a3f5db;
  font-weight: 650;
}
.navItem.active:before {
  content: "";
  width: 3px;
  height: 20px;
  background: #80e6c3;
  position: absolute;
  left: 0;
  border-radius: 3px;
}
.navBadge {
  margin-left: auto;
  font-size: 12px;
  color: #ffb7a9;
}
.terminal {
  margin: auto 16px 20px;
  border-top: 1px solid #ffffff25;
  padding: 15px 4px 0;
  display: flex;
  align-items: center;
  gap: 11px;
}
.terminal i,
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.terminal i {
  background: #8bd4c3;
}
.terminal b {
  font:
    600 13px/1.4 Consolas,
    monospace;
  letter-spacing: 0.07em;
}
.companyLink {
  display: grid;
  justify-items: start;
  gap: 8px;
  margin: auto 16px 0;
  padding: 12px 3px;
  border: 0;
  background: transparent;
  color: #c5d6d8;
  font-size: 12px;
  text-align: left;
}
.companyLink img {
  background: white;
  width: 75px;
  height: 36px;
  object-fit: contain;
  padding: 2px 5px;
  border-radius: 3px;
}
.companyLink + .terminal { margin-top: 0; }
.aboutProduct img { display: block; width: 140px; height: auto; margin: 5px 0 18px; }
.aboutProduct h3 { margin: 0; font-size: 21px; }
.aboutProduct p { margin: 8px 0 22px; }
.aboutContacts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.aboutContacts dt { color: var(--muted); }
.aboutContacts dd { margin: 0; }
.aboutContacts a, .aboutGrid a { color: #086358; text-underline-offset: 3px; }
.aboutGrid .actions a { text-decoration: none; }
.aboutGrid .btn:disabled { cursor: wait; opacity: .6; }
.aboutGrid .updateResult { margin-top: 14px; }
.releaseNotes { white-space: pre-wrap; font-size: 14px; overflow-wrap: anywhere; }
#updateNotice[hidden] { display: none; }
@media (max-width: 880px) { .companyLink { display: none; } }
.workspace {
  flex: 1;
  min-width: 0;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 24px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  gap: 8px;
}
.crumb,
.clock {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--sub);
}
.crumb i {
  color: #a1b2b4;
  font-style: normal;
}
.crumb strong {
  font-weight: 600;
  color: var(--ink);
}
.mobileBrand {
  display: none;
}
.clock b,
#date {
  font-family: Consolas, "Segoe UI", monospace;
  font-variant-numeric: tabular-nums;
}
.clock b {
  font-size: 15px;
  color: var(--ink);
}
.mode,
.pill {
  font-size: 12px;
  padding: 4px 9px;
  border-radius: 5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.mode {
  background: #e8f4f3;
  color: #126e69;
}
.pill.good {
  background: #e4f4eb;
  color: #127450;
}
.pill.neutral {
  background: #edf2f3;
  color: #536a70;
}
.pill.warn {
  background: #fff1d7;
  color: #865817;
}
.pill.danger {
  background: #fce9e5;
  color: #a33b32;
}
main {
  padding: 17px 23px 20px;
  max-width: 1720px;
  margin: auto;
}
.pageHead,
.panelTitle,
.rowBetween,
.actions,
.rowLeft {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pageHead,
.panelTitle,
.rowBetween {
  justify-content: space-between;
}
.pageHead {
  margin: 0 0 15px;
}
.pageHead h1 {
  margin: 0;
  font-size: 27px;
  letter-spacing: 0.04em;
  line-height: 1.3;
}
.pageHead p {
  margin: 4px 0 0;
  color: var(--sub);
  font-size: 13px;
}
.btn,
.seg button,
.iconBtn,
.tab,
.switch,
.linkBtn {
  border: 0;
  background: transparent;
}
.btn {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid #bfd2d1;
  border-radius: 6px;
  background: white;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 600;
}
.btn:hover,
.tab:hover,
.linkBtn:hover {
  color: var(--teal);
  border-color: var(--teal);
}
.btn.primary {
  background: #086e64;
  color: #fff;
  border-color: #086e64;
}
.btn .ico {
  width: 17px;
  height: 17px;
}
.panel,
.metric,
.device {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  box-shadow: 0 2px 4px #12373b05;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.metric {
  padding: 14px 16px;
  position: relative;
  text-align: left;
  color: var(--ink);
  overflow: hidden;
  min-height: 110px;
}
.metric:hover,
.device:hover {
  border-color: #94bab3;
}
.metricHead {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--sub);
  font-size: 14px;
}
.metricHead .ico {
  width: 17px;
  height: 17px;
  color: var(--accent);
}
.measure {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 33px;
  line-height: 1.25;
  letter-spacing: -1.5px;
  font-weight: 630;
  font-variant-numeric: tabular-nums;
}
.unit {
  font:
    500 14px/1.3 "Segoe UI",
    sans-serif;
  margin-left: 5px;
  color: var(--sub);
  letter-spacing: 0;
}
.metricFoot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  color: var(--sub);
  font-size: 12px;
}
.micro {
  height: 5px;
  border-radius: 4px;
  width: 35%;
  background: #e9efef;
  overflow: hidden;
}
.micro i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
}
.overviewPanels {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-top: 14px;
}
.panel {
  overflow: hidden;
}
.panelTitle {
  min-height: 53px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
}
.panelTitle h2,
.dialogHead h2 {
  font-size: 17px;
  line-height: 1.4;
  margin: 0;
}
.panelTitle h2 {
  display: flex;
  align-items: center;
  gap: 9px;
}
.panelTitle h2:before {
  content: "";
  height: 15px;
  width: 3px;
  background: var(--teal);
  border-radius: 3px;
}
.seg {
  display: flex;
  padding: 2px;
  border: 1px solid var(--line);
  background: #eff4f4;
  border-radius: 5px;
}
.seg button {
  font-size: 12px;
  padding: 4px 9px;
  border-radius: 3px;
  color: var(--sub);
}
.seg .selected {
  background: white;
  box-shadow: 0 1px 3px #214d4b24;
  color: var(--teal);
  font-weight: 650;
}
#skidUnits {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  width: 100%;
  height: clamp(230px, 39vh, 480px);
  background: #f2f6f6;
}
.skidUnit {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  padding: 10px 0 0;
  border: 0;
  background: radial-gradient(ellipse at center, #fff, #e7eeee);
  text-align: left;
}
.skidUnit + .skidUnit { border-left: 1px solid var(--line); }
.skidUnit:focus-visible { outline-offset: -3px; }
.skidUnit img { display: block; width: 100%; height: 100%; object-fit: contain; }
.skidCaption {
  display: block;
  padding: 9px 14px;
  border-top: 1px solid var(--line);
  background: white;
}
.skidCaption > small { color: var(--sub); font: 12px/1.4 Consolas, monospace; }
.skidCaption .cabinetCaption { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; }
.cabinetCaption { display: grid; gap: 3px 10px; }
.cabinetCaption > strong { font-size: 14px; }
.cabinetValues { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 2px 8px; }
.cabinetReading { white-space: nowrap; font-variant-numeric: tabular-nums; }
.cabinetReading b { font-size: 16px; }
.cabinetReading small { font-size: 12px; }
#mapCabinets {
  position: absolute;
  z-index: 1;
  top: 5.4%;
  right: 2%;
  max-width: 61%;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 4px;
}
.mapCabinet {
  min-height: 44px;
  min-width: 0;
  padding: 5px 8px;
  text-align: left;
  border: 1px solid #9fc6cb;
  border-radius: 6px;
  color: white;
  background: #122e36f2;
  box-shadow: 0 2px 7px #08222d55;
}
.mapCabinet .cabinetReading { color: #acf5ff; }
.mapCabinet .pill { font-size: 12px; padding: 1px 5px; }
.mapCabinet:hover { background: #1c454c; }
@media (max-width: 750px) {
  #mapCabinets { position: static; max-width: none; padding: 0 9px 6px; background: #edf3f4; }
  #mapCabinets:empty { display: none; }
  .mapCabinet { box-shadow: none; }
}
@media (max-width: 460px) {
  .mapCabinet { padding: 4px 6px; }
  .mapCabinet .cabinetCaption > strong { font-size: 13px; }
}
.skidUnit:hover .skidCaption { background: #eff8f5; }
.skidEmpty { align-self: center; text-align: center; color: var(--sub); }
.sceneFoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 15px;
  font-size: 13px;
  color: var(--sub);
}
.sceneFoot strong {
  color: var(--ink);
}
.equipmentIcon {
  --tile-top: #f6f9fa;
  --tile-bottom: #e4ecee;
  --tile-edge: #cbd8db;
  display: block;
  flex: none;
  width: 52px;
  height: 52px;
  padding: 3px;
  border: 1px solid var(--tile-edge);
  border-radius: 12px;
  background: linear-gradient(150deg, var(--tile-top), var(--tile-bottom));
  box-shadow: inset 0 1px 0 #ffffffdb, 0 1px 2px #17333a0e;
}
.equipmentIcon .artEnamel { fill: #8ea5af; }
.equipmentIcon[data-state="good"],
.equipmentIcon[data-state="valve-open"] {
  --tile-top: #f1fbf6;
  --tile-bottom: #cdece1;
  --tile-edge: #acd5c4;
}
.equipmentIcon[data-state="good"] .artEnamel { fill: #54b9a5; }
.equipmentIcon[data-state="good"] .artRotor { animation: equipmentSpin 2.4s linear infinite; }
@keyframes equipmentSpin { to { transform: rotate(360deg); } }
.equipmentIcon .lightRays, .equipmentIcon .heatWaves { opacity: 0; }
.equipmentIcon[data-kind="bulb"][data-state="good"] {
  border-color: #e2c376;
  background: radial-gradient(circle at 50% 38%, #fffef2 16%, #ffedaa 52%, #f8daa0 100%);
}
.equipmentIcon[data-state="good"] .bulbGlass { fill: #ffe269; stroke: #94641f; }
.equipmentIcon[data-state="good"] .bulbWire { stroke: #ad6618; stroke-width: 2; }
.equipmentIcon[data-state="good"] .lightRays, .equipmentIcon[data-state="good"] .heatWaves { opacity: 1; }
.equipmentIcon[data-kind="heat"][data-state="good"] {
  --tile-top: #fff8ec;
  --tile-bottom: #f4dfbf;
  --tile-edge: #ddc6a1;
}
.equipmentIcon[data-state="good"] .heaterFins { stroke: #ffb267; }
.equipmentIcon[data-state="good"] .heatWaves { animation: heatRise 2.2s ease-in-out infinite; }
@keyframes heatRise { 50% { transform: translateY(-2px); opacity: .55; } }
.equipmentIcon[data-state="good"] .dryerDrop {
  fill: #4bc6df;
  animation: condensateFall 2.6s ease-in-out infinite;
}
@keyframes condensateFall { 50% { transform: translateY(2px); } }
.equipmentIcon[data-p1="on"] .cabLamp1, .equipmentIcon[data-p2="on"] .cabLamp2 { fill: #46d890; }
.equipmentIcon[data-p1="fault"] .cabLamp1, .equipmentIcon[data-p2="fault"] .cabLamp2 { fill: #f19645; }
.equipmentIcon[data-state="warn"], .equipmentIcon[data-state="valve-fault"] {
  --tile-top: #fff9e9; --tile-bottom: #f6e3af; --tile-edge: #e2c783;
}
.equipmentIcon[data-state="danger"], .equipmentIcon[data-state="valve-closed"] {
  --tile-top: #fff6f3; --tile-bottom: #f1dcd7; --tile-edge: #dcbcba;
}
.equipmentIcon .valveDisc { transform-box: fill-box; transform-origin: center; }
.equipmentIcon[data-state="valve-open"] .valveDisc { fill: #80d9aa; transform: scaleX(.23); }
.equipmentIcon[data-state="valve-closed"] .valveDisc { fill: #dc8c7e; }
.equipmentIcon[data-state="valve-fault"] .valveDisc { fill: #e8ba5b; }
.equipmentIcon[data-kind="valve"][data-state="neutral"] .valveDisc { opacity: .22; }
.equipmentIcon[data-state="opening"], .equipmentIcon[data-state="closing"] {
  --tile-top: #effbff; --tile-bottom: #d5eaf4; --tile-edge: #b4d1e0;
}
.equipmentIcon[data-state="opening"] .valveDisc,
.equipmentIcon[data-state="closing"] .valveDisc {
  fill: #7dc3df;
  transform: scaleX(.6);
  animation: valveDiscTravel 3.5s ease-in-out both;
}
.equipmentIcon[data-state="closing"] .valveDisc { animation-direction: reverse; }
@keyframes valveDiscTravel { from { transform: scaleX(1); } to { transform: scaleX(.23); } }
@media (prefers-reduced-motion: reduce) {
  .equipmentIcon[data-state] * { animation: none !important; }
}
.device b {
  font-size: 15px;
}
.sub {
  color: var(--sub);
  font-size: 13px;
}
.linkBtn {
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
  padding: 5px;
}
.lower {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 14px;
  margin-top: 14px;
}
.feed {
  padding: 0 16px;
}
.feedRow {
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.feedRow:last-child {
  border: 0;
}
.time {
  font:
    13px/1.4 Consolas,
    monospace;
  color: var(--sub);
  white-space: nowrap;
}
.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0 0 15px;
}
.tab {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  font-size: 14px;
}
.tab.selected {
  color: #086358;
  border-color: #95c5b6;
  background: #def1e9;
  font-weight: 650;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.device {
  padding: 16px;
  text-align: left;
}
.device .rowBetween {
  margin-bottom: 13px;
}
.device small {
  display: block;
  color: var(--sub);
  font:
    12px/1.6 Consolas,
    "Microsoft YaHei",
    sans-serif;
  margin-top: 4px;
}
.pad {
  padding: 16px;
}
.operationGroups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
}
.operationGroups > :nth-child(2) { grid-row: span 2; }
.operationRow { padding: 8px 16px; }
.operationRow + .operationRow { border-top: 1px solid var(--line); }
.operationHead, .operationIdentity, .operationPump, .operationButtons {
  display: flex;
  align-items: center;
  gap: 8px;
}
.operationHead, .operationButtons { flex-wrap: wrap; }
.operationIdentity { flex: 1 1 auto; gap: 11px; }
.operationIdentity h3 { font-size: 15px; line-height: 1.4; margin: 0; }
.operationIdentity small, .operationNote, .operationPump span { color: var(--sub); font-size: 13px; }
.operationButtons .btn { min-width: 58px; min-height: 44px; }
.operationButtons .btn:disabled { background: #f4f6f6; border-color: var(--line); color: var(--sub); opacity: .72; }
.operationNote { margin: 4px 0 0 63px; }
.operationPump {
  margin-top: 6px;
  padding: 3px 6px 3px 12px;
  border-radius: 6px;
  background: var(--bg);
  font-size: 14px;
}
.operationPump .operationButtons { margin-left: auto; }
.operationPump .equipmentIcon { width: 29px; height: 29px; padding: 0; border-radius: 7px; }

.roomHint { font-size: 13px; color: var(--sub); }
.roomScene { position: relative; isolation: isolate; overflow: hidden; border-radius: 12px; background: #243238; }
.roomScene > img { display: block; width: 100%; height: auto; }
.roomEffects { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.roomEffect { display: none; }
.roomEffect[data-tone="good"] { display: inline; }
.roomFlow { fill: none; stroke-width: 3.5; stroke-linecap: round; }
.roomExhaust path { stroke-width: 5; stroke-dasharray: 15 3 3 79; }
.roomIntake path { stroke-width: 4.6; stroke-dasharray: 18 4 3 75; }
.roomDryAir path { stroke-width: 3.7; stroke-dasharray: 25 75; }
.roomTarget, .roomItem { --signal: #cedadd; --leader: 19px; }
.roomTarget[data-tone="good"], .roomItem[data-tone="good"] { --signal: #63e6ae; }
.roomTarget[data-tone="warn"], .roomItem[data-tone="warn"] { --signal: #ffd371; }
.roomTarget[data-tone="danger"], .roomItem[data-tone="danger"] { --signal: #ff8f80; }
.roomTarget {
  position: absolute; padding: 0; border: 0; border-radius: 6px; background: transparent;
  color: #fff; cursor: pointer; text-align: left; overflow: visible;
}
.roomTarget:hover, .roomTarget:focus-visible {
  outline: 2px solid #a1eadb; outline-offset: 1px; background-color: #a1eadb20; z-index: 1;
}
.roomTarget .roomLabel {
  position: absolute; top: 50%; left: calc(100% + var(--leader)); transform: translateY(-50%);
  display: grid; gap: 3px; min-width: 90px; padding: 7px 11px; white-space: nowrap;
  border: 1px solid #81989c; border-radius: 7px; background: #102a30f5;
  color: #fff; box-shadow: 0 3px 10px #0004;
}
.roomLabel b { font-size: 14px; line-height: 1.35; }
.roomPressure { display: flex; align-items: baseline; gap: .55em; font-size: 12px; font-variant-numeric: tabular-nums; }
.roomPressure strong { color: #adf2ff; font-size: 14px; white-space: nowrap; }
.roomLabel small { font-size: 13px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.roomTarget .roomLabel small { color: var(--signal); }
.roomTarget .roomLabel::before {
  content: ""; position: absolute; top: 50%; right: 100%; width: var(--leader); border-top: 2px solid white;
  filter: drop-shadow(0 1px 1px #263638);
}
.roomTarget .roomMarker {
  position: absolute; right: 0; top: 50%; transform: translate(50%, -50%); width: 10px; height: 10px;
  border-radius: 50%; border: 2px solid white; background: #287e71; box-shadow: 0 0 0 3px #15353d82;
}
.roomTarget .roomMarker .ico { display: none; }
.roomTarget:is([data-id="climate"], [data-id="heater"], [data-id="indoor"]) .roomLabel { left: auto; right: calc(100% + var(--leader)); }
.roomTarget:is([data-id="climate"], [data-id="heater"], [data-id="indoor"]) .roomLabel::before { right: auto; left: 100%; }
.roomTarget:is([data-id="climate"], [data-id="heater"], [data-id="indoor"]) .roomMarker { right: 100%; }
.roomTarget[data-id="light"][data-tone="good"]::before {
  content: ""; position: absolute; left: 4%; right: 4%; top: 24%; bottom: 3%; border-radius: 50%;
  background: radial-gradient(ellipse, #fffdea, #ffe099 85%, #f6daac);
  box-shadow: 0 0 15px 4px #ffe5a3b3, 0 5px 32px 8px #ffdb7e55;
}
.roomList { display: none; }
@media (min-width: 721px) {
  .roomTarget[data-id="light"] :is(.roomLabel, .roomMarker) { top: max(50%, 26px); }
  .roomTarget[data-id="indoor"] .roomMarker { top: 60%; right: 70%; }
  .roomTarget[data-id="indoor"] .roomLabel { top: 60%; right: calc(70% + var(--leader)); }
}
@media (max-width: 720px) {
  .roomTarget { min-width: 30px; min-height: 30px; }
  .roomTarget .roomLabel {
    width: 1px; height: 1px; min-width: 0; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%);
  }
  .roomTarget .roomMarker, .roomTarget:is([data-id="climate"], [data-id="heater"], [data-id="indoor"]) .roomMarker {
    display: grid; place-items: center; left: 50%; right: auto; transform: translate(-50%, -50%);
    width: 25px; height: 25px; border-color: var(--signal); background: #16323bed;
  }
  .roomTarget .roomMarker .ico, .roomItem .ico { display: block; width: 15px; height: 15px; }
  .roomList { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 9px; }
  .roomItem {
    display: flex; align-items: center; gap: 8px; padding: 8px 10px; min-width: 0; min-height: 54px;
    background: white; color: var(--ink); border: 1px solid var(--line); border-radius: 7px; text-align: left;
  }
  .roomItem .roomMarker { display: grid; flex: none; place-items: center; width: 26px; height: 26px; background: #233e46; color: var(--signal); border-radius: 6px; }
  .roomItem .roomLabel { display: grid; gap: 2px; }
  .roomItem small { color: var(--sub); }
  .roomItem .roomPressure { display: block; color: var(--sub); }
  .roomItem .roomPressure strong { color: #12615f; }
  .roomHint { font-size: 12px; }
}
@media (max-width: 950px) {
  .operationGroups { grid-template-columns: minmax(0, 1fr); }
  .operationGroups > :nth-child(2) { grid-row: auto; }
}
@media (max-width: 520px) {
  .operationRow { padding: 10px 12px; }
  .operationHead > .operationButtons { flex-basis: 100%; }
}
.tableBox {
  overflow-x: auto;
}
.discoveryBar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.camToolbar, .camRow, .camHead { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.camToolbar .sub, .camRow .actions { margin:0; }
.camRow { padding:10px 0; border-bottom:1px solid var(--line); }
.camRow:last-child { border:0; }
.camRow small, .camSerial { display:block; color:var(--sub); overflow-wrap:anywhere; }
.camGrid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,265px),1fr)); gap:12px; margin-bottom:16px; }
.camCard { background:white; border:1px solid var(--line); border-radius:8px; padding:18px; }
.camHead .ico { width:26px; height:26px; color:var(--teal); }
.camCard h3 { margin:12px 0 2px; }
.camVideo { display:block; width:100%; max-height:65vh; background:#142527; }
.discoveryBar .actions, .discoveryBar .sub { margin: 0; }
.discoveryBar strong { font-size: 16px; }
#discoveryPanel progress { display: block; width: 100%; height: 6px; margin-top: 12px; accent-color: var(--teal); }
.discoveryStatus { margin: 12px 0 0; color: var(--sub); font-size: 14px; }
#discoveryPanel .tableBox, #bindDetails .formGrid { margin-top: 12px; }
#discoveryPanel td:last-child { white-space: nowrap; }
#discoveryPanel .linkBtn { min-height: 36px; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}
td,
th {
  padding: 11px 15px;
  border-bottom: 1px solid var(--line);
}
th {
  background: #f5f8f8;
  color: var(--sub);
  font-size: 13px;
}
tr:last-child td {
  border: 0;
}
.empty {
  padding: 22px;
  color: var(--sub);
  font-size: 14px;
}
.formGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.formGrid label,
.field {
  font-size: 14px;
  color: var(--sub);
  display: block;
}
.field input,
.field select,
.formGrid input,
.formGrid select {
  display: block;
  margin-top: 5px;
  width: 100%;
  padding: 9px;
  border: 1px solid #bdcecf;
  border-radius: 5px;
  background: white;
  font-size: 16px;
}
.setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  min-height: 48px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.setting:last-child {
  border: 0;
}
.setting small {
  font-size: 12px;
  color: var(--sub);
  display: block;
}
.switch {
  border-radius: 15px;
  background: #92a4a5;
  width: 40px;
  height: 24px;
  padding: 3px;
  flex: none;
}
.switch i {
  display: block;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 1px 2px #0002;
}
.switch.on {
  background: var(--teal);
}
.switch.on i {
  transform: translateX(16px);
}
.stack {
  display: grid;
  gap: 14px;
}
.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}
.info {
  background: #edf6f4;
  color: #365f59;
  border: 1px solid #d7e8e1;
  border-radius: 6px;
  font-size: 14px;
  padding: 10px 12px;
  margin: 0 0 13px;
}
.dangerText {
  color: var(--red);
}
dialog {
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  max-width: min(580px, 95vw);
  width: 540px;
  max-height: 90vh;
  box-shadow: 0 18px 65px #0a222a48;
}
dialog::backdrop {
  background: #081e2596;
}
.dialogHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: white;
  position: sticky;
  top: 0;
  z-index: 1;
}
.iconBtn {
  font-size: 25px;
  line-height: 1;
  width: 35px;
  height: 35px;
  border-radius: 5px;
  background: #eff4f4;
}
.dialogBody,
#dialogBody {
  padding: 16px 18px;
}
.sumpDialog { width: min(940px, 96vw); max-width: 96vw; max-height: 96vh; }
#tankWarning:empty { display: none; }
#tankWarning button {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 16px; color: #773a10; background: #fff1ce; border: 0; border-bottom: 1px solid #dcac59;
}
.scoreCards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.scoreCard { background: white; border: 1px solid var(--line); border-top: 3px solid #16786f; border-radius: 7px; padding: 16px; }
.scoreCard h3 { color: var(--sub); font-size: 15px; margin: 0 0 6px; }
.scoreCard strong { font-size: 28px; font-variant-numeric: tabular-nums; }
.scoreCard small, .scoreCard p { font-size: 13px; color: var(--sub); }
.scoreCard p { margin: 6px 0 0; }
#relayProgress:not(:empty) { margin-top: 12px; }
@media (max-width: 480px) { .scoreCards { grid-template-columns: 1fr; } }
.sumpTools { display: flex; align-items: center; gap: 10px; }
#sumpDemo[aria-pressed="true"] { color: var(--teal); background: #e6f4f1; border-color: #66b5aa; }
#sumpViews {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
#sumpViews figure {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  position: relative;
  background: #c3c8d2;
  border: 1px solid #b1bcc5;
  border-radius: 7px;
}
#sumpViews figcaption {
  position: absolute;
  z-index: 1;
  top: 9px;
  left: 9px;
  padding: 3px 9px;
  border-radius: 4px;
  background: #1e3647;
  color: white;
  font-size: 13px;
}
.sumpDrawing { width: 100%; height: clamp(235px, 44vh, 400px); display: block; }
.sumpLiquid { visibility: var(--sump-water, hidden); transform: translateY(var(--sump-rise, 0px)); transition: transform .45s linear; }
.sumpMissing { visibility: var(--sump-missing, hidden); }
.sumpWaveBands { animation: sumpSurfaceDrift 4s linear infinite; }
@keyframes sumpSurfaceDrift { to { transform: translateX(80px); } }
.sumpStream, .sumpHalo { display: none; }
.pump1Running .sumpStream.pump1Motion, .pump2Running .sumpStream.pump2Motion,
.pump1Running .pump1Motion .sumpHalo, .pump2Running .pump2Motion .sumpHalo,
.pump1Running .mainMotion, .pump2Running .mainMotion { display: inline; }
.sumpStream { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sumpStreamBed { stroke: #08738a; stroke-width: 8; }
.sumpStreamDashes { stroke: #b4ffff; stroke-width: 5; stroke-dasharray: 15 21; animation: sumpDischarge .7s linear infinite; }
.sumpFlowArrow { stroke: #e0ffff; stroke-width: 3; }
@keyframes sumpDischarge { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -36; } }
.sumpRotorCase { fill: #465b65; stroke: #cedae1; stroke-width: 2; }
.sumpImpeller { fill: #bed0d7; transform-box: fill-box; transform-origin: center; }
.pump1Running .pump1Motion .sumpRotorCase, .pump2Running .pump2Motion .sumpRotorCase { fill: #07515a; stroke: #adffe5; }
.pump1Running .pump1Motion .sumpImpeller, .pump2Running .pump2Motion .sumpImpeller {
  fill: #7effcb; animation: sumpSpin 1.05s linear infinite;
}
@keyframes sumpSpin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.sumpHalo { fill: none; stroke: #168f76; stroke-width: 3; }
.sumpRuler { fill: #264450; font: 12px sans-serif; text-anchor: end; }
.sumpRuler > path:first-child { fill: none; stroke: #45636e; stroke-width: 1.5; }
.sumpLevelMark { fill: #02788c; visibility: var(--sump-marker, hidden); transform: translateY(var(--sump-rise, 0px)); transition: transform .45s linear; }
.sumpCallouts path { stroke: #375866; stroke-width: 1.6; fill: none; }
.sumpCallouts rect { fill: #f7fbfc; stroke: #67828e; }
.sumpCallouts text { fill: #233f4b; font: bold 14px sans-serif; text-anchor: middle; }
@media (prefers-reduced-motion: reduce) {
  .sumpWaveBands { animation: none; }
  .sumpStreamDashes { animation-duration: 1.6s; }
  .pump1Running .pump1Motion .sumpImpeller, .pump2Running .pump2Motion .sumpImpeller { animation-duration: 2.4s; }
  .sumpLiquid, .sumpLevelMark { transition: none; }
}
.cabinetDialog {
  width: min(96vw, 1120px);
  max-width: 96vw;
  max-height: 95vh;
  background: #0e1b2b;
  color: #eef6ff;
  border-color: #37516a;
}
.cabinetDialog .dialogHead {
  background: #101d30;
  border-color: #34495f;
}
.cabinetDialog .iconBtn { background: #20364a; color: #eaf6ff; }
.cabinetScene {
  background: radial-gradient(ellipse at 56% 55%, #21445a, #142b40 50%, #101d30);
  border: 1px solid #3a556c;
  border-radius: 8px;
  overflow: hidden;
}
.cabinetBar, #cabSummary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.cabinetBar { padding: 12px 16px; border-bottom: 1px solid #30485e; }
.cabinetCode { font: 600 15px/1.4 Consolas, monospace; color: #b8d1e2; }
.cabSource { margin-left: auto; color: #abd4dc; font-size: 13px; }
.cabMainPressure { color: #aed2e6; font-size: 14px; }
.cabMainPressure b { color: #ebfbff; margin-left: 4px; font-size: 20px; }
.cabWorkspace { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); }
.cabVisual { min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }
.cabinetDiagram { position: relative; margin: auto 0; }
.cabinetDiagram::before { content: ""; display: block; padding-top: 45%; }
.cabinetDiagram > img {
  position: absolute;
  inset: 0 19%;
  width: 62%;
  height: 100%;
  object-fit: contain;
}
.cabLeaders { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cabLeaders polyline { fill: none; stroke: #7ed2ed; stroke-width: 1.5; stroke-dasharray: 4 4; }
.cabLeaders circle { fill: #d7f8ff; stroke: #329dbe; stroke-width: 2; }
.cabReading {
  position: absolute;
  width: 18%;
  transform: translateY(-50%);
  padding: 7px 12px;
  border: 1px solid #466983;
  border-radius: 7px;
  background: #112336;
  color: #b4d4e8;
  font-size: 14px;
}
.cabReading strong { display: block; font-size: clamp(18px, 2.1vw, 26px); color: #eefaff; font-variant-numeric: tabular-nums; }
.cabReading small { font-size: 13px; color: #9fccde; font-weight: 500; }
.cabReading.running strong { color: #77e4c0; }
.cabReading.fault strong { color: #ffa49d; }
.cabReading.Outlet1, .cabReading.pump1 { left: 2%; }
.cabReading.Outlet2, .cabReading.pump2 { right: 2%; }
.cabReading.Outlet1, .cabReading.Outlet2 { top: 16.7%; }
.cabReading.pump1, .cabReading.pump2 { top: 45%; }
.cabinetDialog details { margin-top: 10px; border-bottom: 1px solid #34495f; padding: 0 4px 8px; }
.cabinetDialog summary { cursor: pointer; padding: 5px 0; color: #c7ddeb; }
.cabinetDialog .field { color: #abc7d8; }
.cabinetDialog .field input, .cabinetDialog .field select { color: #17333a; }
.cabinetDialog .btn { background: #1d364b; color: #d9edf8; border-color: #47677d; }
.cabinetDialog .btn:hover { background: #29495e; }
.cabinetDialog .formGrid { margin: 8px 0 12px; }
.cabCommands, .cabMonitor { background: #112438; }
.cabCommands { padding: 12px 14px; border-top: 1px solid #354f63; }
.cabCommands h3, .cabMonitor h3 { margin: 0; font-size: 16px; }
.cabCommands .actions, .cabTools { display: flex; flex-wrap: wrap; gap: 7px; }
.cabCommands .actions { margin: 8px 0 0; }
.cabCommands .btn { flex: 1 1 auto; font-size: 14px; padding: 7px 9px; min-height: 40px; }
.cabCommands .btn.primary { background: #19534e; border-color: #357971; color: #e0fff4; }
.cabCommands .btn.primary:hover { background: #24665e; }
.cabMonitor { padding: 12px 16px; border-left: 1px solid #354f63; min-width: 0; }
.cabMonitorHead { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.cabMonitor .cabinetCode { font-size: 13px; }
#cabMonitorValues { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; margin: 7px 0; }
#cabMonitorValues > div { padding: 6px 0; border-bottom: 1px solid #2f475b; }
#cabMonitorValues dt, .cabSample { font-size: 12px; color: #a8c6d8; }
#cabMonitorValues dd { margin: 2px 0 0; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cabSample { margin: 8px 0 0; }
.cabSample span { color: #d9e9f4; }
.cabTools { margin-top: 12px; }
.cabinetDialog .toastIn { color: #97e0d2; }
@media (max-width: 950px) {
  .cabWorkspace { grid-template-columns: minmax(0, 1fr); }
  .cabMonitor { border-left: 0; border-top: 1px solid #354f63; }
}
@media (max-width: 640px) {
  .cabinetDialog #dialogBody { padding: 10px; }
  .cabinetBar { gap: 5px 10px; padding: 9px; }
  .cabinetDiagram::before, .cabLeaders { display: none; }
  .cabinetDiagram > img { position: static; display: block; width: 100%; height: clamp(145px, 29vh, 230px); }
  #cabReadings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding: 8px; }
  .cabReading { position: static; width: auto; transform: none; padding: 5px 9px; }
}
.kv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
  margin: 8px 0;
}
.kv > div, .kvEdit {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.kvEdit {
  position: relative;
  min-height: 48px;
  padding-right: 52px;
  background: transparent;
  border-width: 0 0 1px;
  text-align: left;
}
.kvEdit:hover, .kvEdit:focus-visible { background: #edf6f3; }
.kvEdit small { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--teal); font-weight: 600; }
.kv span {
  display: block;
  font-size: 12px;
  color: var(--sub);
}
.kv strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
}
.actions {
  flex-wrap: wrap;
  margin-top: 13px;
}
.sectionName {
  font-size: 15px;
  margin: 14px 0 7px;
}
.checkItem {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 0;
  font-size: 14px;
}
.checkItem input {
  width: 19px;
  height: 19px;
  accent-color: var(--teal);
}
.settingsFoot {
  margin-top: 14px;
}
.groupHeading {
  margin: 14px 0 6px;
  font-size: 16px;
}
.eventHead {
  display: flex;
  align-items: center;
  gap: 9px;
}
.logMsg {
  overflow-wrap: anywhere;
}
#toast {
  position: fixed;
  bottom: 23px;
  left: 50%;
  transform: translateX(-50%);
  background: #123a3c;
  color: white;
  border-radius: 6px;
  padding: 10px 16px;
  opacity: 0;
  pointer-events: none;
  font-size: 14px;
  z-index: 10;
}
#toast.show {
  opacity: 1;
}
.toastIn {
  color: var(--teal);
  font-size: 14px;
}
.muted {
  color: var(--sub);
}
.trend {
  width: 100%;
  height: 120px;
  display: block;
}
.legend {
  font-size: 12px;
  color: var(--sub);
}
.notice {
  display: flex;
  align-items: center;
  gap: 7px;
}
.notice .ico {
  width: 16px;
  height: 16px;
}
@media (min-width: 1500px) {
  aside {
    width: 210px;
  }
  main {
    padding: 23px 30px;
  }
  .metrics {
    gap: 16px;
  }
  .metric {
    padding: 19px;
  }
}
@media (max-width: 1140px) {
  aside {
    width: 158px;
  }
  .brand {
    padding: 0 9px;
    gap: 5px;
  }
  .brand strong {
    font-size: 16px;
  }
  .brandMark svg {
    width: 30px;
  }
  main {
    padding: 15px;
  }
  .metric {
    padding: 12px;
  }
  .panelTitle {
    padding: 10px 12px;
  }
  .cards {
    gap: 9px;
  }
}
@media (max-width: 880px) {
  aside {
    width: 68px;
  }
  .brand {
    min-height: 65px;
    justify-content: center;
  }
  .brand div,
  .navLabel,
  .navItem span,
  .terminal {
    display: none;
  }
  .navItem {
    justify-content: center;
    padding: 12px 0;
    margin: 8px;
  }
  header {
    padding: 0 15px;
  }
  .metricFoot {
    font-size: 12px;
  }
  .metrics {
    gap: 8px;
  }
  .panelTitle h2 {
    font-size: 16px;
  }
}
@media (max-width: 650px) {
  #shell {
    display: block;
  }
  aside {
    position: static;
    width: 100%;
    height: auto;
  }
  .brand {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
    padding: 4px;
    justify-content: space-between;
  }
  .navItem {
    width: auto;
    min-width: 42px;
    flex: 1;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 5px 1px;
  }
  .navItem span {
    display: block;
    font-size: 11px;
  }
  .navItem .navBadge,
  .navItem.active:before {
    display: none;
  }
  .navItem .ico {
    width: 18px;
    height: 18px;
  }
  .clock {
    gap: 6px;
  }
  #date {
    display: none;
  }
  .mobileBrand {
    display: inline;
  }
  .desktopCrumb {
    display: none;
  }
  header {
    min-height: 40px;
  }
  .crumb,
  .clock {
    font-size: 12px;
    gap: 6px;
  }
  main {
    padding: 12px;
  }
  .pageHead {
    margin-bottom: 11px;
  }
  .pageHead h1 {
    font-size: 23px;
  }
  .pageHead p {
    font-size: 12px;
  }
  .metrics,
  .cards {
    grid-template-columns: 1fr 1fr;
  }
  .metric {
    min-height: 96px;
  }
  .measure {
    font-size: 27px;
  }
  .overviewPanels,
  .lower,
  .cols {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 12px;
  }
  #skidUnits { height: auto; min-height: 170px; grid-auto-flow: row; grid-template-rows: none; }
  .skidUnit { grid-template-rows: 155px auto; }
  .skidUnit + .skidUnit { border-left: 0; border-top: 1px solid var(--line); }
  .cards .device {
    padding: 12px;
  }
  .actions {
    gap: 6px;
  }
  .feedRow {
    font-size: 13px;
  }
  .formGrid {
    gap: 9px;
  }
  .tabs {
    gap: 4px;
  }
  .tab {
    padding: 7px 9px;
  }
  .tableBox td,
  .tableBox th {
    padding: 9px;
  }
  .panelTitle {
    min-height: 47px;
  }
  .btn {
    padding: 7px 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
  }
}
.brand strong {
  font-size: 17px;
  white-space: nowrap;
}
.brand {
  padding: 0 12px;
  gap: 8px;
}
.brand small {
  white-space: nowrap;
  font-size: 11px;
}
.brandMark svg {
  width: 33px;
}
@media (min-width: 881px) and (max-width: 1140px) {
  .brand {
    padding: 0 8px;
    gap: 5px;
  }
  .brand strong {
    font-size: 15px;
  }
  .brandMark svg {
    width: 27px;
  }
}
@media (min-width: 881px) and (max-height: 810px) {
  main {
    padding-top: 14px;
    padding-bottom: 12px;
  }
}

/* Keep the photo, tank mask and valve symbols in one image coordinate system. */
.stationDrawing {
  position: relative;
  background: #dbe8eb;
  isolation: isolate;
}
.stationArt {
  display: block;
  height: auto;
  width: 100%;
}
.stationCanvas { position: relative; width: 100%; order: 1; }
.pumpRoomHotspot {
  position:absolute; left:60%; top:46%; width:32%; height:37%;
  display:flex; align-items:flex-end; justify-content:flex-end; padding:4px;
  background:transparent; border:1px solid transparent; border-radius:5px; cursor:pointer;
}
.pumpRoomHotspot:hover, .pumpRoomHotspot:focus-visible {
  border-color:#92f1ed; background:#117d8215; outline:2px solid #0f565b;
}
.pumpRoomHotspot span {
  display:inline-flex; align-items:center; gap:6px; padding:5px 8px; border:1px solid #a2dfdd;
  border-radius:6px; color:white; background:#132e36ef; font-size:clamp(10px,1vw,15px); white-space:nowrap;
}
.pumpRoomHotspot b { color:#a5eee9; }
#pumpRoomDialog { width:min(1460px,96vw); max-width:96vw; max-height:94vh; padding:clamp(8px,1.4vw,20px); }
#pumpRoomDialog .pageHead { gap:8px; }
#pumpRoomDialog .roomHint { margin-left:auto; }
.sumpHotspot {
  position: absolute;
  z-index: 2;
  left: 60.4%;
  bottom: 2.2%;
  width: 5%;
  height: 17%;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 4px;
}
.sumpTag {
  position: absolute;
  left: 100%;
  bottom: 1px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  white-space: nowrap;
  border: 1px solid #87d6dc;
  border-radius: 6px;
  background: #122e36f2;
  color: #fff;
  box-shadow: 0 2px 7px #08222d55;
  font-size: 13px;
}
.sumpTag::before { content: ""; position: absolute; right: 100%; width: 9px; border-top: 2px solid #97e9ef; }
.sumpTag strong { font-size: 15px; font-variant-numeric: tabular-nums; color: #acf5ff; }
.sumpHotspot:focus-visible { outline: 3px solid #68edfa; }
.sumpRipple { --wave-travel: -24px; }
.sumpSummary, .sumpPumpHead { display: flex; gap: 8px; align-items: center; }
.sumpSummary { justify-content: space-between; padding-bottom: 12px; }
.sumpSummary strong { margin-left: 5px; font-variant-numeric: tabular-nums; }
.sumpLevels { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; }
.sumpLevels span { white-space: nowrap; }
.sumpLevels small { color: var(--sub); }
.sumpPumps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sumpPump { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 6px 10px; border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.sumpPumpImage { grid-column: 1; grid-row: 1 / 3; width: 54px; height: 66px; object-fit: contain; }
.sumpPumpHead { grid-column: 2; grid-row: 1; color: var(--teal); }
.sumpPump > [id^="sumpStatus"] { grid-column: 3; grid-row: 1; }
.sumpPumpHead h3 { margin: 0; color: var(--ink); font-size: 16px; }
.sumpReading { grid-column: 2 / -1; grid-row: 2; display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 10px; }
.sumpReading span { color: var(--sub); font-size: 14px; }
.sumpReading strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.sumpPump .actions { grid-column: 1 / -1; margin: 0; }
.sumpPump .actions:empty { display: none; }
.sumpPump .btn { min-height: 44px; flex: 1; }
@media (max-width: 625px) {
  .sumpPumps { grid-template-columns: 1fr; }
  #sumpViews { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 5px; }
  .sumpDrawing { height: clamp(180px, 48vw, 280px); }
  #sumpViews figcaption { font-size: 11px; padding: 2px 5px; top: 4px; left: 4px; }
  .sumpSummary { flex-wrap: wrap; }
}
@media (max-width: 550px) {
  .sumpTag { padding: 2px 4px; gap: 2px; flex-direction: column; line-height: 1.1; }
  .sumpTag span, .sumpTag strong { font-size: 12px; }
}
.stationDrawing {
  --valve-color: #a7b8bd;
}
[data-tone="valve-open"],
.valveLegend .valve-open {
  --valve-color: #24ca78;
}
[data-tone="valve-closed"],
.valveLegend .valve-closed {
  --valve-color: #f34949;
}
[data-tone="valve-fault"],
.valveLegend .valve-fault {
  --valve-color: #ffd038;
}
[data-tone="valve-moving"] {
  --valve-color: #58b9f8;
}
.pipeValve {
  color: var(--valve-color);
  cursor: pointer;
  filter: drop-shadow(0 1px 1.6px white);
}
.inletLeaders {
  stroke: #24474f;
  stroke-width: 5;
}
.valveTag,
.tankTag {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 6px;
  border: 1px solid #a6c6cc;
  background: #122e36f2;
  box-shadow: 0 2px 7px #08222d55;
  color: #fff;
  text-align: left;
}
.valveTag {
  top: 5.4%;
  padding: 6px 10px 6px 7px;
  font-size: 13px;
  line-height: 1.25;
}
.valveTag-1 {
  left: 2.7%;
}
.valveTag-2 {
  left: 20.5%;
}
.valveTag strong {
  display: block;
  color: var(--valve-color);
  font-size: 13px;
  margin-top: 2px;
}
.valveNumber {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  background: var(--valve-color);
  color: #102e35;
  border-radius: 50%;
  font:
    700 15px/1 Consolas,
    monospace;
}
.tankTag {
  left: 32%;
  top: 61%;
  padding: 7px 11px;
  border-color: #8ae3f1;
}
.tankTag span { font-size: 13px; }
.tankTag strong {
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  color: #acf5ff;
}
.waterColumn {
  transition: transform 0.55s linear;
}
.waterRipple {
  animation: tank-surface 3s linear infinite;
}
@keyframes tank-surface {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(var(--wave-travel, -96px));
  }
}
.valveLegend,
.sceneStats,
.sweepButton {
  display: flex;
  align-items: center;
  gap: 12px;
}
.valveLegend b {
  color: var(--ink);
  font-weight: 600;
}
.valveLegend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.valveLegend span::before {
  content: "";
  width: 9px;
  height: 9px;
  border: 1px solid #152d3028;
  border-radius: 50%;
  background: var(--valve-color);
}
.sweepButton {
  gap: 7px;
  min-height: 36px;
  padding: 5px 10px;
  border: 1px solid #b4d2ce;
  color: #075d55;
  background: #f0f7f5;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
}
.sweepButton[aria-pressed="true"] {
  color: white;
  background: #087568;
}
.sweepButton .ico {
  width: 17px;
  height: 17px;
}
.pill.valve-open {
  color: #0e7044;
  background: #ddf4e9;
}
.pill.valve-closed {
  color: #a42626;
  background: #ffebeb;
}
.pill.valve-fault {
  color: #644800;
  background: #ffe180;
}
.pill.valve-moving {
  color: #17618b;
  background: #e3f4ff;
}
@media (max-width: 750px) {
  .inletTags {
    display: flex;
    gap: 8px;
    background: #edf3f4;
    padding: 6px 9px;
  }
  .inletTags .valveTag {
    position: static;
    flex: 1;
    box-shadow: none;
  }
  .valveTag strong {
    display: inline-block;
    margin: 0 0 0 7px;
  }
  .stationDrawing {
    display: flex;
    flex-direction: column;
  }
  .stationArt {
    order: 1;
  }
  .inletLeaders {
    display: none;
  }
  .tankTag {
    padding: 3px 6px;
    gap: 4px;
    top: auto;
    bottom: 17%;
    left: 19%;
  }
  .tankTag span { font-size: 12px; }
  .tankTag strong {
    font-size: 13px;
  }
  .sceneFoot {
    flex-wrap: wrap;
  }
  .sceneStats {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .waterColumn {
    transition: none;
  }
  .waterRipple {
    animation: none;
  }
}

/* The navigation drawer overlays the station, keeping the monitoring area stable. */
#stationMenu {
  inset: 0 auto 0 0;
  margin: 0;
  padding: 0;
  width: min(284px, 86vw);
  max-width: none;
  height: 100%;
  max-height: none;
  border: 0;
  border-radius: 0;
  background: var(--nav);
  color: #fff;
}
#stationMenu aside { position: static; width: 100%; height: 100%; min-height: min-content; }
#stationMenu .brand { display: flex; justify-content: flex-start; padding: 0 14px; min-height: 72px; }
#stationMenu .brand div, #stationMenu .navLabel, #stationMenu .navItem span { display: block; }
#stationMenu nav { display: block; padding: 0; flex: none; overflow: visible; }
#stationMenu .navItem {
  width: calc(100% - 20px);
  min-height: 44px;
  margin: 3px 10px;
  padding: 10px 15px;
  flex-direction: row;
  justify-content: flex-start;
  gap: 12px;
}
#stationMenu .navItem span { font-size: 15px; }
#stationMenu .navItem .navBadge { display: inline; }
#stationMenu .companyLink { display: grid; }
#stationMenu .terminal { display: flex; }
.menuToggle, .menuClose {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 6px;
}
.menuClose { margin-left: auto; background: transparent; color: #d0e0df; font-size: 25px; }
.menuToggle { padding: 0 10px; gap: 7px; background: #eaf4f1; color: #125f57; font-weight: 650; }
header { padding: 0 16px; min-height: 56px; }
#overviewTools:empty { display: none; }
#monitorView, .monitorDetails { display: grid; gap: 12px; }
.panoramaPanel .panelTitle { flex-wrap: wrap; }
.panoramaPanel .seg { margin-left: auto; }
#overviewFoot { flex: 1; }
.panoramaPanel .sceneFoot { padding: 0 8px; }
.monitorDetails .panelTitle { min-height: 40px; padding: 5px 12px; }
.monitorDetails .feed { padding: 0 12px; }
.monitorDetails .feedRow { height: 42px; padding: 3px 0; }
.monitorDetails .feedRow .logMsg { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.monitorDetails .empty { padding: 15px 12px; }
@media (min-width: 1000px) and (min-height: 600px) {
  .monitorMain { height: calc(100vh - 56px); padding: 10px 16px; }
  #monitorView { height: 100%; grid-template-rows: auto minmax(180px, 1fr) auto; gap: 10px; }
  .monitorMain .metric { min-height: 76px; padding: 7px 14px; }
  .monitorMain .measure { font-size: 29px; }
  .monitorMain .metricFoot { margin-top: 0; }
  .panoramaPanel { display: grid; grid-template-rows: auto minmax(0,1fr); }
  .panoramaPanel .panelTitle { min-height: 47px; padding: 4px 12px; flex-wrap: nowrap; }
  #overviewImage { display: flex; align-items: center; justify-content: center; background: #edf2f2; }
  #overviewImage .stationDrawing { width: var(--station-fit-width, 100%); max-width: 100%; }
  #skidUnits { height: 100%; min-height: 0; }
}
@media (max-width: 999px) {
  #overviewFoot { flex: none; order: 1; width: 100%; }
  .panoramaPanel .sceneFoot { padding: 4px 0 0; }
}
@media (max-width: 650px) {
  header { padding: 0 8px; flex-wrap: wrap; }
  .menuToggle span, .crumb i, .clock #date { display: none; }
  .clock { flex-wrap: wrap; }
  #overviewTools .btn { padding: 4px; min-height: 36px; font-size: 12px; }
}
@media (max-width: 560px) {
  html:not(:lang(zh)) .cards { grid-template-columns: minmax(0, 1fr); }
  html:not(:lang(zh)) .device b { overflow-wrap: anywhere; }
}
html:not(:lang(zh)) #stationMenu .brand div { min-width: 0; }
html:not(:lang(zh)) #stationMenu .brand strong,
html:not(:lang(zh)) #stationMenu .brand small { white-space: normal; }
