body.customer-page {
  --customer-ink: #18181b;
  --customer-muted: #71717a;
  --customer-soft: #a1a1aa;
  --customer-line: #e4e4e7;
  --customer-surface: #f4f4f5;
  --customer-blue: #2563eb;
  --customer-blue-soft: #eff6ff;
  --customer-success: #267449;
  --customer-success-line: #bbf7d0;
  --customer-success-surface: #f0fdf4;
  --customer-danger: #a13f48;
  --customer-danger-line: #fecaca;
  --customer-danger-surface: #fff4f4;
  margin: 0;
  color: var(--customer-ink);
  background: #fff;
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans SC", "Segoe UI", sans-serif;
}

.customer-page,
.customer-page * {
  letter-spacing: 0;
}

.customer-page .supplier-progress-overlay,
.customer-page .supplier-delivery-center {
  display: none !important;
}

.customer-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 80px;
}

.customer-auth-shell {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
}

.customer-auth-panel {
  width: min(460px, 100%);
  padding: 32px;
  border: 1px solid var(--customer-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(24, 24, 27, 0.08);
}

.customer-kicker {
  color: var(--customer-blue);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.customer-auth-panel h1,
.customer-topbar h1 {
  margin: 10px 0 8px;
  color: var(--customer-ink);
  font-size: 34px;
  line-height: 1.12;
}

.customer-muted { color: var(--customer-muted); }
.customer-form,
.customer-grid-form { display: grid; gap: 15px; }
.customer-form { margin-top: 26px; }

.customer-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.customer-form label,
.customer-grid-form label,
.customer-inline-form label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: #3f3f46;
  font-size: 13px;
  font-weight: 700;
}

.customer-form input,
.customer-grid-form input,
.customer-grid-form select,
.customer-inline-form input,
.customer-inline-form select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--customer-line);
  border-radius: 8px;
  color: var(--customer-ink);
  background: var(--customer-surface);
  outline: none;
}

.customer-form input:focus,
.customer-grid-form input:focus,
.customer-grid-form select:focus,
.customer-inline-form input:focus,
.customer-inline-form select:focus {
  border-color: #93c5fd;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.09);
}

.customer-primary,
.customer-secondary {
  min-height: 44px;
  padding: 9px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.customer-primary {
  border: 1px solid var(--customer-ink);
  color: #fff;
  background: var(--customer-ink);
}

.customer-primary:hover { background: #27272a; }
.customer-secondary {
  border: 1px solid var(--customer-line);
  color: #3f3f46;
  background: #fff;
}

.customer-secondary:hover {
  border-color: #a1a1aa;
  color: var(--customer-ink);
  background: #fafafa;
}

.customer-primary:focus-visible,
.customer-secondary:focus-visible,
.customer-tab:focus-visible,
.customer-page a:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 2px;
}

.customer-primary:disabled,
.customer-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.customer-primary[aria-busy="true"],
.customer-secondary[aria-busy="true"] { cursor: wait; }

.customer-form-error {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--customer-danger-line);
  border-radius: 8px;
  color: var(--customer-danger);
  background: var(--customer-danger-surface);
}

.customer-auth-switch { color: var(--customer-muted); font-size: 13px; }
.customer-auth-switch a,
.customer-back-link { color: var(--customer-blue); }
.customer-back-link { display: inline-block; margin-top: 15px; font-size: 13px; }

.customer-topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.customer-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-wrap: wrap;
}

.customer-top-actions .customer-secondary {
  flex: 0 0 auto;
  white-space: nowrap;
}

#customerIdentity {
  min-width: 0;
  overflow-wrap: anywhere;
}

.customer-notice {
  position: fixed;
  z-index: 120;
  top: max(16px, env(safe-area-inset-top));
  left: 50%;
  width: max-content;
  max-width: min(520px, calc(100vw - 32px));
  margin: 0;
  padding: 12px 16px;
  border: 1px solid var(--customer-line);
  border-radius: 8px;
  color: #3f3f46;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 40px rgba(24, 24, 27, 0.12);
  overflow-wrap: anywhere;
  transform: translateX(-50%);
  animation: customer-notice-in 160ms ease-out both;
}

.customer-notice.is-neutral {
  border-color: #bfdbfe;
  color: #1e40af;
  background: #eff6ff;
}

.customer-notice.is-success {
  border-color: var(--customer-success-line);
  color: var(--customer-success);
  background: var(--customer-success-surface);
}

.customer-notice.is-error {
  border-color: var(--customer-danger-line);
  color: var(--customer-danger);
  background: var(--customer-danger-surface);
}

.customer-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.customer-metrics article,
.customer-panel,
.customer-status-grid > div,
.customer-subpanel {
  border: 1px solid var(--customer-line);
  border-radius: 8px;
  background: #fff;
}

.customer-metrics article {
  position: relative;
  overflow: hidden;
  min-width: 0;
  min-height: 110px;
  padding: 18px;
  display: grid;
  gap: 6px;
  background: var(--customer-surface);
}

.customer-metrics article::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 3px;
  background: #22c55e;
}

