/* TrueLife Billing: one stylesheet for staff admin, the billing page and checkout (adapted from TrueLife Giving). */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: light;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bg: #f6f7fb;
  --panel: #ffffff;
  --panel-2: #f2f4f9;
  --line: #e3e6ef;
  --line-2: #d3d8e5;
  --text: #141828;
  --text-2: #464d63;
  --muted: #6c7389;
  --accent: #4f46e5;
  --accent-2: #4338ca;
  --accent-soft: #eef0ff;
  --accent-ink: #ffffff;
  --good: #0b7d2a; --good-bg: #e6f5ea;
  --warn: #8a5a00; --warn-bg: #fff4d6;
  --bad: #b42323; --bad-bg: #fdeaea;
  --info: #1f5fb8; --info-bg: #e8f0fc;
  --neutral: #5d647b; --neutral-bg: #eef0f4;
  --s1: #2a78d6; --grid: #e6e9f1; --chart-surface: #ffffff;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 6px 20px rgba(16, 24, 40, .06);
  --r: 16px; --r-sm: 11px; --r-xs: 8px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0f1c; --panel: #141a2b; --panel-2: #1a2236; --line: #232c43; --line-2: #2e3954;
  --text: #eef1fa; --text-2: #b7bfd6; --muted: #8a93ad;
  --accent: #8b7bff; --accent-2: #a395ff; --accent-soft: rgba(139, 123, 255, .14); --accent-ink: #0b0f1c;
  --good: #3fcf6e; --good-bg: rgba(12, 163, 12, .16); --warn: #fab219; --warn-bg: rgba(250, 178, 25, .14);
  --bad: #f26b6b; --bad-bg: rgba(208, 59, 59, .18); --info: #6aa8ff; --info-bg: rgba(57, 135, 229, .17);
  --neutral: #9aa3bb; --neutral-bg: rgba(154, 163, 187, .12);
  --s1: #3987e5; --grid: #2a3247; --chart-surface: #141a2b;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: 30px; font-weight: 800; } h2 { font-size: 21px; font-weight: 700; } h3 { font-size: 16px; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); } .small { font-size: 13px; } .tiny { font-size: 12px; }
.num { font-variant-numeric: tabular-nums; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 14px var(--font);
  padding: 10px 16px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--panel);
  color: var(--text); cursor: pointer; text-decoration: none !important; white-space: nowrap; }
.btn:hover { border-color: var(--accent); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-2); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--panel-2); }
.btn.danger { color: var(--bad); }
.btn.sm { padding: 6px 11px; font-size: 13px; border-radius: var(--r-xs); }
.btn.lg { padding: 14px 22px; font-size: 16px; }
.btn.block { width: 100%; }
label.field { display: block; margin-bottom: 14px; }
label.field > span { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; color: var(--text-2); }
input, select, textarea { font: 15px var(--font); color: var(--text); background: var(--panel); width: 100%;
  border: 1px solid var(--line-2); border-radius: var(--r-xs); padding: 10px 12px; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, .chip:focus-visible { outline: 3px solid var(--accent-soft);
  border-color: var(--accent); outline-offset: 0; }
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--accent); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 10px 0; cursor: pointer; }
.check input { margin-top: 3px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 600 14px var(--font); padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--panel); color: var(--text); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.seg { display: inline-flex; background: var(--panel-2); border-radius: 999px; padding: 4px; gap: 4px; }
.seg button { font: 600 13px var(--font); border: 0; background: transparent; color: var(--text-2); padding: 7px 14px;
  border-radius: 999px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--panel); color: var(--text); box-shadow: var(--shadow); }
.error { color: var(--bad); background: var(--bad-bg); padding: 10px 12px; border-radius: var(--r-xs); font-size: 14px; }
.notice { background: var(--info-bg); color: var(--text); padding: 12px 14px; border-radius: var(--r-sm); font-size: 14px; }
.notice.warn { background: var(--warn-bg); } .notice.good { background: var(--good-bg); }

