/* =====================================================================
   Switch Your Energy quote engine stylesheet
   One file, no framework. Tokens are the whole theme: a partner changes
   --accent (and optionally the radius scale or body font) and everything
   follows. Breakpoints are container queries on .sye because inside an
   iframe the viewport tells us nothing about the space we have.
   Design system: https://claude.ai/artifact/9KvaooXwBUpJEUPgjCKZqs
   ===================================================================== */

:root {
  --ink: #15181E; --ink-2: #3A414D; --muted: #5F6876; --faint: #8B94A3;
  --paper: #FFFFFF; --surface: #F5F6F8; --surface-2: #ECEEF2; --line: #E3E6EB; --line-2: #CBD1DA;
  --accent: #15181E; --accent-ink: #FFFFFF;
  --accent-soft: color-mix(in srgb, var(--accent) 7%, var(--paper));
  --accent-mid: color-mix(in srgb, var(--accent) 18%, var(--paper));
  --accent-ring: color-mix(in srgb, var(--accent) 30%, transparent);
  --elec: #E9A020; --elec-soft: #FFF3DC; --elec-ink: #7A4E00;
  --gas: #3C8AE6; --gas-soft: #E6F0FC; --gas-ink: #174A85;
  --ok: #1E9E62; --ok-soft: #E3F5EB; --warn: #D8850A; --warn-soft: #FDF1DC; --bad: #D64545; --bad-soft: #FBE7E7;
  --shadow-1: 0 1px 2px rgba(20,24,30,.05), 0 1px 3px rgba(20,24,30,.06);
  --shadow-2: 0 6px 18px rgba(20,24,30,.07), 0 2px 6px rgba(20,24,30,.05);
  --shadow-3: 0 18px 44px rgba(20,24,30,.11), 0 6px 14px rgba(20,24,30,.06);
  --radius: 12px;
  --r-s: calc(var(--radius) * .67); --r-m: var(--radius); --r-l: calc(var(--radius) * 1.33); --r-xl: calc(var(--radius) * 1.83);
  --ease: cubic-bezier(.16, 1, .3, 1); --ease-io: cubic-bezier(.4, 0, .2, 1);
  --font-display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}
/* Dark set is opt-in (?theme=dark): an iframe cannot see its host's background, so the OS preference
   must not decide it. */
html[data-theme="dark"] {
  --ink: #F3F5F8; --ink-2: #C9CFD8; --muted: #9AA3B2; --faint: #6F7886;
  --paper: #0F1218; --surface: #161A21; --surface-2: #1E232C; --line: #262C37; --line-2: #354050;
  --accent: #F3F5F8; --accent-ink: #0F1218;
  --elec: #F4B040; --elec-soft: #3A2E12; --elec-ink: #F8D48A;
  --gas: #5EA2F5; --gas-soft: #132640; --gas-ink: #A9CCFA;
  --ok: #3BBE7E; --ok-soft: #10301F; --warn: #E9A23B; --warn-soft: #3A2A0F; --bad: #E86A6A; --bad-soft: #3A1A1A;
  --shadow-1: 0 1px 2px rgba(0,0,0,.3); --shadow-2: 0 6px 18px rgba(0,0,0,.35); --shadow-3: 0 18px 44px rgba(0,0,0,.5);
  color-scheme: dark;
}
html[data-font="inherit"] { --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
svg.i {
  width: 1.25em; height: 1.25em; display: inline-block; vertical-align: -0.22em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); font-size: .92em; letter-spacing: .03em; }

/* ---------- page and engine root ---------- */
.sye-page { padding: 8px 16px 28px; }
.sye {
  container: sye / inline-size;
  max-width: 920px; margin: 0 auto;
  font-family: var(--font-body); color: var(--ink);
}
.sye h1, .sye h2, .sye h3 { font-family: var(--font-display); letter-spacing: -.02em; text-wrap: balance; margin: 0; }
.sye .headline { font-size: 30px; line-height: 1.12; font-weight: 650; font-variation-settings: "opsz" 40; outline: none; }
.sye .sub { color: var(--muted); margin: 8px 0 0; max-width: 60ch; font-size: 15.5px; }
.sye .sub b, .sye .note b { color: var(--ink); font-weight: 600; }
.sye p { margin: 0; }
.sye .h2 { font-size: 17px; font-weight: 650; font-family: var(--font-display); letter-spacing: -.01em; }