.customer-metrics article[data-accent="blue"]::after { background: #3b82f6; }
.customer-metrics article[data-accent="amber"]::after { background: #d97706; }
.customer-metrics article[data-accent="violet"]::after { background: #8b5cf6; }

.customer-metrics small,
.customer-status-grid small { color: var(--customer-muted); }
.customer-metrics strong { font-size: 28px; overflow-wrap: anywhere; }
.customer-metrics span { color: var(--customer-muted); font-size: 12px; }
.customer-metrics span b { color: inherit; font-size: inherit; }
.customer-metrics time { color: #71717a; font-size: 10px; font-style: normal; }

.customer-tabs {
  display: flex;
  gap: 4px;
  margin: 20px 0 12px;
  padding: 4px;
  overflow-x: auto;
  border: 1px solid var(--customer-line);
  border-radius: 8px;
  background: var(--customer-surface);
  scrollbar-width: thin;
}

.customer-tab {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 10px 14px;
  border: 0;
  border-radius: 6px;
  color: var(--customer-muted);
  background: transparent;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.customer-tab:hover { color: var(--customer-ink); }
.customer-tab.is-active {
  color: var(--customer-ink);
  background: #fff;
  box-shadow: 0 1px 3px rgba(24, 24, 27, 0.08);
}

.customer-panel { display: none; padding: 22px; }
.customer-panel.is-visible {
  display: block;
  animation: customer-panel-in 180ms ease-out both;
}

@keyframes customer-panel-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes customer-notice-in {
  from { opacity: 0; transform: translate(-50%, -6px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.customer-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.customer-panel-heading > div { min-width: 0; }
.customer-panel-heading .customer-secondary {
  flex: 0 0 auto;
  white-space: nowrap;
}

.customer-panel h2,
.customer-panel h3 { margin: 0 0 6px; color: var(--customer-ink); }
.customer-panel p {
  margin: 0;
  color: var(--customer-muted);
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

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

.customer-status-grid > div {
  min-width: 0;
  padding: 15px;
  display: grid;
  gap: 7px;
  background: var(--customer-surface);
}

.customer-status-grid b {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.customer-panel[data-section="overview"] {
  padding: 0;
  border: 0;
  background: transparent;
}

.customer-overview-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 310px);
  align-items: start;
  gap: 14px;
  min-width: 0;
}
.customer-overview-main,
.customer-overview-rail { min-width: 0; max-width: 100%; }
.customer-overview-rail {
  display: grid;
  gap: 14px;
}
.customer-overview-rail .customer-monitor-scope,
.customer-overview-rail .customer-inventory-section {
  margin-bottom: 0;
  padding: 14px;
}
.customer-overview-rail .customer-section-heading {
  align-items: flex-start;
  flex-direction: column;
  gap: 10px;
}
.customer-overview-rail .customer-section-actions {
  width: 100%;
  justify-content: space-between;
  flex-wrap: wrap;
}
.customer-overview-rail .customer-monitor-view {
  width: 100%;
  grid-template-columns: 1fr;
}
.customer-overview-rail .customer-monitor-editor {
  align-items: stretch;
  flex-direction: column;
}
.customer-overview-rail .customer-monitor-editor > .customer-secondary { width: 100%; }
.customer-overview-rail .customer-monitor-hub-list,
.customer-overview-rail .customer-inventory-grid { grid-template-columns: 1fr; }
.customer-overview-rail .customer-inventory-item {
  min-height: 0;
  padding: 12px;
  gap: 10px;
}
.customer-overview-rail .customer-inventory-value b { font-size: 20px; }

.customer-monitor-scope {
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid var(--customer-line);
  border-left: 3px solid var(--customer-blue);
  border-radius: 8px;
  background: #fff;
}
.customer-monitor-scope[hidden] { display: none; }

.customer-monitor-scope > p { margin-top: 9px; }
.customer-monitor-view {
  min-width: min(280px, 100%);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  color: #3f3f46;
  font-size: 12px;
  font-weight: 800;
}
.customer-monitor-view select { min-width: 0; }
.customer-monitor-editor {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  margin-top: 14px;
}
.customer-monitor-editor > .customer-secondary { flex: 0 0 auto; }
.customer-monitor-hub-list {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}
.customer-monitor-hub-choice {
  min-width: 0;
  min-height: 58px;
  padding: 10px 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--customer-line);
  border-radius: 8px;
  color: #3f3f46;
  background: var(--customer-surface);
  cursor: pointer;
}
.customer-monitor-hub-choice:has(input:checked) {
  border-color: #93c5fd;
  background: var(--customer-blue-soft);
}
.customer-monitor-hub-choice > span { min-width: 0; display: grid; gap: 3px; }
.customer-monitor-hub-choice strong,
.customer-monitor-hub-choice small { overflow-wrap: anywhere; }
.customer-monitor-hub-choice small { color: var(--customer-muted); font-size: 11px; font-weight: 500; }
.customer-monitor-summary {
  display: block;
  margin-top: 9px;
  color: var(--customer-muted);
  overflow-wrap: anywhere;
}

.customer-hub-analytics-list {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.customer-hub-analytics-list[hidden],
.customer-single-hub-overview[hidden] { display: none; }
.customer-single-hub-telemetry {
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--customer-line);
  border-radius: 8px;
  background: #fff;
}
.customer-single-hub-telemetry > div {
  min-width: 0;
  padding: 13px 14px;
  display: grid;
  align-content: center;
  gap: 5px;
  border-right: 1px solid var(--customer-line);
}
.customer-single-hub-telemetry > div:nth-child(3n) { border-right: 0; }
.customer-single-hub-telemetry > div:nth-child(-n+3) { border-bottom: 1px solid var(--customer-line); }
.customer-single-hub-telemetry small,
.customer-single-hub-telemetry span { color: var(--customer-muted); overflow-wrap: anywhere; }
.customer-single-hub-telemetry small { font-size: 11px; font-weight: 800; }
.customer-single-hub-telemetry b { min-width: 0; width: fit-content; font-size: 17px; overflow-wrap: anywhere; }
.customer-single-hub-telemetry span { font-size: 11px; line-height: 1.45; }
.customer-hub-analytics-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--customer-line);
  border-radius: 8px;
  background: #fff;
  animation: customer-panel-in 180ms ease-out both;
}
.customer-hub-analytics-heading {
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.customer-hub-analytics-heading > div { min-width: 0; }
.customer-hub-analytics-heading > div > small {
  color: var(--customer-blue);
  font-size: 10px;
  font-weight: 800;
}
.customer-hub-analytics-heading h3 { margin: 3px 0 4px; overflow-wrap: anywhere; }
.customer-monitor-badge {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid var(--customer-line);
  border-radius: 999px;
  color: var(--customer-muted);
  background: var(--customer-surface);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.customer-monitor-badge.is-live { border-color: var(--customer-success-line); color: var(--customer-success); background: var(--customer-success-surface); }
.customer-monitor-badge.is-cache { border-color: #fde68a; color: #92400e; background: #fffbeb; }
.customer-monitor-badge.is-error { border-color: var(--customer-danger-line); color: var(--customer-danger); background: var(--customer-danger-surface); }
.customer-hub-analytics-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--customer-line);
  border-bottom: 1px solid var(--customer-line);
  background: var(--customer-surface);
}
.customer-hub-analytics-metric {
  position: relative;
  min-width: 0;
  min-height: 100px;
  padding: 14px;
  display: grid;
  align-content: center;
  gap: 5px;
  border-right: 1px solid var(--customer-line);
}
.customer-hub-analytics-metric:nth-child(3n) { border-right: 0; }
.customer-hub-analytics-metric:nth-child(-n+3) { border-bottom: 1px solid var(--customer-line); }
.customer-hub-analytics-metric::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: #3b82f6;
}
.customer-hub-analytics-metric[data-accent="green"]::before { background: #16a34a; }
.customer-hub-analytics-metric[data-accent="amber"]::before { background: #d97706; }
.customer-hub-analytics-metric[data-accent="violet"]::before { background: #8b5cf6; }
.customer-hub-analytics-metric small,
.customer-hub-analytics-metric span { color: var(--customer-muted); overflow-wrap: anywhere; }
.customer-hub-analytics-metric small { font-size: 11px; }
.customer-hub-analytics-metric strong { font-size: 22px; overflow-wrap: anywhere; }
.customer-hub-analytics-metric span { font-size: 11px; line-height: 1.45; }
.customer-hub-auto-pool {
  display: grid;
  grid-template-columns: 1.15fr .9fr .9fr 1.25fr 1.8fr;
  min-width: 0;
  border-bottom: 1px solid var(--customer-line);
  border-left: 3px solid #a1a1aa;
  background: #fff;
}
.customer-hub-auto-pool.is-active { border-left-color: #16a34a; }
.customer-hub-auto-pool.is-waiting { border-left-color: #d97706; }
.customer-hub-auto-pool.is-error { border-left-color: #dc2626; }
.customer-hub-auto-pool > div {
  min-width: 0;
  padding: 11px 12px;
  display: grid;
  align-content: center;
  gap: 4px;
  border-right: 1px solid var(--customer-line);
}
.customer-hub-auto-pool > div:last-child { border-right: 0; }
.customer-hub-auto-pool small { color: var(--customer-muted); font-size: 10px; }
.customer-hub-auto-pool strong { font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.customer-hub-auto-pool.is-active > div:first-child strong { color: var(--customer-success); }
.customer-hub-auto-pool.is-waiting > div:first-child strong { color: #92400e; }
.customer-hub-auto-pool.is-error > div:first-child strong { color: var(--customer-danger); }
.customer-hub-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
  padding: 16px 18px 18px;
}
.customer-hub-chart { min-width: 0; }
.customer-hub-chart > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.customer-hub-chart > header strong,
.customer-hub-chart > header small { min-width: 0; overflow-wrap: anywhere; }
.customer-hub-chart > header small { color: var(--customer-muted); text-align: right; }
.customer-hub-chart .customer-chart-canvas { min-height: 160px; }

.customer-chart-section {
  min-width: 0;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--customer-line);
  border-radius: 8px;
  background: #fff;
}

.customer-chart-heading,
.customer-forecast-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.customer-chart-heading h3 { margin: 3px 0 0; }
.customer-chart-heading small {
  color: var(--customer-blue);
  font-size: 10px;
  font-weight: 800;
}

.customer-chart-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--customer-muted);
  font-size: 11px;
}

.customer-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.customer-chart-legend span::before {
  content: "";
  width: 14px;
  height: 3px;
  border-radius: 3px;
  background: #0f9f8f;
}

.customer-chart-legend span[data-series="planned"]::before { background: #d97706; }

.customer-overview-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
  border: 1px solid var(--customer-line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--customer-surface);
}

.customer-overview-summary > div {
  min-width: 0;
  padding: 12px;
  display: grid;
  gap: 5px;
  border-right: 1px solid var(--customer-line);
}

.customer-overview-summary > div:last-child { border-right: 0; }
.customer-overview-summary small { color: var(--customer-muted); font-size: 11px; }
.customer-overview-summary b { overflow-wrap: anywhere; }

.customer-chart-canvas {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 250px;
  margin-top: 14px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--customer-line);
  border-radius: 8px;
  background: #fafafa;
}

.customer-chart-canvas-compact { min-height: 170px; }
.customer-chart-canvas svg { display: block; width: 100%; height: 100%; min-height: inherit; }
.customer-chart-empty {
  padding: 28px 16px;
  color: var(--customer-muted);
  text-align: center;
}

.customer-chart-grid-line { stroke: #e4e4e7; stroke-width: 1; }
.customer-chart-axis-label {
  fill: #71717a;
  font-family: "Microsoft YaHei UI", "PingFang SC", sans-serif;
  font-size: 11px;
}
.customer-chart-line-actual,
.customer-chart-line-planned,
.customer-chart-line-inventory,
.customer-chart-line-planned-inventory {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.customer-chart-line-actual { stroke: #0f9f8f; }
.customer-chart-line-planned { stroke: #d97706; stroke-dasharray: 8 6; }
.customer-chart-line-inventory { stroke: #2563eb; }
.customer-chart-line-planned-inventory { stroke: #8b5cf6; stroke-dasharray: 8 6; }
.customer-chart-point { stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; }

.customer-forecast-heading {
  margin-top: 18px;
  color: var(--customer-muted);
  font-size: 12px;
}
.customer-forecast-heading b { color: var(--customer-ink); text-align: right; overflow-wrap: anywhere; }

.customer-pool-strip {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)) 1.25fr;
  min-width: 0;
  margin-top: 14px;
  border: 1px solid var(--customer-line);
  border-left: 3px solid #a1a1aa;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.customer-pool-strip.is-enabled { border-left-color: #22c55e; }
.customer-pool-strip.is-retrying { border-left-color: #d97706; }
.customer-pool-strip.is-error { border-left-color: #dc2626; }
.customer-pool-strip > div {
  min-width: 0;
  padding: 14px;
  display: grid;
  align-content: center;
  gap: 5px;
  border-right: 1px solid var(--customer-line);
}
.customer-pool-strip > div:last-child { border-right: 0; }
.customer-pool-strip small { color: var(--customer-muted); font-size: 11px; }
.customer-pool-strip b { font-size: 13px; overflow-wrap: anywhere; }
.customer-pool-strip-state { grid-template-columns: auto minmax(0, 1fr); align-items: center; }
.customer-pool-strip-state > span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #a1a1aa;
}
.customer-pool-strip.is-enabled .customer-pool-strip-state > span { background: #22c55e; }
.customer-pool-strip.is-retrying .customer-pool-strip-state > span { background: #d97706; }
.customer-pool-strip.is-error .customer-pool-strip-state > span { background: #dc2626; }

.customer-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.customer-section-heading > div { min-width: 0; }
.customer-section-heading small {
  color: var(--customer-blue);
  font-size: 10px;
  font-weight: 800;
}
.customer-section-heading h3 { margin: 3px 0 0; }
.customer-section-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
  color: var(--customer-muted);
  font-size: 11px;
}
.customer-section-actions span { overflow-wrap: anywhere; }
.customer-compact-button {
  min-height: 36px;
  padding: 7px 11px;
  font-size: 12px;
}

.customer-inventory-section {
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid var(--customer-line);
  border-radius: 8px;
  background: #fff;
}

.customer-inventory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
  margin-top: 14px;
}

.customer-inventory-item {
  min-width: 0;
  min-height: 104px;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--customer-line);
  border-left: 3px solid #16a34a;
  border-radius: 8px;
  background: var(--customer-surface);
}
.customer-inventory-item.is-error { border-left-color: #dc2626; }
.customer-inventory-item > div { min-width: 0; }
.customer-inventory-item > div:first-child { display: grid; gap: 5px; }
.customer-inventory-item strong,
.customer-inventory-item small { overflow-wrap: anywhere; }
.customer-inventory-item small { color: var(--customer-muted); }
.customer-inventory-channel {
  color: var(--customer-blue);
  font-size: 11px;
  font-weight: 800;
}
.customer-inventory-value {
  flex: 0 0 auto;
  display: grid;
  gap: 3px;
  text-align: right;
}
.customer-inventory-value b { font-size: 24px; line-height: 1.15; }
.customer-inventory-value small { font-size: 11px; }
.customer-section-note { margin-top: 11px !important; }

.customer-skeleton {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--customer-line);
  border-radius: 8px;
  background: #f4f4f5;
}
.customer-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.85) 48%, transparent 100%);
  transform: translateX(-100%);
  animation: customer-skeleton-sweep 1.15s ease-in-out infinite;
}
.customer-inventory-skeleton { min-height: 104px; }
.customer-record-skeleton { min-height: 92px; }
@keyframes customer-skeleton-sweep { to { transform: translateX(100%); } }

.customer-empty-state {
  grid-column: 1 / -1;
  min-height: 92px;
  padding: 18px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--customer-line);
  border-radius: 8px;
  color: var(--customer-muted);
  background: #fafafa;
  text-align: center;
}
.customer-empty-state.is-error {
  border-color: var(--customer-danger-line);
  color: var(--customer-danger);
  background: var(--customer-danger-surface);
}

.customer-grid-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.customer-grid-form label { min-width: 0; }
.customer-span-2 { grid-column: 1 / -1; }

.customer-form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.customer-form-actions .customer-primary, .customer-form-actions .customer-secondary {
  flex: 0 0 auto;
  white-space: nowrap;
}

.customer-list { display: grid; gap: 9px; min-width: 0; }
.customer-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--customer-line);
  border-radius: 8px;
  background: var(--customer-surface);
}

.customer-list-item > * { min-width: 0; }
.customer-list-item > .customer-form-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.customer-list-item strong { display: block; overflow-wrap: anywhere; }
.customer-list-item small {
  display: block;
  color: var(--customer-muted);
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.customer-list-item.is-selected {
  border-color: #93c5fd;
  background: var(--customer-blue-soft);
}

.customer-delivery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.customer-segmented {
  width: fit-content;
  max-width: 100%;
  padding: 4px;
  display: grid;
  grid-template-columns: repeat(2, minmax(112px, 1fr));
  gap: 4px;
  border: 1px solid var(--customer-line);
  border-radius: 8px;
  background: var(--customer-surface);
}
.customer-segmented button {
  min-height: 38px;
  padding: 7px 12px;
  border: 0;
  border-radius: 6px;
  color: var(--customer-muted);
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}
.customer-segmented button.is-active {
  color: var(--customer-ink);
  background: #fff;
  box-shadow: 0 1px 3px rgba(24, 24, 27, .09);
}
.customer-segmented button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .22);
  outline-offset: 1px;
}

.customer-filter-grid {
  display: grid;
  grid-template-columns: minmax(170px, 1.35fr) repeat(4, minmax(128px, 1fr)) auto;
  gap: 10px;
  align-items: end;
  min-width: 0;
  margin-bottom: 16px;
  padding: 13px;
  border: 1px solid var(--customer-line);
  border-radius: 8px;
  background: var(--customer-surface);
}
.customer-filter-grid label {
  min-width: 0;
  display: grid;
  gap: 6px;
  color: #3f3f46;
  font-size: 12px;
  font-weight: 700;
}
.customer-filter-grid input,
.customer-filter-grid select {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--customer-line);
  border-radius: 7px;
  color: var(--customer-ink);
  background: #fff;
}
.customer-filter-grid input:focus,
.customer-filter-grid select:focus {
  border-color: #93c5fd;
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .09);
}
.customer-filter-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}
.customer-filter-actions .customer-primary,
.customer-filter-actions .customer-secondary {
  min-height: 40px;
  padding: 7px 11px;
  white-space: nowrap;
}

.customer-delivery-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.customer-delivery-item {
  min-width: 0;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--customer-line);
  border-radius: 8px;
  background: #fff;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}
.customer-delivery-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 7px 22px rgba(24, 24, 27, .06);
  transform: translateY(-1px);
}
.customer-record-body { min-width: 0; display: grid; gap: 8px; }
.customer-record-head {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex-wrap: wrap;
}
.customer-record-head strong { overflow-wrap: anywhere; }
.customer-record-badge {
  flex: 0 0 auto;
  padding: 3px 7px;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  color: #1e40af;
  background: #eff6ff;
  font-size: 11px;
  font-weight: 800;
}
.customer-record-badge.is-active,
.customer-record-badge.is-completed {
  border-color: var(--customer-success-line);
  color: var(--customer-success);
  background: var(--customer-success-surface);
}
.customer-record-badge.is-unauthorized,
.customer-record-badge.is-error,
.customer-record-badge.is-failed {
  border-color: var(--customer-danger-line);
  color: var(--customer-danger);
  background: var(--customer-danger-surface);
}
.customer-record-badge.is-waiting_inventory,
.customer-record-badge.is-partial,
.customer-record-badge.is-uncertain {
  border-color: #fde68a;
  color: #92400e;
  background: #fffbeb;
}
.customer-record-badge.is-revoked,
.customer-record-badge.is-expired,
.customer-record-badge.is-disabled,
.customer-record-badge.is-replaced { color: #52525b; background: #f4f4f5; }
.customer-record-facts {
  display: flex;
  align-items: center;
  gap: 4px 12px;
  min-width: 0;
  flex-wrap: wrap;
  color: var(--customer-muted);
  font-size: 12px;
}
.customer-record-facts span { overflow-wrap: anywhere; }
.customer-record-error,
.customer-replacement-chain {
  margin: 0 !important;
  padding: 8px 10px;
  border-radius: 7px;
}
.customer-record-error { color: var(--customer-danger) !important; background: var(--customer-danger-surface); }
.customer-replacement-chain { color: #1e40af !important; background: #eff6ff; }
.customer-record-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}
.customer-pagination { margin-top: 14px; display: flex; justify-content: center; }

.customer-token-form {
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--customer-line);
  border-radius: 8px;
  background: var(--customer-surface);
}
.customer-secret-reveal {
  margin-bottom: 16px;
  padding: 14px;
  display: grid;
  gap: 12px;
  border: 1px solid #fde68a;
  border-radius: 8px;
  color: #713f12;
  background: #fffbeb;
}
.customer-secret-reveal p { color: #854d0e; }
.customer-secret-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  align-items: stretch;
}
.customer-secret-row code {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #fde68a;
  border-radius: 7px;
  color: #422006;
  background: #fff;
  overflow-wrap: anywhere;
  user-select: all;
}
.customer-token-list-panel { margin-top: 0; }
.customer-token-list-panel > .customer-section-heading { margin-bottom: 12px; }
.customer-token-item .customer-record-head { margin-bottom: 2px; }

.customer-hub-copy { display: grid; gap: 5px; }
.customer-hub-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.customer-hub-badges span {
  max-width: 100%;
  padding: 3px 7px;
  border: 1px solid var(--customer-line);
  border-radius: 6px;
  color: var(--customer-muted);
  background: #fff;
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.customer-hub-badges .is-configured {
  border-color: #bbf7d0;
  color: #166534;
  background: #f0fdf4;
}
.customer-hub-badges .is-missing {
  border-color: #fde68a;
  color: #92400e;
  background: #fffbeb;
}

.customer-subpanel { padding: 16px; margin-top: 16px; }
.customer-hub-groups-panel {
  scroll-margin-top: 18px;
  outline: none;
}
.customer-hub-groups-panel:focus-visible {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.customer-hub-groups-status {
  margin: 0 0 14px !important;
  padding: 10px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  color: #1e40af !important;
  background: #eff6ff;
}
.customer-hub-groups-status.is-success {
  border-color: var(--customer-success-line);
  color: var(--customer-success) !important;
  background: var(--customer-success-surface);
}
.customer-hub-groups-status.is-error {
  border-color: var(--customer-danger-line);
  color: var(--customer-danger) !important;
  background: var(--customer-danger-surface);
}
.customer-hub-group-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}
.customer-hub-group-fieldset {
  min-width: 0;
  margin: 0;
  padding: 13px;
  border: 1px solid var(--customer-line);
  border-radius: 8px;
  background: var(--customer-surface);
}
.customer-hub-group-fieldset legend {
  padding: 0 6px;
  color: var(--customer-ink);
  font-size: 13px;
  font-weight: 800;
}
.customer-hub-group-fieldset > p { margin-bottom: 10px; }
.customer-hub-group-fieldset .customer-check-grid { grid-template-columns: 1fr; }
.customer-group-empty {
  grid-column: 1 / -1;
  min-height: 44px;
  padding: 11px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--customer-line);
  border-radius: 8px;
  color: var(--customer-muted) !important;
  background: #fff;
  text-align: center;
}
.customer-group-empty.is-error {
  border-color: var(--customer-danger-line);
  color: var(--customer-danger) !important;
  background: var(--customer-danger-surface);
}
.customer-check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.customer-check-grid label,
.customer-check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #3f3f46;
}

.customer-grid-form .customer-check-label { display: flex; }
.customer-grid-form .customer-check-label input {
  width: 18px;
  min-height: 18px;
  flex: 0 0 18px;
}

.customer-check-grid label {
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--customer-line);
  border-radius: 8px;
  background: var(--customer-surface);
  overflow-wrap: anywhere;
}

.customer-page input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  flex: 0 0 18px;
  border: 1px solid #a1a1aa;
  border-radius: 5px;
  background: #fff;
  box-shadow: none;
  cursor: pointer;
}

