/* CostMap local page. No external resources. Colours are checked for 4.5:1 contrast on their backgrounds (text) and
   3:1 (marks); the two chart colours (--s1, --s2) were checked for colour-blind separation in both schemes. */
:root {
  --bg: #FAFAFB; --panel: #FFFFFF; --rail: #F1F3F2; --ink: #0F1614; --muted: #4D5654; --rule: #DFE3E1; --hover: #F0F3F2;
  --teal: #0B7A66; --teal-ink: #FFFFFF; --teal-bg: #EAF6F3; --teal-border: #B3DFD5; --bar: #0B7A66; --track: #E6EAE8;
  --amber: #7A4F10; --amber-bg: #FDF5E6; --amber-border: #F3D6A4; --amber-mark: #C27A12;
  --red: #B83A2E; --red-bg: #FCEEEC; --red-border: #F0C4BE;
  --grey-mark: #9AA4A0;
  --s1: #008A6E; --s2: #6250D6;
  /* The parts of a donut: five hues and the grey of "Other" (slot 0). Slot 1 and 2 are --s1 and --s2. Checked with
     the categorical validator of the dataviz method against --panel: adjacent pairs in the order of the slots, the
     last back to the first, pass the colour-blind (>= 8) and normal-vision (>= 15) separation in both schemes. */
  --c1: #008A6E; --c2: #6250D6; --c3: #EB6834; --c4: #2A78D6; --c5: #EDA100; --c0: #9AA4A0;
  --code-bg: #F2F4F3;
  --r: 10px; --r-lg: 14px;
  --rail-w: 72px; --side-w: 256px;
  --sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1614; --panel: #161F1C; --rail: #0B110F; --ink: #F2F5F4; --muted: #B7C3BF; --rule: #2A3632; --hover: #1C2824;
    --teal: #5FD0B8; --teal-ink: #0F1614; --teal-bg: #12302A; --teal-border: #1F5146; --bar: #5FD0B8; --track: #24302C;
    --amber: #F0B768; --amber-bg: #33270F; --amber-border: #5C4517; --amber-mark: #E0A24A;
    --red: #F08A7E; --red-bg: #3A1814; --red-border: #6A2A22;
    --grey-mark: #6C7874;
    --s1: #22A88A; --s2: #9085E9;
    --c1: #22A88A; --c2: #9085E9; --c3: #D95926; --c4: #3987E5; --c5: #C98500; --c0: #5A6562;
    --code-bg: #0A0F0E;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--sans); }
[hidden] { display: none !important; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: var(--teal); text-underline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -48px; background: var(--panel); padding: 8px 12px; border-radius: var(--r); z-index: 60; }
.skip:focus { top: 8px; }
.mono { font-family: var(--mono); font-size: 0.92em; }
.muted { color: var(--muted); }
.strong { font-weight: 700; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
/* One piece: "≈" and its amount, "up to" and its amount. */
.nb { white-space: nowrap; }
.icon { display: block; flex: none; }

/* ---------------------------------------------------------------- the frame */
.app { display: grid; grid-template-columns: auto minmax(0, 1fr); min-height: 100vh; }
.drawer { display: flex; position: sticky; top: 0; height: 100vh; z-index: 30; }
.rail { width: var(--rail-w); background: var(--rail); border-right: 1px solid var(--rule); display: flex; flex-direction: column; align-items: center; padding: 10px 0 12px; gap: 12px; overflow-y: auto; }
.mark { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: var(--bg); font-weight: 800; font-size: 16px; letter-spacing: -0.02em; text-decoration: none; flex: none; }
.mark span { color: var(--teal-border); }
.rail-list, .rail-foot { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }
.rail-list { flex: 1 1 auto; padding-top: 6px; }
.rail-foot { gap: 6px; }
.rail-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 56px; min-height: 46px; padding: 4px 0; border-radius: 10px; color: var(--muted); text-decoration: none; position: relative; }
.rail-btn:hover { background: var(--hover); color: var(--ink); }
.rail-btn[aria-current="page"] { background: var(--teal-bg); color: var(--ink); box-shadow: inset 0 0 0 1px var(--teal-border); }
.rail-word { font-size: 10.5px; font-weight: 600; line-height: 1.2; }
.rail-btn.add { border: 1px dashed var(--rule); }

/* An account badge: two letters, the provider small under them, and the state bar under the badge. */
.acct-badge { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 10px; background: var(--panel); border: 1px solid var(--rule); color: var(--ink); text-decoration: none; flex: none; }
.acct-badge .letters { font-weight: 800; font-size: 15px; line-height: 1.1; letter-spacing: 0.02em; }
.acct-badge .prov { font-size: 9px; font-weight: 600; color: var(--muted); line-height: 1.1; letter-spacing: 0.04em; }
.acct-badge .health { position: absolute; left: 7px; right: 7px; bottom: -7px; height: 4px; border-radius: 2px; background: var(--grey-mark); }
.acct-badge .lock { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; padding: 2px; border-radius: 50%; background: var(--panel); border: 1px solid var(--rule); color: var(--amber); }
a.acct-badge:hover { border-color: var(--teal-border); }
.acct-badge[aria-current="page"] { border: 2px solid var(--teal); background: var(--teal-bg); }
.rail .acct-badge[aria-current="page"]::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 3px 3px 0; background: var(--teal); }
.h-ok .health { background: var(--s1); }
.h-partial .health { background: var(--amber-mark); }
.h-failed .health { background: var(--red); }
.h-never .health { background: var(--grey-mark); }
.h-scanning .health { background: repeating-linear-gradient(90deg, var(--s1) 0 6px, var(--track) 6px 12px); background-size: 24px 100%; animation: health-move 0.9s linear infinite; }
@keyframes health-move { from { background-position: 0 0; } to { background-position: 24px 0; } }
.acct-badge.static { width: 40px; height: 40px; }
.acct-badge.static .letters { font-size: 14px; }
.acct-badge.home { color: var(--muted); }

