/* ========================================
   Activity pills — category selector
   ======================================== */
.activity-pills-wrapper {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
  margin-bottom: var(--space-lg);
  min-width: 0;
  transition: grid-template-rows 0.25s ease-out,
              opacity 0.2s ease-out,
              margin 0.25s ease-out;
}

.activity-pills-wrapper[hidden] {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  margin-bottom: 0;
  pointer-events: none;
}

.activity-pills-wrapper__inner {
  overflow: hidden;
  min-width: 0;
}

.activity-pills {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--space-xs);
  padding: 3px;
  background: var(--surface-2);
  border-radius: var(--radius-md);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.activity-pills::-webkit-scrollbar {
  display: none;
}

.activity-pill {
  padding: var(--space-xs) var(--space-md);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  font-family: inherit;
  color: var(--text-muted);
  background: none;
  border: none;
  border-radius: calc(var(--radius-md) - 2px);
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--transition-fast), background var(--transition-fast);
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.activity-pill svg {
  flex-shrink: 0;
}

.activity-pill:hover {
  color: var(--text);
  background: var(--surface-3);
}

.activity-pill--active {
  color: var(--text);
  background: var(--surface);
  font-weight: var(--font-semibold);
  box-shadow: var(--shadow-sm);
}

.activity-pill--discarded {
  opacity: 0.45;
  text-decoration: line-through;
}

@media (max-width: 768px) {
  .activity-pill {
    min-height: 40px;
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--text-xs);
  }
}
