*{box-sizing:border-box} :root{-webkit-text-size-adjust:100%;text-size-adjust:100%;color-scheme:light;--green:#174d40;--green-soft:#e8f0ec;--ink:#20372f;--muted:#7a8881;--line:#e7ece9;--bg:#f3f5f4;--red:#d66c55;--radius:20px;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;font-size:16px;color:var(--ink);background:var(--bg)}
body{margin:0}#content:focus,.modal:focus,.entry-dialog:focus{outline:none}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}button{border:0;background:none;color:inherit}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #80b7a2;outline-offset:4px}input,select,textarea{width:100%;min-width:0;border:1px solid var(--line);border-radius:12px;background:#fafbf9;color:var(--ink);padding:13px 14px;outline:none;font-size:16px}input:focus,textarea:focus,select:focus{border-color:#74a28e;box-shadow:0 0 0 3px #174d400c}textarea{resize:vertical;line-height:1.6}h1,h2,h3,p{margin:0}h2{font-size:1.25rem;letter-spacing:-.4px}h3{font-size:1.05rem}small{font-size:.8125rem}svg.icon{width:22px;height:22px;flex-shrink:0;vertical-align:middle}.muted{color:var(--muted);font-size:.875rem;line-height:1.65}.eyebrow{font-size:.75rem;letter-spacing:2px;color:var(--muted);line-height:1.6}.expense{color:var(--red)}.income{color:#27886b}.amount{font-variant-numeric:tabular-nums;letter-spacing:-.4px}.row{display:flex;align-items:center;gap:12px}.space-between{justify-content:space-between}.card{background:white;border:1px solid #e9eeeb;border-radius:var(--radius);box-shadow:0 8px 30px #153d2d03}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:12px 22px;border-radius:12px;color:#fff;background:var(--green);font-weight:600;font-size:.9375rem;white-space:nowrap}.button.secondary{background:#eaf1ed;color:var(--green)}.button.compact{min-height:40px;padding:10px 17px;font-size:.875rem}.button.danger{background:#a94438}.text-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;font-size:.875rem;color:var(--green);padding:8px 0}.text-button .icon{width:18px;height:18px}.danger-text{color:#b44b3d}.icon-button{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;border-radius:50%;padding:10px}.icon-button:hover{background:#e6ede8}.field{display:flex;flex-direction:column;gap:9px;font-size:.875rem;color:#6f7d75;min-width:0}.field+.field{margin-top:18px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.form-grid .field+.field{margin:0}.form-error{color:#b34434;font-size:.875rem;line-height:1.7;white-space:pre-line}.form-error:not(:empty){margin:14px 0}.form-error button{display:block}.segmented{display:flex;padding:4px;background:#eef2ef;border-radius:12px;gap:4px}.segmented button{flex:1;border-radius:9px;min-height:38px;padding:7px 16px;font-size:.875rem;white-space:nowrap}.segmented button.active{background:white;color:var(--green);box-shadow:0 2px 8px #173c2d0b;font-weight:600}.empty{padding:48px 20px;text-align:center;color:var(--muted);font-size:.875rem;line-height:1.8}.error-state{margin:20px 0;padding:24px;background:#fff5f1;border-radius:16px;color:#9e4939;font-size:.875rem;line-height:1.8}.error-state button{margin-top:14px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:30px 0 20px}.section-head p{margin-top:7px}.section-title{margin-bottom:16px}.section-subtitle{font-size:.875rem;color:var(--muted)}.pill{background:#dcece3;color:#316c53;padding:5px 10px;border-radius:6px;font-size:.75rem;white-space:nowrap}.boot{min-height:100svh;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:20px;padding:24px}.loader{display:inline-block;width:22px;height:22px;border:2px solid #d6e3dc;border-top-color:var(--green);border-radius:50%;animation:spin .8s linear infinite}.loading-card{padding:35px;display:flex;align-items:center;justify-content:center;gap:12px;color:var(--muted);font-size:.875rem}.skeleton{height:84px;border-radius:18px;margin:14px 0;background:linear-gradient(100deg,#e8eeea 20%,#f8faf8 50%,#e8eeea 80%);background-size:220% 100%;animation:shimmer 1.4s infinite}@keyframes shimmer{to{background-position:-200% 0}}@keyframes spin{to{transform:rotate(360deg)}}
.workspace{max-width:1600px;margin:auto}.sidebar{position:fixed;top:0;bottom:0;width:244px;background:#fff;border-right:1px solid var(--line);padding:40px 25px;z-index:10}.brand{display:flex;align-items:center;gap:12px;font-weight:700;font-size:1.25rem;letter-spacing:1px}.brand img{width:46px;height:46px;border-radius:12px}.brand small{display:block;font-weight:400;font-size:.75rem;letter-spacing:0;color:var(--muted);margin-top:7px}.sidebar nav{display:flex;flex-direction:column;gap:10px;margin-top:58px}.nav-item{display:flex;align-items:center;gap:15px;padding:15px 22px;border-radius:12px;text-align:left;font-size:.9375rem;color:#748078}.nav-item.selected{background:var(--green-soft);color:var(--green);font-weight:600}.nav-item.nav-add{margin:12px 0;background:var(--green);color:white}.sidebar-foot{position:absolute;bottom:36px;font-size:.8125rem;color:#6d7f74;line-height:2}.sidebar-foot span{font-size:.75rem;color:#99a59d}.main-column{margin-left:244px;max-width:1140px;padding:38px 50px 0}.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0 30px}.topbar h1{font-size:1.8rem;line-height:1.4;letter-spacing:-.8px;margin-top:9px;overflow-wrap:anywhere}.header-actions{display:flex;align-items:center;gap:15px;flex-shrink:0}.avatar-stack{display:flex;padding-left:8px}.avatar{width:38px;height:38px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:.875rem;background:#dce9df;color:#416d53;border:3px solid var(--bg);flex-shrink:0}.avatar-stack .avatar+.avatar{margin-left:-8px;background:#e8ddcf;color:#866e53}.period-toolbar{display:flex;align-items:center;justify-content:space-between;margin:0 0 25px;padding-top:4px}.month-switcher{display:flex;align-items:center;gap:8px}.month-switcher .icon-button{min-width:34px;min-height:36px;padding:8px;background:white}.month-switcher .icon{width:16px;height:16px}.month-picker{position:relative;font-size:.9375rem;font-weight:600;padding:8px 4px}.month-picker input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;padding:0;min-height:44px}.month-picker input::-webkit-calendar-picker-indicator{position:absolute;inset:0;width:auto;height:auto;cursor:pointer}.summary-strip{display:grid;grid-template-columns:1fr 1fr 1fr;gap:20px;background:var(--green);color:white;border-radius:22px;padding:28px 30px;position:relative;overflow:hidden}.summary-strip:after{content:"";position:absolute;width:220px;height:220px;border:36px solid #ffffff04;border-radius:50%;right:-50px;top:-130px;pointer-events:none}.summary-strip>div{z-index:1}.summary-strip span{font-size:.8125rem;color:#c4d9cf}.summary-strip strong{display:block;font-size:1.65rem;font-weight:600;margin-top:13px;color:white;white-space:nowrap}.summary-strip .income{color:#d5efdd}.summary-strip .expense{color:#ffdac9}.summary-strip .error-state{grid-column:1/-1}.day-heading{display:flex;align-items:center;justify-content:space-between;margin:22px 4px 10px;font-size:.875rem;color:#75837a}.day-heading small{color:#9aa59d;font-size:.75rem}.transaction-shell{position:relative;overflow:hidden;display:flex;align-items:stretch}.transaction-shell+.transaction-shell{border-top:1px solid #f0f3f0}.transaction-row{display:flex;align-items:center;gap:15px;text-align:left;width:100%;padding:19px 23px;flex-shrink:0;background:white;transition:transform .2s;position:relative;z-index:1;border-radius:inherit}.transaction-list{overflow:hidden}.category-badge{width:40px;height:40px;flex-shrink:0;display:flex;align-items:center;justify-content:center;border-radius:12px;background:#eef3ef;color:#658372;font-size:.9375rem}.transaction-copy{min-width:0;flex:1}.transaction-copy strong{font-weight:500;font-size:.9375rem;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.transaction-copy small{display:block;color:#99a39c;font-size:.75rem;margin-top:7px}.transaction-amount{font-size:1.05rem;white-space:nowrap;font-weight:600}.swipe-delete{width:64px;position:absolute;right:0;top:0;bottom:0;background:#bc5b4b;color:white;display:flex;align-items:center;justify-content:center}.transaction-shell.revealed .transaction-row{transform:translateX(-64px)}.month-divider{margin-top:35px;padding:20px 2px 0;border-top:1px solid #dfe7e1;display:flex;align-items:center;justify-content:space-between}.month-divider span{font-size:.8125rem;color:var(--muted)}.load-more{display:block;width:100%;padding:25px;text-align:center;color:#829387;font-size:.875rem}.page-footer{padding:40px 0;text-align:center;color:#a8b2aa;font-size:.75rem;letter-spacing:1px}.mobile-nav{display:none}.demo-banner,.connection-banner,.update-banner{padding:10px 15px;margin:-15px 0 20px;border-radius:9px;background:#e1ece4;color:#476d54;font-size:.8125rem;line-height:1.7}.connection-banner{background:#fff0dd;color:#8f6332}.update-banner{display:flex;justify-content:space-between;align-items:center}.update-banner[hidden],.connection-banner[hidden]{display:none}.update-banner button{min-height:24px;padding:0}.search-form{padding:22px}.search-line{display:flex;gap:12px;align-items:center}.search-input{display:flex;align-items:center;flex:1;gap:12px;min-width:0}.search-input>.icon{color:#85988b;width:20px}.search-input input{border:0;background:#f7f9f6;font-size:.9375rem}.search-form details{margin-top:18px}.search-form summary{font-size:.8125rem;color:var(--muted);cursor:pointer}.search-form .form-grid{margin-top:20px}.result-count{padding:20px 4px 12px}.search-result .card{overflow:hidden}.ledger-card{padding:28px;background:linear-gradient(120deg,#194e40,#246554);color:white}.ledger-card h2{font-size:1.5rem;margin:20px 0}.ledger-card .eyebrow{color:#b1c9ba}.ledger-card .pill{background:#ffffff16;color:#d7eadc}.members{display:flex;flex-wrap:wrap;gap:20px}.member-item{display:flex;align-items:center;gap:10px;min-width:120px;flex:1}.member-item .avatar{border-color:#ffffff20;background:#ffffff12;color:#e2efdc}.member-item strong{font-size:.9375rem;font-weight:500}.member-item small{display:block;margin-top:5px;color:#a9c9b7;font-size:.75rem}.member-item button{color:#e8d0c4;margin-left:auto}.profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-top:24px}.settings-card{padding:25px;min-width:0}.settings-card h3{margin-bottom:25px}.inline-field{display:flex;gap:10px}.inline-field input{flex:1;min-width:0}.settings-card form+.field,.settings-card form+form,.settings-card .row+form{margin-top:23px}.settings-card>.row{margin-top:20px}.invite-code{font-variant-numeric:tabular-nums;letter-spacing:2px}.settings-link{display:flex;align-items:center;gap:12px;text-align:left;width:100%;padding:18px 0;border-bottom:1px solid #f0f3ef;font-size:.9375rem}.settings-link>.icon{color:#67816e;width:21px}.settings-link>span{flex:1}.settings-link small{display:block;font-size:.75rem;color:#96a093;margin-top:8px}.settings-link>.icon:last-child{width:15px;color:#a0b0a1}.settings-link:last-child{border:0}.about-content{text-align:center;line-height:1.9;padding:10px 15px}.about-content img{width:85px;border-radius:20px}.about-content h3{margin:10px 0}.about-content p{margin:15px 0;font-size:.9375rem}.install-guide p{font-size:.9375rem;line-height:1.9;margin:10px 0 22px}
.auth-layout{display:grid;grid-template-columns:1fr 1fr;max-width:1040px;margin:0 auto;min-height:100svh;align-items:center;gap:90px;padding:70px 45px}.auth-logo{width:82px;height:82px;border-radius:22px;box-shadow:0 5px 18px #13382b05;margin-bottom:30px}.auth-intro h1{font-size:3.15rem;line-height:1.45;letter-spacing:-2px;margin:15px 0 20px;font-weight:650}.intro-copy{color:#7e9185;line-height:1.9;font-size:.9375rem}.intro-foot{margin-top:55px;color:#6c8875;font-size:.8125rem}.intro-foot span{margin:0 10px;color:#a3b0a6}.auth-card{background:white;border:1px solid #e6ece6;border-radius:26px;padding:36px;box-shadow:0 18px 80px #214d3310}.auth-mark{display:flex;gap:9px;align-items:center;color:#6d8c73;font-size:.75rem;letter-spacing:3px;margin-bottom:30px}.auth-mark .icon{width:20px}.auth-card h2{font-size:1.5rem}.auth-description{margin:12px 0 30px}.auth-submit{width:100%;margin-top:25px}.auth-toggle{width:100%;margin-top:13px}.auth-hint{display:flex;align-items:center;justify-content:center;gap:7px;font-size:.75rem;color:#a0aaa0;margin-top:26px}.auth-hint .icon{width:13px;height:13px}.install-help{width:100%;font-size:.75rem;color:#8da092;margin-top:10px}
.transaction-form .segmented{max-width:210px;margin:0 auto 20px}.amount-field{font-size:.8125rem;color:var(--muted);display:block;border-bottom:1px solid var(--line);padding:10px 0 20px}.amount-field>span{display:flex;align-items:center;gap:12px;margin-top:10px}.amount-field b{font-size:1.6rem;color:var(--green);font-weight:400}.amount-field input{padding:0;border:0;background:none;font-size:2.4rem;line-height:1.4;color:var(--green);box-shadow:none;font-variant-numeric:tabular-nums}.category-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:16px 8px;margin:24px 0 28px}.category-choice{display:flex;flex-direction:column;align-items:center;gap:8px;font-size:.75rem;min-width:0;color:#829185}.category-choice span{width:43px;height:43px;border-radius:13px;background:#edf1ea;display:flex;align-items:center;justify-content:center;color:#6d8873;font-size:1rem}.category-choice.active{color:var(--green);font-weight:600}.category-choice.active span{color:white;background:var(--green)}.transaction-form>.field{margin-top:18px}.editor-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:24px}.editor-actions>.muted{font-size:.75rem}.editor-actions .button{min-width:140px}.transaction-form [name=note]{scroll-margin:100px}.transaction-form .form-grid{scroll-margin:80px}#notifications{position:fixed;bottom:100px;left:50%;transform:translateX(-50%);background:#173b32ee;color:white;border-radius:12px;max-width:calc(100vw - 35px);width:max-content;z-index:1000;font-size:.875rem;line-height:1.7;box-shadow:0 8px 25px #14342a22}#notifications:not(:empty){padding:13px 22px}
@media(hover:hover){.transaction-shell .transaction-row{width:calc(100% - 46px)}.swipe-delete{background:white;color:#b8c3bb;width:46px}.swipe-delete:hover{color:#b85040;background:#fff5f2}.swipe-delete .icon{width:18px}.transaction-shell.revealed .transaction-row{transform:none}}
@media(min-width:1600px){.sidebar{left:calc((100vw - 1600px)/2)}}
@media(max-width:1100px){.main-column{padding:28px 30px 0}.sidebar{width:210px;padding:35px 20px}.main-column{margin-left:210px}.profile-grid{grid-template-columns:1fr}.summary-strip{padding:25px;gap:15px}.summary-strip strong{font-size:1.4rem}}
@media(max-width:760px){.sidebar{display:none}.main-column{margin-left:0;padding:calc(env(safe-area-inset-top) + 16px) 16px calc(92px + env(safe-area-inset-bottom))}.topbar{padding:0 0 18px;gap:10px}.topbar h1{font-size:1.375rem;max-width:65vw;margin-top:6px}.topbar .eyebrow{font-size:.6875rem;letter-spacing:1.8px}.header-actions{gap:4px}.header-actions .icon{width:19px}.avatar{width:32px;height:32px;border-width:2px;font-size:.75rem}.period-toolbar{margin-bottom:14px}.period-toolbar>.text-button{font-size:.8125rem}.month-switcher{gap:3px}.month-picker{font-size:.875rem}.summary-strip{padding:18px 16px;border-radius:18px;grid-template-columns:1fr 1fr;gap:15px 10px}.summary-strip>div:nth-child(3){display:flex;align-items:center;gap:12px;grid-column:1/-1;padding-top:12px;border-top:1px solid #ffffff17}.summary-strip>div:nth-child(3) strong{font-size:1rem;margin:0}.summary-strip strong{font-size:1.375rem;margin-top:8px}.summary-strip span{font-size:.75rem}.section-head{margin:18px 0 12px}.section-head h2{font-size:1.0625rem}.section-head p{font-size:.75rem}.section-head>.button{font-size:.8125rem;padding:9px 12px}.transaction-row{padding:13px 14px;gap:10px}.category-badge{width:34px;height:34px;border-radius:10px;font-size:.875rem}.transaction-copy strong{font-size:.875rem}.transaction-copy small{font-size:.75rem;margin-top:4px}.transaction-amount{font-size:.95rem}.day-heading{font-size:.8125rem;margin:17px 3px 8px}.day-heading small{font-size:.6875rem}.mobile-nav{position:fixed;display:flex;bottom:0;left:0;right:0;height:calc(73px + env(safe-area-inset-bottom));padding:8px 12px calc(env(safe-area-inset-bottom) + 4px);background:#ffffffed;backdrop-filter:blur(20px);border-top:1px solid #e3eae4;z-index:20;justify-content:space-around}.mobile-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:52px;color:#a2aea4;font-size:.625rem}.mobile-nav .icon{width:21px;height:21px}.mobile-nav .selected{color:var(--green)}.mobile-nav .mobile-add{position:relative;top:-16px;background:var(--green);color:white;border-radius:50%;width:49px;height:49px;min-width:49px;box-shadow:0 5px 14px #174d4038}.mobile-add .icon{width:23px;height:23px}.mobile-nav .mobile-add span{position:absolute;top:55px;white-space:nowrap;color:#7a9182;font-size:.625rem}.page-footer{padding-bottom:15px}.search-form{padding:17px}.search-line{gap:10px}.search-input{gap:6px}.search-input input{padding:12px 8px;font-size:16px}.search-input>.icon{width:18px}.search-line>.button{padding:10px 13px;min-width:58px}.form-grid{gap:14px}.profile-grid{gap:14px;margin-top:14px}.settings-card{padding:18px}.settings-card h3{font-size:1rem;margin-bottom:18px}.settings-link{padding:14px 0}.settings-link small{margin-top:5px}.ledger-card{padding:20px}.ledger-card h2{font-size:1.3rem}.members{gap:12px}.member-item{min-width:100px;gap:8px}.member-item strong{font-size:.875rem}.member-item small{font-size:.6875rem}.member-item button{font-size:.75rem}.category-grid{gap:16px 7px;margin-top:22px}.category-choice span{width:40px;height:40px}.category-choice{font-size:.6875rem;gap:7px}.amount-field input{font-size:2.2rem}.amount-field{padding-bottom:15px}.auth-layout{display:block;min-height:100svh;padding:calc(env(safe-area-inset-top) + 40px) 25px 30px;max-width:480px}.auth-logo{width:54px;height:54px;border-radius:15px;margin-bottom:14px}.auth-intro{padding:0 9px 30px}.auth-intro>.eyebrow{display:none}.auth-intro h1{font-size:2rem;line-height:1.4;letter-spacing:-1px;margin:0 0 12px}.auth-intro h1 br{display:none}.intro-copy{font-size:.8125rem}.intro-copy br{display:none}.intro-foot{display:none}.auth-card{padding:27px 24px;border-radius:24px}.auth-mark{display:none}.auth-card h2{font-size:1.25rem}.auth-description{font-size:.8125rem;margin:10px 0 24px}.auth-hint{margin-top:23px}.demo-banner{margin:0 0 20px;font-size:.75rem}.connection-banner,.update-banner{margin:0 0 20px}.editor-actions .button{min-width:130px}.editor-actions>.muted{font-size:.6875rem}#notifications{bottom:105px}.field{font-size:.8125rem}}
.period-toolbar[hidden]{display:none}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