/* The navigation of the selected account. */
/* The navigation never scrolls sideways: every line in it wraps or stays inside its width. */
.side { width: var(--side-w); min-width: 0; background: var(--panel); border-right: 1px solid var(--rule); overflow-y: auto; overflow-x: hidden; padding-bottom: 24px; }
.side-head, .side-title, .nav-group, .nav-list, .nav-item { min-width: 0; max-width: 100%; }
.side-head { display: flex; gap: 12px; align-items: flex-start; padding: 14px 14px 14px; border-bottom: 1px solid var(--rule); }
.side-title { display: grid; gap: 2px; min-width: 0; }
.side-title strong { font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.side-title .hint { font-size: 12.5px; overflow-wrap: anywhere; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 18px; white-space: nowrap; border: 1px solid var(--rule); color: var(--muted); background: transparent; }
/* The one number at the head of the navigation: regular type, wraps rather than widening the column. */
.pill.est { justify-self: start; max-width: 100%; margin-top: 4px; white-space: normal; overflow-wrap: anywhere; font-family: var(--sans); font-variant-numeric: tabular-nums; line-height: 1.35; padding: 2px 8px; border-radius: 8px; background: var(--teal-bg); border-color: var(--teal-border); color: var(--ink); }
.pill.state.good { background: var(--teal-bg); border-color: var(--teal-border); color: var(--ink); }
.pill.state.warn { background: var(--amber-bg); border-color: var(--amber-border); color: var(--amber); }
.pill.state.bad { background: var(--red-bg); border-color: var(--red-border); color: var(--red); }
.nav-group { padding: 10px 8px 0; }
.nav-head { display: flex; align-items: center; gap: 6px; width: 100%; padding: 4px 8px; border: 0; background: none; text-align: left; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); cursor: pointer; border-radius: 6px; min-height: 28px; }
.nav-head.static { cursor: default; }
.nav-head:hover:not(.static) { color: var(--ink); background: var(--hover); }
.nav-head .chev { width: 14px; height: 14px; transition: transform 0.12s; }
.nav-head[aria-expanded="true"] .chev { transform: rotate(90deg); }
.nav-list { display: grid; gap: 1px; margin-top: 2px; }
.nav-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 5px 10px 5px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 14px; line-height: 1.35; position: relative; min-height: 30px; }
.nav-item:hover { background: var(--hover); }
.nav-item[aria-current="page"] { background: var(--teal-bg); font-weight: 600; }
.nav-item[aria-current="page"]::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 2px; background: var(--teal); }
.nav-label { display: grid; min-width: 0; }
.nav-label .nm { overflow-wrap: anywhere; }
.nav-amt { font-size: 12px; color: var(--muted); font-weight: 400; white-space: nowrap; font-family: inherit; font-variant-numeric: tabular-nums; }
.nav-count { flex: none; font-size: 12px; color: var(--muted); padding: 0 6px; border-radius: 999px; background: var(--hover); line-height: 20px; margin-top: 1px; white-space: nowrap; }
.nav-item[aria-current="page"] .nav-count { background: var(--panel); }

/* The header bar of the page. */
.shell { min-width: 0; display: flex; flex-direction: column; }
.bar { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 9px 24px; background: var(--panel); border-bottom: 1px solid var(--rule); min-height: 54px; }
.btn.menu-btn { display: none; }
.crumbs { flex: 1 1 260px; min-width: 0; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; font-size: 14px; }
.crumbs li { display: flex; align-items: center; min-width: 0; }
.crumbs li + li::before { content: "›"; color: var(--muted); padding: 0 8px; }
.crumbs a { color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span[aria-current] { font-weight: 700; overflow-wrap: anywhere; }
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.scanned { color: var(--muted); font-size: 13px; }
.seg { display: inline-flex; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; background: var(--panel); }
.seg button { border: 0; background: transparent; padding: 5px 11px; min-height: 32px; cursor: pointer; font-weight: 600; font-size: 13px; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--teal); color: var(--teal-ink); }
.seg button:focus-visible { outline-offset: -3px; }
.menu { position: relative; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: 280px; padding: 8px; background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14); }
.menu-pop a { display: block; padding: 8px 10px; border-radius: 6px; color: var(--ink); text-decoration: none; font-weight: 600; }
.menu-pop a:hover { background: var(--hover); }
.menu-pop p { padding: 6px 10px 2px; font-size: 13px; color: var(--muted); }
.banner { margin: 12px 24px 0; padding: 10px 12px; border-radius: var(--r); background: var(--red-bg); border: 1px solid var(--red-border); color: var(--red); }

