/* «Рассылка» — only project tokens from lem.css. */
.ml-emergency { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ml-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.ml-tabs { margin: 0 0 14px; }
.ml-form { display: grid; gap: 12px; margin-top: 14px; }
.ml-check { display: flex; align-items: center; gap: 8px; color: var(--text-secondary); }
.ml-login { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.ml-live { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0; padding: 12px;
  border: 1px solid var(--warning-border); background: var(--warning-bg); color: var(--warning-text); border-radius: 10px; }
.ml-live input { width: 160px; }
.ml-text { white-space: pre-wrap; font-family: inherit; margin: 8px 0 0; padding: 10px; border-radius: 8px;
  background: var(--bg-hover); color: var(--text-primary); }
.ml-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ml-table th, .ml-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border); }
.ml-table th { color: var(--text-secondary); font-weight: 600; }
.ml-metrics { margin: 14px 0; }
.content h3 { margin: 16px 0 8px; font-size: 14px; }
.ml-edit { margin-top: 8px; display: grid; gap: 8px; }
.ml-edit textarea { width: 100%; box-sizing: border-box; font: inherit; color: var(--text-primary); background: var(--bg-hover);
  border: 1px solid var(--border); border-radius: 8px; padding: 10px; resize: vertical; }
.ml-due-line { margin-top: 2px; font-size: 13px; } .ml-due { font-weight: 600; color: var(--accent-action, var(--accent)); }

/* Mini App (phone): wide tables scroll inside themselves, tabs stay on one scrolling line. */
@media (max-width: 760px) {
  .ml-table { display: block; overflow-x: auto; white-space: nowrap; }
  .ml-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .ml-tabs .tab { flex: 0 0 auto; }
  .ml-live input { width: 100%; }
  .ml-emergency { flex-wrap: wrap; }
  .ml-recipient .row-actions { flex-wrap: wrap; }
}

/* «Ответы» and «Статистика» (server). */
.ml-badge { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 9px; background: var(--accent-action, var(--accent)); color: #fff; font-size: 12px; line-height: 18px; }
.ml-thread-row { display: block; width: 100%; text-align: left; border: 0; cursor: pointer; }
.ml-thread-row.ml-unread .row-title { font-weight: 700; }
.ml-thread-text { margin-top: 6px; color: var(--text-secondary); white-space: pre-wrap; overflow-wrap: anywhere; }
.ml-chat { display: grid; gap: 10px; margin: 14px 0; }
.ml-msg { max-width: 85%; padding: 10px 12px; border-radius: 14px; }
.ml-msg-text { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-primary); }
.ml-in { justify-self: start; background: var(--bg-hover); border-bottom-left-radius: 4px; }
.ml-out { justify-self: end; background: var(--warning-bg); border-bottom-right-radius: 4px; }
.ml-best td { font-weight: 600; }
