/* ============================================================
   XOOLAR WEB — desktop layout system
   Builds on app/theme.css tokens. Tesla-inspired: full-bleed,
   generous whitespace, large type, restrained chrome.
   ============================================================ */

.web body, body.web { background: var(--surface); }

.web-root {
  min-height: 100vh; background: var(--surface); color: var(--ink);
  font-family: 'Manrope', system-ui, sans-serif;
}
.web-root.tesla-land-root,
.web-root.tesla-mp-root { background: #000; color: #fff; }

/* internal app pages — dashboard, ingest, portals (not Powerwall marketing) */
.app-flow-root {
  background: var(--surface);
  color: var(--ink);
}
.app-flow-root .dash-shell { background: var(--surface); }
.app-flow-root .dash-shell.dash-shell-tesla { background: #000; }
.app-flow-root .dash-main { background: var(--bg); color: var(--ink); }
.app-flow-root .dash-main.dash-main-tesla { background: #000; color: #fff; }

/* Quiet dashboard palette — every tab, every role. Navy / ink / gray, not a color riot. */
.app-flow-root,
.app-flow-root .dash-main {
  --primary: #0a1628;
  --primary-d: #0a1628;
  --primary-2: #243044;
  --sky: #5a6178;
  --violet: #243044;
  --eco: #0a1628;
  --eco-d: #0a1628;
  --solar: #0a1628;
  --primary-tint: var(--surface-2);
  --eco-tint: var(--surface-2);
  --violet-tint: var(--surface-2);
  --solar-tint: var(--surface-2);
  --sh-primary: 0 8px 22px rgba(10, 22, 40, 0.12);
  --mp-accent: #0a1628;
}
.app-flow-root .cust-dash-hero-navy .hero-glow-b {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
}
.app-flow-root .dash-main .cust-mp-product-cat,
.app-flow-root .dash-main .cust-mp-product-xq,
.app-flow-root .dash-main .cust-mp-product-stock {
  color: var(--faint);
}
.app-flow-root .dash-main .wbtn-primary {
  background: #0a1628;
  color: #fff;
  box-shadow: none;
}
.app-flow-root .dash-main .wbtn-primary:hover {
  background: #152238;
  box-shadow: none;
  transform: none;
}
.app-flow-root .dash-main .cust-mp-product-btn {
  background: var(--surface-2);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}
.app-flow-root .dash-main .cust-mp-product-btn:hover {
  background: var(--surface-3);
  border-color: var(--line-2);
  box-shadow: none;
  transform: none;
}
.app-flow-root .dash-main .tesla-map-pin-core {
  background: #0a1628;
  box-shadow: 0 0 0 2px rgba(10, 22, 40, 0.12), 0 4px 12px rgba(20, 26, 46, 0.18);
}
.app-flow-root .dash-main .tesla-map-pin-ring,
.app-flow-root .dash-main .tesla-map-pin-ripple {
  border-color: rgba(10, 22, 40, 0.28);
}
.app-flow-root .dash-main .tesla-map-pin.warn .tesla-map-pin-core,
.app-flow-root .dash-main .tesla-map-pin.alert .tesla-map-pin-core {
  background: #0a1628;
  box-shadow: 0 4px 12px rgba(20, 26, 46, 0.18);
}
.app-flow-root .dash-main .fleet-map-live-pill.on .fleet-map-live-dot,
.app-flow-root .dash-main .fleet-map-loading-pulse {
  background: #0a1628;
  border-color: rgba(10, 22, 40, 0.25);
  animation: none;
}
.app-flow-root .wcard-hover:hover {
  border-color: var(--line-2);
}
.app-flow-root .dash-main .charging-tag.vehicle,
.app-flow-root .dash-main .charging-tag.powerbank,
.app-flow-root .dash-main .charging-tag.swap,
.app-flow-root .dash-main .charging-tag.rent {
  color: var(--ink);
  border-color: var(--line);
}
.app-flow-root .dash-side { background: var(--navy); }
.app-flow-root .wcard {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
.app-flow-root .wcard-hover:hover {
  border-color: var(--primary);
  box-shadow: var(--sh-sm);
}

/* dashboard premium polish — motion & depth, same palette */
.app-flow-root.app-flow-root-tesla {
  background: #000;
  color: #fff;
}

/* Carbon + shop — dark bridge when wrapped in AppFlowRoot tesla */
.app-flow-root-tesla .carbon-page {
  min-height: 100vh;
  background: #000;
}
.app-flow-root-tesla .carbon-header {
  background: rgba(0, 0, 0, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
.app-flow-root-tesla .carbon-title,
.app-flow-root-tesla .carbon-kicker {
  color: #fff;
}
.app-flow-root-tesla .carbon-lead,
.app-flow-root-tesla .carbon-meta-row {
  color: rgba(255, 255, 255, 0.55);
}
.app-flow-root-tesla .carbon-tab {
  color: rgba(255, 255, 255, 0.55);
}
.app-flow-root-tesla .carbon-tab.active {
  color: #fff;
  border-color: var(--eco);
}
.app-flow-root-tesla .carbon-signin {
  color: rgba(255, 255, 255, 0.7);
}

.auth-next-banner {
  margin: 12px 0 0;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(62, 106, 225, 0.18);
  border: 1px solid rgba(62, 106, 225, 0.35);
}
.auth-next-banner strong {
  color: #fff;
  font-weight: 800;
}

.app-flow-root .dash-main-premium { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

/* Dashboard inbox — subtle polish, same light palette */
.app-flow-root .dash-main-premium .wcard {
  border-radius: var(--r-md, 12px);
  box-shadow: 0 1px 2px rgba(11, 16, 32, 0.04);
}
.app-flow-root .dash-main-premium .dash-header-block {
  padding-bottom: 4px;
}
.app-flow-root .dash-main-premium .dash-tab-panel {
  animation: dashIn 0.22s var(--ease, ease) both;
}
@keyframes dashIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* customer dashboard — Tesla flow (aligned with marketplace?mode=customer) */
.dash-shell-tesla { background: #000; }
.dash-main-tesla {
  background: #000;
  color: #f4f4f5;
  color-scheme: dark;
  --ink: #f4f4f5;
  --muted: rgba(255, 255, 255, 0.62);
  --faint: rgba(255, 255, 255, 0.4);
  --bg: #000000;
  --surface: #111113;
  --surface-2: #18181b;
  --surface-3: #232328;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --primary-tint: rgba(255, 255, 255, 0.08);
  --primary-d: #f4f4f5;
  --eco-tint: rgba(61, 214, 140, 0.14);
  --eco-d: #5ee0a8;
  --solar-tint: rgba(245, 197, 66, 0.12);
  --violet-tint: rgba(167, 139, 250, 0.14);
  --pill-danger-bg: rgba(229, 72, 77, 0.16);
  --pill-danger-fg: #ffb4b6;
}
.dash-main-tesla .tesla-svc-page {
  margin: 0;
  padding: 0 0 24px;
}
.dash-main-tesla .wcard {
  background: #111113;
  border-color: rgba(255, 255, 255, 0.08);
  color: #f4f4f5;
  box-shadow: none;
}
.dash-main-tesla .wcard-hover:hover {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}
.dash-main-tesla .display-md,
.dash-main-tesla .display-lg,
.dash-main-tesla h1,
.dash-main-tesla h2,
.dash-main-tesla h3 {
  color: #fff;
}
.dash-shell-tesla .dash-mheader {
  background: #000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.dash-main-tesla .dash-sync-bar {
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}
.dash-main-tesla .cust-dash-live .dash-sync-bar .dash-sync-pill,
.dash-main-tesla .dash-header-block .dash-sync-pill {
  overflow: visible;
  text-overflow: unset;
  max-width: none;
}
.dash-main-tesla .dash-sync-pill {
  background: rgba(0, 212, 106, 0.12);
  border-color: rgba(0, 212, 106, 0.25);
  color: #8ff0c4;
}
.tesla-dash-hero-live {
  padding-bottom: 0;
}
.tesla-dash-hero-live .tesla-svc-stat-row {
  margin-top: 28px;
}
.cust-dash-quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cust-dash-quick-tesla {
  height: 42px !important;
  padding: 0 18px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
}
.dash-main-tesla .cust-dash-status {
  background: rgba(8, 12, 22, 0.45);
  border-color: rgba(255, 255, 255, 0.08);
}
.dash-main-tesla .cust-dash-hero-navy {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}
.dash-main-tesla .cust-dash-battery-card {
  background: rgba(8, 12, 22, 0.5);
}
.dash-main-tesla .device-system-card {
  background: #111113;
  border-color: rgba(255, 255, 255, 0.1);
}
.dash-main-tesla .device-system-thumb {
  background: rgba(126, 180, 255, 0.08);
  border-color: rgba(126, 180, 255, 0.22);
}
.dash-main-tesla .device-system-card.selected {
  border-color: var(--tesla-blue, #3e6ae1);
  box-shadow: 0 0 0 3px rgba(62, 106, 225, 0.2);
}
.dash-main-tesla .wbtn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.dash-main-tesla .chip {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.75);
}
@media (max-width: 600px) {
  .cust-dash-quick-nav { display: grid; grid-template-columns: repeat(2, 1fr); }
  .cust-dash-quick-tesla { justify-content: center; width: 100%; }
}

/* page chrome shared by light and Tesla dashboards */
.dash-page-kicker {
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 700;
}
.dash-page-title {
  font-size: clamp(24px, 5vw, 30px);
  margin-top: 4px;
}
.cust-dash-feature {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--navy);
  color: #fff;
  padding: 28px;
}
.cust-dash-alert {
  background: #fdecec;
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: var(--danger);
  border-radius: 12px;
  padding: 16px;
}

/* Tesla-graded customer tabs — black canvas, quiet panels, light type */
.app-flow-root .dash-main.dash-main-tesla {
  background: #000;
}
.app-flow-root .dash-main.dash-main-tesla .wcard {
  background: #111113;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: none;
}
.app-flow-root .dash-main-tesla .dash-premium-card:hover,
.app-flow-root .dash-main-tesla .wcard-hover:hover {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
  transform: none;
}
.dash-main-tesla .dash-header-block { margin-bottom: 28px !important; }
.dash-main-tesla .dash-page-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}
.dash-main-tesla .dash-page-title {
  font-weight: 500;
  letter-spacing: -0.045em;
  font-size: clamp(34px, 4vw, 48px);
  margin-top: 8px;
  color: #fff;
}
.dash-main-tesla .display-lg,
.dash-main-tesla .display-md {
  font-weight: 500;
  letter-spacing: -0.04em;
}
.dash-main-tesla .cust-academy-grade-title,
.dash-main-tesla .cust-academy-section-title,
.dash-main-tesla .cust-impact-grade {
  font-weight: 600;
}
.dash-main-tesla .wbtn {
  height: 44px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: none;
}
.dash-main-tesla .wbtn-primary {
  background: #fff;
  color: #0a0a0a;
}
.dash-main-tesla .wbtn-primary:hover { background: #e7e7e7; }
.dash-main-tesla .winput {
  background: #0a0a0a;
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.dash-main-tesla .cust-dash-feature,
.dash-main-tesla .cust-dash-hero-navy,
.dash-main-tesla .cust-impact-hero,
.dash-main-tesla .cust-academy .energy-hub-hero.cust-academy-hero {
  background: linear-gradient(180deg, #17171a 0%, #0e0e10 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
  color: #fff;
}
.dash-main-tesla .cust-dash-hero-navy .display-lg,
.dash-main-tesla .cust-dash-feature .display-lg {
  font-weight: 500;
}
.dash-main-tesla .cust-dash-battery-card,
.dash-main-tesla .cust-dash-status,
.dash-main-tesla .cust-impact-grade {
  background: #111113;
}
.dash-main-tesla .cust-dash-alert {
  background: rgba(229, 72, 77, 0.12);
  border-color: rgba(229, 72, 77, 0.35);
  color: #ffb4b6;
}
.dash-main-tesla .live-forecast-weather {
  background: linear-gradient(180deg, #141418 0%, #0e0e10 100%);
  border-color: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.dash-main-tesla .live-forecast-cloud {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 12px 4px 0 rgba(255, 255, 255, 0.06);
}
.dash-main-tesla .live-forecast-insight {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
}
.dash-main-tesla .forecast-card {
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(8px);
}
.dash-main-tesla .cust-wallet-preset.active {
  background: #fff;
  color: #0a0a0a;
  border-color: #fff;
}
.dash-main-tesla .dash-premium-chip {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.78);
  border-color: rgba(255, 255, 255, 0.1);
}
.dash-shell-tesla .dash-side {
  background: #000;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.app-flow-root .dash-side .dash-navitem {
  transition: background 0.22s var(--ease), color 0.22s var(--ease), transform 0.22s var(--ease);
}
.app-flow-root .dash-side .dash-navitem:active { transform: scale(0.98); }
.app-flow-root .dash-mtab { transition: background 0.22s var(--ease), color 0.22s var(--ease); }

@keyframes dashTabEnter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.app-flow-root .dash-tab-enter { animation: dashTabEnter 0.42s var(--ease) both; }

.app-flow-root .dash-stagger > * {
  animation: dashTabEnter 0.48s var(--ease) both;
}
.app-flow-root .dash-stagger > *:nth-child(1) { animation-delay: 0ms; }
.app-flow-root .dash-stagger > *:nth-child(2) { animation-delay: 45ms; }
.app-flow-root .dash-stagger > *:nth-child(3) { animation-delay: 90ms; }
.app-flow-root .dash-stagger > *:nth-child(4) { animation-delay: 135ms; }
.app-flow-root .dash-stagger > *:nth-child(5) { animation-delay: 180ms; }
.app-flow-root .dash-stagger > *:nth-child(6) { animation-delay: 225ms; }
.app-flow-root .dash-stagger > *:nth-child(7) { animation-delay: 270ms; }
.app-flow-root .dash-stagger > *:nth-child(8) { animation-delay: 315ms; }

.app-flow-root .dash-premium-card {
  transition: border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.app-flow-root .dash-premium-card:hover {
  border-color: var(--line-2);
  box-shadow: var(--sh-sm);
}

.app-flow-root .dash-premium-chip {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9a7b1a;
  background: linear-gradient(135deg, #fff8e6, #f5ecd0);
  border: 1px solid rgba(201, 162, 39, 0.35);
}
.dash-gold-member-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d4a82a;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  cursor: default;
}
.dash-gold-member-badge.sidebar {
  margin-top: 10px;
  opacity: 0.88;
}
.dash-gold-member-badge.sidebar:hover,
.dash-gold-member-badge.sidebar:focus-visible {
  opacity: 1;
  color: #e8c04a;
}
button.dash-gold-member-badge.sidebar {
  cursor: pointer;
}
.dash-gold-member-badge.pill {
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  color: #9a7b1a;
  background: linear-gradient(135deg, #fff8e6, #f5ecd0);
  border: 1px solid rgba(201, 162, 39, 0.38);
}
.app-flow-root .portal-enterprise-chip {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
}
.app-flow-root .portal-api-pill {
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.app-flow-root .dash-sync-bar {
  margin-bottom: 18px;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-end;
}
.app-flow-root .dash-sync-pill {
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.app-flow-root .dash-sync-pill.offline {
  color: var(--muted);
  background: var(--surface-2);
  border-color: var(--line);
}
.app-flow-root .dash-sync-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #0a1628;
  animation: none;
}
.dash-wordmark-link {
  display: inline-block;
  text-decoration: none;
  border-radius: 8px;
  transition: opacity 0.2s var(--ease);
}
.dash-wordmark-link:hover { opacity: 0.82; }
.dash-wordmark-link:focus-visible {
  outline: 2px solid rgba(126, 180, 255, 0.55);
  outline-offset: 4px;
}

.app-flow-root .live-metric { display: inline; }
.app-flow-root .live-metric-unit { margin-left: 0.12em; }
.app-flow-root .live-metric--pulse {
  animation: liveMetricPulse 0.42s var(--ease);
}
@keyframes liveMetricPulse {
  0% { opacity: 0.72; }
  100% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .app-flow-root .dash-tab-enter,
  .app-flow-root .dash-stagger > * {
    animation: none !important;
  }
  .app-flow-root .dash-side .dash-navitem:active { transform: none; }
  .app-flow-root .live-metric--pulse { animation: none; }
  .app-flow-root .dash-main-premium { scroll-behavior: auto; }
}
.app-flow-root .mp-cart-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 45;
  display: flex; gap: 12px; padding: 16px 40px;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.app-flow-root .appliance-scanner-overlay {
  background: rgba(11, 16, 32, 0.72);
}
.app-flow-root .appliance-scanner-panel {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
  box-shadow: var(--sh-lg);
}
.app-flow-root .pw-flow .appliance-scanner-panel .display-md {
  color: var(--ink);
}
.app-flow-root .pw-flow .appliance-scanner-panel .chip {
  background: #eef2f7;
  border: 1px solid #d0dae6;
  color: #334155;
}
.app-flow-root .pw-flow .appliance-scanner-panel .chip:hover {
  background: #e2e8f0;
  border-color: #b8c5d4;
}
.app-flow-root .pw-flow .appliance-scanner-panel .chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.app-flow-root .pw-flow .appliance-scanner-panel .wcard {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: none;
}
.app-flow-root .pw-flow .appliance-scanner-panel .wcard-hover:hover {
  border-color: var(--primary);
  box-shadow: var(--sh-sm);
  transform: translateY(-2px);
}
.app-flow-root .pw-flow .appliance-scanner-panel .winput,
.app-flow-root .pw-flow .appliance-scanner-panel input.winput,
.app-flow-root .pw-flow .appliance-scanner-panel select.winput {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  color: var(--ink);
  height: 52px;
  padding: 0 16px;
}
.app-flow-root .pw-flow .appliance-scanner-panel .winput:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.12);
}
.app-flow-root .pw-flow .appliance-scanner-panel .winput::placeholder {
  color: var(--faint);
}
.app-flow-root .pw-flow .appliance-scanner-panel p,
.app-flow-root .pw-flow .appliance-scanner-panel label span {
  color: var(--muted);
}
.app-flow-root .pw-flow .appliance-scanner-panel .wcard [style*="color: var(--muted)"] {
  color: var(--muted) !important;
}
.appliance-scanner-option {
  padding: 14px;
  text-align: left;
  cursor: pointer;
  width: 100%;
  border: none;
  font: inherit;
}
.appliance-scanner-option-label { font-weight: 700; font-size: 15px; }
.appliance-scanner-option-watts { font-size: 13px; color: var(--muted); margin-top: 4px; }
.appliance-scanner-field-label { font-size: 12px; font-weight: 700; color: var(--muted); }
.app-flow-root .appliance-scanner-result {
  background: var(--surface-2);
  border: 1px solid var(--line);
}
@media (max-width: 720px) {
  .app-flow-root .mp-cart-bar { padding: 14px 16px; flex-direction: column; }
}

/* ---------- top nav ---------- */
.wnav {
  position: sticky; top: 0; z-index: 50; height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; transition: background .3s var(--ease), box-shadow .3s, border-color .3s;
}
.wnav.solid { background: rgba(255,255,255,.86); backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--line); }
.wnav.ondark { color: #fff; }
.wnav.ondark:not(.solid) { background: transparent; }
.wnav.ondark:not(.solid) .wnav-link { font-weight: 500; opacity: .7; letter-spacing: .01em; }
.wnav.ondark:not(.solid) .wnav-link:hover { opacity: 1; background: rgba(255,255,255,.08); }
.wnav-links { display: flex; align-items: center; gap: 6px; }
.wnav-link {
  background: none; border: none; cursor: pointer; font-family: 'Manrope'; font-weight: 600;
  font-size: 14.5px; padding: 9px 15px; border-radius: var(--r-pill); color: inherit;
  opacity: .82; transition: opacity .15s, background .15s;
}
.wnav-link:hover { opacity: 1; background: rgba(127,127,127,.1); }

/* ---------- containers ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 40px; width: 100%; }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 40px; width: 100%; }
.wrap-wide { max-width: 1400px; margin: 0 auto; padding: 0 40px; width: 100%; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 92vh; display: flex; flex-direction: column;
  justify-content: center; overflow: hidden; color: #fff; background: var(--navy);
}
.hero-glow-a { position: absolute; top: -10%; right: -5%; width: 50vw; height: 50vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(56,189,248,.30), transparent 62%); }
.hero-glow-b { position: absolute; bottom: -20%; left: -10%; width: 46vw; height: 46vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,.26), transparent 62%); }

.display-xl { font-family: var(--font-display); font-weight: 700; letter-spacing: -.04em; line-height: 1.02; }
.display-lg { font-family: var(--font-display); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; }
.display-md { font-family: var(--font-display); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }

/* ---------- section rhythm ---------- */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.eyebrow-web { font-size: 12.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--primary); }

/* ---------- cards & grids ---------- */
.wcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-sm); transition: box-shadow .2s, transform .2s, border-color .2s; }
.wcard-hover:hover { box-shadow: var(--sh-md); transform: translateY(-3px); border-color: var(--line-2); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* ---------- buttons (web sizing) ---------- */
.wbtn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; cursor: pointer;
  font-family: 'Manrope'; font-weight: 700; font-size: 16px; border: none; border-radius: var(--r-pill);
  height: 54px; padding: 0 28px; letter-spacing: -.01em; transition: transform .14s var(--ease), background .2s, box-shadow .2s; white-space: nowrap; }
.wbtn:active { transform: scale(.98); }
.wbtn-primary { background: var(--primary); color: #fff; box-shadow: var(--sh-primary); }
.wbtn-primary:hover { background: var(--primary-d); }
.wbtn-light { background: #fff; color: var(--navy); }
.wbtn-light:hover { background: #eef1f7; }
.wbtn-dark { background: var(--navy); color: #fff; }
.wbtn-ghost { background: var(--surface-2); color: var(--ink); }
.wbtn-ghost:hover { background: var(--surface-3); }
.wbtn-outline-light { background: rgba(255,255,255,.08); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.3); }
.wbtn-outline-light:hover { background: rgba(255,255,255,.16); }
.wbtn-lg { height: 60px; font-size: 17px; padding: 0 34px; }

/* ---------- wizard chrome ---------- */
.wizard-top { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.9);
  backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.wstep-dot { display: flex; align-items: center; gap: 9px; }

/* ---------- builder split ---------- */
.builder-split { display: grid; grid-template-columns: 1.35fr 1fr; min-height: calc(100vh - 68px); }
.builder-preview { position: sticky; top: 68px; height: calc(100vh - 68px); background: var(--navy);
  display: flex; align-items: center; justify-content: center; overflow: hidden; }
.builder-config { padding: 56px 56px 120px; max-width: 620px; }

/* ---------- dashboard ---------- */
.dash-shell { display: grid; grid-template-columns: 244px minmax(0, 1fr); min-height: 100vh; }
.dash-side { background: var(--navy); color: #fff; padding: 26px 18px; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; overflow: hidden; }
.dash-side-nav {
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  padding-right: 4px;
  margin-right: -4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}
.dash-side-nav::-webkit-scrollbar { width: 6px; }
.dash-side-nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 999px; }
.dash-navitem { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md);
  cursor: pointer; font-weight: 600; font-size: 14.5px; color: rgba(255,255,255,.6); border: none; background: none;
  width: 100%; text-align: left; transition: background .15s, color .15s; font-family: 'Manrope'; }
.dash-navitem:hover { background: rgba(255,255,255,.07); color: #fff; }
.dash-navitem.active { background: rgba(255,255,255,.12); color: #fff; }
.dash-nav-section-label {
  padding: 14px 14px 6px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
}
.dash-main { padding: 36px 44px 60px; background: var(--bg); min-width: 0; }
.dash-grid-2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; }
.dash-grid-2-wide { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; }
.dash-grid-2-even { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.dash-grid-3 { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 22px; }
.dash-grid-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; }

.app-charging-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
  align-items: start;
}
.app-charging-map-col { min-height: 360px; }
.app-charging-side { max-height: 640px; overflow: auto; }
@media (max-width: 900px) {
  .app-charging-layout { grid-template-columns: 1fr; }
  .app-charging-side { max-height: none; }
}

/* energy product previews — dashboard & hub */
.energy-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.energy-action-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  padding: 0;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
.energy-action-card.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}
.energy-action-card.coming-soon {
  opacity: 0.92;
}
.energy-action-coming-soon {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--solar-tint);
  color: #b46a00;
}
.energy-action-grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.energy-action-visual {
  background: radial-gradient(ellipse 90% 80% at 50% 35%, #1a2230 0%, #080a0e 70%);
  height: 152px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 12px 22px;
  border-bottom: 1px solid var(--line);
}
.app-flow-root .energy-action-visual {
  background: transparent;
}
.energy-action-preview-slot,
.device-system-preview-slot {
  width: 100%;
  max-width: 200px;
  height: 72px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.product-preview-icon-tile,
.energy-action-icon-fallback,
.device-system-solar-art {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: rgba(126, 180, 255, 0.12);
  border: 1px solid rgba(126, 180, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.device-system-solar-art {
  flex-direction: column;
  gap: 4px;
}
.energy-action-visual .pw-energy-product-preview,
.device-system-card-visual .pw-energy-product-preview {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex-shrink: 0;
}
.energy-action-visual .pw-energy-visual-mini,
.device-system-card-visual .pw-energy-visual-mini {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex-shrink: 0;
}
.energy-action-visual .pw-energy-visual-mini .pw-energy-visual-stage,
.device-system-card-visual .pw-energy-visual-mini .pw-energy-visual-stage {
  min-height: 0;
  height: auto;
  width: auto;
  margin: 0;
  perspective: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
.energy-action-visual .pw-energy-visual-mini .pw-xolaar-rig,
.device-system-card-visual .pw-energy-visual-mini .pw-xolaar-rig {
  margin: 0 !important;
  transform-origin: center bottom !important;
  transition: none !important;
}
.energy-action-visual .pw-energy-visual-mini .pw-xolaar-rig.tower,
.device-system-card-visual .pw-energy-visual-mini .pw-xolaar-rig.tower {
  transform: rotateX(0deg) rotateY(0deg) scale(0.485) !important;
}
.energy-action-visual .pw-energy-visual-mini .pw-xolaar-rig.portable,
.device-system-card-visual .pw-energy-visual-mini .pw-xolaar-rig.portable {
  transform: rotateX(0deg) rotateY(0deg) scale(0.562) !important;
}
.energy-action-visual .pw-energy-visual-mini .pw-xolaar-rig:hover,
.device-system-card-visual .pw-energy-visual-mini .pw-xolaar-rig:hover {
  transform: rotateX(0deg) rotateY(0deg) scale(0.485) !important;
}
.energy-action-visual .pw-energy-visual-mini .pw-xolaar-rig.portable:hover,
.device-system-card-visual .pw-energy-visual-mini .pw-xolaar-rig.portable:hover {
  transform: rotateX(0deg) rotateY(0deg) scale(0.562) !important;
}
.energy-action-visual .pw-energy-visual-mini .pw-energy-visual-floor,
.device-system-card-visual .pw-energy-visual-mini .pw-energy-visual-floor,
.energy-action-visual .pw-energy-visual-mini .pw-xolaar-plinth,
.device-system-card-visual .pw-energy-visual-mini .pw-xolaar-plinth {
  display: none;
}
.energy-action-copy { padding: 16px 18px 18px; }

.energy-hub-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  padding: 24px;
  background: linear-gradient(135deg, var(--navy) 0%, #1a2d4a 100%);
  color: #fff;
  border: none;
  align-items: center;
  overflow: hidden;
}
.app-flow-root .energy-hub-hero.wcard,
.app-flow-root .energy-hub-hero.dash-premium-card {
  background: linear-gradient(135deg, var(--navy) 0%, #1a2d4a 100%);
  color: #fff;
  border: none;
}
.app-flow-root .energy-hub-hero .display-md,
.app-flow-root .energy-hub-hero h1,
.app-flow-root .energy-hub-hero h2 {
  color: #fff;
}
.energy-hub-hero-visual {
  background: radial-gradient(ellipse 80% 70% at 50% 40%, rgba(255,255,255,.06) 0%, transparent 65%);
  border-radius: var(--r-lg);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.energy-product-card { padding: 0; overflow: hidden; }
.energy-product-card-visual {
  background: radial-gradient(ellipse 90% 80% at 50% 30%, #1a2230 0%, #080a0e 72%);
  padding: 16px 12px 8px;
  border-bottom: 1px solid var(--line);
}
.energy-product-card .energy-action-copy,
.energy-product-card > div:last-child { padding: 20px 22px 22px; }

@media (max-width: 900px) {
  .energy-hub-hero { grid-template-columns: 1fr; }
  .energy-hub-hero-visual { min-height: 180px; }
}

/* customer energy hub (dashboard flow) */
.cust-energy .energy-hub-hero.cust-energy-hero-premium {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 24px;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: 28px 30px;
  background: linear-gradient(145deg, #f8fafc 0%, #eef4ff 48%, #f4f8fc 100%);
  border: 1px solid rgba(47, 107, 255, 0.12);
  box-shadow: 0 18px 48px rgba(15, 30, 60, 0.06);
  color: var(--ink);
}
.app-flow-root .cust-energy .energy-hub-hero.cust-energy-hero-premium {
  background: linear-gradient(145deg, #f8fafc 0%, #eef4ff 48%, #f4f8fc 100%);
  border: 1px solid rgba(47, 107, 255, 0.12);
  color: var(--ink);
}
.cust-energy-hero-premium .hero-glow-a {
  background: radial-gradient(circle, rgba(47, 107, 255, 0.14) 0%, transparent 68%);
}
.cust-energy-hero-premium .hero-glow-b {
  background: radial-gradient(circle, rgba(61, 214, 140, 0.1) 0%, transparent 70%);
}
.cust-energy-hero-copy {
  position: relative;
  z-index: 1;
}
.cust-energy .energy-hub-hero.cust-energy-hero-plain {
  position: relative;
  overflow: visible;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  color: var(--ink);
}
.app-flow-root .cust-energy .energy-hub-hero.cust-energy-hero-plain {
  background: transparent;
  border: none;
  color: var(--ink);
}
.app-flow-root .cust-energy .energy-hub-hero.cust-energy-hero-plain h2,
.app-flow-root .cust-energy .energy-hub-hero.cust-energy-hero-plain .display-md,
.app-flow-root .cust-energy .energy-hub-hero.cust-energy-hero-premium h2,
.app-flow-root .cust-energy .energy-hub-hero.cust-energy-hero-premium .display-md {
  color: var(--ink);
}
.cust-energy .cust-energy-hero-plain .cust-energy-kicker,
.cust-energy .cust-energy-hero-premium .cust-energy-kicker {
  color: var(--primary);
}
.cust-energy .cust-energy-hero-title {
  font-size: clamp(22px, 4vw, 28px);
  margin-top: 8px;
  color: var(--ink);
}
.cust-energy .cust-energy-hero-lead {
  font-size: 14.5px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.55;
  font-weight: 500;
  max-width: 480px;
}
.cust-energy .cust-energy-hero-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}
.cust-energy .cust-energy-hero-actions::-webkit-scrollbar {
  display: none;
}
.cust-energy .cust-energy-hero-actions .cust-energy-btn-primary,
.cust-energy .cust-energy-hero-actions .cust-energy-btn-ghost {
  flex: 0 1 auto;
  white-space: nowrap;
  min-height: 44px;
  height: auto;
  padding: 0 16px;
  font-size: 13.5px;
}
.cust-energy-flow-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.cust-energy-flow-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 8px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(47, 107, 255, 0.12);
  font-size: 12px;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(15, 30, 60, 0.04);
}
.cust-energy-flow-pill strong {
  display: block;
  font-weight: 800;
  font-size: 12.5px;
  color: var(--ink);
}
.cust-energy-flow-pill em {
  display: block;
  font-style: normal;
  font-weight: 600;
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}
.cust-energy-flow-num {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-tint);
  border: 1px solid rgba(47, 107, 255, 0.18);
}
.cust-energy .cust-energy-hero-visual {
  background: transparent;
  border: none;
  box-shadow: none;
}
.cust-energy .cust-energy-hero-visual .pw-energy-visual-name {
  color: var(--ink);
}
.cust-energy .cust-energy-hero-visual .pw-energy-visual-casing {
  color: var(--muted);
}
.cust-energy .energy-hub-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  border: none;
}
.cust-energy-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.cust-energy-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: none;
  border-radius: var(--r-md);
  background: #fff;
  color: var(--navy);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}
.cust-energy-btn-primary:hover { background: rgba(255, 255, 255, 0.92); }
.cust-energy-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--r-md);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.cust-energy-btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.cust-energy-btn-ghost.light {
  border-color: var(--line-2);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.65);
}
.cust-energy-btn-ghost.light:hover {
  border-color: var(--primary);
  background: #fff;
}
.cust-energy-section-head {
  margin-bottom: 14px;
}
.cust-energy-section-title {
  font-weight: 800;
  font-size: 16px;
  color: var(--ink);
}
.cust-energy-section-sub {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.45;
  font-weight: 500;
}
.cust-energy .grid-2:has(.cust-energy-product),
.cust-mp .grid-2:has(.cust-energy-product) {
  align-items: stretch;
}
.cust-energy-product {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: border-color 0.28s var(--ease), box-shadow 0.28s var(--ease), transform 0.28s var(--ease);
}
.app-flow-root .cust-energy .cust-energy-product:hover {
  border-color: rgba(47, 107, 255, 0.22);
  box-shadow: 0 12px 32px rgba(15, 30, 60, 0.07);
  transform: translateY(-2px);
}
.cust-energy-product-visual {
  flex-shrink: 0;
  height: 196px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(165deg, #f8fafc 0%, #eef4ff 55%, #f4f8fc 100%);
  border-bottom: 1px solid var(--line);
  padding: 12px 16px 8px;
}
.cust-energy-product-visual .pw-energy-product-preview {
  width: 100%;
  max-width: 220px;
}
.cust-energy-product-visual .pw-energy-visual-card .pw-energy-visual-stage {
  min-height: 128px;
  margin-bottom: 0;
}
.cust-energy-product-visual .pw-energy-visual-floor {
  opacity: 0.25;
}
.cust-energy-product-visual .pw-energy-visual-name {
  color: var(--ink);
  font-weight: 700;
}
.cust-energy-product-visual .pw-energy-visual-casing {
  color: var(--muted);
}
.cust-energy-product-visual .pw-xolaar-rig:hover {
  transform: rotateX(0deg) rotateY(0deg) scale(1);
}
.cust-energy-product-assess-icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(255, 180, 60, 0.28);
  box-shadow: 0 8px 24px rgba(255, 180, 60, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cust-energy-product-visual .pw-energy-visual-card {
  width: 100%;
}
.cust-energy-product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 20px 20px;
  align-items: stretch;
}
.cust-energy-product-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky);
}
.cust-energy-product-tag.recommended { color: var(--solar); }
.cust-energy-product-tag.portable { color: var(--eco-d); }
.cust-energy-product-tag.storage { color: var(--primary); }
.cust-energy-product-title {
  font-weight: 800;
  font-size: 17px;
  margin: 6px 0 0;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.cust-energy-product-desc {
  font-size: 13.5px;
  color: var(--ink);
  opacity: 0.72;
  margin-top: 6px;
  line-height: 1.5;
}
.cust-energy-product-bullets {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}
.cust-energy-product-bullets li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  opacity: 0.78;
}
.cust-energy-product-cta {
  margin-top: auto;
  padding-top: 16px;
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-sizing: border-box;
  text-align: center;
}
.cust-energy-product-cta-label {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
}
.cust-energy-product-cta-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  flex-shrink: 0;
}
.cust-energy-product-cta.cust-energy-btn-ghost.light {
  border-color: var(--line-2);
  background: #fff;
  display: flex;
}
.cust-energy-product-cta.cust-energy-btn-ghost.light:hover:not(:disabled) {
  border-color: var(--primary);
  background: var(--primary-tint);
}
.cust-energy-product-cta.cust-energy-btn-ghost.light.disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.cust-energy-cap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.cust-energy-cap { padding: 18px; align-items: flex-start; transition: border-color 0.28s var(--ease), box-shadow 0.28s var(--ease); }
.app-flow-root .cust-energy .cust-energy-cap:hover {
  border-color: var(--line-2);
  box-shadow: var(--sh-sm);
}
.cust-energy-cap-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}
.cust-energy-cap-desc {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.45;
}
.cust-energy-cap-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--primary-tint);
  border: 1px solid rgba(47, 107, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cust-energy-live-cta {
  padding: 22px;
  flex-wrap: wrap;
  align-items: center;
  background: linear-gradient(135deg, var(--eco-tint) 0%, var(--surface) 55%);
  border-color: rgba(18, 184, 134, 0.25);
}
.cust-energy-live-copy {
  flex: 1;
  min-width: 240px;
}
.cust-energy-live-title {
  font-weight: 800;
  font-size: 16px;
  color: var(--ink);
}
.cust-energy-live-desc {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.45;
  max-width: 440px;
}

/* SI assessment promo — energy surfaces */
.energy-assess-promo.card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border: 1px solid rgba(255, 180, 60, 0.22);
  background: linear-gradient(135deg, rgba(255, 180, 60, 0.08) 0%, var(--surface) 48%);
}
.energy-assess-promo-glow {
  position: absolute;
  top: -40%;
  right: -8%;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 180, 60, 0.18), transparent 70%);
  pointer-events: none;
}
.energy-assess-promo-body { position: relative; align-items: center; }
.energy-assess-promo-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--solar);
}
.energy-assess-promo-title {
  font-family: 'Sora', 'Manrope', sans-serif;
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.energy-assess-promo-sub {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 500;
  max-width: 52ch;
}
.energy-assess-promo-points {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.energy-assess-promo-points li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

/* Dark Powerwall / Tesla shells — remapped ink (avoid navy-on-black) */
.pw-flow .energy-assess-promo.card,
.dash-main-tesla .energy-assess-promo.card {
  background: linear-gradient(135deg, rgba(255, 180, 60, 0.12) 0%, rgba(255, 255, 255, 0.04) 48%);
  border-color: rgba(255, 180, 60, 0.28);
}
.pw-flow .energy-assess-promo-title,
.pw-flow .energy-assess-promo.compact .energy-assess-promo-title,
.dash-main-tesla .energy-assess-promo-title,
.dash-main-tesla .energy-assess-promo.compact .energy-assess-promo-title {
  color: #fff;
}
.pw-flow .energy-assess-promo-sub,
.pw-flow .energy-assess-promo.compact .energy-assess-promo-sub,
.dash-main-tesla .energy-assess-promo-sub,
.dash-main-tesla .energy-assess-promo.compact .energy-assess-promo-sub {
  color: rgba(255, 255, 255, 0.62);
}
.pw-flow .energy-assess-promo-points li,
.dash-main-tesla .energy-assess-promo-points li {
  color: rgba(255, 255, 255, 0.82);
}

/* Dashboard / energy product cards on dark canvas */
.dash-main-tesla .cust-energy-product-title,
.dash-main-tesla .cust-energy-product-visual .pw-energy-visual-name,
.pw-flow .cust-energy-product-title {
  color: #fff;
}
.dash-main-tesla .cust-energy-product-desc,
.dash-main-tesla .cust-energy-product-bullets li,
.dash-main-tesla .cust-energy-product-visual .pw-energy-visual-casing,
.pw-flow .cust-energy-product-desc,
.pw-flow .cust-energy-product-bullets li {
  color: rgba(255, 255, 255, 0.62);
  opacity: 1;
}
.energy-assess-promo-hero-visual {
  margin-top: 28px;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}
.energy-assess-promo-hero-visual .pw-land-visual,
.energy-assess-promo-visual .pw-land-visual {
  max-width: none;
  width: 100%;
}
.energy-assess-promo-visual .pw-land-visual {
  min-height: 200px;
  padding: 16px;
}

/* Light-surface embed (dashboard energy card) */
.pw-land-visual.light {
  background: linear-gradient(165deg, #f8fafc 0%, #eef4ff 100%);
  border: 1px solid #e4e7f0;
  box-shadow: 0 8px 24px rgba(15, 30, 60, 0.06);
  /* Keep readable ink even when parent remaps --ink for dark shells */
  --ink: #141a2e;
  --muted: #5a6178;
  --faint: #8b91a6;
  --line: #e4e7f0;
  color: #141a2e;
}
.pw-land-visual.light .pw-land-mini-card {
  background: #fff;
  border-color: #e4e7f0;
  color: #141a2e;
  font-weight: 600;
}
.pw-land-visual.light .pw-land-ring-val {
  font-size: 22px;
  font-weight: 700;
  color: #141a2e;
}
.energy-assess-promo-cta { align-self: flex-start; }
.energy-assess-promo.compact {
  width: 100%;
  padding: 16px 18px;
  cursor: pointer;
  text-align: left;
  border: 1px solid var(--line);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.energy-assess-promo.compact:hover {
  border-color: var(--solar);
  box-shadow: var(--sh-sm);
}
.energy-assess-promo-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--solar-tint, rgba(255, 180, 60, 0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.energy-assess-promo.hero {
  padding: clamp(28px, 4vw, 40px);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.energy-assess-promo-hero-title {
  font-family: 'Sora', 'Manrope', sans-serif;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
  margin-top: 14px;
}
.energy-assess-promo-hero-lead {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.55;
  margin-top: 12px;
  font-weight: 500;
  max-width: 54ch;
  margin-left: auto;
  margin-right: auto;
}
.pw-energy-assess-band { padding-top: 8px; padding-bottom: 8px; }
.energy-product-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}
.energy-product-cards-grid:has(.cust-energy-product-assess) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.cust-energy-product-assess {
  border-color: rgba(255, 180, 60, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 180, 60, 0.08);
}
.cust-energy-product-assess-visual {
  background: linear-gradient(165deg, rgba(255, 180, 60, 0.1) 0%, #f8fafc 42%, #eef4ff 100%);
}

@media (max-width: 1100px) {
  .energy-product-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .energy-product-cards-grid {
    grid-template-columns: 1fr;
  }
}

.cust-energy-live-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--eco-tint);
  border: 1px solid rgba(18, 184, 134, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cust-energy .cust-energy-btn-primary {
  background: var(--navy);
  color: #fff;
  flex-shrink: 0;
}
.cust-energy .cust-energy-btn-primary:hover { background: var(--navy-3); }
.cust-energy .cust-energy-hero-premium .cust-energy-btn-primary {
  background: var(--primary);
  color: #fff;
}
.cust-energy .cust-energy-hero-premium .cust-energy-btn-primary:hover {
  background: var(--primary-d);
}
.cust-energy .energy-hub-hero:not(.cust-energy-hero-premium) .cust-energy-btn-primary {
  background: #fff;
  color: var(--navy);
}
.cust-energy .energy-hub-hero:not(.cust-energy-hero-premium) .cust-energy-btn-primary:hover {
  background: rgba(255, 255, 255, 0.92);
}
@media (max-width: 900px) {
  .cust-energy .energy-hub-hero.cust-energy-hero-premium {
    grid-template-columns: 1fr;
    padding: 22px;
  }
  .cust-energy .cust-energy-hero-visual {
    min-height: 200px;
  }
}
@media (max-width: 768px) {
  .cust-energy-cap-grid { grid-template-columns: 1fr; }
  .cust-energy .cust-energy-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .cust-energy .cust-energy-hero-actions .cust-energy-btn-primary,
  .cust-energy .cust-energy-hero-actions .cust-energy-btn-ghost {
    width: 100%;
    justify-content: center;
  }
  .section-sm { padding: 28px 0; }
}

/* customer charging hub (dashboard flow) */
.cust-charging .cust-charging-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 20px;
  padding: 24px;
  background: linear-gradient(135deg, var(--navy) 0%, #1a2d4a 100%);
  color: #fff;
  border: none;
  overflow: hidden;
  align-items: stretch;
}
.cust-charging-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.cust-charging-hero-sub {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 10px;
  line-height: 1.55;
  font-weight: 500;
  max-width: 420px;
}
.cust-charging-hero-actions {
  margin-top: 18px;
  flex-wrap: wrap;
}
.cust-charging-hero-map {
  min-height: 280px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.2);
}
.cust-charging-hero-map .fleet-map-wrap,
.cust-charging-hero-map .fleet-leaflet-map {
  height: 100% !important;
  min-height: 280px;
}
.cust-charging-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: none;
  border-radius: var(--r-md);
  background: #fff;
  color: var(--navy);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
  flex-shrink: 0;
}
.cust-charging-btn-primary:hover:not(:disabled) { background: rgba(255, 255, 255, 0.92); }
.cust-charging-btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }
.cust-charging-btn-primary.navy {
  background: var(--navy);
  color: #fff;
}
.cust-charging-btn-primary.navy:hover:not(:disabled) { background: var(--navy-3); }
.cust-charging .cust-charging-hero .cust-charging-btn-primary {
  background: #fff;
  color: var(--navy);
}
.cust-charging .cust-charging-hero .cust-charging-btn-primary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.92);
}
.cust-charging-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--r-md);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  flex-shrink: 0;
}
.cust-charging-btn-ghost:hover:not(:disabled) {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.cust-charging-btn-ghost:disabled { opacity: 0.45; cursor: not-allowed; }
.cust-charging-btn-ghost.light {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface);
}
.cust-charging-btn-ghost.light:hover:not(:disabled) {
  border-color: var(--line-2);
  background: var(--surface-2);
}
.cust-charging-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  flex-shrink: 0;
}
.cust-charging-chip:hover:not(:disabled) {
  border-color: var(--line-2);
  background: var(--surface-2);
}
.cust-charging-chip:disabled { opacity: 0.55; cursor: not-allowed; }
.cust-charging-chip.accent {
  border-color: rgba(47, 107, 255, 0.25);
  background: var(--primary-tint);
  color: var(--primary-d);
}
.cust-charging-chip.accent:hover:not(:disabled) {
  border-color: var(--primary);
}
.cust-charging-station {
  padding: 20px 22px;
}
.cust-charging-station-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.cust-charging-station-name {
  font-weight: 800;
  font-size: 16px;
}
.cust-charging-station-addr {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 600;
}
.cust-charging-station-slots {
  font-size: 13px;
  font-weight: 800;
  color: var(--eco-d);
}
.cust-charging-station-actions {
  margin-top: 14px;
  flex-wrap: wrap;
}
.cust-charging-section-head {
  flex-wrap: wrap;
  align-items: center;
}
.cust-charging-section-head h3,
.cust-charging-section-head.solo {
  font-weight: 800;
  font-size: 17px;
  margin: 0;
}
.cust-charging-res-card {
  padding: 0;
  overflow: hidden;
}
.cust-charging-res-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  padding: 18px 20px;
  align-items: center;
}
.cust-charging-res-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cust-charging-res-icon.swap {
  background: var(--primary-tint);
  border: 1px solid rgba(47, 107, 255, 0.18);
}
.cust-charging-res-icon.rent {
  background: rgba(124, 92, 255, 0.1);
  border: 1px solid rgba(124, 92, 255, 0.2);
}
.cust-charging-res-title-row {
  flex-wrap: wrap;
  align-items: center;
}
.cust-charging-res-title {
  font-weight: 800;
  font-size: 16px;
}
.cust-charging-res-meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
  font-weight: 600;
}
.cust-charging-res-pickup {
  text-align: right;
  flex-shrink: 0;
}
.cust-charging-pickup-lbl {
  font-size: 10px;
  font-weight: 800;
  color: var(--faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cust-charging-pickup-code {
  font-size: clamp(20px, 4vw, 24px);
  font-weight: 900;
  color: var(--eco-d);
  margin-top: 2px;
  letter-spacing: 0.02em;
}
.cust-charging-res-price {
  font-size: 13px;
  font-weight: 800;
  margin-top: 4px;
  color: var(--ink);
}
.cust-charging-res-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 20px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}
.cust-charging-track {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--eco-d);
}
.cust-charging-empty {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.cust-charging-empty-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary-tint);
  border: 1px solid rgba(47, 107, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.cust-charging-empty-title {
  font-weight: 800;
  font-size: 16px;
}
.cust-charging-empty-copy {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 480px;
  margin: 0 0 6px;
}
.cust-charging-skeleton {
  width: 100%;
  height: 18px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface-3) 50%, var(--surface-2) 100%);
  background-size: 200% 100%;
  animation: cust-charging-shimmer 1.2s ease-in-out infinite;
}
.cust-charging-skeleton.short {
  width: 60%;
  height: 14px;
}
@keyframes cust-charging-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.mp-checkout-boot-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}
.mp-checkout-boot-caption {
  margin: 20px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}
