:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--bg:#f1f3f5;--card:#fff;--line:#e5e7eb;--ink:#262626;--muted:#888e95;--muted-2:#595959;--green:#009360;--green-hover:#007d51;--nav:#cdeada;--income:#21cb87;--expense:#fe3b2c;--expense-seg:#fa5252;--transfer:#212121;--planned:#ffa000;--shadow:0 8px 24px #26262614;color:var(--ink);background:var(--bg);font-family:Roboto,Noto Sans HK,PingFang HK,sans-serif;font-size:15px}*{box-sizing:border-box}body{background:var(--bg);min-height:100vh;margin:0}button,input,select,textarea{font:inherit;color:inherit}button,.primary{cursor:pointer}a{color:inherit;text-decoration:none}h1{margin:0;font-size:22px;font-weight:700}h2{margin:0 0 8px;font-size:16px;font-weight:700}small,.muted,.empty,.page-note{color:var(--muted)}.shell{min-height:100vh}.desktop-header,.filter-rail,.day-groups,.desktop-only,.dash-widgets,.list-toolbar,.desk-amount,.editor-submit,.close-mark,.records-page .period-row{display:none}.widget-row{gap:12px;margin-top:16px;display:grid}.workspace{min-height:100vh;padding-bottom:88px}.page{width:min(1120px,100% - 20px);margin:0 auto}.phone-bar{align-items:center;gap:8px;padding:10px 0 6px;display:flex}.phone-bar h1{flex:1;font-size:20px}.phone-tabs{flex:1;gap:6px;display:flex}.phone-tabs button,.segmented button,.range-bar button,.drawer nav a,.desktop-nav a,.user-menu a,.user-menu button{background:0 0;border:0;border-radius:999px;padding:8px 12px}.phone-tabs button[aria-selected=true]{background:var(--nav);font-weight:700}.phone-search{flex:1}.total-card,.widget,.card,.auth-card{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:16px}.total-card{gap:4px;margin:8px 0 14px;display:grid}.total-card strong,.amount,.record-money b,.account-tile strong{font-variant-numeric:tabular-nums}.total-card strong{font-size:32px;font-weight:700}.account-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.account-tile{color:#fff;border-radius:8px;align-content:start;gap:2px;min-height:76px;padding:10px 12px;display:grid}.account-tile span{font-size:13px;font-weight:500}.account-tile strong{font-size:15px;font-weight:700}.tile-icon{width:16px;height:16px;margin-bottom:6px}.tile-icon path{fill:none;stroke:#fff;stroke-width:1.8px;stroke-linejoin:round;stroke-linecap:round}.account-tile.add-tile{color:var(--green);border:1px dashed var(--green);background:0 0}.section-head{gap:2px;margin:16px 0 8px;display:grid}.section-head span{color:var(--muted);font-size:13px}input,select,textarea{border:1px solid var(--line);background:#fff;border-radius:8px;width:100%;padding:10px 12px}label,.field-label{color:var(--muted-2);gap:6px;font-size:13px;display:grid}.stack{gap:12px;display:grid}.primary,.record-button,.fab{background:var(--green);color:#fff;border:0;border-radius:999px;font-weight:700}.primary:hover,.record-button:hover{background:var(--green-hover)}.danger{color:var(--expense);background:0 0;border:1px solid #ffc9c4;border-radius:999px}.text-button{color:var(--green);background:0 0;border:0;padding:0}.banner{background:#eff0f2;border-radius:8px;padding:10px 12px}.banner.danger{color:var(--expense);background:#fff5f5}.segmented{background:#eff0f2;border-radius:10px;gap:6px;padding:4px;display:flex}.segmented button[aria-selected=true],.segmented button[aria-pressed=true]{background:#fff;font-weight:700}.mode-income .segmented button[aria-selected=true]{background:var(--green);color:#fff}.mode-expense .segmented button[aria-selected=true]{background:var(--expense-seg);color:#fff}.mode-transfer .segmented button[aria-selected=true]{background:var(--transfer);color:#fff}.chips{border:0;flex-wrap:wrap;gap:8px;margin:0;padding:0;display:flex}.chips legend{width:100%}.chips label{border:1px solid var(--line);background:#fff;border-radius:999px;align-items:center;gap:6px;width:auto;padding:4px 8px;display:flex}.chips label.on{background:#f3f0ff}.chips input,.checkline input{width:auto}.checkline{align-items:center;gap:8px;display:flex}.tags{flex-wrap:wrap;gap:4px;display:flex}.tags em{color:#fff;border-radius:999px;padding:2px 7px;font-size:11px;font-style:normal}.tags em.planned,.tags em.cleared{background:#f08c00}.tags em.cleared{background:#2f9e44}.record{border-bottom:1px solid var(--line);grid-template-columns:40px minmax(0,1fr) auto;grid-template-areas:"icon main money""icon account money""icon tags money";align-items:center;gap:2px 10px;padding:10px 0;display:grid}.record-icon{color:#fff;border-radius:10px;grid-area:icon;place-items:center;width:36px;height:36px;display:grid;position:relative}.record.cleared .record-icon:after,.record.planned .record-icon:after{content:"";border:1.5px solid #fff;border-radius:99px;width:8px;height:8px;position:absolute;bottom:-1px;right:-1px}.record.cleared .record-icon:after{background:#21cb87}.record.planned .record-icon:after{background:#ffa000}.record-main{grid-area:main;display:grid}.record-title{font-size:14px;font-weight:700}.record-payee,.record-note,.record-account{color:var(--muted);font-size:12px}.record-account{grid-area:account}.record-note{display:none}.tags{grid-area:tags}.record-account i{border-radius:99px;width:8px;height:8px;margin-right:4px;display:inline-block}.record-money{text-align:right;white-space:nowrap;grid-area:money}.record-money small{color:var(--muted);font-size:12px;display:block}.page-head{justify-content:flex-end;align-items:center;gap:12px;margin:4px 0 12px;display:flex}.page-head .primary{padding:8px 14px}.type-income .record-money b{color:var(--income)}.type-expense .record-money b{color:var(--expense)}.type-transfer .record-money b{color:var(--ink)}.amount{align-items:baseline;gap:8px;margin:8px 0;font-size:40px;font-weight:700;display:flex}.mode-income .amount{color:var(--income)}.mode-expense .amount{color:var(--expense)}.mode-transfer .amount{color:var(--transfer)}.amount small{color:var(--muted);font-size:14px;font-weight:500}.range-total{color:var(--muted-2);justify-content:space-between;align-items:center;display:flex}.range-bar{gap:8px;padding:12px 72px 24px 0;display:flex;overflow:auto}.range-bar button[aria-pressed=true]{background:var(--green);color:#fff}.range-bar label{min-width:140px}.menu{gap:8px;margin-bottom:8px;display:grid}.fab{right:16px;bottom:calc(16px + env(safe-area-inset-bottom));z-index:5;width:56px;height:56px;font-size:32px;position:fixed}.drawer-layer{z-index:20;position:fixed;inset:0}.drawer-backdrop{background:#00000059;border:0;width:100%;height:100%;position:absolute;inset:0}.drawer{background:#fff;align-content:start;gap:16px;width:min(300px,86vw);padding:20px 16px;display:grid;position:absolute;top:0;bottom:0;left:0}.drawer-user,.user-chip button{text-align:left;background:0 0;border:0;align-items:center;gap:10px;display:flex}.avatar{background:var(--green);color:#fff;border-radius:999px;place-items:center;width:40px;height:40px;font-weight:700;display:grid}.drawer nav{display:grid}.drawer nav a.active{background:var(--nav)}.auth-screen{place-items:center;min-height:100vh;padding:24px;display:grid}.auth-card{gap:12px;width:min(420px,100%);display:grid}.auth-card h1{font-size:28px}.editor{z-index:12;background:var(--bg);flex-direction:column;display:flex;position:fixed;inset:0}.editor header,.keypad{background:#fff;justify-content:space-between;align-items:center;gap:8px;padding:10px 12px;display:flex}.editor-actions{align-items:center;gap:8px;display:flex}.editor-actions .primary,.editor-actions .danger{padding:8px 14px}.keypad{grid-template-columns:repeat(4,1fr);gap:8px;display:grid}.keypad button{border:1px solid var(--line);background:#fff;border-radius:12px;min-height:48px;font-size:18px}.editor-body{padding:8px 14px 16px;overflow:auto}.account-line{border:1px solid var(--line);background:#fff;border-radius:12px;justify-content:space-between;align-items:center;margin-bottom:8px;padding:10px 12px;display:flex}.account-line a{align-items:center;gap:10px;display:flex}.account-line a span{display:grid}.account-line i,.dot{border-radius:99px;width:12px;height:12px;display:inline-block}.bars{gap:8px;margin:0;padding:0;list-style:none;display:grid}.bars li{grid-template-columns:72px 1fr auto;align-items:center;gap:8px;font-size:13px;display:grid}.bar{background:#eff0f2;border-radius:99px;height:8px;overflow:hidden}.bar i{background:var(--expense);height:100%;display:block}.split{grid-template-columns:1fr 1fr;gap:8px;display:grid}.swatches{gap:8px;display:flex}.swatches button{width:28px;height:28px;box-shadow:0 0 0 1px var(--line);border:2px solid #fff;border-radius:8px}.preview-banner{z-index:30;color:#fff;text-align:center;background:#262626;padding:8px 12px;font-size:13px;position:sticky;top:0}html.ui-preview .editor{top:34px}:focus-visible{outline-offset:2px;outline:3px solid #9cd5b6}@media (width>=960px){.phone-bar,.phone-only,.fab,.week-groups,.range-bar,.keypad,.phone-widgets,.phone-date,.tags em.cleared,.close-word{display:none}.close-mark{font-size:22px;line-height:1;display:inline}.desktop-header{border-bottom:1px solid var(--line);z-index:10;background:#fff;align-items:center;gap:8px;height:58px;padding:0 16px;display:flex;position:sticky;top:0}.wordmark{background:var(--green);border-radius:8px;place-items:center;width:32px;height:32px;display:grid}.desktop-nav{flex:1;gap:2px;margin-left:8px;display:flex}.desktop-nav a{color:#595959;border-radius:8px;padding:6px 10px;font-size:14px;font-weight:500}.desktop-nav a.active{background:var(--nav);color:var(--ink)}.record-button{height:30px;padding:0 12px;font-size:12px;font-weight:600}.user-chip{position:relative}.user-chip small{color:var(--muted);display:block}.user-menu{border:1px solid var(--line);box-shadow:var(--shadow);background:#fff;border-radius:12px;min-width:140px;padding:6px;display:grid;position:absolute;top:48px;right:0}.workspace{padding:0 0 32px}.page{width:min(1680px,100% - 32px);padding-top:16px}.account-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.dash-widgets{grid-template-columns:1.05fr 1.15fr 1fr;gap:12px;margin-top:8px;display:grid}.dash-widgets .widget h2{font-size:16px}.gauges{text-align:center;grid-template-columns:repeat(3,1fr);display:grid}.gauge span{color:var(--muted);letter-spacing:.04em;font-size:11px;display:block}.gauge strong{font-size:20px}.trend{width:100%;height:120px}.trend-head{align-items:center;gap:8px;display:flex}.trend-head strong{font-size:26px}.trend-head em{border-radius:999px;padding:2px 8px;font-size:12px;font-style:normal;font-weight:700}.trend-head em.up{color:#2b8a3e;background:#d3f9d8}.trend-head em.down{color:#c92a2a;background:#ffe3e3}.donut-row{grid-template-columns:140px 1fr;align-items:center;gap:12px;display:grid}.donut{border-radius:50%;place-items:center;width:132px;height:132px;display:grid}.donut span{text-align:center;background:#fff;border-radius:50%;place-items:center;width:72px;height:72px;font-size:11px;display:grid}.donut-row ul{gap:6px;margin:0;padding:0;font-size:13px;list-style:none;display:grid}.donut-row li{grid-template-columns:10px 1fr auto;align-items:center;gap:6px;display:grid}.donut-row i{border-radius:99px;width:8px;height:8px}.period-row,.records-page .period-row{justify-content:center;align-items:center;gap:8px;margin:14px 0;display:flex}.period-pill{border:1px solid var(--line);background:#fff;border-radius:999px;width:auto;padding:6px 14px;font-size:13px}.period-row button{color:var(--muted-2);background:0 0;border:0;font-size:18px}.list-toolbar{grid-template-columns:1fr auto auto;align-items:center;gap:12px;margin-bottom:8px;display:grid}.list-toolbar .checkline{color:var(--muted);font-size:13px}.bulk{gap:6px;display:flex}.bulk button{color:#adb5bd;background:#f1f3f5;border:0;border-radius:999px;padding:6px 12px;font-size:13px}.day-head{justify-content:space-between;align-items:baseline;margin:14px 0 4px;display:flex}.day-head h2{font-size:16px}.day-head span{color:var(--muted);font-size:13px}.rail-title h1{font-size:26px}.range-readout{color:var(--muted);font-size:12px}.accounts-layout{grid-template-columns:240px 1fr;align-items:start;gap:16px;display:grid}.accounts-side{border:1px solid var(--line);background:#fff;border-radius:12px;gap:12px;padding:16px;display:grid}.accounts-side .primary{padding:8px 14px}.account-line{grid-template-columns:1fr auto auto;gap:12px;display:grid}.account-line i{border-radius:8px;width:36px;height:36px}.desk-amount,.editor-submit{display:grid}.amount-line{grid-template-columns:1fr 88px;gap:8px;display:grid}.editor-submit .primary,.editor-submit .danger{width:100%;padding:12px}.editor header{justify-content:flex-start}.editor header .editor-actions{display:none}.editor header strong{text-align:left;flex:1;font-size:18px}.close-x{background:0 0;border:0;order:2;font-size:20px}.segmented button{border-radius:8px;flex:1}.editor-body{flex-direction:column;display:flex}.template-row{text-align:left;order:1;margin:4px 0 8px}.segmented{order:2}.editor-grid{order:3}.desktop-only{display:block}.dash-widgets.desktop-only{display:grid}.period-row.desktop-only{width:auto;display:flex}.editor-side .danger{display:none}.page-head{justify-content:space-between}.widget-row{grid-template-columns:repeat(2,minmax(0,1fr))}.records-layout{grid-template-columns:260px 1fr;align-items:start;gap:16px;display:grid}.filter-rail{border:1px solid var(--line);background:#fff;border-radius:12px;gap:10px;padding:14px;display:grid;position:sticky;top:80px}.reset{border:1px solid var(--green);color:var(--green);background:#fff;border-radius:999px;padding:8px 12px}.day-groups{display:block}.records-layout .record{background:#fff;border-bottom:1px solid #f1f3f5;border-radius:0;grid-template-columns:32px minmax(140px,1.2fr) minmax(140px,1fr) minmax(90px,.8fr) auto 120px;grid-template-areas:"icon main account note tags money";min-height:52px;padding:4px 8px}.records-layout .record-note{display:block}.records-layout .record-icon{border-radius:99px;width:28px;height:28px;font-size:13px}.phone-only.range-total{display:none}.filter-rail{max-height:calc(100vh - 90px);overflow:auto}.editor{background:#26262673;flex-direction:column;justify-content:center;align-items:center;padding:24px;display:flex}.editor header,.editor-body{background:#fff;width:min(880px,100%)}.editor header{border-radius:12px 12px 0 0}.editor-body{max-height:min(720px,100vh - 140px);box-shadow:var(--shadow);border-radius:0 0 12px 12px}.editor-grid{grid-template-columns:1.1fr .9fr;gap:18px;display:grid}.phone-amount{display:none}html.ui-preview .editor{height:calc(100% - 34px);top:34px}}
