/* ============================================================
   Inbox + Leads tabs (crm.js). Uses the app's theme tokens only,
   so dark and light mode both work. Everything is prefixed crm-
   so nothing leaks into other tabs. No !important, no uppercase.
   ============================================================ */

.crm-tab-count {
  display: inline-block;
  min-width: 1.25rem;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--amber);
  color: var(--bg);
  font-size: 0.6875rem;
  line-height: 1.1rem;
  text-align: center;
}
.crm-tab-count:empty { display: none; }

.crm-muted { color: var(--muted); }
.crm-good { color: var(--green); }
.crm-warn { color: var(--amber); }
.crm-bad { color: var(--red); }
.crm-small { font-size: 0.75rem; }
.crm-xs { font-size: 0.6875rem; }
.crm-hidden { display: none; }
.crm-nowrap { white-space: nowrap; }
.crm-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crm-grow { flex: 1 1 auto; min-width: 0; }
.crm-spacer { flex: 1 1 auto; }

/* Buttons that aren't the main action */
button.crm-quiet, a.crm-quiet {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.75rem;
  padding: 7px 12px;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
}
button.crm-quiet:hover, a.crm-quiet:hover { background: var(--panel); border-color: var(--accent); }
button.crm-quiet:disabled { color: var(--muted); border-color: var(--border); cursor: default; background: transparent; }
button.crm-small-btn { padding: 4px 9px; font-size: 0.6875rem; }
button.crm-danger { color: var(--red); }
button.crm-danger:hover { border-color: var(--red); }
button.crm-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}
button.crm-link:hover { background: none; text-decoration: underline; }

.crm-pill {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1px 8px;
  font-size: 0.6875rem;
  white-space: nowrap;
  color: var(--muted);
}
.crm-pill.le { color: var(--amber); border-color: rgba(210, 153, 34, 0.55); }
.crm-pill.fed { color: var(--accent); border-color: rgba(76, 139, 245, 0.55); }
.crm-pill.dealer { color: var(--green); border-color: rgba(63, 185, 80, 0.5); }
.crm-pill.cat { color: var(--text); }
.crm-pill.tag { color: var(--text); background: var(--well); }

/* Ticket status, one color each */
.crm-status { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 600; }
.crm-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--muted); }
.crm-st-new .crm-dot { background: var(--amber); }
.crm-st-open .crm-dot { background: var(--red); }
.crm-st-pending .crm-dot { background: var(--accent); }
.crm-st-on_hold .crm-dot { background: var(--text); }
.crm-st-solved .crm-dot, .crm-st-closed .crm-dot { background: var(--green); }

/* View chips (Inbox views, Leads views) */
.crm-views { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
button.crm-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 16px;
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 600;
}
button.crm-chip:hover { color: var(--text); border-color: var(--accent); background: var(--panel); }
button.crm-chip[aria-pressed="true"] { background: var(--selected); color: var(--text); border-color: var(--accent); }
.crm-chip-n { font-variant-numeric: tabular-nums; color: var(--text); }

