/* Editor guiado original CredGaming 6.17.23 — extraído do backup aprovado em 23/08/2026. */
.guided-quiz-editor { display: grid; gap: 22px; }
.guided-editor-header { align-items: flex-end; }
.guided-editor-header h1 { margin-top: 0 !important; }
.guided-editor-card { padding: 26px !important; }
.guided-step-heading { display: flex; align-items: flex-start; gap: 14px; }
.guided-step-heading > span { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border-radius: 14px; background: #172033; color: #fff; font-size: 16px; font-weight: 900; }
.guided-step-heading h2 { margin: 1px 0 5px; color: #172033; font-size: 22px; letter-spacing: -.025em; }
.guided-step-heading p { margin: 0; color: #78869a; }
.guided-basics-grid { display: grid; grid-template-columns: minmax(0,1fr) 230px; gap: 26px; margin-top: 24px; align-items: start; }
.guided-basics-fields { display: grid; gap: 4px; }
.guided-cover-column { display: grid; gap: 10px; }
.guided-cover-column > label { font-size: 13px; font-weight: 800; color: #334155; }
.guided-cover-column > label small { font-weight: 600; color: #94a3b8; }
.guided-cover-preview { min-height: 145px; border-radius: 20px !important; }
.guided-questions-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.guided-question-navigation { margin-top: 24px; padding: 16px; border-radius: 18px; background: #f7f9fc; border: 1px solid #e2e8f0; }
.guided-question-navigation-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; color: #475569; font-size: 13px; }
.guided-question-navigation-label span { color: #94a3b8; }
.guided-question-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.guided-question-chip { position: relative; width: 44px; height: 44px; border: 1px solid #d9e3ee; border-radius: 14px; background: #fff; color: #475569; font-weight: 900; cursor: pointer; transition: .18s ease; }
.guided-question-chip:hover { transform: translateY(-1px); border-color: #aabbd0; }
.guided-question-chip.active { background: #172033; color: #fff; border-color: #172033; box-shadow: 0 8px 18px rgba(23,32,51,.18); }
.guided-question-chip.complete:not(.active) { border-color: #b7e3ca; background: #f2fbf6; color: #166534; }
.guided-question-chip small { position: absolute; top: -6px; right: -6px; width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; background: #16a34a; color: #fff; font-size: 10px; }
.guided-question-workspace { margin-top: 18px; }
.guided-question-editor { border: 1px solid #dce5ef; border-radius: 22px; background: #fff; overflow: hidden; }
.guided-question-editor-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px; border-bottom: 1px solid #e7edf4; background: #fbfcfe; }
.guided-question-kicker { display: block; margin-bottom: 4px; color: #64748b; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .07em; }
.guided-question-editor-head h3 { margin: 0; color: #172033; font-size: 18px; letter-spacing: -.02em; }
.guided-question-head-actions { display: flex; align-items: center; gap: 12px; }
.guided-question-head-actions label { display: flex; align-items: center; gap: 8px; color: #64748b; font-size: 12px; font-weight: 800; }
.guided-question-head-actions .select { width: 92px; min-width: 92px; }
.guided-question-field { padding: 22px 22px 8px; }
.guided-question-field > label { font-size: 14px; }
.guided-question-text { min-height: 100px !important; }
.guided-answer-heading { display: flex; justify-content: space-between; align-items: flex-start; padding: 8px 22px 12px; }
.guided-answer-heading > div { display: grid; gap: 3px; }
.guided-answer-heading strong { color: #172033; }
.guided-answer-heading small { color: #7c899b; }
.guided-answer-heading > span { padding: 6px 9px; border-radius: 999px; background: #f1f5f9; color: #64748b; font-size: 11px; font-weight: 800; }
.guided-options-list { display: grid; gap: 10px; padding: 0 22px 18px; }
.guided-option-row { display: grid; grid-template-columns: 24px 38px minmax(0,1fr); gap: 10px; align-items: center; padding: 9px 10px; border: 1px solid #dfe7f0; border-radius: 16px; background: #fff; cursor: pointer; }
.guided-option-row:has(.correct-option:checked) { border-color: #75b58f; background: #f3fbf6; }
.guided-option-row .correct-option { width: 18px; height: 18px; accent-color: #16a34a; }
.guided-option-letter { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: #eef3f8; color: #334155; font-weight: 900; }
.guided-option-row:has(.correct-option:checked) .guided-option-letter { background: #dcfce7; color: #166534; }
.guided-option-row .input { min-height: 44px; border: 0 !important; box-shadow: none !important; background: transparent !important; padding-inline: 4px !important; }
.guided-question-footer { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 22px 20px; border-top: 1px solid #edf1f5; }
.guided-question-pager { display: flex; gap: 8px; }
.guided-editor-bottom-actions { display: flex; justify-content: flex-end; padding: 4px 0 22px; }
.guided-editor-bottom-actions .btn { min-width: 170px; }

/* Garante que a barra antiga nunca fique sobreposta caso ainda exista em cache. */
.clean-editor-save-bar { position: static !important; bottom: auto !important; box-shadow: none !important; backdrop-filter: none !important; }

@media (max-width: 900px) {
  .guided-basics-grid { grid-template-columns: 1fr; }
  .guided-cover-column { max-width: 320px; }
  .guided-questions-top, .guided-question-editor-head, .guided-question-footer { align-items: stretch; flex-direction: column; }
  .guided-question-head-actions { justify-content: space-between; }
  .guided-question-pager { justify-content: space-between; }
}
@media (max-width: 560px) {
  .guided-editor-card { padding: 18px !important; }
  .guided-question-editor-head, .guided-question-field, .guided-answer-heading, .guided-options-list, .guided-question-footer { padding-left: 15px; padding-right: 15px; }
  .guided-option-row { grid-template-columns: 22px 34px minmax(0,1fr); gap: 7px; }
  .guided-editor-bottom-actions .btn { width: 100%; }
}