.mp-checkout-skeleton-summary {
  position: sticky;
  top: 92px;
}
.mp-checkout-skeleton-line,
.mp-checkout-skeleton-block,
.mp-checkout-skeleton-thumb {
  border-radius: 8px;
  background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface-3) 50%, var(--surface-2) 100%);
  background-size: 200% 100%;
  animation: cust-charging-shimmer 1.2s ease-in-out infinite;
}
.mp-checkout-skeleton-line {
  width: 100%;
  height: 14px;
}
.mp-checkout-skeleton-line.short {
  width: 55%;
}
.mp-checkout-skeleton-block {
  width: 100%;
  border-radius: 10px;
}
.mp-checkout-skeleton-thumb {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .mp-checkout-boot-grid {
    grid-template-columns: 1fr;
  }
  .mp-checkout-skeleton-summary {
    position: static;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mp-checkout-skeleton-line,
  .mp-checkout-skeleton-block,
  .mp-checkout-skeleton-thumb {
    animation: none;
  }
}
.cust-charging-history {
  padding: 8px 20px 12px;
}
.cust-charging-history-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.cust-charging-history-row:first-of-type {
  border-top: none;
  padding-top: 6px;
}
.cust-charging-history-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cust-charging-history-icon.swap {
  background: var(--primary-tint);
  border: 1px solid rgba(47, 107, 255, 0.15);
}
.cust-charging-history-icon.rent {
  background: rgba(124, 92, 255, 0.1);
  border: 1px solid rgba(124, 92, 255, 0.18);
}
.cust-charging-history-body {
  flex: 1;
  min-width: 0;
}
.cust-charging-history-title {
  font-size: 14px;
  font-weight: 700;
}
.cust-charging-history-meta {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 2px;
}
.cust-charging-history-side {
  text-align: right;
  flex-shrink: 0;
}
.cust-charging-history-status {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
}
.cust-charging-history-date {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--faint);
  margin-top: 2px;
}
.cust-charging-shop {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  background: linear-gradient(135deg, var(--eco-tint) 0%, var(--surface) 55%);
  border-color: rgba(18, 184, 134, 0.22);
  flex-wrap: wrap;
}
.cust-charging-shop-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--eco-tint);
  border: 1px solid rgba(18, 184, 134, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cust-charging-shop-copy {
  flex: 1;
  min-width: 200px;
}
.cust-charging-shop-title {
  font-weight: 800;
  font-size: 16px;
}
.cust-charging-shop-copy p {
  font-size: 14px;
  color: var(--muted);
  margin: 6px 0 0;
  line-height: 1.5;
  max-width: 440px;
}
@media (max-width: 900px) {
  .cust-charging .cust-charging-hero {
    grid-template-columns: 1fr;
  }
  .cust-charging-hero-map {
    min-height: 240px;
  }
}
@media (max-width: 640px) {
  .cust-charging-res-main {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
  }
  .cust-charging-res-pickup {
    grid-column: 1 / -1;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    margin-top: 4px;
    border-top: 1px dashed var(--line);
  }
  .cust-charging-history-row {
    flex-wrap: wrap;
  }
  .cust-charging-history-side {
    width: 100%;
    text-align: left;
    display: flex;
    gap: 8px;
    padding-left: 54px;
  }
  .cust-charging-shop {
    flex-direction: column;
    align-items: flex-start;
  }
  .cust-charging-shop .cust-charging-btn-ghost.light {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cust-charging-skeleton { animation: none; }
}

/* customer dashboard — live monitor tab */
.cust-dash-live .dash-sync-bar {
  margin-bottom: 0;
}
.cust-dash-live .dash-sync-bar .dash-sync-pill {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cust-dash-quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cust-dash-quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.15s var(--ease);
}
.cust-dash-quick-btn:hover {
  border-color: var(--primary);
  background: var(--primary-tint);
  box-shadow: var(--sh-sm);
}
.cust-dash-quick-btn:active { transform: scale(0.98); }

.cust-dash-status {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
}

.cust-dash-hero-navy {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: 28px 30px 24px;
  background: linear-gradient(165deg, #0a1628 0%, #152238 52%, #0d1a2d 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(10, 22, 40, 0.28);
  min-height: 280px;
}
.cust-dash-hero-navy .hero-glow-a {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 68%);
}
.cust-dash-hero-navy .hero-glow-b {
  background: radial-gradient(circle, rgba(47, 107, 255, 0.1) 0%, transparent 70%);
}
.cust-dash-hero-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.cust-dash-flow-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.cust-dash-flow-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.cust-dash-flow-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cust-dash-flow-label {
  font-size: 11.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cust-dash-flow-val {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.cust-dash-battery-card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
}
.cust-dash-health {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

@media (max-width: 600px) {
  .cust-dash-flow-row { grid-template-columns: 1fr; gap: 16px; }
  .cust-dash-quick-nav { display: grid; grid-template-columns: repeat(2, 1fr); }
  .cust-dash-quick-btn { justify-content: center; width: 100%; }
}

/* customer dashboard — XQ Academy (Learn tab) */
.cust-academy .energy-hub-hero.cust-academy-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 24px;
  align-items: stretch;
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  border: none;
  background: linear-gradient(165deg, #0a1628 0%, #152238 52%, #0d1a2d 100%);
  color: #fff;
  padding: 28px 30px;
  box-shadow: 0 24px 60px rgba(10, 22, 40, 0.28);
}
.cust-academy-hero .hero-glow-a {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 68%);
}
.cust-academy-hero .hero-glow-b {
  background: radial-gradient(circle, rgba(47, 107, 255, 0.08) 0%, transparent 70%);
}
.cust-academy-hero-copy {
  position: relative;
  z-index: 1;
}
.cust-academy-hero-title {
  font-size: clamp(22px, 4vw, 28px);
  margin-top: 8px;
  color: #fff;
}
.cust-academy-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.cust-academy-hero-sub {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 10px;
  line-height: 1.55;
  font-weight: 500;
  max-width: 520px;
}
.cust-academy-hero-actions {
  margin-top: 18px;
  flex-wrap: wrap;
}
.cust-academy-flow-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.cust-academy-flow-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 8px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}
.cust-academy-flow-pill strong {
  display: block;
  font-weight: 800;
  font-size: 12.5px;
  color: #fff;
}
.cust-academy-flow-pill em {
  display: block;
  font-style: normal;
  font-weight: 600;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 1px;
}
.cust-academy-flow-num {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #7eb4ff;
  background: rgba(126, 180, 255, 0.12);
  border: 1px solid rgba(126, 180, 255, 0.22);
}
.cust-academy-hero-preview {
  position: relative;
  z-index: 1;
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.cust-academy-hero-preview:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.42);
}
.cust-academy-hero-preview .academy-course-thumb--card {
  pointer-events: none;
}
.cust-academy-hero-preview-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 8, 18, 0.22);
  pointer-events: none;
}
.cust-academy-hero-preview-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: linear-gradient(180deg, transparent 0%, rgba(5, 8, 18, 0.82) 100%);
  font-size: 11.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  pointer-events: none;
}
.cust-academy-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: none;
  border-radius: var(--r-md);
  background: #fff;
  color: var(--navy);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
  text-decoration: none;
  flex-shrink: 0;
}
.cust-academy-btn-primary:hover { background: rgba(255, 255, 255, 0.92); }
.cust-academy-btn-primary.navy {
  background: var(--navy);
  color: #fff;
}
.cust-academy-btn-primary.navy:hover { background: var(--navy-3); }
.cust-academy-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--r-md);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  flex-shrink: 0;
}
.cust-academy-btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.cust-academy-grade {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
}
.cust-academy-grade-letter {
  font-weight: 800;
  font-size: 20px;
}
.cust-academy-grade-copy {
  flex: 1;
  min-width: 200px;
}
.cust-academy-grade-title {
  font-weight: 800;
  font-size: 16px;
}
.cust-academy-grade-copy p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 4px 0 0;
  line-height: 1.45;
}
.cust-academy-grade-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.cust-academy-grade-score {
  font-size: 13px;
  font-weight: 800;
  color: var(--eco-d);
}
.cust-academy-section-title {
  font-weight: 800;
  font-size: 18px;
  margin: 0;
}
.cust-academy-section-sub {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  margin: 4px 0 0;
}
.cust-academy-catalog-head {
  flex-wrap: wrap;
  align-items: flex-end;
}
.cust-academy-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}
.cust-academy-search {
  flex: 1;
  min-width: min(100%, 260px);
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.cust-academy-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-tint);
}
.cust-academy-search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  outline: none;
}
.cust-academy-search input::placeholder {
  color: var(--faint);
  font-weight: 500;
}
.cust-academy-search-clear {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
}
.cust-academy-search-clear:hover {
  background: var(--surface-3);
  color: var(--ink);
}
.cust-academy-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 12px 0 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  flex-shrink: 0;
}
.cust-academy-sort-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cust-academy-sort select {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  outline: none;
  padding-right: 4px;
}
.cust-academy-recommended-title {
  font-weight: 800;
  font-size: 16px;
  margin: 0;
}
.cust-academy-recommended-sub {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
  margin: 4px 0 0;
}
.cust-academy-recommended-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.cust-academy-recommended-item {
  flex: 0 0 min(300px, 82vw);
  scroll-snap-align: start;
}
.cust-academy-recommended-item .cust-academy-card {
  height: 100%;
}
.cust-academy-empty-inline {
  align-items: center;
  text-align: center;
}
.cust-academy-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cust-academy-filter {
  height: 36px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.cust-academy-filter:hover {
  border-color: var(--line-2);
  color: var(--ink);
}
.cust-academy-filter.active {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}
.cust-academy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.cust-academy-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.15s;
}
.cust-academy-card:hover {
  box-shadow: var(--sh-md);
  transform: translateY(-3px);
  border-color: var(--line-2);
}
.cust-academy-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #0a1628, #1a3a6b);
}
.cust-academy-card-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(5, 8, 18, 0.72);
  backdrop-filter: blur(8px);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}
