/* COMMS3 — notes panel styles.
 *
 * Geometry (widths/breakpoints) comes from --notes-* variables set by
 * notes-layout.js — the ONE file that owns layout. Accent colours below are
 * the static design tokens; they mirror the JS tokens in notes-layout.js
 * (used by the contrast tests). Keep the two in sync.
 */

/* ---- dashboard split (desktop: 72/28, tablet: stacked) ---- */
.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
@media (min-width: 1280px) {
  .dashboard-layout {
    grid-template-columns: var(--notes-main-pct) var(--notes-panel-pct);
  }
  .dashboard-notes {
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow: auto;
  }
}
@media (max-width: 767px) {
  .dashboard-notes {
    display: none; /* COMMS3: mobile is a sheet, not a compressed rail */
  }
}

/* ---- panel shell ---- */
.np-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 120px;
}
.np-panel h2 {
  font-size: 1rem;
  margin: 0 0 2px;
  color: var(--text-primary);
}
.np-panel.np-offline {
  opacity: 0.75;
}
.np-panel.np-offline .np-card {
  outline: 1px dashed var(--border);
}

/* ---- skeleton loading ---- */
.np-skeleton {
  height: 96px;
  border-radius: 8px;
  background: linear-gradient(100deg, var(--border) 40%, #eef1f5 50%, var(--border) 60%);
  background-size: 200% 100%;
  animation: np-shimmer 1.1s infinite linear;
}
@media (prefers-reduced-motion: reduce) {
  .np-skeleton { animation: none; }
}
@keyframes np-shimmer {
  to { background-position: -200% 0; }
}

/* ---- card ---- */
.np-card {
  position: relative;
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border);
  border-left: 4px solid var(--np-accent);
  border-radius: 8px;
  padding: 10px 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.np-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.np-accent-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--np-accent); /* label colour only — never the body background */
}
.np-title {
  margin: 0 0 4px;
  font-size: 0.92rem;
  color: var(--text-primary);
}
.np-body {
  font-size: 0.86rem;
  color: var(--text-primary);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: var(--notes-body-clamp, 4);
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: pointer;
  word-break: break-word;
}
.np-card.open .np-body {
  -webkit-line-clamp: unset;
}
.np-card-foot {
  margin-top: 8px;
  font-size: 0.74rem;
  color: var(--text-secondary);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.np-pin {
  margin-left: 6px;
  font-size: 0.8rem;
}

/* accent edge bar + label colour — never tints the body background */
.np-accent-neutral   { --np-accent: #5b6472; }
.np-accent-info      { --np-accent: #1d6fb8; }
.np-accent-warning   { --np-accent: #a16207; }
.np-accent-important { --np-accent: #b42318; }
@media (prefers-color-scheme: dark) {
  .np-accent-neutral   { --np-accent: #9aa4b2; }
  .np-accent-info      { --np-accent: #63a9e8; }
  .np-accent-warning   { --np-accent: #e0b04a; }
  .np-accent-important { --np-accent: #f47d6e; }
}

/* ---- checklist ---- */
.np-checklist {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
}
.np-check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.86rem;
  padding: 3px 0;
  cursor: pointer;
}
.np-check input {
  margin-top: 3px;
  accent-color: var(--np-accent, #4f46e5);
}
.np-checked {
  text-decoration: line-through;
  opacity: 0.6;
}
.np-checklist-count {
  font-size: 0.74rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ---- menu ---- */
.np-menu-btn {
  border: none;
  background: none;
  font-size: 1.05rem;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-secondary);
  cursor: pointer;
}
.np-menu {
  position: absolute;
  right: 8px;
  top: 30px;
  z-index: var(--notes-menu-z, 1001);
  min-width: 120px;
  background: var(--card-bg, #fff);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 4px;
}
.np-menu button {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: none;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--text-primary);
  cursor: pointer;
}
.np-menu button:hover,
.np-menu button:focus-visible {
  background: var(--border);
}

/* ---- states ---- */
.np-status,
.np-empty,
.np-error {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 12px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  text-align: center;
}
.np-error p { margin: 0 0 8px; }
.np-retry {
  border: 1px solid var(--border);
  background: var(--card-bg, #fff);
  padding: 5px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
}
.np-intro {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.np-card-sample {
  opacity: 0.65;
}
.np-card-sample .np-body {
  -webkit-line-clamp: unset;
}

/* ---- focus ---- */
.np-panel :focus-visible {
  outline: 2px solid #4f46e5;
  outline-offset: 2px;
}

/* ---- COMMS4: composer, undo snackbar, drag, inline edit ---- */
.np-composer-collapsed {
  width: 100%;
  text-align: left;
  border: 1px dashed var(--border);
  background: none;
  color: var(--text-secondary);
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.86rem;
  cursor: pointer;
}
.np-composer-collapsed:hover,
.np-composer-collapsed:focus-visible {
  border-color: #4f46e5;
  color: var(--text-primary);
}
.np-composer-form {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--card-bg, #fff);
}
.np-composer-input,
.np-inline-editor {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px;
  font: inherit;
  font-size: 0.86rem;
  resize: vertical;
  background: var(--card-bg, #fff);
  color: var(--text-primary);
  box-sizing: border-box;
}
.np-composer-options {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.np-swatches {
  display: flex;
  gap: 6px;
}
.np-swatch {
  cursor: pointer;
  line-height: 0;
}
.np-swatch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.np-swatch span {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid transparent;
}
.np-swatch-neutral span   { background: #5b6472; }
.np-swatch-info span      { background: #1d6fb8; }
.np-swatch-warning span   { background: #a16207; }
.np-swatch-important span { background: #b42318; }
.np-swatch input:checked + span {
  border-color: var(--text-primary);
  outline: 2px solid rgba(79, 70, 229, 0.35);
}
.np-scopes {
  display: flex;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-primary);
}
.np-scope-opt {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.np-composer-pin {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  cursor: pointer;
}
.np-composer-add {
  margin-left: auto;
  border: 1px solid var(--border);
  background: var(--card-bg, #fff);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  cursor: pointer;
}
.np-composer-add:hover,
.np-composer-add:focus-visible {
  border-color: #4f46e5;
}

/* ---- undo snackbar (bottom of the panel, sticky) ---- */
.np-panel {
  position: relative;
}
.np-snackbar {
  position: sticky;
  bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #232c3b;
  color: #f2f4f8;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.84rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  margin-top: 8px;
  animation: np-snack-in 180ms ease-out;
}
@keyframes np-snack-in {
  from { transform: translateY(6px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .np-snackbar { animation: none; }
}
.np-undo {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: none;
  color: inherit;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.np-undo:hover,
.np-undo:focus-visible {
  border-color: #fff;
}

/* ---- drag reorder ---- */
.np-card {
  cursor: grab;
}
.np-card.np-dragging {
  opacity: 0.5;
}
.np-drop-indicator {
  height: 3px;
  border-radius: 2px;
  background: #4f46e5;
  margin: 4px 0;
}
.np-card:focus-visible {
  outline: 2px solid #4f46e5;
  outline-offset: 2px;
}

/* ---- COMMS5: audience picker ---- */
.np-audience {
  display: flex;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-primary);
  flex-wrap: wrap;
}
.np-audience-summary {
  font-size: 0.74rem;
  color: var(--text-secondary);
}
.np-audience-picker {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  max-height: 220px;
  overflow: auto;
  background: var(--card-bg, #fff);
}
.np-audience-search {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 8px;
  font: inherit;
  font-size: 0.82rem;
  margin-bottom: 6px;
}
.np-opt {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  padding: 3px 0;
  cursor: pointer;
}
.np-opt-inert {
  opacity: 0.55;
}
.np-audience-roles {
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
  padding-bottom: 4px;
}
.np-audience-pop {
  position: absolute;
  top: 34px;
  left: 8px;
  right: 8px;
  z-index: 1002;
  background: var(--card-bg, #fff);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  padding: 8px;
}
.np-audience-pop-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}
.np-pop-cancel,
.np-pop-apply {
  border: 1px solid var(--border);
  background: var(--card-bg, #fff);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
}
.np-pop-apply {
  border-color: #4f46e5;
  color: #4f46e5;
  font-weight: 600;
}

/* ---- COMMS6: announcement banner (full width above dashboard + panel) ---- */
.ann-banner-row {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.ann-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-left: 4px solid #1d6fb8;
  background: var(--card-bg, #fff);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.88rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  position: relative;
}
.ann-banner.ann-important {
  border-left-color: #b42318;
}
.ann-text {
  flex: 1;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ann-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}
.ann-ack,
.ann-dismiss {
  border: 1px solid var(--border);
  background: var(--card-bg, #fff);
  border-radius: 6px;
  width: 28px;
  height: 28px;
  line-height: 1;
  font-size: 0.9rem;
  cursor: pointer;
}
.ann-ack:hover,
.ann-ack:focus-visible {
  border-color: #15803d;
  color: #15803d;
}
.ann-dismiss:hover,
.ann-dismiss:focus-visible {
  border-color: #b42318;
  color: #b42318;
}
.ann-ack:disabled,
.ann-dismiss:disabled {
  opacity: 0.5;
  cursor: default;
}
.ann-seen {
  border: none;
  background: none;
  color: var(--text-secondary);
  font-size: 0.76rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ann-more {
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.ann-hint {
  position: absolute;
  right: 72px;
  top: -8px;
  background: #b42318;
  color: #fff;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 6px;
}
.ann-detail {
  position: absolute;
  top: 40px;
  right: 8px;
  z-index: 1003;
  background: var(--card-bg, #fff);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  padding: 8px 12px;
  font-size: 0.78rem;
  max-width: 260px;
}
.ann-detail-acked {
  color: #15803d;
  margin-bottom: 4px;
}
.ann-detail-pending {
  color: var(--text-secondary);
}

/* ---- COMMS9: messages UI (geometry from --msgr-* vars set by notes-layout.js) ---- */
.msgr-root { display: flex; height: 100%; min-height: 460px; }
.msgr-split {
  display: grid;
  grid-template-columns: var(--msgr-list-width, 300px) 1fr;
  width: 100%;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  overflow: hidden;
  background: var(--card-bg, #fff);
}
.msgr-list {
  border-right: 1px solid var(--border, #e5e7eb);
  overflow-y: auto;
  max-height: 70vh;
}
.msgr-list-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; font-weight: 700; font-size: 0.85rem;
  border-bottom: 1px solid var(--border, #e5e7eb);
  position: sticky; top: 0; background: var(--card-bg, #fff); z-index: 2;
}
.msgr-new-btn { border: 1px solid var(--border, #e5e7eb); border-radius: 6px; background: none; cursor: pointer; padding: 3px 10px; font-size: 0.78rem; }
.msgr-conv {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 8px;
  width: 100%; text-align: left; border: none; background: none;
  padding: 10px 12px; cursor: pointer; border-bottom: 1px solid var(--border, #e5e7eb);
}
.msgr-conv:hover { background: var(--bg, #f7f8fa); }
.msgr-conv.msgr-active { background: var(--bg, #f7f8fa); box-shadow: inset 3px 0 0 #1d6fb8; }
.msgr-conv-title { font-weight: 600; font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msgr-conv-meta { font-size: 0.7rem; color: var(--text-secondary, #6b7280); }
.msgr-unread {
  grid-column: 1 / -1; justify-self: start;
  background: #1d6fb8; color: #fff; font-size: 0.68rem; font-weight: 700;
  border-radius: 999px; padding: 1px 8px;
}
.msgr-thread { display: flex; flex-direction: column; min-width: var(--msgr-thread-min, 320px); }
.msgr-thread-empty { align-items: center; justify-content: center; color: var(--text-secondary, #6b7280); font-size: 0.85rem; }
.msgr-thread-head {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; font-weight: 700; font-size: 0.9rem;
  border-bottom: 1px solid var(--border, #e5e7eb);
}
.msgr-back { display: none; border: none; background: none; font-size: 1.2rem; cursor: pointer; }
.msgr-scroll { flex: 1; overflow-y: auto; max-height: 56vh; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.msgr-older { align-self: center; border: 1px solid var(--border, #e5e7eb); background: none; border-radius: 6px; padding: 4px 12px; font-size: 0.75rem; cursor: pointer; }
.msgr-msg { position: relative; max-width: 78%; padding: 8px 12px; border-radius: 10px; background: var(--bg, #f3f4f6); }
.msgr-mine { align-self: flex-end; background: #e8f0fd; }
.msgr-msg-head { display: flex; gap: 8px; align-items: baseline; font-size: 0.72rem; }
.msgr-sender { font-weight: 700; }
.msgr-time { color: var(--text-secondary, #6b7280); }
.msgr-edited { color: var(--text-secondary, #6b7280); font-size: 0.7rem; }
.msgr-body { font-size: 0.88rem; white-space: pre-wrap; word-break: break-word; }
.msgr-mention { color: #1d6fb8; font-weight: 700; }
.msgr-deleted { color: var(--text-secondary, #6b7280); }
.msgr-pending { color: #a16207; font-size: 0.7rem; margin-left: 6px; }
.msgr-failed { color: #b42318; font-size: 0.7rem; margin-left: 6px; cursor: pointer; text-decoration: underline; }
.msgr-reply-quote { font-size: 0.72rem; color: var(--text-secondary, #6b7280); border-left: 2px solid var(--border, #e5e7eb); padding-left: 6px; margin-bottom: 4px; }
.msgr-reactions { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.msgr-react-chip { border: 1px solid var(--border, #e5e7eb); background: none; border-radius: 999px; font-size: 0.75rem; padding: 1px 8px; cursor: pointer; }
.msgr-react-mine { border-color: #1d6fb8; background: #e8f0fd; }
.msgr-msg-actions { margin-top: 4px; }
.msgr-reply-btn { border: none; background: none; color: #1d6fb8; font-size: 0.72rem; cursor: pointer; padding: 0; }
.msgr-menu-wrap { position: absolute; top: 6px; right: 8px; }
.msgr-menu-btn { border: none; background: none; cursor: pointer; color: var(--text-secondary, #6b7280); padding: 2px 6px; }
.msgr-menu {
  position: absolute; right: 0; top: 22px; z-index: 1001;
  background: var(--card-bg, #fff); border: 1px solid var(--border, #e5e7eb);
  border-radius: 8px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  display: flex; flex-direction: column; min-width: 110px;
}
/* The hidden attribute must win over display:flex — without this the
   Edit/Delete menu renders OPEN on every sent message. */
.msgr-menu[hidden] { display: none; }
.msgr-menu button { border: none; background: none; text-align: left; padding: 7px 12px; font-size: 0.8rem; cursor: pointer; }
.msgr-menu button:hover { background: var(--bg, #f7f8fa); }
.msgr-composer { border-top: 1px solid var(--border, #e5e7eb); padding: 10px; }
.msgr-input { width: 100%; border: 1px solid var(--border, #e5e7eb); border-radius: 8px; padding: 8px; font: inherit; resize: vertical; }
.msgr-emoji-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.msgr-emoji { border: none; background: none; font-size: 1.15rem; cursor: pointer; padding: 2px 5px; border-radius: 4px; }
.msgr-emoji:hover { background: var(--bg, #f7f8fa); }
.msgr-send { margin-top: 6px; border: none; background: #1d6fb8; color: #fff; border-radius: 6px; padding: 6px 16px; cursor: pointer; font-size: 0.82rem; }
.msgr-reply-banner { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; padding: 6px 12px; background: var(--bg, #f7f8fa); border-top: 1px solid var(--border, #e5e7eb); }
.msgr-reply-cancel { border: none; background: none; cursor: pointer; margin-left: auto; }
.msgr-edit-input { width: 100%; border: 1px solid var(--border, #e5e7eb); border-radius: 6px; padding: 6px; font: inherit; }
.msgr-edit-save { border: none; background: #1d6fb8; color: #fff; border-radius: 6px; padding: 3px 12px; cursor: pointer; margin-top: 4px; margin-right: 6px; font-size: 0.78rem; }
.msgr-edit-cancel { border: 1px solid var(--border, #e5e7eb); background: none; border-radius: 6px; padding: 3px 12px; cursor: pointer; margin-top: 4px; font-size: 0.78rem; }
.msgr-new { padding: 20px; display: flex; flex-direction: column; gap: 8px; max-width: 420px; }
.msgr-recipient { display: flex; gap: 8px; align-items: center; font-size: 0.85rem; padding: 4px 0; }
.msgr-recipient-role { color: var(--text-secondary, #6b7280); font-size: 0.7rem; }
.msgr-group-title { border: 1px solid var(--border, #e5e7eb); border-radius: 6px; padding: 6px; font: inherit; }
.msgr-new-actions { display: flex; gap: 8px; margin-top: 10px; }
.msgr-new-start { border: none; background: #1d6fb8; color: #fff; border-radius: 6px; padding: 6px 16px; cursor: pointer; }
.msgr-new-cancel { border: 1px solid var(--border, #e5e7eb); background: none; border-radius: 6px; padding: 6px 16px; cursor: pointer; }
.msgr-empty { color: var(--text-secondary, #6b7280); font-size: 0.85rem; padding: 24px; text-align: center; }
@media (max-width: var(--msgr-stack, 768px)) {
  .msgr-split { grid-template-columns: 1fr; }
  .msgr-list { display: none; }
  .msgr-root.msgr-single .msgr-list { display: block; }
  .msgr-back { display: inline; }
}

/* ---- COMMS11: contextual reference cards ---- */
.msgr-ref-cards { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.msgr-ref-card {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--border, #e5e7eb); border-radius: 8px;
  padding: 8px 10px; background: var(--card-bg, #fff);
}
.msgr-ref-degraded { opacity: 0.75; }
.msgr-ref-icon { font-size: 1.05rem; }
.msgr-ref-body { flex: 1; min-width: 0; }
.msgr-ref-title { font-size: 0.82rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msgr-card-sub { font-size: 0.72rem; color: var(--text-secondary, #6b7280); }
.msgr-card-chip { font-size: 0.66rem; font-weight: 700; border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.msgr-card-cancelled { background: #fdf0e4; color: #a16207; }
.msgr-card-deleted { background: var(--bg, #f3f4f6); color: var(--text-secondary, #6b7280); }
.msgr-card-locked { background: var(--bg, #f3f4f6); color: var(--text-secondary, #6b7280); }

/* COMMS10 — realtime status chip (small and quiet; never a modal).
 * Anchored to the stable .messages-view container so messaging.js renders
 * never wipe it. States: connected (green), degraded (amber, reconnecting),
 * disconnected (grey, polling). */
.messages-view { position: relative; }
.msgr-live-chip {
  position: absolute; top: 10px; right: 14px; z-index: 6;
  font-size: 0.72rem; line-height: 1; padding: 4px 10px;
  border-radius: 12px; border: 1px solid var(--border, #e5e7eb);
  background: var(--card-bg, #fff); color: var(--text-secondary, #6b7280);
  pointer-events: none; white-space: nowrap;
}
.msgr-live-on { color: #15803d; border-color: #bbf7d0; }
.msgr-live-degraded { color: #b45309; border-color: #fde68a; }
.msgr-live-off { color: var(--text-secondary, #6b7280); }
