/* ════════════════════════════════════════════════════════════════════════
   DS View Switcher — segmented control [A|B|C]. ONE source of truth for tabbed
   views (replaces the divergent Leads board/index switchers). Macro:
   ds_view_switcher. Tokens only. Horizontal-scroll + ≥44px touch on mobile.
   ════════════════════════════════════════════════════════════════════════ */
.ds-switcher {
  display: flex;
  gap: var(--sp-1);
  background: var(--accent-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 3px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.ds-switcher-tab {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 38px;
  padding: 0 var(--sp-4);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background .12s ease, color .12s ease;
}
.ds-switcher-tab:hover { color: var(--text); }
.ds-switcher-tab.is-active { background: var(--card); color: var(--text); box-shadow: var(--shadow-sm); }
.ds-switcher-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.ds-switcher-count {
  font-size: var(--text-2xs);
  font-weight: 700;
  background: var(--border);
  color: var(--text);
  border-radius: var(--radius-full);
  padding: 1px 7px;
  line-height: 1.4;
}
.ds-switcher-tab.is-active .ds-switcher-count { background: var(--accent-bg); }

@media (max-width: 640px) {
  .ds-switcher-tab { padding: 0 var(--sp-3); min-height: 44px; }
}