.cust-academy-card-certified {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--eco-tint);
  border: 1px solid rgba(61, 214, 140, 0.35);
  font-size: 10.5px;
  font-weight: 800;
  color: var(--eco-d);
}
.cust-academy-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.cust-academy-card-title {
  font-weight: 800;
  font-size: 15px;
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cust-academy-card-sub {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cust-academy-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--faint);
  margin-top: 2px;
}
.cust-academy-card-footer {
  margin-top: auto;
  padding-top: 10px;
}
.cust-academy-card-stats {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
}
.cust-academy-card-grade {
  color: var(--solar);
  font-weight: 800;
}
.cust-academy-card-grade.pass {
  color: var(--eco-d);
}
.cust-academy-card-new {
  color: var(--primary);
  font-weight: 800;
}
.cust-academy-card-next {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.35;
}
.cust-academy-card-next.done {
  color: var(--eco-d);
}
.cust-academy-grade-val {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.cust-academy-grade-lbl {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--faint);
  margin-top: 2px;
}
.cust-academy-progress {
  height: 5px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
}
.cust-academy-progress > div {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--eco), var(--primary));
  transition: width 0.35s var(--ease);
}
.cust-academy-progress--card {
  margin-top: 0;
}
.cust-academy-progress--lg {
  height: 8px;
}
.cust-academy-overlay {
  position: fixed;
  inset: 0;
  z-index: 240;
  --primary: #0a1628;
  --primary-d: #0a1628;
  --primary-2: #243044;
  --sky: #5a6178;
  --violet: #243044;
  --eco: #0a1628;
  --eco-d: #0a1628;
  --solar: #0a1628;
  --primary-tint: var(--surface-2);
  --eco-tint: var(--surface-2);
  --violet-tint: var(--surface-2);
  --solar-tint: var(--surface-2);
  --sh-primary: 0 8px 22px rgba(10, 22, 40, 0.12);
  background: rgba(5, 8, 18, 0.58);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 28px 16px 32px;
  margin: 0;
  animation: custAcademyOverlayIn 0.18s var(--ease);
}
.cust-academy-overlay--player {
  z-index: 250;
}
.cust-academy-modal {
  padding: 0;
  max-width: 640px;
  width: 100%;
  max-height: min(calc(100dvh - 56px), 820px);
  margin: 0;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  box-shadow: 0 28px 80px rgba(10, 16, 32, 0.28);
  animation: custAcademyModalIn 0.22s var(--ease);
}
.cust-academy-modal-hook {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 18px 16px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  flex-shrink: 0;
}
.cust-academy-modal-hook-media {
  width: 88px;
  height: 88px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #0a1628, #1a3a6b);
}
.cust-academy-modal-hook-media .academy-course-thumb,
.cust-academy-modal-hook-media .academy-course-thumb--card,
.cust-academy-modal-hook-media .academy-lesson-thumb,
.cust-academy-modal-hook-media .academy-lesson-thumb--card,
.cust-academy-modal-hook-media .academy-lesson-thumb--card .academy-lesson-thumb-inner,
.cust-academy-modal-hook-media .academy-lesson-thumb--video.academy-lesson-thumb--card,
.cust-academy-modal-hook-media .academy-lesson-thumb--video.academy-lesson-thumb--card .academy-lesson-thumb-video {
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
}
.cust-academy-modal-hook-copy {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}
.cust-academy-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(5, 8, 18, 0.55);
  backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  z-index: 2;
}
.cust-academy-modal-close:hover {
  background: rgba(5, 8, 18, 0.75);
}
.cust-academy-modal-close--inline {
  position: static;
  background: var(--surface-2);
  color: var(--ink);
  flex-shrink: 0;
}
.cust-academy-modal-close--inline:hover {
  background: var(--surface-3);
}
.cust-academy-modal-body {
  padding: 22px 24px 20px;
  overflow-y: auto;
  min-height: 0;
}
.cust-academy-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 24px 18px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  flex-shrink: 0;
}
.cust-academy-modal-foot .cust-academy-btn-primary {
  width: 100%;
}
.cust-academy-player-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 14px 24px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.cust-academy-player-copy {
  min-width: 0;
}
.cust-academy-player-title {
  font-weight: 800;
  font-size: 18px;
  margin: 6px 0 0;
  line-height: 1.25;
}
.cust-academy-player-body {
  padding-top: 18px;
}
.cust-academy-player-lead {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
  font-weight: 500;
}
.cust-academy-player-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}
.cust-academy-player-actions .cust-academy-btn-primary {
  flex: 1 1 180px;
}
.cust-academy-btn-ghost--ink {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface);
}
.cust-academy-btn-ghost--ink:hover {
  border-color: var(--ink);
  background: var(--surface-2);
}
.cust-academy-chapter-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cust-academy-chapter {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
}
.cust-academy-chapter.is-current {
  background: var(--primary-tint);
  border-color: rgba(47, 107, 255, 0.16);
}
.cust-academy-chapter.is-done {
  background: var(--eco-tint);
}
.cust-academy-chapter-time {
  font-size: 12px;
  font-weight: 800;
  color: var(--faint);
  min-width: 40px;
}
.cust-academy-chapter-label {
  flex: 1;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.cust-academy-guide-progress {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}
.cust-academy-guide-panel {
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
}
.cust-academy-guide-toc {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cust-academy-guide-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--faint);
  line-height: 1.4;
}
.cust-academy-guide-item.is-current {
  font-weight: 700;
  color: var(--ink);
}
.cust-academy-guide-item.is-done {
  color: var(--ink);
}
.cust-academy-quiz-hero-title {
  font-weight: 800;
  font-size: 15px;
}
.cust-academy-quiz-hero-sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 600;
}
.cust-academy-quiz-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cust-academy-quiz-q {
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.4;
}
.cust-academy-quiz-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cust-academy-quiz-option {
  width: 100%;
  text-align: left;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.cust-academy-quiz-option:hover:not(:disabled) {
  border-color: var(--line-2);
  background: var(--surface-2);
}
.cust-academy-quiz-option.is-selected {
  border-color: var(--navy);
  background: var(--primary-tint);
}
.cust-academy-quiz-option.is-correct {
  border-color: var(--eco);
  background: var(--eco-tint);
}
.cust-academy-quiz-option.is-wrong {
  border-color: var(--danger);
  background: var(--pill-danger-bg, #fdecec);
}
.cust-academy-quiz-option:disabled {
  cursor: default;
}
.cust-academy-quiz-score {
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--solar-tint);
  text-align: center;
  font-weight: 800;
  font-size: 18px;
}
.cust-academy-quiz-score.is-pass {
  background: var(--eco-tint);
  color: var(--eco-d);
}
@keyframes custAcademyOverlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes custAcademyModalIn {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
.cust-academy-modal-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.cust-academy-modal-title {
  font-weight: 800;
  font-size: 18px;
  margin: 4px 0 0;
  line-height: 1.25;
}
.cust-academy-modal-sub {
  font-size: 13.5px;
  color: var(--muted);
  margin: 6px 0 0;
  line-height: 1.45;
}
.cust-academy-modal-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 10px;
}
.cust-academy-modal-stat {
  flex: 1;
  min-width: 72px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--line);
  text-align: center;
}
.cust-academy-modal-stat span {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
}
.cust-academy-modal-stat em {
  display: block;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: var(--faint);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cust-academy-modal-stat.pass span {
  color: var(--eco-d);
}
.cust-academy-cert-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--eco-tint);
  border: 1px solid rgba(61, 214, 140, 0.2);
}
.cust-academy-cert-title {
  font-weight: 800;
  font-size: 14px;
}
.cust-academy-cert-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.cust-academy-curriculum-head {
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 10px;
}
.cust-academy-lesson-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface-2);
  transition: border-color 0.15s, background 0.15s;
}
.cust-academy-lesson-row.done {
  background: var(--surface);
  border-color: rgba(61, 214, 140, 0.2);
}
.cust-academy-lesson-num {
  width: 22px;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 800;
  color: var(--faint);
  text-align: center;
}
.cust-academy-lesson-copy {
  flex: 1;
  min-width: 0;
}
.cust-academy-lesson-title {
  font-weight: 700;
  font-size: 14px;
}
.cust-academy-lesson-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.cust-academy-lesson-start {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 34px;
  padding: 0 12px;
  border: none;
  border-radius: var(--r-md);
  background: var(--navy);
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, opacity 0.15s;
}
.cust-academy-lesson-start:hover:not(:disabled) {
  background: var(--navy-3);
}
.cust-academy-lesson-start:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.cust-academy-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 28px;
  text-align: center;
}
.cust-academy-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--primary-tint);
  border: 1px solid rgba(47, 107, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}
.cust-academy-empty-title {
  font-weight: 800;
  font-size: 17px;
  margin-top: 8px;
}
.cust-academy-empty p {
  font-size: 14px;
  color: var(--muted);
  margin: 6px 0 0;
  line-height: 1.5;
  max-width: 420px;
}
@keyframes custAcademyShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.cust-academy-skeleton {
  border-radius: var(--r-lg);
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: custAcademyShimmer 1.4s ease-in-out infinite;
}
.cust-academy-skeleton-head { height: 72px; }
.cust-academy-skeleton-hero { height: 240px; border-radius: var(--r-xl); }
.cust-academy-skeleton-card { aspect-ratio: 16 / 10; }
@media (max-width: 1100px) {
  .cust-academy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .cust-academy .energy-hub-hero.cust-academy-hero {
    grid-template-columns: 1fr;
  }
  .cust-academy-hero-preview {
    order: -1;
    max-width: 420px;
  }
}
@media (max-width: 640px) {
  .cust-academy-grid { grid-template-columns: 1fr; }
  .cust-academy-toolbar {
    flex-direction: column;
  }
  .cust-academy-sort {
    width: 100%;
    justify-content: space-between;
  }
  .cust-academy-sort select {
    flex: 1;
    text-align: right;
  }
  .cust-academy-grade {
    flex-direction: column;
    align-items: flex-start;
  }
  .cust-academy-grade-side {
    align-items: flex-start;
    width: 100%;
  }
  .cust-academy-modal-body {
    padding: 18px 16px 20px;
  }
  .cust-academy-overlay {
    padding: 12px 12px 16px;
    align-items: stretch;
    justify-content: flex-start;
  }
  .cust-academy-modal {
    max-width: none;
    max-height: calc(100dvh - 28px);
    margin: 0;
  }
  .cust-academy-modal-hook {
    padding: 14px 14px 12px 16px;
  }
  .cust-academy-modal-hook-media {
    width: 64px;
    height: 64px;
  }
  .cust-academy-modal-foot {
    padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  }
  .cust-academy-player-head {
    padding: 14px 14px 12px 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cust-academy-skeleton { animation: none; }
  .cust-academy-card:hover,
  .cust-academy-hero-preview:hover {
    transform: none;
  }
  .cust-academy-overlay,
  .cust-academy-modal {
    animation: none;
  }
}

/* customer dashboard — environmental impact tab */
.cust-impact-grade {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
}
.cust-impact-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: linear-gradient(165deg, #0a1628 0%, #152238 52%, #0d1a2d 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(10, 22, 40, 0.28);
}
.cust-impact-hero-glow-a {
  position: absolute;
  top: -45%;
  right: -12%;
  width: 55%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 68%);
  pointer-events: none;
}
.cust-impact-hero-glow-b {
  position: absolute;
  bottom: -55%;
  left: -10%;
  width: 48%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 107, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.cust-impact-hero-inner {
  position: relative;
  z-index: 1;
  padding: 32px 30px 28px;
}
.cust-impact-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.cust-impact-hero-title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-top: 8px;
  line-height: 1.15;
}
.cust-impact-hero-sub {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.58);
  margin-top: 12px;
  max-width: 560px;
  line-height: 1.55;
  font-weight: 500;
}
.cust-impact-stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.cust-impact-stat-val {
  font-weight: 700;
  font-size: clamp(20px, 3vw, 28px);
  letter-spacing: -0.02em;
  line-height: 1;
}
.cust-impact-stat-lbl {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  margin-top: 6px;
}
.cust-impact-quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cust-impact-quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.cust-impact-quick-btn:hover {
  border-color: var(--eco);
  background: var(--eco-tint);
  box-shadow: var(--sh-sm);
}
.cust-impact-audit {
  border-color: rgba(124, 58, 237, 0.25);
  background: linear-gradient(135deg, var(--surface) 0%, rgba(124, 58, 237, 0.04) 100%);
}
.cust-impact-audit-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--violet-tint, #f0ebff);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cust-impact-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: none;
  border-radius: var(--r-md);
  background: var(--violet);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s;
  flex-shrink: 0;
}
.cust-impact-btn-primary:hover { opacity: 0.92; }
.cust-impact-btn-ghost-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface-2);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.cust-impact-btn-ghost-sm:hover {
  border-color: var(--primary);
  color: var(--ink);
}
.cust-impact-esg-row {
  margin-bottom: 16px;
}
.cust-impact-esg-row:last-of-type { margin-bottom: 0; }
.cust-impact-progress {
  height: 8px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
  margin-top: 8px;
}
.cust-impact-progress > div {
  height: 100%;
  border-radius: 999px;
  transition: width 0.5s var(--ease);
}
.cust-impact-community-body {
  padding: 20px 0 8px;
}
.cust-impact-trophy {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--solar-tint), rgba(255, 180, 64, 0.08));
  border: 1px solid rgba(255, 180, 64, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cust-impact-rank-bar {
  width: 100%;
  max-width: 220px;
  height: 8px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
}
.cust-impact-rank-bar > div {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--solar), #f5d27a);
}
.cust-impact-skeleton {
  border-radius: var(--r-lg);
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: custAcademyShimmer 1.4s ease-in-out infinite;
}
.cust-impact-skeleton-head { height: 72px; }
.cust-impact-skeleton-hero { height: 200px; border-radius: var(--r-xl); }
@media (max-width: 900px) {
  .cust-impact-stat-row { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 600px) {
  .cust-impact-quick-nav { display: grid; grid-template-columns: 1fr; }
  .cust-impact-quick-btn { justify-content: center; width: 100%; }
  .cust-impact-stat-row { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .cust-impact-skeleton { animation: none; }
}

/* device system picker */
.device-system-picker {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.device-system-picker-sub {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  font-weight: 600;
  line-height: 1.45;
}
.device-system-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.device-system-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: border-color 0.28s var(--ease), box-shadow 0.28s var(--ease), transform 0.28s var(--ease);
}
.app-flow-root .device-system-card:hover {
  border-color: var(--line-2);
  box-shadow: var(--sh-sm);
  transform: translateY(-1px);
}
.device-system-card.selected {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px rgba(10, 22, 40, 0.08), var(--sh-sm);
}
.app-flow-root .device-system-card.selected:hover {
  transform: translateY(-1px);
}
.device-system-thumb {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.device-system-thumb .device-system-solar-art {
  width: auto;
  height: auto;
  border: none;
  background: transparent;
  border-radius: 0;
}
.device-system-thumb .pw-energy-product-preview,
.device-system-thumb .pw-energy-visual-mini {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.device-system-thumb .pw-energy-visual-mini .pw-energy-visual-stage {
  min-height: 0;
  height: auto;
  width: auto;
  margin: 0;
  perspective: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.device-system-thumb .pw-energy-visual-mini .pw-xolaar-rig {
  margin: 0 !important;
  transform-origin: center center !important;
  transition: none !important;
}
.device-system-thumb .pw-energy-visual-mini .pw-xolaar-rig.tower {
  transform: rotateX(0deg) rotateY(0deg) scale(0.34) !important;
}
.device-system-thumb .pw-energy-visual-mini .pw-xolaar-rig.portable {
  transform: rotateX(0deg) rotateY(0deg) scale(0.38) !important;
}
.device-system-thumb .pw-energy-visual-mini .pw-energy-visual-floor,
.device-system-thumb .pw-energy-visual-mini .pw-xolaar-plinth {
  display: none;
}
.device-system-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.device-system-card-head {
  align-items: center;
  flex-wrap: wrap;
}
.device-system-card-name {
  font-weight: 800;
  font-size: 14px;
  color: var(--ink);
}
.device-system-card-spec {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.device-system-soc-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.device-system-soc-val {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  flex-shrink: 0;
  min-width: 34px;
}
.device-system-soc-track {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
  min-width: 0;
}
.device-system-soc-fill {
  height: 100%;
  border-radius: 999px;
  background: #0a1628;
  transition: width 0.4s var(--ease);
}
.device-system-card-id {
  font-size: 11px;
  font-weight: 700;
  color: var(--faint);
  flex-shrink: 0;
}
.device-system-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex-shrink: 0;
  background: var(--faint);
}
.device-system-dot.online {
  background: #0a1628;
  box-shadow: none;
}
.device-system-picker.compact .device-system-picker-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.device-system-picker.compact .device-system-card {
  padding: 10px 12px;
  gap: 10px;
  align-items: center;
}
.device-system-picker.compact .device-system-thumb {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}
.device-system-picker.compact .device-system-thumb .pw-energy-visual-mini .pw-xolaar-rig.tower {
  transform: rotateX(0deg) rotateY(0deg) scale(0.24) !important;
}
.device-system-picker.compact .device-system-thumb .pw-energy-visual-mini .pw-xolaar-rig.portable {
  transform: rotateX(0deg) rotateY(0deg) scale(0.28) !important;
}
.device-system-picker.compact .device-system-soc-row {
  display: none;
}
.device-system-picker.compact .device-system-card-spec {
  font-size: 11.5px;
  margin-top: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .app-flow-root .device-system-card:hover,
  .app-flow-root .device-system-card.selected:hover {
    transform: none;
  }
}

@media (max-width: 960px) {
  .device-system-picker-grid {
    grid-template-columns: 1fr;
  }
}

/* live forecast panel (weather + 4-card flow board) */
.live-forecast-panel { display: flex; flex-direction: column; gap: 14px; }
.live-forecast-weather {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.live-forecast-sky-deco { position: absolute; inset: 0; pointer-events: none; }
.live-forecast-sun {
  display: none;
}
.live-forecast-cloud {
  display: none;
}
.live-forecast-cloud.c1 { width: 56px; height: 22px; top: 18px; left: 12%; }
.live-forecast-cloud.c2 { width: 44px; height: 18px; top: 32px; left: 28%; opacity: 0.8; }
.live-forecast-weather-row { position: relative; z-index: 1; flex-wrap: wrap; display: flex; gap: 10px; align-items: center; }
.live-forecast-insight {
  position: relative;
  z-index: 1;
  margin: 12px 0 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  max-width: 520px;
}
.live-forecast-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  position: relative;
  min-height: 380px;
}
.live-forecast-flow-svg {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(100%, 420px);
  height: 100%;
  pointer-events: none;
  z-index: 2;
}
.live-forecast-flow-path {
  fill: none;
  stroke: rgba(10, 22, 40, 0.22);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 8 10;
  opacity: 0.9;
  animation: flowDash 1.4s linear infinite;
}
.live-forecast-flow-path.grid,
.live-forecast-flow-path.battery,
.live-forecast-flow-path.home { stroke: rgba(10, 22, 40, 0.22); }
.live-forecast-flow-hub {
  fill: #0a1628;
  filter: none;
}
.forecast-card {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.forecast-card-production { grid-column: 1; grid-row: 1; }
.forecast-card-grid { grid-column: 2; grid-row: 1; }
.forecast-card-battery { grid-column: 1; grid-row: 2; }
.forecast-card-consumption { grid-column: 2; grid-row: 2; }
.forecast-card-battery.charging {
  background: var(--surface);
  border-color: var(--line);
}
.forecast-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}
.forecast-card-kw {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--ink);
}
.forecast-card-kw span { font-size: 14px; font-weight: 700; color: var(--muted); }
.forecast-card-sub { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.forecast-card-status { font-size: 13px; font-weight: 700; color: #94a3b8; margin-top: 4px; }
.forecast-mini-bars {
  display: flex;
  gap: 6px;
  align-items: flex-end;
  height: 72px;
  margin-top: auto;
  padding-top: 8px;
}
.forecast-mini-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  gap: 4px;
  position: relative;
}
.forecast-mini-bar-track {
  width: 100%;
  flex: 1;
  border-radius: 6px;
  background: var(--surface-3);
  display: flex;
  align-items: flex-end;
  min-height: 48px;
}
.forecast-mini-bar-fill {
  width: 100%;
  border-radius: 6px;
  transition: height 0.5s var(--ease);
}
.forecast-mini-bar-label { font-size: 10px; font-weight: 700; color: var(--faint); }
.forecast-bar-tag {
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #b8860b;
  background: #fff8e6;
  border: 1px solid #f5c542;
  border-radius: 999px;
  padding: 2px 6px;
  white-space: nowrap;
  z-index: 2;
}
@media (max-width: 640px) {
  .live-forecast-board { min-height: auto; }
  .live-forecast-flow-svg { display: none; }
  .forecast-card { min-height: 150px; }
}

/* circular live energy flow ring (sonnen reference) */
.energy-flow-ring { padding: 22px 24px 20px; }
.energy-flow-ring-headline {
  margin: 0 0 18px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;
  color: #1a3a5c;
  text-align: center;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}
.energy-flow-ring-stage {
  position: relative;
  height: min(72vw, 360px);
  max-width: 400px;
  margin: 0 auto 16px;
}
.energy-flow-ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.energy-flow-ring-path {
  fill: none;
  stroke: rgba(10, 22, 40, 0.28);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 7 9;
  opacity: 0.9;
  animation: flowDash 1.15s linear infinite;
}
.energy-flow-ring-node {
  position: absolute;
  width: 108px;
  text-align: center;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.energy-flow-ring-node-pv { left: 18%; top: 18%; }
.energy-flow-ring-node-home { left: 82%; top: 18%; }
.energy-flow-ring-node-grid { left: 18%; top: 82%; }
.energy-flow-ring-node-battery { left: 82%; top: 82%; }
.energy-flow-ring-disc {
  width: 86px;
  height: 86px;
  margin: 0 auto 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff 0%, var(--surface-2) 100%);
  border: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s, border-color 0.3s;
}
.energy-flow-ring-disc.glow {
  border-color: rgba(10, 22, 40, 0.45);
  box-shadow: 0 0 0 4px rgba(10, 22, 40, 0.06);
}
.energy-flow-ring-disc-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 999px;
}
.energy-flow-ring-disc-inner .pw-energy-product-preview {
  transform: scale(0.55);
  margin: -20px 0;
}
.energy-flow-ring-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.energy-flow-ring-value {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink);
  margin-top: 2px;
}
.energy-flow-node-art.pv .energy-flow-pv-panels {
  display: flex;
  gap: 3px;
  transform: skewY(-4deg);
}
.energy-flow-pv-panel {
  width: 14px;
  height: 22px;
  border-radius: 2px;
  background: linear-gradient(145deg, #1e3a5f 0%, #2d5a8a 50%, #1a3352 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.energy-flow-node-art.pv.active .energy-flow-pv-panel {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.energy-flow-node-art.home {
  position: relative;
  width: 36px;
  height: 32px;
}
.energy-flow-home-roof {
  position: absolute;
  top: 0;
  left: 4px;
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-bottom: 12px solid #1a2a44;
}
.energy-flow-home-body {
  position: absolute;
  bottom: 0;
  left: 6px;
  width: 24px;
  height: 18px;
  border-radius: 2px;
  background: linear-gradient(180deg, #4a5a72 0%, #243044 100%);
}
.energy-flow-home-panel {
  position: absolute;
  top: 10px;
  right: 2px;
  width: 10px;
  height: 6px;
  background: #1e3a5f;
  border-radius: 1px;
}
.energy-flow-node-art.grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.energy-flow-turbines { display: flex; gap: 4px; align-items: flex-end; }
.energy-flow-turbine {
  width: 3px;
  height: 14px;
  background: #94a3b8;
  border-radius: 1px;
  position: relative;
}
.energy-flow-turbine::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid #94a3b8;
  border-top-color: transparent;
  animation: spin 2s linear infinite;
}
.energy-flow-turbine.sm { height: 10px; opacity: 0.7; }
@keyframes spin { to { transform: translateX(-50%) rotate(360deg); } }
.energy-flow-ring-foot {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.energy-flow-community-kicker {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--faint);
  text-transform: uppercase;
}
.energy-flow-info-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.energy-flow-info-btn:hover { border-color: var(--primary); background: var(--primary-tint); }
.energy-flow-community-info {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--muted);
}

/* live energy flow (sonnen-style list — legacy) */
.live-energy-flow { padding: 22px 24px; }
.live-energy-flow-stage {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 20px auto 8px;
  height: 320px;
}
.live-energy-flow-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.live-energy-flow-line {
  stroke: var(--primary);
  stroke-width: 2;
  stroke-dasharray: 6 8;
  opacity: 0.55;
  animation: flowDash 1.2s linear infinite;
}
@keyframes flowDash { to { stroke-dashoffset: -28; } }
.live-energy-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 88px;
  transform: translate(-50%, -50%);
}
.live-energy-node-pv { left: 50%; top: 15%; }
.live-energy-node-home { left: 15%; top: 62%; }
.live-energy-node-grid { left: 85%; top: 62%; }
.live-energy-node-battery { left: 50%; top: 85%; }
.live-energy-node-icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 2px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
.live-energy-node-label { font-size: 12px; font-weight: 700; color: var(--muted); }
.live-energy-node-value { font-size: 13.5px; font-weight: 800; }
.live-energy-flow-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.live-energy-flow-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--surface-2);
}