.customer-page input[type="checkbox"]::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0);
  transform-origin: center;
  transition: transform 120ms ease;
}

.customer-page input[type="checkbox"]:checked {
  border-color: var(--customer-blue);
  background: var(--customer-blue);
}

.customer-page input[type="checkbox"]:checked::after {
  transform: rotate(-45deg) scale(1);
}

.customer-page input[type="checkbox"]:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.22);
  outline-offset: 2px;
}

.customer-page input[type="checkbox"]:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.customer-model-field {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.customer-field-label { color: #3f3f46; font-size: 13px; font-weight: 700; }
.customer-model-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.customer-model-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--customer-line);
  border-radius: 8px;
  color: #3f3f46;
  background: var(--customer-surface);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.customer-model-grid input { width: 18px; min-height: 18px; }
.customer-pool-targets {
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--customer-line);
  border-radius: 8px;
}

.customer-pool-targets legend {
  padding: 0 7px;
  color: #3f3f46;
  font-size: 13px;
  font-weight: 800;
}

.customer-pool-target-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.customer-pool-target-toolbar small { color: var(--customer-muted); text-align: right; }
.customer-grid-form .customer-pool-all,
.customer-grid-form .customer-pool-target-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #3f3f46;
  font-size: 13px;
  font-weight: 800;
}

