/* Reused from packages/design-system/src/components/Tab/Tab.css; layer flattened. */
.tab {
  box-sizing: border-box;
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: max-content;
  border: 0;
  border-radius: var(--radius-100);
  background: transparent;
  color: var(--color-text-secondary);
  font-family: var(--font-sans);
  font-weight: 400;
  white-space: nowrap;
  cursor: pointer;
}

.tab--sm {
  min-height: 26px;
  padding: var(--space-100) var(--space-200);
  font-size: 12px;
  line-height: 18px;
}

.tab--md {
  min-height: 36px;
  padding: var(--space-200) var(--space-300);
  font-size: 14px;
  line-height: 20px;
}

.tab:hover:not(:disabled):not(.is-selected),
.tab.is-hovered:not(:disabled):not(.is-selected) {
  background: var(--color-bg-hover);
}

.tab.is-selected {
  background: var(--color-bg-surface);
  color: var(--color-text-primary);
  box-shadow: var(--elevation-subtle);
}

.tab:disabled {
  cursor: not-allowed;
}

.tab:focus-visible {
  outline: var(--stroke-focus-ring) solid var(--color-border-strong);
  outline-offset: calc(var(--stroke-focus-ring) * -1);
}
