/* 20260608-flow-output-polish-flow-visual-shell */
:root {
  --bg: #07111b;
  --bg-soft: #0f1c2a;
  --card: rgba(14, 24, 38, 0.82);
  --card-soft: rgba(20, 34, 51, 0.9);
  --line: rgba(118, 161, 196, 0.18);
  --line-strong: rgba(142, 193, 235, 0.32);
  --text: #f2f8ff;
  --muted: #92a9bf;
  --accent: #35d3c2;
  --accent-2: #5aa7ff;
  --accent-soft: rgba(53, 211, 194, 0.12);
  --good: #31cf7a;
  --warn: #ff6e59;
  --warn-soft: rgba(255, 110, 89, 0.12);
  --pill: rgba(22, 45, 69, 0.74);
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 14px 38px rgba(0, 0, 0, 0.22);
  --shell-max: 1380px;
  --content-max: 1120px;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

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

html,
body {
  height: 100%;
}

html {
  scrollbar-gutter: stable both-edges;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family:
    "Avenir Next", "SF Pro Display", "PingFang SC", "Microsoft YaHei",
    sans-serif;
  background: linear-gradient(
    180deg,
    #06101a 0%,
    #081421 28%,
    #091726 62%,
    #08131f 100%
  );
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 12% 18%,
      rgba(90, 167, 255, 0.12),
      transparent 26%
    ),
    radial-gradient(
      circle at 88% 16%,
      rgba(53, 211, 194, 0.08),
      transparent 24%
    ),
    radial-gradient(
      circle at 14% 82%,
      rgba(90, 167, 255, 0.08),
      transparent 28%
    ),
    radial-gradient(
      circle at 86% 84%,
      rgba(53, 211, 194, 0.07),
      transparent 26%
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.03) 0%,
      rgba(255, 255, 255, 0) 24%,
      rgba(255, 255, 255, 0.018) 58%,
      rgba(255, 255, 255, 0) 100%
    );
  opacity: 0.72;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button,
input,
select,
textarea {
  outline: none;
}

.app {
  width: min(100%, var(--shell-max));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  position: relative;
  background: transparent;
}

.topbar {
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 18px 8px;
  position: sticky;
  top: 0;
  z-index: 5;
  background: linear-gradient(
    180deg,
    rgba(6, 12, 20, 0.78),
    rgba(6, 12, 20, 0.16)
  );
  backdrop-filter: blur(18px);
}

.topbar .title {
  display: none;
}

.topbar .title::before {
  content: "FLOW CONTROL";
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.34em;
  color: rgba(191, 222, 250, 0.72);
}

.banner {
  position: fixed;
  left: 50%;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  transform: translateX(-50%);
  width: min(520px, calc(100vw - 28px));
  margin-top: 0;
  padding: 13px 16px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(16, 32, 48, 0.88);
  border: 1px solid rgba(53, 211, 194, 0.22);
  color: #b9fff1;
  font-size: 13px;
  line-height: 1.2;
  z-index: 10;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  white-space: nowrap;
  text-align: center;
}

.banner-text {
  min-width: 0;
  flex: 1 1 auto;
  width: 100%;
  padding: 0 52px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.banner-alert {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  appearance: none;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 7px 12px;
  border: none;
  border-radius: 999px;
  background: rgba(240, 77, 61, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 110, 89, 0.32);
  color: #ffd0ca;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.banner-alert:hover {
  transform: translateY(-50%) scale(1.03);
  background: rgba(240, 77, 61, 0.24);
}

.banner-alert:focus-visible {
  outline: 2px solid rgba(123, 207, 255, 0.9);
  outline-offset: 2px;
}

.banner-alert[hidden] {
  display: none;
}

.banner.error {
  background: rgba(48, 18, 18, 0.86);
  border-color: rgba(255, 110, 89, 0.3);
  color: #ffb9b2;
}

.offline-banner {
  display: none;
  background: rgba(240, 77, 61, 0.18);
  border: 1px solid rgba(240, 77, 61, 0.36);
  color: #ffd2cd;
}

.toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  z-index: 30;
  min-width: 140px;
  max-width: calc(100vw - 64px);
  padding: 14px 24px;
  border-radius: 18px;
  background: rgba(11, 22, 34, 0.92);
  border: 1px solid rgba(47, 140, 255, 0.34);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
  color: var(--text);
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.estop-fab {
  position: fixed;
  left: 0;
  top: 0;
  width: 68px;
  height: 68px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(
      circle at 34% 30%,
      rgba(206, 131, 119, 0.94),
      rgba(154, 72, 64, 0.92) 34%,
      rgba(103, 26, 24, 0.98) 100%
    ),
    linear-gradient(180deg, rgba(128, 34, 30, 0.98), rgba(73, 17, 16, 0.98));
  color: #fff3f0;
  box-shadow:
    0 20px 34px rgba(44, 10, 9, 0.3),
    inset 0 2px 8px rgba(255, 255, 255, 0.12);
  cursor: grab;
  z-index: 25;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

.estop-fab:hover {
  transform: translateY(-2px);
  filter: saturate(0.92);
}

.estop-fab:active {
  cursor: grabbing;
}

.estop-fab.dragging {
  transform: scale(1.03);
  box-shadow:
    0 24px 40px rgba(44, 10, 9, 0.34),
    inset 0 2px 8px rgba(255, 255, 255, 0.14);
}

.estop-fab.armed {
  animation: estop-pulse 1s ease-in-out infinite;
}

.estop-fab-ring {
  position: absolute;
  inset: -7px;
  border-radius: inherit;
  border: 1px solid rgba(187, 106, 96, 0.26);
  background: radial-gradient(circle, rgba(154, 72, 64, 0.14), transparent 68%);
  pointer-events: none;
}

.estop-fab-label {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0 10px;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.estop-fab-label-armed {
  display: none;
  font-size: 12px;
  line-height: 1.2;
}

.estop-fab.armed .estop-fab-label-idle {
  display: none;
}

.estop-fab.armed .estop-fab-label-armed {
  display: block;
}

@keyframes estop-pulse {
  0%,
  100% {
    box-shadow:
      0 20px 34px rgba(44, 10, 9, 0.3),
      0 0 0 0 rgba(176, 83, 74, 0.14),
      inset 0 2px 8px rgba(255, 255, 255, 0.12);
  }
  50% {
    box-shadow:
      0 24px 40px rgba(44, 10, 9, 0.34),
      0 0 0 10px rgba(176, 83, 74, 0),
      inset 0 2px 8px rgba(255, 255, 255, 0.12);
  }
}

.content {
  flex: 1;
  width: min(100%, var(--content-max));
  margin: 0 auto;
  padding: 4px 18px 126px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.view {
  display: none;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.view.active {
  display: grid;
  animation: view-rise 0.28s ease;
}

.view > :first-child {
  padding: 6px 2px 0;
}

.view > :first-child .section-title {
  position: relative;
  display: inline-block;
  padding-right: 18px;
}

.view > :first-child .section-title::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  transform: translateY(-50%);
  box-shadow: 0 0 0 8px rgba(53, 211, 194, 0.08);
}

.card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(17, 30, 45, 0.9) 0%,
    rgba(14, 24, 38, 0.92) 100%
  );
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.12),
    transparent 60%
  );
  pointer-events: none;
}

.card h2 {
  margin: 0 0 14px;
  font-size: 19px;
  letter-spacing: 0.01em;
}

.section-title {
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 700;
  line-height: 1.06;
  margin: 0 0 10px;
}

.section-note {
  color: var(--muted);
  max-width: 52ch;
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}

.device-card {
  padding: 22px;
  background:
    radial-gradient(
      circle at top right,
      rgba(90, 167, 255, 0.24),
      transparent 26%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(53, 211, 194, 0.14),
      transparent 30%
    ),
    linear-gradient(
      180deg,
      rgba(17, 30, 46, 0.96) 0%,
      rgba(12, 24, 38, 0.98) 100%
    );
  border-color: rgba(113, 172, 220, 0.2);
  box-shadow: var(--shadow);
}

.device-card > .summary-grid {
  margin-top: 12px;
}

.device-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.device-head > :first-child {
  min-width: 0;
}

.device-name {
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(90, 167, 255, 0.12);
  border: 1px solid rgba(90, 167, 255, 0.24);
  color: #c8e2ff;
  font-size: 13px;
  font-weight: 600;
  white-space: normal;
}

.status-chip.online {
  color: #92f6ca;
  border-color: rgba(34, 197, 94, 0.18);
  background: rgba(34, 197, 94, 0.12);
}

.status-chip.offline {
  color: #ffb9b2;
  border-color: rgba(240, 77, 61, 0.22);
  background: rgba(240, 77, 61, 0.12);
}

.status-chip.ghost {
  color: #ffd58f;
  border-color: rgba(232, 181, 66, 0.28);
  background: rgba(232, 181, 66, 0.14);
}

.status-chip.warn,
.status-chip.info,
.status-chip.migrated {
  color: #ffe0b8;
  border-color: rgba(232, 181, 66, 0.30);
  background: rgba(232, 181, 66, 0.14);
}

.status-chip.info {
  color: #c8e2ff;
  border-color: rgba(90, 167, 255, 0.28);
  background: rgba(90, 167, 255, 0.13);
}

.status-chip.migrated {
  color: #c8fff3;
  border-color: rgba(96, 230, 196, 0.30);
  background: rgba(96, 230, 196, 0.12);
}

.status-chip.err {
  color: #ffd0c8;
  border-color: rgba(240, 77, 61, 0.30);
  background: rgba(240, 77, 61, 0.14);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.compact-summary-grid {
  justify-content: start;
}

.summary-card {
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(20, 34, 51, 0.76);
  border: 1px solid rgba(118, 161, 196, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  height: fit-content;
}

.exchange-auto-plan-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.exchange-auto-plan-title {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.1;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.exchange-plan-combined-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: 20px;
  align-items: stretch;
  width: 100%;
}

.exchange-plan-combined-region {
  min-width: 0;
}

.exchange-plan-combined-region + .exchange-plan-combined-region {
  padding-left: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.exchange-plan-combined-card .summary-sub {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.makeup-auto-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.makeup-auto-title {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.1;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.makeup-auto-combined-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
  width: 100%;
}

.makeup-auto-combined-region {
  min-width: 0;
}

.makeup-auto-combined-region + .makeup-auto-combined-region {
  padding-left: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.makeup-auto-combined-card .summary-sub {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.manual-makeup-combined-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.manual-makeup-combined-row > .switch-row,
.manual-makeup-combined-row > .status-box {
  min-width: 0;
  height: 100%;
}

.manual-makeup-combined-row > .status-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.makeup-cal-combined-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.makeup-cal-combined-row > .switch-row,
.makeup-cal-combined-row > .status-box {
  min-width: 0;
  height: 100%;
}

.makeup-cal-combined-row > .status-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tappable-card {
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.tappable-card:hover {
  background: rgba(27, 44, 65, 0.92);
  border-color: rgba(90, 167, 255, 0.28);
  box-shadow: 0 18px 36px rgba(5, 11, 18, 0.22);
}

.tappable-card:active {
  transform: translateY(-1px);
  background: rgba(31, 51, 74, 0.96);
}

.summary-label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.summary-value {
  font-size: clamp(18px, 2.3vw, 24px);
  font-weight: 700;
  line-height: 1.2;
}

.summary-sub {
  margin-top: 8px;
  color: #bfd0e2;
  font-size: 13px;
  line-height: 1.55;
}

@keyframes view-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-apex-card .summary-sub + .summary-sub {
  margin-top: 4px;
}

.home-apex-selected {
  color: #dbe8f5;
  word-break: break-word;
}

.home-detail-card {
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.home-card-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.home-card-title {
  margin: 0;
}

.home-card-side {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

.home-card-inline {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  color: #acf8d7;
}

.home-card-inline + .home-card-inline::before {
  content: "/";
  margin-right: 8px;
  color: #78dcb6;
}

.home-detail-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.home-detail-line {
  font-size: 13px;
  line-height: 1.5;
  color: #d6e3f0;
}

.home-detail-stack {
  line-height: 1.65;
  white-space: normal;
}

.trim-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 24px;
  background: rgba(20, 34, 51, 0.72);
  border: 1px solid rgba(118, 161, 196, 0.14);
  overflow: hidden;
}

.trim-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(96px, 124px) 120px;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid rgba(118, 161, 196, 0.12);
}

.trim-row:last-child {
  border-bottom: none;
}

.trim-row-label strong {
  display: block;
  font-size: 16px;
}

.trim-row-label span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.trim-row input {
  width: 100%;
  min-width: 0;
  justify-self: start;
  margin-left: 0;
  padding: 12px 16px;
  border-radius: 18px;
  border: 1px solid rgba(118, 161, 196, 0.18);
  background: rgba(9, 18, 29, 0.82);
  color: var(--text);
  font-size: 17px;
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
}

.trim-row .btn {
  width: 100%;
  min-width: 0;
  justify-self: end;
  margin-right: 0;
  white-space: nowrap;
  padding: 14px 10px;
  font-size: 15px;
  text-align: center;
}

.trim-row input::-webkit-outer-spin-button,
.trim-row input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.quick-card {
  position: relative;
  min-height: 116px;
  padding: 18px 18px 20px;
  border-radius: 24px;
  background:
    radial-gradient(
      circle at top right,
      rgba(90, 167, 255, 0.18),
      transparent 24%
    ),
    linear-gradient(
      180deg,
      rgba(24, 40, 59, 0.92) 0%,
      rgba(16, 29, 43, 0.96) 100%
    );
  border: 1px solid rgba(118, 161, 196, 0.14);
  text-align: left;
  color: var(--text);
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.quick-card:hover {
  background:
    radial-gradient(
      circle at top right,
      rgba(90, 167, 255, 0.22),
      transparent 24%
    ),
    linear-gradient(
      180deg,
      rgba(29, 47, 68, 0.98) 0%,
      rgba(18, 32, 47, 0.98) 100%
    );
  border-color: rgba(90, 167, 255, 0.24);
  box-shadow: 0 18px 38px rgba(7, 15, 24, 0.22);
}

.quick-card:active {
  transform: translateY(0);
  background: linear-gradient(180deg, #2a3f5c 0%, #20354c 100%);
}

.quick-card:disabled,
.quick-card.disabled-card {
  opacity: 0.58;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  background: linear-gradient(180deg, #172638 0%, #132232 100%);
  border-color: rgba(79, 116, 151, 0.14);
}

.quick-card strong {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
}

.quick-card span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.danger-card {
  border-color: rgba(240, 77, 61, 0.28);
}

.eventlog-entry-card {
  background:
    radial-gradient(
      circle at top right,
      rgba(53, 211, 194, 0.24),
      transparent 28%
    ),
    linear-gradient(
      180deg,
      rgba(20, 44, 56, 0.96) 0%,
      rgba(12, 27, 36, 0.98) 100%
    );
  border-color: rgba(53, 211, 194, 0.2);
}

.eventlog-entry-card:hover {
  background:
    radial-gradient(
      circle at top right,
      rgba(53, 211, 194, 0.28),
      transparent 28%
    ),
    linear-gradient(
      180deg,
      rgba(25, 54, 66, 0.98) 0%,
      rgba(13, 30, 39, 0.98) 100%
    );
  border-color: rgba(53, 211, 194, 0.28);
}

.event-log-sheet {
  overflow: hidden;
}

.event-log-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.event-log-toolbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 2px;
  background: linear-gradient(
    180deg,
    rgba(16, 29, 43, 0.98) 0%,
    rgba(16, 29, 43, 0.94) 72%,
    rgba(16, 29, 43, 0) 100%
  );
}

.event-log-toolbar-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.event-log-toolbar-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.event-log-toolbar-copy strong {
  font-size: 18px;
  color: #edf7ff;
}

.event-log-toolbar-copy span {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.event-log-toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.event-log-toolbar-actions .btn {
  min-width: 88px;
}

.event-log-filter-pop {
  padding: 14px;
  border-radius: 22px;
  background:
    radial-gradient(
      circle at top right,
      rgba(90, 167, 255, 0.14),
      transparent 28%
    ),
    rgba(14, 25, 38, 0.96);
  border: 1px solid rgba(118, 161, 196, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.event-log-filter-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.event-log-filter-head strong,
.event-log-filter-current {
  color: #e8f3ff;
  font-size: 14px;
}

.event-log-filter-head span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.event-log-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.event-log-filter-chip {
  min-height: 48px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid rgba(118, 161, 196, 0.16);
  background: rgba(12, 21, 33, 0.76);
  color: #d4e6f7;
  font-size: 14px;
  font-weight: 600;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.event-log-filter-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(90, 167, 255, 0.26);
}

.event-log-filter-chip.active {
  background: rgba(53, 211, 194, 0.14);
  border-color: rgba(53, 211, 194, 0.28);
  color: #d9fff7;
}

.event-log-list-wrap {
  min-height: 280px;
  max-height: min(54vh, 520px);
  overflow-y: auto;
  padding-right: 4px;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.event-log-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.event-log-item,
.event-log-empty {
  border-radius: 22px;
  border: 1px solid rgba(118, 161, 196, 0.14);
  background: rgba(18, 31, 47, 0.88);
}

.event-log-empty {
  padding: 24px 18px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.event-log-item {
  padding: 16px 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.event-log-item.exchange {
  border-color: rgba(90, 167, 255, 0.22);
}

.event-log-item.makeup {
  border-color: rgba(53, 211, 194, 0.22);
}

.event-log-item.alarm {
  border-color: rgba(240, 77, 61, 0.24);
}

.event-log-item.salt {
  border-color: rgba(255, 196, 92, 0.24);
}

.event-log-item.calibration {
  border-color: rgba(156, 170, 255, 0.24);
}

.event-log-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.event-log-time {
  font-size: 12px;
  letter-spacing: 0.02em;
  color: #9ab7d5;
}

.event-log-badges {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.event-log-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(118, 161, 196, 0.16);
}

.event-log-badge.system {
  background: rgba(90, 167, 255, 0.12);
  color: #cae4ff;
}

.event-log-badge.exchange {
  background: rgba(90, 167, 255, 0.12);
  color: #cde5ff;
}

.event-log-badge.makeup {
  background: rgba(53, 211, 194, 0.12);
  color: #d8fff7;
}

.event-log-badge.alarm {
  background: rgba(240, 77, 61, 0.12);
  color: #ffd1cc;
}

.event-log-badge.salt {
  background: rgba(255, 196, 92, 0.12);
  color: #ffe7a6;
}

.event-log-badge.calibration {
  background: rgba(156, 170, 255, 0.12);
  color: #dde2ff;
}

.event-log-badge.neutral {
  background: rgba(255, 255, 255, 0.05);
  color: #b9ccde;
}

.event-log-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: #eff6ff;
}

.event-log-summary {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: #c6d8ea;
}

.event-log-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.event-log-meta-line {
  font-size: 12px;
  line-height: 1.5;
  color: #96aec7;
}

.event-log-meta-line.subtle {
  color: #6fcfbf;
}

.event-log-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.page7-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.alarm-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.calibration-launches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.calibration-launch-btn {
  min-height: 0;
  height: 50px;
  width: 100%;
  min-width: 0;
  justify-self: stretch;
  border-radius: 26px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  line-height: 1.1;
  padding: 8px 10px;
  text-align: center;
}

.calibration-launch-btn span {
  display: block;
  white-space: nowrap;
}

.btn {
  border: none;
  min-height: 44px;
  border-radius: 18px;
  padding: 14px 18px;
  background: linear-gradient(
    180deg,
    rgba(38, 63, 92, 0.96) 0%,
    rgba(30, 51, 75, 0.96) 100%
  );
  color: var(--text);
  font-weight: 600;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(7, 15, 24, 0.18);
}

.btn:active {
  transform: translateY(0);
}

.btn.primary {
  background: linear-gradient(90deg, var(--accent-2) 0%, var(--accent) 100%);
  color: #fff;
}

.btn.warn {
  background: var(--warn);
  color: #fff;
}

.btn.ghost {
  background: rgba(90, 167, 255, 0.1);
  border: 1px solid rgba(90, 167, 255, 0.24);
  color: #c8defe;
}

.btn.confirm-action {
  background: linear-gradient(90deg, var(--accent-2) 0%, var(--accent) 100%);
  border: none;
  color: #fff;
}

.btn.cancel-action {
  background: var(--warn);
  border: none;
  color: #fff;
}

.switch-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 14px;
  row-gap: 12px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(19, 34, 50, 0.76);
  border: 1px solid rgba(118, 161, 196, 0.14);
}

.switch-meta {
  min-width: 0;
}

.switch-meta strong {
  display: block;
  font-size: 16px;
}

.switch-meta span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.toggle-btn {
  min-width: 136px;
  min-height: 56px;
  padding: 10px 14px;
  border: none;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(11, 22, 35, 0.86);
  color: #c9ddf1;
  border: 1px solid rgba(90, 167, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
  justify-self: end;
}

.toggle-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 10px 24px rgba(7, 15, 24, 0.16);
}

.toggle-btn:active {
  transform: translateY(0);
}

.toggle-btn.active {
  background: linear-gradient(90deg, var(--accent-2) 0%, var(--accent) 100%);
  color: #fff;
  border-color: transparent;
}

.toggle-btn.inactive {
  background: rgba(11, 22, 35, 0.86);
  color: #c9ddf1;
}

.toggle-label {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
}

.toggle-hint {
  font-size: 12px;
  line-height: 1.1;
  opacity: 0.9;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-grid {
  display: grid;
  gap: 12px;
}

.cloud-settings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.compact-grid {
  display: grid;
  gap: 12px;
  margin: 14px 0;
}

.two-col {
  grid-template-columns: 1fr;
}

.metric-pill {
  min-height: 44px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(118, 161, 196, 0.18);
  background: rgba(9, 18, 29, 0.82);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.compact-subcard {
  margin-top: 14px;
  padding: 16px;
}

.espnow-panel {
  display: grid;
  gap: 14px;
}

.espnow-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

#espnowHeroChip {
  flex-shrink: 0;
  min-width: 156px;
  justify-content: center;
  align-self: center;
  padding: 12px 18px;
}

#espnowHeroChip .status-dot {
  flex: 0 0 auto;
}

#espnowHeroChipText {
  white-space: nowrap;
  line-height: 1.15;
}

.espnow-detail-grid .summary-card {
  min-height: 126px;
}

.espnow-detail-grid .summary-value {
  font-size: clamp(20px, 2.4vw, 28px);
}

.espnow-status-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 16px;
  border-radius: 24px;
  border: 1px solid rgba(118, 161, 196, 0.14);
  background:
    linear-gradient(135deg, rgba(18, 32, 24, 0.88), rgba(11, 24, 18, 0.92)),
    rgba(11, 24, 18, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.espnow-status-cell {
  display: grid;
  gap: 6px;
  align-content: start;
  min-width: 0;
  padding: 4px 2px;
}

.espnow-status-title {
  font-size: 13px;
  color: #8fbf97;
  letter-spacing: 0.06em;
}

.espnow-status-cell strong {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
  color: #eef7e9;
}

.espnow-status-cell span:last-child {
  font-size: 14px;
  line-height: 1.55;
  color: #9cc9a5;
}

.espnow-status-cell span:last-child:empty {
  display: none;
}

.espnow-entry-grid {
  margin-top: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quick-grid.espnow-entry-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.espnow-entry-card {
  text-align: left;
  display: grid;
  gap: 6px;
  min-height: 96px;
}

.espnow-entry-card strong {
  font-size: 18px;
}

.espnow-entry-card span {
  font-size: 13px;
  line-height: 1.5;
  color: #bfd0e2;
}

.espnow-entry-toggle {
  min-width: 0;
  width: 100%;
  min-height: 96px;
  justify-self: stretch;
  align-self: stretch;
  border-radius: 24px;
  padding: 18px;
  text-align: left;
  gap: 8px;
  display: grid;
  justify-content: start;
  align-content: start;
}

.espnow-entry-toggle .toggle-label {
  font-size: 18px;
  color: inherit;
}

.espnow-entry-toggle .toggle-hint {
  color: inherit;
  opacity: 0.92;
}

.espnow-entry-toggle.active .toggle-label,
.espnow-entry-toggle.active .toggle-hint {
  color: #f7fbff;
  text-shadow: 0 1px 2px rgba(8, 16, 28, 0.18);
}

.espnow-entry-toggle.inactive .toggle-label {
  color: #d7e6f5;
}

.espnow-entry-toggle.inactive .toggle-hint {
  color: #afc3d8;
}

.espnow-entry-toggle .toggle-label,
.espnow-entry-toggle .toggle-hint {
  white-space: normal;
  text-align: left;
}

.espnow-guide-box,
.espnow-error-box {
  margin-top: 0;
}

.espnow-module-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.espnow-module-list,
.espnow-candidate-list,
.espnow-detail-actions {
  display: grid;
  gap: 12px;
}

.espnow-module-rail {
  margin-top: 0;
}

.espnow-candidate-list {
  margin-top: 12px;
}

.espnow-candidate-item {
  border: 1px solid rgba(118, 161, 196, 0.18);
  border-radius: 20px;
  padding: 16px;
  background: rgba(11, 24, 38, 0.78);
  display: grid;
  gap: 12px;
  position: relative;
}

.espnow-module-card {
  appearance: none;
  width: 100%;
  border: 1px solid rgba(118, 161, 196, 0.18);
  border-radius: 24px;
  padding: 18px;
  background: rgba(9, 18, 29, 0.62);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  text-align: left;
  color: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.espnow-module-card:hover {
  transform: none;
  border-color: rgba(118, 161, 196, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 24px rgba(7, 15, 24, 0.12);
}

.espnow-module-card:active {
  transform: none;
}

.espnow-module-card-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.espnow-module-card-top,
.espnow-module-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.espnow-module-card strong,
.espnow-module-meta strong {
  font-size: 17px;
}

.espnow-module-card span,
.espnow-module-meta span {
  color: #bfd0e2;
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
}

.espnow-module-card-metric {
  margin-top: 2px;
  color: #edf6ff;
  font-size: 14px;
  line-height: 1.5;
}

.espnow-module-card-telemetry {
  color: #9fb4ca;
  font-size: 12px;
  line-height: 1.5;
}

.espnow-module-card-side {
  align-self: center;
  color: #dbe7f3;
  font-size: 13px;
  white-space: nowrap;
}

.espnow-detail-ghost-card {
  gap: 12px;
}

.espnow-module-meta {
  display: grid;
  gap: 4px;
}

.espnow-module-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.actions.espnow-discovery-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.actions.espnow-discovery-actions .btn {
  min-width: 0;
  width: 100%;
}

.espnow-module-actions .btn {
  min-width: 120px;
}

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

.module-page-hero,
.module-page-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.module-page-toolbar {
  display: flex;
  gap: 10px;
}

.module-page-tabbar-shell {
  display: grid;
  gap: 10px;
  grid-column: 1 / -1;
}

.module-page-tabbar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.module-page-nav {
  display: flex;
  align-items: stretch;
  padding: 0 10px;
  border-radius: 24px;
  background: rgba(8, 17, 28, 0.7);
  border: 1px solid rgba(118, 161, 196, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  overflow-x: auto;
  scrollbar-width: thin;
}

.module-page-nav-btn {
  appearance: none;
  position: relative;
  flex: 0 0 auto;
  min-width: 136px;
  border: 0;
  border-right: 1px solid rgba(118, 161, 196, 0.12);
  border-radius: 0;
  padding: 18px 22px 16px;
  background: transparent;
  color: inherit;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.module-page-nav-btn:last-child {
  border-right: 0;
}

.module-page-nav-btn:hover {
  background: rgba(255, 255, 255, 0.03);
}

.module-page-nav-btn.active {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01)),
    rgba(12, 26, 40, 0.74);
  color: var(--text);
}

.module-page-nav-btn.active::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(90, 167, 255, 0.92), rgba(53, 211, 194, 0.92));
  box-shadow: 0 0 16px rgba(90, 167, 255, 0.18);
}

.module-page-nav-title {
  font-size: 15px;
  font-weight: 700;
}

.module-page-nav-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

.module-page-nav-state::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.module-page-nav-state.online {
  color: #92f6ca;
}

.module-page-nav-state.offline {
  color: #ffb9b2;
}

.module-page-nav-state.ghost {
  color: #ffd58f;
}

.module-page-nav-state.warn {
  color: #ffe0b8;
}

.module-page-nav-state.info {
  color: #c8e2ff;
}

.module-page-nav-state.migrated {
  color: #c8fff3;
}

.module-page-nav-state.err {
  color: #ffd0c8;
}

.module-page-nav-chip {
  width: fit-content;
}

.module-page-detail-shell {
  display: grid;
  gap: 16px;
  grid-column: 1 / -1;
}

.module-page-overview-card {
  gap: 14px;
}

.module-page-status-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0;
  padding: 8px 10px;
  border-radius: 26px;
  border: 1px solid rgba(118, 161, 196, 0.16);
  background:
    linear-gradient(180deg, rgba(17, 29, 44, 0.92), rgba(10, 20, 31, 0.9)),
    rgba(10, 20, 31, 0.88);
  box-shadow: var(--shadow-soft);
}

.module-page-status-strip .espnow-empty {
  padding: 14px 12px;
}

.module-page-status-strip {
  display: none !important;
}

.module-page-status-strip .espnow-status-cell {
  min-width: 0;
  padding: 12px 14px;
  border-right: 1px solid rgba(118, 161, 196, 0.12);
}

.module-page-status-strip .espnow-status-cell:last-child {
  border-right: 0;
}

.module-page-status-strip .espnow-status-title {
  color: rgba(191, 208, 226, 0.78);
  letter-spacing: 0.03em;
}

.module-page-status-strip .espnow-status-cell strong {
  font-size: clamp(18px, 2.3vw, 30px);
  color: var(--text);
}

.module-page-status-strip .espnow-status-cell span:last-child {
  color: var(--muted);
}

.module-page-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.module-page-form-grid.is-tight {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.module-page-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.module-page-field-label {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.module-page-field input,
.module-page-field select {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(118, 161, 196, 0.16);
  background: rgba(9, 18, 29, 0.82);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.module-page-field select {
  appearance: none;
}

.module-page-metrics-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.module-page-entry-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.module-page-entry-card {
  appearance: none;
  width: 100%;
  border: 1px solid rgba(118, 161, 196, 0.16);
  cursor: pointer;
  text-align: left;
  display: grid;
  gap: 10px;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.module-page-entry-card:hover {
  transform: translateY(-2px);
  border-color: rgba(103, 177, 255, 0.24);
  box-shadow: 0 20px 48px rgba(5, 11, 19, 0.24);
}

.module-page-entry-action {
  color: rgba(126, 219, 212, 0.94);
  font-size: 13px;
  font-weight: 700;
}


.pump-service-home-grid {
  display: block;
}

.pump-service-home-shell {
  display: grid;
  grid-template-columns: minmax(220px, 0.86fr) minmax(320px, 1.14fr);
  gap: 28px;
  align-items: start;
}

.pump-service-home-menu {
  display: grid;
  gap: 26px;
  padding: 12px 0;
}

.pump-service-home-button {
  appearance: none;
  min-height: 150px;
  width: 100%;
  border: 1px solid rgba(118, 161, 196, 0.18);
  border-radius: 20px;
  background: rgba(12, 26, 41, 0.86);
  color: var(--text);
  box-shadow: 0 18px 42px rgba(5, 11, 19, 0.22);
  cursor: pointer;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.pump-service-home-button:hover {
  transform: translateY(-2px);
  border-color: rgba(126, 219, 212, 0.36);
  background: rgba(15, 34, 52, 0.94);
  box-shadow: 0 22px 52px rgba(5, 11, 19, 0.3);
}

.pump-service-home-status {
  min-height: 560px;
  border: 1px solid rgba(118, 161, 196, 0.16);
  border-radius: 24px;
  background: rgba(8, 18, 30, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding: 24px;
}

.pump-service-home-status-title {
  color: var(--text);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 22px;
}


.pump-service-home-status-copy {
  display: grid;
  gap: 16px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.8;
}

.pump-service-home-status-copy p {
  margin: 0;
  padding: 0 0 16px;
  border-bottom: 1px solid rgba(118, 161, 196, 0.1);
}

.pump-service-home-status-copy p:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.pump-service-home-status-list {
  display: grid;
  gap: 12px;
}

.pump-service-home-status-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(118, 161, 196, 0.1);
}

.pump-service-home-status-list > div:last-child {
  border-bottom: 0;
}

.pump-service-home-status-list span {
  color: var(--muted);
  font-size: 13px;
}

.pump-service-home-status-list strong {
  color: var(--text);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.module-page-action-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}

.module-page-action-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.module-page-action-grid > .card {
  height: 100%;
}

.module-page-action-grid .section-note {
  max-width: none;
}

.module-page-subview-card {
  gap: 16px;
}

.module-page-subview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}





.pump-service-settings-sheet,
.pump-service-calibration-sheet {
  width: min(920px, calc(100vw - 32px));
  max-width: 920px;
  max-height: calc(100vh - 36px);
  overflow-y: auto;
}

.pump-service-settings-sheet .pump-service-settings-page,
.pump-service-calibration-sheet .pump-service-calibration-page {
  min-height: 0;
}

.pump-service-settings-page {
  min-height: 640px;
  border: 1px solid rgba(118, 161, 196, 0.16);
  border-radius: 26px;
  background: rgba(8, 18, 30, 0.78);
  padding: 28px;
  box-shadow: 0 18px 44px rgba(5, 11, 19, 0.24);
}

.pump-service-settings-head {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 30px;
}

.pump-service-settings-head h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 900;
  letter-spacing: 0.12em;
}

.pump-service-settings-head .btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.pump-service-settings-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.72fr) minmax(260px, 1fr);
  gap: 30px 42px;
  max-width: 760px;
  margin: 0 auto;
}

.pump-service-settings-button {
  appearance: none;
  min-height: 150px;
  border: 1px solid rgba(118, 161, 196, 0.2);
  border-radius: 18px;
  background: rgba(12, 26, 41, 0.88);
  color: var(--text);
  box-shadow: 0 18px 42px rgba(5, 11, 19, 0.22);
  cursor: pointer;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 850;
  letter-spacing: 0.06em;
  text-align: center;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.pump-service-settings-button:hover {
  transform: translateY(-2px);
  border-color: rgba(126, 219, 212, 0.36);
  background: rgba(15, 34, 52, 0.94);
  box-shadow: 0 22px 52px rgba(5, 11, 19, 0.3);
}

.pump-service-settings-button--danger {
  color: #ffd6d6;
  border-color: rgba(255, 118, 118, 0.28);
}

.pump-service-settings-placeholder {
  cursor: default;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(12, 26, 41, 0.64), rgba(15, 34, 52, 0.48));
  border-color: rgba(118, 161, 196, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.pump-service-settings-status {
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin: 30px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(118, 161, 196, 0.12);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.pump-service-settings-status p {
  margin: 0;
}

.pump-service-settings-status span {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 759px) {
  .pump-service-settings-page {
    min-height: 0;
    padding: 22px;
  }

  .pump-service-settings-head {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
  }

  .pump-service-settings-head .btn {
    position: static;
    transform: none;
    width: 100%;
  }

  .pump-service-settings-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .pump-service-settings-button {
    min-height: 92px;
  }
}

@media (max-width: 420px) {
  .pump-service-settings-grid {
    gap: 14px;
  }

  .pump-service-settings-button {
    min-height: 82px;
    border-radius: 16px;
    letter-spacing: 0.03em;
  }
}
.pump-service-records-page {
  display: grid;
  gap: 22px;
  border: 1px solid rgba(118, 161, 196, 0.16);
  border-radius: 26px;
  background: rgba(8, 18, 30, 0.78);
  padding: 28px;
  box-shadow: 0 18px 44px rgba(5, 11, 19, 0.24);
}

.pump-service-records-head,
.pump-service-record-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.pump-service-record-chart-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pump-service-record-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pump-service-record-summary-grid > div {
  display: grid;
  gap: 8px;
  min-height: 96px;
  padding: 18px;
  border: 1px solid rgba(118, 161, 196, 0.16);
  border-radius: 18px;
  background: rgba(12, 26, 41, 0.76);
}

.pump-service-record-summary-grid span,
.pump-service-record-reason,
.pump-service-record-source {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.pump-service-record-summary-grid strong {
  color: var(--text);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.pump-service-record-source,
.pump-service-record-chart-wrap,
.pump-service-record-list {
  padding: 18px;
  border: 1px solid rgba(118, 161, 196, 0.14);
  border-radius: 20px;
  background: rgba(12, 26, 41, 0.62);
}

.pump-service-record-chart-wrap .pump-plan-preview-chart {
  min-height: 210px;
  margin-top: 0;
}

.pump-service-record-chart-wrap .pump-plan-bar-slot {
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
}

.pump-service-record-chart-wrap .pump-plan-bar-slot > span {
  display: none;
}

.pump-service-record-chart-wrap .pump-plan-record-legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
  margin-top: 14px;
}

.pump-service-record-chart-wrap .pump-plan-record-legend span {
  justify-content: center;
  min-width: 0;
}

.pump-service-record-list {
  display: grid;
  gap: 12px;
}

.pump-service-record-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.9fr) minmax(260px, 1.4fr);
  gap: 10px 18px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid rgba(118, 161, 196, 0.1);
}

.pump-service-record-row:first-of-type {
  border-top: 0;
}

.pump-service-record-main {
  display: grid;
  gap: 4px;
}

.pump-service-record-main strong {
  color: var(--text);
  font-size: 18px;
}

.pump-service-record-main span {
  color: var(--muted);
  font-size: 13px;
}

.pump-service-record-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pump-service-record-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(126, 219, 212, 0.1);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.pump-service-record-reason {
  grid-column: 1 / -1;
  text-align: right;
}

.pump-service-record-empty {
  padding: 24px;
  border: 1px dashed rgba(118, 161, 196, 0.24);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 759px) {
  .pump-service-record-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pump-service-record-row {
    grid-template-columns: 1fr;
  }

  .pump-service-record-meta {
    justify-content: flex-start;
  }

  .pump-service-record-reason {
    text-align: left;
  }
}

@media (max-width: 420px) {
  .pump-service-record-summary-grid {
    grid-template-columns: 1fr;
  }
}

.pump-service-time-page,
.pump-service-time-sheet {
  min-height: 640px;
  border: 1px solid rgba(118, 161, 196, 0.16);
  border-radius: 26px;
  background: rgba(8, 18, 30, 0.78);
  padding: 28px;
  box-shadow: 0 18px 44px rgba(5, 11, 19, 0.24);
}

.pump-service-time-head {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 30px;
}

.pump-service-time-head h2,
.pump-service-time-head h3 {
  margin: 0;
  color: var(--text);
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 900;
  letter-spacing: 0.1em;
}

.pump-service-time-head .btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.pump-service-time-status {
  display: grid;
  gap: 18px;
  max-width: 760px;
  margin: 0 auto;
}

.pump-service-time-status > div {
  display: grid;
  grid-template-columns: minmax(170px, 0.72fr) minmax(220px, 1fr);
  gap: 24px;
  align-items: center;
  min-height: 78px;
  padding: 16px 20px;
  border: 1px solid rgba(118, 161, 196, 0.16);
  border-radius: 18px;
  background: rgba(12, 26, 41, 0.76);
}

.pump-service-time-status span {
  color: var(--muted);
  font-size: clamp(18px, 2.8vw, 26px);
  font-weight: 800;
  text-align: right;
}

.pump-service-time-status strong {
  color: var(--text);
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.pump-service-time-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 760px;
  margin: 30px auto 0;
}

.pump-service-time-button {
  appearance: none;
  min-height: 84px;
  border: 1px solid rgba(118, 161, 196, 0.2);
  border-radius: 18px;
  background: rgba(12, 26, 41, 0.88);
  color: var(--text);
  box-shadow: 0 18px 42px rgba(5, 11, 19, 0.22);
  cursor: pointer;
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 850;
  letter-spacing: 0.06em;
  text-align: center;
}

.pump-service-time-button:hover {
  transform: translateY(-2px);
  border-color: rgba(126, 219, 212, 0.36);
  background: rgba(15, 34, 52, 0.94);
}

.pump-service-time-note {
  max-width: 760px;
  margin: 28px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(118, 161, 196, 0.12);
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  text-align: center;
}

.pump-service-time-note.error {
  color: #ffb8b8;
}

.pump-service-protection-form {
  display: grid;
  gap: 18px;
  max-width: 760px;
  margin: 0 auto;
}

.pump-service-protection-row {
  display: grid;
  grid-template-columns: minmax(170px, 0.72fr) minmax(170px, 1fr) 72px;
  gap: 18px;
  align-items: center;
  min-height: 84px;
  padding: 16px 20px;
  border: 1px solid rgba(118, 161, 196, 0.16);
  border-radius: 18px;
  background: rgba(12, 26, 41, 0.76);
}

.pump-service-protection-row span {
  color: var(--muted);
  font-size: clamp(18px, 2.8vw, 26px);
  font-weight: 800;
  text-align: right;
}

.pump-service-protection-row input {
  min-height: 56px;
  width: 100%;
  border: 1px solid rgba(118, 161, 196, 0.2);
  border-radius: 14px;
  background: rgba(3, 10, 18, 0.64);
  color: var(--text);
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 850;
  padding: 0 16px;
}

.pump-service-protection-row em {
  color: var(--muted);
  font-size: 16px;
  font-style: normal;
}



@media (max-width: 759px) {
  .pump-service-time-page,
.pump-service-time-sheet {
    min-height: 0;
    padding: 22px;
  }

  .pump-service-time-head {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .pump-service-time-head .btn {
    position: static;
    transform: none;
    width: 100%;
  }

  .pump-service-time-status > div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .pump-service-time-status span {
    text-align: left;
  }

  .pump-service-time-actions {
    grid-template-columns: 1fr;
  }

  .pump-service-protection-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .pump-service-protection-row span {
    text-align: left;
  }
}


.pump-service-calibration-page {
  min-height: 760px;
  border: 1px solid rgba(118, 161, 196, 0.16);
  border-radius: 26px;
  background: rgba(8, 18, 30, 0.78);
  padding: 28px;
  box-shadow: 0 18px 44px rgba(5, 11, 19, 0.24);
}

.pump-service-calibration-head {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 26px;
}

.pump-service-calibration-head h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  letter-spacing: 0.12em;
}

.pump-service-calibration-head .btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.pump-service-calibration-form {
  display: grid;
  grid-template-columns: minmax(170px, 0.8fr) minmax(220px, 1fr);
  gap: 22px 42px;
  max-width: 760px;
  margin: 0 auto;
  align-items: center;
}

.pump-service-calibration-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.72fr) minmax(120px, 1fr) auto;
  gap: 14px;
  align-items: center;
  color: var(--text);
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 800;
}

.pump-service-calibration-row--actual,
.pump-service-calibration-wide-button {
  grid-column: 1 / -1;
}

.pump-service-calibration-row span {
  text-align: right;
}

.pump-service-calibration-row em {
  color: var(--muted);
  font-style: normal;
  font-size: 22px;
  font-weight: 800;
}

.pump-service-calibration-row input,
.pump-service-calibration-row select {
  width: 100%;
  min-height: 68px;
  border: 1px solid rgba(118, 161, 196, 0.18);
  border-radius: 18px;
  background: rgba(5, 15, 25, 0.8);
  color: var(--text);
  padding: 0 18px;
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 850;
  text-align: center;
}

.pump-service-calibration-wide-button {
  appearance: none;
  min-height: 76px;
  border: 1px solid rgba(118, 161, 196, 0.2);
  border-radius: 18px;
  background: rgba(12, 26, 41, 0.88);
  color: var(--text);
  box-shadow: 0 18px 42px rgba(5, 11, 19, 0.22);
  cursor: pointer;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 850;
  letter-spacing: 0.06em;
  text-align: center;
}

.pump-service-calibration-wide-button:hover {
  transform: translateY(-2px);
  border-color: rgba(126, 219, 212, 0.36);
  background: rgba(15, 34, 52, 0.94);
}

.pump-service-calibration-status {
  max-width: 760px;
  margin: 26px auto 0;
  padding: 18px 20px;
  border-top: 1px solid rgba(118, 161, 196, 0.12);
  border-bottom: 1px solid rgba(118, 161, 196, 0.12);
  color: var(--text);
  font-size: 18px;
  line-height: 1.7;
  text-align: center;
}

.pump-service-calibration-chart-wrap {
  max-width: 760px;
  margin: 28px auto 0;
}

.pump-service-calibration-chart {
  min-height: 340px;
  margin-top: 12px;
  border-bottom: 0;
}

.pump-service-calibration-plot {
  position: relative;
  min-height: 320px;
  overflow: visible;
  border-left: 2px solid rgba(160, 186, 210, 0.35);
  border-bottom: 0;
}

.pump-service-calibration-y-axis,
.pump-service-calibration-x-axis {
  position: absolute;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.pump-service-calibration-y-axis {
  left: 8px;
  top: 10px;
}

.pump-service-calibration-y-axis-reverse {
  top: auto;
  bottom: 34px;
}

.pump-service-calibration-zero-axis {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: rgba(160, 186, 210, 0.32);
  transform: translateY(-50%);
  z-index: 0;
}

.pump-service-calibration-direction-label {
  position: absolute;
  right: 62px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.pump-service-calibration-direction-label.is-forward {
  top: 16px;
  color: rgba(126, 219, 212, 0.9);
}

.pump-service-calibration-direction-label.is-reverse {
  bottom: 34px;
  color: rgba(126, 219, 212, 0.88);
}

.pump-service-calibration-legend {
  position: absolute;
  top: 10px;
  right: 8px;
  display: flex;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  z-index: 3;
}

.pump-service-calibration-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pump-service-calibration-legend span::before {
  content: "";
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
}

.pump-service-calibration-legend .is-factory {
  color: rgba(132, 166, 198, 0.86);
}

.pump-service-calibration-legend .is-user {
  color: rgba(126, 219, 212, 0.96);
}

.pump-service-calibration-x-axis {
  right: 8px;
  bottom: 8px;
}

.pump-service-calibration-line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}

.pump-service-calibration-line polyline {
  fill: none;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pump-service-calibration-line-glow {
  stroke: rgba(126, 219, 212, 0.18);
  stroke-width: 8;
}

.pump-service-calibration-line-main {
  stroke: rgba(126, 219, 212, 0.9);
  stroke-width: 3;
}

.pump-service-calibration-line.is-reverse .pump-service-calibration-line-glow {
  stroke: rgba(245, 166, 111, 0.18);
}

.pump-service-calibration-line.is-reverse .pump-service-calibration-line-main {
  stroke: rgba(245, 166, 111, 0.9);
}

.pump-service-calibration-line.is-factory .pump-service-calibration-line-glow {
  stroke: rgba(132, 166, 198, 0.12);
  stroke-width: 4;
}

.pump-service-calibration-line.is-factory .pump-service-calibration-line-main {
  stroke: rgba(132, 166, 198, 0.78);
  stroke-width: 2;
  stroke-dasharray: none;
}

.pump-service-calibration-line.is-user .pump-service-calibration-line-glow {
  stroke: rgba(126, 219, 212, 0.26);
  stroke-width: 10;
}

.pump-service-calibration-line.is-user .pump-service-calibration-line-main {
  stroke: rgba(126, 219, 212, 0.96);
  stroke-width: 5;
}

.pump-service-calibration-dot {
  position: absolute;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  margin-top: -8px;
  margin-bottom: -8px;
  border: 2px solid rgba(160, 186, 210, 0.55);
  border-radius: 999px;
  background: rgba(12, 26, 41, 0.96);
  z-index: 2;
}

.pump-service-calibration-dot.is-valid {
  border-color: rgba(126, 219, 212, 0.92);
  background: rgba(126, 219, 212, 0.24);
  box-shadow: 0 0 0 6px rgba(126, 219, 212, 0.08);
}

.pump-service-calibration-dot.is-reverse.is-valid {
  border-color: rgba(245, 166, 111, 0.92);
  background: rgba(245, 166, 111, 0.24);
  box-shadow: 0 0 0 6px rgba(245, 166, 111, 0.08);
}

.pump-service-calibration-dot.is-factory {
  width: 10px;
  height: 10px;
  margin-left: -5px;
  margin-top: -5px;
  border-width: 2px;
  z-index: 2;
}

.pump-service-calibration-dot.is-factory.is-valid {
  border-color: rgba(132, 166, 198, 0.88);
  background: rgba(132, 166, 198, 0.18);
  box-shadow: 0 0 0 4px rgba(132, 166, 198, 0.07);
}

.pump-service-calibration-dot.is-user.is-valid {
  border-color: rgba(126, 219, 212, 0.96);
  background: rgba(126, 219, 212, 0.26);
  box-shadow: 0 0 0 7px rgba(126, 219, 212, 0.1);
}

.pump-service-calibration-dot.is-selected {
  border-color: #ffffff;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.08);
}

.pump-service-calibration-dot span {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  min-width: 64px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

.pump-service-calibration-dot.is-reverse span {
  top: 18px;
  bottom: auto;
}

.pump-service-calibration-dot.is-factory span {
  min-width: 40px;
  color: rgba(148, 177, 205, 0.9);
  font-size: 10px;
}

.pump-service-calibration-dot.is-user span {
  color: rgba(183, 242, 238, 0.96);
}

.pump-service-calibration-dot.is-forward.is-factory span {
  bottom: 12px;
}

.pump-service-calibration-dot.is-forward.is-user span {
  bottom: 28px;
}

.pump-service-calibration-dot.is-reverse.is-factory span {
  top: 12px;
}

.pump-service-calibration-dot.is-reverse.is-user span {
  top: 28px;
}


.pump-service-calibration-axis-point {
  position: absolute;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  margin-top: -11px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(160, 186, 210, 0.58);
  border-radius: 999px;
  background: rgba(10, 24, 38, 0.96);
  color: rgba(160, 186, 210, 0.95);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  z-index: 2;
}

.pump-service-calibration-x-label {
  position: absolute;
  bottom: -28px;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 15px;
  font-weight: 850;
}

@media (max-width: 759px) {
  .pump-service-calibration-page {
    min-height: 0;
    padding: 22px;
  }

  .pump-service-calibration-head {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .pump-service-calibration-head .btn {
    position: static;
    transform: none;
    width: 100%;
  }

  .pump-service-calibration-form {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .pump-service-calibration-row {
    grid-template-columns: 1fr;
  }

  .pump-service-calibration-row span {
    text-align: left;
  }
}


.pump-service-normal-plan-sheet {
  width: min(700px, calc(100vw - 32px));
  min-height: min(860px, calc(100vh - 72px));
  max-width: 700px;
  padding: 28px 30px 34px;
}

.pump-service-normal-plan-head {
  position: relative;
  min-height: 56px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.pump-service-normal-plan-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.pump-service-normal-plan-head .icon-btn {
  position: absolute;
  top: 0;
  right: 0;
}

.pump-service-normal-plan-form {
  display: grid;
  gap: 16px;
  margin: 30px auto 24px;
  max-width: 500px;
}

.pump-service-normal-plan-row {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr) 86px;
  align-items: center;
  gap: 14px;
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
}

.pump-service-normal-plan-row input,
.pump-service-normal-plan-row select {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(118, 161, 196, 0.18);
  border-radius: 14px;
  background: rgba(9, 18, 29, 0.82);
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
  text-align: center;
}

.pump-service-normal-plan-row select {
  grid-column: 2 / 4;
  text-align-last: center;
}

.pump-service-normal-plan-row em {
  color: var(--muted);
  font-style: normal;
  font-size: 18px;
}

.pump-service-normal-plan-status {
  border-top: 1px solid rgba(118, 161, 196, 0.14);
  border-bottom: 1px solid rgba(118, 161, 196, 0.14);
  padding: 22px 0;
  text-align: center;
}

.pump-service-normal-plan-status div {
  color: var(--text);
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.pump-service-normal-plan-status p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.pump-service-normal-plan-chart {
  border-bottom: 1px solid rgba(118, 161, 196, 0.14);
  padding: 24px 0 26px;
}

.pump-service-normal-plan-chart .pump-plan-preview-chart {
  min-height: 190px;
  margin-top: 16px;
}

.pump-service-normal-plan-action-wrap {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding-top: 28px;
}

.pump-service-normal-plan-action {
  min-width: 160px;
  min-height: 64px;
  font-size: 23px;
  font-weight: 800;
}

.pump-service-plan-toggle-button {
  width: min(360px, 72vw);
  min-height: 86px !important;
  border: 0;
  border-radius: 28px;
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: linear-gradient(120deg, #58a9ff 0%, #38d4bf 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(52, 178, 221, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.pump-service-plan-toggle-button:disabled {
  opacity: 0.78;
}

.pump-service-plan-toggle-button[data-state="busy"] {
  background: linear-gradient(120deg, #7994b8 0%, #4f7d8f 100%);
}

.pump-service-plan-toggle-button[data-state="fault"] {
  background: linear-gradient(120deg, #6f7f94 0%, #8b465c 100%);
}

.pump-service-protection-recovery-toggle {
  align-self: center;
  margin-top: 10px;
}

.pump-service-plan-toggle-main {
  display: block;
  font-size: clamp(21px, 2.2vw, 30px);
  line-height: 1.08;
  font-weight: 950;
}

.pump-service-plan-toggle-sub {
  display: block;
  font-size: clamp(14px, 1.55vw, 20px);
  line-height: 1.1;
  font-weight: 800;
  opacity: 0.96;
}

.pump-service-plan-toggle-legacy-cancel {
  display: none !important;
}

.pump-service-plan-home-sheet {
  width: min(720px, calc(100vw - 32px));
  min-height: min(820px, calc(100vh - 88px));
  max-width: 720px;
  padding: 28px 30px 34px;
}

.pump-service-plan-home-head {
  position: relative;
  min-height: 56px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.pump-service-plan-home-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.pump-service-plan-home-head .icon-btn {
  position: absolute;
  top: 0;
  right: 0;
}

.pump-service-plan-home-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 34px;
  margin: 30px auto 32px;
  max-width: 500px;
}

.pump-service-plan-home-button {
  appearance: none;
  min-height: 76px;
  border: 1px solid rgba(118, 161, 196, 0.18);
  border-radius: 18px;
  background: rgba(12, 26, 41, 0.86);
  color: var(--text);
  box-shadow: 0 16px 36px rgba(5, 11, 19, 0.22);
  cursor: pointer;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.pump-service-plan-home-button:hover {
  transform: translateY(-2px);
  border-color: rgba(126, 219, 212, 0.36);
  background: rgba(15, 34, 52, 0.94);
}

.pump-service-plan-home-status {
  border-top: 1px solid rgba(118, 161, 196, 0.14);
  border-bottom: 1px solid rgba(118, 161, 196, 0.14);
  padding: 26px 0;
  text-align: center;
}

.pump-service-plan-home-status div {
  color: var(--text);
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.pump-service-plan-home-status p {
  margin: 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
}

.pump-service-plan-home-chart {
  border-bottom: 1px solid rgba(118, 161, 196, 0.14);
  padding: 24px 0 28px;
}

.pump-service-plan-home-chart .pump-plan-preview-chart {
  min-height: 170px;
  margin-top: 16px;
}


.pump-service-normal-continuous-sheet {
  width: min(700px, calc(100vw - 32px));
  min-height: min(800px, calc(100vh - 72px));
  max-width: 700px;
  padding: 28px 30px 34px;
}

.pump-service-normal-continuous-head {
  position: relative;
  min-height: 56px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.pump-service-normal-continuous-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.pump-service-normal-continuous-head .icon-btn {
  position: absolute;
  top: 0;
  right: 0;
}

.pump-service-normal-continuous-form {
  display: grid;
  gap: 18px;
  margin: 30px auto 24px;
  max-width: 500px;
}

.pump-service-normal-continuous-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 86px;
  align-items: center;
  gap: 14px;
  color: var(--text);
  font-size: 23px;
  font-weight: 800;
}

.pump-service-normal-continuous-row input,
.pump-service-normal-continuous-row select {
  width: 100%;
  min-height: 56px;
  border: 1px solid rgba(118, 161, 196, 0.18);
  border-radius: 14px;
  background: rgba(9, 18, 29, 0.82);
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
  text-align: center;
}

.pump-service-normal-continuous-row select {
  grid-column: 2 / 4;
  text-align-last: center;
}

.pump-service-normal-continuous-row em {
  color: var(--muted);
  font-style: normal;
  font-size: 18px;
}

.pump-service-normal-continuous-status {
  border-top: 1px solid rgba(118, 161, 196, 0.14);
  border-bottom: 1px solid rgba(118, 161, 196, 0.14);
  padding: 26px 0;
  text-align: center;
}

.pump-service-normal-continuous-status div {
  color: var(--text);
  font-size: 25px;
  font-weight: 800;
  margin-bottom: 8px;
}

.pump-service-normal-continuous-status p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.pump-service-transaction-evidence {
  margin-top: 8px !important;
  color: var(--accent) !important;
  overflow-wrap: anywhere;
}

.pump-service-normal-continuous-chart {
  border-bottom: 1px solid rgba(118, 161, 196, 0.14);
  padding: 24px 0 26px;
}

.pump-service-normal-continuous-chart .pump-plan-preview-chart {
  min-height: 180px;
  margin-top: 16px;
}

.pump-service-normal-continuous-action-wrap {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding-top: 30px;
}

.pump-service-normal-continuous-action {
  min-width: 160px;
  min-height: 64px;
  font-size: 23px;
  font-weight: 800;
}

.pump-service-apex-plan-sheet {
  width: min(820px, calc(100vw - 32px));
  min-height: min(900px, calc(100vh - 72px));
  max-width: 820px;
  padding: 28px 30px 34px;
}

.pump-service-apex-plan-head {
  position: relative;
  min-height: 56px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.pump-service-apex-plan-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.pump-service-apex-plan-head .icon-btn {
  position: absolute;
  top: 0;
  right: 0;
}

.pump-service-apex-plan-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 26px;
  margin: 30px auto 24px;
}

.pump-service-apex-plan-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 64px;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
}

.pump-service-apex-plan-row input,
.pump-service-apex-plan-row select {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(118, 161, 196, 0.18);
  border-radius: 14px;
  background: rgba(9, 18, 29, 0.82);
  color: var(--text);
  font-size: 21px;
  font-weight: 700;
  text-align: center;
}

.pump-service-apex-plan-row select {
  grid-column: 2 / 4;
  text-align-last: center;
}

.pump-service-apex-plan-row em {
  color: var(--muted);
  font-style: normal;
  font-size: 18px;
}

.pump-service-apex-plan-status {
  border-top: 1px solid rgba(118, 161, 196, 0.14);
  border-bottom: 1px solid rgba(118, 161, 196, 0.14);
  padding: 22px 0;
  text-align: center;
}

.pump-service-apex-plan-status div {
  color: var(--text);
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.pump-service-apex-plan-status p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.pump-service-apex-plan-chart {
  border-bottom: 1px solid rgba(118, 161, 196, 0.14);
  padding: 24px 0 26px;
}

.pump-service-apex-plan-chart .pump-plan-preview-chart {
  min-height: 190px;
  margin-top: 16px;
}

.pump-service-apex-plan-action-wrap {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding-top: 28px;
}

.pump-service-apex-plan-action {
  min-width: 160px;
  min-height: 64px;
  font-size: 23px;
  font-weight: 800;
}

.pump-service-apex-continuous-sheet {
  width: min(780px, calc(100vw - 32px));
  min-height: min(760px, calc(100vh - 72px));
  max-width: 780px;
  padding: 28px 30px 34px;
}

.pump-service-apex-continuous-head {
  position: relative;
  min-height: 56px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.pump-service-apex-continuous-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.pump-service-apex-continuous-head .icon-btn {
  position: absolute;
  top: 0;
  right: 0;
}

.pump-service-apex-continuous-current {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin: 26px auto 22px;
  color: var(--text);
  font-size: 22px;
  font-weight: 800;
}

.pump-service-apex-continuous-current strong {
  color: var(--muted);
  font-size: 22px;
  font-weight: 800;
}

.pump-service-apex-continuous-form {
  display: grid;
  gap: 18px;
  margin: 0 auto 24px;
}

.pump-service-apex-continuous-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 82px;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 22px;
  font-weight: 800;
}

.pump-service-apex-continuous-row--targets {
  grid-template-columns: 150px 54px minmax(0, 1fr) 46px minmax(0, 1fr) 46px minmax(0, 1fr);
}

.pump-service-apex-continuous-row input,
.pump-service-apex-continuous-row select {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(118, 161, 196, 0.18);
  border-radius: 14px;
  background: rgba(9, 18, 29, 0.82);
  color: var(--text);
  font-size: 21px;
  font-weight: 700;
  text-align: center;
}

.pump-service-apex-continuous-row select {
  grid-column: 2 / 4;
  text-align-last: center;
}

.pump-service-apex-continuous-row em {
  color: var(--muted);
  font-style: normal;
  font-size: 19px;
}

.pump-service-apex-continuous-status {
  border-top: 1px solid rgba(118, 161, 196, 0.14);
  border-bottom: 1px solid rgba(118, 161, 196, 0.14);
  min-height: 170px;
  padding: 28px 0;
  text-align: center;
}

.pump-service-apex-continuous-status div {
  color: var(--text);
  font-size: 25px;
  font-weight: 800;
  margin-bottom: 10px;
}

.pump-service-apex-continuous-status p {
  margin: 8px auto 0;
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.pump-service-apex-continuous-chart {
  border-bottom: 1px solid rgba(118, 161, 196, 0.14);
  padding: 24px 0 26px;
}

.pump-service-apex-continuous-chart .pump-plan-preview-chart {
  min-height: 170px;
  margin-top: 16px;
}

.pump-service-apex-continuous-action-wrap {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding-top: 34px;
}

.pump-service-apex-continuous-action {
  min-width: 160px;
  min-height: 64px;
  font-size: 23px;
  font-weight: 800;
}

.pump-service-manual-global-view .module-page-hero,
.pump-service-manual-global-view .module-page-tabbar-shell,
.pump-service-manual-global-view .module-page-overview-card,
.pump-service-manual-global-view #espnowDetailStatusBar,
.pump-service-manual-global-view #espnowDetailMetrics {
  display: none !important;
}

.pump-service-manual-global-view .module-page-detail-shell {
  margin-top: 0;
}

.pump-service-manual-global-view #espnowDetailActions {
  display: flex;
  justify-content: center;
  width: 100%;
}

.pump-service-manual-global-view .module-page-action-grid--single {
  display: flex;
}

.pump-service-manual-global-view .pump-service-manual-card,
.pump-service-manual-sheet {
  width: min(620px, calc(100vw - 32px));
  min-height: min(720px, calc(100vh - 120px));
}

.pump-service-manual-card,
.pump-service-manual-sheet {
  min-height: 620px;
  max-width: 620px;
  margin: 0 auto;
  padding: 26px 28px 34px;
}

.pump-service-manual-head,
.pump-service-manual-overlay-head {
  position: relative;
  min-height: 44px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.pump-service-manual-head h2,
.pump-service-manual-overlay-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.pump-service-manual-head .btn,
.pump-service-manual-overlay-head .icon-btn {
  position: absolute;
  top: 0;
  right: 0;
}

.pump-service-manual-form {
  display: grid;
  gap: 18px;
  margin: 28px auto 22px;
  max-width: 420px;
}

.pump-service-manual-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 76px;
  align-items: center;
  gap: 14px;
  color: var(--text);
  font-size: 24px;
  font-weight: 700;
}

.pump-service-manual-row input,
.pump-service-manual-row select {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(118, 161, 196, 0.18);
  border-radius: 14px;
  background: rgba(9, 18, 29, 0.82);
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
  text-align: center;
}

.pump-service-manual-row select {
  grid-column: 2 / 4;
  text-align-last: center;
}

.pump-service-manual-row em {
  color: var(--muted);
  font-style: normal;
  font-size: 18px;
}

.pump-service-manual-status {
  border-top: 1px solid rgba(118, 161, 196, 0.14);
  border-bottom: 1px solid rgba(118, 161, 196, 0.14);
  margin: 28px 0;
  padding: 28px 0;
  text-align: center;
}

.pump-service-manual-status div {
  color: var(--text);
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.pump-service-manual-status p {
  margin: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.7;
}

.pump-service-manual-action-wrap {
  display: flex;
  justify-content: center;
  padding-top: 10px;
}

.pump-service-manual-action {
  min-width: 220px;
  min-height: 64px;
  font-size: 24px;
  font-weight: 800;
}

.module-page-basic-shell {
  display: grid;
  gap: 14px;
}

.module-page-primary-cta {
  min-height: 64px;
  font-size: 20px;
}

.espnow-sheet {
  width: min(760px, 100%);
}

.espnow-detail-sheet {
  width: min(860px, calc(100vw - 56px));
}

.espnow-detail-grid {
  margin-top: 14px;
}

.espnow-detail-grid.flow-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.espnow-detail-grid .summary-card {
  min-height: 0;
}

.espnow-detail-control-card {
  gap: 14px;
}

.espnow-flow-cal-panel {
  gap: 12px;
}

.espnow-flow-target-grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(180px, 0.7fr);
  align-items: stretch;
}

.espnow-flow-target-grid input,
.espnow-flow-cal-confirm-grid input {
  width: 100%;
  min-height: 44px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(118, 161, 196, 0.18);
  background: rgba(9, 18, 29, 0.82);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.espnow-flow-target-grid .btn {
  min-height: 64px;
  font-size: 18px;
}

.espnow-detail-dual-lines {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.espnow-detail-dual-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 15px;
}

.espnow-detail-dual-line strong {
  color: var(--text);
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.espnow-flow-cal-confirm-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(180px, 0.9fr);
}

.espnow-flow-cal-confirm-grid.is-hidden {
  display: none;
}

.espnow-detail-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.espnow-detail-action-grid .btn {
  min-width: 0;
  width: 100%;
}

.pump-wizard-step-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.pump-wizard-step-grid .espnow-detail-action-grid {
  grid-template-columns: 1fr;
}

.pump-plan-preview-shell {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(118, 161, 196, 0.14);
  background:
    linear-gradient(180deg, rgba(16, 29, 45, 0.9), rgba(10, 20, 31, 0.86)),
    rgba(10, 20, 31, 0.84);
}

.pump-plan-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.pump-plan-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pump-plan-subtabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pump-plan-subtab {
  appearance: none;
  position: relative;
  width: 100%;
  min-height: 84px;
  padding: 18px 18px 16px;
  border-radius: 22px;
  border: 1px solid rgba(118, 161, 196, 0.14);
  background:
    linear-gradient(180deg, rgba(15, 27, 42, 0.92), rgba(10, 20, 31, 0.88)),
    rgba(10, 20, 31, 0.84);
  color: var(--text);
  text-align: left;
  display: grid;
  gap: 8px;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease,
    background 0.18s ease;
}

.pump-plan-subtab strong {
  font-size: 16px;
}

.pump-plan-subtab span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.pump-plan-subtab.active {
  border-color: rgba(93, 181, 255, 0.4);
  box-shadow: 0 18px 42px rgba(53, 121, 188, 0.18);
  transform: translateY(-1px);
}

.pump-plan-subtab.active::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(90, 167, 255, 0.92), rgba(53, 211, 194, 0.92));
  box-shadow: 0 0 16px rgba(90, 167, 255, 0.18);
}

.pump-plan-mode-btn {
  appearance: none;
  width: 100%;
  min-height: 122px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(118, 161, 196, 0.14);
  background:
    linear-gradient(180deg, rgba(15, 27, 42, 0.9), rgba(10, 20, 31, 0.86)),
    rgba(10, 20, 31, 0.84);
  color: var(--text);
  text-align: left;
  display: grid;
  gap: 8px;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.pump-plan-mode-btn strong {
  font-size: 17px;
}

.pump-plan-mode-btn span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.pump-plan-mode-btn.is-active {
  border-color: rgba(93, 181, 255, 0.4);
  box-shadow: 0 18px 42px rgba(53, 121, 188, 0.2);
  transform: translateY(-1px);
}

.pump-plan-preview-shell--list {
  gap: 12px;
}

.pump-plan-summary-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.pump-plan-summary-card {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(118, 161, 196, 0.12);
  background: rgba(7, 15, 24, 0.42);
}

.pump-plan-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pump-plan-summary-head strong {
  font-size: 16px;
  color: var(--text);
}

.pump-plan-summary-head span {
  color: rgba(126, 219, 212, 0.92);
  font-size: 13px;
  font-weight: 700;
}

.pump-plan-summary-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pump-plan-summary-metrics div {
  display: grid;
  gap: 6px;
}

.pump-plan-summary-metrics span,
.pump-plan-summary-foot {
  color: var(--muted);
  font-size: 13px;
}

.pump-plan-summary-metrics strong {
  color: var(--text);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.pump-plan-preview-chart {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  align-items: end;
  gap: 6px;
  min-height: 220px;
  padding: 8px 2px 0;
}

.pump-plan-bar-slot {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: stretch;
  justify-items: center;
  gap: 8px;
  min-height: 182px;
}

.pump-plan-bar-track {
  position: relative;
  width: 100%;
  min-height: 150px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 2px;
}

.pump-plan-bar-track::before {
  content: "";
  position: absolute;
  inset: 10px 10% 0;
  border-radius: 16px 16px 0 0;
  background: rgba(255, 255, 255, 0.02);
}

.pump-plan-bar-slot.active .pump-plan-bar-track::before {
  background: linear-gradient(180deg, rgba(94, 175, 255, 0.12), rgba(63, 204, 188, 0.03));
}

.pump-plan-bar-top {
  position: relative;
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.pump-plan-bar-value {
  position: relative;
  width: 72%;
  min-height: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(103, 177, 255, 0.95), rgba(63, 204, 188, 0.95));
  box-shadow: 0 14px 30px rgba(64, 170, 255, 0.18);
}

.pump-plan-bar-slot span {
  position: relative;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.pump-plan-preview-chart--records .pump-plan-bar-value,
.pump-plan-bar-slot--record .pump-plan-bar-value {
  background: linear-gradient(180deg, rgba(255, 194, 96, 0.98), rgba(255, 147, 68, 0.94));
  box-shadow: 0 14px 30px rgba(255, 167, 74, 0.2);
}

.pump-plan-preview-chart--records .pump-plan-bar-slot.active .pump-plan-bar-track::before,
.pump-plan-bar-slot--record.active .pump-plan-bar-track::before {
  background: linear-gradient(180deg, rgba(255, 190, 92, 0.12), rgba(255, 147, 68, 0.03));
}

.pump-plan-bar-slot--plan .pump-plan-bar-track::before {
  inset: 14px 14% 0;
  background: rgba(74, 107, 145, 0.06);
}

.pump-plan-bar-slot--record .pump-plan-bar-track::before {
  inset: 14px 14% 0;
}

.pump-plan-bar-slot.is-empty .pump-plan-bar-track::before {
  background: rgba(255, 255, 255, 0.015);
}

.pump-plan-chart-empty {
  grid-column: 1 / -1;
  min-height: 180px;
  border-radius: 20px;
  border: 1px dashed rgba(118, 161, 196, 0.22);
  background: rgba(7, 15, 24, 0.34);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  line-height: 1.7;
}

.pump-plan-record-foot {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.pump-plan-calc-lines {
  margin-top: 0;
}

.pump-cal-sheet {
  width: min(900px, calc(100vw - 40px));
}

.pump-cal-progress-card {
  gap: 12px;
}

.pump-cal-progress-head,
.pump-cal-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pump-cal-progress-head strong,
.pump-cal-step-head strong {
  font-size: 18px;
  color: var(--text);
}

.pump-cal-progress-head span {
  color: var(--muted);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.pump-cal-progress-track {
  margin-top: 0;
}

.pump-cal-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.pump-cal-step-card {
  gap: 12px;
}

.pump-cal-step-head .btn {
  min-width: 168px;
}

.pump-cal-input-grid {
  grid-template-columns: 1fr;
}

.pump-cal-input-grid input {
  width: 100%;
  min-height: 44px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(118, 161, 196, 0.18);
  background: rgba(9, 18, 29, 0.82);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.pump-cal-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pump-cal-action-grid .btn {
  min-width: 0;
  width: 100%;
}

.espnow-empty {
  color: var(--muted);
  font-size: 13px;
}

.device-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.device-item.selected {
  border-color: rgba(47, 140, 255, 0.34);
  box-shadow: 0 10px 24px rgba(7, 15, 24, 0.16);
}

.device-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.device-item-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.field input,
.field select {
  width: 100%;
  min-height: 44px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(118, 161, 196, 0.18);
  background: rgba(9, 18, 29, 0.82);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
  text-align: center;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.alarm-settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.alarm-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cal-setting-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 120px;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}

.salt-page6-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.salt-page6-grid .field {
  align-items: center;
}

.salt-page6-grid .field label {
  text-align: center;
}

.salt-page6-grid .field input {
  width: 90%;
  min-width: 0;
  min-height: 10px;
  padding: 12px 18px;
  font-size: 15px;
}

.readonly {
  background: rgba(22, 39, 60, 0.86);
  color: #dbe7f3;
}

.pair,
.triple {
  display: grid;
  gap: 12px;
}

.pair {
  grid-template-columns: 1fr 1fr;
}

.calibration-confirm-field {
  width: 100%;
  align-items: center;
}

.calibration-confirm-field label {
  width: 100%;
}

.calibration-confirm-field input {
  width: 192px;
  max-width: 100%;
  min-width: 0;
  align-self: center;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.triple {
  grid-template-columns: 1fr 1fr 1fr;
}

.metric-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(118, 161, 196, 0.12);
}

.metric-row > :first-child {
  min-width: 0;
}

.metric-row > :last-child {
  max-width: 100%;
  text-align: right;
  word-break: break-word;
}

.metric-row:last-child {
  border-bottom: none;
}

.settings-theme-embed {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(118, 161, 196, 0.12);
}

.settings-theme-embed h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

.metric-row strong {
  font-size: 15px;
}

.metric-row span {
  color: var(--muted);
  font-size: 13px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(90, 167, 255, 0.12);
  border: 1px solid rgba(90, 167, 255, 0.22);
  font-size: 13px;
  color: #c9defa;
}

.chip.warn {
  background: rgba(240, 77, 61, 0.14);
  border-color: rgba(240, 77, 61, 0.28);
  color: #ffc4bd;
}

.chip.good {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.24);
  color: #a3f3c2;
}

.progress-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(8, 18, 28, 0.88);
  border: 1px solid rgba(118, 161, 196, 0.16);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-2) 0%, var(--accent) 100%);
}

.status-box {
  padding: 15px 16px;
  border-radius: 20px;
  background: rgba(12, 24, 39, 0.9);
  border: 1px dashed rgba(118, 161, 196, 0.18);
  color: #d8e5f2;
  line-height: 1.5;
}

.status-box.status-box--ok {
  border-color: rgba(95, 211, 128, 0.42);
  color: #e8fff0;
}

.status-box.status-box--error {
  border-color: rgba(255, 110, 89, 0.42);
  color: #ffe6e1;
}

.summary-grid + .status-box,
.progress-track + .status-box {
  margin-top: 12px;
}

.status-box.empty {
  color: var(--muted);
}

.status-main {
  font-size: 15px;
  font-weight: 600;
  color: #e8f2fb;
}

.status-sub {
  margin-top: 6px;
  font-size: 13px;
  color: #9fb7cf;
}

.days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.days label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 14px 6px;
  border-radius: 18px;
  background: rgba(10, 21, 34, 0.94);
  border: 1px solid rgba(118, 161, 196, 0.22);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #c6d7ea;
  text-shadow: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.days input {
  display: none;
}

.days label.active {
  background: linear-gradient(90deg, var(--accent-2) 0%, var(--accent) 100%);
  color: #ffffff;
  text-shadow: none;
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow:
    0 0 0 2px rgba(90, 167, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.plan-editor-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-mode-field select {
  text-align: center;
  text-align-last: center;
  font-weight: 700;
}

.plan-volume-grid {
  align-items: end;
}

.plan-time-field {
  align-items: center;
}

.plan-time-field label {
  align-self: flex-start;
}

.plan-time-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
}

.plan-time-row input {
  width: 100%;
  min-width: 0;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.plan-time-sep {
  font-size: 28px;
  font-weight: 700;
  color: #dce9f6;
  line-height: 1;
}

.manual-change-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.makeup-editor-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.makeup-editor-grid {
  align-items: end;
}

.manual-mode-field select {
  text-align: center;
  text-align-last: center;
  font-weight: 700;
}

.manual-volume-grid {
  align-items: end;
}

.manual-split-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(118, 161, 196, 0.12);
}

.manual-split-copy {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  flex-wrap: nowrap;
}

.manual-split-copy strong {
  font-size: 15px;
  color: #e8f2fb;
  white-space: nowrap;
}

.manual-split-copy span {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.manual-split-value {
  text-align: right;
  font-size: 16px;
  font-weight: 600;
  color: #dce9f6;
  white-space: nowrap;
}

.tabbar {
  position: fixed;
  left: 50%;
  bottom: max(10px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(calc(100vw - 20px), 760px);
  padding: 10px;
  background: rgba(8, 16, 25, 0.84);
  border: 1px solid rgba(118, 161, 196, 0.16);
  border-radius: 26px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.3);
}

.tab-btn {
  border: none;
  background: transparent;
  color: #9eb2c9;
  padding: 11px 6px;
  border-radius: 18px;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.tab-btn:hover {
  transform: translateY(-1px);
  color: #dcecff;
}

.tab-btn.active {
  color: var(--accent);
  background: rgba(53, 211, 194, 0.1);
}

.tab-icon {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.92;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 9, 14, 0.74);
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 18px;
  z-index: 20;
  backdrop-filter: blur(10px);
}

.overlay.show {
  display: flex;
}

#overlay-alarm-detail {
  z-index: 25;
}

.global-alarm-overlay {
  align-items: flex-start;
  justify-content: center;
  padding-top: 72px;
  z-index: 40;
  background: rgba(5, 11, 17, 0.68);
}

.global-alarm-sheet {
  width: min(520px, calc(100vw - 32px));
  max-height: min(72vh, 540px);
}

.tap-note-overlay {
  align-items: center;
  justify-content: center;
  z-index: 45;
  background: rgba(5, 11, 17, 0.68);
}

.tap-note-sheet {
  width: min(320px, calc(100vw - 40px));
  max-height: none;
  padding: 14px;
}

.tap-note-box {
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
}

.global-alarm-card {
  gap: 14px;
}

.alarm-popup-reason-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.alarm-popup-reason {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(240, 77, 61, 0.1);
  border: 1px solid rgba(240, 77, 61, 0.22);
  color: #ffd2cd;
  font-size: 14px;
  line-height: 1.45;
}

.global-alarm-actions {
  margin-top: 4px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sheet {
  width: min(760px, 100%);
  max-height: 88vh;
  overflow: auto;
  background: linear-gradient(
    180deg,
    rgba(12, 22, 35, 0.96) 0%,
    rgba(15, 27, 42, 0.98) 100%
  );
  border: 1px solid rgba(118, 161, 196, 0.18);
  border-radius: 30px;
  padding: 20px;
  box-shadow: var(--shadow);
  animation: view-rise 0.22s ease;
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.sheet-head h3 {
  margin: 0;
  font-size: 22px;
}

.icon-btn {
  border: none;
  min-height: 44px;
  background: rgba(26, 44, 66, 0.9);
  color: #dbe7f3;
  border-radius: 16px;
  padding: 10px 14px;
}

.trim-editor-sheet {
  padding: 18px;
}

.trim-editor-head {
  margin-bottom: 18px;
}

.trim-editor-panel {
  border-radius: 28px;
}

.trim-close-btn {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}

.salt-stage {
  display: none;
  flex-direction: column;
  gap: 14px;
}

.salt-stage.show {
  display: flex;
}

.offline-overlay {
  align-items: center;
  z-index: 40;
}

.offline-overlay .sheet {
  max-height: none;
}

.app.offline .btn,
.app.offline .toggle-btn,
.app.offline .quick-card,
.app.offline .tab-btn,
.app.offline input,
.app.offline select {
  opacity: 0.5;
}

details.debug {
  background: rgba(20, 34, 51, 0.76);
  border-radius: 20px;
  border: 1px solid rgba(118, 161, 196, 0.14);
  padding: 14px 16px;
}

details.debug summary {
  cursor: pointer;
  color: #c9ddf1;
}

pre {
  margin: 14px 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
  color: #bfd3e7;
}

.helper {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.helper-lines > div + div {
  margin-top: 4px;
}

.calibration-note {
  font-size: 12px;
  line-height: 1.55;
}

input[type="checkbox"] {
  accent-color: var(--accent);
}

.switch-inline {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid rgba(118, 161, 196, 0.16);
  background: rgba(12, 21, 33, 0.72);
  color: var(--text);
}

.inline-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.apex-sheet {
  gap: 12px;
}

.apex-config-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.apex-chart-head {
  margin-bottom: 12px;
}

.apex-salt-sheet {
  gap: 12px;
}

.apex-salt-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.apex-salt-switch-row {
  margin-top: 2px;
}

.apex-salt-range-grid {
  align-items: end;
}

.apex-slot-grid,
.apex-config-grid {
  margin-top: 0;
}

.apex-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr);
  gap: 10px;
}

.apex-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.apex-actions .btn {
  padding: 14px 10px;
}

.apex-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.apex-chart-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(27, 45, 67, 0.9);
  border: 1px solid rgba(118, 161, 196, 0.14);
  overflow: hidden;
}

.apex-chart-top {
  display: grid;
  grid-template-columns: max-content 1fr max-content;
  align-items: center;
  column-gap: 0;
  min-height: 18px;
}

.apex-chart-title {
  min-width: 0;
  margin-bottom: 0;
  font-size: 12px;
  line-height: 1;
  color: #d5e3f2;
  justify-self: start;
}

.apex-chart-value {
  grid-column: 3;
  justify-self: end;
  margin-bottom: 0;
  text-align: right;
  white-space: nowrap;
  padding-left: 0;
  line-height: 1;
  align-self: center;
}

.apex-chart {
  width: 100%;
  aspect-ratio: 1.34 / 1;
  border-radius: 10px;
  background: rgba(27, 45, 67, 0.92);
  border: 0;
  overflow: hidden;
}

.apex-chart svg {
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
}

.apex-chart-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
  background: #1b2d43;
}

@media (min-width: 480px) {
  .summary-grid,
  .actions,
  .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .actions.espnow-discovery-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .two-col,
  .espnow-inline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .espnow-detail-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .espnow-status-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 760px) {
  .content {
    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: 136px;
  }

  .view {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .view > :first-child {
    grid-column: 1 / -1;
    padding-top: 10px;
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #view-waterchanger-control.active {
    grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.92fr);
  }

  #view-waterchanger-control.active > :first-child {
    grid-column: 1 / -1;
  }

  #view-waterchanger-control.active > .device-card {
    grid-column: 1;
  }

  #view-waterchanger-control.active > .card:last-child {
    grid-column: 2;
    align-self: start;
    position: sticky;
    top: 128px;
  }

  #view-waterchanger-control .device-card .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .espnow-entry-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sheet {
    padding: 22px;
  }
}

@media (min-width: 1100px) {
  .app {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    grid-template-areas:
      "nav header"
      "nav main";
    column-gap: 28px;
    align-content: start;
    padding: 20px 20px 24px;
  }

  .topbar {
    grid-area: header;
    padding: 12px 8px 12px 0;
    background: transparent;
    backdrop-filter: none;
  }

  .topbar .title {
    padding-top: 62px;
  }

  .content {
    grid-area: main;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 8px 12px 0;
  }

  .tabbar {
    grid-area: nav;
    position: sticky;
    left: auto;
    top: 20px;
    bottom: auto;
    transform: none;
    width: 160px;
    margin-top: 156px;
    align-self: start;
    justify-self: start;
    grid-template-columns: 1fr;
    padding: 14px;
    border-radius: 32px;
  }

  .tab-btn {
    flex-direction: row;
    justify-content: center;
    text-align: center;
    gap: 12px;
    min-height: 54px;
    padding: 0 16px;
    font-size: 14px;
  }

  .view {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .view:not(#view-waterchanger-control) {
    grid-template-columns: repeat(2, minmax(0, 529px));
    width: 1080px;
    max-width: 100%;
    margin: 0 auto;
    justify-content: center;
  }

  #view-module-detail.view.active {
    width: min(1240px, 100%);
  }

  .summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .compact-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 250px));
  }

  .calibration-launches {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #view-waterchanger-control .device-card .summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  #view-waterchanger-control .device-card .summary-grid > .summary-card:nth-child(-n + 2) {
    grid-column: span 2;
  }

  #view-waterchanger-control .device-card .summary-grid > .summary-card:nth-child(n + 3) {
    grid-column: span 2;
  }

  .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sheet {
    width: min(860px, calc(100vw - 300px));
  }
}

@media (max-width: 759px) {
  .espnow-detail-sheet {
    width: min(100%, calc(100vw - 20px));
  }

  .module-page-nav {
    padding: 0 6px;
  }

  .module-page-nav-btn {
    min-width: 124px;
    padding: 16px 16px 14px;
  }

  .module-page-status-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .module-page-entry-grid {
    grid-template-columns: 1fr;
  }

  .pump-service-home-shell {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .pump-service-home-menu {
    gap: 14px;
  }

  .pump-service-home-button {
    min-height: 76px;
    font-size: 22px;
  }

  .pump-service-home-status {
    min-height: 0;
  }

  .pump-service-manual-card,
.pump-service-manual-sheet {
    min-height: 0;
    padding: 20px;
  }

  .pump-service-manual-row {
    grid-template-columns: 56px minmax(0, 1fr) 64px;
    font-size: 20px;
  }

  .pump-service-manual-head h2,
.pump-service-manual-overlay-head h3 {
    font-size: 26px;
  }

  .module-page-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .module-page-form-grid.is-tight {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .module-page-status-strip .espnow-status-cell {
    border-right: 0;
    border-bottom: 1px solid rgba(118, 161, 196, 0.12);
  }

  .module-page-status-strip .espnow-status-cell:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .module-page-action-grid {
    grid-template-columns: 1fr;
  }

  .pump-plan-mode-grid,
  .pump-plan-subtabs,
  .pump-plan-summary-metrics {
    grid-template-columns: 1fr;
  }

  .pump-plan-preview-chart {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .espnow-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .espnow-detail-grid.flow-layout,
  .espnow-flow-target-grid,
  .espnow-flow-cal-confirm-grid {
    grid-template-columns: 1fr;
  }

  .pump-cal-layout,
  .pump-cal-input-grid,
  .pump-cal-action-grid {
    grid-template-columns: 1fr;
  }

  .pump-cal-step-head {
    flex-direction: column;
    align-items: stretch;
  }

  .actions.espnow-discovery-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .estop-fab {
    width: 64px;
    height: 64px;
  }

  .banner {
    align-items: center;
    flex-wrap: nowrap;
    padding-left: 14px;
    padding-right: 14px;
  }

  .banner-text {
    padding: 0 64px;
  }

  .banner-alert {
    right: 14px;
  }

  .switch-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .device-head {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .toggle-btn,
  .status-chip {
    align-self: flex-start;
  }

  .device-item-head {
    flex-direction: column;
    align-items: stretch;
  }

  .trim-row {
    grid-template-columns: minmax(0, 1fr) 116px;
  }

  .trim-row-label {
    grid-column: 1 / -1;
  }

  .trim-row input {
    grid-column: 1;
  }

  .trim-row .btn {
    grid-column: 2;
  }

  .cal-setting-row,
  .pair,
  .triple,
  .alarm-settings-grid,
  .page7-actions,
  .alarm-actions,
  .calibration-launches,
  .salt-page6-grid,
  .apex-chart-grid,
  .inline-pair,
  .apex-slot-grid,
  .apex-config-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .apex-top-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  }

  .event-log-toolbar-main,
  .event-log-filter-head {
    flex-direction: column;
  }

  .event-log-toolbar-actions {
    width: 100%;
    justify-content: stretch;
  }

  .event-log-toolbar-actions .btn {
    flex: 1 1 calc(33.333% - 8px);
  }

  .event-log-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cal-setting-row .btn,
  .page7-actions .btn:last-child,
  .alarm-actions .btn:last-child {
    grid-column: 1 / -1;
  }

  .days {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .trim-row .btn,
  .trim-row input,
  .cal-setting-row .btn {
    justify-self: stretch;
  }

  .salt-page6-grid .field input {
    width: 100%;
  }

  .content {
    padding-bottom: 188px;
  }

  .tabbar {
    bottom: max(14px, calc(env(safe-area-inset-bottom) + 48px));
  }
}

@media (max-width: 420px) {
  .module-page-status-strip {
    grid-template-columns: 1fr;
  }

  .module-page-entry-grid {
    grid-template-columns: 1fr;
  }

  .pump-service-home-button {
    min-height: 66px;
    font-size: 20px;
  }

  .pump-service-home-status-title {
    font-size: 22px;
  }

  .pump-service-home-status-copy {
    font-size: 15px;
  }

  .pump-service-home-status-list > div {
    align-items: flex-start;
    flex-direction: column;
  }

  .pump-service-home-status-list strong {
    text-align: left;
  }

  .module-page-form-grid,
  .module-page-form-grid.is-tight,
  .pump-wizard-step-grid {
    grid-template-columns: 1fr;
  }

  .module-page-status-strip .espnow-status-cell {
    border-bottom: 1px solid rgba(118, 161, 196, 0.12);
  }

  .module-page-status-strip .espnow-status-cell:last-child {
    border-bottom: 0;
  }

  .pump-plan-preview-chart {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .espnow-detail-grid,
  .espnow-flow-target-grid,
  .espnow-flow-cal-confirm-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    padding-left: 14px;
    padding-right: 14px;
  }

  .topbar .title {
    padding-top: 62px;
    font-size: 24px;
  }

  .content {
    padding-left: 14px;
    padding-right: 14px;
  }

  .card,
  .sheet {
    padding: 16px;
    border-radius: 24px;
  }

  .tabbar {
    width: calc(100vw - 14px);
    gap: 6px;
    padding: 8px;
  }

  .tab-btn {
    font-size: 12px;
    padding-left: 2px;
    padding-right: 2px;
  }

  .days {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .trim-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .trim-row-label,
  .trim-row input,
  .trim-row .btn {
    grid-column: 1;
  }

  .summary-grid,
  .quick-grid,
  .actions {
    gap: 10px;
  }

  .summary-card,
  .quick-card {
    padding: 14px;
    border-radius: 20px;
  }

  .quick-card {
    min-height: 104px;
  }

  .toggle-btn {
    min-width: 120px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .event-log-filter-grid {
    grid-template-columns: 1fr;
  }

  .event-log-list-wrap {
    max-height: min(58vh, 480px);
  }

  .switch-row {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body[data-theme] {
  --bg: var(--theme-body-bg);
  --bg-soft: var(--theme-panel-bg);
  --card: var(--theme-panel-bg);
  --card-soft: var(--theme-device-bg, var(--theme-panel-bg));
  --line: var(--theme-panel-border);
  --line-strong: var(--theme-border-strong);
  --text: var(--theme-text);
  --muted: var(--theme-muted);
  --accent: var(--theme-accent);
  --accent-2: var(--theme-accent-2);
  --accent-soft: var(--theme-accent-soft);
  --good: var(--theme-good);
  --warn: var(--theme-warn);
  --warn-soft: var(--theme-warn-soft);
  --pill: var(--theme-chip-bg);
  --shadow: var(--theme-panel-shadow);
  --shadow-soft: var(--theme-button-shadow);
  font-family:
    var(--theme-body-font, "Avenir Next"), var(--theme-body-font-fallback, "SF Pro Display"),
    "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--theme-body-bg);
  color: var(--theme-text);
  transition:
    background 0.28s ease,
    color 0.28s ease;
}

body[data-theme]::before {
  background: var(--theme-body-overlay);
  opacity: var(--theme-body-overlay-opacity, 1);
}

body[data-theme]::after {
  content: "";
  position: fixed;
  inset: auto auto -120px -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: var(--theme-body-glow);
  filter: blur(var(--theme-body-glow-blur, 20px));
  opacity: var(--theme-body-glow-opacity, 1);
  pointer-events: none;
  z-index: 0;
}

body[data-theme] .app {
  position: relative;
  z-index: 1;
}

body[data-theme] .topbar {
  min-height: 0;
  padding: 0 18px;
  background: transparent;
  backdrop-filter: none;
}

body[data-theme] .topbar-shell {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 88px;
  padding: 20px 22px;
  border-radius: 30px;
  background: var(--theme-shell-bg);
  border: 1px solid var(--theme-shell-border);
  box-shadow: var(--theme-shell-shadow);
  backdrop-filter: var(--theme-shell-filter, blur(26px));
}

body[data-theme] .topbar-copy {
  min-width: 0;
}

body[data-theme] .topbar-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--theme-eyebrow);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

body[data-theme] .topbar .title {
  display: block;
  padding: 0;
  color: var(--theme-title);
  font-family: var(--theme-heading-font, inherit);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 750;
  line-height: 1.02;
  letter-spacing: var(--theme-heading-tracking, -0.03em);
}

body[data-theme] .topbar .title::before {
  content: none;
}

body[data-theme] .topbar-note {
  margin: 8px 0 0;
  max-width: 32rem;
  color: var(--theme-note);
  font-size: 14px;
  line-height: 1.55;
}

body[data-theme] .banner {
  top: calc(env(safe-area-inset-top, 0px) + 22px);
  background: var(--theme-banner-bg);
  border: 1px solid var(--theme-banner-border);
  color: var(--theme-banner-text);
  box-shadow: var(--theme-banner-shadow);
  backdrop-filter: var(--theme-banner-filter, blur(28px));
}

body[data-theme] .banner-text {
  padding: 0 52px;
}

body[data-theme] .banner-alert {
  background: var(--theme-banner-alert-bg);
  border-color: var(--theme-banner-alert-border);
  color: var(--theme-banner-alert-text);
}

body[data-theme] .banner.error,
body[data-theme] .offline-banner {
  background: var(--theme-warning-bg);
  border-color: var(--theme-warning-border);
  color: var(--theme-warning-text);
}

body[data-theme] .content {
  width: min(100%, 1180px);
  padding: 10px 18px 132px;
  gap: 24px;
}

body[data-theme] .view {
  gap: 20px;
}

body[data-theme] .view > :first-child {
  padding: 2px 2px 0;
}

body[data-theme] .hero-intro {
  display: block;
}

body[data-theme] .hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: min(760px, 100%);
  padding: 4px 0 10px;
}

body[data-theme] .hero-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--theme-kicker-bg);
  border: 1px solid var(--theme-kicker-border);
  color: var(--theme-kicker-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-theme] .hero-panel {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 28px;
  background: var(--theme-hero-panel-bg);
  border: 1px solid var(--theme-hero-panel-border);
  box-shadow: var(--theme-hero-panel-shadow);
  backdrop-filter: var(--theme-hero-panel-filter, blur(24px));
}

body[data-theme] .hero-stat {
  padding: 14px 16px;
  border-radius: 22px;
  background: var(--theme-hero-stat-bg);
  border: 1px solid var(--theme-hero-stat-border);
}

body[data-theme] .hero-stat span {
  display: block;
  margin-bottom: 6px;
  color: var(--theme-note);
  font-size: 12px;
  letter-spacing: 0.04em;
}

body[data-theme] .hero-stat strong {
  display: block;
  color: var(--theme-title);
  font-size: 15px;
  line-height: 1.45;
}

body[data-theme] .section-title,
body[data-theme] .card h2,
body[data-theme] .sheet-head h3,
body[data-theme] .device-name,
body[data-theme] .summary-value,
body[data-theme] .quick-card strong,
body[data-theme] .metric-row strong,
body[data-theme] .theme-toolbar-copy strong,
body[data-theme] .theme-option strong {
  color: var(--theme-title);
  font-family: var(--theme-heading-font, inherit);
}

body[data-theme] .section-title {
  letter-spacing: var(--theme-heading-tracking, -0.03em);
}

body[data-theme] .view > :first-child .section-title::after {
  width: 11px;
  height: 11px;
  background: linear-gradient(
    135deg,
    var(--theme-accent-2),
    var(--theme-accent)
  );
  box-shadow: 0 0 0 10px var(--theme-accent-soft);
}

body[data-theme] .section-note,
body[data-theme] .helper,
body[data-theme] .summary-label,
body[data-theme] .switch-meta span,
body[data-theme] .field label,
body[data-theme] .quick-card span,
body[data-theme] .summary-sub,
body[data-theme] .home-detail-line,
body[data-theme] .home-card-inline + .home-card-inline::before,
body[data-theme] .metric-row span,
body[data-theme] .espnow-module-card span,
body[data-theme] .espnow-module-meta span,
body[data-theme] .espnow-module-card-side,
body[data-theme] .event-log-time,
body[data-theme] .event-log-meta-line,
body[data-theme] pre,
body[data-theme] .theme-option-desc,
body[data-theme] .theme-toolbar-copy span {
  color: var(--theme-muted);
}

body[data-theme] .days label,
body[data-theme] .days label.active {
  color: #ffffff;
  text-shadow: none;
}

body[data-theme] .card,
body[data-theme] .sheet,
body[data-theme] .summary-card,
body[data-theme] .quick-card,
body[data-theme] .espnow-status-bar,
body[data-theme] .switch-row,
body[data-theme] .trim-panel,
body[data-theme] .event-log-filter-pop,
body[data-theme] .event-log-item,
body[data-theme] .event-log-empty,
body[data-theme] details.debug,
body[data-theme] .status-box {
  background: var(--theme-panel-bg);
  border: 1px solid var(--theme-panel-border);
  color: var(--theme-text);
  box-shadow: var(--theme-panel-shadow);
  backdrop-filter: var(--theme-panel-filter, blur(22px));
}

body[data-theme] .card,
body[data-theme] .sheet {
  border-radius: 30px;
}

body[data-theme] .card::before,
body[data-theme] .sheet::before {
  background: linear-gradient(
    90deg,
    var(--theme-panel-highlight),
    transparent 72%
  );
}

body[data-theme] .device-card {
  background: var(--theme-device-bg);
  border-color: var(--theme-device-border);
  box-shadow: var(--theme-device-shadow);
}

body[data-theme] .summary-card,
body[data-theme] .quick-card,
body[data-theme] .espnow-module-card {
  border-radius: 24px;
  background: var(--theme-panel-bg);
  border-color: var(--theme-panel-border);
  box-shadow: var(--theme-panel-shadow);
}

body[data-theme] .espnow-status-title,
body[data-theme] .espnow-status-cell span:last-child {
  color: var(--theme-muted);
}

body[data-theme] .espnow-status-cell strong {
  color: var(--theme-title);
}

body[data-theme] .summary-value {
  letter-spacing: -0.02em;
}

body[data-theme] .home-card-inline {
  color: var(--theme-accent);
}

body[data-theme] .tappable-card:hover,
body[data-theme] .quick-card:hover {
  background: var(--theme-panel-hover-bg);
  border-color: var(--theme-border-strong);
  box-shadow: var(--theme-hover-shadow);
}

body[data-theme] .theme-option:hover,
body[data-theme] .espnow-module-card:hover {
  transform: translateY(-4px);
  background: var(--theme-panel-hover-bg);
  border-color: var(--theme-border-strong);
  box-shadow: var(--theme-hover-shadow);
}

body[data-theme] .tappable-card:active,
body[data-theme] .quick-card:active {
  transform: none;
}

body[data-theme] .theme-option:active,
body[data-theme] .espnow-module-card:active {
  transform: translateY(-1px);
}

body[data-theme] .status-chip {
  background: var(--theme-chip-bg);
  border: 1px solid var(--theme-chip-border);
  color: var(--theme-chip-text);
  box-shadow: inset 0 1px 0 var(--theme-panel-highlight);
}

body[data-theme] .status-chip.online {
  color: var(--theme-good);
  background: var(--theme-good-soft);
  border-color: var(--theme-good-border);
}

body[data-theme] .status-chip.offline {
  color: var(--theme-warn);
  background: var(--theme-warn-soft);
  border-color: var(--theme-warning-border);
}

body[data-theme] .status-chip.ghost {
  color: #ffe2a3;
  background: rgba(189, 146, 34, 0.18);
  border-color: rgba(214, 176, 77, 0.34);
}

body[data-theme] .btn,
body[data-theme] .icon-btn,
body[data-theme] .toggle-btn {
  min-height: 54px;
  border: 1px solid var(--theme-button-border);
  background: var(--theme-button-bg);
  color: var(--theme-button-text);
  box-shadow: var(--theme-button-shadow);
}

body[data-theme] .btn:hover,
body[data-theme] .icon-btn:hover,
body[data-theme] .toggle-btn:hover {
  box-shadow: var(--theme-button-hover-shadow);
}

body[data-theme] .btn.primary,
body[data-theme] .btn.confirm-action,
body[data-theme] .toggle-btn.active {
  background: var(--theme-primary-bg);
  border-color: var(--theme-primary-border);
  color: var(--theme-primary-text);
}

body[data-theme] .btn.ghost {
  background: var(--theme-ghost-bg);
  border-color: var(--theme-ghost-border);
  color: var(--theme-ghost-text);
}

body[data-theme] .btn.warn,
body[data-theme] .btn.cancel-action {
  background: var(--theme-warn-bg);
  border-color: var(--theme-warn-border);
  color: var(--theme-primary-text);
}

body[data-theme] .toggle-btn.inactive {
  background: var(--theme-button-bg);
  color: var(--theme-button-text);
  border-color: var(--theme-button-border);
}

body[data-theme] .espnow-entry-toggle.active .toggle-label,
body[data-theme] .espnow-entry-toggle.active .toggle-hint {
  color: #f7fbff;
  opacity: 1;
  text-shadow: 0 1px 2px rgba(8, 16, 28, 0.18);
}

body[data-theme] .espnow-entry-toggle.inactive .toggle-label {
  color: var(--theme-button-text);
}

body[data-theme] .espnow-entry-toggle.inactive .toggle-hint {
  color: var(--theme-muted, var(--theme-button-text));
  opacity: 0.9;
}

body[data-theme] .field input,
body[data-theme] .field select,
body[data-theme] .trim-row input,
body[data-theme] .espnow-inline-grid input,
body[data-theme] .espnow-flow-target-grid input,
body[data-theme] .espnow-flow-cal-confirm-grid input {
  background: var(--theme-input-bg);
  border: 1px solid var(--theme-input-border);
  color: var(--theme-input-text);
  box-shadow: inset 0 1px 2px var(--theme-input-shadow);
}

body[data-theme] .readonly {
  background: var(--theme-readonly-bg);
  color: var(--theme-readonly-text);
}

body[data-theme] button:focus-visible,
body[data-theme] input:focus-visible,
body[data-theme] select:focus-visible,
body[data-theme] textarea:focus-visible {
  box-shadow:
    0 0 0 3px var(--theme-accent-soft),
    0 12px 28px rgba(10, 132, 255, 0.12);
  border-color: var(--theme-accent);
}

body[data-theme] .event-log-toolbar {
  background: var(--theme-toolbar-bg);
}

body[data-theme] .event-log-filter-chip {
  background: var(--theme-filter-chip-bg);
  border-color: var(--theme-filter-chip-border);
  color: var(--theme-button-text);
}

body[data-theme] .event-log-filter-chip.active {
  background: var(--theme-filter-chip-active-bg);
  border-color: var(--theme-filter-chip-active-border);
  color: var(--theme-filter-chip-active-text);
}

body[data-theme] .event-log-title,
body[data-theme] .status-main,
body[data-theme] .espnow-module-card strong,
body[data-theme] .espnow-module-meta strong,
body[data-theme] .espnow-module-card-metric {
  color: var(--theme-title);
}

body[data-theme] .event-log-summary,
body[data-theme] .status-sub,
body[data-theme] .espnow-module-card-telemetry {
  color: var(--theme-subtle-strong);
}

body[data-theme] .event-log-meta-line.subtle {
  color: var(--theme-accent);
}

body[data-theme] .event-log-badge {
  border-color: var(--theme-filter-chip-border);
}

body[data-theme] .event-log-badge.system,
body[data-theme] .event-log-badge.exchange {
  background: var(--theme-accent-soft);
  color: var(--theme-accent);
}

body[data-theme] .event-log-badge.makeup,
body[data-theme] .chip.good {
  background: var(--theme-good-soft);
  border-color: var(--theme-good-border);
  color: var(--theme-good);
}

body[data-theme] .event-log-badge.alarm,
body[data-theme] .chip.warn,
body[data-theme] .alarm-popup-reason {
  background: var(--theme-warn-soft);
  border-color: var(--theme-warning-border);
  color: var(--theme-warn);
}

body[data-theme] .event-log-badge.salt {
  background: var(--theme-salt-soft);
  color: var(--theme-salt-text);
}

body[data-theme] .event-log-badge.calibration {
  background: var(--theme-cal-soft);
  color: var(--theme-cal-text);
}

body[data-theme] .event-log-badge.neutral,
body[data-theme] .chip {
  background: var(--theme-chip-bg);
  border-color: var(--theme-chip-border);
  color: var(--theme-chip-text);
}

body[data-theme] .tabbar {
  background: var(--theme-tabbar-bg);
  border: 1px solid var(--theme-tabbar-border);
  box-shadow: var(--theme-tabbar-shadow);
  backdrop-filter: var(--theme-tabbar-filter, blur(28px));
}

body[data-theme] .tab-btn {
  color: var(--theme-tab-text);
  border-radius: 18px;
}

body[data-theme] .tab-btn:hover {
  color: var(--theme-title);
}

body[data-theme] .tab-btn.active {
  color: var(--theme-tab-active-text);
  background: var(--theme-tab-active-bg);
  box-shadow: inset 0 1px 0 var(--theme-panel-highlight);
}

body[data-theme] .tab-icon {
  width: 8px;
  height: 8px;
  box-shadow: 0 0 0 6px var(--theme-accent-soft);
}

body[data-theme] .overlay {
  background: var(--theme-overlay-bg);
  backdrop-filter: blur(18px);
}

body[data-theme] .global-alarm-overlay,
body[data-theme] .tap-note-overlay {
  background: var(--theme-overlay-strong-bg);
}

body[data-theme] .icon-btn,
body[data-theme] details.debug summary,
body[data-theme] .manual-split-value,
body[data-theme] .metric-row > :last-child {
  color: var(--theme-button-text);
}

body[data-theme] .progress-track {
  background: var(--theme-progress-track);
  border-color: var(--theme-input-border);
}

body[data-theme="pumpapex"] .manual-split-copy strong,
body[data-theme="pumpapex"] .manual-split-value {
  color: #2f3338 !important;
  -webkit-text-fill-color: #2f3338 !important;
}

body[data-theme] .apex-chart,
body[data-theme] .apex-chart-empty {
  background: var(--theme-chart-bg);
  box-shadow: inset 0 0 0 1px var(--theme-input-border);
}

body[data-theme] .theme-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

body[data-theme] .theme-toolbar-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body[data-theme] .theme-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body[data-theme] .theme-option {
  width: 100%;
  min-height: 176px;
  padding: 16px;
  border-radius: 24px;
  border: 1px solid var(--theme-panel-border);
  background: var(--theme-option-bg);
  color: var(--theme-title);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--theme-panel-shadow);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

body[data-theme] .theme-option.active {
  background: var(--theme-option-active-bg);
  border-color: var(--theme-accent);
  box-shadow:
    0 0 0 1px var(--theme-accent),
    var(--theme-hover-shadow);
}

body[data-theme] .theme-option-tag {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--theme-kicker-bg);
  border: 1px solid var(--theme-kicker-border);
  color: var(--theme-kicker-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-theme] .theme-option strong {
  font-size: 20px;
  line-height: 1.15;
}

body[data-theme] .theme-option-desc {
  line-height: 1.55;
}

body[data-theme] .theme-swatch {
  margin-top: auto;
  display: block;
  height: 58px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.theme-swatch-classic {
  background:
    radial-gradient(circle at 18% 20%, rgba(90, 167, 255, 0.26), transparent 22%),
    linear-gradient(135deg, #08131f 0%, #102338 54%, #17324a 100%);
}

.theme-swatch-apple {
  background:
    radial-gradient(circle at 20% 22%, rgba(255, 255, 255, 0.8), transparent 20%),
    linear-gradient(135deg, #f8fafc 0%, #eef2f8 56%, #dde6f5 100%);
}

.theme-swatch-retro {
  background:
    radial-gradient(circle at 20% 22%, rgba(134, 239, 172, 0.2), transparent 22%),
    linear-gradient(135deg, #07100b 0%, #0b1811 54%, #102319 100%);
}

.theme-swatch-editorial {
  background:
    linear-gradient(135deg, #f7f1e7 0%, #efe5d6 52%, #e3d5c3 100%);
}

body[data-theme="classic"] {
  --theme-text: #f2f8ff;
  --theme-title: #f2f8ff;
  --theme-muted: #92a9bf;
  --theme-note: #9bb0c5;
  --theme-eyebrow: #9bb5cf;
  --theme-accent: #35d3c2;
  --theme-accent-2: #5aa7ff;
  --theme-accent-soft: rgba(53, 211, 194, 0.12);
  --theme-good: #31cf7a;
  --theme-good-soft: rgba(49, 207, 122, 0.12);
  --theme-good-border: rgba(49, 207, 122, 0.2);
  --theme-warn: #ff6e59;
  --theme-warn-soft: rgba(255, 110, 89, 0.12);
  --theme-warning-bg: rgba(48, 18, 18, 0.86);
  --theme-warning-border: rgba(255, 110, 89, 0.28);
  --theme-warning-text: #ffb9b2;
  --theme-salt-soft: rgba(255, 196, 92, 0.12);
  --theme-salt-text: #ffe7a6;
  --theme-cal-soft: rgba(156, 170, 255, 0.12);
  --theme-cal-text: #dde2ff;
  --theme-body-bg: linear-gradient(
    180deg,
    #06101a 0%,
    #081421 28%,
    #091726 62%,
    #08131f 100%
  );
  --theme-body-overlay:
    radial-gradient(circle at 12% 18%, rgba(90, 167, 255, 0.12), transparent 26%),
    radial-gradient(circle at 88% 16%, rgba(53, 211, 194, 0.08), transparent 24%),
    radial-gradient(circle at 14% 82%, rgba(90, 167, 255, 0.08), transparent 28%),
    radial-gradient(circle at 86% 84%, rgba(53, 211, 194, 0.07), transparent 26%);
  --theme-body-glow: radial-gradient(circle, rgba(90, 167, 255, 0.12), transparent 70%);
  --theme-topbar-bg: linear-gradient(
    180deg,
    rgba(6, 12, 20, 0.78),
    rgba(6, 12, 20, 0.16)
  );
  --theme-shell-bg: rgba(8, 18, 30, 0.72);
  --theme-shell-border: rgba(118, 161, 196, 0.16);
  --theme-shell-shadow: 0 20px 55px rgba(0, 0, 0, 0.26);
  --theme-shell-filter: blur(24px);
  --theme-banner-bg: rgba(16, 32, 48, 0.88);
  --theme-banner-border: rgba(53, 211, 194, 0.22);
  --theme-banner-text: #b9fff1;
  --theme-banner-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
  --theme-banner-alert-bg: rgba(240, 77, 61, 0.18);
  --theme-banner-alert-border: rgba(255, 110, 89, 0.32);
  --theme-banner-alert-text: #ffd0ca;
  --theme-kicker-bg: rgba(22, 45, 69, 0.74);
  --theme-kicker-border: rgba(118, 161, 196, 0.16);
  --theme-kicker-text: #cae2f6;
  --theme-hero-panel-bg: rgba(15, 30, 45, 0.76);
  --theme-hero-panel-border: rgba(118, 161, 196, 0.16);
  --theme-hero-panel-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  --theme-hero-stat-bg: rgba(20, 34, 51, 0.72);
  --theme-hero-stat-border: rgba(118, 161, 196, 0.14);
  --theme-panel-bg: linear-gradient(
    180deg,
    rgba(17, 30, 45, 0.9),
    rgba(14, 24, 38, 0.92)
  );
  --theme-panel-border: rgba(118, 161, 196, 0.18);
  --theme-border-strong: rgba(90, 167, 255, 0.28);
  --theme-panel-shadow: 0 14px 38px rgba(0, 0, 0, 0.22);
  --theme-panel-highlight: rgba(255, 255, 255, 0.12);
  --theme-panel-hover-bg: linear-gradient(
    180deg,
    rgba(29, 47, 68, 0.98),
    rgba(18, 32, 47, 0.98)
  );
  --theme-hover-shadow: 0 18px 36px rgba(5, 11, 18, 0.22);
  --theme-device-bg:
    radial-gradient(circle at top right, rgba(90, 167, 255, 0.24), transparent 26%),
    radial-gradient(circle at bottom left, rgba(53, 211, 194, 0.14), transparent 30%),
    linear-gradient(
      180deg,
      rgba(17, 30, 46, 0.96) 0%,
      rgba(12, 24, 38, 0.98) 100%
    );
  --theme-device-border: rgba(113, 172, 220, 0.2);
  --theme-device-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
  --theme-chip-bg: rgba(90, 167, 255, 0.12);
  --theme-chip-border: rgba(90, 167, 255, 0.24);
  --theme-chip-text: #c8e2ff;
  --theme-button-bg: linear-gradient(
    180deg,
    rgba(38, 63, 92, 0.96) 0%,
    rgba(30, 51, 75, 0.96) 100%
  );
  --theme-button-border: rgba(90, 167, 255, 0.18);
  --theme-button-text: #f2f8ff;
  --theme-button-shadow: 0 10px 24px rgba(7, 15, 24, 0.16);
  --theme-button-hover-shadow: 0 14px 30px rgba(7, 15, 24, 0.18);
  --theme-primary-bg: linear-gradient(90deg, #5aa7ff 0%, #35d3c2 100%);
  --theme-primary-border: transparent;
  --theme-primary-text: #ffffff;
  --theme-ghost-bg: rgba(90, 167, 255, 0.1);
  --theme-ghost-border: rgba(90, 167, 255, 0.24);
  --theme-ghost-text: #c8defe;
  --theme-warn-bg: linear-gradient(135deg, #ff8369 0%, #ff6e59 100%);
  --theme-warn-border: rgba(255, 110, 89, 0.18);
  --theme-input-bg: rgba(9, 18, 29, 0.82);
  --theme-input-border: rgba(118, 161, 196, 0.18);
  --theme-input-text: #f2f8ff;
  --theme-input-shadow: rgba(0, 0, 0, 0.18);
  --theme-readonly-bg: rgba(22, 39, 60, 0.86);
  --theme-readonly-text: #dbe7f3;
  --theme-toolbar-bg: linear-gradient(
    180deg,
    rgba(16, 29, 43, 0.98) 0%,
    rgba(16, 29, 43, 0.94) 72%,
    rgba(16, 29, 43, 0) 100%
  );
  --theme-filter-chip-bg: rgba(12, 21, 33, 0.76);
  --theme-filter-chip-border: rgba(118, 161, 196, 0.16);
  --theme-filter-chip-active-bg: rgba(53, 211, 194, 0.14);
  --theme-filter-chip-active-border: rgba(53, 211, 194, 0.28);
  --theme-filter-chip-active-text: #d9fff7;
  --theme-tabbar-bg: rgba(8, 16, 25, 0.84);
  --theme-tabbar-border: rgba(118, 161, 196, 0.16);
  --theme-tabbar-shadow: 0 22px 44px rgba(0, 0, 0, 0.3);
  --theme-tab-text: #9eb2c9;
  --theme-tab-active-bg: rgba(53, 211, 194, 0.1);
  --theme-tab-active-text: #35d3c2;
  --theme-overlay-bg: rgba(4, 9, 14, 0.74);
  --theme-overlay-strong-bg: rgba(5, 11, 17, 0.68);
  --theme-progress-track: rgba(8, 18, 28, 0.88);
  --theme-chart-bg: rgba(27, 45, 67, 0.92);
  --theme-subtle-strong: #bfd3e7;
  --theme-option-bg: rgba(15, 29, 42, 0.78);
  --theme-option-active-bg: rgba(20, 38, 56, 0.92);
}

body[data-theme="apple"] {
  --theme-text: #0f172a;
  --theme-title: #111827;
  --theme-muted: #64748b;
  --theme-note: #6b7280;
  --theme-eyebrow: #5b6b81;
  --theme-accent: #0a84ff;
  --theme-accent-2: #68b6ff;
  --theme-accent-soft: rgba(10, 132, 255, 0.12);
  --theme-good: #34c759;
  --theme-good-soft: rgba(52, 199, 89, 0.12);
  --theme-good-border: rgba(52, 199, 89, 0.16);
  --theme-warn: #ff453a;
  --theme-warn-soft: rgba(255, 69, 58, 0.12);
  --theme-warning-bg: rgba(255, 239, 237, 0.84);
  --theme-warning-border: rgba(255, 69, 58, 0.2);
  --theme-warning-text: #b42318;
  --theme-salt-soft: rgba(245, 158, 11, 0.14);
  --theme-salt-text: #b45309;
  --theme-cal-soft: rgba(99, 102, 241, 0.1);
  --theme-cal-text: #4f46e5;
  --theme-body-bg:
    radial-gradient(circle at top left, rgba(134, 196, 255, 0.34), transparent 26%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.92), transparent 34%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f8 46%, #e8edf5 100%);
  --theme-body-overlay:
    radial-gradient(circle at 12% 16%, rgba(255, 255, 255, 0.9), transparent 18%),
    radial-gradient(circle at 84% 10%, rgba(10, 132, 255, 0.12), transparent 22%),
    radial-gradient(circle at 16% 82%, rgba(103, 232, 249, 0.16), transparent 22%),
    radial-gradient(circle at 88% 78%, rgba(59, 130, 246, 0.14), transparent 24%);
  --theme-body-glow: radial-gradient(circle, rgba(10, 132, 255, 0.1), transparent 70%);
  --theme-topbar-bg: linear-gradient(
    180deg,
    rgba(248, 250, 252, 0.88) 0%,
    rgba(248, 250, 252, 0.64) 64%,
    rgba(248, 250, 252, 0) 100%
  );
  --theme-shell-bg: rgba(255, 255, 255, 0.6);
  --theme-shell-border: rgba(255, 255, 255, 0.66);
  --theme-shell-shadow: 0 20px 55px rgba(148, 163, 184, 0.18);
  --theme-shell-filter: blur(30px) saturate(150%);
  --theme-banner-bg: rgba(255, 255, 255, 0.72);
  --theme-banner-border: rgba(255, 255, 255, 0.82);
  --theme-banner-text: #1d4f91;
  --theme-banner-shadow: 0 18px 50px rgba(148, 163, 184, 0.22);
  --theme-banner-alert-bg: rgba(255, 69, 58, 0.12);
  --theme-banner-alert-border: rgba(255, 69, 58, 0.18);
  --theme-banner-alert-text: #b42318;
  --theme-kicker-bg: rgba(255, 255, 255, 0.66);
  --theme-kicker-border: rgba(255, 255, 255, 0.78);
  --theme-kicker-text: #4b6788;
  --theme-hero-panel-bg:
    linear-gradient(140deg, rgba(255, 255, 255, 0.86), rgba(238, 244, 255, 0.7));
  --theme-hero-panel-border: rgba(255, 255, 255, 0.74);
  --theme-hero-panel-shadow: 0 18px 48px rgba(148, 163, 184, 0.18);
  --theme-hero-stat-bg: rgba(255, 255, 255, 0.7);
  --theme-hero-stat-border: rgba(148, 163, 184, 0.12);
  --theme-panel-bg: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.84),
    rgba(245, 247, 252, 0.78)
  );
  --theme-panel-border: rgba(255, 255, 255, 0.74);
  --theme-border-strong: rgba(190, 220, 255, 0.96);
  --theme-panel-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 18px 44px rgba(148, 163, 184, 0.16);
  --theme-panel-highlight: rgba(255, 255, 255, 0.86);
  --theme-panel-hover-bg: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.92),
    rgba(240, 245, 255, 0.86)
  );
  --theme-hover-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 24px 54px rgba(148, 163, 184, 0.18);
  --theme-device-bg:
    radial-gradient(circle at top right, rgba(104, 182, 255, 0.18), transparent 24%),
    radial-gradient(circle at bottom left, rgba(125, 211, 252, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(243, 247, 255, 0.8));
  --theme-device-border: rgba(255, 255, 255, 0.82);
  --theme-device-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 28px 70px rgba(148, 163, 184, 0.2);
  --theme-chip-bg: rgba(255, 255, 255, 0.72);
  --theme-chip-border: rgba(10, 132, 255, 0.12);
  --theme-chip-text: #0a84ff;
  --theme-button-bg: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.94),
    rgba(240, 244, 250, 0.88)
  );
  --theme-button-border: rgba(255, 255, 255, 0.84);
  --theme-button-text: #0f172a;
  --theme-button-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 10px 24px rgba(148, 163, 184, 0.12);
  --theme-button-hover-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 16px 34px rgba(148, 163, 184, 0.16);
  --theme-primary-bg: linear-gradient(135deg, #1990ff 0%, #66bbff 100%);
  --theme-primary-border: rgba(10, 132, 255, 0.12);
  --theme-primary-text: #ffffff;
  --theme-ghost-bg: rgba(255, 255, 255, 0.64);
  --theme-ghost-border: rgba(148, 163, 184, 0.16);
  --theme-ghost-text: #1d4f91;
  --theme-warn-bg: linear-gradient(135deg, #ff6a5d 0%, #ff453a 100%);
  --theme-warn-border: rgba(255, 69, 58, 0.16);
  --theme-input-bg: rgba(255, 255, 255, 0.72);
  --theme-input-border: rgba(148, 163, 184, 0.18);
  --theme-input-text: #0f172a;
  --theme-input-shadow: rgba(148, 163, 184, 0.08);
  --theme-readonly-bg: rgba(239, 244, 251, 0.86);
  --theme-readonly-text: #334155;
  --theme-toolbar-bg: linear-gradient(
    180deg,
    rgba(247, 249, 252, 0.96) 0%,
    rgba(247, 249, 252, 0.78) 72%,
    rgba(247, 249, 252, 0) 100%
  );
  --theme-filter-chip-bg: rgba(255, 255, 255, 0.72);
  --theme-filter-chip-border: rgba(148, 163, 184, 0.16);
  --theme-filter-chip-active-bg: rgba(10, 132, 255, 0.1);
  --theme-filter-chip-active-border: rgba(10, 132, 255, 0.18);
  --theme-filter-chip-active-text: #0a84ff;
  --theme-tabbar-bg: rgba(255, 255, 255, 0.62);
  --theme-tabbar-border: rgba(255, 255, 255, 0.8);
  --theme-tabbar-shadow: 0 20px 50px rgba(148, 163, 184, 0.22);
  --theme-tab-text: #64748b;
  --theme-tab-active-bg: rgba(10, 132, 255, 0.1);
  --theme-tab-active-text: #0a84ff;
  --theme-overlay-bg: rgba(226, 232, 240, 0.44);
  --theme-overlay-strong-bg: rgba(226, 232, 240, 0.54);
  --theme-progress-track: rgba(226, 232, 240, 0.8);
  --theme-chart-bg: rgba(255, 255, 255, 0.72);
  --theme-subtle-strong: #5f6f86;
  --theme-option-bg: rgba(255, 255, 255, 0.78);
  --theme-option-active-bg: rgba(239, 246, 255, 0.92);
}

body[data-theme="editorial"] {
  --theme-body-font: "Avenir Next";
  --theme-heading-font: Georgia, "Times New Roman", "Songti SC", serif;
  --theme-heading-tracking: -0.02em;
  --theme-text: #2b2119;
  --theme-title: #231912;
  --theme-muted: #7d6a5d;
  --theme-note: #866f60;
  --theme-eyebrow: #7b2435;
  --theme-accent: #7b2435;
  --theme-accent-2: #b45309;
  --theme-accent-soft: rgba(123, 36, 53, 0.1);
  --theme-good: #3f6b48;
  --theme-good-soft: rgba(63, 107, 72, 0.1);
  --theme-good-border: rgba(63, 107, 72, 0.14);
  --theme-warn: #b42318;
  --theme-warn-soft: rgba(180, 35, 24, 0.08);
  --theme-warning-bg: rgba(255, 241, 238, 0.86);
  --theme-warning-border: rgba(180, 35, 24, 0.12);
  --theme-warning-text: #9f1b12;
  --theme-salt-soft: rgba(180, 83, 9, 0.12);
  --theme-salt-text: #9a5310;
  --theme-cal-soft: rgba(123, 36, 53, 0.08);
  --theme-cal-text: #7b2435;
  --theme-body-bg: linear-gradient(180deg, #f7f1e7 0%, #efe4d4 54%, #e5d7c5 100%);
  --theme-body-overlay:
    linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0)),
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.3), transparent 20%);
  --theme-body-glow: radial-gradient(circle, rgba(123, 36, 53, 0.06), transparent 70%);
  --theme-topbar-bg: linear-gradient(
    180deg,
    rgba(247, 241, 231, 0.9) 0%,
    rgba(247, 241, 231, 0.66) 68%,
    rgba(247, 241, 231, 0) 100%
  );
  --theme-shell-bg: rgba(255, 250, 243, 0.7);
  --theme-shell-border: rgba(35, 25, 18, 0.08);
  --theme-shell-shadow: 0 16px 36px rgba(92, 67, 50, 0.08);
  --theme-shell-filter: blur(18px);
  --theme-banner-bg: rgba(255, 250, 243, 0.88);
  --theme-banner-border: rgba(35, 25, 18, 0.08);
  --theme-banner-text: #6b1f2f;
  --theme-banner-shadow: 0 14px 30px rgba(92, 67, 50, 0.08);
  --theme-banner-alert-bg: rgba(123, 36, 53, 0.08);
  --theme-banner-alert-border: rgba(123, 36, 53, 0.12);
  --theme-banner-alert-text: #7b2435;
  --theme-kicker-bg: rgba(123, 36, 53, 0.06);
  --theme-kicker-border: rgba(123, 36, 53, 0.12);
  --theme-kicker-text: #7b2435;
  --theme-hero-panel-bg: rgba(255, 249, 240, 0.78);
  --theme-hero-panel-border: rgba(35, 25, 18, 0.08);
  --theme-hero-panel-shadow: 0 16px 32px rgba(92, 67, 50, 0.08);
  --theme-hero-stat-bg: rgba(255, 252, 247, 0.92);
  --theme-hero-stat-border: rgba(35, 25, 18, 0.06);
  --theme-panel-bg: linear-gradient(180deg, rgba(255, 250, 243, 0.82), rgba(248, 240, 228, 0.86));
  --theme-panel-border: rgba(35, 25, 18, 0.08);
  --theme-border-strong: rgba(123, 36, 53, 0.18);
  --theme-panel-shadow: 0 12px 26px rgba(92, 67, 50, 0.08);
  --theme-panel-highlight: rgba(255, 255, 255, 0.8);
  --theme-panel-hover-bg: linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(247, 239, 227, 0.92));
  --theme-hover-shadow: 0 16px 32px rgba(92, 67, 50, 0.1);
  --theme-device-bg:
    radial-gradient(circle at top right, rgba(123, 36, 53, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.92), rgba(247, 239, 227, 0.9));
  --theme-device-border: rgba(35, 25, 18, 0.08);
  --theme-device-shadow: 0 18px 40px rgba(92, 67, 50, 0.1);
  --theme-chip-bg: rgba(123, 36, 53, 0.06);
  --theme-chip-border: rgba(123, 36, 53, 0.1);
  --theme-chip-text: #7b2435;
  --theme-button-bg: linear-gradient(180deg, rgba(255, 253, 249, 0.96), rgba(246, 238, 226, 0.94));
  --theme-button-border: rgba(35, 25, 18, 0.08);
  --theme-button-text: #2b2119;
  --theme-button-shadow: 0 8px 18px rgba(92, 67, 50, 0.06);
  --theme-button-hover-shadow: 0 12px 22px rgba(92, 67, 50, 0.08);
  --theme-primary-bg: linear-gradient(135deg, #7b2435 0%, #b45309 100%);
  --theme-primary-border: rgba(123, 36, 53, 0.14);
  --theme-primary-text: #ffffff;
  --theme-ghost-bg: rgba(123, 36, 53, 0.04);
  --theme-ghost-border: rgba(123, 36, 53, 0.08);
  --theme-ghost-text: #7b2435;
  --theme-warn-bg: linear-gradient(135deg, #c13f35 0%, #b42318 100%);
  --theme-warn-border: rgba(180, 35, 24, 0.12);
  --theme-input-bg: rgba(255, 253, 249, 0.94);
  --theme-input-border: rgba(35, 25, 18, 0.08);
  --theme-input-text: #2b2119;
  --theme-input-shadow: rgba(92, 67, 50, 0.04);
  --theme-readonly-bg: rgba(244, 234, 220, 0.92);
  --theme-readonly-text: #5a4638;
  --theme-toolbar-bg: linear-gradient(
    180deg,
    rgba(250, 245, 238, 0.96) 0%,
    rgba(250, 245, 238, 0.82) 72%,
    rgba(250, 245, 238, 0) 100%
  );
  --theme-filter-chip-bg: rgba(255, 252, 247, 0.94);
  --theme-filter-chip-border: rgba(35, 25, 18, 0.08);
  --theme-filter-chip-active-bg: rgba(123, 36, 53, 0.08);
  --theme-filter-chip-active-border: rgba(123, 36, 53, 0.14);
  --theme-filter-chip-active-text: #7b2435;
  --theme-tabbar-bg: rgba(255, 248, 240, 0.84);
  --theme-tabbar-border: rgba(35, 25, 18, 0.08);
  --theme-tabbar-shadow: 0 16px 32px rgba(92, 67, 50, 0.12);
  --theme-tab-text: #866f60;
  --theme-tab-active-bg: rgba(123, 36, 53, 0.08);
  --theme-tab-active-text: #7b2435;
  --theme-overlay-bg: rgba(230, 220, 207, 0.56);
  --theme-overlay-strong-bg: rgba(230, 220, 207, 0.72);
  --theme-progress-track: rgba(230, 220, 207, 0.9);
  --theme-chart-bg: rgba(255, 252, 247, 0.9);
  --theme-subtle-strong: #6c594d;
  --theme-option-bg: rgba(255, 250, 243, 0.9);
  --theme-option-active-bg: rgba(255, 245, 236, 0.98);
}

body[data-theme="retro"] {
  --theme-body-font: "SF Mono", "Menlo", "Consolas", monospace;
  --theme-heading-font: "SF Mono", "Menlo", "Consolas", monospace;
  --theme-heading-tracking: -0.01em;
  --theme-text: #c9ffd8;
  --theme-title: #e8ffe9;
  --theme-muted: #7ab58a;
  --theme-note: #88c999;
  --theme-eyebrow: #8fff93;
  --theme-accent: #7dff6c;
  --theme-accent-2: #d6ff5c;
  --theme-accent-soft: rgba(125, 255, 108, 0.12);
  --theme-good: #8fff93;
  --theme-good-soft: rgba(143, 255, 147, 0.1);
  --theme-good-border: rgba(143, 255, 147, 0.16);
  --theme-warn: #ffb347;
  --theme-warn-soft: rgba(255, 179, 71, 0.1);
  --theme-warning-bg: rgba(46, 28, 8, 0.9);
  --theme-warning-border: rgba(255, 179, 71, 0.18);
  --theme-warning-text: #ffd48a;
  --theme-salt-soft: rgba(255, 179, 71, 0.12);
  --theme-salt-text: #ffd48a;
  --theme-cal-soft: rgba(125, 255, 108, 0.08);
  --theme-cal-text: #aaff97;
  --theme-body-bg:
    radial-gradient(circle at 15% 18%, rgba(125, 255, 108, 0.08), transparent 18%),
    linear-gradient(180deg, #07100b 0%, #0a140d 46%, #0b120d 100%);
  --theme-body-overlay:
    linear-gradient(90deg, rgba(125, 255, 108, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(125, 255, 108, 0.03) 1px, transparent 1px);
  --theme-body-overlay-opacity: 0.26;
  --theme-body-glow: radial-gradient(circle, rgba(125, 255, 108, 0.12), transparent 70%);
  --theme-topbar-bg: linear-gradient(
    180deg,
    rgba(5, 10, 7, 0.9) 0%,
    rgba(5, 10, 7, 0.42) 68%,
    rgba(5, 10, 7, 0) 100%
  );
  --theme-shell-bg: rgba(8, 16, 11, 0.78);
  --theme-shell-border: rgba(125, 255, 108, 0.1);
  --theme-shell-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  --theme-shell-filter: blur(18px);
  --theme-banner-bg: rgba(9, 19, 12, 0.9);
  --theme-banner-border: rgba(125, 255, 108, 0.12);
  --theme-banner-text: #b8ffb0;
  --theme-banner-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
  --theme-banner-alert-bg: rgba(255, 179, 71, 0.14);
  --theme-banner-alert-border: rgba(255, 179, 71, 0.18);
  --theme-banner-alert-text: #ffd48a;
  --theme-kicker-bg: rgba(125, 255, 108, 0.06);
  --theme-kicker-border: rgba(125, 255, 108, 0.12);
  --theme-kicker-text: #8fff93;
  --theme-hero-panel-bg: rgba(9, 18, 12, 0.84);
  --theme-hero-panel-border: rgba(125, 255, 108, 0.1);
  --theme-hero-panel-shadow: 0 16px 34px rgba(0, 0, 0, 0.26);
  --theme-hero-stat-bg: rgba(10, 22, 14, 0.88);
  --theme-hero-stat-border: rgba(125, 255, 108, 0.08);
  --theme-panel-bg: linear-gradient(180deg, rgba(10, 18, 12, 0.9), rgba(8, 14, 10, 0.94));
  --theme-panel-border: rgba(125, 255, 108, 0.1);
  --theme-border-strong: rgba(125, 255, 108, 0.2);
  --theme-panel-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
  --theme-panel-highlight: rgba(125, 255, 108, 0.1);
  --theme-panel-hover-bg: linear-gradient(180deg, rgba(12, 24, 15, 0.96), rgba(9, 16, 12, 0.96));
  --theme-hover-shadow:
    0 0 0 1px rgba(125, 255, 108, 0.1),
    0 16px 30px rgba(0, 0, 0, 0.28);
  --theme-device-bg:
    radial-gradient(circle at top right, rgba(125, 255, 108, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(12, 24, 15, 0.94), rgba(8, 14, 10, 0.98));
  --theme-device-border: rgba(125, 255, 108, 0.12);
  --theme-device-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
  --theme-chip-bg: rgba(125, 255, 108, 0.08);
  --theme-chip-border: rgba(125, 255, 108, 0.12);
  --theme-chip-text: #aaff97;
  --theme-button-bg: linear-gradient(180deg, rgba(12, 24, 15, 0.96), rgba(9, 18, 12, 0.96));
  --theme-button-border: rgba(125, 255, 108, 0.12);
  --theme-button-text: #d7ffd0;
  --theme-button-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
  --theme-button-hover-shadow: 0 10px 22px rgba(0, 0, 0, 0.26);
  --theme-primary-bg: linear-gradient(135deg, #5fd152 0%, #bfff6c 100%);
  --theme-primary-border: rgba(125, 255, 108, 0.14);
  --theme-primary-text: #08110b;
  --theme-ghost-bg: rgba(125, 255, 108, 0.05);
  --theme-ghost-border: rgba(125, 255, 108, 0.1);
  --theme-ghost-text: #aaff97;
  --theme-warn-bg: linear-gradient(135deg, #f5a548 0%, #ffb347 100%);
  --theme-warn-border: rgba(255, 179, 71, 0.16);
  --theme-input-bg: rgba(7, 15, 9, 0.92);
  --theme-input-border: rgba(125, 255, 108, 0.1);
  --theme-input-text: #e8ffe9;
  --theme-input-shadow: rgba(0, 0, 0, 0.2);
  --theme-readonly-bg: rgba(13, 24, 16, 0.92);
  --theme-readonly-text: #a7d2a4;
  --theme-toolbar-bg: linear-gradient(
    180deg,
    rgba(9, 18, 12, 0.96) 0%,
    rgba(9, 18, 12, 0.82) 72%,
    rgba(9, 18, 12, 0) 100%
  );
  --theme-filter-chip-bg: rgba(10, 19, 12, 0.92);
  --theme-filter-chip-border: rgba(125, 255, 108, 0.1);
  --theme-filter-chip-active-bg: rgba(125, 255, 108, 0.1);
  --theme-filter-chip-active-border: rgba(125, 255, 108, 0.16);
  --theme-filter-chip-active-text: #caffbc;
  --theme-tabbar-bg: rgba(8, 14, 10, 0.9);
  --theme-tabbar-border: rgba(125, 255, 108, 0.1);
  --theme-tabbar-shadow: 0 16px 30px rgba(0, 0, 0, 0.3);
  --theme-tab-text: #7ab58a;
  --theme-tab-active-bg: rgba(125, 255, 108, 0.1);
  --theme-tab-active-text: #caffbc;
  --theme-overlay-bg: rgba(4, 8, 5, 0.72);
  --theme-overlay-strong-bg: rgba(4, 8, 5, 0.82);
  --theme-progress-track: rgba(10, 19, 12, 0.96);
  --theme-chart-bg: rgba(11, 20, 13, 0.94);
  --theme-subtle-strong: #9bc59c;
  --theme-option-bg: rgba(9, 18, 11, 0.9);
  --theme-option-active-bg: rgba(12, 24, 15, 0.98);
}

@media (min-width: 1100px) {
  body[data-theme] .app {
    grid-template-columns: 236px minmax(0, 1fr);
    column-gap: 30px;
    padding: 22px 22px 28px;
  }

  body[data-theme] .topbar {
    padding: 0;
    background: transparent;
    backdrop-filter: none;
  }

  body[data-theme] .topbar-shell {
    min-height: 104px;
  }

  body[data-theme] .content {
    padding: 0 8px 12px 0;
  }

  body[data-theme] .tabbar {
    top: 22px;
    width: 160px;
    margin-top: 160px;
    justify-self: start;
    padding: 16px;
    border-radius: 34px;
  }

  body[data-theme] .tab-btn {
    min-height: 56px;
    justify-content: center;
    text-align: center;
    gap: 12px;
    padding: 0 16px;
    font-size: 14px;
  }

  body[data-theme] .theme-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body[data-theme] .sheet {
    width: min(900px, calc(100vw - 320px));
  }
}

@media (max-width: 759px) {
  body[data-theme] .topbar {
    padding: 0;
  }

  body[data-theme] .topbar-shell {
    min-height: auto;
    padding: 18px;
    border-radius: 26px;
  }

  body[data-theme] .banner {
    top: calc(env(safe-area-inset-top, 0px) + 18px);
  }

  body[data-theme] .banner-text {
    padding: 0 48px;
  }

  body[data-theme] .theme-toolbar {
    flex-direction: column;
  }

  body[data-theme] .theme-grid {
    grid-template-columns: 1fr 1fr;
  }

  body[data-theme] .content {
    padding-bottom: 194px;
  }

  body[data-theme] .tabbar {
    width: min(calc(100vw - 24px), 760px);
    bottom: max(14px, calc(env(safe-area-inset-bottom) + 18px));
  }
}

@media (max-width: 420px) {
  body[data-theme] .topbar-shell {
    padding: 16px;
  }

  body[data-theme] .topbar .title {
    font-size: 28px;
  }

  body[data-theme] .topbar-note {
    font-size: 13px;
  }

  body[data-theme] .banner-text {
    padding: 0 42px;
  }

  body[data-theme] .hero-panel {
    padding: 14px;
  }

  body[data-theme] .hero-stat {
    padding: 13px 14px;
  }

  body[data-theme] .theme-grid {
    grid-template-columns: 1fr;
  }
}

.pump-service-normal-plan-block-tools {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: -8px 0 16px;
  flex-wrap: wrap;
}

.pump-service-normal-plan-block-tools[hidden],
.pump-service-normal-plan-blocks[hidden] {
  display: none !important;
}

.pump-service-normal-plan-blocks {
  display: grid;
  gap: 10px;
  max-width: 620px;
  margin: 0 auto 18px;
  padding: 14px;
  border: 1px solid rgba(118, 161, 196, 0.14);
  border-radius: 18px;
  background: rgba(9, 18, 29, 0.42);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.pump-service-normal-plan-block {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(30, 136, 229, 0.08);
  border: 1px solid rgba(30, 136, 229, 0.18);
}

.pump-service-normal-plan-block strong {
  color: var(--text);
  font-size: 15px;
}

.pump-service-normal-plan-block span {
  min-width: 0;
  color: var(--muted);
  font-size: 14px;
}

.warn-text {
  color: #ffb77a !important;
}

.pump-service-record-row.is-plan {
  border-left: 3px solid rgba(103, 177, 255, 0.72);
  padding-left: 12px;
}

.pump-service-record-row.is-manual {
  border-left: 3px solid rgba(126, 219, 212, 0.72);
  padding-left: 12px;
}

.pump-service-record-row.is-apex {
  border-left: 3px solid rgba(174, 134, 255, 0.74);
  padding-left: 12px;
}

.pump-service-record-row.is-calibration {
  border-left: 3px solid rgba(118, 230, 155, 0.72);
  padding-left: 12px;
}

.pump-service-record-row.is-warn,
.pump-service-record-row.is-fault {
  border-left: 3px solid rgba(255, 111, 111, 0.8);
  padding-left: 12px;
}

.pump-service-record-meta span.is-plan {
  background: rgba(103, 177, 255, 0.16);
  color: #bfe0ff;
}

.pump-service-record-meta span.is-manual {
  background: rgba(126, 219, 212, 0.16);
  color: #c7fff9;
}

.pump-service-record-meta span.is-apex {
  background: rgba(174, 134, 255, 0.18);
  color: #ded0ff;
}

.pump-service-record-meta span.is-calibration {
  background: rgba(118, 230, 155, 0.16);
  color: #cef8d8;
}

.pump-service-record-meta span.is-warn,
.pump-service-record-meta span.is-fault {
  background: rgba(255, 111, 111, 0.18);
  color: #ffd1d1;
}

.pump-plan-bar-slot--record.is-manual .pump-plan-bar-value {
  background: linear-gradient(180deg, rgba(126, 219, 212, 0.98), rgba(45, 190, 177, 0.94));
}

.pump-plan-bar-slot--record.is-plan .pump-plan-bar-value {
  background: linear-gradient(180deg, rgba(103, 177, 255, 0.98), rgba(63, 136, 236, 0.94));
}

.pump-plan-bar-slot--record.is-apex .pump-plan-bar-value {
  background: linear-gradient(180deg, rgba(174, 134, 255, 0.98), rgba(131, 91, 234, 0.94));
}

.pump-plan-bar-slot--record.is-calibration .pump-plan-bar-value {
  background: linear-gradient(180deg, rgba(118, 230, 155, 0.98), rgba(64, 196, 112, 0.94));
}

.pump-plan-bar-slot--record.is-warn .pump-plan-bar-value,
.pump-plan-bar-slot--record.is-fault .pump-plan-bar-value {
  background: linear-gradient(180deg, rgba(255, 135, 135, 0.98), rgba(255, 89, 89, 0.94));
}

.pump-service-unified-timeline {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.pump-service-unified-track {
  position: relative;
  min-height: 186px;
  border: 1px solid rgba(118, 161, 196, 0.16);
  border-radius: 20px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 25%),
    rgba(5, 13, 22, 0.62);
  overflow: hidden;
}

.pump-service-unified-task {
  position: absolute;
  top: 22px;
  min-height: 76px;
  padding: 10px 12px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(103, 177, 255, 0.18);
  color: var(--text);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 5px;
}

.pump-service-unified-task strong,
.pump-service-unified-task span {
  display: block;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pump-service-unified-task strong {
  font-size: 13px;
  font-weight: 900;
}

.pump-service-unified-task span {
  color: rgba(229, 240, 255, 0.82);
  font-size: 11px;
  line-height: 1.35;
}

.pump-service-unified-task.is-plan,
.pump-service-unified-legend span.is-plan {
  background: rgba(103, 177, 255, 0.2);
  border-color: rgba(103, 177, 255, 0.34);
}

.pump-service-unified-task.is-continuous,
.pump-service-unified-legend span.is-continuous {
  background: rgba(126, 219, 212, 0.18);
  border-color: rgba(126, 219, 212, 0.34);
}

.pump-service-unified-task.is-apex,
.pump-service-unified-legend span.is-apex {
  background: rgba(174, 134, 255, 0.2);
  border-color: rgba(174, 134, 255, 0.36);
}

.pump-service-unified-marker {
  position: absolute;
  bottom: 42px;
  width: 10px;
  height: 34px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #ffbd5d;
  box-shadow: 0 0 0 4px rgba(255, 189, 93, 0.1);
}

.pump-service-unified-marker.is-plan { background: #67b1ff; box-shadow: 0 0 0 4px rgba(103, 177, 255, 0.12); }
.pump-service-unified-marker.is-continuous { background: #7edbd4; box-shadow: 0 0 0 4px rgba(126, 219, 212, 0.12); }
.pump-service-unified-marker.is-apex { background: #ae86ff; box-shadow: 0 0 0 4px rgba(174, 134, 255, 0.12); }
.pump-service-unified-marker.is-manual { background: #7edbd4; box-shadow: 0 0 0 4px rgba(126, 219, 212, 0.12); }
.pump-service-unified-marker.is-warn { background: #ff6f6f; box-shadow: 0 0 0 4px rgba(255, 111, 111, 0.14); }

.pump-service-unified-hours {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  height: 22px;
}

.pump-service-unified-hours span {
  position: absolute;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.pump-service-unified-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
}

.pump-service-unified-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}

.pump-service-unified-legend span,
.pump-service-unified-legend em {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(118, 161, 196, 0.14);
  color: var(--text);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.pump-service-unified-legend span.is-manual {
  background: rgba(126, 219, 212, 0.16);
  border-color: rgba(126, 219, 212, 0.32);
}

.pump-service-unified-legend span.is-warn {
  background: rgba(255, 111, 111, 0.16);
  border-color: rgba(255, 111, 111, 0.32);
}

.pump-service-unified-legend em {
  color: var(--muted);
  font-weight: 700;
}


.pump-service-task-table-panel {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(118, 161, 196, 0.14);
  border-radius: 18px;
  background: rgba(5, 13, 22, 0.44);
}

.pump-service-task-table-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.pump-service-task-table-head strong,
.pump-service-task-table-head span {
  display: block;
}

.pump-service-task-table-head strong {
  font-size: 14px;
  font-weight: 900;
}

.pump-service-task-table-head span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.pump-service-task-table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pump-service-task-table-list {
  display: grid;
  gap: 8px;
}

.pump-service-task-table-row,
.pump-service-task-table-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 56px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.pump-service-task-table-empty {
  justify-content: center;
  color: var(--muted);
  text-align: center;
}

.pump-service-task-table-row strong,
.pump-service-task-table-row span {
  display: block;
}

.pump-service-task-table-row strong {
  font-size: 13px;
  font-weight: 900;
}

.pump-service-task-table-row span {
  margin-top: 4px;
  color: rgba(229, 240, 255, 0.72);
  font-size: 11px;
}

.pump-service-task-table-row em {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.pump-service-task-table-row.is-running em {
  background: rgba(126, 219, 212, 0.16);
  color: #bffcf7;
}

.pump-service-task-table-row.is-done em {
  background: rgba(111, 220, 155, 0.16);
  color: #c5ffd9;
}

.pump-service-task-table-row.is-deferred em {
  background: rgba(103, 177, 255, 0.16);
  color: #cde7ff;
}

.pump-service-task-table-row.is-skipped em,
.pump-service-task-table-row.is-clipped em {
  background: rgba(255, 189, 93, 0.16);
  color: #ffe1ad;
}

.pump-service-task-table-row.is-cancelled em,
.pump-service-task-table-row.is-protection em {
  background: rgba(255, 111, 111, 0.16);
  color: #ffcaca;
}

.pump-service-normal-plan-block.is-selected {
  border-color: rgba(126, 219, 212, 0.48);
  background: rgba(126, 219, 212, 0.12);
  box-shadow: 0 0 0 1px rgba(126, 219, 212, 0.08);
}

.pump-service-normal-plan-block-main {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 0;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  cursor: pointer;
}

.pump-service-normal-plan-block-main:hover strong {
  color: #c7fff9;
}

.pump-service-unified-task {
  appearance: none;
  text-align: left;
  cursor: default;
}

button.pump-service-unified-task {
  cursor: pointer;
}

button.pump-service-unified-task:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.pump-service-normal-plan-block-main {
  grid-column: 1 / 3;
}

.pump-plan-stack {
  position: relative;
  z-index: 1;
  width: 72%;
  min-height: 6px;
  display: flex;
  flex-direction: column-reverse;
  overflow: hidden;
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(64, 170, 255, 0.18);
}

.pump-plan-stack-segment {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  min-height: 4px;
  box-sizing: border-box;
}

.pump-plan-stack-segment.is-normal_plan,
.pump-plan-record-legend span.is-normal_plan b {
  background: linear-gradient(180deg, #67b1ff, #3f88ec);
}

.pump-plan-stack-segment.is-normal_continuous,
.pump-plan-record-legend span.is-normal_continuous b {
  background: linear-gradient(180deg, #7edbd4, #2dbeb1);
}

.pump-plan-stack-segment.is-apex_plan,
.pump-plan-record-legend span.is-apex_plan b {
  background: linear-gradient(180deg, #ae86ff, #835bea);
}

.pump-plan-stack-segment.is-apex_continuous,
.pump-plan-record-legend span.is-apex_continuous b {
  background: linear-gradient(180deg, #ffbd5d, #ff8b3d);
}

.pump-plan-stack-segment.is-manual,
.pump-plan-record-legend span.is-manual b {
  background: linear-gradient(180deg, #76e69b, #40c470);
}

.pump-plan-stack-segment.is-button,
.pump-plan-record-legend span.is-button b {
  background: linear-gradient(180deg, #ff87c8, #e84b9b);
}

.pump-plan-record-legend {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin-top: 6px;
}

.pump-plan-record-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(118, 161, 196, 0.14);
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.pump-plan-record-legend span em {
  font-style: normal;
  color: rgba(214, 228, 245, 0.66);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.pump-plan-record-legend b {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  color: #06101c;
  font-size: 11px;
  font-weight: 1000;
}

.pump-service-home-record-chart {
  margin: 20px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(118, 161, 196, 0.1);
}

.pump-service-home-record-chart .pump-plan-preview-chart {
  min-height: 210px;
  margin-top: 0;
}

.pump-service-home-record-chart .pump-plan-record-legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
  margin-top: 14px;
}

.pump-service-home-record-chart .pump-plan-record-legend span {
  justify-content: center;
  min-width: 0;
}

.pump-service-home-record-chart .pump-plan-bar-slot {
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
}

.pump-service-home-record-chart .pump-plan-bar-slot > span {
  display: none;
}

.pump-service-home-status-copy--compact {
  gap: 12px;
  font-size: 16px;
}

.pump-plan-bar-slot--bipolar .pump-plan-bar-track {
  align-items: stretch;
}

.pump-plan-bar-slot--bipolar .pump-plan-bar-track::before {
  inset: 4px 14% 4px;
  border-radius: 16px;
}

.pump-plan-bipolar-track {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 150px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  justify-items: center;
}

.pump-plan-bipolar-half {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.pump-plan-bipolar-half.is-positive {
  align-items: flex-end;
  padding-bottom: 1px;
}

.pump-plan-bipolar-half.is-negative {
  align-items: flex-start;
  padding-top: 1px;
}

.pump-plan-zero-axis {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: rgba(229, 240, 255, 0.32);
  box-shadow: 0 0 0 1px rgba(7, 15, 24, 0.42);
}

.pump-plan-stack.is-positive {
  border-radius: 999px;
}

.pump-plan-stack.is-negative {
  flex-direction: column;
  border-radius: 999px;
  box-shadow: 0 -14px 30px rgba(64, 170, 255, 0.14);
}

.pump-plan-record-chart-shell {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
  width: 100%;
}

.pump-plan-record-chart-shell--dual-axis {
  grid-template-columns: 54px minmax(0, 1fr) 64px;
}

.pump-plan-record-axis {
  min-height: 182px;
  position: relative;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  padding: 2px 2px 26px 0;
}

.pump-plan-record-axis--speed {
  padding: 2px 0 26px 2px;
}

.pump-plan-record-axis .zero {
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.pump-plan-record-axis--speed .zero {
  left: 2px;
  right: auto;
}

.pump-plan-record-axis .max {
  position: absolute;
  right: 2px;
  top: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: var(--text);
  font-weight: 1000;
  white-space: nowrap;
}

.pump-plan-record-axis--speed .max {
  left: 2px;
  right: auto;
}

.pump-plan-record-axis .max b {
  font-size: 13px;
}

.pump-plan-record-axis .max em {
  font-style: normal;
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.pump-plan-record-bars {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  align-items: end;
  gap: 6px;
  min-width: 0;
  box-sizing: border-box;
  padding-right: 14px;
}

.pump-plan-bar-slot--dual .pump-plan-bar-track {
  min-width: 0;
}

.pump-plan-bar-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  width: min(100%, var(--pump-plan-fixed-hour-pair-width, 8px));
  min-width: 0;
  justify-self: center;
}

.pump-plan-bar-pair .pump-plan-bar-track::before {
  inset: 4px 4% 4px;
}

.pump-plan-bar-track.is-dose-bar .pump-plan-stack {
  width: 72%;
}

.pump-plan-bar-track.is-speed-bar .pump-plan-stack {
  width: 72%;
}

.pump-plan-bar-slot--has-speed .pump-plan-bar-track.is-speed-bar::before {
  display: none;
}

.pump-plan-bar-slot--has-speed .pump-plan-bar-track.is-speed-bar .pump-plan-stack {
  width: 72%;
  min-width: 11px;
}


/* Fixed hour bucket: every time slot is always two half-columns: dose-left + speed-right. */
.pump-plan-bar-slot--dual .pump-plan-bar-track {
  padding: 0;
}

.pump-plan-bar-slot--dual .pump-plan-stack {
  width: 100%;
  min-width: 0;
  max-width: none;
}

.pump-plan-bar-slot--dual .pump-plan-bar-track.is-dose-bar .pump-plan-stack,
.pump-plan-bar-slot--dual .pump-plan-bar-track.is-speed-bar .pump-plan-stack,
.pump-plan-bar-slot--dual.pump-plan-bar-slot--has-speed .pump-plan-bar-track.is-speed-bar .pump-plan-stack {
  width: 100%;
  min-width: 0;
  max-width: none;
}

.pump-plan-bar-slot--mixed-axis .pump-plan-bar-pair,
.pump-plan-bar-slot--speed-only .pump-plan-bar-pair,
.pump-plan-bar-slot--dose-only .pump-plan-bar-pair,
.pump-plan-bar-slot.is-empty .pump-plan-bar-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
}

.pump-plan-bar-slot--mixed-axis .pump-plan-stack,
.pump-plan-bar-slot--speed-only .pump-plan-stack,
.pump-plan-bar-slot--dose-only .pump-plan-stack {
  box-shadow: none;
}

.pump-plan-bar-slot--speed-only .pump-plan-bar-pair {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
}

.pump-plan-bar-slot--speed-only .pump-plan-bar-track.is-dose-bar {
  opacity: 0;
  pointer-events: none;
}

.pump-plan-bar-slot--speed-only .pump-plan-stack--overlay .pump-plan-stack-segment {
  opacity: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.pump-service-home-record-chart .pump-plan-bar-slot--speed-only .pump-plan-bar-pair {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.pump-plan-stack--overlay {
  position: relative;
  display: block;
}

.pump-plan-stack--overlay .pump-plan-stack-segment {
  position: absolute;
  left: 0;
  right: 0;
  min-height: 5px;
  border-radius: 0;
  opacity: 0.9;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.pump-plan-stack--overlay.is-positive .pump-plan-stack-segment {
  bottom: 0;
}

.pump-plan-stack--overlay.is-positive .pump-plan-stack-segment:last-child {
  border-radius: 18px 18px 0 0;
}

.pump-plan-stack--overlay.is-negative .pump-plan-stack-segment {
  top: 0;
}

.pump-plan-stack--overlay.is-negative .pump-plan-stack-segment:last-child {
  border-radius: 0 0 18px 18px;
}

.pump-plan-stack.is-speed-stack {
  box-shadow: 0 14px 26px rgba(255, 139, 61, 0.14);
}

.pump-plan-preview-chart--records {
  grid-template-columns: 1fr;
}


/* 服务型蠕动泵校准弹页：按当前产品要求收起说明文案，只保留曲线本体。 */
#overlay-pump-service-calibration .pump-service-calibration-status,
#overlay-pump-service-calibration .pump-service-calibration-chart-wrap > .summary-label,
#overlay-pump-service-calibration .pump-service-calibration-chart-wrap > .section-note {
  display: none !important;
}

#overlay-pump-service-calibration .pump-service-calibration-chart-wrap {
  margin-top: 22px;
  margin-bottom: 28px;
}

/* 服务型蠕动泵子页面文字体系收敛：对齐换水页的中等字号、紧凑卡片风格。 */
.pump-service-settings-head h2,
.pump-service-calibration-head h2,
.pump-service-time-head h2,
.pump-service-time-head h3 {
  font-size: clamp(28px, 3.2vw, 38px) !important;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.pump-service-normal-plan-head h3,
.pump-service-plan-home-head h3,
.pump-service-normal-continuous-head h3,
.pump-service-apex-plan-head h3,
.pump-service-apex-continuous-head h3 {
  font-size: clamp(24px, 2.8vw, 32px) !important;
  font-weight: 820;
  letter-spacing: 0.05em;
}

.pump-service-settings-button,
.pump-service-calibration-wide-button,
.pump-service-time-button,
.pump-service-plan-home-button,
.pump-service-normal-plan-action,
.pump-service-normal-continuous-action,
.pump-service-apex-plan-action,
.pump-service-apex-continuous-action {
  font-size: clamp(18px, 2.1vw, 24px) !important;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.pump-service-settings-button {
  min-height: 82px;
}

.pump-service-calibration-wide-button,
.pump-service-time-button {
  min-height: 60px;
}

.pump-service-calibration-row,
.pump-service-time-status span,
.pump-service-protection-row span,
.pump-service-normal-plan-row,
.pump-service-normal-continuous-row,
.pump-service-apex-plan-row,
.pump-service-apex-continuous-row,
.pump-service-apex-continuous-current {
  font-size: clamp(16px, 1.9vw, 22px) !important;
  font-weight: 760;
}

.pump-service-calibration-row input,
.pump-service-calibration-row select,
.pump-service-protection-row input,
.pump-service-time-status strong,
.pump-service-normal-plan-row input,
.pump-service-normal-plan-row select,
.pump-service-normal-continuous-row input,
.pump-service-normal-continuous-row select,
.pump-service-apex-plan-row input,
.pump-service-apex-plan-row select,
.pump-service-apex-continuous-row input,
.pump-service-apex-continuous-row select,
.pump-service-apex-continuous-current strong {
  font-size: clamp(18px, 2.1vw, 24px) !important;
  font-weight: 800;
}

.pump-service-calibration-row input,
.pump-service-calibration-row select {
  min-height: 56px;
  border-radius: 16px;
}

.pump-service-normal-plan-row input,
.pump-service-normal-plan-row select,
.pump-service-normal-continuous-row input,
.pump-service-normal-continuous-row select,
.pump-service-apex-plan-row input,
.pump-service-apex-plan-row select,
.pump-service-apex-continuous-row input,
.pump-service-apex-continuous-row select,
.pump-service-protection-row input {
  min-height: 48px;
}

.pump-service-calibration-row em,
.pump-service-protection-row em,
.pump-service-normal-plan-row em,
.pump-service-normal-continuous-row em,
.pump-service-apex-plan-row em,
.pump-service-apex-continuous-row em {
  font-size: 15px !important;
  font-weight: 760;
}

.pump-service-settings-status,
.pump-service-time-note,
.pump-service-normal-plan-status p,
.pump-service-plan-home-status p,
.pump-service-normal-continuous-status p,
.pump-service-apex-plan-status p,
.pump-service-apex-continuous-status p,
.pump-service-record-summary-grid span,
.pump-service-record-reason,
.pump-service-record-source,
.pump-service-record-main span,
.pump-service-record-meta span {
  font-size: 14px !important;
  line-height: 1.65;
}

.pump-service-normal-plan-status div,
.pump-service-plan-home-status div,
.pump-service-normal-continuous-status div,
.pump-service-apex-plan-status div,
.pump-service-apex-continuous-status div,
.pump-service-record-main strong {
  font-size: clamp(16px, 1.9vw, 22px) !important;
  font-weight: 800;
}

.pump-service-record-summary-grid strong {
  font-size: clamp(20px, 2.4vw, 28px) !important;
}

.pump-service-calibration-form,
.pump-service-time-status,
.pump-service-protection-form,
.pump-service-normal-plan-form,
.pump-service-normal-continuous-form,
.pump-service-apex-plan-form,
.pump-service-apex-continuous-form {
  gap: 14px 22px;
}

.pump-service-calibration-axis-point {
  font-size: 12px;
}

.pump-service-calibration-dot span {
  font-size: 11px;
}


/* 校准页表单：一行三列，删除额外保存按钮后只保留主操作。 */
#overlay-pump-service-calibration .pump-service-calibration-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 820px;
}

#overlay-pump-service-calibration .pump-service-calibration-row {
  position: relative;
  grid-template-columns: 1fr;
  gap: 8px;
  min-height: 116px;
  padding: 14px 16px;
  border: 1px solid rgba(118, 161, 196, 0.16);
  border-radius: 18px;
  background: rgba(12, 26, 41, 0.64);
}

#overlay-pump-service-calibration .pump-service-calibration-row--actual {
  grid-column: auto;
}

#overlay-pump-service-calibration .pump-service-calibration-row span {
  text-align: left;
  color: var(--muted);
  font-size: 14px !important;
  font-weight: 800;
}

#overlay-pump-service-calibration .pump-service-calibration-row input,
#overlay-pump-service-calibration .pump-service-calibration-row select {
  min-height: 44px;
  font-size: clamp(20px, 2.4vw, 28px) !important;
}

#overlay-pump-service-calibration .pump-service-calibration-row em {
  position: absolute;
  right: 26px;
  bottom: 28px;
  font-size: 14px !important;
}

#overlay-pump-service-calibration .pump-service-calibration-wide-button {
  grid-column: 1 / -1;
  margin-top: 6px;
}

@media (max-width: 759px) {
  #overlay-pump-service-calibration .pump-service-calibration-form {
    grid-template-columns: 1fr;
  }
  #overlay-pump-service-calibration .pump-service-calibration-row--actual {
    grid-column: 1;
  }
}

/* 弹窗统一：只调整文字大小与控件高度，不改变弹窗宽度、列宽或横向尺寸。 */
.overlay .sheet h2,
.overlay .sheet h3,
.pump-service-calibration-head h2,
.pump-service-settings-head h2,
.pump-service-time-head h2,
.pump-service-time-head h3,
.pump-service-manual-head h2,
.pump-service-manual-overlay-head h3,
.pump-service-normal-plan-head h3,
.pump-service-plan-home-head h3,
.pump-service-normal-continuous-head h3,
.pump-service-apex-plan-head h3,
.pump-service-apex-continuous-head h3 {
  font-size: clamp(22px, 2vw, 30px) !important;
  font-weight: 820 !important;
  letter-spacing: 0.03em !important;
}

.overlay .sheet label,
.overlay .sheet label span,
.overlay .sheet .summary-label,
.overlay .sheet .section-note,
.pump-service-manual-row,
.pump-service-time-status span,
.pump-service-protection-row span,
.pump-service-normal-plan-row,
.pump-service-normal-continuous-row,
.pump-service-apex-plan-row,
.pump-service-apex-continuous-row,
.pump-service-apex-continuous-current,
#overlay-pump-service-calibration .pump-service-calibration-row span {
  font-size: clamp(13px, 1.25vw, 16px) !important;
  font-weight: 760 !important;
}

.overlay .sheet input,
.overlay .sheet select,
.pump-service-time-status strong,
.pump-service-apex-continuous-current strong,
#overlay-pump-service-calibration .pump-service-calibration-row input,
#overlay-pump-service-calibration .pump-service-calibration-row select {
  min-height: 42px !important;
  font-size: clamp(16px, 1.45vw, 19px) !important;
  font-weight: 760 !important;
}

.overlay .sheet button,
.overlay .sheet .btn,
.overlay .sheet .icon-btn,
.pump-service-settings-button,
.pump-service-time-button,
.pump-service-calibration-wide-button,
.pump-service-manual-action,
.pump-service-plan-home-button,
.pump-service-normal-plan-action,
.pump-service-normal-continuous-action,
.pump-service-apex-plan-action,
.pump-service-apex-continuous-action {
  min-height: 52px !important;
  font-size: clamp(16px, 1.55vw, 20px) !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em !important;
}

.overlay .sheet em,
.pump-service-manual-row em,
.pump-service-protection-row em,
.pump-service-normal-plan-row em,
.pump-service-normal-continuous-row em,
.pump-service-apex-plan-row em,
.pump-service-apex-continuous-row em,
#overlay-pump-service-calibration .pump-service-calibration-row em {
  font-size: 12px !important;
  font-weight: 720 !important;
}

.pump-service-manual-status div,
.pump-service-normal-plan-status div,
.pump-service-plan-home-status div,
.pump-service-normal-continuous-status div,
.pump-service-apex-plan-status div,
.pump-service-apex-continuous-status div,
.pump-service-record-main strong {
  font-size: clamp(15px, 1.35vw, 18px) !important;
}

.pump-service-manual-status p,
.pump-service-settings-status,
.pump-service-time-note,
.pump-service-normal-plan-status p,
.pump-service-plan-home-status p,
.pump-service-normal-continuous-status p,
.pump-service-apex-plan-status p,
.pump-service-apex-continuous-status p,
.pump-service-record-main span,
.pump-service-record-meta span,
.pump-service-record-reason,
.pump-service-record-source {
  font-size: 13px !important;
  line-height: 1.55 !important;
}

.pump-service-calibration-dot span {
  font-size: 10px !important;
  font-weight: 780;
}

.pump-service-calibration-y-axis,
.pump-service-calibration-x-axis,
.pump-service-calibration-axis-point {
  font-size: 11px !important;
}

/* 服务型蠕动泵弹窗收敛：曲线说明文案收起；表单控件按一行三列卡片排布。 */
#overlay-pump-service-normal-plan .pump-service-normal-plan-chart > .summary-label,
#overlay-pump-service-normal-plan .pump-service-normal-plan-chart > .section-note,
#overlay-pump-service-normal-continuous .pump-service-normal-continuous-chart > .summary-label,
#overlay-pump-service-normal-continuous .pump-service-normal-continuous-chart > .section-note,
#overlay-pump-service-apex-plan .pump-service-apex-plan-chart > .summary-label,
#overlay-pump-service-apex-plan .pump-service-apex-plan-chart > .section-note,
#overlay-pump-service-apex-continuous .pump-service-apex-continuous-chart > .summary-label,
#overlay-pump-service-apex-continuous .pump-service-apex-continuous-chart > .section-note,
#overlay-pump-service-normal-plan .pump-plan-chart-empty,
#overlay-pump-service-normal-continuous .pump-plan-chart-empty,
#overlay-pump-service-apex-plan .pump-plan-chart-empty,
#overlay-pump-service-apex-continuous .pump-plan-chart-empty {
  display: none !important;
}

#overlay-pump-service-manual .pump-service-manual-form,
#overlay-pump-service-normal-plan .pump-service-normal-plan-form,
#overlay-pump-service-normal-continuous .pump-service-normal-continuous-form,
#overlay-pump-service-apex-plan .pump-service-apex-plan-form,
#overlay-pump-service-apex-continuous .pump-service-apex-continuous-form {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
  max-width: none !important;
  margin: 18px 0 18px !important;
}

#overlay-pump-service-manual .pump-service-manual-row,
#overlay-pump-service-normal-plan .pump-service-normal-plan-row,
#overlay-pump-service-normal-continuous .pump-service-normal-continuous-row,
#overlay-pump-service-apex-plan .pump-service-apex-plan-row,
#overlay-pump-service-apex-continuous .pump-service-apex-continuous-row {
  position: relative;
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  align-content: start;
  align-items: center;
  gap: 8px 10px !important;
  min-height: 100px;
  padding: 12px 14px !important;
  border: 1px solid rgba(118, 161, 196, 0.16);
  border-radius: 18px;
  background: rgba(7, 15, 24, 0.34);
}

#overlay-pump-service-manual .pump-service-manual-row > span,
#overlay-pump-service-normal-plan .pump-service-normal-plan-row > span,
#overlay-pump-service-normal-continuous .pump-service-normal-continuous-row > span,
#overlay-pump-service-apex-plan .pump-service-apex-plan-row > span,
#overlay-pump-service-apex-continuous .pump-service-apex-continuous-row > span {
  grid-column: 1 / -1 !important;
  color: var(--muted);
  text-align: left !important;
  line-height: 1.25 !important;
}

#overlay-pump-service-manual .pump-service-manual-row input,
#overlay-pump-service-manual .pump-service-manual-row select,
#overlay-pump-service-normal-plan .pump-service-normal-plan-row input,
#overlay-pump-service-normal-plan .pump-service-normal-plan-row select,
#overlay-pump-service-normal-continuous .pump-service-normal-continuous-row input,
#overlay-pump-service-normal-continuous .pump-service-normal-continuous-row select,
#overlay-pump-service-apex-plan .pump-service-apex-plan-row input,
#overlay-pump-service-apex-plan .pump-service-apex-plan-row select,
#overlay-pump-service-apex-continuous .pump-service-apex-continuous-row input,
#overlay-pump-service-apex-continuous .pump-service-apex-continuous-row select {
  grid-column: 1 / -1 !important;
  min-height: 42px !important;
  border-radius: 14px !important;
  text-align: center !important;
  text-align-last: center;
}

#overlay-pump-service-manual .pump-service-manual-row em,
#overlay-pump-service-normal-plan .pump-service-normal-plan-row em,
#overlay-pump-service-normal-continuous .pump-service-normal-continuous-row em,
#overlay-pump-service-apex-plan .pump-service-apex-plan-row em,
#overlay-pump-service-apex-continuous .pump-service-apex-continuous-row em {
  position: absolute;
  right: 18px;
  bottom: 24px;
  color: var(--muted);
  pointer-events: none;
}

#overlay-pump-service-apex-continuous .pump-service-apex-continuous-row--targets {
  grid-column: 1 / -1 !important;
  min-height: auto;
  grid-template-columns: 38px minmax(0, 1fr) 38px minmax(0, 1fr) 38px minmax(0, 1fr) !important;
}

#overlay-pump-service-apex-continuous .pump-service-apex-continuous-row--targets > span {
  grid-column: 1 / -1 !important;
}

#overlay-pump-service-apex-continuous .pump-service-apex-continuous-row--targets input {
  grid-column: auto !important;
}

#overlay-pump-service-apex-continuous .pump-service-apex-continuous-row--targets em {
  position: static;
  align-self: center;
}

#overlay-pump-service-apex-continuous .pump-service-apex-continuous-row--sources {
  grid-column: 1 / -1 !important;
  min-height: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

#overlay-pump-service-apex-continuous .pump-service-apex-continuous-row--sources > span {
  grid-column: 1 / -1 !important;
}

#overlay-pump-service-apex-continuous .pump-service-apex-source-pair {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

#overlay-pump-service-apex-continuous .pump-service-apex-source-pair em {
  position: static;
  align-self: center;
  color: var(--muted);
  pointer-events: none;
}

#overlay-pump-service-apex-continuous .pump-service-apex-source-pair select {
  grid-column: auto !important;
  width: 100%;
  min-width: 0;
}

#overlay-pump-service-apex-continuous .pump-service-apex-source-pair strong {
  align-self: center;
  white-space: nowrap;
  color: var(--text);
  font-weight: 900;
  font-size: 1.02rem;
}

@media (max-width: 980px) {
  #overlay-pump-service-manual .pump-service-manual-form,
  #overlay-pump-service-normal-plan .pump-service-normal-plan-form,
  #overlay-pump-service-normal-continuous .pump-service-normal-continuous-form,
  #overlay-pump-service-apex-plan .pump-service-apex-plan-form,
  #overlay-pump-service-apex-continuous .pump-service-apex-continuous-form {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 680px) {
  #overlay-pump-service-manual .pump-service-manual-form,
  #overlay-pump-service-normal-plan .pump-service-normal-plan-form,
  #overlay-pump-service-normal-continuous .pump-service-normal-continuous-form,
  #overlay-pump-service-apex-plan .pump-service-apex-plan-form,
  #overlay-pump-service-apex-continuous .pump-service-apex-continuous-form {
    grid-template-columns: 1fr !important;
  }
  #overlay-pump-service-apex-continuous .pump-service-apex-continuous-row--targets {
    grid-template-columns: 36px minmax(0, 1fr) !important;
  }
}

/* 服务型泵 APEX 页面：APEX计划有有效参数时保留基础计划柱状图；APEX蠕动继续删除底部空白曲线区域。 */
#overlay-pump-service-apex-continuous .pump-service-apex-continuous-chart {
  display: none !important;
}

/* 服务型泵模式弹页审美收敛：删除打开即空白的曲线占位区，只按内容高度撑开。 */
#overlay-pump-service-normal-plan .pump-service-normal-plan-chart,
#overlay-pump-service-normal-continuous .pump-service-normal-continuous-chart,
#overlay-pump-service-apex-continuous .pump-service-apex-continuous-chart {
  display: none !important;
}

#overlay-pump-service-normal-plan .pump-service-normal-plan-sheet,
#overlay-pump-service-normal-continuous .pump-service-normal-continuous-sheet,
#overlay-pump-service-apex-plan .pump-service-apex-plan-sheet,
#overlay-pump-service-apex-continuous .pump-service-apex-continuous-sheet,
#overlay-pump-service-manual .pump-service-manual-sheet {
  min-height: 0 !important;
  max-height: calc(100vh - 48px);
}

#overlay-pump-service-normal-plan .pump-service-normal-plan-action-wrap,
#overlay-pump-service-normal-continuous .pump-service-normal-continuous-action-wrap,
#overlay-pump-service-apex-plan .pump-service-apex-plan-action-wrap,
#overlay-pump-service-apex-continuous .pump-service-apex-continuous-action-wrap,
#overlay-pump-service-manual .pump-service-manual-action-wrap {
  padding-top: 22px;
}

/* 计划滴加总弹页：四种模式互斥，且弹页按内容高度展示。 */
#overlay-pump-service-plan-home .pump-service-plan-home-sheet {
  min-height: 0 !important;
  max-height: calc(100vh - 48px);
}

#overlay-pump-service-plan-home .pump-service-plan-home-buttons {
  margin: 22px auto 24px;
}

#overlay-pump-service-plan-home .pump-service-plan-home-status {
  padding: 18px 0;
}

.pump-service-plan-home-button.is-active {
  border-color: rgba(126, 219, 212, 0.52);
  background: linear-gradient(120deg, rgba(82, 169, 255, 0.34), rgba(57, 211, 191, 0.34));
  box-shadow: 0 18px 38px rgba(47, 183, 212, 0.18);
}


/* 临时预览主题：pump-apex 同款浅灰橙。不改主项目源码，仅 /tmp 预览。 */
.theme-swatch-pumpapex {
  background:
    radial-gradient(circle at 18% 20%, rgba(245, 166, 35, 0.34), transparent 22%),
    linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 56%, #d7d7d7 100%);
}

body[data-theme="pumpapex"] {
  --theme-body-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --theme-heading-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --theme-heading-tracking: 0;
  --theme-text: #333333;
  --theme-title: #222222;
  --theme-muted: #666666;
  --theme-note: #777777;
  --theme-eyebrow: #666666;
  --theme-accent: #f5a623;
  --theme-accent-2: #ffd280;
  --theme-accent-soft: rgba(245, 166, 35, 0.16);
  --theme-good: #4caf50;
  --theme-good-soft: rgba(76, 175, 80, 0.12);
  --theme-good-border: rgba(76, 175, 80, 0.18);
  --theme-warn: #e53935;
  --theme-warn-soft: rgba(229, 57, 53, 0.12);
  --theme-warning-bg: rgba(255, 236, 235, 0.9);
  --theme-warning-border: rgba(229, 57, 53, 0.18);
  --theme-warning-text: #b3261e;
  --theme-salt-soft: rgba(245, 166, 35, 0.14);
  --theme-salt-text: #b86f00;
  --theme-cal-soft: rgba(33, 150, 243, 0.1);
  --theme-cal-text: #1565c0;
  --theme-body-bg: linear-gradient(180deg, #f4f4f4 0%, #e8e8e8 52%, #dfdfdf 100%);
  --theme-body-overlay:
    radial-gradient(circle at 14% 12%, rgba(255, 255, 255, 0.82), transparent 18%),
    radial-gradient(circle at 86% 18%, rgba(245, 166, 35, 0.10), transparent 20%);
  --theme-body-glow: radial-gradient(circle, rgba(245, 166, 35, 0.10), transparent 70%);
  --theme-topbar-bg: linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.78) 70%, rgba(255,255,255,0) 100%);
  --theme-shell-bg: rgba(255, 255, 255, 0.74);
  --theme-shell-border: rgba(208, 208, 208, 0.76);
  --theme-shell-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
  --theme-shell-filter: blur(14px);
  --theme-banner-bg: rgba(255, 255, 255, 0.1);
  --theme-banner-border: rgba(208, 208, 208, 0.28);
  --theme-banner-text: #555555;
  --theme-banner-shadow: 0 6px 14px rgba(0,0,0,0.025);
  --theme-banner-filter: blur(6px);
  --theme-banner-alert-bg: rgba(229, 57, 53, 0.10);
  --theme-banner-alert-border: rgba(229, 57, 53, 0.16);
  --theme-banner-alert-text: #b3261e;
  --theme-kicker-bg: #f1f1f1;
  --theme-kicker-border: #d0d0d0;
  --theme-kicker-text: #666666;
  --theme-hero-panel-bg: rgba(255,255,255,0.92);
  --theme-hero-panel-border: #d0d0d0;
  --theme-hero-panel-shadow: 0 2px 4px rgba(0,0,0,0.05);
  --theme-hero-stat-bg: #f5f5f5;
  --theme-hero-stat-border: #d0d0d0;
  --theme-panel-bg: #ffffff;
  --theme-panel-border: #d0d0d0;
  --theme-border-strong: #c7c7c7;
  --theme-panel-shadow: 0 2px 4px rgba(0,0,0,0.05);
  --theme-panel-highlight: rgba(255,255,255,0.92);
  --theme-panel-hover-bg: #ffffff;
  --theme-hover-shadow: 0 6px 18px rgba(0,0,0,0.08);
  --theme-device-bg: #ffffff;
  --theme-device-border: #d0d0d0;
  --theme-device-shadow: 0 2px 4px rgba(0,0,0,0.05);
  --theme-chip-bg: #f3f3f3;
  --theme-chip-border: #d0d0d0;
  --theme-chip-text: #555555;
  --theme-button-bg: #eeeeee;
  --theme-button-border: #d0d0d0;
  --theme-button-text: #666666;
  --theme-button-shadow: none;
  --theme-button-hover-shadow: 0 4px 12px rgba(0,0,0,0.08);
  --theme-primary-bg: linear-gradient(180deg, #f7ad2e 0%, #f5a623 100%);
  --theme-primary-border: transparent;
  --theme-primary-text: #ffffff;
  --theme-ghost-bg: #eeeeee;
  --theme-ghost-border: #d0d0d0;
  --theme-ghost-text: #666666;
  --theme-warn-bg: linear-gradient(135deg, #ef5350 0%, #e53935 100%);
  --theme-warn-border: rgba(229, 57, 53, 0.16);
  --theme-input-bg: #ffffff;
  --theme-input-border: #d0d0d0;
  --theme-input-text: #333333;
  --theme-input-shadow: rgba(0,0,0,0.03);
  --theme-readonly-bg: #f2f2f2;
  --theme-readonly-text: #666666;
  --theme-toolbar-bg: linear-gradient(180deg, rgba(245,245,245,0.96) 0%, rgba(245,245,245,0.78) 72%, rgba(245,245,245,0) 100%);
  --theme-filter-chip-bg: #eeeeee;
  --theme-filter-chip-border: #d0d0d0;
  --theme-filter-chip-active-bg: rgba(245, 166, 35, 0.16);
  --theme-filter-chip-active-border: rgba(245, 166, 35, 0.32);
  --theme-filter-chip-active-text: #8a5600;
  --theme-tabbar-bg: rgba(255,255,255,0.88);
  --theme-tabbar-border: #d0d0d0;
  --theme-tabbar-shadow: 0 10px 24px rgba(0,0,0,0.08);
  --theme-tab-text: #666666;
  --theme-tab-active-bg: #f5a623;
  --theme-tab-active-text: #ffffff;
  --theme-overlay-bg: rgba(0,0,0,0.28);
  --theme-overlay-strong-bg: rgba(0,0,0,0.34);
  --theme-progress-track: #eeeeee;
  --theme-chart-bg: #ffffff;
  --theme-subtle-strong: #555555;
  --theme-option-bg: #ffffff;
  --theme-option-active-bg: #fff8ed;
}

body[data-theme="pumpapex"] .topbar .title::before { content: "FLOW CONTROL"; letter-spacing: 0.24em; color: #333333; }
body[data-theme="pumpapex"] .tab-btn { border-radius: 999px; }
body[data-theme="pumpapex"] .tab-btn.active { color: #ffffff; }
body[data-theme="pumpapex"] .quick-card { min-height: 112px; }
body[data-theme="pumpapex"] .quick-card strong,
body[data-theme="pumpapex"] .summary-value { color: #e09000; }
body[data-theme="pumpapex"] .status-chip.online { background: rgba(76,175,80,0.12); color: #2e7d32; }
body[data-theme="pumpapex"] .status-chip.offline { background: rgba(229,57,53,0.10); color: #b3261e; }

/* Pump Apex preview: submodule page theme coverage
   临时预览补丁：让子模块专页、服务型蠕动泵、流量模块跟随浅灰橙主题。 */
body[data-theme="pumpapex"] .module-page-hero,
body[data-theme="pumpapex"] .module-page-tabbar-head,
body[data-theme="pumpapex"] .module-page-detail-head,
body[data-theme="pumpapex"] .module-page-overview-card {
  color: var(--theme-text);
}

body[data-theme="pumpapex"] .module-page-nav {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--theme-panel-border);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

body[data-theme="pumpapex"] .module-page-nav-btn {
  border-right: 1px solid rgba(208, 208, 208, 0.72);
  color: var(--theme-muted);
}

body[data-theme="pumpapex"] .module-page-nav-btn:hover,
body[data-theme="pumpapex"] .module-page-nav-btn.active {
  background: #fff8ed;
  color: var(--theme-title);
  box-shadow: inset 0 -1px 0 rgba(245, 166, 35, 0.16);
}

body[data-theme="pumpapex"] .module-page-nav-btn.active::after {
  background: linear-gradient(90deg, #f5a623, #ffd280);
  box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.10);
}

body[data-theme="pumpapex"] .module-page-nav-title,
body[data-theme="pumpapex"] .module-page-status-strip .espnow-status-cell strong,
body[data-theme="pumpapex"] .pump-service-home-status-title,
body[data-theme="pumpapex"] .pump-service-home-status-list strong,
body[data-theme="pumpapex"] .pump-service-settings-head h2,
body[data-theme="pumpapex"] .pump-service-calibration-head h2,
body[data-theme="pumpapex"] .pump-service-time-head h2,
body[data-theme="pumpapex"] .pump-service-time-head h3 {
  color: var(--theme-title);
}

body[data-theme="pumpapex"] .module-page-nav-state.online { color: #2e7d32; }
body[data-theme="pumpapex"] .module-page-nav-state.offline,
body[data-theme="pumpapex"] .module-page-nav-state.err { color: #b3261e; }
body[data-theme="pumpapex"] .module-page-nav-state.ghost,
body[data-theme="pumpapex"] .module-page-nav-state.warn { color: #b86f00; }
body[data-theme="pumpapex"] .module-page-nav-state.info,
body[data-theme="pumpapex"] .module-page-nav-state.migrated { color: #555555; }

body[data-theme="pumpapex"] .module-page-status-strip,
body[data-theme="pumpapex"] .espnow-status-bar,
body[data-theme="pumpapex"] .pump-service-home-status,
body[data-theme="pumpapex"] .pump-service-settings-status,
body[data-theme="pumpapex"] .pump-service-time-status,
body[data-theme="pumpapex"] .pump-service-calibration-status,
body[data-theme="pumpapex"] .pump-service-record-summary-grid > div,
body[data-theme="pumpapex"] .pump-service-record-source,
body[data-theme="pumpapex"] .pump-service-record-chart-wrap,
body[data-theme="pumpapex"] .pump-service-record-list,
body[data-theme="pumpapex"] .pump-service-task-table-panel,
body[data-theme="pumpapex"] .pump-service-plan-home-status,
body[data-theme="pumpapex"] .pump-service-normal-plan-status,
body[data-theme="pumpapex"] .pump-service-normal-continuous-status,
body[data-theme="pumpapex"] .pump-service-apex-plan-status,
body[data-theme="pumpapex"] .pump-service-apex-continuous-status,
body[data-theme="pumpapex"] .pump-service-manual-status,
body[data-theme="pumpapex"] .espnow-flow-cal-panel,
body[data-theme="pumpapex"] .espnow-detail-control-card {
  background: #ffffff;
  border: 1px solid var(--theme-panel-border);
  color: var(--theme-text);
  box-shadow: var(--theme-panel-shadow);
}

body[data-theme="pumpapex"] .module-page-status-strip .espnow-status-title,
body[data-theme="pumpapex"] .module-page-status-strip .espnow-status-cell span:last-child,
body[data-theme="pumpapex"] .pump-service-home-status-copy,
body[data-theme="pumpapex"] .pump-service-home-status-list span,
body[data-theme="pumpapex"] .pump-service-settings-status span,
body[data-theme="pumpapex"] .pump-service-time-status span,
body[data-theme="pumpapex"] .pump-service-calibration-row span,
body[data-theme="pumpapex"] .pump-service-protection-row span,
body[data-theme="pumpapex"] .pump-service-time-note,
body[data-theme="pumpapex"] .pump-service-record-summary-grid span,
body[data-theme="pumpapex"] .pump-service-record-reason,
body[data-theme="pumpapex"] .pump-service-record-source,
body[data-theme="pumpapex"] .pump-service-record-main span,
body[data-theme="pumpapex"] .pump-service-record-meta,
body[data-theme="pumpapex"] .espnow-detail-dual-line,
body[data-theme="pumpapex"] .module-page-field-label {
  color: var(--theme-muted);
}

body[data-theme="pumpapex"] .pump-service-home-status-copy p,
body[data-theme="pumpapex"] .pump-service-home-status-list > div,
body[data-theme="pumpapex"] .pump-service-time-status > div,
body[data-theme="pumpapex"] .pump-service-record-row,
body[data-theme="pumpapex"] .pump-service-task-table-row,
body[data-theme="pumpapex"] .module-page-status-strip .espnow-status-cell {
  border-color: rgba(208, 208, 208, 0.72);
}

body[data-theme="pumpapex"] .pump-service-home-button,
body[data-theme="pumpapex"] .pump-service-settings-button,
body[data-theme="pumpapex"] .pump-service-time-button,
body[data-theme="pumpapex"] .pump-service-calibration-wide-button,
body[data-theme="pumpapex"] .pump-service-plan-home-button,
body[data-theme="pumpapex"] .module-page-entry-card,
body[data-theme="pumpapex"] .module-page-primary-cta {
  background: #ffffff;
  border: 1px solid var(--theme-panel-border);
  color: #b86f00;
  box-shadow: var(--theme-panel-shadow);
}

body[data-theme="pumpapex"] .pump-service-home-button:hover,
body[data-theme="pumpapex"] .pump-service-settings-button:hover,
body[data-theme="pumpapex"] .pump-service-time-button:hover,
body[data-theme="pumpapex"] .pump-service-calibration-wide-button:hover,
body[data-theme="pumpapex"] .pump-service-plan-home-button:hover,
body[data-theme="pumpapex"] .module-page-entry-card:hover,
body[data-theme="pumpapex"] .module-page-primary-cta:hover {
  background: #fff8ed;
  border-color: rgba(245, 166, 35, 0.34);
  color: #8a5600;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

body[data-theme="pumpapex"] .pump-service-settings-button--danger {
  color: #b3261e;
  background: rgba(229, 57, 53, 0.08);
  border-color: rgba(229, 57, 53, 0.18);
}

body[data-theme="pumpapex"] .module-page-field input,
body[data-theme="pumpapex"] .module-page-field select,
body[data-theme="pumpapex"] .pump-service-calibration-row input,
body[data-theme="pumpapex"] .pump-service-calibration-row select,
body[data-theme="pumpapex"] .pump-service-protection-row input,
body[data-theme="pumpapex"] .pump-service-normal-plan-row input,
body[data-theme="pumpapex"] .pump-service-normal-plan-row select,
body[data-theme="pumpapex"] .pump-service-normal-continuous-row input,
body[data-theme="pumpapex"] .pump-service-normal-continuous-row select,
body[data-theme="pumpapex"] .pump-service-apex-plan-row input,
body[data-theme="pumpapex"] .pump-service-apex-plan-row select,
body[data-theme="pumpapex"] .pump-service-apex-continuous-row input,
body[data-theme="pumpapex"] .pump-service-apex-continuous-row select,
body[data-theme="pumpapex"] .pump-service-manual-row input,
body[data-theme="pumpapex"] .pump-service-manual-row select {
  background: var(--theme-input-bg);
  border: 1px solid var(--theme-input-border);
  color: var(--theme-input-text);
  box-shadow: inset 0 1px 2px var(--theme-input-shadow);
}

body[data-theme="pumpapex"] .pump-service-unified-timeline,
body[data-theme="pumpapex"] .pump-plan-preview-chart,
body[data-theme="pumpapex"] .pump-service-calibration-chart,
body[data-theme="pumpapex"] .espnow-detail-grid.flow-layout .summary-card {
  background: #ffffff;
  border-color: var(--theme-panel-border);
  color: var(--theme-text);
}

body[data-theme="pumpapex"] .pump-plan-bar-slot,
body[data-theme="pumpapex"] .pump-service-calibration-plot,
body[data-theme="pumpapex"] .pump-service-calibration-y-axis,
body[data-theme="pumpapex"] .pump-service-calibration-x-axis {
  color: var(--theme-muted);
}

body[data-theme="pumpapex"] .pump-service-home-button,
body[data-theme="pumpapex"] .pump-service-home-status,
body[data-theme="pumpapex"] .module-page-nav,
body[data-theme="pumpapex"] .module-page-overview-card,
body[data-theme="pumpapex"] .espnow-flow-cal-panel {
  backdrop-filter: none;
}

/* Pump Apex preview: borrowed icons, bubbles, and status indicator from 借鉴版. */
.apex-bubbles-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.apex-bubble {
  position: absolute;
  bottom: -120px;
  border-radius: 50%;
  opacity: 0;
  animation: apexBubbleRise linear infinite;
  border: 2px solid rgba(245, 166, 35, 0.28);
  box-shadow: inset 0 0 20px rgba(255, 196, 84, 0.25), 0 0 10px rgba(245, 166, 35, 0.16);
}
.apex-bubble::before {
  content: "";
  position: absolute;
  top: 15%;
  left: 20%;
  width: 30%;
  height: 30%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.58);
  filter: blur(2px);
}
@keyframes apexBubbleRise {
  0% { transform: translateY(0) translateX(0) scale(0.6); opacity: 0; }
  5% { opacity: 0.82; }
  50% { transform: translateY(-60vh) translateX(20px) scale(0.9); opacity: 0.58; }
  100% { transform: translateY(-110vh) translateX(-10px) scale(1); opacity: 0; }
}
body:not([data-theme="pumpapex"]) .apex-bubbles-container { display: none; }

body[data-theme="pumpapex"] .tabbar {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
body[data-theme="pumpapex"] .tab-btn {
  gap: 5px;
  color: #8e8e8e;
  font-weight: 700;
}
body[data-theme="pumpapex"] .tab-btn .tab-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
}
body[data-theme="pumpapex"] .tab-btn .tab-icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
}
body[data-theme="pumpapex"] .tab-btn.active {
  color: #f5a623;
  background: rgba(245, 166, 35, 0.12);
}
body[data-theme="pumpapex"] .tab-btn.active .tab-icon {
  transform: scale(1.12);
  filter: drop-shadow(0 2px 4px rgba(245, 166, 35, 0.30));
}

body[data-theme="pumpapex"] .quick-card {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 112px;
  padding: 20px 22px;
  text-align: left;
}
body[data-theme="pumpapex"] .quick-card .quick-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: transform 0.22s ease;
}
body[data-theme="pumpapex"] .quick-card:hover .quick-icon { transform: scale(1.08); }
body[data-theme="pumpapex"] .quick-card .quick-icon svg { width: 30px; height: 30px; stroke: currentColor; }
body[data-theme="pumpapex"] .quick-card .quick-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
body[data-theme="pumpapex"] .quick-card .quick-text strong { font-size: 21px; color: var(--theme-title); }
body[data-theme="pumpapex"] .quick-card .quick-text span { font-size: 15px; line-height: 1.45; color: var(--theme-muted); }
body[data-theme="pumpapex"] .gradient-icon-blue { background: linear-gradient(135deg, #f5a623, #ffc454); box-shadow: 0 8px 18px rgba(245, 166, 35, 0.34); }
body[data-theme="pumpapex"] .gradient-icon-teal { background: linear-gradient(135deg, #ffb84d, #f5a623); box-shadow: 0 8px 18px rgba(245, 166, 35, 0.30); }
body[data-theme="pumpapex"] .gradient-icon-purple { background: linear-gradient(135deg, #e09000, #f5a623); box-shadow: 0 8px 18px rgba(224, 144, 0, 0.30); }
body[data-theme="pumpapex"] .gradient-icon-red { background: linear-gradient(135deg, #ff6b35, #f5a623); box-shadow: 0 8px 18px rgba(255, 107, 53, 0.28); }

body[data-theme="pumpapex"] .borrowed-status-card {
  position: relative;
  overflow: hidden;
  border-left: 3px solid #f5a623;
}
body[data-theme="pumpapex"] .borrowed-status-card .home-card-head,
body[data-theme="pumpapex"] .borrowed-status-card > .summary-label {
  display: flex;
  align-items: center;
  gap: 14px;
}
body[data-theme="pumpapex"] .borrowed-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f5a623;
  background: rgba(245, 166, 35, 0.10);
}
body[data-theme="pumpapex"] .borrowed-card-icon svg { width: 27px; height: 27px; stroke: currentColor; }
body[data-theme="pumpapex"] .borrowed-status-card .summary-label,
body[data-theme="pumpapex"] .borrowed-status-card .home-card-title { font-size: 20px; color: var(--theme-title); }
body[data-theme="pumpapex"] .borrowed-status-blue { border-left-color: #f5a623; }
body[data-theme="pumpapex"] .borrowed-status-teal { border-left-color: #ffb84d; }
body[data-theme="pumpapex"] .borrowed-status-purple { border-left-color: #e09000; }
body[data-theme="pumpapex"] .borrowed-status-orange { border-left-color: #ff8a00; }

body[data-theme="pumpapex"] #deviceOnlineChip {
  width: 88px;
  height: 88px;
  padding: 0;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  background: rgba(34, 197, 94, 0.08);
  border: 2px solid rgba(34, 197, 94, 0.36);
  color: transparent;
  box-shadow: 0 0 0 10px rgba(34, 197, 94, 0.06), inset 0 0 22px rgba(34, 197, 94, 0.10);
}
body[data-theme="pumpapex"] #deviceOnlineChip.offline {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.36);
  box-shadow: 0 0 0 10px rgba(239, 68, 68, 0.06), inset 0 0 22px rgba(239, 68, 68, 0.10);
}
body[data-theme="pumpapex"] #deviceOnlineChip .status-dot {
  width: 28px;
  height: 28px;
  margin: 0;
  background: #4ade80;
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.82);
  animation: apexStatusPulse 2s ease-in-out infinite;
}
body[data-theme="pumpapex"] #deviceOnlineChip.offline .status-dot {
  background: #ef4444;
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.72);
}
body[data-theme="pumpapex"] #deviceOnlineChip span:not(.status-dot) { display: none; }
@keyframes apexStatusPulse {
  0%, 100% { transform: scale(1); opacity: 0.94; }
  50% { transform: scale(1.12); opacity: 1; }
}
body[data-theme="pumpapex"] .tab-btn .tab-icon {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  opacity: 1;
}


/* Correction: keep borrowed icons, but do not change original pumpapex card styling. */
body[data-theme="pumpapex"] .quick-card {
  align-items: inherit;
  gap: 14px;
  min-height: 112px;
  padding: inherit;
  text-align: inherit;
}
body[data-theme="pumpapex"] .quick-card .quick-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}
body[data-theme="pumpapex"] .quick-card .quick-icon svg {
  width: 24px;
  height: 24px;
}
body[data-theme="pumpapex"] .quick-card .quick-text {
  display: contents;
}
body[data-theme="pumpapex"] .quick-card .quick-text strong {
  font-size: inherit;
}
body[data-theme="pumpapex"] .quick-card .quick-text span {
  font-size: inherit;
  line-height: inherit;
}
body[data-theme="pumpapex"] .quick-card:hover .quick-icon {
  transform: none;
}

body[data-theme="pumpapex"] .borrowed-status-card {
  border-left: 1px solid var(--theme-panel-border);
  overflow: visible;
}
body[data-theme="pumpapex"] .borrowed-status-card .home-card-head,
body[data-theme="pumpapex"] .borrowed-status-card > .summary-label {
  gap: 10px;
}
body[data-theme="pumpapex"] .borrowed-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(245, 166, 35, 0.10);
  color: #f5a623;
}
body[data-theme="pumpapex"] .borrowed-card-icon svg {
  width: 20px;
  height: 20px;
}
body[data-theme="pumpapex"] .borrowed-status-card .summary-label,
body[data-theme="pumpapex"] .borrowed-status-card .home-card-title {
  font-size: inherit;
}

/* Correction 2: restore the original modified-version card geometry; icons are decorative only. */
body[data-theme="pumpapex"] .quick-card {
  display: block;
  min-height: 112px;
  padding: 18px 18px 20px;
  border-radius: 24px;
  text-align: left;
}
body[data-theme="pumpapex"] .quick-card .quick-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  margin: 0 0 10px;
}
body[data-theme="pumpapex"] .quick-card .quick-icon svg {
  width: 20px;
  height: 20px;
}
body[data-theme="pumpapex"] .quick-card .quick-text {
  display: block;
}
body[data-theme="pumpapex"] .quick-card .quick-text strong,
body[data-theme="pumpapex"] .quick-card strong {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
}
body[data-theme="pumpapex"] .quick-card .quick-text span,
body[data-theme="pumpapex"] .quick-card span:not(.quick-icon) {
  display: inline;
  font-size: 13px;
  line-height: 1.55;
}

body[data-theme="pumpapex"] .borrowed-status-card {
  border-left-width: 1px;
  border-left-style: solid;
  border-left-color: var(--theme-panel-border);
}
body[data-theme="pumpapex"] .borrowed-status-card .home-card-head {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
body[data-theme="pumpapex"] .borrowed-status-card > .summary-label {
  display: flex;
  align-items: center;
  gap: 10px;
}
body[data-theme="pumpapex"] .borrowed-card-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
}
body[data-theme="pumpapex"] .borrowed-card-icon svg {
  width: 17px;
  height: 17px;
}

/* Proportion tuning: match borrowed-version icon/text scale without changing card styling. */
body[data-theme="pumpapex"] .borrowed-card-icon {
  width: clamp(46px, 3.1vw, 58px);
  height: clamp(46px, 3.1vw, 58px);
  border-radius: 18px;
}
body[data-theme="pumpapex"] .borrowed-card-icon svg {
  width: clamp(24px, 1.45vw, 30px);
  height: clamp(24px, 1.45vw, 30px);
}
body[data-theme="pumpapex"] .borrowed-status-card .summary-label,
body[data-theme="pumpapex"] .borrowed-status-card .home-card-title {
  font-size: clamp(18px, 1.45vw, 22px);
  font-weight: 800;
  line-height: 1.18;
}
body[data-theme="pumpapex"] .borrowed-status-card .home-card-head {
  flex-direction: row;
  align-items: center;
  gap: clamp(12px, 1vw, 18px);
}
body[data-theme="pumpapex"] .borrowed-status-card > .summary-label {
  gap: clamp(12px, 1vw, 18px);
}

body[data-theme="pumpapex"] .quick-card {
  display: flex;
  align-items: center;
  gap: clamp(16px, 1.4vw, 24px);
}
body[data-theme="pumpapex"] .quick-card .quick-icon {
  width: clamp(58px, 4.5vw, 82px);
  height: clamp(58px, 4.5vw, 82px);
  border-radius: clamp(16px, 1.35vw, 22px);
  margin: 0;
}
body[data-theme="pumpapex"] .quick-card .quick-icon svg {
  width: clamp(30px, 2.35vw, 44px);
  height: clamp(30px, 2.35vw, 44px);
}
body[data-theme="pumpapex"] .quick-card .quick-text {
  display: flex;
  flex-direction: column;
  gap: clamp(5px, 0.45vw, 9px);
}
body[data-theme="pumpapex"] .quick-card .quick-text strong,
body[data-theme="pumpapex"] .quick-card strong {
  font-size: clamp(20px, 1.85vw, 30px);
  font-weight: 800;
  line-height: 1.12;
  margin: 0;
}
body[data-theme="pumpapex"] .quick-card .quick-text span,
body[data-theme="pumpapex"] .quick-card span:not(.quick-icon) {
  display: block;
  font-size: clamp(15px, 1.18vw, 21px);
  line-height: 1.38;
}

body[data-theme="pumpapex"] .tab-btn .tab-icon {
  width: clamp(30px, 2.4vw, 45px);
  height: clamp(30px, 2.4vw, 45px);
}
body[data-theme="pumpapex"] .tab-btn .tab-icon svg {
  width: clamp(28px, 2.25vw, 42px);
  height: clamp(28px, 2.25vw, 42px);
}
body[data-theme="pumpapex"] .tab-btn span:not(.tab-icon) {
  font-size: clamp(13px, 1.05vw, 20px);
  font-weight: 800;
  line-height: 1.1;
}

/* Proportion tuning 2: keep status title readable while preserving icon/text ratio. */
body[data-theme="pumpapex"] .borrowed-status-card .home-card-head {
  display: grid;
  grid-template-columns: clamp(38px, 3vw, 58px) minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(10px, 1vw, 18px);
  row-gap: 10px;
}
body[data-theme="pumpapex"] .borrowed-status-card .home-card-title,
body[data-theme="pumpapex"] .borrowed-status-card .summary-label {
  min-width: 0;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}
body[data-theme="pumpapex"] .borrowed-status-card .home-card-side {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
body[data-theme="pumpapex"] .borrowed-status-card .home-card-inline {
  white-space: nowrap;
}
body[data-theme="pumpapex"] .borrowed-card-icon {
  width: clamp(38px, 3vw, 58px);
  height: clamp(38px, 3vw, 58px);
}
body[data-theme="pumpapex"] .borrowed-card-icon svg {
  width: clamp(20px, 1.55vw, 30px);
  height: clamp(20px, 1.55vw, 30px);
}
body[data-theme="pumpapex"] .borrowed-status-card .summary-label,
body[data-theme="pumpapex"] .borrowed-status-card .home-card-title {
  font-size: clamp(17px, 1.45vw, 22px);
}

/* Service pump action cards: orange background + white text like the reference image. */
body[data-theme="pumpapex"] .pump-service-home-button {
  background: linear-gradient(180deg, #f7ad2e 0%, #f5a623 100%);
  border: 1px solid rgba(245, 166, 35, 0.18);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(245, 166, 35, 0.22);
  text-shadow: none;
}
body[data-theme="pumpapex"] .pump-service-home-button:hover {
  background: linear-gradient(180deg, #ffb63a 0%, #f5a623 100%);
  border-color: rgba(245, 166, 35, 0.26);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(245, 166, 35, 0.28);
}
body[data-theme="pumpapex"] .pump-service-home-button:active {
  background: linear-gradient(180deg, #ea9c18 0%, #df8d00 100%);
  color: #ffffff;
}

/* All-card orange mode for pumpapex theme: exact borrowed orange + white text. */
body[data-theme="pumpapex"] {
  --apex-card-orange: #f5a623;
  --apex-card-orange-top: #f7ad2e;
  --apex-card-orange-bottom: #f5a623;
  --apex-card-orange-border: rgba(245, 166, 35, 0.34);
  --apex-card-white: #ffffff;
  --apex-card-white-soft: rgba(255, 255, 255, 0.86);
  --apex-card-white-muted: rgba(255, 255, 255, 0.72);
}

body[data-theme="pumpapex"] .card,
body[data-theme="pumpapex"] .summary-card,
body[data-theme="pumpapex"] .quick-card,
body[data-theme="pumpapex"] .device-card,
body[data-theme="pumpapex"] .home-detail-card,
body[data-theme="pumpapex"] .status-box,
body[data-theme="pumpapex"] .switch-row,
body[data-theme="pumpapex"] .trim-panel,
body[data-theme="pumpapex"] .mini-card,
body[data-theme="pumpapex"] .espnow-module-card,
body[data-theme="pumpapex"] .espnow-status-bar,
body[data-theme="pumpapex"] .module-page-overview-card,
body[data-theme="pumpapex"] .module-page-status-strip,
body[data-theme="pumpapex"] .module-page-entry-card,
body[data-theme="pumpapex"] .module-page-subview-card,
body[data-theme="pumpapex"] .espnow-detail-control-card,
body[data-theme="pumpapex"] .espnow-flow-cal-panel,
body[data-theme="pumpapex"] .pump-service-home-button,
body[data-theme="pumpapex"] .pump-service-home-status,
body[data-theme="pumpapex"] .pump-service-settings-status,
body[data-theme="pumpapex"] .pump-service-calibration-status,
body[data-theme="pumpapex"] .pump-service-time-status,
body[data-theme="pumpapex"] .pump-service-record-summary-grid > div,
body[data-theme="pumpapex"] .pump-service-record-source,
body[data-theme="pumpapex"] .pump-service-record-chart-wrap,
body[data-theme="pumpapex"] .pump-service-record-list,
body[data-theme="pumpapex"] .pump-service-task-table-panel,
body[data-theme="pumpapex"] .pump-service-plan-home-status,
body[data-theme="pumpapex"] .pump-service-normal-plan-status,
body[data-theme="pumpapex"] .pump-service-normal-continuous-status,
body[data-theme="pumpapex"] .pump-service-apex-plan-status,
body[data-theme="pumpapex"] .pump-service-apex-continuous-status,
body[data-theme="pumpapex"] .pump-service-manual-status {
  background: linear-gradient(180deg, var(--apex-card-orange-top) 0%, var(--apex-card-orange-bottom) 100%) !important;
  border-color: var(--apex-card-orange-border) !important;
  color: var(--apex-card-white) !important;
  box-shadow: 0 12px 28px rgba(245, 166, 35, 0.24) !important;
}

body[data-theme="pumpapex"] .card *,
body[data-theme="pumpapex"] .summary-card *,
body[data-theme="pumpapex"] .quick-card *,
body[data-theme="pumpapex"] .device-card *,
body[data-theme="pumpapex"] .status-box *,
body[data-theme="pumpapex"] .switch-row *,
body[data-theme="pumpapex"] .trim-panel *,
body[data-theme="pumpapex"] .mini-card *,
body[data-theme="pumpapex"] .espnow-module-card *,
body[data-theme="pumpapex"] .module-page-overview-card *,
body[data-theme="pumpapex"] .module-page-entry-card *,
body[data-theme="pumpapex"] .module-page-subview-card *,
body[data-theme="pumpapex"] .espnow-detail-control-card *,
body[data-theme="pumpapex"] .espnow-flow-cal-panel *,
body[data-theme="pumpapex"] .pump-service-home-button *,
body[data-theme="pumpapex"] .pump-service-home-status *,
body[data-theme="pumpapex"] .pump-service-settings-status *,
body[data-theme="pumpapex"] .pump-service-calibration-status *,
body[data-theme="pumpapex"] .pump-service-time-status * {
  color: var(--apex-card-white) !important;
}

body[data-theme="pumpapex"] .manual-change-card .manual-split-copy strong,
body[data-theme="pumpapex"] .manual-change-card .manual-split-value {
  color: #2f3338 !important;
  -webkit-text-fill-color: #2f3338 !important;
}

body[data-theme="pumpapex"] .summary-label,
body[data-theme="pumpapex"] .summary-sub,
body[data-theme="pumpapex"] .home-detail-line,
body[data-theme="pumpapex"] .section-note,
body[data-theme="pumpapex"] .helper,
body[data-theme="pumpapex"] .quick-card span,
body[data-theme="pumpapex"] .switch-meta span,
body[data-theme="pumpapex"] .module-page-field-label,
body[data-theme="pumpapex"] .pump-service-home-status-copy,
body[data-theme="pumpapex"] .pump-service-home-status-list span,
body[data-theme="pumpapex"] .pump-service-time-note,
body[data-theme="pumpapex"] .pump-service-record-meta,
body[data-theme="pumpapex"] .pump-service-record-reason {
  color: var(--apex-card-white-soft) !important;
}

body[data-theme="pumpapex"] .home-detail-line,
body[data-theme="pumpapex"] .metric-row,
body[data-theme="pumpapex"] .pump-service-home-status-copy p,
body[data-theme="pumpapex"] .pump-service-home-status-list > div,
body[data-theme="pumpapex"] .module-page-status-strip .espnow-status-cell,
body[data-theme="pumpapex"] .pump-service-record-row {
  border-color: rgba(255, 255, 255, 0.28) !important;
}

body[data-theme="pumpapex"] .badge,
body[data-theme="pumpapex"] .status-chip,
body[data-theme="pumpapex"] .home-card-inline,
body[data-theme="pumpapex"] .module-page-nav-state,
body[data-theme="pumpapex"] .module-page-nav-chip {
  background: rgba(255, 255, 255, 0.22) !important;
  border-color: rgba(255, 255, 255, 0.30) !important;
  color: var(--apex-card-white) !important;
}

body[data-theme="pumpapex"] .borrowed-card-icon,
body[data-theme="pumpapex"] .quick-card .quick-icon {
  background: rgba(255, 255, 255, 0.18) !important;
  color: var(--apex-card-white) !important;
  box-shadow: none !important;
}

body[data-theme="pumpapex"] .card:hover,
body[data-theme="pumpapex"] .summary-card:hover,
body[data-theme="pumpapex"] .quick-card:hover,
body[data-theme="pumpapex"] .espnow-module-card:hover,
body[data-theme="pumpapex"] .module-page-entry-card:hover,
body[data-theme="pumpapex"] .pump-service-home-button:hover {
  background: linear-gradient(180deg, #ffb63a 0%, #f5a623 100%) !important;
  color: var(--apex-card-white) !important;
  box-shadow: 0 16px 34px rgba(245, 166, 35, 0.30) !important;
}

body[data-theme="pumpapex"] input,
body[data-theme="pumpapex"] select,
body[data-theme="pumpapex"] textarea {
  background: rgba(255, 255, 255, 0.22) !important;
  border-color: rgba(255, 255, 255, 0.34) !important;
  color: #ffffff !important;
}
body[data-theme="pumpapex"] input::placeholder,
body[data-theme="pumpapex"] textarea::placeholder {
  color: rgba(255, 255, 255, 0.70) !important;
}

/* Keep non-card page notes readable; orange/white rule applies to cards only. */
body[data-theme="pumpapex"] .view > div > .section-note,
body[data-theme="pumpapex"] .topbar-note,
body[data-theme="pumpapex"] .hero-copy > .section-note {
  color: #666666 !important;
}

/* Orange inset mode: gray page, white outer cards, orange inner/stat cards. */
body[data-theme="pumpapex"] {
  --theme-body-bg: #e6e6e6;
  --theme-body-overlay: none;
  --theme-panel-bg: #ffffff;
  --theme-device-bg: #ffffff;
  --theme-panel-border: #d7d7d7;
  --theme-device-border: #d7d7d7;
  --theme-panel-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --theme-device-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
body[data-theme="pumpapex"] .card,
body[data-theme="pumpapex"] .device-card,
body[data-theme="pumpapex"] .sheet,
body[data-theme="pumpapex"] .module-page-overview-card,
body[data-theme="pumpapex"] .module-page-subview-card,
body[data-theme="pumpapex"] .pump-service-record-chart-wrap,
body[data-theme="pumpapex"] .pump-service-record-list,
body[data-theme="pumpapex"] .pump-service-task-table-panel {
  background: #ffffff !important;
  border-color: #d7d7d7 !important;
  color: #333333 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
}
body[data-theme="pumpapex"] .card > *,
body[data-theme="pumpapex"] .device-card > *,
body[data-theme="pumpapex"] .sheet > *,
body[data-theme="pumpapex"] .module-page-overview-card > * {
  color: inherit;
}

/* Inner cards / statistic blocks are orange. */
body[data-theme="pumpapex"] .summary-card,
body[data-theme="pumpapex"] .quick-card,
body[data-theme="pumpapex"] .mini-card,
body[data-theme="pumpapex"] .status-box,
body[data-theme="pumpapex"] .switch-row,
body[data-theme="pumpapex"] .trim-panel,
body[data-theme="pumpapex"] .espnow-module-card,
body[data-theme="pumpapex"] .espnow-status-bar,
body[data-theme="pumpapex"] .module-page-status-strip,
body[data-theme="pumpapex"] .module-page-entry-card,
body[data-theme="pumpapex"] .espnow-detail-control-card,
body[data-theme="pumpapex"] .espnow-flow-cal-panel,
body[data-theme="pumpapex"] .pump-service-home-button,
body[data-theme="pumpapex"] .pump-service-home-status,
body[data-theme="pumpapex"] .pump-service-settings-status,
body[data-theme="pumpapex"] .pump-service-calibration-status,
body[data-theme="pumpapex"] .pump-service-time-status,
body[data-theme="pumpapex"] .pump-service-record-summary-grid > div,
body[data-theme="pumpapex"] .pump-service-plan-home-status,
body[data-theme="pumpapex"] .pump-service-normal-plan-status,
body[data-theme="pumpapex"] .pump-service-normal-continuous-status,
body[data-theme="pumpapex"] .pump-service-apex-plan-status,
body[data-theme="pumpapex"] .pump-service-apex-continuous-status,
body[data-theme="pumpapex"] .pump-service-manual-status {
  background: linear-gradient(180deg, #f7ad2e 0%, #f5a623 100%) !important;
  border-color: rgba(245, 166, 35, 0.34) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 22px rgba(245, 166, 35, 0.22) !important;
}
body[data-theme="pumpapex"] .summary-card *,
body[data-theme="pumpapex"] .quick-card *,
body[data-theme="pumpapex"] .mini-card *,
body[data-theme="pumpapex"] .status-box *,
body[data-theme="pumpapex"] .switch-row *,
body[data-theme="pumpapex"] .trim-panel *,
body[data-theme="pumpapex"] .espnow-module-card *,
body[data-theme="pumpapex"] .espnow-status-bar *,
body[data-theme="pumpapex"] .module-page-status-strip *,
body[data-theme="pumpapex"] .module-page-entry-card *,
body[data-theme="pumpapex"] .espnow-detail-control-card *,
body[data-theme="pumpapex"] .espnow-flow-cal-panel *,
body[data-theme="pumpapex"] .pump-service-home-button *,
body[data-theme="pumpapex"] .pump-service-home-status *,
body[data-theme="pumpapex"] .pump-service-settings-status *,
body[data-theme="pumpapex"] .pump-service-calibration-status *,
body[data-theme="pumpapex"] .pump-service-time-status * {
  color: #ffffff !important;
}
body[data-theme="pumpapex"] .summary-label,
body[data-theme="pumpapex"] .summary-sub,
body[data-theme="pumpapex"] .home-detail-line,
body[data-theme="pumpapex"] .quick-card span,
body[data-theme="pumpapex"] .switch-meta span,
body[data-theme="pumpapex"] .pump-service-home-status-copy,
body[data-theme="pumpapex"] .pump-service-home-status-list span {
  color: rgba(255, 255, 255, 0.88) !important;
}
body[data-theme="pumpapex"] .device-name,
body[data-theme="pumpapex"] .section-title,
body[data-theme="pumpapex"] .card > h2,
body[data-theme="pumpapex"] .card > .section-note,
body[data-theme="pumpapex"] .view > div > .section-note {
  color: #333333 !important;
}
body[data-theme="pumpapex"] .device-head,
body[data-theme="pumpapex"] .card > h2,
body[data-theme="pumpapex"] .module-page-detail-head {
  border-color: #d0d0d0 !important;
}
body[data-theme="pumpapex"] .tabbar,
body[data-theme="pumpapex"] .module-page-nav {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: #d7d7d7 !important;
}

/* Pump APEX orange-inset v2: 灰背景 / 白底容器 / 橙色功能卡片 / 白字。 */
body[data-theme="pumpapex"] {
  --apex-orange: #f5a623;
  --apex-orange-press: #e99a13;
  --apex-page-gray: #e6e6e6;
  --apex-paper: #ffffff;
  --apex-line: #d7d7d7;
  --apex-ink: #333333;
  --apex-muted: #666666;
  --theme-body-bg: var(--apex-page-gray);
  --theme-panel-bg: var(--apex-paper);
  --theme-device-bg: var(--apex-paper);
  --theme-shell-bg: transparent;
  --theme-topbar-bg: rgba(255,255,255,0.92);
  --theme-tabbar-bg: rgba(255,255,255,0.96);
  --theme-panel-border: var(--apex-line);
  --theme-device-border: var(--apex-line);
  --theme-text: var(--apex-ink);
  --theme-muted: var(--apex-muted);
  background: var(--apex-page-gray) !important;
  color: var(--apex-ink) !important;
}
body[data-theme="pumpapex"] .app,
body[data-theme="pumpapex"] .content,
body[data-theme="pumpapex"] .view,
body[data-theme="pumpapex"] .hero-shell {
  background: transparent !important;
  color: var(--apex-ink) !important;
}

/* 白色外层：像参考图的白色底板和分区容器。 */
body[data-theme="pumpapex"] .card,
body[data-theme="pumpapex"] .device-card,
body[data-theme="pumpapex"] .sheet,
body[data-theme="pumpapex"] .home-detail-card:not(.summary-card),
body[data-theme="pumpapex"] .module-page-overview-card,
body[data-theme="pumpapex"] .module-page-subview-card,
body[data-theme="pumpapex"] .pump-service-record-chart-wrap,
body[data-theme="pumpapex"] .pump-service-record-list,
body[data-theme="pumpapex"] .pump-service-task-table-panel {
  background: var(--apex-paper) !important;
  background-image: none !important;
  border-color: var(--apex-line) !important;
  color: var(--apex-ink) !important;
  box-shadow: 0 8px 22px rgba(0,0,0,0.08) !important;
}
body[data-theme="pumpapex"] .card::before,
body[data-theme="pumpapex"] .device-card::before,
body[data-theme="pumpapex"] .sheet::before,
body[data-theme="pumpapex"] .module-page-overview-card::before,
body[data-theme="pumpapex"] .module-page-subview-card::before {
  background: transparent !important;
  opacity: 0 !important;
}
body[data-theme="pumpapex"] .card > h2,
body[data-theme="pumpapex"] .card > h3,
body[data-theme="pumpapex"] .section-title,
body[data-theme="pumpapex"] .device-head,
body[data-theme="pumpapex"] .device-head *,
body[data-theme="pumpapex"] .device-name,
body[data-theme="pumpapex"] .view > div > .section-note,
body[data-theme="pumpapex"] .card > .section-note,
body[data-theme="pumpapex"] .module-page-detail-head,
body[data-theme="pumpapex"] .module-page-detail-head *,
body[data-theme="pumpapex"] .sheet > h2,
body[data-theme="pumpapex"] .sheet > h3 {
  color: var(--apex-ink) !important;
  text-shadow: none !important;
}
body[data-theme="pumpapex"] .section-note,
body[data-theme="pumpapex"] .device-subtitle,
body[data-theme="pumpapex"] .helper,
body[data-theme="pumpapex"] .muted {
  color: var(--apex-muted) !important;
}

/* 橙色功能/数据卡：使用参考图橙色，文字保持纯白。 */
body[data-theme="pumpapex"] .summary-card,
body[data-theme="pumpapex"] .quick-card,
body[data-theme="pumpapex"] .mini-card,
body[data-theme="pumpapex"] .status-box,
body[data-theme="pumpapex"] .switch-row,
body[data-theme="pumpapex"] .trim-panel,
body[data-theme="pumpapex"] .espnow-module-card,
body[data-theme="pumpapex"] .espnow-status-bar,
body[data-theme="pumpapex"] .module-page-status-strip,
body[data-theme="pumpapex"] .module-page-entry-card,
body[data-theme="pumpapex"] .espnow-detail-control-card,
body[data-theme="pumpapex"] .espnow-flow-cal-panel,
body[data-theme="pumpapex"] .pump-service-home-button,
body[data-theme="pumpapex"] .pump-service-home-status,
body[data-theme="pumpapex"] .pump-service-settings-status,
body[data-theme="pumpapex"] .pump-service-calibration-status,
body[data-theme="pumpapex"] .pump-service-time-status,
body[data-theme="pumpapex"] .pump-service-record-summary-grid > div,
body[data-theme="pumpapex"] .pump-service-plan-home-status,
body[data-theme="pumpapex"] .pump-service-normal-plan-status,
body[data-theme="pumpapex"] .pump-service-normal-continuous-status,
body[data-theme="pumpapex"] .pump-service-apex-plan-status,
body[data-theme="pumpapex"] .pump-service-apex-continuous-status,
body[data-theme="pumpapex"] .pump-service-manual-status {
  background: var(--apex-orange) !important;
  background-image: none !important;
  border-color: var(--apex-orange) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 22px rgba(245,166,35,0.24) !important;
}
body[data-theme="pumpapex"] .summary-card *,
body[data-theme="pumpapex"] .quick-card *,
body[data-theme="pumpapex"] .mini-card *,
body[data-theme="pumpapex"] .status-box *,
body[data-theme="pumpapex"] .switch-row *,
body[data-theme="pumpapex"] .trim-panel *,
body[data-theme="pumpapex"] .espnow-module-card *,
body[data-theme="pumpapex"] .espnow-status-bar *,
body[data-theme="pumpapex"] .module-page-status-strip *,
body[data-theme="pumpapex"] .module-page-entry-card *,
body[data-theme="pumpapex"] .espnow-detail-control-card *,
body[data-theme="pumpapex"] .espnow-flow-cal-panel *,
body[data-theme="pumpapex"] .pump-service-home-button *,
body[data-theme="pumpapex"] .pump-service-home-status *,
body[data-theme="pumpapex"] .pump-service-settings-status *,
body[data-theme="pumpapex"] .pump-service-calibration-status *,
body[data-theme="pumpapex"] .pump-service-time-status * {
  color: #ffffff !important;
  text-shadow: none !important;
}
body[data-theme="pumpapex"] .summary-card:hover,
body[data-theme="pumpapex"] .quick-card:hover,
body[data-theme="pumpapex"] .module-page-entry-card:hover,
body[data-theme="pumpapex"] .pump-service-home-button:hover {
  background: var(--apex-orange-press) !important;
  border-color: var(--apex-orange-press) !important;
  color: #ffffff !important;
}

/* 橙色卡内部的图标不再套淡色块，贴近参考图白色符号。 */
body[data-theme="pumpapex"] .summary-card .borrowed-card-icon,
body[data-theme="pumpapex"] .quick-card .quick-icon,
body[data-theme="pumpapex"] .pump-service-home-button .quick-icon,
body[data-theme="pumpapex"] .module-page-entry-card .quick-icon {
  background: transparent !important;
  color: #ffffff !important;
  box-shadow: none !important;
}
body[data-theme="pumpapex"] .summary-card .borrowed-card-icon svg,
body[data-theme="pumpapex"] .quick-card .quick-icon svg,
body[data-theme="pumpapex"] .pump-service-home-button .quick-icon svg,
body[data-theme="pumpapex"] .module-page-entry-card .quick-icon svg {
  stroke: #ffffff !important;
}

/* 顶栏和底部导航保留白底，页面背景露出灰色。 */
body[data-theme="pumpapex"] .topbar,
body[data-theme="pumpapex"] .tabbar,
body[data-theme="pumpapex"] .module-page-nav {
  background: rgba(255,255,255,0.96) !important;
  border-color: var(--apex-line) !important;
  color: var(--apex-ink) !important;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06) !important;
}

/* Pump APEX orange-inset v3: 修正悬停、在线灯尺寸、急停配色。 */
body[data-theme="pumpapex"] .card:hover,
body[data-theme="pumpapex"] .device-card:hover,
body[data-theme="pumpapex"] .sheet:hover,
body[data-theme="pumpapex"] .module-page-overview-card:hover,
body[data-theme="pumpapex"] .module-page-subview-card:hover,
body[data-theme="pumpapex"] .pump-service-record-chart-wrap:hover,
body[data-theme="pumpapex"] .pump-service-record-list:hover,
body[data-theme="pumpapex"] .pump-service-task-table-panel:hover {
  background: #ffffff !important;
  background-image: none !important;
  border-color: #d7d7d7 !important;
  color: #333333 !important;
  box-shadow: 0 8px 22px rgba(0,0,0,0.08) !important;
  transform: none !important;
}
body[data-theme="pumpapex"] .summary-card:hover,
body[data-theme="pumpapex"] .quick-card:hover,
body[data-theme="pumpapex"] .mini-card:hover,
body[data-theme="pumpapex"] .module-page-entry-card:hover,
body[data-theme="pumpapex"] .pump-service-home-button:hover {
  background: #f5a623 !important;
  background-image: none !important;
  border-color: #f5a623 !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 10px 22px rgba(245,166,35,0.24) !important;
}

body[data-theme="pumpapex"] #deviceOnlineChip {
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: rgba(74, 222, 128, 0.08) !important;
  border: 2px solid rgba(74, 222, 128, 0.42) !important;
  box-shadow: 0 0 0 5px rgba(74, 222, 128, 0.055), inset 0 0 12px rgba(74, 222, 128, 0.08) !important;
}
body[data-theme="pumpapex"] #deviceOnlineChip .status-dot {
  width: 18px !important;
  height: 18px !important;
  background: #4ade80 !important;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.62) !important;
}
body[data-theme="pumpapex"] #deviceOnlineChip.offline {
  background: rgba(245, 166, 35, 0.08) !important;
  border-color: rgba(245, 166, 35, 0.42) !important;
  box-shadow: 0 0 0 5px rgba(245, 166, 35, 0.055), inset 0 0 12px rgba(245, 166, 35, 0.08) !important;
}
body[data-theme="pumpapex"] #deviceOnlineChip.offline .status-dot {
  background: #f5a623 !important;
  box-shadow: 0 0 10px rgba(245, 166, 35, 0.62) !important;
}

body[data-theme="pumpapex"] .estop-fab {
  width: 62px !important;
  height: 62px !important;
  background: linear-gradient(180deg, #ffbb45 0%, #f5a623 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 16px 28px rgba(245,166,35,0.24), inset 0 2px 8px rgba(255,255,255,0.22) !important;
  filter: none !important;
}
body[data-theme="pumpapex"] .estop-fab:hover {
  transform: translateY(-1px) !important;
  background: linear-gradient(180deg, #ffc45c 0%, #f5a623 100%) !important;
  filter: none !important;
}
body[data-theme="pumpapex"] .estop-fab-ring {
  inset: -6px !important;
  border-color: rgba(245, 166, 35, 0.26) !important;
  background: radial-gradient(circle, rgba(245,166,35,0.12), transparent 68%) !important;
}
body[data-theme="pumpapex"] .estop-fab-label {
  color: #ffffff !important;
  font-size: 15px !important;
  background: transparent !important;
  text-shadow: none !important;
}
body[data-theme="pumpapex"] .estop-fab.armed {
  background: linear-gradient(180deg, #ff9b3d 0%, #e77724 100%) !important;
}

/* Pump APEX orange-inset v4: 快捷操作只保留图标和主标题，去掉说明文字。 */
body[data-theme="pumpapex"] .quick-card .quick-text span,
body[data-theme="pumpapex"] .quick-card > span:not(.quick-icon) {
  display: none !important;
}
body[data-theme="pumpapex"] .quick-card .quick-text {
  justify-content: center !important;
  gap: 0 !important;
}
body[data-theme="pumpapex"] .quick-card .quick-text strong,
body[data-theme="pumpapex"] .quick-card strong {
  font-size: 24px !important;
  line-height: 1.18 !important;
}

/* Pump APEX orange-inset v5: 快捷操作按参考图排版，图标在上、文字在下；不更换现有图标。 */
body[data-theme="pumpapex"] .quick-grid {
  gap: 14px !important;
}
body[data-theme="pumpapex"] .quick-card {
  min-height: 150px !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 18px !important;
  padding: 24px 18px !important;
  border-radius: 22px !important;
}
body[data-theme="pumpapex"] .quick-card .quick-icon {
  width: 52px !important;
  height: 52px !important;
  flex: 0 0 52px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
}
body[data-theme="pumpapex"] .quick-card .quick-icon svg {
  width: 44px !important;
  height: 44px !important;
  stroke-width: 2.25 !important;
}
body[data-theme="pumpapex"] .quick-card .quick-text {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  width: 100% !important;
  gap: 0 !important;
}
body[data-theme="pumpapex"] .quick-card .quick-text strong,
body[data-theme="pumpapex"] .quick-card strong {
  display: block !important;
  width: 100% !important;
  font-size: 26px !important;
  line-height: 1.1 !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
}

/* Pump APEX orange-inset v6: 快捷操作卡片缩小一档，保持图标上文字下。 */
body[data-theme="pumpapex"] .quick-grid {
  gap: 12px !important;
}
body[data-theme="pumpapex"] .quick-card {
  min-height: 118px !important;
  gap: 10px !important;
  padding: 18px 14px !important;
  border-radius: 18px !important;
}
body[data-theme="pumpapex"] .quick-card .quick-icon {
  width: 40px !important;
  height: 40px !important;
  flex-basis: 40px !important;
}
body[data-theme="pumpapex"] .quick-card .quick-icon svg {
  width: 34px !important;
  height: 34px !important;
  stroke-width: 2.2 !important;
}
body[data-theme="pumpapex"] .quick-card .quick-text strong,
body[data-theme="pumpapex"] .quick-card strong {
  font-size: 22px !important;
  line-height: 1.1 !important;
}

/* Pump APEX orange-inset v7: 修正橙色卡片内的反色/灰色按钮。 */
body[data-theme="pumpapex"] .switch-row .toggle-btn,
body[data-theme="pumpapex"] .status-box .btn,
body[data-theme="pumpapex"] .status-box .toggle-btn,
body[data-theme="pumpapex"] .trim-panel .btn,
body[data-theme="pumpapex"] .trim-panel .toggle-btn,
body[data-theme="pumpapex"] .summary-card .btn,
body[data-theme="pumpapex"] .summary-card .toggle-btn,
body[data-theme="pumpapex"] .module-page-entry-card .btn,
body[data-theme="pumpapex"] .module-page-entry-card .toggle-btn,
body[data-theme="pumpapex"] .espnow-detail-control-card .btn,
body[data-theme="pumpapex"] .espnow-flow-cal-panel .btn {
  background: rgba(255,255,255,0.96) !important;
  background-image: none !important;
  color: #f5a623 !important;
  border: 1px solid rgba(255,255,255,0.86) !important;
  box-shadow: 0 4px 10px rgba(154, 96, 18, 0.10) !important;
  text-shadow: none !important;
}
body[data-theme="pumpapex"] .switch-row .toggle-btn *,
body[data-theme="pumpapex"] .status-box .btn *,
body[data-theme="pumpapex"] .status-box .toggle-btn *,
body[data-theme="pumpapex"] .trim-panel .btn *,
body[data-theme="pumpapex"] .trim-panel .toggle-btn *,
body[data-theme="pumpapex"] .summary-card .btn *,
body[data-theme="pumpapex"] .summary-card .toggle-btn *,
body[data-theme="pumpapex"] .module-page-entry-card .btn *,
body[data-theme="pumpapex"] .module-page-entry-card .toggle-btn *,
body[data-theme="pumpapex"] .espnow-detail-control-card .btn *,
body[data-theme="pumpapex"] .espnow-flow-cal-panel .btn * {
  color: #f5a623 !important;
  text-shadow: none !important;
}
body[data-theme="pumpapex"] .switch-row .toggle-btn:hover,
body[data-theme="pumpapex"] .status-box .btn:hover,
body[data-theme="pumpapex"] .status-box .toggle-btn:hover,
body[data-theme="pumpapex"] .trim-panel .btn:hover,
body[data-theme="pumpapex"] .trim-panel .toggle-btn:hover,
body[data-theme="pumpapex"] .summary-card .btn:hover,
body[data-theme="pumpapex"] .summary-card .toggle-btn:hover,
body[data-theme="pumpapex"] .module-page-entry-card .btn:hover,
body[data-theme="pumpapex"] .module-page-entry-card .toggle-btn:hover,
body[data-theme="pumpapex"] .espnow-detail-control-card .btn:hover,
body[data-theme="pumpapex"] .espnow-flow-cal-panel .btn:hover {
  background: #ffffff !important;
  color: #df8d00 !important;
  border-color: #ffffff !important;
  box-shadow: 0 6px 14px rgba(154, 96, 18, 0.14) !important;
}
body[data-theme="pumpapex"] .switch-row .toggle-btn:disabled,
body[data-theme="pumpapex"] .status-box .btn:disabled,
body[data-theme="pumpapex"] .status-box .toggle-btn:disabled,
body[data-theme="pumpapex"] .trim-panel .btn:disabled,
body[data-theme="pumpapex"] .trim-panel .toggle-btn:disabled,
body[data-theme="pumpapex"] .summary-card .btn:disabled,
body[data-theme="pumpapex"] .summary-card .toggle-btn:disabled,
body[data-theme="pumpapex"] .module-page-entry-card .btn:disabled,
body[data-theme="pumpapex"] .module-page-entry-card .toggle-btn:disabled,
body[data-theme="pumpapex"] .espnow-detail-control-card .btn:disabled,
body[data-theme="pumpapex"] .espnow-flow-cal-panel .btn:disabled,
body[data-theme="pumpapex"] .switch-row .toggle-btn.disabled,
body[data-theme="pumpapex"] .status-box .btn.disabled,
body[data-theme="pumpapex"] .status-box .toggle-btn.disabled {
  background: rgba(255,255,255,0.46) !important;
  color: rgba(255,255,255,0.92) !important;
  border-color: rgba(255,255,255,0.38) !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

/* 白色分区上的普通按钮也统一成橙白体系，避免灰底白字。 */
body[data-theme="pumpapex"] .card > .actions .btn.ghost,
body[data-theme="pumpapex"] .card > .actions .toggle-btn.inactive,
body[data-theme="pumpapex"] .sheet .btn.ghost,
body[data-theme="pumpapex"] .sheet .toggle-btn.inactive {
  background: #ffffff !important;
  color: #f5a623 !important;
  border-color: rgba(245,166,35,0.34) !important;
  box-shadow: inset 0 0 0 1px rgba(245,166,35,0.06) !important;
}

/* Pump APEX orange-inset v8: 设置页白底信息区恢复深色文字，避免白底白字。 */
body[data-theme="pumpapex"] #view-settings .card .metric-row,
body[data-theme="pumpapex"] #view-settings .card .metric-row *,
body[data-theme="pumpapex"] #view-settings .settings-theme-embed,
body[data-theme="pumpapex"] #view-settings .settings-theme-embed * {
  color: #333333 !important;
  text-shadow: none !important;
}
body[data-theme="pumpapex"] #view-settings .card .metric-row span,
body[data-theme="pumpapex"] #view-settings .settings-theme-embed span,
body[data-theme="pumpapex"] #view-settings #themeCurrentHint {
  color: #666666 !important;
}
body[data-theme="pumpapex"] #view-settings .metric-row {
  border-color: #e1e1e1 !important;
}
body[data-theme="pumpapex"] #view-settings .settings-theme-embed .btn,
body[data-theme="pumpapex"] #view-settings .settings-theme-embed .btn.ghost {
  background: #ffffff !important;
  background-image: none !important;
  color: #f5a623 !important;
  border: 1px solid rgba(245,166,35,0.34) !important;
  box-shadow: inset 0 0 0 1px rgba(245,166,35,0.06) !important;
}
body[data-theme="pumpapex"] #view-settings .settings-theme-embed .btn:hover,
body[data-theme="pumpapex"] #view-settings .settings-theme-embed .btn.ghost:hover {
  background: #fff8eb !important;
  color: #df8d00 !important;
  border-color: rgba(245,166,35,0.50) !important;
}

/* Pump APEX orange-inset v9: 白色卡片标题区的小按钮也统一成白底橙字。 */
body[data-theme="pumpapex"] .card .espnow-module-section-head .btn,
body[data-theme="pumpapex"] .card .espnow-module-section-head .btn.ghost,
body[data-theme="pumpapex"] .card > .espnow-module-section-head .btn,
body[data-theme="pumpapex"] .card > .espnow-module-section-head .btn.ghost,
body[data-theme="pumpapex"] .espnow-module-section-head .btn,
body[data-theme="pumpapex"] .espnow-module-section-head .btn.ghost {
  background: #ffffff !important;
  background-image: none !important;
  color: #f5a623 !important;
  border: 1px solid rgba(245,166,35,0.34) !important;
  box-shadow: inset 0 0 0 1px rgba(245,166,35,0.06) !important;
  text-shadow: none !important;
}
body[data-theme="pumpapex"] .card .espnow-module-section-head .btn:hover,
body[data-theme="pumpapex"] .card .espnow-module-section-head .btn.ghost:hover,
body[data-theme="pumpapex"] .espnow-module-section-head .btn:hover,
body[data-theme="pumpapex"] .espnow-module-section-head .btn.ghost:hover {
  background: #fff8eb !important;
  color: #df8d00 !important;
  border-color: rgba(245,166,35,0.50) !important;
}

/* Pump APEX orange-inset v10: 白底图表区文字/图例恢复可读。 */
body[data-theme="pumpapex"] .pump-plan-preview-chart,
body[data-theme="pumpapex"] .pump-plan-preview-chart *,
body[data-theme="pumpapex"] .pump-service-home-record-chart,
body[data-theme="pumpapex"] .pump-service-home-record-chart *,
body[data-theme="pumpapex"] .pump-plan-record-chart-shell,
body[data-theme="pumpapex"] .pump-plan-record-chart-shell * {
  text-shadow: none !important;
}
body[data-theme="pumpapex"] .pump-plan-preview-chart,
body[data-theme="pumpapex"] .pump-plan-record-chart-shell {
  background: #ffffff !important;
  color: #333333 !important;
  border-color: #e3e3e3 !important;
}
body[data-theme="pumpapex"] .pump-plan-bar-slot > span,
body[data-theme="pumpapex"] .pump-plan-bar-value,
body[data-theme="pumpapex"] .pump-plan-record-axis,
body[data-theme="pumpapex"] .pump-plan-record-axis *,
body[data-theme="pumpapex"] .pump-plan-chart-empty,
body[data-theme="pumpapex"] .pump-plan-calc-lines,
body[data-theme="pumpapex"] .pump-plan-calc-lines * {
  color: #7a7a7a !important;
}
body[data-theme="pumpapex"] .pump-plan-record-legend span {
  background: #ffffff !important;
  border-color: #e5e5e5 !important;
  color: #333333 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
}
body[data-theme="pumpapex"] .pump-plan-record-legend span em {
  color: #666666 !important;
}
body[data-theme="pumpapex"] .pump-plan-record-legend span b {
  color: #ffffff !important;
  text-shadow: none !important;
}
body[data-theme="pumpapex"] .pump-plan-record-foot,
body[data-theme="pumpapex"] .pump-plan-record-foot * {
  color: #666666 !important;
}

/* Pump APEX orange-inset v13: 补齐服务泵设置页/操作记录页，去掉深蓝灰底。 */
body[data-theme="pumpapex"] .pump-service-settings-sheet,
body[data-theme="pumpapex"] .pump-service-calibration-sheet,
body[data-theme="pumpapex"] .pump-service-time-sheet,
body[data-theme="pumpapex"] .pump-service-protection-sheet,
body[data-theme="pumpapex"] .pump-service-plan-home-sheet,
body[data-theme="pumpapex"] .pump-service-normal-plan-sheet,
body[data-theme="pumpapex"] .pump-service-normal-continuous-sheet,
body[data-theme="pumpapex"] .pump-service-apex-plan-sheet,
body[data-theme="pumpapex"] .pump-service-apex-continuous-sheet,
body[data-theme="pumpapex"] .pump-service-manual-sheet {
  background: #ffffff !important;
  color: #333333 !important;
  border-color: #d7d7d7 !important;
  box-shadow: 0 12px 30px rgba(0,0,0,0.10) !important;
}
body[data-theme="pumpapex"] .pump-service-settings-page,
body[data-theme="pumpapex"] .pump-service-records-page {
  background: #ffffff !important;
  background-image: none !important;
  border-color: #d7d7d7 !important;
  color: #333333 !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08) !important;
}
body[data-theme="pumpapex"] .pump-service-settings-page *,
body[data-theme="pumpapex"] .pump-service-records-page * {
  text-shadow: none !important;
}
body[data-theme="pumpapex"] .pump-service-settings-head h2,
body[data-theme="pumpapex"] .pump-service-records-head,
body[data-theme="pumpapex"] .pump-service-records-head *,
body[data-theme="pumpapex"] .pump-service-record-chart-head,
body[data-theme="pumpapex"] .pump-service-record-chart-head *,
body[data-theme="pumpapex"] .pump-service-record-main strong {
  color: #333333 !important;
}
body[data-theme="pumpapex"] .pump-service-records-head .section-note,
body[data-theme="pumpapex"] .pump-service-record-chart-head .section-note,
body[data-theme="pumpapex"] .pump-service-record-main span,
body[data-theme="pumpapex"] .pump-service-record-reason,
body[data-theme="pumpapex"] .pump-service-record-source,
body[data-theme="pumpapex"] .pump-service-record-foot {
  color: #666666 !important;
}

/* 设置页：按钮统一橙色，删除模块使用白底红字，不再暗底。 */
body[data-theme="pumpapex"] .pump-service-settings-button,
body[data-theme="pumpapex"] .pump-service-settings-button:not(.pump-service-settings-button--danger) {
  background: #f5a623 !important;
  background-image: none !important;
  border-color: #f5a623 !important;
  color: #ffffff !important;
  box-shadow: 0 10px 22px rgba(245,166,35,0.22) !important;
}
body[data-theme="pumpapex"] .pump-service-settings-button * {
  color: inherit !important;
}
body[data-theme="pumpapex"] .pump-service-settings-button:hover {
  background: #e99a13 !important;
  border-color: #e99a13 !important;
  color: #ffffff !important;
}
body[data-theme="pumpapex"] .pump-service-settings-button--danger {
  background: #ffffff !important;
  background-image: none !important;
  color: #d93025 !important;
  border-color: rgba(217,48,37,0.34) !important;
  box-shadow: inset 0 0 0 1px rgba(217,48,37,0.06) !important;
}
body[data-theme="pumpapex"] .pump-service-settings-button--danger:hover {
  background: #fff5f4 !important;
  color: #b3261e !important;
  border-color: rgba(217,48,37,0.50) !important;
}
body[data-theme="pumpapex"] .pump-service-settings-head .btn,
body[data-theme="pumpapex"] .pump-service-records-head .btn,
body[data-theme="pumpapex"] .pump-service-record-chart-actions .btn {
  background: #ffffff !important;
  background-image: none !important;
  color: #f5a623 !important;
  border: 1px solid rgba(245,166,35,0.34) !important;
  box-shadow: inset 0 0 0 1px rgba(245,166,35,0.06) !important;
}
body[data-theme="pumpapex"] .pump-service-record-chart-actions .btn.warn,
body[data-theme="pumpapex"] .pump-service-record-chart-actions .btn.cancel-action {
  background: #ffffff !important;
  color: #d93025 !important;
  border-color: rgba(217,48,37,0.34) !important;
}
body[data-theme="pumpapex"] .pump-service-settings-status {
  background: #f5a623 !important;
  background-image: none !important;
  border: 1px solid #f5a623 !important;
  border-radius: 18px !important;
  padding: 18px !important;
  color: #ffffff !important;
  box-shadow: 0 10px 22px rgba(245,166,35,0.22) !important;
}
body[data-theme="pumpapex"] .pump-service-settings-status,
body[data-theme="pumpapex"] .pump-service-settings-status * {
  color: #ffffff !important;
}

/* 操作记录页：顶部统计橙色，图表和列表白底深字。 */
body[data-theme="pumpapex"] .pump-service-record-summary-grid > div,
body[data-theme="pumpapex"] .pump-service-record-source {
  background: #f5a623 !important;
  background-image: none !important;
  border-color: #f5a623 !important;
  color: #ffffff !important;
  box-shadow: 0 10px 22px rgba(245,166,35,0.22) !important;
}
body[data-theme="pumpapex"] .pump-service-record-summary-grid > div *,
body[data-theme="pumpapex"] .pump-service-record-source,
body[data-theme="pumpapex"] .pump-service-record-source * {
  color: #ffffff !important;
}
body[data-theme="pumpapex"] .pump-service-record-chart-wrap,
body[data-theme="pumpapex"] .pump-service-record-list {
  background: #ffffff !important;
  background-image: none !important;
  border-color: #d7d7d7 !important;
  color: #333333 !important;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06) !important;
}
body[data-theme="pumpapex"] .pump-service-record-chart-wrap *,
body[data-theme="pumpapex"] .pump-service-record-list * {
  color: inherit;
}
body[data-theme="pumpapex"] .pump-service-record-row {
  border-color: #e4e4e4 !important;
}
body[data-theme="pumpapex"] .pump-service-record-main strong {
  color: #333333 !important;
  font-weight: 900 !important;
}
body[data-theme="pumpapex"] .pump-service-record-main span,
body[data-theme="pumpapex"] .pump-service-record-reason {
  color: #666666 !important;
}
body[data-theme="pumpapex"] .pump-service-record-meta span {
  background: #f4f4f4 !important;
  color: #333333 !important;
  border: 1px solid #ececec !important;
}
body[data-theme="pumpapex"] .pump-service-record-meta span.is-plan {
  background: #eaf4ff !important;
  color: #1565c0 !important;
}
body[data-theme="pumpapex"] .pump-service-record-meta span.is-manual {
  background: #e9fbf7 !important;
  color: #00897b !important;
}
body[data-theme="pumpapex"] .pump-service-record-meta span.is-apex {
  background: #f2eaff !important;
  color: #7e45db !important;
}
body[data-theme="pumpapex"] .pump-service-record-meta span.is-warn,
body[data-theme="pumpapex"] .pump-service-record-meta span.is-fault {
  background: #fff1f0 !important;
  color: #c62828 !important;
}
body[data-theme="pumpapex"] .pump-service-record-meta span.is-calibration {
  background: #fff7e6 !important;
  color: #b86f00 !important;
}

/* Pump APEX orange-inset v14: APEX 曲线改成橙底白线，数值放在图内右上/右下。 */
body[data-theme="pumpapex"] .apex-chart-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}
body[data-theme="pumpapex"] .apex-chart-card {
  position: relative !important;
  min-height: 160px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #f5a623 !important;
  background-image: none !important;
  box-shadow: none !important;
  overflow: hidden !important;
}
body[data-theme="pumpapex"] .apex-chart-card *,
body[data-theme="pumpapex"] .apex-chart-card .summary-label {
  color: #ffffff !important;
  text-shadow: none !important;
}
body[data-theme="pumpapex"] .apex-chart-top {
  position: absolute !important;
  inset: 8px 8px auto 10px !important;
  z-index: 2 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  min-height: 0 !important;
  pointer-events: none !important;
}
body[data-theme="pumpapex"] .apex-chart-title {
  grid-column: 1 !important;
  justify-self: start !important;
  align-self: start !important;
  max-width: 58% !important;
  font-size: 13px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  opacity: 0.98 !important;
}
body[data-theme="pumpapex"] .apex-chart-value {
  grid-column: 2 !important;
  justify-self: end !important;
  align-self: start !important;
  font-size: 16px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  opacity: 0.98 !important;
}
body[data-theme="pumpapex"] .apex-chart {
  width: 100% !important;
  height: 160px !important;
  aspect-ratio: auto !important;
  border-radius: 10px !important;
  background: #f5a623 !important;
  background-image: none !important;
  border: 0 !important;
  overflow: hidden !important;
}
body[data-theme="pumpapex"] .apex-chart svg,
body[data-theme="pumpapex"] .apex-chart-svg {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  background: #f5a623 !important;
}
body[data-theme="pumpapex"] .apex-chart-svg polyline {
  stroke: #ffffff !important;
  filter: none !important;
}
body[data-theme="pumpapex"] .apex-chart-svg circle {
  fill: #ffffff !important;
}
body[data-theme="pumpapex"] .apex-chart-svg text {
  fill: #ffffff !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  font-family: inherit !important;
}
body[data-theme="pumpapex"] .apex-chart-empty {
  background: #f5a623 !important;
  color: rgba(255,255,255,0.88) !important;
  height: 160px !important;
}
@media (max-width: 560px) {
  body[data-theme="pumpapex"] .apex-chart-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Pump APEX orange-inset v15: 补齐弹窗、表单、操作记录、报警、无线/校准残留。根因是早期橙卡白字规则覆盖到白底表单。 */
body[data-theme="pumpapex"] .overlay .sheet,
body[data-theme="pumpapex"] .overlay .sheet * {
  text-shadow: none !important;
}

/* 白色弹窗/白色内容区：标题、标签、正文全部恢复深色。 */
body[data-theme="pumpapex"] .overlay .sheet h1,
body[data-theme="pumpapex"] .overlay .sheet h2,
body[data-theme="pumpapex"] .overlay .sheet h3,
body[data-theme="pumpapex"] .overlay .sheet h4,
body[data-theme="pumpapex"] .overlay .sheet p,
body[data-theme="pumpapex"] .overlay .sheet label,
body[data-theme="pumpapex"] .overlay .sheet label span,
body[data-theme="pumpapex"] .overlay .sheet .summary-label,
body[data-theme="pumpapex"] .overlay .sheet .summary-value,
body[data-theme="pumpapex"] .overlay .sheet .summary-sub,
body[data-theme="pumpapex"] .overlay .sheet .field,
body[data-theme="pumpapex"] .overlay .sheet .field *,
body[data-theme="pumpapex"] .overlay .sheet .section-note,
body[data-theme="pumpapex"] .overlay .sheet .helper,
body[data-theme="pumpapex"] .overlay .sheet .helper-lines,
body[data-theme="pumpapex"] .overlay .sheet .module-page-field-label,
body[data-theme="pumpapex"] .overlay .sheet .pump-service-calibration-row span,
body[data-theme="pumpapex"] .overlay .sheet .pump-service-calibration-row em,
body[data-theme="pumpapex"] .overlay .sheet .pump-service-protection-row span,
body[data-theme="pumpapex"] .overlay .sheet .pump-service-time-note,
body[data-theme="pumpapex"] .overlay .sheet .trim-row-label,
body[data-theme="pumpapex"] .overlay .sheet .trim-row-label *,
body[data-theme="pumpapex"] .overlay .sheet .calibration-confirm-field,
body[data-theme="pumpapex"] .overlay .sheet .calibration-confirm-field *,
body[data-theme="pumpapex"] .overlay .sheet .manual-mode-field,
body[data-theme="pumpapex"] .overlay .sheet .manual-mode-field *,
body[data-theme="pumpapex"] .overlay .sheet .plan-mode-field,
body[data-theme="pumpapex"] .overlay .sheet .plan-mode-field *,
body[data-theme="pumpapex"] .overlay .sheet .plan-time-field,
body[data-theme="pumpapex"] .overlay .sheet .plan-time-field *,
body[data-theme="pumpapex"] .overlay .sheet .switch-inline,
body[data-theme="pumpapex"] .overlay .sheet .switch-inline * {
  color: #333333 !important;
  -webkit-text-fill-color: #333333 !important;
}

body[data-theme="pumpapex"] .overlay .sheet .summary-sub,
body[data-theme="pumpapex"] .overlay .sheet .section-note,
body[data-theme="pumpapex"] .overlay .sheet .helper,
body[data-theme="pumpapex"] .overlay .sheet .helper-lines,
body[data-theme="pumpapex"] .overlay .sheet small,
body[data-theme="pumpapex"] .overlay .sheet .field small,
body[data-theme="pumpapex"] .overlay .sheet .field .hint,
body[data-theme="pumpapex"] .overlay .sheet .module-page-field-label,
body[data-theme="pumpapex"] .overlay .sheet .pump-service-calibration-row em {
  color: #666666 !important;
  -webkit-text-fill-color: #666666 !important;
}

/* 输入框、下拉框、文本域：统一白底深字，避免空白不可见。 */
body[data-theme="pumpapex"] input,
body[data-theme="pumpapex"] select,
body[data-theme="pumpapex"] textarea,
body[data-theme="pumpapex"] .overlay .sheet input,
body[data-theme="pumpapex"] .overlay .sheet select,
body[data-theme="pumpapex"] .overlay .sheet textarea,
body[data-theme="pumpapex"] .module-page-field input,
body[data-theme="pumpapex"] .module-page-field select,
body[data-theme="pumpapex"] .field input,
body[data-theme="pumpapex"] .field select,
body[data-theme="pumpapex"] .field textarea,
body[data-theme="pumpapex"] .trim-row input,
body[data-theme="pumpapex"] .espnow-flow-target-grid input,
body[data-theme="pumpapex"] .espnow-flow-cal-confirm-grid input,
body[data-theme="pumpapex"] .pump-cal-input-grid input,
body[data-theme="pumpapex"] .pump-service-calibration-row input,
body[data-theme="pumpapex"] .pump-service-calibration-row select,
body[data-theme="pumpapex"] .pump-service-protection-row input,
body[data-theme="pumpapex"] .pump-service-normal-plan-row input,
body[data-theme="pumpapex"] .pump-service-normal-plan-row select,
body[data-theme="pumpapex"] .pump-service-normal-continuous-row input,
body[data-theme="pumpapex"] .pump-service-normal-continuous-row select,
body[data-theme="pumpapex"] .pump-service-apex-plan-row input,
body[data-theme="pumpapex"] .pump-service-apex-plan-row select,
body[data-theme="pumpapex"] .pump-service-apex-continuous-row input,
body[data-theme="pumpapex"] .pump-service-apex-continuous-row select,
body[data-theme="pumpapex"] .pump-service-manual-row input,
body[data-theme="pumpapex"] .pump-service-manual-row select {
  background: #ffffff !important;
  background-image: none !important;
  border: 1px solid #dedede !important;
  color: #333333 !important;
  -webkit-text-fill-color: #333333 !important;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.015) !important;
}
body[data-theme="pumpapex"] input::placeholder,
body[data-theme="pumpapex"] textarea::placeholder,
body[data-theme="pumpapex"] .overlay .sheet input::placeholder,
body[data-theme="pumpapex"] .overlay .sheet textarea::placeholder {
  color: #8a8a8a !important;
  -webkit-text-fill-color: #8a8a8a !important;
  opacity: 1 !important;
}

/* 弹窗内的普通按钮体系：白底橙字；主按钮橙底白字；危险按钮白底红字；禁用灰底灰字。 */
body[data-theme="pumpapex"] .overlay .sheet .btn,
body[data-theme="pumpapex"] .overlay .sheet .toggle-btn,
body[data-theme="pumpapex"] .overlay .sheet .icon-btn,
body[data-theme="pumpapex"] .event-log-toolbar-actions .btn,
body[data-theme="pumpapex"] .alarm-actions .btn,
body[data-theme="pumpapex"] .page7-actions .btn,
body[data-theme="pumpapex"] .espnow-module-actions .btn,
body[data-theme="pumpapex"] .espnow-detail-action-grid .btn,
body[data-theme="pumpapex"] .pump-service-record-chart-actions .btn {
  background: #ffffff !important;
  background-image: none !important;
  border: 1px solid rgba(245, 166, 35, 0.36) !important;
  color: #f5a623 !important;
  -webkit-text-fill-color: #f5a623 !important;
  box-shadow: inset 0 0 0 1px rgba(245, 166, 35, 0.05) !important;
}
body[data-theme="pumpapex"] .overlay .sheet .btn.primary,
body[data-theme="pumpapex"] .overlay .sheet .btn.confirm-action,
body[data-theme="pumpapex"] .overlay .sheet .toggle-btn.active,
body[data-theme="pumpapex"] .event-log-toolbar-actions .btn.primary,
body[data-theme="pumpapex"] .alarm-actions .btn.primary,
body[data-theme="pumpapex"] .page7-actions .btn.primary,
body[data-theme="pumpapex"] .espnow-module-actions .btn.primary,
body[data-theme="pumpapex"] .espnow-detail-action-grid .btn.primary {
  background: #f5a623 !important;
  background-image: none !important;
  border-color: #f5a623 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: 0 10px 22px rgba(245, 166, 35, 0.22) !important;
}
body[data-theme="pumpapex"] .overlay .sheet .btn.warn,
body[data-theme="pumpapex"] .overlay .sheet .btn.danger,
body[data-theme="pumpapex"] .overlay .sheet .btn.cancel-action,
body[data-theme="pumpapex"] .event-log-toolbar-actions .btn.warn,
body[data-theme="pumpapex"] .alarm-actions .btn.warn,
body[data-theme="pumpapex"] .alarm-actions .btn.cancel-action,
body[data-theme="pumpapex"] .espnow-module-actions .btn.warn,
body[data-theme="pumpapex"] .espnow-detail-action-grid .btn.warn {
  background: #ffffff !important;
  border-color: rgba(217, 48, 37, 0.36) !important;
  color: #d93025 !important;
  -webkit-text-fill-color: #d93025 !important;
}
body[data-theme="pumpapex"] .overlay .sheet .btn:disabled,
body[data-theme="pumpapex"] .overlay .sheet .toggle-btn:disabled,
body[data-theme="pumpapex"] .overlay .sheet .btn.disabled,
body[data-theme="pumpapex"] .overlay .sheet .toggle-btn.disabled,
body[data-theme="pumpapex"] .event-log-toolbar-actions .btn:disabled,
body[data-theme="pumpapex"] .alarm-actions .btn:disabled,
body[data-theme="pumpapex"] .page7-actions .btn:disabled,
body[data-theme="pumpapex"] .espnow-module-actions .btn:disabled,
body[data-theme="pumpapex"] .espnow-detail-action-grid .btn:disabled {
  background: #ececec !important;
  background-image: none !important;
  border-color: #d1d1d1 !important;
  color: #8f8f8f !important;
  -webkit-text-fill-color: #8f8f8f !important;
  opacity: 1 !important;
  box-shadow: none !important;
}

/* 操作记录页：工具栏、记录卡、徽章从白底白字恢复可读。 */
body[data-theme="pumpapex"] .event-log-sheet,
body[data-theme="pumpapex"] .event-log-shell,
body[data-theme="pumpapex"] .event-log-toolbar,
body[data-theme="pumpapex"] .event-log-filter-pop {
  background: #ffffff !important;
  background-image: none !important;
  color: #333333 !important;
  border-color: #d7d7d7 !important;
}
body[data-theme="pumpapex"] .event-log-toolbar-copy strong,
body[data-theme="pumpapex"] .event-log-filter-head strong,
body[data-theme="pumpapex"] .event-log-filter-current,
body[data-theme="pumpapex"] .event-log-title,
body[data-theme="pumpapex"] .event-log-item-head,
body[data-theme="pumpapex"] .event-log-item-head * {
  color: #333333 !important;
  -webkit-text-fill-color: #333333 !important;
}
body[data-theme="pumpapex"] .event-log-toolbar-copy span,
body[data-theme="pumpapex"] .event-log-filter-head span,
body[data-theme="pumpapex"] .event-log-time,
body[data-theme="pumpapex"] .event-log-summary,
body[data-theme="pumpapex"] .event-log-meta-line,
body[data-theme="pumpapex"] .event-log-empty {
  color: #666666 !important;
  -webkit-text-fill-color: #666666 !important;
}
body[data-theme="pumpapex"] .event-log-item,
body[data-theme="pumpapex"] .event-log-empty {
  background: #ffffff !important;
  background-image: none !important;
  border-color: #dddddd !important;
  color: #333333 !important;
  box-shadow: 0 8px 20px rgba(0,0,0,0.04) !important;
}
body[data-theme="pumpapex"] .event-log-badge,
body[data-theme="pumpapex"] .event-log-filter-chip {
  background: #fff8eb !important;
  border-color: rgba(245, 166, 35, 0.36) !important;
  color: #b86f00 !important;
  -webkit-text-fill-color: #b86f00 !important;
}
body[data-theme="pumpapex"] .event-log-filter-chip.active {
  background: #f5a623 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border-color: #f5a623 !important;
}
body[data-theme="pumpapex"] .event-log-badge.alarm,
body[data-theme="pumpapex"] .alarm-popup-reason {
  background: #fff1f0 !important;
  border-color: rgba(217,48,37,0.28) !important;
  color: #c62828 !important;
  -webkit-text-fill-color: #c62828 !important;
}
body[data-theme="pumpapex"] .event-log-badge.makeup,
body[data-theme="pumpapex"] .event-log-badge.system,
body[data-theme="pumpapex"] .event-log-badge.exchange,
body[data-theme="pumpapex"] .event-log-badge.salt,
body[data-theme="pumpapex"] .event-log-badge.calibration,
body[data-theme="pumpapex"] .event-log-badge.neutral {
  background: #fff8eb !important;
  color: #b86f00 !important;
  -webkit-text-fill-color: #b86f00 !important;
}

/* 报警详情：标签不要再淡到看不见。 */
body[data-theme="pumpapex"] .global-alarm-card,
body[data-theme="pumpapex"] .alarm-popup-reason-list {
  color: #333333 !important;
}
body[data-theme="pumpapex"] .global-alarm-card .summary-card {
  background: #f5a623 !important;
  color: #ffffff !important;
  border-color: #f5a623 !important;
}
body[data-theme="pumpapex"] .global-alarm-card .summary-card *,
body[data-theme="pumpapex"] .global-alarm-card .alarm-popup-reason strong {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
body[data-theme="pumpapex"] .alarm-popup-reason {
  font-weight: 800 !important;
}

/* 无线设置/模块页：状态框不再深灰暗字，入口卡保留橙底白字。 */
body[data-theme="pumpapex"] .module-page-field,
body[data-theme="pumpapex"] .espnow-panel,
body[data-theme="pumpapex"] .espnow-guide-box,
body[data-theme="pumpapex"] .espnow-error-box {
  color: #333333 !important;
}
body[data-theme="pumpapex"] .espnow-status-bar,
body[data-theme="pumpapex"] .module-page-status-strip,
body[data-theme="pumpapex"] .espnow-detail-control-card,
body[data-theme="pumpapex"] .espnow-flow-cal-panel {
  background: #f5a623 !important;
  background-image: none !important;
  border-color: #f5a623 !important;
  color: #ffffff !important;
  box-shadow: 0 10px 22px rgba(245, 166, 35, 0.20) !important;
}
body[data-theme="pumpapex"] .espnow-status-bar *,
body[data-theme="pumpapex"] .module-page-status-strip *,
body[data-theme="pumpapex"] .espnow-detail-control-card .summary-label,
body[data-theme="pumpapex"] .espnow-detail-control-card .section-note,
body[data-theme="pumpapex"] .espnow-detail-control-card .summary-sub,
body[data-theme="pumpapex"] .espnow-flow-cal-panel .summary-label,
body[data-theme="pumpapex"] .espnow-flow-cal-panel .section-note,
body[data-theme="pumpapex"] .espnow-flow-cal-panel .espnow-detail-dual-line,
body[data-theme="pumpapex"] .espnow-flow-cal-panel .espnow-detail-dual-line * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
body[data-theme="pumpapex"] .module-page-entry-card,
body[data-theme="pumpapex"] .espnow-module-card {
  background: #f5a623 !important;
  background-image: none !important;
  border-color: #f5a623 !important;
  color: #ffffff !important;
}
body[data-theme="pumpapex"] .module-page-entry-card *,
body[data-theme="pumpapex"] .espnow-module-card * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
body[data-theme="pumpapex"] .module-page-entry-card .summary-label:empty::after {
  content: "模块状态";
}
body[data-theme="pumpapex"] .module-page-entry-card .summary-value:empty::after {
  content: "查看";
}
body[data-theme="pumpapex"] .module-page-entry-card .summary-sub:empty::after {
  content: "进入页面";
}

/* 服务型泵设置页/记录页/校准页：彻底压过旧深色页面。 */
body[data-theme="pumpapex"] .overlay .pump-service-settings-page,
body[data-theme="pumpapex"] .overlay .pump-service-records-page,
body[data-theme="pumpapex"] .overlay .pump-service-calibration-page,
body[data-theme="pumpapex"] .overlay .pump-service-time-page,
body[data-theme="pumpapex"] .overlay .pump-service-protection-page,
body[data-theme="pumpapex"] .overlay .pump-service-plan-home-page,
body[data-theme="pumpapex"] .overlay .pump-service-normal-plan-page,
body[data-theme="pumpapex"] .overlay .pump-service-normal-continuous-page,
body[data-theme="pumpapex"] .overlay .pump-service-apex-plan-page,
body[data-theme="pumpapex"] .overlay .pump-service-apex-continuous-page,
body[data-theme="pumpapex"] .overlay .pump-service-manual-page {
  background: #ffffff !important;
  background-image: none !important;
  border-color: #d7d7d7 !important;
  color: #333333 !important;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08) !important;
}
body[data-theme="pumpapex"] .overlay .pump-service-settings-head h2,
body[data-theme="pumpapex"] .overlay .pump-service-calibration-head h2,
body[data-theme="pumpapex"] .overlay .pump-service-time-head h2,
body[data-theme="pumpapex"] .overlay .pump-service-time-head h3,
body[data-theme="pumpapex"] .overlay .pump-service-records-head,
body[data-theme="pumpapex"] .overlay .pump-service-records-head * {
  color: #333333 !important;
  -webkit-text-fill-color: #333333 !important;
}
body[data-theme="pumpapex"] .pump-service-settings-placeholder {
  background: #ffffff !important;
  background-image: none !important;
  border-color: #e6e6e6 !important;
  color: #333333 !important;
  box-shadow: none !important;
}
body[data-theme="pumpapex"] .pump-service-settings-placeholder * {
  color: #333333 !important;
  -webkit-text-fill-color: #333333 !important;
}
body[data-theme="pumpapex"] .pump-service-settings-button--danger,
body[data-theme="pumpapex"] .overlay .pump-service-settings-button--danger {
  background: #ffffff !important;
  color: #d93025 !important;
  -webkit-text-fill-color: #d93025 !important;
  border-color: rgba(217,48,37,0.36) !important;
  box-shadow: inset 0 0 0 1px rgba(217,48,37,0.06) !important;
}

/* 服务型泵流量校准详情：左侧说明与右侧橙卡文字统一可读。 */
body[data-theme="pumpapex"] .pump-service-calibration-status,
body[data-theme="pumpapex"] .pump-service-calibration-status * {
  background: #f5a623 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border-color: #f5a623 !important;
}
body[data-theme="pumpapex"] .pump-service-calibration-chart-wrap,
body[data-theme="pumpapex"] .pump-service-calibration-chart-wrap * {
  color: #333333 !important;
  -webkit-text-fill-color: #333333 !important;
}
body[data-theme="pumpapex"] .pump-service-calibration-chart-wrap {
  background: #ffffff !important;
  border-color: #d7d7d7 !important;
}

/* 橙色卡片内部的白色操作按钮必须是橙字，避免白块白字。 */
body[data-theme="pumpapex"] .espnow-flow-cal-panel .btn,
body[data-theme="pumpapex"] .espnow-detail-control-card .btn,
body[data-theme="pumpapex"] .pump-service-calibration-status .btn,
body[data-theme="pumpapex"] .pump-service-calibration-status input,
body[data-theme="pumpapex"] .pump-service-calibration-status select {
  background: #ffffff !important;
  color: #f5a623 !important;
  -webkit-text-fill-color: #f5a623 !important;
  border-color: rgba(255,255,255,0.88) !important;
}

/* 顶部统计橙卡仍保持橙底白字。 */
body[data-theme="pumpapex"] .pump-service-record-summary-grid > div,
body[data-theme="pumpapex"] .pump-service-record-summary-grid > div *,
body[data-theme="pumpapex"] .pump-service-record-source,
body[data-theme="pumpapex"] .pump-service-record-source * {
  background-color: #f5a623 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Pump APEX orange-inset v16: 视觉确认返修——无线设置状态块、服务泵表单行、空入口文字。 */
body[data-theme="pumpapex"] .espnow-entry-toggle .toggle-label,
body[data-theme="pumpapex"] .espnow-entry-toggle .toggle-hint {
  display: block !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
  text-align: center !important;
}
body[data-theme="pumpapex"] .espnow-entry-toggle .toggle-label {
  font-size: 21px !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
}
body[data-theme="pumpapex"] .espnow-entry-toggle .toggle-hint {
  margin-top: 6px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

body[data-theme="pumpapex"] .metric-pill,
body[data-theme="pumpapex"] #overlay-espnow-settings .metric-pill {
  background: #f5a623 !important;
  background-image: none !important;
  border-color: #f5a623 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: 0 10px 22px rgba(245, 166, 35, 0.18) !important;
}
body[data-theme="pumpapex"] .metric-pill * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

body[data-theme="pumpapex"] .pump-service-manual-row,
body[data-theme="pumpapex"] .pump-service-protection-row,
body[data-theme="pumpapex"] .pump-service-time-status > div,
body[data-theme="pumpapex"] .pump-service-calibration-row,
body[data-theme="pumpapex"] .pump-service-normal-plan-row,
body[data-theme="pumpapex"] .pump-service-normal-continuous-row,
body[data-theme="pumpapex"] .pump-service-apex-plan-row,
body[data-theme="pumpapex"] .pump-service-apex-continuous-row {
  background: #ffffff !important;
  background-image: none !important;
  border: 1px solid #dedede !important;
  border-radius: 18px !important;
  color: #333333 !important;
  -webkit-text-fill-color: #333333 !important;
  box-shadow: 0 6px 16px rgba(0,0,0,0.035) !important;
}
body[data-theme="pumpapex"] .pump-service-manual-row,
body[data-theme="pumpapex"] .pump-service-calibration-row {
  padding: 12px 14px !important;
}
body[data-theme="pumpapex"] .pump-service-manual-row *,
body[data-theme="pumpapex"] .pump-service-protection-row *,
body[data-theme="pumpapex"] .pump-service-time-status > div *,
body[data-theme="pumpapex"] .pump-service-calibration-row *,
body[data-theme="pumpapex"] .pump-service-normal-plan-row *,
body[data-theme="pumpapex"] .pump-service-normal-continuous-row *,
body[data-theme="pumpapex"] .pump-service-apex-plan-row *,
body[data-theme="pumpapex"] .pump-service-apex-continuous-row * {
  color: #333333 !important;
  -webkit-text-fill-color: #333333 !important;
}
body[data-theme="pumpapex"] .pump-service-manual-row em,
body[data-theme="pumpapex"] .pump-service-protection-row em,
body[data-theme="pumpapex"] .pump-service-calibration-row em {
  color: #666666 !important;
  -webkit-text-fill-color: #666666 !important;
}

body[data-theme="pumpapex"] .pump-service-manual-status,
body[data-theme="pumpapex"] .pump-service-settings-status,
body[data-theme="pumpapex"] .pump-service-protection-status,
body[data-theme="pumpapex"] #espnowPumpServiceProtectionStatusText {
  background: #f5a623 !important;
  background-image: none !important;
  border: 1px solid #f5a623 !important;
  border-radius: 18px !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: 0 10px 22px rgba(245, 166, 35, 0.20) !important;
}
body[data-theme="pumpapex"] .pump-service-manual-status,
body[data-theme="pumpapex"] .pump-service-manual-status *,
body[data-theme="pumpapex"] .pump-service-settings-status,
body[data-theme="pumpapex"] .pump-service-settings-status *,
body[data-theme="pumpapex"] .pump-service-protection-status,
body[data-theme="pumpapex"] .pump-service-protection-status *,
body[data-theme="pumpapex"] #espnowPumpServiceProtectionStatusText,
body[data-theme="pumpapex"] #espnowPumpServiceProtectionStatusText * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
body[data-theme="pumpapex"] .pump-service-manual-status {
  padding: 22px 18px !important;
  margin: 20px 0 !important;
}

body[data-theme="pumpapex"] .pump-service-manual-row input,
body[data-theme="pumpapex"] .pump-service-manual-row select,
body[data-theme="pumpapex"] .pump-service-protection-row input,
body[data-theme="pumpapex"] .pump-service-calibration-row input,
body[data-theme="pumpapex"] .pump-service-calibration-row select {
  background: #ffffff !important;
  color: #333333 !important;
  -webkit-text-fill-color: #333333 !important;
  border-color: #dedede !important;
}

/* 橙卡中的状态说明统一白字，避免设置页橙底深字。 */
body[data-theme="pumpapex"] .pump-service-settings-status p,
body[data-theme="pumpapex"] .pump-service-settings-status span {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Pump APEX orange-inset v17: 视觉确认二次返修——更高优先级压过隐藏说明/白底表单规则。 */
body[data-theme="pumpapex"] .quick-card.espnow-entry-toggle > span.toggle-label,
body[data-theme="pumpapex"] .quick-card.espnow-entry-toggle > span.toggle-hint,
body[data-theme="pumpapex"] .espnow-entry-card.espnow-entry-toggle > span.toggle-label,
body[data-theme="pumpapex"] .espnow-entry-card.espnow-entry-toggle > span.toggle-hint {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
body[data-theme="pumpapex"] .quick-card.espnow-entry-toggle > span.toggle-label {
  font-size: 20px !important;
  font-weight: 900 !important;
}
body[data-theme="pumpapex"] .quick-card.espnow-entry-toggle > span.toggle-hint {
  margin-top: 6px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

body[data-theme="pumpapex"] #overlay-pump-service-manual .pump-service-manual-status p,
body[data-theme="pumpapex"] #overlay-pump-service-manual #espnowPumpServiceManualStatusText,
body[data-theme="pumpapex"] #overlay-pump-service-settings .pump-service-settings-status p,
body[data-theme="pumpapex"] #overlay-pump-service-settings .pump-service-settings-status span,
body[data-theme="pumpapex"] #overlay-pump-service-protection-settings #espnowPumpServiceProtectionStatusText,
body[data-theme="pumpapex"] #overlay-pump-service-protection-settings #espnowPumpServiceProtectionStatusText * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

body[data-theme="pumpapex"] #overlay-alarm-detail .summary-card,
body[data-theme="pumpapex"] #overlay-alarm-detail .summary-card * {
  background-color: #f5a623 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
body[data-theme="pumpapex"] #overlay-alarm-detail .chip-list .chip,
body[data-theme="pumpapex"] #overlay-alarm-detail .chip,
body[data-theme="pumpapex"] #overlay-alarm-detail .chip.warn,
body[data-theme="pumpapex"] #overlay-alarm-detail .chip.good {
  background: #f5a623 !important;
  background-image: none !important;
  border-color: #f5a623 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: 0 6px 14px rgba(245,166,35,0.16) !important;
}
body[data-theme="pumpapex"] #overlay-alarm-detail .summary-label {
  color: #333333 !important;
  -webkit-text-fill-color: #333333 !important;
}
body[data-theme="pumpapex"] #overlay-alarm-detail .summary-card .summary-label,
body[data-theme="pumpapex"] #overlay-alarm-detail .summary-card .summary-value,
body[data-theme="pumpapex"] #overlay-alarm-detail .summary-card .summary-sub {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Pump APEX orange-inset v18: 无线设置最近反馈长文本不溢出。 */
body[data-theme="pumpapex"] #overlay-espnow-settings .metric-pill {
  overflow: hidden !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  line-height: 1.25 !important;
  font-size: 14px !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
}


/* Pump APEX embedded-button-text-fix-1: 修正切换行内嵌按钮 hover 白底白字，悬停改深橙白字。 */
body[data-theme="pumpapex"] .switch-row .toggle-btn:hover,
body[data-theme="pumpapex"] .summary-card .toggle-btn:hover,
body[data-theme="pumpapex"] .summary-card .btn:hover,
body[data-theme="pumpapex"] .status-box .toggle-btn:hover,
body[data-theme="pumpapex"] .status-box .btn:hover,
body[data-theme="pumpapex"] .trim-panel .toggle-btn:hover,
body[data-theme="pumpapex"] .trim-panel .btn:hover {
  background: #e99a13 !important;
  background-image: none !important;
  border-color: #e99a13 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 8px 18px rgba(245,166,35,0.22) !important;
}
body[data-theme="pumpapex"] .switch-row .toggle-btn:hover *,
body[data-theme="pumpapex"] .summary-card .toggle-btn:hover *,
body[data-theme="pumpapex"] .summary-card .btn:hover *,
body[data-theme="pumpapex"] .status-box .toggle-btn:hover *,
body[data-theme="pumpapex"] .status-box .btn:hover *,
body[data-theme="pumpapex"] .trim-panel .toggle-btn:hover *,
body[data-theme="pumpapex"] .trim-panel .btn:hover * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
/* Pump APEX calibration-launch-text-fix-1: 校准启动橙色按钮文字强制白色。 */
body[data-theme="pumpapex"] .calibration-launch-btn,
body[data-theme="pumpapex"] .calibration-launch-btn span,
body[data-theme="pumpapex"] .calibration-launch-btn * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Pump APEX calibration-help-text-fix-1: 校准说明白底文字恢复深色。 */
body[data-theme="pumpapex"] #view-calibration .helper-lines,
body[data-theme="pumpapex"] #view-calibration .helper-lines *,
body[data-theme="pumpapex"] #view-calibration .section-note,
body[data-theme="pumpapex"] #view-calibration .section-note * {
  color: #333333 !important;
  -webkit-text-fill-color: #333333 !important;
  text-shadow: none !important;
}
/* Pump APEX plan-days-fix-1: 换水计划执行日期按钮适配橙白主题。 */
body[data-theme="pumpapex"] .days label {
  background: #ffffff !important;
  background-image: none !important;
  border: 1px solid rgba(245,166,35,0.36) !important;
  color: #df8d00 !important;
  -webkit-text-fill-color: #df8d00 !important;
  text-shadow: none !important;
  box-shadow: inset 0 0 0 1px rgba(245,166,35,0.04) !important;
}
body[data-theme="pumpapex"] .days label.active {
  background: #f5a623 !important;
  background-image: none !important;
  border-color: #f5a623 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: 0 6px 14px rgba(245,166,35,0.18) !important;
}
body[data-theme="pumpapex"] .days label:hover {
  background: #fff8ed !important;
  border-color: rgba(245,166,35,0.55) !important;
  color: #df8d00 !important;
  -webkit-text-fill-color: #df8d00 !important;
}
body[data-theme="pumpapex"] .days label.active:hover {
  background: #e99a13 !important;
  border-color: #e99a13 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Pump APEX toast-slide-bottom-1: 操作提示从底部滑上，停在下方，不居中弹出。 */
.toast {
  left: calc(38% + 0px) !important;
  top: auto !important;
  bottom: clamp(112px, 14vh, 160px) !important;
  transform: translate(-50%, 28px) scale(0.98) !important;
  z-index: 120 !important;
  min-width: 112px !important;
  max-width: min(420px, calc(100vw - 64px)) !important;
  padding: 12px 22px !important;
  border-radius: 16px !important;
  background: rgba(51, 51, 51, 0.92) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}
.toast.show {
  opacity: 1 !important;
  transform: translate(-50%, 0) scale(1) !important;
}
body[data-theme="pumpapex"] .toast {
  background: rgba(51, 51, 51, 0.92) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* FLOW_TODO_REMOVE_FEEDBACK_CARD: 第1期隐藏专用短反馈卡，后续审核通过后再清理源码。 */
.flow-feedback-card-hidden {
  display: none !important;
}

.toast.error {
  background: rgba(155, 30, 30, 0.94) !important;
  border-color: rgba(255, 170, 150, 0.36) !important;
}
@media (max-width: 560px) {
  .toast {
    bottom: 118px !important;
    font-size: 15px !important;
    padding: 11px 20px !important;
  }
}

/* Pump APEX autosave-toast-all-1: 自动保存大橙条全部移除，统一使用 toast。 */
body[data-theme="pumpapex"] #planEditorAutoSaveStatusBox,
body[data-theme="pumpapex"] #makeupEditorAutoSaveStatusBox,
body[data-theme="pumpapex"] #apexAutoSaveStatusBox,
body[data-theme="pumpapex"] #apexSaltGuardAutoSaveStatusBox {
  display: none !important;
}

/* Pump APEX main-container-opacity30-1: 白色主容器透明度 30%。 */
body[data-theme="pumpapex"] .card:not(.summary-card):not(.quick-card):not(.mini-card):not(.status-box):not(.switch-row):not(.trim-panel):not(.espnow-module-card):not(.module-page-entry-card):not(.espnow-detail-control-card):not(.espnow-flow-cal-panel),
body[data-theme="pumpapex"] .sheet,
body[data-theme="pumpapex"] .overlay .sheet,
body[data-theme="pumpapex"] .home-shell,
body[data-theme="pumpapex"] .module-page-shell,
body[data-theme="pumpapex"] .pump-service-settings-page,
body[data-theme="pumpapex"] .pump-service-calibration-page,
body[data-theme="pumpapex"] .pump-service-time-sheet,
body[data-theme="pumpapex"] .pump-service-plan-home-sheet,
body[data-theme="pumpapex"] .pump-service-normal-plan-sheet,
body[data-theme="pumpapex"] .pump-service-normal-continuous-sheet,
body[data-theme="pumpapex"] .pump-service-apex-plan-sheet,
body[data-theme="pumpapex"] .pump-service-apex-continuous-sheet,
body[data-theme="pumpapex"] .pump-service-manual-sheet {
  background: rgba(255, 255, 255, 0.30) !important;
  background-image: none !important;
}

/* Pump APEX all-white-containers-opacity30-1: 所有白色主容器/面板/弹窗底板透明度 30%。 */
body[data-theme="pumpapex"] .view > .card:not(.summary-card):not(.quick-card):not(.mini-card),
body[data-theme="pumpapex"] .card:not(.summary-card):not(.quick-card):not(.mini-card):not(.status-box):not(.switch-row):not(.trim-panel):not(.espnow-module-card):not(.module-page-entry-card):not(.espnow-detail-control-card):not(.espnow-flow-cal-panel),
body[data-theme="pumpapex"] .sheet,
body[data-theme="pumpapex"] .overlay .sheet,
body[data-theme="pumpapex"] .topbar,
body[data-theme="pumpapex"] .tabbar,
body[data-theme="pumpapex"] .module-page-nav,
body[data-theme="pumpapex"] .home-shell,
body[data-theme="pumpapex"] .module-page-shell,
body[data-theme="pumpapex"] .module-page-overview-card,
body[data-theme="pumpapex"] .module-page-subview-card,
body[data-theme="pumpapex"] .pump-service-settings-page,
body[data-theme="pumpapex"] .pump-service-calibration-page,
body[data-theme="pumpapex"] .pump-service-time-sheet,
body[data-theme="pumpapex"] .pump-service-plan-home-sheet,
body[data-theme="pumpapex"] .pump-service-normal-plan-sheet,
body[data-theme="pumpapex"] .pump-service-normal-continuous-sheet,
body[data-theme="pumpapex"] .pump-service-apex-plan-sheet,
body[data-theme="pumpapex"] .pump-service-apex-continuous-sheet,
body[data-theme="pumpapex"] .pump-service-manual-sheet,
body[data-theme="pumpapex"] .pump-service-record-chart-wrap,
body[data-theme="pumpapex"] .pump-service-record-list,
body[data-theme="pumpapex"] .pump-service-task-table-panel,
body[data-theme="pumpapex"] .apex-access-card,
body[data-theme="pumpapex"] .apex-chart-card,
body[data-theme="pumpapex"] .network-card,
body[data-theme="pumpapex"] .event-log-panel {
  background: rgba(255, 255, 255, 0.30) !important;
  background-color: rgba(255, 255, 255, 0.30) !important;
  background-image: none !important;
}

/* Pump APEX all-white-containers-opacity15-1: 所有白色主容器/面板/弹窗底板透明度 15%。 */
body[data-theme="pumpapex"] .view > .card:not(.summary-card):not(.quick-card):not(.mini-card),
body[data-theme="pumpapex"] .card:not(.summary-card):not(.quick-card):not(.mini-card):not(.status-box):not(.switch-row):not(.trim-panel):not(.espnow-module-card):not(.module-page-entry-card):not(.espnow-detail-control-card):not(.espnow-flow-cal-panel),
body[data-theme="pumpapex"] .sheet,
body[data-theme="pumpapex"] .overlay .sheet,
body[data-theme="pumpapex"] .topbar,
body[data-theme="pumpapex"] .tabbar,
body[data-theme="pumpapex"] .module-page-nav,
body[data-theme="pumpapex"] .home-shell,
body[data-theme="pumpapex"] .module-page-shell,
body[data-theme="pumpapex"] .module-page-overview-card,
body[data-theme="pumpapex"] .module-page-subview-card,
body[data-theme="pumpapex"] .pump-service-settings-page,
body[data-theme="pumpapex"] .pump-service-calibration-page,
body[data-theme="pumpapex"] .pump-service-time-sheet,
body[data-theme="pumpapex"] .pump-service-plan-home-sheet,
body[data-theme="pumpapex"] .pump-service-normal-plan-sheet,
body[data-theme="pumpapex"] .pump-service-normal-continuous-sheet,
body[data-theme="pumpapex"] .pump-service-apex-plan-sheet,
body[data-theme="pumpapex"] .pump-service-apex-continuous-sheet,
body[data-theme="pumpapex"] .pump-service-manual-sheet,
body[data-theme="pumpapex"] .pump-service-record-chart-wrap,
body[data-theme="pumpapex"] .pump-service-record-list,
body[data-theme="pumpapex"] .pump-service-task-table-panel,
body[data-theme="pumpapex"] .apex-access-card,
body[data-theme="pumpapex"] .apex-chart-card,
body[data-theme="pumpapex"] .network-card,
body[data-theme="pumpapex"] .event-log-panel {
  background: rgba(255, 255, 255, 0.15) !important;
  background-color: rgba(255, 255, 255, 0.15) !important;
  background-image: none !important;
}

/* Pump APEX orange-card-hover-shadow-1: 橙色卡片悬停只增加轻微阴影，不改色。 */
body[data-theme="pumpapex"] .summary-card:hover,
body[data-theme="pumpapex"] .quick-card:hover,
body[data-theme="pumpapex"] .mini-card:hover,
body[data-theme="pumpapex"] .module-page-entry-card:hover,
body[data-theme="pumpapex"] .espnow-module-card:hover,
body[data-theme="pumpapex"] .pump-service-home-button:hover,
body[data-theme="pumpapex"] .pump-service-plan-home-button:hover,
body[data-theme="pumpapex"] .pump-service-record-summary-grid > div:hover,
body[data-theme="pumpapex"] .metric-pill:hover,
body[data-theme="pumpapex"] .calibration-launch-btn:hover {
  box-shadow: 0 14px 28px rgba(245, 166, 35, 0.22), 0 6px 14px rgba(0,0,0,0.06) !important;
  transform: translateY(-1px) !important;
}


/* Pump APEX all-white-containers-opacity30-restore-1: 背板透明度恢复为30%。 */
body[data-theme="pumpapex"] .page-shell,
body[data-theme="pumpapex"] .main-shell,
body[data-theme="pumpapex"] .home-hero,
body[data-theme="pumpapex"] .settings-card,
body[data-theme="pumpapex"] .panel,
body[data-theme="pumpapex"] .card,
body[data-theme="pumpapex"] .modal-card,
body[data-theme="pumpapex"] .module-page,
body[data-theme="pumpapex"] .module-panel,
body[data-theme="pumpapex"] .quick-section,
body[data-theme="pumpapex"] .status-section,
body[data-theme="pumpapex"] .operation-section,
body[data-theme="pumpapex"] .sheet,
body[data-theme="pumpapex"] .dialog,
body[data-theme="pumpapex"] .main-card,
body[data-theme="pumpapex"] .content-card {
  background: rgba(255, 255, 255, 0.30) !important;
}


/* Pump APEX subtle-live-breath-1: 在线状态灯轻微呼吸，保持克制。 */
body[data-theme="pumpapex"] .hero-status-dot,
body[data-theme="pumpapex"] .online-dot,
body[data-theme="pumpapex"] .status-dot.online,
body[data-theme="pumpapex"] .connection-dot,
body[data-theme="pumpapex"] .home-status-orb,
body[data-theme="pumpapex"] .apex-status-orb {
  animation: pumpApexOnlineBreath 2.8s ease-in-out infinite;
  transform-origin: center;
}
@keyframes pumpApexOnlineBreath {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.24), 0 0 18px rgba(74, 222, 128, 0.28);
    filter: saturate(1);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(74, 222, 128, 0.08), 0 0 26px rgba(74, 222, 128, 0.42);
    filter: saturate(1.08);
  }
}
body[data-theme="pumpapex"] .action-button:active,
body[data-theme="pumpapex"] .primary-action:active,
body[data-theme="pumpapex"] .secondary-action:active,
body[data-theme="pumpapex"] .quick-card:active,
body[data-theme="pumpapex"] .module-page-entry-card:active,
body[data-theme="pumpapex"] .pump-service-home-button:active {
  transform: translateY(0) scale(0.985) !important;
}


/* Pump APEX subtle-polish-2: 底部导航选中光晕 + 弹窗轻微上滑进入。 */
body[data-theme="pumpapex"] .tab-btn.active {
  background: radial-gradient(circle at 50% 42%, rgba(245, 166, 35, 0.18) 0%, rgba(245, 166, 35, 0.10) 48%, rgba(245, 166, 35, 0.04) 72%, transparent 100%) !important;
  box-shadow: 0 8px 20px rgba(245, 166, 35, 0.10);
}
body[data-theme="pumpapex"] .tab-btn.active .tab-icon {
  filter: drop-shadow(0 4px 9px rgba(245, 166, 35, 0.30));
}
body[data-theme="pumpapex"] .overlay.show .sheet {
  animation: pumpApexSheetEnter 180ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  will-change: transform, opacity;
}
@keyframes pumpApexSheetEnter {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.992);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  body[data-theme="pumpapex"] .overlay.show .sheet,
  body[data-theme="pumpapex"] .hero-status-dot,
  body[data-theme="pumpapex"] .online-dot,
  body[data-theme="pumpapex"] .status-dot.online,
  body[data-theme="pumpapex"] .connection-dot,
  body[data-theme="pumpapex"] .home-status-orb,
  body[data-theme="pumpapex"] .apex-status-orb {
    animation: none !important;
  }
}


/* Pump APEX flow-cal-panel-contrast-fix-1: 修正流量校准卡半透明底白字不可读。 */
body[data-theme="pumpapex"] .espnow-flow-cal-panel {
  background: #f5a623 !important;
  background-image: none !important;
  border-color: #f5a623 !important;
  color: #ffffff !important;
  box-shadow: 0 12px 26px rgba(245, 166, 35, 0.22) !important;
}
body[data-theme="pumpapex"] .espnow-flow-cal-panel .summary-label,
body[data-theme="pumpapex"] .espnow-flow-cal-panel .section-note,
body[data-theme="pumpapex"] .espnow-flow-cal-panel .espnow-detail-dual-line,
body[data-theme="pumpapex"] .espnow-flow-cal-panel .espnow-detail-dual-line *,
body[data-theme="pumpapex"] .espnow-flow-cal-panel strong,
body[data-theme="pumpapex"] .espnow-flow-cal-panel span {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
body[data-theme="pumpapex"] .espnow-flow-cal-panel input {
  background: #ffffff !important;
  color: #333333 !important;
  -webkit-text-fill-color: #333333 !important;
  border-color: rgba(255, 255, 255, 0.88) !important;
}
body[data-theme="pumpapex"] .espnow-flow-cal-panel .btn:not(:disabled):not(.disabled) {
  background: #ffffff !important;
  color: #f5a623 !important;
  -webkit-text-fill-color: #f5a623 !important;
  border-color: rgba(255, 255, 255, 0.88) !important;
}
body[data-theme="pumpapex"] .espnow-flow-cal-panel .btn:disabled,
body[data-theme="pumpapex"] .espnow-flow-cal-panel .btn.disabled {
  background: #eeeeee !important;
  color: #777777 !important;
  -webkit-text-fill-color: #777777 !important;
  border-color: #d0d0d0 !important;
}
body[data-theme="pumpapex"] .espnow-detail-control-card {
  background: rgba(255, 255, 255, 0.72) !important;
  background-image: none !important;
  color: #333333 !important;
  border-color: rgba(208, 208, 208, 0.72) !important;
}
body[data-theme="pumpapex"] .espnow-detail-control-card .summary-label,
body[data-theme="pumpapex"] .espnow-detail-control-card .section-note,
body[data-theme="pumpapex"] .espnow-detail-control-card .module-page-field-label {
  color: #333333 !important;
  -webkit-text-fill-color: #333333 !important;
}

/* Pump APEX makeup-editor-modal-surface-1: 编辑补水参数弹页对齐补水校准快捷区的浅色背板。 */
body[data-theme="pumpapex"] #overlay-makeup-editor.overlay {
  background: rgba(238, 238, 238, 0.34) !important;
  backdrop-filter: blur(18px) saturate(1.02) !important;
}
body[data-theme="pumpapex"] #overlay-makeup-editor .sheet {
  background: rgba(255, 255, 255, 0.30) !important;
  background-image: none !important;
  border-color: rgba(215, 215, 215, 0.72) !important;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.08) !important;
}
body[data-theme="pumpapex"] #overlay-makeup-editor .makeup-editor-card {
  background: rgba(255, 255, 255, 0.30) !important;
  background-image: none !important;
  border-color: rgba(215, 215, 215, 0.72) !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06) !important;
}
body[data-theme="pumpapex"] #overlay-makeup-editor .sheet-head h3,
body[data-theme="pumpapex"] #overlay-makeup-editor .makeup-editor-card label,
body[data-theme="pumpapex"] #overlay-makeup-editor .makeup-editor-card .field,
body[data-theme="pumpapex"] #overlay-makeup-editor .makeup-editor-card .field *:not(input) {
  color: #333333 !important;
  -webkit-text-fill-color: #333333 !important;
}
body[data-theme="pumpapex"] #overlay-makeup-editor .makeup-editor-card input {
  background: #ffffff !important;
  color: #333333 !important;
  -webkit-text-fill-color: #333333 !important;
  border-color: rgba(215, 215, 215, 0.88) !important;
}

/* Pump APEX global-modal-surface-1: 所有弹页统一为浅灰遮罩 + 白色半透明弹窗背板。 */
body[data-theme="pumpapex"] .overlay {
  background: rgba(238, 238, 238, 0.34) !important;
  backdrop-filter: blur(18px) saturate(1.02) !important;
}
body[data-theme="pumpapex"] .overlay.global-alarm-overlay,
body[data-theme="pumpapex"] .overlay.tap-note-overlay {
  background: rgba(238, 238, 238, 0.42) !important;
}
body[data-theme="pumpapex"] .overlay .sheet,
body[data-theme="pumpapex"] .overlay .dialog,
body[data-theme="pumpapex"] .overlay .modal-card,
body[data-theme="pumpapex"] .overlay .pump-service-settings-page,
body[data-theme="pumpapex"] .overlay .pump-service-records-page,
body[data-theme="pumpapex"] .overlay .pump-service-calibration-page,
body[data-theme="pumpapex"] .overlay .pump-service-time-page,
body[data-theme="pumpapex"] .overlay .pump-service-protection-page,
body[data-theme="pumpapex"] .overlay .pump-service-plan-home-page,
body[data-theme="pumpapex"] .overlay .pump-service-normal-plan-page,
body[data-theme="pumpapex"] .overlay .pump-service-normal-continuous-page,
body[data-theme="pumpapex"] .overlay .pump-service-apex-plan-page,
body[data-theme="pumpapex"] .overlay .pump-service-apex-continuous-page,
body[data-theme="pumpapex"] .overlay .pump-service-manual-page {
  background: rgba(255, 255, 255, 0.30) !important;
  background-image: none !important;
  border-color: rgba(215, 215, 215, 0.72) !important;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.08) !important;
}
body[data-theme="pumpapex"] .overlay .sheet > .card:not(.summary-card):not(.quick-card):not(.mini-card):not(.status-box):not(.switch-row):not(.trim-panel):not(.espnow-module-card):not(.module-page-entry-card):not(.espnow-detail-control-card):not(.espnow-flow-cal-panel),
body[data-theme="pumpapex"] .overlay .sheet .makeup-editor-card,
body[data-theme="pumpapex"] .overlay .sheet .apex-config-card,
body[data-theme="pumpapex"] .overlay .sheet .network-card,
body[data-theme="pumpapex"] .overlay .sheet .event-log-panel {
  background: rgba(255, 255, 255, 0.30) !important;
  background-image: none !important;
  border-color: rgba(215, 215, 215, 0.72) !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06) !important;
}

/* FLOW_TEMP_EXCHANGE_STATUS_TANK_20260522: clean card body, no transform stacking. */
body[data-theme="pumpapex"] #homeExchangeStatusCard {
  min-height: auto;
}
body[data-theme="pumpapex"] #homeExchangeStatusCard .home-card-head {
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 14px;
}
body[data-theme="pumpapex"] #homeExchangeStatusCard .home-card-side {
  display: none;
}
body[data-theme="pumpapex"] #homeExchangeStatusCard .borrowed-card-icon svg {
  width: 28px;
  height: 28px;
}
body[data-theme="pumpapex"] #homeExchangeStatusCard .home-exchange-clean-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(110px, 40%, 156px);
  gap: 14px;
  align-items: stretch;
}
body[data-theme="pumpapex"] #homeExchangeStatusCard .home-exchange-clean-info {
  margin: 0;
  min-width: 0;
}
body[data-theme="pumpapex"] #homeExchangeStatusCard .home-detail-line {
  font-size: clamp(13px, 1.12vw, 16px);
  line-height: 1.28;
}
body[data-theme="pumpapex"] #homeExchangeTank.exchange-tank {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 190px;
  justify-self: center;
  align-self: stretch;
  border: 3px solid rgba(255, 255, 255, 0.88);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 168, 24, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

body[data-theme="pumpapex"] #homeExchangeTank.exchange-tank::before {
  content: attr(data-exchange-mode-label);
  position: absolute;
  z-index: 5;
  left: 3px;
  top: 3px;
  width: clamp(15px, 14%, 22px);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: max(2px, 0.16em) solid rgba(255, 255, 255, 0.88);
  color: rgba(255, 255, 255, 0.96);
  -webkit-text-fill-color: rgba(255, 255, 255, 0.96);
  background: rgba(255, 168, 24, 0.12);
  font-size: clamp(9px, 8%, 13px);
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
  pointer-events: none;
}

body[data-theme="pumpapex"] #homeExchangeTank .exchange-tank-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--exchange-water-fill, 0%);
  background: linear-gradient(180deg, rgba(255, 216, 116, 0.54), rgba(255, 184, 51, 0.5));
  transition: height 1.6s linear;
  will-change: height;
  transform: translateZ(0);
}

body[data-theme="pumpapex"] #homeExchangeTank .exchange-tank-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: repeat(var(--exchange-grid-rows, 4), 1fr);
}
body[data-theme="pumpapex"] #homeExchangeTank .exchange-tank-cell {
  position: relative;
  border-top: 1.5px solid rgba(255, 255, 255, 0.62);
}
body[data-theme="pumpapex"] #homeExchangeTank .exchange-tank-cell:first-child {
  border-top: 0;
}
body[data-theme="pumpapex"] #homeExchangeTank .exchange-tank-cell span {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  font-size: clamp(12px, 1vw, 15px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0;
  white-space: nowrap;
}
@media (max-width: 520px) {
  body[data-theme="pumpapex"] #homeExchangeStatusCard .home-exchange-clean-body {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  body[data-theme="pumpapex"] #homeExchangeTank.exchange-tank {
    width: min(150px, 66%);
    height: 190px;
  }
}

/* FLOW_TEMP_APEX_PROBE_GRID_20260522: six adaptive probe boxes in APEX card. */
body[data-theme="pumpapex"] .home-apex-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
}
body[data-theme="pumpapex"] .home-apex-card .summary-label {
  margin-bottom: 8px;
}
body[data-theme="pumpapex"] .home-apex-card .summary-value {
  margin-bottom: 14px;
}
body[data-theme="pumpapex"] .home-apex-probe-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 0;
}
body[data-theme="pumpapex"] .home-apex-probe-box {
  min-width: 0;
  min-height: clamp(46px, 4.6vw, 64px);
  border: 1.5px solid rgba(255, 255, 255, 0.34);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 5px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
body[data-theme="pumpapex"] .home-apex-probe-box span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(11px, 0.95vw, 14px);
  line-height: 1;
  font-weight: 850;
  opacity: 0.9;
}
body[data-theme="pumpapex"] .home-apex-probe-box strong {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(14px, 1.25vw, 19px);
  line-height: 1;
  font-weight: 950;
}
@media (max-width: 520px) {
  body[data-theme="pumpapex"] .home-apex-probe-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}



/* FLOW_TEMP_SALT_GUARD_GAUGE_20260522: one-row safe range gauge. */
body[data-theme="pumpapex"] .home-salt-guard-visual {
  width: 100%;
  margin-top: 4px;
  padding: 14px 14px 13px;
  border: 1.5px solid rgba(255,255,255,0.30);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.10));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16);
}
body[data-theme="pumpapex"] .home-salt-gauge-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 19px;
}
body[data-theme="pumpapex"] .home-salt-gauge-head span,
body[data-theme="pumpapex"] .home-salt-gauge-head strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(12px, 1vw, 15px);
  line-height: 1;
  font-weight: 900;
  opacity: 0.88;
}
body[data-theme="pumpapex"] .home-salt-gauge {
  --salt-current-pct: 50%;
  position: relative;
}
body[data-theme="pumpapex"] .home-salt-gauge-current {
  position: absolute;
  left: var(--salt-current-pct);
  top: -10px;
  transform: translate(-50%, -100%);
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  font-size: clamp(15px, 1.35vw, 21px);
  line-height: 1;
  font-weight: 950;
  white-space: nowrap;
  text-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
body[data-theme="pumpapex"] .home-salt-gauge-track {
  position: relative;
  width: 100%;
  height: 13px;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.10);
}
body[data-theme="pumpapex"] .home-salt-gauge-fill {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255,255,255,0.42), rgba(255,255,255,0.86), rgba(255,255,255,0.42));
}
body[data-theme="pumpapex"] .home-salt-gauge-marker {
  position: absolute;
  left: var(--salt-current-pct);
  top: 50%;
  width: 5px;
  height: 27px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.16);
}
body[data-theme="pumpapex"] .home-salt-gauge-scale {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  color: rgba(255,255,255,0.90) !important;
  font-size: clamp(12px, 1vw, 15px);
  line-height: 1;
  font-weight: 900;
}
body[data-theme="pumpapex"] .home-salt-gauge-scale span:last-child {
  text-align: right;
}
body[data-theme="pumpapex"] .home-salt-gauge-scale strong {
  color: rgba(255,255,255,0.82) !important;
  -webkit-text-fill-color: rgba(255,255,255,0.82);
  font-size: inherit;
  line-height: inherit;
  font-weight: 900;
}
body[data-theme="pumpapex"] .home-salt-gauge.is-empty .home-salt-gauge-current,
body[data-theme="pumpapex"] .home-salt-gauge.is-empty .home-salt-gauge-marker {
  opacity: 0.5;
}


/* FLOW_TEMP_SALT_GAUGE_FLOAT_LABEL_20260522: keep current value readable and away from edge labels. */
body[data-theme="pumpapex"] .home-salt-gauge-head {
  margin-bottom: 38px;
}
body[data-theme="pumpapex"] .home-salt-gauge-current {
  left: clamp(54px, var(--salt-current-pct), calc(100% - 54px));
  top: -8px;
  padding: 4px 8px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 4px 12px rgba(0,0,0,0.10);
  font-size: clamp(14px, 1.18vw, 18px);
}

/* FLOW_TEMP_APEX_PROBE_BOX_BIGGER_20260522: make six probe boxes visually closer to salt gauge panel. */
body[data-theme="pumpapex"] .home-apex-card {
  min-height: 232px;
}
body[data-theme="pumpapex"] .home-apex-probe-grid {
  gap: 10px;
}
body[data-theme="pumpapex"] .home-apex-probe-box {
  min-height: clamp(54px, 5.4vw, 74px);
  border-width: 2px;
  border-radius: 14px;
  padding: 9px 6px;
}
body[data-theme="pumpapex"] .home-apex-probe-box span {
  font-size: clamp(12px, 1.08vw, 16px);
  font-weight: 900;
}
body[data-theme="pumpapex"] .home-apex-probe-box strong {
  font-size: clamp(16px, 1.48vw, 22px);
  font-weight: 950;
}


/* FLOW_TEMP_HOME_STATUS_PAIR_EQUAL_HEIGHT_20260522: align APEX monitor and salt guard cards. */
body[data-theme="pumpapex"] .summary-card:has(#homeApexSaltGuardVisual) {
  min-height: 232px !important;
  display: flex !important;
  flex-direction: column !important;
}
body[data-theme="pumpapex"] .summary-card:has(#homeApexSaltGuardVisual) #homeApexSaltGuardVisual {
  margin-top: auto !important;
  margin-bottom: auto !important;
}

/* FLOW_TEMP_APEX_PROBE_GRID_ALIGN_TO_GAUGE_20260522: align left six boxes with right gauge, left side only. */
body[data-theme="pumpapex"] .home-apex-card {
  min-height: 232px;
}
body[data-theme="pumpapex"] .home-apex-probe-grid {
  gap: 8px;
  margin-top: 8px;
}
body[data-theme="pumpapex"] .home-apex-probe-box {
  min-height: 54px;
  padding: 7px 6px;
}
body[data-theme="pumpapex"] .home-apex-probe-box span {
  font-size: clamp(11px, 1vw, 14px);
}
body[data-theme="pumpapex"] .home-apex-probe-box strong {
  font-size: clamp(15px, 1.35vw, 20px);
}


/* FLOW_TEMP_ALARM_PARAMS_CARD_UNIFY_20260522: 报警参数卡片接入统一白底表单卡片样式。 */
body[data-theme="pumpapex"] #view-alarm .alarm-params-card {
  background: rgba(255, 255, 255, 0.30) !important;
  background-image: none !important;
  border-color: #d7d7d7 !important;
  color: #333333 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
}
body[data-theme="pumpapex"] #view-alarm .alarm-params-card h2 {
  color: #333333 !important;
  -webkit-text-fill-color: #333333 !important;
}
body[data-theme="pumpapex"] #view-alarm .alarm-params-card .field label {
  color: #666666 !important;
  -webkit-text-fill-color: #666666 !important;
}
body[data-theme="pumpapex"] #view-alarm .alarm-params-card input {
  background: #ffffff !important;
  background-image: none !important;
  border: 1px solid #dedede !important;
  color: #333333 !important;
  -webkit-text-fill-color: #333333 !important;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.015) !important;
}
body[data-theme="pumpapex"] #view-alarm .alarm-params-card .alarm-actions-grid .btn {
  background: #ffffff !important;
  background-image: none !important;
  border: 1px solid rgba(245, 166, 35, 0.36) !important;
  color: #f5a623 !important;
  -webkit-text-fill-color: #f5a623 !important;
  box-shadow: inset 0 0 0 1px rgba(245, 166, 35, 0.05) !important;
}
body[data-theme="pumpapex"] #view-alarm .alarm-params-card .alarm-actions-grid .btn.primary {
  background: #f5a623 !important;
  background-image: none !important;
  border-color: #f5a623 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: 0 10px 22px rgba(245, 166, 35, 0.22) !important;
}
body[data-theme="pumpapex"] #view-alarm .alarm-params-card .alarm-actions-grid .btn:disabled,
body[data-theme="pumpapex"] #view-alarm .alarm-params-card .alarm-actions-grid .btn.disabled {
  background: #ececec !important;
  background-image: none !important;
  border-color: #d1d1d1 !important;
  color: #8f8f8f !important;
  -webkit-text-fill-color: #8f8f8f !important;
  opacity: 1 !important;
  box-shadow: none !important;
}


/* FLOW_TEMP_BANNER_LOW_BLUR_AND_MAKEUP_CENTER_DIVIDER_20260522: bar 降低玻璃模糊，自动补水合并卡片中线固定 50%。 */
body[data-theme="pumpapex"] .makeup-auto-combined-card {
  position: relative !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 0 !important;
}
body[data-theme="pumpapex"] .makeup-auto-combined-card::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 15%;
  bottom: 15%;
  width: 1px;
  transform: translateX(-0.5px);
  background: rgba(255, 255, 255, 0.30);
  pointer-events: none;
}
body[data-theme="pumpapex"] .makeup-auto-combined-card .makeup-auto-combined-region:first-child {
  padding-right: 20px !important;
}
body[data-theme="pumpapex"] .makeup-auto-combined-card .makeup-auto-combined-region + .makeup-auto-combined-region {
  padding-left: 20px !important;
  border-left: 0 !important;
}

/* 服务型泵记录曲线组件（recordCurveChart）：干净 SVG 版，来自 2026-05-23 临时预览定稿。 */
.pump-plan-record-chart-shell--clean {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  min-height: 0;
  padding: 8px 10px 6px;
  border: 2px solid #d1d1d1;
  border-radius: 24px;
  background: #eeeeee;
  color: #333333;
  box-sizing: border-box;
  overflow: visible;
}

.pump-plan-record-clean-svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 190px;
  overflow: visible;
}

.pump-plan-record-clean-grid-line {
  stroke: rgba(247, 161, 26, 0.22);
  stroke-width: 1;
}

.pump-plan-record-clean-grid-line.is-zero {
  stroke: rgba(247, 161, 26, 0.78);
  stroke-width: 2;
}

.pump-plan-record-clean-axis-line {
  stroke: rgba(247, 161, 26, 0.72);
  stroke-width: 2;
  stroke-linecap: round;
}

.pump-plan-record-clean-bar {
  opacity: 0.88;
  shape-rendering: geometricPrecision;
}

.pump-plan-record-clean-label,
.pump-plan-record-clean-unit {
  fill: #777777;
  font-weight: 950;
  font-family: inherit;
  paint-order: stroke;
  stroke: rgba(238, 238, 238, 0.72);
  stroke-width: 3px;
  stroke-linejoin: round;
}

.pump-plan-record-clean-label {
  font-size: 18px;
}

.pump-plan-record-clean-unit {
  font-size: 14px;
}

.pump-plan-record-legend--clean {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin: 14px 0 0;
  padding: 0;
  transform: translate(0px, -11px);
  overflow: visible;
}

.pump-plan-record-legend--clean span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #2f2f2f;
  font-size: 10px;
  font-weight: 950;
  white-space: nowrap;
}

.pump-plan-record-legend--clean b {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 25px;
  height: 23px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  text-shadow: none;
}

body[data-theme="pumpapex"] .pump-plan-record-chart-shell--clean,
body[data-theme="pumpapex"] .pump-plan-record-chart-shell--clean * {
  text-shadow: none !important;
}

body[data-theme="pumpapex"] .pump-plan-record-chart-shell--clean {
  background: #eeeeee !important;
  color: #333333 !important;
  border-color: #d1d1d1 !important;
}

body[data-theme="pumpapex"] .pump-plan-record-legend--clean span {
  background: transparent !important;
  border-color: transparent !important;
  color: #2f2f2f !important;
  box-shadow: none !important;
}

body[data-theme="pumpapex"] .pump-plan-record-legend--clean b {
  color: #ffffff !important;
}

/* 服务型泵记录曲线图例（recordLegend）：覆盖旧三列网格，和上方曲线框同宽，一排展示。 */
.pump-service-home-record-chart .pump-plan-record-legend--clean,
.pump-service-record-chart-wrap .pump-plan-record-legend--clean {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: none;
  margin: 10px 0 0;
  padding: 0 52px;
  box-sizing: border-box;
  gap: 7px;
  transform: translate(0, -8px);
  overflow: visible;
}

.pump-service-home-record-chart .pump-plan-record-legend--clean span,
.pump-service-record-chart-wrap .pump-plan-record-legend--clean span {
  flex: 0 0 auto;
  justify-content: flex-start;
  min-width: 0;
  gap: 3px;
  padding: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  font-size: 10px;
  white-space: nowrap;
}

.pump-service-home-record-chart .pump-plan-record-legend--clean b,
.pump-service-record-chart-wrap .pump-plan-record-legend--clean b {
  width: 25px;
  height: 23px;
}


/* FLOWDEMO_CLOUD_WATERCHANGER_COPY: 只给云端换水器副本使用的返回入口。 */
body.waterchanger-cloud-copy .topbar {
  display: flex;
  align-items: center;
  gap: 10px;
}
body.waterchanger-cloud-copy .cloud-copy-waterchanger-back {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 36px;
  padding: 0 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  color: #333333;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}
body.waterchanger-cloud-copy .topbar .banner {
  flex: 1 1 auto;
}
body.waterchanger-cloud-copy .banner-text:empty {
  display: none;
}

body.waterchanger-cloud-copy .banner.cloud-copy-empty-banner {
  min-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

/* 云端换水器副本：空提示条不能横跨“返回”按钮；报警胶囊仍保留。 */
body.waterchanger-cloud-copy .banner.cloud-copy-empty-banner {
  display: none !important;
}
body.waterchanger-cloud-copy .banner.cloud-copy-empty-banner .banner-alert:not([hidden]) {
  display: inline-flex !important;
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  right: 24px;
  z-index: 8;
}

/* 云端换水器副本：状态 BAR 缩短，左侧避开“返回”按钮，不再覆盖它。 */
body.waterchanger-cloud-copy .topbar > .banner:not(.cloud-copy-empty-banner) {
  left: 96px;
  right: 18px;
  width: auto;
  max-width: none;
  transform: none;
}
body.waterchanger-cloud-copy .topbar > .banner:not(.cloud-copy-empty-banner) .banner-text {
  padding-left: 10px;
  padding-right: 96px;
}

/* 2026-05-29 云端换水器顶部统一：返回与状态 BAR 同高同线，BAR 背景透明 20%。 */
body.waterchanger-cloud-copy .topbar {
  min-height: calc(env(safe-area-inset-top, 0px) + 74px);
  padding: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.66) 0%, rgba(255,255,255,0.34) 72%, rgba(255,255,255,0) 100%) !important;
  backdrop-filter: blur(14px);
}
body.waterchanger-cloud-copy .cloud-copy-waterchanger-back {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  left: 22px;
  z-index: 12;
  width: 74px;
  min-width: 74px;
  height: 44px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}
body.waterchanger-cloud-copy .topbar > .banner:not(.cloud-copy-empty-banner) {
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  left: 112px;
  right: 22px;
  width: auto;
  height: 44px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  transform: none;
  background: rgba(255, 238, 238, 0.20) !important;
  border: 1px solid rgba(229, 57, 53, 0.20) !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(18px);
}
body.waterchanger-cloud-copy .topbar > .banner:not(.cloud-copy-empty-banner) .banner-text {
  padding-left: 8px;
  padding-right: 94px;
  font-size: 15px;
  line-height: 1;
}
body.waterchanger-cloud-copy .topbar > .banner:not(.cloud-copy-empty-banner) .banner-alert {
  right: 10px;
  min-height: 28px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 238, 238, 0.28);
  box-shadow: inset 0 0 0 1px rgba(229, 57, 53, 0.18);
}

/* FLOWDEMO_CLOUD_AUTH_GATE: 正式云端鉴权完成前隐藏旧本地业务壳，避免换水器页一闪旧画面。 */
body.waterchanger-cloud-copy.cloud-copy-auth-pending,
body.waterchanger-cloud-copy.cloud-copy-auth-pending[data-theme] {
  background: #e8e8e8 !important;
  color: #252525 !important;
}
body.waterchanger-cloud-copy.cloud-copy-auth-pending::before {
  display: none !important;
  opacity: 0 !important;
}
body.waterchanger-cloud-copy.cloud-copy-auth-pending::after,
body.waterchanger-cloud-copy.cloud-copy-auth-pending[data-theme]::after {
  content: "正在进入设备...";
  position: fixed;
  left: 50%;
  top: calc(env(safe-area-inset-top, 0px) + 56px);
  transform: translateX(-50%);
  z-index: 9999;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: min(420px, calc(100vw - 96px));
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid rgba(208, 208, 208, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #555555;
  font-weight: 900;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.08);
  opacity: 1 !important;
  pointer-events: none;
}
body.waterchanger-cloud-copy.cloud-copy-auth-pending .apex-bubbles-container,
body.waterchanger-cloud-copy.cloud-copy-auth-pending .waterchanger-cloud-shell,
body.waterchanger-cloud-copy.cloud-copy-auth-pending .content,
body.waterchanger-cloud-copy.cloud-copy-auth-pending .tabbar,
body.waterchanger-cloud-copy.cloud-copy-auth-pending .offline-banner,
body.waterchanger-cloud-copy.cloud-copy-auth-pending .waterchanger-cloud-offline-status,
body.waterchanger-cloud-copy.cloud-copy-auth-pending .estop-fab {
  display: none !important;
}

body.waterchanger-cloud-copy.cloud-copy-auth-pending .topbar {
  min-height: calc(env(safe-area-inset-top, 0px) + 88px);
}

@media (max-width: 560px) {
  body.waterchanger-cloud-copy .cloud-copy-waterchanger-back {
    left: 14px;
    width: 64px;
    min-width: 64px;
  }
  body.waterchanger-cloud-copy .topbar > .banner:not(.cloud-copy-empty-banner) {
    left: 90px;
    right: 14px;
  }
  body.waterchanger-cloud-copy .topbar > .banner:not(.cloud-copy-empty-banner) .banner-text {
    font-size: 12px;
    padding-right: 76px;
  }
  body.waterchanger-cloud-copy .topbar > .banner:not(.cloud-copy-empty-banner) .banner-alert {
    padding: 0 10px;
    font-size: 12px;
  }
}

/* 2026-05-29 顶部背景贯通：消除左侧断一截、右侧有背景的不对称感。 */
body.waterchanger-cloud-copy .topbar {
  left: 0;
  right: 0;
  width: 100%;
  max-width: none;
}
body.waterchanger-cloud-copy .topbar::before {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: calc(env(safe-area-inset-top, 0px) + 76px);
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.72) 0%, rgba(255,255,255,0.44) 64%, rgba(255,255,255,0) 100%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.035);
  z-index: -1;
}

/* 2026-05-29 云端视觉契约：不显示英文工程风格标签。 */
body.waterchanger-cloud-copy #themeHeroKicker {
  display: none !important;
}

/* 2026-05-29 云端换水器副本：取消主项目 WEB 的左侧滚动条安全槽，避免顶部左边漏一截灰底。 */
html.waterchanger-cloud-html {
  scrollbar-gutter: auto;
  background: #e8e8e8;
}


/* FLOWDEMO_SITE_RECORD_WATERCHANGER_FOOTER_FIX14
   正式云端换水器页必须常驻显示 ICP 与公安备案号。 */
.site-record-footer {
  position: fixed;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 40;
  width: min(560px, calc(100vw - 36px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border: 1px solid rgba(210, 210, 210, 0.82);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  color: #666666;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(14px);
}
.site-record-footer__title {
  color: #777777;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.site-record-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 14px;
}
.site-record-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #555555;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.site-record-link:hover { color: #252525; }
.site-record-badge { width: 18px; height: 20px; object-fit: contain; }
@media (max-width: 760px) {
  .site-record-footer {
    bottom: max(10px, env(safe-area-inset-bottom));
    width: calc(100vw - 24px);
    padding: 8px 10px;
  }
  .site-record-link { font-size: 11px; }
}

/* FLOWDEMO_CLOUD_WATERCHANGER_TOPBAR_BOARD_FIX_20260531
   云端换水器页只保留返回按钮和状态条本体；去掉外层横向白色 BAR 背景板，避免与本地 WEB 视觉不一致。 */
body.waterchanger-cloud-copy .topbar {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
body.waterchanger-cloud-copy .topbar::before {
  content: none !important;
  display: none !important;
  opacity: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* FLOWDEMO_CLOUD_SITE_RECORD_FLOW_FOOTER_FIX_20260531
   云端换水器页备案信息进入页面文档流底部，不再 fixed 悬浮遮挡页面内容。 */
body.waterchanger-cloud-copy .site-record-footer {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  z-index: auto !important;
  width: auto !important;
  max-width: calc(100% - 36px) !important;
  margin: 48px auto max(24px, env(safe-area-inset-bottom)) !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  flex: 0 0 auto;
}

@media (max-width: 760px) {
  body.waterchanger-cloud-copy .site-record-footer {
    width: auto !important;
    max-width: calc(100% - 24px) !important;
    margin-top: 36px !important;
    margin-bottom: max(18px, env(safe-area-inset-bottom)) !important;
  }
}

/* FLOWDEMO_CLOUD_SITE_RECORD_NO_FRAME_FIX_20260531
   备案信息属于页面背景底部说明文字，不使用白色卡片框、边框或阴影。 */
body.waterchanger-cloud-copy .site-record-footer {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* FLOWDEMO_WATERCHANGER_MOBILE_TANK_RATIO_FIX_20260531
   用户裁定：不改换水器页整体布局，只修手机端换水状态卡内部挤压；水桶恢复接近网页模式的旁列比例，避免单列 190px 过长。 */
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-exchange-clean-body {
    grid-template-columns: minmax(0, 1fr) clamp(58px, 42%, 76px) !important;
    align-items: start !important;
    justify-items: stretch !important;
    gap: 8px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-exchange-clean-info {
    align-self: start !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank.exchange-tank {
    width: clamp(58px, 100%, 76px) !important;
    height: clamp(128px, 34vw, 148px) !important;
    min-height: 0 !important;
    align-self: start !important;
    justify-self: center !important;
    border-width: 2.5px !important;
    border-radius: 9px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank .exchange-tank-cell span {
    right: 6px !important;
    font-size: 12px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank.exchange-tank::before {
    left: 2px !important;
    top: 2px !important;
    width: 18px !important;
    font-size: 9px !important;
  }
}
@media (max-width: 380px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-exchange-clean-body {
    grid-template-columns: minmax(0, 1fr) 58px !important;
    gap: 7px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank.exchange-tank {
    width: 58px !important;
    height: 124px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank .exchange-tank-cell span {
    right: 5px !important;
    font-size: 11px !important;
  }
}

/* FLOWDEMO_WATERCHANGER_MOBILE_TANK_RATIO_FIX2_20260531
   二轮自检：旁列会挤压文字；保留手机端原上下布局，只缩短水桶高度，避免卡片被拉长。 */
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-exchange-clean-body {
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    align-items: start !important;
    gap: 10px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-exchange-clean-info {
    width: 100% !important;
    justify-self: stretch !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank.exchange-tank {
    width: min(116px, 64%) !important;
    height: 128px !important;
    min-height: 0 !important;
    align-self: start !important;
    justify-self: center !important;
  }
}
@media (max-width: 380px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank.exchange-tank {
    width: min(108px, 64%) !important;
    height: 118px !important;
  }
}

/* FLOWDEMO_WATERCHANGER_HOME_COMPACT_NO_EXTRA_ICONS_20260601
   用户裁定：不加入风格外图标；只用原有 SVG、水桶、短标签、间距和水面轻动效压缩首页换水/补水信息。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-detail-list,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-detail-list {
  gap: 7px !important;
  margin-top: 12px !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-line-compact,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-line-compact {
  display: grid !important;
  grid-template-columns: minmax(34px, 0.42fr) minmax(0, 1fr);
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  font-size: clamp(12px, 3.15vw, 15px) !important;
  line-height: 1.18 !important;
  letter-spacing: 0.01em;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-line-label,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-line-label {
  color: rgba(255, 255, 255, 0.78) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.78) !important;
  font-weight: 850;
  white-space: nowrap;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-line-value,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-line-value {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-weight: 920;
  min-width: 0;
  overflow-wrap: anywhere;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-card-head {
  gap: 8px !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-card-inline {
  font-size: clamp(11px, 2.9vw, 13px) !important;
  padding: 4px 9px !important;
  border-radius: 999px;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank .exchange-tank-fill {
  background-size: 100% 170% !important;
  animation: flowdemoHomeWaterQuietPulse 4.8s ease-in-out infinite;
}
@keyframes flowdemoHomeWaterQuietPulse {
  0%, 100% {
    opacity: 0.86;
    background-position: 0 0;
  }
  50% {
    opacity: 1;
    background-position: 0 100%;
  }
}
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-line-compact,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-line-compact {
    grid-template-columns: 40px minmax(0, 1fr);
    font-size: clamp(13px, 3.55vw, 15px) !important;
  }
}
@media (max-width: 380px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-line-compact,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-line-compact {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 6px;
    font-size: 12.5px !important;
  }
}

/* FLOWDEMO_WATERCHANGER_EXCHANGE_VALUE_ONLY_TRIAL_20260601
   用户提议：换水状态卡内“目标/日程/时间”标签可省略；本地试版只对这三行做值优先压缩，不新增图标。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-line-value-only {
  display: block !important;
  padding-left: 0 !important;
  font-size: clamp(17px, 4.5vw, 21px) !important;
  line-height: 1.08 !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-line-value-only .home-line-value {
  display: block;
  font-weight: 960;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard #homeExchangeScheduleDays.home-line-value-only .home-line-value {
  font-size: 0.82em;
  letter-spacing: 0.02em;
}
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-line-value-only {
    font-size: clamp(18px, 5.4vw, 22px) !important;
  }
}

/* FLOWDEMO_WATERCHANGER_EXCHANGE_HIDE_MAIN_GROW_TANK_20260601
   用户裁定：删除换水状态卡红框内 1.025 / 一至五 / 08:30 三行；压小“下次”说明，把水桶放大。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard #homeExchangeBaseSg,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard #homeExchangeScheduleDays,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard #homeExchangeScheduleTime {
  display: none !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-exchange-clean-body {
  align-items: center !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-exchange-clean-info {
  gap: 0 !important;
  margin-top: 0 !important;
  text-align: center;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard #homeExchangeNextDay.home-line-compact {
  display: grid !important;
  grid-template-columns: auto auto;
  justify-content: center;
  align-items: baseline;
  column-gap: 10px;
  row-gap: 0;
  font-size: clamp(12px, 3.25vw, 15px) !important;
  line-height: 1.05 !important;
  margin: 0 0 8px !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard #homeExchangeNextDay .home-line-label {
  font-size: 0.9em;
  font-weight: 850;
  color: rgba(255,255,255,0.82) !important;
  -webkit-text-fill-color: rgba(255,255,255,0.82) !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard #homeExchangeNextDay .home-line-value {
  font-size: 1em;
  font-weight: 900;
  line-height: 1.08;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank.exchange-tank {
  width: clamp(126px, 52%, 154px) !important;
  min-height: 0 !important;
}
@media (min-width: 521px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-exchange-clean-body {
    grid-template-columns: minmax(0, 0.7fr) clamp(132px, 48%, 164px) !important;
    gap: 12px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank.exchange-tank {
    width: 100% !important;
    height: 210px !important;
  }
}
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-exchange-clean-body {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank.exchange-tank {
    width: min(144px, 82%) !important;
    height: 184px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank .exchange-tank-cell span {
    font-size: 14px !important;
    right: 10px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank.exchange-tank::before {
    width: 24px !important;
    font-size: 11px !important;
  }
}
@media (max-width: 380px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank.exchange-tank {
    width: min(132px, 80%) !important;
    height: 166px !important;
  }
}

/* FLOWDEMO_WATERCHANGER_TANK_TOP_TEXT_BOTTOM_20260601
   用户裁定：换水状态卡内水桶放上面，“下次”文字放下面；只调整内部顺序，不新增图标、不改业务。 */
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-exchange-clean-body {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank.exchange-tank {
    order: 1 !important;
    width: min(146px, 84%) !important;
    height: 190px !important;
    margin-top: 0 !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-exchange-clean-info {
    order: 2 !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 0 !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard #homeExchangeNextDay.home-line-compact {
    margin: 0 !important;
    font-size: clamp(12px, 3.1vw, 14px) !important;
    grid-template-columns: auto auto !important;
    column-gap: 8px !important;
  }
}
@media (max-width: 380px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank.exchange-tank {
    width: min(136px, 82%) !important;
    height: 176px !important;
  }
}

/* FLOWDEMO_WATERCHANGER_SHORTER_TANK_EQUAL_CARDS_20260601
   用户裁定：水桶宽度不变，只降低高度；手机端首行换水/补水两张卡片保持同高。 */
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard {
    min-height: 258px !important;
    height: 258px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank.exchange-tank {
    width: min(146px, 84%) !important;
    height: 152px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-exchange-clean-body {
    gap: 6px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard #homeExchangeNextDay.home-line-compact {
    font-size: clamp(11px, 2.85vw, 13px) !important;
    column-gap: 7px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-detail-list {
    gap: 6px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-line-compact {
    font-size: clamp(12px, 3.25vw, 14px) !important;
    line-height: 1.12 !important;
  }
}
@media (max-width: 380px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard {
    min-height: 246px !important;
    height: 246px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank.exchange-tank {
    width: min(136px, 82%) !important;
    height: 142px !important;
  }
}

/* FLOWDEMO_WATERCHANGER_TANK_FULL_WIDTH_SAFE_20260601
   用户裁定：换水水桶再宽一点，撑满卡片内容区；保留卡片内边距边界，不外溢。 */
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-exchange-clean-body {
    width: 100% !important;
    box-sizing: border-box !important;
    align-items: stretch !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank.exchange-tank {
    width: 100% !important;
    max-width: 100% !important;
    height: 152px !important;
    box-sizing: border-box !important;
    justify-self: stretch !important;
    align-self: stretch !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-exchange-clean-info {
    width: 100% !important;
    box-sizing: border-box !important;
  }
}
@media (max-width: 380px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank.exchange-tank {
    width: 100% !important;
    max-width: 100% !important;
    height: 142px !important;
  }
}

/* FLOWDEMO_WATERCHANGER_HIDE_DEVICE_COPY_20260601
   用户裁定：换水器首页设备标题和“页面号/最近控制”文字不要；保留在线状态点，卡片上移不留大空白。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] .device-card {
  position: relative;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] .device-card .device-head > div:first-child {
  display: none !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] .device-card .device-head {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 4;
  margin: 0 !important;
  min-height: 0 !important;
  pointer-events: none;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] .device-card .status-chip {
  pointer-events: auto;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] .device-card > .summary-grid {
  margin-top: 0 !important;
}
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] .device-card {
    padding-top: 16px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] .device-card .device-head {
    top: 16px;
    right: 16px;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] .device-card .status-chip {
    transform: scale(0.86);
    transform-origin: top right;
  }
}

/* FLOWDEMO_WATERCHANGER_HIDE_HERO_NOTE_20260601
   用户裁定：首页标题下方说明文不要；只保留标题，压缩顶部空间。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-waterchanger-control .hero-intro .section-note {
  display: none !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-waterchanger-control .hero-intro {
  margin-bottom: 12px !important;
}
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-waterchanger-control .hero-intro {
    margin-bottom: 10px !important;
  }
}

/* FLOWDEMO_WATERCHANGER_ALIGN_TANK_HIDE_DOT_20260601
   视觉自检修正：设备文案删除后，右上在线绿点没有承载语义且压到补水卡，隐藏；电脑/手机换水桶统一为水桶上、下次文字下。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] .device-card .device-head {
  display: none !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] .device-card > .summary-grid {
  margin-top: 0 !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-exchange-clean-body {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank.exchange-tank {
  order: 1 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 0 !important;
  box-sizing: border-box !important;
  align-self: stretch !important;
  justify-self: stretch !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-exchange-clean-info {
  order: 2 !important;
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin-top: 0 !important;
  text-align: center !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard #homeExchangeNextDay.home-line-compact {
  margin: 0 !important;
  display: grid !important;
  grid-template-columns: auto auto !important;
  justify-content: center !important;
  align-items: baseline !important;
  column-gap: 8px !important;
  row-gap: 0 !important;
  line-height: 1.08 !important;
}
@media (min-width: 521px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard {
    min-height: 300px !important;
    height: 300px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank.exchange-tank {
    height: 190px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard #homeExchangeNextDay.home-line-compact {
    font-size: clamp(14px, 1.25vw, 17px) !important;
  }
}
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard {
    min-height: 258px !important;
    height: 258px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-exchange-clean-body {
    gap: 6px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank.exchange-tank {
    height: 152px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard #homeExchangeNextDay.home-line-compact {
    font-size: clamp(11px, 2.85vw, 13px) !important;
  }
}
@media (max-width: 380px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard {
    min-height: 246px !important;
    height: 246px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank.exchange-tank {
    height: 142px !important;
  }
}

/* FLOWDEMO_WATERCHANGER_WIDE_TANK_OVERLAP_FIX_20260601
   宽屏视觉自检修正：2048px 桌面下“下次”会被 190px 满宽水桶挤出卡片；桌面端水桶略矮，卡片留出稳定底部安全区。 */
@media (min-width: 521px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard {
    min-height: 306px !important;
    height: 306px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank.exchange-tank {
    height: 174px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard #homeExchangeNextDay.home-line-compact {
    margin-top: 0 !important;
    font-size: clamp(13px, 1.12vw, 16px) !important;
  }
}
@media (min-width: 1600px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank.exchange-tank {
    height: 170px !important;
  }
}

/* FLOWDEMO_WATERCHANGER_MAKEUP_CARD_COMPACT_20260601
   视觉自检修正：补水状态卡标题区、状态胶囊与参数列表之间空白过大；压缩内部节奏，保持左右卡同高。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard {
  justify-content: flex-start !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-card-head {
  display: grid !important;
  grid-template-columns: auto 1fr;
  align-items: center !important;
  column-gap: 10px !important;
  row-gap: 8px !important;
  margin-bottom: 0 !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .borrowed-card-icon {
  grid-column: 1;
  grid-row: 1;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-card-title {
  grid-column: 2;
  grid-row: 1;
  line-height: 1.05 !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-card-side {
  grid-column: 1 / -1;
  grid-row: 2;
  margin-top: 0 !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-card-inline {
  padding: 4px 10px !important;
  line-height: 1.05 !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-detail-list {
  margin-top: 14px !important;
  gap: 5px !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-line-compact {
  grid-template-columns: minmax(34px, 0.38fr) minmax(0, 1fr) !important;
  gap: 7px !important;
  line-height: 1.08 !important;
}
@media (min-width: 521px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-detail-list {
    margin-top: 16px !important;
    gap: 6px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-line-compact {
    font-size: clamp(13px, 1.05vw, 15px) !important;
  }
}
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-card-head {
    column-gap: 8px !important;
    row-gap: 7px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-detail-list {
    margin-top: 12px !important;
    gap: 5px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-line-compact {
    font-size: clamp(12px, 3.05vw, 13.5px) !important;
  }
}

/* FLOWDEMO_WATERCHANGER_UNIFY_CARD_TITLE_ROW_20260601
   用户裁定：下面两张卡片标题区要和上面一致，图标在左、文字在右，而不是文字在图标下方。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] .home-apex-card .home-card-head,
body.waterchanger-cloud-copy[data-theme="pumpapex"] .home-apex-card .summary-label,
body.waterchanger-cloud-copy[data-theme="pumpapex"] .home-apex-card .borrowed-card-icon,
body.waterchanger-cloud-copy[data-theme="pumpapex"] .home-apex-card .home-card-title,
body.waterchanger-cloud-copy[data-theme="pumpapex"] .home-apex-card .summary-label.home-card-title,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeApexSaltGuardVisual .home-card-head,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeApexSaltGuardVisual .summary-label,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeApexSaltGuardVisual .borrowed-card-icon,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeApexSaltGuardVisual .home-card-title,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeApexSaltGuardVisual .summary-label.home-card-title {
  text-align: left !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] .home-apex-card .home-card-head,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeApexSaltGuardVisual .home-card-head,
body.waterchanger-cloud-copy[data-theme="pumpapex"] .home-apex-card.borrowed-status-card,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeApexSaltGuardVisual.borrowed-status-card {
  align-items: flex-start !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] .home-apex-card .home-card-head,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeApexSaltGuardVisual .home-card-head {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: center !important;
  justify-content: start !important;
  column-gap: 10px !important;
  row-gap: 0 !important;
  margin-bottom: 12px !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] .home-apex-card .borrowed-card-icon,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeApexSaltGuardVisual .borrowed-card-icon {
  grid-column: 1 !important;
  grid-row: 1 !important;
  margin: 0 !important;
  align-self: center !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] .home-apex-card .summary-label,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeApexSaltGuardVisual .summary-label,
body.waterchanger-cloud-copy[data-theme="pumpapex"] .home-apex-card .home-card-title,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeApexSaltGuardVisual .home-card-title {
  grid-column: 2 !important;
  grid-row: 1 !important;
  margin: 0 !important;
  line-height: 1.08 !important;
}
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] .home-apex-card .home-card-head,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeApexSaltGuardVisual .home-card-head {
    column-gap: 8px !important;
    margin-bottom: 10px !important;
  }
}

/* FLOWDEMO_WATERCHANGER_BOTTOM_CARD_TITLE_GRID_FIX_20260601
   结构修正：APEX/盐度卡的图标是卡片直接子节点，不在标题容器内；用卡片级 grid 统一为“图标左、标题右”。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeApexCard,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeSaltGuardCard {
  display: grid !important;
  grid-template-columns: clamp(24px, 6.6vw, 34px) minmax(0, 1fr) !important;
  grid-auto-rows: auto !important;
  align-content: start !important;
  align-items: center !important;
  column-gap: 10px !important;
  row-gap: 12px !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeApexCard > .borrowed-card-icon,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeSaltGuardCard > .borrowed-card-icon {
  grid-column: 1 !important;
  grid-row: 1 !important;
  margin: 0 !important;
  justify-self: start !important;
  align-self: center !important;
  width: clamp(24px, 6.6vw, 34px) !important;
  height: clamp(24px, 6.6vw, 34px) !important;
  border-radius: 10px !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeApexCard > .borrowed-card-icon svg,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeSaltGuardCard > .borrowed-card-icon svg {
  width: 70% !important;
  height: 70% !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeApexCard > .summary-label,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeSaltGuardCard > .summary-label {
  grid-column: 2 !important;
  grid-row: 1 !important;
  margin: 0 !important;
  align-self: center !important;
  justify-self: start !important;
  text-align: left !important;
  white-space: nowrap !important;
  line-height: 1.08 !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeApexCard > .home-apex-probe-grid,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeSaltGuardCard > .home-salt-guard-visual {
  grid-column: 1 / -1 !important;
  grid-row: 2 !important;
  margin-top: 0 !important;
}
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeApexCard,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeSaltGuardCard {
    column-gap: 8px !important;
    row-gap: 10px !important;
  }
}

/* FLOWDEMO_WATERCHANGER_CLICK_CLEAR_INPUT_20260601
   数值输入交互：点击清空等待输入；空白离开恢复原值；输入后沿用自动保存和泡泡提示。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] input.flow-click-clear-active {
  border-color: rgba(245, 166, 35, 0.72) !important;
  box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.12), 0 12px 28px rgba(245, 166, 35, 0.10) !important;
  background: rgba(255, 255, 255, 0.98) !important;
  color: #2f3338 !important;
  -webkit-text-fill-color: #2f3338 !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] input.flow-click-clear-active::placeholder {
  color: rgba(47, 51, 56, 0.38) !important;
  -webkit-text-fill-color: rgba(47, 51, 56, 0.38) !important;
}

/* FLOWDEMO_WATERCHANGER_ALL_NUMERIC_CLICK_CLEAR_20260601
   用户裁定：所有数值输入统一模板；点击清空等待输入，空白离开恢复原值，已接入自动保存组的字段继续泡泡提示。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] input[data-click-clear-numeric="1"] {
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

/* FLOWDEMO_WATERCHANGER_PLAN_MODAL_CORE_ONLY_20260601
   用户裁定：换水计划弹窗只保留中间核心表单；关闭依赖点空白区，不再显示外层标题和关闭按钮。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-plan-editor .sheet {
  width: min(92vw, 720px) !important;
  max-height: calc(100dvh - 28px) !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-plan-editor .sheet-head {
  display: none !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-plan-editor .plan-editor-card {
  margin: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  border-radius: clamp(28px, 7vw, 46px) !important;
  padding: clamp(28px, 5vw, 42px) !important;
  background: linear-gradient(145deg, rgba(255, 251, 244, 0.94), rgba(255, 255, 255, 0.88)) !important;
  border: 1px solid rgba(255, 255, 255, 0.64) !important;
  box-shadow: 0 24px 70px rgba(139, 118, 82, 0.18), inset 0 1px 0 rgba(255,255,255,0.72) !important;
  max-height: calc(100dvh - 28px) !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-plan-editor .flow-feedback-card-hidden {
  display: none !important;
}
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-plan-editor {
    align-items: center !important;
    padding: 12px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-plan-editor .sheet {
    width: min(94vw, 430px) !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-plan-editor .plan-editor-card {
    padding: 22px 20px 24px !important;
    border-radius: 34px !important;
  }
}


/* FLOWDEMO_WATERCHANGER_CORE_POPUP_BATCH1_20260601
   源码核对后第一批：表单/设置型弹页核心化；关闭交给空白遮罩，不再让外层标题栏和关闭按钮占用视觉空间。
   仅作用本地云端副本 waterchanger-cloud-copy + pumpapex 主题，不改协议、数据结构或云端接口。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] :is(
  #overlay-plan-editor,
  #overlay-manual-change,
  #overlay-makeup-editor,
  #overlay-trim-editor,
  #overlay-network,
  #overlay-espnow-settings,
  #overlay-espnow-discovery,
  #overlay-pump-calibration,
  #overlay-apex-access,
  #overlay-apex-salt-guard
).overlay {
  align-items: center !important;
  justify-content: center !important;
  padding: clamp(10px, 3vw, 22px) !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] :is(
  #overlay-manual-change,
  #overlay-makeup-editor,
  #overlay-trim-editor,
  #overlay-network,
  #overlay-espnow-settings,
  #overlay-espnow-discovery,
  #overlay-pump-calibration,
  #overlay-apex-access,
  #overlay-apex-salt-guard
) > .sheet {
  width: min(92vw, 760px) !important;
  max-height: calc(100dvh - 28px) !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] :is(
  #overlay-manual-change,
  #overlay-makeup-editor,
  #overlay-trim-editor,
  #overlay-network,
  #overlay-espnow-settings,
  #overlay-espnow-discovery,
  #overlay-pump-calibration,
  #overlay-apex-access,
  #overlay-apex-salt-guard
) > .sheet > .sheet-head {
  display: none !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] :is(
  #overlay-manual-change .manual-change-card,
  #overlay-makeup-editor .makeup-editor-card,
  #overlay-trim-editor .trim-editor-panel,
  #overlay-network .sheet > .card,
  #overlay-espnow-settings .sheet > .card,
  #overlay-espnow-discovery .sheet > .card,
  #overlay-pump-calibration .sheet > .card,
  #overlay-apex-access .apex-config-card,
  #overlay-apex-access .sheet > .card,
  #overlay-apex-salt-guard .apex-salt-card
) {
  margin: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  border-radius: clamp(28px, 7vw, 46px) !important;
  padding: clamp(24px, 4.8vw, 40px) !important;
  background: linear-gradient(145deg, rgba(255, 251, 244, 0.94), rgba(255, 255, 255, 0.88)) !important;
  border: 1px solid rgba(255, 255, 255, 0.64) !important;
  box-shadow: 0 24px 70px rgba(139, 118, 82, 0.18), inset 0 1px 0 rgba(255,255,255,0.72) !important;
  max-height: calc(100dvh - 28px) !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-apex-access .sheet {
  width: min(94vw, 980px) !important;
  display: grid !important;
  gap: 14px !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-apex-access .sheet > .card + .card {
  max-height: min(44dvh, 420px) !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] :is(
  #overlay-manual-change,
  #overlay-makeup-editor,
  #overlay-trim-editor,
  #overlay-network,
  #overlay-espnow-settings,
  #overlay-espnow-discovery,
  #overlay-pump-calibration,
  #overlay-apex-access,
  #overlay-apex-salt-guard
) .flow-feedback-card-hidden {
  display: none !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] :is(
  #overlay-manual-change,
  #overlay-makeup-editor,
  #overlay-trim-editor,
  #overlay-network,
  #overlay-espnow-settings,
  #overlay-espnow-discovery,
  #overlay-pump-calibration,
  #overlay-apex-access,
  #overlay-apex-salt-guard
) :is(label, .field label, .section-note, .status-box, .switch-meta span, em, p, span) {
  color: #333333 !important;
  -webkit-text-fill-color: #333333 !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] :is(
  #overlay-manual-change,
  #overlay-makeup-editor,
  #overlay-trim-editor,
  #overlay-network,
  #overlay-espnow-settings,
  #overlay-espnow-discovery,
  #overlay-pump-calibration,
  #overlay-apex-access,
  #overlay-apex-salt-guard
) :is(input, select) {
  background: rgba(255, 255, 255, 0.92) !important;
  color: #333333 !important;
  -webkit-text-fill-color: #333333 !important;
  border-color: rgba(215, 215, 215, 0.88) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.86), 0 2px 8px rgba(0,0,0,0.04) !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-manual-change .manual-split-row {
  background: rgba(255, 255, 255, 0.62) !important;
  border: 1px solid rgba(245, 166, 35, 0.22) !important;
  border-radius: 24px !important;
  padding: 14px 16px !important;
}

/* 服务泵设置/计划类没有内层 card，sheet 自身就是核心卡片；保留返回/标题功能，避免破坏二级弹页导航。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] :is(
  #overlay-pump-service-settings,
  #overlay-pump-service-calibration,
  #overlay-pump-service-time-settings,
  #overlay-pump-service-protection-settings,
  #overlay-pump-service-normal-plan,
  #overlay-pump-service-normal-continuous,
  #overlay-pump-service-apex-plan,
  #overlay-pump-service-apex-continuous,
  #overlay-pump-service-manual
).overlay {
  align-items: center !important;
  justify-content: center !important;
  padding: clamp(10px, 3vw, 22px) !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] :is(
  #overlay-pump-service-settings,
  #overlay-pump-service-calibration,
  #overlay-pump-service-time-settings,
  #overlay-pump-service-protection-settings,
  #overlay-pump-service-normal-plan,
  #overlay-pump-service-normal-continuous,
  #overlay-pump-service-apex-plan,
  #overlay-pump-service-apex-continuous,
  #overlay-pump-service-manual
) > .sheet {
  width: min(92vw, 820px) !important;
  max-height: calc(100dvh - 28px) !important;
  border-radius: clamp(28px, 7vw, 46px) !important;
  padding: clamp(22px, 4.2vw, 36px) !important;
  background: linear-gradient(145deg, rgba(255, 251, 244, 0.94), rgba(255, 255, 255, 0.88)) !important;
  border: 1px solid rgba(255, 255, 255, 0.64) !important;
  box-shadow: 0 24px 70px rgba(139, 118, 82, 0.18), inset 0 1px 0 rgba(255,255,255,0.72) !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] :is(
    #overlay-manual-change,
    #overlay-makeup-editor,
    #overlay-trim-editor,
    #overlay-network,
    #overlay-espnow-settings,
    #overlay-espnow-discovery,
    #overlay-pump-calibration,
    #overlay-apex-access,
    #overlay-apex-salt-guard
  ) > .sheet {
    width: min(94vw, 430px) !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] :is(
    #overlay-manual-change .manual-change-card,
    #overlay-makeup-editor .makeup-editor-card,
    #overlay-trim-editor .trim-editor-panel,
    #overlay-network .sheet > .card,
    #overlay-espnow-settings .sheet > .card,
    #overlay-espnow-discovery .sheet > .card,
    #overlay-pump-calibration .sheet > .card,
    #overlay-apex-access .apex-config-card,
    #overlay-apex-access .sheet > .card,
    #overlay-apex-salt-guard .apex-salt-card
  ) {
    border-radius: 34px !important;
    padding: 22px 20px 24px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-apex-access .sheet {
    width: min(94vw, 430px) !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-apex-access .sheet > .card + .card {
    display: none !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] :is(
    #overlay-pump-service-settings,
    #overlay-pump-service-calibration,
    #overlay-pump-service-time-settings,
    #overlay-pump-service-protection-settings,
    #overlay-pump-service-normal-plan,
    #overlay-pump-service-normal-continuous,
    #overlay-pump-service-apex-plan,
    #overlay-pump-service-apex-continuous,
    #overlay-pump-service-manual
  ) > .sheet {
    width: min(94vw, 430px) !important;
    border-radius: 34px !important;
    padding: 22px 20px 24px !important;
  }
}


/* FLOWDEMO_WATERCHANGER_CORE_POPUP_BATCH1_REFINEMENT_20260601
   第一轮截图自检：服务泵计划/手动类弹页仍出现标题栏和 X；按用户确认，关闭依赖空白区，表单弹页隐藏顶部栏。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] :is(
  #overlay-pump-service-normal-plan,
  #overlay-pump-service-normal-continuous,
  #overlay-pump-service-apex-plan,
  #overlay-pump-service-apex-continuous,
  #overlay-pump-service-manual,
  #overlay-pump-service-time-settings,
  #overlay-pump-service-protection-settings
) > .sheet > .sheet-head {
  display: none !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] :is(
  #overlay-pump-service-normal-plan,
  #overlay-pump-service-normal-continuous,
  #overlay-pump-service-apex-plan,
  #overlay-pump-service-apex-continuous,
  #overlay-pump-service-manual,
  #overlay-pump-service-time-settings,
  #overlay-pump-service-protection-settings
) > .sheet {
  padding-top: clamp(24px, 4.8vw, 40px) !important;
}


/* FLOWDEMO_WATERCHANGER_HOME_TOP_CARDS_DENSE_20260601
   用户截图目标：换水状态压成紧凑大水桶卡；补水状态压掉下半部空白。只改本地云端副本首页两张状态卡。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard {
  display: grid !important;
  align-content: start !important;
  overflow: hidden !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-card-head,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-card-head {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: clamp(10px, 2.6vw, 20px) !important;
  min-height: 34px !important;
  margin: 0 !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .borrowed-card-icon svg,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .borrowed-card-icon svg {
  width: clamp(30px, 7.4vw, 44px) !important;
  height: clamp(30px, 7.4vw, 44px) !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-card-title,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-card-title {
  font-size: clamp(26px, 6.4vw, 40px) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.04em !important;
  white-space: nowrap !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-exchange-clean-body {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  align-items: stretch !important;
  gap: clamp(5px, 1.5vw, 9px) !important;
  height: 100% !important;
  min-height: 0 !important;
  margin-top: clamp(10px, 2.4vw, 16px) !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank.exchange-tank {
  order: 1 !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  align-self: stretch !important;
  justify-self: stretch !important;
  border-width: 4px !important;
  border-radius: 16px !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-exchange-clean-info {
  order: 2 !important;
  width: 100% !important;
  min-height: 0 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0 !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard #homeExchangeNextDay.home-line-compact {
  display: flex !important;
  justify-content: center !important;
  align-items: baseline !important;
  gap: 8px !important;
  width: 100% !important;
  font-size: clamp(14px, 3.35vw, 20px) !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  margin: 0 !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard #homeExchangeNextDay .home-line-label,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard #homeExchangeNextDay .home-line-value {
  display: inline !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard {
  gap: clamp(12px, 3vw, 22px) !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-card-side {
  margin: 0 0 0 clamp(8px, 2vw, 14px) !important;
  flex: 0 0 auto !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-card-inline {
  padding: 5px 13px !important;
  border-radius: 999px !important;
  font-size: clamp(15px, 3.6vw, 20px) !important;
  line-height: 1 !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-detail-list {
  display: grid !important;
  grid-template-columns: minmax(42px, 0.42fr) minmax(0, 1fr) !important;
  row-gap: clamp(5px, 1.35vw, 8px) !important;
  column-gap: clamp(8px, 2.4vw, 18px) !important;
  margin: 0 !important;
  align-content: start !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-line-compact {
  display: contents !important;
  line-height: 1.08 !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-line-label,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-line-value {
  font-size: clamp(21px, 5.25vw, 34px) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.03em !important;
  white-space: nowrap !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-line-label {
  text-align: left !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-line-value {
  text-align: left !important;
}

@media (min-width: 521px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard {
    height: 292px !important;
    min-height: 292px !important;
    padding: 26px 30px 24px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard {
    grid-template-rows: auto minmax(0, 1fr) !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard {
    grid-template-rows: auto minmax(0, 1fr) !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank.exchange-tank {
    max-height: 180px !important;
  }
}

@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard {
    height: 250px !important;
    min-height: 250px !important;
    padding: 20px 22px 18px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard {
    grid-template-rows: auto minmax(0, 1fr) !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard {
    grid-template-rows: auto minmax(0, 1fr) !important;
    gap: 12px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard #homeExchangeNextDay.home-line-compact {
    font-size: clamp(12px, 3.1vw, 14px) !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-line-label,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-line-value {
    font-size: clamp(16px, 4.05vw, 19px) !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-detail-list {
    row-gap: 5px !important;
    column-gap: 8px !important;
  }
}

@media (max-width: 380px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard {
    height: 238px !important;
    min-height: 238px !important;
    padding: 18px 18px 16px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-line-label,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-line-value {
    font-size: 15px !important;
  }
}


/* FLOWDEMO_WATERCHANGER_HOME_TOP_CARDS_DENSE_SAFE1_20260601
   截图自检修正：390px 手机两列卡片宽度仅约 155px，上一版标题/数值被裁切；手机端单独降字号、收内距、给水桶右侧安全边界。 */
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard {
    padding: 18px 14px 16px !important;
    height: 250px !important;
    min-height: 250px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-card-head,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-card-head {
    gap: 7px !important;
    min-height: 26px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .borrowed-card-icon svg,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .borrowed-card-icon svg {
    width: 26px !important;
    height: 26px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-card-title,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-card-title {
    font-size: clamp(20px, 5.25vw, 22px) !important;
    letter-spacing: -0.05em !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-exchange-clean-body {
    margin-top: 8px !important;
    gap: 5px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank.exchange-tank {
    width: calc(100% - 2px) !important;
    justify-self: center !important;
    border-width: 3px !important;
    border-radius: 14px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank .exchange-tank-grid {
    font-size: 12px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard #homeExchangeNextDay.home-line-compact {
    font-size: 11px !important;
    gap: 5px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard {
    gap: 9px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-card-side {
    margin-left: 3px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-card-inline {
    padding: 4px 8px !important;
    font-size: 13px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-detail-list {
    grid-template-columns: 34px minmax(0, 1fr) !important;
    row-gap: 5px !important;
    column-gap: 6px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-line-label,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-line-value {
    font-size: clamp(14px, 3.7vw, 16px) !important;
    letter-spacing: -0.04em !important;
  }
}


/* FLOWDEMO_WATERCHANGER_HOME_TOP_CARDS_DENSE_SAFE2_20260601
   二次截图自检：390px 两列窄卡标题仍略贴边；隐藏补水胶囊，换取标题和数值安全空间。 */
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-card-title,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-card-title {
    font-size: clamp(19px, 5vw, 21px) !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-card-side {
    display: none !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard {
    gap: 10px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-detail-list {
    row-gap: 6px !important;
  }
}


/* FLOWDEMO_WATERCHANGER_TRIM_EDITOR_THREE_COLUMNS_20260601
   用户裁定：微调目标弹页改为 RO / 废水 / 盐水三列；确认按钮放到输入框下面，三组摆整齐。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-trim-editor > .sheet {
  width: min(94vw, 860px) !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-trim-editor .trim-editor-panel {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(12px, 2.4vw, 22px) !important;
  padding: clamp(24px, 4.4vw, 38px) !important;
  overflow: visible !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-trim-editor .trim-row {
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: auto auto auto !important;
  align-content: start !important;
  gap: clamp(12px, 2vw, 18px) !important;
  padding: 0 !important;
  border-bottom: 0 !important;
  min-width: 0 !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-trim-editor .trim-row-label {
  display: block !important;
  min-height: 64px !important;
  grid-column: auto !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-trim-editor .trim-row-label strong {
  font-size: clamp(24px, 3vw, 32px) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.04em !important;
  color: #333333 !important;
  -webkit-text-fill-color: #333333 !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-trim-editor .trim-row-label span {
  margin-top: 8px !important;
  font-size: clamp(15px, 1.8vw, 20px) !important;
  line-height: 1.2 !important;
  color: #333333 !important;
  -webkit-text-fill-color: #333333 !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-trim-editor .trim-row input {
  grid-column: auto !important;
  width: 100% !important;
  min-height: clamp(54px, 7.2vw, 74px) !important;
  padding: 10px 12px !important;
  border-radius: clamp(18px, 3vw, 28px) !important;
  font-size: clamp(24px, 3.4vw, 34px) !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-align: center !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-trim-editor .trim-row .btn {
  grid-column: auto !important;
  width: 100% !important;
  min-height: clamp(56px, 7.2vw, 78px) !important;
  border-radius: clamp(18px, 3vw, 28px) !important;
  font-size: clamp(22px, 3vw, 30px) !important;
  font-weight: 800 !important;
  padding: 10px 12px !important;
  justify-self: stretch !important;
}
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-trim-editor > .sheet {
    width: min(94vw, 430px) !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-trim-editor .trim-editor-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    padding: 20px 14px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-trim-editor .trim-row {
    gap: 9px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-trim-editor .trim-row-label {
    min-height: 58px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-trim-editor .trim-row-label strong {
    font-size: clamp(18px, 4.8vw, 20px) !important;
    white-space: nowrap !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-trim-editor .trim-row-label span {
    font-size: clamp(12px, 3.2vw, 13px) !important;
    white-space: normal !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-trim-editor .trim-row input {
    min-height: 48px !important;
    border-radius: 17px !important;
    font-size: clamp(18px, 5vw, 21px) !important;
    padding: 8px 6px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-trim-editor .trim-row .btn {
    min-height: 50px !important;
    border-radius: 17px !important;
    font-size: clamp(17px, 4.6vw, 20px) !important;
    padding: 8px 6px !important;
  }
}
@media (max-width: 380px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-trim-editor .trim-editor-panel {
    gap: 6px !important;
    padding: 18px 12px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-trim-editor .trim-row-label strong {
    font-size: 17px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-trim-editor .trim-row-label span {
    font-size: 11px !important;
  }
}


/* FLOWDEMO_WATERCHANGER_HOME_TANK_VERTICAL_ALIGN_20260601
   用户截图校准：水桶略扁并在卡片垂直方向更居中；左侧“下次”与右侧“状态 空闲”底部视觉对齐。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-exchange-clean-body {
  grid-template-rows: minmax(0, 1fr) auto !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard #homeExchangeNextDay.home-line-compact {
  transform: translateY(-2px) !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-detail-list {
  transform: translateY(8px) !important;
}
@media (min-width: 521px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank.exchange-tank {
    max-height: 148px !important;
    height: 148px !important;
    align-self: center !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-exchange-clean-body {
    margin-top: 12px !important;
    gap: 4px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard #homeExchangeNextDay.home-line-compact {
    transform: translateY(-1px) !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-detail-list {
    transform: translateY(13px) !important;
  }
}
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank.exchange-tank {
    height: 138px !important;
    align-self: center !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-exchange-clean-body {
    margin-top: 10px !important;
    gap: 4px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard #homeExchangeNextDay.home-line-compact {
    transform: translateY(-1px) !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-detail-list {
    transform: translateY(8px) !important;
  }
}
@media (max-width: 380px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank.exchange-tank {
    height: 130px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-detail-list {
    transform: translateY(6px) !important;
  }
}


/* FLOWDEMO_WATERCHANGER_ALIGNMENT_REVIEW_FIX_20260601
   用户复核：1) 微调目标三列每列必须中心对齐；2) 首页只调整第一行两张卡，左侧“下次”底线与右侧“状态 空闲”底线对齐；第二行卡片不动。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-trim-editor .trim-row {
  justify-items: center !important;
  text-align: center !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-trim-editor .trim-row-label {
  width: 100% !important;
  text-align: center !important;
  justify-self: center !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-trim-editor .trim-row-label strong,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-trim-editor .trim-row-label span {
  text-align: center !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-trim-editor .trim-row input,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-trim-editor .trim-row .btn {
  justify-self: center !important;
  text-align: center !important;
}

/* 第一行卡片节奏：只动换水状态/补水状态，不触碰 APEX 与盐度保护。 */
@media (min-width: 521px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard {
    padding-top: 30px !important;
    padding-bottom: 22px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-card-head,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-card-head {
    min-height: 46px !important;
    margin-bottom: 0 !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-exchange-clean-body {
    margin-top: 14px !important;
    gap: 6px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank.exchange-tank {
    height: 146px !important;
    max-height: 146px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard #homeExchangeNextDay.home-line-compact {
    transform: translateY(-4px) !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-detail-list {
    transform: translateY(10px) !important;
  }
}
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard {
    padding-top: 20px !important;
    padding-bottom: 15px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-card-head,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-card-head {
    min-height: 28px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-exchange-clean-body {
    margin-top: 9px !important;
    gap: 3px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank.exchange-tank {
    height: 136px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard #homeExchangeNextDay.home-line-compact {
    transform: translateY(-2px) !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-detail-list {
    transform: translateY(7px) !important;
  }
}


/* FLOWDEMO_WATERCHANGER_TRIM_CENTER_STRICT_20260601
   人工截图复核：三列虽等宽，但标题/状态受旧 display:block 影响仍有左对齐感；强制每列内容按列中心排布。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-trim-editor .trim-row {
  place-items: center !important;
  justify-content: center !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-trim-editor .trim-row-label {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: center !important;
  width: 100% !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-trim-editor .trim-row-label strong,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-trim-editor .trim-row-label span {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  align-self: center !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-trim-editor .trim-row input,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-trim-editor .trim-row .btn {
  width: min(100%, 220px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-trim-editor .trim-row input,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-trim-editor .trim-row .btn {
    width: 100% !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-trim-editor .trim-row-label strong,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-trim-editor .trim-row-label span {
    letter-spacing: -0.04em !important;
  }
}


/* FLOWDEMO_WATERCHANGER_DESKTOP_TOP_ROW_FIT_FIX_20260601
   网页端截图复核：补水状态内容字号过大，底部两行被挤掉；只收紧第一行右卡网页端字号和下移量，第二行不动。 */
@media (min-width: 521px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-detail-list {
    row-gap: 5px !important;
    transform: translateY(4px) !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-line-label,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-line-value {
    font-size: clamp(24px, 2.05vw, 30px) !important;
    line-height: 1.04 !important;
    letter-spacing: -0.045em !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard #homeExchangeNextDay.home-line-compact {
    transform: translateY(-8px) !important;
  }
}


/* FLOWDEMO_WATERCHANGER_DESKTOP_TOP_ROW_FIT_FIX2_20260601
   真实行盒核对：29.52px * 6 行导致“状态 空闲”越出第一行卡片；网页端压到 24px 左右，和左卡“下次”底线对齐。 */
@media (min-width: 521px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-detail-list {
    grid-template-columns: 82px minmax(0, 1fr) !important;
    row-gap: 5px !important;
    transform: translateY(4px) !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-line-label,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-line-value {
    font-size: 24px !important;
    line-height: 1.02 !important;
    letter-spacing: -0.035em !important;
  }
}


/* FLOWDEMO_WATERCHANGER_SIDEBAR_TOP_ROW_PIXEL_FIX_20260601
   像素级复核：右侧栏 794px 宽时第一行单卡仅 180px，却命中桌面大字号，导致标题/水桶/补水列表溢出。
   仅修第一行两张卡；第二行 APEX/盐度保护不动。 */
@media (min-width: 521px) and (max-width: 900px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard {
    height: 292px !important;
    min-height: 292px !important;
    padding: 24px 18px 18px !important;
    overflow: hidden !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-card-head,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-card-head {
    width: 100% !important;
    min-height: 34px !important;
    gap: 9px !important;
    overflow: visible !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .borrowed-card-icon svg,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .borrowed-card-icon svg {
    width: 32px !important;
    height: 32px !important;
    flex: 0 0 auto !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-card-title,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-card-title {
    font-size: 26px !important;
    line-height: 1.02 !important;
    letter-spacing: -0.055em !important;
    max-width: calc(100% - 42px) !important;
    overflow: visible !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-exchange-clean-body {
    margin-top: 12px !important;
    gap: 4px !important;
    width: 100% !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank.exchange-tank {
    width: 100% !important;
    height: 142px !important;
    max-height: 142px !important;
    justify-self: center !important;
    align-self: center !important;
    border-width: 4px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard #homeExchangeNextDay.home-line-compact {
    width: 100% !important;
    font-size: 15px !important;
    line-height: 1 !important;
    transform: translateY(-4px) !important;
    white-space: nowrap !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-detail-list {
    width: 100% !important;
    grid-template-columns: 48px minmax(0, 1fr) !important;
    row-gap: 7px !important;
    column-gap: 8px !important;
    transform: translateY(7px) !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-line-label,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-line-value {
    font-size: 18px !important;
    line-height: 1.02 !important;
    letter-spacing: -0.045em !important;
    white-space: nowrap !important;
  }
}


/* FLOWDEMO_WATERCHANGER_SIDEBAR_TOP_ROW_PIXEL_FIX2_20260601
   右侧栏像素复核：align-review5 右卡“空闲”底线比左卡“下次”高 44px；下移右卡参数列表对齐底线。 */
@media (min-width: 521px) and (max-width: 900px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-detail-list {
    transform: translateY(51px) !important;
  }
}


/* FLOWDEMO_WATERCHANGER_IPHONE14PLUS_TOP_ROW_FIX_20260601
   14 Plus 基准 428px：只修第一行两卡。目标：右卡“状态 空闲”底线对齐左卡“下次”；第一行内容区节奏更接近第二行，第二行不动。 */
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-exchange-clean-body {
    margin-top: 4px !important;
    gap: 3px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank.exchange-tank {
    height: 126px !important;
    align-self: end !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard #homeExchangeNextDay.home-line-compact {
    transform: translateY(0) !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-detail-list {
    transform: translateY(39px) !important;
  }
}


/* FLOWDEMO_WATERCHANGER_IPHONE14PLUS_TOP_ROW_ALIGN2_20260601
   14 Plus 428px 像素复核：第一行标题到内容距离明显大于第二行；同时“下次”底线比“空闲”高约 2.5px。
   只修第一行两张卡：内容上移接近第二行节奏，左卡底部说明单独回落对齐右卡“空闲”。 */
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-exchange-clean-body {
    margin-top: -20px !important;
    gap: 3px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank.exchange-tank {
    height: 126px !important;
    align-self: end !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard #homeExchangeNextDay.home-line-compact {
    transform: translateY(26px) !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-detail-list {
    transform: translateY(9px) !important;
    row-gap: 13px !important;
  }
}


/* FLOWDEMO_WATERCHANGER_IPHONE14PLUS_BOTTOMLINE_ALIGN3_20260601
   align2 复核：标题到内容距离已收敛到 15/19px；“下次”底线仍比“空闲”高约 5.5px，仅补偿左卡底部说明。 */
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard #homeExchangeNextDay.home-line-compact {
    transform: translateY(32px) !important;
  }
}


/* FLOWDEMO_WATERCHANGER_IPHONE14PLUS_VISUAL_RHYTHM_ALIGN4_20260601
   用户视觉复核：第一行标题字号/图标仍大于第二行，且真实标题文字到底部内容距离仍偏松。
   只改第一行两张卡：标题规格对齐第二行；内容上移；底部行保持与“空闲”视觉底线对齐。 */
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-card-head,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-card-head {
    min-height: 22px !important;
    height: 22px !important;
    gap: 8px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .borrowed-card-icon svg,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .borrowed-card-icon svg {
    width: 20px !important;
    height: 20px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-card-title,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-card-title {
    font-size: 17px !important;
    line-height: 18.36px !important;
    letter-spacing: -0.035em !important;
    max-width: calc(100% - 28px) !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-exchange-clean-body {
    margin-top: -35px !important;
    gap: 3px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank.exchange-tank {
    height: 126px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard #homeExchangeNextDay.home-line-compact {
    transform: translateY(32px) !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-detail-list {
    transform: translateY(-11px) !important;
    row-gap: 17px !important;
  }
}


/* FLOWDEMO_WATERCHANGER_IPHONE14PLUS_VISUAL_RHYTHM_ALIGN5_20260601
   align4 视觉复核：标题规格已统一，但右侧内容贴标题过近，水桶宽度被收窄。
   恢复第一行内容安全宽度；右侧内容回到约 14px 标题间距；底部说明同步下移保持底线。 */
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-exchange-clean-body {
    width: 100% !important;
    margin-top: -35px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank.exchange-tank {
    width: 100% !important;
    height: 126px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard #homeExchangeNextDay.home-line-compact {
    transform: translateY(45px) !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-detail-list {
    width: 100% !important;
    transform: translateY(3px) !important;
    row-gap: 17px !important;
  }
}


/* FLOWDEMO_WATERCHANGER_IPHONE14PLUS_CONTENT_WIDTH_ALIGN6_20260601
   align5 视觉复核：第一行内容块实际宽 111.6px，第二行内容块约 129px；水桶显瘦。
   仅统一第一行内容块宽度到第二行节奏，保持标题规格和底线对齐不变。 */
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-exchange-clean-body,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-detail-list {
    width: 129px !important;
    max-width: 129px !important;
    justify-self: center !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank.exchange-tank,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard #homeExchangeNextDay.home-line-compact {
    width: 129px !important;
    max-width: 129px !important;
    justify-self: center !important;
  }
}


/* FLOWDEMO_WATERCHANGER_IPHONE14PLUS_TANK_MAX_ROW_COMPACT_ALIGN7_20260601
   用户画框澄清：竖线检查图标中轴；实测上下图标中心差约 0.9px，不再乱动。
   左上大框：水桶尽可能撑到安全边界；右上横框：补水状态行距太大，压缩行距。 */
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-exchange-clean-body {
    width: 139px !important;
    max-width: 139px !important;
    justify-self: center !important;
    margin-top: -39px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank.exchange-tank {
    width: 139px !important;
    max-width: 139px !important;
    height: 138px !important;
    justify-self: center !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard #homeExchangeNextDay.home-line-compact {
    width: 139px !important;
    max-width: 139px !important;
    justify-self: center !important;
    transform: translateY(30px) !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-detail-list {
    width: 129px !important;
    max-width: 129px !important;
    justify-self: center !important;
    transform: translateY(7px) !important;
    row-gap: 9px !important;
  }
}


/* FLOWDEMO_WATERCHANGER_IPHONE14PLUS_VISUAL_SAFE_ALIGN8_20260601
   视觉对齐优先：align7 水桶虽大但贴标题，破坏呼吸感；这里用“安全边界”。
   水桶比 align6 更宽，但顶部保留约 14~18px 视觉间距；补水行距压缩但不追机械底线。 */
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-exchange-clean-body {
    width: 139px !important;
    max-width: 139px !important;
    justify-self: center !important;
    margin-top: -35px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank.exchange-tank {
    width: 139px !important;
    max-width: 139px !important;
    height: 132px !important;
    justify-self: center !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard #homeExchangeNextDay.home-line-compact {
    width: 139px !important;
    max-width: 139px !important;
    justify-self: center !important;
    transform: translateY(36px) !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-detail-list {
    width: 129px !important;
    max-width: 129px !important;
    justify-self: center !important;
    transform: translateY(4px) !important;
    row-gap: 11px !important;
  }
}


/* FLOWDEMO_WATERCHANGER_IPHONE14PLUS_RIGHT_TEXT_BASELINE_ALIGN9_20260601
   用户复核：右上文字行间距过大最影响观感；左上应对齐右上补水状态的紧凑内容节奏。
   策略：右上行距压紧；左上水桶变扁但保持安全宽度，水桶内容区与右上文字区形成同一视觉带。 */
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-exchange-clean-body {
    width: 139px !important;
    max-width: 139px !important;
    justify-self: center !important;
    margin-top: -31px !important;
    gap: 8px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank.exchange-tank {
    width: 139px !important;
    max-width: 139px !important;
    height: 118px !important;
    justify-self: center !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard #homeExchangeNextDay.home-line-compact {
    width: 139px !important;
    max-width: 139px !important;
    justify-self: center !important;
    transform: translateY(24px) !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-detail-list {
    width: 129px !important;
    max-width: 129px !important;
    justify-self: center !important;
    transform: translateY(4px) !important;
    row-gap: 5px !important;
  }
}


/* FLOWDEMO_WATERCHANGER_IPHONE14PLUS_MAKEUP_BASE_ALIGN10_20260601
   基准切换：先确定“补水状态”为紧凑标准卡，压缩第一行卡片并留底部安全边际；
   再让“换水状态”水桶/下次对齐补水状态的内容节奏。 */
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard {
    height: 222px !important;
    min-height: 222px !important;
    padding-top: 20px !important;
    padding-bottom: 15px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-card-head,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-card-head {
    min-height: 22px !important;
    height: 22px !important;
    gap: 8px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .borrowed-card-icon svg,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .borrowed-card-icon svg {
    width: 20px !important;
    height: 20px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-card-title,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-card-title {
    font-size: 17px !important;
    line-height: 18.36px !important;
    letter-spacing: -0.035em !important;
    max-width: calc(100% - 28px) !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-detail-list {
    width: 129px !important;
    max-width: 129px !important;
    justify-self: center !important;
    transform: translateY(0px) !important;
    row-gap: 5px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-exchange-clean-body {
    width: 139px !important;
    max-width: 139px !important;
    justify-self: center !important;
    margin-top: -31px !important;
    gap: 8px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank.exchange-tank {
    width: 139px !important;
    max-width: 139px !important;
    height: 112px !important;
    justify-self: center !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard #homeExchangeNextDay.home-line-compact {
    width: 139px !important;
    max-width: 139px !important;
    justify-self: center !important;
    transform: translateY(10px) !important;
  }
}


/* FLOWDEMO_WATERCHANGER_IPHONE14PLUS_MAKEUP_BASE_ALIGN11_20260601
   align10 视觉复核：压缩第一行正确，但水桶贴标题。
   以补水状态内容顶线为基准：水桶下移并压扁，底部“下次”靠近补水“空闲”视觉底线。 */
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-exchange-clean-body {
    margin-top: -22px !important;
    gap: 8px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank.exchange-tank {
    width: 139px !important;
    max-width: 139px !important;
    height: 102px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard #homeExchangeNextDay.home-line-compact {
    transform: translateY(-2px) !important;
  }
}


/* FLOWDEMO_WATERCHANGER_IPHONE14PLUS_MAKEUP_BASE_ALIGN12_20260601
   align11 复核：底线接近，但水桶内容顶线比补水内容低约 10px。
   让水桶顶线贴近补水内容顶线，同时保持扁水桶和底部安全边际。 */
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-exchange-clean-body {
    margin-top: -27px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard #homeExchangeNextDay.home-line-compact {
    transform: translateY(7px) !important;
  }
}


/* FLOWDEMO_WATERCHANGER_IPHONE14PLUS_FIRST_ROW_HEIGHT_ALIGN13_20260601
   用户复核：第一行卡片底部橙色留白过多，不是安全边际。
   继续压缩第一行卡片高度，以补水状态最后一行为基准保留约 12px 底部边距。 */
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard {
    height: 194px !important;
    min-height: 194px !important;
    padding-bottom: 12px !important;
  }
}


/* FLOWDEMO_WATERCHANGER_IPHONE14PLUS_ABSOLUTE_SAFE_ALIGN14_20260601
   修正版本混乱后的明确版本：align13 通过压高度造成水桶压到标题。
   用固定卡内定位：标题/内容不再被卡片高度反向挤压；第一行卡片只裁掉底部多余留白。
   基准：补水状态为紧凑标准卡，换水状态对齐补水内容节奏，水桶允许更扁。 */
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard {
    position: relative !important;
    height: 205px !important;
    min-height: 205px !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-card-head,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-card-head {
    position: absolute !important;
    top: 20px !important;
    left: 14px !important;
    right: 14px !important;
    width: auto !important;
    min-height: 22px !important;
    height: 22px !important;
    gap: 8px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .borrowed-card-icon svg,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .borrowed-card-icon svg {
    width: 20px !important;
    height: 20px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-card-title,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-card-title {
    font-size: 17px !important;
    line-height: 18.36px !important;
    letter-spacing: -0.035em !important;
    max-width: calc(100% - 28px) !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-detail-list {
    position: absolute !important;
    top: 53px !important;
    left: 50% !important;
    width: 129px !important;
    max-width: 129px !important;
    transform: translateX(-50%) !important;
    row-gap: 5px !important;
    grid-template-columns: 45px minmax(0, 1fr) !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-exchange-clean-body {
    position: absolute !important;
    top: 53px !important;
    left: 50% !important;
    width: 139px !important;
    max-width: 139px !important;
    height: 126px !important;
    transform: translateX(-50%) !important;
    display: grid !important;
    grid-template-rows: 102px 11px !important;
    gap: 12px !important;
    margin: 0 !important;
    justify-items: center !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank.exchange-tank {
    width: 139px !important;
    max-width: 139px !important;
    height: 102px !important;
    justify-self: center !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard #homeExchangeNextDay.home-line-compact {
    width: 139px !important;
    max-width: 139px !important;
    transform: none !important;
    justify-self: center !important;
  }
}


/* FLOWDEMO_WATERCHANGER_DESKTOP_VISUAL_UNIFY_ALIGN15_20260601
   桌面端视觉统一：第一行标题/图标过大，补水明细溢出卡片；按第二行卡片规格收敛。
   仅桌面端生效，手机端 align14/后续手机规则独立。 */
@media (min-width: 521px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard {
    height: 232px !important;
    min-height: 232px !important;
    padding: 24px 24px 20px !important;
    overflow: hidden !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-card-head,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-card-head {
    min-height: 30px !important;
    height: 30px !important;
    width: 100% !important;
    gap: 14px !important;
    margin: 0 !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .borrowed-card-icon svg,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .borrowed-card-icon svg {
    width: 26px !important;
    height: 26px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-card-title,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-card-title {
    font-size: 26px !important;
    line-height: 1 !important;
    letter-spacing: -0.035em !important;
    max-width: calc(100% - 42px) !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-exchange-clean-body {
    width: 236px !important;
    max-width: 100% !important;
    margin-top: 14px !important;
    gap: 8px !important;
    justify-self: center !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank.exchange-tank {
    width: 236px !important;
    max-width: 100% !important;
    height: 122px !important;
    justify-self: center !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard #homeExchangeNextDay.home-line-compact {
    width: 236px !important;
    max-width: 100% !important;
    transform: none !important;
    font-size: 18px !important;
    line-height: 1 !important;
    justify-self: center !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-detail-list {
    width: 236px !important;
    max-width: 100% !important;
    grid-template-columns: 66px minmax(0, 1fr) !important;
    row-gap: 5px !important;
    column-gap: 12px !important;
    transform: none !important;
    margin-top: 14px !important;
    justify-self: center !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-line-label,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-line-value {
    font-size: 20px !important;
    line-height: 1.04 !important;
    letter-spacing: -0.035em !important;
    white-space: nowrap !important;
  }
}


/* FLOWDEMO_WATERCHANGER_DESKTOP_VISUAL_SAFE_ALIGN16_20260601
   桌面端 align15 复核：补水标题旁“自动补水”胶囊破坏统一；补水明细宽度越出卡片安全边界。
   保留第一行标题规格统一，但把内容收进卡片内。 */
@media (min-width: 521px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-card-side {
    display: none !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-exchange-clean-body,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank.exchange-tank,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard #homeExchangeNextDay.home-line-compact,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-detail-list {
    width: 226px !important;
    max-width: 100% !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-detail-list {
    grid-template-columns: 64px minmax(0, 1fr) !important;
    justify-self: center !important;
  }
}


/* FLOWDEMO_WATERCHANGER_CONTENT_EDGE_ALIGN17_20260601
   用户红框口径：水桶左右边界要对齐第二行内容块左右边界。
   手机端：对齐 APEX 小格整体内容宽 129px；桌面端：对齐桌面第二行内容块约 236px。 */
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-exchange-clean-body,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank.exchange-tank,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard #homeExchangeNextDay.home-line-compact {
    width: 129px !important;
    max-width: 129px !important;
  }
}
@media (min-width: 521px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-exchange-clean-body,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank.exchange-tank,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard #homeExchangeNextDay.home-line-compact {
    width: 236px !important;
    max-width: 236px !important;
  }
}


/* FLOWDEMO_WATERCHANGER_TANK_HEIGHT_BASELINE_ALIGN18_20260601
   用户口径：水桶左右边界已对齐第二行内容块两侧；此轮只改水桶高度。
   手机端：把“下次 周二 08:30”底部追齐右侧“空闲”底部。
   桌面端：同样用第二行内容块宽度为视觉基准，压矮水桶避免“下次”低于右侧状态行。 */
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-exchange-clean-body {
    height: 129px !important;
    grid-template-rows: 105px 11px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank.exchange-tank {
    height: 105px !important;
  }
}
@media (min-width: 521px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank.exchange-tank {
    height: 108px !important;
  }
}


/* FLOWDEMO_WATERCHANGER_DESKTOP_TANK_BODY_ALIGN19_20260601
   桌面端复核：只改 tank height 不会推动“下次”底线，因为父内容区仍占满 156px。
   因此桌面端同时收束换水内容区高度：宽度继续对齐第二行内容块，底线对齐右侧补水列表。 */
@media (min-width: 521px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-exchange-clean-body {
    height: 142px !important;
    max-height: 142px !important;
    grid-template-rows: 112px 18px !important;
    gap: 12px !important;
    align-items: stretch !important;
    margin-top: 14px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank.exchange-tank {
    height: 112px !important;
    max-height: 112px !important;
    align-self: stretch !important;
  }
}


/* FLOWDEMO_WATERCHANGER_DESKTOP_SAFE_RHYTHM_ALIGN20_20260601
   网页端复核：align19 虽然底线数据对齐，但右侧“状态 空闲”贴底，左侧水桶过扁。
   只修桌面端：保留水桶宽度与第二行内容块两侧对齐，恢复第一行卡片呼吸感。 */
@media (min-width: 521px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard {
    height: 252px !important;
    min-height: 252px !important;
    padding: 24px 24px 22px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-card-head,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-card-head {
    height: 30px !important;
    min-height: 30px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-exchange-clean-body {
    width: 236px !important;
    max-width: 236px !important;
    height: 154px !important;
    max-height: 154px !important;
    grid-template-rows: 122px 18px !important;
    gap: 14px !important;
    margin-top: 14px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank.exchange-tank {
    width: 236px !important;
    max-width: 236px !important;
    height: 122px !important;
    max-height: 122px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard #homeExchangeNextDay.home-line-compact {
    width: 236px !important;
    max-width: 236px !important;
    line-height: 18px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-detail-list {
    width: 226px !important;
    max-width: 226px !important;
    row-gap: 4px !important;
    margin-top: 14px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-line-label,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-line-value {
    font-size: 19px !important;
    line-height: 1.02 !important;
  }
}


/* FLOWDEMO_WATERCHANGER_TANK_MODE_BADGE_ALIGN21_20260601
   修正水桶左上角模式标：之前 content-box 让圆圈实际尺寸偏大，压住外框和第一条网格线。
   手机与桌面统一改成 border-box、小尺寸、内收，保留 A 标识但不抢水桶主体。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank.exchange-tank::before {
  box-sizing: border-box !important;
  aspect-ratio: 1 / 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  z-index: 8 !important;
}
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank.exchange-tank::before {
    width: 20px !important;
    height: 20px !important;
    left: 6px !important;
    top: 5px !important;
    border-width: 2.5px !important;
    font-size: 10px !important;
    line-height: 1 !important;
  }
}
@media (min-width: 521px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank.exchange-tank::before {
    width: 22px !important;
    height: 22px !important;
    left: 7px !important;
    top: 6px !important;
    border-width: 2.5px !important;
    font-size: 10.5px !important;
    line-height: 1 !important;
  }
}


/* FLOWDEMO_WATERCHANGER_HIDE_NEXT_TANK_BOTTOM_ALIGN22_20260601
   用户裁定：删除“下次 周二 08:30”这一行；水桶底部直接对齐右侧“空闲”底部。
   水桶宽度继续对齐第二行内容块左右边：手机 129px，桌面 236px。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard #homeExchangeNextDay.home-line-compact {
  display: none !important;
}
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-exchange-clean-body {
    width: 129px !important;
    max-width: 129px !important;
    height: 128px !important;
    max-height: 128px !important;
    grid-template-rows: 128px !important;
    gap: 0 !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank.exchange-tank {
    width: 129px !important;
    max-width: 129px !important;
    height: 128px !important;
    max-height: 128px !important;
  }
}
@media (min-width: 521px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-exchange-clean-body {
    width: 236px !important;
    max-width: 236px !important;
    height: 160px !important;
    max-height: 160px !important;
    grid-template-rows: 160px !important;
    gap: 0 !important;
    margin-top: 14px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank.exchange-tank {
    width: 236px !important;
    max-width: 236px !important;
    height: 160px !important;
    max-height: 160px !important;
  }
}


/* FLOWDEMO_WATERCHANGER_DESKTOP_TITLE_COLUMN_ALIGN23_20260601
   网页端标题栏列对齐：用户指出上下两排图标列、标题列没有在同一竖线。
   只修桌面端：第一行图标盒/标题起点按第二行卡片对齐，保留手机端现状。 */
@media (min-width: 521px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-card-head,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-card-head {
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) !important;
    column-gap: 10px !important;
    align-items: center !important;
    justify-content: start !important;
    width: 236px !important;
    max-width: 236px !important;
    height: 34px !important;
    min-height: 34px !important;
    margin: 0 auto !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-card-head {
    width: 236px !important;
    max-width: 236px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .borrowed-card-icon,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .borrowed-card-icon {
    width: 34px !important;
    height: 34px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .borrowed-card-icon svg,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .borrowed-card-icon svg,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-card-head svg,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-card-head svg {
    width: 34px !important;
    height: 34px !important;
    flex: 0 0 34px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-card-title,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-card-title {
    justify-self: start !important;
    align-self: center !important;
    margin: 0 !important;
    font-size: 26px !important;
    line-height: 1 !important;
  }
}


/* FLOWDEMO_WATERCHANGER_DESKTOP_TITLE_COLUMN_FINE_ALIGN24_20260601
   align23 后第一行标题栏图标/标题尺寸统一，但整组仍比第二行向右约 6px。
   只修桌面端：第一行标题栏整组左移 6px，使上下图标列和标题列同轴。 */
@media (min-width: 521px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-card-head,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-card-head {
    transform: translateX(-6px) !important;
  }
}


/* FLOWDEMO_WATERCHANGER_DESKTOP_TITLE_SIZE_MATCH_ALIGN25_20260601
   网页端自检：align24 只对齐了列位置，但第一行图标/标题仍比第二行大。
   统一第一行标题栏到第二行视觉规格：图标约 24px，标题 22px，同时保持上下同轴。 */
@media (min-width: 521px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-card-head,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-card-head {
    grid-template-columns: 24px minmax(0, 1fr) !important;
    column-gap: 15px !important;
    width: 236px !important;
    max-width: 236px !important;
    height: 24px !important;
    min-height: 24px !important;
    transform: translateX(-1px) !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .borrowed-card-icon,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .borrowed-card-icon {
    width: 24px !important;
    height: 24px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .borrowed-card-icon svg,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .borrowed-card-icon svg,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-card-head svg,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-card-head svg {
    width: 24px !important;
    height: 24px !important;
    flex: 0 0 24px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-card-title,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-card-title {
    font-size: 22px !important;
    line-height: 23.76px !important;
    letter-spacing: -0.035em !important;
  }
}


/* FLOWDEMO_WATERCHANGER_NEXT_PILL_ALIGN26_20260601
   恢复“下次换水时间”，但不占水桶下方空间：放到换水状态标题右侧小胶囊。
   复用 JS 中 nextExchangeSchedule，水桶仍保持 align22 的底部/宽度对齐。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeNextPill.home-next-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  border-radius: 999px !important;
  color: rgba(255,255,255,.96) !important;
  -webkit-text-fill-color: rgba(255,255,255,.96) !important;
  background: rgba(255,255,255,.18) !important;
  border: 1px solid rgba(255,255,255,.28) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18) !important;
  font-weight: 900 !important;
  letter-spacing: -0.04em !important;
  line-height: 1 !important;
}
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-card-head {
    display: grid !important;
    grid-template-columns: 22px minmax(0, auto) max-content !important;
    column-gap: 6px !important;
    align-items: center !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-card-title {
    font-size: 17px !important;
    line-height: 18.36px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeNextPill.home-next-pill {
    max-width: 62px !important;
    padding: 4px 6px !important;
    font-size: 9.5px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}
@media (min-width: 521px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-card-head {
    grid-template-columns: 24px max-content max-content !important;
    column-gap: 10px !important;
    width: 236px !important;
    max-width: 236px !important;
    height: 24px !important;
    min-height: 24px !important;
    transform: translateX(-1px) !important;
    align-items: center !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeNextPill.home-next-pill {
    padding: 5px 8px !important;
    font-size: 12px !important;
    max-width: 86px !important;
  }
}


/* FLOWDEMO_WATERCHANGER_NEXT_PILL_MOBILE_FIX_ALIGN27_20260601
   align26 手机端胶囊参与标题 grid，导致标题被挤乱。
   手机端改为右上角独立小徽标：不参与标题流，不改变水桶底部/宽度对齐。 */
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-card-head {
    position: absolute !important;
    top: 20px !important;
    left: 14px !important;
    right: 14px !important;
    width: auto !important;
    height: 22px !important;
    min-height: 22px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-card-title {
    transform: none !important;
    font-size: 17px !important;
    line-height: 18.36px !important;
    max-width: calc(100% - 78px) !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeNextPill.home-next-pill {
    position: absolute !important;
    right: 14px !important;
    top: 24px !important;
    width: 46px !important;
    max-width: 46px !important;
    min-height: 24px !important;
    padding: 3px 5px !important;
    white-space: normal !important;
    text-align: center !important;
    font-size: 8.5px !important;
    line-height: 9px !important;
    letter-spacing: -0.04em !important;
    overflow: hidden !important;
    z-index: 5 !important;
  }
}


/* FLOWDEMO_WATERCHANGER_INTERNAL_INFO_PILLS_ALIGN28_20260602
   新方案：第一行两张状态卡各有一个“卡片内部胶囊提示位”。
   换水：下次换水时间；补水：上次补水时间。胶囊不再放标题后面，避免破坏标题栏。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] .home-card-info-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  color: rgba(255,255,255,.96) !important;
  -webkit-text-fill-color: rgba(255,255,255,.96) !important;
  background: rgba(255,255,255,.18) !important;
  border: 1px solid rgba(255,255,255,.28) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18) !important;
  font-weight: 900 !important;
  letter-spacing: -0.04em !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  pointer-events: none !important;
}
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeNextPill.home-next-pill {
    display: none !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-card-head,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-card-head {
    position: absolute !important;
    top: 20px !important;
    left: 14px !important;
    right: 14px !important;
    height: 22px !important;
    min-height: 22px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: auto !important;
    transform: none !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-card-title,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-card-title {
    font-size: 17px !important;
    line-height: 18.36px !important;
    max-width: 100% !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeNextPill.home-card-info-pill,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupLastPill.home-card-info-pill {
    position: absolute !important;
    top: 44px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 6 !important;
    height: 18px !important;
    min-height: 18px !important;
    padding: 0 8px !important;
    max-width: 120px !important;
    font-size: 9.5px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-exchange-clean-body {
    top: 70px !important;
    height: 111px !important;
    max-height: 111px !important;
    grid-template-rows: 111px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank.exchange-tank {
    height: 111px !important;
    max-height: 111px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-detail-list {
    top: 70px !important;
    row-gap: 3px !important;
  }
}
@media (min-width: 521px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeNextPill.home-next-pill {
    display: none !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeNextPill.home-card-info-pill,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupLastPill.home-card-info-pill {
    position: absolute !important;
    top: 282px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    height: 22px !important;
    min-height: 22px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
    z-index: 6 !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-exchange-clean-body {
    margin-top: 38px !important;
    height: 136px !important;
    max-height: 136px !important;
    grid-template-rows: 136px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank.exchange-tank {
    height: 136px !important;
    max-height: 136px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-detail-list {
    margin-top: 38px !important;
    row-gap: 3px !important;
  }
}


/* FLOWDEMO_WATERCHANGER_INTERNAL_INFO_PILLS_DESKTOP_FIX_ALIGN29_20260602
   align28 桌面端胶囊 top 使用了视口量级，导致在卡片内部被裁掉。
   修正为卡片内标题下方提示位：标题 -> 胶囊 -> 内容。 */
@media (min-width: 521px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeNextPill.home-card-info-pill,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupLastPill.home-card-info-pill {
    top: 54px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    height: 22px !important;
    min-height: 22px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
    z-index: 8 !important;
  }
}

/* FLOWDEMO_WATERCHANGER_INTERNAL_INFO_PILLS_TANK_BOTTOM_ALIGN30_20260602
   用户要求：换水状态胶囊显示“下次 周二 08:30”；水桶底部继续下拉，
   让桶底视觉对齐右侧补水状态“空闲”底部，同时保持水桶宽度对齐第二行内容两侧。 */
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeNextPill.home-card-info-pill {
    max-width: 132px !important;
    padding: 0 8px !important;
    font-size: 9.2px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-exchange-clean-body {
    height: 118px !important;
    max-height: 118px !important;
    grid-template-rows: 118px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank.exchange-tank {
    height: 118px !important;
    max-height: 118px !important;
  }
}
@media (min-width: 521px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeNextPill.home-card-info-pill {
    max-width: 170px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-exchange-clean-body {
    height: 142px !important;
    max-height: 142px !important;
    grid-template-rows: 142px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeTank.exchange-tank {
    height: 142px !important;
    max-height: 142px !important;
  }
}

/* FLOWDEMO_WATERCHANGER_TITLE_AXIS_UNIFY_ALIGN31_20260602
   用户复核：四张首页状态卡的标题系统必须统一，不只看单个局部。
   目标：同列上下图标中轴对齐；上排标题字号/图标尺寸/标题左边界跟第二行同一视觉基准。 */
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-card-head,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-card-head {
    top: 21px !important;
    left: 19px !important;
    right: 19px !important;
    height: 22px !important;
    min-height: 22px !important;
    gap: 8px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-card-head svg,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-card-head svg {
    width: 28.23px !important;
    height: 28.23px !important;
    flex: 0 0 28.23px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-card-title,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-card-title,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeApexCard > .summary-label,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeSaltGuardCard > .summary-label {
    font-size: 17px !important;
    line-height: 18.36px !important;
    letter-spacing: -0.055em !important;
  }
}
@media (min-width: 521px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-card-head,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-card-head {
    left: 19px !important;
    right: 19px !important;
    height: 34px !important;
    min-height: 34px !important;
    grid-template-columns: 34px minmax(0, 1fr) !important;
    column-gap: 10px !important;
    align-items: center !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-card-head svg,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-card-head svg {
    width: 34px !important;
    height: 34px !important;
    flex: 0 0 34px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-card-title,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-card-title,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeApexCard > .summary-label,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeSaltGuardCard > .summary-label {
    font-size: 22px !important;
    line-height: 23.76px !important;
    letter-spacing: -0.055em !important;
  }
}

/* FLOWDEMO_WATERCHANGER_TITLE_AXIS_CONTAINER_FIX_ALIGN32_20260602
   align31 复核：实际视觉图标由 .borrowed-card-icon 外层尺寸决定，不能只改 svg。
   手机端：上排图标外层压到第二行 28.23px；桌面端：上排标题栏左移 5px，图标外层统一 34px。
   桌面端标题栏变高后水桶被推低，本轮把水桶内容上收 10px，恢复桶底/右侧状态底线对齐。 */
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-card-head > .borrowed-card-icon,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-card-head > .borrowed-card-icon {
    width: 28.23px !important;
    height: 28.23px !important;
    flex: 0 0 28.23px !important;
    border-radius: 9px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-card-head > .borrowed-card-icon svg,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-card-head > .borrowed-card-icon svg {
    width: 70% !important;
    height: 70% !important;
    flex: 0 0 auto !important;
  }
}
@media (min-width: 521px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-card-head,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-card-head {
    margin-left: -5px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-card-head > .borrowed-card-icon,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-card-head > .borrowed-card-icon {
    width: 34px !important;
    height: 34px !important;
    flex: 0 0 34px !important;
    border-radius: 10px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-card-head > .borrowed-card-icon svg,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-card-head > .borrowed-card-icon svg {
    width: 70% !important;
    height: 70% !important;
    flex: 0 0 auto !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-exchange-clean-body {
    margin-top: 28px !important;
  }
}

/* FLOWDEMO_WATERCHANGER_DESKTOP_STATUS_VISIBLE_BOTTOM_ALIGN33_20260602
   网页端真实问题：右侧补水状态文字行可见底部溢出列表容器，导致红框视觉底线低于水桶。
   修正策略：不拉长水桶；把网页端补水状态列表整体上收，让最后一行“状态/空闲”的可见底部回到水桶底线。 */
@media (min-width: 521px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-detail-list {
    margin-top: 17px !important;
  }
}

/* FLOWDEMO_WATERCHANGER_FIRST_ROW_RHYTHM_AUDIT_FIX_ALIGN34_20260602
   审美审核结论：第二行卡片整体性强，第一行尤其网页端显碎。
   原因：第一行标题相对卡片顶部比第二行低约 8px，且右侧补水状态内容没有占满与水桶同一视觉带。
   修正：仅桌面端，把第一行标题/胶囊整体上移；右侧列表改为与水桶同高的 142px 内容带，顶部/底部同时贴齐。 */
@media (min-width: 521px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeStatusCard .home-card-head,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-card-head {
    transform: translate(-1px, -8px) !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeNextPill.home-card-info-pill,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupLastPill.home-card-info-pill {
    top: 46px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupStatusCard .home-detail-list {
    margin-top: 6px !important;
    height: 142px !important;
    max-height: 142px !important;
    row-gap: 5.2px !important;
    align-content: start !important;
  }
}

/* FLOWDEMO_WATERCHANGER_INFO_PILL_LEFT_ALIGN_ALIGN35_20260602
   用户要求：胶囊不要居中，要左边对齐水桶和文字内容块。
   手机端：内容块相对卡片左侧约 19px；桌面端：水桶相对左卡约 25px，补水文字块相对右卡约 27.5px。 */
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeNextPill.home-card-info-pill,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupLastPill.home-card-info-pill {
    left: 19px !important;
    transform: none !important;
  }
}
@media (min-width: 521px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeExchangeNextPill.home-card-info-pill {
    left: 25px !important;
    transform: none !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #homeMakeupLastPill.home-card-info-pill {
    left: 27.5px !important;
    transform: none !important;
  }
}

/* FLOWDEMO_WATERCHANGER_MANUAL_EXCHANGE_TWO_ACTIONS_ALIGN37_20260602
   用户标注：手动换水区只保留两张功能卡；底部操作条删除。
   左卡承接“微调进出水”功能；右卡承接“手动换水”功能。
   当前模式从左卡移到右卡右上区域，与当前参数左右对称、逐行对齐。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-exchange-action-grid {
  align-items: stretch !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-trim-entry-card,
body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-change-entry-card {
  min-height: 0 !important;
  height: 100% !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-change-entry-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(84px, 0.82fr) !important;
  column-gap: 14px !important;
  align-items: start !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-change-param-block,
body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-change-mode-block {
  min-width: 0 !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-change-mode-block {
  text-align: left !important;
  justify-self: stretch !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-change-mode-block .summary-label,
body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-change-param-block .summary-label,
body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-trim-entry-card .summary-label {
  margin-bottom: 8px !important;
  white-space: nowrap !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-change-mode-block .summary-value,
body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-change-param-block .summary-value,
body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-trim-entry-card .summary-value {
  white-space: nowrap !important;
  line-height: 1.1 !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-change-mode-block .summary-value {
  font-size: clamp(20px, 3.9vw, 30px) !important;
  letter-spacing: -0.055em !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-trim-entry-card .summary-sub,
body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-change-param-block .summary-sub {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-exchange-card {
    padding-bottom: 20px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-exchange-action-grid {
    gap: 12px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-trim-entry-card,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-change-entry-card {
    min-height: 124px !important;
    padding: 22px 20px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-change-entry-card {
    grid-template-columns: minmax(0, 1fr) minmax(68px, 0.8fr) !important;
    column-gap: 10px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-change-mode-block .summary-value {
    font-size: 19px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-trim-entry-card .summary-value,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-change-param-block .summary-value {
    font-size: 22px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-trim-entry-card .summary-label,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-change-param-block .summary-label,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-change-mode-block .summary-label {
    font-size: 14px !important;
  }
}
@media (min-width: 521px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-exchange-action-grid {
    gap: 16px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-trim-entry-card,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-change-entry-card {
    min-height: 136px !important;
    padding: 24px 24px !important;
  }
}


/* FLOWDEMO_WATERCHANGER_MANUAL_CHANGE_PARAM_SIMPLE_ALIGN39_20260602
   右侧手动换水入口回归单列参数显示：不再硬塞“当前模式 / 同进同出”。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-change-entry-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 0 !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-change-param-block {
  width: 100% !important;
  min-width: 0 !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-change-param-block .summary-label {
  margin-bottom: 16px !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-change-param-block .summary-value {
  margin-bottom: 14px !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-change-param-block .summary-sub {
  max-width: 100% !important;
}
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-change-entry-card {
    padding: 22px 26px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-change-param-block .summary-label {
    margin-bottom: 14px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-change-param-block .summary-value {
    font-size: 27px !important;
    margin-bottom: 13px !important;
  }
}

/* FLOWDEMO_WATERCHANGER_MANUAL_PARAM_CARD_ORIGINAL_RHYTHM_ALIGN40_20260602
   对齐用户原图：右侧参数卡不塞模式，完整显示“单次 30 L · 拆分 4 次”，整体更紧凑。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-change-entry-card {
  justify-content: flex-start !important;
  text-align: left !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-change-param-block {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-change-param-block .summary-sub {
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
  letter-spacing: -0.07em !important;
}
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-trim-entry-card,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-change-entry-card {
    min-height: 112px !important;
    padding: 20px 20px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-change-param-block {
    width: 100% !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-change-param-block .summary-label {
    margin-bottom: 12px !important;
    font-size: 15px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-change-param-block .summary-value {
    margin-bottom: 12px !important;
    font-size: 27px !important;
    line-height: 1.05 !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-change-param-block .summary-sub {
    font-size: 14px !important;
    line-height: 1.15 !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-trim-entry-card .summary-label {
    margin-bottom: 12px !important;
    font-size: 15px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-trim-entry-card .summary-value {
    margin-bottom: 12px !important;
    font-size: 25px !important;
    line-height: 1.05 !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-trim-entry-card .summary-sub {
    font-size: 14px !important;
    line-height: 1.15 !important;
    letter-spacing: -0.035em !important;
  }
}
@media (min-width: 521px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-trim-entry-card,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-change-entry-card {
    min-height: 118px !important;
    padding: 22px 22px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-change-param-block .summary-label {
    margin-bottom: 12px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-change-param-block .summary-value {
    margin-bottom: 12px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-change-param-block .summary-sub {
    font-size: 16px !important;
  }
}

/* FLOWDEMO_WATERCHANGER_MANUAL_CARDS_MATCH_AUTO_TYPE_ALIGN41_20260602
   手动换水两卡回归自动换水卡片的原本字号/行距：标签 13、主值 18、说明 13；左右同一三行布局。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-trim-entry-card,
body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-change-entry-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-change-param-block {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  width: 100% !important;
  min-width: 0 !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-trim-entry-card .summary-label,
body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-change-param-block .summary-label {
  font-size: 13px !important;
  line-height: normal !important;
  font-weight: 400 !important;
  letter-spacing: 0.26px !important;
  margin: 0 0 10px 0 !important;
  white-space: nowrap !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-trim-entry-card .summary-value,
body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-change-param-block .summary-value {
  font-size: 18px !important;
  line-height: 21.6px !important;
  font-weight: 700 !important;
  letter-spacing: -0.36px !important;
  margin: 0 0 8px 0 !important;
  white-space: nowrap !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-trim-entry-card .summary-sub,
body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-change-param-block .summary-sub {
  font-size: 13px !important;
  line-height: 20.15px !important;
  font-weight: 400 !important;
  letter-spacing: normal !important;
  margin: 0 !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
}
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-trim-entry-card,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-change-entry-card {
    min-height: 124px !important;
    padding: 24px 20px !important;
  }
}
@media (min-width: 521px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-trim-entry-card,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] .manual-change-entry-card {
    min-height: 124px !important;
    padding: 24px 22px !important;
  }
}

/* FLOWDEMO_WATERCHANGER_MAKEUP_LAYOUT_UNIFY_NO_TYPE_CHANGE_ALIGN42_20260602
   补水页视觉统一：只改结构、宽度、间距和对齐；硬规定：不覆盖字号和行距。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-makeup .manual-makeup-combined-row,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-makeup .makeup-cal-combined-row {
  align-items: stretch !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-makeup .manual-makeup-combined-row > .switch-row,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-makeup .makeup-cal-combined-row > .switch-row {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: center !important;
  gap: 14px !important;
  min-width: 0 !important;
  overflow: hidden !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-makeup .manual-makeup-combined-row > .switch-row .switch-meta,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-makeup .makeup-cal-combined-row > .switch-row .switch-meta {
  width: 100% !important;
  min-width: 0 !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-makeup .manual-makeup-combined-row > .switch-row .switch-meta strong,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-makeup .manual-makeup-combined-row > .switch-row .switch-meta span,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-makeup .makeup-cal-combined-row > .switch-row .switch-meta strong,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-makeup .makeup-cal-combined-row > .switch-row .switch-meta span {
  max-width: 100% !important;
  white-space: normal !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-makeup .manual-makeup-combined-row > .switch-row .toggle-btn,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-makeup .makeup-cal-combined-row > .switch-row .toggle-btn {
  width: 100% !important;
  min-width: 0 !important;
  justify-self: stretch !important;
  align-self: stretch !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-makeup .manual-makeup-combined-row > .status-box,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-makeup .makeup-cal-combined-row > .status-box {
  min-width: 0 !important;
  overflow: hidden !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-makeup .manual-makeup-combined-row > .status-box *,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-makeup .makeup-cal-combined-row > .status-box * {
  max-width: 100% !important;
}
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-makeup .manual-makeup-combined-row,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-makeup .makeup-cal-combined-row {
    gap: 12px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-makeup .manual-makeup-combined-row > .switch-row,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-makeup .manual-makeup-combined-row > .status-box,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-makeup .makeup-cal-combined-row > .switch-row,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-makeup .makeup-cal-combined-row > .status-box {
    min-height: 168px !important;
  }
}
@media (min-width: 521px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-makeup .manual-makeup-combined-row,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-makeup .makeup-cal-combined-row {
    gap: 16px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-makeup .manual-makeup-combined-row > .switch-row,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-makeup .manual-makeup-combined-row > .status-box,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-makeup .makeup-cal-combined-row > .switch-row,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-makeup .makeup-cal-combined-row > .status-box {
    min-height: 154px !important;
  }
}

/* FLOWDEMO_WATERCHANGER_MAKEUP_COPY_WRAP_NO_TYPE_CHANGE_ALIGN43_20260602
   补水页窄卡文案正常换行；不改字号、不改行距。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-makeup .manual-makeup-combined-row > .switch-row .switch-meta span,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-makeup .makeup-cal-combined-row > .switch-row .switch-meta span {
  word-break: normal !important;
  overflow-wrap: break-word !important;
  overflow: visible !important;
}

/* FLOWDEMO_WATERCHANGER_CALIBRATION_MODAL_CORE_NO_TYPE_CHANGE_ALIGN46_20260602
   校准类弹页按维护卡核心化：隐藏外层标题栏，sheet 透明，只保留核心卡片。
   硬规定：不覆盖文字大小和行高；校准输入、进度、确认动作全部保留。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] :is(
  #overlay-calibration-detail,
  #overlay-calibration-progress,
  #overlay-salt-summary,
  #overlay-salt-auto
).overlay {
  align-items: center !important;
  justify-content: center !important;
  padding: clamp(10px, 3vw, 22px) !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] :is(
  #overlay-calibration-detail,
  #overlay-calibration-progress,
  #overlay-salt-summary,
  #overlay-salt-auto
) > .sheet {
  width: min(92vw, 760px) !important;
  max-height: calc(100dvh - 28px) !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] :is(
  #overlay-calibration-detail,
  #overlay-calibration-progress,
  #overlay-salt-summary,
  #overlay-salt-auto
) > .sheet > .sheet-head {
  display: none !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] :is(
  #overlay-calibration-detail,
  #overlay-calibration-progress,
  #overlay-salt-summary,
  #overlay-salt-auto
) > .sheet > .card {
  margin: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  border-radius: clamp(28px, 7vw, 46px) !important;
  padding: clamp(24px, 4.8vw, 40px) !important;
  background: linear-gradient(145deg, rgba(255, 251, 244, 0.94), rgba(255, 255, 255, 0.88)) !important;
  border: 1px solid rgba(255, 255, 255, 0.64) !important;
  box-shadow: 0 24px 70px rgba(139, 118, 82, 0.18), inset 0 1px 0 rgba(255,255,255,0.72) !important;
  max-height: calc(100dvh - 28px) !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-salt-summary > .sheet,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-salt-auto > .sheet {
  width: min(92vw, 720px) !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-calibration-progress > .sheet {
  width: min(92vw, 680px) !important;
}
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] :is(
    #overlay-calibration-detail,
    #overlay-calibration-progress,
    #overlay-salt-summary,
    #overlay-salt-auto
  ).overlay {
    padding: 12px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] :is(
    #overlay-calibration-detail,
    #overlay-calibration-progress,
    #overlay-salt-summary,
    #overlay-salt-auto
  ) > .sheet {
    width: min(94vw, 430px) !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] :is(
    #overlay-calibration-detail,
    #overlay-calibration-progress,
    #overlay-salt-summary,
    #overlay-salt-auto
  ) > .sheet > .card {
    padding: 22px 20px 24px !important;
    border-radius: 34px !important;
  }
}

/* FLOWDEMO_WATERCHANGER_CALIBRATION_DETAIL_THREE_COL_ALIGN48_20260602
   流量计校准详情：三组校准输入改为三列；不覆盖文字大小和行高。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-calibration-detail .cal-setting-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(10px, 2.2vw, 18px) !important;
  margin-top: 4px !important;
  padding-bottom: 18px !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-calibration-detail .cal-setting-grid .cal-setting-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: clamp(8px, 1.8vw, 12px) !important;
  align-items: stretch !important;
  margin: 0 !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-calibration-detail .cal-setting-title {
  font-weight: 800 !important;
  color: var(--text) !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-calibration-detail .cal-setting-grid .field {
  min-width: 0 !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-calibration-detail .cal-setting-grid input,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-calibration-detail .cal-setting-grid .btn {
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-calibration-detail .cal-setting-grid .btn {
  justify-self: stretch !important;
  grid-column: auto !important;
}
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-calibration-detail .cal-setting-grid {
    gap: 8px !important;
    padding-bottom: 36px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-calibration-detail .cal-setting-grid .cal-setting-row {
    gap: 8px !important;
  }
}

/* FLOWDEMO_WATERCHANGER_CALIBRATION_PAGE_THREE_CARDS_ALIGN49_20260602
   校准页主页面收束为三张纵向功能卡：盐度调配、补水校准、流量计校准。
   硬规定：不覆盖文字大小和行高；保留所有状态回显 ID、按钮函数和备案底部文档流。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration {
  gap: clamp(14px, 2.4vw, 22px) !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration > div:first-child .section-note {
  display: none !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-hub-card {
  display: grid !important;
  gap: clamp(12px, 2.2vw, 18px) !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-hub-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(122px, auto) !important;
  gap: 12px !important;
  align-items: center !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-hub-head h2 {
  margin: 0 0 6px !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-hub-action {
  align-self: center !important;
  justify-self: end !important;
  width: min(100%, 168px) !important;
  min-width: 122px !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-hub-grid {
  display: grid !important;
  gap: 12px !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-hub-grid--salt {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-hub-grid--flow {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-hub-card .summary-card {
  min-width: 0 !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-hub-status {
  margin: 0 !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-hub-launches {
  margin: 0 !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-hub-head {
    grid-template-columns: minmax(0, 1fr) minmax(112px, 0.64fr) !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-hub-action {
    min-width: 0 !important;
    width: 100% !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-hub-grid--salt {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-hub-grid--flow,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-hub-launches {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

/* FLOWDEMO_WATERCHANGER_CALIBRATION_PAGE_THREE_CARDS_TIGHTEN_ALIGN49B_20260602
   三卡片第一轮视觉自检后收紧：浅底文字恢复深色，压缩卡片高度；不覆盖文字大小和行高。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-hub-card {
  padding: clamp(18px, 3.8vw, 28px) !important;
  gap: 12px !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-hub-head h2,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-hub-head .summary-sub,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-hub-head .status-main,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-hub-head .status-sub {
  color: var(--text) !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-hub-action.btn.ghost,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-hub-action.toggle-btn {
  color: var(--accent) !important;
  background: rgba(255, 255, 255, 0.76) !important;
  border-color: rgba(255, 171, 31, 0.22) !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-hub-action .toggle-hint,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-hub-action .toggle-label {
  color: inherit !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-hub-card .summary-card {
  min-height: 0 !important;
  padding: clamp(12px, 2.8vw, 18px) !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-hub-grid,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-hub-launches {
  gap: 10px !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-hub-launches .calibration-launch-btn {
  height: 46px !important;
}
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration {
    gap: 12px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-hub-card {
    padding: 18px !important;
    gap: 10px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-hub-head {
    gap: 10px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-hub-card .summary-card {
    padding: 12px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-hub-launches .calibration-launch-btn {
    height: 42px !important;
  }
}

/* FLOWDEMO_WATERCHANGER_CALIBRATION_SALT_MERGE_ALIGN49C_20260602
   盐度调配主卡合并基础信息和上次调配：点击进入调配弹页；不覆盖文字大小和行高。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-hub-head h2,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-hub-card > .calibration-hub-head h2 {
  color: var(--text) !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-hub-grid--salt {
  grid-template-columns: minmax(0, 1fr) !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-salt-merged-card {
  display: grid !important;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr) !important;
  column-gap: clamp(12px, 3vw, 22px) !important;
  align-items: start !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-salt-merged-card > .summary-label,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-salt-merged-card > .summary-value,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-salt-merged-card > #saltPageBaseGpl,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-salt-merged-card > #saltPageMixRatio {
  grid-column: 1 !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-salt-last-lines {
  grid-column: 2 !important;
  display: grid !important;
  gap: 4px !important;
  align-self: start !important;
}
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-salt-merged-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    column-gap: 10px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-salt-last-lines {
    gap: 3px !important;
  }
}

/* FLOWDEMO_WATERCHANGER_CALIBRATION_PAGE_SINGLE_COLUMN_TIGHT_ALIGN49D_20260602
   校准页固定三行单列，桌面端不继承普通页面双列；继续收紧高度。不覆盖文字大小和行高。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration.view.active {
  grid-template-columns: minmax(0, 1fr) !important;
  width: min(100%, 760px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  justify-content: stretch !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration.view.active > * {
  grid-column: 1 !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-hub-card--salt {
  gap: 8px !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-hub-card--salt .calibration-hub-head {
  margin-bottom: 0 !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-salt-merged-card {
  padding-top: clamp(12px, 2.5vw, 16px) !important;
  padding-bottom: clamp(12px, 2.5vw, 16px) !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-hub-card--flow .calibration-hub-grid--flow {
  gap: 8px !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-hub-card--flow .summary-card {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration.view.active {
    width: 100% !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-hub-card--salt .calibration-hub-head,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-hub-card--makeup .calibration-hub-head,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-hub-card--flow .calibration-hub-head {
    grid-template-columns: minmax(0, 1fr) minmax(104px, 0.56fr) !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-salt-merged-card {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-hub-card--flow .summary-card {
    padding-top: 9px !important;
    padding-bottom: 9px !important;
  }
}

/* FLOWDEMO_WATERCHANGER_CALIBRATION_FLOW_STRIP_ALIGN49E_20260602
   流量计三路回显合成单条三列，保留三个启动校准按钮；不覆盖文字大小和行高。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-hub-grid--flow {
  grid-template-columns: minmax(0, 1fr) !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-flow-strip {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
  align-items: start !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-flow-item {
  min-width: 0 !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-flow-strip .summary-value,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-flow-strip .summary-sub {
  word-break: break-word !important;
}
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-flow-strip {
    gap: 8px !important;
  }
}

/* FLOWDEMO_WATERCHANGER_CALIBRATION_SALT_BASIC_STRIP_ALIGN49F_20260602
   盐度调配主卡只显示基础信息，做成与补水校准状态一致的全宽长条；保留隐藏回显 ID，不改文字大小和行高。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-salt-merged-card {
  grid-template-columns: minmax(0, 1fr) !important;
  width: 100% !important;
  min-height: 0 !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-salt-merged-card > .summary-label,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-salt-merged-card > .summary-value,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-salt-merged-card > #saltPageBaseGpl,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-salt-merged-card > #saltPageMixRatio {
  grid-column: 1 !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-hub-card--salt .calibration-hub-grid--salt,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-hub-card--makeup .calibration-hub-status {
  margin-top: 0 !important;
}


/* FLOWDEMO_WATERCHANGER_CALIBRATION_SALT_BASIC_HORIZONTAL_ALIGN50_20260602
   盐度调配基础信息改为同一卡片横向信息带；只改布局，不覆盖文字大小和行高。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-salt-basic-row {
  display: grid !important;
  grid-template-columns: max-content minmax(0, 1fr) !important;
  gap: clamp(12px, 3vw, 22px) !important;
  align-items: center !important;
  width: 100% !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-salt-basic-items {
  display: grid !important;
  grid-template-columns: max-content minmax(0, 1fr) minmax(0, 1.1fr) !important;
  gap: clamp(10px, 2.6vw, 18px) !important;
  align-items: baseline !important;
  min-width: 0 !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-salt-basic-items > * {
  min-width: 0 !important;
}
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-salt-basic-row {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-salt-basic-items {
    grid-template-columns: max-content minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 8px !important;
  }
}


/* FLOWDEMO_WATERCHANGER_CALIBRATION_FLOW_THREE_SEPARATE_CARDS_ALIGN51_20260602
   流量计校准三路回显拆回三张独立橙色卡，单位放入副文案避免互相挤连；只改布局，不覆盖文字大小和行高。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-hub-grid--flow {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(8px, 2.5vw, 12px) !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-flow-mini-card {
  min-width: 0 !important;
  padding-left: clamp(10px, 2.8vw, 16px) !important;
  padding-right: clamp(10px, 2.8vw, 16px) !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-flow-mini-card .summary-sub {
  word-break: keep-all !important;
}
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-hub-grid--flow {
    gap: 8px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-flow-mini-card {
    padding-left: 9px !important;
    padding-right: 9px !important;
  }
}


/* FLOWDEMO_WATERCHANGER_CALIBRATION_HEAD_SUBCOLOR_ALIGN53_20260602
   校准页浅色外层卡片头部副状态文字使用深灰层级，和上方卡片统一；不覆盖文字大小和行高。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-hub-card > .calibration-hub-head .summary-sub {
  color: rgba(47, 51, 56, 0.72) !important;
  -webkit-text-fill-color: rgba(47, 51, 56, 0.72) !important;
}


/* FLOWDEMO_WATERCHANGER_CALIBRATION_CARD_RHYTHM_ALIGN55_20260602
   校准页补水状态上移到标题副状态位置，盐度基础信息卡收紧内部节奏；只改布局间距，不覆盖文字大小和行高。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-hub-card--makeup .calibration-hub-status {
  display: none !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-salt-merged-card {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-salt-basic-row {
  gap: 6px !important;
}
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-salt-merged-card {
    padding-top: 9px !important;
    padding-bottom: 9px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-salt-basic-row {
    gap: 4px !important;
  }
}

/* FLOWDEMO_WATERCHANGER_ALARM_TRIM_THREE_COL_ALIGN58_20260602: 删除报警重复状态卡和手动保存按钮；参数区统一一行三列，不改字号和行距。 */
body[data-theme="pumpapex"] #view-alarm .alarm-params-card .alarm-settings-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin-bottom: 18px !important;
}
body[data-theme="pumpapex"] #view-alarm .alarm-params-card .alarm-actions-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
}
body[data-theme="pumpapex"] #view-alarm .alarm-params-card .alarm-actions-grid .btn {
  width: 100%;
  min-width: 0;
}
@media (max-width: 520px) {
  body[data-theme="pumpapex"] #view-alarm .alarm-params-card .alarm-settings-grid {
    gap: 10px !important;
  }
  body[data-theme="pumpapex"] #view-alarm .alarm-params-card .alarm-actions-grid {
    gap: 10px !important;
  }
}

/* FLOWDEMO_WATERCHANGER_HOME_TITLE_GAP_UNIFY_ALIGN59_20260602: 首页标题到首卡距离跟随换水/补水普通页；不改字号和行距。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-waterchanger-control .hero-intro {
  margin-bottom: 0 !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-waterchanger-control .hero-intro .section-title {
  display: inline-block !important;
}
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-waterchanger-control .hero-intro {
    margin-bottom: 0 !important;
  }
}

/* FLOWDEMO_WATERCHANGER_HOME_HERO_COPY_PADDING_ALIGN60_20260602: 证明首页多出的 10px 来自 hero-copy 底部内边距；跟随换水/补水标题到首卡 30px 基准。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-waterchanger-control .hero-copy {
  padding-bottom: 0 !important;
}


/* FLOWDEMO_WATERCHANGER_SETTINGS_CLEAN_ALIGN61_20260602: 设置页先清普通可见工程残留；不改既有字号/行距。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings #settingsLeadNote,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings .settings-clean-hidden,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings .settings-engineering-hidden,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings .espnow-panel-head .section-note,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings .espnow-module-section-head {
  display: none !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings .quick-grid > .settings-engineering-hidden {
  display: none !important;
}

/* FLOWDEMO_WATERCHANGER_SETTINGS_TEXT_COLOR_RESTORE_ALIGN62_20260602: 设置页白色/透明外层恢复深色文字；不改字号和行距，橙色功能卡继续白字。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings > .card,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings > .card > *,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings .espnow-panel-head,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings .espnow-panel-head *,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings .espnow-empty {
  color: #333333 !important;
  -webkit-text-fill-color: #333333 !important;
  text-shadow: none !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings .status-chip,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings .status-chip * {
  color: #666666 !important;
  -webkit-text-fill-color: #666666 !important;
  text-shadow: none !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings :is(.summary-card, .quick-card, .status-box, .switch-row, .espnow-status-bar, .espnow-module-card),
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings :is(.summary-card, .quick-card, .status-box, .switch-row, .espnow-status-bar, .espnow-module-card) * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings .settings-theme-embed,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings .settings-theme-embed *,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings .metric-row,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings .metric-row * {
  color: #333333 !important;
  -webkit-text-fill-color: #333333 !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings .settings-theme-embed span,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings .metric-row span,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings #themeCurrentHint {
  color: #666666 !important;
  -webkit-text-fill-color: #666666 !important;
}


/* FLOWDEMO_WATERCHANGER_SETTINGS_ESPNOW_COMPACT_ALIGN63_20260602: 设置页无线模块摘要压缩；顶部点表示桥在线，文字显示在线/接入数；不改字号和行距。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings .espnow-status-bar,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings #espnowEnableSwitch {
  display: none !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings #espnowHeroChip.online .status-dot {
  background: #39c96b !important;
  box-shadow: 0 0 8px rgba(57, 201, 107, 0.55) !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings #espnowHeroChip.offline .status-dot {
  background: #e84d4d !important;
  box-shadow: 0 0 8px rgba(232, 77, 77, 0.48) !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings #espnowHeroChip.warn .status-dot {
  background: #f5a623 !important;
  box-shadow: 0 0 8px rgba(245, 166, 35, 0.48) !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings #espnowHeroChipText {
  font-variant-numeric: tabular-nums;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings .espnow-entry-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

/* FLOWDEMO_WATERCHANGER_SETTINGS_ESPNOW_CHIP_NARROW_ALIGN64_20260602: 无线模块在线数胶囊改为内容自适应宽度；不改字号和行距。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings #espnowHeroChip {
  min-width: 0 !important;
  width: auto !important;
  padding: 9px 16px !important;
  gap: 9px !important;
  justify-content: center !important;
}


/* FLOWDEMO_WATERCHANGER_SETTINGS_MODULE_HOVER_ALIGN65_20260602: 设置页无线子模块卡片 hover 统一到首页/换水/补水/校准橙色卡片节奏。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings .espnow-module-card {
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings .espnow-module-card:hover {
  background: #f5a623 !important;
  background-image: none !important;
  border-color: #f5a623 !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 14px 28px rgba(245, 166, 35, 0.22), 0 6px 14px rgba(0, 0, 0, 0.06) !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings .espnow-module-card:active {
  transform: none !important;
}


/* FLOWDEMO_WATERCHANGER_SETTINGS_MODULE_COMPACT_ALIGN66_20260602: 设置页子模块卡片压缩成两列业务卡；隐藏 MAC/运行态/校准态等工程信息，不改全局字号行距。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings .espnow-module-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings .espnow-module-card {
  width: 100% !important;
  min-height: 132px !important;
  padding: 18px !important;
  grid-template-columns: minmax(0, 1fr) !important;
  align-content: center !important;
  gap: 8px !important;
  overflow: hidden !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings .espnow-module-card-copy {
  gap: 7px !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings .espnow-module-card-top {
  align-items: center !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings .espnow-module-card [data-role="mac"],
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings .espnow-module-card [data-role="telemetry"] {
  display: none !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings .espnow-module-card-metric {
  margin-top: 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings .espnow-module-card-side {
  justify-self: end !important;
  align-self: end !important;
  margin-top: 2px !important;
}
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings .espnow-module-list {
    gap: 10px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings .espnow-module-card {
    min-height: 128px !important;
    padding: 16px !important;
  }
}


/* FLOWDEMO_WATERCHANGER_SETTINGS_MODULE_CARD_REDUCE_ALIGN67_20260602: 子模块卡继续减法，贴近入口卡片节奏；保留基本信息，去掉工程感和过大状态胶囊。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings .espnow-module-card {
  min-height: 118px !important;
  padding: 18px !important;
  align-content: center !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings .espnow-module-card-copy {
  gap: 8px !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings .espnow-module-card-top {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 8px !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings .espnow-module-card strong[data-role="title"] {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings .espnow-module-card .status-chip {
  min-width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  gap: 0 !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings .espnow-module-card .status-chip [data-role="status"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings .espnow-module-card .status-chip .status-dot {
  width: 9px !important;
  height: 9px !important;
  min-width: 9px !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings .espnow-module-card span[data-role="meta"],
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings .espnow-module-card-metric {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings .espnow-module-card-metric {
  display: block !important;
  -webkit-line-clamp: unset !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings .espnow-module-card-side {
  justify-self: end !important;
  align-self: end !important;
  margin-top: 0 !important;
}
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings .espnow-module-card {
    min-height: 118px !important;
    padding: 15px !important;
  }
}


/* FLOWDEMO_WATERCHANGER_SETTINGS_MODULE_MINIMAL_ALIGN68_20260602: 子模块卡片去掉“在线”大胶囊和“进入页面”，只保留右上绿色点与基础业务信息。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings .espnow-module-card {
  min-height: 118px !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings .espnow-module-card .status-chip {
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings .espnow-module-card .status-chip::before,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings .espnow-module-card .status-chip::after {
  display: none !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings .espnow-module-card .status-chip .status-dot {
  display: block !important;
  width: 9px !important;
  height: 9px !important;
  min-width: 9px !important;
  border-radius: 50% !important;
  margin: 0 !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings .espnow-module-card .espnow-module-card-side {
  display: none !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings .espnow-module-card strong[data-role="title"] {
  padding-right: 4px !important;
}


/* FLOWDEMO_WATERCHANGER_SETTINGS_MODULE_DOT_COLOR_ALIGN69_20260602: 子模块卡右上角只用状态点表达在线/离线，避免被橙色卡白字规则覆盖成白点。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings .espnow-module-card .status-chip.online .status-dot {
  background: #39c96b !important;
  box-shadow: 0 0 8px rgba(57, 201, 107, 0.55) !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings .espnow-module-card .status-chip.offline .status-dot {
  background: #e84d4d !important;
  box-shadow: 0 0 8px rgba(232, 77, 77, 0.48) !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings .espnow-module-card .status-chip.warn .status-dot,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings .espnow-module-card .status-chip.ghost .status-dot,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings .espnow-module-card .status-chip.migrated .status-dot {
  background: #f5a623 !important;
  box-shadow: 0 0 8px rgba(245, 166, 35, 0.48) !important;
}


/* FLOWDEMO_WATERCHANGER_SETTINGS_ADD_MODULE_BACKPLATE_ALIGN70_20260602: 添加模块弹页命名与玻璃背板统一；候选区不再叠第二层玻璃卡。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-discovery .espnow-sheet {
  overflow: hidden !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-discovery .compact-subcard {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  color: #333333 !important;
  -webkit-text-fill-color: #333333 !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-discovery .compact-subcard *,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-discovery .espnow-empty {
  color: #333333 !important;
  -webkit-text-fill-color: #333333 !important;
  text-shadow: none !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-discovery .compact-subcard .section-note,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-discovery .espnow-empty {
  color: rgba(47, 51, 56, 0.72) !important;
  -webkit-text-fill-color: rgba(47, 51, 56, 0.72) !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-discovery .espnow-candidate-list {
  margin-top: 12px !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-discovery .espnow-discovery-actions {
  margin-bottom: 22px !important;
}


/* FLOWDEMO_WATERCHANGER_SETTINGS_ADD_MODULE_BACKPLATE_WEIGHT_ALIGN71_20260602: 用更高权重压住通用弹页卡片规则，彻底去掉添加模块候选区第二层玻璃。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-discovery.overlay > .sheet.espnow-sheet > .card.stack.compact-subcard {
  margin: 0 !important;
  width: 100% !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-color: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}
@media (max-width: 560px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-discovery.overlay > .sheet.espnow-sheet > .card.stack.compact-subcard {
    padding: 0 !important;
    border-radius: 0 !important;
  }
}


/* FLOWDEMO_WATERCHANGER_SETTINGS_ADD_MODULE_SINGLE_GLASS_ALIGN72_20260602: 添加模块弹页只保留一张统一玻璃背板，按钮区与待接入区同属一层。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-discovery.overlay > .sheet.espnow-sheet {
  width: min(92vw, 760px) !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
  border-radius: clamp(30px, 7vw, 46px) !important;
  padding: clamp(22px, 4.8vw, 40px) !important;
  background: linear-gradient(145deg, rgba(255, 251, 244, 0.94), rgba(255, 255, 255, 0.88)) !important;
  background-color: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.64) !important;
  box-shadow: 0 24px 70px rgba(139, 118, 82, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
  overflow: visible !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-discovery.overlay > .sheet.espnow-sheet > .sheet-head {
  margin-bottom: 18px !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-discovery.overlay > .sheet.espnow-sheet > .espnow-discovery-actions {
  margin-bottom: 20px !important;
}
@media (max-width: 560px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-discovery.overlay > .sheet.espnow-sheet {
    width: calc(100vw - 28px) !important;
    padding: 22px 20px 24px !important;
    border-radius: 34px !important;
  }
}


/* FLOWDEMO_WATERCHANGER_SETTINGS_ADD_MODULE_BUTTON_TEXT_ALIGN73_20260602: 添加模块弹页三按钮保持单行节奏。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-discovery .espnow-discovery-actions .btn {
  white-space: nowrap !important;
}


/* FLOWDEMO_WATERCHANGER_SETTINGS_ENTRY_FLAT_ALIGN74_20260602: 设置页“无线设置/添加模块”是入口按钮，不是信息卡；压低高度，保留字号/行距/宽度和橙色体系。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings .espnow-entry-grid .espnow-entry-card {
  min-height: 92px !important;
  height: 92px !important;
  padding-top: 14px !important;
  padding-bottom: 14px !important;
  border-radius: 18px !important;
  align-content: center !important;
  justify-content: center !important;
  text-align: center !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings .espnow-entry-grid .espnow-entry-card strong {
  margin-bottom: 0 !important;
}


/* FLOWDEMO_WATERCHANGER_SETTINGS_ENTRY_BUTTON_HEIGHT_ALIGN75_20260602: 设置页入口卡改为接近“开始换水”操作按钮高度；无线入口与维护入口统一，不改功能。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings .espnow-entry-grid .espnow-entry-card,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings > .card:not(.espnow-panel) .quick-grid > .quick-card {
  min-height: 64px !important;
  height: 64px !important;
  padding: 8px 14px !important;
  border-radius: 18px !important;
  align-content: center !important;
  justify-content: center !important;
  text-align: center !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings .espnow-entry-grid .espnow-entry-card strong,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-settings > .card:not(.espnow-panel) .quick-grid > .quick-card strong {
  margin-bottom: 0 !important;
}


/* FLOWDEMO_WATERCHANGER_POPUP_UNIFIED_BATCH2_ALIGN76_20260602: 残留弹窗统一到“核心卡片弹页”体系；报警详情/记录列表/操作记录/无线设置不再保留旧外层标题栏。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] :is(
  #overlay-records,
  #overlay-event-log,
  #overlay-alarm-detail
).overlay {
  align-items: center !important;
  justify-content: center !important;
  padding: clamp(10px, 3vw, 22px) !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] :is(
  #overlay-records,
  #overlay-event-log,
  #overlay-alarm-detail
) > .sheet {
  width: min(92vw, 760px) !important;
  max-height: calc(100dvh - 28px) !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] :is(
  #overlay-records,
  #overlay-event-log,
  #overlay-alarm-detail,
  #overlay-espnow-settings
) > .sheet > .sheet-head {
  display: none !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] :is(
  #overlay-records .sheet > .card,
  #overlay-event-log .sheet > .card,
  #overlay-alarm-detail .sheet > .card,
  #overlay-espnow-settings .espnow-settings-card
) {
  margin: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  border-radius: clamp(28px, 7vw, 46px) !important;
  padding: clamp(24px, 4.8vw, 40px) !important;
  background: linear-gradient(145deg, rgba(255, 251, 244, 0.94), rgba(255, 255, 255, 0.88)) !important;
  border: 1px solid rgba(255, 255, 255, 0.64) !important;
  box-shadow: 0 24px 70px rgba(139, 118, 82, 0.18), inset 0 1px 0 rgba(255,255,255,0.72) !important;
  max-height: calc(100dvh - 28px) !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-settings .espnow-settings-card {
  display: grid !important;
  gap: 18px !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-settings .field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px !important;
  margin: 0 !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-settings .espnow-link-field {
  grid-column: 1 / -1 !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 12px !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-settings #espnowLinkState.metric-pill {
  min-height: 44px !important;
  width: auto !important;
  justify-self: start !important;
  padding: 10px 16px 10px 34px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,0.88) !important;
  background-image: none !important;
  border: 1px solid rgba(245, 166, 35, 0.30) !important;
  color: #333333 !important;
  -webkit-text-fill-color: #333333 !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.50), 0 8px 18px rgba(245,166,35,0.12) !important;
  position: relative !important;
  white-space: nowrap !important;
  overflow: visible !important;
  line-height: 1.2 !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-settings #espnowLinkState.metric-pill::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: #39c96b;
  box-shadow: 0 0 8px rgba(57,201,107,0.55);
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-settings .espnow-settings-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
  margin: 0 !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-settings .espnow-settings-actions .btn {
  min-height: 64px !important;
}
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-settings .field-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-settings .espnow-link-field {
    grid-template-columns: 1fr !important;
  }
}


/* FLOWDEMO_WATERCHANGER_POPUP_CONTENT_TONE_ALIGN77_20260602: 核心弹页第二轮自检；操作记录去旧白底工具块，记录统计橙卡统一白字。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-toolbar {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  padding-bottom: 0 !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-toolbar-main {
  background: transparent !important;
  background-image: none !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-records .summary-card,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-records .summary-card * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-records .summary-card .summary-sub {
  opacity: 0.92 !important;
}


/* FLOWDEMO_WATERCHANGER_APEX_ACCESS_VISUAL_CLEAN79_20260602
   智能系统接入弹页：主探头前置红/绿绑定点；恢复手机端 APEX 监测曲线。
   服务泵工程绑定区按用户要求已从本弹页源码移除。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-apex-access .apex-main-probe-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px 16px !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-apex-access .apex-probe-field {
  position: relative;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-apex-access .apex-probe-field::before {
  content: "";
  position: absolute;
  z-index: 2;
  left: 18px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: #f04e4e;
  box-shadow: 0 0 0 5px rgba(240, 78, 78, 0.12);
  pointer-events: none;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-apex-access .apex-probe-field.is-bound::before {
  background: #2ed06e;
  box-shadow: 0 0 0 5px rgba(46, 208, 110, 0.14);
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-apex-access .apex-probe-field select {
  padding-left: 46px !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-apex-access .apex-config-card {
  max-height: min(54dvh, 560px) !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-apex-access .sheet > .card + .card {
  display: block !important;
  max-height: min(36dvh, 360px) !important;
}

@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-apex-access .apex-main-probe-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-apex-access .apex-config-card {
    max-height: min(56dvh, 520px) !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-apex-access .sheet > .card + .card {
    display: block !important;
    max-height: min(32dvh, 300px) !important;
  }
}


/* FLOWDEMO_WATERCHANGER_APEX_ACCESS_CURVE_GRID81_20260602
   APEX 智能系统接入：探头选择按一行三列；历史曲线按两列曲线卡片，卡内左曲线右读数，回归探头历史曲线。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-apex-access .apex-main-probe-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-apex-access .apex-main-probe-grid .apex-probe-field select {
  min-width: 0 !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-apex-access .apex-chart-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-apex-access .apex-chart-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1.7fr) minmax(58px, 0.75fr) !important;
  align-items: stretch !important;
  min-height: 72px !important;
  height: auto !important;
  padding: 0 !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.34) !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-apex-access .apex-chart-card .apex-chart {
  grid-column: 1 !important;
  order: 1 !important;
  width: 100% !important;
  height: 72px !important;
  min-height: 72px !important;
  aspect-ratio: auto !important;
  border-radius: 8px !important;
  background: #f5a623 !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-apex-access .apex-chart-card .apex-chart svg,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-apex-access .apex-chart-card .apex-chart-svg {
  height: 72px !important;
  background: #f5a623 !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-apex-access .apex-chart-card .apex-chart-top {
  position: static !important;
  inset: auto !important;
  grid-column: 2 !important;
  order: 2 !important;
  z-index: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  min-height: 72px !important;
  padding: 0 6px 0 10px !important;
  gap: 6px !important;
  pointer-events: none !important;
  border-left: 1px dashed rgba(90, 90, 90, 0.22) !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-apex-access .apex-chart-card .apex-chart-title {
  grid-column: auto !important;
  max-width: 100% !important;
  font-size: 13px !important;
  line-height: 1 !important;
  letter-spacing: 0.08em !important;
  font-weight: 900 !important;
  color: #666666 !important;
  -webkit-text-fill-color: #666666 !important;
  opacity: 1 !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-apex-access .apex-chart-card .apex-chart-value {
  grid-column: auto !important;
  justify-self: auto !important;
  align-self: auto !important;
  padding-left: 0 !important;
  text-align: left !important;
  font-size: 24px !important;
  line-height: 1 !important;
  font-weight: 400 !important;
  color: #f5a623 !important;
  -webkit-text-fill-color: #f5a623 !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-apex-access .apex-chart-card .apex-chart-empty {
  height: 72px !important;
  min-height: 72px !important;
  background: #f5a623 !important;
  color: rgba(255, 255, 255, 0.88) !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-apex-access .sheet > .card + .card {
  display: block !important;
  max-height: min(40dvh, 420px) !important;
}

@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-apex-access .apex-main-probe-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-apex-access .apex-probe-field::before {
    left: 12px !important;
    width: 9px !important;
    height: 9px !important;
    box-shadow: 0 0 0 4px rgba(46, 208, 110, 0.13) !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-apex-access .apex-probe-field select {
    padding-left: 32px !important;
    padding-right: 24px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-apex-access .apex-chart-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-apex-access .apex-chart-card {
    grid-template-columns: minmax(0, 1.5fr) minmax(52px, 0.7fr) !important;
    min-height: 66px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-apex-access .apex-chart-card .apex-chart,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-apex-access .apex-chart-card .apex-chart svg,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-apex-access .apex-chart-card .apex-chart-svg,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-apex-access .apex-chart-card .apex-chart-empty {
    height: 66px !important;
    min-height: 66px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-apex-access .apex-chart-card .apex-chart-top {
    min-height: 66px !important;
    padding-left: 7px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-apex-access .apex-chart-card .apex-chart-title {
    font-size: 12px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-apex-access .apex-chart-card .apex-chart-value {
    font-size: 20px !important;
  }
}

/* FLOWDEMO_WATERCHANGER_EVENT_LOG_COMPACT85_20260602
   操作记录每条过大：压缩卡片内边距、段落间距和徽章高度；保留原字段，不改记录数据结构。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-list {
  gap: 8px !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-item {
  padding: 10px 12px !important;
  border-radius: 18px !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.035) !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-item-head {
  margin-bottom: 6px !important;
  gap: 8px !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-badges {
  gap: 6px !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-badge {
  min-height: 24px !important;
  padding: 0 8px !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-summary {
  margin-top: 4px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 1 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-meta {
  margin-top: 5px !important;
  gap: 6px !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-meta-line {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-list-wrap {
  max-height: min(58vh, 560px) !important;
}

/* FLOWDEMO_WATERCHANGER_EVENT_LOG_COMPACT86_20260602
   操作记录第二轮密度：从卡片阅读模式压成列表扫描模式，一屏可显示更多记录。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-list {
  gap: 7px !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-item {
  padding: 8px 10px !important;
  border-radius: 16px !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-item-head {
  margin-bottom: 4px !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-title {
  font-size: 16px !important;
  line-height: 1.2 !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-summary {
  margin-top: 3px !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-meta {
  margin-top: 4px !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-badge {
  min-height: 22px !important;
  padding: 0 7px !important;
}

/* FLOWDEMO_WATERCHANGER_EVENT_LOG_THREE_ZONE87_20260602
   操作记录改为左/中/右三区：左时间，中间事件内容，右侧类型与序号；保留字段，便于快速扫描。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-item {
  display: grid !important;
  grid-template-columns: minmax(82px, 0.8fr) minmax(0, 1.65fr) minmax(82px, auto) !important;
  grid-template-areas: "time main badges" !important;
  align-items: center !important;
  column-gap: 10px !important;
  min-height: 0 !important;
  padding: 9px 10px !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-time {
  grid-area: time !important;
  white-space: pre-line !important;
  align-self: center !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-main {
  grid-area: main !important;
  min-width: 0 !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-title,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-summary,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-meta-line {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-title,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-summary {
  white-space: nowrap !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-meta {
  display: block !important;
  margin-top: 3px !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-badges {
  grid-area: badges !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-end !important;
  gap: 5px !important;
  flex-wrap: nowrap !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-badge {
  min-height: 22px !important;
  padding: 0 8px !important;
  white-space: nowrap !important;
}

@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-item {
    grid-template-columns: 92px minmax(0, 1fr) minmax(62px, auto) !important;
    column-gap: 8px !important;
  }
}


/* FLOWDEMO_WATERCHANGER_EVENT_LOG_THREE_ZONE88_20260602
   三区微调：右侧只承载短类型/编号，左侧时间两行，中间留出事件标题与摘要阅读宽度。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-item {
  grid-template-columns: 96px minmax(0, 1fr) 68px !important;
  column-gap: 9px !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-time {
  font-size: 12.5px !important;
  line-height: 1.18 !important;
  color: #666 !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-badges {
  width: 68px !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-badge {
  box-sizing: border-box !important;
  max-width: 68px !important;
  min-width: 0 !important;
  justify-content: center !important;
  font-size: 12px !important;
  line-height: 1 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-badge.neutral {
  width: auto !important;
}

@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-item {
    grid-template-columns: 82px minmax(0, 1fr) 54px !important;
    column-gap: 7px !important;
    padding: 8px 9px !important;
  }

  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-badges {
    width: 54px !important;
  }

  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-badge {
    max-width: 54px !important;
    padding: 0 6px !important;
  }
}

/* FLOWDEMO_WATERCHANGER_EVENT_LOG_THREE_ZONE89_20260602
   三区文字方向：中间区按列表阅读左对齐，避免标题在短文本时出现视觉漂移。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-main,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-title,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-summary,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-meta {
  text-align: left !important;
}

/* FLOWDEMO_WATERCHANGER_EVENT_LOG_TIME_STAMP90_20260602
   时间不再占左侧整列：压成内容区右下角时间戳，释放正文宽度；右侧只保留短类型和编号。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-item {
  position: relative !important;
  grid-template-columns: minmax(0, 1fr) 54px !important;
  grid-template-areas: "main badges" !important;
  column-gap: 8px !important;
  align-items: center !important;
  padding: 9px 10px !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-time {
  grid-area: main !important;
  justify-self: end !important;
  align-self: end !important;
  width: auto !important;
  max-width: 94px !important;
  margin: 0 2px 0 0 !important;
  padding: 0 !important;
  text-align: right !important;
  font-size: 10.8px !important;
  line-height: 1.05 !important;
  color: rgba(55, 55, 55, 0.62) !important;
  white-space: pre-line !important;
  z-index: 2 !important;
  pointer-events: none !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-main {
  padding-right: 98px !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-meta {
  padding-right: 0 !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-badges {
  width: 54px !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-badge {
  max-width: 54px !important;
  min-height: 22px !important;
  padding: 0 6px !important;
}

@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-item {
    grid-template-columns: minmax(0, 1fr) 52px !important;
    column-gap: 7px !important;
  }

  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-time {
    max-width: 88px !important;
    font-size: 10.5px !important;
  }

  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-main {
    padding-right: 90px !important;
  }

  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-badges {
    width: 52px !important;
  }

  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-badge {
    max-width: 52px !important;
  }
}

/* FLOWDEMO_WATERCHANGER_EVENT_LOG_TIME_STAMP91_20260602
   修正 v90：时间浮到右下角，不再压缩标题/摘要；仅底部来源行让出时间位置。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-item {
  grid-template-columns: minmax(0, 1fr) 52px !important;
  grid-template-areas: "main badges" !important;
  position: relative !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-main {
  padding-right: 0 !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-title,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-summary {
  width: 100% !important;
  max-width: 100% !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-meta-line {
  max-width: calc(100% - 92px) !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-time {
  position: absolute !important;
  right: 64px !important;
  bottom: 9px !important;
  grid-area: auto !important;
  width: 86px !important;
  max-width: 86px !important;
  text-align: right !important;
  z-index: 3 !important;
}

@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-time {
    right: 62px !important;
    bottom: 9px !important;
    width: 84px !important;
    max-width: 84px !important;
  }

  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-meta-line {
    max-width: calc(100% - 88px) !important;
  }
}


/* FLOWDEMO_WATERCHANGER_EVENT_LOG_HALF_SHEET92_20260602
   操作记录弹页核心化：删除说明文案后，弹页只占半屏左右，外侧保留空白区域用于点空白关闭。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log.overlay {
  align-items: center !important;
  justify-content: center !important;
  padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom)) !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log > .sheet {
  width: min(92vw, 760px) !important;
  max-height: min(54dvh, 560px) !important;
  overflow: visible !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-shell {
  max-height: min(54dvh, 560px) !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  overflow: hidden !important;
  padding: clamp(18px, 3.4vw, 28px) !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-toolbar-copy {
  gap: 0 !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-list-wrap {
  min-height: 0 !important;
  max-height: none !important;
  flex: 1 1 auto !important;
  overflow-y: auto !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-footer {
  flex: 0 0 auto !important;
}

@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log > .sheet,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-shell {
    max-height: 52dvh !important;
  }

  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log .event-log-shell {
    padding: 16px !important;
    gap: 10px !important;
  }
}

/* FLOWDEMO_WATERCHANGER_EVENT_LOG_HALF_SHEET93_20260602
   修正 v92：旧 .sheet > .card 规则会把内部卡片撑高；这里同时锁住 sheet 和内部 card 实际高度。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log > .sheet,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log > .sheet > .card.event-log-shell {
  height: min(52dvh, 560px) !important;
  max-height: min(52dvh, 560px) !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log > .sheet > .card.event-log-shell {
  overflow: hidden !important;
  overflow-y: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log > .sheet > .card.event-log-shell .event-log-list-wrap {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  overflow-y: auto !important;
}

@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log > .sheet,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-event-log > .sheet > .card.event-log-shell {
    height: 50dvh !important;
    max-height: 50dvh !important;
  }
}


/* FLOWDEMO_WATERCHANGER_CALIBRATION_FLOW_CARD_EQUAL96_20260602
   流量计校准三张小卡：等高、三行节奏一致，中间数值居中；底部显示“1234 脉冲/L”。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-hub-card--flow .calibration-hub-grid--flow {
  align-items: stretch !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-flow-mini-card {
  min-height: 96px !important;
  height: 96px !important;
  display: grid !important;
  grid-template-rows: auto 1fr auto !important;
  align-items: center !important;
  gap: 3px !important;
  box-sizing: border-box !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-flow-mini-card .summary-label,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-flow-mini-card .summary-value,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-flow-mini-card .summary-sub {
  width: 100% !important;
  margin: 0 !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-flow-mini-card .summary-value {
  align-self: center !important;
  display: flex !important;
  align-items: center !important;
  min-height: 32px !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-flow-mini-card .summary-sub {
  white-space: nowrap !important;
  word-break: keep-all !important;
  letter-spacing: -0.03em !important;
}

@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-flow-mini-card {
    min-height: 96px !important;
    height: 96px !important;
  }
}

/* FLOWDEMO_WATERCHANGER_CALIBRATION_FLOW_VALUE_CENTER97_20260602
   流量计校准三卡：只把中间数值行居中，标题和底部单位行保留原扫描方向。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-flow-mini-card .summary-value {
  justify-content: center !important;
  text-align: center !important;
}

/* FLOWDEMO_WATERCHANGER_CALIBRATION_FLOW_ALL_CENTER98_20260602
   流量计校准三卡：标题、数值、单位行全部居中，保持三行同一中轴。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-flow-mini-card .summary-label,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-flow-mini-card .summary-sub {
  text-align: center !important;
}

body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-calibration .calibration-flow-mini-card .summary-sub {
  display: block !important;
}


/* FLOWDEMO_STAGE1_FORMAL_CLOUD_WATERCHANGER_SHELL_20260603
   正式云端换水器页替换旧 topbar/banner/view-home/hero 壳；保留原业务节点 id 供脚本更新状态。 */
body.waterchanger-cloud-copy .waterchanger-cloud-shell {
  position: sticky;
  top: 0;
  z-index: 120;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.78) 72%, rgba(255,255,255,0) 100%);
  backdrop-filter: blur(18px);
}
body.waterchanger-cloud-copy .waterchanger-cloud-shell .cloud-copy-waterchanger-back {
  position: static;
  top: auto;
  left: auto;
  z-index: auto;
  width: auto;
  min-width: 74px;
  height: 44px;
  padding: 0 16px;
  align-self: start;
}
body.waterchanger-cloud-copy .waterchanger-cloud-offline-status {
  grid-column: 1 / -1;
}
body.waterchanger-cloud-copy .waterchanger-cloud-status,
body.waterchanger-cloud-copy .waterchanger-cloud-offline-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  padding: 10px 12px;
  border: 1px solid rgba(208, 208, 208, 0.32);
  border-radius: 18px;
  background: rgba(255,255,255,0.64);
  color: #555;
  box-shadow: 0 10px 22px rgba(0,0,0,0.035);
}
body.waterchanger-cloud-copy .waterchanger-cloud-status.error,
body.waterchanger-cloud-copy .waterchanger-cloud-offline-status {
  color: #b3261e;
  border-color: rgba(229, 57, 53, 0.18);
  background: rgba(229, 57, 53, 0.08);
}
body.waterchanger-cloud-copy .waterchanger-cloud-status-text:empty::before {
  content: "云端换水器控制页已就绪";
}
body.waterchanger-cloud-copy .waterchanger-cloud-status-alert {
  border: 1px solid rgba(229, 57, 53, 0.22);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(229, 57, 53, 0.10);
  color: #b3261e;
  font: inherit;
}
body.waterchanger-cloud-copy .waterchanger-cloud-status-alert[hidden] {
  display: none !important;
}

/* FLOWDEMO_STAGE4_WATERCHANGER_STATUS_TEXT_CENTER_20260604
   状态 BAR：报警按钮作为右侧附属动作，不参与状态文字居中区域计算。 */
body.waterchanger-cloud-copy .waterchanger-cloud-status-row .waterchanger-cloud-status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 10px;
}
body.waterchanger-cloud-copy .waterchanger-cloud-status-row .waterchanger-cloud-status-text {
  min-width: 0;
  text-align: center;
}
body.waterchanger-cloud-copy .waterchanger-cloud-status-row .waterchanger-cloud-status-alert {
  justify-self: end;
}
body.waterchanger-cloud-copy .waterchanger-cloud-status-row .waterchanger-cloud-offline-status {
  justify-content: center;
  text-align: center;
}

body.waterchanger-cloud-copy .waterchanger-control-intro {
  padding: 12px 0 4px;
}
body.waterchanger-cloud-copy .waterchanger-control-copy {
  display: grid;
  gap: 6px;
}


/* FLOWDEMO_STAGE4_WATERCHANGER_TOP_PARITY_20260604
   换水器云端页顶部对齐独立泵：顶部 header 同构；状态 BAR 独立悬浮 pill，不融合进 header/nav 背板。 */
body.waterchanger-cloud-copy {
  --card-bg: rgba(255,255,255,0.15);
  --border: #D0D0D0;
  --text-secondary: #666666;
}
body.waterchanger-cloud-copy .app {
  padding-top: 0;
}
body.waterchanger-cloud-copy .waterchanger-cloud-shell {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  width: 100vw;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  z-index: 120;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.waterchanger-cloud-copy .waterchanger-cloud-titlebar {
  min-height: 65px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
}
body.waterchanger-cloud-copy .waterchanger-cloud-titlebar .cloud-copy-waterchanger-back {
  justify-self: start;
  position: static;
  top: auto;
  left: auto;
  z-index: auto;
  width: auto;
  min-width: 0;
  height: auto;
  min-height: 0;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 20px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  text-decoration: none;
  box-shadow: none;
}
body.waterchanger-cloud-copy .waterchanger-cloud-titlebar .cloud-copy-waterchanger-back svg {
  width: 16px;
  height: 16px;
  fill: var(--text-secondary);
  transform: translateX(-1px);
}
body.waterchanger-cloud-copy .waterchanger-cloud-brand {
  color: var(--text-secondary);
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 4px;
  line-height: 1;
  white-space: nowrap;
}
body.waterchanger-cloud-copy .waterchanger-cloud-brand span {
  color: var(--text);
  font-weight: 600;
  letter-spacing: 4px;
}
body.waterchanger-cloud-copy .waterchanger-cloud-device-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 14px;
  white-space: nowrap;
}
body.waterchanger-cloud-copy .waterchanger-cloud-device-label svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
body.waterchanger-cloud-copy .waterchanger-cloud-status-row {
  min-height: 58px;
  padding: 10px 20px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: 0;
  overflow: visible;
}
body.waterchanger-cloud-copy .waterchanger-cloud-status-row .waterchanger-cloud-status,
body.waterchanger-cloud-copy .waterchanger-cloud-status-row .waterchanger-cloud-offline-status {
  width: min(980px, calc(100vw - 40px));
  min-height: 40px;
  margin: 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(208, 208, 208, 0.48);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
body.waterchanger-cloud-copy .waterchanger-cloud-status-row .waterchanger-cloud-offline-status {
  display: none;
}
body.waterchanger-cloud-copy .waterchanger-cloud-status-row .waterchanger-cloud-offline-status:not([hidden]) {
  display: flex;
}
body.waterchanger-cloud-copy .waterchanger-control-intro {
  display: none !important;
}
body.waterchanger-cloud-copy .content {
  padding-top: 16px;
}
@media (max-width: 760px) {
  body.waterchanger-cloud-copy .waterchanger-cloud-titlebar {
    min-height: 58px;
    padding: 10px 16px;
    gap: 8px;
  }
  body.waterchanger-cloud-copy .waterchanger-cloud-brand {
    font-size: 18px;
    letter-spacing: 2px;
  }
  body.waterchanger-cloud-copy .waterchanger-cloud-brand span {
    letter-spacing: 2px;
  }
  body.waterchanger-cloud-copy .waterchanger-cloud-device-label span {
    display: none;
  }
  body.waterchanger-cloud-copy .waterchanger-cloud-status-row {
    min-height: 56px;
    padding: 8px 14px 7px;
  }
  body.waterchanger-cloud-copy .waterchanger-cloud-status-row .waterchanger-cloud-status,
  body.waterchanger-cloud-copy .waterchanger-cloud-status-row .waterchanger-cloud-offline-status {
    width: calc(100vw - 28px);
  }
}

/* FLOWDEMO_FLOW_MODULE_CONTROL_MODAL_ENTRIES_20260607
   流量子模块三入口与核心弹页：删除顶部模块概览，保留一键浓盐水/定量出水/校准三卡；定量与校准进入核心弹页。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-module-detail.module-detail-flow .module-page-overview-card,
#view-module-detail.module-detail-flow .module-page-overview-card {
  display: none !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-module-detail.module-detail-flow #espnowDetailMetrics.flow-layout,
#view-module-detail.module-detail-flow #espnowDetailMetrics.flow-layout {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(10px, 1.8vw, 16px) !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-module-detail.module-detail-flow #espnowDetailActions,
#view-module-detail.module-detail-flow #espnowDetailActions {
  display: none !important;
}
#view-module-detail.module-detail-flow .espnow-flow-entry-card {
  border: 0 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  cursor: pointer !important;
  text-align: left !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease !important;
}
#view-module-detail.module-detail-flow .espnow-flow-entry-card:active {
  transform: scale(.985) !important;
}
#view-module-detail.module-detail-flow .espnow-flow-entry-card--brine .summary-value {
  font-size: clamp(22px, 2.4vw, 30px) !important;
}
#view-module-detail.module-detail-flow .espnow-flow-entry-card--cal .summary-value {
  font-size: clamp(24px, 2.8vw, 32px) !important;
}
.flow-module-overlay {
  align-items: center !important;
  justify-content: center !important;
  padding: clamp(20px, 5vw, 44px) !important;
}
.flow-module-popup-sheet {
  width: min(92vw, 720px) !important;
  max-height: min(82vh, 760px) !important;
  overflow: visible !important;
  padding: 0 !important;
  margin: 0 auto !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.flow-module-popup-card {
  width: 100% !important;
  margin: 0 auto !important;
  border-radius: clamp(30px, 5vw, 46px) !important;
  box-shadow: 0 26px 72px rgba(118, 80, 22, .18) !important;
}
.flow-module-popup-card--output {
  min-height: 0 !important;
  padding: clamp(28px, 5vw, 42px) !important;
  background: rgba(255,255,255,.84) !important;
  border: 1px solid rgba(215,215,215,.72) !important;
  color: var(--text-main) !important;
  -webkit-text-fill-color: var(--text-main) !important;
}
.flow-module-popup-card--output * {
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
}
.flow-module-popup-card--output .espnow-flow-card-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 14px !important;
}
.flow-module-popup-card--output .summary-label,
.flow-module-popup-card--calibration .summary-label {
  font-size: clamp(24px, 4vw, 34px) !important;
  line-height: 1.12 !important;
  font-weight: 900 !important;
}
.flow-module-popup-card--output .espnow-flow-card-chip {
  color: var(--text-main) !important;
  -webkit-text-fill-color: var(--text-main) !important;
  background: rgba(255,255,255,.68) !important;
  border-color: rgba(245,166,35,.28) !important;
}
.flow-module-popup-card--output .espnow-flow-target-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 18px !important;
  margin-top: clamp(28px, 6vw, 56px) !important;
}
.flow-module-popup-card--output .module-page-field-label {
  color: var(--text-main) !important;
  -webkit-text-fill-color: var(--text-main) !important;
  font-size: clamp(17px, 2.5vw, 22px) !important;
  font-weight: 800 !important;
}
.flow-module-popup-card--output input,
.flow-module-popup-card--calibration input {
  width: 100% !important;
  min-height: clamp(66px, 9vw, 88px) !important;
  border-radius: clamp(24px, 4vw, 34px) !important;
  text-align: center !important;
  font-size: clamp(26px, 5vw, 40px) !important;
  font-weight: 900 !important;
  background: rgba(255,255,255,.94) !important;
  border: 1px solid rgba(0,0,0,.12) !important;
  box-shadow: inset 0 1px 4px rgba(0,0,0,.08) !important;
}
.flow-module-popup-card--output .btn.primary {
  min-height: clamp(70px, 10vw, 92px) !important;
  border-radius: clamp(24px, 4vw, 34px) !important;
  font-size: clamp(22px, 4vw, 32px) !important;
  font-weight: 900 !important;
}
.flow-module-popup-card--output .espnow-flow-card-strip {
  display: grid !important;
  gap: 10px !important;
  margin-top: clamp(26px, 6vw, 52px) !important;
  color: var(--text-main) !important;
  -webkit-text-fill-color: var(--text-main) !important;
  font-size: clamp(17px, 2.7vw, 22px) !important;
  font-weight: 900 !important;
}
.flow-module-popup-card--calibration {
  padding: clamp(28px, 5vw, 46px) !important;
  background: #f5a623 !important;
  border: 1px solid rgba(245,166,35,.92) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
.flow-module-popup-card--calibration .espnow-flow-card-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 14px !important;
}
.flow-module-popup-card--calibration .espnow-flow-card-chip {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border-color: rgba(255,255,255,.72) !important;
  background: rgba(255,255,255,.22) !important;
}
.flow-module-popup-card--calibration .espnow-detail-dual-lines {
  display: grid !important;
  gap: clamp(18px, 4vw, 32px) !important;
  margin-top: clamp(42px, 7vw, 70px) !important;
}
.flow-module-popup-card--calibration .espnow-detail-dual-line {
  display: grid !important;
  gap: 8px !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
.flow-module-popup-card--calibration .espnow-detail-dual-line span {
  font-size: clamp(18px, 3vw, 24px) !important;
  font-weight: 800 !important;
}
.flow-module-popup-card--calibration .espnow-detail-dual-line strong {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: clamp(28px, 5vw, 42px) !important;
  line-height: 1.05 !important;
  font-weight: 900 !important;
}
.flow-module-popup-card--calibration .espnow-flow-cal-confirm-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 18px !important;
  margin-top: clamp(46px, 8vw, 78px) !important;
}
.flow-module-popup-card--calibration .btn,
.flow-module-popup-card--calibration .btn.warn {
  min-height: clamp(62px, 9vw, 82px) !important;
  border-radius: clamp(22px, 4vw, 32px) !important;
  background: rgba(255,255,255,.96) !important;
  color: #f5a623 !important;
  -webkit-text-fill-color: #f5a623 !important;
  border-color: rgba(255,255,255,.9) !important;
  font-size: clamp(18px, 3.4vw, 26px) !important;
  font-weight: 900 !important;
}
.flow-module-popup-card--calibration .espnow-detail-action-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin-top: clamp(26px, 5vw, 44px) !important;
}
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-module-detail.module-detail-flow #espnowDetailMetrics.flow-layout,
  #view-module-detail.module-detail-flow #espnowDetailMetrics.flow-layout {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-module-detail.module-detail-flow .espnow-flow-mini-card,
  #view-module-detail.module-detail-flow .espnow-flow-mini-card {
    min-height: 128px !important;
    padding: 12px 9px !important;
    border-radius: 20px !important;
  }
  #view-module-detail.module-detail-flow .espnow-flow-entry-card .summary-label {
    font-size: 14px !important;
    line-height: 1.12 !important;
  }
  #view-module-detail.module-detail-flow .espnow-flow-entry-card .summary-value {
    font-size: 20px !important;
    line-height: 1.08 !important;
    margin-top: 8px !important;
  }
  #view-module-detail.module-detail-flow .espnow-flow-entry-card .summary-sub,
  #view-module-detail.module-detail-flow .espnow-flow-entry-card .espnow-detail-dual-line {
    font-size: 10px !important;
    line-height: 1.22 !important;
  }
  .flow-module-overlay {
    padding: 18px !important;
  }
  .flow-module-popup-card--calibration .espnow-detail-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}


/* FLOWDEMO_FLOW_MODULE_POPUP_VISUAL_FIX_20260607
   审核反馈修正：弹页用稳定白底，隐藏工程状态字；定量入口不显示“当前目标”；禁用态按钮仍保留橙色视觉。 */
.flow-module-overlay.show {
  background: rgba(255,255,255,.34) !important;
  backdrop-filter: blur(2px) !important;
}
.flow-module-popup-card,
.flow-module-popup-card::before,
.flow-module-popup-card::after {
  animation: none !important;
  transition: none !important;
}
.flow-module-popup-card--output,
.flow-module-popup-card--calibration {
  background: #ffffff !important;
  background-image: none !important;
  color: var(--text-main, #303236) !important;
  -webkit-text-fill-color: var(--text-main, #303236) !important;
  border: 1px solid rgba(215,215,215,.78) !important;
  backdrop-filter: none !important;
}
.flow-module-popup-card--output *,
.flow-module-popup-card--calibration * {
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
}
.flow-module-popup-card--output .espnow-flow-card-chip,
.flow-module-popup-card--calibration .espnow-flow-card-chip,
.flow-module-popup-card--calibration .espnow-detail-dual-lines {
  display: none !important;
}
.flow-module-popup-card--output .btn.primary,
.flow-module-popup-card--output .btn.primary:disabled,
.flow-module-popup-card--output .btn.primary.disabled {
  background: #f5a623 !important;
  border-color: #f5a623 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: .72 !important;
  filter: none !important;
}
.flow-module-popup-card--output .btn.primary:not(:disabled) {
  opacity: 1 !important;
}
.flow-module-popup-card--calibration .btn,
.flow-module-popup-card--calibration .btn.warn,
.flow-module-popup-card--calibration .btn:disabled,
.flow-module-popup-card--calibration .btn.warn:disabled {
  background: #ffffff !important;
  border-color: rgba(245,166,35,.28) !important;
  color: #f5a623 !important;
  -webkit-text-fill-color: #f5a623 !important;
  box-shadow: 0 10px 24px rgba(245,166,35,.06) !important;
  opacity: 1 !important;
}
.flow-module-popup-card--calibration .espnow-flow-cal-confirm-grid {
  margin-top: clamp(150px, 20vh, 220px) !important;
}
#view-module-detail.module-detail-flow .espnow-flow-entry-card--target > .summary-sub {
  display: none !important;
}

/* FLOWDEMO_FLOW_MODULE_POPUP_VISUAL_FIX2_20260607
   更高优先级覆盖旧 pumpapex overlay/disabled 规则：两个流量弹页纯白稳定，主按钮不再灰显。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-output.flow-module-overlay,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-calibration.flow-module-overlay {
  background: rgba(255,255,255,.34) !important;
  backdrop-filter: blur(2px) !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-output .sheet.flow-module-popup-sheet,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-calibration .sheet.flow-module-popup-sheet {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  animation: none !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-output .flow-module-popup-card--output,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-calibration .flow-module-popup-card--calibration,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-output .card.flow-module-popup-card--output,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-calibration .card.flow-module-popup-card--calibration {
  background: #ffffff !important;
  background-image: none !important;
  color: var(--text-main, #303236) !important;
  -webkit-text-fill-color: var(--text-main, #303236) !important;
  border: 1px solid rgba(215,215,215,.78) !important;
  backdrop-filter: none !important;
  animation: none !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-output .flow-module-popup-card--output *,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-calibration .flow-module-popup-card--calibration * {
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
  animation: none !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-output #espnowDetailFlowHint,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-calibration #espnowDetailFlowCalHint,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-calibration .espnow-detail-dual-lines {
  display: none !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-output .sheet .btn.primary,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-output .sheet .btn.primary:disabled,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-output .sheet .btn.primary.disabled,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-output #espnowDetailFlowPrimaryBtn,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-output #espnowDetailFlowPrimaryBtn:disabled {
  background: #f5a623 !important;
  border-color: #f5a623 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: .78 !important;
  filter: none !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-output #espnowDetailFlowPrimaryBtn:not(:disabled) {
  opacity: 1 !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-calibration .sheet .btn,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-calibration .sheet .btn:disabled,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-calibration .sheet .btn.warn,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-calibration .sheet .btn.warn:disabled {
  background: #ffffff !important;
  border-color: rgba(245,166,35,.28) !important;
  color: #f5a623 !important;
  -webkit-text-fill-color: #f5a623 !important;
  opacity: 1 !important;
  filter: none !important;
}

/* FLOWDEMO_FLOW_MODULE_POPUP_GLASS_MATERIAL_FIX_20260607
   视觉审核修正：弹页不是死白纯色；恢复实验端统一的暖白磨玻璃材质，同时禁止动画闪烁。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-output .flow-module-popup-card--output,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-calibration .flow-module-popup-card--calibration,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-output .card.flow-module-popup-card--output,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-calibration .card.flow-module-popup-card--calibration {
  background:
    radial-gradient(circle at 18% 96%, rgba(245, 166, 35, .12), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, .90), rgba(255, 250, 242, .80)) !important;
  background-color: rgba(255, 252, 246, .84) !important;
  color: var(--text-main, #303236) !important;
  -webkit-text-fill-color: var(--text-main, #303236) !important;
  border: 1px solid rgba(255, 255, 255, .86) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .78),
    0 26px 72px rgba(118, 80, 22, .18) !important;
  backdrop-filter: blur(18px) saturate(1.05) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.05) !important;
  animation: none !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-output .flow-module-popup-card--output::before,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-output .flow-module-popup-card--output::after,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-calibration .flow-module-popup-card--calibration::before,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-calibration .flow-module-popup-card--calibration::after {
  display: none !important;
  animation: none !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-output.flow-module-overlay,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-calibration.flow-module-overlay {
  background:
    radial-gradient(circle at 50% 80%, rgba(245, 166, 35, .16), transparent 38%),
    rgba(255, 255, 255, .22) !important;
  backdrop-filter: blur(3px) !important;
  -webkit-backdrop-filter: blur(3px) !important;
}

/* FLOWDEMO_FLOW_MODULE_CALIBRATION_REUSE_MAIN_CAL_CARD_20260607
   流量子模块校准：源码结构复用主校准页三张流量卡与校准进度弹页，删除自创工程向按钮与标题。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-module-detail.module-detail-flow #espnowDetailMetrics.flow-layout {
  align-items: stretch !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-module-detail.module-detail-flow .espnow-flow-entry-card {
  min-height: 136px !important;
  height: 136px !important;
  display: grid !important;
  grid-template-rows: auto 1fr auto !important;
  align-items: center !important;
  align-content: center !important;
  gap: 4px !important;
  box-sizing: border-box !important;
  padding: 16px 12px !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-module-detail.module-detail-flow .espnow-flow-entry-card .summary-label,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-module-detail.module-detail-flow .espnow-flow-entry-card .summary-value,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-module-detail.module-detail-flow .espnow-flow-entry-card .summary-sub {
  width: 100% !important;
  margin: 0 !important;
  text-align: center !important;
  display: block !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-module-detail.module-detail-flow .espnow-flow-entry-card .summary-label {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: 14px !important;
  line-height: 1.12 !important;
  font-weight: 900 !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-module-detail.module-detail-flow .espnow-flow-entry-card .summary-value {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  align-self: center !important;
  justify-self: center !important;
  font-size: 22px !important;
  line-height: 1.08 !important;
  font-weight: 900 !important;
  min-height: 34px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-module-detail.module-detail-flow .espnow-flow-entry-card .summary-sub {
  color: rgba(255,255,255,.92) !important;
  -webkit-text-fill-color: rgba(255,255,255,.92) !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-module-detail.module-detail-flow .espnow-flow-entry-card--target .summary-sub {
  display: block !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-calibration.flow-module-overlay {
  align-items: center !important;
  justify-content: center !important;
  padding: clamp(10px, 3vw, 22px) !important;
  background:
    radial-gradient(circle at 50% 80%, rgba(245, 166, 35, .16), transparent 38%),
    rgba(255, 255, 255, .22) !important;
  backdrop-filter: blur(3px) !important;
  -webkit-backdrop-filter: blur(3px) !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-calibration > .flow-module-popup-sheet {
  width: min(92vw, 680px) !important;
  max-height: calc(100dvh - 28px) !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-calibration .flow-module-cal-progress-card,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-calibration .card.flow-module-cal-progress-card {
  width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  border-radius: clamp(28px, 7vw, 46px) !important;
  padding: clamp(24px, 4.8vw, 40px) !important;
  background:
    radial-gradient(circle at 18% 96%, rgba(245, 166, 35, .12), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, .90), rgba(255, 250, 242, .80)) !important;
  background-color: rgba(255, 252, 246, .84) !important;
  border: 1px solid rgba(255, 255, 255, .86) !important;
  color: var(--text-main, #303236) !important;
  -webkit-text-fill-color: var(--text-main, #303236) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .78),
    0 26px 72px rgba(118, 80, 22, .18) !important;
  backdrop-filter: blur(18px) saturate(1.05) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.05) !important;
  max-height: calc(100dvh - 28px) !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  gap: 18px !important;
  animation: none !important;
  transition: none !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-calibration .flow-module-cal-progress-card::before,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-calibration .flow-module-cal-progress-card::after {
  display: none !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-calibration .flow-module-cal-progress-card * {
  animation: none !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-calibration .flow-module-cal-summary-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-calibration .flow-module-cal-summary-grid .summary-card {
  background: #f5a623 !important;
  border-color: #f5a623 !important;
  color: var(--text-main, #303236) !important;
  -webkit-text-fill-color: var(--text-main, #303236) !important;
  border-radius: 24px !important;
  min-height: 122px !important;
  padding: 16px 18px !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-calibration .flow-module-cal-summary-grid .summary-label,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-calibration .flow-module-cal-summary-grid .summary-value,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-calibration .flow-module-cal-summary-grid .summary-sub {
  color: var(--text-main, #303236) !important;
  -webkit-text-fill-color: var(--text-main, #303236) !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-calibration .flow-module-cal-progress-track {
  height: 10px !important;
  border-radius: 999px !important;
  background: #eeeeee !important;
  border: 1px solid rgba(0,0,0,.10) !important;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.08) !important;
  margin: 0 !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-calibration .flow-module-cal-progress-track .progress-fill {
  background: #f5a623 !important;
  border-radius: inherit !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-calibration .flow-module-cal-status.status-box {
  background: #f5a623 !important;
  border-color: #f5a623 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border-radius: 24px !important;
  min-height: 64px !important;
  padding: 16px 20px !important;
  display: flex !important;
  align-items: center !important;
  font-weight: 900 !important;
  box-shadow: 0 18px 36px rgba(245,166,35,.18) !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-calibration .calibration-confirm-field {
  display: grid !important;
  gap: 12px !important;
  align-items: center !important;
  margin: 0 !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-calibration .calibration-confirm-field label {
  color: var(--text-main, #303236) !important;
  -webkit-text-fill-color: var(--text-main, #303236) !important;
  font-size: clamp(17px, 2.5vw, 22px) !important;
  font-weight: 900 !important;
  line-height: 1.3 !important;
  text-align: left !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-calibration #espnowDetailFlowCalVolumeInput {
  width: min(100%, 260px) !important;
  max-width: 100% !important;
  min-height: 58px !important;
  justify-self: center !important;
  align-self: center !important;
  border-radius: 20px !important;
  background: #ffffff !important;
  border: 1px solid rgba(215,215,215,.9) !important;
  color: #333333 !important;
  -webkit-text-fill-color: #333333 !important;
  font-size: 22px !important;
  font-weight: 900 !important;
  text-align: center !important;
  box-shadow: inset 0 1px 4px rgba(0,0,0,.08) !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-calibration .flow-module-cal-actions.actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
  margin: 0 !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-calibration .flow-module-cal-actions .btn {
  min-height: 58px !important;
  border-radius: 22px !important;
  font-size: clamp(18px, 3.2vw, 26px) !important;
  font-weight: 900 !important;
  box-shadow: none !important;
  opacity: 1 !important;
  filter: none !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-calibration .flow-module-cal-actions .btn.warn,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-calibration .flow-module-cal-actions .btn.cancel-action {
  background: rgba(255,255,255,.78) !important;
  border: 1px solid rgba(231, 60, 60, .28) !important;
  color: #df3535 !important;
  -webkit-text-fill-color: #df3535 !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-calibration .flow-module-cal-actions .btn.primary,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-calibration .flow-module-cal-actions .btn.confirm-action,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-calibration .flow-module-cal-actions .btn.primary:disabled,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-calibration .flow-module-cal-actions .btn.confirm-action:disabled {
  background: #f5a623 !important;
  border-color: #f5a623 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-calibration.flow-module-overlay {
    padding: 12px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-calibration > .flow-module-popup-sheet {
    width: min(94vw, 430px) !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-calibration .flow-module-cal-progress-card,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-calibration .card.flow-module-cal-progress-card {
    padding: 22px 20px 24px !important;
    border-radius: 34px !important;
    gap: 16px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-calibration .flow-module-cal-summary-grid .summary-card {
    min-height: 112px !important;
    padding: 14px 16px !important;
  }
}


/* FLOWDEMO_FLOW_MODULE_CALIBRATION_MAIN_SOURCE_FINAL_20260607
   只按主项目“校准进度”源码节奏修正：输入区常显、按钮不灰、不再用隐藏工程按钮兜底。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-calibration #espnowDetailFlowCalConfirmBox,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-calibration #espnowDetailFlowCalConfirmBox.is-hidden {
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-calibration .flow-module-cal-actions .btn.primary,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-calibration .flow-module-cal-actions .btn.confirm-action {
  background: #f5a623 !important;
  border-color: #f5a623 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
  filter: none !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-calibration .flow-module-cal-actions .btn.warn,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-calibration .flow-module-cal-actions .btn.cancel-action {
  background: rgba(255,255,255,.78) !important;
  border: 1px solid rgba(231, 60, 60, .28) !important;
  color: #df3535 !important;
  -webkit-text-fill-color: #df3535 !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-module-detail.module-detail-flow .espnow-flow-entry-card {
  height: 136px !important;
  min-height: 136px !important;
  max-height: 136px !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-module-detail.module-detail-flow .espnow-flow-entry-card .summary-label,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-module-detail.module-detail-flow .espnow-flow-entry-card .summary-value,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-module-detail.module-detail-flow .espnow-flow-entry-card .summary-sub {
  letter-spacing: 0 !important;
}

/* FLOWDEMO_FLOW_MODULE_ENTRY_STRIP_STACK_20260608
   流量子模块入口卡：按用户要求由横向三列改为一列三行长条卡；顺序由 JS 固定为定量出水、一键浓盐水、校准。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-module-detail.module-detail-flow #espnowDetailMetrics.flow-layout,
#view-module-detail.module-detail-flow #espnowDetailMetrics.flow-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: clamp(12px, 2vw, 16px) !important;
  align-items: stretch !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-module-detail.module-detail-flow .espnow-flow-entry-card,
#view-module-detail.module-detail-flow .espnow-flow-entry-card {
  width: 100% !important;
  min-height: clamp(104px, 12vw, 124px) !important;
  height: auto !important;
  max-height: none !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  align-items: center !important;
  align-content: center !important;
  column-gap: clamp(16px, 3vw, 28px) !important;
  row-gap: 8px !important;
  padding: clamp(18px, 3.2vw, 24px) clamp(22px, 4vw, 32px) !important;
  border-radius: clamp(24px, 4vw, 34px) !important;
  box-sizing: border-box !important;
  text-align: left !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-module-detail.module-detail-flow .espnow-flow-entry-card .summary-label,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-module-detail.module-detail-flow .espnow-flow-entry-card .summary-value,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-module-detail.module-detail-flow .espnow-flow-entry-card .summary-sub,
#view-module-detail.module-detail-flow .espnow-flow-entry-card .summary-label,
#view-module-detail.module-detail-flow .espnow-flow-entry-card .summary-value,
#view-module-detail.module-detail-flow .espnow-flow-entry-card .summary-sub {
  width: auto !important;
  margin: 0 !important;
  text-align: left !important;
  justify-self: stretch !important;
  letter-spacing: 0 !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-module-detail.module-detail-flow .espnow-flow-entry-card .summary-label,
#view-module-detail.module-detail-flow .espnow-flow-entry-card .summary-label {
  grid-column: 1 !important;
  grid-row: 1 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: clamp(18px, 2.5vw, 24px) !important;
  line-height: 1.18 !important;
  font-weight: 900 !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-module-detail.module-detail-flow .espnow-flow-entry-card .summary-value,
#view-module-detail.module-detail-flow .espnow-flow-entry-card .summary-value {
  grid-column: 1 !important;
  grid-row: 2 !important;
  min-height: 0 !important;
  display: block !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: clamp(26px, 4vw, 36px) !important;
  line-height: 1.08 !important;
  font-weight: 900 !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-module-detail.module-detail-flow .espnow-flow-entry-card .summary-sub,
#view-module-detail.module-detail-flow .espnow-flow-entry-card .summary-sub {
  grid-column: 2 !important;
  grid-row: 1 / span 2 !important;
  align-self: center !important;
  padding-left: clamp(16px, 3vw, 24px) !important;
  border-left: 1px solid rgba(255,255,255,.26) !important;
  color: rgba(255,255,255,.95) !important;
  -webkit-text-fill-color: rgba(255,255,255,.95) !important;
  font-size: clamp(16px, 2.3vw, 22px) !important;
  line-height: 1.28 !important;
  font-weight: 900 !important;
  white-space: normal !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-module-detail.module-detail-flow .espnow-flow-entry-card--target .espnow-detail-dual-lines,
#view-module-detail.module-detail-flow .espnow-flow-entry-card--target .espnow-detail-dual-lines {
  grid-column: 2 !important;
  grid-row: 1 / span 2 !important;
  align-self: center !important;
  margin: 0 !important;
  padding-left: clamp(16px, 3vw, 24px) !important;
  border-left: 1px solid rgba(255,255,255,.26) !important;
  display: grid !important;
  gap: 8px !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-module-detail.module-detail-flow .espnow-flow-entry-card--target .espnow-detail-dual-line,
#view-module-detail.module-detail-flow .espnow-flow-entry-card--target .espnow-detail-dual-line {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: baseline !important;
  gap: 10px !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: clamp(15px, 2.1vw, 20px) !important;
  line-height: 1.18 !important;
  font-weight: 900 !important;
  text-align: left !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-module-detail.module-detail-flow .espnow-flow-entry-card--target .espnow-detail-dual-line strong,
#view-module-detail.module-detail-flow .espnow-flow-entry-card--target .espnow-detail-dual-line strong {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: clamp(19px, 2.8vw, 26px) !important;
  line-height: 1.08 !important;
  font-weight: 900 !important;
}
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-module-detail.module-detail-flow #espnowDetailMetrics.flow-layout,
  #view-module-detail.module-detail-flow #espnowDetailMetrics.flow-layout {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-module-detail.module-detail-flow .espnow-flow-entry-card,
  #view-module-detail.module-detail-flow .espnow-flow-entry-card {
    min-height: 108px !important;
    padding: 18px 20px !important;
    border-radius: 24px !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    column-gap: 16px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-module-detail.module-detail-flow .espnow-flow-entry-card .summary-label,
  #view-module-detail.module-detail-flow .espnow-flow-entry-card .summary-label {
    font-size: 18px !important;
    line-height: 1.16 !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-module-detail.module-detail-flow .espnow-flow-entry-card .summary-value,
  #view-module-detail.module-detail-flow .espnow-flow-entry-card .summary-value {
    font-size: 28px !important;
    line-height: 1.08 !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-module-detail.module-detail-flow .espnow-flow-entry-card .summary-sub,
  #view-module-detail.module-detail-flow .espnow-flow-entry-card .summary-sub,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-module-detail.module-detail-flow .espnow-flow-entry-card--target .espnow-detail-dual-line,
  #view-module-detail.module-detail-flow .espnow-flow-entry-card--target .espnow-detail-dual-line {
    font-size: 14px !important;
    line-height: 1.22 !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-module-detail.module-detail-flow .espnow-flow-entry-card--target .espnow-detail-dual-line strong,
  #view-module-detail.module-detail-flow .espnow-flow-entry-card--target .espnow-detail-dual-line strong {
    font-size: 18px !important;
  }
}

/* FLOWDEMO_FLOW_OUTPUT_POPUP_STATUS_TOP_20260608
   定量出水弹页：把已出水/剩余状态数字移到输入区上方；开始出水按钮保持统一橙色，不再因禁用态发灰。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-output .flow-module-popup-card--output .espnow-flow-card-strip,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-output .card.flow-module-popup-card--output .espnow-flow-card-strip {
  order: 1 !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin: clamp(18px, 4vw, 28px) 0 clamp(18px, 4vw, 28px) !important;
  padding: 0 !important;
  color: var(--text-main, #303236) !important;
  -webkit-text-fill-color: var(--text-main, #303236) !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-output .flow-module-popup-card--output .espnow-flow-card-strip span,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-output .card.flow-module-popup-card--output .espnow-flow-card-strip span {
  display: grid !important;
  gap: 4px !important;
  min-height: 72px !important;
  align-content: center !important;
  padding: 14px 16px !important;
  border-radius: 22px !important;
  background: rgba(245, 166, 35, .96) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: clamp(15px, 2.4vw, 20px) !important;
  line-height: 1.18 !important;
  font-weight: 900 !important;
  box-shadow: 0 14px 30px rgba(245, 166, 35, .16) !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-output .flow-module-popup-card--output .espnow-flow-card-strip strong,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-output .card.flow-module-popup-card--output .espnow-flow-card-strip strong {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: clamp(22px, 4vw, 32px) !important;
  line-height: 1.08 !important;
  font-weight: 900 !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-output .flow-module-popup-card--output .espnow-flow-target-grid,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-output .card.flow-module-popup-card--output .espnow-flow-target-grid {
  order: 2 !important;
  margin-top: 0 !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-output .sheet .btn.primary,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-output .sheet .btn.primary:disabled,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-output .sheet .btn.primary.disabled,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-output #espnowDetailFlowPrimaryBtn,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-output #espnowDetailFlowPrimaryBtn:disabled,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-output #espnowDetailFlowPrimaryBtn.disabled {
  background: #f5a623 !important;
  border-color: #f5a623 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
  filter: none !important;
  box-shadow: 0 18px 36px rgba(245, 166, 35, .18) !important;
}
@media (max-width: 520px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-output .flow-module-popup-card--output .espnow-flow-card-strip,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-output .card.flow-module-popup-card--output .espnow-flow-card-strip {
    gap: 10px !important;
    margin: 16px 0 18px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-output .flow-module-popup-card--output .espnow-flow-card-strip span,
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #overlay-espnow-flow-output .card.flow-module-popup-card--output .espnow-flow-card-strip span {
    min-height: 64px !important;
    padding: 12px 14px !important;
    border-radius: 20px !important;
  }
}

/* FLOW_BRINE_CLOUD_WEB_BEGIN: 流量子模块一键浓盐水复用 RO/流量校准页布局与权威状态样式。 */
#overlay-espnow-flow-brine.flow-module-overlay {
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 3vw, 22px);
}
#overlay-espnow-flow-brine > .espnow-flow-brine-sheet.flow-module-popup-sheet {
  width: min(94vw, 860px);
  max-height: calc(100dvh - 28px);
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
#overlay-espnow-flow-brine .flow-module-cal-progress-card {
  width: 100%;
  box-sizing: border-box;
  border-radius: clamp(24px, 6vw, 42px);
  padding: clamp(18px, 4vw, 34px);
  max-height: calc(100dvh - 28px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  gap: 12px;
}
#overlay-espnow-flow-brine .flow-module-cal-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
#overlay-espnow-flow-brine .flow-module-cal-summary-grid .summary-card {
  min-height: 112px;
  border-radius: 24px;
  padding: 16px 18px;
}
#overlay-espnow-flow-brine .espnow-flow-brine-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 1.6vw, 14px);
}
#overlay-espnow-flow-brine .calibration-confirm-field {
  display: grid;
  gap: 10px;
  align-items: center;
}
#overlay-espnow-flow-brine .brine-label-short {
  display: none;
}

#overlay-espnow-flow-brine .brine-label-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: baseline;
  width: 100%;
}
#overlay-espnow-flow-brine .brine-label-short.brine-label-split {
  display: none;
}
#overlay-espnow-flow-brine .brine-label-name {
  grid-column: 2;
  justify-self: center;
  text-align: center;
}
#overlay-espnow-flow-brine .brine-label-unit {
  grid-column: 3;
  justify-self: start;
  margin-left: .22em;
  font-size: .86em;
  letter-spacing: 0;
}
#overlay-espnow-flow-brine .calibration-confirm-field input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  min-height: 58px;
  border-radius: 20px;
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}
#overlay-espnow-flow-brine .calibration-confirm-field input:not([readonly]) {
  background: #ffffff !important;
  background-image: none !important;
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
  border: 1px solid rgba(15, 23, 42, 0.16) !important;
}
#overlay-espnow-flow-brine .calibration-confirm-field input[readonly] {
  background: #f2f2f2 !important;
  background-image: none !important;
  color: #666666 !important;
  -webkit-text-fill-color: #666666 !important;
  border: 1px solid rgba(15, 23, 42, 0.10) !important;
  cursor: default;
}
#overlay-espnow-flow-brine .flow-module-cal-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin: 0;
}
#overlay-espnow-flow-brine .espnow-flow-brine-estimate-grid--single {
  grid-template-columns: minmax(0, 1fr);
}
#overlay-espnow-flow-brine .espnow-flow-brine-hero-card {
  min-height: 108px;
}
#overlay-espnow-flow-brine .espnow-flow-brine-hero-progress {
  margin-top: 4px;
  font-weight: 800;
  opacity: 0.88;
}
#overlay-espnow-flow-brine .espnow-flow-brine-authority-grid--simple {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
#overlay-espnow-flow-brine .flow-module-cal-actions .btn {
  min-height: 54px;
  border-radius: 22px;
  font-size: clamp(16px, 2.8vw, 24px);
  font-weight: 900;
}
#overlay-espnow-flow-brine .espnow-flow-brine-status {
  border-radius: 24px;
  min-height: 64px;
  padding: 16px 20px;
  font-weight: 900;
}
#overlay-espnow-flow-brine .espnow-flow-brine-authority-card {
  margin-top: 16px;
}
@media (max-width: 720px) {
  #overlay-espnow-flow-brine .flow-module-cal-summary-grid,
  #overlay-espnow-flow-brine .flow-module-cal-actions {
    grid-template-columns: 1fr;
  }
  #overlay-espnow-flow-brine .espnow-flow-brine-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  #overlay-espnow-flow-brine .flow-module-cal-progress-card {
    padding: 18px 22px;
    gap: 10px;
  }
  #overlay-espnow-flow-brine .flow-module-cal-summary-grid .summary-card {
    min-height: 96px;
    padding: 14px 16px;
  }
  #overlay-espnow-flow-brine .calibration-confirm-field {
    gap: 6px;
  }
  #overlay-espnow-flow-brine .calibration-confirm-field input {
    min-height: 46px;
    font-size: clamp(15px, 3.5vw, 20px);
  }
  #overlay-espnow-flow-brine .module-page-field-label {
    font-size: clamp(10px, 2.5vw, 13px);
    white-space: nowrap;
  }
  #overlay-espnow-flow-brine .brine-label-full {
    display: none;
  }
  #overlay-espnow-flow-brine .brine-label-short {
    display: inline;
  }
  #overlay-espnow-flow-brine .brine-label-short.brine-label-split {
    display: grid;
  }
}

/* espnow-flow-brine-font-contract: 一键兑浓盐水必须复用 RO/流量校准页字体层级。 */
#overlay-espnow-flow-brine .sheet-head h3 {
  color: var(--text-main, #303236);
  -webkit-text-fill-color: var(--text-main, #303236);
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 900;
  line-height: 1.15;
}
#overlay-espnow-flow-brine .summary-label,
#overlay-espnow-flow-brine .summary-value,
#overlay-espnow-flow-brine .summary-sub,
#overlay-espnow-flow-brine .module-page-field-label {
  color: var(--text-main, #303236);
  -webkit-text-fill-color: var(--text-main, #303236);
  font-weight: 900;
  line-height: 1.3;
}
#overlay-espnow-flow-brine .summary-label {
  font-size: clamp(16px, 2.7vw, 22px);
}
#overlay-espnow-flow-brine .summary-value {
  font-size: clamp(30px, 6vw, 46px);
}
#overlay-espnow-flow-brine .summary-sub {
  font-size: clamp(15px, 2.4vw, 20px);
}
#overlay-espnow-flow-brine .module-page-field-label {
  font-size: clamp(15px, 2.2vw, 20px);
}
#overlay-espnow-flow-brine .flow-module-cal-actions .btn {
  font-size: clamp(18px, 3.2vw, 26px);
  font-weight: 900;
}
#overlay-espnow-flow-brine .flow-module-cal-actions .btn.warn,
#overlay-espnow-flow-brine .flow-module-cal-actions .btn.cancel-action {
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(231, 60, 60, .28);
  color: #df3535;
  -webkit-text-fill-color: #df3535;
}
#overlay-espnow-flow-brine .flow-module-cal-actions .btn.primary,
#overlay-espnow-flow-brine .flow-module-cal-actions .btn.confirm-action {
  background: #f5a623;
  border-color: #f5a623;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}
/* FLOW_BRINE_CLOUD_WEB_END */

/* FLOWDEMO_FLOW_MODULE_ENTRY_STABLE_HOVER_20260608
   流量子模块三入口卡外层命中框固定：历史抖动根因为 hover/active 位移改变鼠标命中边界。
   入口反馈只允许背景、边框、阴影、色彩变化，禁止外层 translate/scale。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-module-detail.module-detail-flow .espnow-flow-entry-card,
#view-module-detail.module-detail-flow .espnow-flow-entry-card {
  min-height: clamp(96px, 7.6vw, 112px) !important;
  height: clamp(96px, 7.6vw, 112px) !important;
  padding-top: clamp(14px, 2.2vw, 18px) !important;
  padding-bottom: clamp(14px, 2.2vw, 18px) !important;
  row-gap: 4px !important;
  transform: none !important;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease, filter 160ms ease !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-module-detail.module-detail-flow .espnow-flow-entry-card:hover,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-module-detail.module-detail-flow .espnow-flow-entry-card:active,
#view-module-detail.module-detail-flow .espnow-flow-entry-card:hover,
#view-module-detail.module-detail-flow .espnow-flow-entry-card:active {
  transform: none !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-module-detail.module-detail-flow .espnow-flow-entry-card .espnow-detail-dual-lines,
#view-module-detail.module-detail-flow .espnow-flow-entry-card .espnow-detail-dual-lines {
  display: grid !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 0 !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-module-detail.module-detail-flow .espnow-flow-entry-card .espnow-detail-dual-line,
#view-module-detail.module-detail-flow .espnow-flow-entry-card .espnow-detail-dual-line {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: baseline !important;
  gap: 10px !important;
  color: rgba(255,255,255,.94) !important;
  -webkit-text-fill-color: rgba(255,255,255,.94) !important;
  font-size: clamp(13px, 1.35vw, 17px) !important;
  line-height: 1.25 !important;
  font-weight: 900 !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-module-detail.module-detail-flow .espnow-flow-entry-card .espnow-detail-dual-line strong,
#view-module-detail.module-detail-flow .espnow-flow-entry-card .espnow-detail-dual-line strong {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-module-detail.module-detail-flow .espnow-flow-entry-card--empty-primary .summary-label,
#view-module-detail.module-detail-flow .espnow-flow-entry-card--empty-primary .summary-label {
  grid-row: 1 / span 2 !important;
  align-self: center !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-module-detail.module-detail-flow .espnow-flow-entry-card--empty-primary .espnow-detail-dual-lines,
#view-module-detail.module-detail-flow .espnow-flow-entry-card--empty-primary .espnow-detail-dual-lines {
  grid-row: 1 / span 2 !important;
}
@media (max-width: 720px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-module-detail.module-detail-flow .espnow-flow-entry-card,
  #view-module-detail.module-detail-flow .espnow-flow-entry-card {
    min-height: 96px !important;
    height: 96px !important;
    padding: 14px 18px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-module-detail.module-detail-flow .espnow-flow-entry-card .summary-value,
  #view-module-detail.module-detail-flow .espnow-flow-entry-card .summary-value {
    font-size: 26px !important;
    line-height: 1.08 !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-module-detail.module-detail-flow .espnow-flow-entry-card .espnow-detail-dual-line,
  #view-module-detail.module-detail-flow .espnow-flow-entry-card .espnow-detail-dual-line {
    font-size: 12px !important;
    gap: 6px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-module-detail.module-detail-flow .espnow-flow-entry-card .espnow-detail-dual-line strong,
  #view-module-detail.module-detail-flow .espnow-flow-entry-card .espnow-detail-dual-line strong {
    font-size: 18px !important;
  }
}

/* FLOWDEMO_FLOW_MODULE_ENTRY_LEFT_TITLE_RIGHT_INFO_20260608
   流量三入口统一视觉：左半区只放标题，右半区只放数值/状态；禁止标题和值混在同一侧。 */
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-module-detail.module-detail-flow .espnow-flow-entry-card,
#view-module-detail.module-detail-flow .espnow-flow-entry-card {
  position: relative !important;
  grid-template-columns: minmax(0, 38%) minmax(0, 62%) !important;
  grid-template-rows: minmax(0, 1fr) !important;
  min-height: clamp(88px, 7vw, 104px) !important;
  height: clamp(88px, 7vw, 104px) !important;
  padding: clamp(12px, 2vw, 16px) clamp(20px, 3.2vw, 28px) !important;
  column-gap: 0 !important;
  row-gap: 0 !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-module-detail.module-detail-flow .espnow-flow-entry-card::before,
#view-module-detail.module-detail-flow .espnow-flow-entry-card::before {
  content: "" !important;
  position: absolute !important;
  left: calc(38% + 0px) !important;
  top: 22% !important;
  bottom: 22% !important;
  width: 1px !important;
  background: rgba(255,255,255,.24) !important;
  pointer-events: none !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-module-detail.module-detail-flow .espnow-flow-entry-title,
#view-module-detail.module-detail-flow .espnow-flow-entry-title {
  grid-column: 1 !important;
  grid-row: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-module-detail.module-detail-flow .espnow-flow-entry-info,
#view-module-detail.module-detail-flow .espnow-flow-entry-info {
  grid-column: 2 !important;
  grid-row: 1 !important;
  min-width: 0 !important;
  width: min(100%, 320px) !important;
  justify-self: center !important;
  align-self: center !important;
  display: grid !important;
  align-content: center !important;
  justify-items: center !important;
  gap: 4px !important;
  text-align: center !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-module-detail.module-detail-flow .espnow-flow-entry-title .summary-label,
#view-module-detail.module-detail-flow .espnow-flow-entry-title .summary-label,
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-module-detail.module-detail-flow .espnow-flow-entry-info .summary-value,
#view-module-detail.module-detail-flow .espnow-flow-entry-info .summary-value {
  grid-column: auto !important;
  grid-row: auto !important;
  width: auto !important;
  justify-self: center !important;
  align-self: center !important;
  margin: 0 !important;
  text-align: center !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-module-detail.module-detail-flow .espnow-flow-entry-info .summary-value,
#view-module-detail.module-detail-flow .espnow-flow-entry-info .summary-value {
  font-size: clamp(24px, 3.2vw, 34px) !important;
  line-height: 1.08 !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-module-detail.module-detail-flow .espnow-flow-entry-info .espnow-detail-dual-lines,
#view-module-detail.module-detail-flow .espnow-flow-entry-info .espnow-detail-dual-lines {
  grid-column: auto !important;
  grid-row: auto !important;
  width: min(100%, 260px) !important;
  justify-self: center !important;
  align-self: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border-left: 0 !important;
  display: grid !important;
  gap: 4px !important;
}
body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-module-detail.module-detail-flow .espnow-flow-entry-info .espnow-detail-dual-line,
#view-module-detail.module-detail-flow .espnow-flow-entry-info .espnow-detail-dual-line {
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 10px !important;
  width: 100% !important;
  text-align: left !important;
}
@media (max-width: 720px) {
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-module-detail.module-detail-flow .espnow-flow-entry-card,
  #view-module-detail.module-detail-flow .espnow-flow-entry-card {
    min-height: 88px !important;
    height: 88px !important;
    padding: 12px 18px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-module-detail.module-detail-flow .espnow-flow-entry-info,
  #view-module-detail.module-detail-flow .espnow-flow-entry-info {
    width: min(100%, 190px) !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-module-detail.module-detail-flow .espnow-flow-entry-title .summary-label,
  #view-module-detail.module-detail-flow .espnow-flow-entry-title .summary-label {
    font-size: 18px !important;
  }
  body.waterchanger-cloud-copy[data-theme="pumpapex"] #view-module-detail.module-detail-flow .espnow-flow-entry-info .summary-value,
  #view-module-detail.module-detail-flow .espnow-flow-entry-info .summary-value {
    font-size: 24px !important;
  }
}

/* FLOWDEMO_MODULE_DETAIL_DIRECT_TITLE_20260609
   模块详情页不再显示“切换模块”导航说明；当前页面直接作为流量子模块详情页。 */
.module-page-direct-head {
  margin: 0 0 clamp(14px, 2.4vw, 22px);
}
.module-page-direct-head h2 {
  margin: 0;
  font-size: clamp(28px, 5.5vw, 42px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #2b2b2b;
}
.module-page-nav--hidden {
  display: none !important;
}
