.tab-buttons {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 5px;
  -webkit-overflow-scrolling: touch;
}

.tab-buttons button {
  flex-shrink: 0;
  padding: 6px 12px;
  border: none;
  background: var(--color-panel-tab-inactive);
  color: var(--color-panel-tab-text);
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.2s ease, color 0.2s ease;
}

.tab-buttons button.active {
  background: var(--color-panel-tab-active);
  color: white;
}

.tab-content {
  overflow: hidden;
  will-change: opacity, transform;
  transition: opacity 0.2s ease, max-height 0.3s ease;
}

.tab-content label {
  display: block;
  margin-bottom: 8px;
}