/* Layout: single column form of cards, results below. Calm utility look; teal for actions, sun amber for credits. */
:root {
  --bg: #f6f7f9; --surface: #ffffff; --ink: #13203a; --muted: #5b6577; --line: #e0e4ea;
  --accent: #13203a; --accent-ink: #ffffff; --accent-soft: #e8f0fc; --save: #1c6b3a;
  --sun: #b86e00; --sun-soft: #fdf1dc; --warn: #a33b1f; --warn-soft: #fbe9e3;
  --font: "Inter", "Segoe UI", system-ui, sans-serif; --display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e131c; --surface: #161d29; --ink: #e6ebf2; --muted: #9aa6b8; --line: #2a3344;
    --accent: #8db4f5; --accent-ink: #0b1526; --accent-soft: #18263d; --save: #6fd39a;
    --sun: #f0b250; --sun-soft: #352812; --warn: #f08a6c; --warn-soft: #3a1d14;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e131c; --surface: #161d29; --ink: #e6ebf2; --muted: #9aa6b8; --line: #2a3344;
  --accent: #8db4f5; --accent-ink: #0b1526; --accent-soft: #18263d; --save: #6fd39a;
  --sun: #f0b250; --sun-soft: #352812; --warn: #f08a6c; --warn-soft: #3a1d14;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
a { color: var(--accent); }
h1, h2, h3 { text-wrap: balance; margin: 0; }
h1 { font-size: 30px; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: 22px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 600; }
small { color: var(--muted); font-size: 12.5px; }
.muted { color: var(--muted); }
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 17px; text-decoration: none; color: var(--ink); }
.badge { font-size: 12px; font-weight: 600; color: var(--sun); background: var(--sun-soft); padding: 3px 10px; border-radius: 99px; }
.intro { padding: 28px 0 18px; display: grid; gap: 8px; }
.intro p { margin: 0; max-width: 66ch; color: var(--muted); }
.data-line { font-size: 13px; }
form { display: grid; gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px 18px; margin: 0; min-width: 0; display: grid; gap: 14px; }
legend { font-weight: 700; font-size: 16px; padding: 0 6px; margin-left: -6px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 18px; }
.field { display: grid; gap: 5px; align-content: start; }
.field > span { font-weight: 600; font-size: 14px; }
.field.narrow { max-width: 280px; }
em.req, em.opt { font-style: normal; font-size: 11.5px; font-weight: 600; margin-left: 6px; padding: 1px 7px; border-radius: 99px; }
em.req { color: var(--warn); background: var(--warn-soft); }
em.opt { color: var(--muted); background: var(--bg); }
input, select { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; min-height: 38px; width: 100%; }
input:focus-visible, select:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
input[type="checkbox"], input[type="radio"] { width: auto; min-height: 0; accent-color: var(--accent); }
.unit { display: flex; align-items: stretch; }
.unit input { border-radius: 8px 0 0 8px; }
.unit b { display: flex; align-items: center; padding: 0 10px; border: 1px solid var(--line); border-left: 0; border-radius: 0 8px 8px 0; background: var(--bg); font-weight: 500; font-size: 13px; color: var(--muted); }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.checks { display: grid; gap: 10px; }
.reveal { display: grid; gap: 14px; padding: 14px; border-radius: 10px; background: var(--bg); }
.reveal[hidden] { display: none; }
.reveal.inline { margin-left: 26px; }
.toggle-row { display: grid; gap: 6px; }
.toggle-label { font-weight: 600; font-size: 14px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; width: max-content; }
.seg label { padding: 6px 16px; cursor: pointer; display: flex; gap: 6px; align-items: center; background: var(--surface); }
.seg label + label { border-left: 1px solid var(--line); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px; cursor: pointer; background: var(--surface); }
.pills label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.months { display: grid; gap: 8px; }
.months-head { display: grid; gap: 2px; }
.months-head > span { font-weight: 600; font-size: 14px; }
.table-scroll { overflow-x: auto; }
.mtable { border-collapse: collapse; width: 100%; table-layout: fixed; }
.mtable thead th:first-child, .mtable tbody th { width: 150px; }
.mtable th, .mtable td { padding: 3px 2px; text-align: center; font-size: 13px; }
.mtable thead th { color: var(--muted); font-weight: 600; }
.mtable tbody th { text-align: left; padding-right: 8px; font-weight: 600; font-size: 12.5px; line-height: 1.25; }
.mtable tbody th small { display: block; font-weight: 400; font-size: 11px; color: var(--muted); }
.mtable tr[hidden] { display: none; }
.mtable input { padding: 4px 5px; text-align: right; min-height: 32px; width: 100%; min-width: 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.mtable input.bad { border-color: var(--warn); background: var(--warn-soft); }
/* no up/down arrows on number fields */
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.plan-id { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.mtable th.summer { color: var(--sun); }
details.multi { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
details.multi summary { padding: 9px 12px; cursor: pointer; font-weight: 500; }
.multi-list { max-height: 260px; overflow: auto; padding: 4px 12px 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px 14px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 4px 0 8px; }
button { font: inherit; font-weight: 600; border-radius: 8px; padding: 10px 18px; cursor: pointer; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
button.ghost { background: transparent; }
button:disabled { opacity: 0.6; cursor: progress; }
.err { color: var(--warn); font-size: 13px; font-weight: 500; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; background: var(--accent-soft); color: var(--accent); padding: 5px 12px; border-radius: 99px; width: max-content; }
.radios { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.radios label { display: flex; gap: 6px; align-items: center; }
#results { display: grid; gap: 22px; padding: 22px 0 10px; }
.run { display: grid; gap: 14px; }
.run-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; border-bottom: 2px solid var(--ink); padding-bottom: 8px; }
.run-head p { margin: 0; color: var(--muted); font-size: 13px; }
.tops { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.top-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 4px; }
.top-card.first { border: 2px solid var(--accent); }
.top-card .rk { font-size: 12px; font-weight: 700; color: var(--accent); }
.top-card .cost { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.top-card .who { font-weight: 600; }
.top-card .pl { font-size: 13px; color: var(--muted); }
.top-card .per { font-size: 12px; color: var(--muted); margin-top: -4px; }
.top-card .cost.good { color: var(--accent); } .top-card .cost.bad { color: var(--warn); }
.top-card .vs-label { font-size: 13px; font-weight: 600; margin-top: -4px; }
.top-card .per { margin-top: 4px; }
.vs.good { color: var(--accent); } .vs.bad { color: var(--warn); }
.rtable th small { display: block; font-weight: 400; font-size: 11px; }
.rtable tr.detail .detail-grid { grid-template-columns: minmax(280px, 1.4fr) minmax(200px, 1fr) minmax(220px, 1.2fr); }
@media (max-width: 1000px) { .rtable tr.detail .detail-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
.rates-col { min-width: 0; }
.rates table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 13px; margin-bottom: 4px; }
.rates th { width: 42%; }
.rates td.rate { width: 24%; }
.rates th, .rates td { padding: 3px 6px 3px 0 !important; border-bottom: 1px solid var(--line); background: transparent !important; text-align: left; vertical-align: top; }
.rates th { font-weight: 600; color: var(--ink); white-space: normal; font-size: 13px; overflow-wrap: anywhere; }
.rates td.rate { font-variant-numeric: tabular-nums; white-space: normal; }
.rates td { font-size: 13px; white-space: normal; }
.rates td.full { width: auto; }
.rates .daily { margin: 0 0 6px; font-size: 13px; }
.rates .pi-season { font-weight: 600; color: var(--muted); font-size: 12px; margin-top: 6px; }
.info { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-size: 13.5px; }
.box h3 { font-size: 14px; margin-bottom: 6px; }
.box ul { margin: 0; padding-left: 18px; display: grid; gap: 3px; }
.box.current { border-color: var(--sun); background: var(--sun-soft); }
.rtable-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; }
.rtable { width: 100%; border-collapse: collapse; min-width: 0; font-size: 13.5px; }
.rtable th, .rtable td { padding: 9px 9px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.rtable th { font-size: 12px; color: var(--muted); font-weight: 600; background: var(--bg); }
.rtable td.n, .rtable th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rtable td.n b { font-size: 14.5px; }
.rtable .plan-name { color: var(--muted); font-size: 12.5px; }
.rtable tr.detail td { background: var(--bg); padding: 12px 16px 16px; }
.rtable tr.detail[hidden] { display: none; }
.tag { display: inline-block; white-space: nowrap; font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: 99px; margin: 2px 4px 0 0; }
.tag { background: var(--bg); color: var(--muted); }
.tag.good { background: var(--accent-soft); color: var(--accent); }
small.sub { display: block; font-size: 11.5px; }
.tag.sun { background: var(--sun-soft); color: var(--sun); }
.tag.flag { background: var(--warn-soft); color: var(--warn); }
.tag.info { background: var(--accent-soft); color: var(--accent); }
.more { font-size: 12.5px; padding: 4px 10px; font-weight: 600; }
.card.saved { border-color: var(--accent); }
.saved-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 18px; align-items: end; }
.saved-buttons { display: flex; gap: 8px; }
.saved-buttons button { padding: 8px 14px; }
#profile-status.ok { color: var(--accent); font-weight: 600; }
.plan-info { background: var(--bg); border-radius: 10px; padding: 12px 14px; display: grid; gap: 10px; font-size: 13.5px; }
.plan-info[hidden] { display: none; }
.plan-info h3 { font-size: 14px; }
.pi-daily { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.pi-daily div { display: grid; gap: 1px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; }
.pi-daily div.main { border-color: var(--accent); }
.pi-daily span { font-size: 12px; color: var(--muted); }
.pi-daily b { font-size: 16px; font-variant-numeric: tabular-nums; }
.pi-daily div.main b { font-size: 18px; }
.plan-info .pi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px 18px; }
.plan-info table { width: 100%; border-collapse: collapse; }
.plan-info th, .plan-info td { text-align: left; vertical-align: top; padding: 4px 8px 4px 0; border-bottom: 1px solid var(--line); }
.plan-info th { font-weight: 600; white-space: nowrap; }
.plan-info td.rate { font-variant-numeric: tabular-nums; white-space: nowrap; }
.plan-info .pi-season { font-weight: 600; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 22px; }
.detail-grid h4 { margin: 0 0 4px; font-size: 13px; }
.detail-grid ul { margin: 0; padding-left: 18px; display: grid; gap: 2px; font-size: 13px; }
.bd { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; font-size: 13px; font-variant-numeric: tabular-nums; }
.bd span:nth-child(even) { text-align: right; }
.offer { font-size: 12.5px; border-left: 3px solid var(--sun); padding: 2px 0 2px 8px; margin: 4px 0; }
.offer.expired { opacity: 0.6; border-left-color: var(--line); }
.loading { padding: 18px; color: var(--muted); }
.foot { padding: 28px 20px 40px; color: var(--muted); font-size: 12.5px; display: grid; gap: 4px; }
.foot p { margin: 0; max-width: 90ch; }
@media (prefers-reduced-motion: no-preference) { button { transition: background .15s; } }

/* elements with display rules still honour the hidden attribute */
[hidden] { display: none !important; }
#manual-rates { padding: 12px 14px; }
.mr-toggles { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }
.mr-tog { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.mr-tog .seg label { padding: 4px 12px; font-weight: 500; }
.mr-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 12px; margin-top: 12px; }
.mr-fields .field { gap: 3px; }
.mr-fields .field > span { font-size: 13px; }
.mr-fields input { padding: 5px 8px; min-height: 32px; min-width: 0; }
.mr-fields .unit b { padding: 0 7px; font-size: 12px; }
.mr-fields .mr-name { grid-column: span 2; }
.mr-note { display: block; margin-top: 6px; }
#mr-err:empty { display: none; }

/* ---------- debug panel (temporary) */
.top-r { display: flex; align-items: center; gap: 14px; }
.dbg-switch { font-size: 13px; }
.debug { display: none; }
.dbg-only { display: none; }
body.debug-on .dbg-only { display: inline-block; margin-top: 8px; }
body.debug-on { display: grid; grid-template-columns: 1040px 1040px; column-gap: 16px; width: max-content; }
body.debug-on > header { grid-column: 1 / -1; }
body.debug-on > .foot { grid-column: 1; width: 1040px; margin: 0; }
body.debug-on > header .wrap { margin: 0; }
body.debug-on > main.wrap { grid-column: 1; width: 1040px; margin: 0; }
body.debug-on .debug { display: block; grid-column: 2; grid-row: 2 / span 2; position: sticky; top: 0; align-self: start;
  max-height: 100vh; overflow: auto; padding: 12px 16px 40px; background: #fbfbf8; border-left: 2px dashed var(--line); font-size: 12.5px; }
.debug h2 { font-size: 16px; margin: 4px 0 8px; } .debug h2 small { font-weight: 400; color: var(--muted); font-size: 12px; }
.debug h3 { font-size: 14px; margin: 14px 0 6px; } .debug h4 { font-size: 13px; margin: 14px 0 4px; } .debug h5 { font-size: 13px; margin: 10px 0 4px; }
.dbg-sec { border-top: 1px solid var(--line); padding-top: 6px; }
.dbg-note { color: var(--muted); margin: 4px 0; }
.dbg-t { border-collapse: collapse; margin: 6px 0; font-variant-numeric: tabular-nums; }
.dbg-t th, .dbg-t td { border: 1px solid var(--line); padding: 2px 6px; text-align: left; white-space: nowrap; font-size: 12px; }
.dbg-t th { background: var(--bg); font-weight: 600; }
.dbg-t td.n { text-align: right; }
.dbg-t tr.win td { background: #fff4d6; }
.dbg-t tr.tot td { font-weight: 700; }
.dbg-sum td:nth-child(3) { white-space: normal; }
.dbg-scroll { overflow-x: auto; }
.dbg-day-type { border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; margin: 4px 0; background: var(--surface); }
.dbg-day-type summary { cursor: pointer; }
.dbg-month { margin-bottom: 8px; }

.method { font-size: 12.5px; color: var(--muted); } .method a { color: var(--accent); }
.dbg-monthly td { white-space: nowrap; vertical-align: top; } .dbg-monthly small { color: var(--muted); }

.mtable input.pct::placeholder { color: #9aa59f; font-style: italic; }
.split-box { margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: var(--bg); }
.split-box summary { cursor: pointer; font-size: 13px; }
.split-box .night { font-variant-numeric: tabular-nums; font-size: 13px; }
.split-box .night.estimated { color: #9aa59f; font-style: italic; }

#battery_wear { background: var(--bg); font-weight: 600; }

.mtable td.pct-cell { position: relative; }
.mtable td.pct-cell::after { content: "%"; position: absolute; right: 9px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--muted); pointer-events: none; }
.mtable td.pct-cell input { padding-right: 18px; }

/* ---------- MVP layout: landing + vertical steps */
.dev-only { display: none !important; }
body.dev .dev-only { display: revert !important; }
.indep { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--accent); }
.indep .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero { padding: 34px 0 22px; display: grid; gap: 12px; }
.hero .lead { margin: 0; font-size: 17px; max-width: 64ch; color: var(--ink); }
.hero-points { margin: 4px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.hero-points li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: 14px; color: var(--muted); }
.hero-points b { color: var(--ink); display: block; }
.profile-bar { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: space-between; font-size: 13px; color: var(--muted); }
.profile-actions { display: flex; gap: 14px; flex-wrap: wrap; }
button.link, .link { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
#profile-status.ok { color: var(--accent); }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.step-head { display: flex; align-items: center; gap: 14px; padding: 14px 18px; }
.step-head h2 { font-size: 18px; }
.step-head > div { flex: 1; min-width: 0; }
.step-no { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: var(--bg); color: var(--muted); }
.step.open .step-no { background: var(--accent); color: var(--accent-ink); }
.step.done .step-no { background: var(--accent-soft); color: var(--accent); }
.step.done .step-no::after { content: "✓"; }
.step.done .step-no { font-size: 0; } .step.done .step-no::after { font-size: 15px; }
.step-sum { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.step:not(.done) .step-sum, .step:not(.done) .step-edit { display: none; }
.step.done .step-head { cursor: pointer; }
.step-body { display: grid; gap: 16px; padding: 0 18px 18px; }
.step:not(.open) .step-body { display: none; }
.step.locked { opacity: 0.55; }
.step-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
button.primary.big { padding: 12px 26px; font-size: 16px; }
.q { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; padding-top: 4px; border-top: 1px solid var(--line); padding-top: 14px; }
.q[hidden] { display: none; }
.q-label { font-weight: 600; }
.warn-line { margin: 0; color: var(--sun); background: var(--sun-soft); padding: 8px 12px; border-radius: 8px; font-size: 13.5px; }
.warn-line[hidden] { display: none; }
.more-box summary, .howto summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.more-box .checks { margin-top: 12px; }
.howto ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.howto b { color: var(--ink); }
p.small, .small { font-size: 13px; margin: 2px 0 0; }
.upload { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; border: 2px dashed var(--line); border-radius: 12px; padding: 16px 18px; background: var(--bg); }
.upload.drag { border-color: var(--accent); background: var(--accent-soft); }
.upload > div { flex: 1 1 320px; }
label.button { display: inline-block; font-weight: 600; border-radius: 8px; padding: 10px 18px; cursor: pointer; background: var(--accent); color: var(--accent-ink); }
.upload-msg { border-radius: 10px; padding: 10px 14px; font-size: 14px; background: var(--bg); }
.upload-msg.ok { background: var(--accent-soft); }
.upload-msg.bad { background: var(--warn-soft); color: var(--warn); }
.upload-msg[hidden] { display: none; }
.mtable input.from-file { background: var(--accent-soft); border-color: transparent; }
.help { display: inline-grid; place-items: center; width: 17px; height: 17px; padding: 0; margin-left: 4px; border-radius: 50%; font-size: 11px; font-weight: 700; line-height: 1;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: help; position: relative; vertical-align: 1px; }
.tip-pop { position: fixed; z-index: 100; width: max-content; max-width: min(320px, calc(100vw - 24px)); white-space: normal; text-align: left;
  font-weight: 400; font-size: 13px; line-height: 1.45; background: var(--ink); color: var(--surface); padding: 9px 12px; border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .18); pointer-events: none; }
.tip-pop[hidden] { display: none; }
.mtable-t { width: 100%; table-layout: auto; }
.mtable-t thead th { font-size: 11.5px; line-height: 1.25; vertical-align: bottom; text-align: center; }
.mtable-t thead th .help { display: none; }
.mtable-t thead th small { display: block; font-weight: 400; }
.mtable-t tbody th { width: 44px; font-size: 13px; }
.mtable-t td { min-width: 0; padding: 3px 2px; }
.mtable-t input { padding: 4px 4px; }
.mtable-t[hidden], .mtable[hidden] { display: none; }

@media (max-width: 720px) {
  .wrap { padding: 0 12px; }
  h1 { font-size: 24px; }
  .hero .lead { font-size: 15.5px; }
  .step-head { padding: 12px 14px; }
  .step-body { padding: 0 14px 14px; }
  .grid { grid-template-columns: 1fr; }
  .top-in { padding-top: 10px; padding-bottom: 10px; }
  .indep { font-size: 12px; }
  .seg label { padding: 6px 12px; }
  .q { align-items: flex-start; }
}
.mtable-t thead th:first-child, .mtable-t tbody th { width: 44px; }

.headline { margin: 4px 0 2px; font-size: 18px; line-height: 1.45; }
.headline b.good, .good { color: var(--accent); }
.current-line { margin: 0; font-size: 14px; color: var(--muted); }
.rtable tr.extra { display: none; }
.rtable .tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.rtable .tags .tag { margin: 0; }
.show-more { justify-self: start; }
.box.how ul { margin: 8px 0; padding-left: 18px; display: grid; gap: 4px; }
.rtable .detail-grid { grid-template-columns: minmax(280px, 1.4fr) minmax(200px, 1fr) minmax(220px, 1.2fr); }
@media (max-width: 720px) {
  .rtable tr:not(.detail) > th:first-child, .rtable tr:not(.detail) > td:first-child { display: none; }
  .rtable .detail-grid { grid-template-columns: 1fr; }
  .headline { font-size: 16px; }
}

.m-only { display: none; }
@media (max-width: 720px) {
  .rtable .d-only { display: none; }
  .m-only { display: inline; margin-top: 6px; }
  .rtable td.n, .rtable th.n { white-space: normal; }
}

/* Start button in the hero; controlled-load type on one line */
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 4px 0 0; font-size: 14px; }
.reveal.inline.cl-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 6px 0 0; padding: 0; background: none; border: 0; }
.reveal.inline.cl-line[hidden] { display: none; }
.check input { flex-shrink: 0; }
.cl-line label { font-weight: 600; font-size: 14px; }
.cl-line select { width: auto; min-width: 180px; }
.cl-line small { font-size: 13px; }
.check small { display: inline; }

/* ===== results screen (after "Show my best plans") ===== */
body.on-results main.wrap, body.on-results .top .wrap { max-width: 1180px; }
#results-view { padding: 18px 0 30px; display: grid; gap: 14px; }
.rv-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }
.rv-title { font-size: 26px; }
.rv-where { display: grid; gap: 2px; }
.rv-where > span { color: var(--muted); font-size: 14px; }
.rv-actions { display: flex; align-items: center; gap: 16px; }
button.primary-ghost { background: var(--surface); border: 1.5px solid var(--accent); color: var(--accent); }
button.primary-ghost:hover { background: var(--accent-soft); }
.link.strong { font-size: 14px; }

.rv-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; }
.rv-tabs .tab { border: 0; border-radius: 9px; background: none; padding: 10px 12px; font-size: 16px; font-weight: 700;
  color: var(--ink); display: grid; justify-items: center; line-height: 1.25; white-space: nowrap; cursor: pointer; }
.rv-tabs .tab:hover { background: var(--accent-soft); }
.rv-tabs .tab small { font-weight: 500; font-size: 12.5px; color: var(--muted); }
.rv-tabs .tab.on { background: var(--accent); color: var(--accent-ink); }
.rv-tabs .tab.on small { color: var(--accent-ink); opacity: .85; }
.rv-tabs .tab.na { opacity: .55; }

.sblocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.sblock { display: grid; gap: 2px; align-content: start; text-align: left; padding: 12px 14px; border-radius: 12px; background: transparent;
  border: 1px solid var(--line); font-weight: 400; cursor: default; min-width: 0; }
.sblock .si { display: inline-block; vertical-align: middle; margin-right: 6px; }
.sblock .si svg { width: 20px; height: 20px; }
.si svg { width: 34px; height: 34px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; display: block; }
.sblock .st { display: grid; gap: 1px; min-width: 0; }
.sblock small { font-size: 13px; font-weight: 600; color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sblock b { font-size: 19px; line-height: 1.25; }
.sblock > span { font-size: 12.5px; color: var(--muted); }
.m-sum { display: none; }

.rv-body { display: grid; grid-template-columns: 250px 1fr; gap: 20px; align-items: start; }
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 12px; position: sticky; top: 12px; }
.f-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.f-head h2 { font-size: 17px; display: flex; align-items: center; gap: 6px; }
.f-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; }
.f-count[hidden] { display: none; }
.filters fieldset { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 10px 0 0; display: grid; gap: 8px; }
.filters legend { font-weight: 700; font-size: 13px; padding: 0; margin-bottom: 4px; }
.filters .radio, .filters .check { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; font-weight: 500; }
.filters .radio input, .filters .check input { margin-top: 3px; flex: none; }
.filters .radio > span, .filters .check > span { line-height: 1.4; }
.filters .radio .help, .filters .check .help { margin-left: 4px; vertical-align: 1px; }
.filters label[hidden] { display: none; }
.filters select { width: 100%; }
.f-close, .f-done, .f-open { display: none; }
.f-scrim[hidden] { display: none; }

.rv-list { display: grid; gap: 12px; min-width: 0; }
#rv-list { display: grid; gap: 12px; }
.list-meta { margin: -6px 0 0; }
.cards { display: grid; gap: 10px; }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid;
  grid-template-columns: 1fr auto; gap: 8px 18px; }
.pcard.first { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.pc-main { display: grid; gap: 10px; min-width: 0; }
.pc-name { display: flex; gap: 10px; align-items: flex-start; }
.pc-name b { font-size: 16px; }
.pc-plan { display: block; color: var(--muted); font-size: 14px; }
.pc-rank { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); font-size: 12px; font-weight: 700; flex: none; margin-top: 1px; }
.pcard.first .pc-rank { background: var(--accent); color: var(--accent-ink); }
.pc-rates { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.pc-rates span { display: grid; line-height: 1.25; }
.pc-rates b { font-size: 15px; }
.pc-rates small { font-size: 12px; }
.pc-price { display: grid; justify-items: end; align-content: start; text-align: right; gap: 1px; min-width: 130px; border-left: 1px solid var(--line); padding-left: 18px; }
.pc-big { font-size: 26px; font-weight: 700; line-height: 1.1; color: var(--ink); }
.pc-cost { font-size: 13px; color: var(--muted); margin-top: 6px; }
.pc-per { font-size: 12.5px; color: var(--muted); }
.pc-save { font-weight: 700; font-size: 26px; line-height: 1.1; color: var(--ink); }
.pc-save.good { color: var(--save); }
.pc-save.bad { color: var(--warn); }
.pc-credit { color: var(--sun); font-weight: 600; margin-top: 4px; }
.pc-more { grid-column: 2; grid-row: 2; justify-self: end; align-self: end; padding: 7px 18px; font-size: 14px; font-weight: 600; }
.pcard > .pc-main { grid-row: 1 / span 2; align-content: start; }
.pcard > .pc-price { grid-row: 1; }
.pc-detail { grid-column: 1 / -1; }
.pc-detail { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 12px; }
.pc-detail[hidden] { display: none; }
.pc-detail .detail-grid { grid-template-columns: minmax(260px, 1.4fr) minmax(190px, 1fr) minmax(210px, 1.2fr); }
.banner { display: flex; gap: 12px; align-items: center; background: var(--sun-soft); border-radius: 12px; padding: 12px 16px; font-size: 14.5px; }
.banner .si svg { stroke: var(--sun); width: 30px; height: 30px; }
.banner.good b { color: var(--sun); }
.na-box { background: var(--surface); border: 1px dashed var(--line); border-radius: 12px; padding: 18px; }
.na-box p { margin: 0 0 8px; }

/* edit mode: every step open; the per-step Continue buttons aren't needed */
body.editing .step .next { display: none; }

/* Start over dialog and the Undo bar */
.dlg { border: 0; border-radius: 14px; padding: 22px; max-width: min(440px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.dlg::backdrop { background: rgba(10, 20, 16, .45); }
.dlg h3 { font-size: 19px; margin-bottom: 6px; }
.dlg p { margin: 0 0 16px; color: var(--muted); }
.dlg-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
button.danger { background: var(--warn); border-color: var(--warn); color: #fff; }
.undo-bar { white-space: nowrap; position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 90; background: var(--ink); color: var(--surface);
  border-radius: 10px; padding: 10px 14px; display: flex; gap: 14px; align-items: center; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.undo-bar[hidden] { display: none; }
.undo-bar .link { color: #8fe0c6; font-size: 14px; }
.undo-x { background: none; border: 0; color: inherit; padding: 0 2px; font-size: 18px; line-height: 1; }

/* tablets and phones: filters become a bottom sheet, summary becomes 2 lines, cards stack */
@media (max-width: 900px) {
  .rv-body { grid-template-columns: 1fr; }
  .f-open { display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 8px 14px; }
  .filters { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 95; max-height: 82vh; overflow-y: auto; border-radius: 16px 16px 0 0;
    transform: translateY(105%); transition: transform .2s; box-shadow: 0 -10px 30px rgba(0,0,0,.2); padding-bottom: 18px; }
  .filters.open { transform: none; }
  .f-close { display: block; background: none; border: 0; font-size: 24px; padding: 0 4px; line-height: 1; }
  .f-done { display: block; width: 100%; }
  .f-scrim { position: fixed; inset: 0; background: rgba(10, 20, 16, .4); z-index: 94; }
  body.sheet-open { overflow: hidden; }
}
@media (max-width: 720px) {
  .rv-title { font-size: 21px; }
  .rv-bar { align-items: center; }
  .rv-where > span { display: none; }
  .rv-actions { gap: 12px; }
  .rv-actions #rv-edit { display: none; }
  .sblocks { display: none; }
  .m-sum { display: grid; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; }
  .m-sum .m1 { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; font-weight: 600; }
  .m-sum .m1 .link { white-space: nowrap; font-size: 13.5px; }
  .m-sum .m2 { color: var(--muted); }
  .rv-tabs .tab { flex: 1; padding: 8px 6px; font-size: 14px; }
  .pcard { grid-template-columns: 1fr auto; padding: 12px; gap: 8px 10px; }
  .pc-main { display: contents; }
  .pc-name { grid-column: 1; }
  .pc-price { grid-column: 2; grid-row: 1; border-left: 0; padding-left: 0; min-width: 0; }
  .pc-big, .pc-save { font-size: 21px; }
  .pc-cost { margin-top: 2px; }
  .pc-price small.muted { display: none; }
  .pc-credit { font-size: 11.5px; }
  .pc-rates { grid-column: 1 / -1; gap: 4px 14px; }
  .pc-rates b { font-size: 13.5px; }
  .pcard .tags { grid-column: 1 / -1; }
  .pc-more { grid-column: 1 / -1; grid-row: auto; }
  .pc-detail .detail-grid { grid-template-columns: 1fr; }
  .banner { font-size: 13.5px; }
}

/* intro: until Start is pressed only the landing text and Start show */
body.intro-mode #form { display: none; }
body:not(.intro-mode) .intro-only { display: none; }
.hero-cta .intro-only { font-size: 14px; }
@media (max-width: 720px) {   /* phones: Start right under the intro text, above the three points */
  .hero h1 { order: 0; } .hero .lead { order: 1; } .hero .hero-cta { order: 2; } .hero .hero-points { order: 3; } .hero .data-line { order: 4; }
}

/* the form fills at least a screen, so Start can scroll it to the top */
body:not(.intro-mode) #form { min-height: calc(100vh - 8px); align-content: start; scroll-margin-top: 8px; }
.more-title { font-size: 15px; font-weight: 600; margin: 4px 0 0; }
/* "?" popup arrow points at the "?" */
.tip-pop::after { content: ""; position: absolute; left: var(--arrow, 14px); bottom: -6px; width: 12px; height: 12px; background: var(--ink); transform: translateX(-50%) rotate(45deg); }
.tip-pop.below::after { bottom: auto; top: -6px; }

/* reached steps stay open: no summary line or Edit link, and Continue only on the step you're on */
.step.open .step-sum, .step.open .step-edit { display: none; }
.step.open.done .step-head { cursor: default; }
.step.done .next { display: none; }

/* step 2: where the usage comes from */
.src-intro { margin: 0; font-size: 15px; }
.src-intro .muted { font-size: 13.5px; }
.src-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.src-card { position: relative; display: grid; gap: 10px; align-content: start; justify-items: start; text-align: left; padding: 16px; border-radius: 12px;
  background: var(--surface); border: 1.5px solid var(--line); font-weight: 400; cursor: pointer; min-height: 132px; }
.src-card:hover { border-color: var(--accent); }
.src-card.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
.src-card .src-txt { display: grid; gap: 3px; }
.src-card .src-txt b { font-size: 15.5px; }
.src-card .src-txt span { font-size: 13px; color: var(--muted); line-height: 1.4; }
.src-tag { position: absolute; top: 12px; right: 12px; font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--accent);
  background: var(--accent-soft); border-radius: 99px; padding: 1px 8px; }
.src-card.on .src-tag { background: var(--surface); }
button.link.src-manual { justify-self: start; font-size: 15.5px; line-height: 1.3; }
.src-panel { display: grid; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--bg); }
.src-panel[hidden], #months-box[hidden] { display: none; }
.src-howto h4 { margin: 0 0 6px; font-size: 15px; }
.src-howto ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 14px; }
.src-howto p { margin: 8px 0 0; }
@media (max-width: 720px) {
  .src-cards { grid-template-columns: 1fr; gap: 8px; }
  .src-card { grid-template-columns: auto 1fr; align-items: center; min-height: 0; padding: 12px 14px; gap: 12px; }
  .src-card .si svg { width: 30px; height: 30px; }
  .src-tag { position: static; grid-column: 2; justify-self: start; margin-top: -6px; }
}
.hist-choice { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.hist-choice p { margin: 0; }
.seg-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.seg-btns button { padding: 8px 14px; }

/* "More details": longer explanations hidden behind an underlined link */
details.more { margin-top: 6px; font-size: 13.5px; }
details.more > summary { display: inline; list-style: none; cursor: pointer; color: var(--accent); font-weight: 600;
  text-decoration: underline; text-underline-offset: 2px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more[open] > summary { color: var(--muted, #5b6b66); }
details.more ul, details.more p { margin: 6px 0 0; padding-left: 18px; color: var(--muted, #5b6b66); font-weight: 400; }
details.more p { padding-left: 0; }
.hist-choice details.more { display: inline; margin: 0 0 0 6px; }
.hist-choice details.more[open] p { display: block; }
.mr-fields .unit b { white-space: nowrap; }
.mr-tog[hidden] { display: none; }
.upload-msg .callout { margin: 8px 0 0; padding: 8px 12px; border-left: 4px solid var(--warn); background: var(--warn-soft); color: var(--ink); font-weight: 600; border-radius: 6px; }

/* Details: rates, cost vs your plan, before you switch */
.rt { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.rt th, .rt td { text-align: left; padding: 4px 8px 4px 0; vertical-align: top; border-bottom: 1px solid var(--line); }
.rt th { font-weight: 600; white-space: nowrap; }
.rt td.rate { white-space: nowrap; font-variant-numeric: tabular-nums; }
.rt td:last-child { color: var(--muted); }
.rt .rt-head td { border-bottom: 0; padding: 12px 0 2px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); }
.rt tr.rt-head:first-child td { padding-top: 0; }
.rt .rt-head small { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--muted); }
.rt .rt-sub td { border-bottom: 0; padding: 8px 0 2px; font-weight: 700; font-size: 13px; color: var(--ink); }
.rt .rt-sub span { font-weight: 400; color: var(--muted); }
.cost-t { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.cost-t th, .cost-t td { padding: 4px 0; border-bottom: 1px solid var(--line); text-align: right; }
.cost-t th:first-child, .cost-t tbody th { text-align: left; font-weight: 500; }
.cost-t thead th { font-size: 12px; color: var(--muted); font-weight: 600; }
.cost-t td + td, .cost-t th + th { padding-left: 12px; }
.cost-t .tot th, .cost-t .tot td { font-weight: 700; border-bottom: 0; }
.cost-save { margin: 8px 0 0; font-weight: 700; }
.cost-save.good { color: var(--save); }
.cost-save.bad { color: var(--warn); }
.calc-notes { margin: 10px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--muted); }
dl.before { margin: 0; display: grid; gap: 8px; font-size: 13.5px; }
dl.before dt { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); }
dl.before dd { margin: 1px 0 0; }
dl.before details.more { margin-top: 2px; font-size: 12.5px; }
.pi-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
@media (max-width: 720px) { .pi-grid { grid-template-columns: 1fr; } }
.rt th small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; white-space: normal; }
.rt th { white-space: normal; }
.rt td.rate { text-align: right; padding-right: 0; white-space: normal; }
.rt td.rt-note { border-bottom: 0; color: var(--muted); font-size: 12.5px; padding-top: 4px; }
.cost-t thead th { white-space: nowrap; }
.rt th { width: 48%; }

/* Custom tab: month strip */
.rv-tabs { grid-template-columns: repeat(4, 1fr); }
.rv-custom { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 8px; }
.rv-custom[hidden] { display: none; }
.mstrip { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0; user-select: none; touch-action: none; }
.mcell { border: 1px solid var(--line); border-left-width: 0; border-radius: 0; background: var(--bg); padding: 8px 2px; font-size: 14px; font-weight: 700;
  display: grid; justify-items: center; line-height: 1.2; cursor: pointer; color: var(--ink); }
.mcell:first-child { border-left-width: 1px; border-radius: 8px 0 0 8px; }
.mcell:last-child { border-radius: 0 8px 8px 0; }
.mcell small { font-weight: 500; font-size: 11px; color: var(--muted); }
.mcell.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.mcell.on small { color: var(--accent-ink); opacity: .85; }
.mcell.first { border-radius: 8px 0 0 8px; }
.mcell.last { border-radius: 0 8px 8px 0; }
.mcell.first.last { border-radius: 8px; }
.mstrip-foot { font-size: 14px; }
.undo-redo { display: inline-flex; gap: 4px; margin-left: 10px; vertical-align: middle; }
.icon-btn { width: 30px; height: 28px; padding: 0; border-radius: 7px; border: 1px solid var(--line); background: var(--surface); font-size: 16px; line-height: 1; cursor: pointer; color: var(--ink); }
.icon-btn:disabled { opacity: .35; cursor: default; }
@media (max-width: 720px) {
  .mstrip { grid-template-columns: repeat(6, 1fr); row-gap: 4px; }
  .mcell { border-left-width: 1px; border-radius: 0; }
  .rv-tabs .tab { padding: 8px 2px; font-size: 13px; }
  .rv-tabs .tab small { font-size: 11px; }
}
.rv-custom .err:empty { display: none; }
.pc-main { grid-template-columns: minmax(0, 1fr) auto; column-gap: 20px; }
.pc-main > .pc-name, .pc-main > .pc-rates { grid-column: 1; }
.pc-main > .tags { grid-column: 1 / -1; }
.pc-main > .plan-links { grid-column: 2; grid-row: 1 / span 2; align-self: start; margin: 23px 0 0; font-size: 13px; gap: 3px;
  justify-items: start; text-align: left; line-height: 1.4; }
.pc-main > .plan-links .plan-id { font-size: 12px; padding: 0 5px; }
.plan-links { display: grid; gap: 4px; font-size: 13.5px; }
.plan-links .copy-id { padding: 1px 8px; font-size: 12px; }
@media (max-width: 720px) {
  .pc-main > .plan-links { grid-column: 1 / -1; grid-row: auto; margin: 0; }
  .pc-main > .pc-rates, .pc-main > .tags { grid-column: 1 / -1; }
}
.special-warn { margin: 0 0 10px; padding: 8px 10px; border-left: 4px solid var(--warn); background: var(--warn-soft); border-radius: 6px; font-size: 13px; }
.tag .help { width: 16px; height: 16px; font-size: 10.5px; margin-left: 3px; vertical-align: 0; }
.pc-credit.later { color: var(--muted); }
.cost-t tr.later th, .cost-t tr.later td { color: var(--muted); font-weight: 400; border-top: 0; }
.cost-t tr.later th small { display: block; font-size: 11.5px; }
.data-line.stale { color: #9a5b00; }

/* Retailer filter: tick list */
.ret-list { max-height: 240px; overflow-y: auto; display: grid; gap: 2px; padding: 2px 0 4px 4px; border-left: 2px solid var(--line); }
.ret-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ret-row .ret-only { font-size: .85em; opacity: 0; }
.ret-row:hover .ret-only, .ret-row:focus-within .ret-only { opacity: 1; }
@media (hover: none) { .ret-row .ret-only { opacity: .8; } }
.ret-all small { color: var(--muted, #667); font-weight: normal; }

/* SeasonSwitch header and footer on the compare page */
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -0.2px; }
.top-in { position: relative; }
.top-nav { display: flex; gap: 22px; font-size: 14.5px; font-weight: 500; margin-right: auto; margin-left: 28px; }
.top-nav a { color: var(--muted); text-decoration: none; }
.top-nav a:hover { color: var(--ink); }
h1 { font-family: var(--display); letter-spacing: -0.02em; }
.foot-links a { color: var(--muted); }

/* phones: the menu links sit on their own line under the name */
@media (max-width: 760px) {
  .top-nav { display: flex; order: 3; width: 100%; margin: 2px 0 0; gap: 20px; font-size: 14px; }
}

/* retailers not signing up homes in NSW: unticked by default, faded */
.ret-row.nosign span { opacity: .55; }