/* ---------- surfaces ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; }
.card h2 { font-size: 17px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 9px;
  border-radius: 999px; background: var(--neutral-bg); color: var(--neutral); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.good { background: var(--good-bg); color: var(--good); } .pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); } .pill.info { background: var(--info-bg); color: var(--info); }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted);
  font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.list td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list tr:last-child td { border-bottom: 0; }
table.list tr.click { cursor: pointer; } table.list tr.click:hover td { background: var(--panel-2); }
table.list .r { text-align: right; }
.table-wrap { overflow-x: auto; }
.empty { text-align: center; color: var(--muted); padding: 36px 12px; }
.stat .label { font-size: 13px; color: var(--muted); font-weight: 600; }
.stat .value { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .sub { font-size: 13px; color: var(--text-2); margin-top: 2px; }

/* ---------- public site ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 18px 28px; max-width: 1160px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.hero { padding: 56px 0 40px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 48px; line-height: 1.07; letter-spacing: -.03em; }
.hero p.lead { font-size: 19px; color: var(--text-2); max-width: 560px; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } .hero h1 { font-size: 36px; } }
.eyebrow { font-size: 13px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.section { padding: 56px 0; }
.section h2.big { font-size: 32px; letter-spacing: -.02em; }
.feature .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 12px; }
.feature .ico svg { width: 22px; height: 22px; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; display: flex; flex-direction: column; }
.plan.popular { border: 2px solid var(--accent); }
.plan .badge { position: absolute; top: -12px; left: 20px; background: var(--accent); color: var(--accent-ink);
  font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.plan .price { font-size: 40px; font-weight: 800; letter-spacing: -.03em; margin: 8px 0 0; }
.plan .price small { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 16px 0 20px; flex: 1; }
.plan li { padding: 6px 0 6px 26px; position: relative; font-size: 14px; color: var(--text-2); }
.plan li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 12px; height: 7px;
  border-left: 2.5px solid var(--good); border-bottom: 2.5px solid var(--good); transform: rotate(-45deg); }
.compare td, .compare th { padding: 10px 12px; }
.footer { padding: 40px 0 56px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); margin-top: 40px; }
.mock { background: var(--panel); border-radius: 22px; box-shadow: var(--shadow); border: 1px solid var(--line); padding: 22px; }
.mock .line { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.mock .line:last-child { border-bottom: 0; }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 28px; }
.auth .card { width: 100%; max-width: 460px; padding: 30px; }

/* ---------- dashboard ---------- */
.shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--panel); border-right: 1px solid var(--line); padding: 18px 12px; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 2px; }
.side .brand { padding: 4px 10px 18px; font-size: 16px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--text-2);
  font-weight: 600; font-size: 14px; }
.nav a:hover { background: var(--panel-2); text-decoration: none; }
.nav a.on { background: var(--accent-soft); color: var(--accent); }
.nav a svg { width: 18px; height: 18px; flex: none; }
.nav a .count { margin-left: auto; background: var(--bad-bg); color: var(--bad); font-size: 11px; padding: 1px 7px; border-radius: 999px; }
.side .foot { margin-top: auto; padding: 10px; font-size: 13px; color: var(--muted); }
.main { padding: 26px 32px 60px; max-width: 1180px; width: 100%; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 26px; margin: 0; }
@media (max-width: 800px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); }
  .side .foot { display: none; } .main { padding: 18px; }
}
.drawer-bg { position: fixed; inset: 0; background: rgba(10, 14, 28, .4); z-index: 40; }
.drawer { position: fixed; right: 0; top: 0; bottom: 0; width: min(560px, 100vw); background: var(--panel); z-index: 41;
  overflow-y: auto; padding: 24px; box-shadow: -20px 0 60px rgba(0, 0, 0, .2); }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg);
  padding: 11px 18px; border-radius: 12px; font-weight: 600; font-size: 14px; z-index: 60; box-shadow: var(--shadow); }
.steps { display: grid; gap: 10px; }
.step { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.step .dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800;
  background: var(--panel-2); color: var(--muted); flex: none; }
.step.done .dot { background: var(--good-bg); color: var(--good); }
.step .grow { flex: 1; }
code.box { display: block; background: var(--panel-2); padding: 12px; border-radius: var(--r-xs); font-size: 12.5px;
  word-break: break-all; white-space: pre-wrap; }

/* ---------- chart ---------- */
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .bar { fill: var(--s1); }
.chart .bar.dim { opacity: .55; }
.chart .gridline { stroke: var(--grid); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 12px; font-family: var(--font); }
.chart .hit { fill: transparent; cursor: default; }
.tip { position: absolute; pointer-events: none; background: var(--text); color: var(--bg); font-size: 13px; padding: 8px 10px;
  border-radius: 8px; white-space: nowrap; transform: translate(-50%, -110%); box-shadow: var(--shadow); }
.tip b { display: block; font-size: 14px; }

/* ---------- donor pages ---------- */
.give-shell { max-width: 560px; margin: 0 auto; padding: 32px 18px 60px; }
.give-head { text-align: center; margin-bottom: 20px; }
.give-head .logo { width: 56px; height: 56px; border-radius: 16px; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-weight: 800; font-size: 22px; margin: 0 auto 12px; }
.amount-input { position: relative; }
.amount-input span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 700; color: var(--muted); }
.amount-input input { font-size: 30px; font-weight: 800; padding: 14px 16px 14px 40px; letter-spacing: -.02em; }
.method-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.method-pick button { text-align: left; padding: 14px; border-radius: var(--r-sm); border: 1.5px solid var(--line-2);
  background: var(--panel); cursor: pointer; font: 14px var(--font); color: var(--text); }
