/* Budget — after Denis's mockups: white rounded cards on light grey, one green. */
:root {
  --bg: #f3f5f4;
  --card: #ffffff;
  --ink: #101828;
  --muted: #667085;
  --line: #eaeeec;
  --field: #f2f4f3;
  --green: #1f9d4a;
  --green-2: #137a36;
  --green-ink: #15803d;
  --green-soft: #e7f5ec;
  --red: #a8241c;
  --red-soft: #fdeceb;
  --warn: #b45309;
  --shadow: 0 1px 2px rgb(16 24 40 / 0.04), 0 6px 20px rgb(16 24 40 / 0.05);
  --gutter: max(16px, env(safe-area-inset-left));
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c110e;
    --card: #161d19;
    --ink: #ecf2ee;
    --muted: #9aa69f;
    --line: #253029;
    --field: #1e2721;
    --green: #22a352;
    --green-2: #157a39;
    --green-ink: #5fd38b;
    --green-soft: #173523;
    --red: #ff8f86;
    --red-soft: #3b1f1d;
    --warn: #f0b153;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}
#app { max-width: 32rem; margin: 0 auto; padding: max(12px, env(safe-area-inset-top)) var(--gutter) calc(104px + env(safe-area-inset-bottom)); }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 8px; }
button { font: inherit; color: inherit; cursor: pointer; }
.loading, .empty { color: var(--muted); }
.empty.card { padding: 18px 16px; }
.neg { color: var(--red); }
.pos { color: var(--green-ink); }
.i { width: 24px; height: 24px; flex: none; }
.notice { background: var(--ink); color: var(--card); border-radius: 14px; padding: 10px 14px; margin-bottom: 12px; }

/* Category colours: icon tiles, donut segments and legend dots */
.c-green { --c: #1f9d4a; } .c-orange { --c: #d97706; } .c-teal { --c: #0d9488; } .c-blue { --c: #2f6fe4; }
.c-purple { --c: #8b5cf6; } .c-yellow { --c: #ca8a04; } .c-red { --c: #dc2626; } .c-grey { --c: #98a2b3; }
.c-pink { --c: #db2777; } .c-indigo { --c: #4f46e5; } .c-cyan { --c: #0891b2; } .c-lime { --c: #65a30d; }
.c-brown { --c: #a16207; } .c-slate { --c: #475569; } .c-sky { --c: #0284c7; } .c-rose { --c: #e11d48; }
.tile {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 14px;
  color: var(--c); background: color-mix(in srgb, var(--c) 13%, var(--card));
}
.tile.round { border-radius: 50%; }
.tile .i { width: 22px; height: 22px; }

/* Header and tab bar */
.top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; }
.logo { width: 38px; height: 38px; }
.logo-bg { fill: var(--green); }
.logo-bar { fill: #fff; }
.bell { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); }
.bell.dot::after { content: ""; position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--green); border: 2px solid var(--card); }
.tabs {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 32rem; z-index: 10;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--card) 94%, transparent); border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; color: var(--muted); font-size: 12px; font-weight: 500; text-decoration: none; }
.tab .i { width: 26px; height: 26px; }
.tab.on { color: var(--green-ink); font-weight: 600; }
.tab.on .i { fill: color-mix(in srgb, currentColor 16%, transparent); }
.fab { display: grid; place-items: center; width: 58px; height: 58px; margin-top: -28px; border-radius: 50%; color: #fff;
  background: linear-gradient(160deg, var(--green), var(--green-2)); box-shadow: 0 8px 18px rgb(19 122 54 / 0.32); }
.fab .i { width: 30px; height: 30px; }
.tab.add { color: var(--ink); }

/* Page titles */
.intro { margin: 6px 0 16px; }
.greet { color: var(--muted); font-size: 18px; }
.hello { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.sub { color: var(--muted); font-size: 16px; margin-top: 4px; }
.sub strong { color: var(--ink); }
.sub.bad { color: var(--red); font-weight: 600; }
.title { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; margin-top: 2px; }
.lead { color: var(--muted); margin: 2px 0 16px; }

/* Green hero card */
.hero {
  position: relative; overflow: hidden; border-radius: 24px; padding: 18px 20px 20px; color: #fff;
  background: linear-gradient(135deg, #2db457 0%, #1a8f41 55%, #12702f 100%);
  box-shadow: 0 10px 24px rgb(19 122 54 / 0.22);
}
.wave { position: absolute; right: 0; bottom: 0; width: 75%; height: 100%; fill: rgb(255 255 255 / 0.09); pointer-events: none; }
.hero > :not(.wave) { position: relative; }
.hero-top { display: flex; align-items: center; justify-content: space-between; }
.month-pick { position: relative; display: inline-flex; align-items: center; gap: 6px; font-size: 20px; font-weight: 600; }
.month-pick .i { width: 20px; height: 20px; }
.month-pick select { position: absolute; inset: 0; opacity: 0; width: 100%; font-size: 16px; }
.month-pick.plain { font-size: 15px; font-weight: 500; }
.hero-btn { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgb(255 255 255 / 0.16); }
.hero-range { opacity: 0.85; font-size: 15px; margin-top: 2px; }
.hero-label { font-size: 17px; opacity: 0.92; margin-top: 18px; }
.hero-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.hero-amount { font-size: 38px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.hero-amount small { font-size: 19px; font-weight: 600; opacity: 0.75; }
.hero-change { font-size: 15px; display: flex; align-items: center; gap: 6px; }
.chip-glass { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px; background: rgb(255 255 255 / 0.18); font-size: 15px; font-weight: 600; }
.chip-glass .i { width: 16px; height: 16px; }
.hero-bar { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-weight: 600; }
.hero.small { padding: 16px 20px; }
.hero.small .hero-label { margin-top: 0; }

/* Month tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.tile-card { background: var(--card); border-radius: 18px; padding: 14px 10px 14px 12px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tile-card .tile { width: 40px; height: 40px; margin-bottom: 4px; }
.t-label { color: var(--muted); font-size: 15px; }
.tile-card strong { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }

/* Cards */
.card { background: var(--card); border-radius: 20px; padding: 16px; margin: 14px 0; box-shadow: var(--shadow); border: 0; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.card-head h2 { font-size: 19px; font-weight: 700; }
.card-head a { display: inline-flex; align-items: center; gap: 2px; color: var(--green-ink); font-size: 15px; font-weight: 600; text-decoration: none; }
.card-head a .i { width: 16px; height: 16px; }

/* Spending by category */
.spend { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 14px; align-items: center; }
.donut { position: relative; }
.donut svg { display: block; width: 100%; height: auto; }
.seg, .seg-track { fill: none; stroke-width: 15; }
.seg { stroke: var(--c); }
.seg-track { stroke: var(--line); }
.donut-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut-center strong { font-size: 14px; }
.donut-center span { color: var(--muted); font-size: 12px; }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 13.5px; }
.legend li { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 8px; }
.legend .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.legend .l-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.legend .l-amt { text-align: right; white-space: nowrap; }
.legend small { color: var(--muted); }

/* Transaction rows */
.tx-list, .acct-list, .budget-list, .bill-list { list-style: none; margin: 0; padding: 0; }
.tx-list li + li, .acct-list li + li, .budget-list li + li, .bill-list li + li { border-top: 1px solid var(--line); }
.tx { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 0; text-decoration: none; }
.tx-main { display: flex; flex-direction: column; min-width: 0; }
.tx-title { font-weight: 650; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-meta { color: var(--muted); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.amt { font-weight: 700; font-size: 16px; white-space: nowrap; }
.amt.neg { color: var(--red); }
.amt.pos { color: var(--green-ink); }
.chev { width: 18px; height: 18px; color: var(--muted); }
.acct-list a, .acct-list button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 0; text-decoration: none; background: none; border: 0; text-align: left; }
.a-name, .acct-list a > span:first-child:not(.tile) { flex: 1; }
.a-name small { color: var(--muted); font-size: 13px; }
.acct-list .danger .a-name { color: var(--red); }

/* Transactions */
.search { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 14px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); outline: none; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 6px; margin: 14px 0; }
.chips { display: flex; gap: 8px; }
.chip input, .seg-opt input, .cat input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: block; font-size: 15px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-weight: 500; }
.chip input:checked + span { background: var(--green-ink); border-color: var(--green-ink); color: #fff; }
.chip input:focus-visible + span, .seg-opt input:focus-visible + span, .cat input:focus-visible + .cat-box { outline: 3px solid var(--green); outline-offset: 2px; }
.pill { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); }
.pill > .i { display: none; }
.summary { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 12px; align-items: end; }
.hero-month { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.summary .k { font-size: 14px; opacity: 0.85; }
.summary .v { font-size: 21px; font-weight: 700; margin-bottom: 4px; }
.cols { display: flex; align-items: flex-end; gap: 6px; }
.col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
.col-v, .col-l { font-size: 10.5px; opacity: 0.85; white-space: nowrap; }
.col-track { height: 110px; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.col-bar { width: 72%; min-height: 3px; border-radius: 9px 9px 4px 4px; background: rgb(255 255 255 / 0.55); }
.day { padding: 4px 16px; }
.day-head { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 0 6px; border-bottom: 1px solid var(--line); }
.day-head h3 { font-size: 16px; font-weight: 700; }
.day-head span { color: var(--muted); font-size: 14px; }

/* Add / edit */
.sub-head { display: grid; grid-template-columns: 46px 1fr 46px; align-items: center; margin: 4px 0 14px; }
.sub-head h1 { text-align: center; font-size: 22px; font-weight: 750; }
.back { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.seg-opt span { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 4px; border-radius: 14px; color: var(--muted); font-weight: 600; }
.seg-opt span .i { width: 20px; height: 20px; color: var(--green-ink); }
.seg-opt input:checked + span { background: linear-gradient(160deg, var(--green), var(--green-2)); color: #fff; }
.seg-opt input:checked + span .i { color: #fff; }
.amount-card { display: block; margin: 14px 0; padding: 14px 16px 12px; border-radius: 20px; background: var(--green-soft); }
.amount-card .k { color: var(--muted); font-size: 15px; }
.amount-row { display: flex; align-items: baseline; gap: 6px; }
.cur { font-size: 34px; font-weight: 800; }
.amount-row input { width: 100%; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 42px; font-weight: 800; color: var(--ink); outline: none; letter-spacing: -0.02em; }
.amount-row input::placeholder { color: color-mix(in srgb, var(--ink) 35%, transparent); }
.cats legend { float: left; width: 100%; padding: 0; margin-bottom: 12px; font-size: 18px; font-weight: 700; }
.cat-row { clear: both; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cat-box { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 2px 10px; border-radius: 16px; border: 2px solid transparent;
  background: color-mix(in srgb, var(--c) 10%, var(--card)); color: var(--c); }
.cat-box span { color: var(--ink); font-size: 13px; font-weight: 500; text-align: center; }
.cat input:checked + .cat-box { border-color: var(--c); background: var(--card); }
.rows { padding: 2px 16px; }
.row-field { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.rows .row-field + .row-field, .rows datalist + .row-field { border-top: 1px solid var(--line); }
.rf-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rf-body b { font-size: 16px; font-weight: 650; }
.rf-body i { color: var(--muted); font-style: normal; font-weight: 400; }
.rf-body input, .rf-body select, .rf-body textarea {
  width: 100%; border: 0; padding: 0; background: transparent; font: inherit; font-size: 16px; color: var(--muted); outline: none;
  -webkit-appearance: none; appearance: none; text-align: left; resize: none;
}
.rf-body input[type=date] { min-height: 22px; }
.notes { align-items: flex-start; }
.save {
  display: block; width: 100%; margin: 18px 0 8px; padding: 16px; border: 0; border-radius: 18px; text-align: center; text-decoration: none;
  background: linear-gradient(160deg, var(--green), var(--green-2)); color: #fff; font-size: 18px; font-weight: 700;
  box-shadow: 0 8px 18px rgb(19 122 54 / 0.22);
}
.save:disabled { opacity: 0.6; }
button.link { border: 0; background: none; padding: 8px 0; text-decoration: underline; color: var(--muted); }
button.link.danger { display: block; margin: 4px auto 0; color: var(--red); }
.entry:has([name=kind][value=expense]:checked) :is(.only-income, .only-transfer),
.entry:has([name=kind][value=income]:checked) :is(.only-expense, .only-transfer),
.entry:has([name=kind][value=transfer]:checked) :is(.only-expense, .only-income) { display: none; }

/* Budget */
.bar { display: block; flex: 1; height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 9%, transparent); overflow: hidden; }
.bar .fill { display: block; height: 100%; border-radius: 99px; background: var(--green); }
.bar.warn .fill { background: #e0a106; }
.bar.over .fill { background: #dc2626; }
.bar.light { background: rgb(255 255 255 / 0.25); }
.bar.light .fill { background: #c6f6d5; }
.budget-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr) 28% 42px; align-items: center; gap: 10px; padding: 9px 0; }
.b-name { display: flex; flex-direction: column; min-width: 0; }
.b-name b { font-weight: 650; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-name span { color: var(--muted); font-size: 13.5px; }
.b-pct { text-align: right; font-size: 14px; font-weight: 600; }
.b-pct.warn { color: var(--warn); }
.b-pct.over { color: var(--red); }
.trend-box { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 10px; align-items: center; }
.trend-stat { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.trend-stat strong { font-size: 24px; font-weight: 800; }
.trend-stat > span { color: var(--muted); font-size: 14px; }
.chip-soft { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.chip-soft .i { width: 15px; height: 15px; }
.chip-soft.down { background: var(--green-soft); color: var(--green-ink); }
.chip-soft.up { background: var(--red-soft); color: var(--red); }
.line { display: block; width: 100%; height: auto; overflow: visible; }
.line-path { fill: none; stroke: var(--green); stroke-width: 2.5; stroke-linejoin: round; }
.line-area { fill: var(--green); opacity: 0.12; }
.line-dot { fill: var(--card); stroke: var(--green); stroke-width: 2.5; }
.line-dot.last { fill: var(--green); }
.line-tag { font-size: 10.5px; font-weight: 700; fill: var(--ink); }
.line-label { font-size: 9px; fill: var(--muted); }
.insights h2 { font-size: 20px; font-weight: 700; margin: 20px 0 10px; }
.insights ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.insight { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.in-body { flex: 1; min-width: 0; }
.in-body b { font-weight: 650; }
.in-body p { color: var(--muted); font-size: 14px; margin-top: 2px; }
.in-act { flex: none; padding: 9px 12px; border: 0; border-radius: 12px; background: var(--green-soft); color: var(--green-ink); font-size: 14px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.in-bar { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.in-bar span { color: var(--green-ink); font-size: 13px; font-weight: 700; }
.aside { color: var(--muted); font-size: 14px; margin-top: 14px; }
.insight.bills { display: block; }
.bills-head { display: flex; align-items: center; gap: 12px; }
.bill-rows { list-style: none; margin: 10px 0 0; padding: 0; }
.bill-rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.bl-main { display: flex; flex-direction: column; min-width: 0; }
.bl-main b { font-weight: 650; font-size: 15px; }
.bl-main span { color: var(--muted); font-size: 13px; }
.bill-rows li.due .bl-when { color: var(--warn); font-weight: 600; }
.bill-rows li.short .bl-when { color: var(--red); font-weight: 600; }
.bill-rows li.done { opacity: 0.6; }
.bill-rows li.done .bl-when { color: var(--muted); font-weight: 400; }
.bill-rows .tick { width: 20px; height: 20px; color: var(--green-ink); }
.bill-rows .bl-main .bl-suggest { color: var(--ink); margin-top: 3px; }
.bl-suggest .link { padding: 0 0 0 4px; color: var(--green-ink); font-weight: 650; }
.hero-split { font-size: 14px; opacity: 0.85; margin-top: 6px; }
.explain { margin-top: 6px; color: var(--muted); font-size: 14px; }
.explain summary { cursor: pointer; color: var(--green-ink); font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.calc { list-style: none; margin: 4px 0 8px; padding: 10px 14px; background: var(--card); border-radius: 14px; box-shadow: var(--shadow); }
.calc li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; color: var(--ink); }
.calc li.total { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 7px; font-weight: 700; }
.bl-amt { font-weight: 700; font-size: 15px; white-space: nowrap; }

/* Forms: settings, bills, budgets, setup, login */
.form-card { padding: 16px; }
.form-page { padding-top: 12px; }
.form-page h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.form-page .intro { color: var(--muted); margin-bottom: 16px; }
.field { display: block; margin: 0 0 14px; }
.field > span:first-child, .field .f-label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select {
  width: 100%; font: inherit; font-size: 17px; padding: 12px 14px; min-height: 48px; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--field);
}
.field input:focus, .field select:focus { border-color: var(--green); outline: none; }
.field.inline { display: grid; grid-template-columns: 44px minmax(0, 1fr) 118px; align-items: center; gap: 10px; }
.field.inline .f-label { margin: 0; }
.field.inline input { text-align: right; }
.field.inline .err { grid-column: 2 / -1; }
.err { color: var(--red); font-size: 14px; display: block; }
.err:empty { display: none; }
.hint { color: var(--muted); font-size: 14px; }
.field small.hint { display: block; margin-top: 5px; }
.choice { border: 0; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.choice legend { width: 100%; padding: 0; margin-bottom: 6px; font-size: 15px; font-weight: 600; }
.choice label, .check { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.choice input, .check input { width: 20px; height: 20px; accent-color: var(--green); margin: 0; }
.check { margin-bottom: 8px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }
.button { display: inline-block; padding: 12px 20px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); font-weight: 600; text-decoration: none; }
.button.primary { background: linear-gradient(160deg, var(--green), var(--green-2)); border-color: transparent; color: #fff; }
.bill-list a { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name amt" "when when"; padding: 10px 0; text-decoration: none; }
.bill-list .name { grid-area: name; font-weight: 650; }
.bill-list .amt { grid-area: amt; }
.bill-list .when { grid-area: when; color: var(--muted); font-size: 14px; }
.bill-list .inactive a { color: var(--muted); }

/* Setup wizard */
.step { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; margin: 0 0 10px; }
.step .bar { display: flex; flex: none; gap: 4px; height: auto; background: none; overflow: visible; }
.step .bar i { width: 28px; height: 5px; border-radius: 3px; background: var(--line); }
.step .bar i.on { background: var(--green); }
.setup .actions .primary { margin-left: auto; }
.setup-paid .choice label { font-size: 18px; }
.setup-paid:has([name=paid][value=yes]:checked) .when-no,
.setup-paid:has([name=paid][value=no]:checked) .when-yes { display: none; }

/* Width and height steps for bars and columns (the CSP forbids style attributes) */
.w-0{width:0%}.w-1{width:1%}.w-2{width:2%}.w-3{width:3%}.w-4{width:4%}.w-5{width:5%}.w-6{width:6%}.w-7{width:7%}.w-8{width:8%}.w-9{width:9%}
.w-10{width:10%}.w-11{width:11%}.w-12{width:12%}.w-13{width:13%}.w-14{width:14%}.w-15{width:15%}.w-16{width:16%}.w-17{width:17%}.w-18{width:18%}.w-19{width:19%}
.w-20{width:20%}.w-21{width:21%}.w-22{width:22%}.w-23{width:23%}.w-24{width:24%}.w-25{width:25%}.w-26{width:26%}.w-27{width:27%}.w-28{width:28%}.w-29{width:29%}
.w-30{width:30%}.w-31{width:31%}.w-32{width:32%}.w-33{width:33%}.w-34{width:34%}.w-35{width:35%}.w-36{width:36%}.w-37{width:37%}.w-38{width:38%}.w-39{width:39%}
.w-40{width:40%}.w-41{width:41%}.w-42{width:42%}.w-43{width:43%}.w-44{width:44%}.w-45{width:45%}.w-46{width:46%}.w-47{width:47%}.w-48{width:48%}.w-49{width:49%}
.w-50{width:50%}.w-51{width:51%}.w-52{width:52%}.w-53{width:53%}.w-54{width:54%}.w-55{width:55%}.w-56{width:56%}.w-57{width:57%}.w-58{width:58%}.w-59{width:59%}
.w-60{width:60%}.w-61{width:61%}.w-62{width:62%}.w-63{width:63%}.w-64{width:64%}.w-65{width:65%}.w-66{width:66%}.w-67{width:67%}.w-68{width:68%}.w-69{width:69%}
.w-70{width:70%}.w-71{width:71%}.w-72{width:72%}.w-73{width:73%}.w-74{width:74%}.w-75{width:75%}.w-76{width:76%}.w-77{width:77%}.w-78{width:78%}.w-79{width:79%}
.w-80{width:80%}.w-81{width:81%}.w-82{width:82%}.w-83{width:83%}.w-84{width:84%}.w-85{width:85%}.w-86{width:86%}.w-87{width:87%}.w-88{width:88%}.w-89{width:89%}
.w-90{width:90%}.w-91{width:91%}.w-92{width:92%}.w-93{width:93%}.w-94{width:94%}.w-95{width:95%}.w-96{width:96%}.w-97{width:97%}.w-98{width:98%}.w-99{width:99%}
.w-100{width:100%}
.h-0{height:0%}.h-1{height:1%}.h-2{height:2%}.h-3{height:3%}.h-4{height:4%}.h-5{height:5%}.h-6{height:6%}.h-7{height:7%}.h-8{height:8%}.h-9{height:9%}
.h-10{height:10%}.h-11{height:11%}.h-12{height:12%}.h-13{height:13%}.h-14{height:14%}.h-15{height:15%}.h-16{height:16%}.h-17{height:17%}.h-18{height:18%}.h-19{height:19%}
.h-20{height:20%}.h-21{height:21%}.h-22{height:22%}.h-23{height:23%}.h-24{height:24%}.h-25{height:25%}.h-26{height:26%}.h-27{height:27%}.h-28{height:28%}.h-29{height:29%}
.h-30{height:30%}.h-31{height:31%}.h-32{height:32%}.h-33{height:33%}.h-34{height:34%}.h-35{height:35%}.h-36{height:36%}.h-37{height:37%}.h-38{height:38%}.h-39{height:39%}
.h-40{height:40%}.h-41{height:41%}.h-42{height:42%}.h-43{height:43%}.h-44{height:44%}.h-45{height:45%}.h-46{height:46%}.h-47{height:47%}.h-48{height:48%}.h-49{height:49%}
.h-50{height:50%}.h-51{height:51%}.h-52{height:52%}.h-53{height:53%}.h-54{height:54%}.h-55{height:55%}.h-56{height:56%}.h-57{height:57%}.h-58{height:58%}.h-59{height:59%}
.h-60{height:60%}.h-61{height:61%}.h-62{height:62%}.h-63{height:63%}.h-64{height:64%}.h-65{height:65%}.h-66{height:66%}.h-67{height:67%}.h-68{height:68%}.h-69{height:69%}
.h-70{height:70%}.h-71{height:71%}.h-72{height:72%}.h-73{height:73%}.h-74{height:74%}.h-75{height:75%}.h-76{height:76%}.h-77{height:77%}.h-78{height:78%}.h-79{height:79%}
.h-80{height:80%}.h-81{height:81%}.h-82{height:82%}.h-83{height:83%}.h-84{height:84%}.h-85{height:85%}.h-86{height:86%}.h-87{height:87%}.h-88{height:88%}.h-89{height:89%}
.h-90{height:90%}.h-91{height:91%}.h-92{height:92%}.h-93{height:93%}.h-94{height:94%}.h-95{height:95%}.h-96{height:96%}.h-97{height:97%}.h-98{height:98%}.h-99{height:99%}
.h-100{height:100%}
