*{box-sizing:border-box}body{color:#18392e;background:#f4f7f3;margin:0;font-family:system-ui,-apple-system,sans-serif;line-height:1.5}button,input,textarea{font:inherit}button{min-height:44px;color:inherit;cursor:pointer;background:#fff;border:1px solid #d7e2d8;border-radius:12px;padding:10px 14px}button:disabled{opacity:.5;cursor:wait}:focus-visible{outline-offset:3px;outline:3px solid #5198e7}main{max-width:640px;padding:24px 18px calc(170px + env(safe-area-inset-bottom));margin:auto}h1{letter-spacing:-1px;margin:2px 0;font-size:28px}h2{margin:0 0 18px;font-size:19px}.eyebrow{letter-spacing:2px;color:#597566;margin:0;font-size:10px}.app-header{justify-content:space-between;align-items:center;margin-bottom:28px;display:flex}section{background:#fff;border:1px solid #e4ebe3;border-radius:22px;margin:18px 0;padding:22px}.primary{color:#fff;background:#176e56;border-color:#176e56;font-weight:700}.full{width:100%;margin-top:12px}.danger{color:#b23b37}.add{bottom:calc(90px + env(safe-area-inset-bottom));position:fixed;right:max(18px,50vw - 302px);box-shadow:0 6px 22px #176e5630}nav{width:min(100%,640px);padding:12px 18px calc(12px + env(safe-area-inset-bottom));z-index:2;background:#fff;border-top:1px solid #dde5da;gap:8px;display:flex;position:fixed;bottom:0;left:50%;transform:translate(-50%)}nav button{color:#718175;border:0;flex:1}nav button[aria-current]{color:#176e56;background:#e9f1e1;font-weight:700}.expense-list{margin:0;padding:0;list-style:none}.expense-list li+li{border-top:1px solid #edf0e9}.expense-list button{text-align:left;border:0;border-radius:0;align-items:center;gap:12px;width:100%;padding:16px 0;display:flex}.expense-description{flex:1;min-width:0}.expense-description strong,.expense-description small{overflow-wrap:anywhere;display:block}.expense-description small{color:#738376;font-size:11px}.expense-list button>strong{white-space:nowrap;font-size:14px}.expense-icon{background:#edf2e3;border-radius:13px;padding:9px;font-size:13px}.empty{text-align:center;color:#6b806e;padding:38px 0}.empty>span{color:#91ad80;font-size:44px}.empty small{font-size:12px}dialog{width:min(100% - 24px,520px);max-height:calc(100dvh - 24px);color:inherit;background:#fff;border:0;border-radius:22px;padding:24px;overflow:auto}dialog::backdrop{background:#10251acc}.dialog-header{justify-content:space-between;align-items:center;margin-bottom:16px;display:flex}.dialog-header h2{margin:0}.dialog-header button{border:0;padding:4px 12px;font-size:24px}fieldset{border:0;min-width:0;margin:0;padding:0}form label{margin-bottom:16px;font-size:13px;font-weight:600;display:block}input:not([type=radio]),textarea{width:100%;min-height:46px;color:inherit;background:0 0;border:1px solid #ccd8cc;border-radius:10px;min-width:0;margin-top:6px;padding:10px 12px}input[inputmode=numeric]{font-size:28px;font-weight:700}.category-grid{grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:16px;display:grid}.category-grid legend{margin-bottom:8px;font-size:13px;font-weight:600}.category-grid label{text-align:center;cursor:pointer;border:1px solid #d7e2d8;border-radius:10px;min-height:44px;margin:0;padding:12px 0;position:relative}.category-grid input{opacity:0;cursor:pointer;position:absolute;inset:0}.category-grid label:focus-within{outline:3px solid #5198e7}.category-grid .selected{color:#fff;background:#176e56}.error{color:#a23832;background:#fff0ed;border-radius:10px;padding:12px}.notice{background:#eaf1d7;border-radius:12px;padding:12px}.notice button{margin-left:12px}small{font-weight:400}.month-selector{justify-content:space-between;align-items:center;margin-bottom:22px;display:flex}.month-selector h2{margin:0;font-size:19px}.month-selector button{padding:2px 16px;font-size:24px}.total-card{color:#fff;background:#176e56;border:0;padding:26px}.total-card p{margin:0 0 12px;font-size:13px}.total{letter-spacing:-1.5px;overflow-wrap:anywhere;font-size:clamp(28px,8vw,42px);display:block}.total-card .comparison{color:#daead1;margin:18px 0 0;font-size:12px}.section-heading{justify-content:space-between;align-items:center;gap:8px;display:flex}.section-heading h2{margin-bottom:8px}.section-heading small{color:#738376}.top-categories{gap:10px;margin:12px 0 26px;display:flex}.top-categories>div{background:#edf2e4;border-radius:16px;flex:1;min-width:0;padding:14px 12px}.top-categories small,.top-categories strong{display:block}.top-categories strong{overflow-wrap:anywhere;margin-top:8px;font-size:13px}.calendar{margin-top:12px}.weekdays,.calendar-grid{grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;display:grid}.weekdays{text-align:center;color:#7e897b;margin-bottom:12px;font-size:11px}.calendar-grid button{background:0 0;border:0;min-width:0;height:60px;padding:6px 0;font-size:13px}.calendar-grid button span,.calendar-grid button small{display:block}.calendar-grid button small{color:#176e56;margin-top:4px;font-size:9px}.calendar-grid button[aria-pressed=true]{background:#edf3dd;outline:1px solid #176e56}.calendar-grid button:first-of-type{color:inherit}.category-stat{margin:20px 0}.category-stat>div:first-child{justify-content:space-between;gap:12px;font-size:13px;display:flex}.category-stat small{color:#738376}.bar-track{background:#edf1e7;border-radius:10px;height:8px;margin-top:10px;overflow:hidden}.bar-track span{background:#176e56;border-radius:10px;height:100%;display:block}.comparison-list{margin:0;font-size:14px}.comparison-list>div{justify-content:space-between;margin:14px 0;display:flex}.comparison-list dd{margin:0;font-weight:700}.muted{color:#687d6e;font-size:12px;line-height:1.8}.visually-hidden{clip-path:inset(50%);position:absolute;overflow:hidden;border:0!important;width:1px!important;height:1px!important;padding:0!important}section>p{font-size:14px}h3{font-size:15px}.connection{color:#687d6e;font-size:10px}.notice{font-size:13px}.calendar-grid button small{line-height:1.2}@media (width<=350px){main{padding-left:12px;padding-right:12px}section{padding:16px}.expense-list button{gap:8px}.expense-icon{padding:7px}.expense-list button>strong,.category-stat>div:first-child{font-size:12px}dialog{padding:18px}.top-categories>div{padding:12px 8px}}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}body{color:#e3eddf;background:#111d18}section,dialog,nav,button{color:#e3eddf;background:#1b2b23;border-color:#34473a}.primary,.total-card{color:#fff;background:#246e55;border-color:#246e55}.eyebrow,.muted,.connection,.section-heading small,.expense-description small,.empty,.category-stat small{color:#afbfaa}.expense-icon,.top-categories>div,.bar-track,nav button[aria-current],.calendar-grid button[aria-pressed=true]{color:#e3eddf;background:#314537}.category-grid .selected{background:#4b8660}.calendar-grid button small{color:#b5d8a0}.expense-list li+li{border-color:#34473a}.notice{color:#e6efde;background:#34492d}.error{color:#ffd7cb;background:#472a26}.danger{color:#ffb7a6}input:not([type=radio]),textarea{border-color:#526c56}.comparison-list dt{color:#bac9b2}}.header-actions{flex-shrink:0;gap:6px;display:flex}.header-actions button{width:44px;padding:8px}.app-header{gap:8px}.guide-hero{background:#edf2e4}.guide-hero h2{letter-spacing:-.8px;margin:10px 0 16px;font-size:clamp(24px,6vw,32px);line-height:1.35}.guide-hero img{margin-bottom:18px}.guide-tags{flex-wrap:wrap;gap:6px;font-size:11px;display:flex}.guide-tags span{border:1px solid #ccd8bd;border-radius:20px;padding:6px 9px}.guide-page .eyebrow{letter-spacing:1px;margin-bottom:10px}.guide-device{gap:8px;margin:20px 0;display:flex}.guide-device button{flex:1;padding:10px 6px;font-size:12px}.guide-device button[aria-pressed=true]{color:#fff;background:#176e56;border-color:#176e56}.guide-steps{margin:20px 0;padding:0;list-style:none}.guide-steps li{align-items:flex-start;gap:12px;margin:18px 0;display:flex}.guide-steps li>span{color:#176e56;background:#e8efdc;border-radius:50%;flex-shrink:0;place-items:center;width:28px;height:28px;font-size:12px;font-weight:700;display:grid}.guide-steps p{margin:2px 0;font-size:14px;line-height:1.7}.guide-page details{border-top:1px solid #d7e2d8;padding:8px 0}.guide-page summary{cursor:pointer;min-height:44px;padding:10px 0;font-size:14px;font-weight:600}.guide-page details p{color:#687d6e;font-size:13px;line-height:1.8}.guide-page .notice{font-size:13px;line-height:1.8}@media (prefers-color-scheme:dark){.guide-hero{background:#263d2e}.guide-tags span,.guide-page details{border-color:#526c56}.guide-steps li>span{color:#e3eddf;background:#3c5636}.guide-page details p{color:#afbfaa}}.storage-notice{margin:16px 0;font-size:13px;line-height:1.8}.storage-notice h3{margin:0 0 10px}.storage-notice p{margin:10px 0}.storage-notice ul{margin:12px 0;padding-left:20px}.storage-notice li+li{margin-top:10px}.header-actions .install-guide-link{white-space:nowrap;width:auto;font-size:12px}@media (width<=360px){.app-header{flex-wrap:wrap}.header-actions{margin-left:auto}}
