/* 工作台样式：定义页面配色、侧栏、聊天与报告布局，以及窄屏和减少动画适配。 */
@font-face{font-family:LocalSans;src:local("Inter"),local("SF Pro Display")}*{box-sizing:border-box}body{margin:0;font-family:LocalSans,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#262532;background:#faf9fc;font-size:14px}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}a{color:inherit}button{border:0;background:none;color:inherit}svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}.hidden{display:none!important}.sidebar{position:fixed;inset:0 auto 0 0;width:258px;background:#fff;border-right:1px solid #ebe9f1;display:flex;flex-direction:column;padding:34px 20px 0;z-index:20}.brand{display:flex;gap:12px;align-items:center;text-decoration:none;margin:0 8px 38px;font-size:22px;letter-spacing:-.7px}.brand b{font-weight:450}.brand small{display:block;letter-spacing:1.5px;font-size:8px;color:#a09aaa;margin-top:5px}.brand-mark{width:39px;height:42px;background:#292331;border-radius:12px;color:#fff;display:flex;align-items:center;justify-content:center;font-size:32px;font-weight:700;letter-spacing:-4px;padding-right:7px}.brand-mark span{color:#e0a9f1}.new-chat{width:100%;border-radius:12px;padding:14px 16px;color:white;background:linear-gradient(105deg,#6c4cef,#ae69da 67%,#dc94b5);font-weight:600;text-align:left;box-shadow:0 4px 12px #8964d51b;display:flex;align-items:center;gap:10px;margin-bottom:25px}.new-chat>span{font-size:22px;font-weight:300}.new-chat kbd{margin-left:auto;font-size:17px;font-family:inherit;font-weight:400;opacity:.7}.nav-item{display:flex;align-items:center;gap:12px;width:100%;padding:12px 13px;text-align:left;border-radius:9px;color:#777180;font-size:13px;margin-bottom:5px}.nav-item:hover{background:#f8f5fc}.nav-item.active{background:#f3eefb;color:#7b52c7;font-weight:550}.mini-label{margin-left:auto;font-size:10px;border:1px solid #e9e3ee;border-radius:5px;padding:1px 5px;color:#a098aa}.history-heading{display:flex;align-items:center;justify-content:space-between;margin:28px 12px 12px;font-size:11px;color:#aaa3b2;letter-spacing:.5px}.icon-button{width:30px;height:30px;display:inline-flex;align-items:center;justify-content:center;color:#8d8799;border-radius:7px;font-size:24px}.icon-button:hover{background:#f2eef8}.icon-button svg{width:16px;height:16px}.history-list{overflow:auto;flex:1;padding-bottom:20px}.history-item{padding:13px 12px;text-align:left;border-radius:10px;width:100%;margin:3px 0}.history-item.active{background:#f4f0fa}.history-item strong{display:block;font-weight:500;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.6}.history-item small{font-size:10px;display:block;color:#aaa2b4;margin-top:5px}.empty-history{font-size:12px;padding:10px 12px}.history-filter{width:100%;margin-bottom:8px!important}.sidebar-bottom{border-top:1px solid #f0edf5;padding-top:12px}.sidebar-bottom .nav-item{font-size:12px}.status-dot{width:6px;height:6px;border-radius:50%;background:#b8afc3;display:inline-block;flex-shrink:0}.status-dot.good{background:#51a889}.status-dot.warning{background:#d7a363}.sidebar-dot,.sidebar-bottom .status-dot{margin-left:auto}.workspace{display:flex;align-items:center;gap:10px;padding:20px 7px 24px;border-top:1px solid #f2eef6;margin-top:8px}.avatar{width:34px;height:34px;background:#ece5f6;color:#8160aa;border-radius:11px;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:650}.avatar.small{width:29px;height:29px;border-radius:50%;background:#292331;color:white;font-size:10px}.workspace strong{font-size:11px;display:block;font-weight:550}.workspace small{display:block;font-size:9px;color:#aaa2b4;margin-top:4px}.workspace-tag{font-size:8px;padding:3px 5px;background:#f5f2f8;color:#aaa0b7;border-radius:4px;margin-left:auto}.main-shell{margin-left:258px;min-height:100vh}.topbar{height:76px;display:flex;justify-content:space-between;align-items:center;padding:0 38px;border-bottom:1px solid #eeebf3;background:#ffffffa8}.breadcrumb{font-size:11px;color:#aaa3b3}.breadcrumb span{margin:0 13px;color:#d0c9d9}.breadcrumb b{font-weight:500;color:#6f657d}.topbar-right{display:flex;align-items:center;gap:20px}.connection-pill{display:flex;align-items:center;gap:8px;border:1px solid #e9e3ef;background:#fff;padding:8px 12px;border-radius:20px;color:#8a7d9b;font-size:10px}.header-divider{height:18px;width:1px;background:#e8e3ee}.welcome{width:min(860px,calc(100% - 100px));margin:68px auto 30px}.eyebrow{font-size:10px;letter-spacing:2px;color:#9b87b8;display:flex;align-items:center;gap:8px;font-weight:500}.sparkle{font-size:19px;color:#9b72d0}.welcome h1{font-size:45px;line-height:1.5;letter-spacing:-1.2px;font-weight:580;margin:20px 0 15px}.gradient-text{background:linear-gradient(100deg,#7452c5,#bb7aa5);background-clip:text;-webkit-background-clip:text;color:transparent}.welcome-description{font-size:13px;color:#98909f;line-height:1.95;margin-bottom:32px}.start-card{background:#fff;border:1px solid #e8e0f1;border-radius:17px;padding:24px 26px;box-shadow:0 10px 35px #604b8707}.card-topline{display:flex;align-items:center;gap:9px;margin-bottom:23px}.card-topline strong{font-size:13px;font-weight:550}.subtle-icon{color:#9470c2}.subtle-icon svg{width:19px;height:19px}.tiny-pill{font-size:9px;background:#f7f3fc;border:1px solid #eee5f7;border-radius:5px;color:#a18ab9;padding:4px 7px;margin-left:auto}label{display:block;font-size:11px;color:#7f738e;margin-bottom:8px}label span{font-size:10px;color:#b0a7ba;margin-left:4px}input,textarea,select{border:1px solid #ebe6f1;border-radius:8px;background:#fcfbfe;outline:none;color:#3d344b;transition:border-color .2s;padding:12px 14px;font-size:12px}input:focus,textarea:focus{border-color:#a58ac8;box-shadow:0 0 0 3px #a58ac80b}input::placeholder,textarea::placeholder{color:#b7afc1}#subject{width:100%;padding:15px 14px}.secondary-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:20px}.secondary-fields input{width:100%;font-size:11px}.start-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:22px;padding-top:18px;border-top:1px solid #f4f0f8}.start-bottom>span{color:#b2a7be;font-size:10px;display:flex;align-items:center;gap:6px}.tiny-dot{width:4px;height:4px;border-radius:50%;background:#b6a2cb}.primary{background:#8360bc;color:white;border-radius:8px;padding:11px 18px;font-size:12px;font-weight:500;display:inline-flex;align-items:center;justify-content:center;gap:20px}.primary:hover{background:#7450af}.primary span{font-size:17px}.secondary{border:1px solid #e8e0f0;border-radius:8px;padding:10px 14px;font-size:11px;color:#857192;background:white}.section-label{display:flex;justify-content:space-between;margin:31px 0 15px;color:#a69aad;font-size:10px}.section-label>span:last-child{color:#b8adbf;font-size:9px}.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.feature-card{text-align:left;border:1px solid #ebe6f1;background:#ffffffb0;border-radius:12px;padding:20px 18px;position:relative;transition:transform .2s,border-color .2s}.feature-card:hover{transform:translateY(-3px);border-color:#cfc0e3}.feature-icon{display:flex;align-items:center;justify-content:center;width:33px;height:33px;border-radius:10px;margin-bottom:15px}.feature-icon svg{width:17px;height:17px}.violet{background:#f0eafa;color:#9a7bc5}.rose{background:#faedf2;color:#bf8ca4}.blue{background:#edf2fb;color:#8c9ac0}.feature-card strong{font-size:12px;font-weight:550}.feature-card p{font-size:10px;color:#a69bae;margin:9px 0 0;line-height:1.6}.card-arrow{position:absolute;top:24px;right:20px;color:#c1b5ce;font-size:14px}.welcome-footnote{margin-top:27px;text-align:center;font-size:9px;color:#b2a8bd;display:flex;align-items:center;justify-content:center;gap:6px}.welcome-footnote svg{width:11px;height:11px}.muted{color:#a397b0}.chat-view{padding-bottom:210px}.conversation-content{max-width:900px;margin:32px auto;padding:0 34px}.user-message{display:flex;justify-content:flex-end;margin:25px 0}.user-message p{background:#eee7f7;max-width:80%;border-radius:14px 14px 3px 14px;padding:15px 20px;line-height:1.8;font-size:13px;white-space:pre-wrap;margin:0}.agent-message{margin:30px 0}.agent-label{display:flex;align-items:center;gap:9px;font-size:12px;font-weight:600;color:#5a436f;margin-bottom:18px}.agent-badge{display:flex;align-items:center;justify-content:center;width:27px;height:27px;border-radius:9px;background:linear-gradient(140deg,#ae90ce,#d5b4d2);color:#fff;font-size:17px}.agent-label small{font-size:9px;font-weight:400;color:#ac9bb9;margin-left:4px}.pipeline{background:#fff;border:1px solid #eae2f1;border-radius:12px;padding:16px 18px;margin-bottom:20px}.pipeline-head{font-size:11px;color:#8e77a6;display:flex;gap:8px;align-items:center;margin-bottom:10px}.pipeline details{font-size:11px;color:#9b8ba8}.pipeline summary{cursor:pointer}.pipeline ul{list-style:none;padding-left:12px;margin:13px 0 0}.pipeline li{padding:6px 0;font-size:11px;line-height:1.6;border-left:1px solid #e8e0ef;padding-left:13px}.pipeline time{font-size:9px;margin-right:9px;color:#b6a8c2}.spin{display:inline-block;width:10px;height:10px;border:1.5px solid #e6d9f2;border-top-color:#9770bc;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.report-tabs{display:flex;border-bottom:1px solid #e9e2f0;gap:24px;margin:22px 0}.report-tabs button{padding:10px 0;font-size:12px;color:#a292af;border-bottom:2px solid transparent}.report-tabs button.active{color:#8156b2;border-color:#9771c4}.overview{line-height:1.95;font-size:13px;white-space:pre-wrap;color:#65576f}.report-banner{padding:14px 17px;border-radius:10px;background:#f7f0e7;color:#a17b46;font-size:12px;margin-bottom:20px;display:flex;justify-content:space-between;align-items:center}.report-banner.neutral{background:#f0edf7;color:#8e7aa4}.report-meta{font-size:10px;color:#ab9cb6;margin:12px 0}.report-section h3{font-size:14px;margin:25px 0 14px;font-weight:550}.identity-notes{font-size:12px;line-height:1.9;color:#95839f;padding:13px 16px;background:#f4f0f8;border-radius:9px}.risk-event{border:1px solid #ebe3f0;border-radius:11px;background:white;padding:19px 20px;margin:13px 0}.event-head{display:flex;align-items:center;gap:9px}.event-head h4{font-size:13px;margin:0;font-weight:550}.tag{font-size:9px;border-radius:4px;padding:4px 6px;background:#f4eef9;color:#9b7db5;white-space:nowrap}.tag.high{background:#f9eaea;color:#b87474}.tag.medium{background:#faf0e1;color:#b5955c}.risk-event p{font-size:12px;line-height:1.9;color:#89788f}.response-line{background:#faf8fc;border-radius:7px;padding:10px 12px!important;font-size:11px!important}.evidence-quote{border-left:2px solid #c8b4dc;padding:9px 13px;color:#9b89a6;font-size:11px;line-height:1.8;margin:12px 0;white-space:pre-wrap}.source-link{color:#8e68b6;font-size:10px;line-height:1.8;word-break:break-all;text-decoration:none}.source-link:hover{text-decoration:underline}.gaps-list{padding-left:18px;font-size:12px;color:#9b89a6;line-height:2}.source-card{border:1px solid #e8e1ef;background:white;border-radius:10px;padding:17px 19px;margin:12px 0}.source-card h4{font-size:12px;line-height:1.6;margin:0 0 7px;font-weight:550}.source-card p{font-size:11px;color:#9b89a6;line-height:1.8}.source-card details{font-size:11px;color:#9b89a6;margin-top:12px}.source-card pre{white-space:pre-wrap;line-height:1.8;max-height:350px;overflow:auto;font-family:inherit;font-size:11px}.source-meta{font-size:9px;color:#b19abc;margin-top:9px}.review-card{padding:20px;border-radius:12px;border:1px solid #e5daee;background:white;margin-top:26px}.review-card h3{margin-top:0;font-size:13px}.review-controls{display:flex;gap:10px;margin-bottom:12px}.review-card textarea{width:100%;margin-bottom:12px}.review-status{font-size:11px;color:#96839e;margin-top:10px}.report-actions{display:flex;gap:9px;margin-top:20px}.composer-wrap{position:fixed;bottom:0;left:258px;right:0;padding:17px 34px 12px;background:linear-gradient(transparent,#faf9fc 15%);z-index:10}.composer{max-width:832px;margin:auto;border:1px solid #e8dff1;background:white;border-radius:15px;box-shadow:0 5px 30px #74618e08;padding:16px 18px 12px}.composer textarea{width:100%;border:0;background:none;padding:0;box-shadow:none;resize:none;min-height:42px;font-size:12px}.composer-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:8px}.toggle-label{display:flex;align-items:center;gap:6px;font-size:10px;color:#a18dad;margin:0}.toggle-label input{accent-color:#9872bf;width:12px;height:12px}.toggle-label span{font-size:9px}.send-button{background:#9470c1;border-radius:50%;width:32px;height:32px;color:#fff;font-size:22px;font-weight:300}.composer-wrap>p{text-align:center;font-size:9px;color:#b7aabf;margin:9px 0 0}.skills-view{max-width:860px;margin:65px auto;padding:0 30px}.skills-view h1{font-size:32px;font-weight:550;margin:20px 0}.skill-tile{border:1px solid #e8e0f0;border-radius:13px;background:white;padding:23px;margin:18px 0}.skill-tile h3{font-size:14px;font-weight:550}.skill-tile p{font-size:12px;line-height:1.9;color:#9a88a6}.skill-tile .tag{float:right}dialog{border:1px solid #e8dff0;border-radius:19px;padding:28px;max-width:540px;width:calc(100% - 40px);box-shadow:0 24px 90px #33224d25;color:#44324f}dialog::backdrop{background:#21132e40;backdrop-filter:blur(4px)}.dialog-head{display:flex;justify-content:space-between;align-items:flex-start}.dialog-head h2{font-size:22px;font-weight:550;margin:10px 0 5px}dialog>.muted{font-size:12px}.connection-row{display:flex;align-items:center;gap:10px;padding:15px 0;border-bottom:1px solid #f1ebf6;font-size:12px}.connection-row small{margin-left:auto;color:#a796b3;font-size:10px}.setup-note{background:#f8f4fc;padding:17px;border-radius:10px;margin-top:20px;font-size:11px;line-height:1.8}.setup-note strong{font-weight:550}.setup-note code{display:block;background:#ede6f5;padding:5px 8px;border-radius:4px;font-size:10px;margin:6px 0;word-break:break-all}.setup-note p code{display:inline;padding:1px 5px}.dialog-actions{display:flex;justify-content:space-between;margin-top:25px}.toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);background:#49365d;color:white;border-radius:10px;padding:13px 20px;font-size:12px;box-shadow:0 5px 25px #39214330;z-index:100;max-width:80vw;line-height:1.6}.error-box{padding:18px;background:#fbf0f0;border:1px solid #f0dddd;border-radius:10px;color:#b27c7c;line-height:1.9;font-size:12px}.error-text{color:#b47a7a;font-size:12px}.login-brand{color:#9b75c5;font-weight:600;margin-bottom:30px}#login-form{display:flex;flex-direction:column;gap:16px;margin-top:25px}.mobile-menu{display:none}.query-text{font-family:monospace;font-size:10px;color:#ac97bd;line-height:1.8;word-break:break-word}.view-empty{color:#ac9ab8;font-size:12px;padding:25px 0}.report-finish{font-size:10px;color:#b6a7bf;margin-top:18px}.source-count{font-size:10px;color:#9c85ad}.review-controls select{flex:1}.connection-warning{font-size:11px;background:#f6f0fa;border-radius:8px;padding:13px;color:#9c7bb0;margin:16px 0;line-height:1.8}
@media(min-width:1600px){.welcome{margin-top:95px}.welcome h1{font-size:50px}.start-card{padding:28px 30px}.feature-card{padding:25px 21px}.welcome-description{font-size:14px}}@media(max-width:1100px){.sidebar{width:222px;padding-left:14px;padding-right:14px}.main-shell{margin-left:222px}.composer-wrap{left:222px}.welcome{width:calc(100% - 60px);margin-top:48px}.welcome h1{font-size:38px}.secondary-fields{grid-template-columns:1fr}.topbar{padding:0 26px}.feature-card p{font-size:9px}.start-bottom>span{font-size:9px}}@media(max-width:760px){.sidebar{transform:translateX(-100%);transition:transform .2s;width:245px;box-shadow:10px 0 40px #33224d10}.sidebar.open{transform:translateX(0)}.main-shell{margin-left:0}.composer-wrap{left:0;padding:15px 16px 12px}.mobile-menu{display:inline-flex;margin-right:8px}.topbar{height:65px;padding:0 16px}.topbar-left{display:flex;align-items:center}.topbar-right{gap:12px}.breadcrumb{font-size:10px}.breadcrumb>span{margin:0 8px}.connection-pill{font-size:9px;padding:7px 9px}.header-divider{display:none}.welcome{width:calc(100% - 36px);margin-top:36px}.welcome h1{font-size:34px}.eyebrow{font-size:8px;letter-spacing:1.3px}.welcome-description{font-size:12px}.start-card{padding:20px}.secondary-fields{gap:14px;margin-top:16px}.start-bottom{align-items:flex-end;gap:8px}.start-bottom>span{max-width:135px;line-height:1.7}.primary{padding:10px 14px;gap:12px;font-size:11px}.feature-grid{gap:9px}.feature-card{padding:15px 11px}.feature-card strong{font-size:11px}.feature-card p{line-height:1.8}.feature-icon{width:28px;height:28px;margin-bottom:12px}.card-arrow{right:10px;top:18px}.conversation-content{padding:0 18px}.event-head{flex-wrap:wrap}.toggle-label .muted{display:none}.composer-wrap>p{font-size:8px}.welcome-footnote{font-size:8px;line-height:1.8}.skill-tile{padding:18px}.report-banner{font-size:11px}.user-message p{max-width:90%}.review-controls{flex-direction:column}}

/* KOL Lens — editorial research workspace */
:root{--ink:#1c3436;--teal:#22665d;--paper:#f6f5f0;--line:#e1e4dd;--muted:#77827c}
body{background:var(--paper);color:var(--ink);font-size:14px;-webkit-font-smoothing:antialiased}
.sidebar{width:246px;background:#193638;border-right:0;padding:30px 18px 0;color:#e2eae5}.brand{margin:0 10px 33px;color:#fff;letter-spacing:-1px;font-size:24px}.brand b{font-weight:350}.brand small{color:#8ea9a4;font-size:8px;letter-spacing:1.5px}.brand-mark{background:#dbe6bd;color:#203b36;border-radius:11px;width:38px;height:40px}.brand-mark span{color:#557c61}.new-chat{background:#e0eacb;color:#203d35;box-shadow:none;border-radius:8px;padding:13px 15px;margin-bottom:24px}.new-chat:hover{background:#edf3de}.nav-item{color:#a8bdb7;font-size:12px;padding:13px 12px}.nav-item.active{background:#2b4848;color:#e7efde}.nav-item:hover{background:#294647;color:#fff}.mini-label{border-color:#47605c;color:#bdcdc1}.history-heading{color:#8fa7a0;font-size:10px;margin-top:32px;text-transform:uppercase}.sidebar .icon-button{color:#a9b9af}.sidebar .icon-button:hover{background:#335252}.history-item{padding:12px;border-radius:7px;color:#c7d5ce}.history-item.active{background:#2c4949;border-left:2px solid #d4dfb9;padding-left:10px}.history-item:hover{background:#254242}.history-item small,.empty-history{color:#89a59c}.sidebar-bottom{border-color:#35504d}.workspace{border-color:#35504d;padding-bottom:22px}.workspace small{color:#91aaa0}.workspace-tag{background:#324e49;color:#b0c4ad}.avatar{background:#d9e5c8;color:#355749;border-radius:9px}.sidebar .status-dot.good{background:#c9dfa6}.sidebar .history-filter{background:#294647;color:#fff;border-color:#44615a}.main-shell{margin-left:246px}.topbar{height:72px;background:#f6f5f0e8;border-bottom:1px solid var(--line);padding:0 42px}.breadcrumb{color:#8b948c;font-size:11px}.breadcrumb b{color:#40574e}.breadcrumb span{color:#b5beb3}.connection-pill{border-color:#dde4d9;border-radius:6px;font-size:10px;color:#5f766a;background:#fbfcf8}.avatar.small{background:#e3e9d9;color:#3a5143;border-radius:8px}.header-divider{background:#dce2d7}.welcome{width:min(1040px,calc(100% - 84px));margin:33px auto 32px}.welcome-masthead{display:flex;align-items:center;justify-content:space-between;font-size:9px;letter-spacing:1.8px;color:#718277;border-bottom:1px solid #dce2d6;padding-bottom:15px}.edition-label{font-size:8px;letter-spacing:1.2px;color:#939e91}.hero-layout{display:grid;grid-template-columns:1.1fr 1fr;gap:40px;align-items:center;padding:34px 0 30px}.eyebrow{font-size:10px;letter-spacing:1px;color:#547368}.hero-line{height:1px;width:22px;background:#658d75}.welcome h1{font-size:clamp(34px,3.3vw,51px);line-height:1.38;letter-spacing:-1.9px;font-weight:650;margin:17px 0 17px;color:#243e37}.gradient-text{color:#648368;background:none;position:relative}.welcome-description{font-size:12px;line-height:1.95;color:#7d897e;margin:0 0 22px}.platform-strip{display:flex;gap:9px;align-items:center;flex-wrap:wrap;font-size:9px}.platform-strip>span:not(:first-child){border:1px solid #dbe0d4;border-radius:4px;padding:5px 7px;color:#607361;background:#ffffff65}.platform-caption{font-size:9px;color:#8a9485;margin-right:3px}.research-visual{background:#edf0e5;border:1px solid #dce2d2;border-radius:11px;padding:20px 22px;position:relative;box-shadow:8px 8px 0 #e8ebdf70;transform:rotate(-1deg)}.visual-heading{display:flex;align-items:center;gap:9px;color:#405b4a;font-size:11px;padding-bottom:15px;border-bottom:1px solid #d8dfce}.visual-icon svg{width:18px;height:18px}.visual-index{margin-left:auto;font-size:9px;font-family:monospace;letter-spacing:1px;color:#7f9277}.process-row{display:flex;align-items:center;gap:13px;padding:15px 0;border-bottom:1px solid #dce3d3}.process-number{font-family:monospace;font-size:10px;color:#72916d;align-self:flex-start;padding-top:3px}.process-row strong{font-size:11px;font-weight:550;color:#425b46}.process-row small{display:block;font-size:9px;color:#8b9881;margin-top:6px}.process-symbol{margin-left:auto;color:#829876;font-size:17px}.visual-footer{display:flex;align-items:center;gap:6px;font-size:8px;color:#7c9073;margin-top:15px}.visual-footer>span:last-child{margin-left:auto;letter-spacing:.5px;font-size:6px}.tiny-dot{background:#78956b}.start-card{border:1px solid #dce2d6;border-radius:11px;background:#fffefb;box-shadow:0 5px 24px #263d2c04;padding:22px 25px}.card-topline{margin-bottom:20px}.card-topline strong{font-size:13px;font-weight:600}.subtle-icon{color:#537a64}.tiny-pill{font-size:8px;letter-spacing:1px;background:#f2f4ec;color:#85947c;border-color:#e7ebdf;border-radius:4px}label{color:#617264;font-size:11px}label span{color:#98a28f;font-size:9px}input,textarea,select{background:#fafbf7;border-color:#e0e5d9;border-radius:6px;color:#334c3b;font-size:12px}input:focus,textarea:focus{border-color:#739a7a;box-shadow:0 0 0 3px #71957014}input::placeholder,textarea::placeholder{color:#a7b09e}#subject{padding:14px}.secondary-fields{margin-top:17px;gap:20px}.secondary-fields input{font-size:11px}.start-bottom{border-color:#eef0e7;margin-top:19px;padding-top:17px}.start-bottom>span{color:#8c9983;font-size:9px}.primary{background:#2b6657;border-radius:6px;padding:12px 21px;font-size:11px;gap:28px}.primary:hover{background:#1f5145;box-shadow:0 3px 12px #204c4020}.primary:active{transform:translateY(1px)}.secondary{color:#5d7965;border-color:#dce5d7;border-radius:6px}.secondary:hover{background:#f2f5ed}.section-label{margin:27px 0 12px;font-size:10px;color:#6c7e6a}.section-label>span:last-child{font-size:9px;color:#9aa58f}.feature-grid{gap:13px}.feature-card{border-color:#e0e5d8;border-radius:8px;background:#ffffff60;padding:18px;min-height:122px}.feature-card:hover{background:#fffefa;border-color:#9db397;transform:translateY(-2px);box-shadow:0 8px 20px #344d3010}.feature-card strong{font-size:12px;color:#435d46}.feature-card p{font-size:10px;color:#89957f;line-height:1.8}.feature-icon{border-radius:6px;width:29px;height:29px;margin-bottom:12px}.violet{background:#e8eedf;color:#648363}.rose{background:#f0e6dd;color:#a48062}.blue{background:#e4ecea;color:#6b8a88}.card-arrow{color:#8f9e84;right:17px;top:21px}.welcome-footnote{color:#9da68f;margin-top:22px}.muted{color:#899580}.composer-wrap{left:246px;background:linear-gradient(transparent,var(--paper) 20%)}.composer{border-radius:12px;border-color:#dce4d5;box-shadow:0 8px 30px #213d3110;background:#fffefa}.composer textarea{color:#3c5546;font-size:13px}.toggle-label{color:#7c8d72}.toggle-label input{accent-color:#477a5d}.send-button{background:#326e59;border-radius:9px}.composer-wrap>p{color:#9ba68e}.agent-label{color:#375f48}.agent-badge{background:#426f58;border-radius:7px}.agent-label small{color:#91a085}.user-message p{background:#e7eddf;color:#405840}.pipeline{border-color:#dfe6d8;border-radius:9px;background:#fffefa}.pipeline-head{color:#68805c}.pipeline details,.pipeline li{color:#8a977e}.pipeline li{border-color:#dfe6d6}.report-banner{border-left:3px solid #b5925f;background:#f2ecdf;color:#8d7046;border-radius:5px;padding:17px}.report-banner.neutral{background:#eaf0e1;color:#667e54;border-color:#9ab17e}.report-meta,.report-finish{color:#8c9a80}.report-tabs{border-color:#dae3d2;gap:28px}.report-tabs button{color:#91a082}.report-tabs button.active{color:#38654d;border-color:#477a55;font-weight:600}.overview{font-size:14px;color:#54684b;line-height:2}.report-section h3{font-size:15px;color:#3b573e;font-weight:600}.identity-notes{background:#edf1e5;color:#7d8f70;border-radius:6px}.risk-event{border-color:#dee5d5;border-radius:8px;padding:22px;background:#fffefa}.event-head h4{font-size:14px;color:#3d573e}.risk-event p{color:#7a8a6e;font-size:13px}.tag{background:#edf1e5;color:#7e936e;border-radius:4px}.tag.high{background:#f4e8df;color:#ab7657}.tag.medium{background:#f1ecda;color:#a08b4e}.response-line{background:#f3f5ec}.evidence-quote{border-color:#9db68a;color:#819274;background:#f7f8f1;padding:12px 15px;border-radius:0 5px 5px 0}.source-link{color:#527c5b}.source-card{border-color:#dfe5d6;background:#fffefa;border-radius:8px}.source-card p,.source-card details,.gaps-list{color:#829374}.source-card h4{color:#496443}.source-meta,.source-count{color:#94a184}.review-card{border-color:#d9e3cc;background:#fcfdf7;border-radius:9px}.review-status{color:#7d956a}.skills-view h1{color:#2d4d3c}.skill-tile{border-color:#dfe5d5;border-radius:9px;background:#fffefa}.skill-tile p{color:#829373}.skill-tile h3{color:#45623f}dialog{border-color:#dce4d4;border-radius:13px;color:#34503c;background:#fffefa}dialog::backdrop{background:#152d2845}.setup-note{background:#f0f4e8}.setup-note code{background:#e6eddc}.connection-row{border-color:#e9eedf}.connection-row small{color:#8d9d7f}.toast{background:#274e3e}.login-brand{color:#608b5c}.spin{border-color:#dbe6d0;border-top-color:#5b8b52}.query-text{color:#78916a}.connection-warning{background:#f1f3e6;color:#81956a}
@media(min-width:1600px){.welcome{margin-top:42px}.welcome h1{font-size:54px}.hero-layout{padding:42px 0 36px}.start-card{padding:26px 29px}.feature-card{padding:21px}}
@media(max-width:1100px){.sidebar{width:220px}.main-shell{margin-left:220px}.composer-wrap{left:220px}.welcome{width:calc(100% - 52px);margin-top:28px}.topbar{padding:0 26px}.hero-layout{gap:23px}.welcome h1{font-size:37px}.research-visual{padding:16px}.visual-footer>span:last-child{display:none}.secondary-fields{grid-template-columns:1fr 1fr}.secondary-fields label{line-height:1.8;min-height:30px}.feature-card{padding:16px 13px}.feature-card p{font-size:9px}}
@media(max-width:850px){.hero-layout{grid-template-columns:1fr;padding-top:28px;gap:24px}.research-visual{transform:none;display:none}.welcome h1{font-size:43px}.welcome-description{margin-bottom:18px}.hero-copy{padding-bottom:4px}.secondary-fields{grid-template-columns:1fr}.secondary-fields label{min-height:0}}
@media(max-width:760px){.sidebar{width:245px}.main-shell{margin-left:0}.composer-wrap{left:0}.welcome{width:calc(100% - 36px);margin-top:22px}.topbar{height:64px;padding:0 16px}.edition-label{display:none}.hero-layout{padding-top:25px;padding-bottom:25px}.welcome h1{font-size:40px;letter-spacing:-1px}.welcome-masthead{font-size:8px}.eyebrow{font-size:9px}.start-card{padding:20px}.tiny-pill{font-size:7px;letter-spacing:.6px}.feature-grid{grid-template-columns:1fr}.feature-card{min-height:0;padding:16px 17px 16px 62px}.feature-icon{position:absolute;left:17px;top:18px}.feature-card p{font-size:10px;margin-top:5px}.card-arrow{top:20px}.welcome-footnote{font-size:9px}.connection-pill{font-size:9px}.start-bottom>span{font-size:9px}.primary{padding:11px 15px;gap:16px}.report-actions{flex-wrap:wrap}.platform-strip{gap:7px}.composer-bottom{gap:10px}.toggle-label{font-size:9px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.composer-bottom{justify-content:flex-end}

/* Spacious, single-surface conversation composer. */
.composer-wrap{padding:22px 30px 15px;background:linear-gradient(transparent,var(--paper) 32%)}
.composer{max-width:940px;padding:22px 24px 16px;border:1px solid #dbe3d7;border-radius:26px;background:#fffefc;box-shadow:0 8px 32px #253e3010;transition:border-color .2s,box-shadow .2s}
.composer:focus-within{border-color:#83a48b;box-shadow:0 0 0 3px #739d7910,0 10px 38px #253e3012}
.composer textarea,.composer textarea:focus{display:block;width:100%;height:88px;min-height:88px;max-height:240px;padding:0 2px 14px;margin:0;border:0;border-radius:0;background:transparent;box-shadow:none;outline:none;font-family:inherit;font-size:16px;line-height:1.85;letter-spacing:.1px;resize:none;overflow-y:hidden;color:#294b3d}
.composer textarea::placeholder{color:#9ba99b;font-size:15px}
.composer-bottom{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:42px;margin-top:6px}
.composer-hint{font-size:10px;letter-spacing:.2px;color:#a0ac9d;line-height:1.6}
.composer-hint span{margin:0 7px;color:#c3ccbe}
.send-button{flex-shrink:0;width:42px;height:42px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#2f6955;box-shadow:0 3px 9px #315a3c16;transition:background .2s,transform .2s}
.send-button svg{width:21px;height:21px;stroke-width:1.9}
.send-button:hover:not(:disabled){background:#205240;transform:translateY(-1px)}
.send-button:disabled{background:#9bb8a8;opacity:.8;box-shadow:none}
.composer-wrap>p{margin-top:11px;font-size:9px;color:#a1ad98;letter-spacing:.3px}
.chat-view{padding-bottom:310px}
@media(max-width:760px){.composer-wrap{padding:20px 12px 12px}.composer{padding:20px 19px 14px;border-radius:23px}.composer textarea,.composer textarea:focus{font-size:16px;min-height:88px}.composer textarea::placeholder{font-size:14px}.composer-hint{font-size:9px;max-width:230px}.send-button{width:40px;height:40px}.composer-wrap>p{font-size:8px;letter-spacing:0}.chat-view{padding-bottom:300px}}

/* Independent session rail and content viewport. Only these two lists scroll. */
:root { --sidebar-expanded-width: 246px; --sidebar-width: var(--sidebar-expanded-width); --sidebar-rail-width: 88px; }
html, body { width: 100%; height: 100%; overflow: hidden; }
body {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  height: 100dvh;
  min-height: 0;
}
.sidebar {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  inset: auto;
  width: 100%;
  min-width: 0;
  height: 100dvh;
  overflow: hidden;
  transform: none;
  visibility: visible;
  padding: 24px 18px 0;
  transition: none;
  box-shadow: none;
}
.sidebar > :not(.history-list) { flex-shrink: 0; }
.sidebar-header { display: flex; align-items: center; gap: 8px; margin: 0 0 28px; }
.sidebar-header .brand { flex: 1; min-width: 0; margin: 0; gap: 9px; font-size: 22px; }
.sidebar-header .brand-mark { width: 33px; height: 36px; flex-shrink: 0; font-size: 29px; }
.sidebar-header .brand small { font-size: 6px; letter-spacing: 1.1px; white-space: nowrap; }
.sidebar-collapse { flex-shrink: 0; }
.sidebar-collapse svg { width: 19px; height: 19px; }
.brand-copy { min-width: 0; }
.new-chat .nav-label { font-size: 14px; }
.new-chat > [data-icon] { display: flex; align-items: center; }
.source-scope-note { margin: 12px 0 0; font-size: 10px; line-height: 1.8; color: #8a9485; }
.history-copy { display: block; min-width: 0; }
.history-icon { display: none; align-items: center; justify-content: center; }
.history-list { min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #4f6a61 transparent; }
.history-list .history-item { min-width: 0; }
.main-shell {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  grid-template-rows: 72px minmax(0, 1fr) auto;
  margin-left: 0;
  min-width: 0;
  min-height: 0;
  height: 100dvh;
  overflow: hidden;
  container-type: inline-size;
}
.topbar { grid-row: 1; min-width: 0; height: 72px; position: relative; z-index: 10; }
.topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.topbar-right { flex-shrink: 0; }
.breadcrumb { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-message p, .overview { overflow-wrap: anywhere; }
#main { grid-row: 2; min-height: 0; min-width: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; scroll-padding: 24px; }
.chat-view { padding-bottom: 20px; }
.conversation-content { margin-top: 26px; margin-bottom: 24px; }
.composer-wrap { grid-row: 3; position: relative; inset: auto; width: 100%; padding: 14px 30px 12px; background: var(--paper); }
.composer { max-width: 940px; }
body.sidebar-collapsed { --sidebar-width: var(--sidebar-rail-width); }
body.sidebar-collapsed .sidebar { padding: 24px 10px 0; }
body.sidebar-collapsed .sidebar-header { gap: 4px; justify-content: space-between; }
body.sidebar-collapsed .sidebar-header .brand { flex: none; }
body.sidebar-collapsed .sidebar-header .brand-mark { width: 28px; height: 32px; font-size: 26px; }
body.sidebar-collapsed .sidebar-collapse { width: 28px; height: 28px; }
body.sidebar-collapsed .brand-copy,
body.sidebar-collapsed .nav-label,
body.sidebar-collapsed .mini-label,
body.sidebar-collapsed .new-chat kbd,
body.sidebar-collapsed .history-copy,
body.sidebar-collapsed .history-heading > *,
body.sidebar-collapsed .history-filter,
body.sidebar-collapsed .empty-history,
body.sidebar-collapsed .workspace-copy,
body.sidebar-collapsed .sidebar-bottom .status-dot { display: none; }
body.sidebar-collapsed .new-chat { width: 48px; height: 48px; padding: 0; justify-content: center; margin: 0 auto 22px; border-radius: 15px; }
body.sidebar-collapsed .new-chat svg { width: 22px; height: 22px; }
body.sidebar-collapsed .nav-item { width: 44px; height: 44px; padding: 0; margin: 5px auto; justify-content: center; gap: 0; }
body.sidebar-collapsed .nav-item svg { width: 21px; height: 21px; }
body.sidebar-collapsed .history-heading { height: 0; padding: 0; margin: 18px 0 12px; border-top: 1px solid #35504d; }
body.sidebar-collapsed .history-list { padding-bottom: 12px; }
body.sidebar-collapsed .history-item { display: flex; align-items: center; justify-content: center; width: 46px; height: 44px; padding: 0; margin: 5px auto; border-left: 0; }
body.sidebar-collapsed .history-icon { display: flex; }
body.sidebar-collapsed .history-icon svg { width: 20px; height: 20px; }
body.sidebar-collapsed .workspace { justify-content: center; padding: 16px 0 22px; }

@media (max-width: 760px) {
  .main-shell { grid-template-rows: 64px minmax(0, 1fr) auto; }
  .topbar { height: 64px; }
  .topbar-left { gap: 8px; }
  .composer-wrap { padding: 10px 12px 12px; }
  .chat-view { padding-bottom: 12px; }
}
@media (max-width: 600px) {
  :root { --sidebar-expanded-width: 180px; }
  .sidebar { padding-left: 12px; padding-right: 12px; }
  .sidebar-header { gap: 4px; }
  .sidebar-header .brand { font-size: 17px; gap: 6px; }
  .sidebar-header .brand small { display: none; }
  .sidebar-header .brand-mark { width: 27px; height: 31px; font-size: 25px; }
  .sidebar-header .sidebar-collapse { width: 25px; }
}
@container (max-width: 440px) {
  .welcome { width: calc(100% - 28px); }
  .welcome h1 { font-size: 30px; }
  .hero-layout, .secondary-fields { grid-template-columns: 1fr; }
  .research-visual, .edition-label, .tiny-pill { display: none; }
  .start-card { padding: 16px; }
  .start-bottom { flex-wrap: wrap; gap: 16px; }
  .feature-grid { grid-template-columns: 1fr; }
  .topbar { padding: 0 12px; gap: 8px; }
  .topbar-right { gap: 8px; }
  .header-divider, .avatar.small { display: none; }
  .breadcrumb { font-size: 0; }
  .breadcrumb > span { display: none; }
  .breadcrumb b { font-size: 11px; }
  .conversation-content { padding: 0 14px; }
  .overview { font-size: 13px; }
  .composer { padding: 16px 14px 12px; }
  .composer-hint { max-width: 140px; }
  input, textarea { min-width: 0; }
}

.secondary-fields > div:only-child { grid-column: 1 / -1; }
/* Image evidence stays separate from textual allegations. */
.visual-review{margin:22px 0;padding:20px;border:1px solid #dce3d5;border-radius:12px;background:#f1f4ea;line-height:1.8;color:#5c7051}
.visual-review.visual-warning{border-color:#dfc5a4;background:#faf3e8;color:#795f3c}
.visual-review-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.visual-review-head h3{margin:0!important;font-size:15px}.visual-review>p{font-size:13px;margin:12px 0}.visual-review .source-meta{font-size:11px}
.visual-finding{display:grid;grid-template-columns:116px minmax(0,1fr);gap:18px;padding:18px 0;border-top:1px solid #e4d7c1;margin-top:16px}
.visual-finding img{display:block;width:116px;height:154px;object-fit:contain;background:#fffdf8;border-radius:8px;border:1px solid #e7ddce}
.visual-finding strong{font-size:14px;color:#88633e}.visual-finding p{font-size:13px;margin:8px 0;line-height:1.85}.visual-finding small{display:block;font-size:10px;color:#8c8e79;margin-top:8px}.visual-finding .source-link{font-size:12px}
@container(max-width:440px){.visual-review{padding:15px}.visual-finding{grid-template-columns:80px minmax(0,1fr);gap:12px}.visual-finding img{width:80px;height:116px}}

/* Recoverable interruptions keep the next action clear and the raw material folded. */
.investigation-interruption{padding:24px;border:1px solid #e4d9c6;border-radius:12px;background:#faf6ee;color:#5f624e}
.interruption-heading{display:flex;align-items:center;gap:12px}.interruption-heading>span{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#eee2cb;color:#91734c;font-weight:600}.interruption-heading h3{margin:0;font-size:17px;color:#455747}
.investigation-interruption>p{line-height:1.9;margin:16px 0 8px;font-size:14px}.investigation-interruption .interruption-note{font-size:12px;color:#88917c;margin-top:6px}.investigation-interruption .report-actions{margin:20px 0 0}
.saved-materials{margin-top:20px;border:1px solid #e1e6d9;border-radius:10px;padding:16px 20px;background:#fffefa}.saved-materials>summary{cursor:pointer;font-size:12px;color:#647a61}.saved-materials ul{padding:0;list-style:none}.saved-materials li{padding:12px 0;border-top:1px solid #ebeee3;font-size:12px;overflow-wrap:anywhere}
.visual-next-step{border-top:1px solid #dce3d5;margin-top:18px;padding-top:16px}.visual-next-step>strong{font-size:13px;color:#486443}.visual-next-step>p{font-size:12px;color:#849178}.profile-candidate{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:10px 0;flex-wrap:wrap}.profile-candidate .source-link{font-size:13px}.profile-candidate button{flex-shrink:0}

.visual-samples{margin-top:18px;padding-top:14px;border-top:1px solid #dce3d5}.visual-samples>summary{cursor:pointer;font-size:12px;color:#627b5b}.sample-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(108px,1fr));gap:12px;margin-top:16px}.sample-gallery>div{min-width:0}.sample-gallery img{display:block;width:100%;height:130px;object-fit:contain;background:#fffefa;border:1px solid #dce3d5;border-radius:7px}.sample-gallery .source-link{font-size:10px;display:inline-block;margin-top:8px}.sample-gallery p{font-size:10px;line-height:1.8;color:#839078;max-height:76px;overflow:auto}

/* Import stays inside the existing investigation entry. */
.start-actions{display:flex;align-items:center;gap:18px}.import-link{font-size:12px;color:#527960;text-underline-offset:4px;padding:8px 0}.import-link:hover{text-decoration:underline}
#import-dialog{width:min(680px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:auto;padding:28px}
#import-dialog .muted{font-size:12px;line-height:1.8}#batch-input{display:block;width:100%;padding:12px;border:1px solid #dce4d4;border-radius:8px;font:inherit;font-size:12px;resize:vertical;margin-top:8px;line-height:1.8}
.import-toolbar{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin-top:20px}.import-file-label{display:inline-flex;align-items:center;cursor:pointer;padding:10px 16px;border:1px solid #dce5d7}.import-file{max-width:100%;font-size:12px}.import-file::file-selector-button{display:none}.import-file-label:has(+input:focus-visible){outline:2px solid #2b6657;outline-offset:3px}
.import-table-wrap{overflow:auto;border:1px solid #dce4d4;border-radius:8px;background:#fffefa}.import-table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}.import-table th{background:#f0f4e8;color:#62775b;font-weight:500;padding:12px 16px;white-space:nowrap}.import-table td{padding:12px 16px;border-top:1px solid #e8eddf;overflow-wrap:anywhere;min-width:110px}.import-table td:last-child{max-width:340px}.import-table button{padding:0;color:#2b6657;text-decoration:underline;text-underline-offset:3px}.import-table button:disabled{text-decoration:none}.import-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:22px;padding-top:18px;border-top:1px solid #e8eddf}.import-footer .primary{flex-shrink:0}.batch-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap}#import-preview .import-table-wrap{max-height:210px}#import-error:empty,#import-filename:empty{display:none}
@media(max-width:600px){#import-dialog{padding:20px}.import-footer{align-items:stretch;flex-direction:column}.start-actions{gap:14px;flex-wrap:wrap}.start-bottom .start-actions{margin-left:auto}.import-toolbar{gap:12px}.import-file{width:100%}}
.import-toolbar{position:relative}.import-file{position:absolute;width:1px;height:1px;padding:0;margin:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.import-toolbar .import-file-label{margin:0;width:auto}.import-toolbar .import-link{margin-left:auto}#import-dialog{max-width:680px}
