.mail-template-dialog{width:min(780px,calc(100vw - 28px));max-height:90vh;overflow:auto;box-sizing:border-box;border:1px solid #dce4ef;border-radius:14px;padding:24px;color:#1d2b48}.mail-template-dialog::backdrop{background:#17274466}.template-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.template-heading h2{margin:0;font-size:21px}.template-intro,.template-note,.template-check{font-size:13px;color:#67748b;line-height:1.7}.template-intro{margin:14px 0}.template-content label,#mailTemplatePage label{display:flex;flex-direction:column;gap:8px;margin:14px 0;font-size:14px}.template-body{min-height:330px;resize:vertical;line-height:1.7;font:14px/1.7 system-ui,"Microsoft YaHei",sans-serif}.template-content input,.template-content textarea,.template-content select,#mailTemplatePage textarea,#mailTemplatePage select{width:100%;box-sizing:border-box;border:1px solid #ccd5e3;border-radius:8px;padding:10px;font:inherit;color:#1d2b48}.template-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}.template-status{color:#8d5b18;font-size:13px;line-height:1.7;white-space:pre-wrap}.template-status:empty{display:none}.template-fields,.template-attachment{font-size:13px;color:#67748b;margin:12px 0}.template-fields summary,.template-attachment summary{cursor:pointer}.template-fields li{margin:5px 0}.template-attachment pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;background:#f5f7fb;border:1px solid #e0e6ef;border-radius:8px;padding:12px}.template-check{border-top:1px solid #e0e6ef;padding-top:12px}body.template-page{margin:0;padding:24px;background:#f5f7fb;color:#1d2b48;font-family:system-ui,"Microsoft YaHei",sans-serif}.template-page main{max-width:780px;margin:0 auto;background:#fff;border:1px solid #e0e6ef;border-radius:14px;padding:24px}.template-page h1{font-size:25px;margin:0 0 10px}.template-page .btn{padding:9px 14px;border:1px solid #ccd5e3;border-radius:7px;cursor:pointer;background:white;color:#1d2b48;font:inherit}.template-page .btn.primary{background:#1e325d;color:white;border-color:#1e325d}.mail-template-entry{display:flex;gap:10px;align-items:center;flex-wrap:wrap;font-size:13px;color:#67748b}.mail-template-entry p{margin:8px 0}.mail-template-entry a{font-size:13px}@media(max-width:600px){body.template-page{padding:12px}.template-page main,.mail-template-dialog{padding:16px}.template-body{min-height:300px}}
.template-draft-target{background:#f5f8fd;border:1px solid #dce4ef;border-radius:9px;padding:14px;margin:14px 0;font-size:13px;overflow-wrap:anywhere}.template-draft-target p{margin:8px 0;line-height:1.6}.template-draft-target input{width:100%;box-sizing:border-box;font:inherit;border:1px solid #ccd5e3;border-radius:8px;padding:10px}