/* ---------- progress header ---------- */
.prog { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: end; margin-bottom: 22px; }
.prog .where { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.prog .k { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.prog .name { font-family: var(--font-display); font-weight: 650; font-size: 17px; letter-spacing: -.01em; }
.prog .help { color: var(--muted); font-size: 13px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.prog .help b { color: var(--ink); font-weight: 600; }
.track { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.track button { appearance: none; background: none; border: 0; padding: 0; text-align: left; display: grid; gap: 8px; cursor: default; color: inherit; }
.track button.can { cursor: pointer; }
.track .bar { height: 4px; border-radius: 3px; background: var(--surface-2); overflow: hidden; position: relative; }
.track .bar::after { content: ""; position: absolute; inset: 0; background: var(--accent); border-radius: 3px; transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.track .done .bar::after, .track .cur .bar::after { transform: scaleX(1); }
.track .cur .bar::after { opacity: .55; }
.track .lbl { font-size: 12.5px; color: var(--faint); font-weight: 500; transition: color .2s; }
.track .done .lbl { color: var(--ink-2); }
.track .cur .lbl { color: var(--ink); font-weight: 600; }
.track button.can:hover .lbl { color: var(--ink); }

/* ---------- two column body ---------- */
.body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.main { min-width: 0; }
.aside { display: grid; gap: 14px; }
@container sye (min-width: 780px) {
  .body { grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; }
  .body.full { grid-template-columns: minmax(0, 1fr); }
  .aside.sticky { position: sticky; top: 16px; }
  .sye .headline { font-size: 36px; }
}
@container sye (max-width: 560px) {
  .prog .help { display: none; }
  .track .lbl { display: none; }
  .track button { gap: 0; }
  .sye .headline { font-size: 26px; }
}

/* ---------- stage transitions ---------- */
.stage { position: relative; transition: height .38s var(--ease); }
.stage > .view { animation: viewIn .42s var(--ease) both; }
.stage[data-dir="back"] > .view { animation-name: viewInBack; }
@keyframes viewIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes viewInBack { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .5s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.stagger > * { animation: rise .5s var(--ease) both; }
.stagger > *:nth-child(1) { animation-delay: 0ms; } .stagger > *:nth-child(2) { animation-delay: 45ms; } .stagger > *:nth-child(3) { animation-delay: 90ms; }
.stagger > *:nth-child(4) { animation-delay: 135ms; } .stagger > *:nth-child(5) { animation-delay: 180ms; } .stagger > *:nth-child(6) { animation-delay: 225ms; }
.stagger > *:nth-child(7) { animation-delay: 270ms; } .stagger > *:nth-child(8) { animation-delay: 315ms; } .stagger > *:nth-child(9) { animation-delay: 360ms; }
.stagger > *:nth-child(10) { animation-delay: 405ms; } .stagger > *:nth-child(n+11) { animation-delay: 440ms; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- spacing helpers ---------- */
.sect { display: grid; gap: 18px; margin-top: 26px; }
.stack { display: grid; gap: 12px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.count { color: var(--muted); font-size: 13.5px; }
.count b { color: var(--ink); font-weight: 600; }

/* what the customer pays now, and the saving on each deal */
.saving { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px 16px; border-radius: var(--r-l); background: var(--ok-soft); font-size: 14px; }
.saving .lead-icon { color: var(--ok); display: inline-flex; flex: none; }
.saving .lead-icon .i { width: 20px; height: 20px; }
.saving > span:not(.lead-icon) { flex: 1 1 280px; }
.saving .rates-form { flex: 1 1 320px; display: grid; gap: 8px; }
.saving .rates-form .control { max-width: 180px; }
.saving .rates-form .control input { height: 40px; }
.plan-ready { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 14px 16px; border-radius: var(--r-l); background: var(--ok-soft); font-size: 14.5px; margin-top: 16px; }
.plan-ready .lead-icon { color: var(--ok); display: inline-flex; flex: none; }
.plan-ready .lead-icon .i { width: 22px; height: 22px; stroke-width: 2.2; }
.plan-ready > span:not(.lead-icon) { flex: 1 1 300px; }
.plan-ready .btn { margin-left: auto; }
.offer .save { font-size: 13px; font-weight: 650; color: var(--ok); display: inline-flex; gap: 6px; align-items: center; }
.offer .save .i { width: 15px; height: 15px; }
.offer .save.more { color: var(--muted); font-weight: 500; }
.hint.bad { color: var(--bad); }

/* ---------- fields ---------- */
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 14px; }
.field .hint { color: var(--muted); font-size: 13px; }
.field .err, .validation-message { color: var(--bad); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.field .err:empty, .validation-message:empty { display: none; }
.control { position: relative; display: flex; align-items: center; }
.control .lead { position: absolute; left: 14px; color: var(--faint); pointer-events: none; display: inline-flex; }
.control .unit { position: absolute; right: 14px; color: var(--faint); font-size: 14px; pointer-events: none; }
.control input, .control select {
  width: 100%; height: 52px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: var(--r-m);
  background: var(--paper); color: var(--ink); font-size: 16px; appearance: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.control input.mono { font-family: var(--font-mono); letter-spacing: .04em; }
.control.has-lead input { padding-left: 44px; }
.control.has-unit input { padding-right: 96px; }
.control input::placeholder { color: var(--faint); }
.control input:hover { border-color: color-mix(in srgb, var(--line-2) 40%, var(--muted)); }
.control input:focus, .control select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
.control input:disabled { background: var(--surface); color: var(--muted); }
.control input.invalid, .field.bad .control input { border-color: var(--bad); }
.control input.valid.modified:not([type=checkbox]) { border-color: color-mix(in srgb, var(--ok) 55%, var(--line-2)); }
.field.ok .control::after, .control.ok::after {
  content: ""; position: absolute; right: 14px; width: 20px; height: 20px; border-radius: 50%; background: var(--ok);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='m6 12 4 4 8-8'/></svg>") center/14px no-repeat, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='m6 12 4 4 8-8'/></svg>") center/14px no-repeat, linear-gradient(#000 0 0);
  mask-composite: exclude; animation: pop .35s var(--ease) both;
}
.grid2 { display: grid; grid-template-columns: 1fr; gap: 14px; }
@container sye (min-width: 560px) { .grid2 { grid-template-columns: 1fr 1fr; } }
input[type="checkbox"] { accent-color: var(--accent); }

/* ---------- consent + notes ---------- */
.consent { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); font-size: 14px; color: var(--ink-2); cursor: pointer; }
.consent input { margin: 3px 0 0; width: 18px; height: 18px; flex: none; }
.consent .link { color: var(--ink); }
.note { color: var(--muted); font-size: 13.5px; display: flex; gap: 8px; align-items: flex-start; }
.note > .i { margin-top: 2px; color: var(--faint); }
.small { font-size: 13px; color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 22px; border-radius: 999px;
  border: 1.5px solid transparent; font-weight: 600; font-size: 15.5px; letter-spacing: -.005em; white-space: nowrap; text-decoration: none;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s, color .18s, border-color .18s, opacity .18s;
}
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--accent) 55%, transparent); }
.btn.primary:active { transform: translateY(0) scale(.985); box-shadow: none; }
.btn:disabled, .btn[disabled] { opacity: .42; transform: none !important; box-shadow: none !important; cursor: not-allowed; }
.btn.secondary { background: var(--paper); border-color: var(--line-2); color: var(--ink); }
.btn.secondary:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink-2); padding: 0 12px; height: 40px; }
.btn.ghost:hover { color: var(--ink); background: var(--surface); }
.btn.danger { background: var(--bad-soft); color: var(--bad); }
.btn.sm { height: 38px; padding: 0 14px; font-size: 14px; }
.btn.xs { height: 32px; padding: 0 12px; font-size: 13px; gap: 6px; }
.btn .i { width: 1.15em; height: 1.15em; }
.btn.wide { width: 100%; }
.link { background: none; border: 0; padding: 0; color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; cursor: pointer; font: inherit; font-weight: 600; }
.link:hover { text-decoration-color: var(--ink); }
.link.muted { color: var(--muted); font-weight: 500; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid color-mix(in srgb, currentColor 30%, transparent); border-top-color: currentColor; animation: rot .8s linear infinite; display: inline-block; flex: none; }
.spin.lg { width: 32px; height: 32px; border-width: 3px; }
@keyframes rot { to { transform: rotate(360deg); } }

/* ---------- action row ---------- */
.actions { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.actions .r { display: flex; gap: 10px; align-items: center; margin-left: auto; }
@container sye (max-width: 560px) {
  .actions { position: sticky; bottom: 0; background: linear-gradient(to top, var(--paper) 78%, transparent); border-top: 0; padding: 18px 0 12px; margin-top: 22px; z-index: 5; }
  .actions .r { width: 100%; flex-direction: column-reverse; align-items: stretch; }
  .actions .r .btn { width: 100%; }
  .actions .back { display: none; }
}

/* ---------- cards ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); padding: 18px 18px 16px; }
.card.soft { background: var(--surface); border-color: transparent; }
.helper h3 { font-size: 15px; font-weight: 650; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.helper p { color: var(--ink-2); font-size: 13.5px; line-height: 1.55; }
.helper p + p { margin-top: 8px; }
.helper .bill { margin: 10px 0 6px; width: 100%; max-width: 280px; height: auto; display: block; border-radius: 8px; } /* natural size of the 280 x 96 drawing, so the sample text never scales up on narrow screens */
.help-call { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--r-l); background: var(--surface); }
.help-call .av { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-mid); color: var(--accent); display: grid; place-items: center; flex: none; }
.help-call .av .i { width: 20px; height: 20px; }
.help-call b { display: block; font-weight: 650; font-size: 14px; }
.help-call span { color: var(--muted); font-size: 13px; }

/* ---------- notices ---------- */
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-m); font-size: 14px; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); }
.notice > .i { flex: none; margin-top: 2px; }
.notice > div { min-width: 0; }
.notice--warning { background: var(--warn-soft); border-color: transparent; }
.notice--warning > .i { color: var(--warn); }
.notice--error { background: var(--bad-soft); border-color: transparent; }
.notice--error > .i { color: var(--bad); }
.notice--success { background: var(--ok-soft); border-color: transparent; }
.notice--success > .i { color: var(--ok); }
.notice--info > .i { color: var(--muted); }

