:root{font-family:-apple-system,"PingFang SC","Helvetica Neue",sans-serif;color:#222;background:#eae8df;--yellow:#ffd84d;--paper:#fffdf7;--muted:#77746b;--line:#eeece6;--bg:#f5f5f3;--tabs:70px;--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px);font-synthesis:none}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
body{margin:0;overscroll-behavior:none}
button,input,select{font:inherit;color:inherit}
button{border:0;background:none;cursor:pointer;padding:0;touch-action:manipulation}
button:active{filter:brightness(.92)}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #927009;outline-offset:2px}
h1,h2,p,figure{margin:0}
h1{font-size:21px;letter-spacing:.025em}
h2{font-size:17px}
svg{width:24px;height:24px;flex:none;vertical-align:middle}
.shell{max-width:480px;height:100vh;height:100dvh;position:relative;margin:auto;background:var(--bg);overflow:hidden;isolation:isolate}
.content{height:100%;overflow:auto;overscroll-behavior:contain;padding-bottom:var(--safe-bottom)}
.content.with-tabs{padding-bottom:calc(var(--tabs) + var(--safe-bottom) + 18px)}
.white-page{background:#fff}
.top{display:grid;grid-template-columns:1fr minmax(0,auto) 1fr;align-items:center;gap:6px;min-height:calc(59px + var(--safe-top));padding:calc(6px + var(--safe-top)) 16px 6px;background:var(--yellow)}
.top>div:last-child{justify-self:end}
.top h1 button{font:inherit}
.top h1 small{font-size:13px;vertical-align:middle;margin-left:2px;font-weight:500}
.top .back{display:flex;align-items:center;gap:2px;min-height:44px;font-size:14px}
.top .back svg{width:19px}
.tabbar{position:absolute;z-index:2;bottom:0;width:100%;height:calc(var(--tabs) + var(--safe-bottom));padding:0 6px var(--safe-bottom);background:#fff;border-top:1px solid #ece8dd;display:grid;grid-template-columns:repeat(5,1fr);align-items:stretch}
.tab{position:relative;display:flex;align-items:center;justify-content:flex-end;flex-direction:column;gap:4px;padding-bottom:10px;font-size:13px;color:#67635a}
.nav-icon{width:35px;height:33px;display:grid;place-items:center;border-radius:11px}
.nav-icon svg{width:22px;height:22px}
.tab.selected{font-weight:650;color:#282318}
.tab.selected .nav-icon{background:var(--yellow)}
.fab{position:absolute;top:-17px;display:grid;place-items:center;width:56px;height:56px;border:4px solid white;background:var(--yellow);border-radius:19px;box-shadow:0 1px 8px #3e320422}
.fab svg{width:27px;height:27px}
.fab{border-radius:50%}
.home-top{padding:0 12px 4px;background:linear-gradient(180deg,#ffdf68 0 68%,#fff6d4 88%,#fff 100%)}
.home-top .top{background:none;margin:0 -12px;position:relative}
.home-top .top>div:last-child{position:absolute;left:16px;right:auto;top:calc(var(--safe-top) + 13px)}
.brand-mark{display:inline-grid;place-items:center;width:25px;height:25px;vertical-align:1px;border:1px solid #4c3e19;background:#fff3b3;border-radius:8px;font-weight:750;font-size:17px}
.profile-shortcut .circle{width:32px;height:32px;background:#fff0b0;border:1px solid #dfbb42}
.profile-shortcut .circle svg{width:17px;height:17px}
.caret{font-size:.8em}
.summary{display:grid;grid-template-columns:minmax(72px,.65fr) 1fr 1.2fr;align-items:center;gap:14px;padding:10px 8px 17px}
.summary button{text-align:left;padding-right:9px;border-right:1px solid #a78839}
.summary strong,.stat strong{display:block;font-size:27px;font-weight:300;letter-spacing:-.04em;line-height:1.14;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.summary button strong{font-size:33px}
.summary strong small{font-size:.61em}
.summary button strong small{font-size:.44em;margin-left:3px}
.summary .stat>span,.summary button>span{display:block;color:#61552f;margin-bottom:5px;font-size:14px}
.card{background:#fff;border:1px solid var(--line);border-radius:16px}
.quick{display:grid;grid-template-columns:repeat(4,1fr);padding:10px 0;box-shadow:0 5px 12px #ac873017}
.tile{display:flex;flex-direction:column;gap:6px;align-items:center;justify-content:center;min-width:0;font-size:14px;padding:4px;text-align:center}
.circle{display:inline-grid;place-items:center;width:48px;height:48px;background:#f2f2f2;color:#333;border-radius:50%;flex:none}
.circle.on{background:var(--yellow);box-shadow:inset 0 0 0 1px #e3b32d}
.circle svg{width:25px;height:25px}
.quick .circle,.tools .circle{background:#fff2bc}
.quick .circle{width:39px;height:39px}
.quick .circle svg{width:22px;height:22px}
.transactions{padding:6px 0 4px}
.day{border-bottom:1px solid #eae8e2}
.day-header{display:flex;justify-content:space-between;gap:8px;color:var(--muted);padding:13px 15px 4px;font-size:13px}
.weekday{margin-left:3px}
.record{width:100%;display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;text-align:left;column-gap:13px;padding:0 15px;min-height:53px;position:relative}
.record+.record:before{content:"";position:absolute;top:0;left:68px;right:15px;border-top:1px solid var(--line)}
.record .circle,.rank .circle{width:36px;height:36px;background:#f5f2e8}
.record svg,.rank svg{width:21px;height:21px}
.record-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px}
.record-amount{font-weight:300;font-size:18px;font-variant-numeric:tabular-nums}
.green{color:#27714c}
.empty{padding:32px 16px;text-align:center;color:var(--muted);font-size:14px}
.chart-head{padding-bottom:10px;background:var(--yellow)}
.segments{display:flex;border:1px solid #30291a;border-radius:10px;overflow:hidden;margin:0 13px}
.segments button{flex:1;padding:8px;min-height:34px;font-size:15px}
.segments button+button{border-left:1px solid #30291a}
.segments .on{background:#28251f;color:var(--yellow);font-weight:650}
.segments.pale{margin:0 0 10px;background:white}
.periods{display:flex;overflow-x:auto;border-bottom:1px solid var(--line);scrollbar-width:none;padding:0 8px}
.periods button{flex:0 0 18%;font-size:14px;min-width:52px;padding:11px 2px;color:var(--muted);border-bottom:2px solid transparent}
.periods .on{border-bottom-color:#896922;color:#222;font-weight:650}
.chart-panel{padding:12px 12px 4px;border-bottom:1px solid var(--line)}
.chart-stats{font-size:15px;line-height:1.55;color:#5f584c}
.chart-stats strong{font-size:18px;font-weight:400;color:#27241e}
.chart-stats small{font-size:13px}
.chart{width:100%;height:auto;display:block;overflow:visible}
.chart text{font-size:10px;fill:#736c5e}
.ranking{padding:14px}
.rank{display:flex;align-items:center;gap:14px;width:100%;padding:12px 0;text-align:left;border-bottom:1px solid var(--line)}
.rank-content{flex:1;min-width:0}
.rank-content>span{display:flex;justify-content:space-between;gap:4px}
.rank-content small{color:var(--muted);margin-left:3px}
.rank-content i{display:block;height:5px;background:var(--yellow);border-radius:8px;margin-top:6px}
.sub-hero{padding-bottom:27px;background:var(--yellow);border-radius:0 0 40% 40%}
.cards{padding:12px;display:grid;gap:12px}
.cards.lifted{margin-top:-28px}
.box{padding:15px;text-align:left}
.card-link{display:block;width:100%}
.box-heading{display:flex;align-items:center;justify-content:space-between;gap:7px}
.stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.box-heading+.stat-grid,.box-heading+.budget-body{margin-top:15px}
.stat span{font-size:13px;color:var(--muted);margin-bottom:4px;display:block}
.box .stat strong{font-size:19px}
.bill-summary{grid-template-columns:.65fr 1fr 1fr 1fr;align-items:center}
.bill-summary>strong{font-weight:300;font-size:27px;border-right:1px solid #ddd8ca}
.bill-summary>strong small{font-size:14px;margin-left:2px}
.pill{padding:7px 10px;border-radius:9px;background:var(--yellow);font-size:13px;font-weight:650}
.pill.white{background:white;border-radius:24px;white-space:nowrap;padding:7px 13px}
.budget-body{display:flex;align-items:center;gap:16px}
.ring{width:94px;height:94px;position:relative;display:grid;place-items:center;flex:none}
.ring svg{position:absolute;width:100%;height:100%}
.ring span{display:grid;text-align:center;font-size:13px;color:var(--muted);gap:3px}
.ring strong{font-size:22px;font-weight:300;color:#222}
.budget-lines{flex:1;min-width:0;display:grid;gap:8px;color:var(--muted);font-size:13px}
.budget-lines div{display:flex;justify-content:space-between;gap:5px}
.budget-lines div:first-child{padding-bottom:6px;border-bottom:1px solid var(--line)}
.budget-lines strong{color:#222;font-weight:500}
.tools{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding-top:12px}
.tools.profile-shortcuts{grid-template-columns:repeat(2,1fr);padding:10px}
.profile-hero{background:var(--yellow);padding-bottom:14px}
.profile-info{display:flex;align-items:center;gap:10px;padding:8px 16px 18px}
.profile-info strong{flex:1;min-width:0;overflow-wrap:anywhere;font-size:19px}
.avatar{width:51px;height:51px;border-radius:50%;background:#2e3f30;color:#fff3b3;display:inline-grid;place-items:center;font-size:24px;border:2px solid #fff;overflow:hidden;flex:none}
.avatar img{width:100%;height:100%;object-fit:cover}
.profile-hero .stat-grid{text-align:center;padding:0 12px}
.profile-hero .stat{display:flex;flex-direction:column-reverse}
.profile-hero .stat strong{font-weight:650;font-size:28px}
.profile-hero .stat span{color:#5e4a14;margin-top:4px}
.group{min-width:0}
.group h2{font-size:14px;color:#565149;padding:5px 6px 8px}
.group>div{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden}
.list-row{display:flex;align-items:center;gap:11px;padding:10px 13px;width:100%;min-height:50px;text-align:left;background:white;font-size:16px}
.list-row+.list-row{border-top:1px solid var(--line)}
.list-row>svg{width:21px;color:#534830}
.row-label{flex:1;min-width:0;overflow-wrap:anywhere;text-align:left}
.row-label small{display:block;font-size:12px;color:var(--muted);margin-top:3px}
.muted{color:var(--muted);font-size:14px;text-align:right;overflow-wrap:anywhere;max-width:50%}
.chevron{width:8px;height:8px;display:inline-block;flex:none;border-right:1.5px solid #9d998e;border-top:1.5px solid #9d998e;transform:rotate(45deg);margin-right:4px}
.switch{display:inline-block;width:42px;height:24px;background:#e7e6e2;border-radius:20px;padding:2px;flex:none}
.switch:after{content:"";display:block;width:20px;height:20px;background:#fff;border-radius:50%;box-shadow:0 1px 3px #0002}
.switch.on{background:var(--yellow)}
.switch.on:after{transform:translateX(18px)}
.logout{min-height:46px}
.small-btn{padding:6px 9px;background:#f4f1e6;border-radius:7px;font-size:14px}
.small-btn:disabled{opacity:.38;cursor:default}
.cat-row{gap:6px}
.cat-name{display:flex;align-items:center;gap:9px;min-height:36px}
.cat-visibility{min-width:44px;white-space:nowrap}
.cat-visibility.is-hidden{background:#fff1b3;color:#513d13}
.cat-row .circle{width:36px;height:36px}
.cat-row .circle svg{width:20px}
.text-button{font-size:14px;font-weight:650;min-height:40px;padding:0 5px}
.bill-year{display:flex;justify-content:space-between;align-items:center;padding:6px 12px}
.bill-year button{font-size:27px;width:45px;height:39px;background:#fff3bf;border-radius:9px}
.table-wrap{overflow:auto}
table{width:100%;border-collapse:collapse;text-align:right;font-size:14px;font-variant-numeric:tabular-nums}
th,td{padding:11px 8px;border-bottom:1px solid var(--line);white-space:nowrap}
thead th{background:#fff7d5}
th:first-child{text-align:left}
tbody th{font-weight:500}
tr:last-child td,tr:last-child th{border-bottom:0}
.faq p,.faq ol{line-height:1.65;color:#5c574f;margin:6px 0 19px}
.faq ol{padding-inline-start:1.35em}
.faq p:last-child{margin-bottom:0}
.about{display:grid;justify-items:center;gap:9px;padding:40px}
.about p{color:var(--muted);font-size:14px}
.dark,.badge-page .top{background:#1e2235;color:#fff}
.badges{padding:16px 12px 12px}
.badges h2{font-weight:450}
.badges h2 small{color:#bdc1d1;font-weight:400;font-size:13px;margin-left:4px}
.badges>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 4px;margin-top:8px}
.badges figure{text-align:center;margin:0}
.badges figure svg{width:min(100%,105px);height:auto}
.badges figcaption{font-size:13px;margin:2px 0 6px}
.entry{z-index:3;position:absolute;inset:0;display:flex;flex-direction:column;background:#fff;padding-bottom:var(--safe-bottom)}
.entry-head{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;min-height:calc(58px + var(--safe-top));padding:var(--safe-top) 13px 0;background:var(--yellow)}
.entry-head>.text-button{justify-self:end}
.entry-types{display:flex;gap:19px;height:100%}
.entry-types button{position:relative;font-size:19px;font-weight:600;padding:0 6px;min-height:50px}
.entry-types button.on:after{content:"";position:absolute;bottom:7px;height:3px;border-radius:2px;background:#302b20;left:6px;right:6px}
.entry-body{display:grid;grid-template-rows:minmax(0,1fr) auto;flex:1;min-height:0}
.category-grid{grid-area:1/1/3/2;min-height:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:81px;align-content:start;overflow:auto;overscroll-behavior:contain;padding:12px 14px calc(12px + var(--keypad-height,0px));scroll-padding-bottom:var(--keypad-height,0px)}
.category-grid .tile{gap:5px}
.category-grid .circle{width:49px;height:49px}
.keypad{grid-area:2/1;z-index:1;background:#fff;border-top:1px solid var(--line);box-shadow:0 -5px 16px #00000010;animation:slide-up .19s ease-out}
.amount-line{height:43px;display:flex;align-items:center;justify-content:space-between;padding:0 15px;gap:14px}
.amount-line output{font-variant-numeric:tabular-nums;font-size:30px;font-weight:300;margin-left:auto;overflow-x:auto;white-space:nowrap}
.note{display:flex;align-items:center;gap:8px;background:#f5f4f0;margin:0 10px 7px;border-radius:8px;padding:4px 9px;font-size:14px}
.note span{flex:none;white-space:nowrap;color:var(--muted)}
.note input{flex:1;background:transparent;border:0;min-height:32px;padding:3px 0}
.keys{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid var(--line)}
.keys button{display:grid;place-items:center;height:clamp(42px,7dvh,70px);border-bottom:1px solid var(--line);border-right:1px solid var(--line);font-size:24px;font-weight:300}
.keys .finish{background:var(--yellow);font-size:18px;font-weight:600}
.keys .date-key{font-size:14px;display:flex;justify-content:center;gap:3px}
.keys .date-key svg{width:18px}
.scrim{position:absolute;inset:0;z-index:4;background:#17150c64}
.sheet{position:absolute;z-index:5;bottom:0;left:0;right:0;max-height:calc(100% - var(--safe-top) - 10px);background:#fff;border-radius:18px 18px 0 0;overflow:auto;padding-bottom:var(--safe-bottom);animation:slide-up .2s ease-out;overscroll-behavior:contain}
@keyframes slide-up{from{transform:translateY(22px);opacity:.65}to{transform:translateY(0);opacity:1}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.001ms!important}}
.reduce-motion .keypad,.reduce-motion .sheet{animation:none}
.sheet header{position:sticky;z-index:2;top:0;display:grid;grid-template-columns:1fr auto 1fr;gap:12px;align-items:center;background:#fffdf5;border-bottom:1px solid var(--line);padding:4px 15px;min-height:48px}
.sheet header button:first-child{justify-self:start;min-height:40px}
.sheet header button:last-child{justify-self:end}
.sheet-body{padding:15px}
.sheet-body>p{margin-bottom:14px;line-height:1.55}
.wheels{display:flex;justify-content:center;gap:8px;position:relative;padding:8px 12px 16px}
.wheels:before{content:"";position:absolute;left:12px;right:12px;top:88px;height:40px;background:#fff2b6;border-radius:8px}
.wheel{z-index:1;position:relative;height:200px;overflow-y:auto;scrollbar-width:none;scroll-snap-type:y mandatory;padding:80px 0;min-width:64px;overscroll-behavior:contain;-webkit-mask-image:linear-gradient(transparent,#000 20%,#000 80%,transparent);mask-image:linear-gradient(transparent,#000 20%,#000 80%,transparent)}
.wheel::-webkit-scrollbar,.periods::-webkit-scrollbar{display:none}
.wheel button{display:block;scroll-snap-align:center;width:100%;height:40px;font-size:14px;font-weight:350;white-space:nowrap;color:#a09e94}
.wheel button[data-distance="2"]{font-size:16px;color:#858176}
.wheel button[data-distance="1"]{font-size:18px;color:#646055}
.wheel button[aria-selected=true]{font-size:20px;color:#222;font-weight:600}
form{display:grid;gap:12px}
form label{display:grid;gap:5px;min-width:0;font-size:14px}
input,select{min-height:41px;font-size:16px;border:1px solid #dedad0;background:#fff;border-radius:8px;padding:7px 9px;width:100%;min-width:0}
input[type=file]{height:auto}
.primary{background:var(--yellow);min-height:43px;border-radius:9px;padding:8px 12px;width:100%;font-weight:650}
.choice{padding:12px;width:100%;border-bottom:1px solid var(--line);text-align:left}
.danger{color:#a32628}
.danger-fill{background:#a32628;color:white}
.block{display:block;width:100%;min-height:44px;margin-top:8px}
fieldset{border:1px solid var(--line);border-radius:8px;min-width:0;margin:0;padding:8px}
legend{font-size:14px}
.glyphs{display:grid;grid-template-columns:repeat(6,1fr);gap:6px;max-height:150px;overflow:auto}
.glyphs label{display:grid;place-items:center}
.glyphs input{opacity:0;position:absolute;width:1px;height:1px;min-height:0}
.glyphs .circle{width:36px;height:36px}
.glyphs .circle svg{width:20px}
.glyphs input:checked+.circle{background:var(--yellow)}
.glyphs input:focus-visible+.circle{outline:2px solid #927009}
.inline{display:flex;align-items:center;gap:7px}
.inline input{width:18px;min-height:20px;accent-color:#ce9e18}
.login{display:grid;justify-items:center;align-content:center;gap:13px;padding:calc(24px + var(--safe-top)) 22px calc(24px + var(--safe-bottom));background:linear-gradient(#ffe483,#fff7d9 62%,#fffdf6);min-height:100%}
.login form{background:#fff;border:1px solid var(--line);border-radius:15px;padding:17px;width:min(100%,330px)}
.login-page p[role=status]:empty{display:none}
.login-page p[role=status]{color:#a32628;font-size:14px}
.login-page{overflow-y:auto;background:#faf9f6}
.login-brand{display:grid;justify-items:center;gap:12px;padding:calc(clamp(42px,10dvh,88px) + var(--safe-top)) 20px 63px;background:var(--yellow)}
.login-brand img{display:block;border:1px solid #59491538;border-radius:18px;background:#ffe582}
.login-brand h1{font-size:28px}
.login-panel{position:relative;margin:-26px auto 0;padding:0 20px calc(20px + var(--safe-bottom));width:min(100%,380px)}
.login-panel form{padding:22px;gap:16px;box-shadow:0 8px 24px #30250a0a}
.login-panel h2{font-size:19px}
.login-panel input{min-height:46px;background:#fdfcf9}
.login-panel .primary{min-height:46px}
#toast{visibility:hidden;position:fixed;z-index:10;bottom:calc(var(--safe-bottom) + 84px);left:50%;transform:translateX(-50%);width:max-content;max-width:min(90vw,440px);background:#262318;color:white;padding:8px 13px;border-radius:11px;font-size:14px;box-shadow:0 3px 8px #0003;pointer-events:none}
#toast.visible{visibility:visible}
[hidden]{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