/* ---------------------------------------------------------------- controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px; padding: 5px 13px; border: 1px solid var(--rule); border-radius: 8px; background: var(--panel); color: var(--ink); font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--hover); }
.btn.primary { background: var(--teal); border-color: var(--teal); color: var(--teal-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--red); border-color: var(--red-border); }
.btn.small { min-height: 28px; padding: 2px 10px; font-size: 13px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btnrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
label.field { display: block; font-weight: 600; font-size: 14px; }
label.field > span { display: block; margin-bottom: 4px; }
.input, select.input, textarea.input { width: 100%; min-height: 36px; padding: 6px 10px; border: 1px solid var(--rule); border-radius: 8px; background: var(--panel); color: var(--ink); }
textarea.input { min-height: 84px; font-family: var(--mono); font-size: 13px; resize: vertical; }
.check { display: flex; gap: 8px; align-items: flex-start; }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--teal); flex: none; }
.hint { color: var(--muted); font-size: 13.5px; }
fieldset { margin: 0; padding: 10px 14px 12px; border: 1px solid var(--rule); border-radius: var(--r); min-width: 0; }
legend { font-weight: 600; font-size: 14px; padding: 0 6px; }

/* ---------------------------------------------------------------- pages */
main { padding: 20px 24px 64px; container-type: inline-size; container-name: main; min-width: 0; }
main:focus { outline: none; }
.boot { padding: 40px 16px; color: var(--muted); text-align: center; }
.page { display: grid; gap: 18px; max-width: 1480px; grid-template-columns: minmax(0, 1fr); }
.page.narrow { max-width: 900px; }
.page-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: flex-end; justify-content: space-between; }
.page-head h1 { font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.page-head h1:focus { outline: none; }
.sub-head { font-size: 15px; }
h2 { font-size: 16px; line-height: 1.3; }
h3 { font-size: 14px; }
.card { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 18px; display: grid; gap: 12px; min-width: 0; grid-template-columns: minmax(0, 1fr); }
.card-head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; }
.notice { padding: 10px 12px; border-radius: var(--r); border: 1px solid var(--rule); background: var(--panel); font-size: 14px; }
.notice.ok { background: var(--teal-bg); border-color: var(--teal-border); }
.notice.warn { background: var(--amber-bg); border-color: var(--amber-border); color: var(--amber); }
.notice.err { background: var(--red-bg); border-color: var(--red-border); color: var(--red); }
.empty { padding: 32px 16px; text-align: center; color: var(--muted); display: grid; gap: 12px; justify-items: center; }
.empty strong { color: var(--ink); font-size: 16px; }
.codebox { display: grid; gap: 4px; min-width: 0; }
.codehead { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
pre.code { margin: 0; padding: 12px; background: var(--code-bg); border: 1px solid var(--rule); border-radius: var(--r); font: 12.5px/1.5 var(--mono); overflow: auto; max-height: 320px; white-space: pre; tab-size: 2; }
details > summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.kv { display: grid; grid-template-columns: minmax(84px, max-content) minmax(0, 1fr); gap: 4px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { min-width: 0; overflow-wrap: anywhere; }
.stack { display: grid; gap: 12px; }
.sub { display: block; color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; font-weight: 400; }
.badge { display: inline-block; padding: 0 7px; border-radius: 999px; background: var(--amber-bg); border: 1px solid var(--amber-border); color: var(--amber); font-size: 12px; line-height: 18px; font-weight: 600; white-space: nowrap; }
.badge.plain { background: transparent; border-color: var(--rule); color: var(--muted); }
.badge.bad { background: var(--red-bg); border-color: var(--red-border); color: var(--red); }
.badge.good { background: var(--teal-bg); border-color: var(--teal-border); color: var(--ink); }
.badges { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: 6px; vertical-align: 1px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 28px; padding: 2px 11px; border-radius: 999px; border: 1px solid var(--amber-border); background: var(--amber-bg); color: var(--amber); font-weight: 600; font-size: 13px; text-decoration: none; }
.chip.neutral { border-color: var(--teal-border); background: var(--teal-bg); color: var(--ink); }
.skel-wrap { display: grid; gap: 12px; }
.skel { height: 96px; border-radius: var(--r-lg); background: var(--track); }
.skel.short { height: 48px; width: 60%; }

/* Summary of an overview. */
.summary { gap: 8px; }
.summary .label { color: var(--muted); font-weight: 600; font-size: 14px; }
.summary .total { font-size: clamp(26px, 5vw, 36px); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
.summary .total .num { font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: normal; }
.summary .total small { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.summary .total small.plus { margin: 0 0.5em; font-size: 0.7em; }
.summary .extra { display: flex; flex-wrap: wrap; gap: 2px 20px; font-size: 14px; }
.fine { color: var(--muted); font-size: 13.5px; max-width: 95ch; }
.fx.stale { color: var(--amber); background: var(--amber-bg); border: 1px solid var(--amber-border); border-radius: 6px; padding: 1px 6px; }
.notes ul { display: grid; gap: 6px; font-size: 14px; }
.notes ul li { padding-left: 14px; position: relative; }
.notes ul li::before { content: "·"; position: absolute; left: 2px; color: var(--muted); }

/* ---------------------------------------------------------------- charts */
.charts { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); align-items: start; }
.chart { container-type: inline-size; }
/* One grid for the whole list (subgrid), so that every bar starts and ends at the same place. */
.bars { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(48px, 1fr) max-content; column-gap: 12px; row-gap: 2px; }
.bars > li { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; }
.bar-row { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; row-gap: 2px; align-items: center; padding: 6px 8px; margin: 0 -8px; border-radius: 8px; color: var(--ink); text-decoration: none; }
a.bar-row:hover { background: var(--hover); }
a.bar-row:hover .nm { text-decoration: underline; }
.bar-name { display: grid; min-width: 0; font-size: 14px; line-height: 1.3; }
.bar-name .nm { overflow-wrap: anywhere; }
.bar-track { min-width: 0; display: block; }
svg.barsvg { display: block; overflow: visible; }
.bar-fill { fill: var(--s1); }
.bar-base { pointer-events: none; }
.scale-track { fill: var(--track); }
.k-attached .bar-fill { fill: var(--s2); }
.k-bound .bar-fill { stroke: var(--s1); stroke-width: 1.25; }
.hatch-bg { fill: var(--panel); }
.hatch-line { stroke: var(--s1); stroke-width: 2.2; }
.bar-amt { display: grid; justify-items: end; text-align: right; font-size: 14px; }
.bar-amt .amt, .amt { white-space: nowrap; }
.more { display: block; white-space: nowrap; font-size: 12px; color: var(--muted); }
.k-bound .bar-amt .amt { color: var(--muted); }
/* A narrow chart: the bar goes under the name, the amount stays at the right. */
@container (max-width: 440px) {
  .bars { grid-template-columns: minmax(0, 1fr) max-content; }
  .bar-track { grid-column: 1 / -1; grid-row: 2; }
}
.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 6px; }
.swatch { width: 14px; height: 10px; border-radius: 2px; background: var(--s1); flex: none; }
.swatch.attached { background: var(--s2); }
.swatch.c1 { background: var(--c1); } .swatch.c2 { background: var(--c2); } .swatch.c3 { background: var(--c3); }
.swatch.c4 { background: var(--c4); } .swatch.c5 { background: var(--c5); } .swatch.c0 { background: var(--c0); }
.swatch.none { background: transparent; box-shadow: inset 0 0 0 1.5px var(--grey-mark); }
.swatch.bound { background: repeating-linear-gradient(135deg, var(--s1) 0 2px, var(--panel) 2px 5px); box-shadow: inset 0 0 0 1.5px var(--s1); }
/* A donut: the ring with the whole in its centre, the legend beside it (under it where the card is narrow). */
.charts > .span-all { grid-column: 1 / -1; }
.donut { display: grid; grid-template-columns: 184px minmax(0, 600px); column-gap: 36px; row-gap: 12px; align-items: center; }
.donut.single { grid-template-columns: minmax(0, 600px); }
.donut.single .swatch { visibility: hidden; }
.donut-fig { position: relative; width: 184px; height: 184px; }
svg.donut-svg { display: block; }
.slice { stroke: none; transition: opacity 0.15s ease-out; }
.slice.c1 { fill: var(--c1); } .slice.c2 { fill: var(--c2); } .slice.c3 { fill: var(--c3); }
.slice.c4 { fill: var(--c4); } .slice.c5 { fill: var(--c5); } .slice.c0 { fill: var(--c0); }
.slice-link { cursor: pointer; }
.donut.has-hi [data-slice]:not(.hi) .slice, .donut.has-hi path.slice[data-slice]:not(.hi) { opacity: 0.28; }
.donut-centre { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; pointer-events: none; line-height: 1.2; }
.dc-top, .dc-sub { color: var(--muted); font-size: 12px; font-weight: 600; max-width: 118px; }
.dc-amt { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.dc-amt.long { font-size: 15.5px; }
/* The legend is one grid (subgrid), so that amounts and shares line up in columns. */
.donut-legend { display: grid; grid-template-columns: 10px minmax(0, 1fr) max-content minmax(3.2em, max-content); column-gap: 12px; row-gap: 0; font-size: 14px; }
.donut-legend > li { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; border-top: 1px solid var(--rule); }
.donut-legend > li:first-child { border-top: 0; }
.dl-row { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: baseline; padding: 6px 8px; margin: 0 -8px; border-radius: 8px; color: var(--ink); text-decoration: none; transition: background-color 0.15s ease-out; }
.dl-row .swatch { width: 10px; height: 10px; border-radius: 3px; align-self: center; }
.dl-name { display: grid; min-width: 0; line-height: 1.3; }
.dl-name .nm { overflow-wrap: anywhere; }
.dl-amt { display: grid; justify-items: end; text-align: right; white-space: nowrap; }
.dl-amt .more { font-size: 12.5px; color: var(--muted); }
.dl-share { text-align: right; color: var(--muted); font-size: 13px; }
a.dl-row:hover .nm { text-decoration: underline; }
.donut-legend > li.hi .dl-row, a.dl-row:hover { background: var(--hover); }
.donut-notes { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 2px 18px; }
.donut-notes .hint { font-size: 13px; }
@container (max-width: 560px) {
  .donut { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .donut-legend, .donut-notes { justify-self: stretch; }
}
.bounds { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--rule); }
.timechart { min-height: 60px; }
.plot { position: relative; }
.line-chart { display: block; max-width: 100%; }
.line-chart .grid { stroke: var(--rule); stroke-width: 1; }
.line-chart .axis { stroke: var(--grey-mark); stroke-width: 1; }
.line-chart .tick { fill: var(--muted); font: 11.5px var(--mono); }
.line-chart .series { fill: none; stroke: var(--s1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.line-chart .dot { fill: var(--s1); stroke: var(--panel); stroke-width: 2; }
.line-chart .hit { fill: transparent; cursor: crosshair; }
.line-chart .endlabel { fill: var(--ink); font: 600 12px var(--mono); }
.tip { position: absolute; z-index: 5; padding: 4px 8px; border-radius: 6px; background: var(--ink); color: var(--bg); font-size: 12.5px; white-space: nowrap; pointer-events: none; }
.numbers summary { font-size: 13px; color: var(--muted); }
.empty-chart { padding: 18px 12px; border: 1px dashed var(--rule); border-radius: var(--r); color: var(--muted); font-size: 14px; text-align: center; }
.multiples { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.multiples h3 { margin-bottom: 4px; }
.meters { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(48px, 1fr) max-content; gap: 8px 12px; }
.meter { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: center; font-size: 14px; }
.meter .nm { overflow-wrap: anywhere; }
.meter-track { fill: var(--track); }
.meter-fill { fill: var(--s1); }
svg.meter-bar { display: block; }

/* ---------------------------------------------------------------- big numbers, the "i" popover */
.tiles { display: flex; flex-wrap: wrap; gap: 10px 32px; align-items: flex-start; }
.tile { display: grid; gap: 0; min-width: 0; }
.tile-label { color: var(--muted); font-size: 13px; font-weight: 600; }
.tile-value { font-size: 22px; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
.tile.hero .tile-value { font-size: clamp(30px, 6vw, 40px); letter-spacing: -0.02em; }
.tile-sub { color: var(--muted); font-size: 13px; }
.conclusion { font-size: 15.5px; font-weight: 600; max-width: 95ch; }
.about { position: relative; display: inline-block; }
.about > summary { list-style: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border-radius: 50%; cursor: pointer; }
.about > summary::-webkit-details-marker { display: none; }
.about .i { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--muted); color: var(--muted); font: 700 11px/1 var(--sans); font-style: italic; }
.about[open] .i, .about > summary:hover .i { border-color: var(--teal); color: var(--teal); }
.about-pop { position: absolute; z-index: 25; left: 0; top: calc(100% + 6px); width: min(360px, calc(100vw - 32px)); padding: 10px 12px; display: grid; gap: 6px; background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14); font-size: 13.5px; color: var(--ink); }
.about.right .about-pop { left: auto; right: 0; }

/* ---------------------------------------------------------------- resource page */
.res-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; align-items: center; }
.res-title { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; min-width: 0; }
.res-title h1 { font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.res-title h1:focus { outline: none; }
.res-sub { grid-column: 1 / -1; }
.res-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.res-main { padding: 0; gap: 0; }
@container main (min-width: 1000px) {
  .res-grid { grid-template-columns: minmax(0, 1fr) minmax(250px, 300px); }
  .facts { position: sticky; top: 70px; }
}
.tabs { display: flex; gap: 2px; padding: 0 12px; border-bottom: 1px solid var(--rule); overflow-x: auto; scrollbar-width: thin; }
.tabs [role="tab"] { flex: none; display: inline-flex; gap: 6px; align-items: center; min-height: 44px; padding: 0 12px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer; margin-bottom: -1px; }
.tabs [role="tab"]:hover { color: var(--ink); }
.tabs [role="tab"][aria-selected="true"] { color: var(--ink); border-bottom-color: var(--teal); }
.tabs [role="tab"]:focus-visible { outline-offset: -4px; }
.tab-count { font-size: 12px; padding: 0 6px; border-radius: 999px; background: var(--amber-bg); color: var(--amber); line-height: 18px; }
.tabpanel { padding: 18px; min-width: 0; }
.tabpanel:focus-visible { outline-offset: -3px; }
.tab-body { display: grid; gap: 14px; min-width: 0; }
.tab-title { font-size: 15px; }
.tab-foot { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.tab-foot .hint { font-size: 13px; }
.facts { gap: 10px; align-content: start; }
.facts > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 0; }
.facts > summary::-webkit-details-marker { display: none; }
.facts > summary::after { content: "+"; color: var(--muted); font-weight: 700; }
.facts[open] > summary::after { content: "−"; }
.facts[open] > summary { margin-bottom: 4px; }
.facts h3 { padding-top: 8px; border-top: 1px solid var(--rule); }
.facts .attrs summary { font-size: 13.5px; color: var(--muted); }
.refs { display: grid; gap: 4px; font-size: 14px; }
.refs li { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; }
.refs .nm { overflow-wrap: anywhere; }
.refs .amt { margin-left: auto; }

.k-bound .amt { color: var(--muted); }


/* The Prices tab. */
.tablecard.flat { border: 1px solid var(--rule); border-radius: var(--r); }
.prices tr.group th { background: var(--hover); font-size: 11.5px; line-height: 20px; padding: 4px 10px; }
.prices tr.now td { background: var(--teal-bg); }
.prices tr.now .nm { font-weight: 700; }
.prices .badge { margin-left: 6px; }
.prices td.col-zone { white-space: nowrap; }
.prices .opt { display: inline-grid; }
.prices .nm { white-space: nowrap; }
.prices td.amount { min-width: 120px; }
svg.pricebar { display: block; margin-top: 4px; }
.pricebar rect { fill: var(--grey-mark); }
.prices tr.now .pricebar rect { fill: var(--s1); }
.prices td.diff { color: var(--muted); }
.prices td.diff.down { color: var(--ink); font-weight: 600; }
.move a { font-weight: 600; }
.pricebar.save rect { fill: var(--s1); }
td .pricebar.save { margin-left: auto; max-width: 140px; }
.tiles > .about { align-self: center; }

/* The Findings tab. */
.fcards { display: grid; gap: 8px; }
.fcard { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 12px; align-items: baseline; padding: 10px 12px; border: 1px solid var(--amber-border); background: var(--amber-bg); border-radius: var(--r); font-size: 14px; }
.fcard .ev { overflow-wrap: anywhere; }
.fcard .save { text-align: right; white-space: nowrap; }
.fcard .save .tile-label { font-weight: 400; }
.fcard .ftitle { grid-column: 2 / -1; }
.ai { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--rule); }
.fcards + .tab-foot + .ai, .tab-body > .ai:first-child { border-top: 0; padding-top: 0; }
.ai .locked { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; color: var(--muted); }
.ai .locked .icon { width: 16px; height: 16px; color: var(--amber); }
.ai .example { justify-self: start; }
.ai-summary p { font-size: 14px; padding-top: 4px; }
.ai-summary summary, .ai-more summary { font-size: 13.5px; color: var(--muted); }
.item { gap: 6px; padding: 12px 14px; }
.ai-head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.ai-title { font-size: 15px; flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; }
.ai-more { display: grid; gap: 6px; font-size: 14px; }
.ai-more[open] { gap: 8px; }
.ai-more ol { list-style: decimal; padding-left: 22px; display: grid; gap: 2px; }

/* The report, in a dialog. */
.report-dialog { width: min(860px, calc(100vw - 24px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--panel); color: var(--ink); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); }
.report-dialog::backdrop { background: rgba(0, 0, 0, 0.45); }
.dialog-head { position: sticky; top: 0; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; padding: 14px 18px; background: var(--panel); border-bottom: 1px solid var(--rule); }
.dialog-head h2 { overflow-wrap: anywhere; }
#report-body { display: grid; gap: 18px; padding: 16px 18px 20px; }
.rep { display: grid; gap: 6px; }
.rep ul { display: grid; gap: 4px; font-size: 14px; }
.rep ul li { overflow-wrap: anywhere; }
.replines { list-style: decimal; padding-left: 22px; display: grid; gap: 6px; font-size: 13.5px; color: var(--ink); }
.replines li { overflow-wrap: anywhere; }
.findings-card { border-color: var(--amber-border); }
.finding { border: 1px solid var(--amber-border); background: var(--amber-bg); border-radius: var(--r); padding: 10px 12px; display: grid; gap: 4px; font-size: 14px; }

/* ---------------------------------------------------------------- tables */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; }
.toolbar .search { flex: 1 1 240px; max-width: 380px; }
.filter { display: grid; gap: 2px; font-size: 12.5px; color: var(--muted); }
.filter.check { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink); min-height: 36px; }
.filter.check input { margin: 0; }
.toolbar select.input { width: auto; max-width: 100%; min-height: 34px; padding: 3px 8px; font-size: 14px; }
.toolbar .showing { font-size: 13.5px; color: var(--muted); margin-left: auto; align-self: center; }
/* Never cut: a table that is still too wide scrolls inside its card. */
.tablecard { padding: 0; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; line-height: 24px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); padding: 6px 10px; border-bottom: 1px solid var(--rule); vertical-align: middle; font-weight: 700; }
.table td { padding: 9px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; overflow-wrap: anywhere; }
.table tbody tr:last-child td { border-bottom: 0; }
.table .r { text-align: right; }
.table td.r, .table th.r { white-space: nowrap; }
.table .amount .amt, .table .amount .more { display: block; }
.table .nm { font-weight: 600; overflow-wrap: anywhere; }
.table td.mono, .table .col-id, .table .col-addr { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.table .col-type, .table .col-zone, .table .col-basis, .table .col-kind, .table .col-account { color: var(--muted); font-size: 13.5px; }
.table .col-state { width: 1%; white-space: nowrap; }
.table td.col-finding { position: relative; width: 1%; white-space: nowrap; }
.list .col-id, .list .col-type, .list .col-zone, .list .col-addr, .list .col-basis { white-space: nowrap; overflow-wrap: normal; }
.table a.nm { text-decoration: none; }
.table a.nm:hover { text-decoration: underline; }
.table .sort { border: 0; background: none; padding: 0; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; display: inline-flex; gap: 4px; align-items: baseline; text-align: inherit; min-height: 24px; }
.table .sort:hover { color: var(--ink); }
.table th[aria-sort="ascending"], .table th[aria-sort="descending"] { color: var(--ink); }
.sort-mark { font-size: 12px; min-width: 0.8em; }
.table tr.row-link { cursor: pointer; }
.table tbody tr.row-link:hover { background: var(--hover); }
.table tfoot th, .table tfoot td { border-top: 2px solid var(--rule); border-bottom: 0; padding: 10px; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--ink); text-align: left; vertical-align: top; }
.table tfoot .r { text-align: right; }
.table td.none { text-align: center; padding: 22px; }
.table.compact td, .table.compact th { padding: 4px 8px; font-size: 13px; }
/* Columns that give way on a narrow page; the totals row has a cell under each, so it still lines up. */
@container main (max-width: 1180px) { .list .col-addr { display: none; } }
@container main (max-width: 1020px) { .list .col-id, .list .col-account { display: none; } }
@container main (max-width: 860px) { .list .col-kind, .list .col-basis { display: none; } }
/* Narrow: every row is a card with its labels; nothing is cut and an amount never breaks. */
@container main (max-width: 640px) {
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .table, .table tbody, .table tfoot, .table tr, .table td, .table tfoot th { display: block; width: auto; }
  .table tr { padding: 10px 14px; border-bottom: 1px solid var(--rule); }
  .table td, .table tfoot th, .table tfoot td { padding: 2px 0; border: 0; text-align: left; }
  .table .r, .table td.r { text-align: left; white-space: normal; }
  .table .amount .amt, .table .amount .more { display: inline; margin-right: 8px; }
  .table td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: 13px; font-family: var(--sans); }
  .table td.col-name::before, .table td.col-state::before { content: none; }
  .table td.blank, .table td:empty { display: none; }
  .table tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; padding: 10px 12px; }
  .table td { flex: 1 1 100%; }
  .list td.col-state { flex: 0 0 auto; width: auto; }
  .list td.col-name { flex: 1 1 0; min-width: 0; }
  .list td.col-type, .list td.col-zone, .list td.col-addr { flex: 0 1 auto; }
  .list .col-id, .list .col-type, .list .col-zone, .list .col-addr, .list .col-account, .list .col-kind { display: block; }
  .list .col-basis { display: none; }
  .table tfoot tr { border-top: 2px solid var(--rule); }
  .prices tr.group { display: block; padding: 0; }
  .prices tr.group th { display: block; }
  .prices td { flex: 0 1 auto; }
  .prices td.col-name, .prices td.amount { flex: 1 1 100%; }
  .prices tr.now td.diff { display: none; }
  .fcard { grid-template-columns: auto minmax(0, 1fr); }
  .fcard .save { grid-column: 1 / -1; text-align: left; white-space: normal; }
}

