/* Draft preview and mail-app fallback */
dialog.cj-draft:not([open]){display:none}
html:has(.cj-draft[open]){overflow:hidden}
dialog.cj-draft{background:white;color:#102445;position:fixed;inset:0;border:none;border-radius:12px;box-shadow:0 28px 110px #000b3060;width:min(640px,calc(100% - 30px));max-width:none;max-height:calc(100vh - 30px);max-height:calc(100dvh - 30px);margin:auto;padding:0;overflow:auto;text-align:left;line-height:1.65;overscroll-behavior:contain}
.cj-draft::backdrop{background:#06122bb0;backdrop-filter:blur(4px)}
.cj-draft.cd-legacy{z-index:9999;box-shadow:0 0 0 150vmax #06122bb0}
.cj-draft .cd-title,.cj-draft .cd-label,.cj-draft .cd-to,.cj-draft .cd-actions{display:flex;align-items:center;gap:12px}
.cj-draft .cd-title{justify-content:space-between;position:sticky;top:0;background:white;z-index:1;padding:16px 28px;border-bottom:1px solid #dbe3ef}
.cj-draft h2{font-size:22px;line-height:1.45;color:#0a1b3d;letter-spacing:-.025em}
.cj-draft h2:focus{outline:0}
.cj-draft .cd-content{padding:18px 28px 24px}
.cj-draft button,.cj-draft a{border:0;background:none;color:#1345be;padding:5px 0;min-height:36px;font-size:13px;font-weight:700;line-height:1.55;text-decoration:none}
.cj-draft button:hover{text-decoration:underline}
.cj-draft .cd-title button{color:#364a67;white-space:nowrap}
.cj-draft .cd-title button span{font:20px Arial;vertical-align:middle;margin-left:4px}
.cj-draft .cd-hint,.cj-draft .cd-result{color:#445977;font-size:14px;line-height:1.75;text-wrap:pretty}
.cj-draft .cd-to{margin-top:13px;border-block:1px solid #dce4ee;padding:7px 0;flex-wrap:wrap;row-gap:0}
.cj-draft .cd-to span,.cj-draft label{font-size:14px;font-weight:700}
.cj-draft .cd-to strong{font:600 16px Arial;user-select:all}
.cj-draft .cd-to button{margin-left:auto}
.cj-draft .cd-label{justify-content:space-between;margin:10px 0 3px}
.cj-draft input,.cj-draft textarea{display:block;background:#fff;width:100%;max-width:100%;border:1px solid #9bacc8;border-radius:5px;color:#12284b;font:inherit;font-size:16px;padding:10px 12px;line-height:1.6}
.cj-draft textarea{resize:vertical;min-height:112px}
.cj-draft #cd-body{height:clamp(165px,29vh,236px)}
.cj-draft .cd-actions{margin:20px 0 12px}
.cj-draft .cd-actions>*{flex:1;display:flex;align-items:center;justify-content:center;gap:10px;border:1px solid #96accf;background:white;color:#1344ac;min-height:47px;text-align:center;padding:8px;font-size:14px;border-radius:5px}
.cj-draft .cd-actions .cd-launch{color:#fff;background:#144bdb;border-color:#144bdb}
.cj-draft .cd-launch:hover{background:#1037b2}
.cj-draft .cd-manual{margin-top:10px}
.cj-draft :is(button,a,input,textarea):focus-visible{outline:3px solid #3677dc;outline-offset:2px}
.inquiry-directory button[data-compose]{border:0;background:none;text-align:left;padding:0;text-decoration:underline;text-underline-offset:.23em;color:#1545ae;font-size:14px;font-weight:700}
.inquiry-directory button[data-compose]:hover{color:#071a4b}
@media(max-width:540px){dialog.cj-draft{width:calc(100% - 18px);max-height:calc(100dvh - 18px)}.cj-draft .cd-title{padding:10px 16px}.cj-draft h2{font-size:18px}.cj-draft .cd-content{padding:12px 16px 18px}.cj-draft .cd-to{gap:7px;row-gap:0}.cj-draft .cd-to strong{font-size:14px}.cj-draft .cd-to button{font-size:12px}.cj-draft .cd-actions{display:grid;grid-template-columns:1fr;gap:8px;margin:14px 0 10px}.cj-draft .cd-hint,.cj-draft .cd-result{font-size:13px}.cj-draft .cd-label{margin-top:6px}.cj-draft #cd-body{height:clamp(150px,26dvh,220px)}.cj-draft input,.cj-draft textarea{padding:8px}}
.cj-draft #cd-subject{min-height:44px;max-height:140px;resize:none;overflow-y:auto}
.cj-draft .cd-actions button{text-decoration:none}
.cj-draft .cd-actions button:hover{background:#eff5ff}
