/* Stash: trading-terminal look, neon pink + violet, dark and light themes. */
:root, [data-theme="dark"] {
  --bg: #0D0A18;
  --bg-glow: rgba(155, 92, 255, .16);
  --panel: #15112A;
  --panel-2: #1C1735;
  --line: #2A2347;
  --line-2: #221C3B;
  --text: #EEEAF8;
  --muted: #A79FC4;
  --faint: #6E6690;
  --accent: #FF3EA5;
  --accent-2: #A06BFF;
  --accent-ink: #1A0712;
  --up: #3BE3A2;
  --down: #FF7448;
  --warn-bg: rgba(255, 116, 72, .12);
  --tip-bg: rgba(160, 107, 255, .14);
  --win-bg: rgba(59, 227, 162, .12);
  --glow: 0 0 28px rgba(255, 62, 165, .45);
  --input: #0F0C1F;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #F5F3FB;
  --bg-glow: rgba(160, 107, 255, .10);
  --panel: #FFFFFF;
  --panel-2: #F8F6FD;
  --line: #E3DEF0;
  --line-2: #EEEAF6;
  --text: #19132E;
  --muted: #5F5780;
  --faint: #938BB0;
  --accent: #D81B83;
  --accent-2: #7339E6;
  --accent-ink: #FFFFFF;
  --up: #0C9A63;
  --down: #D9481C;
  --warn-bg: #FDEDE6;
  --tip-bg: #F1EAFE;
  --win-bg: #E3F7EE;
  --glow: none;
  --input: #FFFFFF;
  color-scheme: light;
}
:root {
  --sans: 'Geist', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --r: 12px;
  --r-sm: 8px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; color: var(--text); font: 400 15px/1.55 var(--sans);
  background: radial-gradient(900px 500px at 85% -10%, var(--bg-glow), transparent 70%), var(--bg); background-attachment: fixed; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.015em; }
p { margin: 0; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- top bar ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1240px; margin: 0 auto; padding: 18px 24px 8px; }
.brand { display: flex; align-items: center; gap: 14px; }
.wordmark { font: 700 21px/1 var(--mono); letter-spacing: 0.06em; color: var(--text); text-decoration: none; }
.wordmark b { color: var(--accent); font-weight: 700; }
.live { display: inline-flex; align-items: center; gap: 7px; font: 500 12.5px var(--mono); color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 4px 10px; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 8px var(--up); }
.live.demo i { background: var(--accent-2); box-shadow: 0 0 8px var(--accent-2); }
.live.off i { background: var(--faint); box-shadow: none; }
@media (prefers-reduced-motion: no-preference) { .live i { animation: pulse 2.4s ease-in-out infinite; } @keyframes pulse { 50% { opacity: .35; } } }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.access { font-size: 13px; color: var(--faint); margin-right: 6px; }
.iconbtn { width: 36px; height: 36px; padding: 0; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--line); color: var(--muted); border-radius: var(--r-sm); cursor: pointer; }
.iconbtn:hover { color: var(--text); border-color: var(--faint); }
.iconbtn svg { width: 17px; height: 17px; }
.sun { display: none; } [data-theme="dark"] .sun { display: block; } [data-theme="dark"] .moon { display: none; }
.linkbtn { background: none; border: 0; padding: 6px 4px; font: 500 14px var(--sans); color: var(--muted); cursor: pointer; }
.linkbtn:hover { color: var(--text); }

main { max-width: 1240px; margin: 0 auto; padding: 8px 24px 72px; }

/* ---------- controls ---------- */
button { font: 600 14.5px var(--sans); cursor: pointer; border-radius: var(--r-sm); border: 1px solid transparent; padding: 10px 16px; transition: background .15s, border-color .15s, box-shadow .15s; }
.btn { background: var(--accent); color: var(--accent-ink); }
.btn:hover { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent), var(--glow); }
.btn-quiet { background: var(--panel); color: var(--text); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--faint); }
.btn-sm { padding: 7px 12px; font-size: 13.5px; }
button:disabled { opacity: .4; cursor: default; box-shadow: none !important; }
input, select { font: 400 16px var(--sans); color: var(--text); background: var(--input); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 11px 12px; width: 100%; }
input[type="number"] { font-family: var(--mono); }
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
input::placeholder { color: var(--faint); font-family: var(--sans); }