/* ---------------------------------------------------------------- add an account, settings, scan */
.choices { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.choice { text-decoration: none; color: var(--ink); gap: 6px; height: 100%; }
.choice strong { font-size: 16px; }
.choice:not(.soon):hover { border-color: var(--teal-border); background: var(--teal-bg); }
.choice.soon { border-style: dashed; background: transparent; color: var(--muted); cursor: default; }
.choice.soon strong { color: var(--muted); font-weight: 600; }
.choice.soon .hint { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.steps-list { display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 16px 18px; }
.step-no { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: var(--teal-ink); font-weight: 800; font-size: 14px; }
.step-body { display: grid; gap: 10px; min-width: 0; }
.step-body h2 { font-size: 16px; padding-top: 3px; }
.card-head h2 { font-size: 16px; }
.flow-or { font-size: 16px; padding-top: 6px; }
.fold > summary { padding: 0; }
.fold:not([open]) { gap: 0; }
.fold h3 { font-size: 14px; padding-top: 4px; }
.step-body .notice, .step-body .hint { overflow-wrap: anywhere; }
.notice .events { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: 13px; }
.notice .events .mono { font-size: 12px; }
.acct { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.acct .who { min-width: 0; }
.acct .who .nm { overflow-wrap: anywhere; }
.acct-facts li { overflow-wrap: anywhere; }
.scan-acct { display: grid; gap: 8px; }
.scan-acct .ahead { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; justify-content: space-between; }
.region { border-top: 1px solid var(--rule); padding-top: 6px; }
.region summary { display: flex; gap: 10px; justify-content: space-between; align-items: baseline; font-weight: 600; font-size: 14px; }
.region summary .mono { font-size: 13.5px; }
.steps { display: grid; gap: 2px; padding: 4px 0 6px; font-size: 13.5px; }
.steps li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; }
.steps .msg { grid-column: 1 / -1; color: var(--red); }
.steps .msg.soft { color: var(--muted); }
.st { font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.st.scanning { color: var(--teal); }
.st.denied, .st.failed { color: var(--red); }
.progress { height: 6px; border-radius: 3px; background: var(--track); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--bar); transition: width 0.2s; }
/* The total is not known yet: a piece of the bar moves, and no share of the work is shown. */
.progress.indeterminate i { width: 30%; border-radius: 3px; animation: progress-slide 1.4s ease-in-out infinite; }
@keyframes progress-slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(334%); } }
.item h3 { font-size: 16px; }
.item ol { list-style: decimal; padding-left: 22px; display: grid; gap: 2px; }
.item .tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* ---------------------------------------------------------------- the static demo of the website (static mode of app.js) */
.demo-strip { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 2px 10px; padding: 6px 16px; background: var(--teal-bg); border-bottom: 1px solid var(--teal-border); color: var(--ink); font-size: 13px; line-height: 1.4; text-align: center; }
.demo-strip a, .demo-note a { font-weight: 700; }
.banner.info, .notice.info { background: var(--teal-bg); border-color: var(--teal-border); color: var(--ink); }
.demo-cta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; }

