/* CredGaming HML — Quiz Builder v2 */
.cgqb-shell{width:min(1120px,100%);margin:0 auto;padding:4px 0 28px;color:#121a45}
.cgqb-header{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 24px}
.cgqb-title-wrap{display:flex;align-items:center;gap:12px}.cgqb-title-wrap small{display:block;margin-bottom:2px;color:#78809b;font-size:11px;font-weight:800}.cgqb-title-wrap h1{margin:0;font-size:clamp(26px,3vw,36px);letter-spacing:-.04em;color:#101747}.cgqb-back,.cgqb-inline-back{border:0;background:transparent;color:#18204d;font:inherit;font-weight:850;cursor:pointer}.cgqb-back{width:38px;height:38px;border-radius:12px;background:#f3f6ff;font-size:20px}.cgqb-save-exit{border-radius:14px!important}
.cgqb-stepper{display:grid;grid-template-columns:repeat(4,1fr);gap:0;margin:0 auto 28px;max-width:760px;position:relative}.cgqb-stepper:before{content:"";position:absolute;left:10%;right:10%;top:17px;height:2px;background:#e3e8f5;z-index:0}.cgqb-step{position:relative;z-index:1;border:0;background:transparent;display:grid;place-items:center;gap:7px;color:#8991aa;cursor:pointer}.cgqb-step>span{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#f2f5fb;border:2px solid #e1e7f4;font-weight:900;color:#8991aa}.cgqb-step strong{font-size:12px}.cgqb-step.active{color:#132c8b}.cgqb-step.active>span{color:#fff;border-color:#2f65ff;background:linear-gradient(135deg,#246dff,#6a45ef);box-shadow:0 7px 18px rgba(63,88,231,.2)}
.cgqb-card{background:rgba(255,255,255,.94);border:1px solid rgba(220,226,241,.95);border-radius:26px;padding:28px;box-shadow:0 18px 50px rgba(61,74,124,.07)}.cgqb-section-heading{margin-bottom:24px}.cgqb-section-heading h2{margin:0 0 6px;font-size:24px;letter-spacing:-.025em}.cgqb-section-heading p{margin:0;color:#7c849d;line-height:1.5}.cgqb-heading-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.cgqb-card .btn-primary{background:linear-gradient(90deg,#176cff 0%,#6b45ef 55%,#d336d4 100%)!important;border:0!important;color:#fff!important;box-shadow:0 12px 28px rgba(83,72,228,.2)!important}.cgqb-card .btn{border-radius:14px!important}
.cgqb-info-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(250px,.65fr);gap:30px}.cgqb-fields{display:grid;gap:18px}.cgqb-card .field label,.cgqb-cover-field>label{display:block;margin-bottom:8px;font-size:13px;font-weight:900;color:#161d49}.cgqb-card .input,.cgqb-card .textarea,.cgqb-card .select{border:1px solid #dbe1ef!important;background:#fbfcff!important;border-radius:14px!important;box-shadow:none!important}.cgqb-card .input:focus,.cgqb-card .textarea:focus,.cgqb-card .select:focus{border-color:#6d5cf5!important;box-shadow:0 0 0 4px rgba(109,92,245,.11)!important}.cgqb-card .textarea{min-height:128px}.cgqb-cover-preview{min-height:190px;border:1.5px dashed #a9b9ef!important;background:linear-gradient(145deg,#f7f9ff,#eef2ff)!important;border-radius:20px!important;overflow:hidden}.cgqb-cover-preview img{width:100%;height:100%;min-height:190px;object-fit:cover}.cgqb-cover-preview .quiz-cover-placeholder{min-height:190px;display:grid;place-items:center;align-content:center;gap:7px;color:#5c66a3;text-align:center}.cgqb-cover-preview .quiz-cover-placeholder span{width:46px;height:46px;display:grid;place-items:center;border-radius:14px;background:#fff;box-shadow:0 8px 20px rgba(64,77,127,.08)}.cgqb-cover-preview .quiz-cover-placeholder svg{width:24px;height:24px}.cgqb-cover-preview .quiz-cover-placeholder small{color:#9aa2b9}.cgqb-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:28px;padding-top:22px;border-top:1px solid #edf0f7}.cgqb-footer>div{display:flex;gap:10px}
.cgqb-question-list{display:grid;gap:10px}.cgqb-question-row{display:grid;grid-template-columns:28px 44px minmax(0,1fr) auto;align-items:center;gap:12px;padding:13px 14px;border:1px solid #e3e7f1;border-radius:18px;background:#fff;transition:.18s}.cgqb-question-row:hover{border-color:#cdd5ef;box-shadow:0 10px 28px rgba(54,68,122,.06)}.cgqb-question-row.incomplete{border-style:dashed}.cgqb-drag{color:#a2a9bd;font-size:17px}.cgqb-question-number{display:grid;place-items:center;width:40px;height:40px;border-radius:14px;background:#edf4ff;color:#2468eb;font-weight:950}.cgqb-question-main{min-width:0;border:0;background:transparent;text-align:left;cursor:pointer;display:grid;gap:3px}.cgqb-question-main strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#161d49;font-size:14px}.cgqb-question-main small{color:#9098ae;font-size:11px}.cgqb-type-pill{width:max-content;padding:4px 8px;border-radius:999px;background:#efeaff;color:#7047dc;font-size:9px;font-weight:900}.cgqb-question-actions{display:flex;align-items:center;gap:4px}.cgqb-question-actions button{width:31px;height:31px;border:0;border-radius:10px;background:#f5f7fb;color:#56607d;font-weight:900;cursor:pointer}.cgqb-question-actions button:disabled{opacity:.3;cursor:default}.cgqb-question-actions .danger{color:#b44762}.cgqb-add-question-tile{margin-top:14px;width:100%;min-height:110px;border:1.5px dashed #9eb4f2;border-radius:20px;background:#f8faff;color:#245bea;display:grid;place-items:center;align-content:center;gap:3px;cursor:pointer}.cgqb-add-question-tile>span{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#176cff,#bd34d4);color:#fff;font-size:23px}.cgqb-add-question-tile small{color:#8f97ae}
.cgqb-question-editor-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:22px}.cgqb-question-editor-head>div{display:grid;gap:4px}.cgqb-question-editor-head span{color:#7c849d;font-size:11px;font-weight:800}.cgqb-question-editor-head h2{margin:0;font-size:25px;letter-spacing:-.03em}.cgqb-inline-back{padding:0;color:#3d55bf;font-size:12px;width:max-content}.cgqb-question-form{display:grid;gap:18px}.cgqb-alternatives-heading{display:flex;justify-content:space-between;gap:12px;align-items:end}.cgqb-alternatives-heading div{display:grid;gap:2px}.cgqb-alternatives-heading strong{font-size:14px}.cgqb-alternatives-heading small,.field-hint{color:#8e96ad;font-size:11px}.cgqb-alternatives-heading>span{font-size:11px;color:#929ab0}.cgqb-alternatives{display:grid;gap:9px}.cgqb-alternative{display:grid;grid-template-columns:38px minmax(0,1fr) 28px 28px;align-items:center;gap:8px}.cgqb-letter{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#f1f4fa;color:#20284f;font-weight:900}.cgqb-alternative>.correct-option{appearance:none;width:20px;height:20px;border-radius:50%;border:2px solid #aab4ce;background:#fff;cursor:pointer}.cgqb-alternative>.correct-option:checked{border:6px solid #246dff}.cgqb-remove-option{border:0;background:transparent;color:#9b6471;font-size:20px;cursor:pointer}.cgqb-add-option{justify-self:center;border:0;background:transparent;color:#245fea;font-weight:850;cursor:pointer}.cgqb-add-option:disabled{opacity:.4}.cgqb-question-meta{display:grid;grid-template-columns:1fr 1fr;gap:16px}.cgqb-ready-state{align-self:end;min-height:56px;display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid #e6eaf3;border-radius:14px;background:#fbfcff}.cgqb-ready-state>span{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#e8f8ef;color:#1ca65d;font-weight:950}.cgqb-ready-state div{display:grid;gap:2px}.cgqb-ready-state strong{font-size:12px}.cgqb-ready-state small{font-size:10px;color:#8d95aa}
.cgqb-settings-grid{display:grid;gap:14px;max-width:760px}.cgqb-setting-note{display:flex;gap:12px;align-items:flex-start;padding:16px;border:1px solid #e3e8f2;border-radius:17px;background:#fbfcff}.cgqb-setting-note>span{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#eef3ff;color:#315fe5}.cgqb-setting-note svg{width:20px;height:20px;stroke:currentColor}.cgqb-setting-note div{display:grid;gap:3px}.cgqb-setting-note strong{font-size:13px}.cgqb-setting-note p{margin:0;color:#858da5;font-size:12px;line-height:1.5}
.cgqb-review-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:22px}.cgqb-checklist{display:grid;gap:10px}.cgqb-check{display:flex;align-items:flex-start;gap:12px;padding:15px;border:1px solid #e4e8f1;border-radius:16px;background:#fff}.cgqb-check>span{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#eef1f6;color:#a1a8b8;font-weight:900}.cgqb-check.ok>span{background:#e4f8ed;color:#18a35a}.cgqb-check div{display:grid;gap:2px}.cgqb-check strong{font-size:13px}.cgqb-check small{color:#9299ad;font-size:11px}.cgqb-summary-preview{padding:18px;border:1px solid #e0e5f0;border-radius:20px;background:#fafbff}.cgqb-summary-cover{height:115px;border-radius:16px;overflow:hidden;background:linear-gradient(135deg,#596fff,#bb40df);display:grid;place-items:center;color:#fff}.cgqb-summary-cover img{width:100%;height:100%;object-fit:cover}.cgqb-summary-cover svg{width:34px;height:34px;stroke:currentColor}.cgqb-summary-preview h3{margin:14px 0 5px;font-size:19px}.cgqb-summary-preview p{margin:0;color:#858da4;font-size:12px;line-height:1.5}.cgqb-summary-preview dl{display:grid;gap:8px;margin:16px 0 0}.cgqb-summary-preview dl>div{display:flex;justify-content:space-between;gap:12px;font-size:12px}.cgqb-summary-preview dt{color:#8a92a8}.cgqb-summary-preview dd{margin:0;font-weight:900}.cgqb-preview-overlay{position:fixed;inset:0;z-index:12000;display:grid;place-items:center;padding:20px;background:rgba(11,17,43,.55);backdrop-filter:blur(8px)}.cgqb-preview-modal{position:relative;width:min(620px,100%);padding:28px;border-radius:28px;background:#f7f9ff;box-shadow:0 30px 90px rgba(0,0,0,.28)}.cgqb-preview-close{position:absolute;right:16px;top:14px;width:34px;height:34px;border:0;border-radius:50%;background:#fff;font-size:22px}.cgqb-preview-kicker{color:#6f48dd;font-size:11px;font-weight:900;text-transform:uppercase}.cgqb-preview-modal h2{margin:8px 0 20px}.cgqb-preview-modal>p{font-size:20px;font-weight:850;color:#131a45}.cgqb-preview-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0}.cgqb-preview-options>div{display:flex;gap:10px;align-items:center;padding:14px;border-radius:16px;background:#fff;border:1px solid #e1e6f1}.cgqb-preview-options span{display:grid;place-items:center;width:30px;height:30px;border-radius:10px;background:#eef3ff;color:#315fe4;font-weight:900}.cgqb-preview-modal>small{color:#8991a8}
html[data-theme="dark"] .cgqb-shell{color:#eef2ff}html[data-theme="dark"] .cgqb-title-wrap h1,html[data-theme="dark"] .cgqb-card .field label,html[data-theme="dark"] .cgqb-cover-field>label,html[data-theme="dark"] .cgqb-question-main strong{color:#eef2ff}html[data-theme="dark"] .cgqb-card{background:#12182b;border-color:#273149;box-shadow:none}html[data-theme="dark"] .cgqb-card .input,html[data-theme="dark"] .cgqb-card .textarea,html[data-theme="dark"] .cgqb-card .select,html[data-theme="dark"] .cgqb-question-row,html[data-theme="dark"] .cgqb-setting-note,html[data-theme="dark"] .cgqb-ready-state,html[data-theme="dark"] .cgqb-check,html[data-theme="dark"] .cgqb-summary-preview{background:#0d1425!important;border-color:#28324a!important;color:#eef2ff!important}html[data-theme="dark"] .cgqb-add-question-tile{background:#0e162a}html[data-theme="dark"] .cgqb-question-actions button,html[data-theme="dark"] .cgqb-back{background:#1b253c;color:#dce5ff}html[data-theme="dark"] .cgqb-letter{background:#1b253c;color:#e8edff}html[data-theme="dark"] .cgqb-stepper:before{background:#273149}html[data-theme="dark"] .cgqb-step>span{background:#172037;border-color:#2a3450}
@media(max-width:760px){.cgqb-shell{padding:0 0 28px}.cgqb-header{margin-bottom:18px}.cgqb-title-wrap small{display:none}.cgqb-title-wrap h1{font-size:22px}.cgqb-save-exit{font-size:11px!important;padding:9px 11px!important}.cgqb-stepper{margin-bottom:18px}.cgqb-stepper:before{left:12%;right:12%;top:14px}.cgqb-step>span{width:30px;height:30px;font-size:11px}.cgqb-step strong{font-size:9px}.cgqb-card{padding:18px;border-radius:22px}.cgqb-section-heading{margin-bottom:18px}.cgqb-section-heading h2{font-size:21px}.cgqb-info-grid,.cgqb-review-grid,.cgqb-question-meta{grid-template-columns:1fr}.cgqb-cover-preview,.cgqb-cover-preview img,.cgqb-cover-preview .quiz-cover-placeholder{min-height:145px}.cgqb-heading-row{align-items:center}.cgqb-heading-row .btn{font-size:11px!important;padding:10px 12px!important}.cgqb-question-row{grid-template-columns:32px minmax(0,1fr) auto;padding:11px}.cgqb-drag{display:none}.cgqb-question-number{width:30px;height:30px;border-radius:10px;font-size:11px}.cgqb-question-main small{font-size:9px}.cgqb-question-actions button[data-move-question]{display:none}.cgqb-question-actions button{width:28px;height:28px}.cgqb-question-editor-head h2{font-size:21px}.cgqb-alternative{grid-template-columns:32px minmax(0,1fr) 24px 24px}.cgqb-letter{width:30px;height:30px}.cgqb-footer{position:sticky;bottom:0;z-index:3;margin-left:-18px;margin-right:-18px;margin-bottom:-18px;padding:14px 18px max(14px,env(safe-area-inset-bottom));background:rgba(255,255,255,.96);border-radius:0 0 22px 22px}.cgqb-footer .btn{min-height:45px}.cgqb-summary-actions{align-items:stretch}.cgqb-summary-actions>div{display:grid;grid-template-columns:1fr 1fr;flex:1}.cgqb-preview-options{grid-template-columns:1fr}html[data-theme="dark"] .cgqb-footer{background:rgba(18,24,43,.97)}}
@media(max-width:420px){.cgqb-step strong{font-size:8px}.cgqb-question-actions button[data-duplicate-question]{display:none}.cgqb-summary-actions{display:grid}.cgqb-summary-actions>div{grid-template-columns:1fr}.cgqb-footer{gap:8px}}


/* CredGaming HML — Estúdio de Quiz: editor direto, contextual e responsivo */
.cgqb-shell { --cgqb-accent: var(--glass-purple, #7138ff); max-width: 1240px; }
.cgqb-card { border-radius: 22px; padding: clamp(17px,2.2vw,27px); background: rgba(255,255,255,.89); border-color: rgba(187,198,225,.43); }
.cgqb-stepper { max-width: 850px; margin-bottom: 22px; }
.cgqb-step.active>span { background: var(--cgqb-accent); border-color: var(--cgqb-accent); box-shadow: 0 5px 15px color-mix(in srgb,var(--cgqb-accent) 18%,transparent); }
.cgqb-card .btn-primary { background: var(--cgqb-accent)!important; box-shadow: none!important; border-radius: 13px!important; }
.cgqb-question-rail .btn-primary { background: var(--cgqb-accent)!important; }
.cgqb-studio-grid { display: grid; grid-template-columns: minmax(270px,345px) minmax(0,1fr); align-items: start; gap: 15px; }
.cgqb-question-rail { position: sticky; top: 86px; padding: 16px!important; max-height: calc(100dvh - 122px); overflow: auto; }
.cgqb-rail-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 15px; }
.cgqb-rail-heading h2 { font-size: 20px; letter-spacing: -.025em; margin: 0 0 3px; }
.cgqb-rail-heading small { color: #6e7d9b; font-size: 11px; }
.cgqb-rail-heading .btn { min-height: 38px; display: inline-flex; align-items: center; gap: 5px; padding: 8px 11px!important; font-size: 12px!important; }
.cgqb-rail-heading .ui-line-icon, .cgqb-rail-add .ui-line-icon { width: 17px; height: 17px; stroke: currentColor; stroke-width: 1.8; fill: none; }
.cgqb-question-rail .cgqb-question-list { gap: 7px; }
.cgqb-question-rail .cgqb-question-row { grid-template-columns: 32px minmax(0,1fr); gap: 6px 9px; padding: 10px 11px; border-radius: 13px; }
.cgqb-question-rail .cgqb-drag { display: none; }
.cgqb-question-rail .cgqb-question-number { width: 32px; height: 32px; border-radius: 10px; font-size: 11px; }
.cgqb-question-rail .cgqb-question-main { gap: 4px; }
.cgqb-question-rail .cgqb-question-main strong { font-size: 12px; }
.cgqb-question-rail .cgqb-question-main small { font-size: 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cgqb-question-rail .cgqb-question-actions { grid-column: 2; display: flex; justify-content: flex-end; }
.cgqb-question-rail .cgqb-question-actions button { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; }
.cgqb-question-rail .cgqb-question-actions svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cgqb-question-rail .cgqb-question-row.complete { background: color-mix(in srgb,#18a974 3%,white); }
.cgqb-question-rail .cgqb-question-row:has(.cgqb-question-main:hover) { border-color: var(--cgqb-accent); }
.cgqb-rail-add { display: inline-flex; align-items: center; justify-content: center; gap: 7px; width: 100%; margin-top: 13px; padding: 12px; background: color-mix(in srgb,var(--cgqb-accent) 5%,white); border: 1px dashed color-mix(in srgb,var(--cgqb-accent) 42%,white); color: var(--cgqb-accent); font-size: 12px; font-weight: 800; border-radius: 12px; cursor: pointer; }
.cgqb-question-top-fields { display: grid; grid-template-columns: minmax(0,1fr) minmax(155px,.6fr); gap: 13px; }
.cgqb-question-editor-head { margin-bottom: 18px; }
.cgqb-question-editor-head h2 { font-size: 22px; }
.cgqb-save-hint { font-size: 11px; color: #657b95; font-weight: 700; }
.cgqb-question-editor .field label { font-size: 12px; }
.cgqb-question-editor .textarea { min-height: 75px; resize: vertical; }
.cgqb-question-editor .cgqb-question-form { gap: 16px; }
.cgqb-question-editor .cgqb-alternatives-heading { align-items: center; }
.cgqb-alternative { grid-template-columns: 33px minmax(0,1fr) 83px 28px; padding: 8px; border: 1px solid #e6ebf5; border-radius: 14px; background: rgba(251,252,255,.84); gap: 8px; }
.cgqb-alternative.is-correct { border-color: color-mix(in srgb,#17a86c 43%,white); background: #f3fcf7; }
.cgqb-alternative .input { min-width: 0; background: white!important; padding: 10px 11px!important; font-size: 12px!important; }
.cgqb-correct-label { display: flex; align-items: center; gap: 4px; justify-content: center; padding: 9px 5px; border-radius: 10px; font-size: 10px; font-weight: 750; color: #64718d; background: #f0f3fa; cursor: pointer; user-select: none; }
.cgqb-correct-label input { width: 15px; height: 15px; accent-color: #199a5f; cursor: pointer; margin: 0; flex-shrink: 0; }
.cgqb-alternative.is-correct .cgqb-correct-label { color: #14714a; background: #dbf6e7; }
.cgqb-alternative .cgqb-remove-option { display: grid; place-items: center; width: 26px; height: 30px; border-radius: 9px; }
.cgqb-remove-option .ui-line-icon, .cgqb-add-option .ui-line-icon { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.cgqb-add-option { justify-self: start; display: inline-flex; align-items: center; gap: 7px; color: var(--cgqb-accent); padding: 9px 5px; }
.cgqb-explanation-field { padding: 14px; background: #f8faff; border-radius: 15px; border: 1px solid #edf0f9; }
.cgqb-explanation-field .textarea { min-height: 58px; font-size: 12px; }
.cgqb-question-editor-footer { display: flex; gap: 12px; align-items: center; justify-content: space-between; border-top: 1px solid #e8edf7; margin-top: 18px; padding-top: 17px; }
.cgqb-question-editor-footer>span { max-width: 280px; font-size: 11px; color: #75809b; line-height: 1.5; }
.cgqb-question-editor-footer .btn { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.cgqb-question-editor-footer .ui-line-icon { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.cgqb-outside-footer { margin-top: 16px; padding: 17px 4px; }
.cgqb-outside-footer .btn-primary { display: inline-flex; gap: 7px; align-items: center; background: var(--cgqb-accent)!important; }
.cgqb-outside-footer .ui-line-icon { width: 18px; height: 18px; stroke: currentColor; fill: none; }
.cgqb-shuffle-setting { display: grid; grid-template-columns: 43px minmax(0,1fr) auto; gap: 13px; align-items: center; padding: 17px; border: 1px solid #e0e7f2; background: #f9fbff; border-radius: 18px; cursor: pointer; }
.cgqb-shuffle-icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: var(--cgqb-accent); background: color-mix(in srgb,var(--cgqb-accent) 9%,white); }
.cgqb-shuffle-icon .ui-line-icon { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.9; }
.cgqb-shuffle-copy { display: grid; gap: 4px; }
.cgqb-shuffle-copy strong { font-size: 14px; }
.cgqb-shuffle-copy small { color: #7886a0; font-size: 12px; line-height: 1.5; }
.cgqb-shuffle-setting>input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cgqb-switch { width: 43px; height: 26px; border-radius: 50px; background: #cfd8e7; box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); position: relative; transition: background .18s ease; }
.cgqb-switch:after { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; border-radius: 50%; background: white; box-shadow: 0 1px 5px rgba(0,0,0,.1); transition: transform .18s ease; }
.cgqb-shuffle-setting input:checked+.cgqb-switch { background: var(--cgqb-accent); }
.cgqb-shuffle-setting input:checked+.cgqb-switch:after { transform: translateX(17px); }
.cgqb-shuffle-setting:has(input:focus-visible) { outline: 3px solid color-mix(in srgb,var(--cgqb-accent) 24%,transparent); outline-offset: 2px; }
.cgqb-preview-navigation { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; }
.cgqb-preview-navigation>span { font-size: 12px; font-variant-numeric: tabular-nums; color: #7282a0; font-weight: 800; }
.cgqb-preview-navigation .btn { min-height: 41px; }
.cgqb-preview-navigation button:disabled { opacity: .45; cursor: not-allowed; }
@media(max-width:980px) {
  .cgqb-studio-grid { grid-template-columns: minmax(0,1fr); }
  .cgqb-question-rail { position: static; max-height: none; }
  .cgqb-question-rail .cgqb-question-list { display: flex; overflow-x: auto; padding-bottom: 7px; scrollbar-width: thin; }
  .cgqb-question-rail .cgqb-question-row { min-width: 190px; max-width: 240px; flex: 0 0 190px; display: grid; grid-template-columns: 30px 1fr; }
  .cgqb-question-rail .cgqb-question-actions button[data-move-question],
  .cgqb-question-rail .cgqb-question-actions button[data-duplicate-question] { display: grid; }
}
@media(max-width:600px) {
  .cgqb-question-rail { padding: 14px!important; }
  .cgqb-question-editor-card { padding: 15px!important; }
  .cgqb-question-top-fields { grid-template-columns: minmax(0,1fr); }
  .cgqb-alternative { grid-template-columns: 28px minmax(0,1fr) 66px 22px; padding: 6px; gap: 4px; }
  .cgqb-letter { width: 25px; height: 25px; }
  .cgqb-correct-label { padding: 8px 2px; gap: 2px; font-size: 9px; }
  .cgqb-correct-label input { width: 13px; height: 13px; }
  .cgqb-question-editor-footer { flex-wrap: wrap; }
  .cgqb-question-editor-footer>span { max-width: none; }
  .cgqb-outside-footer { position: static; padding: 15px 0; margin: 12px 0 0; background: none; }
}


/* Música do lobby integrada ao CredGaming: MP3 nativo, sem player externo. */
.cg-lobby-native-music {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 12px; width: 100%; margin: 12px 0 2px; padding: 13px 16px; box-sizing: border-box;
  border: 1px solid rgba(134,159,216,.25); border-radius: 16px;
  background: rgba(255,255,255,.76); color: #243455;
  box-shadow: 0 5px 19px rgba(29,46,105,.045);
}
.cg-lobby-native-music-info { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.cg-lobby-native-music-info>span:last-child { display: grid; gap: 3px; }
.cg-lobby-native-music-info strong { font-size: 13px; font-weight: 800; }
.cg-lobby-native-music-info small { font-size: 10px; color: #717e99; white-space: nowrap; }
.cg-lobby-music-icon { width: 38px; height: 38px; border-radius: 12px; flex: 0 0 38px; display: grid; place-items: center; color: #6251c1; background: #f0edff; }
.cg-lobby-music-icon .ui-line-icon { width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.75; fill: none; }
.cg-lobby-native-music-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px; }
.cg-lobby-native-play { display: inline-flex!important; align-items: center; justify-content: center; gap: 7px; border-radius: 12px!important; min-height: 39px; }
.cg-lobby-native-play[aria-pressed="true"] { background: #efebff!important; border-color: rgba(102,75,210,.25)!important; color: #5d43bc!important; }
.cg-lobby-native-play .ui-line-icon { width: 17px; height: 17px; stroke: currentColor; stroke-width: 1.85; fill: none; }
.cg-lobby-volume-control { display: flex; align-items: center; gap: 7px; color: #61728c; font-size: 11px; font-weight: 750; }
.cg-lobby-volume-control input { width: 85px; height: 25px; cursor: pointer; accent-color: #7356d2; }
.cg-lobby-music-upload-label { font-size: 11px; font-weight: 750; padding: 9px 7px; color: #5d55b1; cursor: pointer; white-space: nowrap; text-decoration: underline; }
.cg-lobby-native-music.is-uploading { opacity: .65; pointer-events: none; }
.screen-ready-block .cg-lobby-native-music { flex-direction: column; align-items: stretch; padding: 12px; margin-top: 15px; width: 100%; }
.screen-ready-block .cg-lobby-native-music-info { justify-content: center; }
.screen-ready-block .cg-lobby-native-music-actions { justify-content: center; }
@media(max-width: 720px) {
  .cg-lobby-native-music { padding: 12px; flex-direction: column; align-items: stretch; gap: 9px; }
  .cg-lobby-native-music-actions { justify-content: space-between; gap: 9px; }
  .cg-lobby-volume-control input { width: 70px; }
  .cg-lobby-native-music-info small { white-space: normal; }
}

.cgqb-question-rail .cgqb-question-row.is-selected { border-color: var(--cgqb-accent); background: color-mix(in srgb,var(--cgqb-accent) 6%,white); box-shadow: 0 0 0 2px color-mix(in srgb,var(--cgqb-accent) 11%,transparent); }
.cgqb-live-explanation { max-width: 960px; width: 100%; margin: 14px auto 2px; padding: 11px 17px; font-size: clamp(13px,1.4vw,17px); line-height: 1.45; color: #233c66; border-radius: 13px; border: 1px solid #d7e8ff; background: rgba(255,255,255,.9); }
.cgqb-live-explanation strong { color: #255dca; }
.cgqb-player-explanation { max-width: 720px; margin: 12px auto; padding: 14px; font-size: 15px; line-height: 1.45; color: #1f3358; background: rgba(255,255,255,.92); border-radius: 13px; }


/* CredGaming HML: controles de som em um popover, nunca sobre o QR Code. */
.presenter-shell > .control-dock { overflow: visible !important; }
.presenter-shell > .control-dock > .cg-presenter-sound-panel {
  position: absolute; z-index: 30; right: 0; bottom: calc(100% + 12px);
  width: min(345px, calc(100vw - 24px)); max-width: calc(100vw - 24px);
  max-height: min(480px, calc(100dvh - 88px)); overflow-y: auto;
  box-sizing: border-box; padding: 15px;
  border: 1px solid rgba(197,210,237,.85); border-radius: 20px;
  color: #213355; background: rgba(255,255,255,.97);
  box-shadow: 0 18px 55px rgba(25,38,85,.22), 0 1px 0 rgba(255,255,255,.9) inset;
  -webkit-backdrop-filter: blur(25px) saturate(145%);
  backdrop-filter: blur(25px) saturate(145%);
  display: grid; gap: 12px; text-align: left;
}
.presenter-shell > .control-dock > .cg-presenter-sound-panel[hidden] { display: none !important; }
.cg-sound-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid #e8edf7; }
.cg-sound-panel-heading>div { display: grid; gap: 3px; }
.cg-sound-panel-heading strong { font-size: 15px; font-weight: 850; letter-spacing: -.02em; }
.cg-sound-panel-heading small { font-size: 11px; color: #7482a0; }
.cg-sound-panel-heading button { display: grid; place-items: center; padding: 6px; width: 31px; height: 31px; border: 0; border-radius: 10px; background: #f0f3fb; color: #4b5e7b; cursor: pointer; }
.cg-sound-panel-heading button .ui-line-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.85; }
.cg-sound-panel-track { display: grid; gap: 11px; padding: 13px; border: 1px solid #e8e8f5; border-radius: 15px; background: #f8f9ff; }
.cg-sound-track-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cg-sound-track-title>span:last-child { display: grid; gap: 2px; min-width: 0; }
.cg-sound-track-title strong { font-size: 12px; color: #27385a; font-weight: 850; }
.cg-sound-track-title small { font-size: 10px; color: #7a85a0; }
.cg-sound-track-icon { display: grid; place-items: center; width: 33px; height: 33px; flex-shrink: 0; border-radius: 11px; background: #eceaff; color: #6156bc; }
.cg-sound-track-icon .ui-line-icon { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.9; }
.cg-sound-track-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.cg-sound-track-toggle { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 35px; padding: 7px 10px; border: 1px solid #d9d9f3; border-radius: 11px; background: #fff; color: #5447af; font-size: 11px; font-weight: 850; cursor: pointer; }
.cg-sound-track-toggle[aria-pressed="true"] { background: #ebe9ff; border-color: #c6bef2; }
.cg-sound-track-toggle .ui-line-icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.85; }
.cg-sound-volume { display: flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 800; color: #647492; }
.cg-sound-volume input { accent-color: #6251c8; width: 94px; height: 28px; cursor: pointer; }
.cg-sound-import { width: max-content; font-size: 10px; font-weight: 800; color: #5d58af; text-decoration: underline; cursor: pointer; }
.cg-presenter-sound-panel.is-uploading { opacity: .65; pointer-events: none; }
.cg-sound-panel-status { margin: 0; padding: 11px 12px; border-radius: 12px; background: #f5f7fd; font-size: 11px; color: #77839a; line-height: 1.5; }
.cg-sound-panel-setting { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 4px; cursor: pointer; }
.cg-sound-panel-setting+ .cg-sound-panel-setting { padding-top: 12px; border-top: 1px solid #edf1f8; }
.cg-sound-panel-setting>span { display: grid; gap: 3px; }
.cg-sound-panel-setting strong { font-size: 12px; font-weight: 800; color: #293a59; }
.cg-sound-panel-setting small { font-size: 10px; color: #76829b; line-height: 1.45; }
.cg-sound-panel-setting input { flex: 0 0 auto; width: 19px; height: 19px; cursor: pointer; accent-color: #6f55d5; }
.cg-presenter-sound-panel button:focus-visible, .cg-presenter-sound-panel input:focus-visible { outline: 3px solid rgba(118,93,227,.35); outline-offset: 2px; }

/* Urgência nos últimos cinco segundos, sem acrescentar elementos sobre a pergunta. */
.timer.cg-question-clock-warning {
  color: #fff !important; background: linear-gradient(145deg,#fa4b4b,#d72451) !important;
  border-color: rgba(255,255,255,.9) !important;
  box-shadow: 0 0 0 4px rgba(249,59,83,.15),0 7px 22px rgba(190,35,61,.20) !important;
  animation: cgClockUrgency .85s ease-in-out infinite alternate;
}
@keyframes cgClockUrgency { from { filter: brightness(1); transform: scale(1); } to { filter: brightness(1.1); transform: scale(1.055); } }
@media (prefers-reduced-motion: reduce) { .timer.cg-question-clock-warning { animation: none; } }
@media (max-width: 640px) {
  .presenter-shell > .control-dock > .cg-presenter-sound-panel { right: 0; bottom: calc(100% + 9px); width: min(325px,calc(100vw - 18px)); padding: 12px; border-radius: 16px; }
  .cg-sound-panel-track { padding: 10px; gap: 8px; }
  .cg-sound-volume input { width: 75px; }
}
