/* VoltScout — styles
   Tokens originally extracted from Figma (node 2:7581); the living reference
   is docs/design-system.md — follow it for any additions. */

:root {
  --teal: #0d9488;
  --teal-aa: #0f766e;   /* AA-compliant for white text / small teal text on white */
  --teal-dark: #0b6a63;
  --teal-text: #2a9d8f; /* large text only (3:1) */
  --danger: #b91c1c;
  --ink: #0a0a0a;
  --slate-900: #101828;
  --slate-800: #1e2939;
  --slate-700: #364153;
  --slate-500: #64748b;
  --muted: #717182;
  --body-text: #3c3c40;
  --gray-400: #99a1af;
  --gray-450: #6a7282;
  --border-soft: #f3f4f6;
  --border-mid: #e5e7eb;
  --border-strong: #d1d5dc;
  --chip-bg: #f3f4f6;
  --pill-bg: #e9ebef;
  --pill-bg-alt: #ececf0;
  --tile-bg: #f5f5f7;
  --img-ph: #f0f3f8;
  --bell: #fdc700;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 2px 4px rgba(0,0,0,.08), 0 4px 6px rgba(0,0,0,.08);
  --radius-btn: 10px;
  --radius-card: 16px;
  --font-display: 'Neue Haas Grotesk Display Pro', 'neue-haas-grotesk-display', 'Neue Haas Grotesk Text Pro', Inter, sans-serif;
  --font-text: Inter, -apple-system, 'Segoe UI', sans-serif;
  --container: 1600px;
  --gutter: clamp(20px, 4vw, 64px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; } /* display:flex/grid must never beat the hidden attribute */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-text);
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #ececec;
  transition: box-shadow .3s ease;
}
body.scrolled .site-nav { box-shadow: 0 4px 20px rgba(0,0,0,.07); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 24px;
  transition: height .3s ease;
}
body.scrolled .nav-inner { height: 56px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, #14a396, var(--teal));
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 2px 6px rgba(13,148,136,.35);
}
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; }
.brand-logo { height: 36px; width: auto; display: block; }
body.scrolled .brand-logo { height: 32px; transition: height .3s ease; }
.foot-logo { height: 42px; width: auto; display: block; margin-bottom: 14px; }
@media (max-width: 640px) { .brand-logo { height: 30px; } }

.toolbar {
  display: flex; align-items: center; gap: 10px;
}
.toolbar .nav-links { display: flex; gap: 4px; }
.toolbar a {
  font-size: 14px; font-weight: 500; letter-spacing: -0.01em;
  color: var(--muted); text-decoration: none;
  padding: 6px 12px; border-radius: var(--radius-btn);
  transition: color .2s, background .2s;
}
.toolbar a:hover { color: var(--ink); background: #f4f5f7; }
.toolbar a.active { color: var(--ink); background: var(--pill-bg); }
.toolbar .divider { width: 20px; }

.currency {
  display: flex; align-items: center; gap: 6px;
  background: var(--pill-bg-alt); border-radius: var(--radius-btn);
  padding: 6px 12px; font-size: 14px; font-weight: 500;
}
.currency .chev { color: var(--muted); }
.alerts {
  display: flex; align-items: center; gap: 6px;
  border: 1px solid rgba(0,0,0,.1); border-radius: var(--radius-btn);
  padding: 6px 12px; font-size: 14px; font-weight: 500;
  transition: border-color .2s, box-shadow .2s;
}
.alerts:hover { border-color: rgba(0,0,0,.25); box-shadow: var(--shadow-sm); }
.alerts svg { color: var(--bell); }

.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; border-radius: 999px; font-weight: 600; font-size: 14px; padding: 8px 20px; transition: transform .2s, box-shadow .2s, background .2s; }
/* #0f766e (not the brand #0d9488) wherever white text sits on teal — WCAG AA */
.btn-primary { background: var(--teal-aa); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); box-shadow: 0 4px 14px rgba(13,148,136,.4); }
.btn-ghost { border: 1px solid var(--border-strong); color: var(--slate-800); background: #fff; }
.btn-ghost:hover { border-color: var(--gray-450); }
.nav-cta { border-radius: var(--radius-btn); padding: 6px 16px; }

/* ---------- hero ---------- */
.hero { padding: clamp(16px, 2vw, 28px) 0 clamp(28px, 3vw, 44px); background: #fff; }
.hero-grid { display: flex; justify-content: space-between; gap: clamp(32px, 6vw, 120px); align-items: flex-start; }
.hero-main { max-width: 560px; }
.hero-eyebrow {
  color: var(--teal-aa); font-size: 12px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
}
.hero-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(40px, 3.4vw, 56px); letter-spacing: -0.02em; line-height: 1.02;
  margin: 18px 0 22px;
}
.hero-copy { font-size: 17px; line-height: 1.55; color: var(--body-text); max-width: 470px; }
.hero-copy b { color: var(--ink); }

.hero-side { width: min(460px, 100%); flex-shrink: 0; }
.hero-side h2 { font-size: 26px; font-weight: 500; line-height: 1.3; letter-spacing: -0.015em; }
.hero-side .sub { color: var(--muted); font-size: 16px; line-height: 1.5; margin-top: 12px; max-width: 360px; }
.search-form {
  display: flex; margin-top: 22px; border-radius: var(--radius-card); overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 4px 10px rgba(0,0,0,.08);
}
.search-form input {
  flex: 1; border: 0; outline: none; font: inherit; font-size: 15px;
  padding: 17px 20px; color: var(--ink); background: #fff; min-width: 0;
}
.search-form input::placeholder { color: var(--muted); }
.search-form button {
  display: flex; align-items: center; gap: 8px;
  background: var(--teal-aa); color: #fff; font-weight: 500; font-size: 15px;
  padding: 0 24px; transition: background .2s;
}
.search-form button:hover { background: var(--teal-dark); }
.hero-stats {
  display: flex; gap: 40px; margin-top: 30px; padding-top: 22px;
  border-top: 1px solid rgba(0,0,0,.1);
  font-size: 14px; color: var(--muted); justify-content: center;
}
.hero-stats b { color: var(--ink); font-weight: 600; }

/* ---------- house section ---------- */
.house-section {
  /* warm greige, lightened for copy contrast — harmonizes with the house's
     cream/wood interiors without competing with text */
  background: linear-gradient(180deg, #c5c0b8 0%, #bcb7ae 42%, #d8d4cc 100%);
  padding-top: clamp(24px, 3vw, 56px);
  overflow: visible;
}
.house-layout {
  display: flex; align-items: flex-start; gap: clamp(24px, 3vw, 48px);
}
.house-stage { flex: 1 1 62%; min-width: 0; position: relative; }
#house-art { position: relative; aspect-ratio: 1432 / 1115; max-width: 920px; margin-inline: auto; }
#house-art > .house-base { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.room-glow {
  position: absolute; opacity: 0; pointer-events: none;
  will-change: opacity;
}
.room-glow.on { opacity: 1; }
.room-marker {
  position: absolute; transform: translate(-50%, -50%);
  width: 38px; height: 38px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.28), 0 0 0 2px rgba(255,255,255,.5);
  display: grid; place-items: center; pointer-events: none;
}
.room-marker img { max-width: 26px; max-height: 26px; object-fit: contain; }
.rm-qty {
  position: absolute; top: -5px; right: -7px;
  background: var(--teal-aa); color: #fff;
  font-size: 9.5px; font-weight: 700; line-height: 1;
  padding: 3px 5px; border-radius: 999px;
}
@media (max-width: 640px) {
  .room-marker { width: 28px; height: 28px; }
  .room-marker img { max-width: 19px; max-height: 19px; }
}