/* ---------- summary rail ---------- */
.summary { border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; background: var(--paper); }
.summary .hd { padding: 12px 16px; background: var(--surface); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 650; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }
.summary .hd span { letter-spacing: 0; text-transform: none; font-weight: 500; }
.summary .it { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 14px; }
.summary .it:first-of-type { border-top: 0; }
.summary .it .t { flex: 1; min-width: 0; }
.summary .it .t b { display: block; font-weight: 600; overflow-wrap: anywhere; line-height: 1.3; }
.summary .it .t span { color: var(--muted); font-size: 13px; }
.summary .it .edit { color: var(--muted); font-size: 13px; font-weight: 500; background: none; border: 0; padding: 4px 6px; border-radius: 6px; }
.summary .it .edit:hover { color: var(--ink); background: var(--surface); }
.summary .it .p { font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; font-size: 15px; }
.summary .tot { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px; border-top: 1px solid var(--line); background: var(--accent-soft); }
.summary .tot b { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.summary .tot b small { font: 500 13px var(--font-body); color: var(--muted); letter-spacing: 0; }
.summary .tot span { color: var(--muted); font-size: 13px; }
.summary .foot { padding: 12px 16px 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.summary .foot .note { font-size: 12.5px; }
.mini-sum { display: none; }
@container sye (max-width: 779px) {
  .aside .summary { display: none; }
  .mini-sum { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: -8px 0 18px; padding: 10px 12px; border-radius: var(--r-m); background: var(--surface); font-size: 13px; color: var(--ink-2); }
  .mini-sum .chip { background: var(--paper); }
}

/* ---------- fuel tiles, chips ---------- */
.fuel { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--surface-2); color: var(--ink-2); }
.fuel .i { width: 21px; height: 21px; stroke-width: 1.9; }
.fuel.elec { background: var(--elec-soft); color: var(--elec); }
.fuel.gas { background: var(--gas-soft); color: var(--gas); }
.fuel.sm { width: 30px; height: 30px; border-radius: 9px; }
.fuel.sm .i { width: 16px; height: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.chip .i { width: 14px; height: 14px; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.elec { background: var(--elec-soft); color: var(--elec-ink); }
.chip.gas { background: var(--gas-soft); color: var(--gas-ink); }
.chip.accent { background: var(--accent-soft); color: var(--accent); }
.ok-badge { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 600; font-size: 13px; }
.found { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-size: 12.5px; font-weight: 600; background: var(--ok-soft); padding: 3px 9px; border-radius: 999px; }
.found .i { width: 13px; height: 13px; stroke-width: 2.2; }

/* ---------- list rows ---------- */
.list { display: grid; gap: 10px; }
.rowcard {
  display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--paper);
  transition: border-color .18s, box-shadow .2s var(--ease), transform .2s var(--ease); text-align: left; width: 100%; color: inherit;
}
.rowcard .t { flex: 1; min-width: 0; }
.rowcard .t b { display: block; font-weight: 600; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.rowcard .t .m { color: var(--muted); font-size: 13.5px; margin-top: 3px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.rowcard.added { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
.rowcard.pick { cursor: pointer; }
@media (hover: hover) { .rowcard.pick:hover { border-color: var(--line-2); box-shadow: var(--shadow-2); transform: translateY(-1px); } }
.rowcard .go { color: var(--faint); }
.rowcard.pick:hover .go { color: var(--ink); }
.rowcard.disabled { opacity: .6; }
.mine .rowcard { background: var(--surface); border-color: transparent; }
/* confirmation strip under the results heading once a meter is on the quote: the way on without scrolling to the foot of the list */
.added-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px 16px; border-radius: var(--r-l); background: var(--ok-soft); font-size: 14px; }
.added-bar > .i { color: var(--ok); flex: none; }
.added-bar .btn { margin-left: auto; }
.list-filter { max-width: 420px; }
/* supplies grouped by building: the site row opens to show its electricity and gas together */
.site .sitehead { width: 100%; text-align: left; }
.site .sitehead .tiles { display: flex; gap: 4px; flex: none; }
.site .sitehead > .i { color: var(--faint); flex: none; width: 18px; height: 18px; }
.site-meters { margin: 8px 0 4px 20px; padding-left: 14px; border-left: 2px solid var(--line); display: grid; gap: 10px; }
.mine .rm { background: none; border: 0; color: var(--faint); padding: 8px; border-radius: 8px; display: grid; place-items: center; }
.mine .rm:hover { color: var(--bad); background: var(--bad-soft); }
.mine .rm .i { width: 18px; height: 18px; }
.mine .confirm-rm { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--ink-2); }

/* ---------- inline confirm panel ---------- */
.confirm { border: 1.5px solid var(--accent); border-radius: var(--r-l); padding: 20px; background: var(--paper); box-shadow: var(--shadow-2); display: grid; gap: 18px; animation: rise .4s var(--ease) both; }
.confirm h3 { font-size: 18px; font-weight: 650; display: flex; align-items: center; gap: 10px; }
.pair { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: 999px; background: var(--paper);
  font-weight: 600; font-size: 14px; color: var(--ink-2); transition: all .16s var(--ease);
}
.opt:hover { border-color: var(--ink); }
.opt[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.opt .i { width: 16px; height: 16px; }

/* ---------- skeleton / loading ---------- */
.skel { display: grid; gap: 10px; }
.skel div { height: 70px; border-radius: var(--r-l); background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%); background-size: 200% 100%; animation: shimmer 1.4s ease-in-out infinite; }
.skel div:nth-child(2) { opacity: .75; } .skel div:nth-child(3) { opacity: .5; }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.loading { display: grid; place-items: center; gap: 18px; padding: 48px 16px; text-align: center; }
.loading .tiles { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; max-width: 420px; }
@keyframes tileIn { from { opacity: 0; transform: translateY(8px) scale(.9); } to { opacity: 1; transform: none; } }
.loading h3 { font-size: 20px; font-weight: 650; }
.loading p { color: var(--muted); }
.loading .barline { width: 220px; height: 4px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.loading .barline i { display: block; height: 100%; width: 40%; background: var(--accent); border-radius: 3px; animation: slideBar 1.4s var(--ease-io) infinite; }
@keyframes slideBar { 0% { transform: translateX(-120%); } 100% { transform: translateX(320%); } }
.centered { display: grid; place-items: center; gap: 12px; padding: 28px 16px; text-align: center; color: var(--muted); }

/* ---------- company card ---------- */
.sugg { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 650; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.kinds { margin: 2px 0 6px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@container sye (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.stack.tight { gap: 8px; }
.opt-label { font-weight: 500; color: var(--muted); }
.person .h3 { font-size: 17px; font-weight: 650; }
.person .h4 { font-size: 14px; font-weight: 650; margin-top: 4px; }
.addr { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--paper); }
.addr.bad { border-color: var(--bad); }
.addr-head { display: flex; justify-content: space-between; align-items: center; }
.addr .k { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 650; }
.co-card { border: 1px solid var(--line); border-radius: var(--r-l); padding: 18px 20px; display: grid; gap: 14px; animation: rise .4s var(--ease) both; }
.co-card .top { display: flex; gap: 14px; align-items: flex-start; }
.co-card .co-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.co-card h3 { font-size: 19px; font-weight: 650; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; font-size: 14px; }
@container sye (max-width: 480px) { .kv { grid-template-columns: 1fr; } }
.kv div span { display: block; color: var(--muted); font-size: 12.5px; }
.kv div b { font-weight: 600; }

/* ---------- prices ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 2px; }
@container sye (max-width: 620px) { .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; } .tabs::-webkit-scrollbar { display: none; } }
.tab {
  display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px 0 8px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper);
  font-weight: 600; font-size: 14px; color: var(--ink-2); white-space: nowrap; transition: all .18s var(--ease);
}
.tab[aria-selected="true"] { border-color: var(--ink); color: var(--ink); box-shadow: var(--shadow-1); }
.tab .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.tab .dot.on { background: var(--ok); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters .sep { width: 1px; height: 22px; background: var(--line); }
.fchip { height: 34px; padding: 0 13px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--paper); font-size: 13.5px; font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; transition: all .16s; }
.fchip:hover { border-color: var(--ink); }
.fchip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.fchip .i { width: 15px; height: 15px; }

.offer {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "logo who price" "logo rates price" "logo more more"; gap: 4px 14px; align-items: center;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--paper); position: relative;
  transition: border-color .18s, box-shadow .22s var(--ease), transform .22s var(--ease), opacity .25s;
}
@media (hover: hover) { .offer:hover { border-color: var(--line-2); box-shadow: var(--shadow-2); transform: translateY(-2px); } }
.offer.rec { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.offer.chosen { border-color: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.offer.dim { opacity: .55; }
.offer .logo { grid-area: logo; width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line); padding: 6px; align-self: start; }
.offer .logo img, .contract .logo img, .loading .tiles .logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.monogram { font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: -.02em; color: var(--ink-2); background: var(--surface-2); border-radius: 10px; width: 100%; height: 100%; display: grid; place-items: center; }
.loading .tiles .logo { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line); padding: 5px; animation: tileIn .5s var(--ease) both; overflow: hidden; }
.loading .tiles .logo img { width: 100%; height: 100%; }
.loading .tiles .logo .monogram { font-size: 12px; border-radius: 8px; }
.offer .who { grid-area: who; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; min-width: 0; }
.offer .who b { font-weight: 650; font-size: 15.5px; }
.offer .rates { grid-area: rates; color: var(--muted); font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.offer .rates span b { color: var(--ink-2); font-weight: 600; }
.offer .price { grid-area: price; text-align: right; display: grid; gap: 6px; justify-items: end; }
.offer .price .amt { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.offer .price .amt small { font-family: var(--font-body); font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 2px; }
.offer .price .mo { color: var(--muted); font-size: 12.5px; }
.offer .more { grid-area: more; display: flex; gap: 14px; align-items: center; margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 13px; flex-wrap: wrap; }
.offer .more .detail { color: var(--muted); display: none; gap: 6px 18px; flex-wrap: wrap; }
.offer .more .detail b { color: var(--ink-2); font-weight: 600; }
.offer.open .more .detail { display: flex; animation: rise .3s var(--ease) both; }
.offer .more .toggle { margin-left: auto; }
.recbadge, .chosenbadge { position: absolute; top: -11px; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.recbadge { left: 18px; background: var(--accent); color: var(--accent-ink); }
.chosenbadge { right: 18px; background: var(--ok); color: #fff; }
.recbadge .i, .chosenbadge .i { width: 12px; height: 12px; stroke-width: 2.2; }
@container sye (max-width: 620px) {
  .offer { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "logo who" "logo rates" "price price" "more more"; gap: 6px 12px; padding: 14px; }
  .offer .logo { width: 44px; height: 44px; border-radius: 12px; }
  .offer .price { justify-items: stretch; grid-template-columns: 1fr auto; align-items: center; margin-top: 8px; }
  .offer .price .amt, .offer .price .mo { text-align: left; }
  .offer .price .btn { grid-column: 2; grid-row: 1 / 3; }
}

/* ---------- switch step ---------- */
.choice { display: grid; grid-template-columns: 1fr; gap: 14px; }
@container sye (min-width: 620px) { .choice { grid-template-columns: 1fr 1fr; } }
.choice > button {
  text-align: left; display: grid; gap: 12px; padding: 22px; border: 1.5px solid var(--line); border-radius: var(--r-xl); background: var(--paper); color: inherit;
  transition: all .2s var(--ease); position: relative; align-content: start;
}
.choice > button:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.choice > button:disabled { opacity: .5; transform: none; box-shadow: none; cursor: not-allowed; }
.choice .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--surface); display: grid; place-items: center; color: var(--ink); }
.choice .ic .i { width: 22px; height: 22px; }
.choice h3 { font-size: 19px; font-weight: 650; }
.choice p { color: var(--ink-2); font-size: 14px; }
.choice ul { margin: 2px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; color: var(--muted); font-size: 13.5px; }
.choice li { display: flex; gap: 8px; align-items: center; }
.choice li .i { color: var(--ok); width: 15px; height: 15px; stroke-width: 2.2; }
.choice .tag { position: absolute; top: 16px; right: 16px; }
.code { display: flex; gap: 8px; }
.code input { width: 46px; height: 56px; text-align: center; font-family: var(--font-mono); font-size: 22px; padding: 0; border: 1.5px solid var(--line-2); border-radius: var(--r-m); background: var(--paper); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.code input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
.code input.fill { border-color: var(--ink); }
.verified { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--r-l); background: var(--ok-soft); color: var(--ok); font-weight: 600; overflow-wrap: anywhere; }
.verified .ck { width: 28px; height: 28px; border-radius: 50%; background: var(--ok); display: grid; place-items: center; color: #fff; flex: none; }
.verified .ck .i { width: 16px; height: 16px; stroke-width: 2.6; stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw .5s .15s var(--ease) forwards; }
.contract { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-l); }
.contract.signed { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
.contract .t { flex: 1; min-width: 0; }
.contract .t b { display: block; font-weight: 600; }
.contract .t span { color: var(--muted); font-size: 13.5px; }
.contract .logo { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); flex: none; }
.contract .logo .i { width: 20px; height: 20px; color: var(--ink-2); }
.contract .logo { padding: 5px; background: var(--paper); border: 1px solid var(--line); }

/* embedded signing */
.embedded-signing { display: flex; flex-direction: column; gap: 12px; }
.prep-steps { list-style: none; margin: 0; padding: 14px 16px; display: grid; gap: 10px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); }
.prep-steps li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); transition: color .2s ease; }
.prep-steps li.now { color: var(--ink); font-weight: 600; }
.prep-steps li.done { color: var(--ok); }
.prep-steps .ck { width: 18px; height: 18px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; flex: none; }
.prep-steps .ck .i { width: 11px; height: 11px; stroke-width: 3; }
.prep-steps .dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.prep-steps .spin { width: 18px; height: 18px; }
.signing-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.signing-trust { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--ok); background: var(--ok-soft); }
.signing-steps { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--muted); }
.signing-steps b { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-right: 6px; border-radius: 50%; font-size: 11px; color: var(--accent-ink); background: var(--accent); }
.signing-frame { position: relative; min-height: 65vh; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); overflow: hidden; }
.signing-loading { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--muted); }
.signing-iframe { display: block; width: 100%; min-height: 65vh; border: 0; opacity: 0; transition: opacity .3s ease; }
.signing-iframe.visible { opacity: 1; }
.body.full .signing-frame, .body.full .signing-iframe { min-height: max(70vh, 720px); }
.signing-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; font-size: 13px; color: var(--muted); }
@container sye (max-width: 600px) { .signing-frame, .signing-iframe { min-height: 55vh; } }

