.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) + 10px) calc(env(safe-area-inset-right) + 12px) 10px calc(env(safe-area-inset-left) + 12px);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:16px calc(env(safe-area-inset-right) + 12px) 16px calc(env(safe-area-inset-left) + 12px);flex:1;overflow-y:auto}.signed-in{margin:12px 4px 0}.bottom-nav{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}.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 4px;display:flex}.nav-tab.selected{background:var(--accent-wash);border-color:var(--accent);color:var(--accent-ink)}.nav-title{font-size:.9375rem;font-weight:700}.nav-scope{letter-spacing:.06em;font-size:.6875rem}.sheet{z-index:10;max-height:92dvh;padding:14px calc(env(safe-area-inset-right) + 14px) calc(env(safe-area-inset-bottom) + 14px) calc(env(safe-area-inset-left) + 14px);background:var(--surface);border-top:1px solid var(--rule);box-shadow:var(--shadow);border-radius:16px 16px 0 0;flex-direction:column;gap:12px;display:flex;position:fixed;bottom:0;left:0;right:0;overflow-y:auto}.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}.quick{flex-direction:column;gap:14px;display:flex}.quick-top{flex-direction:column;gap:8px;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:4px 6px;font-size:2.5rem;font-weight:600;line-height:1.1}.quick-mid{flex-direction:column;gap:10px;display:flex}.chips{flex-wrap:wrap;gap:8px;display:flex}.chip{border:1px solid var(--rule-strong);background:var(--surface);min-width:0;min-height:40px;color:var(--ink);border-radius:999px;padding:0 14px;font-size:.9375rem}.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(56px,auto);gap:8px;display:grid}.key{border-radius:12px;font-size:1.375rem;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:6px;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:6px 12px;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}.wallet{flex-direction:column;gap:14px;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:2px;padding:10px 12px;display:flex}.wrow{justify-content:space-between;align-items:baseline;gap:12px;padding:5px 0;font-size:.9375rem;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:14px 16px;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:8px;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:10px 12px;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}: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}