.customer-pool-all input,
.customer-pool-target-choice input {
  width: 18px;
  min-height: 18px;
  flex: 0 0 18px;
}

.customer-pool-target-list { display: grid; gap: 8px; min-width: 0; }
.customer-pool-target-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .8fr);
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--customer-line);
  border-radius: 8px;
  background: var(--customer-surface);
}

.customer-pool-target-row.is-unavailable { opacity: 0.62; }
.customer-pool-target-choice > span { display: grid; gap: 3px; min-width: 0; }
.customer-pool-target-choice strong,
.customer-pool-target-choice small { overflow-wrap: anywhere; }
.customer-pool-target-choice small { color: var(--customer-muted); font-weight: 500; }
.customer-pool-proxy-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.customer-pool-proxy-field > span { color: var(--customer-muted); font-size: 12px; white-space: nowrap; }
.customer-pool-proxy-field select { min-width: 0; }
.customer-pool-targets > p { margin-top: 10px; }

.customer-inline-form {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
}
.customer-inline-form label { min-width: 180px; }
.customer-inline-form .customer-grow { flex: 1 1 280px; }
.customer-wallet-summary {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin: 8px 0 20px;
  flex-wrap: wrap;
}
.customer-wallet-summary strong { font-size: 42px; overflow-wrap: anywhere; }
.customer-wallet-summary span { color: var(--customer-muted); }

