.skin-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 280px;
  max-height: 520px;
  overflow-y: auto;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  padding: var(--space-3);
  z-index: 1000;
  animation: skin-panel-in 0.2s var(--ease-out-expo);
}

@keyframes skin-panel-in {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.skin-panel::-webkit-scrollbar { width: 3px; }

.skin-panel__header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: var(--space-3);
}

.skin-panel__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.skin-panel__group {
  padding: var(--space-2);
  border-radius: var(--border-radius-md);
  transition: background var(--duration-fast);
}

.skin-panel__group:hover {
  background: rgba(255, 255, 255, 0.03);
}

.skin-panel__label {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.skin-panel__label-text {
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-2);
}

.skin-panel__divider {
  height: 1px;
  background: var(--glass-border);
  margin: var(--space-1) 0;
}

/* 徽标 section：开关行 + 文字输入 */
.skin-panel__switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.skin-panel__switch-row .skin-panel__label-text {
  margin-bottom: 0;
}

.skin-panel__switch {
  width: 16px;
  height: 16px;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.skin-panel__badge-fields {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.skin-panel__text-input {
  width: 100%;
  padding: var(--space-1) var(--space-2);
  background: var(--color-bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  color: var(--color-text-primary);
  font-size: var(--text-xs);
  font-family: inherit;
  outline: none;
  transition: border-color var(--duration-fast);
}

.skin-panel__text-input:focus {
  border-color: var(--color-accent);
}

.skin-panel__color-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.skin-panel__color-input {
  -webkit-appearance: none;
  appearance: none;
  width: 36px;
  height: 36px;
  border: 2px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  cursor: pointer;
  padding: 2px;
  background: var(--color-bg-secondary);
  transition: border-color var(--duration-fast);
}

.skin-panel__color-input:hover {
  border-color: var(--glass-border-hover);
}

.skin-panel__color-input::-webkit-color-swatch-wrapper {
  padding: 0;
}

.skin-panel__color-input::-webkit-color-swatch {
  border: none;
  border-radius: var(--border-radius-xs);
}

.skin-panel__color-value {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
}

/* 配置按钮（打开二级面板） */
.skin-panel__config-btn {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  margin-top: var(--space-2);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  color: var(--color-text-secondary);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  font-family: inherit;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out-expo);
  text-align: center;
}

.skin-panel__config-btn:hover {
  background: var(--color-accent-subtle);
  border-color: var(--color-accent);
  color: var(--color-text-primary);
}

/* disabled 底纹按钮 */
.skin-panel__texture-btn--disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}
