:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#29262c;background:#e9e9ec;font-size:16px}
*{box-sizing:border-box}
body{margin:0}
button,input,select{font:inherit}
button{cursor:pointer}
button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #d52235;outline-offset:2px}
.app-shell{max-width:480px;min-height:100dvh;margin:auto;background:#f8f8fa;box-shadow:0 16px 80px #2c1a2124;position:relative}
main{min-height:100dvh;padding:24px 20px calc(106px + env(safe-area-inset-bottom))}
.eyebrow{font-size:.79rem;letter-spacing:.13em;text-transform:uppercase;font-weight:800;color:#a22d39;margin:0 0 7px}
.header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:1px 0 20px}
.header h1{font-size:1.9rem;letter-spacing:-.055em;line-height:1.1;margin:0}
.header-actions{display:flex;gap:9px}
.icon-button{height:43px;width:43px;border-radius:15px;border:1px solid #ece4e6;background:#fff;color:#4a3438;display:grid;place-items:center;font-size:1.48rem;line-height:1;position:relative}
.icon-button.plus{background:#d52235;border-color:#d52235;color:white}
.badge{position:absolute;right:8px;top:7px;background:#d52235;width:8px;height:8px;border-radius:50%;border:2px solid white}
.period{color:#6b6871;font-size:.9rem;margin:0 0 17px}
.hero{background:#651625;color:white;border-radius:24px;padding:24px 23px;box-shadow:0 12px 30px #65162525}
.hero .label{font-size:.92rem;color:#f2cbd0}
.hero .amount{font-size:2.65rem;line-height:1.12;letter-spacing:-.06em;font-weight:750;margin:8px 0 17px;font-variant-numeric:tabular-nums}
.hero-bottom{border-top:1px solid #ffffff32;padding-top:14px;display:flex;justify-content:space-between;gap:8px;align-items:center}
.hero-bottom strong{font-size:1.15rem;font-variant-numeric:tabular-nums}
.muted-light{color:#f2cbd0;font-size:.85rem}
.section-head{display:flex;justify-content:space-between;align-items:center;margin:27px 1px 12px}
.section-head h2{font-size:1.18rem;margin:0;letter-spacing:-.025em}
.section-head span{font-size:.8rem;color:#718485}
.card{background:#fff;border:1px solid #ece8e9;border-radius:22px;padding:19px;box-shadow:0 5px 20px #3c243010;margin-bottom:13px}
.chart-head{display:flex;justify-content:space-between;gap:10px;align-items:baseline}
.chart-head h3{font-size:1rem;margin:0}
.chart-head small{color:#777078;font-size:.78rem}
.chart-layout{display:flex;align-items:center;gap:17px;margin-top:15px}
.donut{width:145px;height:145px;flex:none;border-radius:50%;display:grid;place-items:center;position:relative;background:conic-gradient(#e8e8e8 0 100%)}
.donut:before{content:"";position:absolute;width:92px;height:92px;background:white;border-radius:50%}
.donut-center{position:relative;text-align:center;z-index:1;font-size:.76rem;color:#777078}
.donut-center strong{display:block;color:#432a32;font-size:1.12rem;letter-spacing:-.04em}
.legend{flex:1;min-width:0;display:grid;gap:3px}
.legend-row{display:flex;align-items:center;width:100%;border:0;border-radius:8px;background:transparent;padding:6px 2px;text-align:left;gap:7px;color:#3d3439;font-size:.79rem}
.legend-row:hover{background:#fbf1f3}
.swatch{width:9px;height:9px;border-radius:50%;flex:none}
.legend-name{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;flex:1}
.legend-value{font-weight:750;font-variant-numeric:tabular-nums}
.hint{color:#6b6871;font-size:.82rem;line-height:1.45;margin:8px 2px 0}
.bottom-nav{position:fixed;bottom:0;width:100%;max-width:480px;display:flex;justify-content:space-around;background:#fff;border-top:1px solid #eee8e8;padding:10px 5px calc(10px + env(safe-area-inset-bottom));z-index:10}
.nav-item{flex:1;min-width:0;background:none;border:0;color:#8b8288;display:grid;justify-items:center;gap:3px;font-size:.72rem;padding:3px 0 1px;font-weight:650}
.nav-item.active{color:#c62235}
.nav-icon{height:27px;line-height:1;display:grid;place-items:center}
.nav-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.nav-item.active .nav-icon svg{stroke-width:2.25}
.choice svg,.entry-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}
.choice svg{margin-right:8px}
.pill{border:1px solid #e8e2e3;color:#5c4a50;background:#fff;border-radius:100px;padding:8px 12px;font-size:.83rem;font-weight:650}
.pill.active{background:#fff0f2;border-color:#f1bcc4;color:#9a2535}
.row{display:flex;justify-content:space-between;gap:12px;align-items:center}
.stack{display:grid;gap:10px}
.item{background:white;border:1px solid #ece8e9;border-radius:17px;padding:15px 16px}
.item strong{font-size:.95rem}
.item small{display:block;color:#777078;margin-top:5px;font-size:.78rem}
.item .money{font-weight:750;white-space:nowrap;font-variant-numeric:tabular-nums}
.subtle{color:#6b6871;font-size:.85rem}
.bar{height:8px;background:#f0eced;border-radius:20px;overflow:hidden;margin-top:13px}
.bar span{height:100%;display:block;border-radius:20px}
.empty{text-align:center;color:#777078;line-height:1.55;padding:40px 10px}
.form-note{font-size:.8rem;color:#6b6871;line-height:1.45}
.filter-group{display:flex;gap:8px;margin:15px 0 17px;flex-wrap:wrap}
.entry-icon{height:43px;width:43px;border-radius:13px;background:#ffe9ec;color:#bd2839;display:grid;place-items:center;flex:none;font-size:1.25rem}
.entry-icon.manual{background:#f0edf3;color:#756a80}
.positive{color:#8d3341}
.overlay{position:fixed;inset:0;background:#2b17227f;z-index:20;display:flex;align-items:end;justify-content:center}
.sheet{max-width:480px;width:100%;max-height:88dvh;overflow:auto;background:#faf9fa;border-radius:26px 26px 0 0;padding:24px 20px calc(26px + env(safe-area-inset-bottom));box-shadow:0 -14px 45px #241c2433}
.sheet h2{font-size:1.35rem;letter-spacing:-.03em;margin:0 0 8px}
.sheet-header{display:flex;justify-content:space-between;align-items:start;gap:15px;margin-bottom:15px}
.close{border:0;background:#eee9ea;border-radius:50%;width:32px;height:32px;font-size:1.2rem;line-height:1}
.choice{width:100%;border:1px solid #ece5e7;background:white;border-radius:16px;padding:17px;text-align:left;font-weight:700;display:block;margin:10px 0;color:#4c3338}
.choice small{display:block;color:#766d72;font-weight:400;margin-top:4px}
.field{display:grid;gap:6px;margin:15px 0;font-size:.88rem;font-weight:650}
.field input,.field select{width:100%;border:1px solid #dcd4d7;border-radius:13px;background:white;padding:13px 14px;color:#342a30;min-height:48px}
.primary{border:0;background:#d52235;color:#fff;padding:14px 17px;border-radius:14px;width:100%;font-weight:750;margin-top:10px}
.secondary{border:1px solid #e6dcdf;background:white;color:#673541;padding:12px;border-radius:13px;font-weight:650}
.notice{background:#fff0f2;border:1px solid #f5d7dc;color:#76303a;border-radius:17px;padding:14px;font-size:.86rem;line-height:1.6}
.receipt-photo{max-height:200px;max-width:100%;border-radius:13px;object-fit:contain;margin-top:10px}
.demo-flag{font-size:.76rem;color:#847982;padding:4px 0 14px}
@media(max-width:390px){main{padding-left:16px;padding-right:16px}.chart-layout{gap:10px}.donut{width:128px;height:128px}.donut:before{width:82px;height:82px}.legend-row{font-size:.75rem}}
@media(min-width:700px){body{padding:25px 0}.app-shell{min-height:calc(100dvh - 50px);border-radius:32px;overflow:hidden}.bottom-nav{bottom:25px;border-radius:0 0 32px 32px}}
