@charset "UTF-8";
:root{color-scheme:light;--bg:#f3f7f8;--surface:#fff;--surface-soft:#f6f9fa;--ink:#182735;--muted:#70808e;--border:#e3ebef;--accent:#078f89;--accent-dark:#08746f;--accent-soft:#e4f6f2;--amber:#ac731b;--amber-soft:#fff2d9;--indigo:#7470bb;--shadow:0 10px 30px rgba(24,57,72,.045),0 2px 5px rgba(24,57,72,.025);--radius:20px;--glass:rgba(255,255,255,.8);--red:#c35454;--font:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Arial,sans-serif}
:root[data-palette="calido"]{--bg:#f8f5ef;--surface:#fffdf8;--surface-soft:#f4f1e9;--ink:#30362c;--muted:#7c8272;--border:#e6e4d9;--accent:#78845b;--accent-dark:#626d48;--accent-soft:#eaf0dc;--glass:rgba(255,253,248,.86);--indigo:#b58171}
:root[data-theme="dark"]{color-scheme:dark;--bg:#101a23;--surface:#182530;--surface-soft:#1c2d39;--ink:#e7f0f4;--muted:#9aacb7;--border:#2b3d4a;--accent:#55c8bb;--accent-dark:#80ddd2;--accent-soft:#183c3c;--amber:#e8bb66;--amber-soft:#3b3425;--indigo:#a19dde;--glass:rgba(24,37,48,.88);--shadow:0 10px 30px rgba(0,0,0,.12);--red:#f08d8d}
*{box-sizing:border-box}body{margin:0;font-family:var(--font);font-size:14px;line-height:1.5;background:var(--bg);color:var(--ink);-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button{color:inherit}button:disabled{cursor:not-allowed;opacity:.5}button,input,select,textarea{outline-offset:4px}button:focus-visible,a:focus-visible{outline:3px solid var(--accent)}a{color:var(--accent)}button svg{flex-shrink:0}svg.icon{width:20px;height:20px;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}button{border:0;background:none}h1,h2,h3,p{margin-top:0}h1,h2,h3{line-height:1.2;letter-spacing:-.035em}h1{font-size:30px;font-weight:730}h2{font-size:21px}h3{font-size:16px;letter-spacing:-.02em}p{margin-bottom:12px}small{font-size:12px}button,input,select,textarea{transition:background .15s,border-color .15s,box-shadow .15s,transform .15s}button:active{transform:translateY(1px)}.muted{color:var(--muted)}.eyebrow{font-size:10px;font-weight:750;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}.money{font-variant-numeric:tabular-nums;white-space:nowrap}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.app-shell{min-height:100dvh;background:radial-gradient(ellipse at 15% 0,rgba(159,223,221,.12),transparent 35%),radial-gradient(ellipse at 95% 0,rgba(177,186,233,.1),transparent 40%)}.topbar{height:78px;display:flex;align-items:center;justify-content:space-between;padding:0 28px 0 25px;border-bottom:1px solid var(--border);background:var(--glass);backdrop-filter:blur(22px);position:sticky;top:0;z-index:25;gap:12px}.brand{display:flex;align-items:center;gap:12px;font-size:25px;letter-spacing:-.05em;font-weight:760;flex-shrink:0}.brandmark{display:inline-flex;width:30px;height:33px;position:relative}.brandmark:before,.brandmark:after{content:"";position:absolute;background:var(--accent);border-radius:8px;transform:rotate(35deg)}.brandmark:before{width:12px;height:31px;left:5px;top:0}.brandmark:after{width:10px;height:19px;left:19px;top:15px;opacity:.45}.top-left,.top-right{display:flex;align-items:center;gap:18px}.demo-pill{display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border:1px solid var(--border);border-radius:100px;font-size:11px;color:var(--muted);white-space:nowrap;background:var(--surface)}.demo-dot{width:6px;height:6px;background:var(--accent);border-radius:50%;box-shadow:0 0 0 3px var(--accent-soft)}.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:12px;color:var(--muted)}.icon-btn:hover{background:var(--surface-soft);color:var(--ink)}.profile-select{display:flex;gap:8px;align-items:center;padding:5px 8px 5px 5px;border:1px solid var(--border);border-radius:100px;background:var(--surface)}.profile-select select{border:0;background:transparent;max-width:86px;color:var(--ink);padding:0;font-size:12px;font-weight:600}.avatar{display:inline-flex;width:31px;height:31px;align-items:center;justify-content:center;background:var(--accent-soft);color:var(--accent);border-radius:50%;font-size:12px;font-weight:700}.layout{display:flex;min-height:calc(100dvh - 78px)}.rail{position:fixed;top:78px;bottom:0;left:0;width:76px;border-right:1px solid var(--border);background:var(--glass);display:flex;flex-direction:column;align-items:center;gap:14px;padding:24px 0 18px;z-index:20}.rail-nav{display:flex;flex-direction:column;gap:14px}.rail button{position:relative;width:46px;height:46px;border-radius:15px;display:flex;justify-content:center;align-items:center;color:var(--muted)}.rail button.active{background:linear-gradient(145deg,var(--accent),var(--accent-dark));box-shadow:0 5px 12px color-mix(in srgb,var(--accent) 18%,transparent);color:white}.rail button:not(.active):hover{background:var(--accent-soft);color:var(--accent)}.rail .rail-bottom{margin-top:auto}.rail-tooltip{position:absolute;left:54px;border-radius:7px;background:var(--ink);color:var(--surface);padding:6px 10px;font-size:11px;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .1s}.rail button:hover .rail-tooltip{opacity:1}.sidebar{position:fixed;top:78px;bottom:0;left:76px;width:222px;padding:25px 17px 20px;border-right:1px solid var(--border);background:color-mix(in srgb,var(--surface) 55%,transparent);display:flex;flex-direction:column;z-index:19;transition:transform .2s}.sidebar-title{display:flex;justify-content:space-between;align-items:center;padding:0 10px 16px}.sidebar-title .icon-btn{width:26px;height:26px}.entity-item{display:flex;width:100%;align-items:center;gap:10px;padding:12px 12px;border-radius:12px;font-size:12px;font-weight:550;color:var(--muted);text-align:left;margin:3px 0}.entity-item .count{margin-left:auto;font-size:10px;font-weight:500;opacity:.8}.entity-item.active{background:var(--accent-soft);color:var(--accent);font-weight:700}.entity-item:hover{background:var(--surface-soft);color:var(--ink)}.entity-dot{width:7px;height:7px;flex-shrink:0;border-radius:50%;display:inline-block;background:var(--accent)}.add-entity{color:var(--accent);font-size:11px;display:flex;gap:8px;align-items:center;padding:14px 12px}.add-entity .icon{width:16px;height:16px}.sidebar-divider{border-top:1px solid var(--border);margin:22px 8px}.side-shortcut{display:flex;align-items:center;gap:9px;width:100%;padding:10px 12px;border-radius:10px;text-align:left;color:var(--muted);font-size:11px}.side-shortcut .icon{width:17px;height:17px}.side-shortcut:hover{background:var(--surface-soft);color:var(--accent)}.side-note{margin-top:auto;padding:15px 10px 0;font-size:10px;line-height:1.6;color:var(--muted)}.side-note .icon{width:14px;height:14px;margin-bottom:6px}.workspace{margin-left:298px;width:calc(100% - 298px);min-width:0;padding:30px 32px 28px;transition:margin .2s,width .2s}.sidebar-collapsed .sidebar{transform:translateX(-222px);pointer-events:none}.sidebar-collapsed .workspace{margin-left:76px;width:calc(100% - 76px)}.mobile-nav{display:none}.sidebar-toggle{display:none}.sidebar-collapsed .sidebar-toggle{display:inline-flex}.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:25px}.page-head h1{margin:0 0 7px;font-size:27px}.page-head p{font-size:12px;color:var(--muted);margin:0}.page-actions{display:flex;gap:9px;align-items:center;flex-shrink:0}.btn{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:40px;border-radius:11px;padding:10px 15px;font-size:12px;font-weight:650;line-height:1.3;text-decoration:none;white-space:nowrap}.btn .icon{width:17px;height:17px}.btn-primary{background:var(--accent);color:white;box-shadow:0 4px 10px color-mix(in srgb,var(--accent) 12%,transparent)}:root[data-theme="dark"] .btn-primary{color:#102929}.btn-primary:hover{background:var(--accent-dark)}.btn-secondary{background:var(--surface);border:1px solid var(--border);color:var(--ink);box-shadow:0 2px 4px rgba(24,57,72,.025)}.btn-secondary:hover{border-color:color-mix(in srgb,var(--accent) 50%,var(--border));color:var(--accent)}.btn-quiet{color:var(--muted);font-weight:550}.btn-quiet:hover{color:var(--accent);background:var(--surface-soft)}.btn-danger{color:var(--red);border:1px solid color-mix(in srgb,var(--red) 25%,var(--border));background:var(--surface)}.btn-sm{min-height:32px;padding:7px 10px;font-size:11px}.w-full{width:100%}.panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow)}.panel-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:20px}.panel-title h2,.panel-title h3{margin:0}.panel-title span{font-size:11px;color:var(--muted)}.badge{display:inline-flex;align-items:center;gap:5px;border-radius:7px;padding:4px 8px;font-size:10px;font-weight:600;line-height:1.3;white-space:nowrap}.badge.teal{color:var(--accent);background:var(--accent-soft)}.badge.amber{color:var(--amber);background:var(--amber-soft)}.badge.neutral{color:var(--muted);background:var(--surface-soft)}.badge.indigo{color:var(--indigo);background:color-mix(in srgb,var(--indigo) 13%,var(--surface))}.tag{display:inline-flex;padding:2px 7px;border-radius:6px;color:var(--muted);background:var(--surface-soft);font-size:10px;border:1px solid var(--border)}
.chat-layout{display:grid;grid-template-columns:minmax(0,1fr) 255px;gap:25px;align-items:start}.chat-main{min-width:0}.chat-intro{padding:23px 6px 8px;max-width:680px;margin:0 auto 18px}.intro-mark{display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:16px;background:var(--accent-soft);color:var(--accent);margin-bottom:24px}.intro-mark .icon{width:26px;height:26px}.chat-intro h2{font-size:32px;letter-spacing:-.045em;margin-bottom:10px;line-height:1.17;font-weight:720}.chat-intro p{font-size:13px;line-height:1.75;color:var(--muted);max-width:445px}.scenario-label{font-size:10px;text-transform:uppercase;letter-spacing:.09em;font-weight:700;color:var(--muted);margin-top:27px;margin-bottom:10px}.scenario-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.scenario-card{border:1px solid var(--border);background:var(--surface);padding:14px 13px;text-align:left;border-radius:13px;box-shadow:0 3px 10px rgba(24,57,72,.025);display:flex;gap:10px;align-items:flex-start}.scenario-card .icon{color:var(--accent);width:17px;height:17px;margin-top:1px}.scenario-card strong{display:block;font-size:11px;margin-bottom:4px;font-weight:650}.scenario-card span{display:block;font-size:10px;color:var(--muted);line-height:1.5}.scenario-card:hover{border-color:var(--accent);transform:translateY(-1px)}.chat-feed{max-width:680px;margin:0 auto;display:flex;flex-direction:column;gap:17px;padding:8px 0 22px;min-height:35px}.chat-message{max-width:88%;font-size:12px;line-height:1.7;animation:appear .2s ease}.chat-message.user{align-self:flex-end;background:var(--accent-soft);color:var(--ink);border-radius:16px 16px 4px 16px;padding:13px 16px;white-space:pre-wrap}.chat-message.assistant{align-self:flex-start;display:flex;gap:10px;max-width:100%}.assistant-symbol{width:28px;height:28px;border-radius:9px;display:flex;align-items:center;justify-content:center;background:var(--surface);border:1px solid var(--border);color:var(--accent);flex-shrink:0}.assistant-symbol .icon{width:16px;height:16px}.assistant-content{padding-top:3px;min-width:0}.chat-message .message-time{font-size:9px;color:var(--muted);margin-top:5px}.quick-replies{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.quick-reply{border:1px solid var(--border);background:var(--surface);border-radius:9px;padding:7px 12px;font-size:11px;color:var(--accent)}.quick-reply:hover{border-color:var(--accent);background:var(--accent-soft)}.chat-composer-wrap{max-width:680px;margin:0 auto;position:sticky;bottom:20px;z-index:8}.composer{background:var(--surface);border:1px solid var(--border);border-radius:18px;padding:12px;box-shadow:0 12px 35px rgba(24,57,72,.08)}.composer textarea{width:100%;resize:none;border:0;background:transparent;color:var(--ink);font-size:13px;min-height:49px;max-height:180px;padding:3px 3px 7px;line-height:1.6;outline:none}.composer textarea::placeholder{color:var(--muted)}.composer-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px}.attachment-actions{display:flex;gap:4px;align-items:center}.attachment-actions button{display:flex;align-items:center;gap:5px;color:var(--muted);font-size:10px;padding:7px 6px;border-radius:8px}.attachment-actions button:hover{color:var(--accent);background:var(--accent-soft)}.attachment-actions .icon{width:15px;height:15px}.send-btn{height:34px;width:36px;background:var(--accent);color:#fff;border-radius:11px;display:flex;align-items:center;justify-content:center}.send-btn .icon{width:17px;height:17px}.composer-context{font-size:9px;color:var(--muted);display:flex;gap:5px;align-items:center;margin-right:6px}.composer-foot{display:flex;align-items:center;justify-content:center;gap:5px;color:var(--muted);font-size:9px;text-align:center;padding-top:8px}.composer-foot .icon{width:11px;height:11px}.chat-aside{position:sticky;top:104px;display:flex;flex-direction:column;gap:15px}.chat-aside .panel{padding:21px 19px}.chat-aside h3{font-size:12px;margin-bottom:15px;letter-spacing:-.01em}.aside-total{font-size:26px;letter-spacing:-.04em;font-weight:710;line-height:1.2}.aside-total small{font-size:10px;color:var(--muted);letter-spacing:0;font-weight:500}.mini-meter{margin-top:20px}.mini-meter-label{display:flex;justify-content:space-between;margin-bottom:7px;font-size:10px;gap:10px}.bar-track{height:5px;border-radius:5px;background:var(--surface-soft);overflow:hidden}.bar-fill{height:100%;min-width:3px;background:var(--accent);border-radius:5px}.aside-footer{font-size:10px;color:var(--muted);margin-top:18px;padding-top:14px;border-top:1px solid var(--border)}.steps{display:flex;flex-direction:column;gap:15px}.step{display:flex;gap:10px;font-size:10px;line-height:1.6;color:var(--muted)}.step-num{width:22px;height:22px;display:flex;align-items:center;justify-content:center;background:var(--surface-soft);border:1px solid var(--border);border-radius:7px;font-size:9px;color:var(--accent);flex-shrink:0}.step strong{display:block;color:var(--ink);font-size:10px}.aside-decision{background:color-mix(in srgb,var(--indigo) 7%,var(--surface));border:1px solid color-mix(in srgb,var(--indigo) 17%,var(--border));border-radius:16px;padding:18px}.aside-decision .icon{color:var(--indigo);width:19px;height:19px;margin-bottom:10px}.aside-decision strong{font-size:11px;display:block;margin-bottom:7px}.aside-decision p{font-size:10px;color:var(--muted);line-height:1.6;margin-bottom:12px}.text-link{font-size:11px;color:var(--accent);display:inline-flex;gap:6px;align-items:center;font-weight:600;padding:0}.text-link .icon{width:14px;height:14px}.draft-card{background:var(--surface);border:1px solid var(--border);border-radius:17px;padding:20px;width:100%;max-width:600px;box-shadow:var(--shadow);animation:appear .2s ease}.draft-card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:17px}.draft-card h3{margin:0;font-size:14px}.draft-amount{font-size:30px;font-weight:720;letter-spacing:-.04em;margin-bottom:17px}.draft-amount small{font-size:10px;color:var(--muted);font-weight:500;letter-spacing:0}.fields-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.field{display:flex;flex-direction:column;gap:5px;min-width:0;font-size:10px;color:var(--muted);font-weight:550}.field.full{grid-column:1/-1}.field input,.field select,.field textarea,.filter-input,.filter-select{width:100%;border:1px solid var(--border);border-radius:9px;background:var(--surface);color:var(--ink);font-size:12px;padding:9px 10px;min-height:36px}.field input:focus,.field select:focus,.field textarea:focus,.filter-input:focus{border-color:var(--accent);outline:none;box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 10%,transparent)}.field input:disabled,.field select:disabled{background:var(--surface-soft);color:var(--muted);opacity:.8}.field textarea{min-height:70px;resize:vertical}.field .field-hint{font-size:9px;color:var(--muted);font-weight:400}.draft-card-actions{margin-top:18px;display:flex;gap:8px}.draft-card-actions .btn-primary{flex:1}.form-alert{border-radius:9px;background:var(--amber-soft);color:var(--amber);padding:10px 12px;font-size:11px;margin:13px 0;line-height:1.5}.file-chip{display:flex;align-items:center;gap:8px;font-size:10px;background:var(--surface-soft);border:1px solid var(--border);border-radius:9px;padding:9px 10px;margin:7px 0;overflow:hidden}.file-chip .icon{color:var(--accent);width:16px;height:16px;flex-shrink:0}.file-chip span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-chip button{margin-left:auto;color:var(--muted);padding:0;display:flex;align-items:center}.file-preview-btn{width:100%;text-align:left}.success-card{background:var(--accent-soft);border:1px solid color-mix(in srgb,var(--accent) 18%,var(--border));border-radius:13px;padding:15px;display:flex;gap:11px;align-items:flex-start;font-size:12px}.success-card>.icon{color:var(--accent);width:19px;height:19px;margin-top:2px}.success-card strong{display:block;margin-bottom:4px}.success-card p{font-size:11px;margin-bottom:10px;color:var(--muted)}.success-actions{display:flex;gap:14px}.inline-file-list{margin-bottom:9px}.empty-chat{display:none}
.filters{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:22px;align-items:center}.filter-select{width:auto;min-width:145px;height:40px;font-size:11px;box-shadow:0 2px 3px rgba(24,57,72,.02)}.search-field{position:relative;flex:1;min-width:180px}.search-field .icon{position:absolute;width:16px;height:16px;left:12px;top:12px;color:var(--muted)}.filter-input{padding-left:36px;height:40px;font-size:11px}.filter-clear{font-size:10px;color:var(--accent);padding:6px}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:24px}.metric{padding:19px 17px;text-align:left;display:flex;gap:13px;align-items:flex-start;transition:transform .15s}.metric:hover{transform:translateY(-2px)}.metric-icon{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:12px;background:var(--accent-soft);color:var(--accent);flex-shrink:0}.metric-icon.amber{background:var(--amber-soft);color:var(--amber)}.metric-icon.indigo{background:color-mix(in srgb,var(--indigo) 13%,var(--surface));color:var(--indigo)}.metric-icon .icon{width:19px;height:19px}.metric-label{font-size:10px;color:var(--muted);margin-bottom:6px}.metric-value{font-size:23px;line-height:1.2;letter-spacing:-.04em;font-weight:720}.metric-meta{font-size:9px;color:var(--muted);margin-top:5px}.summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:22px}.chart-panel{padding:23px}.distribution-row{display:flex;align-items:center;gap:12px;margin:19px 0}.distribution-icon{width:34px;height:34px;display:flex;align-items:center;justify-content:center;border-radius:11px;color:var(--accent);background:var(--accent-soft)}.distribution-icon .icon{width:17px;height:17px}.distribution-body{flex:1;min-width:0}.distribution-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:8px;font-size:11px}.distribution-head strong{font-size:12px;font-weight:650}.distribution-head small{color:var(--muted);font-size:10px}.category-row{display:grid;grid-template-columns:98px 1fr 80px;gap:14px;align-items:center;margin:16px 0;font-size:11px}.category-row .money{text-align:right;font-size:11px;font-weight:600}.category-row .bar-track{height:7px}.recent-panel{padding:22px}.recent-list{display:flex;flex-direction:column;gap:0}.recent-row{display:flex;gap:12px;align-items:center;text-align:left;border-top:1px solid var(--border);padding:13px 0;width:100%}.recent-row:first-child{border-top:0}.recent-row .recent-body{flex:1;min-width:0}.recent-row strong{display:block;font-size:12px;font-weight:600}.recent-row small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.recent-row>.money{font-size:12px;font-weight:650}.recent-row:hover .recent-body strong{color:var(--accent)}.hint-line{display:flex;gap:7px;font-size:10px;color:var(--muted);align-items:center;margin:15px 0}.hint-line .icon{width:14px;height:14px;flex-shrink:0}.table-panel{overflow:hidden}.table-toolbar{display:flex;justify-content:space-between;align-items:center;padding:17px 20px;gap:10px;border-bottom:1px solid var(--border)}.table-toolbar strong{font-size:12px;font-weight:600}.table-toolbar small{font-size:10px;color:var(--muted)}.table-wrap{overflow-x:auto}.expense-table{width:100%;border-collapse:collapse;font-size:10px;white-space:nowrap}.expense-table th{text-align:left;font-size:9px;font-weight:650;color:var(--muted);background:var(--surface-soft);padding:13px 12px;border-bottom:1px solid var(--border);line-height:1.4}.expense-table td{padding:16px 12px;border-bottom:1px solid var(--border);max-width:190px}.expense-table tr:last-child td{border-bottom:0}.expense-table tbody tr{cursor:pointer;transition:background .1s}.expense-table tbody tr:hover{background:var(--accent-soft)}.expense-table .folio{font-size:9px;color:var(--muted);font-variant-numeric:tabular-nums;letter-spacing:-.02em}.expense-table .desc-cell{font-weight:600;max-width:160px;overflow:hidden;text-overflow:ellipsis}.expense-table .amount-cell{text-align:right;font-weight:650}.expense-table td .badge{font-size:9px;padding:4px 7px}.table-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 20px;border-top:1px solid var(--border);font-size:10px;color:var(--muted)}.mobile-expenses{display:none}.empty-state{padding:55px 25px;text-align:center;color:var(--muted)}.empty-state .icon{width:32px;height:32px;color:var(--accent);margin-bottom:14px}.empty-state h3{color:var(--ink);font-size:16px;margin-bottom:8px}.empty-state p{font-size:12px;line-height:1.7}.summary-note{display:flex;gap:15px;align-items:center;background:var(--accent-soft);padding:17px 20px;border-radius:14px;margin-top:20px;font-size:11px;line-height:1.7;color:var(--accent-dark)}.summary-note .icon{width:22px;height:22px;flex-shrink:0}
.overlay{position:fixed;inset:0;background:rgba(15,30,42,.26);backdrop-filter:blur(3px);z-index:80;display:flex;justify-content:flex-end;animation:appear .15s}.drawer{height:100dvh;width:460px;max-width:100%;background:var(--surface);border-left:1px solid var(--border);box-shadow:-10px 0 50px rgba(18,39,53,.1);display:flex;flex-direction:column;animation:slidein .2s}.drawer-head{display:flex;align-items:center;justify-content:space-between;padding:22px 25px;border-bottom:1px solid var(--border);gap:12px}.drawer-head h2{font-size:16px;letter-spacing:-.015em;margin:0}.drawer-body{padding:23px 25px;overflow-y:auto;flex:1}.drawer-title{font-size:23px;font-weight:700;letter-spacing:-.035em;margin:8px 0}.drawer-amount{font-size:34px;letter-spacing:-.045em;font-weight:740;margin:0 0 13px}.drawer-amount small{font-size:11px;letter-spacing:0;color:var(--muted);font-weight:500}.detail-grid{margin:21px 0;border-top:1px solid var(--border)}.detail-row{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:11px 0;border-bottom:1px solid var(--border);font-size:11px}.detail-row dt{color:var(--muted)}.detail-row dd{margin:0;text-align:right;font-weight:500}.detail-section{margin:24px 0}.detail-section h3{font-size:12px;margin-bottom:10px}.detail-section p{font-size:11px;color:var(--muted);line-height:1.7}.detail-section .text-link{font-size:10px}.attachments-placeholder{border:1px dashed var(--border);padding:17px;border-radius:11px;text-align:center;color:var(--muted);font-size:10px}.drawer-foot{padding:16px 25px;border-top:1px solid var(--border);display:flex;gap:8px;justify-content:space-between;background:var(--surface)}.drawer-foot .btn{flex:1}.history-item{font-size:10px;color:var(--muted);position:relative;padding:0 0 13px 17px;border-left:1px solid var(--border);margin-left:3px}.history-item:before{position:absolute;content:"";left:-3px;top:5px;width:5px;height:5px;border-radius:50%;background:var(--accent)}.history-item strong{display:block;color:var(--ink);font-weight:500;font-size:10px}.history-item small{font-size:9px}.modal-overlay{justify-content:center;align-items:center;padding:20px}.modal{width:450px;max-width:100%;max-height:90dvh;overflow:auto;border-radius:23px;background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow);padding:24px}.modal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.modal-header h2{font-size:19px;margin:0}.modal p{font-size:12px;line-height:1.7;color:var(--muted)}.modal .btn-row{display:flex;gap:9px;justify-content:flex-end;margin-top:20px}.modal-preview{width:700px}.receipt-preview{background:var(--surface-soft);border:1px solid var(--border);border-radius:13px;padding:25px;text-align:center}.receipt-preview p{font-size:11px;margin:8px 0}.receipt-preview .receipt-amount{font-size:26px;color:var(--ink);font-weight:700}.file-image{max-width:100%;max-height:60vh;display:block;margin:auto;border-radius:10px}.file-pdf{width:100%;height:60vh;border:1px solid var(--border);border-radius:10px}.toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,20px);background:var(--ink);color:var(--surface);padding:12px 18px;border-radius:12px;box-shadow:var(--shadow);z-index:120;font-size:12px;opacity:0;pointer-events:none;transition:.2s;max-width:calc(100% - 30px);text-align:center}.toast.show{opacity:1;transform:translate(-50%,0)}.version-mark{font-size:9px;letter-spacing:.07em;color:var(--muted);padding:5px 10px;opacity:.7}.help-list{display:flex;flex-direction:column;gap:15px;margin-top:20px}.help-list strong{font-size:12px;display:block;color:var(--ink);margin-bottom:4px}.help-list p{font-size:11px;margin:0}.drop-active .composer{outline:2px dashed var(--accent);background:var(--accent-soft)}
@keyframes appear{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@keyframes slidein{from{transform:translateX(35px);opacity:.5}to{transform:translateX(0);opacity:1}}
@media(min-width:1600px){.workspace{padding:34px 48px}.chat-layout{grid-template-columns:minmax(0,1fr) 285px;gap:40px}.chat-intro,.chat-feed,.chat-composer-wrap{max-width:760px}.chat-intro{padding-top:35px}}
@media(max-width:1250px){.sidebar{width:195px}.workspace{margin-left:271px;width:calc(100% - 271px);padding:25px 24px}.sidebar-collapsed .sidebar{transform:translateX(-195px)}.chat-layout{grid-template-columns:minmax(0,1fr) 220px;gap:20px}.metric{gap:9px;padding:16px 13px}.metric-icon{width:30px;height:30px;border-radius:10px}.metric-value{font-size:20px}.metric-label{font-size:9px}.metrics{gap:10px}.chat-intro h2{font-size:29px}.chat-aside .panel{padding:18px 15px}.page-head h1{font-size:25px}.expense-table td{padding:14px 10px}.expense-table th{padding:12px 10px}.summary-grid{gap:14px}.chart-panel{padding:20px}}
@media(max-width:1050px){.chat-aside{display:none}.chat-layout{grid-template-columns:minmax(0,1fr)}.workspace{padding:25px 22px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.metric-value{font-size:24px}.metric-label{font-size:10px}.metric{padding:18px}.metric-icon{width:35px;height:35px}.chat-intro{padding-top:17px}.chat-composer-wrap{bottom:20px}.page-actions .btn{font-size:11px}.summary-grid{grid-template-columns:1fr}.category-row{grid-template-columns:110px 1fr 85px}}
@media(max-width:760px){.topbar{height:66px;padding:0 17px;gap:8px}.brand{font-size:23px;gap:10px}.brandmark{transform:scale(.87);transform-origin:left center;width:27px}.top-left{gap:10px}.top-right{gap:3px}.demo-pill{font-size:9px;padding:5px 8px;gap:5px}.demo-pill .demo-long{display:none}.demo-dot{width:5px;height:5px}.profile-select{padding:3px 7px 3px 3px;gap:4px}.profile-select select{font-size:10px;max-width:65px}.avatar{width:27px;height:27px;font-size:10px}.top-right .icon-btn{width:31px;height:31px}.top-right .help-top{display:none}.rail{display:none}.sidebar{top:66px;left:0;width:244px;bottom:71px;transform:translateX(-100%);box-shadow:5px 0 30px rgba(18,39,53,.1);background:var(--surface)}.mobile-sidebar-open .sidebar{transform:translateX(0)}.sidebar-collapsed .sidebar{transform:translateX(-100%)}.mobile-sidebar-open.sidebar-collapsed .sidebar{transform:translateX(0)}.sidebar-toggle,.sidebar-collapsed .sidebar-toggle{display:inline-flex}.layout{min-height:calc(100dvh - 66px)}.workspace,.sidebar-collapsed .workspace{margin:0;width:100%;padding:22px 17px 95px}.page-head{margin-bottom:20px;gap:12px}.page-head h1{font-size:23px;margin-bottom:6px}.page-head p{font-size:11px;max-width:260px}.page-actions{gap:5px}.page-actions .btn{padding:9px 10px;min-height:36px;font-size:10px}.page-actions .btn .icon{width:15px;height:15px}.page-actions .mobile-hide{display:none}.mobile-nav{display:grid;grid-template-columns:repeat(4,1fr);position:fixed;bottom:0;left:0;right:0;z-index:40;border-top:1px solid var(--border);background:var(--glass);backdrop-filter:blur(24px);padding:6px 10px max(6px,env(safe-area-inset-bottom));min-height:70px;box-shadow:0 -4px 20px rgba(18,39,53,.025)}.mobile-nav button{color:var(--muted);border-radius:12px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;padding:8px 5px;font-size:9px;position:relative}.mobile-nav button .icon{width:21px;height:21px}.mobile-nav button.active{color:var(--accent);background:var(--accent-soft);font-weight:650}.mobile-nav button .nav-dot{width:4px;height:4px;border-radius:50%;background:var(--indigo);position:absolute;top:6px;right:25%}.chat-intro{padding:7px 4px 0;margin-bottom:14px}.intro-mark{width:42px;height:42px;border-radius:14px;margin-bottom:20px}.intro-mark .icon{width:23px;height:23px}.chat-intro h2{font-size:29px;max-width:320px}.chat-intro p{font-size:12px;line-height:1.7}.scenario-label{margin-top:20px;font-size:9px}.scenario-grid{gap:8px}.scenario-card{padding:11px 10px;gap:8px;border-radius:11px}.scenario-card strong{font-size:10px}.scenario-card span{font-size:9px}.scenario-card .icon{width:15px;height:15px}.chat-feed{padding-top:5px;gap:15px;padding-bottom:15px}.chat-message{font-size:12px;max-width:93%}.chat-message.assistant{max-width:100%;gap:8px}.assistant-symbol{width:25px;height:25px}.chat-message.user{padding:11px 13px}.chat-composer-wrap{bottom:80px;margin-top:5px}.composer{padding:10px;border-radius:15px}.composer textarea{font-size:13px;min-height:46px}.composer-foot{font-size:8px;padding-top:7px}.composer-context{display:none}.attachment-actions button{font-size:9px;padding:6px 5px}.attachment-actions{gap:3px}.attachment-actions .icon{width:14px;height:14px}.send-btn{width:34px;height:34px}.draft-card{padding:16px;border-radius:14px}.draft-card-head{margin-bottom:14px}.draft-card h3{font-size:13px}.draft-amount{font-size:29px;margin-bottom:15px}.fields-grid{gap:11px}.field{font-size:10px}.field input,.field select,.field textarea{font-size:12px;padding:9px 8px}.draft-card-actions .btn{font-size:11px;padding:10px}.metrics{gap:10px;margin-bottom:18px}.metric{padding:14px 12px;gap:8px;border-radius:15px}.metric-icon{width:28px;height:28px;border-radius:9px}.metric-icon .icon{width:16px;height:16px}.metric-label{font-size:9px;line-height:1.45;min-height:25px;margin-bottom:3px}.metric-value{font-size:21px}.metric-meta{font-size:8px}.filters{gap:8px;margin-bottom:18px}.filter-select{min-width:0;flex:1;font-size:10px;height:37px;padding:8px}.search-field{flex-basis:100%;min-width:0}.filter-input{height:37px;font-size:11px}.search-field .icon{top:11px}.filter-clear{margin-left:auto;font-size:10px}.chart-panel{padding:20px 17px;border-radius:16px}.panel-title h2{font-size:17px}.panel-title span{font-size:10px}.distribution-head{font-size:10px}.distribution-head strong{font-size:12px}.category-row{grid-template-columns:91px 1fr 77px;gap:9px;font-size:10px}.category-row .money{font-size:10px}.recent-panel{padding:18px 16px;border-radius:16px}.recent-row strong{font-size:11px}.recent-row small{font-size:9px}.recent-row>.money{font-size:11px}.summary-note{padding:15px;align-items:flex-start;font-size:10px;gap:11px;border-radius:13px}.summary-note .icon{width:18px;height:18px}.table-wrap{display:none}.table-toolbar{padding:14px 15px}.table-toolbar strong{font-size:11px}.table-toolbar small{font-size:9px}.mobile-expenses{display:block;padding:0 14px}.mobile-expense{padding:15px 0;border-bottom:1px solid var(--border);display:block;width:100%;text-align:left}.mobile-expense:last-child{border:0}.mobile-expense-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.mobile-expense-top strong{font-size:12px;font-weight:600}.mobile-expense-top .money{font-size:13px;font-weight:650}.mobile-expense-meta{display:flex;gap:7px;font-size:9px;color:var(--muted);margin:6px 0 9px;align-items:center}.mobile-expense-badges{display:flex;gap:6px;align-items:center}.mobile-expense-badges .badge{font-size:8px}.table-footer{padding:13px 15px;font-size:9px}.table-footer .text-link{font-size:10px}.drawer{width:100%;border:0}.drawer-head{padding:18px 20px}.drawer-head h2{font-size:15px}.drawer-body{padding:20px}.drawer-foot{padding:14px 20px max(14px,env(safe-area-inset-bottom))}.drawer-amount{font-size:32px}.modal{padding:22px 20px}.modal-overlay{padding:16px}.toast{bottom:87px;font-size:11px;padding:11px 15px}.hint-line{font-size:9px;align-items:flex-start}.version-mark{display:none}.mobile-menu-scrim{position:fixed;inset:66px 0 70px;background:rgba(15,30,42,.2);z-index:18;display:block}.sidebar-title{padding-bottom:12px}.sidebar-divider{margin:17px 8px}.entity-item{padding:11px}.side-note{font-size:9px}}
@media(max-width:370px){.demo-pill{display:none}.chat-intro h2{font-size:27px}.scenario-card{gap:6px}.scenario-card .icon{display:none}.workspace{padding-left:13px;padding-right:13px}.topbar{padding-left:13px;padding-right:13px}.metric{padding:13px 10px}.metric-icon{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

@media(max-width:760px){.field input,.field select,.field textarea,.composer textarea{font-size:16px}.chat-composer-wrap{bottom:calc(80px + env(safe-area-inset-bottom))}.toast{bottom:calc(87px + env(safe-area-inset-bottom))}}

@media (prefers-color-scheme: dark) {:root[data-theme="auto"]{color-scheme:dark;--bg:#101a23;--surface:#182530;--surface-soft:#1c2d39;--ink:#e7f0f4;--muted:#9aacb7;--border:#2b3d4a;--accent:#55c8bb;--accent-dark:#80ddd2;--accent-soft:#183c3c;--amber:#e8bb66;--amber-soft:#3b3425;--indigo:#a19dde;--glass:rgba(24,37,48,.88);--shadow:0 10px 30px rgba(0,0,0,.12);--red:#f08d8d}}