/* ---------------------------------------------------------------- a phone: the rail and the navigation are a drawer */
@media (max-width: 760px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .drawer { position: fixed; left: 0; top: 0; bottom: 0; height: auto; max-width: 100vw; transform: translateX(-102%); transition: transform 0.18s ease-out; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0); visibility: hidden; }
  body.drawer-open .drawer { transform: none; visibility: visible; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.35); }
  .side { width: min(var(--side-w), calc(100vw - var(--rail-w) - 24px)); }
  .btn.menu-btn { display: inline-flex; }
  .bar { padding: 8px 12px; gap: 8px 10px; }
  .crumbs { flex-basis: calc(100% - 90px); order: 0; }
  .tools { flex-basis: 100%; }
  .scanned { display: none; }
  main { padding: 16px 12px 56px; }
  .banner { margin: 12px 12px 0; }
  .card { padding: 14px; }
  .res-main.card { padding: 0; }
  .tabs { padding: 0 4px; }
  .tabpanel { padding: 14px 12px; }
  .step { grid-template-columns: minmax(0, 1fr); padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  /* Without the movement the indeterminate bar is a striped track: clearly not a share of anything. */
  .progress.indeterminate i { width: 100%; background: repeating-linear-gradient(90deg, var(--bar) 0 8px, var(--track) 8px 16px); }
}
@media (forced-colors: active) {
  .progress i, .bar-fill, .meter-fill, .h-ok .health { background: Highlight; fill: Highlight; }
  .line-chart .series { stroke: Highlight; }
}
details.card > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::after { content: "+"; color: var(--muted); font-weight: 700; }
details.card[open] > summary::after { content: "−"; }
details.card > summary h2 { display: inline; }
.summary .total .num { font-family: var(--sans); font-variant-numeric: normal; letter-spacing: -0.02em; }
@media (max-width: 760px) {
  .tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
  .tiles > .tile.hero { grid-column: 1 / -1; }
  .tiles > .tile-saving { grid-column: 1 / -1; }
  .tiles > .about { justify-self: start; }
}

