:root{color-scheme:dark;--bg:#09131d;--sidebar:#0c1823;--panel:#101f2c;--panel2:#152737;--line:#203242;--text:#edf3f6;--muted:#8ea3b4;--green:#56e2b3;--red:#fa8b92;--gold:#edcb7b;--blue:#86b7ff;--radius:18px;font-family:'DM Sans',system-ui,sans-serif;font-size:14px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}a{color:var(--green)}button:focus-visible,a:focus-visible{outline:2px solid var(--green);outline-offset:4px}input,select,textarea{width:100%;padding:12px 13px;color:var(--text);background:#0b1823;border:1px solid #2d4354;border-radius:9px;outline:none}input:focus,select:focus,textarea:focus{border-color:var(--green);box-shadow:0 0 0 3px #56e2b310}input[type=checkbox]{width:auto}textarea{resize:vertical;min-height:85px}input[type=month]{max-width:180px}h1,h2,h3,p{margin:0}h1,h2,h3,.number{font-family:Manrope,system-ui,sans-serif}h1{font-size:30px;letter-spacing:-1px;font-weight:750}h2{font-size:18px;letter-spacing:-.4px}h3{font-size:15px}p{line-height:1.6}.muted{color:var(--muted)}.small{font-size:12px}.green{color:var(--green)}.red{color:var(--red)}.gold{color:var(--gold)}.layout{display:grid;grid-template-columns:234px minmax(0,1fr);min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:234px;background:var(--sidebar);border-right:1px solid var(--line);padding:30px 20px;display:flex;flex-direction:column;z-index:15}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--text);padding:0 12px;margin-bottom:42px}.brand-mark{font-family:Manrope,sans-serif;letter-spacing:-4px;font-size:42px;font-weight:800;line-height:1}.brand-mark span{color:var(--green);letter-spacing:0}.brand-copy{font-size:11px;line-height:1.4;color:var(--muted);border-left:1px solid var(--line);padding-left:14px}.nav-label{text-transform:uppercase;letter-spacing:2px;font-size:9px;font-weight:700;color:#6b8397;padding:0 14px;margin-bottom:12px}.nav{display:flex;flex-direction:column;gap:5px}.nav button{background:none;border:0;display:flex;align-items:center;gap:12px;color:var(--muted);padding:13px 14px;border-radius:10px;text-align:left;font-size:13px}.nav button:hover{background:#142636;color:var(--text)}.nav button.active{background:#17372f;color:var(--green)}.nav button svg{width:19px;height:19px;flex-shrink:0}.sidebar-footer{margin-top:auto;padding-top:30px}.connection{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:11px;padding:0 12px;margin-bottom:18px}.dot{width:6px;height:6px;border-radius:50%;background:var(--green);box-shadow:0 0 10px #56e2b345}.profile{display:flex;align-items:center;gap:10px;padding:12px;border-top:1px solid var(--line)}.avatar{display:grid;place-items:center;background:#243b4e;border:1px solid #345065;border-radius:50%;width:34px;height:34px;color:#b9d9e9;font-weight:650;flex-shrink:0}.profile b{font-size:12px;display:block}.profile small{color:var(--muted);font-size:10px}.main{grid-column:2;min-width:0}.topbar{height:84px;border-bottom:1px solid var(--line);padding:0 38px;display:flex;align-items:center;justify-content:space-between;gap:16px}.breadcrumb{color:var(--muted);font-size:12px}.breadcrumb span{color:var(--text);margin-left:10px}.top-actions{display:flex;gap:12px;align-items:center}.top-actions input{background:transparent;border:0;width:168px;font-size:12px}.sync{color:var(--muted);font-size:11px;display:flex;gap:7px;align-items:center}.content{padding:32px 38px 42px;max-width:1580px;margin:auto}.page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:28px}.page-heading p{color:var(--muted);font-size:13px;margin-top:7px}.eyebrow{font-size:10px;letter-spacing:2px;text-transform:uppercase;color:var(--green);margin-bottom:9px;font-weight:600}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);background:var(--panel2);color:var(--text);padding:11px 16px;border-radius:9px;font-size:12px;font-weight:600;text-decoration:none;white-space:nowrap}.btn:hover{filter:brightness(1.13)}.btn svg{width:16px;height:16px}.btn.primary{background:var(--green);color:#09261c;border-color:var(--green)}.btn.ghost{background:transparent}.btn.danger{color:var(--red);border-color:#683841;background:#39242d}.btn.tiny{padding:7px 10px;font-size:11px}.icon-btn{background:transparent;border:0;color:var(--muted);display:inline-grid;place-items:center;border-radius:6px;padding:7px}.icon-btn:hover{color:var(--text);background:var(--panel2)}.icon-btn svg{width:17px;height:17px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}.stat{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:22px;position:relative;overflow:hidden}.stat.featured{background:linear-gradient(130deg,#173c36,#122c32);border-color:#2c5c50}.stat-top{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#a4b8c5;margin-bottom:18px}.stat-top svg{width:17px;height:17px;color:var(--muted)}.stat .number{font-size:26px;font-weight:750;letter-spacing:-1px;white-space:nowrap}.stat p{font-size:10px;color:var(--muted);margin-top:10px}.stat.featured .number{color:var(--green)}.grid-two{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,1fr);gap:22px;margin-bottom:24px}.panel{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.panel-pad{padding:24px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:22px 24px}.panel-head h2{font-size:15px}.panel-head .muted{font-size:11px}.legend{display:flex;align-items:center;gap:15px;font-size:10px;color:var(--muted)}.legend i{display:inline-block;width:6px;height:6px;border-radius:50%;margin-right:5px}.chart{padding:0 20px 15px}.chart svg{width:100%;height:auto;display:block;max-height:230px}.chart svg text{font-family:inherit;font-size:10px;fill:var(--muted)}.chart-empty{height:220px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:9px;color:var(--muted);font-size:12px;background:repeating-linear-gradient(0deg,transparent,transparent 49px,#20324270 50px);margin:0 24px}.donut-layout{display:flex;align-items:center;gap:24px;padding:10px 24px 26px;min-height:220px}.donut{width:142px;height:142px;flex-shrink:0}.category-list{flex:1;min-width:0}.category-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:13px 0;font-size:11px}.category-row span{display:flex;align-items:center;gap:7px;color:var(--muted);min-width:0}.category-row i{width:7px;height:7px;border-radius:50%;flex-shrink:0}.category-row b{font-size:10px;white-space:nowrap}.insight-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:24px}.insight{background:#10262a;border:1px solid #24453e;border-radius:13px;padding:17px;display:flex;gap:11px}.insight svg{color:var(--green);width:19px;flex-shrink:0}.insight h3{font-size:12px;margin-bottom:5px}.insight p{font-size:11px;color:#9ab7b7;line-height:1.5}.insight.warn{background:#2c281d;border-color:#4c4430}.insight.warn svg{color:var(--gold)}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}th{font-size:9px;letter-spacing:1px;text-transform:uppercase;color:#7590a4;font-weight:600;padding:13px 23px;border-bottom:1px solid var(--line);background:#0d1b27}td{padding:16px 23px;border-bottom:1px solid #1c303f;font-size:12px}tr:last-child td{border-bottom:0}td .secondary{display:block;font-size:10px;color:var(--muted);margin-top:4px}.transaction-title{display:flex;align-items:center;gap:12px}.tx-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#2c2b31;color:var(--red)}.tx-icon.income{background:#17392f;color:var(--green)}.tx-icon.transfer{background:#20344d;color:var(--blue)}.tx-icon svg{width:16px;height:16px}.amount{font-weight:650;font-family:Manrope,sans-serif}.badge{font-size:9px;border-radius:5px;padding:4px 7px;background:#213629;color:#9ed3b4;display:inline-block}.badge.pending{background:#3a3321;color:var(--gold)}.toolbar{display:flex;align-items:center;gap:10px;margin-bottom:18px;flex-wrap:wrap}.toolbar input{flex:1;min-width:180px}.toolbar select{width:auto;min-width:140px}.empty{text-align:center;padding:44px 25px;color:var(--muted);font-size:12px}.empty svg{width:34px;height:34px;color:#59758a;margin-bottom:12px}.empty h3{color:var(--text);margin-bottom:8px;font-size:14px}.empty p{max-width:390px;margin:0 auto 18px}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.entity-card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:24px}.entity-card .card-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.card-icon{width:40px;height:40px;border-radius:12px;background:#1d3938;display:grid;place-items:center;color:var(--green)}.card-icon svg{width:21px;height:21px}.entity-card h3{margin-bottom:5px}.entity-card .number{font-size:25px;font-weight:750;margin:20px 0 8px;letter-spacing:-.8px}.entity-card .details{display:flex;justify-content:space-between;color:var(--muted);font-size:11px;gap:12px;margin:12px 0}.entity-card .btn{margin-top:14px;width:100%}.progress{height:6px;background:#233747;border-radius:10px;overflow:hidden;margin:17px 0}.progress span{display:block;height:100%;background:var(--green);border-radius:10px}.section-note{padding:16px 18px;background:#122833;border:1px solid #264352;border-radius:11px;color:#a6bfcd;font-size:12px;line-height:1.6;margin-bottom:22px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.settings-card{padding:24px;background:var(--panel);border:1px solid var(--line);border-radius:var(--radius)}.settings-card h2{font-size:16px;margin-bottom:9px}.settings-card p{font-size:12px;color:var(--muted);margin-bottom:20px}.settings-card label{font-size:11px;color:var(--muted);display:block;margin:16px 0 7px}.settings-card .btn{margin:8px 7px 0 0}.settings-card code{display:block;overflow-wrap:anywhere;background:#08151e;border:1px solid var(--line);padding:13px;border-radius:8px;color:var(--green);font-size:11px;margin:10px 0}.settings-card .users{margin:18px 0}.user-row{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--line);font-size:12px}.user-row small{color:var(--muted);display:block;margin-top:4px}.chat-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:22px;align-items:start}.chat-panel{min-height:580px;display:flex;flex-direction:column}.chat-messages{padding:24px;min-height:390px;max-height:60vh;overflow:auto;display:flex;flex-direction:column;gap:18px;scroll-behavior:auto}.message{display:flex;align-items:flex-start;gap:10px;max-width:90%}.message.user{align-self:flex-end;flex-direction:row-reverse}.message-avatar{height:28px;width:28px;background:#173b32;color:var(--green);border-radius:8px;display:grid;place-items:center;flex-shrink:0;font-size:11px;font-weight:700}.message.user .message-avatar{background:#253a4e;color:#b6cee0}.message-content{padding:13px 15px;background:#182c3a;border:1px solid #263e4f;border-radius:0 12px 12px 12px;white-space:pre-wrap;line-height:1.7;font-size:12px;overflow-wrap:anywhere}.message.user .message-content{background:#183b32;border-color:#245343;border-radius:12px 0 12px 12px}.message-time{font-size:9px;color:var(--muted);margin-top:6px}.chat-compose{padding:16px 20px;border-top:1px solid var(--line);margin-top:auto}.chat-input-row{display:flex;gap:10px;align-items:flex-end}.chat-input-row textarea{min-height:46px;max-height:150px}.chat-compose small{display:block;color:#6e8b9f;margin-top:9px;font-size:9px}.chat-hints{display:flex;flex-direction:column;gap:10px}.chat-hints button{border:1px solid var(--line);background:var(--panel);padding:15px;border-radius:11px;text-align:left;color:#b9cbd6;font-size:12px;line-height:1.6}.chat-hints button:hover{border-color:#3d796a}.chat-side h3{font-size:11px;letter-spacing:1px;text-transform:uppercase;color:var(--muted);margin-bottom:15px}.chat-side p{font-size:11px;color:var(--muted);margin-top:20px;line-height:1.7}.proposal{margin:0 24px 15px;padding:15px;border:1px solid #3c715c;background:#15372e;border-radius:11px}.proposal h3{font-size:12px;margin-bottom:8px}.proposal p{font-size:12px;margin-bottom:12px}.proposal .btn{margin-right:8px}.auth-screen{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.auth-visual{background:radial-gradient(ellipse at 20% 100%,#174b40,transparent 60%),#0c1d28;padding:65px;display:flex;flex-direction:column;border-right:1px solid var(--line);position:relative;overflow:hidden}.auth-visual .brand{padding:0;margin:0}.auth-story{margin:auto 0;max-width:470px;position:relative;z-index:1}.auth-story h1{font-size:49px;line-height:1.16;letter-spacing:-2px;margin:22px 0}.auth-story h1 em{font-style:normal;color:var(--green)}.auth-story p{color:#9bb3bf;font-size:15px;max-width:370px}.auth-orbit{position:absolute;border:1px solid #37655540;border-radius:50%;width:650px;height:650px;right:-300px;bottom:-300px;box-shadow:0 0 0 70px #37655510,0 0 0 140px #37655508}.auth-footer{color:#718f9c;font-size:11px}.auth-form-wrap{display:flex;align-items:center;justify-content:center;padding:35px}.auth-form{width:100%;max-width:360px}.auth-form h2{font-size:27px;letter-spacing:-.8px;margin-bottom:8px}.auth-form>p{color:var(--muted);font-size:12px;margin-bottom:30px}.field{margin-bottom:17px}.field label{display:block;font-size:11px;color:#afc1ce;margin-bottom:8px}.auth-form .btn{width:100%;padding:14px;margin-top:7px}.form-error{color:var(--red);font-size:12px;line-height:1.5;margin-bottom:14px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 15px}.field.full{grid-column:1/-1}.form-note{color:var(--muted);font-size:11px;line-height:1.6;margin-bottom:16px}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:10px}dialog{border:1px solid #304a5c;background:var(--panel);color:var(--text);border-radius:18px;padding:0;width:min(540px,calc(100vw - 28px));max-height:calc(100dvh - 40px);box-shadow:0 24px 100px #0008}dialog::backdrop{background:#020911bb;backdrop-filter:blur(5px)}.modal-head{padding:22px 25px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.modal-head h2{font-size:19px}.modal-body{padding:24px}.modal-body form{margin:0}#toast{position:fixed;bottom:28px;left:50%;transform:translate(-50%,20px);background:#e0f6ed;color:#143c2c;box-shadow:0 5px 35px #0005;border:1px solid #91d9bb;border-radius:10px;padding:13px 20px;font-size:12px;z-index:100;opacity:0;transition:.2s;pointer-events:none;max-width:calc(100vw - 30px);width:max-content}#toast.show{opacity:1;transform:translate(-50%,0)}#toast.error{background:#4a252d;color:#ffc4c8;border-color:#8e4c58}.boot{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:25px;color:var(--muted);font-size:12px}.bottom-nav{display:none}.mobile-brand{display:none}.filter-count{color:var(--muted);font-size:11px;margin:12px 0}.helper-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:20px}.helper-grid button{background:var(--panel);border:1px solid var(--line);border-radius:12px;color:var(--muted);padding:17px;text-align:left;line-height:1.6;font-size:12px}.helper-grid button:hover{border-color:#357c67}.welcome-chat{padding:35px 20px;text-align:center}.welcome-chat .brand-mark{font-size:44px;display:block;margin-bottom:20px}.welcome-chat h2{font-size:20px;margin-bottom:10px}.welcome-chat p{max-width:450px;margin:auto;color:var(--muted);font-size:12px}.footnote{color:#688395;font-size:10px;line-height:1.6;margin-top:20px}.offline-banner{padding:12px 20px;background:#3a3020;color:var(--gold);font-size:12px;text-align:center}
@media(min-width:1600px){.content{padding-top:42px}.stat .number{font-size:30px}}@media(max-width:1200px){.layout{grid-template-columns:200px minmax(0,1fr)}.sidebar{width:200px;padding:27px 13px}.content{padding:28px 24px}.topbar{padding:0 24px}.stat{padding:18px}.stat .number{font-size:22px}.grid-two{grid-template-columns:minmax(0,1.4fr) minmax(260px,1fr)}.donut-layout{gap:13px;padding:8px 18px 24px}.donut{width:115px;height:115px}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.chat-layout{grid-template-columns:minmax(0,1fr) 220px}.insight-strip{grid-template-columns:1fr}.insight{padding:13px 17px}.auth-visual{padding:45px}.auth-story h1{font-size:42px}}
@media(max-width:950px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-two{grid-template-columns:1fr}.donut-layout{min-height:190px}.category-list{max-width:340px}.settings-grid{grid-template-columns:1fr}.chat-layout{grid-template-columns:1fr}.chat-side{display:none}.auth-screen{grid-template-columns:1fr}.auth-visual{display:none}.auth-form-wrap{min-height:100vh}.top-actions .sync{display:none}.insight-strip{grid-template-columns:1fr}}
@media(max-width:700px){.layout{display:block}.sidebar{display:none}.main{width:100%}.topbar{height:68px;padding:0 19px;gap:8px;position:sticky;top:0;z-index:10;background:#09131df2;backdrop-filter:blur(12px)}.breadcrumb{display:none}.mobile-brand{display:block;font-size:32px}.top-actions{gap:3px}.top-actions input{width:146px;padding:8px 4px;font-size:11px}.top-actions>.btn{font-size:10px;padding:9px 11px}.content{padding:23px 17px calc(104px + env(safe-area-inset-bottom))}.page-heading{gap:12px;margin-bottom:22px}.page-heading h1{font-size:25px}.page-heading p{font-size:11px;max-width:260px}.page-heading>.btn{padding:10px 11px;font-size:10px}.eyebrow{font-size:9px}.stats{gap:10px;margin-bottom:17px}.stat{padding:16px 14px;border-radius:13px}.stat-top{font-size:10px;margin-bottom:13px}.stat .number{font-size:21px}.stat p{font-size:9px;line-height:1.5}.stat-top svg{width:14px}.grid-two{gap:17px;margin-bottom:17px}.panel{border-radius:14px}.panel-head{padding:19px 17px}.panel-head h2{font-size:14px}.panel-pad{padding:18px}.chart{padding:0 9px 8px}.legend{font-size:9px;gap:9px}.insight-strip{gap:9px;margin-bottom:17px}.insight{padding:13px}.insight p{font-size:10px}th,td{padding:14px 16px}td{font-size:11px}.desktop-col{display:none}.transaction-title{gap:9px}.tx-icon{width:30px;height:30px}.cards{grid-template-columns:1fr;gap:14px}.entity-card{padding:21px}.toolbar{gap:8px}.toolbar input{min-width:100%;font-size:12px}.toolbar select{flex:1;min-width:100px;font-size:11px;padding:10px}.bottom-nav{display:flex;position:fixed;inset:auto 0 0;background:#0d1c28f5;border-top:1px solid #284052;z-index:20;padding:9px 8px calc(9px + env(safe-area-inset-bottom));backdrop-filter:blur(20px);justify-content:space-around}.bottom-nav button{border:0;background:none;color:#7f99ac;display:flex;flex-direction:column;align-items:center;gap:5px;font-size:9px;min-width:52px;padding:4px}.bottom-nav button svg{width:21px;height:21px}.bottom-nav button.active{color:var(--green)}#toast{bottom:95px;font-size:11px;max-width:calc(100vw - 30px)}.chat-panel{min-height:calc(100dvh - 240px)}.chat-messages{padding:16px;min-height:300px;max-height:calc(100dvh - 355px)}.message{max-width:96%}.message-content{font-size:12px;padding:11px}.chat-compose{padding:12px}.chat-compose .btn{padding:13px}.helper-grid{grid-template-columns:1fr;gap:8px}.helper-grid button{padding:11px;font-size:11px}.welcome-chat{padding:23px 6px}.proposal{margin:0 14px 12px}.settings-card{padding:20px}.form-grid{gap:0 11px}.modal-body{padding:20px}.modal-head{padding:18px 20px}.auth-form-wrap{padding:28px}.donut-layout{justify-content:center}.chat-page .page-heading{margin-bottom:17px}.footnote{font-size:9px}.more-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.more-grid button{display:flex;align-items:center;gap:13px;padding:22px 17px;background:var(--panel);border:1px solid var(--line);border-radius:12px;color:var(--text);text-align:left}.more-grid svg{width:24px;color:var(--green)}}
svg{width:20px;height:20px;flex-shrink:0}.form-grid>.full{grid-column:1/-1}.panel-head h2{display:flex;align-items:center;gap:9px}.auth-form .footnote svg{width:12px;height:12px;vertical-align:-2px;margin-right:4px}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

@media(max-width:700px){.chat-input-row textarea{font-size:16px}.chat-messages{overscroll-behavior:contain}}