/* ---------- done ---------- */
.done-hero { display: grid; gap: 14px; justify-items: start; }
.done-hero .big { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); display: grid; place-items: center; color: #fff; animation: pop .5s var(--ease) both; }
.done-hero .big .i { width: 32px; height: 32px; stroke-width: 2.4; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .55s .25s var(--ease) forwards; }
.timeline { display: grid; margin-top: 6px; }
.tl { display: grid; grid-template-columns: 22px 1fr; gap: 0 14px; }
.tl .rail { display: grid; justify-items: center; grid-template-rows: auto 1fr; }
.tl .rail i { width: 12px; height: 12px; border-radius: 50%; background: var(--line-2); margin-top: 6px; }
.tl.now .rail i { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.tl .rail b { width: 2px; background: var(--line); margin: 6px 0; }
.tl:last-child .rail b { display: none; }
.tl .tx { padding-bottom: 18px; }
.tl .tx b { display: block; font-weight: 650; }
.tl .tx span { color: var(--muted); font-size: 13.5px; }
.tl .tx .when { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); font-weight: 650; display: block; margin-bottom: 2px; }
.ref { display: inline-flex; gap: 8px; align-items: center; padding: 8px 12px; border-radius: 10px; background: var(--surface); font-size: 13.5px; }
.ref .mono { font-weight: 600; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: var(--paper); padding: 11px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; display: flex; gap: 10px; align-items: center; box-shadow: var(--shadow-3); z-index: 60; transition: all .35s var(--ease); pointer-events: none; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .i { color: var(--ok); width: 18px; height: 18px; stroke-width: 2.4; flex: none; }

/* ---------- engine footer ---------- */
.foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 34px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12.5px; }
.foot .i { width: 14px; height: 14px; }
.foot span { display: inline-flex; align-items: center; gap: 6px; }
.foot b { color: var(--muted); font-weight: 600; }

