/* Email actions share the current case/receipt palette, typography and controls. */
body.email-page { padding: 24px max(24px, env(safe-area-inset-left)); }
.email-frame { max-width: 560px; margin: 0 auto; }
.email-frame .top { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.email-content { padding-top: clamp(40px, 9vh, 88px); display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.email-content h1 { font-size: clamp(32px, 4.2vw, 46px); line-height: 1.08; margin: 0; max-width: 18ch; text-wrap: balance; }
.email-description { color: var(--muted); font-size: 17px; line-height: 1.65; max-width: 46ch; margin: 0; }
.email-note { color: var(--muted); font-size: 13px; line-height: 1.6; max-width: 48ch; margin: 0; }
.email-content form { width: 100%; margin: 0; }
.email-content .go { display: inline-flex; min-width: 220px; border-radius: 12px; padding-inline: 24px; }
.email-symbol { width: 48px; height: 48px; border: 1px solid var(--line-2); border-radius: 50%; display: grid; place-items: center; color: var(--amber); position: relative; }
[data-state="success"] .email-symbol { background: var(--amber-soft); border-color: var(--amber-soft); }
[data-state="success"] .email-symbol::after { content: ""; width: 15px; height: 8px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(-45deg); }
[data-state="pending"] .email-symbol::after { content: ""; width: 19px; height: 14px; border: 1.5px solid currentColor; border-radius: 2px; }
[data-state="pending"] .email-symbol::before { content: ""; position: absolute; width: 11px; height: 11px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-5px) rotate(45deg); }
[data-state="error"] .email-symbol::after { content: "!"; font: 500 24px var(--body); }
.agent-quote { margin: 0; padding: 14px 16px; border-left: 2px solid var(--amber); background: var(--surface-2); color: var(--ink); font-size: 17px; line-height: 1.6; max-width: 46ch; white-space: pre-wrap; overflow-wrap: anywhere; }
.email-content a.go { text-decoration: none; justify-content: center; }
.agents-page .email-content { gap: 28px; }
.agents-page .email-content h1 { max-width: 16ch; }
.agent-address { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.agent-address span { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.agent-address code { font-family: var(--mono); font-size: 18px; color: var(--amber); padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; overflow-wrap: anywhere; user-select: all; }
.agent-section { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.agent-section h2 { margin: 0; font-size: 20px; font-weight: 600; }
.agent-section ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 10px; color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 52ch; }
.agent-section li strong { color: var(--ink); font-weight: 600; }
.agent-section code { font-family: var(--mono); font-size: 13px; color: var(--ink); background: var(--surface-2); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.email-note a { color: var(--amber); }
@media (max-width: 480px) {
  body.email-page { padding-top: 16px; }
  .email-content { gap: 20px; }
  .email-content .go { width: 100%; }
  .email-description { font-size: 16px; }
}
