/**
 * Pixel Forge segmented mode tabs
 * Canonical look from edit.html (角色编辑换装)
 */
.ps-tabs {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin: 14px 0 20px;
  padding: 3px;
  border: 1px solid #e8e1d8;
  border-radius: 10px;
  background: #f4efe8;
}

.ps-tab {
  position: relative;
  padding: 7px 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ps-muted, #766f66);
  font: 600 13px/1.2 inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.ps-tab:hover {
  color: var(--ps-text, #24211e);
}

.ps-tab:focus-visible {
  outline: 2px solid rgba(201, 99, 63, 0.45);
  outline-offset: 2px;
}

.ps-tab.active,
.ps-tab:has(input:checked) {
  color: var(--ps-accent, #c9633f);
  background: #fff;
  box-shadow: 0 1px 2px rgba(52, 39, 26, 0.08);
}

.ps-tab.active::after {
  content: none;
}

.ps-tab input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ps-tab-panel {
  display: none;
}

.ps-tab-panel.active {
  display: block;
}
