/* --- iOS segmented control --- */
.segmented {
  display: flex;
  gap: 2px;
  padding: 2px;
  background: var(--bg-tag);
  border-radius: 9999px;
}
.segmented-item {
  flex: 1 1 0%;
  min-width: 0;
  border: none;
  background: transparent;
  border-radius: 9999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: all 0.2s var(--ease-apple, cubic-bezier(0.28, 0.11, 0.32, 1));
}
.segmented-item:hover {
  color: var(--text-primary);
}
.segmented-item.active {
  background: var(--bg-view-active);
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 0.5px 1px rgba(0, 0, 0, 0.06);
}