/* ---------------------------------------------------------------- one number, the rest folded */
.howcalc { font-size: 13.5px; color: var(--muted); }
.howcalc > summary { font-weight: 600; font-size: 13px; color: var(--muted); display: inline-block; }
.howcalc[open] > summary { color: var(--ink); }
.howcalc .kv { margin-top: 6px; font-size: 13.5px; max-width: 90ch; }
.howcalc .kv dd { color: var(--ink); }
.tile-value .per { font-size: 0.45em; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.res-tiles { align-items: flex-end; }
.cost-totals { display: grid; gap: 0; margin-top: 10px; font-size: 13.5px; border-top: 2px solid var(--rule); }
.cost-totals > li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--rule); }
.cost-totals > li:last-child { border-bottom: 0; }
.cost-totals .sub { color: var(--muted); font-size: 12.5px; }

/* ---------------------------------------------------------------- on EU clouds */
.eu-bars .k-aws .bar-fill { fill: var(--grey-mark); }
.eu-bars .bar-range { fill: var(--s1); opacity: 0.35; }
.eu-bars .k-eu .more { color: var(--teal); }
.eu-card .coverage { font-size: 14px; margin-top: 8px; }
.eu-card .hint { font-size: 13px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 12px; }
.btn.cta-btn { border-color: var(--teal); color: var(--teal); background: var(--panel); }
.btn.cta-btn:hover { background: var(--teal-bg); }
.cta .hint { font-size: 12.5px; }
.cta .cta-offer { flex-basis: 100%; font-size: 13px; font-weight: 600; color: var(--teal); }
.cta-link { font-weight: 600; font-size: 13px; }
.sec-title { font-size: 16px; margin-top: 6px; }
.table td.best .amt { color: var(--teal); font-weight: 700; }
.eq-btn { display: block; margin-top: 2px; padding: 0; border: 0; background: none; color: var(--muted); font-size: 12.5px; text-align: left; cursor: pointer; }
.eq-btn:hover { color: var(--ink); text-decoration: underline; }
.table tr.eq-row td.eq { font-size: 12.5px; color: var(--muted); padding-top: 0; }
.table td.eq ul { display: grid; gap: 2px; }
.table td.r .range { white-space: normal; }
.compare-table td.r { white-space: normal; }
.table td.eq strong { color: var(--ink); font-weight: 600; }

