:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#263e32;background:#fafcf9;--green:#176848;--line:#e2eae0;--muted:#81907d;--soft:#f0f5ec}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}a{color:inherit;text-decoration:none}[hidden]{display:none!important}button,input,textarea{outline-offset:3px}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid #498254}h1,h2,h3,p{margin-top:0}.brand{display:flex;align-items:center;gap:10px;font-size:21px;font-weight:650;letter-spacing:-.6px;white-space:nowrap}.brand span{font-size:13px;font-weight:400;color:#839780;margin-left:1px}.eyebrow{font-size:10px;letter-spacing:2px;color:#829d79;margin-bottom:14px}.muted{font-size:12px;line-height:1.9;color:var(--muted)}.primary,.secondary{border:1px solid var(--line);border-radius:7px;padding:11px 15px;min-height:40px;font-size:12px;display:inline-flex;justify-content:center;align-items:center;gap:6px;white-space:nowrap}.primary{background:var(--green);color:#fff;border-color:var(--green)}.primary:hover{background:#10583b}.secondary{background:#fff;color:#647e59}.secondary:hover{background:#f0f5ec}.compact{padding:8px 12px;min-height:34px}.full{width:100%}.text-button{border:0;background:none;color:#7a8e6e;font-size:11px;padding:8px 0}.icon{border:0;background:none;color:#8a9d7d;font-size:21px;padding:4px 7px}.error{font-size:12px;line-height:1.8;color:#a54e3d;margin:10px 0;overflow-wrap:anywhere}.notice{font-size:11px;line-height:1.8;background:#f7f2df;color:#9a824e;padding:12px 22px}.avatar{display:grid;place-items:center;background:#e9f1e3;border-radius:10px;width:37px;height:37px;flex-shrink:0;color:#548051;font-size:15px}.online-dot{width:5px;height:5px;border-radius:50%;background:#4d8e58;display:inline-block}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);max-width:90vw;background:#254b31;color:#fff;padding:12px 20px;border-radius:8px;font-size:12px;z-index:10}.boot{height:100vh;display:grid;place-items:center;font-size:13px;color:#829478}
.auth-view{display:grid;grid-template-columns:1fr 1fr;min-height:100vh}.auth-story{background:#eef4e8;padding:42px 8%;display:flex;flex-direction:column;border-right:1px solid #e0e9d9}.story-copy{margin:auto 0;padding:80px 0}.story-copy h1{font-weight:500;font-size:56px;line-height:1.4;letter-spacing:-2px;margin:23px 0 26px}.story-copy>p:not(.eyebrow){font-size:14px;line-height:2;color:#819575}.story-lines{display:grid;gap:20px;margin-top:45px;color:#678259;font-size:12px}.story-lines i{font-style:normal;color:#9daf90;font-size:10px;margin-right:15px}.auth-story>small{font-size:10px;color:#9aaa90}.auth-panel{display:grid;place-items:center;background:#fff;padding:50px}.auth-box{width:100%;max-width:360px}.auth-box h2{font-size:28px;font-weight:500;margin-bottom:12px}.auth-tabs{display:flex;gap:30px;border-bottom:1px solid var(--line);margin:30px 0 25px}.auth-tabs button{background:none;border:0;border-bottom:2px solid transparent;padding:14px 0;font-size:12px;color:#9baa8c}.auth-tabs button.selected{border-color:var(--green);color:var(--green)}label{display:block;color:#6b845d;font-size:12px;margin:20px 0 9px}input{width:100%;border:1px solid #dfe7d8;background:#fff;border-radius:7px;padding:12px;font-size:13px;color:#37532a}input::placeholder{color:#a7b49a;font-size:11px}.auth-box .primary{margin-top:26px}.auth-footnote{font-size:10px;line-height:1.9;color:#a1af95;margin-top:23px}
.app-view{height:100vh;display:flex;overflow:hidden}.sidebar{width:225px;flex-shrink:0;background:#f0f5ec;border-right:1px solid var(--line);padding:30px 20px;display:flex;flex-direction:column}.sidebar .brand{font-size:19px;gap:7px}.sidebar .brand span{font-size:10px}.nav-label{font-size:10px;color:#9bac91;letter-spacing:1.5px;margin:47px 13px 14px}.nav-item{border:0;background:none;text-align:left;padding:13px;border-radius:7px;color:#899d7d;font-size:12px;margin-bottom:6px}.nav-item.selected{background:#e2ecd9;color:#3e6c36}.sidebar-note{margin-top:28px;font-size:10px;color:#97aa89;padding:0 9px;line-height:1.8}.sidebar-note .online-dot{margin-right:4px}.user-card{margin-top:auto;display:flex;align-items:center;gap:10px;border-top:1px solid #dfe8d8;padding-top:22px}.user-card>div{min-width:0;flex:1}.user-card strong{font-size:12px;font-weight:500;display:block;overflow:hidden;text-overflow:ellipsis}.user-card small{display:block;font-size:10px;color:#9dad92;margin-top:5px}.logout{align-self:flex-start;margin:15px 0 0 47px}main{min-width:0;flex:1;display:flex;flex-direction:column}.topbar{height:64px;min-height:64px;border-bottom:1px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 28px;font-size:10px;color:#91a184}.workspace{display:flex;min-height:0;flex:1}.assistant-list{width:290px;flex-shrink:0;border-right:1px solid var(--line);padding:30px 21px;overflow-y:auto;background:#fbfcf9}.list-title{display:flex;justify-content:space-between;align-items:center;gap:10px}.list-title .eyebrow{font-size:9px;margin-bottom:9px}.list-title h1{font-size:22px;font-weight:500;margin:0;overflow-wrap:anywhere}.quota{display:flex;align-items:center;gap:10px;border:1px solid #e4ecde;border-radius:7px;background:#f2f7ed;padding:12px;margin:24px 0 20px;color:#91a47f;font-size:10px}.quota strong{color:#607c50;font-weight:500}.quota>span:last-child{margin-left:auto;color:#81a96b;letter-spacing:3px}.assistant-cards{display:grid;gap:10px}.assistant-card{display:block;text-align:left;padding:16px;width:100%;background:#fff;border:1px solid #e2ebda;border-radius:9px;color:#546f45}.assistant-card.selected{border-color:#88aa71;background:#f0f6e9;box-shadow:0 0 0 1px #88aa7122}.assistant-card h3{font-size:13px;font-weight:500;margin-bottom:10px;overflow-wrap:anywhere}.assistant-card small{font-size:10px;color:#8da17a}.assistant-card .card-status{display:flex;align-items:center;gap:6px;font-size:10px;color:#8fa47c}.assistant-card .card-status.active{color:#4f8543}.list-tip,.list-empty{font-size:10px;color:#a1b193;line-height:1.9;margin-top:22px}.list-empty{padding:30px 0;text-align:center}.chat-panel{flex:1;min-width:0;display:flex;background:#fff}.chat-empty{margin:auto;text-align:center;padding:35px}.empty-symbol{font-size:50px;color:#9cb98a;margin-bottom:25px}.chat-empty h2{font-size:27px;font-weight:400;letter-spacing:-.5px}.chat-empty>p:last-child{font-size:12px;color:#9aac8c;line-height:2}.chat-content{width:100%;height:100%;display:flex;flex-direction:column;min-height:0}.chat-header{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:22px 27px;border-bottom:1px solid #eaf0e5}.chat-identity{display:flex;align-items:center;gap:12px;min-width:0}.chat-identity h2{font-size:16px;font-weight:500;margin:0 0 7px;overflow-wrap:anywhere}.chat-identity p{font-size:10px;color:#9aaa8d;margin:0}.chat-actions{display:flex;gap:12px;align-items:center;flex-shrink:0}.chat-actions .secondary{font-size:10px;padding:8px 10px;min-height:32px}.chat-status{font-size:11px;line-height:1.7;color:#7c975e;background:#f7faf3;padding:8px 26px;min-height:34px}.message-scroll{overflow-y:auto;flex:1;min-height:0;padding:16px 27px 26px;scroll-behavior:smooth}.history-button{display:block;margin:0 auto 22px;font-size:10px}.messages{display:flex;flex-direction:column;gap:20px}.message{max-width:95%;align-self:flex-start}.message.user{align-self:flex-end;max-width:85%}.message-meta{font-size:9px;color:#a6b59a;margin:0 0 7px;display:flex;gap:10px;align-items:center}.user .message-meta{justify-content:flex-end}.message-body{font-size:13px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;background:#f5f8f1;border:1px solid #ecf1e5;border-radius:10px;padding:13px 16px;color:#526b42}.user .message-body{background:#eaf3e2;border-color:#dfebd4;color:#426331}.message.progress .message-body,.message.status .message-body{font-size:11px;background:#fafbf7;color:#91a27f}.message.summary .message-body{border-left:3px solid #9ebf85;background:#f6f9ef}.message[data-state=streaming] .message-body::after{content:'▍';color:#80a25d;animation:blink 1s steps(2) infinite}.message[data-state=interrupted] .message-meta::after{content:'已中断';color:#b09a6b}.message[data-state=error] .message-meta::after{content:'执行失败';color:#b4795c}@keyframes blink{50%{opacity:0}}.composer{margin:0 25px 22px;border:1px solid #dce6d2;border-radius:10px;background:#fcfdf9;padding:13px 15px}.composer textarea{width:100%;border:0;resize:vertical;min-height:65px;max-height:220px;background:none;font-size:13px;line-height:1.8;color:#526c42;outline:none}.composer textarea::placeholder{color:#a4b394}.composer-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:7px;font-size:10px;color:#a1b28e}.composer-footer>div{display:flex;gap:15px;align-items:center}.composer .primary{min-height:33px;font-size:11px;padding:8px 13px}.admin-users-panel{padding:24px 28px 17px;border-bottom:1px solid var(--line);max-height:240px;overflow:auto;background:#fff}.admin-users-panel h1{font-size:21px;font-weight:500;margin-bottom:7px}.admin-users-panel .muted{font-size:11px}.admin-users{display:flex;gap:10px;flex-wrap:wrap}.admin-user{background:#f5f8ef;border:1px solid #e1ead6;border-radius:7px;padding:10px 13px;color:#65834e;font-size:11px}.admin-user.selected{border-color:#87a96d;background:#ebf3e2}.admin-user small{display:block;font-size:9px;color:#9db18a;margin-top:5px}
dialog{width:min(440px,calc(100vw - 32px));max-height:90vh;overflow:auto;border:1px solid #dbe5d1;border-radius:14px;padding:27px;color:#415e31;box-shadow:0 25px 100px #172f1d25}dialog::backdrop{background:#20361f55;backdrop-filter:blur(3px)}.dialog-title{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:17px}.dialog-title h2{font-size:20px;font-weight:500;margin:0}.dialog-buttons{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.dialog-note{font-size:10px;color:#9bad8a;line-height:1.9;margin-top:17px}.qr-box{height:250px;width:250px;max-width:100%;margin:20px auto;background:#f4f8ee;border:1px solid #e5eddb;border-radius:12px;display:grid;place-items:center;overflow:hidden}.qr-box img{width:100%;height:100%;object-fit:contain}.qr-box>div{text-align:center;font-size:45px;color:#9cb48a}.qr-box small{display:block;font-size:10px;margin-top:18px}.input-row{display:flex;gap:10px}.input-row input{min-width:0;letter-spacing:3px}.stop-options{display:grid;gap:10px}.stop-options button{text-align:left;white-space:normal}
@media(max-width:1200px){.sidebar{width:190px;padding:25px 16px}.sidebar .brand span{display:none}.assistant-list{width:250px;padding:25px 17px}.chat-header{padding:20px;flex-wrap:wrap}.chat-actions{margin-left:49px}.message-scroll{padding:15px 20px}.composer{margin:0 18px 18px}.story-copy h1{font-size:46px}}@media(max-width:800px){.auth-view{grid-template-columns:1fr}.auth-story{padding:24px;border-right:0}.story-copy{padding:35px 0 10px}.story-copy h1{font-size:34px;margin:15px 0}.story-copy>p:not(.eyebrow),.story-lines,.auth-story>small{display:none}.auth-panel{padding:35px 24px}.auth-box{max-width:none}.app-view{height:auto;min-height:100dvh;display:block;overflow:visible}.sidebar{width:100%;padding:15px 18px;display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;gap:7px;border-right:0;border-bottom:1px solid var(--line)}.sidebar .brand{margin-right:auto}.sidebar .brand img{width:26px;height:26px}.nav-label,.sidebar-note,.user-card .avatar,.user-card small{display:none}.nav-item{padding:9px;font-size:11px;margin:0}.user-card{margin:0;padding:0;border:0;gap:4px}.user-card strong{font-size:10px;max-width:75px}.logout{margin:0;font-size:10px}.topbar{height:44px;min-height:44px;padding:0 18px;font-size:9px}.workspace{display:block}.assistant-list{width:100%;padding:20px 18px;border-right:0;border-bottom:1px solid var(--line)}.list-title h1{font-size:20px}.list-title .eyebrow,.list-tip{display:none}.quota{margin:14px 0;padding:9px 12px}.assistant-cards{display:flex;overflow-x:auto;gap:9px}.assistant-card{min-width:150px;width:150px;padding:12px}.assistant-card h3{font-size:12px;margin-bottom:7px}.list-empty{padding:10px}.chat-panel{height:calc(100dvh - 100px);min-height:520px}.chat-header{padding:16px;gap:9px}.chat-actions{margin-left:0;gap:12px}.chat-identity h2{font-size:15px}.chat-status{padding:7px 16px;font-size:10px}.message-scroll{padding:15px}.message-body{font-size:13px}.composer{margin:0 12px 14px;padding:10px 12px}.composer textarea{font-size:16px}.composer-footer>span{font-size:9px;max-width:180px}.chat-empty h2{font-size:23px}.admin-users-panel{padding:20px 18px}.admin-users-panel h1{font-size:20px}input{font-size:16px}.dialog-title h2{font-size:18px}.primary,.secondary{min-height:38px}dialog{padding:23px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;scroll-behavior:auto!important}}

/* Keep secondary information readable on pale backgrounds. */
:root{--muted:#5d7057}.eyebrow,.brand span,.nav-label,.sidebar-note,.user-card small,.topbar,.assistant-card small,.card-status,.list-tip,.list-empty,.chat-identity p,.message-meta,.composer-footer,.dialog-note,.auth-footnote,.auth-story>small,.admin-user small{color:#617557}.text-button,.icon,.nav-item,.quota,.chat-status,.story-copy>p:not(.eyebrow),.story-lines,.auth-tabs button,.chat-empty>p:last-child,.message.progress .message-body,.message.status .message-body{color:#5a714c}input::placeholder,.composer textarea::placeholder{color:#728267}

.message-attachment{display:flex;flex-direction:column;gap:8px;margin-top:12px;overflow-wrap:anywhere}.attachment-preview{max-width:min(100%,420px);max-height:320px;object-fit:contain;border-radius:10px;align-self:flex-start}.message-attachment a{color:inherit;text-decoration:underline}
