/* email add-on (see ADDONS.md) */
.em-card { border-top-left-radius: 0; }
.em-status { padding: 10px 12px; border-radius: 8px; background: #f5f7fa; margin-bottom: 12px; line-height: 1.5; }
.em-status.ok { background: #e3f5ec; color: #18794e; }
.em-status.warn { background: #fef3c7; color: #92400e; }
.em-err { color: #b42318; font-size: 13px; margin-top: 4px; }
.em-prov { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.em-prov button { padding: 10px 16px; font-weight: 600; }
.em-prov button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.em-help { background: #f8fafc; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; margin-bottom: 12px; }
.em-help summary { cursor: pointer; font-weight: 700; }
.em-steps { margin: 8px 0 4px; padding-left: 20px; line-height: 1.6; }
.em-steps li { margin-bottom: 4px; }
.em-form .row2, .em-sched .row3, .em-form .row3 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.em-form .row3, .em-sched .row3 { grid-template-columns: 2fr 1fr 1.4fr; }
.em-check { display: flex; align-items: center; gap: 8px; font-weight: 400; margin: 10px 0 4px; flex-wrap: wrap; }
.em-check input { width: auto; margin: 0; }
.em-bar { display: flex; gap: 8px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.em-bar .spacer, .em-compose .spacer { flex: 1; }
.em-test { margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: #f5f7fa; line-height: 1.6; }
.em-test.ok { background: #e3f5ec; color: #18794e; }
.em-test.bad { background: #fee2e2; color: #991b1b; }
.em-trow { display: flex; gap: 8px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.em-trow .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modal.em-wide { width: min(680px, 100%); }
.em-compose .actions { align-items: center; }
.em-bodyhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.em-cc { margin-top: 6px; }
.em-cc summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.em-thread { display: flex; flex-direction: column; gap: 8px; max-height: 520px; overflow-y: auto; }
.em-msg { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; border-left: 3px solid #93c5fd; }
.em-msg.in { border-left-color: #34d399; }
.em-mhead { display: flex; gap: 6px; align-items: center; }
.em-subj { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill.em-in { background: #e3f5ec; color: #18794e; }
.pill.em-out { background: #e0ecff; color: #1d4ed8; }
.pill.replied { background: #e3f5ec; color: #18794e; }
.em-snip { margin-top: 4px; font-size: 13.5px; color: #374151; }
.em-full { margin-top: 6px; white-space: pre-wrap; font-size: 13.5px; max-height: 360px; overflow-y: auto; background: #f8fafc; padding: 8px; border-radius: 6px; }
.em-macts { display: flex; gap: 12px; margin-top: 4px; }
@media (max-width: 640px) {
  .em-form .row2, .em-form .row3, .em-sched .row3 { grid-template-columns: 1fr; }
}
