.view-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-switch);
  background: var(--panel-2);
}

.view-switch__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: calc(var(--radius-switch) - 3px);
  color: var(--muted);
  font-size: var(--text-switch-size);
  font-weight: var(--text-nav-weight);
  line-height: var(--text-nav-line);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s, color .15s;
}

.view-switch__item:hover { color: var(--text); }

.view-switch__item.is-current-link {
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow-header);
}

.view-switch__icon {
  display: block;
  width: 18px;
  height: 18px;
}

@media (max-width: 767px) {
  .view-switch { flex: 1; }
  .view-switch__item { flex: 1; justify-content: center; }
}