.method-pick button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.method-pick b { display: block; font-size: 15px; margin-bottom: 2px; }
.summary { background: var(--panel-2); border-radius: var(--r-sm); padding: 14px 16px; font-size: 14px; }
.summary .spread + .spread { margin-top: 6px; }
.secure { text-align: center; font-size: 12px; color: var(--muted); margin-top: 14px; }
.demo-banner { background: var(--warn-bg); color: var(--warn); text-align: center; font-size: 13px; font-weight: 600; padding: 8px; }
.radio-list label { display: flex; gap: 10px; align-items: center; padding: 11px 12px; border: 1px solid var(--line-2);
  border-radius: var(--r-xs); margin-bottom: 8px; cursor: pointer; font-size: 14px; }
.success-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--good-bg); color: var(--good);
  display: grid; place-items: center; margin: 0 auto 14px; }
.success-mark svg { width: 32px; height: 32px; }

/* Sponsored ministry projects */
.project-shell { max-width: 760px; margin: 0 auto; padding: 32px 18px 60px; }
.project-shell .card { margin-bottom: 16px; }
.goal-bar { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; margin: 12px 0 8px; }
.goal-bar > span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.story { white-space: pre-wrap; line-height: 1.6; }
.trust { display: grid; gap: 10px; }
.trust div { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.trust div > span:first-child { color: var(--good); flex: none; margin-top: 1px; }
.agreement { border: 1px solid var(--line-2); border-radius: var(--r-xs); padding: 14px 16px; max-height: 260px;
  overflow: auto; background: var(--panel-2); font-size: 14px; line-height: 1.55; }
.agreement p { margin: 0 0 10px; }
.budget-row { display: grid; grid-template-columns: 1fr 140px auto; gap: 8px; margin-bottom: 8px; }
.update { border-left: 3px solid var(--accent-soft); padding: 2px 0 2px 12px; margin-bottom: 14px; }
@media (max-width: 560px) { .budget-row { grid-template-columns: 1fr 110px auto; } }

/* ---------- TrueLife Billing additions ---------- */
.demo-banner a { color: inherit; text-decoration: underline; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 16px; }
.stat .value.sm { font-size: 22px; }
.chart .col { fill: var(--s1); }
.chart .col.hover { opacity: .8; }
.chart .label { fill: var(--text); font-size: 12px; font-weight: 700; font-family: var(--font); }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar input, .toolbar select { width: auto; min-width: 180px; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; font-size: 14px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
.section-title { display: flex; justify-content: space-between; align-items: center; margin: 22px 0 10px; }
.section-title h2 { margin: 0; font-size: 17px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; word-break: break-all; }
.lines .spread { padding: 6px 0; font-size: 14px; } .lines .total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; font-weight: 700; }
.plan-pick { display: grid; gap: 10px; }
.plan-pick button { display: flex; justify-content: space-between; align-items: center; text-align: left; padding: 14px 16px;
  border-radius: var(--r-sm); border: 1.5px solid var(--line-2); background: var(--panel); cursor: pointer; font: 14px var(--font); color: var(--text); }
.plan-pick button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.card-frame { width: 100%; border: 0; height: 190px; }
.checkout-shell { max-width: 980px; margin: 0 auto; padding: 32px 18px 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 820px) { .checkout-shell { grid-template-columns: 1fr; } }
details.raw summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.page-head select, .page-head input { width: auto; }
.stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr; } }
.lines .spread { flex-wrap: nowrap; align-items: flex-start; } .lines .spread > span:first-child { flex: 1; }
.lines .spread > span:last-child { white-space: nowrap; }

