body {
  margin: 0;
  background: #f1f5f9;
  color: #0f172a;
}

.preview-topbar {
  background: #0f172a;
  color: #ffffff;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.preview-topbar__brand strong {
  display: block;
  font-size: 1rem;
}

.preview-topbar__brand small {
  color: #94a3b8;
  font-size: 0.82rem;
}

.preview-topbar__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.preview-workspace {
  width: min(1400px, 96%);
  margin: 18px auto 32px;
  display: grid;
  grid-template-columns: 440px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.wizard-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: calc(100vh - 104px);
  overflow-y: auto;
  padding-right: 4px;
}

.wizard-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
}

.wizard-card h2 {
  margin: 0 0 12px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-badge {
  background: #2563eb;
  color: #ffffff;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
}

.template-picker {
  display: grid;
  gap: 8px;
}

.template-option {
  text-align: left;
  width: 100%;
  border: 2px solid #e2e8f0;
  background: #ffffff;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.template-option:hover {
  border-color: #93c5fd;
}

.template-option.is-active {
  border-color: #2563eb;
  background: #eff6ff;
}

.template-option strong {
  display: block;
  font-size: 0.94rem;
  color: #0f172a;
}

.template-option small {
  color: #64748b;
  font-size: 0.8rem;
}

.feature-toggle-list {
  display: grid;
  gap: 10px;
}

.feature-toggle {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px;
  background: #f8fafc;
}

.feature-toggle__head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}

.feature-toggle__head input {
  margin-top: 3px;
}

.feature-toggle__head strong {
  display: block;
  font-size: 0.9rem;
}

.feature-toggle__head small {
  display: block;
  color: #64748b;
  font-size: 0.78rem;
}

.feature-toggle__extra {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #cbd5e1;
}

.summary-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.84rem;
  white-space: pre-wrap;
  color: #1e293b;
  margin-bottom: 10px;
}

.cta-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Sisi Kanan: Live Browser Preview */
.stage-column {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 104px);
  position: sticky;
  top: 18px;
}

.stage-toolbar {
  background: #e2e8f0;
  padding: 8px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.stage-url {
  background: #ffffff;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.8rem;
  color: #475569;
  flex: 1;
  min-width: 160px;
}

.device-switch {
  display: flex;
  gap: 4px;
}

.device-switch button.is-active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.stage-viewport {
  flex: 1;
  background: #cbd5e1;
  padding: 12px;
  display: flex;
  justify-content: center;
  overflow: auto;
}

.stage-frame {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.16);
  transition: width 0.2s ease;
}

.stage-frame.is-mobile {
  width: 390px;
  max-width: 100%;
  border: 8px solid #0f172a;
  border-radius: 24px;
}

@media (max-width: 980px) {
  .preview-workspace {
    grid-template-columns: 1fr;
  }
  .wizard-column {
    max-height: none;
    overflow: visible;
  }
  .stage-column {
    height: 75vh;
    position: static;
  }
}