/* 3D control board switches */
.energy-control-board { padding: 22px 24px; }
.energy-control-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.xolaar-switch-3d {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #0e1118 0%, #1a1f2a 100%);
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s, transform .15s;
}
.xolaar-switch-3d:hover:not(.disabled) { border-color: rgba(255, 255, 255, 0.28); transform: translateY(-1px); }
.xolaar-switch-3d.on { border-color: rgba(255, 255, 255, 0.28); box-shadow: none; }
.xolaar-switch-3d.disabled { opacity: 0.65; cursor: wait; }
.xolaar-switch-housing { position: relative; flex-shrink: 0; }
.xolaar-switch-bezel {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: linear-gradient(160deg, #2a3038 0%, #12151a 100%);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 2px 4px rgba(255,255,255,.08), 0 6px 16px rgba(0,0,0,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.xolaar-switch-track {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 18px;
  border-radius: 999px;
  background: #0a0c10;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: inset 0 2px 6px rgba(0,0,0,.5);
}
.xolaar-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #888 0%, #555 100%);
  box-shadow: 0 2px 4px rgba(0,0,0,.4);
  transition: left .22s cubic-bezier(.4,0,.2,1), background .2s;
}
.xolaar-switch-3d.on .xolaar-switch-thumb {
  left: 20px;
  background: linear-gradient(180deg, #f4f6fb 0%, #d7dde8 100%);
}
.xolaar-switch-glow {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  opacity: 0;
  background: radial-gradient(circle at 70% 50%, rgba(255,255,255,.18) 0%, transparent 70%);
  transition: opacity .2s;
  pointer-events: none;
}
.xolaar-switch-3d.on .xolaar-switch-glow { opacity: 1; }
.xolaar-switch-icon { position: relative; z-index: 1; margin-bottom: 8px; }
.xolaar-switch-led {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #444;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.4);
}
.xolaar-switch-3d.on .xolaar-switch-led {
  background: #e8ecf4;
  box-shadow: 0 0 6px rgba(255,255,255,.35);
}
.xolaar-switch-label { font-weight: 800; font-size: 14px; }
.xolaar-switch-sub { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 4px; font-weight: 600; line-height: 1.35; }
.xolaar-switch-state {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  color: rgba(255,255,255,.35);
}
.xolaar-switch-state.on { color: rgba(255,255,255,.88); }

.vendor-inv-row { display: grid; grid-template-columns: 2fr 1fr 1.4fr 1fr 1fr .9fr; align-items: center; padding: 15px 22px; min-width: 640px; }
.vendor-inv-head { padding: 14px 22px; background: var(--surface-2); font-size: 12px; font-weight: 800; letter-spacing: .04em; color: var(--faint); text-transform: uppercase; }
.vendor-pos-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: start;
}
.vendor-pos-catalog {
  min-width: 0;
}
.vendor-pos-toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}
.vendor-pos-search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
.vendor-pos-search input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  outline: none;
}
.vendor-pos-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.vendor-pos-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
  min-width: 0;
}
.vendor-pos-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto 40px;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
  width: 100%;
}
.vendor-pos-row:last-child { border-bottom: none; }
.vendor-pos-row.is-in-ticket { background: var(--surface-2); }
button.vendor-pos-row {
  width: 100%;
  border: none;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: inherit;
}
button.vendor-pos-row.is-in-ticket { background: var(--surface-2); }
.vendor-pos-row-copy { min-width: 0; }
.vendor-pos-row-name {
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1.3;
  color: var(--ink);
}
.vendor-pos-row-meta {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 2px;
}
.vendor-pos-row-price {
  font-weight: 800;
  font-size: 13.5px;
  color: var(--ink);
  white-space: nowrap;
}
.vendor-pos-add {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}
.vendor-pos-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
.vendor-pos-row.vendor-inv-sku {
  grid-template-columns: 48px minmax(0, 1fr) auto auto;
  min-width: 0;
}
.vendor-pos-row.vendor-tx-row {
  grid-template-columns: 48px minmax(0, 1fr);
}
.vendor-pos-row.vendor-order-row,
.vendor-pos-row.vendor-book-row,
.vendor-pos-row.vendor-client-row {
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: start;
  padding: 12px 14px;
}
.vendor-pos-row.vendor-order-row .vendor-pos-row-extra,
.vendor-pos-row.vendor-book-row .vendor-pos-row-extra,
.vendor-pos-row.vendor-client-row .vendor-pos-row-extra {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 120px;
}
@media (max-width: 760px) {
  .vendor-pos-row.vendor-inv-sku {
    grid-template-columns: 48px minmax(0, 1fr) auto;
  }
  .vendor-pos-row.vendor-order-row,
  .vendor-pos-row.vendor-book-row,
  .vendor-pos-row.vendor-client-row {
    grid-template-columns: 40px minmax(0, 1fr);
  }
  .vendor-pos-row.vendor-order-row .vendor-pos-row-extra,
  .vendor-pos-row.vendor-book-row .vendor-pos-row-extra,
  .vendor-pos-row.vendor-client-row .vendor-pos-row-extra {
    grid-column: 2;
    align-items: flex-start;
  }
}
.vendor-pos-prefill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
}
.vendor-pos-prefill strong { color: var(--ink); }
.vendor-pos-ticket {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
}
.vendor-pos-ticket-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}
.vendor-pos-ticket-head span:last-child {
  font-weight: 600;
  color: var(--muted);
}
.vendor-pos-ticket-empty {
  margin: 0;
  padding: 28px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.45;
}
.vendor-pos-ticket-lines {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
.vendor-pos-ticket-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.vendor-pos-ticket-name {
  font-weight: 700;
  font-size: 13px;
  line-height: 1.3;
}
.vendor-pos-ticket-unit {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 2px;
}
.vendor-pos-stepper {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.vendor-pos-stepper button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}
.vendor-pos-stepper span {
  min-width: 22px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}
.vendor-pos-ticket-totals {
  margin-top: auto;
  padding: 14px 16px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vendor-pos-total-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}
.vendor-pos-total-row.is-grand {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ink);
  padding-top: 6px;
}
.vendor-pos-complete {
  width: 100%;
  height: 44px !important;
  margin-top: 6px;
  padding: 0 14px !important;
  font-size: 14px !important;
  box-shadow: none !important;
}
@media (max-width: 960px) {
  .vendor-pos-layout {
    grid-template-columns: 1fr;
  }
  .vendor-pos-ticket {
    position: static;
  }
}
.vendor-client-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  height: 44px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
}
.vendor-client-search input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  outline: none;
}
.vendor-client-dropdown {
  padding: 6px;
  margin-top: -4px;
  max-height: 240px;
  overflow-y: auto;
}
.vendor-client-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: none;
  background: transparent;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background .12s var(--ease);
}
.vendor-client-option:hover { background: var(--surface-2); }

.install-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
}
.install-type-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.install-type-card:hover:not(:disabled) {
  border-color: var(--primary);
  background: var(--primary-tint);
}
.install-type-card.is-selected {
  border-color: var(--primary);
  background: var(--primary-tint);
}

.client-contact-row-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  align-items: end;
}

.install-grade-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.install-grade-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 16px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.install-grade-card:hover {
  border-color: var(--primary);
  background: var(--surface-2);
}
.install-grade-card.is-selected {
  border-color: var(--primary);
  background: var(--primary-tint);
}
.install-grade-card.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.install-grade-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}
.install-type-card:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.install-ref-thumb-wrap {
  position: relative;
  width: 88px;
  height: 88px;
  flex-shrink: 0;
}
.install-ref-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line-2);
}
.install-ref-thumb-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  height: 26px !important;
  width: 26px !important;
  padding: 0 !important;
  min-width: 0;
}
.install-ref-add {
  width: 88px;
  height: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}


.vendor-pos-add:hover {
  background: var(--surface-3);
  border-color: var(--line-2);
}
.vendor-pos-add:active { transform: none; }

.vendor-pos-cart {
  padding: 0;
}
.vendor-order-card .vendor-order-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  flex-shrink: 0;
  min-width: 148px;
}
.vendor-order-card .vendor-order-actions .wbtn {
  width: 100%;
  margin-top: 0 !important;
  justify-content: center;
}
.vendor-order-price {
  text-align: right;
  margin-bottom: 4px;
}
.dash-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: -8px;
  margin-bottom: 4px;
}
.dash-empty {
  padding: 32px 24px;
  text-align: center;
}
.dash-empty-desc {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  max-width: 420px;
  line-height: 1.45;
}
.dash-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.dash-empty-compact {
  padding: 24px !important;
}

/* Installer portal — blueprints, map, academy */
.installer-blueprint-wrap {
  padding: 16px 18px 18px;
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
}
.installer-blueprint-kicker {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--faint);
  text-transform: uppercase;
}
.installer-blueprint-title {
  font-weight: 800;
  font-size: 14px;
  margin-top: 4px;
  margin-bottom: 12px;
}
.installer-blueprint-svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-md);
}
.installer-job-map .fleet-leaflet-map,
.installer-job-map-loading {
  height: min(36vh, 260px);
  min-height: 220px;
  border-radius: var(--r-md);
  overflow: hidden;
}
.fleet-risk-banner {
  padding: 16px 18px;
  align-items: center;
  flex-wrap: wrap;
  background: var(--solar-tint);
  border: 1.5px solid var(--solar);
}
.fleet-risk-banner-muted {
  background: var(--surface-2);
  border-color: var(--line);
}
.fleet-risk-bell {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: fleetRiskBell 1.8s ease-in-out infinite;
}
.fleet-risk-banner-muted .fleet-risk-bell {
  animation: none;
  opacity: 0.55;
}
.fleet-risk-bell-still {
  animation: none !important;
}
.fleet-alarm-silence-btn {
  animation: fleetAlarmPulse 1.2s ease-in-out infinite;
}
@keyframes fleetAlarmPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 165, 36, 0.45); }
  50% { box-shadow: 0 0 0 8px rgba(245, 165, 36, 0); }
}
@keyframes fleetRiskBell {
  0%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(-12deg); }
  20% { transform: rotate(12deg); }
  30% { transform: rotate(-8deg); }
  40% { transform: rotate(8deg); }
  50% { transform: rotate(0deg); }
}
.chip-fleet-risk-alert:not(.active) {
  border-color: var(--solar);
  background: var(--solar-tint);
}
.fleet-risk-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--solar);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
}
.fleet-alarm-active {
  border-color: var(--solar);
  background: var(--solar-tint);
}

.installer-job-card {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  padding: 18px;
  border: none;
  font-family: inherit;
}
.installer-job-date {
  width: 64px;
  padding: 10px 0;
  border-radius: var(--r-md);
  background: var(--surface-2);
  flex-shrink: 0;
}
.installer-job-date[data-today="true"] {
  background: var(--primary);
}
.installer-job-date-month {
  font-size: 11px;
  font-weight: 700;
  color: var(--faint);
}
.installer-job-date[data-today="true"] .installer-job-date-month {
  color: rgba(255, 255, 255, 0.8);
}
.installer-job-date-day {
  font-size: 22px;
  color: var(--ink);
}
.installer-job-date[data-today="true"] .installer-job-date-day {
  color: #fff;
}
.installer-status-banner {
  align-items: center;
}
.installer-status-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--eco-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.installer-job-drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(5, 8, 18, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: flex-end;
  animation: fadeUp 0.2s var(--ease);
}
.installer-job-drawer-panel {
  width: min(620px, 96vw);
  height: 100%;
  background: var(--bg);
  overflow-y: auto;
  animation: slideIn 0.3s var(--ease);
}

/* Installer portal — open bid marketplace */
.installer-bid-card {
  padding: 0;
  overflow: hidden;
}
.installer-bid-body {
  padding: 18px 20px;
}
.installer-bid-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.installer-bid-title-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.installer-bid-id {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.installer-bid-client {
  font-weight: 700;
  font-size: 14.5px;
  margin-top: 8px;
  color: var(--ink);
}
.installer-bid-sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 600;
  line-height: 1.45;
}
.installer-bid-meta {
  text-align: right;
  flex-shrink: 0;
}
.installer-bid-meta-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.installer-bid-meta-date {
  font-size: 12px;
  color: var(--faint);
  margin-top: 2px;
  font-weight: 600;
}
.installer-bid-low {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 6px;
}
.installer-bid-low .tnum {
  font-weight: 800;
  color: var(--eco-d);
}
.installer-bid-scope {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.installer-bid-foot {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.installer-bid-form {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}
@media (max-width: 640px) {
  .installer-bid-head {
    flex-direction: column;
    gap: 10px;
  }
  .installer-bid-meta {
    text-align: left;
  }
  .installer-bid-foot {
    justify-content: stretch;
  }
  .installer-bid-foot .wbtn {
    flex: 1;
  }
}
.installer-job-drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}
.installer-job-drawer-tabs {
  padding: 16px 28px 0;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 2;
}
.installer-job-drawer-body {
  padding: 28px;
}
.installer-safety-check {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  padding: 13px 14px;
  border-top: 1px solid var(--line);
  font-family: Manrope, sans-serif;
}
.installer-safety-check:first-child {
  border-top: none;
}
.installer-academy-card {
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
  padding: 18px;
  border: none;
  font-family: inherit;
}
.installer-academy-thumb {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--primary-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.installer-academy-bar {
  height: 5px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
}
.installer-academy-bar > div {
  height: 100%;
  border-radius: 999px;
  background: var(--eco);
  transition: width 0.35s var(--ease);
}
.installer-academy-modal {
  padding: 24px;
  max-width: 520px;
  width: 100%;
  max-height: min(85vh, 640px);
  overflow-y: auto;
}
.installer-academy-lesson {
  padding: 24px;
  max-width: 560px;
  width: 100%;
  max-height: min(90vh, 720px);
  overflow-y: auto;
}
.installer-lesson-video {
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--navy);
}
.installer-lesson-video-screen {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a1628, #1a3a6b);
  position: relative;
}
.installer-lesson-video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.installer-lesson-play-btn {
  position: relative;
  z-index: 2;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}
.installer-lesson-play-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}
.installer-lesson-progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
}
.installer-lesson-progress > div {
  height: 100%;
  background: var(--eco);
  transition: width 0.35s var(--ease);
}

.installer-face-photo-zone {
  width: 140px;
  height: 168px;
  border-radius: 14px;
  border: 2px dashed var(--line-2);
  background: var(--surface-2);
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.installer-face-photo-zone:hover:not(:disabled) {
  border-color: var(--primary);
  background: var(--primary-tint);
}
.installer-face-photo-zone:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.installer-face-photo-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.installer-face-photo-frame {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px dashed var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-tint);
}

.installer-doc-upload-zone {
  width: 100%;
  border-radius: 14px;
  border: 2px dashed var(--line-2);
  background: var(--surface-2);
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.installer-doc-upload-zone:hover:not(:disabled) {
  border-color: var(--primary);
  background: var(--primary-tint);
}
.installer-doc-upload-zone:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.installer-doc-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface-3);
}
.installer-doc-thumb-pdf {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-2);
}

/* XQ Academy lesson type thumbnails */
.academy-lesson-thumb {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(5, 8, 18, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px;
}
.academy-lesson-thumb--sm {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  padding: 6px;
}
.academy-lesson-thumb-inner {
  width: 100%;
  height: 100%;
  border-radius: 11px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.academy-lesson-thumb--completed .academy-lesson-thumb-inner {
  background: var(--eco-tint);
}
.academy-lesson-thumb--video {
  width: 88px;
  padding: 0;
  overflow: hidden;
  position: relative;
}
.academy-lesson-thumb--video.academy-lesson-thumb--sm {
  width: 72px;
  height: 44px;
}
.academy-lesson-thumb-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, #0a1628, #1a3a6b);
}
.academy-lesson-thumb-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 8, 18, 0.28);
}
.academy-lesson-thumb--quiz .academy-lesson-thumb-inner {
  background: linear-gradient(145deg, var(--primary-tint), var(--surface-2));
}
.academy-course-thumb {
  flex-shrink: 0;
  align-items: center;
}
.academy-course-thumb--card {
  width: 100%;
  height: 100%;
  display: block;
}
.academy-course-thumb--card .academy-lesson-thumb {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}
.academy-lesson-thumb--card {
  width: 100%;
  height: 100%;
  min-height: 100%;
  border-radius: 0;
  padding: 0;
}
.academy-lesson-thumb--card .academy-lesson-thumb-inner {
  width: 100%;
  height: 100%;
  border-radius: 0;
  min-height: 160px;
}
.academy-lesson-thumb--video.academy-lesson-thumb--card {
  width: 100%;
  height: 100%;
  min-height: 160px;
}
.academy-lesson-thumb--video.academy-lesson-thumb--card .academy-lesson-thumb-video {
  min-height: 160px;
}
.academy-quiz-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.vendor-catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.vendor-catalog-search {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  height: 44px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
}
.vendor-catalog-search input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  outline: none;
}
.vendor-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.vendor-catalog-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  text-align: left;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.vendor-catalog-card:hover { border-color: var(--primary); }
.vendor-catalog-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  display: flex;
  overflow: hidden;
}
.vendor-catalog-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.vendor-catalog-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}
.vendor-product-image-zone {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: start;
}
.vendor-product-image-btn {
  width: 140px;
  height: 140px;
  border-radius: var(--r-md);
  border: 1px dashed var(--line);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s var(--ease);
}
.vendor-product-image-btn:hover { border-color: var(--primary); }
.vendor-product-image-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 520px) {
  .vendor-product-image-zone { grid-template-columns: 1fr; }
  .vendor-product-image-btn { width: 100%; height: 180px; }
}

