:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;color:#20362d;background:#f4f7f4;font-size:14px;--green:#198a5b;--dark:#153f30;--muted:#76847e;--border:#e1e9e3}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer;border:0}button:disabled{opacity:.5;cursor:not-allowed}[hidden]{display:none!important}button:focus-visible,a:focus-visible{outline:3px solid #7dd5ae;outline-offset:3px}input,textarea,select{width:100%;border:1px solid #d8e2db;border-radius:9px;padding:13px;background:#fff;color:inherit;outline:none}input:focus,textarea:focus,select:focus{border-color:#198a5b;box-shadow:0 0 0 3px #198a5b10}textarea{resize:vertical}label{font-weight:600;display:block;margin:20px 0 9px}.primary{display:inline-flex;align-items:center;justify-content:space-between;gap:30px;border-radius:8px;background:var(--green);color:white;font-weight:600;padding:14px 22px}.primary:hover{background:#11734a}.secondary{border:1px solid #d4e0d6;border-radius:8px;background:#fff;color:#315644;padding:10px 14px;white-space:nowrap}.secondary:hover{background:#edf7f0}.text-button{color:var(--green);background:transparent;padding:8px}.eyebrow{text-transform:uppercase;letter-spacing:2px;font-size:11px;font-weight:600;color:var(--muted)}.brand-mark{height:48px;width:48px;display:grid;place-items:center;background:var(--green);color:#fff;font-size:26px;font-weight:700;border-radius:15px;box-shadow:0 8px 25px #198a5b20}.brand-mark.small{height:35px;width:35px;font-size:21px;border-radius:11px;box-shadow:none}.login-screen{display:grid;grid-template-columns:1fr 1fr;min-height:100vh;max-width:1600px;margin:auto}.login-card{padding:70px max(40px,10vw);padding-right:8vw;align-self:center}.login-card>.eyebrow{display:block;margin-top:30px}.login-card h1{font-size:clamp(34px,3vw,48px);font-weight:650;letter-spacing:-1px;line-height:1.4;margin:20px 0}.intro{color:var(--muted);line-height:1.9;margin-bottom:24px}.login-card .primary{width:100%;margin-top:15px}.error{color:#b54242;font-size:13px;min-height:18px}.login-card details{font-size:12px;color:var(--muted);line-height:1.9}.login-card details summary{cursor:pointer}.scope-note{border-top:1px solid var(--border);padding-top:24px;font-size:12px;color:var(--muted);margin-top:30px}.login-visual{background:#dfece3;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:50px;position:relative;overflow:hidden}.login-visual:before{content:"";width:600px;height:600px;border:1px solid #cadfd2;border-radius:50%;position:absolute;top:-350px;right:-200px;pointer-events:none}.visual-caption{letter-spacing:4px;font-size:12px;color:#648775;margin-bottom:40px}.illustration-message{background:#edf4ee;width:min(100%,370px);padding:28px 32px;border-radius:18px 18px 4px 18px;box-shadow:0 16px 40px #395e4610}.illustration-message .tiny-label{font-size:10px;letter-spacing:2px;color:#83a08d}.illustration-message div{font-size:23px;margin:22px 0 15px;color:#567263;word-break:break-word}.illustration-message>span:last-child{font-size:11px;color:#8b9e91}.illustration-message.new{background:#a9e39d}.illustration-message.new div{color:#204631}.illustration-message.new>span:last-child{color:#466d4f}.update-path{padding:24px;color:#60836c;font-size:23px}.update-path span{font-size:11px;margin-left:10px;letter-spacing:1px}.visual-footer{font-size:12px;color:#6d8b76;margin-top:48px}.visual-footer span{font-size:30px;margin-right:10px;font-weight:300}.workspace{min-height:100vh;display:grid;grid-template-columns:228px 1fr}.sidebar{background:#fbfdfb;border-right:1px solid var(--border);padding:30px 20px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.sidebar-brand{display:flex;align-items:center;gap:9px}.sidebar-brand>span{font-size:10px;color:#8c9a92}.workspace-label{font-size:10px;letter-spacing:2px;color:#99a69f;margin:52px 14px 15px}.nav-item{display:flex;gap:12px;background:transparent;text-align:left;padding:14px;border-radius:8px;color:#6a7d71;margin-bottom:5px}.nav-item.active{background:#e6f2e9;color:#267043;font-weight:600}.nav-item span{font-size:17px}.sidebar-bottom{margin-top:auto;display:flex;align-items:center;gap:8px;font-size:12px;color:#73877a}.sidebar-bottom button{margin-left:auto;font-size:12px}.status-dot{height:6px;width:6px;border-radius:50%;background:#56a975}main{min-width:0;padding:0 38px 32px}.topbar{display:flex;align-items:center;justify-content:space-between;padding:30px 0 26px;gap:20px}.topbar h2{font-size:24px;font-weight:600;margin:8px 0 0;letter-spacing:-.5px}.top-actions{display:flex;align-items:center;gap:20px}.clock{font-variant-numeric:tabular-nums;color:#7c8f82;font-size:12px}.chat-layout{display:grid;grid-template-columns:minmax(320px,1fr) 250px;gap:25px;max-width:1240px}.chat-card{border:1px solid #dce6de;border-radius:13px;background:white;overflow:hidden;display:flex;flex-direction:column;height:calc(100vh - 145px);min-height:520px;box-shadow:0 8px 20px #223e2d04}.conversation-head{padding:18px 22px;display:flex;gap:12px;align-items:center;border-bottom:1px solid var(--border);background:#fff}.avatar{width:39px;height:39px;border-radius:11px;background:#d9ecdf;display:grid;place-items:center;color:#508760;font-size:19px}.conversation-head strong{font-size:14px}.conversation-head p{font-size:11px;color:#91a095;margin:5px 0 0}.badge{font-size:10px;white-space:nowrap;background:#eef6f0;color:#6f977c;padding:6px 8px;border-radius:4px;margin-left:auto}.message-list{flex:1;background:#eef1ed;padding:26px;overflow-y:auto;min-height:150px}.empty{text-align:center;color:#8d9c91;padding:60px 0}.empty>span{font-size:30px;color:#a1bca8}.empty h3{font-size:16px;font-weight:500;color:#708776;margin-top:20px}.empty p{font-size:12px;line-height:1.9}.message{max-width:86%;margin-left:auto;margin-bottom:23px;display:flex;flex-direction:column;align-items:flex-end}.message-heading{color:#8c9a90;font-size:10px;margin-bottom:8px}.bubble{background:#ace49c;border-radius:10px 2px 10px 10px;padding:13px 17px;line-height:1.75;font-size:16px;white-space:pre-wrap;overflow-wrap:anywhere;min-width:100px;max-width:100%;color:#213a26}.message.plain .bubble{background:#fff;color:#3b473e}.message-footer{font-size:10px;line-height:1.7;color:#7d9585;display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:6px}.message-footer button{font-size:10px;background:transparent;color:#4d8d68;padding:0}.message.updated .bubble{animation:flash 1.2s ease}@keyframes flash{0%,100%{box-shadow:0 0 0 0 transparent}30%{box-shadow:0 0 0 4px #78b67740}}.composer{padding:16px 20px 18px;background:#fff;border-top:1px solid var(--border)}.compose-options{display:flex;gap:6px;align-items:center;margin-bottom:12px}.chip{background:transparent;color:#9aab9f;border-radius:5px;padding:6px 8px;font-size:11px}.chip.active{background:#eef5ee;color:#4f7d5c}.compose-options>span{font-size:10px;color:#9aa79e;margin-left:auto}.composer select{padding:10px;background:#fbfcfb;font-size:12px}.composer textarea{height:90px;min-height:70px}.compose-footer{display:flex;justify-content:space-between;align-items:center;margin-top:12px;gap:10px}.compose-footer>span{font-size:10px;color:#98a79d}.compact{padding:9px 27px;font-size:12px}.sync-panel{padding:20px 3px}.sync-panel h3{font-size:23px;letter-spacing:-.8px;font-weight:500;margin:15px 0}.sync-panel>p{color:#86968b;font-size:12px;line-height:1.9}.timer-box{padding:22px;border:1px solid #dce7de;background:#f9fcf9;border-radius:10px;margin:24px 0 12px;display:flex;flex-direction:column;align-items:center;gap:13px}.timer-box>span{color:#8a9b8f;font-size:11px}.timer-box strong{font-size:44px;font-variant-numeric:tabular-nums;font-weight:300;letter-spacing:2px;color:#2f6540}.timer-box small{font-size:10px;color:#9aae9f}.full{width:100%}.checklist{margin:26px 0;color:#6d8c75;font-size:11px;line-height:1.8}.scope-banner{margin-top:25px;padding:14px;background:#edf2ed;color:#819385;border-radius:7px;font-size:11px;line-height:1.7}.muted{color:#8a9c90;line-height:1.9}.small-text{font-size:11px}.sources-layout{display:grid;grid-template-columns:270px minmax(320px,640px);gap:25px;max-width:1000px}.source-list-card,.source-editor,.guide{padding:25px;border:1px solid var(--border);background:white;border-radius:12px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.section-head h3{margin:0;font-size:15px}.section-head .secondary{font-size:12px}.source-option{display:block;text-align:left;background:#f8faf8;width:100%;padding:14px;margin-top:12px;border:1px solid #e6ece6;border-radius:8px;color:#55775c}.source-option.active{border-color:#9fc9ad;background:#f0f7f1}.source-option span,.source-option small{display:block;margin-top:7px;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#91a397}.source-editor h3{font-size:24px;font-weight:500}.source-editor textarea{height:210px;min-height:130px;font-size:20px;line-height:1.8;letter-spacing:.5px}.source-editor label{font-size:12px}.source-meta{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#8c9e92}.source-editor .muted{font-size:12px}.editor-actions{display:flex;gap:12px;margin-top:24px}.guide{max-width:850px;line-height:2;color:#6c8072}.guide h3{color:#3e6049;font-size:20px;font-weight:500;margin-top:25px}.guide ol{padding-left:23px}.guide li{padding:7px 0}.reader-note{padding:19px;background:#fff;text-align:center;color:#88a08f;font-size:12px}.toast{position:fixed;left:50%;bottom:30px;transform:translateX(-50%);z-index:20;background:#234c35;color:#fff;padding:14px 23px;border-radius:9px;box-shadow:0 10px 30px #243e3420;max-width:90vw;font-size:13px}dialog{border:1px solid var(--border);border-radius:13px;padding:25px;width:550px;max-width:90vw;color:#425d48}dialog::backdrop{background:#102c1d40}.history-item{margin-top:20px;padding-top:17px;border-top:1px solid var(--border)}.history-item pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;background:#f1f6ef;border-radius:8px;padding:14px}.history-item small{color:#8da093}code{background:#eef2ee;border-radius:3px;padding:1px 4px;overflow-wrap:anywhere}
@media(min-width:1500px){main{padding-left:55px;padding-right:55px}.chat-layout{grid-template-columns:minmax(450px,1fr) 280px;gap:35px}}@media(max-width:1120px){.workspace{grid-template-columns:190px 1fr}.sidebar{padding:25px 13px}.sidebar-brand{gap:7px}.sidebar-brand>span{display:none}main{padding:0 22px 25px}.chat-layout{grid-template-columns:minmax(300px,1fr) 205px;gap:18px}.top-actions .clock{display:none}.sync-panel h3{font-size:21px}.sources-layout{grid-template-columns:220px 1fr;gap:18px}.source-list-card,.source-editor{padding:20px}}@media(max-width:860px){.workspace{grid-template-columns:1fr}.sidebar{position:static;height:auto;padding:15px 18px;flex-direction:row;align-items:center;gap:7px;flex-wrap:wrap;border-right:0;border-bottom:1px solid var(--border)}.sidebar-brand{margin-right:auto}.workspace-label{display:none}.nav-item{padding:10px;font-size:12px;margin:0}.nav-item span{display:none}.sidebar-bottom{margin:0;width:100%;padding-top:9px;font-size:10px}.sidebar-bottom button{font-size:10px;padding:2px 8px}.chat-layout{grid-template-columns:1fr}.chat-card{height:70vh;min-height:480px}.sync-panel{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:0}.sync-panel>.eyebrow,.sync-panel>h3,.sync-panel>p,.checklist,.scope-banner{display:none}.timer-box{margin:0;padding:14px;display:block;text-align:center}.timer-box>span{display:block;font-size:10px}.timer-box strong{font-size:28px;display:block;margin:5px 0}.timer-box small{display:none}.sync-panel>.secondary{align-self:center;padding:16px}.sources-layout{grid-template-columns:1fr}.source-list-card{padding:15px}.source-list-card .small-text{display:none}#source-list{display:flex;gap:10px;overflow:auto}.source-option{min-width:180px;width:180px}.source-editor textarea{height:180px}.source-editor h3{margin:12px 0}.login-card{padding:45px}.login-visual{padding:30px}.illustration-message{padding:22px}.illustration-message div{font-size:17px}.login-card h1{font-size:34px}.login-card>.eyebrow{font-size:10px}.editor-actions{flex-wrap:wrap}}@media(max-width:580px){.login-screen{grid-template-columns:1fr}.login-card{padding:36px 26px}.login-visual{display:none}main{padding:0 12px 20px}.topbar{padding:21px 4px 18px;gap:8px}.topbar h2{font-size:21px}.topbar .eyebrow{font-size:9px}.top-actions .secondary{padding:9px;font-size:11px}.sidebar{padding:12px}.sidebar-brand strong{font-size:13px}.brand-mark.small{height:30px;width:30px;font-size:18px}.nav-item{padding:8px;font-size:11px}.chat-card{min-height:430px;height:67vh;border-radius:10px}.conversation-head{padding:14px}.badge{font-size:9px}.message-list{padding:20px 14px}.bubble{font-size:16px}.message{max-width:94%}.composer{padding:12px}.compose-options>span{display:none}.compose-footer>span{max-width:170px;line-height:1.5}.sync-panel{gap:10px}.source-editor{padding:20px}.guide{padding:22px}.guide h3{font-size:18px}}

.bubble .message-link{color:#155b91;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}.bubble .message-link:hover{color:#0b3b65}.history-link{font-size:12px;overflow-wrap:anywhere}.history-link .message-link{color:#155b91;text-underline-offset:2px}
