:root{color-scheme:light;--ink:#263344;--muted:#84909f;--line:#e8edf3;--panel:#f7f9fc;--navy:#243b58;--primary:#425f91;--blue:#edf4fd;--white:#fff;--shadow:0 15px 45px rgba(38,53,75,.07)}*{box-sizing:border-box}html,body{height:100%;margin:0}body{font-family:Inter,DM Sans,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--ink);background:#f1f4f7}button,select,textarea,input{font:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}[hidden]{display:none!important}.shell{height:100dvh;min-height:620px;display:grid;grid-template-columns:268px minmax(0,1fr) 308px;max-width:1900px;margin:auto;overflow:hidden;background:var(--white)}
.sidebar{display:flex;flex-direction:column;background:#f7f9fc;border-right:1px solid #e4eaf1;min-width:0;padding:28px 16px 16px}.identity{display:flex;align-items:center;gap:11px;padding:0 10px 32px}.brand-mark{height:40px;width:40px;display:grid;place-items:center;flex-shrink:0;background:#243f61;color:#fff;border-radius:13px}.brand-mark svg{width:27px;height:27px;stroke-width:2.5}.brand-text{font-weight:800;font-size:20px;letter-spacing:-1px;line-height:1.14;color:#223650}.brand-text span{font-weight:500;color:#7491bb}.brand-text small{display:block;font-size:8px;letter-spacing:1.5px;font-weight:800;color:#a0afbd;margin-top:6px}.create-stack{display:grid;gap:9px;padding:0 6px 26px}.primary-soft,.outline-new{display:flex;align-items:center;gap:11px;width:100%;height:44px;border-radius:10px;padding:0 13px;text-align:left;font-weight:700;font-size:12px}.primary-soft{background:#2f4b73;color:#fff;border:1px solid #2f4b73;box-shadow:0 4px 8px rgba(52,79,117,.08)}.primary-soft:hover{background:#253f62}.outline-new{background:transparent;border:1px solid #dce5ef;color:#5f7188}.outline-new:hover{background:#eef3f9}.ic{font-size:19px;font-weight:300}.keycap{margin-left:auto;font-size:10px;opacity:.6}.history-area{min-height:0;overflow:auto;flex:1;padding:0 4px;scrollbar-width:thin}.history-label{display:flex;align-items:center;justify-content:space-between;margin:0 8px 13px;color:#95a3b4;font-size:10px;font-weight:800;letter-spacing:1.25px}.history-label span{font-variant-numeric:tabular-nums;color:#a0acba}.history-list{display:grid;gap:3px;margin:0 0 26px}.history-item,.folder-head{width:100%;display:flex;align-items:center;gap:9px;background:transparent;border:0;border-radius:9px;text-align:left;font-size:12px;color:#64758b;min-height:37px;padding:8px 9px}.history-item:hover,.folder-head:hover{background:#edf2f8}.history-item.active{background:#e7eef9;color:#34557d;font-weight:700}.history-item>span,.folder-head>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.history-item svg,.folder-head svg{width:16px;height:16px;flex-shrink:0;color:#8ea3ba}.item-more{border:0;background:transparent;color:#94a5b9;padding:2px 5px;font-size:16px;opacity:0;line-height:1}.history-item:hover .item-more,.history-item.active .item-more{opacity:1}.folder-head{font-weight:700;color:#4e6682}.folder-head .fold-chevron{font-size:12px;color:#a3afbd;flex:0}.folder-children{padding-left:14px;margin-bottom:6px}.folder-children .history-item{font-size:11px}.no-chats{font-size:11px;color:#9baabd;padding:10px}.account-footer{border-top:1px solid #e3eaf2;padding:16px 10px 0}.account-hint{font-size:11px;color:#71859a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-bottom:14px}.account-controls{display:flex;align-items:center;justify-content:space-between;gap:8px}.foot-icon,.icon-btn{display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;color:#8193a8;background:transparent;border-radius:9px}.foot-icon{width:40px;height:38px}.foot-icon:hover,.icon-btn:hover{background:#ecf2f8;border-color:#e1e9f3;color:#38587a}.foot-icon svg{width:19px;height:19px}
.workspace{min-width:0;display:flex;flex-direction:column;position:relative;background:#fff}.workspace-header{height:76px;flex-shrink:0;border-bottom:1px solid #edf1f5;padding:0 34px;display:flex;align-items:center;justify-content:space-between;gap:12px}.header-left,.header-actions{display:flex;align-items:center;gap:12px}.workspace-title{display:flex;flex-direction:column;gap:5px;min-width:0}.workspace-title strong{font-size:13px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:430px}.workspace-sub{font-size:10px;color:#9ba7b5;white-space:nowrap;display:flex;align-items:center;gap:7px}.live-dot,.status-disc{display:inline-block;width:6px;height:6px;background:#62bb99;border-radius:50%}.header-status{display:flex;gap:7px;align-items:center;font-size:10px;font-weight:600;color:#8b99a9;white-space:nowrap}.header-status .status-disc{width:5px;height:5px}.thread{min-height:0;flex:1;overflow-y:auto;padding:34px max(40px,calc((100% - 770px)/2));scrollbar-width:thin}.empty{max-width:720px;margin:auto;display:flex;flex-direction:column;align-items:center;text-align:center;padding:clamp(35px,7vh,100px) 10px 20px}.empty-symbol{display:grid;place-items:center;height:64px;width:64px;font-size:36px;color:#5f82b0;background:linear-gradient(145deg,#eff5ff,#e7effb);border:1px solid #e1eaf5;border-radius:20px;margin-bottom:27px}.empty-eyebrow{font-size:10px;font-weight:800;color:#94a8bf;letter-spacing:1.9px}.empty h1{font-weight:700;color:#2e405a;line-height:1.19;font-size:clamp(26px,3.2vw,37px);letter-spacing:-1.5px;margin:15px 0}.empty p{font-size:13px;color:#8a99ab;line-height:1.8;max-width:500px;margin:0 0 38px}.prompt-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:100%}.suggest{text-align:left;display:flex;flex-direction:column;align-items:flex-start;gap:7px;min-height:120px;border:1px solid #e5ebf3;border-radius:12px;padding:15px;background:#fff;color:#4c6382;font-size:12px;font-weight:700;transition:box-shadow .2s,border-color .2s}.suggest:hover{border-color:#bfcfe3;box-shadow:var(--shadow)}.suggest>span{font-size:20px;color:#628ac0;font-weight:400}.suggest small{font-size:10px;font-weight:500;line-height:1.4;color:#9aa9ba}.message-block{margin:0 0 28px}.message-top{display:flex;align-items:center;gap:9px;margin-bottom:12px}.avatar{height:30px;width:30px;display:grid;place-items:center;flex-shrink:0;border-radius:9px;font-weight:700;font-size:13px}.avatar.user{background:#eaf0f6;color:#58708c}.avatar.assistant{background:#e8f1fd;color:#4c78ad}.message-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.message-meta strong{font-size:12px}.message-meta span{font-size:10px;color:#9ba7b5}.user-bubble{font-size:13px;line-height:1.8;white-space:pre-wrap;word-break:break-word;padding:5px 0 6px 39px;color:#4b5b6d}.assistant-body{font-size:13px;color:#435367;line-height:1.85;overflow-wrap:anywhere;padding-left:39px}.assistant-body p{margin:0 0 13px}.assistant-body h3{font-size:15px;color:#2d405b;line-height:1.5;margin:20px 0 9px;letter-spacing:-.3px}.assistant-body h4{font-size:13px;color:#344968;margin:15px 0 7px}.assistant-body li{margin:5px 0}.assistant-body ul{padding-left:20px;margin:9px 0 14px}.message-attachments{display:flex;gap:6px;flex-wrap:wrap;padding:6px 0 6px 39px}.small-file{font-size:10px;background:#f0f4f8;border-radius:7px;padding:6px 9px;color:#677d94}.sources-panel{margin:13px 0 0 39px;padding:10px 13px;border:1px solid #e7eef7;border-radius:10px;background:#fafcfe}.sources-label{font-size:10px;color:#8094aa;font-weight:700;margin-bottom:6px;letter-spacing:.6px}.source-link{display:block;color:#5377a4;text-decoration:none;font-size:11px;line-height:1.7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.source-link:hover{text-decoration:underline}.evidence-badges{margin:12px 0 0 39px;display:flex;gap:8px;flex-wrap:wrap}.evidence-badges span{padding:5px 8px;background:#f3f6fa;border-radius:5px;color:#91a0b1;font-size:10px}.selected-analysis{background:#f0f5fb;color:#547da8;border-radius:8px}.analysis-shortcut{border:1px solid #d9e6f4;padding:7px 10px;border-radius:7px;background:#f8fbff;color:#557ca8;font-size:10px;margin:14px 0 0 39px}.thinking{margin:18px 0 0 40px;color:#7c91ad;font-size:12px}.thinking i{display:inline-block;width:6px;height:6px;background:#7c95b8;border-radius:50%;margin-right:5px;animation:pulse 1s infinite alternate}.thinking i:nth-child(2){animation-delay:.25s}.thinking i:nth-child(3){animation-delay:.5s}@keyframes pulse{to{opacity:.2;transform:translateY(-3px)}}
.composer-zone{padding:0 max(35px,calc((100% - 770px)/2)) 21px;flex-shrink:0;background:linear-gradient(0deg,#fff 90%,rgba(255,255,255,.7))}.composer{min-height:118px;display:flex;flex-direction:column;justify-content:space-between;border:1px solid #dfe7f0;border-radius:14px;box-shadow:0 9px 24px rgba(36,68,105,.045);background:#fff;padding:14px 15px 11px;transition:border-color .15s}.composer:focus-within{border-color:#b5c9e3;box-shadow:0 9px 27px rgba(72,111,158,.09)}.composer textarea{width:100%;min-height:48px;max-height:170px;resize:vertical;border:0;outline:0;background:transparent;color:#384a5f;font-size:13px;line-height:1.6}.composer textarea::placeholder{color:#a0aebb}.composer-bottom,.composer-left{display:flex;align-items:center;gap:13px;justify-content:space-between}.attach-btn{display:inline-flex;align-items:center;gap:7px;color:#6d839f;font-size:11px;font-weight:700;cursor:pointer}.attach-btn:hover{color:#365d8e}.attach-btn svg{width:16px;height:16px}.composer-tip{font-size:10px;color:#afb8c4}.send-btn{background:#2e4e79;color:#fff;border:0;width:34px;height:34px;border-radius:9px;display:grid;place-items:center}.send-btn:hover{background:#233f66}.send-btn svg{width:18px;height:18px;stroke-width:2.2}.composer-foot{text-align:center;color:#b0bbc8;font-size:9px;padding-top:11px;line-height:1.4}.files-tray{padding:8px 0;display:flex;gap:8px;flex-wrap:wrap}.file-chip{background:#ecf2f9;color:#55708c;padding:7px 10px;border-radius:8px;font-size:11px}.file-chip button{border:0;background:none;font-size:15px;color:#718aa6}.error-bar{margin-top:8px;background:#fff2f0;border:1px solid #ffd9d2;border-radius:8px;padding:9px 11px;color:#a54b41;font-size:11px}
.insights{min-width:0;display:flex;flex-direction:column;background:#fafbfd;border-left:1px solid #e6ecf3;padding:30px 22px 18px}.insights-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:29px}.insights-head h2,.insights-title h2{font-size:15px;line-height:1.35;letter-spacing:-.35px;margin:7px 0 0;color:#344b69}.eyebrow{font-size:9px;letter-spacing:1.55px;font-weight:800;color:#a7b6c9}.insights-scroll{overflow:auto;min-height:0;scrollbar-width:thin}.control-group{margin-bottom:26px}.control-group>label{display:block;font-size:10px;letter-spacing:1px;font-weight:800;color:#7e93ac;margin-bottom:12px}.hint-icon{font-size:13px;color:#a8b7c7}.control-group select{width:100%;height:40px;background:#fff;border:1px solid #e0e7ef;border-radius:8px;color:#4c6480;font-weight:650;font-size:12px;padding:0 12px}.type-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.type-option{height:39px;border:1px solid #e0e8f2;background:#fff;border-radius:8px;font-size:11px;color:#72869e;font-weight:700}.type-option.active{color:#356394;background:#eaf3fe;border-color:#bbd2ee;box-shadow:inset 0 0 0 1px #d5e4f7}.density-toggle{display:grid;grid-template-columns:repeat(3,1fr);gap:3px;background:#edf2f8;border-radius:9px;padding:4px}.density-toggle button{height:32px;border:0;background:transparent;border-radius:6px;color:#8b9bad;font-size:10px;font-weight:700}.density-toggle button.selected{background:#fff;color:#38628e;box-shadow:0 2px 6px rgba(52,79,111,.08)}.density-note{display:flex;justify-content:space-between;margin-top:12px;align-items:center}.density-note span,.tiny{font-size:10px;color:#9caabd}.density-note strong{color:#537ba9;font-size:11px}.density-scale{height:5px;background:linear-gradient(to right,#d2e8fc,#7db0d8,#346793);border-radius:9px;display:flex;justify-content:space-between;margin-top:10px}.density-scale span{width:5px;height:5px;background:#fff;border-radius:50%}.tiny{line-height:1.6;margin:12px 0 0}.panel-divider{border-top:1px solid #e6edf5;margin:32px 0 24px}.insights-title{margin:0 0 22px;display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.insight-pill{white-space:nowrap;font-size:9px;color:#899cb1;padding:6px 8px;border:1px solid #e2e9f2;border-radius:100px}.qual-empty{border:1px dashed #d9e4ef;border-radius:12px;text-align:center;padding:28px 14px;color:#9cadbf}.qual-icon{font-size:27px;color:#9db7d4}.qual-empty strong{display:block;margin-top:10px;color:#7a8ea7;font-size:12px}.qual-empty p{font-size:10px;line-height:1.8}.metric-strip{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-bottom:26px}.metric-strip>div{background:#fff;border:1px solid #e7edf4;border-radius:10px;padding:12px}.metric-strip small{font-size:9px;letter-spacing:1px;font-weight:750;color:#a0aec0}.metric-strip strong{display:block;margin-top:5px;font-size:20px;color:#4a698c}.viz-section{margin-bottom:27px}.viz-section h3{display:flex;justify-content:space-between;color:#506b8c;font-size:11px;margin:0 0 14px;font-weight:800}.viz-section h3 span{color:#9bacc0}.emotion-bars,.discourse-bars{display:grid;gap:9px}.signal-row{display:grid;grid-template-columns:78px minmax(0,1fr) 32px;align-items:center;gap:7px;border:0;padding:0;background:transparent;text-align:left}.signal-row .signal-name,.signal-row .signal-value{font-size:10px;color:#8294a8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.signal-row .signal-value{text-align:right;font-variant-numeric:tabular-nums}.signal-track{height:6px;border-radius:10px;background:#ebf0f6;overflow:hidden}.signal-fill{display:block;height:100%;border-radius:10px;background:#87abce;min-width:1px}.signal-row:hover .signal-fill{background:#4a7ea9}.emotion-cloud{min-height:85px;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:7px;padding:14px 8px;border:1px solid #e8eef5;border-radius:10px;background:#fff}.cloud-word{border:0;background:transparent;color:#7191b5;padding:3px 5px;line-height:1.1}.cloud-word:nth-child(3n){color:#4a779f}.metric-details{padding:10px 12px;color:#7690ac;background:#eef5fd;border-radius:8px;font-size:10px;line-height:1.6}.method-note{color:#adb8c6;font-size:9px;line-height:1.6;margin-top:15px}.icon-btn{width:34px;height:34px}.insights-dismiss,.mobile-toggle,.side-dismiss{display:none}
.modal-backdrop{position:fixed;inset:0;background:rgba(31,49,74,.38);z-index:100;display:grid;place-items:center;padding:20px}.modal-card{background:#fff;min-width:300px;max-width:420px;width:100%;border-radius:15px;padding:24px;box-shadow:0 25px 80px rgba(23,48,82,.25)}.modal-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.modal-heading h2{margin:0;font-size:18px}.modal-card input,.modal-card select{width:100%;padding:11px;border:1px solid #dce5ef;border-radius:9px;margin:7px 0 18px}.modal-card label{display:block;color:#667b94;font-size:12px;margin-top:11px}.modal-card .modal-button{background:#365982;border:0;border-radius:9px;color:#fff;padding:11px 16px;font-weight:700}.modal-card p{font-size:12px;line-height:1.8;color:#698099}.right-toggle{display:none}
@media(max-width:1250px){.shell{grid-template-columns:238px minmax(0,1fr) 285px}.sidebar{padding-left:12px;padding-right:12px}.insights{padding-left:17px;padding-right:17px}.thread{padding:28px 38px}.composer-zone{padding-left:32px;padding-right:32px}.header-status{display:none}}
@media(max-width:980px){.shell{grid-template-columns:225px minmax(0,1fr)}.insights{position:fixed;right:0;top:0;bottom:0;width:300px;transform:translateX(100%);transition:transform .2s;z-index:25;box-shadow:-12px 0 40px rgba(20,50,80,.06)}.insights.open{transform:none}.right-toggle,.insights-dismiss{display:inline-flex}}
@media(max-width:700px){.shell{display:block}.sidebar{position:fixed;z-index:27;width:min(300px,87vw);top:0;bottom:0;left:0;transform:translateX(-100%);transition:transform .2s;box-shadow:10px 0 30px rgba(28,47,73,.10)}.sidebar.open{transform:translateX(0)}.side-dismiss,.mobile-toggle{display:inline-flex}.workspace{height:100dvh;min-height:0}.workspace-header{height:68px;padding:0 16px}.workspace-title strong{max-width:52vw}.thread{padding:20px 19px}.empty{padding:32px 0 20px}.prompt-grid{grid-template-columns:1fr}.suggest{min-height:80px;padding:13px}.empty p{margin-bottom:20px}.empty h1{font-size:29px}.composer-zone{padding:0 13px 12px}.composer-tip{display:none}.composer-foot{font-size:8px}.insights{width:min(310px,94vw)}.message-block{margin-bottom:26px}.assistant-body,.user-bubble{padding-left:0}.sources-panel,.evidence-badges,.analysis-shortcut{margin-left:0}.history-label{margin-top:12px}}
/* Keep the composer visible: grid children must be allowed to shrink inside the viewport. */
@media(min-width:701px){.shell{grid-template-rows:minmax(0,1fr)}.workspace,.sidebar,.insights{min-height:0;height:100%}.workspace{overflow:hidden}}
