/* GridGuard on-site assessment (quote.gridguardgroup.com).
   The Guardian Care core journey in GridGuard's look: a navy header and footer around a workspace of
   question cards, brand cyan for the one action that moves the customer on. Light by default; dark
   follows the device, or the account menu's Appearance switch (html[data-appearance]). */

@font-face { font-family: "Space Grotesk"; src: url("fonts/space-grotesk-500-700.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --navy: #021851;
  --navy-deep: #010c30;
  --cyan: #5dd9fe;
  --cyan-hover: #8ce6ff;

  --bg: #eef2f8;
  --surface: #ffffff;
  --raised: #f5f7fb;
  --well: #edf1f7;
  --border: #dde3ed;
  --control: #c6cfdd;
  --text: #010c30;
  --muted: #4b5470;
  --faint: #5d6680;
  --accent: #0779a3;          /* cyan darkened for text and rings on white (4.9:1) */
  --accent-soft: #e2f6fd;
  --accent-ring: rgb(8 153 201 / 0.22);
  --primary: var(--cyan);
  --primary-hover: var(--cyan-hover);
  --primary-ink: var(--navy-deep);
  --input-bg: #ffffff;
  --shadow: 0 1px 2px rgb(1 12 48 / 0.05), 0 8px 24px rgb(1 12 48 / 0.06);
  --menu-shadow: 0 14px 36px rgb(1 12 48 / 0.18);

  --green: #12804a; --green-soft: #e3f7ec; --green-line: #8fd3ad;
  --amber: #93540a; --amber-soft: #fff4dc; --amber-line: #f0c46b;
  --red: #b4232a;   --red-soft: #fdecec;   --red-line: #eba7a9;
  --info-soft: #e8eefb; --info-line: #b9c8ea;

  --font: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Barlow", system-ui, sans-serif;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --top-h: 76px;
  --foot-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

/* Dark: the brand navy ground of www and the customer panel */
@media (prefers-color-scheme: dark) {
  :root:not([data-appearance="light"]) {
    color-scheme: dark;
    --bg: #010c30; --surface: #021851; --raised: #07215f; --well: #061d58; --border: #1a3472; --control: #3a5594;
    --text: #f2f5ff; --muted: #b2bedc; --faint: #97a5c8;
    --accent: #5dd9fe; --accent-soft: rgb(93 217 254 / 0.12); --accent-ring: rgb(93 217 254 / 0.3);
    --input-bg: #011142; --shadow: none; --menu-shadow: 0 14px 36px rgb(0 0 0 / 0.55);
    --green: #6fe0a6; --green-soft: rgb(52 199 120 / 0.14); --green-line: rgb(111 224 166 / 0.5);
    --amber: #ffd27a; --amber-soft: rgb(255 190 70 / 0.13); --amber-line: rgb(255 210 122 / 0.5);
    --red: #ff9ea3; --red-soft: rgb(255 92 104 / 0.14); --red-line: rgb(255 158 163 / 0.5);
    --info-soft: rgb(120 160 255 / 0.12); --info-line: rgb(150 180 255 / 0.35);
  }
}
:root[data-appearance="dark"] {
  color-scheme: dark;
  --bg: #010c30; --surface: #021851; --raised: #07215f; --well: #061d58; --border: #1a3472; --control: #3a5594;
  --text: #f2f5ff; --muted: #b2bedc; --faint: #97a5c8;
  --accent: #5dd9fe; --accent-soft: rgb(93 217 254 / 0.12); --accent-ring: rgb(93 217 254 / 0.3);
  --input-bg: #011142; --shadow: none; --menu-shadow: 0 14px 36px rgb(0 0 0 / 0.55);
  --green: #6fe0a6; --green-soft: rgb(52 199 120 / 0.14); --green-line: rgb(111 224 166 / 0.5);
  --amber: #ffd27a; --amber-soft: rgb(255 190 70 / 0.13); --amber-line: rgb(255 210 122 / 0.5);
  --red: #ff9ea3; --red-soft: rgb(255 92 104 / 0.14); --red-line: rgb(255 158 163 / 0.5);
  --info-soft: rgb(120 160 255 / 0.12); --info-line: rgb(150 180 255 / 0.35);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 16px); }
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 140ms; }
html.is-loading { cursor: progress; }
html.is-loading body::before { content: ""; position: fixed; inset: 0 0 auto; z-index: 100; height: 3px; background: var(--cyan); transform-origin: left; animation: loading 1.1s var(--ease) infinite; }
@keyframes loading { from { transform: scaleX(0); } to { transform: scaleX(1); opacity: 0.3; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
strong { font-weight: 600; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.block { display: block; }
.num, .figure, table { font-variant-numeric: tabular-nums lining-nums; }
.icon { width: 20px; height: 20px; flex: none; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 60; padding: 8px 12px; background: var(--cyan); color: var(--navy-deep); border-radius: var(--radius-xs); }
.skip-link:focus { top: 8px; }
.wordmark-pair { display: inline-flex; }
.wordmark.on-dark { display: none; }

/* ---------- header ---------- */
.journey { min-height: 100svh; display: flex; flex-direction: column; }
.top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  min-height: var(--top-h); padding: 0 16px 0 0;
  background: linear-gradient(180deg, #032070 0%, var(--navy) 60%, #011545 100%);
  color: #fff; box-shadow: 0 1px 0 rgb(255 255 255 / 0.06), 0 6px 18px rgb(1 12 48 / 0.25);
}
.logo-tab { align-self: stretch; display: flex; align-items: center; gap: 10px; padding: 0 20px; background: #fff; border-bottom-right-radius: 22px; text-decoration: none; }
.logo-tab .mark { width: 34px; height: 34px; }
.logo-tab .wordmark { height: 14px; width: auto; }
.top-swap { flex: 1; min-width: 0; display: flex; align-items: center; }
.stage-head { display: none; }
.eyebrow { font: 600 12px/1.2 var(--font); letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); }
.stage-name { font: 700 19px/1.2 var(--font-display); }
.tracker { flex: 1; min-width: 0; padding: 8px 4px 10px; }
.tracker-label { font: 600 11px/1 var(--font); letter-spacing: 0.16em; text-transform: uppercase; text-align: center; color: #c7d3f2; margin-bottom: 6px; }
.tracker ol { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); position: relative; }
.tracker ol::before { content: ""; position: absolute; left: 4.5%; right: 4.5%; top: 13px; height: 2px; background: rgb(255 255 255 / 0.2); }
.tracker li { position: relative; text-align: center; }
.tracker a, .tracker .step { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: #c7d3f2; }
.tracker .dot { position: relative; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #0c2a74; border: 2px solid rgb(255 255 255 / 0.28); font: 700 13px/1 var(--font-display); color: #e3eaff; }
.tracker .dot .icon { width: 15px; height: 15px; stroke-width: 2.6; }
.tracker .name { font: 500 11.5px/1.15 var(--font); max-width: 9ch; }
.tracker .completed .dot { background: var(--cyan); border-color: var(--cyan); color: var(--navy-deep); }
.tracker .current .dot { background: #fff; border-color: var(--cyan); color: var(--navy); box-shadow: 0 0 0 4px rgb(93 217 254 / 0.3); }
.tracker .current .name { color: #fff; font-weight: 700; }
.tracker .completed a .name { text-decoration: underline; text-decoration-color: rgb(255 255 255 / 0.35); text-underline-offset: 3px; }
.tracker a:hover .name { color: #fff; }
.tracker a:hover .dot { box-shadow: 0 0 0 4px rgb(93 217 254 / 0.25); }
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgb(255 255 255 / 0.1); }
.progress span { display: block; height: 100%; background: var(--cyan); transition: width 300ms var(--ease); }
.progress[data-stage="1"] span { width: 9.09%; } .progress[data-stage="2"] span { width: 18.18%; } .progress[data-stage="3"] span { width: 27.27%; }
.progress[data-stage="4"] span { width: 36.36%; } .progress[data-stage="5"] span { width: 45.45%; } .progress[data-stage="6"] span { width: 54.55%; }
.progress[data-stage="7"] span { width: 63.64%; } .progress[data-stage="8"] span { width: 72.73%; } .progress[data-stage="9"] span { width: 81.82%; }
.progress[data-stage="10"] span { width: 90.91%; } .progress[data-stage="11"] span { width: 100%; }
.tagline { display: flex; align-items: center; gap: 10px; padding-left: 16px; border-left: 1px solid rgb(255 255 255 / 0.18); font: 500 13px/1.25 var(--font); color: #d6e0fb; }
.tagline .icon { color: var(--cyan); }
.tagline strong { color: #fff; }
.round-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgb(255 255 255 / 0.35); background: rgb(255 255 255 / 0.06); color: inherit; cursor: pointer; transition: background 150ms; }
.round-btn:hover { background: rgb(255 255 255 / 0.16); }
.dialog .round-btn, .main .round-btn { border-color: var(--border); background: var(--raised); }
.expand { display: none; }

/* account menu */
.account { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 40; width: 250px; padding: 8px; border-radius: var(--radius-sm); background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: var(--menu-shadow); }
.menu-name { padding: 8px 10px 10px; font-weight: 700; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.menu button[role="menuitem"] { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: var(--radius-xs); background: none; text-align: left; font-weight: 600; cursor: pointer; }
.menu button[role="menuitem"]:hover { background: var(--accent-soft); }
.menu button[role="menuitem"] .icon { color: var(--accent); }
.menu form { margin: 0; }
.menu-heading { margin: 8px 10px 6px; padding-top: 10px; border-top: 1px solid var(--border); font: 600 11px/1 var(--font); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.appearance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; margin: 0 6px 4px; border-radius: 10px; background: var(--well); }
.appearance button { display: grid; place-items: center; height: 36px; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; }
.appearance button[aria-pressed="true"] { background: var(--surface); color: var(--accent); box-shadow: 0 1px 3px rgb(1 12 48 / 0.15); }

/* ---------- workspace ---------- */
.workspace { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; }
.main { min-width: 0; width: 100%; max-width: 1040px; margin: 0 auto; padding: 28px 24px 40px; }
.workspace.three { grid-template-columns: 24.44% minmax(0, 1fr) 26.39%; }
.workspace.three .main { max-width: none; }
.hero { position: sticky; top: var(--top-h); height: calc(100svh - var(--top-h) - var(--foot-h)); overflow: hidden; color: #fff; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% center; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(1 12 48 / 0.15) 0%, rgb(1 12 48 / 0.35) 45%, rgb(1 12 48 / 0.92) 100%); }
.hero-text { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; height: 100%; padding: 28px 24px; }
.script { font: 700 clamp(22px, 2vw, 30px)/1.15 var(--font-display); transform: rotate(-4deg); transform-origin: left; text-shadow: 0 2px 12px rgb(0 0 0 / 0.45); }
.script::after { content: ""; display: block; width: 64%; height: 3px; margin-top: 10px; border-radius: 2px; background: var(--cyan); }
.hero-points { display: grid; gap: 14px; }
.hero-points li { display: flex; align-items: center; gap: 12px; font: 600 15px/1.25 var(--font); }
.hero-points .icon { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: rgb(93 217 254 / 0.16); border: 1px solid rgb(93 217 254 / 0.45); color: var(--cyan); }

/* guidance aside */
.side { position: sticky; top: var(--top-h); max-height: calc(100svh - var(--top-h) - var(--foot-h)); overflow: auto; padding: 28px 24px 28px 4px; }
.side-handle { position: absolute; left: -14px; top: 50%; z-index: 2; display: grid; place-items: center; width: 28px; height: 56px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer; }
.workspace.three:has(.side.collapsed) { grid-template-columns: 24.44% minmax(0, 1fr) 40px; }
.side.collapsed .guidance-panel { display: none; }
.side.collapsed .side-handle .icon { transform: rotate(180deg); }
.guidance-panel { display: grid; gap: 14px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.guidance-img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-sm); }
.guidance-panel h2 { font-size: 20px; }
.points { display: grid; gap: 14px; }
.points li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.points strong { display: block; color: var(--text); }
.point-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.point-icon .icon { width: 18px; height: 18px; }
.note { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--info-soft); border: 1px solid var(--info-line); color: var(--text); }
.note strong { display: block; }
.note .icon { color: var(--accent); margin-top: 2px; }
.quote { padding: 14px 16px; border-left: 3px solid var(--cyan); background: var(--well); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font: 600 16px/1.35 var(--font-display); }

/* ---------- footer ---------- */
.foot { position: sticky; bottom: 0; z-index: 25; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; min-height: var(--foot-h); padding: 8px 20px; background: var(--navy); color: #fff; border-top: 1px solid rgb(255 255 255 / 0.08); }
.foot .mark { width: 30px; height: 30px; }
.who { display: flex; align-items: center; gap: 12px; min-width: 0; padding-left: 16px; border-left: 1px solid rgb(255 255 255 / 0.15); }
.who-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; background: rgb(93 217 254 / 0.14); color: var(--cyan); }
.who strong { display: block; font-size: 15px; }
.who .place { display: block; font-size: 13px; color: #c7d3f2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who > span:last-child { min-width: 0; }
.foot-stage { display: grid; justify-items: end; gap: 2px; padding-left: 16px; border-left: 1px solid rgb(255 255 255 / 0.15); }
.save-status { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: #9ff0c6; min-height: 18px; }
.save-status .icon { width: 14px; height: 14px; }
.save-status.saving { color: #c7d3f2; }
.save-status.problem { color: #ffc0c4; }
.save-status button { border: 0; background: none; color: var(--cyan); text-decoration: underline; cursor: pointer; padding: 0; font-size: 13px; }
/* "Working" indicator: three cyan dots pulsing in turn (no spinning arcs) */
.dots { display: inline-flex; align-items: center; gap: 4px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); animation: dot 1.2s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: 0.15s; }
.dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 80%, 100% { opacity: 0.25; transform: scale(0.75); } 40% { opacity: 1; transform: scale(1); } }

.floaters { position: fixed; right: 20px; bottom: calc(var(--foot-h) + 16px); z-index: 26; display: grid; gap: 12px; }
.float-btn { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer; box-shadow: 0 6px 18px rgb(1 12 48 / 0.3); }
.top-btn { background: var(--navy); color: #fff; border: 1px solid rgb(255 255 255 / 0.2); }
.assistant-btn { background: var(--cyan); color: var(--navy-deep); }
.float-btn .icon { width: 22px; height: 22px; }

/* ---------- page content ---------- */
.page-title { display: grid; gap: 6px; margin-bottom: 22px; }
.page-title h1 { font-size: clamp(28px, 3vw, 36px); }
.page-title .first { font-weight: 600; font-size: 17px; }
.page-title p:not(.first) { color: var(--muted); }
.panel { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.section-title { display: grid; gap: 2px; margin-bottom: 14px; }
.section-title h2 { font-size: 20px; }
.divider { height: 1px; margin: 26px 0 22px; background: var(--border); }
.group-heading { margin: 26px 0 12px; font: 600 12px/1 var(--font); letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.capture > .group-heading:first-of-type { margin-top: 0; }
.capture { display: grid; gap: 16px; }
.capture.panel { display: block; }
.capture .q-card + .q-card, .card-pair + .q-card, .q-card + .card-pair { margin-top: 0; }
.card-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.source { font-size: 13px; color: var(--faint); }

/* question cards */
.q-card { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.q-card.invalid { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.q-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.q-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.q-title { flex: 1; min-width: 0; }
.q-title h2 { font-size: 18px; }
.q-title p { margin-top: 2px; color: var(--muted); font-size: 15px; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px; border-radius: 999px; background: var(--well); color: var(--text); font: 600 13px/1.2 var(--font); white-space: nowrap; }
.pill .icon { width: 14px; height: 14px; }
.pill.summary { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-ring); }
.pill.ok { background: var(--green-soft); color: var(--green); }
.pill.muted { color: var(--muted); }
.bar { margin: -4px 0 14px 58px; font-size: 14px; color: var(--muted); }
.bar strong { color: var(--text); }
.bar .dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; vertical-align: 1px; border-radius: 50%; background: var(--control); }
.bar.set .dot { background: var(--green); }
.q-body { display: grid; gap: 14px; }
.sub, .sub-block { display: grid; gap: 12px; padding: 16px; border-radius: var(--radius-sm); background: var(--well); }
.shaded { padding: 16px; border-radius: var(--radius-sm); background: var(--well); }
.legend { margin-bottom: 8px; font-weight: 600; }
.group-hint { margin: -4px 0 10px; }
.reveal { display: grid; gap: 12px; }

/* choices */
.choices .options { display: grid; gap: 10px; grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr)); }
.cols-2 { --cols: 2; } .cols-3 { --cols: 3; } .cols-4 { --cols: 4; } .cols-5 { --cols: 5; } .cols-6 { --cols: 6; }
.fields.cols-2, .fields.cols-3 { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 14px; align-items: start; }
.opt { position: relative; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid var(--control); background: var(--input-bg); cursor: pointer; transition: border-color 150ms, background 150ms, box-shadow 150ms; }
.opt:hover { border-color: var(--accent); }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.opt .mark { display: grid; place-items: center; width: 20px; height: 20px; flex: none; border-radius: 50%; border: 2px solid var(--control); color: transparent; }
.opt .mark .icon { width: 12px; height: 12px; stroke-width: 3.2; }
.opt-icon { display: grid; place-items: center; color: var(--accent); }
.opt-text { display: grid; gap: 2px; min-width: 0; }
.opt-label { font-weight: 600; line-height: 1.25; }
.opt-desc { font-size: 14px; color: var(--muted); line-height: 1.3; }
.opt-note { font-size: 13px; color: var(--accent); font-weight: 600; }
.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
.opt:has(input:checked) .mark { border-color: var(--accent); background: var(--accent); color: var(--surface); }
.opt:has(input:disabled) { cursor: default; opacity: 0.7; }
.opt.tone-green:has(input:checked) { border-color: var(--green); background: var(--green-soft); box-shadow: 0 0 0 1px var(--green); }
.opt.tone-green:has(input:checked) .mark { border-color: var(--green); background: var(--green); }
.opt.tone-amber:has(input:checked) { border-color: var(--amber); background: var(--amber-soft); box-shadow: 0 0 0 1px var(--amber); }
.opt.tone-amber:has(input:checked) .mark { border-color: var(--amber); background: var(--amber); }
.opt.tone-red:has(input:checked) { border-color: var(--red); background: var(--red-soft); box-shadow: 0 0 0 1px var(--red); }
.opt.tone-red:has(input:checked) .mark { border-color: var(--red); background: var(--red); }
.choices[data-invalid="true"] .opt { border-color: var(--red); }
/* chips and tiles: centred, no dot */
.chips .opt, .tiles .opt { justify-content: center; text-align: center; min-height: 56px; }
.chips .opt .mark, .tiles .opt .mark { display: none; }
.tiles .opt[data-value]:not([data-value="custom"]):not([data-value="not_sure"]) .opt-label { font: 700 24px/1 var(--font-display); }
.tiles .opt[data-value="custom"], .tiles .opt[data-value="not_sure"] { grid-column: span 3; justify-content: flex-start; text-align: left; }
/* stacked cards: icon above */
.stacked .opt { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; min-height: 108px; }
.stacked .opt .mark { position: absolute; right: 12px; top: 12px; }
.stacked .opt-icon .icon { width: 24px; height: 24px; }
/* compact radios after chips */
.compact .opt { min-height: 42px; padding: 8px 12px; }
[data-generation-bands] { display: grid; gap: 10px; }
.q-body > .same-group { margin-top: -4px; }
/* ticks */
.checks .opt .mark { border-radius: 6px; }
.find-results button, .q-chip { cursor: pointer; }

/* fields */
.fields { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.label { font-weight: 600; }
.control { position: relative; display: flex; align-items: center; }
.control input { width: 100%; height: 50px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--control); background: var(--input-bg); transition: border-color 150ms, box-shadow 150ms; }
.control input::placeholder { color: var(--faint); opacity: 1; }
.control input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
.control input[aria-invalid="true"] { border-color: var(--red); }
.control input[readonly] { opacity: 0.7; }
.field.upper input:not(:placeholder-shown) { text-transform: uppercase; }
.has-icon .control input { padding-left: 46px; }
.control .lead { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.has-unit .control input { padding-right: 76px; }
.unit { position: absolute; right: 14px; color: var(--muted); font-size: 14px; font-weight: 600; pointer-events: none; }
.control input[type="date"] { padding-right: 12px; }
.hint { font-size: 14px; color: var(--muted); }
.error { font-size: 14px; font-weight: 600; color: var(--red); }
.warning { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius-xs); background: var(--amber-soft); border: 1px solid var(--amber-line); color: var(--text); font-size: 14px; }
.warning .icon { color: var(--amber); width: 18px; height: 18px; margin-top: 1px; }
.voltage-row { max-width: 280px; }

/* find the customer */
.find { display: grid; gap: 12px; margin-bottom: 20px; }
.link-btn { padding: 0; border: 0; background: none; color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.find-open { justify-self: start; }
.find-box { display: grid; gap: 10px; padding: 18px; border-radius: var(--radius-sm); background: var(--well); border: 1px solid var(--border); }
.find-box h2 { font-size: 17px; }
.find-row { display: flex; gap: 10px; }
.find-row input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--control); background: var(--input-bg); }
.find-row input:not(:placeholder-shown) { text-transform: uppercase; }
.find-results { display: grid; gap: 8px; }
.find-results button { width: 100%; padding: 10px 14px; text-align: left; border-radius: var(--radius-sm); border: 1px solid var(--control); background: var(--surface); }
.find-results button:hover { border-color: var(--accent); }
.find-results span { display: block; color: var(--muted); font-size: 14px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent; font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer; transition: background 150ms, border-color 150ms, transform 120ms; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn.primary { background: var(--primary); color: var(--primary-ink); box-shadow: 0 6px 16px rgb(93 217 254 / 0.28); }
.btn.primary:hover:not(:disabled) { background: var(--primary-hover); }
.btn.primary:disabled { background: var(--well); color: var(--faint); box-shadow: none; cursor: not-allowed; }
.btn.ghost { background: var(--surface); border-color: var(--control); color: var(--text); }
.btn.ghost:hover { border-color: var(--accent); }
.btn.navy { background: var(--navy); color: #fff; border-color: rgb(255 255 255 / 0.15); }
.btn.danger { background: var(--surface); border-color: var(--red-line); color: var(--red); }
.btn.danger:hover:not(:disabled) { background: var(--red-soft); }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn.block { width: 100%; }
.btn .icon { width: 18px; height: 18px; }
.actions { display: flex; gap: 12px; margin-top: 24px; }
.actions .next { flex: 1; min-height: 56px; }
.actions .back { min-height: 56px; }
.actions .btn { min-height: 56px; }
.actions .inline-form { display: flex; }
.actions-hint { margin-top: 24px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--amber-soft); border: 1px solid var(--amber-line); font-size: 15px; font-weight: 600; color: var(--text); }
.actions-hint + .actions { margin-top: 12px; }
.cancel { margin-top: 22px; text-align: center; }
.cancel .link-btn { color: var(--muted); font-weight: 500; }
.link-row { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* notices and findings */
.notice { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; margin-bottom: 16px; border-radius: var(--radius-sm); background: var(--info-soft); border: 1px solid var(--info-line); }
.notice .icon { color: var(--accent); margin-top: 1px; }
.notice.ok { background: var(--green-soft); border-color: var(--green-line); }
.notice.ok .icon { color: var(--green); }
.notice.bad { background: var(--red-soft); border-color: var(--red-line); }
.notice.bad .icon { color: var(--red); }
.notice.warn { background: var(--amber-soft); border-color: var(--amber-line); }
.notice.warn .icon { color: var(--amber); }
.linked { margin: 0; }
.status-box, .finding { display: grid; gap: 6px; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--red-line); background: var(--red-soft); }
.status-head, .finding-head { display: flex; align-items: center; gap: 8px; font: 700 14px/1.2 var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--red); }
.status-head { text-transform: none; letter-spacing: 0; font-size: 16px; }
.finding-status { font-weight: 700; color: var(--red); }
.finding-note { font-size: 14px; color: var(--muted); }
.finding-recommend, .finding-escalate { padding: 8px 12px; border-radius: var(--radius-xs); background: var(--surface); border: 1px solid var(--border); font-size: 15px; }
.locked-figure { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--radius-sm); background: var(--well); border: 1px solid var(--border); }
.locked-figure > .icon { color: var(--faint); }
.locked-figure .figure { font: 700 34px/1 var(--font-display); }
.locked-figure .figure span { font-size: 18px; font-weight: 600; }
.sync-banner { margin-bottom: 16px; }

/* ---------- dialogs ---------- */
.dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100svh - 48px); padding: 0; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); color: var(--text); box-shadow: var(--menu-shadow); overflow: auto; }
.dialog.wide { width: min(860px, calc(100vw - 32px)); }
.dialog.small { width: min(440px, calc(100vw - 32px)); padding: 24px; }
.dialog.small h2 { font-size: 21px; margin-bottom: 8px; }
.dialog.small p { color: var(--muted); }
.dialog::backdrop { background: rgb(1 12 48 / 0.6); backdrop-filter: blur(3px); }
.dialog-head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px 24px 14px; background: var(--surface); }
.dialog-head h2 { font-size: 24px; }
.dialog-head p { color: var(--muted); margin-top: 2px; }
.dialog-body { padding: 4px 24px 24px; }
.dialog-body.stack, .stack { display: grid; gap: 14px; }
.dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; padding: 0 24px 24px; }
.dialog.small .dialog-actions { padding: 18px 0 0; }
.dialog-actions form { margin: 0; }
.list-total { text-align: right; color: var(--muted); margin-bottom: 10px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { padding: 12px 14px; text-align: left; font-weight: 700; background: var(--well); white-space: nowrap; }
.table td { padding: 12px 14px; border-top: 1px solid var(--border); vertical-align: middle; }
.table td a { font-weight: 600; color: var(--accent); }
.table .empty { text-align: center; color: var(--muted); padding: 28px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; }
.select-bar { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.select-tools { display: inline-flex; align-items: center; gap: 14px; margin-left: 14px; }
.drafts { display: grid; gap: 10px; }
.drafts li { display: flex; align-items: center; gap: 10px; }
.draft { flex: 1; display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--raised); text-decoration: none; }
.draft:hover { border-color: var(--accent); }
.draft-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.draft .pill { margin-left: 8px; }
.draft-check input { width: 20px; height: 20px; }
.tabs { display: flex; gap: 4px; margin: 0 24px 14px; padding: 4px; border-radius: 12px; background: var(--well); }
.tabs button { flex: 1; height: 40px; border: 0; border-radius: 9px; background: none; font-weight: 600; color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgb(1 12 48 / 0.15); }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.q-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--control); background: var(--surface); font-weight: 600; font-size: 15px; text-align: left; }
.q-chip .icon { color: var(--accent); width: 18px; height: 18px; }
.q-chip[aria-expanded="true"] { border-color: var(--accent); background: var(--accent-soft); }
.answer { display: grid; gap: 6px; padding: 16px; border-radius: var(--radius-sm); background: var(--well); margin-bottom: 12px; }
.answer h3 { font-size: 16px; }
.fine { margin-top: 12px; font-size: 13px; color: var(--faint); }
.answer-card { padding: 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); margin-top: 12px; }
.answer-card header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.answer-card h3 { font-size: 17px; }
.answer-card dl { display: grid; gap: 0; }
.answer-card dl div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 7px 0; border-top: 1px solid var(--border); font-size: 15px; }
.answer-card dt { color: var(--muted); }
.answer-card dd { font-weight: 600; }
.answer-card dd.muted { font-weight: 400; }

/* ---------- sign-in and error pages ---------- */
body.plain { min-height: 100svh; display: grid; align-items: center; justify-items: end; padding: 24px clamp(16px, 7vw, 120px); background: var(--navy-deep); }
.plain-bg { position: fixed; inset: 0; background: url("img/house-at-night.jpg") 35% center / cover no-repeat; }
.plain-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(1 12 48 / 0.15) 0%, rgb(1 12 48 / 0.55) 55%, rgb(1 12 48 / 0.85) 100%); }
.plain-card { position: relative; width: min(440px, 100%); padding: 32px; border-radius: 22px; background: rgb(2 24 81 / 0.88); border: 1px solid rgb(255 255 255 / 0.14); backdrop-filter: blur(10px); color: #fff; box-shadow: 0 24px 60px rgb(0 0 0 / 0.45); }
.plain-card .brand-line { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.plain-card .brand-line img:last-child { height: 13px; width: auto; }
.plain-card h1 { font-size: 32px; }
.plain-card .lead { margin: 6px 0 22px; color: #c7d3f2; }
.plain-card .notice { color: var(--text); }
.plain-card .field.line .label { font: 600 12px/1 var(--font); letter-spacing: 0.12em; text-transform: uppercase; color: #c7d3f2; }
.plain-card .control input { height: 48px; background: transparent; border: 0; border-bottom: 1px solid rgb(255 255 255 / 0.35); border-radius: 0; color: #fff; padding-left: 28px; }
.plain-card .control input:focus { box-shadow: none; border-bottom-color: var(--cyan); }
.plain-card .control .lead { left: -3px; transform: translateY(calc(-50% - 2px)); color: #c7d3f2; width: 18px; height: 18px; }
.plain-card .show-pw { top: 50%; transform: translateY(-50%); }
.show-pw { position: absolute; right: 0; border: 0; background: none; color: #c7d3f2; font-size: 14px; font-weight: 600; cursor: pointer; }
.plain-card .btn.primary { margin-top: 8px; min-height: 52px; }
.plain-foot { margin-top: 16px; font-size: 14px; color: #b2bedc; }

/* ---------- responsive ---------- */
@media (max-width: 1279px) {
  .tagline { display: none; }
  .workspace.three { grid-template-columns: minmax(0, 1fr) 300px; }
  .workspace.three:has(.side.collapsed) { grid-template-columns: minmax(0, 1fr) 40px; }
  .hero { display: none; }
}
@media (max-width: 1023px) {
  :root { --top-h: 68px; }
  .top { flex-wrap: wrap; padding: 0 12px 0 0; }
  .logo-tab { padding: 0 14px; min-height: var(--top-h); }
  .logo-tab .wordmark-pair { display: none; }
  .top-swap { order: 1; }
  .stage-head { display: block; flex: 1; min-width: 0; }
  .stage-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .account { order: 2; }
  .expand { display: inline-grid; order: 3; }
  .tracker { display: none; order: 5; flex-basis: 100%; overflow-x: auto; padding: 8px 12px 14px; }
  .top.expanded .tracker { display: block; }
  .top.expanded .when-collapsed { display: none; }
  .top.expanded .top-swap { flex-wrap: wrap; }
  .tracker ol { grid-template-columns: repeat(11, 76px); }
  .tracker-label { text-align: left; }
  .workspace.three { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; max-height: none; overflow: visible; padding: 0 24px 32px; }
  .side-handle { display: none; }
  .side.collapsed .guidance-panel { display: grid; }
  .guidance-panel { grid-template-columns: 220px minmax(0, 1fr); align-items: start; }
  .guidance-img { grid-row: span 4; }
}
@media (max-width: 760px) {
  .main { padding: 20px 16px 32px; }
  .panel { padding: 20px 16px; }
  .q-card { padding: 16px; }
  .card-pair, .fields.cols-2, .fields.cols-3 { grid-template-columns: minmax(0, 1fr); }
  .choices .options { grid-template-columns: repeat(min(var(--cols, 1), 2), minmax(0, 1fr)); }
  .radios .options, .stacked .options { grid-template-columns: minmax(0, 1fr); }
  .tiles .options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stacked .opt { min-height: 0; flex-direction: row; align-items: center; }
  .stacked .opt .mark { position: static; order: 3; margin-left: auto; }
  .bar { margin-left: 0; }
  .q-head .pill.summary { display: none; }
  .side { display: none; }
  .foot { grid-template-columns: minmax(0, 1fr) auto; padding: 8px 14px; }
  .foot .mark { display: none; }
  .who { border-left: 0; padding-left: 0; }
  .actions { flex-direction: column-reverse; }
  .find-row { flex-direction: column; }
  .floaters { right: 14px; }
  body.plain { justify-items: center; }
  .dialog-head, .dialog-body, .dialog-actions { padding-left: 16px; padding-right: 16px; }
  .tabs { margin: 0 16px 12px; }
  .answer-card dl div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- analysis screens (Analyse Installation, Analysing Accurate Results) ---------- */
.orbit { position: relative; width: min(340px, 78vw); aspect-ratio: 1; margin: 18px auto 8px; display: grid; place-items: center; }
.orbit img { width: 64%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 4px solid var(--surface); box-shadow: 0 10px 30px rgb(1 12 48 / 0.25); }
.orbit-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); animation: orbit 14s linear infinite; }
.orbit-icon { position: absolute; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--navy); color: var(--cyan); box-shadow: 0 6px 16px rgb(1 12 48 / 0.3); animation: orbit 14s linear infinite reverse; }
.orbit-icon.i1 { left: 10%; top: 8%; } .orbit-icon.i2 { right: 10%; top: 8%; } .orbit-icon.i3 { right: 10%; bottom: 8%; } .orbit-icon.i4 { left: 10%; bottom: 8%; }
@keyframes orbit { to { transform: rotate(360deg); } }
.orbit-caption { text-align: center; font: 600 18px/1.4 var(--font-display); margin-bottom: 18px; }
.running-note { align-items: center; }
.running-note > span:first-of-type { flex: 1; }
.analysing { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; white-space: nowrap; }
.ready-card { display: grid; justify-items: center; gap: 12px; padding: 32px 24px; text-align: center; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.ready-card h1, .ready-card h2 { font-size: 28px; }
.ready-card p { max-width: 60ch; color: var(--muted); }
.ready-tick { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--green-soft); color: var(--green); }
.ready-tick .icon { width: 30px; height: 30px; stroke-width: 2.6; }
.ready-actions { display: grid; gap: 12px; justify-items: center; margin-top: 8px; }
.steps-side { display: grid; gap: 14px; align-content: start; }
.steps-intro { display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--accent-soft); }
.steps-intro span { color: var(--muted); font-size: 14px; }
.steps { display: grid; gap: 0; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.steps li { position: relative; display: flex; gap: 12px; padding: 8px 0; color: var(--faint); font-size: 14px; line-height: 1.35; }
.steps li strong { display: block; font-size: 15px; color: var(--muted); }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 38px; bottom: -6px; width: 2px; background: var(--border); }
.step-dot { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; border: 2px solid var(--control); color: transparent; background: var(--surface); }
.step-dot .icon { width: 15px; height: 15px; stroke-width: 3; }
.steps li.active .step-dot { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
.steps li.active strong, .steps li.done strong { color: var(--text); }
.steps li.done .step-dot { background: var(--green); border-color: var(--green); color: #fff; }
.steps li.done:not(:last-child)::after { background: var(--green); }
.compare { display: grid; grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr); align-items: center; gap: 12px; margin-bottom: 20px; }
.compare-card { display: grid; justify-items: center; gap: 6px; padding: 22px 16px; text-align: center; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.compare-card.now { border-color: var(--accent); }
.compare-tag { padding: 5px 14px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 600; font-size: 14px; }
.compare-card.now .compare-tag { background: var(--cyan); color: var(--navy-deep); }
.compare-value { display: flex; align-items: center; gap: 10px; font: 700 30px/1.1 var(--font-display); }
.compare-value .icon { color: var(--accent); width: 26px; height: 26px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--border); }
.facts li { display: grid; justify-items: center; gap: 2px; font-size: 13px; color: var(--muted); }
.facts strong { font-size: 17px; color: var(--text); }
.facts .icon { color: var(--accent); }
.compare-arrows { display: grid; justify-items: center; gap: 6px; color: var(--accent); }
.compare-arrows .down { transform: rotate(180deg); color: var(--green); }
.stage-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.stage-strip li { display: grid; justify-items: center; gap: 4px; padding: 14px 8px; text-align: center; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.stage-strip strong { font: 700 13px/1.2 var(--font); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text); }
.stage-dot { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--control); color: transparent; }
.stage-dot .icon { width: 15px; height: 15px; stroke-width: 3; }
.stage-strip li.active { border-color: var(--accent); }
.stage-strip li.active .stage-dot { border-color: var(--accent); animation: pulse 1.2s ease-in-out infinite; }
.stage-strip li.done .stage-dot { background: var(--green); border-color: var(--green); color: #fff; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px var(--accent-ring); } }
.center { text-align: center; }
@media (max-width: 760px) {
  .compare { grid-template-columns: minmax(0, 1fr); }
  .compare-arrows { grid-auto-flow: column; justify-content: center; }
  .stage-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- results screens ---------- */
.wide-main { max-width: 1120px; }
.eyebrow-dark { font: 600 12px/1.2 var(--font); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--info-soft); border: 1px solid var(--info-line); }
.chip .icon { color: var(--accent); }
.chip strong { display: block; }
.overall { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; margin: 16px 0; border-radius: var(--radius); border: 1px solid var(--amber-line); background: var(--amber-soft); }
.overall .badge { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--surface); color: var(--amber); }
.overall h2 { font-size: 24px; color: var(--amber); }
.overall .overall-label { font-weight: 600; font-size: 14px; }
.overall.tone-green { border-color: var(--green-line); background: var(--green-soft); }
.overall.tone-green h2, .overall.tone-green .badge { color: var(--green); }
.overall.tone-red { border-color: var(--red-line); background: var(--red-soft); }
.overall.tone-red h2, .overall.tone-red .badge { color: var(--red); }
.overall.tone-neutral { border-color: var(--info-line); background: var(--info-soft); }
.overall.tone-neutral h2, .overall.tone-neutral .badge { color: var(--accent); }
.results-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 16px 0; }
.h-card { display: grid; gap: 8px; align-content: start; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.h-card header { display: flex; align-items: center; gap: 12px; }
.h-card header h3 { font-size: 17px; }
.h-card .h-value { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; font: 700 34px/1.05 var(--font-display); }
.h-card .h-value small { font: 500 16px/1.2 var(--font); color: var(--muted); }
.h-card .h-value.unknown { font-size: 24px; color: var(--muted); }
.h-card p { color: var(--muted); font-size: 15px; }
.h-card .h-note { font-size: 14px; color: var(--faint); }
.notes-box { display: grid; gap: 8px; padding: 16px 18px; margin: 16px 0; border-radius: var(--radius); background: var(--info-soft); border: 1px solid var(--info-line); }
.notes-box h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.notes-box h3 .icon { color: var(--accent); }
.section { margin-top: 28px; }
.section > h2 { font-size: 22px; margin-bottom: 4px; }
.section > .section-sub { color: var(--muted); margin-bottom: 14px; }
.box { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.earn-boxes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.earn { display: grid; gap: 4px; align-content: start; padding: 16px; border-radius: var(--radius-sm); background: var(--well); border-top: 4px solid var(--accent); }
.earn.lost { border-top-color: var(--red); }
.earn.could { border-top-color: var(--green); }
.earn .eyebrow-dark { color: var(--muted); }
.earn .earn-value { font: 700 26px/1.1 var(--font-display); }
.earn .earn-label { font-weight: 600; }
.earn p { font-size: 14px; color: var(--muted); }
.analysis-text { display: grid; gap: 8px; margin-top: 14px; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--navy); color: #e8eeff; }
.analysis-text .eyebrow-dark { color: var(--cyan); }
.analysis-text .fine { color: #a9b6d9; margin: 0; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mini-card { display: grid; gap: 6px; align-content: start; padding: 18px; border-radius: var(--radius-sm); background: var(--well); }
.mini-card h3 { font-size: 16px; }
.mini-card .mini-title { font-weight: 700; font-size: 18px; }
.mini-card p { color: var(--muted); font-size: 15px; }
.needs-list { display: grid; gap: 12px; }
.need { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid var(--border); border-left: 4px solid var(--amber); background: var(--surface); }
.need.tone-red { border-left-color: var(--red); }
.need.tone-green { border-left-color: var(--green); }
.need h3 { font-size: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.need p { color: var(--muted); font-size: 14px; }
.tag { display: inline-block; padding: 3px 9px; border-radius: 999px; font: 700 11px/1.3 var(--font); letter-spacing: 0.08em; text-transform: uppercase; background: var(--amber-soft); color: var(--amber); border: 1px solid var(--amber-line); }
.tag.tone-red { background: var(--red-soft); color: var(--red); border-color: var(--red-line); }
.tag.tone-green { background: var(--green-soft); color: var(--green); border-color: var(--green-line); }
.review { display: grid; gap: 6px; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--well); border: 1px dashed var(--control); }
.review h3 { font-size: 16px; }
.toggle-section { margin-top: 18px; }
.toggle-section > summary { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); font-weight: 700; cursor: pointer; list-style: none; }
.toggle-section > summary::-webkit-details-marker { display: none; }
.toggle-section[open] > summary .icon { transform: rotate(180deg); }
.toggle-section .when-open { display: none; }
.toggle-section[open] .when-open { display: inline; }
.toggle-section[open] .when-closed { display: none; }
.breakdown { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-top: 14px; }
.breakdown .mini-card { background: var(--surface); border: 1px solid var(--border); }
.rows { display: grid; }
.rows > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--border); font-size: 15px; }
.rows > div:first-child { border-top: 0; }
.rows dt { color: var(--muted); }
.rows dd { font-weight: 600; }
.ai-box { display: grid; gap: 10px; }
.ai-box ol { counter-reset: take; display: grid; gap: 8px; }
.ai-box ol li { display: flex; gap: 10px; }
.ai-box ol li::before { counter-increment: take; content: counter(take); display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 13px; }
.report-foot { display: grid; gap: 14px; margin-top: 28px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.report-foot h2 { font-size: 20px; }
.btn small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 3px; }
.btn.back span { display: grid; justify-items: start; }
.bullets { display: grid; gap: 8px; padding-left: 20px; list-style: disc; }
.bullets li::marker { color: var(--accent); }
.bar-list { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: 15px; }
.bar-track { height: 12px; border-radius: 6px; background: var(--well); overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 6px; background: var(--accent); }

/* System Requirements */
.req-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.req-side { display: grid; gap: 14px; position: sticky; top: calc(var(--top-h) + 16px); }
.req { display: grid; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); }
.req + .req { margin-top: 16px; }
.req-head { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px; background: var(--amber-soft); border-left: 5px solid var(--amber); }
.req.tone-red .req-head { background: var(--red-soft); border-left-color: var(--red); }
.req.tone-green .req-head { background: var(--green-soft); border-left-color: var(--green); }
.req-head img { width: 120px; height: 84px; object-fit: cover; border-radius: 10px; }
.req-head h3 { font-size: 19px; margin: 6px 0 2px; }
.req-head p { color: var(--muted); }
.req-body { display: grid; gap: 12px; padding: 16px 18px 18px; }
.req-solution { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.req-solution .q-icon { width: 38px; height: 38px; }
.req-solution strong { font-size: 17px; }
.req-impact { display: grid; gap: 6px; }
.req-impact ul { display: grid; gap: 4px; }
.req-impact li { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; }
.req-impact li .icon { color: var(--green); width: 18px; height: 18px; margin-top: 2px; }
.small-cap { font: 600 11px/1 var(--font); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.add-toggle { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 12px; background: var(--primary); color: var(--primary-ink); font-weight: 700; cursor: pointer; }
.add-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.add-toggle:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.add-toggle .on { display: none; }
.add-toggle:has(input:checked) { background: var(--green-soft); color: var(--green); box-shadow: inset 0 0 0 2px var(--green); }
.add-toggle:has(input:checked) .on { display: inline-flex; align-items: center; gap: 6px; }
.add-toggle:has(input:checked) .off { display: none; }
.outcome { justify-self: start; }
.decline { margin-top: 12px; }
.decline summary { color: var(--muted); text-decoration: underline; cursor: pointer; width: fit-content; }
.decline-box { display: grid; gap: 10px; margin-top: 10px; padding: 16px; border-radius: var(--radius-sm); background: var(--well); }
.advice { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 14px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.advice > div { flex: 1; }
.advice-number { font: 700 20px/1.2 var(--font-display); }
.q-icon.red { background: var(--red-soft); color: var(--red); }

/* GridGuard Care offer */
.band-heading { padding: 10px 16px; margin-bottom: 14px; border-radius: var(--radius-sm); background: var(--navy); color: var(--cyan); font: 700 13px/1.2 var(--font); letter-spacing: 0.14em; text-transform: uppercase; }
.tile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.tile h3 { font-size: 17px; }
.tile p { color: var(--muted); font-size: 15px; }
.tile.fault { grid-column: 1 / -1; flex-wrap: wrap; border-color: var(--red-line); }
.tile.fault > div { flex: 1; min-width: 220px; }
.tile.fault h3 { color: var(--red); }
.strong-line { color: var(--text) !important; font-weight: 600; margin-top: 4px; }
.toggle-btn { position: relative; display: inline-flex; align-self: center; min-height: 46px; padding: 0 18px; align-items: center; border-radius: 12px; border: 1px solid var(--control); background: var(--surface); font-weight: 700; cursor: pointer; }
.toggle-btn input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-btn .off, .toggle-btn .on { display: inline-flex; align-items: center; gap: 8px; }
.toggle-btn .on { display: none; color: var(--green); }
.toggle-btn:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.toggle-btn:has(input:checked) .on { display: inline-flex; }
.toggle-btn:has(input:checked) .off { display: none; }
.toggle-btn:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.offer { display: grid; gap: 12px; margin-top: 18px; padding: 26px; border-radius: 20px; background: linear-gradient(160deg, #032070, var(--navy) 55%, var(--navy-deep)); color: #fff; }
.offer-tag, .price-tag { font: 700 12px/1.2 var(--font); letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); }
.price-tag.ok { color: var(--green); }
.offer h2 { font-size: 34px; }
.offer > p { color: #c7d3f2; }
.value-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.value-strip li { padding: 8px 14px; border-radius: 999px; background: rgb(255 255 255 / 0.08); border: 1px solid rgb(255 255 255 / 0.16); color: #dbe4ff; }
.value-strip strong { color: var(--cyan); }
.price-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.price { padding: 16px; border-radius: var(--radius-sm); background: rgb(255 255 255 / 0.07); border: 1px solid rgb(255 255 255 / 0.14); }
.price .muted { color: #b2bedc; font-size: 14px; }
.price-value { font: 700 36px/1.1 var(--font-display); }
.price-value span { font-size: 18px; font-weight: 600; color: #c7d3f2; }
.offer-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.offer .btn.ghost { background: transparent; color: #fff; border-color: rgb(255 255 255 / 0.4); }
.offer .notice { color: var(--text); }
.offer .notice a { color: var(--accent); font-weight: 600; }
.important { margin-top: 18px; padding: 18px 20px; border-radius: var(--radius); background: var(--well); }
.important h2 { font-size: 17px; margin-bottom: 8px; }

/* finished */
.activation { display: grid; gap: 14px; margin-bottom: 20px; }
.activation h1 { font-size: 34px; }
.activation h1 span { color: var(--accent); }
.activation-steps { display: grid; gap: 10px; }
.activation-steps li { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); opacity: 0.45; transition: opacity 300ms; }
.activation-steps li > div { flex: 1; }
.activation-steps h2 { font-size: 17px; }
.activation-steps p { color: var(--muted); font-size: 15px; }
.activation-steps li.active, .activation-steps li.done { opacity: 1; }
.activation-steps li.done .step-dot { background: var(--green); border-color: var(--green); color: #fff; }
.log { display: grid; gap: 6px; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--navy-deep); color: #cfe0ff; font: 400 14px/1.5 ui-monospace, Consolas, monospace; }
.log-title { color: var(--cyan); font-weight: 600; }
.status-card { display: grid; gap: 6px; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); }
.setup-time { display: flex; justify-content: space-between; padding-top: 8px; border-top: 1px solid var(--border); }
.summary-card { display: grid; justify-items: center; gap: 12px; padding: 32px 24px; text-align: center; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.summary-card h1 { font-size: 30px; }
.summary-list { width: min(520px, 100%); text-align: left; }
.summary-list div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-top: 1px solid var(--border); }
.summary-list dt { color: var(--muted); }
.summary-list dd { font-weight: 600; }
.ready-actions.row { grid-auto-flow: column; }
@media (max-width: 1023px) {
  .req-layout { grid-template-columns: minmax(0, 1fr); }
  .req-side { position: static; }
}
@media (max-width: 760px) {
  .results-grid, .two-col, .earn-boxes, .tile-grid, .price-row, .offer-actions { grid-template-columns: minmax(0, 1fr); }
  .need { grid-template-columns: minmax(0, 1fr); }
  .req-head { grid-template-columns: minmax(0, 1fr); }
  .req-head img { width: 100%; height: 140px; }
  .rows > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .bar-row { grid-template-columns: minmax(0, 1fr) auto; }
  .bar-row .bar-track { grid-column: 1 / -1; grid-row: 2; }
  .ready-actions.row { grid-auto-flow: row; }
  .summary-list div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* results: details */
.h-card .h-value.tone-worse { color: var(--red); }
.h-card .h-value.tone-better { color: var(--green); }
td.tone-red { color: var(--red); font-weight: 700; }
td.tone-green { color: var(--green); font-weight: 700; }
.table tr.emphasis th, .table tr.emphasis td { font-weight: 700; background: var(--accent-soft); }
.table tbody th { padding: 12px 14px; text-align: left; font-weight: 500; border-top: 1px solid var(--border); background: none; white-space: normal; }
.mini-title { display: flex; align-items: center; gap: 8px; }
.mini-card h3 { display: flex; align-items: center; gap: 8px; }
.mini-card h3 .icon { width: 18px; height: 18px; color: var(--accent); }
.mini-card.tone-red { border-top: 4px solid var(--red); }
.mini-card.tone-green { border-top: 4px solid var(--green); }
.mini-card.tone-neutral { border-top: 4px solid var(--accent); }
.figure-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 6px; }
.figure-list li { display: grid; padding: 10px 12px; border-radius: var(--radius-xs); background: var(--surface); }
.figure-list strong { font: 700 20px/1.2 var(--font-display); }
.figure-list span { font-size: 13px; color: var(--muted); }
.section-h { font-size: 22px; margin: 18px 0 0; }
.rows dt { display: flex; align-items: center; gap: 8px; }
.rows dt .icon { width: 18px; height: 18px; color: var(--accent); }
.start-physical { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.start-physical h2 { font-size: 19px; }
.next-step { border: 1px solid rgb(93 217 254 / 0.25); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 16px; padding: 16px 18px; border-radius: var(--radius); background: var(--navy); color: #fff; }
.next-step p { color: #c7d3f2; }
.next-step strong { color: #fff; }
.inline-form { margin: 0; }
.report-foot .actions { margin-top: 4px; flex-wrap: wrap; }
.update-dialog { width: min(640px, calc(100vw - 32px)); }
.update-head { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 20px; background: var(--amber-soft); border-bottom: 1px solid var(--border); }
.update-head.tone-red { background: var(--red-soft); }
.update-head.tone-green { background: var(--green-soft); }
.update-head img { width: 120px; height: 84px; object-fit: cover; border-radius: 10px; }
.update-head h2 { font-size: 21px; margin: 6px 0 2px; }
.update-head p { color: var(--muted); font-size: 14px; }
.update-dialog .dialog-actions { align-items: center; }
.req.chosen { box-shadow: 0 0 0 2px var(--green); }
.accepted-head { display: grid; justify-items: center; gap: 10px; text-align: center; margin-bottom: 8px; }
.accepted-head h1 { font-size: clamp(28px, 3vw, 38px); }
.accepted-head h1 span { color: var(--green); }
.categories { display: grid; gap: 12px; margin-top: 14px; }
.category { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 16px; align-items: center; padding: 16px; border-radius: var(--radius-sm); background: var(--well); }
.category h3 { font-size: 18px; }
.category img { width: 180px; height: 120px; object-fit: cover; border-radius: 10px; }
.small-cap.ok { color: var(--green); margin: 4px 0 6px; }
.ticks { display: grid; gap: 4px; margin-top: 8px; }
.ticks li { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.ticks .icon { width: 18px; height: 18px; color: var(--green); }
.next-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 14px 0 10px; }
.next-steps li { display: flex; gap: 12px; align-items: flex-start; }
.num-dot { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--navy); color: var(--cyan); font: 700 14px/1 var(--font-display); }
.includes { display: grid; gap: 10px; margin-top: 12px; }
.include { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 14px 10px 10px; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.include img { width: 72px; height: 52px; object-fit: cover; border-radius: 8px; }
.include div { display: grid; }
.objective { display: grid; gap: 6px; padding: 18px 20px; border-radius: var(--radius); background: var(--navy); color: #e3eaff; }
.objective h2 { display: flex; align-items: center; gap: 8px; font-size: 18px; color: #fff; }
.objective .icon { color: var(--cyan); }
.section h2 .icon { display: inline-block; vertical-align: -3px; color: var(--accent); }
@media (max-width: 760px) {
  .figure-list, .next-steps { grid-template-columns: minmax(0, 1fr); }
  .category { grid-template-columns: minmax(0, 1fr); }
  .category img { width: 100%; height: 140px; }
  .update-head { grid-template-columns: minmax(0, 1fr) auto; }
  .update-head img { display: none; }
}
.add-toggle .off { display: inline-flex; align-items: center; gap: 8px; }
.req-side .btn { width: 100%; }
.needs-list + .review { margin-top: 12px; }
.panel .reveal:not([hidden]) { margin-top: 14px; }
@media (max-width: 480px) {
  .when-collapsed { display: none; }
}
.status-line { margin-top: 8px; text-align: right; font-size: 14px; color: var(--muted); }
