/* Quizora's focused authoring workspace. */
.workspace:has(.quiz-editor),.workspace.has-menu:has(.quiz-editor){display:block;max-width:none;margin:0}.workspace:has(.quiz-editor)>.sidebar{display:none}.workspace #app:has(.quiz-editor){width:100%;max-width:none;padding:0}.quiz-editor{--qe-blue:#1264df;--qe-ink:#142c49;--qe-line:#dce5ef;color:var(--qe-ink);background:#f4f7fb;min-height:calc(100dvh - 94px)}.quiz-editor button,.quiz-editor input,.quiz-editor select,.quiz-editor textarea{font-family:inherit}.quiz-editor button{box-shadow:none;transition:background .15s,border-color .15s}.quiz-editor button:hover{transform:none}.quiz-editor button:disabled{opacity:.45;cursor:not-allowed}.quiz-editor :is(button,input,textarea,select,summary,a):focus-visible{outline:3px solid #1264df;outline-offset:3px}.qe-toolbar{display:flex;align-items:center;gap:12px;background:#fff;border-bottom:1px solid var(--qe-line);padding:16px 24px;position:sticky;top:0;z-index:4}.qe-heading{display:flex;gap:20px;align-items:center;flex:1;min-width:0}.qe-studio{font-size:11px;font-weight:800;letter-spacing:1.6px;color:#1264df;white-space:nowrap}.quiz-editor #title{font-size:18px;font-weight:650;max-width:520px;background:#f8faff;margin:0;padding:12px 16px;border:1px solid var(--qe-line);border-radius:10px}.qe-draft-label{font-size:12px;color:#677a91;white-space:nowrap}.qe-toolbar>button{padding:13px 20px;font-size:13px;border-radius:9px}.qe-layout{display:grid;grid-template-columns:220px minmax(340px,1fr) 276px;min-height:calc(100dvh - 174px);align-items:start}.qe-rail{background:#fff;border-right:1px solid var(--qe-line);padding:22px 14px;position:sticky;top:80px;height:calc(100dvh - 80px);max-height:880px;display:flex;flex-direction:column;gap:12px;min-height:0;overflow-y:auto}.qe-rail-title{display:flex;justify-content:space-between;align-items:center;font-size:14px}.qe-rail-title>span{font-size:11px;background:#edf3fc;border-radius:12px;padding:4px 8px;color:#496886}.qe-rail-hint{font-size:11px;color:#687d94;line-height:1.5;margin:0}.qe-thumbnails{display:flex;flex-direction:column;gap:12px;overflow-y:auto;min-height:85px;flex:1;padding:3px}.quiz-editor .qe-thumb{display:block;width:100%;padding:12px;text-align:start;background:#fff;border:1px solid #d5dfeb;color:var(--qe-ink);border-radius:10px;white-space:normal}.quiz-editor .qe-thumb.is-active{border:2px solid #1264df;box-shadow:0 0 0 3px #1264df12;background:#f6faff;padding:11px}.qe-thumb-top{display:flex;align-items:center;gap:6px;font-size:9px;color:#657d96}.qe-thumb-top b{display:grid;place-items:center;width:24px;height:24px;background:#eaf1fb;border-radius:7px;color:#1264df;font-size:12px}.qe-thumb-top>span:last-child{margin-inline-start:auto}.qe-thumb-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:34px;margin:10px 0;font-size:12px;font-weight:650;line-height:1.45;overflow-wrap:anywhere}.qe-thumb-visual{display:flex;align-items:center;gap:10px}.qe-thumb-visual>img,.qe-thumb-visual>span:first-child{width:44px;height:32px;object-fit:cover;background:#eaf0f7;border-radius:5px;display:grid;place-items:center;color:#8ca4bf}.qe-mini-options{display:grid;grid-template-columns:1fr 1fr;gap:4px;flex:1}.qe-mini-options i{height:9px;border-radius:2px;background:#dae7fb}.qe-mini-options i:nth-child(2){background:#dff2cb}.qe-mini-options i:nth-child(3){background:#ffe6c1}.qe-mini-options i:nth-child(4){background:#e1ddfb}.qe-thumb-state{display:block;margin-top:9px;color:#8a6637;font-size:10px}.is-ready .qe-thumb-state{color:#237345}.qe-add{width:100%;padding:13px;font-size:13px;border-radius:9px;flex-shrink:0}.qe-resources{border-top:1px solid var(--qe-line);padding-top:12px;font-size:12px}.qe-resources summary{cursor:pointer;font-weight:650;padding:7px 0}.qe-resources .actions{display:grid;gap:7px;margin:10px 0}.qe-resources button{width:100%;padding:10px;font-size:11px}.qe-resources>a{display:block;color:#1264df;padding:12px 4px;font-size:12px}.qe-canvas{padding:26px clamp(18px,3vw,46px) 32px;min-width:0;background:radial-gradient(ellipse at top,#e2edff 0%,#f1f6ff 55%,#f7f9fc 100%)}.qe-canvas-top{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:20px;font-size:12px;font-weight:750;letter-spacing:1px}.qe-muted{color:#7b8ca2}.qe-complete{color:#527493;font-size:11px;font-weight:500;letter-spacing:0}.quiz-editor .qe-prompt{font-size:clamp(19px,2vw,27px);font-weight:650;line-height:1.4;text-align:center;padding:22px 20px;background:white;border:1px solid var(--qe-line);border-radius:13px;resize:vertical;min-height:106px;margin:0 0 20px;color:var(--qe-ink)}.qe-prompt::placeholder{color:#7890aa;font-weight:500}.qe-media{border:1px dashed #b3c7df;background:#ffffffb3;border-radius:14px;margin-bottom:22px;padding:18px;text-align:center;min-height:198px;display:grid;align-content:center}.qe-media .image-upload{margin:0;background:none;border:0;padding:0}.qe-media label{display:flex;flex-direction:column;align-items:center;gap:10px;font-size:14px;color:#4f6784}.qe-media input[type=file]{max-width:360px;background:#fff;margin:0;font-size:12px;cursor:pointer}.qe-media input::file-selector-button{border:0;border-radius:6px;background:#e9f1ff;color:#175ab1;padding:9px 12px;margin-inline-end:10px;font:inherit;font-weight:650;cursor:pointer}.qe-media .hint{font-size:11px;color:#71849a;margin:10px 0 0;line-height:1.6}.qe-media .question-image img,.qe-media img{max-height:220px;max-width:100%;object-fit:contain}.qe-media button{margin-top:10px}.qe-answers{display:grid;grid-template-columns:1fr 1fr;gap:14px}.qe-answer{--answer-color:#1264df;position:relative;display:flex;align-items:center;gap:12px;border:1px solid #d6e1ef;background:white;border-radius:12px;padding:12px;min-height:100px}.qe-color-1{--answer-color:#358015}.qe-color-2{--answer-color:#b76b04}.qe-color-3{--answer-color:#7554c8}.qe-answer.is-correct{border:2px solid #2c8645;padding:11px;box-shadow:0 0 0 2px #2c864510}.qe-answer-shape{display:grid;place-items:center;background:var(--answer-color);color:white;border-radius:7px;align-self:stretch;width:38px;flex-shrink:0;font-size:22px}.quiz-editor .qe-answer textarea{border:0;background:transparent;font-size:16px;line-height:1.4;padding:8px 0;margin:0;min-width:0;resize:vertical;border-radius:4px;color:var(--qe-ink)}.qe-correct-choice{position:relative;flex-shrink:0;width:29px;height:29px;cursor:pointer}.qe-correct-choice input{position:absolute;inset:0;opacity:0;cursor:pointer;margin:0;width:100%;height:100%}.qe-correct-choice>span{display:grid;place-items:center;width:100%;height:100%;border:1.5px solid #aabbd0;color:#9aadc3;border-radius:50%;font-size:15px}.qe-correct-choice input:checked+span{background:#2c8645;border-color:#2c8645;color:white}.qe-correct-choice input:focus-visible+span{outline:3px solid #1264df;outline-offset:3px}.qe-answer-hint{font-size:11px;color:#647d97;line-height:1.7;margin:13px 0 22px}.qe-stepper{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid #d8e2ee;padding-top:22px}.qe-stepper button{font-size:12px;padding:11px 15px;background:white}.qe-stepper>span{font-size:12px;color:#698098;white-space:nowrap}.qe-properties{background:white;border-left:1px solid var(--qe-line);padding:26px 22px;min-height:calc(100dvh - 174px)}.qe-properties h2{font-size:17px;margin:0 0 6px;letter-spacing:0}.qe-properties>p{font-size:12px;color:#72849a;line-height:1.6;margin:0 0 26px}.qe-properties label,.qe-property-label{font-size:12px;font-weight:650;display:block}.qe-properties select,.qe-properties textarea{background:#fff;border-color:#d6e0eb;font-size:13px;margin:8px 0 20px;padding:12px;color:var(--qe-ink)}.quiz-editor .qe-text-button{font-size:11px;text-decoration:underline;background:transparent;color:#1264df;padding:0;text-align:start;line-height:1.6}.qe-property-divider{border-top:1px solid #e5ebf2;margin:24px 0}.qe-properties .qe-property-note{font-size:11px;color:#7a8b9f;line-height:1.6;margin:-10px 0 0}.qe-order{display:flex;gap:8px;margin-top:10px}.qe-order button{font-size:11px;padding:10px;flex:1}.qe-question-actions{display:grid;gap:9px;margin-top:26px}.qe-question-actions button{font-size:12px;padding:12px}.quiz-editor .qe-delete{color:#b73544;border:1px solid #edcdd2;background:#fff6f7}.qe-undo{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:20px;font-size:12px;color:#4a657e}.qe-undo button{padding:6px 10px;font-size:12px;background:#e3edfd;color:#1259b3}
@media(min-width:1600px){.qe-layout{grid-template-columns:248px minmax(340px,1fr) 300px}.qe-canvas{padding-inline:max(36px,calc((100vw - 1400px)/3))}}
@media(max-width:1100px){.qe-layout{grid-template-columns:180px minmax(300px,1fr) 235px}.qe-properties{padding:22px 16px}.qe-heading{gap:12px}.qe-studio{display:none}.qe-draft-label{display:none}.qe-canvas{padding:24px 18px}.qe-answer{gap:8px}.qe-answer-shape{width:28px;font-size:17px}.quiz-editor .qe-answer textarea{font-size:14px}}
@media(max-width:850px){.qe-layout{grid-template-columns:164px minmax(0,1fr)}.qe-properties{grid-column:2;border-top:1px solid var(--qe-line);min-height:0}.qe-rail{grid-row:1 / span 2}.qe-toolbar{padding:12px;gap:8px}.qe-toolbar>button{padding:12px;font-size:12px}.quiz-editor #title{font-size:16px}.qe-answers{gap:10px}}
@media(max-width:600px){.qe-layout{display:flex;flex-direction:column}.qe-rail{position:static;max-height:none;height:auto;width:100%;padding:14px;border-right:0;border-bottom:1px solid var(--qe-line);display:grid;grid-template-columns:1fr auto;gap:10px}.qe-rail-hint{display:none}.qe-thumbnails{grid-column:1 / -1;grid-row:2;display:flex;flex-direction:row;padding:3px;overflow-x:auto;min-height:0;max-height:160px}.qe-thumbnails>[role=listitem]{flex:0 0 145px}.qe-thumb-visual{display:none}.qe-thumb-title{min-height:34px}.qe-rail-title{justify-content:flex-start;gap:12px}.qe-add{grid-column:2;grid-row:1;width:auto;font-size:12px;padding:10px 14px}.qe-resources{grid-column:1 / -1;border:0;padding:0}.qe-resources .actions{grid-template-columns:1fr 1fr}.qe-resources summary{font-size:11px}.qe-canvas,.qe-properties{width:100%;padding:22px 16px}.qe-toolbar{flex-wrap:wrap;position:static}.qe-heading{flex-basis:100%}.quiz-editor #title{max-width:none}.qe-toolbar>button{flex:1}.qe-canvas-top{margin-bottom:16px}.qe-media{min-height:170px;padding:14px}.qe-media input[type=file]{max-width:100%;font-size:11px}.qe-answers{grid-template-columns:1fr}.qe-answer{min-height:82px}.quiz-editor .qe-answer textarea{font-size:16px}.qe-stepper{gap:8px}.qe-stepper button{padding:10px;font-size:11px}.qe-properties{border-left:0}.qe-properties h2{font-size:19px}.qe-properties textarea{min-height:110px}.qe-order button,.qe-question-actions button{font-size:13px}.qe-stepper>span{font-size:11px}}
@media(min-width:851px){.qe-layout{height:calc(100dvh - 174px);min-height:0;align-items:stretch}.qe-rail{position:static;height:auto;max-height:none}.qe-canvas,.qe-properties{overflow-y:auto;min-height:0;scrollbar-gutter:stable}.qe-properties{min-height:0}}
.qe-type-dialog{width:min(980px,calc(100vw - 32px));max-height:calc(100dvh - 48px);padding:0;border:1px solid #d9e3ef;border-radius:18px;box-shadow:0 24px 90px #12274640;background:#fff;color:#183450;overflow:hidden;font-family:inherit}.qe-type-dialog::backdrop{background:#10254180;backdrop-filter:blur(3px)}.qe-picker-heading{display:flex;justify-content:space-between;align-items:center;padding:22px 26px 18px;gap:20px}.qe-picker-heading h2{font-size:24px;margin:7px 0 0;letter-spacing:-.4px}.qe-picker-close{background:#eef3fa;color:#38536f;width:36px;height:36px;display:grid;place-items:center;padding:0;border-radius:50%;font-size:25px}.qe-picker-tabs{display:grid;grid-template-columns:repeat(4,1fr);border-block:1px solid #dce5ef;background:#f7f9fc}.qe-picker-tabs button{background:none;color:#63788f;border-radius:0;font-size:14px;padding:17px 10px;display:flex;align-items:center;justify-content:center;gap:10px;border-bottom:3px solid transparent}.qe-picker-tabs button>span{font-size:22px;line-height:1}.qe-picker-tabs button[aria-selected=true]{background:#edf4ff;color:#1264df;border-bottom-color:#1264df}.qe-picker-content{max-height:calc(100dvh - 227px);overflow:auto;padding:18px 26px 26px;scrollbar-gutter:stable}.qe-picker-help{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:12px;color:#627993;line-height:1.6;margin:0 0 22px}.qe-picker-plan{color:#246241;font-weight:650;background:#edf8ec;border-radius:12px;padding:2px 10px}.qe-type-group{margin-bottom:24px}.qe-type-group h3{font-size:17px;color:#38516c;margin:0 0 12px}.qe-type-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.qe-type-card{position:relative;background:#f6f8fc;border:1px solid #e0e7f0;border-radius:11px;min-width:0}.qe-type-card:hover{border-color:#a4c3ed;background:#eff5ff}.qe-type-select{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;width:100%;height:139px;padding:14px 28px 13px;background:transparent!important;color:#243e5a!important;box-shadow:none!important}.qe-type-select strong{font-size:14px;text-align:center;line-height:1.4;overflow-wrap:anywhere}.qe-type-select small{font-size:10px;color:#697f95;text-align:center;line-height:1.4}.qe-type-select:disabled{opacity:.52;cursor:not-allowed}.qe-type-select svg{flex-shrink:0;transition:transform .15s}.qe-type-select:not(:disabled):hover svg{transform:rotate(-5deg)}.qe-type-star{position:absolute;inset-inline-end:9px;top:9px;border:0;border-radius:50%;width:25px;height:25px;padding:0;display:grid;place-items:center;background:#147b82!important;color:#fff!important;font-size:16px;box-shadow:0 0 0 3px #fff!important}.qe-type-star:hover{background:#0a5e67!important}.qe-picker-warning{font-size:12px;color:#815613;background:#fff5db;border:1px solid #f1d99d;border-radius:9px;padding:12px;line-height:1.7}.qe-picker-resource{text-align:center;padding:30px 32px;max-width:660px;margin:auto}.qe-picker-resource>span{display:grid;place-items:center;width:62px;height:62px;border-radius:17px;background:#e9f1ff;color:#1264df;font-size:32px;margin:0 auto 18px}.qe-picker-resource h3{font-size:22px;margin:0 0 12px}.qe-picker-resource p{font-size:14px;color:#61788f;line-height:1.9;margin:0 0 24px}.qe-picker-resource .actions{justify-content:center;gap:20px}.qe-picker-resource a{font-size:14px;color:#1264df}.qe-type-upgrade{margin:18px 0 0;padding:18px;border:1px solid #c3d7f4;background:#eef5ff;border-radius:12px}.qe-type-upgrade strong{font-size:14px;color:#1754a5}.qe-type-upgrade p{font-size:13px;line-height:1.7;margin:9px 0 14px;color:#476484}.qe-type-upgrade a{display:inline-block;background:#1264df;color:#fff;text-decoration:none;padding:11px 16px;border-radius:8px;font-size:13px;font-weight:650}.qe-type-upgrade small{display:block;font-size:11px;color:#627c98;margin-top:9px}.qe-type-dialog :is(button,a):focus-visible{outline:3px solid #1264df;outline-offset:3px}.qe-type-dialog button:hover{transform:none}@media(max-width:650px){.qe-type-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 24px);border-radius:13px}.qe-picker-heading{padding:17px}.qe-picker-heading h2{font-size:21px}.qe-picker-tabs button{font-size:11px;gap:5px;padding:14px 4px}.qe-picker-tabs button>span{font-size:18px}.qe-picker-content{padding:16px;max-height:calc(100dvh - 190px)}.qe-type-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.qe-type-select{height:136px;padding-inline:18px}.qe-type-select strong{font-size:13px}.qe-picker-resource{padding:24px 2px}.qe-picker-resource h3{font-size:20px}.qe-picker-resource p{font-size:13px}}