/* ---------- status ---------- */
.status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 16px; }
.status-text { font-size: 14px; color: var(--muted); }
.status-text b { color: var(--text); font-weight: 600; }
.status-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.notice { background: var(--tip-bg); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; font-size: 14px; margin-bottom: 16px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; padding: 26px 28px 22px; background:
  linear-gradient(var(--line-2) 1px, transparent 1px) 0 0 / 100% 32px,
  linear-gradient(90deg, var(--line-2) 1px, transparent 1px) 0 0 / 32px 100%,
  radial-gradient(600px 260px at 0% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
  var(--panel); }
.hero-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 22px 40px; align-items: flex-end; position: relative; }
.hero-label { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero-amount { font: 600 clamp(48px, 8vw, 84px)/1 var(--mono); letter-spacing: -0.05em; margin: 10px 0 10px; text-shadow: var(--glow); font-variant-numeric: tabular-nums; }
.hero-amount .c { font-size: .45em; letter-spacing: -0.02em; color: var(--muted); text-shadow: none; }
.hero-amount.neg { color: var(--down); text-shadow: none; }
.delta { font: 500 15px var(--mono); }
.delta.up { color: var(--up); } .delta.down { color: var(--down); }
.delta span { color: var(--muted); font-family: var(--sans); font-weight: 400; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(130px, auto)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.stat { background: var(--panel-2); padding: 10px 14px; }
.stat dt { font-size: 12.5px; color: var(--muted); }
.stat dd { margin: 2px 0 0; font: 600 17px var(--mono); }
.runway { margin-top: 24px; position: relative; }
.ticks { display: flex; gap: 3px; height: 26px; align-items: flex-end; }
.tick { flex: 1; height: 10px; border-radius: 2px; background: var(--line); }
.tick.past { background: color-mix(in srgb, var(--accent-2) 55%, var(--line)); }
.tick.today { height: 26px; background: var(--accent); box-shadow: var(--glow); }
.tick.payday { height: 26px; background: transparent; border: 2px solid var(--up); }
.runway-legend { position: relative; display: flex; justify-content: space-between; font: 500 12.5px var(--mono); color: var(--muted); margin-top: 8px; }
.runway-legend .now { position: absolute; transform: translateX(-50%); color: var(--accent); }
.runway-legend .pay { color: var(--up); }
@media (prefers-reduced-motion: no-preference) {
  .tick { animation: rise .45s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i) * 16ms); transform-origin: bottom; }
  @keyframes rise { from { transform: scaleY(0); } }
}

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 20px; margin-top: 20px; align-items: start; }
.col { display: grid; gap: 20px; min-width: 0; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.panel h2 { font-size: 17px; }
.panel .sub { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.empty { color: var(--muted); font-size: 14px; }

/* goals with charts */
.goals { display: grid; gap: 14px; margin-top: 10px; }
.goal { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px; background: var(--panel-2); }
.goal-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.goal-name { font-weight: 600; font-size: 16px; }
.goal-pct { font: 600 22px var(--mono); letter-spacing: -0.03em; }
.goal-pct.done { color: var(--up); }
.chart-wrap { position: relative; margin: 12px 0 10px; height: 150px; }
.chart { width: 100%; height: 100%; display: block; overflow: visible; }
.chart .gridline { stroke: var(--line); stroke-width: 1; }
.chart .target { stroke: var(--up); stroke-width: 1.25; stroke-dasharray: 3 4; }
.chart .deadline { stroke: var(--faint); stroke-width: 1; stroke-dasharray: 2 4; }
.chart .actual { fill: none; stroke: var(--accent); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 60%, transparent)); }
[data-theme="light"] .chart .actual { filter: none; }
.chart .proj { fill: none; stroke: var(--accent-2); stroke-width: 1.75; stroke-dasharray: 5 5; }
.dot { position: absolute; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: var(--accent); border: 2px solid var(--panel-2); box-shadow: var(--glow); }
.dot.end { background: var(--panel-2); border: 2px solid var(--accent-2); box-shadow: none; }
.chart-label { position: absolute; font: 500 11.5px var(--mono); color: var(--up); right: 0; transform: translateY(-120%); }
.chart-axis { display: flex; justify-content: space-between; font: 500 11.5px var(--mono); color: var(--faint); margin-top: -4px; }
.goal-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.goal-stats dt { font-size: 12px; color: var(--muted); }
.goal-stats dd { margin: 1px 0 0; font: 600 14.5px var(--mono); }
.goal-stats dd.late { color: var(--down); }
.goal-update { display: flex; gap: 8px; margin-top: 12px; }
.goal-update input { padding: 7px 10px; font-size: 14px; }
.fine { font-size: 12.5px; color: var(--faint); margin-top: 12px; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 0; border-top: 2px solid var(--accent); display: inline-block; }
.legend i.p { border-top: 2px dashed var(--accent-2); }
.legend i.t { border-top: 2px dashed var(--up); }

