@font-face{font-family:Geist;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/fef07dbb0973bf53-s.3p2_lha1f2xer.woff2)format("woff2");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Geist;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/8a480f0b521d4e75-s.1qq4vpdcun5oj.woff2)format("woff2");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Geist;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/53b9e256198e5412-s.390ncx5urfkfu.woff2)format("woff2");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Geist;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/7178b3e590c64307-s.21jp631_3pja2.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Geist;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/caa3a2e1cccd8315-s.p.0wgildi0cnwt9.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Geist Fallback;src:local(Arial);ascent-override:95.94%;descent-override:28.16%;line-gap-override:0.0%;size-adjust:104.76%}.geist_a71539c9-module__T19VSG__className{font-family:Geist,Geist Fallback;font-style:normal}.geist_a71539c9-module__T19VSG__variable{--font-geist-sans:"Geist", "Geist Fallback"}
@font-face{font-family:Geist Mono;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/5ce348bf30bf5439-s.31988l_ccedte.woff2)format("woff2");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Geist Mono;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/4fa387ec64143e14-s.2tuy5pz7dlieh.woff2)format("woff2");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Geist Mono;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/6306c77e7c8268e4-s.2dbetqa9o8jxf.woff2)format("woff2");unicode-range:U+2000-2001,U+2004-2008,U+200A,U+23B8-23BD,U+2500-259F}@font-face{font-family:Geist Mono;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/7d817b4c03b0c5f1-s.1uyisp29ctx0d.woff2)format("woff2");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Geist Mono;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/bbc41e54d2fcbd21-s.1rgnod-3esatf.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Geist Mono;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/797e433ab948586e-s.p.0r6juujl39pe6.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Geist Mono Fallback;src:local(Arial);ascent-override:74.67%;descent-override:21.92%;line-gap-override:0.0%;size-adjust:134.59%}.geist_mono_8d43a2aa-module__8Li5zG__className{font-family:Geist Mono,Geist Mono Fallback;font-style:normal}.geist_mono_8d43a2aa-module__8Li5zG__variable{--font-geist-mono:"Geist Mono", "Geist Mono Fallback"}
:root{--background:#f7f9fc;--surface:#fff;--surface-soft:#f1f5f9;--text:#0f172a;--muted:#64748b;--border:#e2e8f0;--income:#059669;--expense:#dc2626;--accent:#2563eb;--accent-strong:#1d4ed8;--shadow:0 18px 45px #0f172a14}*{box-sizing:border-box;margin:0;padding:0}html,body{max-width:100vw;height:100%;min-height:100%;overflow-x:hidden}body{background:radial-gradient(circle at top left, #2563eb14, transparent 32rem), var(--background);color:var(--text);font-family:var(--font-geist-sans), "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;overflow:hidden}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}textarea,input,select{border:1px solid var(--border);background:var(--surface);width:100%;color:var(--text);border-radius:8px;outline:none;padding:12px;font-size:15px;line-height:1.45}textarea{resize:vertical;min-height:96px}label{color:var(--muted);gap:8px;font-size:13px;font-weight:700;display:grid}.app-shell{overscroll-behavior-y:contain;width:min(1180px,100%);height:100dvh;min-height:100vh;padding:18px 14px calc(156px + env(safe-area-inset-bottom));scroll-padding-bottom:calc(156px + env(safe-area-inset-bottom));-webkit-overflow-scrolling:touch;margin:0 auto;overflow:hidden auto}.loading-shell{place-items:center;display:grid}.loading-card{border:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow);border-radius:8px;padding:22px}.topbar,.status-row,.section-heading,.hero-panel,.budget-card-head,.transaction-row,.ai-actions{align-items:center;display:flex}.topbar{justify-content:space-between;gap:12px;margin-bottom:14px}.brand-block{align-items:center;gap:11px;display:flex}.brand-mark{width:42px;height:42px;color:var(--accent);background:#dbeafe;border-radius:8px;place-items:center;display:grid}.brand-block h1{letter-spacing:0;font-size:22px}.brand-block p,.status-row p,.section-kicker,.empty-text,.transaction-row p,.budget-card p,.share-box p{color:var(--muted);font-size:12px;line-height:1.45}.status-row{justify-content:space-between;gap:10px;margin-bottom:14px}.member-strip,.budget-scroll,.member-list,.category-cloud{scrollbar-width:none;gap:8px;display:flex;overflow-x:auto}.member-strip::-webkit-scrollbar{display:none}.budget-scroll::-webkit-scrollbar{display:none}.member-chip,.icon-button,.ghost-button,.ai-button,.ai-mini-button,.primary-button,.bottom-nav button{border:0;border-radius:8px;justify-content:center;align-items:center;gap:7px;min-height:38px;padding:0 12px;font-size:13px;font-weight:800;display:inline-flex}.member-chip{background:var(--surface);border:1px solid var(--border);color:var(--muted);flex:none}.member-chip span{border-radius:99px;width:8px;height:8px}.member-chip.active{color:var(--accent);background:#eff6ff;border-color:#bfdbfe}.icon-button{border:1px solid var(--border);background:var(--surface);width:40px;color:var(--text);padding:0}.icon-button.small{width:32px;min-height:32px}.icon-button.danger{color:var(--expense)}.primary-button{background:var(--accent);color:#fff;width:100%}.primary-button:hover{background:var(--accent-strong)}.ghost-button{background:var(--surface-soft);color:var(--text)}.ai-button,.ai-mini-button{color:var(--accent-strong);background:#eef2ff;box-shadow:inset 0 0 0 1px #c7d2fe}.content-grid{gap:14px;min-width:0;display:grid}.view{gap:14px;min-width:0;display:none}.view.active{padding-bottom:18px;display:grid}.panel,.hero-panel,.metric-card{border:1px solid var(--border);box-shadow:var(--shadow);background:#ffffffeb;border-radius:8px;min-width:0}.hero-panel{background:linear-gradient(135deg, #2563eb1f, #10b98114), var(--surface);justify-content:space-between;gap:14px;padding:20px}.hero-panel p{color:var(--muted);font-size:13px;font-weight:800}.hero-panel strong{margin-top:7px;font-size:clamp(28px,10vw,44px);line-height:1;display:block}.metric-grid{grid-template-columns:1fr 1fr;gap:10px;display:grid}.metric-card{text-align:left;width:100%;padding:15px}button.metric-card{appearance:none;transition:border-color .16s,transform .16s,box-shadow .16s}button.metric-card:hover{border-color:#bfdbfe;transform:translateY(-1px)}button.metric-card:focus-visible,.legend-button:focus-visible,.category-filter-list button:focus-visible{outline-offset:2px;outline:3px solid #2563eb33}.metric-card p{color:var(--muted);font-size:12px;font-weight:800}.metric-card strong{margin-top:8px;font-size:19px;display:block}.metric-card small{color:var(--muted);margin-top:6px;font-size:11px;font-weight:800;display:block}.metric-card.income strong,.amount.income,.positive{color:var(--income)}.metric-card.expense strong,.amount.expense,.negative{color:var(--expense)}.panel{padding:16px}.section-heading{justify-content:space-between;gap:12px;margin-bottom:13px}.section-heading h2{font-size:18px;line-height:1.2}.section-kicker{margin-bottom:3px;font-weight:900}.quick-panel,.form-panel,.budget-panel,.settings-panel{gap:12px;display:grid}.segmented{background:var(--surface-soft);border-radius:8px;grid-template-columns:1fr 1fr;gap:6px;padding:4px;display:grid}.segmented button{color:var(--muted);background:0 0;border:0;border-radius:7px;min-height:38px;font-weight:900}.segmented button.active{background:var(--surface);color:var(--accent);box-shadow:0 6px 18px #0f172a14}.budget-scroll{min-width:0;max-width:100%;padding-bottom:2px}.budget-pill{border:1px solid var(--border);background:var(--surface);border-radius:8px;flex:0 0 205px;padding:12px}.budget-pill div:first-child{align-items:center;gap:8px;display:flex}.budget-pill span,.budget-card-head span,.category-dot,.legend-dot{border-radius:99px;flex:none;width:10px;height:10px}.budget-pill p{color:var(--muted);margin:9px 0;font-size:13px;font-weight:800}.progress-track{background:var(--surface-soft);border-radius:99px;height:6px;overflow:hidden}.progress-track i{border-radius:99px;height:100%;display:block}.calendar-panel.large{min-height:420px}.month-controls{gap:6px;display:flex}.weekday-row,.calendar-grid{grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;display:grid}.weekday-row{margin-bottom:6px}.weekday-row span{text-align:center;color:var(--muted);font-size:11px;font-weight:900}.calendar-empty,.calendar-day{min-height:54px}.calendar-day{border:1px solid var(--border);background:var(--surface);text-align:center;border-radius:8px;align-content:center;gap:4px;padding:6px 4px;display:grid}.calendar-day strong{font-size:13px}.calendar-day span{min-height:14px;color:var(--expense);font-size:10px;font-weight:800}.calendar-day.today{border-color:#93c5fd}.calendar-day.selected{border-color:var(--accent);background:#eff6ff}.chart-grid{gap:10px;min-width:0;display:grid}.pie-wrap{height:190px}.legend-list{gap:8px;min-width:0;display:grid}.legend-row{color:var(--muted);grid-template-columns:auto 1fr auto;align-items:center;gap:8px;font-size:13px;display:grid}.legend-row strong{color:var(--text)}.legend-button{text-align:left;background:0 0;border:1px solid #0000;border-radius:8px;width:100%;padding:8px;transition:background .16s,border-color .16s}.legend-button:hover{background:#f8fafc;border-color:#bfdbfe}.detail-panel{gap:12px;display:grid}.detail-total{background:var(--surface-soft);border-radius:8px;padding:14px}.detail-total p{color:var(--muted);font-size:12px;font-weight:900}.detail-total strong{margin-top:6px;font-size:24px;display:block}.detail-total.income strong{color:var(--income)}.detail-total.expense strong{color:var(--expense)}.category-filter-list{gap:8px;display:grid}.category-filter-list button{border:1px solid var(--border);background:var(--surface);min-height:42px;color:var(--text);text-align:left;border-radius:8px;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;padding:8px 10px;display:grid}.category-filter-list button.active{color:var(--accent);background:#eff6ff;border-color:#bfdbfe}.category-filter-list button span:nth-child(2){overflow-wrap:anywhere;min-width:0;font-weight:900}.category-filter-list button strong{color:var(--text);white-space:nowrap}.category-filter-dot{border-radius:99px;width:10px;height:10px}.category-filter-dot.all{background:#94a3b8}.inline-form{grid-template-columns:1fr;gap:8px;display:grid}.budget-list,.transaction-list{gap:10px;display:grid}.budget-card{border:1px solid var(--border);background:var(--surface);border-radius:8px;padding:13px}.budget-card-head{gap:9px;margin-bottom:12px}.budget-numbers{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}.budget-numbers div{background:var(--surface-soft);border-radius:8px;padding:10px}.budget-numbers strong{margin-top:4px;font-size:15px;display:block}.daily-strip{grid-template-columns:repeat(31,1fr);gap:2px;margin-top:12px;display:grid}.daily-strip span{background:#dbeafe;border-radius:3px;height:18px}.daily-strip span.active{background:var(--accent)}.transaction-row{border:1px solid var(--border);border-radius:8px;grid-template-columns:auto minmax(0,1fr) auto auto auto;gap:9px;padding:11px;display:grid}.transaction-row div{min-width:0}.transaction-row p,.transaction-row strong:first-child{overflow-wrap:anywhere}.transaction-row strong{font-size:14px}.transaction-row .amount{white-space:nowrap;align-self:center}.installment-text{font-weight:800;color:var(--accent)!important}.share-box{background:#eff6ff;border:1px dashed #93c5fd;border-radius:8px;padding:13px}.share-box strong{color:var(--accent-strong);margin-top:4px;font-size:22px;display:block}.member-list span{background:var(--surface);border:1px solid;border-radius:999px;flex:none;padding:7px 10px;font-size:13px;font-weight:800}.divider{background:var(--border);height:1px}.settings-panel h3{font-size:16px}.category-cloud{flex-wrap:wrap;overflow:visible}.category-cloud span{color:#fff;border-radius:999px;padding:6px 9px;font-size:12px;font-weight:900}.sheet-backdrop{z-index:30;background:#0f172a61;align-items:flex-end;padding:12px;display:flex;position:fixed;inset:0}.ai-sheet{background:var(--surface);border-radius:8px;width:min(620px,100%);max-height:min(88vh,720px);margin:0 auto;padding:16px;overflow-y:auto;box-shadow:0 24px 80px #0f172a3d}.sheet-handle{background:#cbd5e1;border-radius:999px;width:44px;height:5px;margin:0 auto 14px}.ai-actions{justify-content:space-between;gap:8px;margin-top:10px}.ai-result{background:var(--surface-soft);border-radius:8px;gap:8px;margin-top:12px;padding:12px;display:grid}.ai-result pre{max-height:220px;color:var(--muted);font-family:var(--font-geist-mono), Consolas, monospace;white-space:pre-wrap;font-size:11px;line-height:1.45;overflow:auto}.bottom-nav{z-index:20;left:50%;bottom:calc(14px + env(safe-area-inset-bottom));border:1px solid var(--border);width:min(560px,100% - 24px);box-shadow:var(--shadow);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#fffffff2;border-radius:8px;grid-template-columns:repeat(5,1fr);gap:4px;padding:6px;display:grid;position:fixed;transform:translate(-50%)}.bottom-nav button{min-height:52px;color:var(--muted);background:0 0;flex-direction:column;gap:3px;padding:4px}.bottom-nav button.active{color:var(--accent);background:#eff6ff}.bottom-nav span{font-size:11px}.skeleton-panel{min-height:220px;color:var(--muted);place-items:center;display:grid}@media (min-width:720px){.app-shell{padding:26px 24px calc(164px + env(safe-area-inset-bottom))}.content-grid{grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);align-items:start}.view{display:grid}.view:not(.active){display:none}.view.active{grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.view.active>.hero-panel,.view.active>.quick-panel,.view.active>.calendar-panel.large,.view.active>.form-panel,.view.active>.budget-panel,.view.active>.settings-panel,.view.active>.detail-panel,.view.active.detail-view>.transaction-panel{grid-column:1/-1}.inline-form{grid-template-columns:repeat(3,minmax(0,1fr))}.chart-grid{grid-template-columns:190px 1fr;align-items:center}}@media (min-width:1040px){.bottom-nav{width:min(760px,100% - 48px)}.view.active{grid-template-columns:1.08fr .92fr}.view.active>.hero-panel,.view.active>.quick-panel{grid-column:span 1}}