/* ---------- popover (jargon help) ---------- */
.pop { position: relative; display: inline-block; }
.pop > button { background: none; border: 0; padding: 0; color: var(--faint); display: inline-grid; place-items: center; vertical-align: middle; margin-left: 2px; }
.pop > button:hover { color: var(--ink); }
.pop > button .i { width: 16px; height: 16px; }
.pop .bubble { display: none; position: absolute; z-index: 8; left: 0; top: calc(100% + 8px); width: min(300px, 80vw); background: var(--ink); color: var(--paper); padding: 12px 14px; border-radius: 12px; font-size: 13px; line-height: 1.5; font-weight: 400; box-shadow: var(--shadow-3); animation: rise .25s var(--ease) both; text-transform: none; letter-spacing: 0; }
.pop .bubble b { display: block; margin-bottom: 2px; }
.pop.open .bubble { display: block; }
.pop.right .bubble { left: auto; right: 0; }
.expander { border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.expander > button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; background: var(--paper); border: 0; font-weight: 600; font-size: 14px; color: var(--ink); text-align: left; }
.expander > button > span { display: inline-flex; align-items: center; gap: 8px; }
.expander > button:hover { background: var(--surface); }
.expander > div { padding: 4px 16px 16px; font-size: 14px; color: var(--ink-2); display: grid; gap: 10px; }

