.production-section-header {
  display: block;
}

.production-section-nav {
  width: 100%;
  min-width: 0;
  justify-content: stretch;
}

.production-mode-switch {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(max-content, 1fr);
  width: 100%;
  max-width: 100%;
  gap: 4px;
  padding: 4px;
  overflow-x: auto;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-soft) 88%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, white 4%, transparent);
  scrollbar-width: thin;
}

.production-mode-switch .mode-chip {
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.1;
  white-space: nowrap;
}

.production-mode-switch .mode-chip:hover {
  background: color-mix(in srgb, var(--text) 5%, var(--surface-soft));
  color: var(--text);
}

.production-mode-switch .mode-chip.active {
  border: 1px solid color-mix(in srgb, var(--accent) 36%, var(--stroke));
  background: var(--chip-active-bg);
  color: var(--chip-active-text);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, white 5%, transparent),
    0 7px 16px rgba(3, 12, 20, 0.12);
}

body[data-theme="light-warm"] .production-mode-switch .mode-chip {
  background: transparent;
  box-shadow: none;
}

body[data-theme="light-warm"] .production-mode-switch .mode-chip.active {
  background: linear-gradient(135deg, rgba(14, 157, 136, 0.24), rgba(197, 139, 46, 0.24));
  box-shadow:
    inset 0 0 0 1px rgba(120, 97, 74, 0.1),
    0 8px 18px rgba(104, 78, 49, 0.1);
}

@media (max-width: 760px) {
  .production-mode-switch .mode-chip {
    min-height: 40px;
    padding: 7px 10px;
    font-size: 12px;
  }
}
