:root{--bg:#f7f8f5;--paper:#fff;--ink:#202b25;--muted:#7d857f;--line:#e4e9e2;--green:#3e6652;--green-light:#edf4ee;--orange:#a57031;--orange-light:#fbf3e6;--red:#ab534c;--red-light:#fbefed;--sidebar:234px;--radius:14px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);font-size:14px}
.home-empty{min-height:360px;display:flex;flex-direction:column;align-items:center;justify-content:center}.home-empty .toolbar{justify-content:center;margin-top:16px}.home-empty h2{margin-bottom:0}.sidebar{overflow-y:auto}
/* Project research: conversation, library and memory share the same workspace. */
.research-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px;align-items:start}.research-layout>*{min-width:0}.conversation{display:flex;flex-direction:column;min-height:650px}.conversation .section-head{align-items:flex-start}.conversation .section-head .hint{margin-bottom:0}.thread-label{display:flex;align-items:center;gap:12px;font-size:12px;color:var(--muted);padding-bottom:17px;border-bottom:1px solid var(--line)}.thread-label select{flex:1;min-width:0}.chat-messages{height:500px;overflow-y:auto;padding:20px 4px;overscroll-behavior:contain;scrollbar-width:thin}.chat-message{padding:16px 18px;border-radius:12px;margin:0 0 18px;background:#f5f7f2;overflow-wrap:anywhere}.chat-message.user{display:block;background:var(--green-light);margin-left:12%;border:1px solid #dfe9dc}.chat-message.assistant{background:transparent;border:1px solid var(--line);margin-right:3%}.chat-byline{font-size:11px;font-weight:600;color:var(--green);display:flex;justify-content:space-between;gap:10px}.chat-byline span{white-space:nowrap;flex:none;font-weight:400;color:var(--muted);font-size:10px}.chat-text{font-size:13px;line-height:1.85}.chat-text:not(.paper){white-space:pre-wrap}.chat-text p{margin:10px 0 0}.chat-text.paper{padding:0;margin:0;border:0;max-width:100%;font-size:13px}.chat-text.paper h1,.chat-text.paper h2,.chat-text.paper h3{font-size:16px}.chat-empty{text-align:center;padding:40px 12px;color:var(--muted)}.chat-empty h3{font-size:21px;font-weight:500;color:var(--ink)}.chat-empty p{line-height:1.8}.chat-symbol{width:48px;height:48px;border-radius:14px;background:var(--green-light);color:var(--green);display:inline-grid;place-items:center}.chat-symbol svg{width:26px;height:26px}.prompt-suggestions{display:grid;gap:9px;max-width:500px;margin:27px auto 0}.prompt-suggestions button{text-align:left;justify-content:space-between;font-size:12px;line-height:1.6}.chat-composer{border:1px solid #cddccf;border-radius:12px;padding:12px;background:#fff;box-shadow:0 3px 14px #263e2610}.chat-composer textarea{width:100%;border:0;resize:vertical;padding:5px 2px;min-height:75px;background:transparent;line-height:1.8}.chat-composer textarea:focus{outline:none}.chat-composer:focus-within{outline:2px solid #789d7350}.composer-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid #edf0e9;padding-top:10px}.composer-footer small{font-size:10px;color:var(--muted)}.composer-footer .toolbar{flex:none}.context-details{font-size:11px;margin-top:14px;color:var(--muted);line-height:1.7}.context-details summary{cursor:pointer}.research-aside .panel+.panel{margin-top:18px}.memory-card{padding:15px 0;border-top:1px solid var(--line);overflow-wrap:anywhere}.memory-card h3{font-size:13px;line-height:1.65;font-weight:600;margin:9px 0}.memory-card p{font-size:12px;line-height:1.8;white-space:pre-wrap;color:#707d70;margin:0 0 8px}.memory-card.archived{opacity:.65}.memory-footer{display:flex;justify-content:space-between;gap:10px;align-items:center}.memory-footer small{font-size:10px;color:var(--muted)}.memory-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 28px;margin-top:20px}.search-line{display:flex;gap:10px;align-items:center}.search-line input{flex:1;min-width:0;border:1px solid var(--line);border-radius:8px;padding:11px 13px}.source-options{display:flex;gap:13px;align-items:center;flex-wrap:wrap;margin:17px 0;font-size:11px;color:#6b786a}.source-options label{display:inline-flex;align-items:center;gap:5px;max-width:100%}.source-options input[type=checkbox]{accent-color:var(--green)}.source-options input:not([type=checkbox]){padding:9px;border:1px solid var(--line);border-radius:8px}.search-report{background:#f6f8f3;border-radius:8px;padding:13px;margin-top:17px;font-size:12px}.search-report summary{cursor:pointer;line-height:1.7;overflow-wrap:anywhere}.experiment-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.experiment-gallery figure{margin:0;min-width:0}.experiment-gallery img{display:block;width:100%;height:auto;border:1px solid var(--line);border-radius:8px}.experiment-gallery figcaption{font-size:10px;color:var(--muted);overflow-wrap:anywhere;line-height:1.6;margin-top:9px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1100px){.research-layout{grid-template-columns:minmax(0,1fr)}.research-aside{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.research-aside .panel+.panel{margin:0}.chat-messages{height:470px}}
@media(max-width:680px){.conversation{min-height:580px}.chat-messages{height:400px}.research-aside,.memory-grid,.experiment-gallery{grid-template-columns:minmax(0,1fr)}.composer-footer{align-items:flex-end}.composer-footer small{max-width:57%;line-height:1.7}.composer-footer .toolbar{width:auto}.search-line{flex-wrap:wrap}.search-line input{flex-basis:180px}.search-line button{flex:none}.source-options{gap:11px}.chat-message.user{margin-left:5%}.conversation .section-head{flex-wrap:wrap}.thread-label{flex-wrap:wrap}}
*{box-sizing:border-box}body{margin:0;background:var(--bg)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}a{color:var(--green);text-decoration:none}button{border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);padding:9px 13px;display:inline-flex;align-items:center;justify-content:center;gap:7px;transition:background .15s}button:hover:not(:disabled){background:#f0f4ee;border-color:#ced9cf}.primary{background:var(--green);border-color:var(--green);color:#fff}.primary:hover:not(:disabled){background:#315540;color:#fff}.quiet{border:0;background:transparent}.danger{color:var(--red)}.small{padding:6px 9px;font-size:12px}.icon{width:18px;height:18px;flex:none;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.muted{color:var(--muted)}.mono{font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.upper{font-size:10px;letter-spacing:1.7px;text-transform:uppercase;font-weight:700;color:var(--muted)}
.shell{display:grid;grid-template-columns:var(--sidebar) minmax(0,1fr);min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);background:#f0f3ed;border-right:1px solid var(--line);padding:27px 18px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;align-items:center;gap:10px;padding:0 9px 29px;font-weight:700;font-size:18px;letter-spacing:-.6px}.brand-mark{background:var(--green);width:33px;height:33px;border-radius:9px;display:grid;place-items:center;color:#fff}.brand small{display:block;font-size:9px;letter-spacing:2.4px;color:#8a958c;margin-top:4px;font-weight:500}.nav-section{padding:0 12px;margin:20px 0 10px;font-size:10px;letter-spacing:1.5px;color:#8a958c}.nav-item{width:100%;display:flex;justify-content:flex-start;gap:12px;border:0;background:transparent;border-radius:8px;padding:11px 13px;color:#6b776c;margin:3px 0;text-align:left;font-size:13px}.nav-item:hover{background:#e5ece2!important}.nav-item.active{background:#dfe9dc;color:#315b43;font-weight:600}.nav-item .count{margin-left:auto;font-size:10px;background:#d5e0d2;padding:2px 6px;border-radius:4px}.sidebar-footer{margin-top:auto;border-top:1px solid #dfe5dc;padding:18px 9px 0}.avatar{width:31px;height:31px;border-radius:50%;background:#d8e3d3;display:grid;place-items:center;font-size:11px;color:#426147}.user{display:flex;align-items:center;gap:10px}.user strong{font-size:12px;font-weight:600}.user small{font-size:10px;display:block;color:var(--muted);margin-top:3px}.workspace{grid-column:2;min-width:0}.topbar{height:68px;background:rgba(255,255,255,.8);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 34px;gap:12px}.breadcrumbs{display:flex;align-items:center;gap:12px;font-size:12px;color:#899188;min-width:0}.breadcrumbs strong{color:#556254;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:390px}.top-actions{display:flex;align-items:center;gap:16px;flex:none}.online{font-size:11px;color:#6e7c70;display:flex;align-items:center;gap:6px}.dot{height:6px;width:6px;background:#709871;border-radius:50%;display:inline-block}.tag{display:inline-flex;align-items:center;gap:5px;padding:4px 7px;border-radius:5px;font-size:10px;line-height:1.4;background:#f0f2ed;color:#70806d;white-space:nowrap}.tag.green{background:var(--green-light);color:var(--green)}.tag.orange{background:var(--orange-light);color:var(--orange)}.tag.red{background:var(--red-light);color:var(--red)}.page{padding:32px 34px 50px;max-width:1680px;margin:auto}.page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:25px}.page-heading h1{font-size:27px;line-height:1.25;font-weight:600;letter-spacing:-.8px;margin:8px 0 9px}.page-heading p{font-size:12px;line-height:1.7;color:var(--muted);margin:0;max-width:700px}.toolbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.toolbar select{max-width:310px}.input,select,textarea{border:1px solid var(--line);border-radius:8px;background:#fff;padding:9px 11px;color:var(--ink);max-width:100%}.search{position:relative}.search input{padding-left:36px;min-width:255px}.search svg{position:absolute;left:11px;top:10px;color:#8e978b}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.section-head h2{font-size:14px;letter-spacing:-.2px;margin:0;font-weight:600}.section-head small{font-size:11px;color:var(--muted)}.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:23px}.panel + .panel{margin-top:20px}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:20px}.grid-main{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:22px;align-items:start}.content-col{min-width:0}.metrics-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:23px}.metric{background:#fff;border:1px solid var(--line);border-radius:11px;padding:18px 19px}.metric-label{font-size:11px;color:#869080;display:flex;align-items:center;justify-content:space-between}.metric-number{font-family:ui-monospace,SFMono-Regular,monospace;font-size:29px;letter-spacing:-1.7px;margin-top:12px;line-height:1.1}.metric-foot{font-size:10px;color:#90988b;margin-top:8px}.hero{background:linear-gradient(110deg,#eaf1e6,#f4f7ed 70%);border:1px solid #dce7d7;border-radius:var(--radius);padding:26px 27px;display:flex;justify-content:space-between;gap:25px;margin-bottom:22px;position:relative;overflow:hidden}.hero h2{font-size:22px;font-weight:500;letter-spacing:-.6px;margin:9px 0 11px;max-width:640px;line-height:1.4}.hero p{color:#74816d;font-size:12px;line-height:1.8;margin:0;max-width:500px}.hero-art{flex:none;width:112px;display:grid;place-items:center;color:#b5c9ac;align-self:center}.hero-art svg{width:105px;height:105px}.flow{display:flex;gap:0;margin-top:15px}.flow-step{flex:1;position:relative;padding:10px 4px 0 0;min-width:0}.flow-step::before{content:"";height:2px;position:absolute;background:var(--line);top:24px;left:23px;right:0}.flow-step:last-child::before{display:none}.step-number{position:relative;z-index:1;background:#f6f8f3;border:1px solid #dfe5d9;border-radius:50%;width:28px;height:28px;display:grid;place-items:center;font-size:10px;color:#8a9683}.flow-step.done .step-number{background:#edf4e8;border-color:#d7e5cc;color:#5e8050}.flow-step.done::before{background:#d5e2cd}.flow-label{font-size:11px;margin-top:11px;color:#64735c}.flow-state{font-size:9px;color:#a0a79a;margin-top:5px}.note{border-left:3px solid #d9b87a;background:#fcf8ef;border-radius:0 7px 7px 0;padding:12px 14px;color:#8a774e;font-size:11px;line-height:1.8}.evidence-note{background:#f5f8f2;padding:11px 14px;border-radius:8px;color:#7d8b75;font-size:11px;line-height:1.8;margin-top:15px}.chart{width:100%;height:auto;display:block}.chart text{font:10px ui-monospace,SFMono-Regular,monospace;fill:#89937f}.chart .method{font-family:inherit;font-size:11px;fill:#54634c}.legend{display:flex;align-items:center;gap:16px;color:#8d9785;font-size:10px;margin-top:10px}.legend i{width:7px;height:7px;background:#6f8c65;border-radius:2px;display:inline-block;margin-right:5px}.legend i.seed{border-radius:50%;background:#b4c6ab}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:12px}th{font-size:10px;text-transform:uppercase;letter-spacing:.5px;font-weight:500;color:#899282;background:#f8faf6;text-align:left;border-block:1px solid var(--line);padding:11px 13px}td{padding:13px;border-bottom:1px solid #f0f3ec;color:#5d6955;vertical-align:top}td.num,th.num{text-align:right;font-family:ui-monospace,SFMono-Regular,monospace;font-size:11px}.row-action{cursor:pointer}.row-action:hover td{background:#f6f9f2}.tabs{display:flex;gap:5px;border-bottom:1px solid var(--line);margin:0 0 22px;padding-bottom:10px;flex-wrap:wrap}.tabs button{font-size:11px;padding:6px 10px;background:transparent;border-color:transparent;color:#8b9582}.tabs button.active{background:var(--green-light);color:var(--green)}.issue{border:1px solid var(--line);border-radius:10px;padding:14px 13px;margin-top:11px}.issue-top{display:flex;align-items:center;gap:7px;font-size:11px;color:#66735b;margin-bottom:9px}.severity{width:6px;height:6px;border-radius:50%;background:#ce8d71}.severity.warning{background:#d4b47a}.issue p{font-size:11px;line-height:1.7;color:#7b856f;margin:0 0 10px;overflow-wrap:anywhere}.issue .issue-title{color:#455540;font-weight:500;font-size:12px}.issue-footer{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:9px;color:#a1a88f}.aside-panel{position:sticky;top:20px}.aside-panel .section-head{margin-bottom:10px}.issue-summary{font-size:11px;color:#98a18e;line-height:1.8;margin:0 0 16px}.aside-panel .issue{background:#fcfdf9}.list-row{display:flex;gap:13px;align-items:center;padding:13px 0;border-bottom:1px solid #f0f3ec}.list-row:last-child{border-bottom:0}.file-icon{width:33px;height:36px;background:#f2f6ed;border:1px solid #e8efdf;color:#859575;border-radius:7px;display:grid;place-items:center;flex:none}.list-row .file-meta{min-width:0;flex:1}.file-meta strong{display:block;font-size:11px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-meta small{display:block;color:#a1a98f;font-size:9px;margin-top:5px}.project-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(295px,1fr));gap:18px}.project-card{padding:24px;display:flex;flex-direction:column;gap:16px;min-height:235px}.project-card h2{font-size:18px;font-weight:500;line-height:1.5;margin:0;letter-spacing:-.3px}.project-card p{font-size:11px;color:#8d9780;line-height:1.7;margin:0;overflow-wrap:anywhere}.project-card footer{display:flex;justify-content:space-between;align-items:center;margin-top:auto;padding-top:15px;border-top:1px solid var(--line)}.empty{padding:50px 22px;text-align:center;color:var(--muted);line-height:1.8;font-size:12px}.empty h2{font-size:18px;font-weight:500;color:#63735b}.boot{min-height:100vh;display:flex;align-items:center;justify-content:center;gap:12px;color:#809075;font-size:13px}.spinner{display:inline-block;border:2px solid #dbe5d5;border-top-color:#668759;border-radius:50%;width:17px;height:17px;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.activity{display:flex;gap:12px;align-items:flex-start;padding:13px 0;border-bottom:1px solid var(--line);font-size:11px;line-height:1.7}.activity .time{font-size:9px;font-family:ui-monospace,monospace;color:#a0aa96;white-space:nowrap}.activity .body{flex:1}.activity small{color:#98a38c;font-size:10px}.paper-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:22px}.paper{font-family:Georgia,"Songti SC",serif;padding:35px 45px;line-height:1.85;overflow:hidden;font-size:14px}.paper h1{font-size:24px;line-height:1.4;margin:25px 0 17px;letter-spacing:-.4px}.paper h2{font-size:19px;margin:25px 0 12px}.paper h3{font-size:16px}.paper p{margin:12px 0;overflow-wrap:anywhere}.paper img{width:100%;height:auto}.paper code,.paper pre{font-size:11px;white-space:pre-wrap;font-family:ui-monospace,monospace;background:#f4f7f0}.paper pre{padding:15px}.paper table{font-family:ui-monospace,monospace;font-size:10px}.paper td,.paper th{padding:8px}.paper ul{padding-left:22px}.paper [data-line].highlight{background:#fff1cc;outline:5px solid #fff1cc;border-radius:3px}.paper blockquote{border-left:3px solid #d3dfc8;margin:15px 0;padding:5px 15px;color:#89917e;font-size:12px}.literature-card{padding:20px 0;border-bottom:1px solid var(--line)}.literature-card:first-child{padding-top:0}.literature-card h3{font-size:15px;font-weight:500;line-height:1.5;margin:8px 0}.literature-card p{font-size:12px;color:#8a9380;line-height:1.8}.literature-meta{display:flex;align-items:center;gap:10px;font-size:10px;color:#9ba58f}.artifact-list button{width:100%;text-align:left;justify-content:flex-start;padding:10px;border:none;font-family:ui-monospace,monospace;font-size:10px;color:#77876b;overflow-wrap:anywhere}.artifact-list button:hover{background:#f4f8ed}.banner{border:1px solid #d8e5ce;background:#edf4e8;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:11px 15px;border-radius:9px;font-size:11px;color:#5c7750;margin-bottom:20px}.settings-row{display:flex;justify-content:space-between;gap:20px;padding:17px 0;border-bottom:1px solid var(--line);font-size:12px}.settings-row span{color:#98a38b}.settings-row strong{font-weight:500;overflow-wrap:anywhere}.mobile-menu{display:none}dialog{border:1px solid var(--line);border-radius:16px;padding:27px;box-shadow:0 25px 100px #1b2e2330;width:min(680px,calc(100vw - 30px));max-height:85vh;overflow:auto;color:var(--ink);background:#fff}dialog::backdrop{background:#15261b66;backdrop-filter:blur(2px)}.modal-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:20px}.modal-head h2{font-size:18px;font-weight:500;margin:0}.modal-foot{display:flex;gap:10px;justify-content:flex-end;margin-top:25px}.form-field{display:block;margin:17px 0;font-size:12px;color:#718266}.form-field input,.form-field select,.form-field textarea{display:block;width:100%;margin-top:8px}.form-field textarea{min-height:105px;resize:vertical;line-height:1.7}.form-field small{display:block;font-size:10px;color:#9ca98f;line-height:1.7;margin-top:8px}.code-view{background:#f7f9f3;border:1px solid var(--line);padding:15px;border-radius:8px;font:11px/1.8 ui-monospace,monospace;white-space:pre-wrap;overflow-wrap:anywhere;max-height:55vh;overflow:auto}.code-view .target-line{background:#f8e7b9;display:block}.error-text{color:var(--red);font-size:12px;line-height:1.8}.hint{font-size:11px;line-height:1.9;color:#8c9880}.toast{position:relative;max-width:430px;background:#304b37;color:#fff;border-radius:9px;padding:12px 17px;margin-top:10px;font-size:12px;box-shadow:0 5px 20px #23342520}.toast.error{background:#92564c}#notifications{position:fixed;bottom:25px;right:25px;z-index:99}.progress-track{height:4px;border-radius:4px;background:#e5ecdf;margin-top:14px;overflow:hidden}.progress-track span{height:100%;display:block;background:#83a373}.project-select{background:#e6ede1;border:1px solid #dce5d4;width:100%;font-size:10px;padding:9px;color:#59704e;margin-bottom:16px}.overflow{overflow-wrap:anywhere}.no-margin{margin:0!important}
@media(min-width:1600px){.page{padding:35px 45px}.grid-main{grid-template-columns:minmax(0,1fr) 340px}.aside-panel{padding:25px}}
@media(max-width:1180px){:root{--sidebar:205px}.page{padding:25px 24px}.topbar{padding:0 24px}.grid-main{grid-template-columns:minmax(0,1fr) 270px;gap:16px}.panel{padding:19px}.hero-art{display:none}.paper{padding:25px}.metrics-grid{gap:10px}.metric{padding:15px}.paper-layout{grid-template-columns:minmax(0,1fr)}.paper-layout>aside{position:static}}
@media(max-width:980px){.grid-main{grid-template-columns:minmax(0,1fr)}.aside-panel{position:static}.issues-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.issues-grid .issue{margin:0}.page-heading{flex-wrap:wrap}.metrics-grid{grid-template-columns:repeat(4,1fr)}.grid2{grid-template-columns:1fr}.breadcrumbs strong{max-width:250px}}
@media(max-width:680px){.shell{display:block}.workspace{width:100%}.sidebar{transform:translateX(-100%);transition:transform .2s}.sidebar.open{transform:translateX(0);box-shadow:0 0 0 100vmax #17281b50}.mobile-menu{display:inline-flex;padding:6px}.topbar{height:57px;padding:0 15px}.breadcrumbs{gap:6px}.breadcrumbs strong{max-width:180px}.top-actions{gap:4px}.online{display:none}.page{padding:23px 16px}.page-heading h1{font-size:23px}.metrics-grid{grid-template-columns:1fr 1fr}.metric-number{font-size:25px}.hero{padding:21px}.hero h2{font-size:19px}.hero p{font-size:11px}.flow-label{font-size:9px}.flow-state{font-size:8px}.panel{padding:17px}.toolbar{width:100%}.toolbar select{max-width:100%;width:100%}.issues-grid{grid-template-columns:1fr}.paper{padding:20px;font-size:13px}.paper h1{font-size:21px}.search input{min-width:0;width:100%}.top-actions button .label{display:none}.project-grid{grid-template-columns:1fr}.tag{font-size:9px}.settings-row{font-size:11px}.activity{flex-wrap:wrap}.page-heading .toolbar .search{width:100%}dialog{padding:22px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

@media(max-width:680px){.chart-wrap{overflow-x:auto}.chart-wrap .chart{min-width:680px}.chart-wrap::after{content:"图表可横向滑动";display:block;font-size:10px;color:#98a18e;margin-top:8px}}

.paper-files{margin:12px 0}.paper-files .hint{min-width:0;flex:1;overflow-wrap:anywhere}.paper-files .toolbar{align-items:flex-start}

.chat-attachments{display:flex;flex-wrap:wrap;gap:9px;margin:12px 0}.chat-file-card{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:9px;padding:8px;max-width:100%;min-width:0;background:#f7f9f3}.chat-file-card>div{min-width:0}.chat-file-card button{white-space:normal;overflow-wrap:anywhere;text-align:left}.chat-file-card small{display:block;font-size:10px;color:var(--muted)}.chat-image{width:72px;height:64px;object-fit:contain;border-radius:5px;background:white}.chat-attachment-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:10px 0}.chat-attachment-actions small,.chat-references small{font-size:10px;color:var(--muted);line-height:1.7}.chat-upload-label{display:inline-flex;align-items:center;gap:6px;cursor:pointer;padding:7px 10px;border:1px solid var(--line);border-radius:7px;font-size:11px}.chat-references{padding:9px 0;border-bottom:1px solid var(--line);font-size:11px}.chat-references .form-field{margin:10px 0}.chat-paper-options{display:grid;gap:9px;max-height:180px;overflow:auto;padding:5px 0}.chat-paper-options label{display:flex;align-items:flex-start;gap:8px;line-height:1.6}.chat-paper-options label span{overflow-wrap:anywhere;min-width:0}.chat-paper-options input{flex:none}

.resource-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 18px}.resource-grid .form-field{min-width:0}.resource-grid input,.resource-grid select{min-width:0}.experiment-plan{padding:16px 0;border-top:1px solid var(--line)}.experiment-plan h3{font-size:15px;font-weight:500}.experiment-plan button{margin-top:12px}@media(max-width:1100px){.resource-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.resource-grid{grid-template-columns:1fr}.execution-settings .section-head{flex-wrap:wrap}}
@media(max-width:680px){.panel .section-head{flex-wrap:wrap}.panel .section-head>select{min-width:0;width:100%}}
.experiment-plan{overflow-wrap:anywhere}
.page-loading{display:flex;align-items:center;gap:12px;min-height:160px;justify-content:center;color:var(--muted);font-size:13px}
.project-switcher{display:flex;align-items:center;gap:5px;min-width:0}.project-switcher label{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted);min-width:0}.project-switcher select{max-width:220px;min-width:80px;padding:7px 9px;font-size:12px;overflow:hidden;text-overflow:ellipsis}.project-switcher button{flex:none}@media(max-width:680px){.chat-shell .topbar{height:auto;min-height:57px;flex-wrap:wrap;padding-top:8px;padding-bottom:8px;gap:8px}.project-switcher{order:3;flex-basis:100%}.project-switcher label{flex:1}.project-switcher select{flex:1;min-width:0;max-width:none;width:100%}}
.chat-view .workspace{height:100dvh;display:flex;flex-direction:column;overflow:hidden}.chat-view .topbar{flex:none}.chat-page{flex:1;min-height:0;display:flex;flex-direction:column;width:100%;max-width:none;padding:0 24px 20px}.chat-view .conversation-chat{flex:1;min-height:0;width:100%;max-width:900px;margin:0 auto;background:transparent;border:0;padding:0;display:flex;flex-direction:column}.chat-view .chat-messages{flex:1;min-height:0;height:auto;display:flex;flex-direction:column;padding:24px 8px 16px;overflow:auto}.chat-view .chat-empty{margin:auto 0;padding:25px 12px}.chat-view .chat-empty h3{font-size:28px;color:var(--ink)}.chat-view .chat-symbol{display:none}.chat-view .prompt-suggestions{margin-top:20px;max-width:620px;grid-template-columns:repeat(3,minmax(0,1fr))}.chat-view .prompt-suggestions button{font-size:11px;align-items:flex-start;padding:12px;white-space:normal}.chat-view .chat-composer{flex:none;max-height:45dvh;overflow:auto;margin:0 4px;border-radius:18px;box-shadow:0 5px 24px #263e2610}.chat-view .chat-composer textarea{min-height:65px;max-height:200px}.chat-view .chat-attachments{max-height:120px;overflow:auto}.new-conversation{width:100%;justify-content:flex-start;background:var(--green-light);border-color:transparent;margin-bottom:15px}.conversation-history{flex:1;min-height:0;overflow:auto;margin-top:20px;padding-right:4px;scrollbar-width:thin}.conversation-history h2{font-size:11px;font-weight:500;color:var(--muted);padding:0 10px 10px}.conversation-link{width:100%;display:flex;gap:8px;align-items:center;border:0;background:transparent;padding:10px 9px;text-align:left;font-size:12px}.conversation-link span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.conversation-link.active{background:#dfe9dc}.compact-model-picker{margin:0!important;min-width:0;max-width:320px}.compact-model-picker select{margin:0;border:0;background:transparent;max-width:260px;width:auto;font-size:12px}.chat-view .breadcrumbs{flex:1}.chat-view .page-loading{flex:1}.chat-view .chat-message{flex:none}.chat-view .chat-message.user{align-self:flex-end;max-width:88%;margin-left:0}.chat-view .chat-message.assistant{margin-right:0}@media(max-width:680px){.chat-page{padding:0 10px 10px}.chat-view .prompt-suggestions{grid-template-columns:1fr}.chat-view .chat-empty{padding:16px 8px}.chat-view .chat-empty h3{font-size:23px}.compact-model-picker{max-width:165px}.compact-model-picker select{max-width:165px;font-size:11px;padding:6px}.chat-view .breadcrumbs>strong{display:none}.chat-view .chat-messages{padding:16px 3px}.chat-view .chat-composer{max-height:48dvh}.chat-view .chat-message{padding:12px}.chat-view .context-details{max-width:100%}}
.execution-settings .note,.execution-settings .error-text{overflow-wrap:anywhere}
.project-portal{min-height:100vh}.portal-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px 34px;border-bottom:1px solid var(--line);background:white}.portal-header .brand{padding:0}.project-portal .page{max-width:1450px}.project-back{justify-content:flex-start;margin:0 0 14px}.project-context{padding:12px;border:1px solid var(--line);border-radius:10px;margin-bottom:24px}.project-context small{display:block;font-size:10px;color:var(--muted);margin-bottom:9px}.project-context strong{display:block;font-size:12px;line-height:1.7;overflow-wrap:anywhere}.project-activity{margin-bottom:20px}.project-activity summary{font-size:12px;color:var(--muted);cursor:pointer}.project-card footer{flex-wrap:wrap;gap:12px}.breadcrumbs>span:first-of-type{max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(max-width:680px){.portal-header{padding:20px 16px}.project-portal .brand{font-size:17px}.project-card footer>.toolbar{width:auto}.breadcrumbs>span:first-of-type{max-width:110px}}
.history-layout{display:grid;grid-template-columns:minmax(260px,1fr) minmax(0,1.4fr);gap:22px}.history-navigation{min-width:0;max-height:800px;overflow:auto;border:1px solid var(--line);border-radius:10px;padding:12px}.history-branch{list-style:none;margin:0;padding-left:17px;border-left:1px solid #d6dfd0}.history-branch:first-child{padding-left:0;border:0}.history-row{display:flex;align-items:flex-start;gap:3px;margin:5px 0;border-radius:8px}.history-row.selected{background:var(--green-light)}.history-row.archived{opacity:.6}.history-fold,.history-leaf{width:24px;flex:none;text-align:center}.history-node{min-width:0;justify-content:flex-start;flex-wrap:wrap;text-align:left;font-size:12px;overflow-wrap:anywhere}.history-detail{min-width:0}.history-detail h3{font-size:18px;overflow-wrap:anywhere}.history-content{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.9;margin:18px 0 23px}.history-path{display:flex;flex-wrap:wrap;align-items:center;gap:2px;margin-bottom:15px}.history-path button{max-width:200px;overflow-wrap:anywhere}.model-settings .settings-row{overflow-wrap:anywhere}.model-picker{margin:10px 0}.model-picker small{line-height:1.7}@media(max-width:900px){.history-layout{grid-template-columns:minmax(0,1fr)}.history-navigation{max-height:400px}}@media(max-width:680px){.model-settings .settings-row{flex-wrap:wrap}.history-branch{padding-left:10px}.history-detail .toolbar{align-items:stretch}.history-detail .toolbar button{white-space:normal}}

/* Conversation controls stay visible beside experiment planning. */
.chat-attachment-actions .response-mode-picker{display:inline-flex;align-items:center;gap:7px;margin:0;font-size:11px;color:var(--muted);white-space:nowrap}
.chat-attachment-actions .response-mode-picker select{width:auto;min-width:110px;margin:0;padding:7px 27px 7px 10px;border:1px solid var(--line);border-radius:7px;background-color:#f2f6ee;color:var(--ink);font-size:12px}
@media(max-width:420px){.chat-attachment-actions{gap:8px}.chat-attachment-actions .response-mode-picker{gap:5px}.chat-attachment-actions .response-mode-picker select{min-width:103px}.chat-attachment-actions .response-mode-picker>span{font-size:10px}}

/* Chemistry wet-experiment records. */
.lab-intro{display:flex;align-items:flex-start;justify-content:space-between;gap:22px;margin:5px 0 22px}.lab-intro h2{font-size:21px;margin:0 0 8px}.lab-intro p{font-size:12px;color:var(--muted);line-height:1.8;margin:0}.lab-intro>.toolbar{justify-content:flex-end;max-width:590px;flex-wrap:wrap}.lab-counts .metric{padding:17px 20px}.lab-counts .metric-number{font-size:26px}.lab-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;padding:19px;background:#fff;border:1px solid var(--line);border-radius:12px;margin:18px 0}.lab-filters label{font-size:11px;color:var(--muted);min-width:0}.lab-filters select{display:block;width:100%;margin-top:6px;min-width:0}.lab-filters>button{align-self:end}.lab-tabs{display:flex;gap:5px;overflow-x:auto;margin:18px 0;white-space:nowrap}.lab-tabs button{flex:none}.lab-charts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:20px 0}.lab-charts figure{margin:0;min-width:0;border:1px solid var(--line);padding:10px;border-radius:9px}.lab-charts img{width:100%;height:auto;min-height:110px;object-fit:contain}.lab-charts figcaption{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;font-size:12px;gap:8px}.lab-batch,.lab-issue{display:flex;justify-content:space-between;gap:20px;padding:18px 0;border-top:1px solid var(--line);align-items:flex-start}.lab-batch h3,.lab-file h3,.lab-plan h3{font-size:15px;margin:0 0 9px;overflow-wrap:anywhere}.lab-batch p,.lab-issue p,.lab-plan p{font-size:12px;line-height:1.8}.lab-issue small{font-size:11px;color:var(--muted)}.lab-issue button,.lab-batch>button{flex:none}.lab-files{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.lab-file{display:flex;align-items:flex-start;gap:15px;border:1px solid var(--line);padding:15px;border-radius:10px;min-width:0}.lab-file>div{min-width:0;flex:1}.lab-file>img{width:110px;height:110px;object-fit:contain;border:1px solid var(--line);border-radius:6px;background:#fafbf8}.lab-file .toolbar{margin-top:12px;flex-wrap:wrap}.lab-plan{padding:20px 0;border-top:1px solid var(--line)}.lab-group-tags{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.lab-plan details{margin:15px 0;font-size:12px}.lab-plan-details{display:grid;grid-template-columns:120px minmax(0,1fr);gap:13px;line-height:1.8}.lab-plan-details dt{color:var(--muted)}.lab-plan-details dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.lab-plan-details ol,.lab-plan-details ul{padding-left:18px}.lab-mapping{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}.lab-history{border-top:1px solid var(--line);padding:15px 0}.lab-history>small{display:block;color:var(--muted);margin-top:6px}.lab-legacy>summary{font-size:12px;color:var(--muted);cursor:pointer}.lab-legacy[open]>.execution-settings{margin-top:20px}#wet-lab-workspace .table-wrap th,#wet-lab-workspace .table-wrap td{font-size:11px;white-space:normal;min-width:70px;max-width:270px;overflow-wrap:anywhere}#wet-lab-workspace .table-wrap table{min-width:730px}#wet-lab-workspace .table-wrap td .toolbar{flex-wrap:wrap}#lab-import-preview{margin-top:20px;font-size:12px}#lab-import-preview .table-wrap{max-height:260px;overflow:auto}.lab-form-note{font-size:11px;color:var(--muted)}
@media(max-width:1100px){.lab-intro{display:block}.lab-intro>.toolbar{margin-top:16px;justify-content:flex-start;max-width:none}.lab-files{grid-template-columns:1fr}.lab-charts{grid-template-columns:1fr}}
@media(max-width:680px){.lab-filters{grid-template-columns:repeat(2,minmax(0,1fr));padding:13px}.lab-counts{grid-template-columns:repeat(2,minmax(0,1fr))}.lab-intro>.toolbar{gap:8px}.lab-intro button{font-size:11px;padding:8px 10px}.lab-file{display:block}.lab-file>img{width:100%;height:170px;margin-bottom:12px}.lab-plan-details{grid-template-columns:1fr;gap:4px}.lab-plan-details dd{margin-bottom:12px}.lab-mapping{grid-template-columns:1fr}.lab-batch,.lab-issue{gap:10px}.lab-issue .tag{font-size:10px}}
