:root {
  --bg: #F3F7F4; --card: #FFFFFF; --ink: #10312E; --muted: #5C6F6B; --line: #D6E3DC;
  --teal: #0E6B63; --teal-ink: #F3F7F4; --teal-soft: #E3EFE9;
  --coral: #D9553B; --coral-ink: #A3351F; --coral-soft: #FBE3DD;
  --mustard: #E3C77A; --mustard-ink: #7A5A0A; --mustard-soft: #F6E7B8;
  --green-ink: #1B6B45; --green-soft: #DDF0E6; --neg: #B8432B;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 Manrope, system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
main { max-width: 1180px; margin: 0 auto; padding: 20px 24px 32px; }
footer { max-width: 1180px; margin: 0 auto; padding: 0 24px 28px; color: var(--muted); font-size: 12px; }
h1 { font-size: 26px; font-weight: 800; letter-spacing: -.01em; margin: 6px 0 16px; }
h2 { font-size: 17px; font-weight: 800; margin: 24px 0 10px; }
code { font-size: 13px; background: var(--teal-soft); padding: 1px 6px; border-radius: 5px; }
strong, b { font-weight: 700; }

.top { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 16px 24px 4px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 18px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.logo { width: 36px; height: 36px; border-radius: 10px; background: var(--teal); display: flex; align-items: center; justify-content: center; }
.top nav { display: flex; gap: 4px; flex: 1; }
.top nav a { padding: 8px 14px; border-radius: 999px; color: var(--ink); font-weight: 700; font-size: 14px; }
.top nav a:hover { background: var(--teal-soft); text-decoration: none; }
.top nav a.on { background: var(--teal); color: var(--teal-ink); }

.btn { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--teal); background: var(--teal); color: var(--teal-ink); padding: 8px 16px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; line-height: 1.2; }
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: var(--teal-ink); }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn.tiny { padding: 4px 10px; font-size: 12px; }
.inline { display: inline; }
.tiny-in { width: 92px; padding: 5px 8px; font: inherit; font-size: 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); }
.tiny-in.wide { width: 200px; border-radius: 8px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px 24px; }
.card.narrow { max-width: 560px; margin: 0 auto; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
label { display: block; margin: 12px 0; font-size: 14px; font-weight: 600; }
label input, label select, label textarea { display: block; width: 100%; margin-top: 5px; padding: 9px 12px; font: inherit; font-weight: 500; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); }
label.check { display: flex; align-items: center; gap: 8px; } label.check input { width: auto; margin: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hint { display: block; color: var(--muted); font-size: 12px; font-weight: 500; margin-top: 4px; }
.actions { display: flex; gap: 10px; margin-top: 16px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filters input, .filters select { padding: 8px 12px; font: inherit; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); }

.flash { padding: 10px 16px; border-radius: 12px; margin-bottom: 14px; background: var(--green-soft); color: var(--green-ink); font-weight: 600; }
.flash.error { background: var(--coral-soft); color: var(--coral-ink); }

.monthbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.pill { display: inline-flex; align-items: center; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.pill-btn { width: 34px; height: 34px; border-radius: 999px; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.pill-btn:hover { background: var(--teal-soft); text-decoration: none; }
.pill-label { font-weight: 800; font-size: 16px; padding: 0 12px; }
.rowhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.tl-grid { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: start; }
.tl-side { display: flex; flex-direction: column; gap: 18px; }
.ring-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.ring-txt { display: flex; flex-direction: column; gap: 6px; }
.ring { position: relative; width: 180px; height: 180px; }
.ring-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-pct { font-size: 30px; font-weight: 800; line-height: 1; }
.ring-sub { font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 4px; }
.big { font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.acct { display: flex; justify-content: space-between; font-size: 14px; padding: 9px 0; border-top: 1px solid var(--line); gap: 10px; }
.acct:first-of-type { border-top: 0; }
.neg { color: var(--neg); }

.tl { display: flex; flex-direction: column; gap: 12px; }
.wk { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.wk hr, .todayline hr { flex: 1; border: 0; border-top: 1px solid var(--line); margin: 0; }
.todayline { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 800; color: var(--teal); margin: 2px 0; }
.todayline i { width: 10px; height: 10px; border-radius: 5px; background: var(--teal); margin-left: 17px; }
.todayline hr { border-top: 2px dashed var(--teal); opacity: .5; }
.tcard { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.tcard.paid { opacity: .72; }
.tcard.overdue { border-color: var(--coral); box-shadow: 0 0 0 2px var(--coral-soft); }
.tcard.soon { border-color: var(--mustard); }
.day { width: 44px; height: 44px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; line-height: 1; flex: none; background: var(--teal-soft); color: var(--teal); }
.day b { font-size: 18px; margin-top: 2px; }
.tcard.overdue .day { background: var(--coral); color: #fff; }
.tcard.soon .day { background: var(--mustard-soft); color: var(--mustard-ink); }
.tbody { flex: 1 1 220px; min-width: 0; }
.tname { font-weight: 800; } .tname a { color: var(--ink); }
.tmeta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.chip { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.chip.paid { background: var(--green-soft); color: var(--green-ink); }
.chip.overdue { background: var(--coral-soft); color: var(--coral-ink); }
.chip.soon { background: var(--mustard-soft); color: var(--mustard-ink); }
.chip.upcoming { background: var(--bg); color: var(--muted); }
.amt { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 18px; white-space: nowrap; min-width: 90px; text-align: right; }
.payform { display: flex; gap: 6px; align-items: center; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 14px 0; }
table.list { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
table.list th, table.list td { padding: 10px 12px; text-align: left; border-top: 1px solid var(--line); vertical-align: middle; }
table.list th { border-top: 0; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; background: var(--teal-soft); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nowrap { white-space: nowrap; } .small { font-size: 13px; } .muted { color: var(--muted); } .dim { opacity: .55; } .bold { font-weight: 700; }
.tag { font-size: 10px; text-transform: uppercase; background: var(--teal-soft); color: var(--teal); padding: 1px 6px; border-radius: 4px; vertical-align: middle; font-weight: 700; }
ul.plain { list-style: none; padding: 0; } ul.plain li { padding: 4px 0; }

.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stat-n { font-size: 22px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat-n.big { font-size: 30px; margin: 6px 0 4px; }
.stats3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tab { font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; color: var(--muted); }
.tab.on { background: var(--ink); color: var(--teal-ink); } .tab:hover { text-decoration: none; }
table.list.plain th { background: transparent; border-bottom: 1px solid var(--line); }
table.list.compact th, table.list.compact td { padding: 6px 8px; font-size: 13px; }

/* home */
.tiles4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.tile { display: block; color: var(--ink); padding: 14px 18px; }
.tile:hover { text-decoration: none; border-color: var(--teal); }
.tile.alert { border-color: var(--coral); }
.tile .stat-n.big { font-size: 26px; margin: 4px 0 2px; }
.home-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
.li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid #EEF3F0; font-size: 14px; }
.li:first-of-type { border-top: 0; }
.li .day { width: 40px; height: 40px; border-radius: 11px; font-size: 10px; }
.li .day b { font-size: 16px; }
.li .day.overdue { background: var(--coral); color: #fff; }
.li .day.soon { background: var(--mustard-soft); color: var(--mustard-ink); }
.li-t { flex: 1; min-width: 0; font-weight: 700; } .li-t a { color: var(--ink); } .li-t span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.li-a { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 70px; text-align: right; }
.kv-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; padding: 7px 0; border-top: 1px solid #EEF3F0; }
.kv-row:first-of-type { border-top: 0; }
.mini-bar { width: 80px; height: 6px; border-radius: 3px; background: var(--teal-soft); overflow: hidden; margin-left: auto; } .mini-bar i { display: block; height: 100%; background: var(--teal); }

.rings { display: grid; grid-template-columns: repeat(auto-fit, minmax(176px, 1fr)); gap: 14px; margin-top: 16px; }
.gcard { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 16px 14px; color: var(--teal); }
.gcard:hover { text-decoration: none; border-color: var(--teal); }
.gcard.rec { color: #C9A227; } .gcard.heloc { border-color: var(--teal); }
.ring-sm { position: relative; width: 112px; height: 112px; }
.ring-sm-t { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--ink); }
.ring-sm-t .p { font-size: 20px; font-weight: 800; line-height: 1; }
.gname { font-weight: 800; font-size: 14px; color: var(--ink); }
.gper { font-size: 18px; font-weight: 800; color: var(--ink); }
.an-sm { font-weight: 700; } .an-sm span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.kv-row.hl { background: var(--teal-soft); margin: 0 -10px; padding: 8px 10px; border-radius: 10px; border-top: 0; }
.kv-row.hl + .kv-row { border-top: 0; }

.paper-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.paper-n { flex: 1 1 150px; }
.paper-op { font-size: 24px; font-weight: 800; color: var(--muted); }
.paper-detail { display: flex; gap: 6px 18px; flex-wrap: wrap; font-size: 12.5px; margin-top: 10px; }
.paper-detail i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* goals */
.goals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.goal { display: flex; flex-direction: column; gap: 9px; padding: 18px 20px; }
.goal.auto { border-color: var(--teal); }
.goal-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.goal-name { font-weight: 800; font-size: 16px; } .goal-name a { color: var(--ink); }
.goal-per { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.bar { height: 8px; border-radius: 4px; background: var(--teal-soft); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--teal); }
.kv { display: flex; justify-content: space-between; font-size: 13px; gap: 10px; }
.goal label { margin: 8px 0; }
.splitbar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; margin-top: 8px; }
.legend { display: flex; gap: 18px; font-size: 13px; margin-top: 8px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 5px; margin-right: 6px; }
.scens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; text-align: center; font-size: 13px; }
.scen { border: 1px solid var(--line); border-radius: 10px; padding: 8px; text-align: center; font-size: 13px; }
.scen.pick { border-color: var(--teal); background: var(--teal-soft); }

/* bills by account */
.bill-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.group { padding: 0; overflow: hidden; }
.gh { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; background: var(--teal-soft); }
.gt { font-weight: 800; font-size: 15px; } .gt span { font-weight: 600; font-size: 12px; color: var(--muted); margin-left: 8px; }
.gs { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.br { display: grid; grid-template-columns: 54px 1fr 140px 90px auto; align-items: center; gap: 10px; padding: 9px 18px; border-top: 1px solid #EEF3F0; font-size: 14px; }
.day-pill { font-size: 12px; font-weight: 800; color: var(--teal); background: var(--teal-soft); border-radius: 8px; padding: 4px 0; text-align: center; white-space: nowrap; }
.bn { font-weight: 700; min-width: 0; } .bn a { color: var(--ink); }
.pat { font-size: 11px; background: var(--bg); border: 1px solid var(--line); padding: 1px 6px; border-radius: 5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.warn { color: var(--coral-ink); font-size: 11px; font-weight: 700; margin-left: 6px; }

/* review */
.rv { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-top: 1px solid #EEF3F0; flex-wrap: wrap; }
.rv-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--teal-soft); color: var(--teal); display: flex; align-items: center; justify-content: center; flex: none; }
.rv-ic.bad { background: var(--coral-soft); color: var(--coral-ink); } .rv-ic.warn { background: var(--mustard-soft); color: var(--mustard-ink); }
.rv-t { flex: 1 1 240px; min-width: 0; } .rv-t b { font-size: 15px; } .rv-t span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }

/* accounts */
.arow { display: grid; grid-template-columns: 1fr 140px 120px; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid #EEF3F0; font-size: 14px; }
.arow:first-of-type { border-top: 0; }
.an { font-weight: 700; } .an span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.abar { height: 8px; border-radius: 4px; background: #EEF3F0; overflow: hidden; } .abar i { display: block; height: 100%; background: var(--teal); } .abar i.red { background: var(--coral); }
.aamt { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mini3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; font-size: 13px; }
.mini3 > div { background: var(--bg); border-radius: 10px; padding: 8px 12px; }

@media (max-width: 760px) {
  .goals, .bill-groups, .two-col, .stats3, .home-grid { grid-template-columns: 1fr; }
  .rings { grid-template-columns: 1fr 1fr; }
  .tiles4 { grid-template-columns: 1fr 1fr; }
  .br { grid-template-columns: 50px 1fr 80px; } .br .pat, .br .btn { display: none; }
  .arow { grid-template-columns: 1fr 100px; } .arow .abar { display: none; }
  .hide-sm { display: none; }
  .two { grid-template-columns: 1fr; }
  .top { gap: 10px; padding: 12px 14px 0; }
  .brand { flex: 1; }
  .top nav { order: 3; flex-basis: 100%; overflow-x: auto; }
  .top nav a { white-space: nowrap; }
  main { padding: 14px; }
  .tl-grid { grid-template-columns: 1fr; gap: 16px; }
  .tl-side { gap: 12px; }
  .ring-card { flex-direction: row; text-align: left; gap: 18px; padding: 16px 20px; }
  .ring-txt { flex: 1; }
  .ring { width: 110px; height: 110px; flex: none; }
  .ring svg { width: 110px; height: 110px; }
  .ring-pct { font-size: 22px; }
  .big { font-size: 28px; }
  .amt { min-width: 0; }
  .tcard { gap: 10px; }
}