/* fleet map — Tesla-grade live telemetry */
.fleet-map-wrap { min-height: 320px; border-radius: var(--r-lg); border: 1px solid rgba(255,255,255,.06); background: #070b14; box-shadow: 0 24px 64px rgba(5,8,18,.35), inset 0 1px 0 rgba(255,255,255,.04); }
.fleet-map-stage { position: relative; overflow: hidden; }
.fleet-map-wrap.wcard { padding: 0; }

.fleet-leaflet-map { height: min(56vh, 520px); width: 100%; z-index: 1; background: #0a0f1a !important; font-family: 'Manrope', system-ui, sans-serif; }
.tesla-map-compact .fleet-leaflet-map,
.tesla-map-compact .fleet-map-canvas { height: min(38vh, 300px); min-height: 240px; }
.tesla-map-site .fleet-leaflet-map,
.tesla-map-site .fleet-map-canvas { height: min(44vh, 400px); }

.fleet-map-vignette { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(ellipse 85% 75% at 50% 50%, transparent 35%, rgba(4,7,14,.55) 100%),
              linear-gradient(180deg, rgba(4,7,14,.35) 0%, transparent 18%, transparent 78%, rgba(4,7,14,.5) 100%); }

.fleet-map-hud { position: absolute; top: 14px; left: 14px; right: 14px; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; pointer-events: none; }
.fleet-map-hud-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fleet-map-live-pill { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: .08em; color: rgba(255,255,255,.55);
  background: rgba(8,12,22,.72); border: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.fleet-map-live-pill.on { color: #8ff0c4; border-color: rgba(61,214,140,.35); box-shadow: 0 0 24px rgba(61,214,140,.12); }
.fleet-map-live-dot { width: 7px; height: 7px; border-radius: 999px; background: currentColor; opacity: .5; }
.fleet-map-live-pill.on .fleet-map-live-dot { background: #3dd68c; opacity: 1; animation: teslaLivePulse 1.8s ease-in-out infinite; }
.fleet-map-hud-stat { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.82);
  padding: 8px 12px; border-radius: 999px; background: rgba(8,12,22,.65); border: 1px solid rgba(255,255,255,.06); backdrop-filter: blur(12px); }
.fleet-map-hud-stat.muted { color: rgba(255,255,255,.45); font-weight: 600; }

.fleet-map-legend { position: absolute; left: 14px; bottom: 14px; z-index: 4; display: flex; flex-wrap: wrap; gap: 12px; pointer-events: none;
  padding: 10px 14px; border-radius: var(--r-md); background: rgba(8,12,22,.72); border: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(16px); }
.fleet-map-legend span { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; color: rgba(255,255,255,.65); }
.fleet-map-legend .leg { width: 8px; height: 8px; border-radius: 999px; display: inline-block; box-shadow: 0 0 10px currentColor; }
.fleet-map-legend .leg.online { background: #3dd68c; color: #3dd68c; }
.fleet-map-legend .leg.alert { background: #f5a524; color: #f5a524; }
.fleet-map-legend .leg.warn { background: #e8b84a; color: #e8b84a; }
.fleet-map-legend .leg.offline { background: #e5484d; color: #e5484d; }

.fleet-map-site-chip { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 4; pointer-events: none;
  padding: 16px 18px; border-radius: var(--r-md); background: rgba(8,12,22,.78); border: 1px solid rgba(61,214,140,.2);
  backdrop-filter: blur(18px); box-shadow: 0 12px 40px rgba(0,0,0,.35); }
.fleet-map-site-chip-title { font-weight: 800; font-size: 15px; color: #fff; }
.fleet-map-site-chip-sub { font-size: 12.5px; color: rgba(255,255,255,.55); margin-top: 3px; font-weight: 600; }
.fleet-map-site-chip-live { font-size: 13px; font-weight: 800; color: #8ff0c4; margin-top: 8px; letter-spacing: .02em; }

/* schematic fallback canvas */
.fleet-map-canvas { position: relative; height: min(56vh, 520px); background: radial-gradient(ellipse 120% 90% at 50% 110%, #1a3d5c 0%, #0a1628 42%, #070b14 100%); overflow: hidden; }
.fleet-map-grid { position: absolute; inset: 0; opacity: .08; background-image: linear-gradient(rgba(126,200,255,.2) 1px, transparent 1px), linear-gradient(90deg, rgba(126,200,255,.2) 1px, transparent 1px); background-size: 56px 56px; }
.fleet-map-coast { position: absolute; inset: 10% 8% 12% 10%; border: 1.5px solid rgba(61,214,140,.18); border-radius: 42% 58% 52% 48% / 38% 42% 58% 62%; pointer-events: none; box-shadow: inset 0 0 60px rgba(61,214,140,.06); }
.fleet-map-scanline { position: absolute; inset: 0; opacity: .04; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,.35) 2px, rgba(255,255,255,.35) 3px); }

/* Tesla map pins (leaflet + schematic) */
.fleet-map-pin, .fleet-leaflet-pin .tesla-map-pin { position: absolute; transform: translate(-50%, -50%); border: none; background: none; cursor: pointer; padding: 0; z-index: 3; width: 48px; height: 48px; }
.fleet-leaflet-pin { background: transparent !important; border: none !important; }
.tesla-map-pin .tesla-map-pin-core { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 999px;
  background: #3dd68c; border: 2px solid rgba(255,255,255,.95); box-shadow: 0 0 16px rgba(61,214,140,.55), 0 4px 12px rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center; transition: transform .2s var(--ease), width .2s, height .2s, margin .2s; }
.tesla-map-pin .tesla-map-pin-ring { position: absolute; inset: 10px; border-radius: 999px; border: 1.5px solid rgba(61,214,140,.45); opacity: .7; }
.tesla-map-pin .tesla-map-pin-ripple { position: absolute; inset: 4px; border-radius: 999px; border: 1px solid rgba(61,214,140,.35); opacity: 0; }
.tesla-map-pin.live .tesla-map-pin-ripple { animation: teslaPinRipple 2.4s ease-out infinite; }
.tesla-map-pin.live .tesla-map-pin-core { animation: teslaPinBreathe 2.8s ease-in-out infinite; }
.tesla-map-pin.selected { z-index: 6; }
.tesla-map-pin.selected .tesla-map-pin-core { width: 18px; height: 18px; margin: -9px 0 0 -9px; }
.tesla-map-pin.selected .tesla-map-pin-ring { inset: 6px; border-width: 2px; opacity: 1; }
.tesla-map-pin.warn .tesla-map-pin-core, .tesla-map-pin.warn .tesla-map-pin-ring { border-color: rgba(245,165,36,.8); background: #f5a524; box-shadow: 0 0 16px rgba(245,165,36,.45); }
.tesla-map-pin.warn.live .tesla-map-pin-ripple { border-color: rgba(245,165,36,.4); animation-name: teslaPinRippleWarn; }
.tesla-map-pin.alert .tesla-map-pin-core, .tesla-map-pin.alert .tesla-map-pin-ring { border-color: rgba(245,165,36,.7); background: #e8a020; }
.tesla-map-pin.offline .tesla-map-pin-core { background: #6b7280; box-shadow: 0 0 8px rgba(0,0,0,.4); border-color: rgba(255,255,255,.5); }
.tesla-map-pin.offline .tesla-map-pin-ring { border-color: rgba(229,72,77,.35); opacity: .5; }
.tesla-map-pin.offline.live .tesla-map-pin-ripple, .tesla-map-pin.offline .tesla-map-pin-ripple { animation: none; opacity: 0; }
.tesla-map-schematic .tesla-map-pin-core { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
.tesla-map-schematic .tesla-map-pin-core .ms { transform: none; }

/* Leaflet dark chrome overrides */
.tesla-map .leaflet-control-zoom { border: none !important; box-shadow: 0 8px 28px rgba(0,0,0,.35) !important; border-radius: var(--r-sm) !important; overflow: hidden; margin: 0 14px 14px 0 !important; }
.tesla-map .leaflet-control-zoom a { width: 36px !important; height: 36px !important; line-height: 36px !important; font-size: 18px !important; font-weight: 700 !important;
  background: rgba(8,12,22,.78) !important; color: rgba(255,255,255,.75) !important; border: 1px solid rgba(255,255,255,.1) !important; border-bottom: none !important; }
.tesla-map .leaflet-control-zoom a:last-child { border-bottom: 1px solid rgba(255,255,255,.1) !important; border-radius: 0 0 var(--r-sm) var(--r-sm); }
.tesla-map .leaflet-control-zoom a:first-child { border-radius: var(--r-sm) var(--r-sm) 0 0; }
.tesla-map .leaflet-control-zoom a:hover { background: rgba(20,28,48,.92) !important; color: #8ff0c4 !important; }
.tesla-map .leaflet-control-attribution { background: rgba(8,12,22,.55) !important; color: rgba(255,255,255,.35) !important; font-size: 10px !important; font-weight: 600; backdrop-filter: blur(8px); border-radius: 8px 0 0 0; padding: 4px 8px !important; }
.tesla-map .leaflet-control-attribution a { color: rgba(143,240,196,.7) !important; }
.leaflet-container a.leaflet-popup-close-button { color: rgba(255,255,255,.6) !important; font-size: 20px !important; padding: 10px 12px 0 0 !important; }
.leaflet-container a.leaflet-popup-close-button:hover { color: #fff !important; }
.tesla-map-popup .leaflet-popup-content-wrapper { background: transparent !important; box-shadow: none !important; padding: 0 !important; border-radius: 0 !important; }
.tesla-map-popup .leaflet-popup-content { margin: 0 !important; width: auto !important; min-width: 200px; }
.tesla-map-popup .leaflet-popup-tip-container { display: none; }
.tesla-popup-card { padding: 14px 16px; border-radius: var(--r-md); background: rgba(8,12,22,.88); border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(18px); box-shadow: 0 16px 48px rgba(0,0,0,.45); color: #fff; }
.tesla-popup-kicker { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; color: rgba(255,255,255,.45); text-transform: uppercase; }
.tesla-popup-title { font-weight: 800; font-size: 15px; margin-top: 4px; }
.tesla-popup-meta { font-size: 12px; color: rgba(255,255,255,.55); margin-top: 2px; font-weight: 600; }
.tesla-popup-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; font-size: 11.5px; font-weight: 700; color: rgba(255,255,255,.7); }
.tesla-popup-stats .live { color: #8ff0c4; letter-spacing: .06em; }
.tesla-popup-stats .off { color: #f87171; letter-spacing: .06em; }
.tesla-popup-dot { width: 3px; height: 3px; border-radius: 999px; background: rgba(255,255,255,.35); }

.fleet-map-loading-wrap { min-height: 280px; }
.fleet-map-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  color: rgba(255,255,255,.5); font-weight: 700; font-size: 13px; letter-spacing: .04em; background: #0a0f1a; }
.fleet-map-loading-pulse { width: 36px; height: 36px; border-radius: 999px; border: 2px solid rgba(61,214,140,.25); border-top-color: #3dd68c; animation: spin .9s linear infinite; }

/* Energy tab — light OSM so the map does not stack another black surface against dark cards */
.tesla-map.tesla-map-light {
  background: #f4f6fb;
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
}
.tesla-map.tesla-map-light .fleet-leaflet-map {
  background: #eef1f7 !important;
}
.tesla-map.tesla-map-light .fleet-map-vignette {
  background:
    linear-gradient(180deg, rgba(255,255,255,.28) 0%, transparent 16%, transparent 78%, rgba(238,241,247,.45) 100%);
}
.tesla-map.tesla-map-light .fleet-map-live-pill {
  color: var(--muted);
  background: rgba(255,255,255,.88);
  border-color: var(--line);
  box-shadow: 0 6px 18px rgba(20, 26, 46, .08);
}
.tesla-map.tesla-map-light .fleet-map-live-pill.on {
  color: var(--ink);
  border-color: var(--line);
  box-shadow: 0 6px 18px rgba(20, 26, 46, .08);
}
.tesla-map.tesla-map-light .fleet-map-live-pill.on .fleet-map-live-dot {
  background: #0a1628;
  animation: none;
}
.tesla-map.tesla-map-light .fleet-map-hud-stat {
  color: var(--ink);
  background: rgba(255,255,255,.88);
  border-color: var(--line);
}
.tesla-map.tesla-map-light .fleet-map-hud-stat.muted { color: var(--muted); }
.tesla-map.tesla-map-light .fleet-map-site-chip {
  background: rgba(255,255,255,.94);
  border-color: var(--line);
  box-shadow: 0 12px 32px rgba(20, 26, 46, .12);
}
.tesla-map.tesla-map-light .fleet-map-site-chip-title { color: var(--ink); }
.tesla-map.tesla-map-light .fleet-map-site-chip-sub { color: var(--muted); }
.tesla-map.tesla-map-light .fleet-map-site-chip-live { color: var(--ink); }
.tesla-map.tesla-map-light .leaflet-control-zoom {
  box-shadow: 0 8px 22px rgba(20, 26, 46, .12) !important;
}
.tesla-map.tesla-map-light .leaflet-control-zoom a {
  background: #fff !important;
  color: var(--ink) !important;
  border: 1px solid var(--line) !important;
  border-bottom: none !important;
}
.tesla-map.tesla-map-light .leaflet-control-zoom a:last-child {
  border-bottom: 1px solid var(--line) !important;
}
.tesla-map.tesla-map-light .leaflet-control-zoom a:hover {
  background: #f4f6fb !important;
  color: var(--primary) !important;
}
.tesla-map.tesla-map-light .leaflet-control-attribution {
  background: rgba(255,255,255,.72) !important;
  color: var(--faint) !important;
}
.tesla-map.tesla-map-light .leaflet-control-attribution a { color: var(--muted) !important; }
.tesla-map.tesla-map-light .tesla-popup-card {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
  box-shadow: 0 16px 40px rgba(20, 26, 46, .16);
}
.tesla-map.tesla-map-light .tesla-popup-kicker,
.tesla-map.tesla-map-light .tesla-popup-meta { color: var(--muted); }
.tesla-map.tesla-map-light .tesla-popup-stats { color: var(--muted); }
.tesla-map.tesla-map-light .tesla-popup-stats .live { color: var(--eco-d); }
.tesla-map.tesla-map-light .leaflet-container a.leaflet-popup-close-button { color: var(--muted) !important; }
.tesla-map.tesla-map-light .leaflet-container a.leaflet-popup-close-button:hover { color: var(--ink) !important; }
.tesla-map.tesla-map-light .tesla-map-pin-core {
  background: #0a1628;
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(10, 22, 40, 0.12), 0 4px 12px rgba(20, 26, 46, 0.18);
}
.tesla-map.tesla-map-light .tesla-map-pin-ring,
.tesla-map.tesla-map-light .tesla-map-pin-ripple {
  border-color: rgba(10, 22, 40, 0.28);
}
.tesla-map.tesla-map-light .tesla-map-pin.warn .tesla-map-pin-core,
.tesla-map.tesla-map-light .tesla-map-pin.alert .tesla-map-pin-core {
  background: #0a1628;
  box-shadow: 0 4px 12px rgba(20, 26, 46, 0.18);
}

.dt-row { display: grid; grid-template-columns: 1.2fr 1fr .9fr .8fr .8fr .7fr; align-items: center; padding: 14px 22px; min-width: 720px; }
.dt-head { background: var(--surface-2); font-size: 12px; font-weight: 800; letter-spacing: .04em; color: var(--faint); text-transform: uppercase; }
.dt-row-btn { width: 100%; text-align: left; cursor: pointer; background: var(--surface); border: none; font-family: 'Manrope'; transition: background .12s; }
.dt-row-btn:hover { background: var(--surface-2); }

/* ============================================================
   Tesla Powerwall design language
   Black canvas · white type · blue CTAs · green = energy data only
   ============================================================ */
.tesla-mp-root, .tesla-land, .tesla-svc-page {
  --tesla-bg: #000000;
  --tesla-text: #ffffff;
  --tesla-muted: rgba(255, 255, 255, 0.55);
  --tesla-faint: rgba(255, 255, 255, 0.35);
  --tesla-blue: #3e6ae1;
  --tesla-blue-d: #3457b1;
  --tesla-blue-soft: rgba(62, 106, 225, 0.14);
  --tesla-energy: #00d46a;
  --tesla-energy-soft: rgba(0, 212, 106, 0.12);
  --tesla-line: rgba(255, 255, 255, 0.12);
  --tesla-line-subtle: rgba(255, 255, 255, 0.06);
  --tesla-btn-h: 48px;
  --tesla-btn-radius: 999px;
}

/* Tesla-grade services marketplace */
.tesla-svc-page { position: relative; margin: -8px -22px 0; padding: 8px 22px 36px;
  border-radius: 0; background: var(--tesla-bg); color: var(--tesla-text); }
.tesla-svc-page .tesla-svc-hero { background: transparent; box-shadow: none; border: none; }
.tesla-svc-page .tesla-svc-quick-title { color: #fff; }
.tesla-svc-page .tesla-svc-kicker { color: rgba(255,255,255,.4); }
.tesla-svc-hero { position: relative; border-radius: 0; overflow: hidden; background: transparent; border: none; box-shadow: none; }
.tesla-svc-hero-glow-a { position: absolute; top: -45%; right: -15%; width: 55%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(62,106,225,.12) 0%, transparent 68%); pointer-events: none; }
.tesla-svc-hero-glow-b { position: absolute; bottom: -50%; left: -10%; width: 45%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,106,.06) 0%, transparent 70%); pointer-events: none; }
.tesla-svc-hero-inner { position: relative; padding: 40px 0 32px; z-index: 1; }
.tesla-svc-hero-title { font-family: 'Gotham', 'Sora', 'Manrope', sans-serif; font-size: clamp(32px, 4.5vw, 48px); font-weight: 600;
  color: var(--tesla-text); margin: 16px 0 0; letter-spacing: -.02em; line-height: 1.05; }
.tesla-svc-hero-sub { font-size: 15px; color: var(--tesla-muted); margin-top: 12px; max-width: 520px; line-height: 1.55; font-weight: 400; }
.tesla-svc-kicker { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--tesla-faint); }
.tesla-svc-live-pill { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: var(--tesla-btn-radius);
  font-size: 10px; font-weight: 600; letter-spacing: .1em; color: var(--tesla-muted); text-transform: uppercase;
  background: transparent; border: 1px solid var(--tesla-line); }
.tesla-svc-live-pill.hero { margin-bottom: 4px; }
.tesla-svc-live-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--tesla-energy); animation: teslaLivePulse 1.8s ease-in-out infinite; }
.tesla-svc-stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; padding-top: 32px;
  border-top: 1px solid var(--tesla-line-subtle); }
.tesla-svc-stat { display: flex; flex-direction: column; gap: 6px; padding: 0; background: transparent; border: none; }
.tesla-svc-stat .ms { display: none; }
.tesla-svc-stat-val { font-weight: 600; font-size: clamp(22px, 3vw, 32px); color: var(--tesla-text); line-height: 1; letter-spacing: -.02em; }
.tesla-svc-stat-lbl { font-size: 11px; font-weight: 500; color: var(--tesla-faint); margin-top: 0; letter-spacing: .04em; text-transform: uppercase; }
.tesla-svc-tabs { display: flex; gap: 4px; padding: 0; border-radius: 0; background: transparent;
  border: none; border-bottom: 1px solid var(--tesla-line-subtle); width: 100%; max-width: 100%; flex-wrap: wrap; padding-bottom: 0; }
.tesla-svc-tab { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 4px 12px; margin-right: 20px;
  border: none; border-bottom: 2px solid transparent; border-radius: 0; cursor: pointer; font-family: 'Manrope'; font-weight: 500; font-size: 14px;
  color: var(--tesla-muted); background: transparent; transition: color .15s, border-color .15s; white-space: nowrap; margin-bottom: -1px; }
.tesla-svc-tab.active { background: transparent; color: var(--tesla-text); border-bottom-color: var(--tesla-blue); box-shadow: none; }
.tesla-mp-hero-shop .tesla-svc-hero-glow-a { background: radial-gradient(circle, rgba(62,106,225,.14) 0%, transparent 68%); }
.tesla-mp-hero-shop .tesla-svc-hero-glow-b { background: radial-gradient(circle, rgba(0,212,106,.05) 0%, transparent 70%); }
.tesla-svc-live-pill.shop { color: var(--tesla-muted); border-color: var(--tesla-line); }
.tesla-svc-live-pill.shop .tesla-svc-live-dot { background: var(--tesla-blue); }
.tesla-mp-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; width: 100%; }
.tesla-mp-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-left: auto; }
.tesla-mp-tab-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; font-size: 11px; font-weight: 800;
  background: rgba(255,255,255,.1); color: rgba(255,255,255,.7); display: inline-flex; align-items: center; justify-content: center; }
.tesla-svc-tab.active .tesla-mp-tab-count { background: var(--tesla-blue-soft); color: var(--tesla-blue); }
.tesla-svc-tab.active.shop-active { color: var(--tesla-text); border-bottom-color: var(--tesla-blue); background: transparent; box-shadow: none; }
.tesla-mp-footer-cta { padding: 32px 0; border-radius: 0; background: transparent;
  border-top: 1px solid var(--tesla-line-subtle); align-items: center; }
.tesla-svc-btn.ghost.shop-accent:hover { border-color: var(--tesla-text); color: var(--tesla-text); }
.tesla-svc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--tesla-btn-h);
  padding: 0 24px; border-radius: var(--tesla-btn-radius); font-family: 'Manrope'; font-weight: 500; font-size: 14px;
  cursor: pointer; border: none; transition: background .15s, border-color .15s, opacity .15s; white-space: nowrap; }
.tesla-svc-btn.primary { background: var(--tesla-blue); color: #fff; box-shadow: none; }
.tesla-svc-btn.primary:hover { background: var(--tesla-blue-d); }
.tesla-svc-btn.ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.35); }
.tesla-svc-btn.ghost:hover { border-color: #fff; background: rgba(255,255,255,.04); }
.tesla-svc-flow { padding: 18px 20px; border-radius: var(--r-lg); background: rgba(8,12,22,.45);
  border: 1px solid rgba(255,255,255,.06); }
.tesla-svc-flow-step { flex: 1; min-width: 180px; }
.tesla-svc-flow-num { width: 28px; height: 28px; border-radius: 999px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; color: var(--tesla-text); background: transparent; border: 1px solid var(--tesla-line); }
.tesla-svc-promo { padding: 32px 0; border-radius: 0; background: transparent;
  border-top: 1px solid var(--tesla-line-subtle); border-bottom: 1px solid var(--tesla-line-subtle); align-items: center; }
.tesla-svc-promo-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--tesla-blue-soft);
  border: 1px solid var(--tesla-line); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tesla-svc-quick-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.tesla-svc-quick-title { font-weight: 800; font-size: 20px; color: var(--ink); margin-top: 4px; }
.tesla-svc-quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tesla-svc-quick-card { position: relative; text-align: left; padding: 20px; border-radius: 0; cursor: pointer;
  border: 1px solid var(--tesla-line-subtle); background: #000;
  color: #fff; overflow: hidden; transition: border-color .2s; font-family: 'Manrope'; }
.tesla-svc-quick-card:hover { border-color: var(--tesla-line); }
.tesla-svc-quick-card.in-cart { border-color: var(--tesla-blue); }
.tesla-svc-quick-glow { position: absolute; top: -40%; right: -30%; width: 80%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--svc-accent, #3dd68c) 22%, transparent) 0%, transparent 70%);
  pointer-events: none; opacity: .8; }
.tesla-svc-quick-top { margin-bottom: 12px; }
.tesla-svc-quick-icon { border-radius: 10px; overflow: hidden; }
.tesla-svc-qty { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; font-size: 12px; font-weight: 800;
  background: var(--svc-accent, #3dd68c); color: #04120c; display: flex; align-items: center; justify-content: center; }
.tesla-svc-quick-name { font-weight: 800; font-size: 14px; line-height: 1.3; }
.tesla-svc-quick-meta { font-size: 11.5px; color: rgba(255,255,255,.45); margin-top: 4px; font-weight: 600; }
.tesla-svc-quick-foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.tesla-svc-quick-price { font-weight: 600; font-size: 16px; color: var(--tesla-text); }
.tesla-svc-filters { padding: 24px 0; border-radius: 0; background: transparent;
  border: none; border-top: 1px solid var(--tesla-line-subtle); border-bottom: 1px solid var(--tesla-line-subtle); }
.tesla-svc-input { width: 100%; height: 44px; padding: 0 16px 0 42px; border-radius: 4px;
  border: 1px solid var(--tesla-line); background: transparent; color: #fff; font-family: 'Manrope';
  font-size: 14px; font-weight: 400; outline: none; }
.tesla-svc-input:focus { border-color: var(--tesla-blue); box-shadow: none; }
.tesla-svc-input::placeholder { color: var(--tesla-faint); }
.tesla-svc-group-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tesla-svc-group-chip { height: 36px; padding: 0 16px; border-radius: var(--tesla-btn-radius); border: 1px solid var(--tesla-line);
  background: transparent; color: var(--tesla-muted); font-family: 'Manrope'; font-weight: 500; font-size: 13px;
  cursor: pointer; transition: all .15s; }
.tesla-svc-group-chip:hover { border-color: rgba(255,255,255,.35); color: #fff; }
.tesla-svc-group-chip.active { background: var(--tesla-blue); border-color: var(--tesla-blue); color: #fff; }
.tesla-svc-count { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.4); }
.tesla-svc-catalog { color: #fff; }
.tesla-svc-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
.tesla-svc-card { position: relative; padding: 28px 0; border-radius: 0; overflow: hidden;
  background: #000; border: none; border-bottom: 1px solid var(--tesla-line-subtle);
  transition: opacity .2s; }
.tesla-svc-card:hover { opacity: .92; transform: none; box-shadow: none; }
.tesla-svc-card-glow { position: absolute; top: -50%; left: -20%; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--svc-accent, #3dd68c) 15%, transparent) 0%, transparent 70%);
  pointer-events: none; }
.tesla-svc-card-thumb { border-radius: 12px; overflow: hidden; flex-shrink: 0; }
.tesla-svc-card-badge { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; color: var(--svc-accent, #8ff0c4);
  background: color-mix(in srgb, var(--svc-accent, #3dd68c) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--svc-accent, #3dd68c) 30%, transparent); }
.tesla-svc-card-duration { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.4); }
.tesla-svc-card-title { font-weight: 800; font-size: 17px; color: #fff; margin-top: 8px; line-height: 1.25; }
.tesla-svc-card-vendor { font-size: 12px; color: rgba(255,255,255,.45); margin-top: 4px; font-weight: 600; }
.tesla-svc-card-spec { font-size: 13px; color: rgba(255,255,255,.55); margin: 14px 0 0; line-height: 1.45; font-weight: 600; }
.tesla-svc-card-meta { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.4); margin-top: 12px; }
.tesla-svc-card-foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.08); align-items: flex-end; }
.tesla-svc-card-price { font-weight: 800; font-size: 22px; color: #fff; }
.tesla-svc-card-price-sub { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.4); margin-top: 2px; }
.tesla-svc-card-btn { display: inline-flex; align-items: center; gap: 8px; height: var(--tesla-btn-h); padding: 0 22px; border-radius: var(--tesla-btn-radius);
  cursor: pointer; font-family: 'Manrope'; font-weight: 500; font-size: 14px;
  background: var(--tesla-blue); color: #fff; border: none; transition: background .15s; }
.tesla-svc-card-btn:hover { background: var(--tesla-blue-d); }
.tesla-svc-card-btn.booked { background: transparent; border: 2px solid var(--tesla-line); color: var(--tesla-text); }
.tesla-svc-card-btn.booked:hover { border-color: #fff; }
.tesla-svc-empty { padding: 40px; text-align: center; border-radius: var(--r-lg); background: rgba(8,12,22,.4);
  border: 1px dashed rgba(255,255,255,.12); color: rgba(255,255,255,.45); font-weight: 600; }

/* customer marketplace shell */
.tesla-mp-root { background: #000; color: #fff; min-height: 100vh; }
.tesla-mp-wrap { max-width: 1400px; margin: 0 auto; padding: 16px 40px 100px; width: 100%; }
.tesla-mp-wrap .tesla-svc-page { margin: 0; padding: 0 0 24px; }
.tesla-mp-topbar { background: #000 !important; border-bottom: 1px solid var(--tesla-line, rgba(255,255,255,.12)) !important; color: #fff; }
.tesla-mp-topbar .topbar-mini-title { color: rgba(255,255,255,.9); }
.tesla-mp-topbar .wbtn-ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.1); }
.tesla-mp-topbar .wnav-link { color: #fff; }

.tesla-svc-hero-title.lg { font-size: clamp(36px, 5vw, 56px); letter-spacing: -.03em; font-weight: 600; }
.tesla-land-grid-lines.faint { opacity: .08; mask-image: none; }
.tesla-svc-group-chip.shop.active { background: var(--tesla-blue); border-color: var(--tesla-blue); color: #fff; }
.tesla-svc-select { height: 44px; min-width: 140px; padding: 0 14px; border-radius: 4px;
  border: 1px solid var(--tesla-line); background: transparent; color: #fff; font-family: 'Manrope';
  font-size: 14px; font-weight: 400; outline: none; cursor: pointer; }
.tesla-svc-select:focus { border-color: var(--tesla-blue); }

.tesla-mp-vendor-rail { display: flex; flex-direction: column; gap: 10px; }
.tesla-mp-vendor-scroll { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tesla-mp-vendor-scroll::-webkit-scrollbar { display: none; }
.tesla-mp-vendor-chip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.1); background: rgba(4,7,14,.5); color: rgba(255,255,255,.6);
  font-family: 'Manrope'; font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap; transition: all .15s; flex-shrink: 0; }
.tesla-mp-vendor-chip:hover { border-color: rgba(255,255,255,.2); color: #fff; }
.tesla-mp-vendor-chip.active { background: rgba(47,107,255,.12); border-color: rgba(47,107,255,.35); color: #9ec0ff; }
.tesla-mp-vendor-meta { font-size: 11px; opacity: .7; }

.tesla-mp-product-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
.tesla-mp-product { position: relative; border-radius: 0; overflow: hidden;
  background: #000; border: none; border-bottom: 1px solid var(--tesla-line-subtle);
  transition: opacity .2s; }
.tesla-mp-product:hover { opacity: .9; transform: none; box-shadow: none; }
.tesla-mp-product-glow { display: none; }
.tesla-mp-product-visual { position: relative; height: 200px; display: flex; align-items: center; justify-content: center;
  background: #000; border-bottom: 1px solid var(--tesla-line-subtle); }
.tesla-mp-product-visual button, .tesla-mp-product-visual > div { border: none !important; border-radius: 16px !important;
  box-shadow: 0 16px 48px rgba(0,0,0,.4) !important; }
.tesla-mp-product-body { padding: 18px 20px 20px; }
.tesla-mp-product-cat { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; color: var(--svc-accent, #9ec0ff);
  background: color-mix(in srgb, var(--svc-accent, #4d82ff) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--svc-accent, #4d82ff) 28%, transparent); }
.tesla-mp-product-xq { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #8ff0c4; }
.tesla-mp-product-title { font-weight: 800; font-size: 17px; color: #fff; margin-top: 10px; line-height: 1.25; }
.tesla-mp-product-vendor { font-size: 12px; color: rgba(255,255,255,.45); margin-top: 4px; font-weight: 600; }
.tesla-mp-product-spec { font-size: 13px; color: rgba(255,255,255,.52); margin: 12px 0 0; line-height: 1.45; font-weight: 500;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tesla-mp-product-meta { font-size: 11.5px; font-weight: 700; color: rgba(255,255,255,.38); margin-top: 12px; }
.tesla-mp-product-foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); align-items: flex-end; }
.tesla-mp-product-price { font-weight: 800; font-size: 22px; color: #fff; }
.tesla-mp-product-stock { font-size: 11px; font-weight: 500; color: var(--tesla-energy); margin-top: 2px; }

.tesla-mp-coord {
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: rgba(62, 106, 225, 0.08);
  border: 1px solid rgba(62, 106, 225, 0.2);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.45;
}
.cust-mp-product-grid-tesla { gap: 0; }
.cust-mp-product-tesla { border-bottom: 1px solid var(--tesla-line-subtle); }
.tesla-mp-deals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.tesla-mp-deal {
  display: flex;
  flex-direction: column;
  background: #000;
  border: 1px solid var(--tesla-line-subtle);
  overflow: hidden;
}
.tesla-mp-deal-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 12px;
  background: #000;
  border-bottom: 1px solid var(--tesla-line-subtle);
}
.tesla-mp-deal-visual button {
  border: none !important;
  border-radius: 14px !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45) !important;
}
.tesla-mp-deal-body { padding: 16px 18px 18px; }
.tesla-mp-deal-badge {
  display: inline-flex;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tesla-energy);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--tesla-energy-soft);
  border: 1px solid rgba(0, 212, 106, 0.25);
}
.tesla-mp-charging-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.tesla-mp-charging-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--tesla-line-subtle);
}
.tesla-mp-charging-item > button:first-of-type {
  border: none !important;
  flex-shrink: 0;
}
.tesla-svc-quick-card {
  border: 1px solid var(--tesla-line-subtle);
  background: rgba(4, 7, 14, 0.55);
}
article.tesla-svc-quick-card { cursor: default; }
.tesla-svc-quick-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background 0.15s;
}
.tesla-svc-quick-add:hover { background: rgba(255, 255, 255, 0.12); }

.tesla-mp-cart-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 45; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  background: #000; border-top: 1px solid var(--tesla-line); backdrop-filter: blur(12px);
  animation: fadeUp .25s var(--ease); }
.tesla-mp-cart-bar-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tesla-mp-cart-bar-count { width: 36px; height: 36px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 14px; background: var(--tesla-blue-soft); color: var(--tesla-blue); border: none; flex-shrink: 0; }
.tesla-mp-cart-bar-label { font-size: 14px; font-weight: 700; color: rgba(255,255,255,.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tesla-mp-notice { padding: 16px 18px; border-radius: var(--r-lg); font-size: 14px; font-weight: 600; }
.tesla-mp-notice.success { background: rgba(61,214,140,.1); border: 1px solid rgba(61,214,140,.25); }
.tesla-mp-notice.info { background: rgba(47,107,255,.1); border: 1px solid rgba(47,107,255,.2); color: rgba(255,255,255,.7); }
.tesla-mp-notice.error { background: rgba(229,72,77,.12); border: 1px solid rgba(229,72,77,.3); color: #ffb4b4; }

.tesla-mp-booking-card { position: relative; padding: 20px 22px; border-radius: var(--r-lg); overflow: hidden;
  background: rgba(8,12,22,.55); border: 1px solid rgba(255,255,255,.08); }
.tesla-mp-booking-glow { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 100% 0%, color-mix(in srgb, var(--svc-accent, #3dd68c) 10%, transparent), transparent); }
.tesla-mp-booking-title { font-weight: 800; font-size: 16px; color: #fff; }
.tesla-mp-booking-status { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; color: var(--svc-accent, #8ff0c4);
  background: color-mix(in srgb, var(--svc-accent, #3dd68c) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--svc-accent, #3dd68c) 28%, transparent); }
.tesla-mp-booking-meta { font-size: 13px; color: rgba(255,255,255,.48); margin-top: 6px; font-weight: 600; }
.tesla-mp-booking-price { font-weight: 600; font-size: 18px; color: #fff; flex-shrink: 0; }

.tesla-mp-checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; margin-top: 24px; }
.tesla-mp-checkout-panel { border-radius: var(--r-lg); background: rgba(8,12,22,.5); border: 1px solid rgba(255,255,255,.08); overflow: hidden; }
.tesla-mp-checkout-panel.schedule { padding: 22px; }
.tesla-mp-checkout-line { display: flex; align-items: flex-start; gap: 14px; padding: 14px 18px; }
.tesla-mp-checkout-line.bordered { border-top: 1px solid rgba(255,255,255,.06); }
.tesla-mp-checkout-line-title { font-weight: 800; font-size: 15px; color: #fff; }
.tesla-mp-checkout-line-meta { font-size: 12.5px; color: rgba(255,255,255,.45); margin-top: 2px; font-weight: 600; }
.tesla-mp-checkout-line-qty { font-size: 12px; color: rgba(255,255,255,.35); margin-top: 4px; font-weight: 600; }
.tesla-mp-checkout-line-price { font-weight: 800; font-size: 15px; color: #fff; flex-shrink: 0; }
.tesla-mp-checkout-summary { position: sticky; top: 92px; padding: 24px; border-radius: var(--r-xl);
  background: rgba(8,12,22,.65); border: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(16px); }
.tesla-mp-checkout-summary-title { font-weight: 800; font-size: 17px; color: #fff; margin-bottom: 16px; }
.tesla-mp-checkout-row { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px;
  font-size: 14px; font-weight: 600; color: rgba(255,255,255,.55); }
.tesla-mp-checkout-row span:last-child { color: #fff; font-weight: 700; }
.tesla-mp-checkout-scheduled { margin: 16px 0; padding: 12px 14px; border-radius: var(--r-md); background: rgba(255,255,255,.04); }
.tesla-mp-checkout-total { padding-top: 14px; margin-top: 8px; border-top: 1px solid rgba(255,255,255,.1);
  font-weight: 800; font-size: 18px; color: #fff; }
.tesla-mp-checkout-total .tnum { font-size: 24px; color: #fff; }
.tesla-mp-checkout-panel.schedule .schedule-label,
.tesla-mp-checkout-panel.schedule .schedule-picker span[style] { color: rgba(255,255,255,.55) !important; }
.tesla-mp-checkout-panel.schedule .winput,
.tesla-mp-checkout-panel.schedule .schedule-date { background: rgba(4,7,14,.6) !important; border-color: rgba(255,255,255,.1) !important; color: #fff !important; }
.tesla-mp-checkout-panel.schedule .schedule-slot { border-color: rgba(255,255,255,.1) !important; background: rgba(4,7,14,.5) !important; color: rgba(255,255,255,.6) !important; }
.tesla-mp-checkout-panel.schedule .schedule-slot.active { border-color: rgba(61,214,140,.4) !important; background: rgba(61,214,140,.12) !important; color: #8ff0c4 !important; }
.tesla-mp-checkout-panel.schedule .schedule-slot-label { color: #fff !important; }
.tesla-mp-checkout-panel.schedule .schedule-slot-sub { color: rgba(255,255,255,.45) !important; }
.tesla-mp-checkout-panel.schedule .schedule-picker > div:first-child span { color: #fff !important; }
.tesla-mp-checkout-panel.schedule .schedule-picker > div:first-child p { color: rgba(255,255,255,.5) !important; }

@media (max-width: 980px) {
  .tesla-mp-checkout-grid { grid-template-columns: 1fr; }
  .tesla-svc-stat-row { grid-template-columns: repeat(2, 1fr); }
  .tesla-mp-wrap { padding: 12px 22px 100px; }
  .tesla-mp-product-grid { grid-template-columns: 1fr; }
  .tesla-mp-deals-grid { grid-template-columns: 1fr; }
  .tesla-mp-charging-grid { grid-template-columns: 1fr; }
  .tesla-svc-quick-grid { grid-template-columns: repeat(2, 1fr); }
  .tesla-svc-grid { grid-template-columns: 1fr; }
  .tesla-mp-toolbar { flex-direction: column; align-items: stretch; }
  .tesla-mp-actions { margin-left: 0; width: 100%; }
  .tesla-mp-actions .tesla-svc-btn { flex: 1; justify-content: center; min-width: 0; }
  .tesla-svc-tabs { width: 100%; }
}
@media (max-width: 520px) {
  .tesla-svc-hero-inner { padding: 20px 18px; }
  .tesla-svc-stat-row { grid-template-columns: 1fr 1fr; }
  .tesla-mp-actions { flex-direction: column; }
  .tesla-mp-actions .tesla-svc-btn { width: 100%; }
  .tesla-mp-cart-bar .tesla-svc-btn { flex-shrink: 0; padding: 0 16px; font-size: 13.5px; }
  .tesla-svc-promo { flex-direction: column; align-items: stretch !important; gap: 16px; }
  .tesla-svc-promo .tesla-svc-btn { width: 100%; justify-content: center; }
}

/* schedule picker (bookings · checkout · financing) */
.schedule-picker { width: 100%; }
.schedule-head { margin-bottom: 2px; }
.schedule-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: #171a20;
}
.schedule-sub {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: #5c5e62;
  max-width: 52ch;
}
.schedule-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8e8e8e;
}
.schedule-date-wrap { align-items: center; flex-wrap: wrap; }
.schedule-date, .schedule-time {
  height: 48px;
  font-size: 15px;
  color-scheme: light;
  border-radius: 10px;
}
.schedule-date-hint { font-size: 13px; font-weight: 500; color: #5c5e62; white-space: nowrap; }
.schedule-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.schedule-slot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #eceef2;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: border-color .15s, background .15s;
}
.schedule-slot:hover { border-color: #c5c9d0; background: #fafafa; }
.schedule-slot.active {
  border-color: #06152b;
  background: #fff;
  box-shadow: inset 0 0 0 1px #06152b;
}
.schedule-slot-label { font-size: 14px; font-weight: 600; color: #171a20; }
.schedule-slot-sub { font-size: 12px; font-weight: 500; color: #5c5e62; }
.schedule-notes { height: auto; min-height: 80px; padding: 12px 14px; resize: vertical; line-height: 1.45; border-radius: 10px; }
.schedule-hint { font-size: 12px; color: #8e8e8e; font-weight: 500; }
.schedule-preview {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f4f5f7;
  border: 1px solid #eceef2;
}
.schedule-preview-lbl {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8e8e8e;
}
.schedule-preview-val { font-weight: 600; font-size: 14px; color: #171a20; margin-top: 2px; }
.schedule-preview-notes { font-size: 12.5px; color: #5c5e62; margin-top: 4px; }
.schedule-prep { margin-top: 4px; }
.schedule-prep-hint { font-size: 13px; color: #5c5e62; margin: 4px 0 0; line-height: 1.4; font-weight: 500; }
@media (max-width: 720px) {
  .schedule-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* mobile / tablet dashboard header */
.dash-mheader { display: none; background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,.08); }
.dash-mheader-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.dash-mheader-btn { width: 42px; height: 42px; border-radius: 10px; border: none; cursor: pointer;
  background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dash-mtabbar { display: flex; gap: 8px; padding: 0 16px 12px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; }
.dash-mtabbar::-webkit-scrollbar { display: none; }
.dash-mtab { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; min-height: 44px; height: 44px; padding: 0 16px;
  border-radius: 999px; border: none; cursor: pointer; font-family: 'Manrope'; font-weight: 700; font-size: 13.5px;
  color: rgba(255,255,255,.65); background: rgba(255,255,255,.06); transition: background .15s, color .15s; }
.dash-mtab.active { background: rgba(255,255,255,.16); color: #fff; }
.dash-mmenu { padding: 8px 12px 14px; border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.15); animation: fadeUp .2s var(--ease); }
.dash-mmenu .dash-navitem { width: 100%; }

/* compact top bar (checkout, marketplace) */
.topbar-mini-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center;
  gap: 12px; height: 68px; }
.topbar-mini-left { display: flex; align-items: center; gap: 10px; min-width: 0; justify-self: start; }
.topbar-mini-title { font-weight: 700; font-size: 15px; text-align: center; justify-self: center;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.topbar-mini-right { justify-self: end; }

/* ---------- footer ---------- */
.wfooter { background: var(--navy); color: rgba(255,255,255,.6); padding: 56px 0 36px; }

/* ---------- inputs ---------- */
.winput { height: 56px; border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--surface);
  padding: 0 18px; font-size: 16px; font-weight: 600; font-family: 'Manrope'; color: var(--ink); outline: none;
  width: 100%; transition: border-color .15s; }
.winput:focus { border-color: var(--primary); }

/* ---------- animations on scroll-in (simple) ---------- */
.fade-in { animation: fadeUp .6s var(--ease) backwards; }

/* ---------- Tesla-grade landing (cinematic) ---------- */
.tesla-land { background: #000; color: #fff; }
.tesla-reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.tesla-reveal.visible { opacity: 1; transform: none; }

/* hero */
.tesla-land-hero-cinema { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; overflow: hidden; background: #000; padding: 88px 0 120px; }
.tesla-land-mesh { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 38%, rgba(47,107,255,.18) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(61,214,140,.12) 0%, transparent 50%),
    radial-gradient(ellipse 45% 35% at 85% 20%, rgba(139,92,246,.1) 0%, transparent 45%),
    linear-gradient(180deg, #04060c 0%, #070b14 45%, #000 100%); }
.tesla-land-mesh.faint { opacity: .65; }
.tesla-land-grid-lines { position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 42%, #000 20%, transparent 75%); }
.tesla-land-vignette { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 90% 80% at 50% 45%, transparent 30%, rgba(0,0,0,.55) 100%),
              linear-gradient(180deg, rgba(0,0,0,.4) 0%, transparent 22%, transparent 72%, rgba(0,0,0,.85) 100%); }
.tesla-land-orbit { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -58%); width: min(72vw, 520px); aspect-ratio: 1; pointer-events: none; }
.tesla-land-orbit-ring { position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(61,214,140,.18); animation: teslaOrbitSpin 24s linear infinite; }
.tesla-land-orbit-ring::before { content: ''; position: absolute; inset: 12%; border-radius: 50%;
  border: 1px dashed rgba(47,107,255,.15); }
.tesla-land-orbit-ring.delay { inset: 18%; animation-direction: reverse; animation-duration: 32s; border-color: rgba(47,107,255,.12); }
.tesla-land-orbit-core { position: absolute; inset: 38%; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(8,12,22,.6); border: 1px solid rgba(61,214,140,.25); box-shadow: 0 0 60px rgba(61,214,140,.15), inset 0 0 30px rgba(61,214,140,.08);
  animation: teslaOrbitPulse 4s ease-in-out infinite; }
@keyframes teslaOrbitSpin { to { transform: rotate(360deg); } }
@keyframes teslaOrbitPulse { 0%,100% { box-shadow: 0 0 60px rgba(61,214,140,.15), inset 0 0 30px rgba(61,214,140,.08); }
  50% { box-shadow: 0 0 80px rgba(61,214,140,.28), inset 0 0 40px rgba(61,214,140,.14); } }

.tesla-land-hero-center { position: relative; z-index: 2; text-align: center; padding: 0 24px; max-width: 820px; margin-top: -4vh; }
.tesla-land-live-pill { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 16px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #8ff0c4;
  background: rgba(8,12,22,.55); border: 1px solid rgba(61,214,140,.3); backdrop-filter: blur(12px); }
.tesla-land-live-dot { width: 7px; height: 7px; border-radius: 999px; background: #3dd68c; animation: teslaLivePulse 1.8s ease-in-out infinite; }
.tesla-land-hero-title { font-family: 'Sora', 'Manrope', sans-serif; font-size: clamp(44px, 7.5vw, 88px); font-weight: 800;
  letter-spacing: -.045em; line-height: .98; margin-top: 22px; color: #fff; text-shadow: 0 2px 40px rgba(0,0,0,.4); }
.tesla-land-hero-sub { font-size: clamp(16px, 2.2vw, 20px); color: rgba(255,255,255,.55); line-height: 1.5; margin-top: 18px;
  font-weight: 500; max-width: 480px; margin-left: auto; margin-right: auto; }

.tesla-land-hero-hud { position: relative; z-index: 3; display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  margin-top: clamp(32px, 5vh, 56px); padding: 14px 22px; border-radius: var(--r-lg);
  background: rgba(8,12,22,.62); border: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(20px);
  box-shadow: 0 16px 48px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06); max-width: min(92vw, 720px); }
.tesla-land-hud-stat { display: flex; flex-direction: column; gap: 2px; }
.tesla-land-hud-val { font-size: 28px; font-weight: 800; color: #fff; line-height: 1; }
.tesla-land-hud-unit { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.45); letter-spacing: .04em; text-transform: uppercase; }
.tesla-land-hud-divider { width: 1px; height: 36px; background: rgba(255,255,255,.1); flex-shrink: 0; }
.tesla-land-hud-flow { display: flex; gap: 18px; flex-wrap: wrap; }
.tesla-land-hud-node { display: flex; align-items: center; gap: 8px; }
.tesla-land-hud-node-lbl { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.4); }
.tesla-land-hud-node-val { font-size: 13px; font-weight: 800; color: #fff; }
.tesla-land-hud-badge { display: flex; flex-direction: column; gap: 2px; }
.tesla-land-hud-badge-val { font-size: 22px; font-weight: 600; color: var(--tesla-energy, #00d46a); line-height: 1; }
.tesla-land-hud-badge-lbl { font-size: 10px; font-weight: 700; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: .06em; }

.tesla-land-cta-bar { position: absolute; bottom: 0; left: 0; right: 0; z-index: 4; display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(255,255,255,.12); }
.tesla-land-cta-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 56px;
  font-family: 'Manrope'; font-weight: 700; font-size: 15px; border: none; cursor: pointer; transition: background .2s, color .2s;
  letter-spacing: -.01em; }
.tesla-land-cta-btn.primary { background: var(--tesla-blue, #3e6ae1); color: #fff; }
.tesla-land-cta-btn.primary:hover { background: var(--tesla-blue-d, #3457b1); }
.tesla-land-cta-btn.ghost { background: transparent; color: #fff; border-left: 1px solid var(--tesla-line, rgba(255,255,255,.12)); }
.tesla-land-cta-btn.ghost:hover { background: rgba(255,255,255,.04); }
.tesla-land-cta-btn.solo { height: var(--tesla-btn-h, 48px); padding: 0 28px; border-radius: var(--tesla-btn-radius, 999px); border: none;
  background: var(--tesla-blue, #3e6ae1); color: #fff; box-shadow: none; font-weight: 500; }
.tesla-land-cta-btn.solo:hover { background: var(--tesla-blue-d, #3457b1); }
.tesla-land-cta-btn:active { transform: scale(.99); }

.tesla-land-scroll-cue { position: absolute; bottom: 72px; left: 50%; transform: translateX(-50%); z-index: 2; opacity: .4; }
.tesla-land-scroll-cue span { display: block; width: 1px; height: 40px; background: linear-gradient(180deg, transparent, rgba(255,255,255,.6));
  animation: teslaScrollCue 2s ease-in-out infinite; }
@keyframes teslaScrollCue { 0%,100% { opacity: .3; transform: scaleY(.7); } 50% { opacity: 1; transform: scaleY(1); } }

/* ticker */
.tesla-land-ticker { overflow: hidden; border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06);
  background: #070b14; padding: 18px 0; }
.tesla-land-ticker-track { display: flex; gap: 48px; width: max-content; animation: teslaTicker 28s linear infinite; }
.tesla-land-ticker-item { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; padding: 0 8px; }
.tesla-land-ticker-val { font-size: 22px; font-weight: 800; color: #fff; }
.tesla-land-ticker-lbl { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.4); }
@keyframes teslaTicker { to { transform: translateX(-50%); } }

/* section typography */
.tesla-land-kicker { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #8ff0c4; }
.tesla-land-kicker.shop { color: #7eb4ff; }
.tesla-land-section-title { font-family: 'Sora', 'Manrope', sans-serif; font-size: clamp(30px, 4vw, 48px); font-weight: 800;
  letter-spacing: -.035em; line-height: 1.06; margin-top: 12px; color: #fff; }
.tesla-land-section-lead { font-size: 16px; color: rgba(255,255,255,.5); line-height: 1.55; margin-top: 14px; font-weight: 500; max-width: 560px; }
.tesla-land-section-lead.left { margin-left: 0; }
.tesla-land-cap-head { margin-bottom: 40px; }
.tesla-land-cap-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.tesla-land-cap-head.center .tesla-land-section-lead { margin-left: auto; margin-right: auto; }

/* capability rail */
.tesla-land-cap { padding: clamp(72px, 9vw, 110px) 0 clamp(48px, 6vw, 72px); background: linear-gradient(180deg, #000 0%, #070b14 100%); }
.tesla-land-cap-rail { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 40px 24px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.tesla-land-cap-rail::-webkit-scrollbar { display: none; }
.tesla-land-cap-card { position: relative; flex: 0 0 min(340px, 82vw); scroll-snap-align: start; padding: 28px;
  border-radius: var(--r-xl); overflow: hidden; background: rgba(8,12,22,.55); border: 1px solid rgba(255,255,255,.08);
  transition: border-color .25s, transform .2s; }
.tesla-land-cap-card:hover { border-color: color-mix(in srgb, var(--cap-accent, #3dd68c) 45%, transparent); transform: translateY(-3px); }
.tesla-land-cap-card-bg { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 80% 70% at 100% 0%, color-mix(in srgb, var(--cap-accent, #3dd68c) 14%, transparent), transparent 60%); }
.tesla-land-cap-num { font-family: 'Sora', sans-serif; font-size: 13px; font-weight: 800; letter-spacing: .08em;
  color: color-mix(in srgb, var(--cap-accent, #3dd68c) 70%, #fff); }
.tesla-land-cap-icon { width: 52px; height: 52px; margin-top: 16px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.tesla-land-cap-title { font-weight: 800; font-size: 20px; margin-top: 18px; color: #fff; }
.tesla-land-cap-desc { font-size: 14px; color: rgba(255,255,255,.52); line-height: 1.55; margin-top: 10px; font-weight: 500; }
.tesla-land-cap-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; padding: 0; border: none; background: none;
  font-family: 'Manrope'; font-weight: 700; font-size: 14px; color: var(--cap-accent, #8ff0c4); cursor: pointer; }

/* marketplace rail */
.tesla-land-mp-section { padding: clamp(48px, 6vw, 80px) 0 clamp(72px, 9vw, 110px); background: #070b14; }
.tesla-land-mp-rail-wrap { margin: 0 -40px; }
.tesla-land-mp-rail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 40px 20px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.tesla-land-mp-rail::-webkit-scrollbar { display: none; }
.tesla-land-mp-tile { flex: 0 0 min(280px, 78vw); scroll-snap-align: start; border-radius: var(--r-xl); overflow: hidden;
  background: rgba(8,12,22,.6); border: 1px solid rgba(255,255,255,.08); transition: border-color .2s, transform .2s; }
.tesla-land-mp-tile:hover { border-color: rgba(47,107,255,.35); transform: translateY(-2px); }
.tesla-land-mp-tile-visual { position: relative; height: 200px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(47,107,255,.08) 0%, rgba(8,12,22,.4) 100%); }
.tesla-land-mp-tile-glow { position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 50% 30%, rgba(47,107,255,.15), transparent); pointer-events: none; }
.tesla-land-mp-tile-visual button, .tesla-land-mp-tile-visual > div { border: none !important; border-radius: 16px !important;
  box-shadow: 0 12px 40px rgba(0,0,0,.35) !important; }
.tesla-land-mp-tile-body { padding: 18px 20px 22px; }
.tesla-land-mp-tile-cat { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #7eb4ff; }
.tesla-land-mp-tile-name { font-weight: 800; font-size: 15px; color: #fff; margin-top: 6px; line-height: 1.3; }
.tesla-land-mp-tile-spec { font-size: 13px; color: rgba(255,255,255,.48); margin-top: 8px; line-height: 1.45; font-weight: 500;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tesla-land-mp-tile-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.06); }
.tesla-land-mp-tile-price { font-weight: 800; font-size: 18px; color: #8ff0c4; }
.tesla-land-mp-tile-lead { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.38); text-align: right; }
.tesla-land-mp-cta { margin: 8px auto 0; display: flex; }

/* steps */
.tesla-land-steps-section { padding: clamp(72px, 9vw, 110px) 0; background: #0a0f1a; }
.tesla-land-timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; position: relative; }
.tesla-land-timeline::before { content: ''; position: absolute; top: 28px; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(61,214,140,.25) 20%, rgba(61,214,140,.25) 80%, transparent); }
.tesla-land-timeline-step { position: relative; padding: 24px; border-radius: var(--r-lg); background: rgba(8,12,22,.5);
  border: 1px solid rgba(255,255,255,.06); }
.tesla-land-timeline-marker { width: 48px; height: 48px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  background: rgba(61,214,140,.1); border: 1px solid rgba(61,214,140,.25); margin-bottom: 16px; }
.tesla-land-timeline-num { font-family: 'Sora', sans-serif; font-size: 12px; font-weight: 800; color: rgba(255,255,255,.25); letter-spacing: .06em; }
.tesla-land-timeline-title { font-weight: 800; font-size: 18px; margin-top: 8px; color: #fff; }
.tesla-land-timeline-desc { font-size: 14px; color: rgba(255,255,255,.48); line-height: 1.5; margin-top: 8px; font-weight: 500; }
.tesla-land-steps-cta { display: flex; justify-content: center; margin-top: 48px; }

/* economics */
.tesla-land-econ { padding: clamp(72px, 9vw, 110px) 0; background: #000; }
.tesla-land-econ-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.tesla-land-econ-list { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 14px; }
.tesla-land-econ-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; color: rgba(255,255,255,.75); }
.tesla-land-econ-card { position: relative; padding: 36px; border-radius: var(--r-xl); overflow: hidden;
  background: linear-gradient(145deg, rgba(14,154,114,.9), rgba(61,214,140,.85)); color: #04120c;
  box-shadow: 0 24px 64px rgba(18,184,134,.22); border: 1px solid rgba(255,255,255,.15); }
.tesla-land-econ-card-glow { position: absolute; top: -40%; right: -20%; width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: rgba(255,255,255,.15); pointer-events: none; }
.tesla-land-econ-kicker { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .75; position: relative; }
.tesla-land-econ-val { font-size: clamp(40px, 5vw, 56px); font-weight: 800; margin-top: 8px; position: relative; line-height: 1; }
.tesla-land-econ-sub { font-size: 15px; font-weight: 700; opacity: .8; position: relative; margin-top: 4px; }
.tesla-land-econ-rows { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(0,0,0,.15); position: relative;
  display: flex; flex-direction: column; gap: 10px; font-size: 14px; font-weight: 700; }
.tesla-land-econ-row { display: flex; justify-content: space-between; gap: 12px; }

/* final cta */
.tesla-land-final { position: relative; padding: clamp(88px, 12vw, 140px) 0; background: #000; text-align: center; overflow: hidden; }
.tesla-land-final-inner p { font-size: 17px; color: rgba(255,255,255,.5); margin-top: 14px; max-width: 440px; margin-left: auto; margin-right: auto; font-weight: 500; }
.tesla-land-final-title { font-family: 'Sora', 'Manrope', sans-serif; font-size: clamp(32px, 4.5vw, 52px); font-weight: 800;
  letter-spacing: -.035em; line-height: 1.05; color: #fff; }
.tesla-land-final .tesla-land-cta-btn { margin-top: 32px; }

/* shared pills (auth reuses) */
.tesla-land-pill { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: #8ff0c4;
  background: rgba(8,12,22,.65); border: 1px solid rgba(61,214,140,.28); }
.tesla-land-pill-dot { width: 7px; height: 7px; border-radius: 999px; background: #3dd68c; animation: teslaLivePulse 1.8s ease-in-out infinite; }
.tesla-land-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 24px;
  border-radius: var(--r-pill); font-family: 'Manrope'; font-weight: 800; font-size: 15px; border: none; cursor: pointer; }
.tesla-land-btn.primary { background: linear-gradient(135deg, #2d9f6f, #3dd68c); color: #04120c; }

/* ---------- auth (login / signup) ---------- */
.auth-page {
  position: relative;
  min-height: calc(100vh - 68px);
  overflow: hidden;
}
.auth-page-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  max-width: 1040px;
  padding-top: clamp(28px, 4vh, 56px);
  padding-bottom: clamp(40px, 6vh, 72px);
  min-height: calc(100vh - 68px);
}
.auth-page-shell--single {
  grid-template-columns: 1fr;
  justify-items: center;
  max-width: 520px;
  margin-inline: auto;
  min-height: calc(100vh - 68px);
}
.auth-page-hero {
  position: relative;
  background: transparent;
  color: #fff;
  padding: 0;
  display: block;
  overflow: visible;
}
.auth-page-hero-inner { position: relative; z-index: 1; max-width: 440px; }
.auth-page-home { display: inline-block; text-decoration: none; }
.auth-page-title { font-family: 'Sora', 'Manrope', sans-serif; font-size: clamp(30px, 3.5vw, 48px); font-weight: 800;
  letter-spacing: -.03em; line-height: 1.08; margin-top: 20px; }
.auth-page-lead { font-size: 16px; color: rgba(255,255,255,.6); margin-top: 16px; line-height: 1.55; font-weight: 600; }
.auth-page-stats { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
.auth-page-stat { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; color: rgba(255,255,255,.65); }
.auth-page-warn { margin-top: 20px; padding: 12px 14px; border-radius: 10px; background: rgba(255,180,0,.12); color: #ffd666; font-size: 13px; }
.auth-page-main {
  display: block;
  padding: 0;
  background: transparent;
}
.auth-page-card { width: 100%; max-width: 440px; margin-left: auto; }
.auth-page-mobile-intro { display: none; }
.auth-page-back { font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: none; margin-bottom: 20px; display: inline-flex; }
.auth-mode-tabs { display: flex; gap: 8px; padding: 5px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 20px; }
.auth-mode-tab { flex: 1; height: 40px; border: none; border-radius: 999px; font-family: 'Manrope'; font-weight: 800; font-size: 14px;
  cursor: pointer; background: transparent; color: var(--muted); transition: background .15s, color .15s; }
.auth-mode-tab.active { background: var(--surface); color: var(--ink); box-shadow: var(--sh-sm); }
.auth-page-card-title { font-family: 'Sora', 'Manrope', sans-serif; font-size: clamp(24px, 3vw, 30px); font-weight: 800; margin-top: 12px; }
.auth-page-card-sub { font-size: 15px; color: var(--muted); margin-top: 8px; line-height: 1.5; font-weight: 600; }
.auth-form { margin-top: 24px; }
.auth-field span { font-size: 13px; font-weight: 800; color: var(--muted); }
.auth-input { height: 52px; }
.auth-error { color: var(--danger); font-size: 14px; font-weight: 700; }
.auth-submit { width: 100%; margin-top: 4px; }
.auth-divider { margin: 28px 0 16px; text-align: center; font-size: 12px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--faint); }
.auth-demo-list { display: flex; flex-direction: column; gap: 8px; max-height: min(42vh, 360px); overflow-y: auto; }
.auth-demo-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-family: 'Manrope'; transition: border-color .15s, box-shadow .15s; }
.auth-demo-btn:hover:not(:disabled) { border-color: var(--primary); box-shadow: var(--sh-sm); }
.auth-demo-btn:disabled { opacity: .5; cursor: not-allowed; }
.auth-demo-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--primary-tint); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.auth-demo-label { font-weight: 800; font-size: 14px; }
.auth-demo-email { font-size: 12px; color: var(--muted); margin-top: 2px; font-weight: 600; word-break: break-all; }
.auth-demo-hint { font-size: 12px; color: var(--faint); text-align: center; margin-top: 16px; }
.auth-page-kicker { margin-top: 0; }
.auth-page-title { letter-spacing: -0.03em; font-weight: 600; }
.auth-page-lead { font-weight: 500; letter-spacing: 0.01em; }
.auth-page-card-title { letter-spacing: -0.02em; font-weight: 600; }
.auth-page-card-sub { font-weight: 500; }
.auth-account-type { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.auth-account-type-btn {
  height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  font-family: 'Manrope'; font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.auth-account-type-btn.active { border-color: var(--primary); color: var(--ink); background: var(--primary-tint); }
.auth-phone-row { display: flex; gap: 10px; align-items: flex-end; }
.auth-phone-code { flex-shrink: 0; width: 118px; }
.auth-phone-select { padding-left: 10px; padding-right: 8px; font-size: 14px; }
.auth-phone-number { min-width: 0; }
.auth-field-done span { color: var(--success, #1a9f5c); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* nav mobile */
.wnav-menu-btn { display: none; width: 44px; height: 44px; border-radius: 10px; border: none; cursor: pointer;
  background: rgba(127,127,127,.12); align-items: center; justify-content: center; }
.wnav-mobile { position: fixed; top: 60px; left: 0; right: 0; z-index: 49; padding: 12px 16px 20px;
  background: rgba(255,255,255,.96); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px; animation: fadeUp .2s var(--ease); }
.wnav-mobile.ondark { background: rgba(7,11,20,.94); border-color: rgba(255,255,255,.1); }
.wnav-mobile-link { width: 100%; text-align: left; padding: 14px 16px; border: none; border-radius: var(--r-md);
  background: transparent; font-family: 'Manrope'; font-weight: 700; font-size: 15px; cursor: pointer; color: inherit; }
.wnav-mobile.ondark .wnav-mobile-link { color: #fff; }
.wnav-mobile-link:hover { background: rgba(127,127,127,.1); }

/* ---------- dashboard responsive (graded) ---------- */
.dash-mtab-text-short { display: none; }

@media (max-width: 1024px) {
  .dash-mheader {
    padding-top: env(safe-area-inset-top, 0px);
  }
  .dash-mtabbar {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
  .dash-header-block h1.display-md {
    font-size: clamp(22px, 4.8vw, 28px) !important;
    line-height: 1.12;
  }
  .cust-dash-live.col.gap22,
  .cust-impact.col.gap22,
  .cust-academy.col.gap22,
  .cust-energy.col.gap22,
  .cust-charging.col.gap22,
  .dash-stagger.col.gap22 {
    gap: 18px;
  }
  .grid-4 {
    gap: 14px;
  }
  .grid-4 .dash-premium-card {
    padding: 18px !important;
  }
  .grid-4 .display-md.tnum {
    font-size: clamp(22px, 5vw, 26px) !important;
  }
  .energy-action-grid {
    gap: 12px;
  }
  .energy-action-grid.cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .energy-action-visual {
    height: 128px;
    padding-bottom: 16px;
  }
  .energy-action-copy {
    padding: 14px 14px 16px;
  }
  .cust-dash-hero-navy {
    padding: 22px 20px 20px;
    min-height: 0;
  }
  .cust-dash-hero-navy .display-lg.tnum {
    font-size: clamp(34px, 8vw, 46px) !important;
  }
  .cust-dash-status {
    align-items: stretch !important;
  }
  .cust-dash-status > .row {
    width: 100%;
  }
  .energy-hub-hero,
  .cust-academy .energy-hub-hero.cust-academy-hero,
  .cust-charging .cust-charging-hero {
    grid-template-columns: 1fr !important;
  }
  .energy-hub-hero-visual {
    max-height: 220px;
    justify-self: center;
  }
  .cust-energy .grid-2 {
    grid-template-columns: 1fr !important;
  }
  .cust-impact-hero-inner {
    padding: 24px 20px 22px;
  }
  .live-forecast-board {
    min-height: 300px;
  }
  .energy-control-board {
    padding: 18px 16px;
  }
  .energy-control-grid {
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  }
}

@media (max-width: 768px) {
  .energy-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cust-dash-flow-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .cust-impact-stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .live-forecast-board {
    grid-template-columns: 1fr 1fr;
    min-height: auto;
  }
  .forecast-card-kw {
    font-size: 24px;
  }
  .energy-flow-ring-stage {
    height: min(68vw, 320px);
  }
}

@media (max-width: 620px) {
  .dash-header-block {
    flex-direction: column;
    align-items: stretch !important;
    gap: 14px !important;
    margin-bottom: 8px !important;
  }
  .dash-header-block > :last-child {
    align-self: flex-start;
  }
  .cust-dash-live.col.gap22,
  .cust-impact.col.gap22,
  .cust-academy.col.gap22,
  .cust-energy.col.gap22,
  .cust-charging.col.gap22,
  .dash-stagger.col.gap22 {
    gap: 16px;
  }
  .grid-4 .dash-premium-card {
    padding: 16px !important;
  }
  .grid-4 .display-md.tnum {
    font-size: 22px !important;
  }
  .cust-dash-hero-navy {
    padding: 20px 18px 18px;
  }
  .cust-dash-hero-navy .display-lg.tnum {
    font-size: 32px !important;
  }
  .cust-dash-battery-card {
    padding: 22px 18px !important;
  }
  .cust-dash-status {
    flex-direction: column;
    gap: 14px !important;
  }
  .cust-dash-status > button.wbtn {
    width: 100%;
    justify-content: center;
  }
  .live-forecast-board {
    grid-template-columns: 1fr;
  }
  .forecast-card-production,
  .forecast-card-grid,
  .forecast-card-battery,
  .forecast-card-consumption {
    grid-column: auto;
    grid-row: auto;
  }
  .energy-control-grid {
    grid-template-columns: 1fr;
  }
  .cust-wallet-presets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cust-wallet-preset {
    width: 100%;
    justify-content: center;
    padding: 0 8px;
    font-size: 12px;
  }
  .cust-wallet-amount-wrap .winput {
    font-size: 15px;
  }
  .dash-grid-hero {
    grid-template-columns: 1fr !important;
  }
  .cust-impact-audit {
    flex-direction: column;
    align-items: stretch !important;
  }
  .cust-impact-btn-primary {
    width: 100%;
    justify-content: center;
  }
  .cust-energy-live-cta {
    flex-direction: column;
    align-items: stretch !important;
  }
  .tesla-map-site .fleet-leaflet-map,
  .tesla-map-site .fleet-map-canvas {
    height: min(52vh, 340px);
    min-height: 220px;
  }
}

@media (max-width: 520px) {
  .dash-mtab-text-full { display: none; }
  .dash-mtab-text-short { display: inline; }
  .dash-mtab {
    min-height: 44px;
    height: 44px;
    padding: 0 12px;
    font-size: 12.5px;
    gap: 6px;
  }
  .dash-mtabbar {
    gap: 6px;
    padding-bottom: 10px;
  }
  .energy-action-grid {
    grid-template-columns: 1fr;
  }
  .cust-dash-flow-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .cust-dash-flow-cell {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    gap: 12px;
  }
  .cust-dash-flow-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
  }
  .cust-impact-stat-row {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .dash-shell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
  }
  .dash-mheader { display: block; grid-column: 1; grid-row: 1; }
  .dash-side { display: none !important; }
  .dash-main {
    grid-column: 1;
    grid-row: 2;
    padding: 22px max(20px, env(safe-area-inset-right)) max(48px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  }
  .dash-grid-2, .dash-grid-2-wide, .dash-grid-2-even, .dash-grid-3, .dash-grid-hero, .inbox-desk, .support-desk { grid-template-columns: 1fr; }
  .grid-3:not(.energy-action-grid), .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .energy-action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .energy-product-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-sm { padding: 40px 0; }
}

@media (max-width: 980px) {
  .builder-split { grid-template-columns: 1fr; }
  .builder-preview { position: relative; top: 0; height: 56vh; }
  .builder-config { padding: 32px 24px 100px; max-width: 100%; }
  .wrap, .wrap-narrow, .wrap-wide { padding: 0 22px; }
  .wnav { padding: 0 16px; height: 60px; }
  .section { padding: 64px 0; }
  .topbar-mini-grid { height: 60px; gap: 8px; }
  .topbar-mini-title { font-size: 14px; }
  .tesla-land-econ-grid { grid-template-columns: 1fr; gap: 36px; }
  .tesla-land-timeline { grid-template-columns: 1fr; }
  .tesla-land-timeline::before { display: none; }
  .tesla-land-cap-rail, .tesla-land-mp-rail { padding-left: 22px; padding-right: 22px; }
  .tesla-land-mp-rail-wrap { margin: 0 -22px; }
  .hide-mobile { display: none !important; }
  .auth-page {
    min-height: calc(100vh - 68px);
  }
  .auth-page-shell {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: auto;
    padding-top: 28px;
    padding-bottom: 48px;
  }
  .auth-page-hero {
    display: none;
  }
  .auth-page-main {
    padding: 0;
  }
  .auth-page-mobile-intro {
    display: block;
    margin-bottom: 18px;
  }
  .auth-page-mobile-intro .auth-page-kicker {
    margin-top: 0;
  }
  .auth-page-mobile-lead {
    margin: 14px 0 0;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--muted);
    font-weight: 500;
    max-width: 36ch;
  }
  .auth-page-card {
    max-width: 480px;
    margin: 0 auto;
  }
  .wfooter .wrap > div { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 620px) {
  .grid-3:not(.energy-action-grid), .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .wnav-links { display: none; }
  .wnav-menu-btn { display: inline-flex; }
  .wnav-signin { display: none; }
  .wnav .wbtn { height: 40px; padding: 0 14px; font-size: 13.5px; }
  .dash-main {
    padding: 16px max(16px, env(safe-area-inset-right)) max(40px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  }
  .topbar-mini-left .wbtn span,
  .topbar-mini-left .wbtn { font-size: 0; padding: 0 10px; gap: 0; }
  .topbar-mini-left .wbtn .ms { font-size: 18px !important; }
  .tesla-land-hero-cinema { padding-top: 72px; min-height: 100svh; }
  .tesla-land-hero-center { margin-top: 0; }
  .tesla-land-orbit { width: min(85vw, 360px); transform: translate(-50%, -52%); opacity: .7; }
  .tesla-land-hero-hud { margin-top: 24px; padding: 12px 16px; gap: 12px; justify-content: center; }
  .tesla-land-hud-flow { width: 100%; justify-content: space-around; }
  .tesla-land-cta-bar { grid-template-columns: 1fr; }
  .tesla-land-cta-btn.ghost { border-left: none; border-top: 1px solid rgba(255,255,255,.1); }
  .tesla-land-scroll-cue { display: none; }
  .tesla-land-mp-cta { width: calc(100% - 44px); }
  .auth-page-shell {
    padding-top: 20px;
    padding-bottom: 36px;
  }
  .auth-page-main { padding: 0; }
  .auth-demo-list { max-height: none; }
  .wfooter .wrap > div { grid-template-columns: 1fr !important; }
}

/* ——— Solar finance portals ——— */
.finance-sla {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
}
.finance-sla-ok { background: var(--eco-tint); color: var(--eco-d); }
.finance-sla-warn { background: var(--solar-tint); color: #b46a00; }
.finance-sla-danger { background: #fdecec; color: var(--danger); }
.finance-sla-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
}
.finance-sla-banner.finance-sla-ok { background: var(--eco-tint); color: var(--eco-d); }
.finance-sla-banner.finance-sla-warn { background: var(--solar-tint); color: #b46a00; }
.finance-sla-banner.finance-sla-danger { background: #fdecec; color: var(--danger); }

/* Finance partner portal — premium dashboard skin */
.finance-portal-premium .dash-header-block {
  margin-bottom: 8px;
}
.finance-portal-row {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  padding: 18px;
}
.finance-portal-row-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--violet-tint);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.finance-portal-row-icon.eco {
  background: var(--eco-tint);
}
.finance-portal-empty {
  padding: 24px;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
}
.finance-portal-filters {
  flex-wrap: wrap;
}
.finance-portal-table-head,
.finance-portal-table-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr .8fr .8fr 1fr 1fr;
  align-items: center;
  padding: 14px 22px;
}
.finance-portal-table-head {
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--faint);
  text-transform: uppercase;
}
.finance-portal-table-row {
  width: 100%;
  text-align: left;
  cursor: pointer;
  background: var(--surface);
  border: none;
  font-family: Manrope, system-ui, sans-serif;
  padding-top: 16px;
  padding-bottom: 16px;
}
.finance-portal-table-row:hover {
  background: var(--surface-2);
}
.finance-portal-charts {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 22px;
}
.finance-portal-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(5, 8, 18, .55);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: flex-end;
  animation: fadeUp .2s var(--ease);
}
.finance-portal-drawer {
  width: min(560px, 94vw);
  height: 100%;
  background: var(--surface);
  overflow-y: auto;
  animation: slideIn .3s var(--ease);
  box-shadow: -18px 0 48px rgba(5, 8, 18, .18);
}
.finance-portal-drawer-head {
  background: var(--navy);
  color: #fff;
  padding: 24px 28px;
  position: relative;
  overflow: hidden;
}
.finance-portal-drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: rgba(255, 255, 255, .12);
  display: flex;
  align-items: center;
  justify-content: center;
}
.finance-portal-drawer-actions {
  position: sticky;
  bottom: 0;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 16px 28px;
}
.finance-portal-trust-card {
  padding: 24px;
  display: flex;
  gap: 24px;
  align-items: center;
  border: 1.5px solid var(--violet);
  background: var(--violet-tint);
}
.finance-portal-carbon-card {
  padding: 20px;
  border: 1.5px solid var(--eco-tint);
  background: var(--eco-tint);
}
.finance-portal-metric-tile {
  padding: 12px;
  border-radius: 8px;
  background: #fff;
}
@media (max-width: 900px) {
  .finance-portal-charts {
    grid-template-columns: 1fr;
  }
  .finance-portal-table-head,
  .finance-portal-table-row {
    grid-template-columns: 1.2fr .9fr .7fr;
  }
  .finance-portal-table-head span:nth-child(n+4),
  .finance-portal-table-row > :nth-child(n+4) {
    display: none;
  }
  .finance-portal-table-head span:last-child,
  .finance-portal-table-row > :last-child {
    display: block;
  }
}

.finance-upfront-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 16px;
  border-radius: 12px;
  background: var(--surface-2);
}
.finance-provider-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--primary-tint);
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}
.finance-rate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}
.finance-rate-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface-2);
  font-size: 13.5;
}

/* Finance partner action modals — Tesla-grade clean */
.finance-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(5, 8, 18, 0.42);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: fadeUp 0.22s var(--ease);
}
.finance-modal {
  width: min(480px, 100%);
  max-height: min(90dvh, 720px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(5, 8, 18, 0.28), 0 0 0 1px rgba(0, 0, 0, 0.04);
  animation: fadeUp 0.28s var(--ease);
}
.finance-modal-head {
  padding: 22px 24px 0;
  flex-shrink: 0;
}
.finance-modal-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.finance-modal-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 6px;
  line-height: 1.2;
}
.finance-modal-meta {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 6px;
}
.finance-modal-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: var(--surface-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.finance-modal-close:hover { background: var(--surface-3); }
.finance-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.finance-modal-foot {
  padding: 16px 24px 22px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.finance-modal-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 10px;
}
.finance-modal-hint {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}
.finance-modal-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.finance-modal-input,
.finance-modal-textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.finance-modal-input:focus,
.finance-modal-textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(5, 8, 18, 0.06);
}
.finance-modal-textarea {
  resize: vertical;
  min-height: 88px;
  line-height: 1.5;
  font-weight: 500;
}
.finance-modal-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.finance-modal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.finance-modal-chip {
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.finance-modal-chip:hover {
  border-color: var(--line-2);
  color: var(--ink);
}
.finance-modal-chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.finance-modal-notify {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.finance-modal-notify-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  cursor: pointer;
  background: #fff;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  transition: background 0.12s ease;
}
.finance-modal-notify-row + .finance-modal-notify-row {
  border-top: 1px solid var(--line);
}
.finance-modal-notify-row:hover:not(:disabled) { background: var(--surface-2); }
.finance-modal-notify-row:disabled { opacity: 0.45; cursor: not-allowed; }
.finance-modal-notify-copy { flex: 1; min-width: 0; }
.finance-modal-notify-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.finance-modal-notify-sub {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.finance-modal-switch {
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: var(--surface-3);
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s ease;
}
.finance-modal-switch.on { background: var(--ink); }
.finance-modal-switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s var(--ease);
}
.finance-modal-switch.on .finance-modal-switch-knob { transform: translateX(18px); }
.finance-modal-delivery {
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.finance-modal-delivery-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.finance-modal-delivery-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.finance-modal-error {
  font-size: 13px;
  font-weight: 600;
  color: var(--danger);
  padding: 10px 12px;
  border-radius: 8px;
  background: #fdecec;
}
.finance-modal-btn-primary {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.12s ease;
}
.finance-modal-btn-primary:hover:not(:disabled) { opacity: 0.92; }
.finance-modal-btn-primary:active:not(:disabled) { transform: scale(0.985); }
.finance-modal-btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }
.finance-modal-btn-ghost {
  width: 100%;
  height: 42px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}
.finance-modal-btn-ghost:hover { color: var(--ink); }
@media (max-width: 640px) {
  .finance-modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }
  .finance-modal {
    width: 100%;
    max-height: 92dvh;
    border-radius: 16px 16px 0 0;
  }
  .finance-modal-grid-2 { grid-template-columns: 1fr; }
}

/* Energy Audit — AI Auditor consultant flow */
.ea-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.ea-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 8px;
  display: block;
}
.ea-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  padding: 28px;
  background: linear-gradient(135deg, #0a1628 0%, #152238 100%);
  color: #fff;
  border: none;
}
.ea-hero-copy p { color: rgba(255,255,255,.65); }
.ea-hero-badges { justify-content: center; }
.ea-jurisdiction-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
}
.ea-flow-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  flex-wrap: wrap;
}
.ea-flow-step {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ea-flow-step span {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ea-grade-pill {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ea-grade-pill.lg { width: 56px; height: 56px; font-size: 22px; border-radius: 12px; }
.ea-wizard { max-width: 720px; margin: 0 auto; }
.ea-wizard-head { margin-bottom: 18px; }
.ea-stepper { flex-wrap: wrap; }
.ea-step-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
}
.ea-step-pill.active { background: var(--ink); color: #fff; }
.ea-step-pill.done { background: var(--eco-tint); color: var(--eco-d); }
.ea-wizard-body { padding: 28px; margin-bottom: 16px; }
.ea-wizard-foot { padding: 0 4px; }
.ea-jurisdiction-grid,
.ea-building-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.ea-jurisdiction-card,
.ea-building-card {
  padding: 18px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ea-jurisdiction-card.selected,
.ea-building-card.selected {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}
.ea-sme-tag {
  margin-top: 10px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--solar);
}
.ea-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.ea-field { display: flex; flex-direction: column; gap: 6px; }
.ea-field-full { grid-column: 1 / -1; }
.ea-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
}
.ea-input:focus { outline: none; border-color: var(--ink); }
.ea-upload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.ea-upload-card {
  padding: 20px 16px;
  border-radius: 12px;
  border: 1.5px dashed var(--line);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.ea-upload-card:hover { border-color: var(--primary); background: var(--primary-tint); }
.ea-review-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 18px;
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 14px;
}
.ea-review-summary span { color: var(--muted); font-weight: 600; display: block; font-size: 12px; }
.ea-review-summary strong { font-weight: 800; margin-top: 2px; display: block; }
.ea-ai-banner {
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.ea-result-hero { padding: 28px; }
.ea-result-grade {
  text-align: center;
  padding: 16px 24px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
}
.ea-result-grade-val { font-size: 48px; font-weight: 800; line-height: 1; }
.ea-result-grade-label { font-size: 13px; font-weight: 700; margin-top: 4px; opacity: 0.85; }
.ea-cert-banner {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--eco-tint);
  border: 1px solid var(--eco);
}
.ea-pending-banner {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--solar-tint);
  border: 1px solid var(--solar);
}
.ea-compliance-row,
.ea-rec-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.ea-compliance-row:last-child,
.ea-rec-row:last-child { border-bottom: none; }
.ea-finding {
  padding: 12px 14px;
  border-radius: 10px;
  border-left: 3px solid var(--line);
}
.ea-finding-info { background: var(--surface-2); border-left-color: var(--primary); }
.ea-finding-warning { background: var(--solar-tint); border-left-color: var(--solar); }
.ea-finding-critical { background: #fdecec; border-left-color: var(--danger); }
.ea-error {
  padding: 12px 16px;
  border-radius: 10px;
  background: #fdecec;
  color: var(--danger);
  font-size: 13.5px;
  font-weight: 700;
}
.ea-success {
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--eco-tint);
  color: var(--eco-d);
  font-size: 13.5px;
  font-weight: 700;
}
.ea-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
}
.ea-cal-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.ea-cal-row:last-child { border-bottom: none; }
.ea-address-wrap { position: relative; }
.ea-address-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
}
.ea-address-input-row:focus-within { border-color: var(--ink); }
.ea-address-input-row .ea-input { border: none; padding-left: 0; }
.ea-address-spinner { font-size: 12px; color: var(--faint); font-weight: 700; }
.ea-address-dropdown {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
  max-height: 240px;
  overflow: auto;
}
.ea-address-option {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}
.ea-address-option:hover { background: var(--surface-2); }
.ea-snap-panel {
  padding: 22px;
  border-radius: var(--r-lg);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.ea-snap-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ea-snap-zones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ea-snap-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 16px;
  border-radius: var(--r-md);
  border: 1.5px dashed var(--line-2);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
  font-family: inherit;
  text-align: center;
}
.ea-snap-zone:hover:not(:disabled) {
  border-color: var(--primary);
  box-shadow: var(--sh-sm);
  transform: translateY(-1px);
}
.ea-snap-zone:disabled { opacity: 0.65; cursor: wait; }
.ea-snap-zone-title { font-size: 14px; font-weight: 800; color: var(--ink); }
.ea-snap-zone-desc { font-size: 12px; font-weight: 600; color: var(--muted); line-height: 1.35; }
.ea-snap-result {
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
}
.ea-snap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  font-size: 13px;
}
.ea-snap-grid span { display: block; font-size: 11px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.ea-snap-grid strong { display: block; font-weight: 800; margin-top: 2px; }
.ea-snap-grid em { display: block; font-size: 11px; color: var(--muted); font-style: normal; margin-top: 4px; }
.ea-source-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--eco-tint);
  color: var(--eco-d);
}
.ea-kwh-helper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* Energy audit — Tesla-grade configurator (dashboard flow) */
.ea-config-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 28px;
  align-items: start;
  margin-top: 8px;
}
.ea-config-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.ea-step-card {
  padding: 28px;
}
.ea-preview-panel {
  position: sticky;
  top: 20px;
  isolation: isolate;
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, #0a1628 0%, #152238 52%, #0d1a2d 100%);
  color: #fff;
  padding: 24px 22px;
  min-height: 440px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(10, 22, 40, 0.35);
}
.ea-preview-glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 55%;
  background: radial-gradient(ellipse at 50% 0%, rgba(126, 180, 255, 0.22), transparent 70%);
  pointer-events: none;
}
.ea-preview-top { position: relative; z-index: 1; margin-bottom: 20px; }
.ea-preview-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.ea-preview-flag { font-size: 36px; line-height: 1; position: relative; z-index: 1; }
.ea-preview-framework {
  font-size: 20px;
  font-weight: 800;
  margin-top: 12px;
  position: relative;
  z-index: 1;
  letter-spacing: -0.02em;
}
.ea-preview-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 4px;
  position: relative;
  z-index: 1;
}
.ea-preview-metrics {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}
.ea-preview-metric span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.ea-preview-metric strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  margin-top: 4px;
  line-height: 1.35;
  word-break: break-word;
}
.ea-preview-step-list {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}
.ea-preview-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
  padding: 8px 10px;
  border-radius: 8px;
}
.ea-preview-step.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
.ea-preview-step.done { color: rgba(255, 255, 255, 0.72); }
.ea-preview-step-num {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ea-preview-step.active .ea-preview-step-num { background: #7eb4ff; color: #0a1628; }
.ea-preview-step.done .ea-preview-step-num { background: rgba(61, 214, 140, 0.25); color: #3dd68c; }
.ea-preview-cert {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.45;
  position: relative;
  z-index: 1;
}
.ea-action-bar {
  position: sticky;
  bottom: 0;
  z-index: 20;
  margin-top: 16px;
  padding: 16px 0 4px;
  background: linear-gradient(to top, var(--bg) 78%, transparent);
  backdrop-filter: blur(8px);
}
@media (max-width: 960px) {
  .ea-config-layout { grid-template-columns: 1fr; }
  .ea-preview-panel {
    position: relative;
    top: 0;
    min-height: auto;
  }
  .ea-preview-step-list { display: none; }
}

@media (max-width: 768px) {
  .ea-hero { grid-template-columns: 1fr; }
  .ea-jurisdiction-grid,
  .ea-building-grid,
  .ea-form-grid,
  .ea-review-summary { grid-template-columns: 1fr; }
  .ea-snap-grid,
  .ea-snap-zones { grid-template-columns: 1fr; }
}

/* ---------- customer wallet (dashboard flow) ---------- */
.cust-wallet-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cust-wallet-preset {
  height: 36px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.cust-wallet-preset:hover {
  border-color: var(--line-2);
  background: var(--surface-3);
}
.cust-wallet-preset.active {
  border-color: var(--primary);
  background: var(--primary-tint);
  color: var(--primary-d);
}
.cust-wallet-amount-wrap {
  position: relative;
}
.cust-wallet-amount-wrap .winput {
  height: 52px;
  font-size: 22px;
  font-weight: 800;
  padding-left: 44px;
  border-radius: var(--r-md);
}
.cust-wallet-amount-prefix {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  font-weight: 800;
  color: var(--faint);
  pointer-events: none;
}
.cust-wallet-ledger-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.cust-wallet-ledger-row:first-of-type { border-top: none; padding-top: 4px; }
.cust-wallet-ledger-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cust-wallet-ledger-icon.credit {
  background: var(--eco-tint);
  border: 1px solid rgba(18, 184, 134, 0.2);
}
.cust-wallet-ledger-icon.debit {
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.cust-wallet-ledger-desc {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}
.cust-wallet-ledger-time {
  font-size: 12px;
  color: var(--faint);
  margin-top: 2px;
  font-weight: 600;
}
.cust-wallet-ledger-amt {
  font-size: 15px;
  font-weight: 800;
  flex-shrink: 0;
}
.cust-wallet-ledger-amt.credit { color: var(--eco-d); }
.cust-wallet-ledger-amt.debit { color: var(--ink); }

/* payment panel — wallet strip (light card; must stay readable on pw-flow / dark checkout) */
.xolaar-payment-panel {
  max-width: 100%;
}
.xolaar-wallet-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--primary-tint);
  border: 1px solid rgba(47, 107, 255, 0.35);
  color: #0f172a;
}
.xolaar-wallet-strip--low {
  border-color: rgba(180, 106, 0, 0.35);
  background: rgba(255, 243, 224, 0.95);
}
.xolaar-wallet-strip-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.xolaar-wallet-balance-label {
  font-weight: 700;
  font-size: 12.5px;
  color: #334155;
}
.xolaar-wallet-balance-val {
  font-size: 20px;
  font-weight: 800;
  margin-top: 2px;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.xolaar-wallet-hint {
  font-size: 12px;
  font-weight: 700;
  color: #9a6700;
  margin-top: 6px;
  line-height: 1.4;
}
.xolaar-wallet-topup-btn {
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}
.xolaar-wallet-topup-btn:hover {
  border-color: rgba(15, 23, 42, 0.22);
}
.xolaar-pay-card {
  padding: 16px 18px;
}
.xolaar-pay-card-title {
  font-weight: 800;
  font-size: 14.5px;
}
.xolaar-pay-card-sub {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
}
.xolaar-pay-method-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.xolaar-pay-method {
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.xolaar-pay-method.is-active {
  border-color: var(--primary);
  background: var(--primary-tint);
  color: var(--primary);
}
.xolaar-pay-method.is-muted {
  opacity: 0.45;
  cursor: not-allowed;
}
.pw-flow .xolaar-wallet-strip {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: rgba(47, 107, 255, 0.28) !important;
  color: #0f172a !important;
}
.pw-flow .xolaar-wallet-strip--low {
  background: rgba(255, 248, 235, 0.98) !important;
  border-color: rgba(180, 106, 0, 0.28) !important;
}
.pw-flow .xolaar-wallet-strip .xolaar-wallet-balance-label,
.pw-flow .xolaar-wallet-strip .xolaar-wallet-balance-val,
.pw-flow .xolaar-wallet-strip .xolaar-wallet-hint {
  color: inherit;
}
.pw-flow .xolaar-wallet-strip .xolaar-wallet-balance-label {
  color: #475569 !important;
}
.pw-flow .xolaar-wallet-strip .xolaar-wallet-balance-val {
  color: #0f172a !important;
}
.pw-flow .xolaar-wallet-topup-btn {
  background: #fff;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.14);
}
.pw-flow .xolaar-pay-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--pw-line-faint);
  color: #fff;
}
.pw-flow .xolaar-pay-card-title {
  color: #fff;
}
.pw-flow .xolaar-pay-card-sub {
  color: var(--pw-muted);
}
.pw-flow .xolaar-pay-method {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--pw-line-faint);
  color: var(--pw-muted);
}
.pw-flow .xolaar-pay-method.is-active {
  background: rgba(62, 110, 225, 0.18);
  border-color: rgba(62, 110, 225, 0.45);
  color: #fff;
}
.pw-flow .xolaar-pay-due {
  margin-top: 4px;
}
.pw-flow .xolaar-pay-actions .pw-btn.primary {
  border-radius: 4px;
  font-weight: 500;
  letter-spacing: 0;
}

/* payment panel — premium checkout typography */
.xolaar-pay-head {
  margin-bottom: 6px;
}
.xolaar-pay-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}
.xolaar-pay-title {
  margin: 10px 0 0;
  font-size: clamp(26px, 5vw, 32px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
}
.xolaar-pay-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.pw-flow .xolaar-pay-kicker {
  color: #7eb4ff;
}
.pw-flow .xolaar-pay-title {
  color: #fff;
  font-weight: 500;
}
.pw-flow .xolaar-pay-section-label {
  color: var(--pw-muted);
}

/* ---------- customer marketplace (dashboard flow) ---------- */
.cust-mp { padding-bottom: 8px; }
.cust-mp-has-cart { padding-bottom: 96px; }
.cust-mp-hero { margin-top: 0; position: relative; }
.cust-mp-hero .hero-glow-a {
  background: radial-gradient(circle, rgba(47, 107, 255, 0.22) 0%, transparent 68%);
}
@media (max-width: 980px) {
  .cust-mp-hero.energy-hub-hero {
    grid-template-columns: 1fr;
    padding: 20px 20px 18px;
    gap: 0;
    align-items: start;
  }
  .cust-mp-hero .energy-hub-hero-visual {
    display: none;
  }
  .cust-mp-hero .energy-hub-hero-copy p {
    max-width: none;
    margin-top: 8px;
    font-size: 13.5px;
  }
}
@media (max-width: 768px) {
  .cust-mp-hero.energy-hub-hero {
    padding: 16px 16px 14px;
  }
  .cust-mp-hero .energy-hub-hero-copy h2.display-md {
    font-size: clamp(20px, 5.2vw, 24px) !important;
    margin-top: 6px !important;
  }
}
.cust-mp-section-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}
.cust-mp-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.cust-mp-quick-card {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cust-mp-quick-card.in-cart {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(47, 107, 255, 0.15);
}
.cust-mp-quick-visual {
  display: flex;
  justify-content: center;
  padding: 8px 0 4px;
}
.cust-mp-quick-cat {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.cust-mp-quick-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.35;
}
.cust-mp-quick-meta {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  flex: 1;
}
.cust-mp-quick-foot {
  margin-top: 4px;
  align-items: center;
}
.cust-mp-quick-price {
  font-weight: 800;
  font-size: 16px;
  color: var(--ink);
}
.cust-mp-charging { padding: 20px 22px; }
.cust-mp-filters .cust-mp-search-wrap { flex: 1 1 220px; min-width: 0; }
.cust-mp-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0;
}
.cust-mp-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 4px 12px;
  margin-right: 16px;
  margin-bottom: -1px;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.cust-mp-tab:hover { color: var(--ink); }
.cust-mp-tab.active {
  color: var(--ink);
  border-bottom-color: var(--primary);
}
.cust-mp-tab-ghost { margin-left: auto; margin-right: 0; }
.cust-mp-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.cust-mp-flow-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
}
.cust-mp-flow-num {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--primary-d);
  background: var(--primary-tint);
  border: 1px solid rgba(47, 107, 255, 0.2);
}
.cust-mp-promo-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--eco-tint);
  border: 1px solid rgba(18, 184, 134, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cust-mp-coord {
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.45;
}
.cust-mp-filters .cust-mp-chip-row { margin-top: 14px; }
.cust-mp-search-wrap {
  position: relative;
  flex: 1 1 220px;
  min-width: 200px;
}
.cust-mp-search-wrap .ms {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.cust-mp-search-wrap .winput {
  width: 100%;
  height: 44px;
  padding-left: 42px;
}
.cust-mp-select {
  height: 44px;
  min-width: 140px;
}
.cust-mp-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cust-mp-chip {
  height: 34px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.cust-mp-chip:hover {
  border-color: var(--line-2);
  color: var(--ink);
}
.cust-mp-chip.active {
  border-color: var(--primary);
  background: var(--primary-tint);
  color: var(--primary-d);
}
.cust-mp-count {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--faint);
}
.cust-mp-empty {
  padding: 32px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.cust-mp-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.cust-mp-catalog-card .cust-mp-product-visual {
  min-height: 168px;
  padding: 16px 16px 10px;
}
.cust-mp-catalog-card .cust-mp-product-body {
  padding: 16px 18px 18px;
}
.cust-mp-catalog-card .cust-mp-product-title {
  font-size: 14.5px;
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cust-mp-catalog-card .cust-mp-product-spec {
  font-size: 12.5px;
  margin-top: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cust-mp-catalog-card .cust-mp-product-price {
  font-size: 18px;
  margin-top: 10px;
}
.cust-mp-deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.cust-mp-product {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border-color: var(--line);
}
.cust-mp-product-visual {
  padding: 20px 20px 12px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 200px;
  background: linear-gradient(165deg, #f4f8ff 0%, #eef4ff 55%, #f8fafc 100%);
  border-bottom: 1px solid var(--line);
}
.cust-mp .energy-product-card-visual {
  background: linear-gradient(165deg, #f4f8ff 0%, #eef4ff 55%, #f8fafc 100%);
  border-bottom: 1px solid var(--line);
}
.app-flow-root .cust-mp .cust-mp-product:hover,
.app-flow-root .cust-mp .cust-energy-product:hover {
  border-color: rgba(47, 107, 255, 0.22);
  box-shadow: 0 14px 36px rgba(15, 30, 60, 0.08);
  transform: translateY(-2px);
}
.app-flow-root .cust-mp .cust-mp-product {
  transition: border-color 0.28s var(--ease), box-shadow 0.28s var(--ease), transform 0.28s var(--ease);
}
.cust-mp-product-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.cust-mp-product-cat {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--mp-accent, var(--primary));
}
.cust-mp-product-xq {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--eco-d);
}
.cust-mp-product-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 8px 0 0;
  line-height: 1.3;
  color: var(--ink);
}
.cust-mp-product-vendor {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 4px;
}
.cust-mp-product-spec {
  font-size: 13px;
  color: var(--muted);
  margin: 10px 0 0;
  line-height: 1.45;
  flex: 1;
}
.cust-mp-product-meta {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--faint);
  margin-top: 8px;
}
.cust-mp-product-foot {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  align-items: flex-end;
  gap: 12px;
}
.cust-mp-product-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.cust-mp-product-stock {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--eco-d);
  margin-top: 2px;
}
.cust-mp-product-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: none;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
}
.cust-mp-product-btn:hover {
  background: var(--surface-3);
  border-color: var(--line-2);
}
.cust-mp-product-btn.in-cart {
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--line);
}
.cust-mp-product-btn.in-cart:hover {
  border-color: var(--line-2);
  background: var(--surface-2);
}
.cust-mp-deal-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--solar);
}
.cust-mp-deal {
  padding: 0;
  overflow: hidden;
  border-color: rgba(245, 165, 36, 0.35);
}
.cust-mp-deal .cust-mp-product-body {
  padding: 16px 18px 18px;
}
.cust-mp-deal .cust-mp-product-visual {
  min-height: 168px;
  padding: 16px 16px 10px;
}
.cust-mp-charging-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.cust-mp-charging-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--line);
  flex-wrap: wrap;
}
.cust-mp-cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 40px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 32px rgba(16, 22, 43, 0.08);
}
.cust-mp-cart-bar-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.cust-mp-cart-bar-count {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  color: var(--primary-d);
  background: var(--primary-tint);
  border: 1px solid rgba(47, 107, 255, 0.2);
  flex-shrink: 0;
}
.app-flow-root .tesla-svc-quick { margin-top: 0; }
@media (max-width: 900px) {
  .cust-mp-flow { grid-template-columns: 1fr; }
  .cust-mp-charging-grid { grid-template-columns: 1fr; }
  .cust-mp-quick-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .cust-mp-product-grid,
  .cust-mp-deals-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cust-mp-quick-grid { grid-template-columns: 1fr; }
  .cust-mp-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0;
    margin: 0 -4px;
    padding: 0 4px 0;
  }
  .cust-mp-tabs::-webkit-scrollbar { display: none; }
  .cust-mp-tab {
    flex: 0 0 auto;
    min-height: 44px;
    margin-right: 14px;
    font-size: 13.5px;
  }
  .cust-mp-tab-ghost { margin-left: 0; }
  .cust-mp-chip {
    min-height: 44px;
    height: auto;
    padding: 10px 16px;
  }
  .cust-mp-product-btn {
    min-height: 44px;
    height: auto;
    padding: 12px 18px;
  }
  .cust-mp-cart-bar {
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .cust-mp-cart-bar .row,
  .cust-mp-cart-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .cust-mp-cart-bar .wbtn,
  .cust-mp-cart-actions .wbtn {
    flex: 1;
    min-width: 0 !important;
    width: 100%;
    min-height: 44px;
  }
  .cust-mp-has-cart { padding-bottom: calc(148px + env(safe-area-inset-bottom)); }
}
@media (max-width: 560px) {
  .cust-mp-product-grid,
  .cust-mp-deals-grid { grid-template-columns: 1fr; }
  .cust-mp-product-visual,
  .cust-mp-catalog-card .cust-mp-product-visual,
  .cust-mp-deal .cust-mp-product-visual {
    min-height: 168px;
  }
  .cust-mp-cart-bar .row,
  .cust-mp-cart-actions { grid-template-columns: 1fr; }
}

/* —— In-house 3PL logistics —— */
.logistics-map-panel {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}
.logistics-map-panel.compact .logistics-map-wrap { height: 280px; }
.logistics-map-head {
  padding: 18px 22px;
  background: var(--navy);
  color: #fff;
}
.logistics-map-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(61,214,140,.15);
  color: #3dd68c;
  font-size: 12px;
  font-weight: 800;
}
.logistics-map-wrap {
  height: 380px;
  position: relative;
  background: #0a0e1a;
}
.logistics-map-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 100%;
  color: var(--muted);
  font-weight: 600;
}
.logistics-leaflet-map {
  width: 100%;
  height: 100%;
  z-index: 1;
}
.logistics-map-selection {
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}
.logistics-driver-pin {
  position: relative;
  width: 44px;
  height: 44px;
}
.logistics-driver-pulse {
  position: absolute;
  inset: 4px;
  border-radius: 999px;
  background: rgba(62,110,225,.35);
  animation: pulseGlow 1.6s infinite;
}
.logistics-driver-core {
  position: absolute;
  inset: 12px;
  border-radius: 999px;
  background: #3e6ee1;
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.logistics-driver-pin.selected .logistics-driver-core {
  background: #3dd68c;
  transform: scale(1.15);
}
.logistics-dest-pin {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  background: #f5a623;
  border: 2px solid #fff;
  transform: rotate(45deg);
  margin: 7px;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.logistics-driver-hero {
  position: relative;
  border-radius: var(--r-xl);
  background: var(--navy);
  color: #fff;
  padding: 28px 32px;
  overflow: hidden;
}
.logistics-driver-hero-glow {
  position: absolute;
  top: -50%;
  right: -10%;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(62,110,225,.4) 0%, transparent 70%);
  pointer-events: none;
}
.logistics-otp-band {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.logistics-otp-code {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-top: 4px;
}
.logistics-otp-input {
  font-size: 22px !important;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-align: center;
  font-family: var(--mono, ui-monospace, monospace);
}
.logistics-phase-track { margin-top: 4px; }
.logistics-phase {
  flex: 1;
  text-align: center;
  padding: 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  background: var(--surface-2);
  color: var(--muted);
}
.logistics-phase.active {
  background: var(--primary-tint);
  color: var(--primary);
}
.logistics-phase.done {
  background: var(--eco-tint);
  color: var(--eco-d);
}
.logistics-signature-canvas {
  width: 100%;
  max-width: 360px;
  border-radius: 10px;
  border: 1.5px dashed var(--line-2);
  background: #fff;
  touch-action: none;
  cursor: crosshair;
}
.logistics-driver-roster-card.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}
.logistics-driver-online {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--faint);
  flex-shrink: 0;
}
.logistics-driver-online.on {
  background: var(--eco);
  animation: pulseGlow 1.4s infinite;
}
.pw-tracking-delivery-otp {
  border: 1.5px solid var(--primary);
  background: var(--primary-tint);
}

@media (max-width: 900px) {
  .logistics-map-wrap { height: 300px; }
}

/* —— Charging network admin —— */
.charging-admin-hero {
  position: relative;
  border-radius: var(--r-xl);
  background: var(--navy);
  color: #fff;
  padding: 28px 32px;
  overflow: hidden;
}
.charging-admin-hero-glow {
  position: absolute;
  top: -45%;
  right: -12%;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(61,214,140,.3) 0%, transparent 70%);
  pointer-events: none;
}
.charging-battery-sku {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.charging-battery-sku-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--primary-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.charging-station-config {
  animation: fadeUp .2s var(--ease);
}
.charging-ledger-row {
  border-left: 3px solid var(--primary);
}
.charging-ops-admin .chip.active {
  font-weight: 800;
}

/* customer inbox + support desk */
.inbox-desk,
.support-desk {
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(0, 1.28fr);
  gap: 16px;
  align-items: stretch;
}
.inbox-desk-list,
.support-desk-list,
.inbox-desk-main,
.support-desk-main {
  padding: 18px 18px 20px;
  min-height: 460px;
}
.inbox-desk-main,
.support-desk-main {
  display: flex;
  flex-direction: column;
}
.inbox-desk-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.inbox-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.inbox-filters .chip.active {
  background: var(--navy, #06152b);
  color: #fff;
  border-color: transparent;
}
.inbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}
.inbox-row:hover { background: var(--surface-2); }
.inbox-row.selected {
  background: var(--surface);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-tint);
}
.inbox-row.read .inbox-row-title { font-weight: 600; color: var(--ink); }
.inbox-row-title {
  font-weight: 800;
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.35;
}
.inbox-row-meta {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 3px;
}
.inbox-empty-copy {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
  margin: 8px 0 0;
}
.inbox-detail-title {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 8px 0 0;
  color: var(--ink);
}
.inbox-detail-time {
  font-size: 12.5px;
  color: var(--faint);
  font-weight: 600;
  margin: 8px 0 0;
}
.inbox-detail-body {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.55;
  margin: 14px 0 18px;
  max-width: 52ch;
}
.support-compose-inline { display: flex; flex-direction: column; }

/* Intercom-style customer inbox — full-height workspace on the dashboard tab */
.dash-shell:has(.ix-app) {
  height: 100dvh;
  overflow: hidden;
}
.dash-main:has(.ix-app) {
  padding: 0;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.dash-main:has(.ix-app) > .dash-tab-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.app-flow-root .dash-tab-enter:has(.ix-app) { animation: none; }

.ix-app {
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 0;
  display: flex;
  background: #fff;
  color: var(--ink);
}
.ix-list {
  width: 352px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid var(--line);
  background: #fff;
}
.ix-list-head { padding: 16px 16px 0; flex-shrink: 0; }
.ix-list-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
}
.ix-list-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.ix-count {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ix-caught {
  font-size: 12px;
  font-weight: 600;
  color: var(--faint);
}
.ix-text-btn {
  margin-left: auto;
  border: 0;
  background: none;
  padding: 4px 0;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
}
.ix-text-btn:hover { color: var(--primary-d); }
.ix-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  margin-top: 12px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid transparent;
  color: var(--faint);
}
.ix-search:focus-within {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-tint);
  color: var(--muted);
}
.ix-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.ix-search input::placeholder { color: var(--faint); font-weight: 600; }
.ix-search-clear {
  border: 0;
  background: none;
  padding: 0;
  display: flex;
  color: var(--faint);
  cursor: pointer;
}
.ix-tabs {
  display: flex;
  gap: 2px;
  margin-top: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--line);
}
.ix-tabs::-webkit-scrollbar { display: none; }
.ix-tab {
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--faint);
  padding: 8px 8px 10px;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.ix-tab:hover { color: var(--ink); }
.ix-tab.is-on { color: var(--ink); border-bottom-color: var(--primary); }
.ix-rows { flex: 1; min-height: 0; overflow: auto; }
.ix-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}
.ix-row:hover { background: #f7f8fb; }
.ix-row.is-selected { background: #f3f6ff; box-shadow: inset 2px 0 0 var(--primary); }
.ix-row:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.ix-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  position: relative;
}
.ix-avatar-finance { background: var(--solar-tint); color: #9a6708; }
.ix-avatar-order { background: var(--primary-tint); color: var(--primary); }
.ix-avatar-charging { background: var(--eco-tint); color: var(--eco-d); }
.ix-avatar-system { background: var(--violet-tint); color: #6d28d9; }
.ix-avatar-xolaar {
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
}
.ix-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 2px #fff;
}
.ix-row.is-selected .ix-dot { box-shadow: 0 0 0 2px #f3f6ff; }
.ix-row-main { flex: 1; min-width: 0; }
.ix-row-top { display: flex; align-items: baseline; gap: 8px; }
.ix-row-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.ix-row.is-read .ix-row-title { font-weight: 600; color: #3c445c; }
.ix-row-time {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--faint);
}
.ix-row:not(.is-read) .ix-row-time { color: var(--muted); }
.ix-row-preview {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  font-weight: 550;
  line-height: 1.35;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ix-row.is-read .ix-row-preview { color: var(--faint); }
.ix-empty, .ix-blank {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
}
.ix-empty { padding: 36px 22px; gap: 8px; }
.ix-empty p, .ix-blank p {
  margin: 0;
  max-width: 34ch;
  font-size: 13.5px;
  line-height: 1.5;
  font-weight: 550;
}
.ix-blank { flex: 1; padding: 32px; }
.ix-blank h2 {
  margin: 12px 0 6px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.ix-blank-mark {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
}
.ix-skel { padding: 8px 0; }
.ix-skel-row { display: flex; gap: 12px; padding: 12px 16px; }
.ix-skel-av, .ix-skel-lines span {
  background: var(--surface-3);
  border-radius: 999px;
}
.ix-skel-av { width: 36px; height: 36px; flex-shrink: 0; }
.ix-skel-lines { flex: 1; display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.ix-skel-lines span { height: 10px; border-radius: 6px; }
.ix-skel-lines span:first-child { width: 68%; }
.ix-skel-lines span:last-child { width: 92%; }

.ix-thread {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #f4f5f7;
}
.ix-thread-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  flex-shrink: 0;
}
.ix-back {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink);
  flex-shrink: 0;
}
.ix-back:hover { background: var(--surface-2); }
.ix-thread-kicker {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
}
.ix-thread-title {
  margin: 1px 0 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.ix-thread-scroll { flex: 1; min-height: 0; overflow: auto; }
.ix-msg {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  max-width: 720px;
  padding: 22px 22px 8px;
}
.ix-msg-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}
.ix-msg-meta strong { font-size: 13.5px; font-weight: 700; }
.ix-msg-meta time { font-size: 12px; font-weight: 650; color: var(--faint); }
.ix-msg p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  font-weight: 520;
  color: var(--ink);
}
.ix-composer-wrap { padding: 8px 16px 16px; flex-shrink: 0; }
.ix-composer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  padding: 10px 10px 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 22, 43, 0.06);
}
.ix-composer-hint {
  flex: 1 1 180px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.4;
}
.ix-composer-actions { display: flex; gap: 8px; margin-left: auto; }
.ix-btn {
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}
.ix-btn:hover { background: var(--surface-2); }
.ix-btn-primary {
  border-color: transparent;
  background: var(--primary);
  color: #fff;
}
.ix-btn-primary:hover { background: var(--primary-d); }

.ix-rail {
  width: 292px;
  flex-shrink: 0;
  min-height: 0;
  overflow: auto;
  border-left: 1px solid var(--line);
  background: #f6f7fb;
  padding: 18px 16px 28px;
}
.ix-rail-section + .ix-rail-section { margin-top: 22px; }
.ix-rail h3 {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.ix-kv {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.ix-kv dt { margin: 0; color: var(--faint); font-weight: 650; font-size: 12px; }
.ix-kv dd { margin: 2px 0 0; font-weight: 700; font-size: 13.5px; text-align: left; }
.ix-status {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--primary-tint);
  color: var(--primary-d);
  font-size: 12px;
  font-weight: 700;
}
.ix-status.is-read { background: var(--surface-3); color: var(--muted); }
.ix-rail-link {
  margin-top: 12px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ix-rail-foot {
  margin: 22px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--faint);
  font-weight: 600;
}

@media (max-width: 1200px) {
  .ix-rail { display: none; }
}
@media (max-width: 900px) {
  .ix-list { width: 100%; border-right: 0; }
  .ix-app:not(.is-open) .ix-thread { display: none; }
  .ix-app.is-open .ix-list { display: none; }
  .ix-thread-head { padding-left: 12px; padding-right: 14px; }
  .ix-msg { padding-left: 14px; padding-right: 14px; }
}

/* dashboard order tracking */
.dash-tracking-hero-sub {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.62);
  margin: 10px 0 0;
  line-height: 1.45;
  max-width: 46ch;
}
.dash-tracking-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  margin-top: 18px;
}
.dash-tracking-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--eco) 0%, #7eb4ff 100%);
}
.dash-tracking-crew {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  height: 100%;
}
.dash-tracking-crew-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-tint);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dash-tracking-timeline { padding: 20px 22px 8px; }
.dash-tracking-step { display: flex; gap: 14px; align-items: stretch; }
.dash-tracking-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 28px;
  flex-shrink: 0;
}
.dash-tracking-dot {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  margin-top: 14px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-3);
}
.dash-tracking-dot.done { background: var(--eco); }
.dash-tracking-dot.current {
  background: var(--navy, #06152b);
  box-shadow: 0 0 0 4px var(--primary-tint);
}
.dash-tracking-pulse {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--eco);
  animation: pulseGlow 1.2s infinite;
}
.dash-tracking-line {
  width: 2px;
  flex: 1;
  min-height: 18px;
  margin-top: 4px;
  background: var(--line);
}
.dash-tracking-line.done { background: var(--eco); }
.dash-tracking-step-body { padding: 14px 0 18px; flex: 1; }
.dash-tracking-step-body.dim { opacity: 0.45; }
.dash-tracking-step-label { font-weight: 700; font-size: 15px; color: var(--ink); }
.dash-tracking-step-label.current { color: var(--primary); }
.dash-tracking-step-sub {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.4;
}
.dash-quote-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}
.dash-quote-line-label { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.dash-quote-line-detail { font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.dash-quote-line-amt { font-weight: 800; font-size: 15px; flex-shrink: 0; }
.dash-quote-line.total {
  border-top: 1px solid var(--line-2, var(--line));
  background: var(--surface-2);
  border-radius: 0 0 16px 16px;
}
.support-desk-main .support-messages {
  flex: 1;
  max-height: none;
  padding: 16px 0;
}

/* in-app support tickets */
.support-panel { max-width: none; }
.support-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.support-back:hover { color: var(--ink); }
.support-list-lead {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
  margin: 0;
  line-height: 1.5;
}
.support-ref {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--faint);
  text-transform: uppercase;
}
.support-ticket-subject {
  font-weight: 700;
  font-size: 15px;
  margin-top: 6px;
  color: var(--ink);
}
.support-meta {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 4px;
}
.support-ticket-row {
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color 0.15s;
}
.support-ticket-row:hover { border-color: var(--primary); }
.support-empty {
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.support-empty h3 { margin: 8px 0 0; font-size: 18px; }
.support-empty p { margin: 0 0 8px; color: var(--muted); font-size: 14px; max-width: 320px; line-height: 1.5; }
.support-compose { padding: 22px; }
.support-compose-title { font-weight: 800; font-size: 18px; margin: 0; }
.support-compose-lead { font-size: 13.5px; color: var(--muted); margin: 6px 0 16px; line-height: 1.5; }
.support-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.support-field span {
  font-size: 12px;
  font-weight: 700;
  color: var(--faint);
}
.support-textarea {
  min-height: 88px;
  resize: vertical;
  line-height: 1.5;
}
.support-error {
  font-size: 13px;
  font-weight: 600;
  color: var(--danger);
  margin: 0 0 10px;
}
.support-thread { padding: 0; overflow: hidden; }
.support-thread-head { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.support-thread-title { font-weight: 800; font-size: 18px; margin: 6px 0 0; }
.support-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px;
  max-height: 420px;
  overflow-y: auto;
}
.support-message {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.support-message.staff {
  background: var(--primary-tint);
  border-color: rgba(47, 107, 255, 0.15);
}
.support-message.mine { margin-left: 12%; }
.support-message.staff { margin-right: 12%; }
.support-message.internal {
  background: var(--solar-tint);
  border-color: rgba(255, 180, 60, 0.25);
  margin-right: 0;
  margin-left: 0;
}
.support-message-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.support-message-author { font-size: 12px; font-weight: 800; color: var(--ink); }
.support-message-time { font-size: 11px; font-weight: 600; color: var(--faint); }
.support-message-body { font-size: 14px; line-height: 1.5; margin: 0; color: var(--ink); opacity: 0.88; }
.support-reply {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Ticket attachments */
.support-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.support-attachment {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface, #fff);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.support-attachment:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.support-attachment-file {
  padding: 8px 12px;
  max-width: 260px;
}
.support-attachment-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.support-attachment-name {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.support-attachment-size {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}
.support-attachment-image {
  position: relative;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  width: 140px;
}
.support-attachment-image img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
}
.support-attachment-image .support-attachment-name {
  padding: 6px 8px;
  font-size: 11.5px;
}

.support-attach-composer {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.support-attach-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.support-attach-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2, rgba(0, 0, 0, 0.03));
  font-size: 12.5px;
  font-weight: 600;
  max-width: 240px;
}
.support-attach-chip-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.support-attach-chip-size { color: var(--muted); font-size: 11px; }
.support-attach-chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  padding: 2px;
  border-radius: 50%;
}
.support-attach-chip-remove:hover { color: var(--danger); background: rgba(0, 0, 0, 0.06); }
.support-attach-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 8px 14px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.support-attach-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.support-attach-btn:disabled { opacity: 0.6; cursor: default; }
.support-admin-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.support-admin-row {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.15s;
}
.support-admin-row.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}
.support-admin-empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
@media (max-width: 900px) {
  .support-admin-layout { grid-template-columns: 1fr; }
  .support-message.mine,
  .support-message.staff { margin-left: 0; margin-right: 0; }
}

/* ---------- graded tablet / mobile polish ---------- */
.mp-checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 32px;
  align-items: start;
}
.mp-checkout-lines { padding: 8px; }
.mp-checkout-line {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
}
.mp-checkout-line.bordered { border-top: 1px solid var(--line); }
.mp-checkout-line-copy { min-width: 0; }
.mp-checkout-line-title { font-weight: 700; font-size: 15px; }
.mp-checkout-line-meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.mp-checkout-line-qty { font-size: 12px; color: var(--faint); margin-top: 4px; }
.mp-checkout-line-price { font-weight: 700; flex-shrink: 0; }
.mp-checkout-summary {
  padding: 24px;
  position: sticky;
  top: 92px;
}
.mp-checkout-summary-title {
  font-weight: 800;
  font-size: 17px;
  margin-bottom: 16px;
}

.marketplace-hub-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.marketplace-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
.marketplace-mode-card {
  padding: 20px;
  text-align: left;
  cursor: pointer;
  border-width: 1.5px;
  border-color: var(--line);
  background: var(--surface);
}
.marketplace-mode-card.active {
  border-color: var(--primary);
  background: var(--primary-tint);
}
.marketplace-mode-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.marketplace-mode-icon.active { background: var(--primary); }
.marketplace-mode-label { font-weight: 800; font-size: 16px; }
.marketplace-mode-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }

.kpi-value,
.display-md.tnum {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (hover: hover) {
  .app-flow-root .dash-premium-card:hover,
  .app-flow-root .wcard-hover:hover,
  .app-flow-root .cust-mp .cust-mp-product:hover,
  .app-flow-root .cust-mp .cust-energy-product:hover {
    transform: translateY(-2px);
  }
}
@media (hover: none) {
  .app-flow-root .dash-premium-card:hover,
  .app-flow-root .wcard-hover:hover,
  .app-flow-root .cust-mp .cust-mp-product:hover,
  .app-flow-root .cust-mp .cust-energy-product:hover {
    transform: none;
  }
}

@media (max-width: 960px) {
  .mp-checkout-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .mp-checkout-summary {
    position: static;
  }
  .marketplace-mode-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .marketplace-hub-actions {
    justify-content: stretch;
  }
  .marketplace-hub-actions .wbtn {
    flex: 1 1 calc(50% - 5px);
    min-height: 44px;
    justify-content: center;
  }
  .marketplace-mode-card { padding: 16px; }
  .dash-mtab {
    min-height: 44px;
  }
  .dash-header-block {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .dash-header-block .row {
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .mp-checkout-line {
    flex-wrap: wrap;
    gap: 10px;
  }
  .mp-checkout-line-price {
    width: 100%;
    text-align: right;
    padding-left: 62px;
  }
  .marketplace-hub-actions .wbtn {
    flex: 1 1 100%;
  }
  .energy-action-grid {
    grid-template-columns: 1fr;
  }
  .section-sm { padding: 22px 0; }
  .wrap, .wrap-narrow, .wrap-wide { padding: 0 16px; }
}


