:root{color:#172b26;font-synthesis:none;text-rendering:optimizelegibility;--ink:#172b26;--muted:#7e8d87;--line:#dce4df;--paper:#f8faf7;--white:#fff;--green:#14875f;--deep:#103e35;--coral:#d1584f;--yellow:#edc567;--soft-green:#e8f3ee;--soft-red:#f9ece9;--shadow:0 12px 35px #1e372e12;background:#edf1ed;font-family:-apple-system,BlinkMacSystemFont,PingFang SC,Microsoft YaHei,system-ui,sans-serif}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0}button,input,select,textarea{font:inherit;color:inherit}button,a,label{touch-action:manipulation}button{cursor:pointer}a{color:inherit;text-decoration:none}h1,h2,p{margin-top:0}h1{letter-spacing:-.045em;margin-bottom:0;font-size:clamp(28px,4vw,39px);line-height:1.18}h2{letter-spacing:-.025em;margin:0;font-size:20px}.eyebrow{color:#668078;letter-spacing:.2em;margin:0 0 10px;font-size:11px;font-weight:800}.app-loading{min-height:100vh;color:var(--muted);place-items:center;display:grid}.workbench-frame{background:#f8faf7f2;border-radius:28px;flex-direction:column;width:min(1120px,100% - 32px);min-height:calc(100vh - 32px);margin:16px auto;display:flex;position:relative;overflow:clip;box-shadow:0 15px 55px #19362c14}.main-content{min-height:calc(100vh - 114px)}.page{padding:34px 38px 52px}.bottom-nav{z-index:20;border-top:1px solid var(--line);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#fffffff5;grid-template-columns:repeat(4,1fr);height:82px;padding:9px min(28%,300px);display:grid;position:sticky;bottom:0;left:0;right:0}.bottom-nav a{color:#899892;flex-direction:column;justify-content:center;align-items:center;gap:7px;min-width:68px;font-size:12px;display:flex}.bottom-nav a.active{color:#15825e;font-weight:700}.bottom-nav a:focus-visible,.entry-button:focus-visible,.primary-button:focus-visible{outline-offset:2px;outline:3px solid #edc567a6}.yen-logo{background:var(--yellow);color:#18372f;border-radius:23px;place-items:center;width:72px;height:72px;display:grid}.home-header{justify-content:space-between;align-items:center;margin-bottom:36px;display:flex}.home-header p{color:#658078;letter-spacing:.15em;margin:0 0 8px;font-size:12px;font-weight:800}.balance-card{background:var(--deep);color:#fff;border-radius:28px;padding:29px 31px 26px;box-shadow:0 16px 35px #103e3526}.balance-card>p{color:#ffffff9e;margin:0;font-size:14px;font-weight:600}.balance-card>strong{letter-spacing:-.055em;margin:19px 0 32px;font-size:clamp(42px,7vw,66px);line-height:1;display:block}.balance-breakdown{border-top:1px solid #ffffff26;grid-template-columns:repeat(3,1fr);padding-top:22px;display:grid}.balance-breakdown div{gap:7px;display:grid}.balance-breakdown span{color:#ffffff8c;font-size:12px}.missing-alert{color:#755523;background:#fff7e6;border:1px solid #ecd8b2;border-radius:14px;grid-template-columns:auto auto 1fr;align-items:center;gap:8px;margin-top:15px;padding:13px 16px;font-size:13px;display:grid}.missing-alert small{text-align:right;color:#9a8054}.entry-actions{grid-template-columns:1fr 1fr;gap:14px;margin:18px 0;display:grid}.entry-button{color:#fff;height:78px;box-shadow:var(--shadow);border-radius:21px;justify-content:center;align-items:center;gap:10px;font-size:18px;font-weight:750;display:flex}.entry-button.income{background:#188a62}.entry-button.expense{background:var(--coral)}.content-card,.filter-card,.transactions-card,.settings-card,.form-card{border:1px solid var(--line);box-shadow:var(--shadow);background:#fff;border-radius:22px}.content-card{margin-top:18px;padding:24px}.content-card>header{justify-content:space-between;align-items:center;display:flex}.content-card>header>span,.content-card>header>a{color:var(--muted);font-size:12px}.empty-copy{color:#94a29d;place-items:center;min-height:110px;margin:0;font-size:13px;display:grid}.empty-copy.tall{min-height:190px}.category-bars{gap:18px;margin-top:25px;display:grid}.category-bar>div{justify-content:space-between;margin-bottom:8px;display:flex}.category-bar b{font-size:13px}.category-bar div span{color:var(--muted);font-size:12px}.category-bar i{background:#edf2ef;border-radius:99px;height:7px;display:block;overflow:hidden}.category-bar i span{border-radius:inherit;background:#2a936f;height:100%;display:block}.recent-list{margin-top:11px}.recent-list article{border-top:1px solid #e9eeeb;grid-template-columns:39px minmax(0,1fr) auto auto;align-items:center;gap:13px;padding:15px 0;display:grid}.type-mark{border-radius:12px;place-items:center;width:38px;height:38px;font-size:20px;font-weight:700;display:grid}.recent-main{min-width:0}.recent-main b,.recent-main span,.recent-main small{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.recent-main span,.recent-main small{color:var(--muted);margin-top:3px;font-size:11px}.recent-list article>strong{white-space:nowrap;font-size:14px}.receipt-thumb{border:1px solid var(--line);background:#f4f6f3;border-radius:12px;width:94px;height:82px;padding:0;overflow:hidden}.receipt-thumb.compact{border-radius:9px;width:42px;height:42px}.receipt-thumb img{object-fit:cover;width:100%;height:100%}.receipt-large{object-fit:contain;border-radius:12px;max-width:100%;max-height:70vh;margin:auto;display:block}.section-page-header>p:last-child,.list-header>div>p:last-child{color:var(--muted);margin:9px 0 0;font-size:14px}.list-header{justify-content:space-between;align-items:flex-end;display:flex}.small-primary{background:var(--soft-green);color:#137654;border:0;border-radius:11px;justify-content:center;align-items:center;gap:7px;padding:11px 15px;font-weight:700;display:inline-flex}.search-field{border:1px solid var(--line);background:#fbfcfa;border-radius:13px;align-items:center;gap:9px;height:52px;padding:0 15px;display:flex}.search-field svg{color:#87958f}.search-field input{background:0 0;border:0;outline:0;width:100%}.filter-grid{grid-template-columns:repeat(4,1fr);gap:11px;margin-top:12px;display:grid}.filter-grid label{position:relative}.filter-grid label>span{color:var(--muted);font-size:9px;position:absolute;top:6px;left:13px}.filter-grid select,.filter-grid input[type=month]{border:1px solid var(--line);background:#fff;border-radius:12px;width:100%;height:55px;padding:17px 12px 3px;font-weight:600}.more-filter{color:#377766;background:0 0;border:0;align-items:center;gap:6px;margin-top:13px;padding:4px;font-size:12px;display:flex}.filter-grid.extra{grid-template-columns:1fr 1fr 1.1fr}.check-filter{border:1px solid var(--line);border-radius:12px;align-items:center;gap:8px;padding:0 12px;font-size:12px;display:flex}.check-filter input{accent-color:var(--green)}.export-actions{border-top:1px solid #e9eeeb;gap:8px;margin-top:16px;padding-top:15px;display:flex}.export-actions button{border:1px solid var(--line);background:#fff;border-radius:9px;align-items:center;gap:6px;padding:9px 12px;font-size:11px;display:flex}.export-actions button:disabled{cursor:not-allowed;opacity:.45}.transactions-card{margin-top:18px;padding:0 22px}.ledger-row{border-top:1px solid #e9eeeb;grid-template-columns:39px minmax(210px,1fr) auto 110px auto;align-items:center;gap:13px;padding:17px 0;display:grid}.ledger-row:first-child{border-top:0}.ledger-row-main{min-width:0}.ledger-row-main b,.ledger-row-main span,.ledger-row-main small{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.ledger-row-main b{font-size:14px}.ledger-row-main span,.ledger-row-main small{color:var(--muted);margin-top:3px;font-size:10px}.record-status{gap:5px;display:flex}.record-status span{border-radius:99px;padding:4px 7px;font-size:9px}.ledger-row>strong{text-align:right;font-size:14px}.row-actions{gap:3px;display:flex}.row-actions button,.row-actions a,.icon-button{color:#5d716a;background:#f1f5f2;border:0;border-radius:9px;place-items:center;width:33px;height:33px;display:grid}.row-actions button:last-child{color:#c24d45}.subpage-header{align-items:flex-start;gap:18px;margin-bottom:24px;display:flex}.back-button{color:#61746d;background:0 0;border:0;align-items:center;gap:5px;padding:8px 0;display:flex}.transaction-form{gap:15px;max-width:850px;display:grid}.type-switch{background:#e8ede9;border-radius:14px;grid-template-columns:1fr 1fr;padding:4px;display:grid}.type-switch button{color:#788780;background:0 0;border:0;border-radius:11px;height:44px;font-weight:700}.type-switch button.active{color:#fff}.form-card{gap:18px;padding:22px;display:grid}.form-card label>span{color:#657972;margin-bottom:7px;font-size:12px;font-weight:600;display:block}.form-card input,.form-card select,.form-card textarea{border:1px solid var(--line);background:#fbfcfa;border-radius:12px;outline:0;width:100%}.form-card input,.form-card select{height:51px;padding:0 14px}.form-card textarea{resize:vertical;padding:13px}.form-card input:focus,.form-card select:focus,.form-card textarea:focus{border-color:#51a185;box-shadow:0 0 0 3px #51a1851f}.amount-field>div{border-bottom:1px solid var(--line);align-items:center;display:flex}.amount-field>div b{font-size:30px}.amount-field>div input{letter-spacing:-.04em;background:0 0;border:0;height:68px;font-size:38px;font-weight:750}.form-grid{grid-template-columns:1fr 1fr}.field-title{justify-content:space-between;display:flex}.field-title p{color:var(--muted);margin:6px 0 0;font-size:11px}.upload-box{text-align:center;cursor:pointer;background:#f8fbf9;border:1.5px dashed #bdd1c8;border-radius:15px;place-items:center;min-height:140px;padding:22px;display:grid}.upload-box svg{color:#39866c}.upload-box span{color:var(--muted);font-size:11px}.upload-box input,.data-button input{display:none}.existing-receipt{align-items:center;gap:15px;display:flex}.existing-receipt>div{gap:5px;display:grid}.existing-receipt span{color:var(--muted);font-size:11px}.text-danger{color:#c45249;background:0 0;border:0;align-items:center;gap:4px;padding:0;font-size:11px;display:flex}.invoice-field{border-top:1px solid var(--line);justify-content:space-between;align-items:center;padding-top:16px;display:flex}.invoice-options{background:#edf1ee;border-radius:10px;padding:3px;display:flex}.invoice-options button{background:0 0;border:0;border-radius:8px;align-items:center;gap:5px;padding:8px 13px;font-size:12px;display:flex}.invoice-options button.active{color:#fff;background:var(--green)}.form-error{color:#a33f38;background:#fbedeb;border-radius:10px;margin:0;padding:11px 14px;font-size:12px}.save-button{color:#fff;border:0;border-radius:14px;height:54px;font-weight:800}.save-button:disabled{opacity:.55}.month-picker{border:1px solid var(--line);background:#fff;border-radius:13px;justify-content:space-between;align-items:center;height:57px;padding:0 17px;font-size:17px;font-weight:600;display:flex;position:relative}.month-picker input{opacity:0;cursor:pointer;width:100%;position:absolute;inset:0}.report-metrics{grid-template-columns:1fr 1fr;gap:13px;margin:28px 0 18px;display:grid}.report-metrics article{border:1px solid var(--line);background:#fff;border-radius:17px;gap:12px;padding:20px;display:grid}.report-metrics span{color:var(--muted);font-size:12px}.report-metrics b{font-size:22px}.monthly-ledger dl{margin:20px 0 0}.monthly-ledger dl div{border-bottom:1px solid #e8edea;justify-content:space-between;padding:13px 0;display:flex}.monthly-ledger dt{color:var(--muted);font-size:13px}.monthly-ledger dd{margin:0;font-weight:700}.settings-page{gap:18px;display:grid}.settings-page .section-page-header{margin-bottom:10px}.settings-card{gap:18px;padding:24px;display:grid}.settings-card>label>span{color:var(--muted);margin-bottom:7px;font-size:12px;display:block}.settings-card input,.settings-card select{border:1px solid var(--line);background:#fbfcfa;border-radius:11px;width:100%;height:49px;padding:0 13px}.setting-money{align-items:center;gap:18px;display:flex}.setting-money b{text-align:right;min-width:130px}.settings-title{justify-content:space-between;align-items:center;gap:18px;display:flex}.settings-title p,.dev-card p{color:var(--muted);margin:7px 0 0;font-size:11px}.add-category{gap:7px;display:flex}.add-category input{width:150px}.add-category button{background:var(--soft-green);color:#147453;border:0;border-radius:10px;align-items:center;gap:4px;display:flex}.category-settings{gap:9px;display:grid}.category-settings>div{grid-template-columns:1fr 86px;align-items:center;gap:12px;display:grid}.toggle{align-items:center;gap:7px;font-size:11px;display:flex}.toggle input{display:none}.toggle span{background:#ced7d2;border-radius:99px;width:35px;height:20px;position:relative}.toggle span:after{content:"";background:#fff;border-radius:50%;width:14px;height:14px;transition:all .2s;position:absolute;top:3px;left:3px}.toggle input:checked+span{background:var(--green)}.toggle input:checked+span:after{transform:translate(15px)}.data-actions{grid-template-columns:repeat(4,1fr);gap:10px;display:grid}.data-actions button,.data-button{border:1px solid var(--line);text-align:center;background:#fbfcfa;border-radius:13px;place-items:center;min-height:115px;padding:13px;font-weight:700;display:grid}.data-actions small{color:var(--muted);font-size:9px;font-weight:400}.dev-card{border-style:dashed;justify-content:space-between;align-items:center;display:flex}.dev-card button{border:1px solid var(--line);background:#fff;border-radius:9px;align-items:center;gap:6px;padding:9px 12px;display:flex}.toast-message{z-index:5;color:#fff;box-shadow:var(--shadow);background:#153f35;border-radius:11px;padding:11px 15px;font-size:12px;position:sticky;top:14px}.modal-backdrop{z-index:50;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#091c177a;place-items:center;padding:18px;display:grid;position:fixed;inset:0}.modal{background:#fff;border-radius:20px;width:min(560px,100%);max-height:90vh;padding:22px;overflow:auto;box-shadow:0 30px 80px #0003}.modal-wide{width:min(780px,100%)}.modal>header{justify-content:space-between;align-items:center;margin-bottom:20px;display:flex}.detail-grid{grid-template-columns:1fr 1fr;gap:16px;display:grid}.detail-grid div{gap:4px;display:grid}.detail-grid span,.detail-receipt>span{color:var(--muted);font-size:10px}.detail-grid b{font-size:13px}.detail-receipt{gap:8px;margin-top:18px;display:grid}.modal-actions{border-top:1px solid var(--line);justify-content:flex-end;gap:8px;margin-top:22px;padding-top:17px;display:flex}.modal-actions button,.modal-actions a{border:0;border-radius:9px;padding:10px 15px}.primary-button{border:0;justify-content:center;align-items:center;gap:7px;font-weight:700;display:flex;background:var(--deep)!important;color:#fff!important}.danger-button{color:#a93e37!important;background:#f7e6e3!important}.backup-summary p{color:var(--muted);font-size:13px;line-height:1.65}.backup-summary dl div{border-bottom:1px solid var(--line);justify-content:space-between;padding:9px 0;display:flex}.backup-summary dt{color:var(--muted)}.backup-summary dd{margin:0;font-weight:650}.initialize-page{text-align:center;background:#f1f4f0;flex-direction:column;justify-content:center;align-items:center;width:min(760px,100%);min-height:100vh;margin:auto;padding:55px 24px;display:flex}.initialize-brand{place-items:center;display:grid}.initialize-brand p{color:#667a74;letter-spacing:.24em;margin:22px 0 0;font-size:12px;font-weight:850}.initialize-copy{margin:54px 0 37px}.initialize-copy h1{font-size:clamp(34px,6vw,48px)}.initialize-copy p{color:#75847e;margin:23px 0 0;font-size:17px}.initialize-card{border:1px solid var(--line);text-align:left;background:#fff;border-radius:25px;gap:22px;width:min(640px,100%);padding:28px;display:grid;box-shadow:0 18px 45px #1a3a3014}.initialize-card label>span{margin-bottom:8px;font-weight:650;display:block}.initialize-card input{background:#fbfcfa;border:1px solid #ccd8d2;border-radius:12px;width:100%;height:52px;padding:0 14px}.money-input{border:1px solid #ccd8d2;border-radius:12px;align-items:center;display:flex}.money-input span{padding-left:15px;font-size:24px;font-weight:700}.money-input input{border:0;font-size:25px;font-weight:750}.initialize-card .primary-button{border-radius:13px;height:57px}.device-note{color:#84918d;margin:35px 0 0;font-size:13px}@media (width<=760px){body{background:var(--paper)}.workbench-frame{width:100%;min-height:100vh;box-shadow:none;border-radius:0;margin:0}.main-content{min-height:100vh;padding-bottom:82px}.page{padding:24px 17px 35px}.bottom-nav{height:72px;padding:7px 8% calc(7px + env(safe-area-inset-bottom));position:fixed}.home-header{margin-bottom:22px}.home-header h1{font-size:28px}.yen-logo.small{border-radius:15px;width:48px;height:48px}.balance-card{border-radius:21px;padding:23px 20px 20px}.balance-card>strong{margin:16px 0 25px;font-size:42px}.balance-breakdown{gap:12px}.balance-breakdown b{font-size:12px}.missing-alert{grid-template-columns:auto 1fr}.missing-alert small{text-align:left;grid-column:2}.entry-actions{gap:9px;margin:12px 0}.entry-button{border-radius:16px;height:63px;font-size:16px}.content-card{border-radius:17px;margin-top:12px;padding:18px}.recent-list article{grid-template-columns:36px minmax(0,1fr) auto}.recent-list article>strong{grid-column:2/4}.receipt-thumb.compact{display:none}.filter-card{padding:14px}.filter-grid,.filter-grid.extra{grid-template-columns:1fr 1fr}.check-filter{grid-column:1/3;min-height:48px}.export-actions{grid-template-columns:1fr 1fr;display:grid}.export-actions button:last-child{grid-column:1/3;justify-content:center}.transactions-card{padding:0 14px}.ledger-row{grid-template-columns:35px minmax(0,1fr) auto;padding:15px 0}.record-status{grid-column:2/4}.ledger-row>strong{grid-area:1/3}.row-actions{grid-column:2/4;justify-content:flex-end}.form-page h1{font-size:26px}.subpage-header{gap:12px}.back-button{font-size:0}.form-grid{grid-template-columns:1fr}.invoice-field{flex-direction:column;align-items:flex-start;gap:10px}.report-metrics{gap:9px}.report-metrics article{padding:15px}.report-metrics b{font-size:17px}.settings-card{padding:18px}.settings-title{flex-direction:column;align-items:flex-start}.add-category{width:100%}.add-category input{flex:1;width:auto}.data-actions{grid-template-columns:1fr 1fr}.detail-grid{grid-template-columns:1fr}.initialize-page{justify-content:flex-start;padding-top:55px}.initialize-copy{margin:38px 0 28px}.initialize-copy p{font-size:14px}.initialize-card{padding:21px}.initialize-brand .yen-logo{width:64px;height:64px}.setting-money{flex-direction:column;align-items:flex-start;gap:7px}.setting-money b{text-align:left}}@media (width<=390px){.page{padding-inline:14px}.balance-card>strong{font-size:38px}.balance-breakdown span{font-size:10px}.balance-breakdown b{font-size:11px}.recent-list article>strong{font-size:13px}.data-actions button,.data-button{min-height:100px}.initialize-page{padding-inline:17px}}@media (width<=760px){.main-content{min-height:calc(100vh - 72px);padding-bottom:82px}}@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}:root{--ink:#171a1f;--muted:#6b7280;--line:#e5e7eb;--paper:#f7f8fa;--green:#2f9e68;--deep:#5267e8;--coral:#d95c5c;--yellow:#eef1f5;--soft-green:#edf8f2;--soft-red:#fdf0f0;--shadow:0 1px 2px #0000000a}body{color:var(--ink);background:#f7f8fa}.workbench-frame{box-shadow:none;background:#f7f8fa;border:1px solid #edf0f2}.main-content{background:#f7f8fa}.home-header{margin-bottom:27px}.home-header p{color:#6b7280;letter-spacing:.04em;font-size:12px}.home-header h1{font-size:30px}.yen-logo{color:#5267e8;background:#eef1f5;border:1px solid #e1e5ec;border-radius:12px;width:40px;height:40px}.yen-logo.small{border-radius:12px;width:42px;height:42px}.balance-card{color:var(--ink);box-shadow:var(--shadow);background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:25px 26px 22px}.balance-card>p{color:#6b7280;font-size:13px}.balance-card>strong{color:#171a1f;font-variant-numeric:tabular-nums;margin:13px 0 25px;font-size:44px}.balance-breakdown{border-color:#edf0f2;padding-top:18px}.balance-breakdown span{color:#9ca3af}.balance-breakdown b{font-size:14px}.balance-breakdown b:not(.income-text):not(.expense-text){color:#5267e8}.income-text{color:#2f9e68!important}.expense-text{color:#d95c5c!important}.entry-actions{gap:10px;margin:14px 0}.entry-button{color:#171a1f;height:58px;box-shadow:var(--shadow);background:#fff;border:1px solid #e5e7eb;border-radius:13px;font-size:15px}.entry-button.income{color:#267b53;background:#fff;border-color:#cae8d8}.entry-button.expense{color:#bd5151;background:#fff;border-color:#f0d0d0}.entry-button svg{width:21px;height:21px}.content-card,.filter-card,.transactions-card,.settings-card,.form-card{box-shadow:var(--shadow);border-color:#e5e7eb;border-radius:16px}.content-card{padding:20px}.content-card>header h2{font-size:16px}.category-bars{gap:15px;margin-top:20px}.category-bar i span{background:#5267e8}.recent-list article{padding:13px 0}.recent-main b{font-size:13px}.recent-main span,.recent-main small{color:#9ca3af}.type-mark.income{color:#2f9e68;background:#edf8f2}.type-mark.expense{color:#d95c5c;background:#fdf0f0}.missing-alert{color:#866523;background:#fffaf1;border-color:#f0dfc1;border-radius:12px;font-size:12px}.missing-alert small{color:#aa9067}.bottom-nav{background:#fff;border-top-color:#e5e7eb;height:72px;padding:7px 24%;box-shadow:0 -1px 2px #00000006}.bottom-nav a{gap:5px;font-size:11px}.bottom-nav a.active{color:#5267e8}.section-page-header,.list-header{margin-bottom:22px}.section-page-header h1,.list-header h1{font-size:30px}.section-page-header>p:last-child,.list-header>div>p:last-child{color:#6b7280;font-size:13px}.small-primary{color:#5267e8;background:#f0f2ff;border:1px solid #dbe1ff;font-size:12px}.filter-card{padding:17px}.search-field{background:#fff;border-color:#e5e7eb;height:46px}.filter-grid select,.filter-grid input[type=month]{background:#fff;border-color:#e5e7eb;height:49px;font-size:12px}.export-actions button{color:#5267e8;background:#fff;border-color:#e5e7eb}.more-filter{color:#5267e8}.transactions-card{padding:0 19px}.record-status .ok{color:#347957;background:#edf8f2}.record-status .missing{color:#a84d4d;background:#fdf0f0}.subpage-header{margin-bottom:20px}.form-card{padding:20px}.type-switch{background:#eef0f3}.type-switch button.active.income{background:#2f9e68}.type-switch button.active.expense{background:#d95c5c}.save-button.income{background:#2f9e68}.save-button.expense{background:#d95c5c}.upload-box{background:#fafbfc;border-color:#cfd6df}.invoice-options button.active{background:#2f9e68}.invoice-options button.active.no{background:#d95c5c}.amount-field>div input{font-variant-numeric:tabular-nums}.month-picker,.report-metrics article{background:#fff;border-color:#e5e7eb}.report-metrics b{font-variant-numeric:tabular-nums}.category-settings input,.settings-card input,.settings-card select{background:#fff;border-color:#e5e7eb}.settings-card{padding:20px}.data-actions button,.data-button{background:#fff;border-color:#e5e7eb}.data-actions svg{color:#5267e8}.dev-card{background:#fff}.toast-message{background:#5267e8}.modal{border:1px solid #e5e7eb}.initialize-page{background:#f7f8fa}.initialize-brand p{color:#6b7280}.initialize-card{box-shadow:var(--shadow);border-color:#e5e7eb}.initialize-card .primary-button{background:#5267e8!important}.device-note{color:#9ca3af}@media (width<=760px){.bottom-nav{padding-left:7%;padding-right:7%}.page{padding:22px 16px 30px}.home-header h1{font-size:26px}.balance-card>strong{font-size:36px}.content-card{padding:17px}.settings-card{padding:18px}.section-page-header h1,.list-header h1{font-size:27px}}.balance-risk>strong,.report-risk b{color:#c65353!important}.balance-warning{color:#c65353;background:#fdf0f0;border-radius:99px;margin:-10px 0 16px;padding:5px 9px;font-size:11px;font-weight:700;display:inline-flex}.report-risk small{color:#c65353;font-size:11px}.report-risk{border-color:#f1d6d6!important}.more-filter b{color:#5267e8;background:#eef0ff;border-radius:99px;justify-content:center;align-items:center;min-width:19px;height:19px;margin-left:2px;font-size:10px;display:inline-flex}.ledger-row-main small{color:#b0b8bd;font-size:9px}.ledger-row-main span{color:#87919a}.primary-filters{grid-template-columns:1fr 1fr}.category-settings{gap:0}.category-row{border-bottom:1px solid #eef0f2;grid-template-columns:minmax(0,1fr) 92px 52px;align-items:center;gap:12px;min-height:54px;display:grid}.category-name{font-size:13px}.edit-category,.category-edit-actions button{color:#5267e8;background:0 0;border:0;font-size:11px}.category-edit-actions{justify-content:flex-end;gap:7px;display:flex}.category-edit-actions button:last-child{color:#8b949b}.category-row>input{height:38px!important}.toggle{justify-content:flex-start}.data-actions{gap:7px}.data-actions button,.data-button{text-align:left;grid-template-rows:auto auto;grid-template-columns:auto 1fr;justify-content:start;column-gap:8px;min-height:84px;padding:12px}.data-actions svg{grid-row:1/3}.data-actions small{grid-column:2}.data-card .settings-title>svg{color:#5267e8}@media (width<=760px){.primary-filters{grid-template-columns:1fr 1fr}.category-row{grid-template-columns:minmax(0,1fr) 78px 38px;gap:7px}.edit-category{font-size:10px}.data-actions button,.data-button{min-height:70px}.report-risk b{font-size:18px}}.yen-logo{background:#f5f7fb;overflow:hidden}.yen-logo img{object-fit:contain;width:100%;height:100%;display:block}.locked-balance{gap:8px;display:grid}.locked-balance>span{color:var(--muted);font-size:12px}.locked-balance-value{background:#f8fafc;border:1px solid #e5e7eb;border-radius:11px;align-items:center;gap:12px;min-height:49px;padding:0 13px;display:flex}.locked-balance-value>b{font-variant-numeric:tabular-nums}.locked-balance-value>span{color:#7d8794;align-items:center;gap:4px;margin-left:auto;font-size:11px;display:flex}.locked-balance-value button{color:#5267e8;background:#eef1ff;border:0;border-radius:8px;padding:7px 10px;font-size:11px}.balance-edit-fields{gap:8px;display:grid}.balance-edit-fields small{color:var(--muted);font-size:11px}.balance-inline-actions{justify-content:flex-end;gap:8px;display:flex}.balance-inline-actions>button:first-child{color:var(--muted);background:0 0;border:0;padding:9px 12px;font-size:12px}@media (width<=760px){.page{padding:20px 16px 34px}.section-page-header,.list-header{margin-bottom:16px}.section-page-header h1,.list-header h1{font-size:26px}.list-header{align-items:center}.small-primary{border-radius:14px;height:44px;padding:0 13px}.filter-card{border-radius:19px;padding:12px}.search-field{border-radius:14px;height:48px;padding-inline:14px}.search-field svg{width:19px;height:19px}.search-field input{font-size:14px}.primary-filters{gap:8px;margin-top:9px}.filter-grid select,.filter-grid input[type=month]{border-radius:14px;height:58px;padding:21px 11px 3px;font-size:13px}.filter-grid label>span{font-size:10px;top:7px;left:12px}.more-filter{border-top:1px solid #f0f1f3;border-bottom:1px solid #f0f1f3;justify-content:space-between;width:100%;height:48px;margin-top:6px;padding:0 2px}.more-filter:after{content:"›";color:#9aa2ad;font-size:21px}.more-filter b{margin-left:auto}.export-actions{border-top:0;grid-template-columns:1fr 1fr;gap:7px;margin-top:8px;padding-top:9px;display:grid}.export-actions button{border-radius:12px;justify-content:center;height:44px;padding:0 9px;font-size:11px}.export-actions button:last-child{color:#5267e8;background:0 0;border:0;grid-column:1/-1;height:28px}.transactions-card{border-radius:19px;margin-top:12px;padding:0 15px}.empty-copy.tall{text-align:center;min-height:240px;padding:20px}.ledger-row{grid-template-columns:33px minmax(0,1fr) auto;gap:9px;padding:14px 0}.ledger-row-main b{font-size:13px}.ledger-row>strong{font-size:14px}.row-actions{gap:2px}.row-actions button,.row-actions a{width:29px;height:29px}.record-status{gap:4px}.record-status span{padding:4px 6px}.settings-page{gap:14px}.settings-card{border-radius:19px;gap:14px;padding:16px}.settings-title{flex-direction:row;align-items:center}.settings-title h2{font-size:17px}.add-category{gap:6px;width:100%}.add-category input{flex:1;min-width:0}.add-category-trigger{color:#5267e8;background:#f0f2ff;border:0;border-radius:10px;align-items:center;gap:3px;padding:8px 10px;font-size:12px;display:flex}.category-settings{margin:0 -2px}.category-row{grid-template-columns:minmax(0,1fr) 74px 38px;gap:5px;min-height:54px}.edit-category{min-width:44px;min-height:44px;padding:0}.toggle{font-size:10px}.toggle span{width:32px;height:19px}.toggle span:after{width:13px;height:13px}.toggle input:checked+span:after{transform:translate(13px)}.data-actions{gap:7px}.data-actions button,.data-button{border-radius:13px;min-height:96px;padding:10px}.data-actions svg{width:18px;height:18px}.data-actions button,.data-button{font-size:13px}.data-actions small{font-size:10px}.data-safety{color:#63718a;background:#f0f5ff;border-radius:11px;align-items:center;gap:6px;margin:0;padding:10px 11px;font-size:11px;display:flex}.data-safety svg{color:#5267e8;flex:none}.bottom-nav{height:72px;box-shadow:none;border-top:1px solid #e5e7eb;padding-left:8%;padding-right:8%}.bottom-nav a{font-size:11px}.bottom-nav a svg{width:23px;height:23px}.main-content{min-height:calc(100vh - 72px);padding-bottom:calc(84px + env(safe-area-inset-bottom))}.primary-filters>label{min-width:0}.primary-filters input[type=month],.primary-filters select{box-sizing:border-box;white-space:nowrap;text-overflow:ellipsis;appearance:none;width:100%;min-width:0;max-width:100%;overflow:hidden}.primary-filters>label:first-child:after{content:"▣";color:#8b95a3;pointer-events:none;font-size:14px;position:absolute;bottom:16px;right:12px}.primary-filters>label:nth-child(2):after{content:"⌄";color:#8b95a3;pointer-events:none;font-size:18px;position:absolute;bottom:14px;right:12px}}@media (width>=391px) and (width<=760px){.page{padding-inline:18px}}.bottom-nav{grid-template-columns:repeat(5,1fr);padding-inline:min(20%,220px)}.overview-grid{grid-template-columns:1fr 1fr;gap:14px;display:grid}.overview-money-card{border:1px solid var(--line);background:#fff;border-radius:18px;gap:10px;padding:24px;display:grid}.overview-money-card span,.overview-money-card small{color:var(--muted);font-size:12px}.overview-money-card strong{letter-spacing:-.045em;font-variant-numeric:tabular-nums;font-size:clamp(28px,4vw,43px)}.overview-money-card.spending{background:linear-gradient(145deg,#fff,#f4f6ff);border-color:#dbe3ff}.overview-money-card.spending strong{color:#4058d6}.home-mini-metrics{grid-template-columns:1fr 1fr;gap:10px;margin-top:10px;display:grid}.home-mini-metrics article{border:1px solid var(--line);background:#fff;border-radius:14px;gap:5px;padding:16px 18px;display:grid}.home-mini-metrics span,.home-mini-metrics small{color:var(--muted);font-size:11px}.home-mini-metrics b{font-size:19px}.savable-metric b{color:#df7a27!important}.entry-button.personal{color:#4058d6;background:#fff;border-color:#cfd8ff}.home-recents{grid-template-columns:1fr 1fr;gap:14px;display:grid}.simple-recent-list{margin-top:10px}.simple-recent-list>div{border-top:1px solid #edf0f3;grid-template-columns:8px minmax(0,1fr) auto;align-items:center;gap:10px;padding:12px 0;display:grid}.simple-recent-list p{gap:3px;min-width:0;margin:0;display:grid}.simple-recent-list p b,.simple-recent-list p small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.simple-recent-list p b{font-size:13px}.simple-recent-list p small{color:var(--muted);font-size:10px}.simple-recent-list strong{font-size:12px}.mini-dot{background:#5267e8;border-radius:50%;width:7px;height:7px}.mini-dot.income{background:#2f9e68}.mini-dot.expense{background:#d95c5c}.quiet-income-link{width:max-content;color:var(--muted);align-items:center;gap:5px;margin:14px auto 0;font-size:11px;display:flex}.expenses-page{max-width:920px;margin:auto}.expense-month{margin-bottom:14px}.spending-hero{color:#fff;background:#142342;border-radius:20px;padding:25px}.spending-hero p{color:#aebbd6;margin:0;font-size:13px}.spending-hero>strong{letter-spacing:-.05em;margin:12px 0 20px;font-size:46px;display:block}.spending-hero>div:first-of-type{color:#cfd7e8;justify-content:space-between;font-size:12px;display:flex}.budget-track{background:#2b3a58;border-radius:99px;height:7px;margin:14px 0 8px;overflow:hidden}.budget-track i{border-radius:inherit;background:#55a8ff;height:100%;display:block}.spending-hero>small{color:#9facbf}.pace-card{border:1px solid var(--line);background:#fff;border-radius:16px;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px;padding:17px;display:grid}.pace-card>div{gap:5px;display:grid}.pace-card span{color:var(--muted);font-size:11px}.pace-card b{font-size:19px}.pace-card p{border-top:1px solid var(--line);color:#347957;grid-column:1/-1;margin:4px 0 0;padding-top:12px;font-size:12px;font-weight:700}.pace-card p.pace-fast{color:#d66d22}.compact-metrics{grid-template-columns:repeat(4,1fr);gap:9px;margin-top:12px;display:grid}.compact-metrics article{border:1px solid var(--line);background:#fff;border-radius:14px;gap:6px;padding:15px;display:grid}.compact-metrics span{color:var(--muted);font-size:10px}.compact-metrics b{font-size:15px}.necessity-card>div{grid-template-columns:repeat(3,1fr);gap:9px;margin-top:18px;display:grid}.necessity-card article{background:#f7f8fa;border-radius:12px;gap:5px;padding:14px;display:grid}.necessity-card article span,.necessity-card article small{color:var(--muted);font-size:10px}.necessity-card article.savable{background:#fff6ed}.necessity-card article.savable b{color:#d66d22}.suggestion-card ul{color:#536070;gap:10px;margin:16px 0 0;padding-left:20px;font-size:13px;line-height:1.55;display:grid}.expense-list-card header button{color:#5267e8;background:0 0;border:0;align-items:center;gap:5px;display:flex}.expense-list>article{border-top:1px solid var(--line);grid-template-columns:40px minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:14px 0;display:grid}.expense-date{text-align:center;width:38px;display:grid}.expense-date b{font-size:17px}.expense-date span{color:var(--muted);font-size:9px}.expense-main{min-width:0}.expense-main>div{align-items:center;gap:7px;display:flex}.expense-main small{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;margin-top:4px;font-size:10px;display:block;overflow:hidden}.necessity-tag{color:#697384;background:#eef1f5;border-radius:99px;padding:3px 6px;font-size:9px}.necessity-tag.level-可省{color:#c96a20;background:#fff0df}.expense-list>article>strong{font-size:14px}.chip-field{border:0;margin:0;padding:0}.chip-field legend{color:#657972;margin-bottom:12px;font-size:12px;font-weight:600}.choice-chips{gap:8px;display:grid}.category-chips{grid-template-columns:repeat(4,1fr)}.necessity-chips{grid-template-columns:repeat(3,1fr)}.choice-chips button{border:1px solid var(--line);background:#f8f9fb;border-radius:12px;height:46px}.choice-chips button.active{color:#4058d6;background:#eef1ff;border-color:#5267e8;font-weight:700}.choice-chips button.active.level-可省{color:#c86b22;background:#fff2e6;border-color:#e99c5a}.save-button.personal{background:#5267e8}.form-card label>span small{color:#9ca3af}.budget-input{border:1px solid var(--line);background:#fff;border-radius:11px;align-items:center;display:flex}.budget-input>b{padding-left:14px}.budget-input input{border:0!important}.stats-spending>div{grid-template-columns:repeat(4,1fr);gap:8px;margin-top:16px;display:grid}.stats-spending article{background:#f7f8fa;border-radius:11px;gap:7px;padding:13px;display:grid}.stats-spending span{color:var(--muted);font-size:10px}.stats-spending b{font-size:13px}@media (width<=760px){.bottom-nav{padding:7px 2% calc(7px + env(safe-area-inset-bottom))}.bottom-nav a{min-width:0}.bottom-nav a svg{width:21px;height:21px}input,select,textarea,.search-field input,.filter-grid select,.filter-grid input[type=month]{font-size:16px!important}.overview-grid{grid-template-columns:1fr}.overview-money-card{padding:19px}.overview-money-card strong{font-size:34px}.home-recents{grid-template-columns:1fr}.home-mini-metrics article{padding:13px}.entry-button{font-size:14px}.spending-hero{padding:21px}.spending-hero>strong{font-size:39px}.compact-metrics{grid-template-columns:1fr 1fr}.expense-list>article{grid-template-columns:36px minmax(0,1fr) auto}.expense-list>article .row-actions{grid-column:2/4}.category-chips{grid-template-columns:repeat(4,1fr);gap:6px}.choice-chips button{height:44px;padding:0;font-size:13px}.expense-form-page{padding-bottom:calc(110px + env(safe-area-inset-bottom))}.expense-form-page .save-button{bottom:calc(78px + env(safe-area-inset-bottom));z-index:5;position:sticky;box-shadow:0 8px 28px #21366038}.modal{max-height:calc(100dvh - 24px);padding:18px}.stats-spending>div{grid-template-columns:1fr 1fr}}@media (width<=390px){.overview-money-card strong{font-size:31px}.spending-hero>strong{font-size:36px}.category-chips{grid-template-columns:repeat(4,minmax(0,1fr))}.choice-chips button{font-size:12px}.page{overflow-x:hidden}}.benchmark-card>div{margin-top:14px;display:grid}.benchmark-card article{border-top:1px solid var(--line);grid-template-columns:1fr auto auto auto;align-items:center;gap:14px;padding:11px 0;font-size:11px;display:grid}.benchmark-card article span{color:var(--muted)}.benchmark-card article em{color:#347957;text-align:right;min-width:58px;font-style:normal}.benchmark-card article em.high{color:#d66d22;font-weight:700}@media (width<=760px){.benchmark-card article{grid-template-columns:1fr auto}.benchmark-card article span:nth-of-type(2){grid-column:1}.benchmark-card article em{grid-area:1/2/3}.benchmark-card article span{font-size:10px}}
