.ai-workbench .unified-composer{border:1px solid #d7dfeb;border-radius:18px;background:white;padding:12px;transition:border-color .2s,box-shadow .2s}.ai-workbench .unified-composer:focus-within{border-color:#9baad0;box-shadow:0 0 0 3px #7d8bb30c}.ai-workbench .unified-composer #aiText{border:0;box-shadow:none;outline:none;border-radius:0;background:transparent;margin:0;padding:5px 4px;min-height:66px;height:70px;resize:none;font-size:14px}.composer-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:5px}.composer-tools{display:flex;align-items:center;gap:4px}.ai-workbench .composer-tools button{display:flex;align-items:center;justify-content:center;gap:6px;border:0;padding:8px 10px;min-height:38px;background:transparent;font-size:12px;color:#7889a1;border-radius:9px;margin:0;white-space:nowrap}.ai-workbench .composer-tools button:hover{background:#f1f5f9;color:#586d8c}.ai-workbench .send-button{width:38px;height:38px;min-width:38px;border-radius:12px;padding:0;display:grid;place-items:center;flex:none;box-shadow:0 3px 8px #7582b319}.ai-workbench .send-button:disabled{background:#edf0f6;color:#acb6c9;opacity:1;box-shadow:none}.ai-workbench #attachmentArea{display:flex;align-items:center;gap:8px;max-width:100%;width:fit-content;padding:7px 9px;background:linear-gradient(110deg,#f0f7f3,#f2f4fa);border:1px solid #e2e9ee;border-radius:10px;margin:0 3px 7px;font-size:12px;color:#6f8299}.attachment-icon{color:#83a997;font-size:17px}#attachmentArea #aiFilesNote{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;min-width:0}.ai-workbench #removeAttachment{padding:0;width:23px;height:23px;border:0;background:transparent;flex:none;font-size:17px;color:#94a2b6}.ai-workbench #aiVoice{width:auto;min-width:115px;touch-action:none;user-select:none}.ai-workbench #aiVoice .voice-wave{display:none}.ai-workbench #aiVoice[data-state=recording]{background:#eef4f4}.ai-workbench #aiVoice[data-state=recording] .voice-label,.ai-workbench #aiVoice[data-state=recording] .mic-icon{display:none}.ai-workbench #aiVoice[data-state=recording] .voice-wave{display:flex;gap:4px;align-items:center;height:20px}.ai-workbench #aiVoice .voice-wave i{height:12px;width:3px;border-radius:3px;background:#8298b2;animation:composer-wave .65s ease-in-out infinite alternate}.ai-workbench #aiVoice .voice-wave i:nth-child(2n){animation-delay:-.3s}.ai-workbench #aiVoice .voice-wave i:nth-child(3n){animation-delay:-.5s}@keyframes composer-wave{to{transform:scaleY(.35)}}#aiVoiceStatus{font-size:11px;color:#8291a7}@media(max-width:600px){.ai-workbench .unified-composer{padding:9px;border-radius:15px}.ai-workbench .unified-composer #aiText{font-size:16px;min-height:62px;height:65px}.ai-workbench .composer-tools button{padding:7px 8px;font-size:12px}.ai-workbench #aiVoice{min-width:110px}.composer-tools{gap:0}.ai-workbench .ai-compose{padding:10px 12px}.ai-workbench #attachmentArea{font-size:11px}}@media(prefers-reduced-motion:reduce){.ai-workbench #aiVoice .voice-wave i{animation:none}}
#aiForm .send-button{width:38px!important;min-width:38px!important;max-width:38px!important;height:38px!important;min-height:38px!important;margin:0!important;flex:0 0 38px!important}
/* 空闲紧凑，开始对话后再给结果留出空间。 */
.ai-workbench{height:auto;max-height:88dvh;overflow:auto;width:min(760px,calc(100% - 24px))}.ai-workbench .ai-head{align-items:center;gap:12px}.ai-workbench .ai-head>div:first-child{min-width:0}.ai-workbench .ai-head h2{font-size:21px}.ai-workbench .ai-head p{font-size:11px}.composer-head-actions{display:flex;align-items:center;gap:20px;flex:none}.ai-workbench #aiNew{border:0;background:transparent;color:#7c8ba3;font-size:12px;padding:8px 4px;white-space:nowrap}.ai-workbench #aiClose{width:34px;height:34px;padding:0;display:grid;place-items:center;border-radius:11px;font-size:20px}.ai-workbench .ai-chat{flex:none;min-height:0;padding:18px 24px 10px}.ai-workbench .ai-chat .ai-turn{margin-bottom:8px}.ai-workbench .ai-compose{border-top:0;padding-top:6px}.ai-workbench .ai-consent{margin-top:12px;margin-bottom:7px;font-size:12px}.composer-footline{font-size:11px;color:#8b99aa;margin-bottom:10px}.ai-workbench .composer-help{border-top:1px solid #e9eef4;padding:10px 0 0;margin:0;font-size:12px;color:#718299}.composer-help summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:8px}.composer-help summary::before{content:'›';font-size:17px;line-height:1;transition:transform .15s}.composer-help[open] summary::before{transform:rotate(90deg)}.composer-help summary span{font-size:10px;color:#a0aab8;margin-left:auto}.composer-help .help-list{padding:0;margin:10px 0 0;list-style:none;display:grid;gap:0;background:#f5f8fb;border:1px solid #e9eef3;border-radius:11px;overflow:hidden}.help-list li{display:grid;grid-template-columns:70px 1fr;gap:10px;padding:10px 12px;border-bottom:1px solid #e8edf3;line-height:1.7}.help-list li:last-child{border-bottom:0}.help-list b{font-size:12px;font-weight:500;color:#65758d}.help-list li span{font-size:11px;color:#8492a4}.ai-workbench.has-conversation{height:min(760px,88dvh);overflow:hidden}.ai-workbench.has-conversation .ai-chat{flex:1;min-height:100px;overflow:auto}.ai-workbench.has-conversation:has(.composer-help[open]){overflow:auto}.ai-workbench.has-conversation:has(.composer-help[open]) .ai-chat{flex:none;max-height:200px}
@media(max-width:600px){.ai-workbench{width:calc(100% - 20px);height:auto;max-height:88dvh}.ai-workbench .ai-head{padding:14px 16px;gap:8px}.ai-workbench .ai-head h2{font-size:19px}.ai-workbench .ai-head p{font-size:10px}.composer-head-actions{gap:16px}.ai-workbench #aiNew{font-size:11px}.ai-workbench .ai-chat{padding:15px 16px 8px}.ai-workbench .ai-chat .ai-turn{font-size:12px}.ai-workbench .ai-compose{padding:4px 14px 14px}.composer-footline{font-size:10px}.help-list li{grid-template-columns:60px 1fr;gap:8px;padding:9px 10px}.help-list b{font-size:11px}.help-list li span{font-size:11px}.ai-workbench.has-conversation{height:85dvh;max-height:88dvh}}
.ai-workbench:not(.has-conversation){height:fit-content}.composer-help summary{width:100%}