/* advice */
.advice { list-style: none; margin: 8px 0 0; padding: 0; }
.advice li { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line-2); }
.advice li:first-child { border-top: 0; padding-top: 4px; }
.kind { font: 600 11.5px var(--mono); padding: 3px 0; border-radius: 6px; text-align: center; align-self: start; margin-top: 2px; }
.kind.warn { background: var(--warn-bg); color: var(--down); }
.kind.tip { background: var(--tip-bg); color: var(--accent-2); }
.kind.good { background: var(--win-bg); color: var(--up); }
.advice h3 { font-size: 15.5px; font-weight: 600; line-height: 1.35; margin-bottom: 3px; }
.advice p { color: var(--muted); font-size: 14px; max-width: 70ch; }

/* category tickers */
.env { display: grid; gap: 2px; margin-top: 6px; }
.env-row { display: grid; grid-template-columns: 130px 1fr 150px; gap: 14px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line-2); }
.env-row:first-child { border-top: 0; }
.env-name { font-weight: 600; font-size: 14.5px; }
.env-tag { display: block; font: 500 11px var(--mono); color: var(--down); }
.env-amt { font: 500 14px var(--mono); text-align: right; color: var(--muted); }
.env-amt b { color: var(--text); font-weight: 600; }
.env-amt.over b { color: var(--down); }
.meter { position: relative; height: 8px; border-radius: 4px; background: var(--line-2); }
.meter span { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: var(--accent-2); max-width: 100%; }
.meter span.hot { background: var(--accent); }
.meter span.over { background: var(--down); }
.meter .pace { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--text); opacity: .5; border-radius: 1px; }
.pace-key { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.pace-key i { width: 2px; height: 12px; background: var(--text); opacity: .5; display: inline-block; }

/* transactions */
.tx { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 4px; }
.tx td { padding: 9px 6px; border-top: 1px solid var(--line-2); vertical-align: middle; }
.tx tr:first-child td { border-top: 0; }
.tx .d { color: var(--faint); white-space: nowrap; width: 1%; font-family: var(--mono); font-size: 12.5px; }
.tx .m { font-weight: 500; }
.tx .a { text-align: right; white-space: nowrap; width: 1%; font: 600 14px var(--mono); }
.tx .a.in { color: var(--up); }
.tx select { padding: 5px 8px; font-size: 13px; width: auto; background: var(--panel-2); }
.pending { font: 500 11px var(--mono); color: var(--faint); margin-left: 6px; }

/* afford */
.afford { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.afford .btn { grid-column: 1 / -1; }
.verdict { margin-top: 14px; border-radius: var(--r-sm); padding: 14px; border: 1px solid; }
.verdict.yes { background: var(--win-bg); border-color: color-mix(in srgb, var(--up) 40%, transparent); }
.verdict.maybe { background: var(--tip-bg); border-color: color-mix(in srgb, var(--accent-2) 40%, transparent); }
.verdict.no { background: var(--warn-bg); border-color: color-mix(in srgb, var(--down) 40%, transparent); }
.verdict h3 { font-size: 15.5px; margin-bottom: 4px; }
.verdict.yes h3 { color: var(--up); } .verdict.maybe h3 { color: var(--accent-2); } .verdict.no h3 { color: var(--down); }
.verdict p { font-size: 13.5px; margin-top: 5px; }

/* ledger */
.ledger { margin: 6px 0 0; }
.ledger div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14px; border-top: 1px solid var(--line-2); }
.ledger div:first-child { border-top: 0; }
.ledger dt { color: var(--muted); }
.ledger dd { margin: 0; font: 600 14px var(--mono); }
.ledger .save dd { color: var(--accent); }
.ledger .total { border-top: 1px solid var(--faint); margin-top: 4px; padding-top: 9px; }
.ledger .total dt { color: var(--text); font-weight: 600; }

.showmore { margin-top: 8px; color: var(--accent); padding-left: 0; }
[hidden] { display: none !important; }

/* ---------- wins ---------- */
.winbar { position: fixed; top: 16px; left: 50%; z-index: 40; width: min(520px, calc(100vw - 24px)); transform: translateX(-50%);
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--r);
  background: var(--panel); border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 10px 40px rgba(0, 0, 0, .35), var(--glow); }