/* "from ≈ €X on EU clouds": green, secondary, next to the number of a header; its panel lists the providers. */
.eu-from { display: block; margin-top: 4px; }
.eu-from > summary { width: auto; height: auto; display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 4px; padding: 2px 8px; border-radius: 8px; color: var(--teal); background: var(--teal-bg); border: 1px solid var(--teal-border); font-size: 14px; font-weight: 600; }
.eu-from > summary:hover, .eu-from[open] > summary { border-color: var(--teal); }
.eu-from > summary small { color: var(--muted); font-weight: 400; font-size: 12.5px; }
.eu-pop { width: min(340px, calc(100vw - 32px)); }
.eu-mini { display: grid; gap: 2px; }
.eu-mini li { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; border-bottom: 1px solid var(--rule); }
.eu-mini li:last-child { border-bottom: 0; }
.eu-mini li.best .nm, .eu-mini li.best .amt { color: var(--teal); font-weight: 700; }
.eu-mini .nm { overflow-wrap: anywhere; min-width: 0; }
.eu-pop .cta { margin-top: 2px; }
.prices tbody.eu-group tr.group th { color: var(--teal); }
.prices tr.eu td { background: color-mix(in srgb, var(--teal-bg) 55%, transparent); }
.badge.eu { background: var(--teal-bg); border-color: var(--teal-border); color: var(--teal); }
.pricebar .pb-range { fill: var(--s1); opacity: 0.35; }
.notice .who { margin-top: 4px; font-weight: 600; overflow-wrap: anywhere; }
