@charset "UTF-8";
:root{--bg:#faf9f6;--surface:#fffefa;--ink:#292f2b;--muted:#737b74;--line:#e6e8e0;--green:#35584f;--green-soft:#e8efe8;--red:#b7553c;--red-soft:#f8eee7;--gold:#ad8c43;--radius:14px;font-family:Inter,"PingFang SC","Microsoft YaHei UI",sans-serif;color:var(--ink);background:var(--bg);font-size:15px;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer;border:0;background:transparent;color:inherit;border-radius:8px;padding:9px 14px}button:disabled{opacity:.55;cursor:wait}button:hover{background:#e9ece6}a{color:var(--green);text-decoration:none}a:hover{text-decoration:underline}input,select,textarea{width:100%;border:1px solid #d9ded5;border-radius:8px;background:#fffefb;padding:11px 12px;color:var(--ink);min-height:44px}input:focus,select:focus,textarea:focus{outline:2px solid #7f9c8c;outline-offset:2px}textarea{min-height:85px;resize:vertical}label{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:600}label.check{flex-direction:row;align-items:center;font-weight:400;line-height:1.7}input[type=checkbox]{width:18px;min-height:18px;flex-shrink:0}h1,h2,h3,p{margin:0}h1{font-size:28px;font-weight:650;letter-spacing:-.6px}h2{font-size:19px;font-weight:650}h3{font-size:16px;font-weight:600}.muted{color:var(--muted);line-height:1.8}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.5px;color:var(--muted);margin-bottom:10px}.primary{background:var(--green);color:#fff;min-height:42px;font-weight:600}.primary:hover{background:#27493f}.secondary{border:1px solid #dbe0d6;background:#fffefb}.danger{color:var(--red)}.quiet{font-size:13px;color:var(--muted)}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.login-screen{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.login-card{align-self:center;max-width:500px;padding:52px;margin:auto}.brand-mark{width:54px;height:54px;background:var(--green);color:#fff;display:grid;place-items:center;border-radius:15px;font-size:27px;font-family:serif;margin-bottom:34px}.brand-mark.small{width:38px;height:38px;font-size:22px;border-radius:10px;margin:0}.login-card h1{font-size:32px;line-height:1.45;margin-bottom:15px}.login-card form{margin:36px 0 20px}.login-card .primary{width:100%;margin-top:22px;display:flex;justify-content:space-between}.login-art{background:#e6eadf;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:44px;padding:48px}.login-art>span{font-family:serif;font-size:25px;letter-spacing:6px;color:#4b6050}.paper{width:285px;height:365px;background:#fffdf5;transform:rotate(-7deg);padding:37px;box-shadow:12px 22px 0 #d5dccb;border:1px solid #d4daca}.paper small{font-size:12px;color:var(--muted);letter-spacing:2px}.paper strong{display:block;line-height:1.7;font-size:24px;margin:28px 0}.paper i{display:block;margin:16px 0;border-bottom:1px solid var(--line)}.paper em{font-size:9px;letter-spacing:3px;color:var(--muted)}
#shell{display:flex;min-height:100vh}.sidebar{width:215px;flex-shrink:0;border-right:1px solid var(--line);padding:32px 20px;background:#f0f2eb;position:fixed;top:0;bottom:0;display:flex;flex-direction:column}.brand{display:flex;gap:11px;align-items:center;padding:0 10px 36px;font-size:18px;font-weight:650}.brand small{display:block;font-size:11px;font-weight:400;color:var(--muted);margin-top:3px}.sidebar nav{display:flex;flex-direction:column;gap:6px}.nav-item{display:flex;align-items:center;gap:13px;text-align:left;padding:13px 16px;color:#647065;font-size:14px}.nav-item.active{color:var(--green);background:#dde5d9;font-weight:650}.nav-symbol{width:19px;text-align:center;font-size:17px}.nav-item .count{margin-left:auto;background:var(--red);color:white;padding:2px 6px;border-radius:5px;font-size:10px}.sidebar-bottom{margin-top:auto;display:flex;flex-direction:column;gap:14px;padding:20px 10px 0}.sidebar-bottom a,.sidebar-bottom button{font-size:12px;text-align:left;padding:0}.sidebar-bottom span{font-size:10px;color:var(--muted);margin-top:8px}main{margin-left:215px;padding:40px 46px 24px;width:calc(100% - 215px);max-width:1700px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:32px}.top-actions{display:flex;gap:10px;align-items:center}.top-actions input{width:150px;background:transparent;border:0;padding:8px}.top-actions button{white-space:nowrap}.intro{font-size:14px;color:var(--muted);margin-bottom:25px;line-height:1.8}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:22px}.metric{padding:22px 24px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}.metric.featured{background:var(--green);color:#fff;border-color:var(--green)}.metric label{font-size:12px;font-weight:400;color:var(--muted)}.metric.featured label,.metric.featured .metric-note{color:#bccdc3}.metric strong{display:block;font-size:29px;letter-spacing:-1px;line-height:1.7;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.metric-note{font-size:11px;color:var(--muted)}.grid-two{display:grid;grid-template-columns:1.5fr 1fr;gap:22px;margin-bottom:22px}.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:24px;min-width:0;margin-bottom:22px}.grid-two>.panel{margin-bottom:0}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}.panel-head p{font-size:12px;color:var(--muted);margin-top:5px}.panel-head button{font-size:12px}.pill{display:inline-block;border-radius:5px;padding:4px 8px;background:var(--green-soft);color:var(--green);font-size:11px;white-space:nowrap}.pill.warning{background:#f6ecd6;color:#8b691e}.pill.neutral{background:#f0f0ed;color:#72776f}.pill.red{background:var(--red-soft);color:var(--red)}.empty{padding:44px 20px;text-align:center;color:var(--muted);line-height:1.9}.empty strong{display:block;color:var(--ink);font-size:17px;margin-bottom:6px}.empty button{margin-top:15px}.money{font-variant-numeric:tabular-nums;white-space:nowrap}.positive{color:var(--green)}.negative{color:var(--red)}.chart{display:block;width:100%;height:160px}.chart-grid{stroke:var(--line);stroke-width:1}.chart-line{fill:none;stroke:var(--green);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.chart-area{fill:#e7eee7}.chart-axis{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);margin-top:7px}.legend{font-size:11px;color:var(--muted);margin-bottom:12px}.category-row{margin-bottom:16px}.row-label{display:flex;justify-content:space-between;gap:12px;margin-bottom:7px;font-size:12px}progress{display:block;width:100%;height:6px;appearance:none;border:0;border-radius:5px;background:#e9ede5}progress::-webkit-progress-bar{background:#e9ede5;border-radius:5px}progress::-webkit-progress-value{background:#7e9b85;border-radius:5px}progress::-moz-progress-bar{background:#7e9b85;border-radius:5px}.over progress::-webkit-progress-value{background:var(--red)}.over .row-label{color:var(--red)}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;font-size:13px;text-align:left}th{font-size:11px;font-weight:500;color:var(--muted);border-bottom:1px solid var(--line);padding:0 14px 13px}td{padding:17px 14px;border-bottom:1px solid #f0f1eb}th:first-child,td:first-child{padding-left:0}th:last-child,td:last-child{padding-right:0;text-align:right}tr:last-child td{border:0}td .sub{font-size:10px;color:var(--muted);margin-top:4px;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-name{font-weight:550;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.actions{display:flex;gap:3px;justify-content:flex-end}.actions button{padding:6px;font-size:11px}.toolbar{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:20px}.toolbar input{flex:2;min-width:180px}.toolbar select{flex:1;min-width:125px}.toolbar>button{white-space:nowrap}.hint{background:#eef1e9;border-radius:9px;padding:14px 17px;font-size:12px;color:#56674f;line-height:1.85;margin-bottom:20px}.hint.warning{background:#f9f1e2;color:#846b3c}.account-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:22px}.account-card{border:1px solid var(--line);padding:23px;border-radius:var(--radius);background:var(--surface)}.account-card .account-title{display:flex;justify-content:space-between;align-items:center;gap:10px}.account-card strong{display:block;font-size:27px;margin:22px 0 10px;font-weight:600;letter-spacing:-.5px}.account-card .meta{font-size:11px;color:var(--muted);line-height:1.8}.account-card button{font-size:12px;padding:6px 8px}.account-card.archived{opacity:.65}.list-row{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 0;border-bottom:1px solid var(--line)}.list-row:last-child{border-bottom:0}.list-row p{font-size:12px;color:var(--muted);margin-top:7px;line-height:1.6}.list-row .right{text-align:right;flex-shrink:0}.list-row .right button{font-size:12px;padding:7px 9px}.budget-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.budget-card .total{font-size:24px;margin:24px 0 13px}.budget-card .total small{font-size:12px;color:var(--muted)}.event-card{border:1px solid var(--line);border-radius:11px;padding:20px;margin-bottom:14px}.event-head{display:flex;justify-content:space-between;gap:12px;margin-bottom:12px}.event-card p{font-size:12px;line-height:1.8;color:var(--muted)}.event-card .event-actions{display:flex;gap:8px;margin-top:16px;flex-wrap:wrap}.event-card button{font-size:12px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.settings-grid .panel{margin:0}.settings-grid p{font-size:13px;line-height:1.9;margin:12px 0}.settings-grid button{margin:8px 5px 0 0}.device-detail{font-size:12px;color:var(--muted);line-height:1.9;margin-top:8px}.table-footer{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--muted);margin-top:16px}.inline-actions{display:flex;gap:8px;flex-wrap:wrap}.error{color:var(--red);font-size:13px;line-height:1.6;margin-top:12px;min-height:18px}#sync-footer{color:#989f95;font-size:11px;margin-top:28px}
dialog{border:1px solid var(--line);border-radius:16px;padding:28px;width:min(600px,calc(100% - 28px));max-height:90vh;background:var(--surface);box-shadow:0 20px 80px #17231926}dialog::backdrop{background:#26332855}.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.dialog-head button{font-size:24px;padding:0 8px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.form-grid .full{grid-column:1/-1}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.form-note{font-size:12px;color:var(--muted);line-height:1.7;margin:16px 0}.segment{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:22px}.segment button{background:#eff2ea;font-size:12px}.segment button.active{background:var(--green);color:white}#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:#253d33;color:white;padding:13px 22px;border-radius:10px;box-shadow:0 5px 30px #0002;max-width:85vw;z-index:1000;font-size:13px}#editor-body pre{white-space:pre-wrap;word-break:break-word;font:13px/1.8 inherit;background:#f0f2eb;padding:15px;border-radius:8px}
@media(min-width:1550px){main{padding:46px 65px}.metric strong{font-size:34px}}
@media(max-width:1100px){main{padding:28px 25px}.sidebar{width:180px;padding:28px 14px}main{margin-left:180px;width:calc(100% - 180px)}.metrics{gap:10px}.metric{padding:18px 16px}.metric strong{font-size:24px}.account-grid{grid-template-columns:repeat(2,1fr)}.topbar{align-items:flex-start}.top-actions{flex-wrap:wrap;justify-content:flex-end}.top-actions input{width:138px}.hide-small{display:none}}
@media(max-width:760px){.login-screen{grid-template-columns:1fr}.login-art{display:none}.login-card{padding:32px;max-width:480px}.login-card h1{font-size:28px}.sidebar{position:static;width:100%;padding:16px 18px 0;border-right:0;border-bottom:1px solid var(--line)}#shell{display:block}.brand{padding:0 0 14px;font-size:16px}.brand small{display:inline;margin-left:8px}.brand-mark.small{width:30px;height:30px;font-size:18px}.sidebar nav{flex-direction:row;overflow:auto;gap:0;padding-bottom:8px}.nav-item{flex-shrink:0;padding:10px 12px;font-size:12px;gap:6px}.nav-symbol{display:none}.sidebar-bottom{display:none}main{margin:0;padding:25px 18px;width:100%}h1{font-size:24px}.topbar{gap:10px;margin-bottom:22px}.top-actions{gap:6px;max-width:215px}.top-actions button{font-size:12px;padding:8px 10px;min-height:36px}.top-actions input{font-size:12px;min-height:34px;width:130px}.top-actions button[data-action=refresh]{display:none}.eyebrow{font-size:9px;letter-spacing:.6px}.metrics{grid-template-columns:1fr 1fr;gap:12px}.metric{padding:18px}.metric strong{font-size:25px}.grid-two{grid-template-columns:1fr;gap:17px}.panel{padding:20px}.account-grid{grid-template-columns:1fr 1fr;gap:12px}.account-card{padding:17px}.account-card strong{font-size:24px}.account-card h3{font-size:14px}.budget-grid,.settings-grid{grid-template-columns:1fr}.toolbar{gap:8px}.toolbar input{flex-basis:100%}.toolbar select{font-size:12px;min-width:95px;padding:8px}.list-row{align-items:flex-start}.list-row .right{max-width:130px}.list-row .right .inline-actions{justify-content:flex-end}.table-scroll table{min-width:610px}.compact-table table{min-width:450px}.form-grid{gap:14px}.form-grid label{font-size:12px}dialog{padding:22px}.intro{font-size:13px}.event-actions button{flex:1}.form-note{font-size:11px}#sync-footer{line-height:1.7}input,select,textarea{font-size:16px}.desktop-only{display:none}}
@media(prefers-reduced-motion:no-preference){button{transition:background .15s}dialog[open]{animation:appear .16s ease-out}@keyframes appear{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}}