.customer-recharge-result {
  margin: 16px 0;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border: 1px solid var(--customer-success-line);
  border-radius: 8px;
  color: #20332a;
  background: var(--customer-success-surface);
}
.customer-recharge-title,
.customer-recharge-amounts { flex: 1 0 100%; }
.customer-recharge-amounts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 12px 0;
  border-block: 1px solid var(--customer-success-line);
}
.customer-recharge-amounts > div { display: grid; gap: 4px; min-width: 0; }
.customer-recharge-amounts dt { color: var(--customer-muted); font-size: 12px; }
.customer-recharge-amounts dd {
  margin: 0;
  color: var(--customer-ink);
  font-size: 18px;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.customer-recharge-message { flex: 1 1 240px; line-height: 1.55; overflow-wrap: anywhere; }
.customer-recharge-result a { color: var(--customer-blue); font-weight: 800; }
.customer-qr {
  width: 180px;
  flex: 0 0 180px;
  padding: 8px;
  border: 1px solid var(--customer-line);
  border-radius: 8px;
  color: #111;
  background: #fff;
}
.customer-qr svg { display: block; width: 100%; height: auto; }

@media (max-width: 720px) {
  .customer-shell { width: min(100% - 20px, 1180px); padding-top: 22px; }
  .customer-topbar { align-items: flex-start; flex-direction: column; }
  .customer-top-actions { width: 100%; }
  #customerIdentity { flex: 1 1 140px; }
  .customer-metrics { grid-template-columns: 1fr; }
  .customer-overview-workspace { grid-template-columns: minmax(0, 1fr); }
  .customer-monitor-scope .customer-section-heading { align-items: stretch; flex-direction: column; }
  .customer-monitor-view { width: 100%; }
  .customer-monitor-editor { align-items: stretch; flex-direction: column; }
  .customer-monitor-editor > .customer-secondary { align-self: flex-start; }
  .customer-monitor-hub-list { grid-template-columns: 1fr; }
  .customer-hub-analytics-metrics { grid-template-columns: 1fr 1fr; }
  .customer-hub-analytics-metric:nth-child(3n) { border-right: 1px solid var(--customer-line); }
  .customer-hub-analytics-metric:nth-child(2n) { border-right: 0; }
  .customer-hub-analytics-metric:nth-child(-n+4) { border-bottom: 1px solid var(--customer-line); }
  .customer-hub-auto-pool { grid-template-columns: 1fr 1fr; }
  .customer-hub-auto-pool > div { border-bottom: 1px solid var(--customer-line); }
  .customer-hub-auto-pool > div:nth-child(2n) { border-right: 0; }
  .customer-hub-auto-pool > div:last-child { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
  .customer-hub-chart-grid { grid-template-columns: 1fr; }
  .customer-single-hub-telemetry { grid-template-columns: 1fr 1fr; }
  .customer-single-hub-telemetry > div { border-bottom: 1px solid var(--customer-line); }
  .customer-single-hub-telemetry > div:nth-child(3n) { border-right: 1px solid var(--customer-line); }
  .customer-single-hub-telemetry > div:nth-child(2n) { border-right: 0; }
  .customer-single-hub-telemetry > div:nth-last-child(-n+2) { border-bottom: 0; }
  .customer-status-grid { grid-template-columns: 1fr; }
  .customer-grid-form { grid-template-columns: 1fr; }
  .customer-span-2 { grid-column: auto; }
  .customer-check-grid,
  .customer-model-grid { grid-template-columns: 1fr 1fr; }
  .customer-panel { padding: 16px; }
  .customer-panel-heading { flex-direction: column; align-items: stretch; }
  .customer-panel-heading .customer-secondary { align-self: flex-start; }
  .customer-list-item { flex-direction: column; align-items: stretch; }
  .customer-list-item > .customer-form-actions { width: 100%; }
  .customer-hub-group-columns { grid-template-columns: 1fr; }
  .customer-pool-target-row { grid-template-columns: 1fr; gap: 10px; }
  .customer-pool-proxy-field { padding-left: 26px; }
  .customer-recharge-amounts { grid-template-columns: 1fr; }
  .customer-chart-heading,
  .customer-forecast-heading { align-items: flex-start; flex-direction: column; }
  .customer-overview-summary { grid-template-columns: 1fr 1fr; }
  .customer-overview-summary > div:nth-child(2) { border-right: 0; }
  .customer-overview-summary > div:nth-child(-n+2) { border-bottom: 1px solid var(--customer-line); }
  .customer-chart-canvas { min-height: 220px; }
  .customer-chart-canvas-compact { min-height: 160px; }
  .customer-pool-strip { grid-template-columns: 1fr; }
  .customer-pool-strip > div { border-right: 0; border-bottom: 1px solid var(--customer-line); }
  .customer-pool-strip > div:last-child { border-bottom: 0; }
  .customer-inventory-grid { grid-template-columns: 1fr; }
  .customer-delivery-toolbar { align-items: flex-start; flex-direction: column; }
  .customer-filter-grid { grid-template-columns: 1fr 1fr; }
  .customer-filter-actions { grid-column: 1 / -1; }
  .customer-delivery-item { align-items: stretch; flex-direction: column; }
  .customer-record-actions { justify-content: flex-start; }
}

@media (max-width: 980px) and (min-width: 721px) {
  .customer-metrics { grid-template-columns: 1fr 1fr; }
  .customer-pool-strip { grid-template-columns: 1fr 1fr; }
  .customer-pool-strip > div { border-bottom: 1px solid var(--customer-line); }
  .customer-pool-strip > div:nth-child(2n) { border-right: 0; }
  .customer-pool-strip > div:last-child { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
}

@media (max-width: 480px) {
  .customer-auth-panel { padding: 24px 18px; }
  .customer-auth-panel h1,
  .customer-topbar h1 { font-size: 28px; }
  .customer-code-row { grid-template-columns: 1fr; }
  .customer-check-grid,
  .customer-model-grid { grid-template-columns: 1fr; }
  .customer-pool-target-toolbar { align-items: flex-start; flex-direction: column; }
  .customer-pool-target-toolbar small { text-align: left; }
  .customer-pool-proxy-field { grid-template-columns: 1fr; }
  .customer-inline-form > button { width: 100%; }
  .customer-overview-summary { grid-template-columns: 1fr; }
  .customer-overview-summary > div,
  .customer-overview-summary > div:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--customer-line); }
  .customer-overview-summary > div:last-child { border-bottom: 0; }
  .customer-chart-section { padding: 14px 10px; }
  .customer-monitor-scope { padding: 14px 12px; }
  .customer-monitor-view { grid-template-columns: 1fr; }
  .customer-monitor-editor > .customer-secondary { width: 100%; }
  .customer-hub-analytics-heading { padding: 14px 12px; }
  .customer-hub-analytics-metrics { grid-template-columns: 1fr; }
  .customer-hub-analytics-metric,
  .customer-hub-analytics-metric:nth-child(2),
  .customer-hub-analytics-metric:nth-child(3n) { border-right: 0; border-bottom: 1px solid var(--customer-line); }
  .customer-hub-analytics-metric:last-child { border-bottom: 0; }
  .customer-hub-auto-pool { grid-template-columns: 1fr; }
  .customer-hub-auto-pool > div,
  .customer-hub-auto-pool > div:nth-child(2n),
  .customer-hub-auto-pool > div:last-child { grid-column: auto; border-right: 0; border-bottom: 1px solid var(--customer-line); }
  .customer-hub-auto-pool > div:last-child { border-bottom: 0; }
  .customer-hub-chart-grid { padding: 14px 12px; }
  .customer-chart-legend { width: 100%; justify-content: space-between; }
  .customer-section-heading { align-items: flex-start; flex-direction: column; }
  .customer-section-actions { width: 100%; justify-content: space-between; }
  .customer-inventory-item { align-items: flex-start; }
  .customer-inventory-value b { font-size: 20px; }
  .customer-filter-grid { grid-template-columns: 1fr; }
  .customer-filter-actions { grid-column: auto; }
  .customer-filter-actions > * { flex: 1 1 0; }
  .customer-segmented { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-secret-row { grid-template-columns: 1fr; }
  .customer-secret-row .customer-secondary { width: 100%; }
}

@media (max-width: 390px) {
  .customer-single-hub-telemetry { grid-template-columns: 1fr; }
  .customer-single-hub-telemetry > div,
  .customer-single-hub-telemetry > div:nth-child(2n),
  .customer-single-hub-telemetry > div:nth-child(3n),
  .customer-single-hub-telemetry > div:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--customer-line); }
  .customer-single-hub-telemetry > div:last-child { border-bottom: 0; }
  .customer-hub-analytics-heading { align-items: flex-start; flex-direction: column; }
  .customer-monitor-badge { white-space: normal; }
  .customer-hub-chart > header { align-items: flex-start; flex-direction: column; }
  .customer-hub-chart > header small { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .customer-page *,
  .customer-page *::before,
  .customer-page *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
