/* Enough.financial's stylesheet. Part 1 is the live site's own sheet (conformance/reference/index.html, lines 22 to 346), word for word,
   except the Today-page order rule (the sections are drawn in Michael's Nov 4, 2026 order, the same on phones and computers).
   Part 2 adds the classes for what the live Expo app styled in code: the day summary, charts, controls and small layout helpers.
   No inline style anywhere: the Content-Security-Policy allows none (style-src 'self'). */

/* Layout: phone-first ledger. Summary on top, running balances down the right edge, fixed tab bar at the bottom. */
:root{
  --bg:#EAF1FA; --surface:#FFFFFF; --nav:#D6EBF8; --navline:#BFDDF0; --ink:#151A24; --muted:#5E6677; --line:#DDE1E9; --chip:#E8EBF2;
  --accent:#2B4BA0; --accent-ink:#FFFFFF; --pos:#1E7A45; --neg:#B42318; --warn:#9A5B06;
  --pos-bg:#E3F2E8; --neg-bg:#FBE7E4; --warn-bg:#FBF0DC;
  --sec-start:#EDF1FA; --sec-during:#FAF4E8; --sec-end:#EAF5EE;
  --display:"Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body:"Public Sans", -apple-system, "Segoe UI", system-ui, sans-serif;
  --r:14px;
}
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]){
  --bg:#0E1522; --surface:#171E2B; --nav:#13283B; --navline:#1E3A52; --ink:#E8EBF2; --muted:#98A1B3; --line:#272D39; --chip:#1F2531;
  --accent:#8FA8F0; --accent-ink:#0F1218; --pos:#5CC48A; --neg:#F0827A; --warn:#E5B25C;
  --pos-bg:#16291E; --neg-bg:#33191A; --warn-bg:#2E2414; --sec-start:#1B2232; --sec-during:#272217; --sec-end:#17271E; color-scheme:dark }}
:root[data-theme="dark"]{
  --bg:#0E1522; --surface:#171E2B; --nav:#13283B; --navline:#1E3A52; --ink:#E8EBF2; --muted:#98A1B3; --line:#272D39; --chip:#1F2531;
  --accent:#8FA8F0; --accent-ink:#0F1218; --pos:#5CC48A; --neg:#F0827A; --warn:#E5B25C;
  --pos-bg:#16291E; --neg-bg:#33191A; --warn-bg:#2E2414; --sec-start:#1B2232; --sec-during:#272217; --sec-end:#17271E; color-scheme:dark }

/* chart colors: 8 categorical slots, checked for color-blind separation; dark steps for the dark surface */
:root{--c1:#2a78d6;--c2:#eb6834;--c3:#1baf7a;--c4:#eda100;--c5:#e87ba4;--c6:#008300;--c7:#6250d6;--c8:#e34948}
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]){--c1:#3987e5;--c2:#d95926;--c3:#199e70;--c4:#c98500;--c5:#d55181;--c6:#008300;--c7:#9085e9;--c8:#e66767}}
:root[data-theme="dark"]{--c1:#3987e5;--c2:#d95926;--c3:#199e70;--c4:#c98500;--c5:#d55181;--c6:#008300;--c7:#9085e9;--c8:#e66767}
.chwrap{overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%}
.chwrap svg{display:block}
svg.ch text{font-family:var(--body);fill:var(--muted);font-size:11px}
.chchips{display:flex;flex-wrap:wrap;gap:6px}
.chchips button{border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:7px 12px;font-size:13.5px;font-weight:600;color:var(--muted)}
.chchips button[aria-pressed="true"]{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
details.chg > summary{cursor:pointer;padding:6px 0;font-size:14.5px}
.chsel label{display:flex;gap:8px;align-items:center;padding:6px 0;font-size:14.5px;border-top:1px solid var(--line)}
.chsel input{width:20px;height:20px;flex:none}
.chsel input:disabled + span{opacity:.5}
.sw{width:12px;height:12px;border-radius:3px;display:inline-block;flex:none}
nav.tabs button{min-width:0}
*{box-sizing:border-box}
[hidden]{display:none!important}
p{margin:0}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--body);font-size:15px;line-height:1.45;-webkit-tap-highlight-color:transparent}
/* The app shell (Michael, Nov 11, 2026): the page itself never scrolls, so it can't leave a gap or bounce on any screen.
   The page is exactly the screen: the blue top bar at the top, the tab bar at the bottom, and only the space between
   (.scroller) scrolls, and only when what's in it is taller than that space. The background fills the space either way.
   This replaces the Nov 9 min-height tries (a short Today left a gap under the tab bar on the iPhone Home Screen app;
   making the page a little taller than the screen then let it scroll). */
html{height:100%;overflow:hidden;background:var(--bg)}
body{position:fixed;inset:0;overflow:hidden;display:flex;flex-direction:column}
.scroller{flex:1 1 auto;min-height:0;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;background:var(--bg);
  padding:0 max(16px, env(safe-area-inset-right, 0px)) 20px max(16px, env(safe-area-inset-left, 0px))}
/* the space under the top bar is the page's own, not the scroller's: a bar that sticks (the calendar's ‹ ›) sticks right under the top bar */
.scroller > .wrap{padding-top:18px}
/* no tab bar (first visit, Terms, Setup): the space runs to the bottom of the screen, so it keeps clear of the home bar itself */
body.notabs .scroller{padding-bottom:calc(20px + env(safe-area-inset-bottom, 0px))}
.wrap{width:100%;max-width:1600px;margin:0 auto;display:flex;flex-direction:column;gap:20px}
.num,.amt{font-variant-numeric:tabular-nums}
h1,h2,h3{font-family:var(--display);margin:0;text-wrap:balance}
h2{font-size:13px;font-family:var(--body);font-weight:600;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

header.top{display:flex;align-items:baseline;justify-content:space-between;padding-top:18px}
/* the dark blue bar with the name and today's date, on every page (reaches the screen edges and the top of an iPhone) */
.topbar{flex:none;background:#1F3B94;color:#FFFFFF;margin:0;
  padding:calc(12px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 12px max(16px, env(safe-area-inset-left, 0px))}
.topbar .in{max-width:1600px;margin:0 auto;display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.topbar .brand{font-family:var(--display);font-size:26px;font-weight:700;letter-spacing:-.02em;color:#FFFFFF}
.topbar .date{font-size:14px;color:#D3DCF7;font-variant-numeric:tabular-nums}
header.top h1{font-size:30px;font-weight:700;letter-spacing:-.02em}
header.top .date{color:var(--muted);font-size:14px}

.banner{border-radius:var(--r);padding:12px 14px;font-size:14px;display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.banner.warn{background:var(--warn-bg);color:var(--warn)}
.banner.bkb{flex-direction:column;align-items:stretch}.banner.bkb > span{line-height:1.4}.banner.bkb .btns{gap:6px}
.banner.neg{background:var(--neg-bg);color:var(--neg)}

.hero{display:grid;grid-template-columns:1fr 1fr;gap:12px 16px}
.hero .main{grid-column:1/-1}
.hero .lab{font-size:13px;color:var(--muted)}
.hero .big{font-family:var(--display);font-size:42px;font-weight:700;letter-spacing:-.02em;line-height:1.05}
.hero .mid{font-size:20px;font-weight:600}

.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
.row{display:flex;align-items:center;gap:12px;padding:12px 14px;border-top:1px solid var(--line)}
.row:first-child{border-top:0}
.row .grow{flex:1;min-width:0}
.rowbtn{background:none;border:0;padding:0;margin:0;font:inherit;color:inherit;text-align:left;cursor:pointer}
.row .t{font-weight:600;overflow-wrap:anywhere}
.row .s{font-size:13px;color:var(--muted);overflow-wrap:anywhere}
.row .amt{font-weight:600;white-space:nowrap;text-align:right}
.row.muted .t,.row.muted .amt{color:var(--muted);text-decoration:line-through}
.pos{color:var(--pos)} .neg{color:var(--neg)} .warnc{color:var(--warn)}
.section{display:flex;flex-direction:column;gap:8px}
.section-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.empty{padding:16px 14px;color:var(--muted);font-size:14px}

.btn{border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:7px 14px;font-weight:600;font-size:14px}
.btn.small{padding:5px 11px;font-size:13px}
.btn.primary{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.btn.danger{color:var(--neg);border-color:var(--neg)}
.btn.ghost{border-color:transparent;background:transparent;color:var(--accent)}
.btns{display:flex;gap:8px;flex-wrap:wrap}
.linkbtn{background:none;border:0;color:var(--accent);font-weight:600;padding:0;font-size:14px}

.seg{display:flex;background:var(--chip);border-radius:999px;padding:3px;gap:2px}
.seg button{flex:1;border:0;background:transparent;border-radius:999px;padding:7px 10px;font-weight:600;font-size:14px;color:var(--muted)}
.seg button[aria-pressed="true"]{background:var(--surface);color:var(--ink);box-shadow:0 1px 2px rgba(0,0,0,.12)}

.tag{display:inline-block;font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;border-radius:6px;padding:2px 6px;background:var(--chip);color:var(--muted);vertical-align:1px}
.tag.plan{background:var(--chip);color:var(--accent)}
.tag.late{background:var(--warn-bg);color:var(--warn)}

/* Calendar */
/* the ‹ › bar stays just under the top bar while you scroll, so you can move between days or months from anywhere */
.calbar{display:flex;align-items:center;justify-content:space-between;gap:8px;position:sticky;top:0;z-index:5;
  background:var(--bg);padding:6px 0;margin:-6px 0;box-shadow:-16px 0 0 var(--bg),16px 0 0 var(--bg)}
.calbar .ttl{font-family:var(--display);font-size:20px;font-weight:700;text-align:center;flex:1;min-width:0}
.calbar .calmj{display:flex;justify-content:center}.calbar .calmj .dpsel{flex:0 1 auto}.calbar .calmj select{font-size:18px}
.calday{font:inherit;color:inherit;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:6px 12px;display:inline-flex;align-items:center;gap:8px;cursor:pointer;max-width:100%;text-align:center}
.calday .dlico{flex:none;width:20px;height:20px;color:var(--muted)}
.iconbtn{width:38px;height:38px;border-radius:50%;border:1px solid var(--line);background:var(--surface);font-size:18px;line-height:1}
/* Month grid: all seven columns are the same width, set by the widest day (at least the screen's width).
   When the amounts don't fit, the calendar scrolls sideways inside .calscroll, not the whole page. */
.calscroll{overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;max-width:100%;padding-bottom:2px}
.grid{display:grid;grid-template-columns:repeat(7,1fr);gap:3px;width:max-content;min-width:100%}
.mbreak{grid-column:1/-1;justify-self:start;position:sticky;left:0;font-family:var(--display);font-size:18px;font-weight:700;padding:16px 2px 4px}
.mbreak:first-child{padding-top:0}
.calpick{width:100%;max-width:560px;margin:0 auto}
.calside{margin:-14px 0 -8px;text-align:center}
.dow{font-size:11px;text-align:center;color:var(--muted);font-weight:600;padding-bottom:2px}
.cell{background:var(--surface);border:1px solid var(--line);border-radius:9px;min-height:74px;padding:4px 3px;display:flex;flex-direction:column;align-items:center;gap:2px;text-align:center}
.cell.out{opacity:.4}
.cell.today{border-color:var(--accent);border-width:2px}
.cell .d{font-size:12px;font-weight:600}
.cell .v{font-size:10.5px;font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:-.02em}
.cell .dots{display:flex;gap:2px;flex-wrap:wrap;justify-content:center}
.cell{justify-content:flex-start;padding:4px 2px 5px}
.cell .ca{display:flex;flex-direction:column;align-items:center;width:100%;white-space:nowrap;font-size:9px;line-height:1.25;font-variant-numeric:tabular-nums;letter-spacing:-.03em;padding-top:2px;border-top:1px dashed var(--line)}
.cell .ca .an{font-size:8px;line-height:1.1;font-weight:700;color:var(--muted);letter-spacing:-.02em;width:0;min-width:100%;max-width:100%;white-space:normal;overflow-wrap:break-word;hyphens:none;text-align:center;margin-bottom:1px}
.cell .ca b{font-weight:700}
.cell .ca .v{font-size:inherit;letter-spacing:inherit}
.cell .ca.tot{border-top:1px solid var(--muted)}
.cell .ca.tot .an{color:var(--ink)}
.cell .mz{color:var(--line)}
.dot{width:5px;height:5px;border-radius:50%}
.dot.in{background:var(--pos)} .dot.outd{background:var(--neg)} .dot.intd{background:var(--warn)}
.cell.lowday{background:var(--warn-bg)} .cell.negday{background:var(--neg-bg)}
/* month view: only the account that's low or below $0 is highlighted, not the whole day */
.cell .ca.lowacct{background:var(--warn-bg);border-radius:4px}
.cell .ca.negacct{background:var(--neg-bg);border-radius:4px}
.weekday{display:flex;flex-direction:column}
.weekday .wh{display:flex;justify-content:space-between;align-items:baseline;padding:10px 14px;background:var(--chip);cursor:pointer;border:0;width:100%;text-align:left}
.weekday .wh .t{font-weight:700}
/* day and month summaries: the change since the start, in small type under each end amount */
.chg{display:block;font-size:11px;line-height:1.25;font-style:italic;font-weight:500;color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.sumrule{border-top:2px solid var(--line);margin:10px 0 0}
.legend{font-size:12px;color:var(--muted);display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.legend span{display:inline-flex;align-items:center;gap:4px}
.sw{width:12px;height:12px;border-radius:3px;display:inline-block}

/* Week view: one day per screen width, swipe left and right, scroll the page up and down */
.wkchips{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.wkchips button{border:1px solid var(--line);background:var(--surface);border-radius:10px;padding:5px 0;font-size:11px;font-weight:600;color:var(--muted);display:flex;flex-direction:column;align-items:center;line-height:1.2}
.wkchips button b{font-size:15px;color:var(--ink)}
.wkchips button[aria-current="true"]{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.wkchips button[aria-current="true"] b{color:var(--accent-ink)}
.wkchips button.istoday{border-color:var(--accent);border-width:2px}
.wkstrip{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;align-items:flex-start}
.wkstrip::-webkit-scrollbar{display:none}
.wkstrip > .panel{flex:0 0 100%;min-width:0;scroll-snap-align:start;scroll-snap-stop:always}
/* Tabs */
nav.tabs{flex:none;position:relative;background:var(--nav);border-top:1px solid var(--navline);
  display:flex;justify-content:center;padding-bottom:env(safe-area-inset-bottom, 0px);
  padding-left:max(8px, env(safe-area-inset-left, 0px));padding-right:max(8px, env(safe-area-inset-right, 0px));z-index:20}
nav.tabs .in{display:flex;max-width:720px;width:100%}
nav.tabs button{flex:1;border:0;background:none;padding:10px 4px 12px;font-size:12px;font-weight:600;color:var(--muted);display:flex;flex-direction:column;align-items:center;gap:3px}
nav.tabs button[aria-current="page"]{color:var(--accent)}
nav.tabs svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
nav.tabs .addtab{color:var(--accent)}
nav.tabs .addtab .addcircle{width:30px;height:30px;margin-top:-4px;border-radius:50%;background:var(--accent);display:flex;align-items:center;justify-content:center}
nav.tabs .addtab .addcircle svg{stroke:var(--accent-ink);stroke-width:2.4;width:18px;height:18px}

/* Sheet */
.backdrop{position:fixed;inset:0;background:rgba(10,14,22,.45);z-index:40}
.sheet{position:fixed;left:0;right:0;bottom:0;z-index:41;background:var(--surface);border-radius:20px 20px 0 0;max-height:92%;overflow-y:auto;
  padding-top:14px;padding-bottom:calc(20px + env(safe-area-inset-bottom, 0px));
  padding-left:max(18px, env(safe-area-inset-left, 0px));padding-right:max(18px, env(safe-area-inset-right, 0px))}
.sheet .inner{max-width:720px;margin:0 auto;display:flex;flex-direction:column;gap:14px}
.sheet h3{font-size:22px}
/* the X stays put while the popup scrolls (Michael, Nov 9, 2026): the popup has no top padding, so the X's own place is the top edge it sticks to */
.sheet{padding-top:0}
.sheet .grab{margin-top:14px}
/* The X never sits on the content (Michael, Nov 9, 2026): on a phone it has its own bar across the top that stays put
   while the popup scrolls under it; where there's room beside the content (computers), it sits just to the right of it. */
.xbar{position:sticky;top:0;z-index:5;height:52px;display:flex;align-items:center;justify-content:flex-end;background:var(--surface);
  margin:0 -18px;padding:0 12px;border-bottom:1px solid var(--line)}
.xbar .xgrab{position:absolute;left:50%;top:10px;transform:translateX(-50%);margin:0}
.xbar + .grab{display:none}
.sheet .inner > .xbar ~ h3:first-of-type{padding-right:0}
@media (min-width:860px) and (max-width:1023px), (min-width:1060px){
  .xbar{height:0;margin:0;padding:0;background:none;border:0;justify-content:flex-end;align-items:flex-start}
  .xbar .xgrab{display:none}
  .xbar + .grab{display:block}
  .xbar .xclose{margin-top:8px;margin-right:-50px}
}
@media (min-width:1060px){ .xbar .xclose{margin-right:-46px} }
.xclose{width:38px;height:38px;flex:none;border-radius:50%;border:1px solid var(--line);background:var(--surface);color:var(--ink);font-size:24px;line-height:1;cursor:pointer;box-shadow:0 1px 4px rgba(10,14,22,.18);display:flex;align-items:center;justify-content:center}
.xclose:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.sheet .inner > h3{padding-right:44px}
.grab{width:44px;height:5px;border-radius:3px;background:var(--muted);opacity:.45;margin:0 auto 6px}
.sheet{overscroll-behavior:contain}
.discard{position:fixed;inset:0;z-index:60;background:rgba(10,14,22,.4);display:flex;align-items:center;justify-content:center;padding:16px}
.discard .box{background:var(--surface);color:var(--ink);border-radius:16px;padding:18px;max-width:360px;width:100%;display:flex;flex-direction:column;gap:8px;box-shadow:0 10px 40px rgba(0,0,0,.25)}
.discard .box b{font-size:17px}.discard .box p{margin:0;color:var(--muted);font-size:14.5px}.discard .btns{margin-top:6px}
.field{display:flex;flex-direction:column;gap:5px}
.field label,.field .lbl{font-size:13px;font-weight:600;color:var(--muted)}
.field input,.field select,.field textarea{width:100%;border:1px solid var(--line);background:var(--bg);border-radius:10px;padding:11px 12px;font-size:16px}
.field textarea{min-height:110px;font-family:ui-monospace,Menlo,monospace;font-size:12px}
.money{position:relative}
.money span{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--muted);font-size:16px}
.money input{padding-left:26px;font-size:22px;font-weight:600;font-variant-numeric:tabular-nums}
.two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.two > *{min-width:0}
/* rows with a date: one field per line (iPhone date fields are too wide to share a row) */
.btn:disabled{opacity:.45;cursor:default}
.setup a:not(.btn){color:var(--accent)}
.legalbtns > .btn{flex:1 1 0;justify-content:center;padding:10px 14px;font-size:15px;white-space:nowrap}
footer.legal{text-align:center;font-size:13px;color:var(--muted);padding:18px 0 4px}
footer.legal a{color:var(--muted)}
footer.legal .lnote{text-wrap:balance;margin-bottom:4px}footer.legal .lcopy{text-wrap:balance;margin-top:4px}
.setup li + li{margin-top:6px}
a.btn{text-decoration:none;display:inline-flex;align-items:center;color:var(--ink)}
.pgroup{background:var(--bg);border-left:3px solid var(--accent);margin-left:14px}
.pgroup > .row{background:transparent}
.stack2{display:grid;grid-template-columns:1fr;gap:10px}
/* iPhone Safari gives date fields their own wide minimum size: drop the native frame so they fit the page like other fields */
input[type="date"]{-webkit-appearance:none;appearance:none;display:block;width:100%;min-width:0;max-width:100%;box-sizing:border-box;min-height:46px;text-align:left}
input[type="date"]::-webkit-date-and-time-value{text-align:left;margin:0}
input[type="date"]::-webkit-calendar-picker-indicator{margin-left:auto}
/* iPhone: with the page's taller line height, the typing cursor sits lower than the text in a field; normal line height lines them up */
.field input,.field select,.money input,.acctin input{line-height:normal}
/* a date line (Michael, Nov 11, 2026): the calendar button on the left, right next to the date you can type */
.dline{min-width:0;max-width:100%}
.dlrow{display:flex;align-items:stretch;gap:8px;min-width:0}
.dlrow input.dlin,.field .dlrow input.dlin{flex:1 1 auto;min-width:0;width:auto;min-height:46px;box-sizing:border-box;border:1px solid var(--line);background:var(--bg);border-radius:10px;padding:11px 12px;font-size:16px;color:var(--ink);font-family:var(--body);font-variant-numeric:tabular-nums;line-height:normal}
.dlrow input.dlin.bd-bad{border-color:var(--neg)}
.dlcal{flex:none;width:48px;min-height:46px;border:1px solid var(--line);background:var(--bg);border-radius:10px;display:flex;align-items:center;justify-content:center;padding:0;cursor:pointer;color:var(--ink)}
.dlcal:hover:not(:disabled){background:var(--chip)}
.dlcal[aria-expanded="true"]{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
.dlcal:disabled{opacity:.4;cursor:default}
.dlico{width:22px;height:22px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Crect x='3.5' y='5' width='17' height='15' rx='2'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Crect x='3.5' y='5' width='17' height='15' rx='2'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E") center/contain no-repeat}
.dlnote{font-size:13px;color:var(--neg);font-weight:600}
.dlnote:empty{display:none}
.dlnote{margin-top:4px}
.dp{position:fixed;z-index:80;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:16px;box-shadow:0 12px 40px rgba(0,0,0,.25);padding:14px;width:360px;max-width:calc(100vw - 16px);font-family:var(--body)}
.dph{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.dpsel{display:flex;gap:6px;flex:1 1 auto;justify-content:center;min-width:0}
.dpsel select{-webkit-appearance:none;appearance:none;font-family:var(--display);font-size:16px;font-weight:700;color:var(--ink);border:1px solid var(--line);border-radius:10px;padding:7px 22px 7px 8px;min-width:0;max-width:100%;cursor:pointer;
  background:var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238a93a6' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 7px center/10px 6px}
@media (max-width:360px){.dp{padding:12px 10px}.dpn{width:34px;height:34px}.dph{gap:4px}.dpsel{gap:4px}}
.dpsel select.dpm{flex:1 1 auto;max-width:150px}
.dpsel option{font-family:var(--body);font-weight:400}
.dpsel select.dpy{flex:none}
.dpn:disabled{opacity:.3}
.dpn{width:40px;height:40px;border-radius:50%;border:1px solid var(--line);background:var(--surface);font-size:20px;line-height:1}
.dpg{display:grid;grid-template-columns:repeat(7,1fr);gap:3px;height:306px;grid-template-rows:22px repeat(6,1fr)}
.dpg.dpweeks4{grid-template-rows:22px repeat(4,1fr)}.dpg.dpweeks5{grid-template-rows:22px repeat(5,1fr)}
.dpw{align-self:center}
.dpw{font-size:12px;font-weight:700;color:var(--muted);text-align:center;padding:4px 0}
.dpd{height:auto;min-height:40px;border:0;border-radius:10px;background:transparent;font-size:16px;font-variant-numeric:tabular-nums}
.dpd:hover:not(:disabled){background:var(--chip)}
.dpd.out{color:var(--muted);opacity:.6}
.dpd.now{box-shadow:inset 0 0 0 2px var(--accent)}
.dpd[aria-pressed="true"]{background:var(--accent);color:var(--accent-ink);opacity:1}
.dpd:disabled{opacity:.25;cursor:default}
/* a plan's last date: the days it repeats on stand out */
.dp.sched .dpd:not(:disabled){background:var(--chip);font-weight:700;box-shadow:inset 0 0 0 1.5px var(--accent)}
.dp.sched .dpd[aria-pressed="true"]{background:var(--accent)}
.dpf{display:flex;justify-content:space-between;margin-top:10px}
.field{min-width:0;max-width:100%}
.sheet{overflow-x:hidden}
.hint{font-size:13px;color:var(--muted)}
.err{color:var(--neg);font-size:13px;font-weight:600}
.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(90px + env(safe-area-inset-bottom, 0px));background:var(--ink);color:var(--bg);padding:10px 16px;border-radius:999px;font-weight:600;font-size:14px;z-index:60;max-width:calc(100% - 32px)}

.setup{display:flex;flex-direction:column;gap:16px;padding-top:4px}
.setup .acctin .nm-in{flex:1;min-width:0;font-size:16px;padding:9px 10px;border:1px solid var(--line);background:var(--bg);border-radius:10px}
.setup .acctin .money{width:40%}
.setup .acctin .rm{color:var(--muted);font-size:16px;padding:6px}
.acctcols{display:flex;gap:10px;padding:8px 14px 0;font-size:12.5px;color:var(--muted);font-weight:600}
.acctcols span:first-child{flex:1}
.acctcols span:last-child{width:calc(40% + 34px)}
.acctadd{padding:4px 14px 12px}
.setup .lede{font-size:16px;color:var(--muted)}
.setup .lede.oneline{white-space:nowrap;font-size:clamp(13px, 4.1vw, 16px)} /* the welcome line stays on one line, even on small phones */
.setup h1{font-size:44px;letter-spacing:-.03em}
.acctin{display:flex;align-items:center;gap:10px;padding:10px 14px;border-top:1px solid var(--line)}
.acctin:first-child{border-top:0}
.acctin .nm{flex:1;min-width:0;font-weight:600}
.acctin .money{width:46%}
.acctin .money input{font-size:17px;padding:9px 10px 9px 24px;border:1px solid var(--line);background:var(--bg);border-radius:10px;width:100%}
.groupname{padding:8px 14px;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);background:var(--chip)}
.steps{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:4px;font-size:14px}
@media (prefers-reduced-motion: no-preference){ .sheet{animation:up .22s ease-out} @keyframes up{from{transform:translateY(30px);opacity:.6}} }
@media (max-width:360px){ .hero .big{font-size:34px} .cell .v{font-size:9.5px} }

/* Wider screens: use the whole width.
   Tablets and computers: sections sit side by side in as many columns as fit (each at least 420px wide);
   anything that isn't a section (header, banners, summary, calendar, lists) spans the full width. */
@media (min-width:900px){
  .wrap.cols{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,420px),1fr));gap:20px 24px;align-items:start}
  .wrap.cols > *{grid-column:1/-1}
  .wrap.cols > section.section{grid-column:auto;min-width:0}
  .hero{grid-template-columns:repeat(4,minmax(0,1fr))}
  .hero .main{grid-column:span 2}
  .setup{max-width:720px;margin:0 auto}
}
/* Today on phones and tablets: the two wrappers don't change anything */
.wrap.today > .tleft,.wrap.today > .tmain{display:contents}
/* Today on a computer: summary totals stacked on the left with the warnings under them (a quarter of the width);
   sections in the middle half, one above the next, in bigger type */
@media (min-width:1024px){
  .wrap.today{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr) minmax(0,1fr);gap:20px 32px;align-items:start}
  .wrap.today > header.top,.wrap.today > footer.legal{grid-column:1/-1}
  .wrap.today > .tleft{display:flex;flex-direction:column;gap:14px;grid-column:1}
  .wrap.today > .tmain{display:flex;flex-direction:column;gap:28px;grid-column:2;zoom:1.25}
  .tleft .hero{display:flex;flex-direction:column;gap:14px}
  .tleft .hero .big{font-size:40px}
  .tleft .banner{flex-direction:column;align-items:flex-start}
}
/* Computers: bigger text everywhere, and readable half-width columns.
   zoom scales text, buttons and spacing together; it's only used on blocks whose width comes from their column. */
@media (min-width:1024px){
  body{font-size:17px}
  .banner{font-size:16px}
  nav.tabs .in{zoom:1.15}
  .sheet .inner{zoom:1.25}
  .setup{zoom:1.2}
  .topbar .brand{font-size:30px}
  .topbar .date{font-size:16px}
  .wrap.tab-today .tleft{zoom:1.1}
  /* three-column frame: a quarter, a centered half, a quarter */
  .wrap.tab-cal,.wrap.tab-plans{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr) minmax(0,1fr);gap:20px 32px;align-items:start}
  .wrap.tab-cal > *,.wrap.tab-plans > *{grid-column:1/-1}
  /* calendar: bigger text; the month or day summary in the middle half */
  .wrap.tab-cal > :not(section):not(footer):not(.banner){zoom:1.4}
  .wrap.tab-cal > section.section{grid-column:2;zoom:1.6}
  /* plan: one list, stacked, in the middle half */
  .wrap.tab-plans > :not(footer):not(.banner){grid-column:2;zoom:1.25}
  /* the Plan page's Calendar View uses the full width; the switches above it and the List View stay in the middle (Michael, Nov 9, 2026, 2:57 AM ET) */
  .wrap.tab-plans > #p_cal{grid-column:1/-1}
  /* charts: chart type on the left (a quarter wide), range buttons centered, chart full width, the rest in the middle half */
  .wrap.tab-charts section.section > h2{zoom:1.2}
  select.ch-type{width:25% !important;align-self:flex-start;font-size:18px !important}
  .ch-range{zoom:1.2}
  .ch-range .chchips{justify-content:center}
  .ch-range > div{justify-content:center}
  .ch-chart{zoom:1.25}
  .ch-below{width:50%;align-self:center;margin:0 auto}
  .ch-below > .zin{zoom:1.25;display:flex;flex-direction:column;gap:12px}
  .wrap.tab-charts > section.section > .panel:not(.ch-range):not(.ch-chart){width:50%;align-self:center}
  .wrap.tab-charts > section.section > .panel:not(.ch-range):not(.ch-chart) > *{zoom:1.2}
  /* settings: three columns; Home Screen on the left, Backup in the middle */
  .wrap.cols.tab-settings{grid-template-columns:repeat(3,minmax(0,1fr))}
  .wrap.tab-settings > section.section{zoom:1.2}
  .s-accounts{order:1} .s-sync{order:2} .s-backup{order:3} .s-home{order:4} .s-about{order:5} .s-terms{order:6} .s-start{order:7}
  .wrap.tab-settings > footer{order:9}
}
/* the month calendar grows with the screen, so its text can too */
@media (min-width:700px){
  .grid{gap:5px}
  .cell{min-height:96px;padding:6px 4px 7px;border-radius:11px}
  .cell .d{font-size:14px}
  .cell .ca{font-size:11.5px;letter-spacing:-.01em}
  .cell .ca .an{font-size:10px}
  .dow{font-size:12.5px}
}
@media (min-width:1200px){
  .cell{min-height:118px}
  .cell .ca{font-size:13px}
  .cell .ca .an{font-size:11px}
}

/* ===== Part 2: classes for the live app's in-code styles ===== */
[hidden]{display:none !important}
.col{display:flex;flex-direction:column}
.gap4,.gap6,.gap8,.gap10,.gap14{display:flex;flex-direction:column}
.gap4{gap:4px}.gap6{gap:6px}.gap8{gap:8px}.gap10{gap:10px}.gap14{gap:14px}
.pad10{padding:10px}.pad10-6{padding:10px 6px}.pad10-8{padding:10px 8px}.pad10-12{padding:10px 12px}.pad10-14{padding:10px 14px}
.pad12{padding:12px}.pad12-14{padding:12px 14px}.pad14{padding:14px}.pad14-16{padding:14px 16px}.pad16{padding:16px}.pad4-14-14{padding:4px 14px 14px}
.mt2{margin-top:2px}.mt4{margin-top:4px}.mt5{margin-top:5px}.mt6{margin-top:6px}.mt8{margin-top:8px}.mt10{margin-top:10px}.mtm4{margin-top:-4px}.mtm10{margin-top:-10px}
.mx4{margin-left:4px;margin-right:4px}.my13{margin-top:13px;margin-bottom:13px}.p6{padding:6px 0}.g5{gap:5px}
.fs11_5{font-size:11.5px}.fs12{font-size:12px}.fs12_5{font-size:12.5px}.fs13{font-size:13px}.fs13_5{font-size:13.5px}.fs14{font-size:14px}.fs15{font-size:15px}.fs15_5{font-size:15.5px}.fs17{font-size:17px}
.t14{font-size:14px}.t14_5{font-size:14.5px}.t15{font-size:15px}.l13{font-size:13px}.xs{font-size:12px}
.b,.b6{font-weight:600}.w6{font-weight:600}.sm{font-size:11.5px}.nb{white-space:nowrap}.strike{text-decoration:line-through}
.selfstart{align-self:flex-start;display:flex}.selfcenter{align-self:center}.mlauto{margin-left:auto}
.btns.center{justify-content:center}.btns.nowrap{flex-wrap:nowrap}.btns.stack{flex-direction:column;flex-wrap:nowrap;align-items:stretch}
.btn.wide{padding:11px 22px}.btn.half{flex:1;padding:12px 12px}.btn.bfmake{padding:11px 22px}
.btn.warnbtn{color:var(--warn)}.btn.negbtn{color:var(--neg)}.btn.mutedbtn{color:var(--muted)}
.linkbtn.l13{font-size:13px}.linkbtn.rm{color:var(--muted);font-size:16px;padding:6px;font-weight:400}
button.rowbtn{all:unset;display:block;flex:1;min-width:0;cursor:pointer;font:inherit;color:inherit;text-align:left}
button.rowbtn .t{font-weight:600;overflow-wrap:anywhere}button.rowbtn .s{font-size:13px;color:var(--muted);overflow-wrap:anywhere}
.amtbox{display:flex;flex-direction:column;align-items:flex-end}.amtbox .s{font-size:13px;color:var(--muted);white-space:nowrap}
.row .s .btns{margin-top:6px}
/* folded sections on Today (details with a hint summary; the live Expo app's .fold) */
summary.fold{cursor:pointer;padding:4px 0;line-height:1.45} /* the browser's own ▶ marker, as the live app shows */
details > summary.fold ~ *{margin-top:8px}
/* the hero on a card's, a cash account's or an item's page: boxes side by side, hints across the full width */
.hero.sheethero{display:flex;flex-wrap:wrap;gap:6px 16px}
.hero.sheethero > div{width:calc(50% - 8px)}.hero.sheethero > .main{width:100%}
@media (min-width:600px){.hero.sheethero > div{width:calc(25% - 12px)}.hero.sheethero > .main{width:100%}}
/* controls */
.chk{width:20px;height:20px;flex:none;accent-color:var(--accent)}.chk.chk22{width:22px;height:22px}
/* a tick box inside a .field (the purchases to pay toward) must not take the full-width box look of .field input, or it squeezes its words out */
.field input.chk{width:20px;height:20px;padding:0;border:0;background:none}.field input.chk.chk22{width:22px;height:22px}
.chkl{display:flex;gap:8px;align-items:center;font-size:14px;cursor:pointer}.chkl.tos{gap:10px;font-size:15px}
.chkl.rcchk{font-size:14.5px}.chkl.freshchk{align-items:flex-start;margin-top:2px;font-size:14px}.chkl.w6{font-weight:600}
.chkl.cb{padding:10px 12px;gap:10px;border-top:1px solid var(--line)}.cbrow .chkl{border-top:0}.cbrow{border-top:1px solid var(--line)}
.payline{border-top:1px solid var(--line)}.payline .chkl{padding:9px 12px;gap:10px}.paylines{max-height:260px;overflow-y:auto}
.chkline{display:flex;gap:8px;align-items:center;padding:4px 0;font-size:14.5px}
.visually-hidden{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;pointer-events:none}
label.btn.filepick{display:inline-block;cursor:pointer}
.dl{display:contents}
.field input.bd-bad,.schbox input.bd-bad{border-color:var(--neg)}
.field input.bd-read,.schbox input.bd-read{border-color:#767676}
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) .field input.bd-read, :root:not([data-theme="light"]) .schbox input.bd-read{border-color:#858585} }
.field .nm-in{flex:1;min-width:0;font-size:16px;padding:9px 10px}
input.pin,.pin{font-size:15px;padding:8px 10px}
.field .msmall input{font-size:17px;padding:9px 10px 9px 24px}
.field > .lbl{font-size:13px;font-weight:600;color:var(--muted)}.field.size12 > label,.field.size12 > .lbl{font-size:12px}
.fhead{display:flex;justify-content:space-between;align-items:baseline;gap:8px}.fhead .lbl{font-size:13px;font-weight:600;color:var(--muted)}
.fhead .linkbtn{font-size:14px}
select.bare{border:0;background:transparent;font:inherit;color:inherit;flex:1;min-width:0;padding:4px 0}
.ch-type{font-size:16px;padding:10px 12px;border-radius:12px;font-weight:600;background:var(--surface);color:var(--ink);border:1px solid var(--line);width:100%;font-family:var(--body);line-height:1.45;align-self:flex-start}
/* forms */
.panel.prev{padding:10px 12px;display:flex;flex-direction:column;gap:4px;background:var(--bg)}
.pl{font-size:13.5px}.pl.hint{color:var(--muted)}
.parts{display:flex;flex-direction:column;gap:8px}.panel.part{padding:8px;display:flex;flex-direction:column;gap:6px}
.lparts{margin:2px 0 2px 8px;padding-left:8px;border-left:2px solid var(--line);font-size:13px;color:var(--muted)}
.intlist,.planpays{margin:6px 0 2px 8px;padding-left:8px;border-left:2px solid var(--line)}.intlist.after,.planpays.after{margin-bottom:0}
.intlist.top{margin:0;padding:0;border:0}
.ils{cursor:pointer;font-weight:700;padding:2px 0;font-size:13px;color:var(--ink);list-style:none}.ils::-webkit-details-marker{display:none}
/* a list that opens: bold, with an arrow that points down while it's open (Michael, Nov 9, 2026) */
.ils::before{content:'\25B6';display:inline-block;width:1.1em;font-size:.75em;vertical-align:.08em}details[open] > .ils::before{content:'\25BC'}
.intlist.top .ils{color:var(--ink);font-size:15px}
.ilr{display:flex;gap:10px;align-items:baseline;padding:4px 0;border-top:1px dashed var(--line);font-size:13px;color:var(--muted)}
.intlist.top .ilr{color:var(--ink)}.ilr .grow{flex:1;min-width:0}.ilv{text-align:right;white-space:nowrap}
/* All Payments: one line per day (the date, and what was paid that day on the right), opening to the purchases paid */
.daypay{padding:10px 14px;border-top:1px solid var(--line)}.daypay:first-child{border-top:0}.dayamt{float:right;font-weight:600}
.daypay .ilr{color:var(--ink)}.daypay .ilr .fs11_5{color:var(--muted)}
.schbox{width:42%;display:flex;flex-direction:column;gap:5px;align-items:stretch}.schbox.w40{width:40%}
.schbox input{width:100%;border:1px solid var(--line);background:var(--bg);border-radius:10px;font-size:17px;padding:9px 10px;color:var(--ink);font-family:var(--body);box-sizing:border-box}
/* the $ sits inside the box: keep room for it (.schbox input's padding would otherwise win over .money input's) */
.schbox .money input{padding-left:26px}
.line2{display:flex;justify-content:space-between;gap:12px}.rule{border-top:1px solid var(--line)}
.defs{border-top:1px solid var(--line);padding-top:8px;display:flex;flex-direction:column;gap:6px}
.ktot{padding:10px 14px;display:flex;flex-direction:column;gap:4px}.kline{display:flex;gap:10px;align-items:baseline}.kline .num{font-size:14px;white-space:nowrap}
.kline > .grow{flex:1;min-width:0}.kline .num{margin-left:auto}
.w5{width:5em}
.panel.totals{padding:0 14px}
.tline{display:flex;justify-content:space-between;gap:12px;padding:7px 0;border-top:1px solid var(--line)}.tline .num{text-align:right}
.tsub{display:flex;justify-content:space-between;gap:12px;padding:2px 0 2px 12px;font-size:13px;color:var(--muted)}
.discard .box.cbox{max-width:420px;max-height:90%;overflow-y:auto}
.rccode{font-weight:600;font-size:20px;line-height:1.4;text-align:center;font-family:ui-monospace,Menlo,monospace;letter-spacing:.8px}
.plainlink{color:#0000EE}
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) .plainlink{color:#9E9EFF} }
.tsbox{min-height:0}
.steps{margin:0;padding-left:20px}
.setup .list{margin:0;padding-left:20px}
h2.h2-20{font-size:20px;margin-top:6px}h2.h2-17{font-size:17px}
.setup .acctcols{display:flex;gap:10px;padding:8px 14px 0;font-size:12.5px;color:var(--muted);font-weight:600}
.setup .acctcols span:first-child{flex:1}.setup .acctcols span:last-child{width:calc(40% + 34px)}
.acctadd{padding:10px 14px;display:flex;align-items:flex-start}
/* the calendar's day summary (live Expo app DaySummaryV, one block per section) */
.daysum{display:flex;flex-direction:column;gap:2px}
.dssec{border-radius:10px;padding:2px 10px 10px;margin-top:8px}
.dssec.start{background:var(--sec-start)}.dssec.during{background:var(--sec-during)}.dssec.end{background:var(--sec-end)}
.dshd{font-size:14px;font-weight:700;color:var(--accent);letter-spacing:.7px;text-transform:uppercase;margin-top:8px;margin-bottom:2px}
.dssub{font-size:11px;font-weight:700;color:var(--muted);letter-spacing:.55px;text-transform:uppercase;margin-top:6px}
.sumrule{border-top:2px solid var(--line);margin-top:10px}
.dshint{font-size:13px;color:var(--muted)}.dshint.in10{padding-left:10px}.dshint.in20{padding-left:20px}
.dsl{display:flex;gap:10px;align-items:baseline}.dsl.top{border-top:1px solid var(--line);padding-top:4px;margin-top:2px}.dsl.in10{padding-left:10px}.dsl.in20{padding-left:20px}
.dsg{flex:1;min-width:0;font-size:13px}.dsg.b6{font-weight:600}.dsg.sm{font-size:12px}
.dsg .s.dss{font-size:11.5px;color:inherit}.dsg .s.dss .b{font-weight:600}
.dsv{text-align:right;white-space:nowrap}.dsv.b{font-weight:700}.dsv .muted{color:var(--muted);font-weight:400}
.dsr{display:flex;flex-direction:column;align-items:flex-end}
.dstx{display:flex;gap:10px;align-items:flex-start;padding:6px 0;border-top:1px dashed var(--line)}.dstx.skip{opacity:.6}
.dstx .btns{gap:5px;margin-top:5px}.dstx .btn.small{padding:3px 9px;font-size:12px}
.dsnote{display:flex;gap:10px;align-items:baseline;padding:4px 0 4px 10px;border-top:1px dashed var(--line)}.dsnote.skip{opacity:.6}.dsnote.noin{padding-left:0}
.dslist{padding-left:10px}summary.dsds{font-size:12px;line-height:1.4;padding:2px 0;cursor:pointer;color:var(--muted)}
.dstail{font-size:12px;color:var(--muted);margin-top:8px}
span.chg{display:block;font-size:11px;line-height:1.25;font-weight:500;color:var(--muted);font-style:italic;white-space:nowrap;font-variant-numeric:tabular-nums}
span.chg.wrap{white-space:normal;margin-bottom:2px}
.tag9{font-size:9px}
.calhead{display:flex;align-items:flex-start;justify-content:space-between;gap:8px 10px;flex-wrap:wrap}
.calht{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.calhb{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-left:auto}
.calside{text-align:center;margin:-14px 0 12px}
.legend{display:flex;flex-wrap:wrap;gap:12px;align-items:center;font-size:13px;color:var(--muted)}
.legend > span{display:inline-flex;align-items:center;gap:4px}
.legend .sw{width:12px;height:12px;border-radius:3px;border:1px solid var(--line);display:inline-block}.legend .sw.lowsw{background:var(--warn-bg)}.legend .sw.negsw{background:var(--neg-bg)}
.legend .dot{display:inline-block}
.cellgap{min-height:0}
.two.one{grid-template-columns:1fr}
/* charts (live Expo app Charts.tsx) */
.charts{display:flex;flex-direction:column;gap:12px}
.panel.ch-range{padding:12px;display:flex;flex-direction:column;gap:10px}
.chchips{display:flex;flex-wrap:wrap;gap:6px}
.chchips .btn{padding:7px 12px;font-size:13.5px;color:var(--muted)}
.chchips .btn[aria-pressed="true"]{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.chnav{display:flex;align-items:center;gap:8px}.chrl{flex:1;text-align:center;font-weight:700}
.panel.ch-chart{padding:10px 8px}
.chtitle{font-weight:600;padding:0 4px 4px}
.chwrap{overflow-x:auto;max-width:100%}
.chlegend{display:flex;flex-wrap:wrap;gap:6px 14px;padding:8px 2px 0}
.chli{display:flex;gap:6px;align-items:center;max-width:100%;font-size:13px}
.chnote{font-size:12px;padding:6px 2px 0}
.sw{width:12px;height:12px;border-radius:3px;display:inline-block;flex:none;background:var(--muted);vertical-align:-1px}
.sw.c1{background:var(--c1)}.sw.c2{background:var(--c2)}.sw.c3{background:var(--c3)}.sw.c4{background:var(--c4)}.sw.c5{background:var(--c5)}.sw.c6{background:var(--c6)}.sw.c7{background:var(--c7)}.sw.c8{background:var(--c8)}
svg.sw,svg.swx{width:14px;height:12px;background:transparent;border-radius:0}
.swl{padding-top:4px;flex:none}
.chph{display:flex;justify-content:space-between;gap:8px;align-items:baseline}
.chpr{display:flex;gap:10px;padding:7px 0;border-top:1px solid var(--line)}.chpr.sl{gap:8px;padding:5px 0}.chpr .grow{flex:1;min-width:0}
details.panel.chtable{padding:10px 14px}details.chtable > summary{font-weight:600;cursor:pointer}
.chtb{padding:8px 0;border-top:1px solid var(--line)}.chtr{display:flex;gap:8px;padding:2px 0}.chtr .grow{flex:1;min-width:0}
.pies{display:flex;flex-wrap:wrap;gap:10px;align-items:stretch}
.panel.pie{padding:10px 12px;display:flex;flex-direction:column;gap:6px;width:calc(50% - 5px)}
@media (max-width:480px){.panel.pie{width:100%}}
.piebox{display:flex;justify-content:center}
.chtot{display:flex;justify-content:space-between;gap:8px;padding:4px 0;border-top:1px solid var(--line);font-size:13px}
details.chg{border-top:1px solid var(--line);padding:6px 0}details.chg > summary{cursor:pointer;font-size:14.5px}
.chsel{padding:3px 0}.chsel .chkl{font-size:14.5px}.chsel.sk .chkl{font-size:14px}
.skcol{display:flex;align-items:center;gap:8px}.w46{width:46px;font-size:13px;flex:none}
.chlegend.sk{padding:8px 8px 0;font-size:12.5px}.chlegend.sk > span{display:inline-flex;align-items:flex-start;gap:3px}
.hit{cursor:pointer}
.ch-below .zin{display:flex;flex-direction:column;gap:12px}
@media (min-width:1024px){
  .ch-type{font-size:18px;width:25%}
}
/* picking dates on a month calendar (Repeats "On dates you pick", the calculator's custom dates; Michael, Nov 9, 2026) */
.pickdates{display:flex;flex-direction:column;gap:8px}
.pdhead{display:flex;align-items:center;gap:8px;text-align:center}.pdhead .grow{flex:1}
.pdgrid{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;text-align:center}
.pdw{font-size:11.5px;font-weight:600;color:var(--muted)}
.pdday{min-height:38px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);font:inherit;font-size:14px;cursor:pointer;padding:0}
.pdday.on{background:var(--accent);border-color:var(--accent);color:var(--accent-ink);font-weight:700}
.pdday:disabled{opacity:.35;cursor:default}
.pdadd{display:flex;align-items:center;gap:10px}.pdadd label{font-size:13px;font-weight:600;color:var(--muted);white-space:nowrap;min-width:120px}.pdadd input{flex:1;min-width:0}
/* the calculator's three choices: long words, so they may take two lines */
.seg3 .seg button{font-size:12.5px;line-height:1.25;padding:7px 6px}
.calcrows{padding:4px 14px}.calcrows .ilr{align-items:center;color:var(--ink)}.calcrows .ilr:first-child{border-top:0}
/* the payment calculator stands apart from the form's boxes */
.calcbox{padding:12px 14px;border:1.5px solid var(--accent);background:var(--surface)}.calcbox > details > summary{font-weight:700;cursor:pointer}
.pdpicked{min-height:22px}
.acctwarn{border-top:1px solid var(--line)}.acctwarn:first-child{border-top:0}.acctwarn > .row{border-top:0}.acctwarn > .field{padding:0 14px 12px}
/* the funds page (Michael, Nov 9, 2026): Past/Future switch, the five periods, and the month calendar */
.segpf .seg button{font-size:15px;padding:9px 10px}
.seg5 .seg{flex-wrap:wrap;border-radius:14px}
.seg5 .seg button{flex:1 1 30%;font-size:12.5px;padding:7px 6px;border-radius:11px}
/* month calendars never shorten amounts: the seven columns are as wide as the widest day (all the same width), at least
   the full width, and the calendar scrolls sideways when that's wider than the screen (Michael, Nov 9, 2026, 2:38 AM ET) */
.kscroll{overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;padding-bottom:2px}
.kgrid{display:grid;grid-template-columns:repeat(7,1fr);gap:3px;width:max-content;min-width:100%}
.kgrid .pdw{text-align:center}
.kcell{min-height:64px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);font:inherit;padding:3px 3px 4px;display:flex;flex-direction:column;align-items:stretch;gap:2px;text-align:left;cursor:pointer;min-width:0}
.kcell.blank{border:0;background:transparent;cursor:default}
.kcell.out{opacity:.35;cursor:default}
.kcell.negday{background:var(--neg-bg);border-color:var(--neg)}
.kcell.warncday{background:var(--warn-bg)}
.kd{font-size:12px;font-weight:700}
.ki{display:flex;flex-direction:column;font-size:9.5px;line-height:1.15;min-width:0}
.ki .kt,.ki .ka{white-space:nowrap}
.ki .ka{color:var(--neg)}.ki.pos .ka{color:var(--pos)}
.kmore{font-size:9.5px;color:var(--muted)}
@media (min-width:600px){ .kcell{min-height:84px;padding:4px 6px} .ki{font-size:11px} .kd{font-size:13px} }
/* Today's Forecasted warning dates (Michael, Nov 9, 2026): orange at the warning level, red under $0 / over the limit / out */
.wrng{display:flex;gap:10px;align-items:baseline;padding:7px 10px;margin-top:6px;border-radius:10px;font-size:13px;color:var(--ink)}
.wrng .grow{flex:1;min-width:0}.wrng .s{font-size:12px;color:var(--muted)}
.wrng.warn,.row.wwarn{background:var(--warn-bg)}.wrng.neg,.row.wneg{background:var(--neg-bg)}
/* Items sits the same distance under Debts as Debts under Funds (Michael, Nov 9, 2026, 2:36 AM ET) */
.wlists > div + div{margin-top:8px}
.wlists > div > details > .ils{font-size:15px}
.wcgrid .ki{color:var(--ink)}.wcgrid .ki .ka{color:var(--muted)}
.ki.lvwarn .ka{color:var(--warn);font-weight:700}.ki.lvneg .ka{color:var(--neg);font-weight:700}
.pctbox{display:flex;align-items:center;gap:6px;max-width:200px}.pctbox input{flex:1;min-width:0}.pctsign{font-weight:700;font-size:17px;color:var(--muted)}
/* the account pages' three parts (Michael, Nov 9, 2026): the account and its details, the Add buttons, the rest */
.pzone{border-radius:16px;padding:14px;display:flex;flex-direction:column;gap:12px}
.pz-top{background:var(--nav)}
/* the Add buttons on a blue-grey of their own (Michael, Nov 9, 2026: not green) */
.pz-add{background:#DCE2EC}
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) .pz-add{background:#232C3B} }
:root[data-theme="dark"] .pz-add{background:#232C3B}
/* Today's sections that open and close (Michael, Nov 9, 2026): the heading is the arrow line */
.secsum{display:flex;align-items:center;gap:6px;color:var(--muted);padding:2px 0}
.secsum::before{color:var(--muted)}
.secsum h2{display:inline}
.lvl-warn>details>.secsum,.lvl-warn>details>.secsum::before,.lvl-warn>details>.secsum h2{color:var(--warn)}
.lvl-neg>details>.secsum,.lvl-neg>details>.secsum::before,.lvl-neg>details>.secsum h2{color:var(--neg)}
section.fsec > details > *:not(summary){margin-top:10px}
.subsec + .subsec{margin-top:12px}
.subsec > .subh{font-size:15px;font-weight:700;margin:0 0 6px 2px;color:var(--ink)}
.pz-body{background:var(--sec-start)}
.pz-top .field input,.pz-top .field select,.pz-top .money input{background:var(--surface)}
.pz-top h3{margin:0}
.pzone > section.section,.pzone.section{margin:0}
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) .pz-top .field input{background:var(--bg)} }
:root[data-theme="dark"] .pz-top .field input{background:var(--bg)}
/* Amounts by date's calendar (Michael, Nov 9, 2026): days on the plan's schedule in bold */
#s_cal .kd{font-weight:400}#s_cal .kbold .kd{font-weight:800}#s_cal .kbold{border-color:var(--ink)}
#s_cal .ki .ka{color:var(--ink);font-weight:700}#s_cal .ki .kt{color:var(--muted)}
.cbox label{font-size:13px;font-weight:600;color:var(--muted);margin-top:4px}
#s_note{margin-top:4px}#s_note.neg{color:var(--neg)}#s_note.pos{color:var(--pos)}
/* account calendars' day blocks (Michael, Nov 9, 2026): start, each thing, totals, change, what's left at the end */
.kblocks .kcell{justify-content:flex-start}
.dl{display:flex;flex-direction:column;font-size:9.5px;line-height:1.15;min-width:0}
.dlt{color:var(--muted);white-space:nowrap;min-width:0}
.dla{white-space:nowrap;font-weight:600}
.dl.ditem .dlt{color:var(--ink)}
/* a line between the starting amount and the transactions (Michael, Nov 9, 2026) */
.dl.dstart{border-bottom:1px solid var(--line);padding-bottom:2px;margin-bottom:1px}
.dl.dtot{border-top:1px dashed var(--line);padding-top:1px}
.dl.dchg .dla{font-weight:700}
.dl.dend{border-top:1px solid var(--line);padding-top:1px}.dl.dend .dla{font-weight:800}
@media (min-width:600px){ .dl{font-size:11px} }
.dview{display:flex;flex-direction:column;gap:4px}
.dview .dl{flex-direction:row;justify-content:space-between;align-items:baseline;gap:10px;font-size:14px}
.dview .dlt{flex:1;white-space:normal}
.kpart > details > .ils{font-size:15px}
.kin{margin-top:6px;padding-left:4px}
.fsadd{margin:0 0 4px}
/* the Plan page's Calendar View (Michael, Nov 9, 2026): each thing's name, then its amount (in green, out red) */
#p_cal .kcell{justify-content:flex-start}
#p_cal .ki + .ki{border-top:1px dashed var(--line);padding-top:1px}
#p_cal .ki .kt{color:var(--ink)}
#p_cal .ki .ka{color:var(--ink);font-weight:600}#p_cal .ki .ka.pos{color:var(--pos)}#p_cal .ki .ka.neg{color:var(--neg)}
.kcell.ksel{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
/* the Calendar summaries' debt accounts open to show their purchases (Michael, Nov 9, 2026, 2:49 AM ET) */
.dsfsum{display:flex;align-items:flex-start;gap:2px;font-weight:inherit;font-size:inherit;padding:0}
.dsfsum::before{margin-top:.55em;flex:none}
.dsfsum > .dsl{flex:1;min-width:0}
