:root{--ink:#182f2b;--muted:#71827d;--green:#176a52;--line:#e1e9e4;--paper:#f7f9f6;--sidebar:#152e29}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:14px/1.6 "Segoe UI","Microsoft YaHei",sans-serif}button,input,textarea{font:inherit}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid #39a17f;outline-offset:3px}[hidden]{display:none!important}.workspace{display:flex;min-height:100dvh}.sidebar{position:fixed;inset:0 auto 0 0;width:248px;background:var(--sidebar);color:#eef5ef;padding:32px 22px;display:flex;flex-direction:column}.brand{display:flex;gap:12px;align-items:center;color:inherit;text-decoration:none;font-size:19px;font-weight:600;letter-spacing:1px}.brand-icon{display:grid;place-items:center;width:42px;height:44px;border:1px solid #719b88;border-radius:13px;color:#d1efb3;font-size:23px}.brand small{display:block;color:#8aa79a;font-size:8px;letter-spacing:2px;font-weight:400;margin-top:2px}.nav-label{display:flex;align-items:center;justify-content:space-between;margin:56px 10px 16px;font-size:11px;color:#8ca99c;letter-spacing:1px}.local-pill{border:1px solid #4f6c5f;border-radius:4px;font-size:8px;padding:1px 5px;color:#b8cdbd}.workspace nav{display:grid;gap:8px}.nav{display:flex;align-items:center;gap:12px;border:0;background:transparent;color:#9ab4a6;border-radius:9px;padding:13px;text-align:left;font-size:16px}.nav span{font-size:13px}.nav.active{background:#2a463c;color:#e3f4d5}.nav b{margin-left:auto;font-size:10px;font-weight:400;background:#445d4c;border-radius:4px;padding:0 6px}.side-note{border-top:1px solid #314c40;margin-top:32px;padding:24px 10px;font-size:12px;color:#bed1c2}.side-note p{font-size:11px;color:#87a091;line-height:1.9}.small-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#bce797;margin-right:6px}.side-bottom{margin-top:auto;border-top:1px solid #314c40;padding:20px 0 0;display:flex;align-items:center;gap:10px;font-size:10px}.side-bottom small{display:block;color:#849f91;font-size:9px;margin-top:2px}.avatar{width:30px;height:30px;background:#2d493f;border-radius:50%;display:grid;place-items:center;color:#c1d5b9}main{margin-left:248px;width:calc(100% - 248px);max-width:1500px;padding:32px 52px 0}.workspace header{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.eyebrow{font-size:11px;color:var(--muted);letter-spacing:1px}h1{font-size:25px;letter-spacing:-.5px;margin:6px 0 0;font-weight:600}.quiet{background:white;border:1px solid var(--line);padding:8px 13px;border-radius:7px;font-size:12px;color:#456354}.notice{display:flex;gap:11px;padding:12px 16px;background:#edf2e9;border:1px solid #e1e8db;border-radius:9px;color:#6e7d62;font-size:11px;align-items:center}.notice>span{font-size:20px;color:#7b935d}.notice p{margin:0}.notice strong{font-weight:500;color:#506741}.chat-view{height:calc(100dvh - 192px);min-height:500px;display:flex;flex-direction:column}.chat-toolbar{display:flex;align-items:center;justify-content:space-between;padding:18px 1px 10px;gap:12px;font-size:10px;color:#829088}.status{display:flex;align-items:center;gap:7px}.status i{width:5px;height:5px;background:#b3bdb6;border-radius:50%}.status i.ready{background:#3a9a73}.model-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:55%}.messages{flex:1;overflow-y:auto;padding:12px 0 25px;scroll-behavior:smooth;min-height:170px;scrollbar-width:thin}.welcome{max-width:660px;margin:clamp(15px,4vh,45px) auto 0;text-align:center}.welcome-mark{position:relative;width:53px;height:58px;display:grid;place-items:center;background:#e3eddf;color:#406b49;font-size:29px;border-radius:16px;margin:auto;border:1px solid #d5e1cf}.welcome-mark span{position:absolute;font-size:19px;right:-8px;top:-12px;color:#6d9654}h2{font-size:22px;font-weight:550;letter-spacing:-.5px;margin:19px 0 10px}.welcome p{color:#8b968c;font-size:12px;line-height:1.9;margin:0}.suggestions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:30px auto 0}.suggestions button{position:relative;border:1px solid var(--line);background:#fff;border-radius:10px;text-align:left;padding:15px 18px;color:#566b60;font-size:12px;transition:background .2s,transform .2s}.suggestions button:hover{background:#edf5eb;transform:translateY(-2px)}.suggestions span{display:block;font-size:10px;color:#91a08e;margin-bottom:5px}.suggestions b{position:absolute;right:14px;top:29px;font-size:14px;color:#a3b19d;font-weight:400}.composer-wrap{padding:12px 0 14px}.mode-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px;font-size:10px;color:#8a968d}.mode-switch{display:flex;border:1px solid var(--line);border-radius:7px;background:#eff2ed;padding:3px;gap:3px}.mode-switch button{border:0;background:transparent;color:#7d8a7e;font-size:11px;border-radius:4px;padding:5px 9px}.mode-switch button.selected{background:white;color:var(--green);box-shadow:0 1px 3px #203a2010}.mode-switch small{font-size:8px;margin-left:4px;background:#eaf1e4;padding:1px 3px;border-radius:2px;color:#779467}form{background:#fff;border:1px solid #d5e0d5;border-radius:12px;padding:14px;box-shadow:0 5px 22px #29482b06}form:focus-within{border-color:#83ab91;box-shadow:0 0 0 3px #43896608}textarea{width:100%;border:0;background:transparent;resize:none;color:var(--ink);font-size:13px;line-height:1.8;max-height:130px}textarea:focus-visible{outline:none}textarea::placeholder{color:#a1aba0}.composer-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:4px}.composer-bottom>span{color:#aab2a7;font-size:9px}#send{background:var(--green);color:white;border:0;border-radius:7px;padding:8px 15px;font-size:11px}#send span{margin-left:13px;font-size:15px}.footnote{display:flex;gap:10px;color:#9da799;font-size:9px;margin-top:10px}#counter{margin-left:auto}.message{max-width:820px;margin:0 auto 22px;display:flex;gap:10px}.message.user{justify-content:flex-end}.message-icon{width:26px;height:28px;display:grid;place-items:center;background:#e5ecde;color:#68815a;border-radius:8px;font-size:13px;flex-shrink:0}.message-content{min-width:0;max-width:88%}.message-label{font-size:9px;color:#9ba697;margin:2px 0 6px}.message-bubble{border:1px solid var(--line);background:white;padding:15px 18px;border-radius:0 11px 11px;font-size:13px;line-height:1.95;white-space:pre-wrap;overflow-wrap:anywhere}.message-bubble a{color:#23795c;text-underline-offset:3px;word-break:break-all}.user .message-bubble{background:#e7efe1;border-color:#e0e9d7;border-radius:11px 0 11px 11px}.user .message-label{text-align:right}.evidence{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:8px 0;font-size:9px;color:#9aa592}.evidence span{padding:3px 7px;border:1px solid #e0e7da;border-radius:4px;color:#6d845d;background:#f0f5ec}.evidence button{font-size:9px;border:0;background:transparent;color:#428061;padding:2px 0}.error .message-bubble{border-color:#e6cdb6;background:#fff8ef;color:#936d43}.pending .message-bubble{color:#8d9b86}.kb-view{padding:25px 0 40px}.kb-heading{display:flex;justify-content:space-between;align-items:center}.kb-heading h2{margin:0;font-size:20px}.kb-heading p{color:#8a9688;font-size:12px}.draft-badge{font-size:10px;color:#8a865a;border:1px solid #e3dfc6;background:#f6f3e6;border-radius:5px;padding:4px 8px}#kb-search{width:100%;background:white;border:1px solid var(--line);border-radius:8px;padding:11px 14px;margin:12px 0}.filters{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 20px}.filters button{padding:5px 12px;border:1px solid var(--line);background:transparent;color:#7c8f7b;border-radius:15px;font-size:11px}.filters button.active{background:var(--green);color:white;border-color:var(--green)}.kb-list{display:grid;grid-template-columns:1fr 1fr;gap:14px}.knowledge-card{border:1px solid var(--line);border-radius:10px;background:white;padding:20px}.knowledge-card h3{font-size:14px;margin:7px 0 10px;font-weight:550}.knowledge-card .category{font-size:9px;color:#8b9a7b}.knowledge-card p{font-size:12px;color:#7e8d7a;line-height:1.9;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.knowledge-card .date{color:#a9b19f;font-size:9px;border-top:1px solid #edf0e7;padding-top:10px;margin-top:14px}.empty{color:#8b9683;padding:40px;text-align:center}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}#toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);padding:12px 22px;border-radius:8px;background:#203e32;color:white;box-shadow:0 5px 22px #0002;font-size:12px;max-width:90vw;z-index:10}@media(min-width:1500px){main{padding-left:75px;padding-right:75px}}@media(max-width:1050px){.sidebar{width:210px;padding:28px 18px}main{margin-left:210px;width:calc(100% - 210px);padding:25px 28px 0}.brand{font-size:16px}.side-bottom{font-size:9px}.chat-view{height:calc(100dvh - 183px)}}@media(max-width:740px){.workspace{display:block}.sidebar{position:static;width:auto;height:auto;padding:15px 20px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:10px}.brand{font-size:14px;gap:8px;flex-shrink:0}.brand-icon{width:31px;height:33px;font-size:18px;border-radius:9px}.brand small{font-size:6px;letter-spacing:1.1px}.nav-label,.side-note,.side-bottom{display:none}.workspace nav{display:flex;gap:4px}.nav{padding:7px;gap:4px;font-size:12px}.nav span{font-size:10px}.nav b{display:none}main{margin:0;width:100%;padding:22px 18px 0}.workspace header{margin-bottom:17px}h1{font-size:21px}.eyebrow{font-size:9px}.quiet{font-size:10px;padding:7px 9px}.notice{font-size:10px;padding:10px 12px}.notice p{line-height:1.7}.chat-view{height:calc(100dvh - 252px);min-height:460px}.chat-toolbar{font-size:9px}.model-name{max-width:40%}.welcome{margin:18px auto 0}.welcome-mark{height:46px;width:43px;font-size:24px}.welcome h2{font-size:20px;margin-top:17px}.welcome p{font-size:11px}.suggestions{gap:8px;margin-top:21px}.suggestions button{padding:12px;font-size:10px}.suggestions b{right:10px;top:26px}.suggestions span{font-size:9px}.mode-row{align-items:flex-start}.mode-row>span{max-width:45%;text-align:right;line-height:1.5;font-size:9px}.mode-switch button{font-size:10px;padding:4px 7px}.composer-bottom>span{font-size:8px}#send{padding:7px 11px}.footnote{gap:6px;font-size:8px}.message-content{max-width:90%}.message-bubble{font-size:12px;padding:12px 14px}.message-icon{display:none}.kb-list{grid-template-columns:1fr}.kb-heading h2{font-size:18px}.draft-badge{font-size:9px}.knowledge-card{padding:16px}}

.workspace{position:relative}.sidebar{position:absolute}.platform-status{margin:0;padding:10px 24px;background:#edf2e9;color:#456354;font-size:12px}[data-studio-mode="local"] [data-platform-header],[data-studio-mode="local"] [data-platform-footer]{display:none}[data-platform-header]{margin:0}[data-studio-mode="platform"] .chat-view{height:calc(100dvh - 300px);min-height:430px}
@media(max-width:740px){.sidebar{position:static}[data-studio-mode="platform"] .chat-view{height:auto;min-height:520px}.platform-status{padding:10px 18px}}

/* Phone and tablet portrait: consultation owns the full width. */
@media(max-width:900px){.workspace .sidebar{display:none}.workspace main{margin-left:0;width:100%;padding:20px 16px 0}}

#connection-dot.ready{background:#22a65b;animation:studio-signal 1.6s ease-in-out infinite}@keyframes studio-signal{50%{opacity:.35}}@media(prefers-reduced-motion:reduce){#connection-dot.ready{animation:none}}
