.app{flex-direction:column;max-width:100%;height:100dvh;display:flex;overflow:hidden}.gate{padding:calc(env(safe-area-inset-top) + 24px) calc(env(safe-area-inset-right) + 16px) calc(env(safe-area-inset-bottom) + 24px) calc(env(safe-area-inset-left) + 16px);flex-direction:column;flex:1;justify-content:center;display:flex}.card{background:var(--surface);border:1px solid var(--rule);box-shadow:var(--shadow);border-radius:14px;max-width:100%;padding:20px 18px}.card h2{margin:0 0 12px;font-size:1.125rem}.card button{width:100%;margin-top:12px}.card-tag{letter-spacing:.08em;color:var(--accent-ink);margin:0 0 6px;font-size:.75rem}.notice{border-radius:10px;padding:10px 12px;font-size:.9375rem}.notice.error{background:var(--deficit-wash);color:var(--deficit)}.muted.detail{font-size:.75rem;font-family:var(--mono);margin-top:12px}.setup-steps{color:var(--ink-2);margin:12px 0;padding-left:1.25em;font-size:.9375rem}.setup-steps li{margin-bottom:8px}.plan-list{color:var(--ink-2);margin:0 0 12px;padding-left:1.25em}.plan-list li{margin-bottom:4px}.update-banner{padding:calc(env(safe-area-inset-top) + 10px) 12px 10px;background:var(--gold-wash);color:var(--ink);flex-wrap:wrap;align-items:center;gap:8px;font-size:.9375rem;display:flex}.app-header{padding:calc(env(safe-area-inset-top) + 7px) calc(env(safe-area-inset-right) + 10px) 7px calc(env(safe-area-inset-left) + 10px);border-bottom:1px solid var(--rule);background:var(--surface);align-items:center;gap:8px;display:flex}.app-header h1{flex:1;margin:0;font-size:1.0625rem;font-weight:700}.app-header button{padding:0 12px;font-size:.875rem}.offline-tag{background:var(--gold-wash);color:var(--gold);white-space:nowrap;border-radius:999px;padding:4px 10px;font-size:.8125rem}.app-main{-webkit-overflow-scrolling:touch;min-height:0;padding:10px calc(env(safe-area-inset-right) + 10px) 12px calc(env(safe-area-inset-left) + 10px);flex:1;overflow-y:auto}.signed-in{margin:12px 4px 0}.bottom-nav{z-index:1;border-top:1px solid var(--rule);background:var(--surface);padding:6px calc(env(safe-area-inset-right) + 6px) calc(env(safe-area-inset-bottom) + 6px) calc(env(safe-area-inset-left) + 6px);flex:none;grid-template-columns:repeat(4,1fr);gap:4px;display:grid;position:relative}.nav-tab{min-width:0;color:var(--ink-3);background:0 0;border:1px solid #0000;flex-direction:column;justify-content:center;align-items:center;gap:2px;padding:0 2px;display:flex}.nav-tab.selected{background:var(--accent-wash);border-color:var(--accent);color:var(--accent-ink)}.nav-title{white-space:nowrap;font-size:.875rem;font-weight:700}.sheet{z-index:20;max-height:92dvh;padding:12px calc(env(safe-area-inset-right) + 12px) calc(env(safe-area-inset-bottom) + 12px) calc(env(safe-area-inset-left) + 12px);background:var(--surface);border-top:1px solid var(--rule);box-shadow:var(--shadow);border-radius:16px 16px 0 0;flex-direction:column;gap:10px;display:flex;position:fixed;bottom:0;left:0;right:0}.sheet-body{-webkit-overflow-scrolling:touch;flex-direction:column;flex:auto;gap:10px;min-height:0;display:flex;overflow-y:auto}.sheet-foot{flex:none}.sheet-backdrop{z-index:19;background:#1b262459;position:fixed;inset:0}.sheet-head{justify-content:space-between;align-items:center;gap:10px;display:flex}.sheet-delete{color:var(--deficit);border-color:var(--deficit)}.sheet-danger{background:var(--deficit-wash);border-radius:12px;flex-wrap:wrap;align-items:center;gap:8px;padding:12px;font-size:.9375rem;display:flex}button.danger{background:var(--deficit);border-color:var(--deficit);color:#fff;font-weight:700}.calendar{border:1px solid var(--rule);background:var(--surface-2);border-radius:12px;flex-direction:column;gap:6px;padding:8px;display:flex}.calendar-head{justify-content:space-between;align-items:center;gap:8px;display:flex}.calendar-title{font-size:.9375rem;font-weight:700}.calendar-nav{min-width:40px;min-height:40px;padding:0;font-size:1.125rem}.calendar-weekdays,.calendar-grid{grid-template-columns:repeat(7,1fr);gap:2px;display:grid}.calendar-weekdays span{text-align:center;color:var(--ink-3);font-size:.75rem}.calendar-day{background:var(--surface);border:none;border-radius:8px;min-width:0;min-height:40px;padding:0;font-size:.9375rem}.calendar-day.selected{background:var(--accent);color:#fff;font-weight:700}.calendar-day.is-today:not(.selected){box-shadow:inset 0 0 0 1px var(--accent);color:var(--accent-ink);font-weight:700}.calendar-day:disabled{color:var(--ink-3);opacity:.4;background:0 0}.calendar-blank{min-height:40px}.calendar-quick{gap:6px;display:flex}.quick{flex-direction:column;gap:8px;display:flex}.quick-top{flex-direction:column;gap:6px;display:flex}.quick-daybar{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.date-button{background:var(--surface);padding:0 14px;font-weight:700}.quick-daytotal{white-space:nowrap;flex:1}.badge-pending{background:var(--gold-wash);color:var(--gold);white-space:nowrap;border-radius:999px;padding:4px 10px;font-size:.8125rem;font-weight:700}.date-choices{flex-wrap:wrap;gap:6px;display:flex}.amount{text-align:right;margin:0;padding:2px 4px;font-size:2rem;font-weight:600;line-height:1.1}.quick-mid{flex-direction:column;gap:7px;display:flex}.chips{flex-wrap:wrap;gap:6px;display:flex}.chip{border:1px solid var(--rule-strong);background:var(--surface);min-width:0;min-height:36px;color:var(--ink);border-radius:999px;padding:0 11px;font-size:.875rem}.chip.selected{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:700}.chip-more{color:var(--ink-2);border-style:dashed}.chips-others{border:1px solid var(--rule);background:var(--surface-2);border-radius:12px;max-height:40vh;padding:10px;overflow-y:auto}.merchant-input{border:1px solid var(--rule);background:var(--surface);width:100%;color:var(--ink);border-radius:10px;padding:0 12px}.keypad{grid-template-columns:repeat(4,1fr);grid-auto-rows:minmax(50px,auto);gap:6px;display:grid}.key{border-radius:12px;font-size:1.25rem;font-weight:600}.key-back{grid-area:1/4;font-size:1.25rem}.key-save{grid-area:2/4/span 3;font-size:1.125rem}.keypad .key:nth-child(11){grid-column:2/span 2}.today-list ul{flex-direction:column;gap:4px;margin:0;padding:0;list-style:none;display:flex}.row{background:var(--surface);text-align:left;border-radius:10px;justify-content:space-between;align-items:center;gap:10px;width:100%;padding:4px 10px;display:flex}.row-text{flex-direction:column;gap:2px;min-width:0;display:flex}.row-main{text-overflow:ellipsis;white-space:nowrap;align-items:center;gap:8px;min-width:0;display:flex;overflow:hidden}.row-category{flex:none;font-weight:700}.row-merchant{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--ink-2);font-size:.9375rem;overflow:hidden}.row-memo{text-overflow:ellipsis;white-space:nowrap;color:var(--ink-2);font-size:.8125rem;overflow:hidden}.memo-toggle{align-self:flex-start;min-height:36px;font-size:.875rem}.row-pending{background:var(--gold-wash);color:var(--gold);border-radius:999px;flex:none;padding:2px 8px;font-size:.75rem;font-weight:700}.row-amount{flex:none;font-weight:600}.row-date{min-width:2.6em;color:var(--ink-3);flex:none;font-size:.8125rem}.balances{flex-direction:column;gap:10px;display:flex}.balances h3{margin:0;font-size:1rem}.balance-group{flex-direction:column;gap:4px;display:flex}.balance-row{grid-template-columns:1fr 7.5em 6em;align-items:center;gap:8px;display:grid}.balance-name{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:.9375rem;overflow:hidden}.balance-input{text-align:right}.balance-delta{text-align:right;font-size:.8125rem}.import-screen,.import{flex-direction:column;gap:12px;display:flex}.import-screen h2{margin:0;font-size:1.0625rem}.import-head{justify-content:space-between;align-items:center;gap:10px;display:flex}.import-head h2{margin:0;font-size:1rem}.field-label{color:var(--ink-2);margin:0;font-size:.8125rem}.import-screen select,.import-screen input[type=file]{border:1px solid var(--rule);background:var(--surface);max-width:100%;color:var(--ink);font:inherit;border-radius:10px;padding:8px 10px}.badge-ok{background:var(--accent-wash);color:var(--accent-ink);white-space:nowrap;border-radius:999px;flex:none;padding:4px 10px;font-size:.8125rem;font-weight:700}.import-line{border:1px solid var(--rule);background:var(--surface-2);border-radius:12px;flex-direction:column;gap:10px;padding:12px;display:flex}.diff-left{color:var(--deficit);font-weight:700}.split{flex-direction:column;gap:10px;display:flex}.split-parts{flex-direction:column;gap:4px;margin:0;padding:0;list-style:none;display:flex}.split-parts li{background:var(--surface);border-radius:10px;justify-content:space-between;align-items:center;gap:10px;padding:8px 12px;font-size:.9375rem;display:flex}.incomes{flex-direction:column;gap:10px;display:flex}.incomes h3{margin:0;font-size:1rem}.income-row{grid-template-columns:1fr 7.5em;align-items:center;gap:8px;display:grid}.income-row-other{grid-template-columns:1fr 7.5em auto}.income-name{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:.9375rem;overflow:hidden}.income-amount{text-align:right}.income-remove{padding:0 10px;font-size:.8125rem}.incomes ul.notice{margin:0;padding-left:1.25em}.monthly-screen,.monthly{flex-direction:column;gap:12px;display:flex}.monthly-divider{border:none;border-top:1px solid var(--rule);margin:8px 0}.matrix-scroll{-webkit-overflow-scrolling:touch;border:1px solid var(--rule);background:var(--surface);border-radius:12px;overflow-x:auto}.matrix{border-collapse:collapse;white-space:nowrap;width:100%;font-size:.8125rem}.matrix caption{text-align:left;padding:8px 10px 0}.matrix th,.matrix td{text-align:left;padding:6px 10px}.matrix th[scope=col],.matrix .n{text-align:right}.matrix thead th{border-bottom:1px solid var(--rule);color:var(--ink-2);font-weight:700}.matrix tbody th{font-weight:400}.matrix tbody tr:nth-child(2n){background:var(--surface-2)}.matrix tfoot th,.matrix tfoot td{border-top:1px solid var(--rule-strong);font-weight:700}.matrix .total{font-weight:700}.wallet{flex-direction:column;gap:8px;display:flex}.wallet-head{justify-content:space-between;align-items:baseline;gap:10px;display:flex}.wallet-head h2{margin:0;font-size:1.0625rem}.rows{background:var(--surface);border-radius:12px;flex-direction:column;gap:0;padding:7px 10px;display:flex}.wrow{justify-content:space-between;align-items:baseline;gap:12px;padding:3px 0;font-size:.875rem;display:flex}.wrow-total{border-top:1px solid var(--rule);margin-top:4px;padding-top:9px;font-weight:700}.gap-out{background:var(--gold-wash);color:var(--gold);border-radius:12px;justify-content:space-between;align-items:center;gap:12px;padding:10px 14px;display:flex}.gap-out .num{font-size:1.625rem;font-weight:700}.gap-zero{background:var(--surface-2);color:var(--ink-2)}.wallet-actions{flex-direction:column;gap:6px;display:flex}.month-end-toggle{min-height:var(--touch);align-items:center;gap:10px;font-size:.9375rem;display:flex}.month-end-toggle input{width:22px;height:22px}.row-static{background:var(--surface);border-radius:10px;justify-content:space-between;align-items:center;gap:10px;padding:6px 10px;display:flex}.row-tag{background:var(--accent-wash);color:var(--accent-ink);border-radius:999px;flex:none;padding:2px 8px;font-size:.75rem;font-weight:700}.list-head{margin:0 0 6px;font-size:.8125rem}.action-help{margin:-2px 0 4px;padding:0 2px;font-size:.75rem;line-height:1.4}.notice.saved{background:var(--accent-wash);color:var(--accent-ink);font-size:.875rem}:root{--ground:#f2f5f2;--surface:#fdfdfc;--surface-2:#eff3f1;--ink:#1b2624;--ink-2:#4a5856;--ink-3:#869491;--rule:#d0dbd7;--rule-strong:#a9b9b4;--accent:#0a8064;--accent-ink:#076550;--accent-wash:#e4f0eb;--deficit:#a93a38;--deficit-wash:#f6e7e6;--gold:#b07a18;--gold-wash:#f4eddd;--shadow:0 1px 2px #1b26240d, 0 8px 24px -12px #1b26242e;--touch:44px;--sans:"Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, sans-serif;--mono:ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, "Yu Gothic UI", monospace;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;font-family:var(--sans);font-size:16px;line-height:1.5}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--ground:#121817;--surface:#1b2321;--surface-2:#232d2b;--ink:#e7edea;--ink-2:#b3c0bc;--ink-3:#8b9a96;--rule:#2f3b39;--rule-strong:#475551;--accent:#2fa383;--accent-ink:#4bbd9c;--accent-wash:#17302a;--deficit:#de8481;--deficit-wash:#33211f;--gold:#b88a22;--gold-wash:#2a2417;--shadow:0 1px 2px #0000004d, 0 8px 24px -12px #0009}}*,:before,:after{box-sizing:border-box}html,body{background:var(--ground);max-width:100%;color:var(--ink);margin:0;padding:0;overflow-x:hidden}body{min-height:100dvh}#root{max-width:100%;min-height:100dvh}h1,h2,h3,p,li,dd,dt,td,th,code{overflow-wrap:anywhere}img,svg,canvas,video{max-width:100%;height:auto}.num{font-family:var(--mono);font-variant-numeric:tabular-nums;text-align:right}button{min-height:var(--touch);min-width:var(--touch);border:1px solid var(--rule);background:var(--surface);color:var(--ink);font:inherit;cursor:pointer;touch-action:manipulation;border-radius:10px;padding:0 1rem}button:disabled{opacity:.5;cursor:default}button.primary{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:600}input,select,textarea{min-height:var(--touch);font-family:inherit;font-size:16px}a{color:var(--accent-ink)}code{font-family:var(--mono);background:var(--surface-2);border-radius:4px;padding:.1em .35em;font-size:.9em}.muted{color:var(--ink-3);font-size:.875rem}.scroll-x{-webkit-overflow-scrolling:touch;max-width:100%;overflow-x:auto}
