:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;color:#20252c;background:#f7f8fa;--accent:#187f67;--muted:#7b818a;--border:#e9ebef;--surface:#fff;color-scheme:light}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent}button:focus-visible,input:focus-visible{outline:3px solid #74cbb3;outline-offset:3px}[hidden]{display:none!important}button{border:0}button:disabled{opacity:.6;cursor:wait}.app{display:flex;min-height:100dvh}.sidebar{width:254px;flex-shrink:0;background:#f0f2f4;border-right:1px solid var(--border);padding:32px 18px 22px;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;z-index:20}.brand{display:flex;gap:12px;align-items:center;padding:0 10px 36px;font-size:21px;font-weight:650;letter-spacing:-.5px}.brand-small,.brand-mark{display:grid;place-items:center;background:#223c35;color:#fff;font-weight:650;border-radius:13px;width:40px;height:40px}.brand-sub{font-size:10px;font-weight:500;color:var(--muted);display:block;letter-spacing:2px;margin-top:3px}.side-label{text-transform:uppercase;font-size:11px;color:#969ba3;letter-spacing:1px;padding:0 13px 10px}.project-label{margin-top:30px}.nav{width:100%;background:transparent;text-align:left;border-radius:9px;padding:12px 13px;display:flex;align-items:center;gap:11px;font-size:13px;min-height:43px;color:#666d76;margin:2px 0}.nav>span:first-child{font-size:18px;line-height:1}.nav.active{background:#e1e9e5;color:#24664f;font-weight:600}.nav:hover{background:#e5e9e8}.count{margin-left:auto;font-size:11px;font-variant-numeric:tabular-nums;color:#8e9694}.project-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.side-bottom{display:flex;align-items:center;gap:7px;margin-top:auto;padding:15px 10px 0;font-size:11px;color:var(--muted)}.online-dot{width:6px;height:6px;background:#279879;border-radius:50%;display:inline-block}.private-badge{margin-left:auto;font-size:10px;color:#8b9297}main{margin-left:254px;width:calc(100% - 254px)}header{display:flex;align-items:center;padding:18px 38px;height:74px;border-bottom:1px solid var(--border);background:#ffffffa6;gap:12px}.header-title{font-size:13px;font-weight:550;display:flex;align-items:center;gap:10px}.muted{font-size:11px;color:var(--muted);font-weight:400}.icon-button{width:35px;height:35px;background:transparent;color:#7c848e;border-radius:8px;font-size:21px;display:grid;place-items:center;flex-shrink:0}.icon-button:hover{background:#e9eded}#refresh{margin-left:auto}.menu-button{display:none}.content{max-width:990px;margin:0 auto;padding:44px 48px 28px}.intro{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:28px}.intro h1{font-size:28px;letter-spacing:-1px;line-height:1.3;margin:0 0 10px;font-weight:600}.intro p{font-size:13px;color:var(--muted);margin:0}.device{color:#75827d;background:#ecf1ee;border:1px solid #e1e8e3;padding:7px 10px;border-radius:20px;font-size:10px;margin-top:4px;white-space:nowrap}.current{border:1px solid #cfe3da;background:#eff7f3;border-radius:12px;display:flex;align-items:center;gap:13px;padding:15px 17px;margin-bottom:24px}.current-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#d7eee3;color:#218360;flex-shrink:0}.current>div{min-width:0}.eyebrow{display:block;font-size:10px;color:#6f8f82;margin-bottom:5px}.current strong{display:block;max-width:590px;font-size:12px;font-weight:550;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.current-tag{margin-left:auto;white-space:nowrap;font-size:10px;color:#51866e}.search{display:flex;gap:12px;align-items:center;padding:0 16px;border:1px solid #e3e6e9;border-radius:10px;background:#fff;height:46px;box-shadow:0 2px 3px #00000002;margin-bottom:20px}.search>span:first-child{color:#8c939c;font-size:25px;line-height:1}.search input{width:100%;min-width:0;outline:0;border:0;background:transparent;font-size:13px;color:#343b43}.search input::placeholder{color:#9aa0a9}.search-key{font-size:10px;border:1px solid #e9ebee;color:#a0a6ac;border-radius:4px;padding:2px 4px;white-space:nowrap}.chips{display:flex;gap:7px;overflow-x:auto;padding-bottom:8px;margin-bottom:13px;scrollbar-width:none}.chip{flex-shrink:0;padding:7px 12px;border-radius:7px;background:transparent;color:#8b9199;font-size:12px;border:1px solid transparent;white-space:nowrap}.chip.active{color:#30463d;border-color:#dce3df;background:#fff;box-shadow:0 1px 2px #00000005}.day-label{font-size:10px;letter-spacing:1px;color:#939aa2;padding:16px 3px 12px}.thread{display:flex;width:100%;gap:13px;border:1px solid var(--border);border-radius:11px;background:#fff;margin-bottom:9px;padding:16px;transition:border-color .15s,transform .15s;position:relative}.thread:hover{border-color:#b9d5c8;transform:translateY(-1px)}.thread.selected{border-color:#b7d8c8;background:#fcfefd}.thread-icon{width:33px;height:33px;border:1px solid #edf0f2;border-radius:9px;display:grid;place-items:center;color:#86958e;background:#f9fbfa;flex-shrink:0;font-size:15px;pointer-events:none}.thread-open{flex:1;min-width:0;text-align:left;background:transparent;padding:0;color:inherit}.thread-title{font-size:13px;font-weight:550;line-height:1.65;margin:0 0 7px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.thread-meta{font-size:10px;color:#969ca4;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.project-tag{font-size:10px;padding:2px 5px;background:#f2f4f5;color:#869088;border-radius:4px;max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.status-dot{width:4px;height:4px;border-radius:50%;background:#bec4ca;display:inline-block}.status-dot.running{background:#44a583}.star{align-self:flex-start;width:29px;height:29px;font-size:20px;background:transparent;color:#c8cdd2;border-radius:5px;flex-shrink:0;margin-right:-5px}.star.saved{color:#b28d42}.star:hover{background:#f8f6ee}footer{text-align:center;color:#abb0b7;font-size:10px;line-height:1.7;padding-top:30px}.gate{max-width:440px;text-align:center;margin:21vh auto 0;padding:25px}.brand-mark{width:56px;height:56px;font-size:26px;border-radius:18px;margin:0 auto 28px}.gate h1{font-size:23px;letter-spacing:-.7px}.gate p{font-size:13px;color:var(--muted);line-height:1.9}.primary{background:#247c60;color:white;border-radius:10px;min-height:48px;padding:13px 20px;font-size:14px;font-weight:550;box-shadow:0 2px 5px #193e2115}.primary:hover{background:#1b6a51}.secondary{border:1px solid #dbe0e4;padding:9px 18px;border-radius:8px;background:white;color:#53605a}.empty{padding:65px 15px;text-align:center}.empty>span{color:#a6b5ac;font-size:38px}.empty h2{font-size:15px;font-weight:500}.empty p{font-size:12px;color:var(--muted)}.error-panel{padding:20px;border-radius:12px;border:1px solid #ecd8ce;color:#946651;font-size:13px;background:#fff8f4}.toast{position:fixed;bottom:32px;left:50%;transform:translateX(-50%);background:#253c32;color:#fff;border-radius:10px;padding:13px 20px;z-index:60;font-size:13px;box-shadow:0 5px 25px #0002;max-width:90vw;min-width:200px;text-align:center}.detail{position:fixed;inset:0;z-index:40;background:#17251e65;display:grid;place-items:center;backdrop-filter:blur(3px);padding:25px}.detail-card{width:min(620px,100%);max-height:90dvh;background:#f9fafb;border-radius:20px;box-shadow:0 15px 80px #13201730;display:flex;flex-direction:column;overflow:hidden;padding:22px 25px 0}.detail-top{display:flex;align-items:center;justify-content:space-between}.success-label{color:#258365;font-size:12px}.detail h2{font-size:18px;line-height:1.7;margin:14px 0 5px;max-height:5.1em;overflow:auto;overflow-wrap:anywhere;font-weight:600}.detail-hint{font-size:11px;color:#87928c;margin:0 0 18px}.messages{overflow:auto;min-height:70px;max-height:44dvh;border-top:1px solid #e4e9e6;padding:18px 0 0;overscroll-behavior:contain}.message{margin-bottom:15px}.message-label{font-size:10px;color:#8a948e;margin-bottom:7px}.message-text{font-size:12px;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere;color:#49534d;border:1px solid #e7ebe8;border-radius:10px;background:white;padding:12px 14px}.message.user .message-text{background:#eef4f0;border-color:#e0ebe4}.detail-bottom{padding:18px 0 16px}.detail-bottom .primary{width:100%;display:flex;justify-content:center;gap:12px}.detail-bottom p{font-size:10px;color:#94a097;text-align:center;margin:10px 0 0}.scrim{position:fixed;inset:0;background:#17251e65;z-index:19}@media(min-width:1000px){.chips{display:none}}@media(max-width:800px){.sidebar{width:228px}.content{padding:32px 26px}main{margin-left:228px;width:calc(100% - 228px)}header{padding:16px 24px}.device{display:none}.intro h1{font-size:25px}.current-tag{display:none}}@media(max-width:620px){.sidebar{transform:translateX(-100%);transition:transform .2s;width:268px;padding-top:max(26px,env(safe-area-inset-top))}.sidebar.open{transform:translateX(0)}main{margin-left:0;width:100%}header{padding:12px 18px;padding-top:max(12px,env(safe-area-inset-top));height:calc(62px + env(safe-area-inset-top))}.menu-button{display:grid}.header-title{font-size:14px}.content{padding:29px 20px 28px}.intro{margin-bottom:23px}.intro h1{font-size:26px}.intro p{font-size:12px}.current{padding:12px 13px;margin-bottom:20px}.current strong{font-size:12px;max-width:calc(100vw - 130px)}.search-key{display:none}.search{height:45px;margin-bottom:15px}.thread{padding:13px 12px;gap:10px;border-radius:10px}.thread-icon{width:30px;height:30px;font-size:14px}.thread-title{font-size:13px;margin-bottom:8px;-webkit-line-clamp:2}.thread-meta{font-size:10px;gap:6px}.star{width:28px}.chips{margin-left:-2px}.day-label{padding-top:13px}.detail{padding:0;align-items:end}.detail-card{width:100%;max-height:94dvh;border-radius:20px 20px 0 0;padding:18px 20px 0;padding-bottom:env(safe-area-inset-bottom)}.detail h2{font-size:17px}.messages{max-height:46dvh}.detail-bottom{padding-bottom:20px}.toast{bottom:25px}footer{padding-top:24px}}
:root{scrollbar-gutter:stable}body.modal-open{overflow:hidden}.sidebar{overflow-y:auto}
.new-chat{background:#fff;border:1px solid #dfe5e1;border-radius:9px;color:#3f6957;text-align:left;padding:11px 14px;margin:0 5px 26px;font-size:13px}.current{width:100%;text-align:left}.detail{display:block;background:#f8faf9;backdrop-filter:none;padding:0}.detail-card{width:100%;height:100dvh;max-height:100dvh;border-radius:0;padding:0;background:#f8faf9;box-shadow:none;overflow:hidden}.chat-header{height:75px;padding:12px max(24px,calc((100vw - 820px)/2));display:flex;gap:15px;align-items:center;background:#fff;border-bottom:1px solid #e8ede9;flex-shrink:0}.chat-header>.icon-button{font-size:27px}.chat-heading{min-width:0;flex:1}.chat-heading h2{font-size:14px;font-weight:550;line-height:1.5;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin:0;max-height:24px}.chat-heading .detail-hint{font-size:10px;margin:4px 0 0}.messages{border:0;max-height:none;min-height:0;flex:1;overflow-y:auto;padding:30px max(30px,calc((100vw - 740px)/2)) 16px;scrollbar-gutter:stable}.message{margin-bottom:25px;max-width:100%;width:100%}.message-label{font-size:11px;letter-spacing:.3px;margin-bottom:9px}.message.assistant .message-text{background:transparent;border:0;padding:0;font-size:14px;line-height:1.95;color:#364b40}.message.user{margin-left:auto;width:fit-content;max-width:85%;min-width:130px}.message.user .message-text{background:#eaf2ed;border-color:#e0ebe3;padding:12px 16px;font-size:14px;line-height:1.8;border-radius:16px 16px 3px 16px}.message.user .message-label{text-align:right;margin-right:6px}.message.commentary .message-text{font-size:12px;color:#7f8e85;border-left:2px solid #dce8e0;padding-left:12px}.message-text a{color:#268362;word-break:break-all}.composer-area{width:100%;max-width:820px;margin:0 auto;padding:6px 30px 14px;flex-shrink:0;background:#f8faf9}.composer{border:1px solid #d5e0d9;border-radius:17px;background:#fff;padding:15px 15px 11px;box-shadow:0 4px 18px #264b3510}.composer:focus-within{border-color:#9cbeaa;box-shadow:0 0 0 3px #e5f0e9}.composer textarea{border:0;resize:none;width:100%;min-height:27px;max-height:160px;line-height:1.65;font-size:14px;outline:0;color:#32473a;display:block;background:transparent;padding:0 3px}.composer textarea:focus-visible{outline:none}.composer textarea::placeholder{color:#a3aea7}.composer-tools{display:flex;align-items:center;gap:8px;margin-top:12px}.photo-tools{display:flex;gap:6px}.photo-button{height:31px;border-radius:7px;background:#f3f6f4;color:#728477;font-size:17px;padding:0 8px;display:flex;align-items:center;gap:5px}.photo-button span{font-size:10px}.send-button{margin-left:auto;width:35px;height:35px;background:#247c60;color:#fff;border-radius:10px;font-size:23px}.chat-status{margin-left:auto;font-size:10px;color:#87988d;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:52%}.send-button{margin-left:4px}.stop-button{border:1px solid #e2e7e3;border-radius:8px;padding:8px 13px;background:#fff;color:#797f7b;font-size:12px}.composer-note{font-size:10px;color:#a7b1aa;text-align:center;margin:10px 0 0}.chat-welcome{text-align:center;margin:16vh 0 40px;color:#4d6758}.welcome-symbol{font-size:34px;color:#589478;margin-bottom:22px}.chat-welcome h2{font-size:23px;margin:0 0 12px;font-weight:500}.chat-welcome p{font-size:12px;color:#94a397}.history-loading,.history-note{text-align:center;font-size:11px;color:#97a69b;margin-top:20px}.history-note{margin:0 0 20px}.photo-tray{display:flex;gap:9px;overflow-x:auto;padding:7px 0 12px}.photo-preview{position:relative;flex-shrink:0}.photo-preview img{width:68px;height:68px;object-fit:cover;border-radius:10px;border:1px solid #dae7de}.remove-photo{position:absolute;top:-4px;right:-4px;border:2px solid #f8faf9;background:#687d70;color:#fff;border-radius:50%;width:21px;height:21px;font-size:10px;padding:0}.message-photos{display:flex;gap:8px;flex-wrap:wrap;margin-top:9px}.message-photos img{max-height:230px;max-width:270px;width:auto;border-radius:12px;border:1px solid #dde8e0;object-fit:contain}.live-progress{display:flex;align-items:center;gap:9px;color:#84978b;font-size:11px;margin:20px 0}.pulse-dot{width:7px;height:7px;background:#61a987;border-radius:50%;animation:breathe 1.5s infinite}@keyframes breathe{50%{opacity:.3}}.chat-error{background:#fff4ed;border:1px solid #f0e0d3;border-radius:10px;padding:9px 13px;color:#a0785d;font-size:12px;line-height:1.6;margin-bottom:8px}.request-card{background:#fffdf5;border:1px solid #e9e4ce;border-radius:12px;padding:15px;margin-bottom:10px;max-height:38dvh;overflow:auto;font-size:12px}.request-card strong{font-weight:600;color:#7b7052}.request-summary{white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;font-size:11px;line-height:1.6;color:#8b8574;max-height:130px;overflow:auto}.request-actions,.question-options{display:flex;gap:8px;flex-wrap:wrap}.request-actions .primary,.request-card>.primary{min-height:35px;padding:9px 14px;font-size:12px}.question-label{font-size:12px;line-height:1.7}.question-input{width:100%;padding:10px;border-radius:8px;border:1px solid #e2dfd1;margin:8px 0 12px;background:#fff;font-size:12px}.downloads{display:flex;gap:10px;flex-wrap:wrap;margin:15px 0}.download-link{display:inline-block;text-decoration:none;color:#478c6a;border:1px solid #ccded1;background:#fff;border-radius:9px;padding:10px 13px;font-size:12px}.toast{z-index:60}
@media(max-width:620px){.detail{padding:0}.detail-card{padding:0;height:100dvh;max-height:100dvh;border-radius:0}.chat-header{height:calc(64px + env(safe-area-inset-top));padding:calc(9px + env(safe-area-inset-top)) 14px 9px;gap:8px}.chat-heading h2{font-size:13px}.messages{padding:23px 20px 12px;max-height:none}.message.assistant .message-text,.message.user .message-text{font-size:14px}.message.user{max-width:90%}.composer-area{padding:5px 14px calc(8px + env(safe-area-inset-bottom))}.composer{padding:12px 12px 10px;border-radius:15px}.composer textarea{font-size:16px}.composer-tools{margin-top:9px}.photo-button{padding:0 7px}.photo-button span{font-size:10px}.chat-status{max-width:42%;font-size:9px}.composer-note{font-size:9px;margin-top:7px}.message-photos img{max-width:230px;max-height:210px}.chat-welcome{margin-top:15vh}.intro .secondary{padding:8px 11px;font-size:11px;white-space:nowrap}.requests{max-height:40dvh;overflow:auto}}
