@font-face{font-family:"Newsreader";src:url(fonts/newsreader-variable.woff2) format("woff2");font-weight:200 800;font-style:normal;font-display:swap}
@font-face{font-family:"Marcellus";src:url(fonts/marcellus-400.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap}

/* Layout: one calm column on phones with a bottom bar and a round + button; on wide screens a left rail and a two-column ledger. */
:root{
  --ground:#f0ede6; --raised:#f7f5f0; --sunk:#e6e0d4; --wash:#ebddd8;
  --ink:#3b1a1e; --soft:#6b4447; --accent:#8c363f; --rule:#d8ccbf; --rule-strong:#a0807c;
  --fill:#8c363f; --on-fill:#f0ede6; --focus:#5e2329; --gold:#8a6526;
  --bar:#8c363f; --bar-soft:#c9a3a2; --scrim:rgba(42,20,22,.42);
  --shadow:0 1px 2px rgba(59,26,30,.06),0 8px 24px rgba(59,26,30,.07);
  --notif:#2b2627; --notif-ink:#f3eeee; --notif-soft:#c9bfbf;
  --r-sm:8px; --r-md:10px; --r-lg:12px; --r-xl:16px; --r-pill:999px; /* Argo middle ground: softened paper corners; pills only for chips and status */
  --display:Marcellus,"Trajan Pro","Times New Roman",serif;
  --text:Newsreader,Georgia,"Times New Roman",serif;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]):not([data-argo]){
  --ground:#2a1416; --raised:#341b1e; --sunk:#211012; --wash:#43242a;
  --ink:#f0ede6; --soft:#cdb9b4; --accent:#e09a9f; --rule:#4a2c30; --rule-strong:#8a6266;
  --fill:#f0ede6; --on-fill:#5e2329; --focus:#f0ede6; --gold:#d9b067;
  --bar:#e09a9f; --bar-soft:#6f4146; --scrim:rgba(0,0,0,.55);
  --shadow:0 1px 0 rgba(0,0,0,.3),0 10px 28px rgba(0,0,0,.45); color-scheme:dark}}
:root[data-theme="dark"]:not([data-argo]),:root[data-argo="night"]{
  --ground:#2a1416; --raised:#341b1e; --sunk:#211012; --wash:#43242a;
  --ink:#f0ede6; --soft:#cdb9b4; --accent:#e09a9f; --rule:#4a2c30; --rule-strong:#8a6266;
  --fill:#f0ede6; --on-fill:#5e2329; --focus:#f0ede6; --gold:#d9b067;
  --bar:#e09a9f; --bar-soft:#6f4146; --scrim:rgba(0,0,0,.55);
  --shadow:0 1px 0 rgba(0,0,0,.3),0 10px 28px rgba(0,0,0,.45); color-scheme:dark}
:root[data-argo="canopus"]{
  --ground:#000; --raised:#120a0b; --sunk:#000; --wash:#2a1416;
  --ink:#f0ede6; --soft:#c4b2ae; --accent:#e9d9c8; --rule:#2b1c1e; --rule-strong:#7a5f63;
  --fill:#f0ede6; --on-fill:#5e2329; --focus:#f0ede6; --gold:#d9b067;
  --bar:#e9d9c8; --bar-soft:#4a3a3b; --scrim:rgba(0,0,0,.7);
  --shadow:0 0 0 1px rgba(240,237,230,.08); color-scheme:dark}
:root[data-argo="sailcloth"]{color-scheme:light}

*{box-sizing:border-box}
html,body{height:100%}
body{background:var(--ground);color:var(--ink);font-family:var(--text);font-size:17px;line-height:1.55;
  font-variant-numeric:lining-nums tabular-nums;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit;color:inherit;font-variant-numeric:lining-nums tabular-nums}
:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
#sky{position:fixed;inset:0;z-index:0;pointer-events:none}
.num{font-family:var(--text);font-variant-numeric:lining-nums tabular-nums}
h1,h2,h3{font-family:var(--display);font-weight:400;color:var(--accent);margin:0;text-wrap:balance}
.label{font-family:var(--display);font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--soft)}
.small{font-size:15px;color:var(--soft)}
.app{position:relative;z-index:1;min-height:100%;display:flex}
.rail{display:none}
.main{flex:1;min-width:0;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px));padding-block:0 140px}
.wrap{max-width:760px;margin:0 auto}
header.top{display:flex;align-items:center;gap:12px;padding-block:18px 10px}
.mark{color:var(--accent);text-decoration:none}
.mark .name{font-family:var(--display);font-size:22px;letter-spacing:.2em;line-height:1}
.mark .endorse{font-family:var(--display);font-size:8px;letter-spacing:.5em;display:block;margin-top:6px;color:var(--soft)}
.mark svg{margin-top:-4px}
.grow{flex:1}
.sync{display:inline-flex;align-items:center;gap:6px;font-size:14px;color:var(--soft);padding:6px 10px;border:1px solid var(--rule);border-radius:999px;background:var(--raised)}
.iconbtn{width:44px;height:44px;display:inline-grid;place-items:center;border:0;background:transparent;color:var(--accent);border-radius:50%;cursor:pointer;transition:background .15s}
.iconbtn:hover{background:var(--wash)}
svg.i{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
.view{display:none;flex-direction:column;gap:28px}
.view.on{display:flex}
.card{background:var(--raised);border:1px solid var(--rule);border-radius:var(--r-lg);box-shadow:var(--shadow)}
.card.list{overflow:hidden}
.example{display:flex;gap:10px;align-items:center;font-size:15px;color:var(--soft);padding:10px 14px;border:1px dashed var(--rule-strong);border-radius:var(--r-md)}
.example button{margin-left:auto}

/* hero */
.hero{padding:22px 20px 20px;display:flex;flex-direction:column;gap:14px}
.hero{container-type:inline-size}
.hero .big{font-size:clamp(26px,13cqi,44px);line-height:1;font-weight:500;color:var(--ink);white-space:nowrap}
.hero .big small{font-size:18px;color:var(--soft);font-weight:400;margin-right:6px}
.meter{height:10px;background:var(--sunk);border-radius:999px;overflow:hidden;border:1px solid var(--rule)}
.meter i{display:block;height:100%;background:var(--bar);border-radius:999px;transition:width .5s ease}
.split{display:flex;justify-content:space-between;gap:12px;font-size:15px;color:var(--soft);flex-wrap:wrap}
.split b{color:var(--ink);font-weight:600}
.hero .foot{border-top:1px solid var(--rule);padding-top:12px;display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:15px;color:var(--soft)}

/* list */
.sec{display:flex;flex-direction:column;gap:10px}
.sechead{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.sechead h2{font-size:21px}
.list{display:flex;flex-direction:column}
.row{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px 14px;border:0;border-bottom:1px solid var(--rule);background:transparent;text-align:left;cursor:pointer;width:100%;min-height:68px}
.row:last-child{border-bottom:0}
.row:hover{background:var(--wash)}
.tile{width:44px;height:44px;border-radius:11px;display:grid;place-items:center;background:var(--wash);color:var(--accent);font-family:var(--display);font-size:20px}
.row .nm{font-weight:600;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.row .meta{font-size:14px;color:var(--soft);display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.row .amt{text-align:right;display:flex;flex-direction:column;align-items:flex-end}
.row .amt .a{font-weight:600}
.row .amt .w{font-size:14px;color:var(--soft)}
.when{display:inline-flex;align-items:center;gap:4px}
.when.soon{color:var(--accent);font-weight:600}
.when.late{color:var(--ink);font-weight:600}
.empty{padding:28px 20px;text-align:center;color:var(--soft);display:flex;flex-direction:column;gap:10px;align-items:center}
.empty h3{font-size:21px}
details.paid summary{border-radius:var(--r-lg);cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:10px;padding:12px 14px;font-size:15px;color:var(--soft)}
details.paid summary::-webkit-details-marker{display:none}
details.paid[open] summary{border-bottom:1px solid var(--rule);border-radius:var(--r-lg) var(--r-lg) 0 0}
.row.paidrow .nm{font-weight:400}
.tick{color:var(--accent)}

/* buttons */
.btn{min-height:44px;padding:0 18px;border-radius:var(--r-sm);border:1px solid var(--rule-strong);background:var(--raised);color:var(--ink);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:600;font-size:16px}
.btn:hover{background:var(--wash)}
.btn.primary{background:var(--fill);color:var(--on-fill);border-color:var(--fill)}
.btn.primary:hover{filter:brightness(1.08)}
.btn.quiet{border-color:transparent;background:transparent;color:var(--accent)}
.btn.small{min-height:44px;padding:0 12px;font-size:15px}
.fab{position:fixed;right:calc(20px + env(safe-area-inset-right,0px));bottom:calc(92px + env(safe-area-inset-bottom,0px));width:60px;height:60px;border-radius:50%;border:0;background:var(--fill);color:var(--on-fill);display:grid;place-items:center;cursor:pointer;box-shadow:0 6px 18px rgba(59,26,30,.28);z-index:20}
.fab svg{width:28px;height:28px;stroke-width:2}

/* bottom nav */
nav.bottom{position:fixed;left:calc(12px + env(safe-area-inset-left,0px));right:calc(12px + env(safe-area-inset-right,0px));bottom:calc(10px + env(safe-area-inset-bottom,0px));z-index:15;background:var(--raised);border:1px solid var(--rule);border-radius:var(--r-xl);box-shadow:0 10px 30px rgba(42,20,22,.16);display:grid;grid-template-columns:repeat(3,1fr);padding:6px;max-width:520px;margin:0 auto}
nav.bottom button{border:0;background:transparent;min-height:56px;border-radius:var(--r-md);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:var(--soft);font-size:13px;cursor:pointer;transition:background .15s,color .15s}
nav.bottom button[aria-current="page"]{color:var(--accent);font-weight:600;background:var(--wash)}
nav.bottom button[aria-current="page"] svg{stroke-width:2.1}

/* insights */
.stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.stat{padding:16px;display:flex;flex-direction:column;gap:6px;min-width:0;container-type:inline-size}
.stat .v{font-size:clamp(15px,16cqi,26px);font-weight:500;line-height:1.15;white-space:nowrap}
.stat .v small{font-size:14px;color:var(--soft);font-weight:400}
.chartcard{padding:18px 16px 14px;display:flex;flex-direction:column;gap:10px}
.chart svg{width:100%;height:auto;display:block;overflow:visible}
.chart text{font-family:var(--text);font-size:12px;fill:var(--soft);font-variant-numeric:lining-nums tabular-nums}
.chart .bar{fill:var(--bar-soft);cursor:pointer;transition:fill .2s}
.chart .bar.cur,.chart .bar.sel{fill:var(--bar)}
.chart .grid{stroke:var(--rule);stroke-width:1}
.readout{display:flex;justify-content:space-between;align-items:baseline;gap:10px;flex-wrap:wrap}
.readout .v{font-size:22px;font-weight:600}
.cats{display:flex;flex-direction:column;gap:12px}
.cat{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px}
.cat .t{font-size:15px}
.cat .n{font-size:15px;color:var(--soft);text-align:right}
.cat .track{grid-column:1/-1;height:8px;background:var(--sunk);border-radius:999px;overflow:hidden}
.cat .track i{display:block;height:100%;background:var(--bar);border-radius:999px}
.donutwrap{display:flex;gap:18px;align-items:center;flex-wrap:wrap}
.donutwrap svg{width:120px;height:120px;flex:none}
.legend{display:flex;flex-direction:column;gap:6px;font-size:15px;min-width:0;flex:1 1 150px}
.legend span{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:8px;vertical-align:1px}

/* settings */
.group{display:flex;flex-direction:column}
.set{display:flex;align-items:center;gap:12px;padding:12px 14px;border-bottom:1px solid var(--rule);min-height:60px;flex-wrap:wrap}
.set:last-child{border-bottom:0}
.set .grow{min-width:0}
.set .t{display:block;font-weight:600}
.set .d{display:block;font-size:14px;color:var(--soft)}
.themes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;width:100%}
.themes button{border:1px solid var(--rule-strong);background:var(--raised);border-radius:var(--r-md);min-height:64px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;cursor:pointer;font-size:14px;color:var(--ink);position:relative}
.themes button[aria-pressed="true"]{background:var(--wash);border-color:var(--accent);color:var(--accent);font-weight:600}
.themes button[aria-pressed="true"]::after{content:"";position:absolute;top:6px;right:8px;width:6px;height:10px;border:solid var(--accent);border-width:0 2px 2px 0;transform:rotate(45deg)}
.field{display:flex;flex-direction:column;gap:6px}
.field label,.field .lab{font-size:14px;font-weight:600;color:var(--soft)}
.input{min-height:46px;border:1px solid var(--rule-strong);background:var(--raised);border-radius:var(--r-sm);padding:0 12px;width:100%}
textarea.input{padding:10px 12px;min-height:72px;resize:vertical}
.input:focus{outline:2px solid var(--focus);outline-offset:1px}
.rate{width:110px}
.seg{display:inline-flex;gap:3px;padding:3px;border-radius:var(--r-md);background:var(--sunk);border:1px solid var(--rule)}
.seg button{border:0;background:transparent;min-height:40px;padding:0 16px;cursor:pointer;font-size:15px;border-radius:var(--r-sm);transition:background .15s,color .15s}

.seg button[aria-pressed="true"]{background:var(--fill);color:var(--on-fill);font-weight:600}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{min-height:40px;padding:0 14px;border-radius:999px;border:1px solid var(--rule-strong);background:var(--raised);cursor:pointer;font-size:15px;display:inline-flex;align-items:center;gap:6px}
.chip[aria-pressed="true"]{background:var(--fill);color:var(--on-fill);border-color:var(--fill);font-weight:600}
.people{display:flex;flex-direction:column;gap:8px;width:100%}
.person{display:flex;justify-content:space-between;gap:10px;font-size:15px;padding:8px 0;border-top:1px solid var(--rule)}
.verline{text-align:center;font-size:14px;color:var(--soft);display:flex;flex-direction:column;gap:4px;align-items:center}
.verline button{border:0;background:transparent;color:var(--accent);text-decoration:underline;cursor:pointer;font-size:14px;min-height:36px}

/* sheets */
.scrim{position:fixed;inset:0;background:var(--scrim);z-index:40;opacity:0;transition:opacity .2s}
.scrim.on{opacity:1}
.sheet{position:fixed;left:0;right:0;bottom:0;z-index:41;background:var(--raised);border-top:1px solid var(--rule);border-radius:var(--r-xl) var(--r-xl) 0 0;
  max-height:92%;overflow:auto;transform:translateY(100%);transition:transform .25s ease;
  padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px));padding-block:8px calc(20px + env(safe-area-inset-bottom,0px))}
.sheet.on{transform:none}
.grab{width:40px;height:4px;border-radius:2px;background:var(--rule-strong);margin:6px auto 10px}
.sheethead{display:flex;align-items:center;gap:8px;margin-bottom:14px}
.sheethead h2{font-size:24px;flex:1}
.form{display:flex;flex-direction:column;gap:16px;max-width:560px;margin:0 auto}
.two{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end}
.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;padding-top:6px}
.err{font-size:14px;color:var(--accent);font-weight:600}
.dtop{display:flex;gap:14px;align-items:center}
.dtop .tile{width:60px;height:60px;font-size:26px;border-radius:13px}
.tile.logo{border:1px solid var(--rule)}
.tile.logo svg{width:58%;height:58%;display:block}
.tile.img{background:#fff;border:1px solid var(--rule);overflow:hidden}
.tile.img img{width:100%;height:100%;object-fit:cover;display:block}
.dtop .tile.logo svg{width:56%;height:56%}
.logopick{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.logopick .tile{width:56px;height:56px;font-size:26px;border-radius:12px}
.logopick .grow{min-width:0;flex:1 1 160px}
.logopick .opts{display:flex;gap:8px;flex-wrap:wrap}
.nologo{color:var(--accent)}
.notif .tile.ntile{width:36px;height:36px;font-size:16px;border-radius:8px;position:absolute;right:14px;top:14px}
.notif{padding-right:62px}
.facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:var(--rule);border:1px solid var(--rule);border-radius:var(--r-md);overflow:hidden}
.facts div{background:var(--raised);padding:12px;display:flex;flex-direction:column;gap:2px}
.facts .k{font-size:13px;color:var(--soft)}
.facts .v{font-weight:600}
.timeline{display:flex;flex-direction:column;font-size:15px}
.timeline div{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid var(--rule)}
.timeline div:last-child{border-bottom:0}
pre.csv{white-space:pre-wrap;word-break:break-word;background:var(--sunk);padding:12px;border-radius:var(--r-sm);font-size:13px;max-height:280px;overflow:auto;font-family:ui-monospace,Menlo,monospace}

/* toast + notification */
.toast{position:fixed;left:50%;bottom:calc(100px + env(safe-area-inset-bottom,0px));transform:translate(-50%,20px);opacity:0;z-index:60;
  background:var(--fill);color:var(--on-fill);border-radius:var(--r-md);padding:10px 10px 10px 16px;display:flex;gap:10px;align-items:center;font-size:15px;box-shadow:0 8px 24px rgba(0,0,0,.25);transition:all .25s;pointer-events:none;max-width:calc(100% - 32px)}
.toast.on{opacity:1;transform:translate(-50%,0);pointer-events:auto}
.toast button{border:0;background:transparent;color:inherit;font-weight:600;text-decoration:underline;cursor:pointer;min-height:36px;padding:0 8px}
.notif{position:fixed;top:calc(10px + env(safe-area-inset-top,0px));left:50%;width:min(420px,calc(100% - 24px));transform:translate(-50%,-140%);z-index:70;
  background:var(--notif);color:var(--notif-ink);border-radius:18px;padding:12px 14px;box-shadow:0 12px 30px rgba(0,0,0,.35);transition:transform .35s ease;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-size:14px}
.notif{visibility:hidden;transition:transform .35s ease,visibility 0s linear .35s}
.notif.on{transform:translate(-50%,0);visibility:visible;transition:transform .35s ease}
.example button{white-space:nowrap}
.notif .napp{font-size:12px;color:var(--notif-soft)}
.notif .ico{width:18px;height:18px;border-radius:50%;background:#8c363f;display:grid;place-items:center}
.notif .ttl{font-weight:600;font-size:15px;margin-top:6px}
.notif .bd{color:var(--notif-soft);margin-top:2px;line-height:1.4}
.notif .na{display:flex;gap:6px;margin-top:10px}
.notif .na button{border:0;background:rgba(255,255,255,.1);color:var(--notif-ink);border-radius:999px;min-height:36px;padding:0 14px;font:inherit;font-weight:600;cursor:pointer}

/* wide screens = the web app */
@media (min-width:960px){
  .rail{display:flex;flex-direction:column;gap:6px;width:250px;flex:none;padding:26px 18px;border-right:1px solid var(--rule);position:sticky;top:0;height:100vh;background:var(--raised)}
  .rail .mark{margin:0 8px 26px}
  .rail button.nav{border:0;background:transparent;display:flex;gap:12px;align-items:center;min-height:46px;padding:0 12px;border-radius:var(--r-sm);cursor:pointer;color:var(--soft);font-size:16px;text-align:left}
  .rail button.nav[aria-current="page"]{background:var(--wash);color:var(--accent);font-weight:600}
  .rail .addwide{margin:16px 0 0}
  .rail .foot{margin-top:auto;font-size:13px;color:var(--soft);padding:0 12px}
  nav.bottom,.fab,header.top .mark{display:none}
  .main{padding-block:0 60px;padding-left:40px;padding-right:40px}
  .wrap{max-width:1080px}
  #v-dues.on{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:28px;align-items:start}
  #v-dues .colB{grid-column:1;grid-row:2}
  #v-dues .colA{grid-column:2;grid-row:2;position:sticky;top:24px}
  #v-dues .example{grid-column:1/-1}
  #v-dues .colA,#v-dues .colB{display:flex;flex-direction:column;gap:28px;min-width:0}
  #v-insights.on{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:start}
  #v-insights .wide{grid-column:1/-1}
  .stats{grid-template-columns:repeat(4,minmax(0,1fr))}
  .sheet{left:50%;right:auto;bottom:auto;top:50%;width:min(620px,calc(100% - 48px));border-radius:var(--r-xl);border:1px solid var(--rule);transform:translate(-50%,-46%);opacity:0;pointer-events:none;transition:all .2s;max-height:88vh;padding:20px 28px 24px}
  .sheet.on{transform:translate(-50%,-50%);opacity:1;pointer-events:auto}
  .grab{display:none}
  .toast{bottom:28px}
}
@media (min-width:960px){ #v-dues .colA,#v-dues .colB{display:flex} }
@media (max-width:959px){ #v-dues .colA,#v-dues .colB{display:flex;flex-direction:column;gap:28px} }
@media (max-width:430px){ .sync .st{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)} .sync{padding:8px} }
@media (max-width:340px){ .lgh{height:42px!important} }
@media (max-width:380px){ .lgh{height:50px} .curtog button{min-width:36px;padding:0 8px} header.top{gap:8px} .themes{grid-template-columns:repeat(2,minmax(0,1fr))} }

.mark{display:block;line-height:0}
.lg{display:block;width:auto}
.lgh{height:62px}
.rail .lgh{height:70px}
.lg-night,.lg-canopus{display:none}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]):not([data-argo]) .lg-sail{display:none}:root:not([data-theme="light"]):not([data-argo]) .lg-night{display:block}}
:root[data-theme="dark"]:not([data-argo]) .lg-sail,:root[data-argo="night"] .lg-sail,:root[data-argo="canopus"] .lg-sail,:root[data-argo="canopus"] .lg-night{display:none}
:root[data-theme="dark"]:not([data-argo]) .lg-night,:root[data-argo="night"] .lg-night,:root[data-argo="canopus"] .lg-canopus{display:block}
#splash{position:fixed;inset:0;z-index:100;background:var(--ground);display:grid;place-items:center;transition:opacity .5s ease .1s}
#splash.gone{opacity:0;pointer-events:none}
#splash .lgs{width:min(260px,62vw);height:auto;animation:bloom 1.4s ease-out both}
@keyframes bloom{0%{opacity:0;filter:blur(6px);transform:translateY(10px)}60%{opacity:1;filter:blur(0)}100%{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){#splash{display:none}}
.sechead .grow{flex:1}
.sechead{align-items:center}
.viewtog{display:inline-flex;gap:2px;padding:3px;border-radius:var(--r-md);background:var(--sunk);border:1px solid var(--rule)}
.viewtog button{width:40px;height:36px;border:0;border-radius:var(--r-sm);background:transparent;color:var(--soft);display:grid;place-items:center;cursor:pointer}
.viewtog button svg{width:18px;height:18px}
.viewtog button[aria-pressed="true"]{background:var(--raised);color:var(--accent);box-shadow:0 1px 3px rgba(0,0,0,.12)}
.list.cards{gap:10px}
.herotop,.instop{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.instop h2{font-size:24px}
.toggap{display:flex;margin:10px 0 2px}
header.top{flex-wrap:wrap;row-gap:8px}
.card,.stat,.row,.facts div,.cat,.legend{min-width:0}
.cat .t,.legend div,.facts .v,.payrow .t,.payrow .d,.split span{overflow-wrap:anywhere}
.split{row-gap:4px}
.rf{height:.64em;width:auto;fill:currentColor;vertical-align:-.03em;margin-right:.14em;overflow:visible}
.cs{margin-right:.03em}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.m{white-space:nowrap}
.curtog{display:inline-flex;gap:2px;padding:3px;border-radius:var(--r-md);background:var(--sunk);border:1px solid var(--rule)}
.curtog button{min-width:44px;height:44px;padding:0 14px;border:0;border-radius:var(--r-sm);background:transparent;color:var(--soft);cursor:pointer;font-size:15px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:2px}
.curtog button[aria-pressed="true"]{background:var(--raised);color:var(--accent);box-shadow:0 1px 3px rgba(0,0,0,.12)}
.curtog .rf{height:.7em;margin-right:.18em}
.curtog .cw{font-size:15px;margin-left:5px}
.toglab{font-size:14px;color:var(--soft);margin:0 0 6px}
.toggap{flex-direction:column;align-items:flex-start}
.hint{font-size:14px;color:var(--soft);margin:2px 0 0}
.viewtog button{width:auto!important;min-width:44px;height:44px!important;padding:0 12px;gap:6px;font-size:15px}
.bycur{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.bycur div{container-type:inline-size;background:var(--sunk);border-radius:var(--r-md);padding:10px 12px;display:flex;flex-direction:column;gap:2px;min-width:0}
.bycur .k{font-size:13px;color:var(--soft)}
.bycur .v{font-size:clamp(14px,13cqi,19px);font-weight:600;white-space:nowrap}
.paysplit{display:flex;flex-direction:column;gap:16px}
.payrow{display:flex;flex-direction:column;gap:6px;container-type:inline-size;min-width:0}
.payrow .t{font-weight:600}
.payrow .v{font-size:clamp(17px,8cqi,24px);font-weight:600;white-space:nowrap}
.payrow .d{grid-column:1/-1;font-size:14px;color:var(--soft)}
.payrow .track{grid-column:1/-1;height:10px;background:var(--sunk);border-radius:999px;overflow:hidden}
.payrow .track i{display:block;height:100%;background:var(--bar);border-radius:999px}
.list.cards .row{background:var(--raised);border:1px solid var(--rule);border-radius:var(--r-lg);box-shadow:var(--shadow);padding:16px;min-height:88px;grid-template-columns:52px minmax(0,1fr) auto;gap:14px;transition:transform .15s ease,background .15s}
.list.cards .row:last-child{border-bottom:1px solid var(--rule)}
.list.cards .row:hover{background:var(--wash)}
.list.cards .row:active{transform:scale(.99)}
.list.cards .tile{width:52px;height:52px;font-size:22px;border-radius:12px}
.list.cards .row .nm{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:18px;line-height:1.3}
.list.cards .row .meta{white-space:normal;margin-top:2px}
.list.cards .empty{background:var(--raised);border:1px solid var(--rule);border-radius:var(--r-lg)}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

/* sign-in, unlock and no-access screens */
.gate{position:relative;z-index:1;min-height:100dvh;display:grid;place-items:center;padding:24px max(16px,env(safe-area-inset-left,0px)) 24px max(16px,env(safe-area-inset-right,0px))}
.gate[hidden]{display:none}
.gate-card{width:100%;max-width:420px;background:var(--raised);border:1px solid var(--rule);border-radius:var(--r-xl);padding:26px 22px 24px;display:flex;flex-direction:column;gap:14px;align-items:stretch;box-shadow:var(--shadow)}
.gate-card .gate-logo{width:150px;height:auto;align-self:center}
.gate-card h2{font:400 26px/32px var(--display);margin:0;color:var(--accent);text-align:center}
.gate-card p{margin:0;color:var(--soft);text-align:center}
.gate-card form{display:flex;flex-direction:column;gap:10px}
.gate-card input[type="password"]{width:100%;min-height:48px;background:var(--ground);border:1px solid var(--rule-strong);border-radius:var(--r-lg);padding:10px 14px;font-size:17px;color:var(--ink);font-family:var(--text)}
.gate-card input[type="password"]:focus{outline:2px solid var(--focus);outline-offset:2px}
.gate-err{color:var(--accent);font-weight:600}
.gate-card .btn.wide{width:100%;justify-content:center}
.gate-card .linkish{align-self:center;background:none;border:0;color:var(--accent);text-decoration:underline;cursor:pointer;font:inherit;min-height:44px}
.gate-card .fine{font-size:15px}
[hidden]{display:none!important}
.sync[data-state="error"],.sync[data-state="offline"],.sync[data-state="pending"],.sync[data-state="locked"]{color:var(--accent)}
.updbar{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(92px + env(safe-area-inset-bottom,0px));z-index:60;display:flex;gap:12px;align-items:center;background:var(--notif);color:var(--notif-ink);border-radius:var(--r-lg);padding:10px 12px 10px 16px;box-shadow:var(--shadow);max-width:calc(100vw - 32px)}
.updbar[hidden]{display:none}
@media (min-width:960px){.updbar{bottom:28px}}
