/* SDD Wizard Enterprise — chat UI (standalone + embedded in admin) */
body.wizard-enterprise-page {
  font-family: 'Inter', system-ui, sans-serif;
  background: #070a10;
  color: #e8eaed;
  min-height: 100vh;
  margin: 0;
}

.wizard-ent-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(13, 17, 26, 0.95);
  position: sticky;
  top: 0;
  z-index: 10;
}
.wizard-ent-topbar a {
  color: #00bcd4;
  font-size: 0.85rem;
  text-decoration: none;
}
.wizard-ent-topbar a:hover { text-decoration: underline; }
.wizard-ent-topbar-title { font-size: 0.9rem; font-weight: 600; }

.wizard-ent-container {
  max-width: 880px;
  margin: 0 auto;
  padding: 1rem clamp(1rem, 3vw, 1.5rem) 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 52px);
  box-sizing: border-box;
}

#panel-wizard-chat {
  padding: 0 !important;
  overflow: hidden;
}
#panel-wizard-chat .wizard-ent-container {
  max-width: none;
  height: calc(100vh - var(--header-h) - 2px);
  min-height: 0;
  margin: 0;
  padding: 0.75rem 1rem 1rem;
}

.wizard-ent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  margin-bottom: 12px;
  flex-shrink: 0;
}
.wizard-ent-brand { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wizard-ent-logo-img {
  height: 28px;
  width: auto;
  max-width: min(160px, 40vw);
  object-fit: contain;
}
.wizard-ent-logo { font-weight: 700; font-size: 1.05rem; color: #00bcd4; }
.wizard-ent-title { font-size: 0.85rem; color: #8b92a0; }
.wizard-ent-topbar-logo {
  height: 22px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  margin: 0 0.5rem;
}

.wizard-ent-progress { margin-bottom: 10px; flex-shrink: 0; }
.wizard-ent-progress-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}
.wizard-ent-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00bcd4, #0097a7);
  border-radius: 3px;
  transition: width 0.35s ease;
}
.wizard-ent-progress-label {
  font-size: 0.75rem;
  color: #8b92a0;
  margin-top: 4px;
  text-align: right;
}

.wizard-ent-chat {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}

.wizard-ent-msg {
  max-width: min(85%, 520px);
  padding: 12px 16px;
  border-radius: 14px;
  line-height: 1.5;
  font-size: 0.9rem;
  animation: wizardEntFadeIn 0.25s ease;
}
@keyframes wizardEntFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.wizard-ent-msg-bot {
  align-self: flex-start;
  background: rgba(0, 188, 212, 0.1);
  border: 1px solid rgba(0, 188, 212, 0.22);
  border-bottom-left-radius: 4px;
}
.wizard-ent-msg-user {
  align-self: flex-end;
  background: rgba(0, 188, 212, 0.22);
  border: 1px solid rgba(0, 188, 212, 0.35);
  border-bottom-right-radius: 4px;
}

.wizard-ent-input {
  flex-shrink: 0;
  padding: 12px 0 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.wizard-ent-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}
.wizard-ent-option-card {
  padding: 10px 16px;
  background: #141a26;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #e8eaed;
  cursor: pointer;
  font-size: 0.85rem;
  transition: border-color 0.15s, background 0.15s;
  text-transform: capitalize;
}
.wizard-ent-option-card:hover {
  background: rgba(0, 188, 212, 0.12);
  border-color: #00bcd4;
}
.wizard-ent-option-no:hover {
  background: rgba(231, 76, 60, 0.15);
  border-color: #e74c3c;
}

.wizard-ent-multi {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  max-height: min(42vh, 360px);
  overflow-y: auto;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
}
.wizard-ent-check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.88rem;
  text-transform: capitalize;
  width: 100%;
  box-sizing: border-box;
}
.wizard-ent-check-label:hover { background: rgba(255, 255, 255, 0.04); }
.wizard-ent-check-label input[type='checkbox'] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin: 0;
  accent-color: #00bcd4;
}
.wizard-ent-check-label span { flex: 1; line-height: 1.3; }

.wizard-ent-btn-confirm {
  padding: 10px 22px;
  background: linear-gradient(135deg, #00bcd4, #0097a7);
  border: none;
  border-radius: 10px;
  color: #000;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.85rem;
  margin-top: 8px;
  align-self: flex-start;
}
.wizard-ent-btn-confirm:hover { opacity: 0.9; }

.wizard-ent-text-input {
  display: flex;
  gap: 8px;
  width: 100%;
}
.wizard-ent-input-field {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  background: #141a26;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  width: auto;
}
.wizard-ent-input-field:focus { border-color: #00bcd4; }

.wizard-ent-preview {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  padding: 16px;
  width: 100%;
}
.wizard-ent-preview h3 { color: #00bcd4; margin-bottom: 12px; font-size: 1.05rem; }
.wizard-ent-preview-category { margin-bottom: 14px; }
.wizard-ent-preview-category h4 {
  color: #8b92a0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.wizard-ent-edit-btn {
  background: none;
  border: 1px solid rgba(0, 188, 212, 0.35);
  color: #00bcd4;
  padding: 2px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.72rem;
  margin-left: 6px;
}
.wizard-ent-btn-generate {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #00bcd4, #0097a7);
  border: none;
  border-radius: 12px;
  color: #000;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 12px;
}
.wizard-ent-success h3 { color: #2ecc71; }
.wizard-ent-error h3 { color: #e74c3c; }
.wizard-ent-btn-restart,
.wizard-ent-btn-retry {
  padding: 12px 28px;
  background: linear-gradient(135deg, #00bcd4, #0097a7);
  border: none;
  border-radius: 10px;
  color: #000;
  font-weight: 600;
  cursor: pointer;
  margin-top: 14px;
}

@media (max-width: 600px) {
  .wizard-ent-option-card { width: 100%; text-align: center; }
  .wizard-ent-text-input { flex-direction: column; }
}
