* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #ffffff;
  font-family: Barlow, "Segoe UI", sans-serif;
}

#dashboard {
  position: relative;
  width: 100vw;
  height: 100vh;
}

#schematic {
  width: 100%;
  height: 100%;
  display: block;
  background: #ffffff;
}

.pipe-flow {
  opacity: 0;
}

.pipe-flow.is-active {
  opacity: 0.85;
  animation: pipeDash 0.7s linear infinite;
}

@keyframes pipeDash {
  to {
    stroke-dashoffset: -48;
  }
}

.live-dot {
  transform-box: fill-box;
  transform-origin: center;
  animation: livePulse 1.4s ease-in-out infinite;
}

@keyframes livePulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.chamber-btn,
.pump-btn,
.tank-btn,
.top-btn {
  cursor: pointer;
  pointer-events: all;
}

.top-btn rect {
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
}

.chamber-btn:hover rect,
.pump-btn:hover rect,
.tank-btn:hover rect {
  filter: brightness(0.95) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.top-btn:hover rect {
  filter: brightness(1.08) drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
}

#audit-alert {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 17, 17, 0.45);
  z-index: 20;
}

#audit-alert.is-hidden {
  display: none;
}

.audit-alert-card {
  width: min(640px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #ffffff;
  border: 2px solid #222;
  border-radius: 10px;
  padding: 20px 22px 18px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.audit-alert-card h2 {
  font-family: "Barlow Condensed", Barlow, sans-serif;
  font-size: 28px;
  margin-bottom: 10px;
}

.audit-alert-card p {
  font-size: 15px;
  line-height: 1.4;
  margin-bottom: 8px;
}

.audit-ok {
  color: #1f7a3a;
  font-weight: 700;
}

.audit-warn {
  color: #b42318;
  font-weight: 700;
}

.audit-tank {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d0d5d8;
}

.audit-tank.is-bad {
  border-color: #b42318;
  background: #fff5f4;
}

.audit-tank.is-ok {
  border-color: #1f7a3a;
  background: #f3faf5;
}

.audit-tank h3 {
  font-family: "Barlow Condensed", Barlow, sans-serif;
  font-size: 20px;
  margin-bottom: 6px;
}

.audit-tank.is-bad h3 {
  color: #b42318;
}

.audit-tank.is-ok h3 {
  color: #1f7a3a;
}

#audit-alert-ok {
  margin-top: 14px;
  min-width: 88px;
  height: 36px;
  padding: 0 16px;
  border: 2px solid #222;
  border-radius: 6px;
  background: #ffffff;
  font-family: "Barlow Condensed", Barlow, sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

#audit-alert-ok:hover {
  background: #f2f2f2;
}