/* ---------- load panel ---------- */
.load-panel { flex: 0 0 460px; max-width: 460px; padding: clamp(8px, 2vw, 36px) 0 32px; }
.eyebrow {
  color: var(--teal-aa); font-size: 12px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
}
/* on-gray variants — the house section's gray gradient needs much darker
   tones than white backgrounds to hold WCAG contrast */
.house-section .eyebrow { color: #0a4640; }
.house-section #headline-runtime.danger { color: #8f1414; }
.house-section .picker-label { color: #333338; }
.house-section .explain-toggle { color: #2f2f36; border-color: rgba(0,0,0,.4); }
.house-section .explain-toggle:hover { color: #0a4640; border-color: #0a4640; }
.panel-headline {
  font-family: var(--font-display); font-weight: 500;
  font-size: 19px; line-height: 1.3; letter-spacing: -0.005em;
  color: #2e2e33;
  margin: 10px 0 2px;
}
.headline-hours { margin-bottom: 22px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.headline-hours .hl {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 3vw, 46px); line-height: 1.05; letter-spacing: -0.02em;
  color: #10574f;
}
.headline-hours .hl.small { font-size: 21px; font-weight: 500; }
.hl-solar {
  font-size: 12.5px; font-weight: 600; color: #2e2e33;
  background: #fff; border-radius: 999px; padding: 5px 11px;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

/* popovers must beat sibling paint order even when entrance animations leave
   residual transforms (stacking contexts) on panel children */
.picker-wrap { position: relative; z-index: 30; margin-bottom: 26px; }
.panel-tools { position: relative; z-index: 25; }
.list-shell { z-index: 1; }
.picker-label { font-size: 13px; color: #5c5c66; margin-bottom: 8px; }
.picker-btn {
  display: flex; align-items: center; gap: 14px; width: 100%;
  background: #fff; border: 0; border-radius: 16px;
  box-shadow: var(--shadow-md); padding: 13px 18px;
  font-size: 15px; font-weight: 500; text-align: left;
  transition: box-shadow .2s, transform .2s;
}
.picker-btn:hover { box-shadow: 0 4px 10px rgba(0,0,0,.12); transform: translateY(-1px); }
.picker-btn .check { color: var(--teal-text); flex-shrink: 0; }
.picker-btn .chev { margin-left: auto; color: var(--muted); transition: transform .25s; }
.picker-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.station-menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 20;
  width: 100%; max-height: 300px; overflow: auto; display: none;
  background: #fff; border-radius: 16px; box-shadow: 0 8px 30px rgba(0,0,0,.18);
  padding: 6px;
}
.station-menu.open { display: block; }
.menu-item {
  display: block; width: 100%; text-align: left; font-size: 14px;
  padding: 10px 12px; border-radius: 10px;
}
.menu-item:hover { background: #f0faf8; color: var(--teal-dark); }

/* battery + stats strip */
.power-stats {
  display: flex; align-items: center; gap: 4px;
  border-top: 1px solid rgba(0,0,0,.18); border-bottom: 1px solid rgba(0,0,0,.18);
  padding: 14px 0; margin-bottom: 20px;
}
.battery { flex: 0 0 92px; text-align: center; }
.battery .pct { font-family: var(--font-display); font-weight: 700; font-size: 12px; display: block; margin-bottom: 3px; }
.battery .lbl {
  font-family: var(--font-display); font-weight: 700; font-size: 9.5px;
  letter-spacing: .05em; text-transform: uppercase; margin-top: 3px; color: var(--ink);
}
.battery.warn .pct { color: #b45309; }
.stat-cell { flex: 1; text-align: center; padding: 4px 6px; }
.stat-cell + .stat-cell { border-left: 1px solid rgba(0,0,0,.28); }
.stat-cell .num { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; white-space: nowrap; }
.stat-cell .lbl {
  font-family: var(--font-display); font-weight: 700; font-size: 9.5px;
  letter-spacing: .05em; text-transform: uppercase; margin-top: 3px; color: var(--ink);
}

/* plain-language explainer + medical note */
.panel-tools { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.clear-load {
  font-size: 12.5px; font-weight: 500; color: #4b4b55;
  padding: 2px 0; margin-top: -8px;
  border-bottom: 1px dotted rgba(0,0,0,.4);
  transition: color .2s, border-color .2s;
}
.clear-load:hover { color: var(--danger); border-color: var(--danger); }
.sq-cap { font-size: 11.5px; line-height: 1.45; color: #8a4b0f; margin-top: 8px; }
.explain-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 500; color: #4b4b55;
  margin: -8px 0 14px; padding: 2px 0;
  border-bottom: 1px dotted var(--border-strong);
  transition: color .2s, border-color .2s;
}
.explain-toggle:hover { color: var(--teal-aa); border-color: var(--teal-aa); }
.explain-wrap { position: relative; }
.explain {
  position: absolute; top: calc(100% + 2px); left: 0; z-index: 40;
  width: min(430px, 88vw);
  background: #fff; border-radius: 12px; box-shadow: 0 10px 34px rgba(0,0,0,.22);
  padding: 14px 16px;
}
.explain p { font-size: 12.5px; line-height: 1.5; color: var(--body-text); }
.explain p + p { margin-top: 8px; }
.explain b { color: var(--ink); }
.med-note {
  display: flex; gap: 10px; align-items: flex-start;
  background: #fff7ed; border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 12px 14px; color: #8a4b0f;
  max-width: 780px; margin: 20px auto 0;
}
.med-note svg { flex-shrink: 0; margin-top: 2px; }
.med-note p { font-size: 12.5px; line-height: 1.5; }
.med-note b { color: #713c08; }
.med-note a { color: #713c08; font-weight: 600; text-underline-offset: 2px; }
.med-note a:hover { color: #4e2a06; }

/* appliance rows — clamped to ~4.5 rows, scrolls with edge fades */
.list-shell { position: relative; }
#appliance-list {
  display: flex; flex-direction: column; gap: 12px;
  max-height: min(328px, 52vh);   /* ~3 cards fully visible, 4th fades at the edge */
  overflow-y: auto;
  padding: 3px 3px 3px 3px; margin: -3px;   /* room for card shadows */
  scrollbar-width: thin; scrollbar-color: rgba(0,0,0,.16) transparent;
  --fade-top: 0px; --fade-bottom: 0px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 var(--fade-top), #000 calc(100% - var(--fade-bottom)), transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 var(--fade-top), #000 calc(100% - var(--fade-bottom)), transparent 100%);
}
#appliance-list.overflowing { padding-right: 10px; }
#appliance-list::-webkit-scrollbar { width: 6px; }
#appliance-list::-webkit-scrollbar-track { background: transparent; }
#appliance-list::-webkit-scrollbar-thumb { background: rgba(0,0,0,.14); border-radius: 99px; }
#appliance-list:hover::-webkit-scrollbar-thumb,
#appliance-list:focus-visible::-webkit-scrollbar-thumb { background: rgba(0,0,0,.3); }
.appliance-card {
  display: grid;
  grid-template-columns: 58px minmax(58px, 1fr) auto minmax(76px, 104px) auto 22px;
  align-items: center; gap: 12px;
  background: #fff; border-radius: 12px;
  box-shadow: var(--shadow-sm); padding: 12px 14px;
  transition: box-shadow .25s, transform .25s;
}
.appliance-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.ac-art { width: 58px; height: 52px; display: grid; place-items: center; }
.ac-art img { max-height: 52px; width: auto; max-width: 58px; object-fit: contain; }
.ac-name { font-size: 14px; font-weight: 500; color: var(--slate-700); }
/* variant toggle (e.g. CPAP heated humidifier) — its own row under the card */
.ac-toggle {
  grid-column: 2 / -1; grid-row: 2;
  display: flex; align-items: center; gap: 8px; margin-top: 2px;
  font-size: 12px; font-weight: 500; color: var(--slate-700); cursor: pointer;
}
.ac-toggle input {
  appearance: none; width: 30px; height: 17px; border-radius: 999px;
  background: var(--border-strong); position: relative; cursor: pointer;
  transition: background .2s; flex-shrink: 0; margin: 0;
}
.ac-toggle input::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 13px; height: 13px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.2);
  transition: transform .2s;
}
.ac-toggle input:checked { background: var(--teal-aa); }
.ac-toggle input:checked::after { transform: translateX(13px); }
.ac-weekly { display: block; font-size: 10.5px; color: var(--gray-450); margin-top: 3px; }
.ac-stepper { display: flex; align-items: center; gap: 8px; }
.ac-stepper .step {
  width: 27px; height: 27px; border: 0; border-radius: 6px;
  background: var(--chip-bg);
  color: var(--gray-450); font-size: 15px; line-height: 1;
  display: grid; place-items: center;
  transition: color .15s, background .15s;
}
.ac-stepper .step:hover { color: var(--teal-aa); background: #e6f4f2; }
.ac-stepper .qty { font-weight: 600; font-size: 14px; color: var(--slate-800); min-width: 14px; text-align: center; display: inline-block; }
.ac-hours { min-width: 0; }
/* 26px-tall input = comfortable touch target; the visible track stays 4px */
.ac-hours input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 26px;
  background: transparent; outline: none; cursor: pointer;
}
.ac-hours input::-webkit-slider-runnable-track {
  height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--teal) 0 var(--fill, 33%), var(--border-mid) var(--fill, 33%) 100%);
}
.ac-hours input::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; margin-top: -6px;
  background: #fff; border: 1px solid var(--border-mid); box-shadow: 0 1px 3px rgba(0,0,0,.25);
  cursor: grab; transition: transform .15s;
}
.ac-hours input::-webkit-slider-thumb:hover { transform: scale(1.2); }
.ac-hours input::-moz-range-track {
  height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--teal) 0 var(--fill, 33%), var(--border-mid) var(--fill, 33%) 100%);
}
.ac-hours input::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 1px solid var(--border-mid); box-shadow: 0 1px 3px rgba(0,0,0,.25); cursor: grab;
}
.hours-label { font-size: 11.5px; color: var(--gray-450); display: block; margin-top: 5px; }
.ac-energy { text-align: right; white-space: nowrap; }
.ac-energy b { font-size: 15px; font-weight: 700; color: var(--slate-800); display: block; }
.ac-energy span { font-size: 11.5px; color: var(--gray-450); }
.ac-remove {
  color: #959595; display: grid; place-items: center;
  width: 32px; height: 32px; margin: -9px; /* 32px hit area without shifting layout */
  transition: color .2s, transform .2s;
}
.ac-remove:hover { color: #e5484d; transform: scale(1.15); }

/* jump-to-results button under the appliance list */
.results-jump {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 16px; width: 100%;
  background: var(--teal-aa); color: #fff; text-decoration: none;
  font-size: 14.5px; font-weight: 600;
  padding: 13px 18px; border-radius: 12px;
  box-shadow: 0 2px 10px rgba(15,118,110,.28);
  transition: background .2s, box-shadow .2s, transform .2s;
}
.results-jump:hover { background: var(--teal-dark); box-shadow: 0 4px 16px rgba(15,118,110,.4); transform: translateY(-1px); }
.results-jump svg { flex-shrink: 0; }
#results { scroll-margin-top: 72px; }

/* ---------- carousel dock ---------- */
.carousel-dock {
  position: relative; z-index: 5;
  background: #fff; border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05), 0 8px 22px rgba(0,0,0,.07);
  padding: 20px 16px 12px;
  margin-top: 12px;
  transform: translateY(80px); margin-bottom: 80px;
}
.dock-title { font-family: var(--font-display); font-weight: 500; font-size: 18px; margin: 0 0 16px 4px; }
.carousel-wrap { position: relative; }
#carousel-track {
  display: flex; gap: 9px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
#carousel-track::-webkit-scrollbar { display: none; }
.tile {
  position: relative;
  flex: 0 0 clamp(150px, 12vw, 190px); scroll-snap-align: start;
  background: var(--tile-bg); border-radius: 6px;
  aspect-ratio: 298 / 255;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 10px 12px;
  transition: background .2s, box-shadow .25s, transform .25s;
}
.tile:hover { background: #eef0f3; box-shadow: 0 6px 16px rgba(0,0,0,.1); transform: translateY(-3px); }
.tile-art { flex: 1; display: grid; place-items: center; min-height: 0; width: 100%; }
.tile-art img { max-height: 100px; max-width: 78%; object-fit: contain; transition: transform .3s ease; }
.tile:hover .tile-art img { transform: scale(1.06); }
/* near-white artwork (the bulb) needs help against the light tile */
img[src*="lightbulb"] {
  filter: contrast(1.12) brightness(.94) drop-shadow(0 1px 2px rgba(0,0,0,.22));
}
.tile-name { font-family: var(--font-display); font-weight: 500; font-size: 13.5px; color: #606060; }
.tile-add {
  position: absolute; top: 8px; right: 8px; width: 22px; height: 22px;
  border-radius: 50%; background: var(--teal); color: #fff;
  display: grid; place-items: center; font-size: 15px; line-height: 1;
  opacity: 0; transform: scale(.6); transition: opacity .2s, transform .2s;
}
.tile:hover .tile-add { opacity: 1; transform: scale(1); }

.round-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
  width: 36px; height: 36px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow-md);
  display: grid; place-items: center; color: var(--slate-700);
  transition: box-shadow .2s;
}
.round-btn:hover { box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.round-btn.prev { left: -10px; }
.round-btn.next { right: -10px; }
.car-dots { display: flex; justify-content: center; gap: 6px; padding: 14px 0 4px; }
.dot {
  width: 6px; height: 6px; border-radius: 999px; background: var(--border-strong);
  transition: width .25s ease, background .25s ease;
}
.dot.active { width: 16px; background: var(--slate-700); }

/* ---------- stations grid ---------- */
.stations-section { padding: clamp(40px, 5vw, 72px) 0 clamp(56px, 6vw, 96px); background: #fff; }
.section-head h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(26px, 2.2vw, 32px); letter-spacing: -0.015em;
  margin: 10px 0 6px;
}
/* body font at body color — the display-face light gray was unreadable */
.section-head .note { color: var(--body-text); font-size: 15px; font-family: var(--font-text); font-weight: 400; line-height: 1.55; }
/* results tabs: power stations / solar panels */
.results-tabs {
  display: inline-flex; gap: 4px; margin-top: 20px;
  padding: 4px; background: var(--img-ph); border-radius: 999px;
}
.results-tab {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-text); font-size: 14px; font-weight: 600;
  color: var(--gray-450); background: transparent; border: 0;
  padding: 8px 16px; border-radius: 999px; cursor: pointer;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.results-tab svg { color: currentColor; }
.results-tab:hover { color: var(--ink); }
.results-tab.active {
  background: #fff; color: var(--teal-aa);
  box-shadow: var(--shadow-sm);
}
#station-grid, #solar-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  margin-top: 22px;
}
#solar-grid[hidden] { display: none; }
.solar-empty {
  grid-column: 1 / -1; color: var(--body-text); font-size: 15px;
  line-height: 1.55; background: var(--img-ph); border-radius: var(--radius-card);
  padding: 22px 24px; margin: 0;
}
/* solar cards reuse .station-card; the price row's "lifetime" slot carries the pairing note */
.solar-panel-card .lifetime { text-transform: none; letter-spacing: 0; }
.solar-panel-card.capped .sc-img { opacity: .8; }
.station-card {
  display: flex; gap: 14px;
  background: #fff; border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm); padding: 18px;
  transition: box-shadow .3s ease, transform .3s ease;
}
.station-card:hover { box-shadow: 0 10px 28px rgba(0,0,0,.1); transform: translateY(-3px); }
/* grayscale keeps text AA-contrast, unlike whole-card opacity */
.station-card.undersized { filter: grayscale(.75); }
.station-card.undersized .sc-img { opacity: .65; }
.sc-img { width: 84px; height: 84px; flex-shrink: 0; background: var(--img-ph); border-radius: 16px; overflow: hidden; display: grid; place-items: center; }
.sc-img img {
  width: 100%; height: 100%; object-fit: contain; padding: 7px;
  mix-blend-mode: multiply; /* melts white product-shot backgrounds into the tile */
  transition: transform .35s ease;
}
.station-card:hover .sc-img img { transform: scale(1.05); }
.sc-body { min-width: 0; flex: 1; }
.sc-brand { font-size: 13px; color: var(--gray-450); }
.sc-model { font-size: 18px; font-weight: 600; color: var(--slate-900); margin: 1px 0 8px; }
.sc-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--chip-bg); color: var(--slate-700);
  font-size: 11.5px; font-weight: 500; border-radius: 999px; padding: 3px 8px;
  white-space: nowrap;
}
.chip-fit { background: #e6f4f2; color: var(--teal-aa); }
.chip-under { background: #fdf1f1; color: var(--danger); }
.sc-runtime { font-size: 13px; color: var(--gray-450); margin: 10px 0; line-height: 1.45; }
.sc-runtime b { color: var(--slate-800); }
.sc-runtime .dim { color: var(--gray-450); white-space: nowrap; }
.sc-med { font-size: 12.5px; margin: -4px 0 10px; font-weight: 500; }
.sc-med.ok { color: var(--teal-aa); }
.sc-med.tight { color: #b45309; }
.sc-solar { font-size: 12.5px; margin: -4px 0 10px; font-weight: 500; }
.sc-solar.ok { color: var(--teal-aa); }
.sc-solar.tight { color: #b45309; }
.sc-solar.no { color: var(--danger); }
.chip-medready { background: #eefaf8; color: var(--teal-aa); }
.sc-price { display: flex; align-items: baseline; gap: 8px; }
.sc-price .price { font-size: 21px; font-weight: 700; color: var(--slate-900); }
.sc-price .lifetime { font-size: 12.5px; color: var(--gray-450); }
.sc-actions { display: flex; gap: 8px; margin-top: 12px; }
.sc-actions .btn { padding: 7px 16px; font-size: 13.5px; }

/* ---------- page switcher (Load Builder ⇄ Compare) ---------- */
.page-switch {
  display: inline-flex; gap: 4px; padding: 4px;
  background: var(--pill-bg-alt); border-radius: 999px;
  margin: clamp(16px, 2vw, 28px) auto 0;
  position: relative; left: 50%; transform: translateX(-50%);
}
.ps-seg {
  display: inline-flex; align-items: center; gap: 7px; line-height: 1;
  padding: 9px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
  color: #5f5f6b; text-decoration: none; white-space: nowrap;
  transition: color .2s, background .2s, box-shadow .2s;
}
.ps-seg svg { flex-shrink: 0; }
.ps-seg:hover { color: var(--ink); }
.ps-seg.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

/* ---------- comparison page ---------- */
.compare-page { padding: 0 0 clamp(56px, 6vw, 96px); background: #fff; }
.compare-head { margin: clamp(28px, 3vw, 44px) 0 28px; }
.compare-head h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 2.4vw, 36px); letter-spacing: -0.015em;
  margin: 10px 0 6px;
}
.compare-head .note { max-width: 560px; }
.compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 8px; }
.cmp { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 720px; }
.cmp th, .cmp td { text-align: left; vertical-align: middle; }
.cmp thead th { vertical-align: bottom; }
.cmp .cmp-side {
  position: sticky; left: 0; z-index: 2; background: #fff;
  font-size: 13.5px; font-weight: 500; color: var(--slate-700);
  padding: 12px 18px 12px 4px; min-width: 168px; max-width: 220px;
}
.tip-dot { color: var(--gray-450); font-size: 11px; cursor: help; }
.cmp-head {
  position: relative;
  padding: 14px 14px 16px; min-width: 172px;
  border-radius: 16px 16px 0 0;
}
.cmp-head.best { background: #f4faf8; }
.crown {
  position: absolute; top: -4px; left: 14px;
  background: var(--teal-aa); color: #fff;
  font-size: 10.5px; font-weight: 700; letter-spacing: .03em;
  border-radius: 999px; padding: 4px 10px;
  box-shadow: 0 2px 6px rgba(15,118,110,.35);
}
.ch-img {
  display: grid; place-items: center;
  width: 96px; height: 96px; border-radius: 16px; background: var(--img-ph);
  margin: 14px 0 10px; overflow: hidden;
}
.ch-img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; mix-blend-mode: multiply; }
.ch-brand { display: block; font-size: 12.5px; color: var(--gray-450); }
.ch-model { display: block; font-size: 16px; font-weight: 600; color: var(--slate-900); margin: 1px 0 2px; }
.ch-price { display: block; font-size: 15px; font-weight: 700; color: var(--slate-900); }
.ch-remove {
  position: absolute; top: 12px; right: 10px;
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; color: var(--gray-450);
  background: var(--chip-bg);
  transition: background .2s, color .2s;
}
.ch-remove:hover { background: #fdf1f1; color: var(--danger); }
.cmp-add-cell { vertical-align: middle; position: relative; }
.cmp-add {
  border: 1.5px dashed var(--border-strong); border-radius: 12px;
  color: var(--gray-450); font-size: 13.5px; font-weight: 600;
  padding: 40px 22px; width: 100%;
  transition: color .2s, border-color .2s, background .2s;
}
.cmp-add:hover { color: var(--teal-aa); border-color: var(--teal-aa); background: #f7fcfb; }
.cmp-group th {
  font-family: var(--font-display); font-weight: 700; font-size: 12px;
  letter-spacing: .07em; text-transform: uppercase; color: var(--ink);
  padding: 26px 4px 8px; position: sticky; left: 0; background: #fff; z-index: 2;
}
/* full-width row rules + whole-row hover so the eye tracks each spec cleanly */
.cmp tbody td,
.cmp tbody .cmp-row .cmp-side {
  font-size: 14px; color: var(--slate-800);
  padding: 12px 14px; border-top: 1px solid #e8eaed;
}
.cmp tbody .cmp-row .cmp-side { padding-left: 4px; }
.cmp tbody .cmp-row:last-child td,
.cmp tbody .cmp-row:last-child .cmp-side { border-bottom: 1px solid #e8eaed; }
.cmp tbody .cmp-row:hover td,
.cmp tbody .cmp-row:hover .cmp-side { background: #f7f8f9; }
.cmp td.win { background: #e6f4f2; font-weight: 600; color: var(--teal-dark); }
.cmp tbody .cmp-row:hover td.win { background: #ddf0ed; }
/* column headers stay visible while scrolling a long table */
.cmp thead th { position: sticky; top: 64px; background: #fff; z-index: 3; }
.cmp thead .cmp-side { z-index: 4; }
.cmp thead .cmp-head.best { background: #f4faf8; }
.ch-wins {
  display: inline-block; margin-top: 6px;
  font-size: 11px; font-weight: 700; color: var(--teal-aa);
  background: #eefaf8; border-radius: 999px; padding: 3px 9px;
}

/* centered consolidated header + trust badge */
.compare-head-centered { text-align: center; max-width: 640px; margin-inline: auto; }
.compare-head-centered .note { margin-inline: auto; }
.trust-badge {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 14px; padding: 7px 14px;
  background: #eefaf8; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: var(--teal-aa);
}
.trust-badge a { color: inherit; }

/* skeleton preview so the table area doesn't materialize from nothing */
.cmp-skel { max-width: 860px; margin: 44px auto 0; opacity: .55; }
.sk-heads { display: flex; gap: 14px; justify-content: center; margin-bottom: 18px; }
.sk-tile { width: 150px; height: 110px; border-radius: 16px; background: linear-gradient(100deg, #f0f1f3 40%, #f7f8f9 50%, #f0f1f3 60%); background-size: 200% 100%; animation: sk-shimmer 1.6s infinite linear; }
.cmp-srow { display: flex; gap: 14px; align-items: center; padding: 13px 0; border-top: 1px solid #eef0f2; }
.sk-label { width: 130px; height: 12px; border-radius: 6px; background: #eef0f2; flex-shrink: 0; }
.sk-cell { flex: 1; height: 12px; border-radius: 6px; background: #f3f4f6; }
@keyframes sk-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .sk-tile { animation: none; } }

/* toolbar above the table */
.cmp-toolbar {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin-bottom: 14px; font-size: 13px; color: var(--gray-450);
}
.cmp-count { font-weight: 500; }
.cmp-diff { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; color: var(--slate-700); }
.cmp-diff input { accent-color: var(--teal-aa); width: 15px; height: 15px; }
#cmp-clear { margin-left: auto; color: var(--gray-450); }
#cmp-clear:hover { color: var(--danger); }

/* empty state: popular matchups + full lineup */
.cmp-empty { text-align: center; padding: clamp(20px, 3vw, 40px) 0 8px; }
.ce-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2vw, 28px); margin-bottom: 8px; }
.ce-copy { font-size: 15px; color: var(--body-text); max-width: 460px; margin: 0 auto 26px; }
.ce-presets { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.ce-preset {
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-sm);
  padding: 13px 20px; text-align: left;
  transition: box-shadow .25s, transform .25s;
}
.ce-preset:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.ce-preset b { display: block; font-size: 14px; font-weight: 600; color: var(--slate-900); margin-bottom: 2px; }
.ce-preset span { font-size: 12px; color: var(--gray-450); }
.ce-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 12px; text-align: left;
}
.ce-model {
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-sm);
  padding: 14px; text-align: left;
  transition: box-shadow .25s, transform .25s;
}
.ce-model:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.ce-model .ch-img { width: 100%; height: 96px; margin: 0 0 10px; }
.ce-meta { display: block; font-size: 11.5px; color: var(--gray-450); margin-top: 3px; }
.win-pill {
  font-size: 10px; font-weight: 700; color: var(--teal-aa);
  background: #fff; border-radius: 999px; padding: 2px 7px;
  vertical-align: 1px; white-space: nowrap;
}
.cmp-picker {
  position: absolute; top: calc(100% - 30px); right: 0; z-index: 30;
  width: 280px; max-height: 320px; overflow-y: auto;
  background: #fff; border-radius: 16px; box-shadow: 0 10px 34px rgba(0,0,0,.22);
  padding: 6px;
}
.cmp-picker button {
  display: block; width: 100%; text-align: left;
  padding: 9px 12px; border-radius: 10px;
}
.cmp-picker button:hover { background: #f0faf8; }
.cmp-picker b { display: block; font-size: 13.5px; font-weight: 600; color: var(--slate-800); }
.cmp-picker span { font-size: 12px; color: var(--gray-450); }

/* ---------- generated pages (product / vs / hubs / trust) ---------- */
.page-main { padding: clamp(20px, 3vw, 40px) 0 clamp(48px, 5vw, 80px); background: #fff; }
.crumbs { font-size: 12.5px; color: var(--gray-450); margin-bottom: 18px; }
.crumbs a { color: var(--gray-450); text-decoration: none; }
.crumbs a:hover { color: var(--teal-aa); }
.pp-hero { display: flex; gap: clamp(24px, 4vw, 56px); align-items: flex-start; flex-wrap: wrap; margin-bottom: 8px; }
.pp-img {
  width: min(360px, 100%); aspect-ratio: 1; border-radius: 16px; background: var(--img-ph);
  display: grid; place-items: center; overflow: hidden;
}
.pp-img img { width: 100%; height: 100%; object-fit: contain; padding: 20px; mix-blend-mode: multiply; }
.pp-head { flex: 1; min-width: 280px; }
.pp-head h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.015em; margin: 4px 0 12px; }
.pp-price { font-size: 22px; font-weight: 700; color: var(--slate-900); margin: 16px 0 4px; }
.pp-price .lifetime { font-size: 13.5px; font-weight: 400; color: var(--gray-450); }
.buy-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.aff-note { font-size: 12px; color: var(--gray-450); margin-top: 10px; }
.aff-note a { color: inherit; }
.pp-section { margin-top: clamp(28px, 4vw, 48px); max-width: 860px; }
.pp-section h2 { font-family: var(--font-display); font-weight: 700; font-size: 22px; margin-bottom: 10px; }
.pp-section > p { font-size: 15px; line-height: 1.6; color: var(--body-text); margin-bottom: 10px; }
.pp-table { min-width: 0 !important; width: 100%; margin-top: 8px; }
.pp-table .cmp-side { min-width: 190px; }
.pp-loaddesc { display: block; font-size: 11.5px; font-weight: 400; color: var(--gray-450); margin-top: 2px; }
.pp-alts { list-style: none; }
.pp-alts li { padding: 10px 0; border-top: 1px solid #e8eaed; font-size: 14.5px; color: var(--body-text); }
.pp-alts a { color: var(--teal-aa); text-decoration: none; }
.pp-alts a:hover { text-decoration: underline; }
.vs-heads { display: flex; gap: 16px; flex-wrap: wrap; margin: 20px 0; }
.vs-head {
  display: block; text-decoration: none; color: inherit;
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-sm);
  padding: 16px 20px; min-width: 200px;
  transition: box-shadow .25s, transform .25s;
}
.vs-head:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.vs-head .ch-img { width: 120px; height: 100px; margin-bottom: 10px; }
.hub-list { list-style: none; display: flex; flex-direction: column; gap: 16px; margin-top: 24px; max-width: 860px; }
.hub-card {
  display: flex; gap: 20px; align-items: flex-start;
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-sm); padding: 20px;
}
.hub-rank {
  font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--teal-aa);
  background: #eefaf8; border-radius: 12px; width: 44px; height: 44px;
  display: grid; place-items: center; flex-shrink: 0;
}
.hub-card .ch-img { width: 110px; height: 110px; flex-shrink: 0; }
.hub-body { min-width: 0; }
.hub-name { font-size: 18px; font-weight: 600; color: var(--slate-900); text-decoration: none; }
.hub-name:hover { color: var(--teal-aa); }
.hub-why { font-size: 14px; color: var(--body-text); line-height: 1.5; margin: 6px 0 2px; }
.hub-cta { margin-top: 26px; font-size: 15px; color: var(--body-text); }
.hub-index { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 24px; }
.hub-tile {
  display: block; text-decoration: none; color: inherit;
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-sm); padding: 20px;
  transition: box-shadow .25s, transform .25s;
}
.hub-tile:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.hub-tile b { display: block; font-size: 16px; margin-bottom: 6px; color: var(--slate-900); }
.hub-tile span { font-size: 13px; color: var(--gray-450); line-height: 1.5; }
.prose { max-width: 720px; font-size: 15.5px; line-height: 1.65; color: var(--body-text); }
.prose h2 { font-family: var(--font-display); font-weight: 700; font-size: 21px; color: var(--ink); margin: 28px 0 10px; }
.prose p { margin-bottom: 12px; }
.prose ul { margin: 0 0 12px 20px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--teal-aa); }
.prose-updated { font-size: 13px; color: var(--gray-450); margin-top: 24px; }
@media (max-width: 640px) { .hub-card { flex-wrap: wrap; } }

/* ---------- footer ---------- */
.site-footer { background: #f6f7f8; padding: clamp(40px, 5vw, 72px) 0 32px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: clamp(24px, 4vw, 64px); }
.foot-brand-name { font-family: var(--font-display); font-weight: 700; font-size: 22px; margin-bottom: 14px; }
.foot-col p { color: var(--body-text); font-size: 15px; line-height: 1.6; max-width: 320px; }
.foot-col h4 { font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 10px; }
.foot-col a { color: var(--body-text); text-decoration: none; font-size: 15px; transition: color .2s; }
.foot-col a:hover { color: var(--teal-dark); }
.foot-legal {
  margin-top: clamp(32px, 4vw, 56px); padding-top: 24px;
  border-top: 1px solid #e3e5e8;
  color: #5f5f6b; font-size: 13px; line-height: 1.6; text-align: center;
  max-width: 900px; margin-inline: auto;
}

/* ---------- instant tooltips (js/tip.js — native title has a fixed ~1s OS delay) ---------- */
.tipbox {
  position: fixed; z-index: 120;
  max-width: 260px;
  background: #1c1c21; color: #fff;
  font-family: var(--font-text); font-size: 12px; font-weight: 500; line-height: 1.45;
  letter-spacing: 0; text-transform: none; white-space: normal; text-align: left;
  padding: 8px 11px; border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  opacity: 0; pointer-events: none;
  transition: opacity .12s ease;
}
.tipbox.show { opacity: 1; }
[data-tip] { cursor: help; }
button[data-tip], [data-tip] button { cursor: pointer; }

/* ---------- a11y utilities ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 100;
  background: var(--ink); color: #fff; text-decoration: none;
  padding: 10px 18px; border-radius: 0 0 10px 10px; font-size: 14px; font-weight: 600;
  transition: top .2s;
}
.skip-link:focus-visible { top: 0; }
:focus-visible { outline: 2px solid var(--teal-aa); outline-offset: 2px; border-radius: 4px; }
.link-btn { text-decoration: underline; color: inherit; font-size: inherit; }
.link-btn:hover { color: var(--teal-aa); }

/* ---------- panel actions: outage sim + solar ---------- */
.panel-actions { display: flex; align-items: stretch; gap: 10px; }
.panel-actions > .sim-btn { flex: 1; justify-content: center; }
.panel-actions .solar-picker { flex: 1; display: flex; }
.panel-actions .solar-picker > .sim-btn { flex: 1; justify-content: center; width: 100%; }
.solar-picker { position: relative; }
.solar-picker .sim-btn.active { color: var(--teal-aa); font-weight: 600; }
.solar-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 40;
  width: min(360px, 88vw);
  background: #fff; border-radius: 16px; box-shadow: 0 10px 34px rgba(0,0,0,.22);
  padding: 12px;
}
.sm-head { font-size: 12.5px; color: var(--gray-450); margin: 2px 2px 10px; }
.sm-head b { color: var(--ink); }
.solar-filters { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 10px; }
.sf-chip {
  font-size: 11.5px; font-weight: 500; color: var(--slate-700);
  background: var(--chip-bg); border-radius: 999px; padding: 4px 10px;
  transition: background .15s, color .15s;
}
.sf-chip:hover { background: #e6f4f2; color: var(--teal-aa); }
.sf-chip.active { background: var(--teal-aa); border-color: var(--teal-aa); color: #fff; }
.solar-kits { display: flex; flex-direction: column; gap: 4px; max-height: 240px; overflow-y: auto; }
.sk-row {
  display: flex; align-items: center; gap: 8px; text-align: left;
  padding: 9px 10px; border-radius: 10px; font-size: 13px;
  transition: background .15s;
}
.sk-row:hover { background: #f0faf8; }
.sk-row.active { background: #e6f4f2; }
.sk-img {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 8px;
  background: var(--img-ph); display: grid; place-items: center; overflow: hidden;
}
.sk-img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; mix-blend-mode: multiply; }
.sk-img.empty { background: var(--chip-bg); }
.sk-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.sk-name { font-weight: 500; color: var(--slate-800); }
.sk-meta { color: var(--gray-450); font-size: 12px; white-space: nowrap; }
.sk-row .ok { color: var(--teal-aa); font-weight: 600; font-size: 12px; white-space: nowrap; }
.sk-row .pct { color: var(--gray-450); font-size: 12px; }
.sk-empty { font-size: 12.5px; color: var(--gray-450); padding: 10px; }
.solar-qty {
  display: flex; align-items: center; gap: 8px;
  border-top: 1px solid var(--border-soft); margin-top: 10px; padding-top: 10px;
}
.sq-label { font-size: 12.5px; color: var(--gray-450); }
.solar-qty .step {
  width: 26px; height: 26px; border: 0; border-radius: 6px;
  background: var(--chip-bg);
  color: var(--gray-450); display: grid; place-items: center;
}
.solar-qty .step:hover { background: #e6f4f2; color: var(--teal-aa); }
.solar-qty .qty { font-weight: 600; font-size: 13px; min-width: 16px; text-align: center; }
.sq-remove { margin-left: auto; font-size: 12.5px; color: var(--danger); }
.sq-remove:hover { text-decoration: underline; }
/* sits on the gray house-section background — needs darker tones than on-white text */
#solar-status { font-size: 12.5px; line-height: 1.5; margin-top: 10px; color: #2e2e33; }
#solar-status.ok { color: #084c46; font-weight: 600; }
#solar-status.tight { color: #2e2e33; }

/* ---------- simulate outage ---------- */
.sim-btn {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 12px; padding: 9px 14px;
  font-size: 13px; font-weight: 600; color: var(--slate-700);
  border: 0; border-radius: 999px; background: #fff;
  box-shadow: var(--shadow-sm);
  transition: color .2s, box-shadow .2s;
}
.sim-btn:hover:not(:disabled) { color: var(--teal-aa); box-shadow: var(--shadow-md); }
.sim-btn:disabled { opacity: .5; cursor: default; }
#sim-clock {
  position: absolute; left: 4%; bottom: 4%;
  background: rgba(10,10,10,.82); color: #fff;
  font-size: 14px; font-weight: 600; letter-spacing: .01em;
  padding: 8px 14px; border-radius: 999px;
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s;
  pointer-events: none; white-space: nowrap;
}
#sim-clock.show { opacity: 1; transform: none; }
#battery-pct.danger { color: var(--danger); }
#headline-runtime.danger { color: var(--danger); }
body.overloaded .power-stats { border-color: rgba(185,28,28,.45); }

/* ---------- empty state ---------- */
.empty-state {
  text-align: center; padding: 34px 26px 22px;
  background: rgba(255,255,255,.75); border: 1.5px dashed var(--border-strong);
  border-radius: 16px; backdrop-filter: blur(2px);
}
.es-title { font-family: var(--font-display); font-weight: 700; font-size: 21px; margin-bottom: 8px; }
.es-copy { font-size: 14px; color: var(--body-text); line-height: 1.55; max-width: 320px; margin: 0 auto 18px; }
.es-or { font-size: 12.5px; color: var(--gray-450); margin-top: 14px; }
.es-arrow { color: var(--teal-aa); margin-top: 8px; animation: es-bounce 1.6s ease-in-out infinite; }
@keyframes es-bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
.carousel-dock.attract { box-shadow: 0 2px 10px rgba(0,0,0,.14), 0 0 0 3px rgba(13,148,136,.35); }

/* ---------- presets ---------- */
.dock-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.dock-head .dock-title { margin: 0 0 0 4px; }
.presets { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.presets-label { font-size: 12.5px; color: var(--gray-450); margin-right: 2px; }
.preset {
  font-size: 12.5px; font-weight: 500; color: var(--slate-700);
  border: 1px solid var(--border-mid); border-radius: 999px; padding: 5px 12px;
  transition: border-color .2s, background .2s, color .2s;
}
.preset:hover { border-color: var(--teal-aa); color: var(--teal-aa); }
.preset.active { background: var(--teal-aa); border-color: var(--teal-aa); color: #fff; }

/* ---------- coach marks ---------- */
.coach-tip {
  position: fixed; z-index: 120; width: min(320px, calc(100vw - 32px));
  background: #fff; border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.25);
  padding: 18px 18px 14px; opacity: 0; pointer-events: none;
}
.coach-tip.show { opacity: 1; pointer-events: auto; }
.ct-title { font-family: var(--font-display); font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.ct-body { font-size: 13.5px; line-height: 1.5; color: var(--body-text); margin-bottom: 14px; }
.ct-row { display: flex; align-items: center; gap: 10px; }
.ct-dots { display: flex; gap: 5px; margin-right: auto; }
.ct-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--border-strong); }
.ct-dots i.on { background: var(--teal-aa); }
.ct-skip { font-size: 13px; color: var(--gray-450); }
.ct-skip:hover { color: var(--ink); }
.ct-next { padding: 6px 16px; font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .house-layout { flex-direction: column; }
  .house-stage { width: 100%; flex: none; }
  .load-panel { flex: none; max-width: 620px; width: 100%; margin-inline: auto; }
}
@media (max-width: 900px) {
  .toolbar .nav-links, .toolbar .divider, .currency, .alerts { display: none; }
  .hero-grid { flex-direction: column; }
  .hero-side { width: 100%; max-width: 520px; }
  .hero-stats { justify-content: flex-start; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .hero { padding-top: 28px; }
  .hero-title { font-size: 38px; }
  .appliance-card {
    grid-template-columns: 48px 1fr auto; grid-template-rows: auto auto;
    row-gap: 10px; padding: 14px; position: relative;
  }
  .ac-art { grid-row: 1; grid-column: 1; width: 48px; height: 44px; }
  .ac-art img { max-height: 44px; max-width: 48px; }
  .ac-name { grid-row: 1; grid-column: 2; }
  .ac-stepper { grid-row: 1; grid-column: 3; justify-self: end; margin-right: 26px; }
  .ac-hours { grid-row: 2; grid-column: 1 / 3; }
  .ac-energy { grid-row: 2; grid-column: 3; text-align: right; }
  .ac-remove { position: absolute; top: 8px; right: 6px; margin: 0; }
  .ac-toggle { grid-row: 3; grid-column: 1 / -1; margin-top: 4px; }
  .ac-stepper .step { width: 36px; height: 36px; font-size: 17px; } /* comfortable tap targets */
  .ac-stepper .qty { min-width: 20px; }
  .ac-hours input[type="range"] { height: 32px; }
  .ac-hours input::-webkit-slider-thumb { width: 20px; height: 20px; margin-top: -8px; }
  .ac-hours input::-moz-range-thumb { width: 20px; height: 20px; }
  .nav-cta { padding: 10px 18px; }
  .explain-toggle, .clear-load { padding-top: 8px; padding-bottom: 8px; }
  .foot-col a { display: inline-block; padding: 5px 0; }
  .link-btn { padding: 6px 0; }
  .ch-remove { width: 32px; height: 32px; }
  .car-dots .dot { padding: 8px; background-clip: content-box; width: 22px; height: 22px; }
  .car-dots .dot.active { width: 32px; }
  .trust-badge { white-space: normal; text-align: left; max-width: 100%; }
  .preset { padding: 9px 14px; }
  .ct-skip { padding: 8px 10px; }
  .ct-next { padding: 9px 18px; }
  .sf-chip { padding: 8px 12px; }
  .solar-qty .step { width: 34px; height: 34px; }
  /* compare table on small screens */
  .cmp-count { display: none; }
  .cmp-toolbar { gap: 12px; }
  .cmp .cmp-side { min-width: 118px; max-width: 140px; font-size: 12.5px; padding-right: 10px; }
  .cmp-head { min-width: 138px; padding: 10px 10px 12px; }
  .ch-img { width: 68px; height: 68px; margin: 10px 0 8px; }
  .ch-model { font-size: 14px; }
  .cmp tbody td { font-size: 13px; padding: 10px 10px; }
  .win-pill { display: block; width: fit-content; margin-top: 3px; }
  .cmp-add { padding: 26px 14px; }
  .power-stats { flex-wrap: wrap; row-gap: 10px; }
  .battery { flex-basis: 100%; text-align: left; display: flex; align-items: center; gap: 8px; }
  .battery .pct { margin: 0; }
  .stat-cell:first-of-type { border-left: 0; padding-left: 0; text-align: left; }
  .carousel-dock { transform: translateY(40px); margin-bottom: 40px; padding-inline: 12px; }
  .round-btn { display: none; } /* swipe + dots on touch */
  .tile { flex-basis: 46%; }
  .dock-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  #sim-clock { font-size: 12px; padding: 6px 10px; }
  .sc-actions .btn { padding: 9px 18px; } /* tap target */
}

.noanim-badge {
  position: fixed; bottom: 12px; left: 12px; z-index: 200;
  background: rgba(10,10,10,.82); color: #fff;
  font-size: 11px; font-weight: 600; letter-spacing: .02em;
  padding: 6px 12px; border-radius: 999px; pointer-events: none;
}

/* ---------- room reveal (hover desktop / tap mobile) ---------- */
.room-hit {
  position: absolute; z-index: 6; background: transparent;
  border-radius: 6px; cursor: pointer;
  transition: background .18s, box-shadow .18s;
}
.room-hit:hover, .room-hit.active { background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 2px rgba(255,255,255,.45); }
.room-info {
  position: absolute; z-index: 20;
  transform: translate(-50%, calc(-100% - 10px));
  width: max-content; max-width: 220px;
  background: #fff; border-radius: 12px; box-shadow: 0 8px 26px rgba(0,0,0,.22);
  padding: 12px 14px; pointer-events: none;
}
.room-info.pinned { pointer-events: auto; }
.room-info b { font-size: 13px; font-weight: 600; color: var(--slate-900); }
.ri-list { list-style: none; margin: 8px 0 0; }
.ri-list li { display: flex; justify-content: space-between; gap: 14px; font-size: 12.5px; color: var(--body-text); padding: 2px 0; }
.ri-w { color: var(--gray-450); white-space: nowrap; }
.ri-total { font-size: 12px; font-weight: 600; color: var(--teal-aa); margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--border-soft); }
.ri-empty { font-size: 12.5px; color: var(--gray-450); margin-top: 4px; }

/* ---------- sticky mini-stats (mobile) ---------- */
.mini-stats {
  display: none;
  position: fixed; top: 56px; left: 0; right: 0; z-index: 40;
  align-items: center; gap: 16px; justify-content: center;
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0,0,0,.1);
  padding: 9px 16px; transform: translateY(-100%);
  transition: transform .25s ease;
}
.mini-stats.show { transform: none; }
.mini-cell { display: flex; align-items: baseline; gap: 6px; }
.mini-cell b { font-size: 15px; font-weight: 700; color: var(--slate-900); }
.mini-cell span { font-size: 11px; color: var(--gray-450); text-transform: uppercase; letter-spacing: .04em; }
.mini-div { width: 1px; height: 18px; background: var(--border-mid); }
@media (max-width: 640px) { .mini-stats { display: flex; } }

/* ---------- swipe-to-remove (touch) ---------- */
.appliance-card.swiping { background: #fdf1f1; }

/* ---------- share button group + toast ---------- */
.panel-tools-right { display: inline-flex; gap: 16px; align-items: center; }
#share-setup { display: inline-flex; align-items: center; gap: 5px; }
#share-setup:hover { color: var(--teal-aa); border-color: var(--teal-aa); }
.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(12px);
  z-index: 130; background: #1c1c21; color: #fff;
  font-size: 13px; font-weight: 500; padding: 11px 18px; border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0,0,0,.3);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translateX(-50%); }

/* ---------- price-alert bells + modal ---------- */
.station-card { position: relative; }
.alert-bell {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--chip-bg); color: var(--gray-450);
  transition: background .18s, color .18s;
}
.alert-bell:hover { background: #e6f4f2; color: var(--teal-aa); }
.alert-bell.watching { background: var(--teal-aa); color: #fff; }
.pp-alert {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 12px;
  font-size: 13.5px; font-weight: 600; color: var(--slate-700);
  background: var(--chip-bg); border-radius: 999px; padding: 9px 16px;
  transition: background .18s, color .18s;
}
.pp-alert:hover { background: #e6f4f2; color: var(--teal-aa); }
.pp-alert.watching { background: var(--teal-aa); color: #fff; }

.alert-modal { position: fixed; inset: 0; z-index: 140; }
.am-backdrop { position: absolute; inset: 0; background: rgba(10,10,10,.5); }
.am-panel {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(460px, calc(100vw - 32px)); max-height: 88vh; display: flex; flex-direction: column;
  background: #fff; border-radius: 18px; box-shadow: 0 18px 50px rgba(0,0,0,.3); overflow: hidden;
}
.am-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 12px; }
.am-head b { font-family: var(--font-display); font-weight: 700; font-size: 19px; }
.am-close { width: 34px; height: 34px; border-radius: 50%; background: var(--chip-bg); color: var(--slate-700); display: grid; place-items: center; }
.am-close:hover { background: #e5e7eb; }
.am-body { padding: 0 20px 20px; overflow-y: auto; }
.am-sub { font-size: 13.5px; line-height: 1.5; color: var(--body-text); margin-bottom: 14px; }
.am-field { display: block; margin-bottom: 14px; }
.am-field span { display: block; font-size: 12.5px; font-weight: 600; color: var(--slate-700); margin-bottom: 5px; }
.am-field input {
  width: 100%; font: inherit; font-size: 15px; padding: 11px 13px;
  border: 1px solid var(--border-strong); border-radius: 10px; background: #fff; outline: none;
}
.am-field input:focus-visible { border-color: var(--teal-aa); box-shadow: 0 0 0 2px rgba(15,118,110,.2); }
.am-list { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--border-soft); padding-top: 6px; }
.am-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 6px; border-radius: 9px; cursor: pointer; }
.am-row:hover { background: #fafbfc; }
.am-check { width: 18px; height: 18px; accent-color: var(--teal-aa); flex-shrink: 0; }
.am-name { font-size: 14px; font-weight: 500; color: var(--slate-800); flex: 1; min-width: 110px; }
.am-cur { font-size: 12px; color: var(--gray-450); }
.am-target { font-size: 12px; color: var(--gray-450); display: inline-flex; align-items: center; white-space: nowrap; }
.am-price { width: 68px; font: inherit; font-size: 13px; padding: 5px 7px; margin-left: 2px; border: 1px solid var(--border-mid); border-radius: 7px; outline: none; }
.am-price:focus-visible { border-color: var(--teal-aa); }
.am-consent { font-size: 11.5px; line-height: 1.5; color: var(--gray-450); margin: 14px 0; }
.am-err { font-size: 13px; color: var(--danger); margin-bottom: 10px; }
.am-submit { width: 100%; padding: 13px; font-size: 15px; }
.am-success { text-align: center; padding: 16px 4px 8px; }
.am-check-big { display: inline-block; margin-bottom: 10px; }
.am-success b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 20px; margin-bottom: 8px; }
.am-success p { font-size: 14px; line-height: 1.55; color: var(--body-text); max-width: 340px; margin: 0 auto 18px; }
@media (max-width: 640px) {
  .am-panel { top: auto; bottom: 0; left: 0; transform: none; width: 100%; max-height: 90vh; border-radius: 20px 20px 0 0; }
}

/* ---------- pickers become bottom sheets on mobile ---------- */
@media (max-width: 640px) {
  .station-menu.open, .solar-menu:not([hidden]) {
    position: fixed; inset: auto 0 0 0; width: auto; max-width: none;
    max-height: 72vh; border-radius: 20px 20px 0 0;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -6px 24px rgba(0,0,0,.2), 0 0 0 100vmax rgba(0,0,0,.45);
    z-index: 95;
  }
  .station-menu.open::before, .solar-menu:not([hidden])::before {
    content: ''; display: block; width: 40px; height: 4px; border-radius: 4px;
    background: var(--border-strong); margin: -4px auto 12px;
  }
  .menu-item, .sk-row { padding: 12px; }
}

/* ---------- mobile quick-add sheet ---------- */
.fab-add {
  display: none;
  position: fixed; bottom: 16px; right: 16px; z-index: 85;
  align-items: center; gap: 7px;
  background: var(--teal-aa); color: #fff;
  font-size: 14px; font-weight: 600;
  padding: 13px 18px; border-radius: 999px;
  box-shadow: 0 4px 16px rgba(15,118,110,.4);
}
.sheet-backdrop { position: fixed; inset: 0; background: rgba(10,10,10,.45); z-index: 90; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  background: #fff; border-radius: 20px 20px 0 0;
  max-height: 78vh; overflow-y: auto;
  padding: 8px 16px calc(20px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 30px rgba(0,0,0,.2);
}
.sheet-handle { width: 40px; height: 4px; border-radius: 4px; background: var(--border-strong); margin: 6px auto 12px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sheet-head b { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.sheet-close {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--chip-bg); color: var(--slate-700);
  display: grid; place-items: center;
}
.sheet-presets { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.sheet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sheet-item {
  position: relative;
  background: var(--tile-bg); border-radius: 12px;
  padding: 14px 8px 10px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: background .15s;
}
.sheet-item img { height: 44px; width: auto; max-width: 70%; object-fit: contain; }
.si-name { font-size: 11.5px; font-weight: 500; color: var(--slate-700); line-height: 1.25; }
.si-check {
  position: absolute; top: 6px; right: 6px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; color: transparent;
  box-shadow: inset 0 0 0 1.5px var(--border-strong);
  display: grid; place-items: center;
  transition: background .15s, color .15s, box-shadow .15s;
}
.sheet-item.on { background: #e6f4f2; }
.sheet-item.on .si-check { background: var(--teal-aa); color: #fff; box-shadow: none; }
@media (max-width: 640px) {
  .fab-add { display: inline-flex; }
  body.sheet-open .fab-add { display: none; }
}

/* reduced motion: keep everything visible, no transforms */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
