/* MonthlyBudget Planner — mobile-first styles */
:root {
  --p: #0e7c74; --p2: #12a294; --on-p: #fff; --acc: #f2a33a;
  --bg: #f2f5f4; --card: #ffffff; --ink: #11201d; --mut: #5d6e6a; --line: #e2e8e6; --soft: color-mix(in srgb, var(--p) 10%, var(--card));
  --good: #1f8a4c; --warn: #c7741a; --bad: #c8423b; --sub: #7a5bd6; --pay: #1f8a4c; --bill: #e07b2e;
  --r: 18px; --r-sm: 12px; --sh: 0 1px 2px rgba(16,32,29,.06), 0 6px 20px rgba(16,32,29,.06);
  --fs: 16px; --tabh: 64px;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
[data-theme=harbor] { --p: #2459c4; --p2: #3f7be6; --acc: #f0a43a; }
[data-theme=fern] { --p: #3a7a35; --p2: #58a14f; --acc: #e9a23b; }
[data-theme=ember] { --p: #d0553a; --p2: #ee7a52; --acc: #2a8f86; }
[data-theme=indigo] { --p: #4b45c6; --p2: #6d67e8; --acc: #f0a43a; }
[data-theme=graphite] { --p: #2f3a45; --p2: #51606e; --acc: #e3a33b; }
.dark {
  --bg: #0c1312; --card: #151f1d; --ink: #e8f0ee; --mut: #9aaba7; --line: #24312e; --soft: color-mix(in srgb, var(--p2) 18%, var(--card));
  --good: #4cc27c; --warn: #f0a050; --bad: #f07a70; --sub: #a68cf5; --pay: #4cc27c; --bill: #f39a55;
  --sh: 0 1px 2px rgba(0,0,0,.3); color-scheme: dark;
}
.dark[data-theme=graphite] { --p: #6b7a89; --p2: #8a99a8; }
.big { --fs: 18.5px; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font: 400 var(--fs)/1.4 Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", Roboto, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; overscroll-behavior-y: none; -webkit-text-size-adjust: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
input, select, textarea { font-size: max(16px, 1em); }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.app { max-width: 480px; margin: 0 auto; min-height: 100dvh; position: relative; background: var(--bg); }
@media (min-width: 700px) {
  body { background: color-mix(in srgb, var(--p) 8%, var(--bg)); }
  .app { box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(0,0,0,.12); }
  .desk-note { display: block !important; }
}
.desk-note { display: none; position: fixed; left: 24px; bottom: 24px; max-width: 260px; color: var(--mut); font-size: 13px; }
.desk-note b { color: var(--ink); display: block; font-size: 15px; margin-bottom: 4px; }

/* top bar */
.top { position: sticky; top: 0; z-index: 20; padding: calc(var(--sat) + 12px) 18px 10px; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); display: flex; align-items: center; gap: 10px; min-height: 56px; }
.top h1 { font-size: 1.45em; letter-spacing: -.02em; margin: 0; flex: 1; font-weight: 750; }
.top .hi { flex: 1; } .top .hi small { color: var(--mut); display: block; font-size: .8em; } .top .hi b { font-size: 1.25em; letter-spacing: -.02em; }
.iconbtn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: var(--card); box-shadow: var(--sh); }
.main { padding: 4px 16px calc(var(--tabh) + var(--sab) + 28px); }

/* tabbar */
.tabs { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; z-index: 30;
  background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 6px calc(6px + var(--sab)); }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; font-size: 11.5px; font-weight: 600; color: var(--mut); border-radius: 14px; }
.tab.on { color: var(--p); } .dark .tab.on { color: var(--p2); }
.tab.on svg { stroke-width: 2.4; }
.fab { width: 58px; height: 58px; margin: -22px auto 0; border-radius: 20px; background: linear-gradient(145deg, var(--p2), var(--p)); color: var(--on-p);
  display: grid; place-items: center; box-shadow: 0 8px 22px color-mix(in srgb, var(--p) 45%, transparent); }
.fab svg { width: 28px; height: 28px; stroke-width: 2.6; }
.fab:active { transform: scale(.94); }

/* cards & lists */
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); padding: 16px; margin: 0 0 14px; }
.card h3, .sec { font-size: .82em; text-transform: uppercase; letter-spacing: .07em; color: var(--mut); margin: 0 0 10px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.sec { margin: 22px 4px 10px; } .sec .lnk, .card h3 .lnk { margin-left: auto; text-transform: none; letter-spacing: 0; font-size: 1.1em; }
.lnk { color: var(--p); font-weight: 650; min-height: 44px; display: inline-flex; align-items: center; } .dark .lnk { color: var(--p2); }
.list { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); overflow: hidden; margin-bottom: 14px; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 60px; border-bottom: 1px solid var(--line); width: 100%; text-align: left; }
.row:last-child { border-bottom: 0; }
.row .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--soft); color: var(--p); }
.dark .row .ic { color: var(--p2); }
.row .ic svg { width: 20px; height: 20px; }
.row .t { flex: 1; min-width: 0; text-align: left; align-self: stretch; display: flex; flex-direction: column; justify-content: center; } .row .t b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .t small { color: var(--mut); font-size: .82em; display: block; }
.row .amt { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.row .amt small { display: block; font-weight: 500; color: var(--mut); font-size: .75em; }
.row:active { background: var(--soft); }
.empty { text-align: center; color: var(--mut); padding: 22px 16px; font-size: .95em; }
.empty svg { width: 34px; height: 34px; color: var(--p); opacity: .7; display: block; margin: 0 auto 8px; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: .72em; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: var(--soft); color: var(--p); white-space: nowrap; vertical-align: 1px; }
.dark .tag { color: var(--p2); }
.tag.warn { background: color-mix(in srgb, var(--warn) 16%, var(--card)); color: var(--warn); }
.tag.bad { background: color-mix(in srgb, var(--bad) 15%, var(--card)); color: var(--bad); }
.tag.good { background: color-mix(in srgb, var(--good) 15%, var(--card)); color: var(--good); }
.tag.sub { background: color-mix(in srgb, var(--sub) 15%, var(--card)); color: var(--sub); }
.muted { color: var(--mut); } .good { color: var(--good); } .bad { color: var(--bad); } .warn { color: var(--warn); }
.num { font-variant-numeric: tabular-nums; }

/* hero */
.hero { border-radius: 26px; padding: 20px 20px 16px; color: #fff; background: radial-gradient(120% 120% at 100% 0%, var(--p2) 0%, var(--p) 55%, color-mix(in srgb, var(--p) 75%, #000) 100%);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--p) 35%, transparent); margin-bottom: 14px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -60px; top: -70px; width: 200px; height: 200px; border-radius: 50%; border: 28px solid rgba(255,255,255,.07); }
.hero .lbl { font-size: .9em; font-weight: 600; opacity: .9; display: flex; align-items: center; gap: 6px; }
.hero .big { font-size: 3.6em; font-weight: 800; letter-spacing: -.045em; line-height: 1.05; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.hero .big .c { font-size: .45em; letter-spacing: -.01em; vertical-align: .95em; margin-left: 2px; opacity: .85; }
.hero .meta { opacity: .92; font-size: .92em; }
.hero.neg .big { color: #ffe2dc; }
.hero .bar { height: 8px; border-radius: 9px; background: rgba(255,255,255,.2); margin: 14px 0 4px; overflow: hidden; }
.hero .bar i { display: block; height: 100%; background: #fff; border-radius: 9px; }
.hero .how { margin-top: 10px; font-size: .85em; font-weight: 650; color: #fff; opacity: .95; min-height: 36px; display: inline-flex; align-items: center; gap: 4px; position: relative; z-index: 1; }
.math { background: rgba(255,255,255,.12); border-radius: 14px; padding: 10px 12px; margin-top: 6px; font-size: .9em; position: relative; z-index: 1; }
.math div { display: flex; justify-content: space-between; padding: 3px 0; } .math div.tot { border-top: 1px solid rgba(255,255,255,.3); margin-top: 4px; padding-top: 7px; font-weight: 750; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.duo .btn { padding: 0 10px; white-space: nowrap; font-size: .95em; }
.btn { min-height: 50px; border-radius: 15px; padding: 0 16px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--card); color: var(--ink); box-shadow: var(--sh); }
.btn.pri { background: var(--p); color: var(--on-p); box-shadow: 0 6px 16px color-mix(in srgb, var(--p) 30%, transparent); }
.btn.soft { background: var(--soft); color: var(--p); box-shadow: none; } .dark .btn.soft { color: var(--p2); }
.btn.danger { background: color-mix(in srgb, var(--bad) 12%, var(--card)); color: var(--bad); box-shadow: none; }
.btn.block { width: 100%; } .btn:active { transform: scale(.98); } .btn[disabled] { opacity: .45; }
.btn.sm { min-height: 44px; padding: 0 12px; font-size: .9em; border-radius: 12px; }

/* chips */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; margin: 0 -16px 8px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 44px; padding: 0 14px 0 8px; border-radius: 14px; background: var(--card); box-shadow: var(--sh); display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: .92em; }
.chip .dot { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; color: #fff; }
.chip .dot svg { width: 17px; height: 17px; }
.chip small { color: var(--mut); font-weight: 600; }
.chip.add { padding: 0 14px; color: var(--p); } .dark .chip.add { color: var(--p2); }

.seg { display: flex; background: color-mix(in srgb, var(--ink) 6%, transparent); border-radius: 14px; padding: 4px; gap: 4px; margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.seg button { flex: 1; min-height: 40px; border-radius: 11px; font-weight: 650; font-size: .88em; color: var(--mut); white-space: nowrap; padding: 0 10px; }
.seg button small { display: block; font-size: .78em; font-weight: 550; opacity: .8; }
.seg.tall button { min-height: 50px; line-height: 1.2; }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: var(--sh); }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: color-mix(in srgb, var(--warn) 13%, var(--card)); color: var(--ink); margin-bottom: 10px; font-size: .92em; width: 100%; text-align: left; }
.alert svg { color: var(--warn); margin-top: 1px; } .alert.bad { background: color-mix(in srgb, var(--bad) 12%, var(--card)); } .alert.bad svg { color: var(--bad); }
.alert.info { background: var(--soft); } .alert.info svg { color: var(--p); }
.check { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--mut); }
.check span { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; }
.check.on span { background: var(--good); border-color: var(--good); color: #fff; } .check span svg { width: 16px; height: 16px; stroke-width: 3; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: var(--soft); border-radius: 14px; padding: 10px 12px; } .stat small { color: var(--mut); font-size: .76em; display: block; font-weight: 600; }
.stat b { font-size: 1.12em; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.prog { height: 10px; border-radius: 9px; background: color-mix(in srgb, var(--ink) 8%, transparent); overflow: hidden; }
.prog i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, var(--p), var(--p2)); }
.prog.over i { background: var(--bad); }

/* sheets */
.scrim { position: fixed; inset: 0; background: rgba(8,16,14,.42); z-index: 50; opacity: 0; transition: opacity .2s; }
.sheet { position: fixed; left: 50%; bottom: 0; width: 100%; max-width: 480px; transform: translate(-50%, 105%); z-index: 51; background: var(--bg);
  border-radius: 26px 26px 0 0; max-height: calc(100dvh - var(--sat) - 24px); display: flex; flex-direction: column; transition: transform .28s cubic-bezier(.2,.9,.25,1); box-shadow: 0 -10px 40px rgba(0,0,0,.18); }
.open .scrim { opacity: 1; } .open .sheet { transform: translate(-50%, 0); }
.sheet .grab { width: 40px; height: 5px; border-radius: 9px; background: color-mix(in srgb, var(--ink) 20%, transparent); margin: 8px auto 2px; flex: none; }
.sheet header { display: flex; align-items: center; padding: 4px 10px 6px 20px; flex: none; } .sheet header h2 { margin: 0; flex: 1; font-size: 1.2em; letter-spacing: -.01em; }
.sheet .body { overflow-y: auto; padding: 4px 18px calc(18px + var(--sab)); -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.fld { display: block; margin-bottom: 12px; } .fld > span { display: block; font-size: .82em; font-weight: 650; color: var(--mut); margin: 0 0 6px 4px; }
.fld input, .fld select, .fld textarea { width: 100%; min-height: 50px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); padding: 0 14px; outline: none; appearance: none; -webkit-appearance: none; }
.fld input[type=date] { min-width: 0; display: block; line-height: 47px; }
.fld select { background-image: linear-gradient(45deg, transparent 50%, var(--mut) 50%), linear-gradient(135deg, var(--mut) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.fld input:focus, .fld select:focus { border-color: var(--p); box-shadow: 0 0 0 3px color-mix(in srgb, var(--p) 18%, transparent); }
.fld small { color: var(--mut); display: block; margin: 5px 4px 0; font-size: .8em; }
.money { position: relative; } .money em { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--mut); font-weight: 650; }
.money input { padding-left: 34px; font-weight: 650; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tgl { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 14px; background: var(--card); border-radius: 14px; border: 1.5px solid var(--line); margin-bottom: 12px; width: 100%; text-align: left; }
.tgl .t { flex: 1; } .tgl small { display: block; color: var(--mut); font-size: .8em; }
.sw { width: 50px; height: 30px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 18%, transparent); position: relative; flex: none; transition: background .2s; }
.sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.on > .sw, .sw.on { background: var(--good); } .on > .sw::after, .sw.on::after { transform: translateX(20px); }
.actions { display: flex; gap: 10px; margin-top: 6px; } .actions .btn { flex: 1; }

/* keypad */
.amtbig { text-align: center; font-size: 3.1em; font-weight: 800; letter-spacing: -.04em; padding: 2px 0 4px; font-variant-numeric: tabular-nums; }
.amtbig.zero { color: var(--mut); }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 12px; }
.keys button { min-height: 54px; border-radius: 16px; background: var(--card); font-size: 1.45em; font-weight: 650; box-shadow: var(--sh); display: grid; place-items: center; }
.keys button:active { background: var(--soft); transform: scale(.97); }
.cats { display: flex; gap: 6px; overflow-x: auto; margin: 0 -18px 10px; padding: 2px 18px 4px; scrollbar-width: none; scroll-snap-type: x proximity; }
.cats::-webkit-scrollbar { display: none; }
.cats .cat { flex: 0 0 74px; scroll-snap-align: start; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px; border-radius: 14px; font-size: .72em; font-weight: 650; color: var(--mut); border: 2px solid transparent; min-height: 64px; }
.cat .dot { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: #fff; } .cat .dot svg { width: 18px; height: 18px; }
.cat.on { border-color: var(--p); color: var(--ink); background: var(--card); }
.cat span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* calendar */
.calhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; } .calhead b { font-size: 1.1em; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal .dow { text-align: center; font-size: .7em; font-weight: 700; color: var(--mut); padding: 4px 0; }
.cal .d { aspect-ratio: .78; border-radius: 12px; background: var(--card); padding: 5px 3px 3px; display: flex; flex-direction: column; align-items: center; font-size: .82em; font-weight: 650; position: relative; min-height: 48px; }
.cal .d.out { opacity: .35; } .cal .d.today { outline: 2px solid var(--p); outline-offset: -2px; }
.cal .d .dots { display: flex; gap: 3px; margin-top: 4px; } .cal .d .dots i { width: 7px; height: 7px; border-radius: 50%; }
.cal .d .sp { margin-top: auto; font-size: .72em; color: var(--mut); font-weight: 600; font-variant-numeric: tabular-nums; }
.cal .d.payday { background: color-mix(in srgb, var(--pay) 14%, var(--card)); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .8em; color: var(--mut); margin: 10px 2px 0; } .legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; }

/* challenge grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 6px; }
.grid button { min-height: 40px; border-radius: 10px; background: var(--soft); font-size: .78em; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.grid button.on { background: var(--p); color: #fff; }

/* donut + bars */
.donut { display: flex; gap: 16px; align-items: center; } .donut svg { width: 136px; height: 136px; flex: none; }
.legendl { flex: 1; min-width: 0; font-size: .86em; } .legendl div { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.legendl i { width: 10px; height: 10px; border-radius: 3px; flex: none; } .legendl span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .legendl b { font-variant-numeric: tabular-nums; }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 120px; padding-top: 8px; }
.bars div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.bars i { width: 100%; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--p2), var(--p)); min-height: 3px; }
.bars div.today i { background: var(--acc); } .bars small { font-size: .62em; color: var(--mut); font-weight: 650; }
.insight { display: flex; gap: 12px; align-items: flex-start; } .insight .ic { width: 38px; height: 38px; border-radius: 12px; background: var(--soft); color: var(--p); display: grid; place-items: center; flex: none; }
.dark .insight .ic { color: var(--p2); }
.insight p { margin: 0; font-size: .93em; } .insight p b { font-weight: 700; }

/* themes */
.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.swatch { border-radius: 16px; padding: 10px; background: var(--card); border: 2px solid var(--line); display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: .88em; min-height: 52px; }
.swatch i { width: 26px; height: 26px; border-radius: 50%; flex: none; } .swatch.on { border-color: var(--p); }

/* onboarding */
.ob { min-height: 100dvh; display: flex; flex-direction: column; padding: calc(var(--sat) + 22px) 22px calc(var(--sab) + 22px); }
.ob .steps { display: flex; gap: 6px; margin-bottom: 26px; } .ob .steps i { flex: 1; height: 5px; border-radius: 9px; background: var(--line); } .ob .steps i.on { background: var(--p); }
.ob h1 { font-size: 1.85em; letter-spacing: -.03em; line-height: 1.12; margin: 0 0 8px; } .ob p.lead { color: var(--mut); margin: 0 0 22px; }
.ob .grow { flex: 1; } .ob .bigin input { font-size: 2.2em; min-height: 74px; font-weight: 800; padding-left: 46px; letter-spacing: -.02em; } .ob .bigin em { font-size: 1.6em; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 26px; } .brand img { width: 40px; height: 40px; border-radius: 12px; }
.reveal { text-align: center; } .reveal .big { font-size: 4.2em; font-weight: 850; letter-spacing: -.05em; color: var(--p); margin: 8px 0; } .dark .reveal .big { color: var(--p2); }
.pickrow { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pickrow button { min-height: 44px; padding: 0 14px; border-radius: 99px; background: var(--card); border: 1.5px solid var(--line); font-weight: 650; font-size: .9em; }
.pickrow button.on { background: var(--p); color: #fff; border-color: var(--p); }
.billrow { display: grid; grid-template-columns: 1.3fr 1fr 1.15fr 32px; gap: 6px; align-items: center; margin-bottom: 8px; }
.billrow input { width: 100%; min-height: 46px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); padding: 0 10px; min-width: 0; }
.billrow button { color: var(--mut); height: 44px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(var(--tabh) + var(--sab) + 18px); transform: translate(-50%, 20px); opacity: 0; z-index: 60; background: var(--ink); color: var(--bg);
  border-radius: 16px; padding: 10px 10px 10px 16px; display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: .92em; transition: .22s; width: max-content; max-width: calc(100% - 32px); pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; } .toast button { color: var(--p2); font-weight: 750; min-height: 36px; padding: 0 8px; }
.morelist .row .ic { background: color-mix(in srgb, var(--c, var(--p)) 14%, var(--card)); color: var(--c, var(--p)); }
.badge { background: var(--bad); color: #fff; border-radius: 99px; font-size: .72em; font-weight: 800; padding: 2px 8px; }
.chev { color: var(--mut); width: 18px !important; height: 18px !important; }
.foot { text-align: center; color: var(--mut); font-size: .78em; margin: 20px 0 6px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.paywhos { display: flex; flex-direction: column; gap: 2px; margin: -2px 0 10px; font-size: .88em; font-weight: 600; }
.paywho { display: flex; align-items: center; gap: 7px; min-height: 28px; flex-wrap: wrap; } .paywho > i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.paywho .lnk { min-height: 32px; font-size: .95em; margin-left: auto; }
.mnote { margin: 8px 0 0; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.3); font-size: .92em; line-height: 1.4; }
.obx { padding: 12px 14px 2px; } .obx h3 { margin-bottom: 6px; } .obx .lnk { min-height: 32px; font-size: 1.05em; }
