/*
 * The lead's address on a lead email, and New email at a set time (lane t22-leadmail, 12 Oct 2026;
 * js/v21_leadmail.js). One box in the lead's panel (the l418-box look of js/v21_lead418.js) and one line on the board
 * card. The desk's own tokens, so it follows every theme, light and dark and High contrast. No inline styles.
 */

.lmail { grid-column: 1 / -1; }
.lmail-item { display: grid; gap: 4px; padding: 6px 0; border-top: 1px solid var(--glass-rim); }
.lmail-item:first-of-type { border-top: 0; }
.lmail-to { margin: 0; font-size: .875rem; line-height: 1.3rem; overflow-wrap: anywhere; }
.lmail-what { color: var(--ink-2); }
.lmail-addr { color: var(--ink); font-weight: 700; }
.lmail-addr.is-waiting { color: var(--brand-text); }
.lmail-tag {
  display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 999px; border: 1px solid var(--glass-rim);
  color: var(--ink-2); font-size: .75rem; font-weight: 600; line-height: 1.25rem;
}
.lmail-tag.is-crm { border-color: var(--warn); color: var(--warn); }
.lmail-lab { display: grid; gap: 2px; font-size: .8125rem; color: var(--ink-2); }
.lmail-input {
  min-width: 0; max-width: 100%; padding: 5px 8px; border-radius: 8px; border: 1px solid var(--glass-rim);
  background: var(--solid); color: var(--ink); font: inherit; font-size: .875rem;
}
.lmail-input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.lmail-when { width: 15rem; }
.lmail-tick { display: flex; align-items: center; gap: 6px; font-size: .8125rem; color: var(--ink); }
.lmail-tick input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.lmail-sends { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.lmail-send { display: grid; gap: 4px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--glass-rim); }
.lmail-sure { border-color: var(--danger); color: var(--danger); }
/* t22-fixAK: a second email to the lead while one is scheduled: the heads up and its one choice */
.lmail-double { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px; border-radius: 8px; border: 1px solid var(--warn); }
.lmail-double-line { flex: 1 1 100%; margin: 0; color: var(--ink); font-size: .8125rem; font-weight: 600; line-height: 1.25rem; overflow-wrap: anywhere; }

/* the board card: the next "Scheduled for" line under the stamp row */
.lmail-c { margin: 2px 0 0; color: var(--ink-2); font-size: .75rem; font-weight: 600; line-height: 1.1rem; overflow-wrap: anywhere; }

@media (max-width: 760px) {
  .lmail-when { width: 100%; }
}
