.email-dialog {
  width: min(550px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--texture), var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 100px #192b2b66;
  overscroll-behavior: contain;
}
.email-dialog::backdrop { background: #182c27a8; backdrop-filter: blur(4px); }
.email-dialog-header { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.email-dialog h2 { font-size: clamp(26px, 5vw, 32px); }
.email-close { flex: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: transparent; font-size: 26px; line-height: 1; }
.email-intro { margin: 12px 0 18px; color: var(--muted); }
.email-form label { display: grid; gap: 6px; font-size: 16px; font-weight: 600; }
.email-form input[type="email"] { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fffbf3; font-size: 16px; }
.email-preview { margin: 18px 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.email-preview summary { cursor: pointer; font-weight: 600; }
.email-preview strong { display: block; margin-top: 12px; overflow-wrap: anywhere; }
.email-preview pre { margin: 10px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 14px; }
.email-submit { width: 100%; justify-content: center; min-height: 46px; }
.email-submit:disabled { cursor: default; opacity: .65; }
.email-status { margin-top: 14px; font-size: 15px; }
.email-status[data-kind="success"] { padding: 12px; border-radius: 9px; background: #e8ebdc; color: #244735; }
.email-status[data-kind="error"] { color: #8b2836; }
.email-dialog-open { overflow: hidden; }
.email-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (prefers-reduced-motion: no-preference) {
  .email-dialog[open] { animation: christmas-order-reveal .22s ease-out; }
}