/* ---------- review fixes (design team, 2026-11-11) ---------- */
@media (min-width: 801px) { .side { min-height: 100vh; } }
@media (max-width: 800px) {
  .side { min-height: 0; flex-direction: column; flex-wrap: nowrap; padding: 12px; }
  .side .brand { padding: 4px 6px 10px; }
  .nav { display: flex; overflow-x: auto; gap: 2px; padding-bottom: 4px; }
  .nav a { flex: none; }
  .side .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; padding: 6px; }
  .side .foot .row { margin-top: 0 !important; }
}
.card table.list :is(th, td):first-child { padding-left: 0; }
.card table.list :is(th, td):last-child { padding-right: 0; }
table.list td.r, table.list td.nowrap { white-space: nowrap; }
.grid.top { align-items: start; }
@media (max-width: 900px) { .grid.g2.detail { grid-template-columns: 1fr; } }
input[readonly] { background: var(--panel-2); color: var(--text-2); }
.grid > label.field { margin-bottom: 0; }
.grid:has(> label.field) { row-gap: 14px; margin-bottom: 14px; }
.empty { padding: 20px 12px; }
.danger-zone { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; }
.action-group { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.action-group > .label { font-size: 13px; font-weight: 600; color: var(--muted); min-width: 92px; }
.switch { position: relative; width: 44px; height: 24px; border-radius: 99px; border: 0; background: var(--line-2); cursor: pointer; flex: none; padding: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch[aria-checked="true"] { background: var(--accent); } .switch[aria-checked="true"]::after { left: 23px; }
.switch.bad[aria-checked="true"] { background: var(--bad); }
.app-head { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.app-head .who { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 18px; }
.app-head .logo, .app-bar .logo { width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 17px; overflow: hidden; }
.app-head .logo img, .app-bar .logo img, .give-head .logo img { width: 100%; height: 100%; object-fit: cover; }
.app-bar { max-width: 560px; margin: 0 auto; padding: 22px 18px 0; display: flex; align-items: center; gap: 12px; }
.app-bar .name { font-weight: 800; font-size: 17px; }
.price-was { color: var(--muted); font-weight: 600; margin-right: 6px; }
.pay-summary { margin-top: 14px; font-size: 14px; color: var(--text-2); text-align: center; }
.linkish { background: none; border: 0; padding: 0; color: var(--accent); font: 600 14px var(--font); cursor: pointer; }
.readiness .row-check { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.readiness .row-check:last-child { border-bottom: 0; }
.readiness .row-check .grow { flex: 1; }
.meter { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; margin: 10px 0 4px; }
.meter > span { display: block; height: 100%; background: var(--good); border-radius: 99px; }
.bank-step { position: fixed; z-index: 45; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(440px, calc(100vw - 32px)); }
h2[id] { scroll-margin-top: 20px; }
.logo-sm { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
fieldset legend { margin-bottom: 6px; }
@media (max-width: 800px) { .shell { grid-template-columns: minmax(0, 1fr); } .side, .main, .nav { min-width: 0; } }
h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus { outline: none; }

/* ---------- Admin -> Donations: form editor with a live preview ---------- */
.ed-layout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 22px; align-items: start; }
.ed-layout.wide { grid-template-columns: minmax(0, 1fr) minmax(0, 600px); }
.ed-form { min-width: 0; }
.ed-sec { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); margin-bottom: 12px; }
.ed-sec > summary { cursor: pointer; padding: 16px 20px; display: flex; flex-direction: column; gap: 2px; list-style: none; }
.ed-sec > summary::-webkit-details-marker { display: none; }
.ed-sec > summary > span:first-child { font-weight: 700; font-size: 16px; display: flex; align-items: center; }
.ed-sec > summary > span:first-child::before { content: "▸"; display: inline-block; width: 18px; font-size: 13px; color: var(--muted); transition: transform .15s; }
.ed-sec[open] > summary > span:first-child::before { transform: rotate(90deg); }
.ed-sec > summary .muted { padding-left: 18px; }
.ed-sec-body { padding: 4px 20px 16px; }
.ed-fs { border: 0; padding: 0; margin: 0 0 14px; }
.ed-fs legend { font-weight: 600; font-size: 13px; margin-bottom: 6px; color: var(--text-2); padding: 0; }
.ed-colour { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ed-colour .ed-swatch { width: 44px; height: 40px; padding: 3px; flex: none; cursor: pointer; }
.ed-colour .ed-hex { flex: 1 1 6.5em; min-width: 6.5em; font-family: ui-monospace, Menlo, monospace; }
.ed-colour .btn { padding-left: 8px; padding-right: 8px; }
.ed-preview { position: sticky; top: 16px; min-width: 0; }
.ed-frame-wrap { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; display: flex; justify-content: center; }
.ed-frame { width: 375px; max-width: 100%; height: calc(100vh - 150px); min-height: 520px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.ed-layout.wide .ed-frame { width: 100%; }
.ed-savebar { position: sticky; bottom: 0; display: flex; gap: 10px; padding: 12px 0; background: linear-gradient(transparent, var(--bg) 30%); margin-top: 8px; }
@media (max-width: 1100px) { .ed-layout, .ed-layout.wide { grid-template-columns: minmax(0, 1fr); } .ed-preview { position: static; } .ed-frame { height: 720px; } }