/* ---------- standalone pages (callback form, verify email, index) ---------- */
.plain { max-width: 640px; margin: 0 auto; padding: 24px 16px 40px; }
.plain h1 { font-family: var(--font-display); font-size: 26px; letter-spacing: -.02em; margin: 0 0 8px; }
.plain .sub { color: var(--muted); }
.drop { border: 1.5px dashed var(--line-2); border-radius: var(--r-l); padding: 22px; text-align: center; color: var(--muted); font-size: 14px; position: relative; }
.drop input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.drop b { color: var(--ink); font-weight: 600; }

/* ---------- Blazor error UI ---------- */
#blazor-error-ui { background: var(--warn-soft); color: var(--ink); bottom: 0; box-shadow: var(--shadow-3); display: none; left: 0; padding: .6rem 1.25rem .7rem; position: fixed; width: 100%; z-index: 1000; font-size: 14px; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }
#blazor-error-ui .reload { font-weight: 600; margin-left: 8px; }
.blazor-error-boundary { padding: 1rem; color: var(--bad); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
}

/* ---------- hosted page: the engine is the page, not a section inside a partner's (sye.js sets html.hosted) ---------- */
.host-bar, .host-foot { display: none; }
html.hosted .sye-page { max-width: 1180px; margin: 0 auto; padding: 0 20px 40px; }
html.hosted .host-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 -20px 22px; padding: 14px 24px; background: color-mix(in srgb, var(--accent) 86%, black); color: #fff; }
html.hosted .host-brand { display: inline-flex; align-items: center; text-decoration: none; }
html.hosted .host-brand img { height: 34px; width: auto; display: block; }
html.hosted .host-brand b { font-size: 18px; font-weight: 700; color: #fff; }
html.hosted .host-links { display: flex; gap: 22px; align-items: center; font-size: 14px; color: #fff; }
html.hosted .host-links a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; opacity: .92; }
html.hosted .host-links a:hover { opacity: 1; text-decoration: underline; }
html.hosted .host-links .tel { display: inline-flex; gap: 6px; align-items: center; }
html.hosted .host-links .tel b { color: #fff; }
html.hosted .host-links .i { width: 16px; height: 16px; }
html.hosted .host-foot { display: flex; justify-content: center; margin-top: 26px; color: var(--faint); font-size: 12.5px; text-align: center; }
html.hosted .host-foot a { color: var(--muted); }
/* the primary action stays in reach on a long step: sticky to the bottom of the viewport (there is no viewport to stick to inside an iframe) */
html.hosted .actions { position: sticky; bottom: 0; z-index: 5; background: var(--paper); padding-bottom: 14px; box-shadow: 0 -16px 18px -16px rgba(0, 0, 0, .16); }
@media (max-width: 560px) {
  html.hosted .host-bar { margin-bottom: 14px; padding: 12px 16px; }
  html.hosted .host-links a { display: none; }
}
/* toasts sit above the sticky action bar on the hosted page instead of across it */
html.hosted .toast { bottom: 96px; }
