/* CORE-12 shared Production / Debug mode toggle. Scoped to shared bench only. */
.ept-bench .ept-shell__mode-wrap {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ept-bench .ept-mode-switch {
  align-items: center;
  background: rgba(255, 255, 255, .82);
  border: 1px solid var(--ept-border);
  border-radius: 999px;
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  position: relative;
  z-index: 15;
}

.ept-bench .ept-mode-switch__label {
  color: var(--ept-muted-strong) !important;
  font-size: .74rem;
  font-weight: 900;
  padding: 0 8px;
  white-space: nowrap;
}

.ept-bench .ept-mode-switch .ept-button {
  min-height: 32px !important;
  padding: 6px 12px !important;
}

.ept-bench.ept-mode-production [data-ept-mode-set="production"],
.ept-bench.ept-mode-debug [data-ept-mode-set="debug"] {
  background: var(--ept-primary) !important;
  border-color: var(--ept-primary) !important;
  color: #fff !important;
}

.ept-bench.ept-mode-production .ept-shell {
  padding-bottom: 24px;
}

.ept-bench.ept-mode-production .ept-shell__header,
.ept-bench.ept-mode-production [data-ept-dev-only],
.ept-bench.ept-mode-production [data-ept-dev-inline] {
  display: none !important;
}

.ept-bench.ept-mode-production .ept-production-flow {
  margin-top: 12px;
}

.ept-bench.ept-mode-production .ept-production-flow__intro {
  border-bottom: 0;
  margin-bottom: 12px;
  padding-bottom: 0;
}

.ept-bench.ept-mode-production .ept-production-flow__intro p {
  max-width: 720px;
}

.ept-bench.ept-mode-production .ept-flow-preview-grid {
  gap: 0;
}

.ept-bench.ept-mode-production .ept-flow-template {
  box-shadow: 0 18px 44px rgba(15, 23, 42, .08);
}

.ept-bench.ept-mode-production .ept-flow-template--start,
.ept-bench.ept-mode-production .ept-flow-template--workspace,
.ept-bench.ept-mode-production .ept-flow-template--result {
  margin-top: 0;
}

.ept-bench.ept-mode-production .ept-flow-template[hidden] {
  display: none !important;
}


.ept-bench .ept-mode-notice {
  background: #f8fafc;
  border: 1px solid var(--ept-border);
  border-radius: 14px;
  color: var(--ept-muted) !important;
  font-size: .8rem;
  margin-top: 10px;
  padding: 9px 11px;
}

.ept-bench.ept-mode-production .ept-mode-notice {
  background: var(--ept-success-bg);
  border-color: var(--ept-success-border);
  color: var(--ept-success-text) !important;
}

@media (max-width: 760px) {
  .ept-bench .ept-shell__mode-wrap,
  .ept-bench .ept-mode-switch {
    align-items: stretch;
    width: 100%;
  }

  .ept-bench .ept-mode-switch {
    border-radius: 18px;
    flex-wrap: wrap;
  }

  .ept-bench .ept-mode-switch .ept-button {
    flex: 1 1 auto;
  }
}