.winbar .badge { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.winbar .badge svg { width: 18px; height: 18px; }
.winbar h3 { font-size: 15px; }
.winbar p { font-size: 13.5px; color: var(--muted); }
.winbar .x { background: none; border: 0; color: var(--faint); font-size: 20px; padding: 4px 6px; }
@media (prefers-reduced-motion: no-preference) {
  .winbar { animation: drop .5s cubic-bezier(.2, .8, .2, 1) both; }
  @keyframes drop { from { opacity: 0; transform: translate(-50%, -24px); } }
}
.moment { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.moment-card { position: relative; text-align: center; max-width: 440px; }
.ring { width: 220px; height: 220px; margin: 0 auto 22px; position: relative; display: grid; place-items: center; }
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 6; }
.ring .bg { stroke: var(--line); }
.ring .fg { stroke: url(#ringgrad); stroke-linecap: round; stroke-dasharray: 597; stroke-dashoffset: 0; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 70%, transparent)); }
.ring-amt { font: 600 34px var(--mono); letter-spacing: -0.04em; text-shadow: var(--glow); }
.ring-sub { font: 500 12.5px var(--mono); color: var(--up); }
.moment h2 { font-size: clamp(26px, 4vw, 34px); letter-spacing: -0.03em; margin-bottom: 8px; }
.moment p { color: var(--muted); margin-bottom: 22px; }
.spark { position: absolute; left: 50%; top: 110px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: 0; }
.spark:nth-child(odd) { background: var(--accent-2); }
@media (prefers-reduced-motion: no-preference) {
  .ring .fg { animation: draw 1.4s cubic-bezier(.3, .7, .2, 1) both .15s; }
  @keyframes draw { from { stroke-dashoffset: 597; } }
  .spark { animation: burst 1.1s cubic-bezier(.1, .8, .3, 1) both 1.3s; }
  @keyframes burst { 0% { opacity: 1; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.4); } }
  .moment-card > h2, .moment-card > p, .moment-card > button { animation: fadein .5s ease both 1.2s; }
  @keyframes fadein { from { opacity: 0; transform: translateY(6px); } }
}

/* ---------- wizard ---------- */
.wizard { max-width: 640px; margin: 28px auto; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 30px 34px 28px; }
.steps { display: flex; gap: 3px; margin-bottom: 8px; }
.steps i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.steps i.done { background: var(--accent-2); }
.steps i.now { background: var(--accent); box-shadow: var(--glow); }
.step-count { font: 500 12.5px var(--mono); color: var(--faint); margin-bottom: 22px; }
.wizard h1 { font-size: clamp(23px, 3.4vw, 29px); line-height: 1.22; letter-spacing: -0.025em; margin-bottom: 10px; max-width: 28ch; }
.hint { color: var(--muted); font-size: 15px; margin-bottom: 18px; max-width: 60ch; }
.opts { display: grid; gap: 8px; }
.opt { text-align: left; background: var(--panel-2); color: var(--text); border: 1px solid var(--line); font-weight: 500; padding: 13px 16px; display: flex; align-items: center; gap: 12px; }
.opt::before { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--faint); flex: none; }
.opt.multi::before { border-radius: 4px; }
.opt:hover { border-color: var(--faint); }
.opt.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--panel-2)); }
.opt.on::before { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 3px var(--panel-2); }
.err { color: var(--down); min-height: 1.3em; margin-top: 10px; font-size: 14px; }
.wiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }
.listrow { display: grid; gap: 8px; grid-template-columns: 2fr 1fr 1fr 1.2fr 36px; margin-bottom: 8px; }
.listrow.c3 { grid-template-columns: 2fr 1fr 1fr 36px; }
.listhead { font-size: 12.5px; color: var(--faint); margin-bottom: 4px; }
.x { background: none; color: var(--faint); padding: 0; font-size: 20px; line-height: 1; border: 0; }
.x:hover { color: var(--down); }
.addrow { margin-top: 4px; }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: 100%; max-width: 400px; }
.login-card .wordmark { font-size: 26px; display: inline-block; margin-bottom: 28px; }
.login-card h1 { font-size: clamp(30px, 5vw, 40px); line-height: 1.08; letter-spacing: -0.035em; margin-bottom: 10px; }
.login-card .hint { margin-bottom: 26px; }
.login-ticker { display: flex; gap: 3px; height: 26px; align-items: flex-end; margin-bottom: 30px; }
.login-ticker i { flex: 1; border-radius: 2px; background: var(--line); }
.login-ticker i.on { background: color-mix(in srgb, var(--accent-2) 55%, var(--line)); }
.login-ticker i.now { background: var(--accent); box-shadow: var(--glow); }
.login-card .btn { width: 100%; margin-top: 12px; padding: 12px; }
.login-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; font-size: 13px; color: var(--faint); }

#toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 11px 18px; border-radius: var(--r-sm); font-size: 14px; display: none; z-index: 60; max-width: calc(100vw - 32px); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .layout { display: flex; flex-direction: column; }
  .col { display: contents; }
  .o-goals { order: 1; } .o-advice { order: 2; } .o-afford { order: 3; } .o-cats { order: 4; }
  .o-plan { order: 5; } .o-bills { order: 6; } .o-subs { order: 7; } .o-banks { order: 8; } .o-tx { order: 9; }
}
@media (max-width: 640px) {
  .topbar { padding: 14px 14px 4px; padding-top: max(14px, env(safe-area-inset-top)); }
  .access { display: none; }
  .live { font-size: 11.5px; padding: 3px 8px; }
  main { padding: 6px 12px 56px; }
  .hero { padding: 20px 16px 16px; }
  .stats { width: 100%; grid-template-columns: 1fr 1fr; }
  .runway-legend .now { display: none; }
  .panel { padding: 18px 14px; }
  .goal { padding: 14px 12px; }
  .goal-stats { grid-template-columns: 1fr 1fr; }
  .chart-wrap { height: 130px; }
  .advice li { grid-template-columns: 1fr; gap: 6px; }
  .kind { justify-self: start; padding: 3px 8px; }
  .env-row { grid-template-columns: 1fr auto; gap: 6px 10px; }
  .env-row .meter { grid-column: 1 / -1; grid-row: 2; }
  .tx .d { display: none; }
  .tx select { max-width: 112px; }
  .wizard { padding: 22px 18px; margin: 10px auto; }
  .listrow, .listrow.c3 { grid-template-columns: 1fr 1fr; }
  .listrow > input[data-k="name"] { grid-column: 1 / -1; }
  .listhead { display: none; }
  .lr { padding-bottom: 10px; border-bottom: 1px solid var(--line-2); margin-bottom: 12px; }
  .lr .x { grid-column: 1 / -1; justify-self: end; font-size: 14px; }
  .lr .x::after { content: ' Remove'; }
  .status-actions button { flex: 1 1 auto; }
}
