:root{--bg:#f7f9f4;--surface:#fff;--ink:#21352f;--muted:#7b8d81;--green:#276c57;--green2:#e7f2eb;--line:#e5ebe5;--soft:#f2f6f0;--warn:#ad6926;--warnbg:#fff4e7;--shadow:0 5px 24px rgba(40,75,53,.045)}
*{box-sizing:border-box}html,body{min-height:100%;margin:0;color:var(--ink);background:var(--bg);font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Noto Sans JP",Meiryo,sans-serif;-webkit-tap-highlight-color:transparent}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #8cc3a7;outline-offset:2px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.app{max-width:560px;margin:0 auto;min-height:100vh;padding-bottom:calc(30px + env(safe-area-inset-bottom))}.top{padding:calc(24px + env(safe-area-inset-top)) 22px 14px;display:flex;justify-content:space-between;align-items:center}.eyebrow{color:#789186;font-size:10px;font-weight:750;letter-spacing:.13em}.brand{font-size:27px;letter-spacing:-.03em;line-height:1.2;margin:4px 0 0;font-weight:800}.icon-button{border:1px solid #dbe8df;border-radius:50%;background:#edf4ed;color:var(--green);width:42px;height:42px;display:grid;place-items:center}.icon-button svg{width:21px;height:21px}.monthline{display:flex;align-items:center;gap:10px;padding:0 18px 16px;justify-content:space-between}.month-select-wrap{position:relative;flex-shrink:0;min-width:147px}.month-label{display:block;font-weight:800;font-size:17px;padding:7px 17px 7px 4px;white-space:nowrap}.month-select-wrap input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.month-select-wrap input::-webkit-calendar-picker-indicator{position:absolute;inset:0;width:100%;height:100%;cursor:pointer}.month-arrow{position:absolute;right:2px;top:7px;color:#84998a;pointer-events:none}.mode-wrap select{max-width:155px;background:#ecf2ed;color:#57715f;border:1px solid #dce8df;border-radius:11px;font-size:11px;font-weight:700;padding:9px 10px}.nav-top{display:flex;gap:4px;background:#edf1eb;border-radius:14px;margin:0 18px 18px;padding:5px}.nav-top button{flex:1;border:0;border-radius:10px;background:transparent;color:#819085;font-size:13px;font-weight:800;padding:11px 5px}.nav-top button.active{color:var(--green);background:#fff;box-shadow:0 3px 12px #1e473e15}.hero{margin:0 18px 13px;padding:20px 20px 17px;background:linear-gradient(125deg,#2b765e,#23674f);color:#fff;border-radius:21px;box-shadow:0 7px 19px #2b765e17}.hero .over{font-size:11px;color:#c9e3d5;font-weight:650}.hero .big{font-size:31px;font-weight:800;letter-spacing:-.045em;margin:8px 0 10px;font-variant-numeric:tabular-nums}.hero .support{font-size:11px;color:#e1ece6}.hero .metrics{margin-top:17px;display:grid;grid-template-columns:1fr 1fr;gap:8px;border-top:1px solid #ffffff30;padding-top:14px}.hero .metrics b{display:block;font-size:16px;margin-top:5px;font-variant-numeric:tabular-nums}.card{margin:0 18px 13px;background:#fff;border:1px solid #e7ede7;border-radius:19px;box-shadow:var(--shadow);overflow:hidden}.card-pad{padding:18px}.card-top{display:flex;justify-content:space-between;align-items:center;gap:12px}.card h2,.section-head h2{font-size:15px;font-weight:800;letter-spacing:-.02em;margin:0}.section-head{display:flex;justify-content:space-between;align-items:center;margin:20px 21px 11px;gap:7px}.section-head h2{font-size:18px}.sub{font-size:11px;line-height:1.7;color:var(--muted);margin:5px 0 0}.muted{color:var(--muted)}.small{font-size:12px}.tiny{font-size:10px}.pill{display:inline-block;color:#477c62;background:#e9f5eb;font-size:10px;font-weight:800;border-radius:100px;padding:5px 9px;white-space:nowrap}.pill.warning{color:var(--warn);background:var(--warnbg)}.pill.neutral{color:#717e78;background:#f0f2ef}.button{border:0;border-radius:12px;background:var(--green);color:white;padding:12px 15px;font-size:13px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px}.button.secondary{background:#e7f1e9;color:var(--green);border:1px solid #d5e5d9}.button.outline{background:white;color:#537565;border:1px solid #d9e5dc}.button.ghost{background:transparent;color:#577e67;padding:8px 10px;min-height:36px}.button.danger{background:#faeeec;color:#ad574c}.button.block{width:100%}.button:disabled{opacity:.5;cursor:not-allowed}.import-card{display:flex;align-items:center;gap:12px;padding:16px 16px 16px 18px}.import-symbol{width:43px;height:43px;display:grid;place-items:center;flex-shrink:0;background:#e8f2eb;border-radius:14px;color:var(--green)}.import-symbol svg{width:24px;height:24px}.import-main{flex:1;min-width:0}.import-main strong{font-size:13px}.import-main p{font-size:11px;color:var(--muted);line-height:1.5;margin:3px 0 0}.import-card .button{font-size:12px;padding:9px 12px}.progress-rail{width:100%;height:8px;background:#edf1eb;border-radius:20px;overflow:hidden;margin-top:11px}.progress-rail>span{height:100%;display:block;background:#78ad8f;border-radius:20px}.category-row{padding:11px 0;border-bottom:1px solid #f1f4f0}.category-row:last-child{border-bottom:0;padding-bottom:0}.cat-grid{display:flex;justify-content:space-between;align-items:center;gap:10px}.cat-label{display:flex;align-items:center;gap:9px;font-size:12px;font-weight:720}.dot{width:10px;height:10px;border-radius:50%;display:inline-block;flex:0 0 10px}.money{font-size:13px;font-weight:800;white-space:nowrap;font-variant-numeric:tabular-nums}.list-card{margin:0 18px 13px;background:#fff;border:1px solid #e7ede7;border-radius:18px;overflow:hidden}.tx-row{display:flex;align-items:center;gap:11px;padding:13px 16px;background:#fff;border:0;border-bottom:1px solid #eef1ee;text-align:left;width:100%;min-height:66px}.tx-row:last-child{border-bottom:0}.tx-row:active{background:#f6faf7}.tx-icon{background:#f3f6f2;width:39px;height:39px;display:grid;place-items:center;border-radius:13px;flex-shrink:0;color:#5a876c}.tx-icon svg{width:21px;height:21px}.tx-main{flex:1;min-width:0}.tx-name{font-size:13px;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tx-detail{display:flex;align-items:center;gap:6px;font-size:10px;color:var(--muted);margin-top:6px;flex-wrap:wrap}.tx-detail .review{color:#ad6926}.tx-side{text-align:right;flex:none}.tx-side .money{font-size:14px}.tx-side .sub{font-size:10px;margin-top:5px}.empty{padding:32px 22px;color:#84958a;text-align:center;font-size:12px;line-height:1.9}.empty strong{color:var(--ink);font-size:15px;display:block;margin-bottom:7px}.end-note{color:#91a094;text-align:center;font-size:10px;padding:14px 20px 8px;line-height:1.7}.filters{padding:0 18px 12px;display:flex;flex-wrap:wrap;gap:8px}.field{display:block;width:100%;min-height:44px;background:#fbfcfa;border:1px solid #dce6df;border-radius:11px;padding:9px 12px;font-size:14px}.field.short{font-size:12px}.filters .search{flex:1 1 180px}.filters select{flex:1 1 125px;max-width:100%;min-width:0}.filters .filter-all{flex:1 1 130px}.thin-bar{display:flex;align-items:center;justify-content:space-between;padding:0 21px 11px;font-size:12px;color:var(--muted)}.month-divider{font-size:11px;font-weight:800;color:#7e9285;margin:19px 21px 9px}.actions{display:flex;gap:8px;align-items:center}.doughnut-wrap{display:flex;align-items:center;gap:15px;margin-top:12px}.doughnut{width:142px;height:142px;flex:0 0 142px;border-radius:50%;position:relative;display:grid;place-items:center}.doughnut-hole{width:93px;height:93px;border-radius:50%;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.doughnut-hole b{font-size:11px}.doughnut-hole small{font-size:9px;color:var(--muted);margin-top:4px}.legend{flex:1;min-width:0}.legend-line{display:flex;justify-content:space-between;gap:5px;font-size:11px;margin-bottom:10px}.legend-line .name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.legend-line b{font-variant-numeric:tabular-nums;white-space:nowrap}.note{padding:12px 14px;border-radius:13px;background:#f1f6f0;color:#597263;font-size:11px;line-height:1.65}.note.warn{background:var(--warnbg);color:#96642e}.note+.note{margin-top:8px}.overlay{position:fixed;inset:0;display:none;align-items:flex-end;justify-content:center;z-index:20;background:#17281eb5}.overlay.open{display:flex}.sheet{width:100%;max-width:560px;max-height:90dvh;overflow-y:auto;overscroll-behavior:contain;border-radius:24px 24px 0 0;background:#fff;padding:19px 20px calc(25px + env(safe-area-inset-bottom));box-shadow:0 -10px 30px #14241b33;animation:slideup .2s ease-out}@keyframes slideup{from{transform:translateY(18px);opacity:.5}to{transform:none;opacity:1}}.sheet-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:13px}.sheet-header h2{margin:0;font-size:18px;font-weight:800}.close{border:0;background:#f0f3ef;width:33px;height:33px;border-radius:50%;font-size:20px;color:#62756a}.form-label{display:block;color:#637b6b;font-size:11px;font-weight:750;margin:13px 0 6px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}.checkline{display:flex;align-items:center;gap:8px;font-size:12px;color:#4f6558;margin:14px 0}.checkline input{width:17px;height:17px;accent-color:var(--green)}.splitbox{border:1px solid #dfeae1;background:#fafcfa;border-radius:13px;padding:12px;margin:8px 0}.splitbox .form-label{margin-top:6px}.button-row{display:flex;gap:9px;margin-top:20px}.button-row .button{flex:1}.detail-line{display:flex;justify-content:space-between;gap:15px;font-size:12px;padding:12px 0;border-bottom:1px solid #eef1ee}.detail-line span{color:var(--muted)}.detail-line b{text-align:right}.preview-list{border:1px solid var(--line);border-radius:13px;overflow:hidden;margin:12px 0}.preview-item{display:flex;gap:8px;justify-content:space-between;align-items:center;padding:10px 12px;border-bottom:1px solid #f0f2ef;font-size:11px}.preview-item:last-child{border-bottom:0}.preview-item .name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.preview-item .sum{font-weight:800;white-space:nowrap}.preview-item small{color:#7b8c80}.settings-group{padding:8px 0;border-bottom:1px solid #eef1ee}.settings-group:last-child{border-bottom:0}.settings-group h3{font-size:13px;margin:10px 0}.settings-group p{color:#7b8a7e;font-size:11px;line-height:1.7}.settings-buttons{display:flex;gap:7px;flex-wrap:wrap}.settings-buttons .button{font-size:11px;padding:9px 11px}.toast{position:fixed;left:50%;bottom:calc(30px + env(safe-area-inset-bottom));transform:translateX(-50%);background:#244938;color:#fff;min-width:170px;text-align:center;max-width:90vw;border-radius:13px;padding:12px 16px;font-size:12px;font-weight:700;z-index:40;box-shadow:0 7px 22px #1113;opacity:0;pointer-events:none;transition:opacity .2s}.toast.show{opacity:1}.stat-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:0 18px 13px}.stat-mini{background:#fff;border:1px solid #e7ede7;border-radius:16px;padding:13px 14px}.stat-mini .over{font-size:10px;color:#798d80}.stat-mini .num{font-size:18px;font-weight:800;margin-top:8px;font-variant-numeric:tabular-nums}.tag{padding:3px 7px;border-radius:7px;background:#f0f5f0;font-size:10px;color:#5b7a62;font-weight:750}.statusline{padding:10px 18px;text-align:center;color:#738d7a;font-size:11px}.importing{pointer-events:none;opacity:.7}@media(max-width:380px){.monthline{gap:2px}.month-select-wrap input{width:142px}.mode-wrap select{max-width:131px;font-size:10px}.hero .big{font-size:27px}.import-card{gap:8px}.import-card .button{padding:8px 10px}}
