.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: 3px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.segmented__item {
  display: inline-flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  min-height: var(--control-height-sm);
  padding: var(--space-6) var(--space-14);
  font-size: var(--font-size-small);
  font-weight: 500;
  line-height: var(--line-height-control);
  color: var(--text-2);
  border-radius: var(--radius);
}

.segmented__item:hover {
  color: var(--text);
  text-decoration: none;
}

.segmented__item--selected {
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow);
}

@media (width >= 720px) {
  .segmented {
    display: inline-flex;
  }

  .segmented__item {
    flex: 0 0 auto;
  }
}
