/* Authoring and quiz controls share geometry across staff and learner views. */
.learning-tabs{display:flex;gap:6px;border-bottom:1px solid var(--line);margin:-8px 0 24px;padding-bottom:10px;overflow-x:auto}.learning-tabs button{padding:10px 15px;min-height:44px;border-radius:9px;white-space:nowrap;font-weight:500}.learning-tabs [aria-current=page]{color:var(--red);background:var(--red-soft)}
.text-action{display:inline-flex;align-items:center;gap:8px;color:var(--red);font-weight:500;min-height:44px;padding:7px 0}.text-action .icon{width:17px}.assignment-builder{max-width:940px}.assignment-builder .dialog-actions{position:sticky;bottom:0;z-index:2;background:#fff;flex-wrap:wrap}.assignment-builder .field:has(#question-editor)>label{display:none}.format-picker{border:1px solid #e2e5ed;padding:20px;border-radius:14px;background:#f9fafc}.format-picker-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.format-picker-title h3{font-size:16px}.format-picker-title>span{font-size:12px;color:var(--muted)}.format-group{display:grid;grid-template-columns:135px 1fr;align-items:start;gap:10px;margin-top:10px}.format-group>span{font-size:12px;font-weight:500;padding-top:14px;color:var(--muted)}.format-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.format-card{display:flex;align-items:center;gap:8px;padding:10px 9px;border:1px solid #dfe3ec;background:#fff;border-radius:10px;text-align:left;min-height:53px;transition:transform .16s,border-color .16s,box-shadow .16s}.format-card>b{width:29px;height:29px;display:grid;place-items:center;border-radius:7px;flex-shrink:0;background:#f6e5eb;color:#b63752;font-size:13px}.format-group:nth-child(3) .format-card>b{background:#e3f1ef;color:#246e66}.format-group:nth-child(4) .format-card>b{background:#ede6fa;color:#674b9d}.format-group:nth-child(5) .format-card>b{background:#fcf0d7;color:#946221}.format-card>span{font-size:11px;font-weight:500;line-height:1.5;flex:1}.format-card>.icon{width:13px}.format-card:hover{border-color:#c66c80;transform:translateY(-2px);box-shadow:0 3px 0 #e7dae0}.format-card:active{transform:translateY(1px);box-shadow:none}.question-stack{display:grid;gap:20px;margin-top:20px}.question-editor-card{background:white;border:1px solid #dfe3eb;border-radius:14px;padding:20px}.question-card-head{margin-bottom:18px}.question-card-head h3{display:flex;align-items:center;gap:10px;font-size:15px}.question-card-head h3>span{width:29px;height:29px;border-radius:8px;background:#edf0f6;display:grid;place-items:center}.question-card-head>div{display:flex;gap:2px}.question-card-head .icon-btn{min-width:35px;width:35px;min-height:38px;height:38px}.question-editor-card small{font-size:12px;color:var(--muted)}.question-editor-card .field{margin-bottom:17px}.question-preview{border-top:1px dashed var(--line);margin-top:12px;padding-top:22px}.question-preview>fieldset{border:0;padding:0;margin:0;min-width:0}
.quiz-dialog{width:min(920px,calc(100% - 32px));max-width:920px;border:2px solid #e5e5ef;border-radius:24px;background:#fffefa;color:#30354f}.quiz-dialog .dialog-head{padding:18px 28px;align-items:center}.quiz-dialog .dialog-head h2{font-size:16px;max-width:700px;overflow-wrap:anywhere}.quiz-dialog .dialog-head>.icon-btn{border-radius:50%;background:#f1f2f7}.quiz-topline{display:grid;grid-template-columns:auto minmax(70px,1fr) auto;align-items:center;gap:18px;padding:18px 30px;font-size:12px;color:#64718a}.quiz-topline progress,.mini-progress progress{appearance:none;width:100%;height:13px;border:0;border-radius:20px;overflow:hidden;background:#eaeaf2}.quiz-topline progress::-webkit-progress-bar,.mini-progress progress::-webkit-progress-bar{background:#eaeaf2}.quiz-topline progress::-webkit-progress-value,.mini-progress progress::-webkit-progress-value{background:#43a990;border-radius:20px;transition:width .25s}.quiz-topline progress::-moz-progress-bar{background:#43a990;border-radius:20px}.quiz-stage{padding:25px 45px 34px;min-height:340px;overflow-wrap:anywhere;animation:question-enter .23s ease-out}.quiz-question-label{display:flex;gap:14px;align-items:center;flex-wrap:wrap;font-size:11px;font-weight:700;letter-spacing:1px;color:#9273b5;margin-bottom:22px}.quiz-question-label span{color:#62718b;font-weight:500;letter-spacing:0}.worksheet-fields{margin:0;border:0;padding:0;min-width:0}.worksheet-question{border:0;padding:0;margin:0;min-width:0}.worksheet-question legend{font-size:25px;line-height:1.5;font-weight:700;letter-spacing:-.4px;float:none;padding:0;margin-bottom:30px;max-width:100%}.quiz-choices{display:grid;grid-template-columns:1fr 1fr;gap:15px}.quiz-choice{position:relative;display:flex;align-items:center;gap:13px;border:2px solid #e1e2ec;border-radius:16px;background:#fff;padding:17px;min-height:74px;cursor:pointer;box-shadow:0 4px 0 #e1e2ec;transition:transform .12s,box-shadow .12s,background .12s;color:#30354f}.quiz-choice input{position:absolute;width:1px;height:1px;opacity:0;clip-path:inset(50%)}.quiz-choice .choice-letter{display:grid;place-items:center;font-weight:700;width:32px;height:32px;flex-shrink:0;background:#fff0dd;border-radius:9px;color:#946022}.choice-1 .choice-letter{background:#e9e3ff;color:#7562ae}.choice-2 .choice-letter{background:#dff2ee;color:#2d8170}.choice-3 .choice-letter{background:#ffe3ea;color:#b14464}.choice-tick{margin-left:auto;visibility:hidden;color:#27816e;font-weight:700}.quiz-choice:has(:checked){background:#eaf8f2;border-color:#55ac94;box-shadow:0 4px 0 #55ac94}.quiz-choice:has(:checked) .choice-tick{visibility:visible}.quiz-choice:active{transform:translateY(4px);box-shadow:0 0 0 #e1e2ec}.quiz-choice:has(:focus-visible){outline:3px solid #7a6dca;outline-offset:4px}.worksheet-question input:not([type=radio],[type=checkbox]),.worksheet-question select,.worksheet-question textarea{width:100%;border:2px solid #dedfea;border-radius:13px;padding:14px;background:#fff;font:inherit;min-height:52px;resize:vertical}.inline-sentence{font-size:24px;line-height:2.7;font-weight:500}.inline-sentence input:not([type=radio],[type=checkbox]),.inline-sentence select{display:inline-block;width:180px;max-width:100%;font-size:20px;margin:0 8px;vertical-align:baseline;min-height:52px;padding:8px 10px}.match-board{display:grid;grid-template-columns:1fr 1fr;gap:25px}.match-board>div{display:grid;gap:12px;align-content:start}.match-tile{display:flex;gap:12px;align-items:center;justify-content:space-between;text-align:left;border:2px solid #dedfea;border-radius:13px;box-shadow:0 3px 0 #dedfea;min-height:65px;padding:13px;background:#fff;overflow-wrap:anywhere}.match-tile b{display:grid;place-items:center;width:26px;height:26px;background:#f0edf8;border-radius:7px;flex-shrink:0;font-size:12px}.match-tile>span{flex:1}.match-tile small{display:block;color:#29745f;margin-top:4px;font-size:11px}.match-tile.selected{border-color:#9781d4;background:#f4efff;box-shadow:0 3px 0 #9781d4}.match-tile.paired{border-color:#9fcdbf;background:#edf8f3;box-shadow:0 3px 0 #9fcdbf}.match-tile:active{transform:translateY(3px);box-shadow:none}.interaction-hint{font-size:12px;color:#65708a;margin-top:20px}.answer-tray{display:flex;flex-wrap:wrap;gap:10px;padding:18px;min-height:100px;border:2px dashed #d7d8e6;border-radius:15px;background:#f9f8fe;align-content:flex-start}.tray-placeholder{color:#68748b;font-size:14px;align-self:center}.quiz-word-bank{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;margin-top:24px}.word-tile{display:inline-flex;align-items:center;gap:9px;min-height:48px;padding:10px 17px;background:#fff;border:2px solid #dedfea;border-radius:12px;box-shadow:0 4px 0 #dedfea;font-size:17px;font-weight:500;transition:transform .12s,box-shadow .12s}.word-tile.selected{color:#624497;background:#f1eaff;border-color:#b7a6db;box-shadow:0 4px 0 #b7a6db}.word-tile.selected span{font-size:12px}.word-tile:active{transform:translateY(4px);box-shadow:none}.word-tile:disabled{opacity:.25;box-shadow:none;transform:translateY(4px)}.blank-slot{display:inline-block;min-width:80px;min-height:50px;padding:0 12px;margin:0 6px;border:2px dashed #c7b9e5;border-radius:10px;line-height:1.8;font:inherit;color:#634795;background:#f1ebff}.blank-slot.selected{outline:2px solid #8e73c5;outline-offset:2px}.quiz-instructions{font-size:13px;color:#65708a;margin-bottom:22px}.quiz-instructions summary{cursor:pointer;min-height:35px}.quiz-instructions p{white-space:pre-wrap}.quiz-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 30px;border-top:2px solid #eeeef4;background:#fff;position:sticky;bottom:0;z-index:1}.quiz-footer>div{display:flex;gap:12px}.quiz-footer>button .icon{transform:rotate(180deg)}.quiz-footer .btn,.quiz-result .btn{border:2px solid #dedfea;border-radius:13px;min-height:48px;font-weight:700;box-shadow:0 4px 0 #dedfea;font-size:13px;padding:10px 17px;background:white;transition:transform .12s,box-shadow .12s}.quiz-footer .btn-primary,.quiz-result .btn-primary{background:#c82c47;color:#fff;border-color:#c82c47;box-shadow:0 4px 0 #912239}.quiz-footer .btn:active,.quiz-result .btn:active{transform:translateY(4px);box-shadow:none}.question-jumps{display:flex;flex-wrap:wrap;gap:12px;margin:26px 0}.question-jumps button{width:58px;height:54px;border:2px solid #dedfea;border-radius:12px;background:#fff;box-shadow:0 3px 0 #dedfea}.question-jumps button.answered{border-color:#98cbbc;background:#e9f8f0;color:#266f5a}.review-note{font-size:14px;color:#695b80}.quiz-result{text-align:center;padding:38px 25px 45px}.quiz-result h2{font-size:30px;margin:9px 0 15px}.quiz-result .result-actions{display:flex;justify-content:center;gap:14px;margin-top:30px}.quiz-result #worksheet-status strong{font-size:54px;color:#2a8972}.quiz-result #worksheet-status small{font-size:18px}.quiz-result>p{color:#626c85;font-size:14px}.completion-art{width:130px;height:130px;display:grid;place-items:center;background:#fff0c6;color:#e5a626;font-size:85px;border-radius:40%;position:relative;margin:0 auto 25px;animation:badge-pop .5s cubic-bezier(.18,.8,.35,1.3)}.completion-art span{position:absolute;font-size:25px;color:#9c78d5;left:-20px;top:14px}.completion-art span:nth-child(2){left:auto;right:-23px;top:5px;color:#e9657b}.completion-art span:nth-child(3){left:auto;right:-14px;top:100px;color:#56b99a}
@keyframes question-enter{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes badge-pop{from{opacity:0;transform:scale(.55) rotate(-15deg)}to{opacity:1;transform:scale(1) rotate(0)}}
@media(max-width:760px){.format-picker{padding:14px}.format-group{grid-template-columns:1fr;gap:7px}.format-group>span{padding-top:2px}.format-options{grid-template-columns:repeat(2,minmax(0,1fr))}.format-card{padding:8px}.format-card>span{font-size:11px}.question-editor-card{padding:14px}.question-card-head{align-items:flex-start;gap:8px;flex-wrap:wrap}.question-card-head h3{font-size:14px}.question-editor-card .field-grid{grid-template-columns:1fr 1fr}.quiz-dialog{width:100%;max-height:100dvh;height:100dvh;border:0;border-radius:0;margin:0;max-width:100%}.quiz-dialog .dialog-head{padding:14px 18px}.quiz-dialog .dialog-head h2{font-size:14px}.quiz-dialog #worksheet-form{min-height:calc(100dvh - 73px);display:flex;flex-direction:column}.quiz-topline{grid-template-columns:1fr auto;gap:10px;padding:18px 20px}.quiz-topline progress{grid-row:2;grid-column:1/-1}.quiz-topline #worksheet-status{text-align:right;max-width:180px}.quiz-stage{flex:1;padding:24px 22px;min-height:260px}.worksheet-question legend{font-size:22px;margin-bottom:25px}.quiz-choices{grid-template-columns:1fr;gap:14px}.quiz-choice{min-height:65px;padding:13px}.quiz-footer{padding:16px 18px 22px;flex-wrap:wrap;gap:14px}.quiz-footer .btn{font-size:12px;padding:9px 12px;min-height:46px}.quiz-footer>div{gap:8px;flex:1;justify-content:flex-end}.quiz-footer .quiz-save{border:0;box-shadow:none;padding:8px;color:#65718a}.match-board{gap:13px}.match-tile{padding:11px 9px;font-size:14px;gap:7px;min-height:66px}.inline-sentence{font-size:22px}.word-tile{font-size:16px}.quiz-result{margin:auto 0}.quiz-result h2{font-size:26px}}
@media(prefers-reduced-motion:reduce){.format-card,.quiz-choice,.word-tile,.quiz-footer .btn,.quiz-result .btn,.quiz-topline progress::-webkit-progress-value{transition:none}.quiz-stage,.completion-art{animation:none}}
.quiz-choice input{inset:0;width:100%;height:100%;clip-path:none;margin:0;cursor:pointer;z-index:1}.quiz-choice>span{pointer-events:none}
.quiz-footer .quiz-save{white-space:nowrap}.score-caption{display:block;font-size:12px;color:#68758a;margin-bottom:10px}
