:root{color-scheme:dark;--bg:#0b1221;--nav:#0d1629;--panel:#141e31;--panel-2:#101b2e;--border:#26354b;--text:#edf3ff;--muted:#96a5bb;--accent:#59dcc6;--accent2:#1a806f;--red:#ef788e;--green:#67e0b6;--blue:#74b5fa;--violet:#b596f4;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-synthesis:none}*{box-sizing:border-box}body{background:var(--bg);color:var(--text);margin:0;font-size:14px}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer}strong,b{font-weight:650}.shell{display:flex;min-height:100vh}.sidebar{width:252px;min-width:252px;border-right:1px solid var(--border);padding:29px 17px 20px;background:var(--nav);display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{font-size:19px;font-weight:800;letter-spacing:.05em;white-space:nowrap;color:var(--accent)}.brand b{color:var(--text);font-weight:700}.side-caption,.eyebrow{font-size:10px;letter-spacing:.2em;color:var(--muted);font-weight:700}.side-caption{margin:52px 14px 18px}.sidebar nav{display:flex;flex-direction:column;gap:7px}.nav-link{display:flex;align-items:center;gap:14px;border-radius:11px;color:#a2b1c7;padding:13px 14px;font-size:13px}.nav-link span{font-size:21px;display:inline-block;width:20px;text-align:center}.nav-link:hover,.nav-link.active{background:#1c3045;color:#e9fff9}.nav-link.active{border-left:3px solid var(--accent);padding-left:11px}.side-bottom{margin-top:auto;border-top:1px solid var(--border);padding:20px 13px 0;color:var(--muted);overflow-wrap:anywhere}.side-bottom small{line-height:1.5}.logout{background:none;border:0;color:var(--accent);padding:13px 0}.main{width:100%;min-width:0;max-width:1750px;margin:0 auto;padding:32px 42px 18px}.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:34px}.topbar h1{font-size:30px;line-height:1.1;letter-spacing:-.05em;margin:7px 0 0}.user-chip{border:1px solid var(--border);background:#152137;border-radius:99px;color:#bfd0e7;padding:11px 17px;font-size:12px}.mobile-brand,.mobile-nav{display:none}.heading-bar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:4px 0 22px}.heading-bar p{margin:0;color:var(--muted)}.date-selector,.filter-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:20px}.stat,.panel{background:var(--panel);border:1px solid var(--border);border-radius:16px;box-shadow:0 6px 28px #00000012}.stat{padding:23px 21px;min-height:180px}.stat-icon{font-size:21px;margin-bottom:14px;border-radius:10px;width:35px;height:35px;display:grid;place-items:center}.stat-icon.red{color:var(--red);background:#4a243c}.stat-icon.green{color:var(--green);background:#17463e}.stat-icon.blue{color:var(--blue);background:#173450}.stat-icon.violet{color:var(--violet);background:#332c53}.stat-value{font-size:clamp(19px,1.55vw,26px);font-weight:750;letter-spacing:-.045em;white-space:nowrap;margin:12px 0 5px}.muted{color:var(--muted)}.small{font-size:12px}.block{display:block;margin-top:5px}.dashboard-grid,.dual-layout{display:grid;grid-template-columns:1.08fr 1fr;gap:20px;margin-bottom:20px}.dual-layout{grid-template-columns:.85fr 1.15fr}.panel{padding:24px 24px;margin-bottom:20px}.dashboard-grid .panel,.dual-layout .panel{margin-bottom:0}.panel h2{font-size:16px;font-weight:700;letter-spacing:-.02em;margin:0 0 23px}.panel h3{font-size:14px;margin:26px 0 14px}.panel p{line-height:1.6}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:24px}.panel-head h2{margin:0}.cat-layout{display:flex;gap:25px;align-items:center}.donut{width:185px;aspect-ratio:1;border-radius:50%;display:grid;place-items:center;flex-shrink:0}.donut>div{width:72%;height:72%;background:var(--panel);border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center}.donut strong{font-size:31px}.donut small{color:var(--muted)}.cat-legend{min-width:0;flex:1;display:flex;flex-direction:column;gap:13px}.legend-row{display:flex;align-items:center;gap:9px;font-size:12px}.legend-row span:nth-child(2){flex:1;overflow:hidden;text-overflow:ellipsis}.legend-dot,.chip i{display:inline-block;width:9px;height:9px;min-width:9px;border-radius:50%}.legend-row strong{font-size:12px}.rank-item{margin:0 0 19px}.rank-head{display:flex;align-items:center;justify-content:space-between;gap:14px;font-size:12px;margin:0 0 8px}.rank-head>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rank-head i{font-style:normal;border-radius:6px;background:#21354b;color:var(--accent);font-weight:700;display:inline-grid;place-items:center;width:22px;height:22px;margin-right:10px}.track{height:7px;background:#29384d;border-radius:99px;overflow:hidden;margin-bottom:6px}.track>div{background:#51c7b7;border-radius:99px;height:100%;max-width:100%}.trend{height:192px;display:flex;gap:18px;justify-content:space-around;align-items:end;padding:7px 12px 5px}.trend-col{flex:1;max-width:145px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;gap:10px}.trend-amount{font-size:11px;color:var(--muted)}.trend-bar{min-height:3px;width:70%;max-width:86px;background:linear-gradient(0deg,#207f79,#5ee4d0);border-radius:6px 6px 0 0}.trend-col>span{font-size:12px;color:var(--muted)}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;min-width:750px}th{color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.065em;font-weight:600;padding:12px 14px;border-bottom:1px solid var(--border)}td{padding:16px 14px;border-bottom:1px solid #28364a;font-size:12px;vertical-align:middle}td strong{font-size:13px}.amount{text-align:right;white-space:nowrap;font-weight:700}.negative{color:#f194a3}.positive{color:#6de2b7}.nowrap{white-space:nowrap}.pill{display:inline-block;padding:6px 9px;font-size:11px;border-radius:40px;background:#354056;color:#d4dfed;white-space:nowrap}.pill.income{background:#1c4c40;color:#70e0ae}.pill.expense{background:#493145;color:#ffa6b1}.pill.neutral{background:#334259;color:#c4d1e3}.chip{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--border);padding:7px 10px;border-radius:99px;white-space:nowrap;color:#c6d4e7}.chips{display:flex;flex-wrap:wrap;gap:8px}.empty{padding:42px 12px;text-align:center;color:var(--muted);line-height:1.8}.empty p{margin:0}.btn{padding:11px 16px;border-radius:9px;border:1px solid var(--border);font-weight:650;white-space:nowrap}.btn.primary{background:var(--accent);border-color:var(--accent);color:#052b28}.btn.primary:hover{background:#7cf1df}.btn.outline{background:#1a293c;color:#d6e4f3}.btn:hover{filter:brightness(1.1)}.text-link{color:var(--accent);font-size:12px;background:none;border:0;padding:4px 0}.text-link.danger{color:#f995a4}.filter-bar{margin:0 0 19px}.form-grid{display:flex;flex-direction:column;gap:15px;max-width:620px}.form-grid label{display:flex;flex-direction:column;gap:8px;color:#bbc9dd;font-size:12px;font-weight:600}.form-two{display:grid;grid-template-columns:1fr 1fr;gap:12px}input,textarea,select{background:#101a2b;border:1px solid #35465e;border-radius:9px;padding:12px;color:#f4f7fc;outline:0;min-width:0;width:100%}input:focus,select:focus,textarea:focus{border-color:var(--accent)}input[type=color]{padding:5px;height:46px;width:90px}input[type=file]{font-size:12px}.date-selector input,.filter-bar input,.filter-bar select{width:auto}.filter-bar input[name=q]{min-width:240px}.notice{padding:15px 18px;border-radius:10px;margin:0 0 21px}.notice.ok{background:#12382e;border:1px solid #357962;color:#aff6db}.notice.error{background:#4b2735;border:1px solid #834554;color:#ffd1d8}.card-entry{display:flex;gap:14px;align-items:center;margin-bottom:13px}.payment-card{background:linear-gradient(130deg,#263d57,#152d3b 64%,#166c61);padding:24px 26px;border:1px solid #325264;border-radius:14px;display:flex;flex-direction:column;gap:15px;flex:1;min-width:0;min-height:158px}.payment-card>div{letter-spacing:.18em;font-size:11px}.payment-card strong{font-size:19px}.payment-card span{font-size:12px;color:#bdcfe2}.card-actions{display:flex;flex-direction:column;align-items:center;gap:8px}.budget-row{margin-bottom:22px}.budget-row .rank-head{margin:10px 0}.rule-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 0;border-bottom:1px solid var(--border);font-size:13px}.tip{background:#1e3446;border:1px solid #34536a;color:#b8d5e4;padding:15px;border-radius:10px;margin-top:19px;font-size:12px;line-height:1.6}.copy-group{display:flex;gap:9px}.copy-group input{flex:1;min-width:0}.token-box{margin-top:18px;padding:16px;background:#1b403c;border:1px solid #398d80;border-radius:10px}.token-box b{display:block;margin-bottom:12px}.info-list{padding-left:20px;color:#b3c3d7;line-height:1.8}.info-list li{margin-bottom:12px}.row-actions{display:flex;gap:12px;align-items:center}.footer{padding:35px 0 10px;color:#6f7f96;text-align:center;font-size:11px}.auth-page{display:flex;align-items:center;justify-content:center;min-height:100vh;padding:24px;background:radial-gradient(ellipse at 50% -15%,#1b4f53,#0b1221 55%)}.auth-card{max-width:500px;width:100%;background:var(--panel);padding:35px;border:1px solid var(--border);border-radius:20px;box-shadow:0 25px 90px #0003}.auth-card h1{font-size:28px;letter-spacing:-.06em;margin:30px 0 8px}.auth-card p{line-height:1.5;margin-bottom:24px}.auth-card .btn{width:100%;margin-top:7px}.auth-card h3{border-top:1px solid var(--border);padding-top:22px;margin:13px 0 0}.auth-card .form-grid h3:first-child{border:0;padding:0}.mobile-nav{overflow:auto;scrollbar-width:none}
@media(max-width:1250px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.cat-layout{flex-wrap:wrap}.donut{width:145px}.dashboard-grid{grid-template-columns:1fr 1fr}.main{padding:30px 25px}}@media(max-width:860px){.sidebar{display:none}.main{padding:24px 16px}.mobile-brand{display:block;color:var(--accent);font-weight:700;margin-bottom:16px}.topbar{margin-bottom:18px}.topbar h1{font-size:24px}.user-chip{font-size:11px}.mobile-nav{display:flex;gap:9px;margin:0 0 24px;white-space:nowrap;padding-bottom:5px}.mobile-nav a{display:inline-block;padding:10px 12px;border-radius:9px;background:#1c2b42;color:var(--muted)}.mobile-nav a.active{color:var(--accent);background:#234b4b}.dashboard-grid,.dual-layout{grid-template-columns:1fr}.cat-layout{flex-wrap:nowrap}}@media(max-width:570px){.stats{gap:9px}.stat{padding:16px 13px;min-height:150px}.stat-value{font-size:19px;white-space:normal}.panel{padding:18px 15px}.cat-layout{flex-direction:column;align-items:stretch}.donut{align-self:center}.legend-row strong{font-size:11px}.heading-bar{align-items:stretch;flex-direction:column}.date-selector input{max-width:230px}.user-chip{display:none}.form-two{grid-template-columns:1fr}.copy-group{flex-wrap:wrap}.copy-group input{min-width:100%}.card-entry{flex-direction:column;align-items:stretch}.card-actions{flex-direction:row;justify-content:space-between}.filter-bar input[name=q]{min-width:180px;width:100%}.auth-card{padding:25px 20px}.topbar h1{font-size:25px}}
