/* Mail section (cafe card) + mail queue — same soft language as app.css. */
.mail-section h3 { display: flex; align-items: center; gap: 8px; }
.mail-jobs { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.mail-job { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; gap: 4px; }
.mail-job .top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mail-job .top b { overflow-wrap: anywhere; }
.mail-form { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.mail-form textarea { min-height: 220px; font-family: inherit; line-height: 1.5; }
.mail-form .note, .mail-section .note { padding: 8px 12px; border-radius: 10px; background: var(--line); color: var(--ink-2); }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.mail-new svg { width: 12px; height: 12px; }
.mail-preview { flex: 1 1 100%; }
.mail-preview pre { white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; font-size: 14px; margin: 8px 0 0; color: var(--ink-2); }
.mail-preview summary { cursor: pointer; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.mail-section > h3 { justify-content: flex-start; }
.mail-section > h3 .pill { margin-left: auto; }
.mail-job .row-actions .spacer { flex: 1; }
.mail-job .row-actions .btn:first-child { padding-left: 0; }

.mail-handler { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* Thread tickets: one header per mail thread on the cafe card; the same
   pieces (status pill, assignee chip, unread badge, actions) build the
   #/tickets rows (tickets.css). */
.threads { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.thread-head { padding: 10px 12px; border: 1px solid var(--line); border-left: 3px solid var(--st, var(--line)); border-radius: 12px; display: flex; flex-direction: column; gap: 6px; }
.thread-head .top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.thread-head .top b { overflow-wrap: anywhere; }
.thread-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--ink-2); }
.thread-actions { justify-content: flex-start; }
.thread-actions .btn { margin-left: auto; }
.unread-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; line-height: 1; }
.assignee { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink-2); min-width: 0; }
.assignee .who-av { width: 22px; height: 22px; font-size: 10px; cursor: default; overflow: hidden; }
.assignee-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.input.sm, select.input.sm { min-height: 36px; padding: 6px 32px 6px 12px; font-size: 13px; width: auto; border-radius: 999px; }

.won-row { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--line); }
.won-m { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
