/* Isolated composer preview; existing layout stays unchanged while closed. */
.ic-entry{display:flex;flex-direction:column;gap:7px;margin:0 8px 16px}.ic-entry button{border:0;background:none;color:#65718c;font-size:12px;padding:8px 3px;cursor:pointer}.ic-entry .ic-new{display:flex;align-items:center;justify-content:center;gap:6px;background:#242882;color:white;border-radius:6px;padding:11px 5px;font-weight:600}.ic-entry svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.6}
#ida-composer{position:fixed;right:16px;bottom:16px;width:390px;z-index:35;display:flex;flex-direction:column;min-height:0;background:#fff;color:#17224b;border:1px solid #e4e8f2;border-radius:8px;box-shadow:0 8px 30px #17224b16;font:13px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;overflow:auto;overscroll-behavior:contain}#ida-composer[hidden],.ic-minimized[hidden],#ida-composer [hidden]{display:none!important}#ida-composer *{box-sizing:border-box}#ida-composer button{font:inherit;cursor:pointer;background:none;border:0;color:inherit}#ida-composer button:hover{background:#f0f2fa;border-radius:4px}#ida-composer button:focus-visible,.ic-entry button:focus-visible{outline:2px solid #f58212;outline-offset:2px}#ida-composer svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;flex-shrink:0}
.ic-head{display:flex;align-items:center;justify-content:space-between;padding:12px 13px;background:#242882;color:#fff;border-radius:7px 7px 0 0;flex-shrink:0}.ic-head strong{display:flex;gap:8px;align-items:center;font-size:13px}.ic-head>div{display:flex;gap:3px}.ic-head button{color:#fff!important;width:27px;height:27px;font-size:20px!important;line-height:1}.ic-head button:hover{background:#ffffff25!important}.ic-preview{padding:7px 13px;font-size:11px;color:#ad5c17;background:#fff7ec;flex-shrink:0}.ic-source{display:flex;gap:10px;font-size:11px;color:#7c89a6;padding:9px 13px;border-bottom:1px solid #e9edf5;flex-shrink:0}.ic-source b{font-weight:500;color:#242882;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ic-form{padding:0 13px;flex-shrink:0}.ic-field{display:flex;gap:9px;align-items:center;min-height:41px;border-bottom:1px solid #e9edf5}.ic-field label{flex:0 0 43px;font-size:11px;color:#7c89a6}.ic-field input,.ic-field select{background:#fff;color:#17224b;border:0;outline:none;min-width:0;width:100%;padding:9px 0;font-size:12px;font-family:inherit}.ic-field input:focus,.ic-field select:focus{box-shadow:0 1px #242882}.ic-cc-actions{display:flex;flex:none;gap:5px}.ic-cc-actions button{padding:3px!important;font-size:10px!important;color:#242882!important;white-space:nowrap}.ic-format{display:flex;gap:5px;padding:8px 13px 2px;flex-shrink:0}.ic-format button{height:27px;min-width:27px;color:#7c89a6!important}.ic-editor-wrap{padding:8px 14px;flex:1;display:flex;flex-direction:column;min-height:190px}.ic-editor-wrap [data-editor]{flex:1;min-height:150px;outline:none;overflow-wrap:anywhere;line-height:1.8}.ic-editor-wrap [data-editor]:empty:before{content:'在这里输入邮件正文…';color:#a0a8ba;pointer-events:none}.ic-signature{font-size:10px;color:#7c89a6;line-height:1.8;border-left:2px solid #e9edf5;padding-left:9px;margin:15px 0 7px}.ic-signature strong{display:block;font-size:11px;color:#242882;font-weight:550}.ic-quote{border-top:1px solid #e9edf5;padding:9px 13px;font-size:11px;color:#7c89a6;flex-shrink:0}.ic-quote summary{cursor:pointer}.ic-quote p{white-space:pre-wrap;border-left:2px solid #e9edf5;padding-left:9px;max-height:210px;overflow:auto}.ic-files{display:flex;flex-wrap:wrap;gap:6px;padding:5px 13px;flex-shrink:0}.ic-file{display:flex;align-items:center;gap:5px;background:#f3f6fb;border:1px solid #e9edf5;padding:4px 6px;border-radius:4px;max-width:100%;font-size:11px}.ic-file>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ic-file svg{width:13px!important;color:#be5c4e}.ic-footer{display:flex;justify-content:space-between;gap:7px;align-items:center;border-top:1px solid #e9edf5;padding:11px 12px 6px;flex-shrink:0}.ic-footer>div{display:flex;align-items:center;gap:6px}.ic-footer>div button{display:flex;align-items:center;gap:5px;padding:5px;color:#242882!important}.ic-footer small{font-size:10px;color:#7c89a6}.ic-footer .ic-send{background:#f58212!important;color:#fff!important;border-radius:5px;padding:9px 23px;font-weight:600}.ic-storage-note{font-size:10px;color:#7c89a6;margin:0;padding:0 13px 10px;flex-shrink:0}.ic-drafts{padding:8px 13px}.ic-drafts button{display:block;text-align:left;padding:12px!important;width:100%;border-bottom:1px solid #e9edf5!important}.ic-drafts strong,.ic-drafts small{display:block;overflow-wrap:anywhere}.ic-drafts small{color:#7c89a6;margin-top:5px}.ic-minimized{position:fixed;right:17px;bottom:16px;z-index:36;width:min(370px,calc(100vw - 32px));padding:14px 16px;background:#242882;color:#fff;border:0;border-radius:6px;box-shadow:0 4px 18px #191d6825;text-align:left;cursor:pointer;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
body.ida-composing:not(.ida-compose-overview) main{grid-template-columns:116px 260px minmax(300px,1fr) 390px!important}body.ida-composing #analysis{visibility:hidden}body.ida-compose-expanded #ida-composer{left:calc(50% - 350px);width:700px;top:130px!important;bottom:22px}body.ida-compose-expanded #ida-composer [data-editor]{min-height:240px}.toolbar [data-compose]{white-space:nowrap}.toolbar{flex-wrap:wrap}
@media(max-width:1200px){body.ida-composing:not(.ida-compose-overview) main{grid-template-columns:90px 200px minmax(260px,1fr) 360px!important}#ida-composer{width:360px}.ic-entry{margin-left:2px;margin-right:2px}}
@media(max-width:960px){body.ida-composing:not(.ida-compose-overview) main{grid-template-columns:80px minmax(250px,1fr) 360px!important}body.ida-composing:not(.ida-compose-overview) .mail-list{display:none}body.ida-composing #message{grid-column:2!important}body.ida-compose-expanded #ida-composer{left:5%;width:90%}}
@media(max-width:650px){#ida-composer{left:8px;right:8px;width:auto;bottom:8px;top:80px!important}body.ida-compose-expanded #ida-composer{left:8px;width:auto;right:8px;top:8px!important}.ic-field input,.ic-field select{font-size:16px}.ic-entry{margin-bottom:10px}.ic-editor-wrap [data-editor]{font-size:16px}}

#ida-composer{overflow:hidden}.ic-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}.ic-drafts{overflow:auto}.ic-editor-wrap{min-height:190px}
.ic-ai{border-top:1px solid #e9edf5;background:#f7f8fd;padding:12px 13px}.ic-ai>label{display:block;font-size:12px;font-weight:600;color:#242882;margin-bottom:7px}.ic-ai textarea{width:100%;resize:vertical;min-height:88px;border:1px solid #dce1f0;border-radius:5px;background:white;padding:9px;font:12px/1.7 inherit;color:#17224b}.ic-ai textarea:focus{outline:1px solid #242882}.ic-ai>div{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:8px}.ic-ai small{font-size:10px;color:#7c89a6}.ic-ai button{background:#242882!important;color:white!important;padding:7px 11px;border-radius:5px;white-space:nowrap;font-size:11px!important}.ic-ai [data-ai-status]{font-size:11px;color:#627096;margin:7px 0 0;overflow-wrap:anywhere}.ic-transport{padding:7px 12px;background:#f5f7fc;color:#64728d;font-size:10px;display:flex;gap:8px;align-items:center;justify-content:space-between;flex-shrink:0;overflow-wrap:anywhere}.ic-transport button{white-space:nowrap;color:#242882!important;text-decoration:underline;font-size:10px!important}#ida-composer button:disabled{opacity:.5;cursor:default}.ic-settings{padding:12px;background:#fff9ee;border-bottom:1px solid #f0d9b8}.ic-settings>strong{font-size:12px;color:#242882}.ic-settings>label{display:block;font-size:11px;margin:9px 0;color:#64728d}.ic-settings input:not([type=checkbox]){display:block;width:100%;padding:8px;margin-top:4px;border:1px solid #ddd;border-radius:4px;font:12px inherit}.ic-settings .ic-permission{display:flex;gap:7px;align-items:center}.ic-settings small{font-size:10px;color:#7c89a6}.ic-settings>div{display:flex;justify-content:flex-end;gap:10px;margin-top:9px}.ic-settings button{padding:6px 10px!important;border:1px solid #dce1ef!important;border-radius:4px}.ic-settings [data-compose=save-settings]{background:#242882!important;color:white!important}

.ic-ai{flex-shrink:0}.ic-ai textarea{min-height:62px;height:62px;font-family:inherit;font-size:12px;line-height:1.6}.ic-ai [data-ai-status]:empty{display:none}
