/* Email attachment chips and the Send to CRM sheet (mail-attach.js). */
.ma-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ma-chip, .ma-check {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  min-height: 32px; padding: 4px 11px; border: 1px solid var(--border); border-radius: 999px;
  background: #fff; color: var(--text, inherit); font: inherit; font-size: 12.5px; font-weight: 600;
  cursor: pointer; text-align: left;
}
.ma-chip:hover, .ma-check:hover { border-color: var(--blue); color: var(--blue); }
.ma-chip svg, .ma-check svg { flex: none; }
.ma-chip .ma-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ma-chip .ma-size { flex: none; color: var(--muted); font-weight: 500; font-size: 11.5px; }
.ma-chip.filed { background: #ecfdf5; border-color: #6ee7b7; color: #047857; }
.ma-check { border-style: dashed; color: var(--muted); font-weight: 500; }

.ma-sheet .ma-file { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 14px; word-break: break-word; }
.ma-sheet .ma-file svg { flex: none; }
.ma-sheet .banner { margin-bottom: 12px; font-weight: 500; line-height: 1.4; }
.ma-sheet select { width: 100%; }

/* A thumb, not a pointer: chips and the sheet's buttons at 40px, the sheet itself
   already fills the screen (phone.css .modal). */
@media (max-width: 860px) {
  .ma-chip, .ma-check { min-height: 40px; padding: 6px 14px; font-size: 13.5px; }
  .ma-sheet .btn { min-height: 40px; }
  .ma-sheet select { min-height: 40px; font-size: 16px; }
}

/* Attach from my email, on the Documents card. */
.ms-sheet .ms-go { display: flex; align-items: flex-end; }
.ms-msg { padding: 10px 0; border-top: 1px solid var(--border); min-width: 0; }
.ms-subject { font-weight: 600; overflow-wrap: anywhere; }
#ms-results { margin-top: 12px; }
/* Three buttons now: they wrap rather than push Upload off a phone screen. */
[data-card="documents"] .card-head { flex-wrap: wrap; row-gap: 6px; }