/* ---------------- Inbox: three panes ---------------- */
.crm-inbox-grid {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr) minmax(260px, 330px);
  gap: 12px;
  align-items: start;
}
@media (max-width: 1250px) {
  .crm-inbox-grid { grid-template-columns: minmax(260px, 330px) minmax(0, 1fr); }
  .crm-side { grid-column: 2; }
}
@media (max-width: 820px) {
  .crm-inbox-grid { grid-template-columns: minmax(0, 1fr); }
  .crm-side { grid-column: auto; }
}
.crm-pane {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  min-width: 0;
}
.crm-tlist { max-height: calc(100vh - 230px); overflow-y: auto; }
@media (max-width: 820px) { .crm-tlist { max-height: 46vh; } }
.crm-tlist-empty { padding: 24px 16px; color: var(--muted); font-size: 0.8125rem; text-align: center; }
a.crm-titem {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--row-line);
  color: var(--text);
  text-decoration: none;
}
a.crm-titem:last-child { border-bottom: 0; }
a.crm-titem:hover { background: var(--row-hover); }
a.crm-titem[aria-current="true"] { background: var(--selected); box-shadow: inset 3px 0 0 var(--accent); }
a.crm-titem:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.crm-titem-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.crm-titem-who { font-weight: 600; font-size: 0.8125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crm-titem-when { margin-left: auto; color: var(--muted); font-size: 0.6875rem; white-space: nowrap; }
.crm-titem-subj { font-size: 0.8125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crm-titem-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 0.6875rem; color: var(--muted); }
.crm-titem-urgent { color: var(--red); font-weight: 600; }

.crm-conv { display: flex; flex-direction: column; min-height: 420px; }
.crm-conv-empty { padding: 48px 24px; color: var(--muted); text-align: center; font-size: 0.8125rem; }
.crm-conv-head { padding: 14px 16px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.crm-conv-title { margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.crm-conv-sub { color: var(--muted); font-size: 0.75rem; }
.crm-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.crm-field { display: flex; flex-direction: column; gap: 4px; font-size: var(--label-size); color: var(--muted); min-width: 0; }
.crm-field select, .crm-field input[type="text"], .crm-field input[type="date"],
.crm-field input[type="email"], .crm-field input[type="tel"], .crm-field input[type="number"] { font-size: 0.8125rem; padding: 6px 8px; }
.crm-field.grow { flex: 1 1 200px; }
.crm-controls select { max-width: 190px; }

input[type="email"].crm-input, input[type="tel"].crm-input, input[type="number"].crm-input,
.crm-field input[type="email"], .crm-field input[type="tel"], .crm-field input[type="number"] {
  background: var(--well);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-mono);
  border-radius: 4px;
  outline: none;
}
.crm-field input[type="email"]:focus, .crm-field input[type="tel"]:focus, .crm-field input[type="number"]:focus { border-color: var(--accent); }

.crm-textarea, .crm-field textarea {
  width: 100%;
  background: var(--well);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.5;
  padding: 8px 10px;
  border-radius: 4px;
  resize: vertical;
  outline: none;
}
.crm-textarea:focus, .crm-field textarea:focus { border-color: var(--accent); }

.crm-msgs { padding: 14px 16px; display: flex; flex-direction: column; gap: 14px; flex: 1 1 auto; }
.crm-msg { display: flex; gap: 10px; min-width: 0; }
.crm-avatar {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--avatar-bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 600;
}
.crm-msg.out .crm-avatar { border-color: var(--accent); color: var(--accent); }
.crm-msg.note .crm-avatar { border-color: var(--amber); color: var(--amber); }
.crm-msg-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.crm-msg-head { font-size: 0.75rem; color: var(--muted); overflow-wrap: anywhere; }
.crm-msg-head strong { color: var(--text); font-weight: 600; }
.crm-msg-body {
  background: var(--well);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 0.8125rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.crm-msg.out .crm-msg-body { border-color: rgba(76, 139, 245, 0.45); }
.crm-msg.note .crm-msg-body { border-style: dashed; border-color: rgba(210, 153, 34, 0.6); background: rgba(210, 153, 34, 0.06); }
.crm-msg-body details { margin-top: 8px; }
.crm-msg-body summary { cursor: pointer; color: var(--muted); font-size: 0.75rem; }
.crm-msg-attach { font-size: 0.6875rem; color: var(--muted); }
.crm-ai-note {
  border: 1px dashed rgba(210, 153, 34, 0.6);
  background: rgba(210, 153, 34, 0.06);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 0.75rem;
  line-height: 1.5;
}
.crm-ai-note strong { color: var(--amber); }

.crm-composer { border-top: 1px solid var(--border); padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 10px; }
.crm-seg { display: inline-flex; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.crm-seg button {
  background: transparent;
  border: 0;
  border-left: 1px solid var(--border);
  border-radius: 0;
  color: var(--muted);
  padding: 6px 12px;
  font-size: 0.75rem;
}
.crm-seg button:first-child { border-left: 0; }
.crm-seg button:hover { background: var(--row-hover); color: var(--text); }
.crm-seg button[aria-pressed="true"] { background: var(--selected); color: var(--text); }
.crm-composer.note .crm-textarea { border-style: dashed; border-color: rgba(210, 153, 34, 0.6); }
.crm-block-note {
  font-size: 0.75rem;
  color: var(--amber);
  border: 1px solid rgba(210, 153, 34, 0.45);
  border-radius: 4px;
  padding: 8px 10px;
}
.crm-composer-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.crm-composer-foot .status-line { margin: 0 auto 0 0; flex: 1 1 200px; }

.crm-side { display: flex; flex-direction: column; gap: 12px; }
.crm-card { background: var(--panel); border: 1px solid var(--border); border-radius: 6px; padding: 12px 14px; }
.crm-card-title {
  margin: 0 0 8px;
  font-size: var(--label-size);
  color: var(--muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.crm-card-title .crm-spacer + * { font-weight: 600; }
.crm-card-name { font-weight: 600; font-size: 0.875rem; }
.crm-kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 5px 12px; font-size: 0.75rem; }
.crm-kv dt { color: var(--muted); }
.crm-kv dd { margin: 0; overflow-wrap: anywhere; }
.crm-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 0.75rem; }
.crm-list li { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.crm-list .crm-when { color: var(--muted); white-space: nowrap; flex: none; }
.crm-sku {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.crm-sku + .crm-sku { margin-top: 6px; }
.crm-sku-code { color: var(--amber); font-weight: 600; }
.crm-sku.unmatched { border-style: dashed; color: var(--muted); }
.crm-sku-levels { display: flex; flex-wrap: wrap; gap: 10px; font-variant-numeric: tabular-nums; }
.crm-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
button.crm-tag-x {
  background: none;
  border: 0;
  padding: 0 0 0 4px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1;
}
button.crm-tag-x:hover { color: var(--red); background: none; }
.crm-tag-input { width: 140px; font-size: 0.75rem; padding: 4px 6px; }

/* ---------------- Leads ---------------- */
.crm-leads-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.crm-leads-top h2 { margin: 0; font-size: 1rem; }
.crm-stage-tiles {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 12px;
}
@media (max-width: 800px) { .crm-stage-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
button.crm-stage-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  background: var(--panel);
  color: var(--muted);
  border: 0;
  border-left: 1px solid var(--border);
  border-radius: 0;
  padding: 10px 14px;
  font-weight: 400;
  text-align: left;
}
button.crm-stage-tile:first-child { border-left: 0; }
button.crm-stage-tile:hover { background: var(--row-hover); color: var(--text); }
button.crm-stage-tile[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.crm-stage-tile-n { font-size: 1.25rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); }
button.crm-stage-tile[aria-pressed="true"] .crm-stage-tile-n { color: var(--on-accent); }
.crm-lead-table td.wrap { white-space: normal; min-width: 180px; max-width: 320px; }
.crm-overdue { color: var(--red); font-weight: 600; }
.crm-due-today { color: var(--amber); font-weight: 600; }

.crm-form { margin-bottom: 16px; }
.crm-form-grid { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.crm-form-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.crm-form-foot .status-line { margin: 0; flex: 1 1 200px; }

/* Record pages (person, account) */
.crm-rec-head {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.crm-rec-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--avatar-bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex: none;
}
.crm-rec-avatar.acct { border-radius: 8px; }
.crm-rec-name { margin: 0; font-size: 1.125rem; font-weight: 600; }
.crm-rec-sub { color: var(--muted); font-size: 0.8125rem; margin-top: 2px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crm-rec-actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; }

.crm-stagebar { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; margin-bottom: 12px; }
@media (max-width: 700px) { .crm-stagebar { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
button.crm-stage {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 3px;
  padding: 8px 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
}
button.crm-stage:hover:not(:disabled) { border-color: var(--accent); color: var(--text); background: var(--panel); }
button.crm-stage.done { background: rgba(63, 185, 80, 0.14); border-color: rgba(63, 185, 80, 0.45); color: var(--green); }
button.crm-stage.current { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
button.crm-stage.lost.current { background: var(--red); border-color: var(--red); }
button.crm-stage:disabled { cursor: default; }
.crm-lost-row { margin: -4px 0 12px; }

.crm-rec-grid {
  display: grid;
  grid-template-columns: minmax(250px, 300px) minmax(0, 1fr) minmax(260px, 320px);
  gap: 12px;
  align-items: start;
}
@media (max-width: 1250px) {
  .crm-rec-grid { grid-template-columns: minmax(240px, 290px) minmax(0, 1fr); }
  .crm-rec-grid > .crm-rec-right { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 820px) { .crm-rec-grid { grid-template-columns: minmax(0, 1fr); } }
.crm-rec-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.crm-rec-right { gap: 12px; }

.crm-logbox { display: flex; flex-direction: column; gap: 10px; }
.crm-timeline { list-style: none; margin: 0; padding: 0; }
.crm-timeline li {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--row-line);
  font-size: 0.8125rem;
}
.crm-timeline li:first-child { border-top: 0; }
.crm-tl-when { color: var(--muted); font-size: 0.6875rem; line-height: 1.5; }
.crm-tl-what { min-width: 0; }
.crm-tl-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.crm-tl-head strong { font-weight: 600; }
.crm-tl-body { margin-top: 4px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); line-height: 1.5; }
.crm-tl-body.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.crm-tl-type { font-size: 0.6875rem; color: var(--muted); }
.crm-tl-private { color: var(--muted); font-style: italic; }
@media (max-width: 560px) { .crm-timeline li { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

.crm-edit-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.crm-edit-grid .crm-field input, .crm-edit-grid .crm-field select { width: 100%; }
.crm-check { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--text); }

/* Account / contact pickers */
.crm-picker { position: relative; }
.crm-picker-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 30;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 12px 32px var(--shadow);
  max-height: 260px;
  overflow-y: auto;
}
.crm-picker-list[hidden] { display: none; }
button.crm-picker-opt {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--row-line);
  border-radius: 0;
  color: var(--text);
  font-weight: 400;
  padding: 8px 10px;
  font-size: 0.75rem;
}
button.crm-picker-opt:hover, button.crm-picker-opt:focus-visible { background: var(--selected); }
.crm-picker-opt .crm-muted { display: block; font-size: 0.6875rem; }

/* ---------------- Network ---------------- */
.crm-net-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 320px); gap: 12px; align-items: start; }
@media (max-width: 1000px) { .crm-net-grid { grid-template-columns: minmax(0, 1fr); } }
.crm-net-canvas { background: var(--well); border: 1px solid var(--border); border-radius: 6px; overflow: auto; }
.crm-net-canvas svg { display: block; width: 100%; height: auto; min-width: 640px; }
.crm-net-edge { stroke: var(--border); stroke-width: 1.5; fill: none; }
.crm-net-edge.corr { stroke-dasharray: 5 4; }
.crm-net-edge.aff { stroke: var(--amber); stroke-opacity: 0.7; }
.crm-net-elabel {
  fill: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  paint-order: stroke;
  stroke: var(--well);
  stroke-width: 4px;
}
.crm-net-node rect { fill: var(--panel); stroke: var(--border); stroke-width: 1.5; }
.crm-net-node.account rect { stroke: var(--amber); }
.crm-net-node.account.customer rect { stroke: var(--green); }
.crm-net-node.contact rect { stroke: var(--accent); }
.crm-net-node.event rect { stroke: var(--muted); stroke-dasharray: 4 3; }
.crm-net-node.center rect { fill: var(--selected); stroke-width: 2.5; }
.crm-net-node text { fill: var(--text); font-family: var(--font-mono); font-size: 12px; }
.crm-net-node text.sub { fill: var(--muted); font-size: 10px; }
.crm-net-node a { cursor: pointer; }
.crm-net-node a:hover rect, .crm-net-node a:focus rect { stroke: var(--text); }
.crm-net-node a:focus { outline: none; }
.crm-legend { display: flex; flex-direction: column; gap: 6px; font-size: 0.75rem; }
.crm-legend span.sw { display: inline-block; width: 22px; height: 12px; border: 1.5px solid var(--border); border-radius: 3px; vertical-align: middle; margin-right: 8px; background: var(--panel); }
.crm-legend span.sw.acct { border-color: var(--amber); }
.crm-legend span.sw.cust { border-color: var(--green); }
.crm-legend span.sw.person { border-color: var(--accent); border-radius: 8px; }
.crm-legend span.sw.event { border-style: dashed; }
.crm-legend span.sw.line { height: 0; border-width: 1.5px 0 0; border-radius: 0; background: none; }
.crm-legend span.sw.line.dash { border-top-style: dashed; }
.crm-legend span.sw.line.aff { border-top-color: var(--amber); }
.crm-path { font-size: 0.75rem; line-height: 1.5; padding: 8px 0; border-top: 1px solid var(--row-line); }
.crm-path:first-of-type { border-top: 0; }
.crm-path-steps { color: var(--muted); }

/* ---------------- Settings ---------------- */
.crm-settings { display: flex; flex-direction: column; gap: 16px; }
.crm-settings h3 { margin: 0 0 4px; font-size: 0.9375rem; }
.crm-settings p.crm-help { margin: 0 0 10px; font-size: 0.75rem; color: var(--muted); line-height: 1.5; }
.crm-members { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 16px; margin: 8px 0; }
.crm-members label { display: flex; gap: 8px; align-items: center; font-size: 0.75rem; }
.crm-settings td.wrap { white-space: normal; max-width: 360px; }
.crm-settings tr.inactive td { opacity: 0.55; }
.crm-sub-panel { background: var(--well); border: 1px solid var(--border); border-radius: 6px; padding: 12px; margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
  a.crm-titem, button.crm-chip { transition: none; }
}

/* Visually hidden, still read by screen readers */
.crm-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.crm-members .crm-row { gap: 12px; }

/* [hidden] must win over the display rules above (ID + attribute beats a class). */
#tab-inbox [hidden], #tab-leads [hidden] { display: none; }
.crm-conv-head .status-line { margin: 0; }
.crm-conv-head .status-line:empty { display: none; }
