.tab-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xl);
  background: linear-gradient(175deg, var(--glass-a) 0%, var(--glass-b) 100%);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  overflow: hidden;
}

.tab-stage::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0));
  pointer-events: none;
  z-index: 3;
}

.tab-pane {
  position: absolute;
  inset: 0;
  padding: clamp(16px, 2.6vw, 24px);
  overflow-y: auto;
  opacity: 0;
  transform: translateY(14px) scale(0.995);
  pointer-events: none;
  transition: opacity var(--ease), transform var(--ease);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.tab-pane.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.tab-pane[data-pane="nova"],
.tab-pane[data-pane="nova"].is-active {
  transform: none;
}

.tab-pane[data-pane="access"],
.tab-pane[data-pane="access"].is-active {
  transform: none;
}

.tab-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.tab-header h1 {
  margin: 0;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(1.45rem, 3.8vw, 2.15rem);
  letter-spacing: -0.02em;
  line-height: 1.04;
}

.tab-header p {
  margin: 6px 0 0;
  color: rgba(224, 229, 236, 0.74);
  font-size: 0.85rem;
  line-height: 1.4;
  max-width: 52ch;
  text-wrap: pretty;
}

.header-badge {
  flex: 0 0 auto;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.67rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-1);
  background: rgba(10, 11, 13, 0.66);
  font-weight: 630;
  white-space: nowrap;
}

.cards {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
}

.account-settings {
  display: grid;
  gap: 8px;
  align-content: start;
}

.account-settings .tab-header {
  display: none;
}

.tab-pane[data-pane="profile"].is-workspace-active {
  overflow: hidden;
}

.tab-pane[data-pane="profile"].is-workspace-active > .cards {
  min-height: 100%;
  height: 100%;
  align-content: stretch;
}

.tab-pane[data-pane="profile"].is-workspace-active > .cards > .profile-shell,
.tab-pane[data-pane="profile"].is-workspace-active > .cards > .profile-metrics-strip {
  display: none !important;
}

.tab-pane[data-pane="profile"].is-workspace-active .account-settings {
  min-height: 100%;
  height: 100%;
  align-content: stretch;
}

.tab-pane[data-pane="profile"].is-workspace-active .account-settings > .tab-header {
  display: none;
}

.tab-pane[data-pane="profile"].is-workspace-active .settings-shell {
  min-height: 100%;
  height: 100%;
  align-content: stretch;
}

.tab-pane[data-pane="profile"].is-workspace-active .settings-vendor-workspace {
  min-height: 100%;
  grid-template-rows: auto minmax(0, 1fr);
}

.tab-pane[data-pane="profile"].is-workspace-active .settings-vendor-workspace [data-settings-vendor-content],
.tab-pane[data-pane="profile"].is-workspace-active .settings-vendor-workspace [data-settings-catalog-content] {
  min-height: 0;
  overflow-y: auto;
  align-content: start;
  overscroll-behavior: contain;
  padding-right: 2px;
}

.card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(18, 20, 24, 0.94), rgba(12, 14, 18, 0.92));
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(8px) saturate(108%);
  -webkit-backdrop-filter: blur(8px) saturate(108%);
  padding: 14px;
  display: grid;
  gap: 8px;
  min-height: 136px;
  align-content: start;
}
