:root{color-scheme:light;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,SF Pro Display,Segoe UI,sans-serif;color:#18243b;background:#f7f9fc;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}*{box-sizing:border-box}body{margin:0;min-width:320px;background:#f7f9fc}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}.app-shell{display:grid;grid-template-columns:280px minmax(0,1fr);min-height:100vh;background:linear-gradient(120deg,#f9fbfe,#f5f7fc,#fafbfe)}.sidebar{display:flex;flex-direction:column;min-height:100vh;padding:32px 22px 22px;background:#ffffffd1;border-right:1px solid #edf0f6}.brand{display:flex;align-items:center;gap:12px;padding:0 10px 28px;border-bottom:1px solid #eff2f7}.brand-mark{position:relative;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#eef1ff}.brand-mark:before{content:"";width:13px;height:13px;border-radius:50%;background:#5f6fff;box-shadow:0 0 0 5px #dde3ff}.brand-mark span{position:absolute;width:4px;height:4px;border-radius:50%;background:#fff;z-index:1}.brand h1{margin:0;color:#1d2a43;font-size:17px;font-weight:760;letter-spacing:-.03em}.brand p{margin:3px 0 0;color:#9aa5b8;font-size:11px;letter-spacing:.02em}.primary-nav{display:grid;gap:7px;margin-top:30px}.nav-item{display:flex;align-items:center;gap:14px;width:100%;min-height:50px;padding:0 14px;border:0;border-radius:13px;background:transparent;color:#3f4c65;font-size:14px;text-align:left;transition:.2s ease}.nav-item:hover{background:#f6f8fd;color:#31405e}.nav-item.active{background:#eef3ff;color:#274dbe;box-shadow:inset 0 0 0 1px #e5ebff}.nav-icon{display:grid;place-items:center;width:25px;color:#1f2e4b;font-size:24px;line-height:1;font-weight:300}.nav-item.active .nav-icon{color:#2868ee}.nav-count{margin-left:auto;color:#9aa5b8;font-size:12px}.sidebar-spacer{flex:1;min-height:36px}.profile-card{display:flex;align-items:center;gap:11px;padding:11px 10px;border:1px solid #eff2f7;border-radius:16px;background:#fff;color:inherit;text-decoration:none;box-shadow:0 8px 22px #28375b0a}.profile-avatar{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;color:#fff;background:linear-gradient(145deg,#c3b3a8,#75665f);font-size:16px;font-weight:700;box-shadow:inset 0 0 0 3px #fff,0 3px 10px #3228281f}.profile-copy{display:grid;gap:4px;min-width:0}.profile-copy strong{color:#23304a;font-size:13px;font-weight:700}.profile-copy small{color:#a0a9bb;font-size:11px}.profile-arrow{margin-left:auto;color:#73809a;font-size:18px}.connection-settings{margin-top:12px;border:1px solid #eff2f7;border-radius:14px;background:#ffffffa6}.connection-settings summary{display:flex;align-items:center;justify-content:space-between;padding:11px 12px;color:#66738b;font-size:12px;cursor:pointer;list-style:none}.connection-settings summary::-webkit-details-marker{display:none}.summary-status{width:7px;height:7px;border-radius:50%;background:#b8c0cf;box-shadow:0 0 0 4px #f0f2f6}.summary-status.online{background:#23bb79;box-shadow:0 0 0 4px #e8f8f0}.settings-body{padding:0 12px 12px}.settings-label{margin:2px 0 7px;color:#8994a8;font-size:11px}.segmented{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin-bottom:10px;padding:3px;border-radius:9px;background:#f1f4f9}.segmented button{min-height:28px;border:0;border-radius:7px;background:transparent;color:#8290a6;font-size:11px}.segmented button.active{background:#fff;color:#274dbe;box-shadow:0 2px 7px #2b437d1a}label{display:grid;gap:6px;margin-top:10px;color:#768298;font-size:11px;font-weight:650}input,textarea{width:100%;border:1px solid #e8ecf3;border-radius:11px;outline:0;background:#fbfcfe;color:#24314b;padding:10px 11px;transition:.2s ease}input::placeholder,textarea::placeholder{color:#b4bdcc}input:focus,textarea:focus{border-color:#a9befc;background:#fff;box-shadow:0 0 0 4px #4b6cee17}textarea{resize:vertical}.settings-actions{display:flex;gap:6px;margin-top:12px}.secondary-button{min-height:29px;border:1px solid #e7ebf3;border-radius:8px;background:#fff;color:#62708a;font-size:11px;padding:0 8px}.workspace{min-width:0;padding:28px 32px 34px}.workspace-header{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;max-width:1280px;margin:0 auto 20px;padding:0 5px}.eyebrow{display:block;margin-bottom:7px;color:#9aa6ba;font-size:11px;font-weight:650;letter-spacing:.05em}.workspace-header h2{display:flex;align-items:center;gap:13px;margin:0;color:#17243d;font-size:clamp(25px,2.2vw,34px);letter-spacing:-.045em}.online-badge{display:inline-flex;align-items:center;gap:7px;padding:7px 12px;border:1px solid #edf1f4;border-radius:99px;background:#fff;color:#68758b;font-size:12px;font-weight:600;letter-spacing:0}.online-badge i,.agent-online i,.mode-chip i{width:8px;height:8px;border-radius:50%;background:#2cc481;box-shadow:0 0 0 4px #eaf9f1}.online-badge i.offline,.agent-online i.offline{background:#eb6a73;box-shadow:0 0 0 4px #fcedee}.header-actions{display:flex;align-items:center;gap:9px}.header-actions a,.icon-button{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 12px;border:1px solid #e9edf4;border-radius:10px;background:#fff;color:#63718a;font-size:12px;text-decoration:none;box-shadow:0 3px 10px #2d3e600a}.header-actions .profile-link{border-color:#e8edff;background:#f4f6ff;color:#4963cc}.icon-button{width:36px;padding:0;border:0;background:transparent;box-shadow:none;color:#65728a;font-size:22px}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;align-items:start;gap:22px;max-width:1280px;margin:0 auto}.main-column,.insights-column{display:grid;gap:20px;min-width:0}.chat-panel,.knowledge-workbench,.insight-card,.status-note{border:1px solid #edf0f6;border-radius:20px;background:#ffffffe6;box-shadow:0 18px 45px #2d3c600e}.chat-panel{display:grid;grid-template-rows:auto minmax(380px,1fr) auto;min-height:620px;overflow:hidden}.section-header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:22px 24px 16px}.section-title{display:flex;align-items:center;gap:12px;min-width:0}.section-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:#f0f4ff;color:#3670e9;font-size:24px;font-weight:300}.book-icon{color:#6e56d5;background:#f3f0ff}.section-title h3,.card-heading h3{margin:0;color:#1f2c46;font-size:16px;font-weight:760;letter-spacing:-.02em}.section-title p{margin:3px 0 0;overflow:hidden;color:#a0aabb;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.mode-chip,.soft-chip{display:inline-flex;align-items:center;gap:7px;min-height:28px;padding:0 10px;border-radius:99px;background:#f4f7ff;color:#6171b8;font-size:11px;font-weight:650;white-space:nowrap}.mode-chip i{width:6px;height:6px;box-shadow:none}.soft-chip{background:#f5f6f9;color:#8a94a7}.messages{min-height:0;overflow-y:auto;padding:10px 30px 22px;background:linear-gradient(180deg,#fff,#fcfdff);scrollbar-width:thin;scrollbar-color:#dfe4ef transparent}.message-row{display:flex;align-items:flex-start;gap:11px;max-width:90%;margin:15px 0}.message-row.user{margin-left:auto;flex-direction:row-reverse}.message-avatar{display:grid;flex:0 0 auto;place-items:center;width:31px;height:31px;border-radius:50%;color:#3f70e6;background:#eef3ff;font-size:11px;font-weight:800}.message-avatar.assistant{color:#7352d4;background:#f0edff}.message-bubble{min-width:0;padding:12px 15px;border:1px solid #ebeff6;border-radius:14px;background:#fff;box-shadow:0 6px 15px #25355b09}.message-row.user .message-bubble{border-color:#e3e5ff;background:linear-gradient(135deg,#f9f9ff,#f3f1ff)}.message-meta{display:flex;align-items:center;gap:9px;color:#8390a7;font-size:10px;font-weight:700}.message-meta small{color:#a7afbf;font-weight:500}.message-bubble p{margin:7px 0 0;color:#35415a;font-size:13px;line-height:1.72;white-space:pre-wrap}.empty-state{display:grid;place-items:center;align-content:center;min-height:350px;color:#9ba6b8;text-align:center}.empty-state h3{margin:0 0 7px;color:#293650;font-size:20px}.empty-state p{margin:0;font-size:12px}.composer{display:grid;grid-template-columns:minmax(0,1fr) 98px;gap:10px;padding:16px 22px 20px;border-top:1px solid #f0f2f7;background:#fff}.composer textarea{min-height:58px;border-radius:13px;padding:14px;font-size:13px;resize:none}.send-button,.primary-small{border:0;border-radius:12px;background:linear-gradient(135deg,#3479ef,#2d64df);color:#fff;font-size:13px;font-weight:730;box-shadow:0 9px 20px #326be638}.send-button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:58px}.send-button span{font-size:16px}.knowledge-workbench{overflow:hidden}.knowledge-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(260px,.85fr);gap:22px;padding:0 24px 24px}.field-label,.doc-column label span{display:block;margin:2px 0 7px;color:#7e8aa0;font-size:11px;font-weight:700}.search-box{display:flex;align-items:center;gap:8px;height:44px;padding:0 9px 0 13px;border:1px solid #e8ecf3;border-radius:12px;background:#fbfcfe}.search-box>span{color:#9aa6b9;font-size:22px}.search-box input{height:100%;padding:0 4px;border:0;background:transparent;box-shadow:none}.search-box button{min-width:55px;height:32px;border:1px solid #cbd8ff;border-radius:9px;background:#f0f4ff;color:#4169d4;font-size:11px;font-weight:700}.result-list{display:grid;gap:8px;margin-top:12px}.result-item{padding:10px 12px;border:1px solid #edf0f6;border-radius:11px;background:#fff}.result-item>div{display:flex;justify-content:space-between;gap:10px}.result-item strong{color:#40506c;font-size:11px}.result-item span{color:#a2acbc;font-size:10px}.result-item p{margin:6px 0 0;color:#7e8aa0;font-size:11px;line-height:1.55}.hint-text{margin:10px 0 0;color:#b0b8c6;font-size:11px}.doc-column{padding-left:22px;border-left:1px solid #f0f2f7}.doc-column label{margin-top:0;margin-bottom:10px}.doc-column textarea{min-height:77px;resize:vertical}.doc-actions{display:flex;align-items:center;gap:8px;margin-top:10px}.primary-small{min-height:34px;padding:0 13px;font-size:11px}.file-button{display:inline-grid;place-items:center;min-height:34px;margin:0;padding:0 11px;border:1px solid #e7ebf3;border-radius:9px;background:#fff;color:#73819a;cursor:pointer;font-size:11px}.file-button input{display:none}.insight-card{padding:21px 19px 19px}.card-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:17px}.card-heading h3{font-size:17px}.live-dot{width:7px;height:7px;border-radius:50%;background:#2cc481;box-shadow:0 0 0 5px #eaf9f1}.agent-list{display:grid;gap:10px}.agent-row{display:flex;align-items:center;gap:11px;min-height:64px;padding:10px 12px;border:1px solid #edf0f6;border-radius:13px;background:#fff}.agent-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;color:#3475e9;background:#edf3ff;font-size:20px}.agent-icon.purple{color:#7656d4;background:#f1eeff}.agent-row strong{color:#48566e;font-size:13px;font-weight:700}.agent-online{display:inline-flex;align-items:center;gap:7px;margin-left:auto;color:#8b96a8;font-size:11px}.agent-online i{width:6px;height:6px;box-shadow:none}.knowledge-summary{padding-bottom:15px}.summary-lines{display:grid;gap:11px;padding-bottom:17px;border-bottom:1px solid #f0f2f7;color:#68758a;font-size:12px}.summary-lines div{display:flex;align-items:center;gap:9px}.summary-bullet{width:8px;height:8px;border-radius:50%}.summary-bullet.green{background:#2cc481;box-shadow:0 0 0 4px #eaf9f1}.summary-bullet.blue{background:#5b76e9;box-shadow:0 0 0 4px #eef1ff}.chart-heading{display:flex;justify-content:space-between;margin:18px 0 10px;color:#68758a}.chart-heading strong{color:#48566e;font-size:12px}.chart-heading span{font-size:10px}.usage-chart{position:relative;height:138px;margin:0 3px;border-bottom:1px solid #eef1f5;background:repeating-linear-gradient(to bottom,transparent 0,transparent 33px,#f3f5f8 34px)}.bar-chart{position:absolute;inset:0 8px;display:flex;align-items:flex-end;justify-content:space-between;gap:11px;padding:8px 0 0}.bar-chart span{width:16px;min-height:9px;border-radius:3px 3px 0 0;background:linear-gradient(180deg,#5e9af2,#2e6fdf);opacity:.92}.line-chart{position:absolute;inset:5px 4px 3px;width:calc(100% - 8px);height:calc(100% - 8px);pointer-events:none}.chart-axis{display:flex;justify-content:space-between;padding:8px 1px 0;color:#a3adbd;font-size:9px}.summary-metrics{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:17px;padding-top:14px;border-top:1px solid #f0f2f7}.summary-metrics div+div{padding-left:14px;border-left:1px solid #f0f2f7}.summary-metrics small{display:block;margin-bottom:6px;color:#9ca6b7;font-size:10px}.summary-metrics strong{color:#25324b;font-size:20px;letter-spacing:-.04em}.status-note{padding:14px}.status-note>span{color:#8793a7;font-size:11px;font-weight:700}pre{max-height:170px;margin:10px 0 0;overflow:auto;padding:10px;border-radius:10px;background:#f6f8fb;color:#728097;font-size:10px;line-height:1.45;white-space:pre-wrap}@media(max-width:1180px){.app-shell{grid-template-columns:230px minmax(0,1fr)}.workspace{padding:24px 22px 28px}.dashboard-grid{grid-template-columns:minmax(0,1fr) 290px}.knowledge-layout{grid-template-columns:1fr}.doc-column{padding:18px 0 0;border-top:1px solid #f0f2f7;border-left:0}}@media(max-width:900px){.app-shell{display:block}.sidebar{min-height:auto;padding:18px;border-right:0;border-bottom:1px solid #edf0f6}.brand{padding-bottom:18px}.primary-nav{grid-template-columns:repeat(4,1fr);margin-top:16px}.nav-item{justify-content:center;min-height:42px;padding:0 5px;font-size:11px}.nav-icon{width:auto;font-size:19px}.nav-count,.sidebar-spacer,.connection-settings{display:none}.profile-card{margin-top:16px}.workspace{padding:20px 16px}.dashboard-grid{grid-template-columns:1fr}.insights-column{grid-template-columns:repeat(2,minmax(0,1fr))}.status-note{grid-column:1/-1}}@media(max-width:620px){.workspace-header{align-items:flex-start;flex-direction:column}.header-actions{width:100%}.header-actions a{flex:1}.chat-panel{min-height:560px}.section-header{padding:18px 16px 13px}.messages{padding:8px 16px 18px}.message-row{max-width:98%}.composer{grid-template-columns:1fr;padding:13px 16px 16px}.send-button{min-height:44px}.insights-column{grid-template-columns:1fr}.knowledge-layout{padding:0 16px 18px}.mode-chip{display:none}}
