*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}:root{--font: "Inter", system-ui, -apple-system, sans-serif;--bg: #f7fafe;--panel: #ffffff;--panel-alt: #f4f8fd;--border: #dbe6f2;--border-strong: #c7d7ea;--text: #13263a;--text-secondary: #5f7284;--text-muted: #90a0ad;--input-bg: #fcfdff;--accent-blue: #106eea;--accent-green: #106eea;--accent-amber: #106eea;--accent-purple: #8b5cf6;--accent-red: #ef4444;--primary-btn-bg: #106eea;--primary-btn-hover: #0d58b8;--user-bubble-from: #0f172a;--user-bubble-to: #106eea;--assistant-bg: #f9fbff;--assistant-border: #dbe6f2;--sidebar-w: 264px}.dark{--bg: #08111f;--panel: #0d1728;--panel-alt: #132033;--border: #22344d;--border-strong: #314865;--text: #eef4fb;--text-secondary: #bfd0e4;--text-muted: #94a3b8;--input-bg: #0f1b2d;--user-bubble-from: #0d58b8;--user-bubble-to: #106eea;--assistant-bg: #0f1b2d;--assistant-border: #22344d}html,body,#root{height:100%;font-family:var(--font);background:var(--bg);color:var(--text)}.app-root{display:flex;height:100vh;background:linear-gradient(180deg,#106eea08,#106eea00),var(--bg);overflow:hidden}.sidebar{width:var(--sidebar-w);min-width:var(--sidebar-w);padding:16px;border-right:1px solid var(--border);background:#fffffff5;display:flex;flex-direction:column;overflow-y:auto;transition:width .2s,min-width .2s,padding .2s}.dark .sidebar{background:linear-gradient(180deg,#0d1728fa,#09111ffa);border-right-color:#314865b8}.sidebar.hidden{width:0;min-width:0;padding:0;overflow:hidden}.sidebar-brand{display:flex;align-items:center;gap:10px;padding-bottom:12px;margin-bottom:14px;border-bottom:1px solid var(--border)}.sidebar-brand-icon{width:34px;height:34px;border-radius:10px;background:#eef4ff;display:flex;align-items:center;justify-content:center;border:1px solid #d7e3fb}.dark .sidebar-brand-icon{background:#1e3a8a47;border-color:#60a5fa2e}.dark .sidebar-brand{border-bottom-color:#314865b8}.dark .sidebar-brand-text h1{color:#f8fbff}.dark .sidebar-brand-text p{color:#9db4cc}.sidebar-brand-text h1{font-size:20px;font-weight:800;line-height:1.2}.sidebar-brand-text p{font-size:11px;color:var(--text-secondary)}.invia-mark{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px}.invia-mark-sidebar{width:17px;height:17px}.menu-item{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;margin-bottom:4px;cursor:pointer;border:none;background:transparent;width:100%;text-align:left;font:inherit;color:var(--text-secondary);font-weight:600;font-size:13px;transition:background .15s,color .15s,border-color .15s}.menu-item:hover{background:#106eea0f;color:#0d58b8}.menu-item.active-blue{background:#106eea1a;color:var(--accent-blue);font-weight:700;box-shadow:inset 0 0 0 1px #106eea14}.menu-item.active-purple{background:#8b5cf624;color:var(--accent-purple);font-weight:700}.menu-item.active-amber{background:#f59e0b24;color:#d97706;font-weight:700}.menu-item.active-green{background:#10b9811f;color:var(--accent-green);font-weight:700}.dark .menu-item{color:#b8c9dd}.dark .menu-item:hover{background:#106eea1f;color:#f4f8fc}.dark .menu-item.active-blue{background:#106eea2e;color:#fff;box-shadow:inset 0 0 0 1px #60a5fa47}.menu-icon{width:36px;height:36px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:16px}.menu-icon.blue{background:#edf4ff;color:#106eea;border:1px solid #d8e8fb}.dark .menu-icon.blue{background:#1e3a8a59;color:#93c5fd;border-color:#60a5fa2e}.menu-icon.purple{background:#f3e8ff}.dark .menu-icon.purple{background:#581c8759}.menu-icon.amber{background:#fffbeb}.dark .menu-icon.amber{background:#92400e59}.menu-icon.green{background:#ecfdf5}.dark .menu-icon.green{background:#064e3b59}.menu-icon.gray{background:#f3f4f6}.dark .menu-icon.gray{background:#374151}.menu-icon.red{background:#fef2f2}.dark .menu-icon.red{background:#7f1d1d59}.menu-spacer{flex:1}.menu-item.danger{color:var(--accent-red);font-weight:700}.main-area{flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;background:linear-gradient(180deg,#106eea06,#106eea00),var(--bg)}.dark .main-area{background:radial-gradient(circle at top right,rgba(16,110,234,.12),transparent 30%),linear-gradient(180deg,#106eea0a,#08111f00),var(--bg)}.top-header{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;border-bottom:1px solid var(--border);background:#ffffffeb}.dark .top-header{background:#0d1728eb;border-bottom-color:#314865b8}.top-header-left{display:flex;align-items:center;min-width:0}.top-header h2{font-size:17px;font-weight:700}.dark .top-header h2{color:#f8fbff}.sidebar-fab{display:none;border:1px solid var(--border-strong);border-radius:10px;width:40px;height:40px;background:#fffffff5;color:var(--text-secondary);font-size:18px;font-weight:700;cursor:pointer;box-shadow:0 8px 20px #0f172a2e}.dark .sidebar-fab{background:#0d1728fa;border-color:#314865e6;color:#dbeafe}.theme-toggle-btn{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;white-space:nowrap}.dark .theme-toggle-btn{background:#0f1b2d;border-color:#314865cc;color:#f8fbff}.login-screen{height:100vh;display:flex;align-items:center;justify-content:center;background:#f5f8fc;padding:24px}.login-shell{width:min(1120px,100%);min-height:680px;display:grid;grid-template-columns:1.08fr .92fr;border-radius:28px;overflow:hidden;border:1px solid rgba(199,213,210,.9);box-shadow:0 30px 90px #0f172a1f;background:#fff}.login-brand-panel{position:relative;padding:38px 38px 34px;display:flex;flex-direction:column;justify-content:space-between;color:#13263a;background:linear-gradient(180deg,#ffffff9e,#ffffffc7),url(/hero-bg.jpg) center center / cover no-repeat}.login-brand-panel:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#ffffff61,#ffffff29),linear-gradient(180deg,#106eea0d,#106eea05);pointer-events:none}.login-brand-top,.login-brand-copy,.login-brand-footer{position:relative;z-index:1}.login-brand-top{display:flex;align-items:center;gap:16px}.login-brand-mark{width:54px;height:54px;border-radius:16px;display:flex;align-items:center;justify-content:center;background:#ffffffc7;border:1px solid rgba(16,110,234,.14);box-shadow:0 10px 24px #0f172a14}.invia-mark-login{width:24px;height:24px}.login-brand-top h1{font-size:34px;font-weight:800;letter-spacing:-.03em}.login-brand-top p{margin-top:4px;color:#13263ac7;font-size:14px}.login-kicker{display:inline-block;margin-bottom:18px;color:#106eea;font-size:11px;font-weight:800;letter-spacing:.18em;text-transform:uppercase}.login-brand-copy{max-width:460px;padding:34px 0 24px}.login-brand-copy h2{font-size:clamp(34px,4vw,52px);line-height:.98;letter-spacing:-.045em;font-weight:800;margin-bottom:18px;color:#13263a}.login-brand-copy p{max-width:420px;color:#13263ac2;font-size:15px;line-height:1.75}.login-brand-footer{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.login-brand-footer div{padding-top:16px;border-top:1px solid rgba(19,38,58,.12)}.login-brand-footer strong{display:block;margin-bottom:6px;color:#13263a;font-size:13px}.login-brand-footer span{display:block;color:#13263ab8;font-size:13px;line-height:1.55}.login-card{width:100%}.login-card-modern{display:flex;flex-direction:column;justify-content:center;padding:54px 52px;background:#fff}.login-card-header h3{font-size:32px;font-weight:800;letter-spacing:-.035em;color:#13263a}.login-card-header p{margin-top:8px;color:#66788a;font-size:14px;line-height:1.6}.login-form-grid{margin-top:22px}.login-card label{display:block;font-size:11px;color:#6b7f90;font-weight:800;margin-bottom:7px;margin-top:16px;letter-spacing:.08em;text-transform:uppercase}.login-card input{width:100%;border:1px solid #d5dfdd;border-radius:14px;padding:15px 16px;background:#fbfcfc;font:inherit;color:#13263a}.login-card input::placeholder{color:#94a3b0}.login-card input:focus{outline:none;border-color:#106eea;box-shadow:0 0 0 3px #106eea24}.login-error{color:#b91c1c;font-size:12px;background:#fef2f2;border:1px solid #fecaca;border-radius:12px;padding:10px 12px;margin-top:14px}.login-success{color:#0d58b8;font-size:12px;background:#eff6ff;border:1px solid #bfdbfe;border-radius:12px;padding:10px 12px;margin-top:14px}.btn-primary{width:100%;padding:13px 16px;border:none;border-radius:14px;background:var(--primary-btn-bg);color:#f8fafc;font-weight:800;font:inherit;cursor:pointer;margin-top:16px;transition:background-color .15s,transform .15s,box-shadow .15s}.btn-primary:hover:not(:disabled){background:var(--primary-btn-hover);transform:translateY(-1px);box-shadow:0 10px 20px #106eea33}.btn-primary:disabled{opacity:.5;cursor:not-allowed}.login-submit{margin-top:22px}.login-helper-block{margin-top:16px;padding-top:16px;border-top:1px solid #e2e8f0}.login-helper-title{color:#106eea;font-size:13px;font-weight:700}.login-secondary-input{width:100%;margin-top:12px;border:1px solid #d5dfdd;border-radius:14px;padding:14px 16px;background:#fbfcfc;font:inherit;color:#13263a}.login-secondary-input::placeholder{color:#94a3b0}.login-secondary-input:focus{outline:none;border-color:#106eea;box-shadow:0 0 0 3px #106eea24}.login-reset-submit{width:auto;min-width:220px;margin-top:12px;padding:11px 18px;font-size:14px;border-radius:12px}.login-footnote{display:grid;gap:8px;margin-top:18px;color:#738597;font-size:12px;line-height:1.55}.login-footnote span:last-child{color:#106eea}.btn-secondary{padding:10px 16px;border:1px solid var(--border-strong);border-radius:10px;background:var(--panel);color:var(--text);font:inherit;font-weight:600;cursor:pointer;transition:background .15s}.btn-secondary:hover{background:var(--panel-alt)}.btn-icon{width:36px;height:36px;border-radius:10px;border:1px solid var(--border-strong);background:var(--input-bg);display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:16px;color:var(--text-secondary)}.btn-icon:hover{background:var(--panel-alt)}@media(max-width:920px){.login-shell{min-height:auto;grid-template-columns:1fr}.login-brand-panel{padding:28px 24px 22px}.login-brand-copy{padding:24px 0 18px}.login-brand-copy h2{font-size:34px}.login-card-modern{padding:30px 24px 32px}}@media(max-width:640px){.login-screen{padding:14px}.login-shell{border-radius:22px}.login-brand-footer{grid-template-columns:1fr}.login-brand-top h1,.login-card-header h3{font-size:28px}}.chat-root{flex:1;display:flex;flex-direction:column;border-top:1px solid var(--border);min-height:0}.chat-header{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;border-bottom:1px solid var(--border);background:var(--panel)}.dark .chat-header{border-bottom-color:#314865b8;background:#0d1728c7}.chat-header-left{display:flex;align-items:center;gap:8px}.chat-header-icon{width:24px;height:24px;border-radius:12px;background:#edf4ff;color:#106eea;border:1px solid #d8e8fb;display:flex;align-items:center;justify-content:center;font-size:12px}.dark .chat-header-icon{background:#106eea24;color:#93c5fd;border-color:#60a5fa33}.chat-header h3{font-size:14px;font-weight:700}.dark .chat-header h3{color:#f8fbff}.chat-header-actions{display:flex;align-items:center;gap:8px}.chat-reset{border:1px solid var(--border);background:var(--panel-alt);color:var(--text-secondary);border-radius:8px;padding:6px 10px;font:inherit;font-size:12px;font-weight:700;cursor:pointer}.chat-reset:hover{background:var(--panel)}.dark .chat-reset{background:#0f1b2de0;border-color:#314865cc;color:#d8e7f5}.dark .chat-reset:hover{background:#132033f5}.chat-reset:disabled{opacity:.6;cursor:not-allowed}.chat-close{width:28px;height:28px;border-radius:8px;border:1px solid var(--border);background:var(--panel-alt);display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:14px;color:var(--text-secondary)}.dark .chat-close{background:#0f1b2de0;border-color:#314865cc;color:#d8e7f5}.chat-messages{flex:1;overflow-y:auto;padding:12px;display:flex;flex-direction:column;gap:8px;background:linear-gradient(180deg,#106eea05,#fff0)}.welcome-wrap{margin-bottom:10px}.welcome-bubble{background:linear-gradient(135deg,#106eea14,#fffffff5);border:1px solid #cfe0f7;border-radius:16px;padding:16px;margin-bottom:10px;box-shadow:0 10px 30px #106eea0f}.dark .welcome-bubble{background:linear-gradient(135deg,#106eea24,#0f1b2df5);border-color:#60a5fa33;box-shadow:0 16px 32px #02061747}.dark .welcome-bubble h4{color:#f8fbff}.dark .welcome-bubble p{color:#bdd0e6}.welcome-bubble h4{font-size:14px;font-weight:800;margin-bottom:4px}.welcome-bubble p{font-size:12px;color:var(--text-secondary);line-height:1.5}.quick-title{font-size:11px;color:var(--accent-blue);font-weight:800;text-transform:uppercase;letter-spacing:.5px;margin-bottom:6px}.quick-grid{display:flex;flex-wrap:wrap;gap:8px}.quick-btn{border:1px solid #d9e7f7;background:#ffffffeb;border-radius:10px;padding:9px 10px;font:inherit;font-size:12px;font-weight:600;color:var(--text-secondary);cursor:pointer;transition:border-color .15s,background .15s,color .15s,transform .15s}.dark .quick-btn{border-color:#314865cc;background:#0f1b2dd6;color:#d8e7f5}.quick-btn:hover{border-color:var(--accent-blue);color:#0d58b8;background:#fff;transform:translateY(-1px)}.dark .quick-btn:hover{border-color:#60a5fa57;color:#fff;background:#132033fa}.quick-btn:disabled{opacity:.5;cursor:not-allowed}.bubble{max-width:84%;padding:12px;border-radius:14px;line-height:1.5;word-break:break-word}.bubble.user{align-self:flex-end;background:linear-gradient(135deg,var(--user-bubble-from),var(--user-bubble-to));color:#fff;font-weight:600;border-top-right-radius:6px;border-bottom-left-radius:16px;border:1px solid rgba(99,102,241,.35);box-shadow:0 3px 8px #1d4ed83d}.dark .bubble.user{border-color:#818cf873}.bubble.assistant{align-self:flex-start;background:var(--assistant-bg);border:1px solid var(--assistant-border);box-shadow:0 10px 26px #0f172a0d}.dark .bubble.assistant{box-shadow:0 16px 30px #02061738}.bubble.assistant h1,.bubble.assistant h2,.bubble.assistant h3,.bubble.assistant h4{margin:8px 0 4px;font-weight:700}.bubble.assistant h1{font-size:18px}.bubble.assistant h2{font-size:16px}.bubble.assistant h3{font-size:14px}.bubble.assistant p{margin:4px 0;font-size:14px;line-height:1.6}.bubble.assistant ul,.bubble.assistant ol{margin:4px 0;padding-left:20px}.bubble.assistant li{font-size:14px;line-height:1.6}.bubble.assistant pre{background:var(--panel-alt);border:1px solid var(--border);border-radius:8px;padding:10px;overflow-x:auto;font-size:13px;margin:6px 0}.bubble.assistant code{font-size:13px;background:var(--panel-alt);padding:1px 4px;border-radius:4px}.bubble.assistant pre code{background:transparent;padding:0}.bubble.assistant table{width:100%;border-collapse:collapse;margin:8px 0;font-size:13px}.bubble.assistant th,.bubble.assistant td{border:1px solid var(--border);padding:6px 8px;text-align:left}.bubble.assistant th{background:var(--panel-alt);font-weight:700}.bubble.assistant table.chat-sortable-table th.sortable-column{cursor:pointer;-webkit-user-select:none;user-select:none;position:relative;padding-right:20px}.bubble.assistant table.chat-sortable-table th.sortable-column:after{content:"↕";position:absolute;right:7px;top:50%;transform:translateY(-50%);font-size:10px;opacity:.45}.bubble.assistant table.chat-sortable-table th.sortable-column[data-sort-dir=asc]:after{content:"▲";opacity:.9}.bubble.assistant table.chat-sortable-table th.sortable-column[data-sort-dir=desc]:after{content:"▼";opacity:.9}.bubble.assistant table.chat-sortable-table th.sortable-column:focus-visible{outline:2px solid rgba(16,110,234,.38);outline-offset:-2px}.bubble.assistant th.numeric-value,.bubble.assistant td.numeric-value,.bubble.assistant th[align=right],.bubble.assistant td[align=right]{text-align:right;font-variant-numeric:tabular-nums}.bubble.assistant th.negative-value,.bubble.assistant td.negative-value,.bubble.assistant .negative-value{color:#b42318;font-weight:700}.dark .bubble.assistant th.negative-value,.dark .bubble.assistant td.negative-value,.dark .bubble.assistant .negative-value{color:#f87171}.bubble.assistant strong{font-weight:700}.bubble.assistant a{color:var(--accent-blue);text-decoration:underline}.bubble-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:8px}.bubble-icon-btn{width:32px;height:32px;border:1px solid var(--border-strong);border-radius:8px;background:var(--panel);color:var(--text-secondary);font:inherit;font-size:15px;display:flex;align-items:center;justify-content:center;cursor:pointer}.bubble-icon-btn:hover{background:var(--panel-alt)}.bubble-icon-btn:disabled{opacity:.6;cursor:not-allowed}.bubble-share-btn{width:auto;min-width:112px;padding:0 14px;gap:8px;justify-content:center;font-size:13px;font-weight:700;color:#0d58b8;background:linear-gradient(180deg,#106eea1f,#106eea0f);border-color:#106eea47;box-shadow:0 8px 18px #106eea1f}.bubble-share-btn:hover{background:linear-gradient(180deg,#106eea2e,#106eea1a);border-color:#106eea61;color:#0a4b9f;transform:translateY(-1px)}.bubble-share-btn:disabled{transform:none}.bubble-icon-btn.is-active{background:#106eea1f;color:#0d58b8;border-color:#106eea3d}.bubble-icon-btn.is-active.is-negative{background:#ef44441a;color:#dc2626;border-color:#ef444433}.dark .bubble-icon-btn.is-active{background:#106eea33;color:#93c5fd;border-color:#60a5fa47}.dark .bubble-icon-btn.is-active.is-negative{background:#ef444424;color:#fca5a5;border-color:#f871713d}.dark .bubble-share-btn{color:#bfdbfe;background:linear-gradient(180deg,#2563eb57,#1e40af38);border-color:#60a5fa52;box-shadow:0 10px 18px #0f172a47}.dark .bubble-share-btn:hover{color:#eff6ff;background:linear-gradient(180deg,#3b82f661,#2563eb47);border-color:#93c5fd6b}.bubble-action-btn{border:1px solid var(--border-strong);border-radius:8px;background:var(--panel);color:var(--text-secondary);font:inherit;font-size:12px;font-weight:700;padding:6px 10px;cursor:pointer}.bubble-action-btn:hover{background:var(--panel-alt)}.bubble-action-btn:disabled{opacity:.6;cursor:not-allowed}.share-url-box{display:flex;gap:8px;margin-top:8px}.share-url-input{flex:1;border:1px solid var(--border);border-radius:8px;background:var(--panel);color:var(--text);font:inherit;font-size:12px;padding:6px 8px}.share-modal-row{display:flex;gap:8px;align-items:center}.share-error{margin-top:6px;color:var(--accent-red);font-size:12px}.typing-dots{display:flex;align-items:center;gap:5px;padding:4px 0}.typing-dots span{width:8px;height:8px;border-radius:50%;background:var(--accent-blue);animation:typing-bounce .6s ease-in-out infinite}.typing-dots span:nth-child(2){animation-delay:.15s}.typing-dots span:nth-child(3){animation-delay:.3s}@keyframes typing-bounce{0%,to{opacity:.3;transform:scale(.8)}50%{opacity:1;transform:scale(1)}}.composer{display:flex;align-items:flex-end;gap:10px;padding:12px;border-top:1px solid var(--border);background:var(--panel)}.dark .composer{background:#0d1728eb;border-top-color:#314865b8}.composer-input-shell{flex:1;border:1px solid var(--border-strong);border-radius:12px;background:var(--input-bg);min-height:46px;padding:12px;transition:border-color .15s,box-shadow .15s}.composer-input-shell:focus-within{border-color:var(--accent-blue);box-shadow:0 0 0 3px #3b82f61f}.composer textarea{width:100%;display:block;border:0;padding:0;margin:0;min-height:20px;max-height:none;overflow-y:hidden;resize:none;background:transparent;font:inherit;font-size:14px;color:var(--text);line-height:20px}.composer textarea:focus{outline:none;box-shadow:none}.composer textarea::placeholder{color:var(--text-muted)}.send-btn{width:46px;height:46px;border-radius:12px;border:1px solid #c9d6e4;background:#e5ecf4;color:#8fa1b3;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:18px;transition:background-color .15s,color .15s,border-color .15s,box-shadow .15s,opacity .15s;flex-shrink:0}.send-btn:not(:disabled){background:#d2dde9;color:#4e6278;border-color:#b7c7d9;box-shadow:0 10px 20px #0f172a24}.dark .send-btn{border-color:#314865e6;background:#0f1b2de6;color:#8197b0}.dark .send-btn:not(:disabled){background:#18273dfa;color:#d7e7f8;border-color:#476588e6;box-shadow:0 14px 26px #02061759}.send-btn:disabled{background:#e9eff6;color:#9db0c2;border-color:#cfdae7;cursor:not-allowed;box-shadow:none}.dark .send-btn:disabled{background:#0f1b2ddb;color:#6f839a;border-color:#314865bd}.sources-root{flex:1;padding:16px;overflow-y:auto}.sources-toolbar{display:flex;align-items:center;justify-content:space-between;border:1px solid var(--border);border-radius:12px;padding:10px 12px;background:var(--panel);margin-bottom:12px}.sources-toolbar-actions{display:flex;align-items:center;gap:8px}.sources-table{width:100%;border:1px solid var(--border);border-radius:12px;overflow:hidden;background:var(--panel);border-collapse:separate;border-spacing:0}.sources-table thead{background:var(--panel-alt)}.sources-table th{font-size:12px;font-weight:800;padding:10px 12px;text-align:left;border-bottom:1px solid var(--border-strong)}.sources-table td{font-size:12px;padding:10px 12px;border-bottom:1px solid var(--border)}.sources-table tr:last-child td{border-bottom:none}.sources-empty{padding:20px 12px;color:var(--text-muted);font-size:13px}.chart-wrap{border:1px solid var(--border);border-radius:12px;padding:8px;margin-top:8px;background:var(--panel-alt)}.chart-retry-note{margin-top:8px;border:1px dashed var(--border-strong);border-radius:10px;padding:8px 10px;font-size:12px;color:var(--text-muted);background:var(--panel-alt)}.modal-overlay{position:fixed;inset:0;background:#0009;display:flex;align-items:center;justify-content:center;padding:20px;z-index:1000}.modal-dialog{width:100%;max-width:620px;background:var(--panel);border-radius:14px;overflow:hidden}.modal-header{background:linear-gradient(135deg,#0d58b8,#106eea);padding:14px 16px;display:flex;align-items:center;justify-content:space-between}.modal-header h3{color:#fff;font-size:16px;font-weight:800}.modal-header button{background:none;border:none;color:#fff;font-weight:700;cursor:pointer;font:inherit}.modal-body{padding:16px}.modal-body label{display:block;font-size:12px;font-weight:700;margin-bottom:4px;margin-top:10px}.modal-body input,.modal-body textarea{width:100%;border:1px solid var(--border-strong);border-radius:10px;padding:11px 12px;background:var(--input-bg);font:inherit;color:var(--text)}.modal-body textarea{min-height:140px;resize:vertical}.modal-body input:focus,.modal-body textarea:focus{outline:none;border-color:var(--accent-blue)}.modal-actions{display:flex;gap:10px;padding:0 16px 16px}.modal-actions button{flex:1}.type-selector{display:flex;gap:8px;flex-wrap:wrap;margin-top:4px}.type-btn{border:1px solid var(--border-strong);border-radius:10px;padding:8px 10px;background:var(--input-bg);font:inherit;font-size:12px;font-weight:700;color:var(--text-secondary);cursor:pointer}.type-btn.active{border-color:var(--accent-blue);background:#dbeafe;color:#1d4ed8}.dark .type-btn.active{background:#1e3a8a59;color:#93c5fd}.validation-error{color:var(--accent-red);font-size:12px;margin-top:4px}.error-text{color:#b91c1c;padding:8px 16px;font-size:13px}.info-text{color:var(--text-secondary);padding:8px 16px;font-size:13px}.loader-card{margin:16px;padding:18px;border-radius:14px;border:1px solid #bfdbfe;background:#eff6ff;text-align:center}.dark .loader-card{background:#1e3a8a33;border-color:#1e3a8a}.loader-card h4{font-size:15px;font-weight:800;color:#1e3a8a;margin-bottom:4px}.dark .loader-card h4{color:#93c5fd}@media(max-width:900px){.sidebar-fab{display:inline-flex;align-items:center;justify-content:center;position:fixed;top:12px;left:12px;z-index:650}.sidebar-fab.open{left:216px}.top-header{padding-left:64px}.sidebar{position:fixed;top:0;left:0;bottom:0;z-index:500;box-shadow:4px 0 20px #0003}.sidebar.hidden{box-shadow:none}.bubble{max-width:95%}}::-webkit-scrollbar{width:6px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:var(--border);border-radius:3px}::-webkit-scrollbar-thumb:hover{background:var(--text-muted)}.spinner{width:20px;height:20px;border:3px solid var(--border);border-top-color:var(--accent-blue);border-radius:50%;animation:spin .6s linear infinite;display:inline-block}@keyframes spin{to{transform:rotate(360deg)}}.admin-panel{flex:1;padding:20px;overflow-y:auto}.dark .admin-panel{background:radial-gradient(circle at top right,rgba(16,110,234,.12),transparent 26%),linear-gradient(180deg,#08111ffa,#08111f)}.admin-header{margin-bottom:16px}.admin-header h2{font-size:20px;font-weight:800;margin-bottom:10px}.dark .admin-header h2{color:#f8fbff}.admin-tabs{display:flex;gap:6px}.admin-tab{border:1px solid var(--border-strong);border-radius:10px;padding:8px 16px;background:var(--panel);color:var(--text-secondary);font:inherit;font-size:13px;font-weight:700;cursor:pointer;transition:background .15s}.admin-tab:hover{background:#1f6fe514}.admin-tab.active{background:#106eea1a;border-color:#106eea;color:#106eea}.admin-toolbar{display:flex;justify-content:flex-end;margin-bottom:12px}.admin-btn{border:1px solid var(--border-strong);border-radius:10px;padding:9px 16px;background:var(--panel);color:var(--text);font:inherit;font-size:13px;font-weight:700;cursor:pointer;transition:background-color .15s,color .15s,border-color .15s,transform .15s,box-shadow .15s}.admin-btn:hover{background:#94a3b81f}.admin-btn-primary{background:var(--primary-btn-bg);color:#f8fafc;border-color:transparent}.admin-btn-primary:hover:not(:disabled){background:var(--primary-btn-hover);color:#f8fafc;transform:translateY(-1px);box-shadow:0 10px 20px #106eea33}.admin-btn-sm{width:32px;height:32px;border:1px solid var(--border);border-radius:8px;background:var(--panel);cursor:pointer;font-size:14px;display:inline-flex;align-items:center;justify-content:center}.admin-btn-sm:hover{background:var(--panel-alt)}.admin-action-btn{border:1px solid var(--border);border-radius:8px;background:#fff;color:#334155;padding:4px 10px;font:inherit;font-size:12px;font-weight:700;cursor:pointer}.admin-action-btn:hover{background:#f8fafc;color:#0f172a;border-color:#94a3b8}.admin-action-btn:disabled{opacity:.6;cursor:not-allowed}.admin-action-btn-danger{border-color:#dc262673;color:#dc2626}.admin-action-btn-danger:hover{background:#fef2f2f2;color:#b91c1c}.admin-table-wrap{border:1px solid #d8e1ea;border-radius:12px;overflow:hidden;background:#fff;box-shadow:0 12px 28px #0f172a0d}.admin-table{width:100%;border-collapse:separate;border-spacing:0}.admin-table thead{background:#f1f5fb}.admin-table th{font-size:12px;font-weight:800;padding:10px 12px;text-align:left;border-bottom:1px solid #d8e1ea;color:#244154;letter-spacing:.01em}.admin-table td{font-size:13px;padding:10px 12px;border-bottom:1px solid #e7edf3;color:#1f2937}.admin-table tr:last-child td{border-bottom:none}.admin-row-inactive{opacity:.5}.admin-cell-name{font-weight:700}.admin-cell-dsn{font-size:11px;font-family:monospace;max-width:200px;overflow:hidden;text-overflow:ellipsis}.admin-cell-actions{display:flex;gap:6px;flex-wrap:wrap}.admin-empty{text-align:center;color:var(--text-muted);padding:20px}.admin-badge{display:inline-block;padding:2px 8px;border-radius:6px;font-size:11px;font-weight:800;text-transform:uppercase}.admin-badge-admin{background:#106eea1a;color:#0d58b8;border:1px solid rgba(16,110,234,.18)}.admin-badge-user{background:#eef2f7;color:#475569;border:1px solid #d7dee8}.admin-loading{padding:20px;color:var(--text-muted);text-align:center}.admin-error{background:#fef2f2;border:1px solid #fecaca;border-radius:10px;padding:10px 14px;color:#b91c1c;font-size:13px;margin-bottom:12px}.dark .admin-error{background:#7f1d1d33;border-color:#ef44444d;color:#fca5a5}.admin-modal-backdrop{position:fixed;inset:0;background:#0000008c;display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px}.admin-modal{width:100%;max-width:480px;background:#fff;border-radius:14px;border:1px solid #d8e1ea;overflow:hidden;box-shadow:0 24px 70px #0f172a29}.admin-modal-header{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;background:#106eea}.admin-modal-header.is-draggable{cursor:move;-webkit-user-select:none;user-select:none}.admin-modal-header h3{color:#fff;font-size:15px;font-weight:800}.admin-modal-close{background:none;border:none;color:#fff;font-size:18px;cursor:pointer;font-weight:700}.admin-modal-body{padding:16px}.ops-config-modal{max-width:760px}.ops-run-modal{width:min(1520px,96vw);max-width:min(1520px,96vw);height:min(90vh,980px);max-height:92vh;display:flex;flex-direction:column;resize:both}.ops-run-modal-body{flex:1;min-height:0;overflow:auto;padding:18px}.admin-form label{display:block;font-size:12px;font-weight:700;margin-bottom:4px;margin-top:10px;color:#1f2937}.admin-form input,.admin-form select,.admin-form textarea{width:100%;border:1px solid #c8d2df;border-radius:10px;padding:10px 12px;background:#fff;font:inherit;font-size:13px;color:#0f172a}.admin-form textarea{min-height:120px;resize:vertical;line-height:1.5}.admin-form input:focus,.admin-form select:focus,.admin-form textarea:focus{outline:none;border-color:#106eea;box-shadow:0 0 0 3px #106eea1f}.admin-form input[type=checkbox]{width:auto;margin-right:6px}.admin-form-actions{display:flex;gap:10px;margin-top:16px}.admin-form-actions button{flex:1}.prompts-panel{flex:1;padding:20px;overflow-y:auto;display:flex;flex-direction:column;gap:14px}.prompts-header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.prompts-header h2{font-size:20px;font-weight:800;margin-bottom:6px;color:#13263a}.prompts-header p{color:#607589;font-size:14px;max-width:760px;line-height:1.55}.prompts-header-actions{display:flex;gap:8px}.history-panel{flex:1;padding:20px;overflow-y:auto;display:flex;flex-direction:column;gap:14px}.history-header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.history-header h2{font-size:20px;font-weight:800;margin-bottom:6px;color:#13263a}.history-header p{color:#607589;font-size:14px;max-width:760px;line-height:1.55}.history-table-section{display:flex;flex-direction:column;gap:10px}.history-toolbar{display:flex;gap:10px;justify-content:space-between;align-items:center;flex-wrap:wrap}.history-search-form{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.history-session-only{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:#4c647c;-webkit-user-select:none;user-select:none}.history-session-only input[type=checkbox]{width:16px;height:16px}.history-search-input{width:min(500px,84vw);border:1px solid #c8d2df;border-radius:10px;padding:10px 12px;background:#fff;font:inherit;font-size:13px;color:#0f172a}.history-search-input:focus{outline:none;border-color:#106eea;box-shadow:0 0 0 3px #106eea1f}.history-cell-id{font-weight:700;min-width:90px}.history-cell-preview{max-width:560px;color:#4a637a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.history-pager{display:flex;justify-content:flex-end;align-items:center;gap:10px}.history-pager span{font-size:12px;color:#64748b;font-weight:700}.prompts-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.prompt-card{border:1px solid #d8e1ea;border-radius:14px;background:#fff;box-shadow:0 12px 28px #0f172a0d;padding:14px;display:flex;flex-direction:column;gap:10px}.prompt-card-head{display:flex;align-items:center;gap:10px}.prompt-card-emoji{font-size:20px;line-height:1}.prompt-card h3{font-size:15px;font-weight:800;color:#13314b}.prompt-card p{font-size:13px;color:#4a637a;line-height:1.55;flex:1;white-space:pre-wrap}.prompts-admin{display:flex;flex-direction:column;gap:10px}.prompt-question-cell{max-width:420px;white-space:pre-wrap}.prompt-modal{width:min(980px,96vw);max-width:min(980px,96vw);min-width:620px;height:min(760px,86vh);min-height:520px;max-height:92vh;resize:both;overflow:hidden;display:flex;flex-direction:column}.prompt-modal .admin-modal-body{flex:1;overflow:hidden;padding:14px 16px 10px}.prompt-modal .admin-form{height:100%;display:flex;flex-direction:column;min-height:0}.prompt-modal .admin-form .prompt-question-field{display:flex;flex-direction:column;flex:1;min-height:0}.prompt-modal .admin-form .prompt-question-field textarea{flex:1;min-height:200px;resize:none;overflow:auto}.prompt-modal .admin-form-actions{margin-top:8px;margin-bottom:0}.usage-panel{display:flex;flex-direction:column;gap:16px}.usage-toolbar{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.usage-toolbar-copy h3{font-size:18px;font-weight:800;color:#13263a;margin-bottom:4px}.usage-toolbar-copy p{max-width:760px;color:#5f7284;font-size:14px;line-height:1.6}.usage-period-switch{display:flex;gap:8px}.usage-period-btn{border:1px solid #c9d8eb;background:#fff;color:#4c647c;border-radius:999px;padding:8px 12px;font:inherit;font-size:12px;font-weight:700;cursor:pointer}.usage-period-btn.active{background:#106eea1a;color:#106eea;border-color:#106eea3d}.usage-filters{display:grid;grid-template-columns:220px 220px minmax(240px,1fr) auto;gap:12px;align-items:end}.usage-filter-field{display:flex;flex-direction:column;gap:6px}.usage-filter-field span{font-size:12px;font-weight:700;color:#5f7284}.usage-filter-field select,.usage-filter-field input{width:100%;border:1px solid #c9d8eb;border-radius:12px;padding:10px 12px;background:#fff;color:#13263a;font:inherit;font-size:13px}.usage-filter-field select:focus,.usage-filter-field input:focus{outline:none;border-color:#106eea;box-shadow:0 0 0 3px #106eea1f}.usage-filter-clear{border:1px solid #c9d8eb;background:#fff;color:#4c647c;border-radius:12px;padding:10px 14px;font:inherit;font-size:13px;font-weight:700;cursor:pointer}.usage-filter-clear:hover{background:#f7fbff;color:#106eea}.usage-kpi-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.usage-kpi-card,.usage-card{border:1px solid #d8e1ea;border-radius:16px;background:#fffffff5;box-shadow:0 14px 34px #0f172a0d}.usage-kpi-card{padding:16px;display:flex;flex-direction:column;gap:6px}.usage-kpi-card span{color:#678096;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.usage-kpi-card strong{font-size:28px;line-height:1;color:#13263a}.usage-kpi-card small{color:#75879a;font-size:12px}.usage-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:16px}.usage-grid-single{grid-template-columns:minmax(0,1fr)}.usage-card{padding:16px}.usage-card-wide{min-height:290px}.usage-card-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.usage-card-header h4{font-size:16px;font-weight:800;color:#13263a}.usage-card-header span{color:#71859a;font-size:12px}.usage-trend-chart{height:220px;display:grid;grid-template-columns:repeat(auto-fit,minmax(18px,1fr));gap:8px;align-items:end}.usage-trend-bar{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0}.usage-trend-fill{width:100%;min-height:8px;border-radius:999px;background:linear-gradient(180deg,#48a0ff,#106eea);box-shadow:0 10px 20px #106eea2e}.usage-trend-bar span{font-size:10px;color:#7b8ea2}.usage-list,.usage-stack{display:flex;flex-direction:column;gap:10px}.usage-list-row,.usage-stack-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border:1px solid #e3ebf4;border-radius:12px;background:#fbfdff}.usage-list-row strong,.usage-stack-copy strong{color:#13263a;font-size:14px}.usage-stack-copy{display:flex;flex-direction:column;gap:4px;min-width:0}.usage-stack-copy small{color:#75879a;font-size:12px}.usage-count-pill,.usage-category-pill,.usage-status-pill{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;font-size:11px;font-weight:800;padding:5px 9px;white-space:nowrap}.usage-count-pill{background:#106eea1f;color:#0d58b8}.usage-category-pill{background:#eef4fb;color:#466178}.usage-status-pill.is-ok{background:#106eea1f;color:#0d58b8}.usage-status-pill.is-pending{background:#94a3b82e;color:#475569}.usage-status-pill.is-good{background:#106eea1f;color:#0d58b8}.usage-status-pill.is-bad{background:#ef44441a;color:#dc2626}.usage-status-pill.is-warn{background:#f59e0b24;color:#b45309}.usage-table-wrap{border:1px solid #d8e1ea;border-radius:14px;overflow:hidden}.usage-table{width:100%;border-collapse:separate;border-spacing:0;background:#fff}.usage-table thead{background:#f3f7fc}.usage-table th{font-size:12px;font-weight:800;padding:10px 12px;text-align:left;color:#244154;border-bottom:1px solid #d8e1ea}.usage-table td{font-size:13px;padding:10px 12px;border-bottom:1px solid #e7edf3;color:#1f2937;vertical-align:top}.usage-table tr:last-child td{border-bottom:none}.ops-run-row.is-selected{background:#106eea14}.ops-run-row.is-bad{background:#ef444414}.ops-run-row.is-warn{background:#f59e0b14}.ops-sql-detail{display:flex;flex-direction:column;gap:8px;max-width:100%}.ops-sql-title{font-weight:700;color:#16324d}.ops-sql-meta{font-size:12px;color:#64748b;margin-top:4px}.ops-sql-error{color:#b42318;font-size:12px;line-height:1.45}.ops-sql-block summary{cursor:pointer;color:#106eea;font-weight:700;font-size:12px;display:flex;align-items:center;justify-content:space-between;gap:10px}.ops-sql-copy-btn{border:1px solid #bfd2e6;background:#fff;color:#0d58b8;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:800;cursor:pointer}.ops-sql-copy-btn:hover{background:#eef4fb}.ops-sql-block pre{margin:8px 0 0;padding:10px 12px;background:#f6f8fb;border:1px solid #d8e1ea;border-radius:10px;white-space:pre-wrap;word-break:break-word;font-size:12px;line-height:1.5;color:#16324d}.ops-config-card{display:flex;align-items:center;justify-content:space-between;gap:18px}.ops-config-summary{display:flex;align-items:center;gap:18px;min-width:0}.ops-config-copy{display:flex;flex-direction:column;gap:4px}.ops-config-copy strong{color:#13263a;font-size:14px}.ops-config-copy small{color:#75879a;font-size:12px}.ops-config-pills{display:flex;flex-wrap:wrap;gap:8px}.ops-config-pill{display:inline-flex;align-items:center;gap:6px;border-radius:999px;border:1px solid #d8e1ea;background:#f8fbff;color:#36516a;padding:7px 11px;font-size:12px;line-height:1.2}.ops-config-pill b{color:#0d58b8}.ops-config-actions{display:flex;gap:8px;flex-shrink:0}.ops-deploy-card{display:flex;align-items:center;justify-content:space-between;gap:18px}.ops-deploy-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%}.ops-deploy-status{display:inline-flex;align-items:center;justify-content:center;min-width:88px;border-radius:999px;padding:6px 12px;background:#fff4d6;color:#9a6700;font-size:12px;font-weight:800}.ops-deploy-status.is-ok{background:#e9f9ef;color:#147a3f}.ops-run-layout{display:grid;grid-template-columns:minmax(300px,.82fr) minmax(0,1.12fr);gap:16px;align-items:start}.ops-run-summary{display:flex;flex-direction:column;gap:16px}.ops-run-sql-card{grid-column:1 / -1}.ops-sql-modal-list{display:flex;flex-direction:column;gap:14px}.ops-sql-modal-item{border:1px solid #d8e1ea;border-radius:14px;background:#fbfdff;padding:14px}.ops-sql-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}.ops-sql-toolbar{display:flex;gap:8px;flex-shrink:0}.ops-sql-pre{margin:0;padding:14px;background:#f6f8fb;border:1px solid #d8e1ea;border-radius:12px;white-space:pre-wrap;word-break:break-word;font-size:12px;line-height:1.55;color:#16324d;overflow:auto}.ops-sql-technical{display:flex;flex-direction:column;gap:8px;margin-top:10px}.ops-sql-technical strong{font-size:12px;color:#7c2d12}.ops-sql-result{margin-top:12px;display:flex;flex-direction:column;gap:10px}.ops-sql-result-meta,.ops-sql-result-state{font-size:12px;color:#5f7284;font-weight:700}.ops-sql-result-error{margin-top:10px;padding:10px 12px;border-radius:10px;background:#fff1f2;border:1px solid #fecdd3;color:#be123c;font-size:12px}.dark .admin-action-btn{background:#0f172a38;color:#cbd5e1}.dark .admin-action-btn:hover{background:#1e293bad;color:#f8fafc;border-color:#475569e6}.dark .admin-action-btn-danger:hover{background:#7f1d1d3d;color:#fda4af}.dark .admin-table-wrap{border:1px solid rgba(49,72,101,.72);background:linear-gradient(180deg,#0d1728f0,#09111ffa);box-shadow:inset 0 1px #94a3b80f,0 24px 60px #02061747}.dark .admin-table thead{background:#0f1b2deb}.dark .admin-table th{border-bottom:1px solid rgba(51,65,85,.8);color:#e2e8f0}.dark .admin-table td{border-bottom:1px solid rgba(30,41,59,.78);color:#cbd5e1}.dark .admin-badge-admin{background:#106eea2e;color:#93c5fd;border:1px solid rgba(96,165,250,.24)}.dark .admin-badge-user{background:#64748b2e;color:#dbe4f0;border:1px solid rgba(148,163,184,.18)}.dark .admin-modal{background:linear-gradient(180deg,#223147,#1d2a3c);border:1px solid rgba(71,85,105,.9);box-shadow:0 24px 70px #0206178c}.dark .admin-form label{color:#e2e8f0}.dark .admin-form input,.dark .admin-form select,.dark .admin-form textarea{border:1px solid rgba(71,85,105,.95);background:#0b1730;color:#f8fafc}.dark .prompts-panel{background:radial-gradient(circle at top right,rgba(16,110,234,.12),transparent 26%),linear-gradient(180deg,#08111ffa,#08111f)}.dark .prompts-header h2{color:#f8fbff}.dark .prompts-header p{color:#9db4cc}.dark .history-panel{background:radial-gradient(circle at top right,rgba(16,110,234,.12),transparent 26%),linear-gradient(180deg,#08111ffa,#08111f)}.dark .history-header h2{color:#f8fbff}.dark .history-header p{color:#9db4cc}.dark .history-cell-preview{color:#bdd0e6}.dark .history-search-input{border:1px solid rgba(71,85,105,.95);background:#0b1730;color:#f8fafc}.dark .history-session-only,.dark .history-pager span{color:#9db4cc}.dark .prompt-card{border-color:#314865b8;background:#0d1728e6;box-shadow:0 20px 44px #02061742}.dark .prompt-card h3{color:#eef4fb}.dark .prompt-card p{color:#bdd0e6}.dark .usage-toolbar-copy h3,.dark .usage-card-header h4{color:#f8fbff}.dark .usage-toolbar-copy p,.dark .usage-card-header span,.dark .usage-stack-copy small,.dark .usage-trend-bar span{color:#9db4cc}.dark .usage-kpi-card,.dark .usage-card{border-color:#314865b8;background:#0d1728e6;box-shadow:0 20px 44px #02061742}.dark .usage-kpi-card strong,.dark .usage-list-row strong,.dark .usage-stack-copy strong{color:#eef4fb}.dark .usage-kpi-card span{color:#9db4cc}.dark .usage-kpi-card small{color:#89a1b9}.dark .usage-period-btn{border-color:#314865cc;background:#0f1b2dd6;color:#bfd0e4}.dark .usage-period-btn.active{background:#106eea2e;color:#fff;border-color:#60a5fa47}.dark .usage-filter-field span{color:#9db4cc}.dark .usage-filter-field select,.dark .usage-filter-field input,.dark .usage-filter-clear{border-color:#314865cc;background:#0f1b2dd6;color:#d8e7f5}.dark .usage-filter-clear:hover{background:#132033fa;color:#fff}.dark .usage-list-row,.dark .usage-stack-item{border-color:#314865b8;background:#0f1b2de6}.dark .usage-count-pill{background:#106eea2e;color:#93c5fd}.dark .usage-category-pill{background:#64748b2e;color:#dbe4f0}.dark .usage-status-pill.is-ok{background:#106eea2e;color:#93c5fd}.dark .usage-status-pill.is-pending{background:#64748b2e;color:#dbe4f0}.dark .usage-status-pill.is-good{background:#106eea2e;color:#93c5fd}.dark .usage-status-pill.is-bad{background:#ef444424;color:#fca5a5}.dark .usage-status-pill.is-warn{background:#78350f57;color:#fcd34d}.dark .usage-table-wrap{border-color:#314865b8}.dark .usage-table{background:#0d1728e6}.dark .usage-table thead{background:#0f1b2deb}.dark .usage-table th{color:#d8e7f5;border-bottom-color:#314865b8}.dark .usage-table td{color:#cbd5e1;border-bottom-color:#1e293bc7}.dark .ops-config-pill{border-color:#314865b8;background:#0f1b2de0;color:#d8e7f5}.dark .ops-config-pill b,.dark .ops-config-copy strong{color:#eef4fb}.dark .ops-deploy-status{background:#9a670038;color:#facc15}.dark .ops-deploy-status.is-ok{background:#147a3f3d;color:#86efac}.dark .ops-config-copy small,.dark .ops-sql-meta{color:#9db4cc}.dark .ops-sql-modal-item{border-color:#314865b8;background:#0f1b2de6}.dark .ops-sql-result-meta,.dark .ops-sql-result-state{color:#9db4cc}.dark .ops-sql-result-error{background:#7f1d1d38;border-color:#ef444452;color:#fda4af}.assistant-activity{margin-bottom:12px;padding:10px 12px;border-radius:12px;border:1px solid rgba(16,110,234,.16);background:#106eea0f}.assistant-activity.is-streaming{background:linear-gradient(180deg,#106eea14,#106eea0a)}.assistant-activity-summary{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.assistant-activity-led{display:flex;align-items:flex-start;gap:10px;min-width:0}.assistant-activity-dot{width:10px;height:10px;border-radius:999px;background:#106eea;box-shadow:0 0 0 4px #106eea24;margin-top:4px;flex-shrink:0}.assistant-activity-copy{display:flex;flex-direction:column;gap:3px;min-width:0}.assistant-activity-copy strong{font-size:13px;color:#16324d}.assistant-activity-copy small{font-size:12px;color:#5f7284;line-height:1.45}.assistant-activity-toggle{border:none;background:transparent;color:#0d58b8;font:inherit;font-size:12px;font-weight:700;cursor:pointer;flex-shrink:0}.assistant-activity-log{margin-top:10px;padding-top:10px;border-top:1px solid rgba(16,110,234,.14);display:flex;flex-direction:column;gap:8px}.assistant-activity-entry{display:flex;align-items:flex-start;gap:8px}.assistant-activity-entry-mark{color:#0d58b8;font-weight:700;line-height:1.4}.assistant-activity-entry-copy{display:flex;flex-direction:column;gap:2px}.assistant-activity-entry-copy span{font-size:12px;color:#20405f;line-height:1.4}.assistant-activity-entry-copy small{font-size:11px;color:#71859a;line-height:1.4}.dark .assistant-activity{border-color:#60a5fa38;background:#1e40af24}.dark .assistant-activity.is-streaming{background:linear-gradient(180deg,#1e40af33,#0f172a29)}.dark .assistant-activity-dot{background:#60a5fa;box-shadow:0 0 0 4px #60a5fa29}.dark .assistant-activity-copy strong,.dark .assistant-activity-entry-copy span{color:#eff6ff}.dark .assistant-activity-copy small,.dark .assistant-activity-entry-copy small{color:#bfdbfe}.dark .assistant-activity-toggle,.dark .assistant-activity-entry-mark{color:#93c5fd}.dark .assistant-activity-log{border-top-color:#60a5fa2e}.dark .ops-sql-pre{border-color:#314865b8;background:#08111ffa;color:#d8e7f5}.dark .ops-sql-technical strong{color:#fca5a5}.dark .ops-run-row.is-selected{background:#106eea24}.dark .ops-run-row.is-bad{background:#7f1d1d38}.dark .ops-run-row.is-warn{background:#78350f2e}.dark .ops-sql-title{color:#eef4fb}.dark .ops-sql-error{color:#fca5a5}.dark .ops-sql-block summary{color:#93c5fd}.dark .ops-sql-copy-btn{background:#0f1b2deb;border-color:#314865b8;color:#93c5fd}.dark .ops-sql-copy-btn:hover{background:#106eea29}.dark .ops-sql-block pre{background:#0f1b2deb;border-color:#314865b8;color:#dbe7f3}@media(max-width:1100px){.prompts-grid,.usage-kpi-grid,.usage-grid{grid-template-columns:1fr 1fr}}@media(max-width:800px){.prompt-modal{min-width:0;width:100%;max-width:100%;height:min(640px,82vh);min-height:420px;resize:none}.prompts-header,.history-header{flex-direction:column}.history-toolbar{align-items:stretch}.history-search-form{width:100%}.history-search-input{width:100%;flex:1}.prompts-header-actions{width:100%}.prompts-header-actions button{flex:1}.prompts-grid{grid-template-columns:1fr}.usage-toolbar,.usage-kpi-grid,.usage-grid{grid-template-columns:1fr;display:grid}.usage-filters{grid-template-columns:1fr}.usage-period-switch{flex-wrap:wrap}.usage-table-wrap{overflow-x:auto}.ops-config-card,.ops-deploy-card,.ops-config-summary,.ops-deploy-summary,.ops-run-layout{display:flex;flex-direction:column}.ops-config-actions{width:100%}.ops-config-actions .admin-btn{flex:1}.ops-run-modal{width:100%;max-width:100%;height:94vh}}
