.email-dialog{box-sizing:border-box;width:min(620px,calc(100% - 32px));max-height:calc(100dvh - 32px);padding:28px;border:1px solid var(--line);border-radius:24px;background:var(--paper);color:var(--plum);box-shadow:0 24px 80px #100d2940;overflow:auto}
.email-dialog::backdrop{background:#100d29b3}
.email-dialog h2{font-size:clamp(26px,4vw,34px);line-height:1.15;margin:16px 0}
.email-dialog p{color:var(--muted);font-size:16px;line-height:1.5}
.email-close{display:block;margin-left:auto;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:12px;background:transparent;color:var(--plum);font:inherit;cursor:pointer}
.email-dialog .email-address{color:var(--violet);font-weight:850;overflow-wrap:anywhere;user-select:text}
.email-message{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:15px;line-height:1.5;background:var(--white);border:1px solid var(--line);border-radius:12px;padding:16px;user-select:text}
.email-options{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
.email-options .btn{font-size:15px;padding:12px 18px;min-height:44px;white-space:normal;text-align:center}
.email-dialog .email-status{min-height:24px;margin-bottom:0}
.email-dialog [hidden]{display:none!important}
@media(max-width:420px){.email-dialog{padding:20px}.email-options{flex-direction:column}.email-options .btn{width:100%}}
/* Keep copy-button labels readable throughout pointer and keyboard changes. */
.email-options .btn{transition:none}
