.assessment-builder-panel{margin-top:24px}.builder-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.builder-links a{display:flex;flex-direction:column;gap:5px;padding:17px;border:1px solid var(--line);border-radius:14px;color:var(--navy);text-decoration:none}.builder-links span{font-size:.68rem;color:var(--purple);font-weight:900;text-transform:uppercase;letter-spacing:.08em}.builder-links b{margin-top:5px;color:var(--purple);font-size:.78rem}.question-editor-layout{display:grid;grid-template-columns:minmax(320px,.8fr) minmax(420px,1.2fr);gap:24px;align-items:start}.question-admin-list{display:grid;gap:14px}.question-admin-card{display:flex;justify-content:space-between;gap:20px;padding:18px;border:1px solid var(--line);border-radius:15px}.question-admin-card h3{margin:6px 0 12px}.question-admin-card p{margin:7px 0}.danger-text{color:#a22626}.assessment-form,.assessment-results{display:grid;gap:18px}.assessment-question{padding:28px;background:#fff;border:1px solid var(--line);border-radius:20px}.assessment-question h2{font-size:1.25rem;line-height:1.45;margin:8px 0 22px}.answer-options{display:grid;gap:10px}.answer-options label{display:flex;align-items:center;gap:11px;margin:0;padding:13px 15px;border:1px solid var(--line);border-radius:12px;cursor:pointer}.answer-options input{width:auto;margin:0}.assessment-submit{justify-self:end}.result.correct{border-color:#a9dfd1}.result.incorrect{border-color:#f0c2c2}.result-heading{display:flex;justify-content:space-between}.result-heading span{font-weight:900}.result.correct .result-heading span{color:#08765a}.result.incorrect .result-heading span{color:#a22626}.explanation{margin-top:18px;padding:16px;border-radius:13px;background:var(--lav)}.explanation p{margin:7px 0 0;line-height:1.6}.result-actions{display:flex;justify-content:flex-end;gap:12px}.success-box{padding:18px;border:1px solid #a9dfd1;border-radius:14px;background:#edfbf6;color:#08765a;margin:20px 0}
.assessment-session-bar{max-width:920px;margin:0 auto 16px;padding:15px 18px;border:1px solid var(--line);border-radius:14px;background:#fff}.assessment-session-bar>div:first-child{display:flex;justify-content:space-between;color:var(--muted);font-size:.76rem;font-weight:800}.assessment-session-progress{height:7px;margin-top:10px;border-radius:99px;background:#eeeaf8;overflow:hidden}.assessment-session-progress span{display:block;height:100%;background:var(--purple);transition:width .25s}
@media(max-width:800px){.builder-links,.question-editor-layout{grid-template-columns:1fr}.assessment-question{padding:20px}.result-actions{align-items:stretch;flex-direction:column}}

/* V50: clear continuation after a submitted assessment */
.assessment-next-card{display:flex;align-items:center;justify-content:space-between;gap:28px;margin-top:8px;padding:26px 28px;border:1px solid #d9cdf6;border-radius:20px;background:linear-gradient(115deg,#f8f5ff 0%,#fff 70%);box-shadow:0 10px 28px rgba(46,34,84,.06)}
.assessment-next-copy .eyebrow{margin:0 0 6px;color:var(--purple)}
.assessment-next-copy h2{margin:0;color:var(--navy);font-size:1rem}
.assessment-next-copy h3{margin:8px 0 4px;color:var(--navy);font-size:1.4rem}
.assessment-next-copy p:not(.eyebrow){margin:0;color:var(--muted);font-size:.82rem}
.assessment-next-card>.btn{flex:0 0 auto;min-width:230px;justify-content:center;text-align:center}
.assessment-results>.result-actions{margin-top:0;flex-wrap:wrap}
@media(max-width:800px){.assessment-next-card{align-items:stretch;flex-direction:column;padding:21px 18px}.assessment-next-card>.btn{width:100%;min-width:0}.assessment-results>.result-actions .btn{width:100%;text-align:center;justify-content:center}}

/* v100 student maths and explanation formatting */
.assessment-question h2 .katex,.answer-options .katex,.explanation .katex,.assessment-explanation .katex{font-size:1.08em}
.answer-options label,.guided-options label{font-weight:400}.answer-options label>span,.guided-options label>span,.answer-options .xl-math-text,.guided-options .xl-math-text{font-weight:400}.answer-options .katex,.guided-options .katex{font-weight:400}.compact-preview-banner{max-width:1040px;margin:0 auto 16px;padding:10px 14px;font-size:.78rem}
.explanation p{white-space:normal;line-height:1.75}

/* v106: Learn-style immediate feedback for independent Practice */
.practice-live-player{max-width:920px;margin:0 auto}.practice-live-player .practice-live-question{display:none;padding:0;overflow:visible}.practice-live-player .practice-live-question.active-question{display:block}.practice-question-toolbar{position:sticky;top:10px;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 18px;border:1px solid var(--line);border-radius:16px 16px 0 0;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);box-shadow:0 8px 24px rgba(35,25,70,.08)}.practice-question-leading{display:flex;align-items:center;gap:11px;min-width:0}.practice-question-leading strong{color:var(--muted);font-size:.9rem}.practice-previous-icon{width:34px;height:34px;flex:0 0 34px;display:grid;place-items:center;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--purple);font:inherit;font-size:1.55rem;line-height:1;cursor:pointer}.practice-previous-icon:hover:not(:disabled){border-color:#cfc2ed;background:#f5f0ff}.practice-previous-icon:disabled{opacity:.28;cursor:default}.practice-check-action{min-width:156px;white-space:nowrap}.practice-check-action:disabled{opacity:.45;cursor:not-allowed;box-shadow:none;transform:none}.practice-question-body{position:relative;padding:24px 32px 30px}.practice-question-body>small{color:var(--muted);font-size:.68rem;font-weight:900;letter-spacing:.08em}.practice-live-player .assessment-question h2{margin:9px 0 20px;font-size:1.45rem;line-height:1.45}.practice-live-player .answer-options{gap:7px}.practice-live-player .answer-options label{display:block;margin:0;padding:0;border:0}.practice-live-player .answer-options input{position:absolute;opacity:0}.practice-live-player .answer-options label>span{position:relative;display:block;padding:11px 44px 11px 15px;border:1px solid var(--line);border-radius:11px;line-height:1.35;cursor:pointer;transition:border-color .14s,background .14s,box-shadow .14s,transform .12s;overflow:visible}.practice-live-player .answer-options label>span:after{content:'✓';position:absolute;right:14px;top:50%;width:23px;height:23px;display:grid;place-items:center;border-radius:50%;background:var(--purple);color:#fff;font-size:.72rem;font-weight:900;opacity:0;transform:translateY(-50%) scale(.65);transition:.14s}.practice-live-player .answer-options input:checked+span{border-color:var(--purple);background:#f5f0ff;box-shadow:0 0 0 2px rgba(113,58,239,.12);transform:translateY(-1px)}.practice-live-player .answer-options input:checked+span:after{opacity:1;transform:translateY(-50%) scale(1)}.practice-live-question.is-checked .answer-options{pointer-events:none}.practice-live-question.is-correct .answer-options input:checked+span{border-color:#20b980;background:#eafbf5;box-shadow:0 0 0 2px rgba(32,185,128,.12)}.practice-live-question.is-correct .answer-options input:checked+span:after{background:#20b980}.practice-live-question.is-wrong .answer-options input:checked+span{border-color:#ef5263;background:#fff1f2;box-shadow:0 0 0 2px rgba(239,82,99,.1)}.practice-live-question.is-wrong .answer-options input:checked+span:after{content:'×';background:#ef5263}.practice-answer-label{display:grid;gap:8px;color:var(--navy);font-size:.78rem;font-weight:850}.practice-answer-field{width:100%;padding:15px 16px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--navy);font:inherit;font-size:1.05rem}.practice-answer-field:focus{outline:0;border-color:var(--purple);box-shadow:0 0 0 3px rgba(113,58,239,.1)}.practice-answer-field[readonly]{background:#f7f8fb;color:var(--muted)}.practice-live-result{margin-top:24px;padding:20px 22px;border:1px solid;border-radius:16px}.practice-live-result.correct{border-color:#65d9b5;background:#eafbf5;color:#075f49}.practice-live-result.wrong{border-color:#f0a1a6;background:#fff2f3;color:#8d2630}.practice-live-result-title{font-size:1.15rem;font-weight:900}.practice-correct-answer{margin:12px 0 0}.assessment-explanation{margin-top:18px;padding-top:17px;border-top:1px solid rgba(60,70,90,.14);color:#25324a}.assessment-explanation>strong{display:block;margin-bottom:10px}.assessment-explanation p{margin:0;line-height:1.7}.assessment-explanation ol{list-style:none;counter-reset:practice-steps;display:grid;gap:10px;margin:0;padding:0}.assessment-explanation li{counter-increment:practice-steps;position:relative;min-height:39px;padding:9px 12px 9px 47px;line-height:1.55}.assessment-explanation li:before{content:counter(practice-steps);position:absolute;left:0;top:4px;width:31px;height:31px;display:grid;place-items:center;border-radius:50%;background:#d7f6ec;color:#087f5b;font-weight:900}.assessment-review-list .assessment-question{padding:22px 24px}.assessment-review-list .assessment-explanation{padding:17px 18px;border:0;border-radius:14px;background:#f6f1ff}.assessment-review-list .assessment-explanation>strong{color:var(--purple)}.practice-confetti{position:absolute;inset:0;z-index:5;overflow:visible;pointer-events:none}.practice-confetti-piece{position:absolute;left:50%;top:50%;color:var(--c);font-size:17px;line-height:1;text-shadow:0 1px 0 #fff,0 2px 4px rgba(56,24,80,.18);animation:practiceTreat .82s cubic-bezier(.17,.76,.34,1) forwards}.practice-confetti-piece.sprinkle{width:7px;height:20px;border-radius:999px;background:var(--c);font-size:0}.practice-confetti-piece.dot{width:9px;height:9px;border-radius:50%;background:var(--c);font-size:0}.practice-confetti-piece.gem,.practice-confetti-piece.candy{font-size:18px}.practice-confetti-piece.star{font-size:19px}@keyframes practiceTreat{0%{opacity:0;transform:translate(-50%,-50%) scale(.25) rotate(0)}18%{opacity:1}100%{opacity:0;transform:translate(calc(-50% + var(--x)),calc(-50% + var(--y))) scale(1.05) rotate(var(--r))}}
@media(max-width:700px){.practice-question-toolbar{top:6px;padding:11px 12px}.practice-check-action{min-width:auto;padding:11px 14px}.practice-question-body{padding:20px 18px 24px}.practice-question-leading strong{font-size:.82rem}.practice-previous-icon{width:30px;height:30px;flex-basis:30px}.practice-live-player .assessment-question h2{font-size:1.2rem}.assessment-review-list .assessment-question{padding:19px 17px}}
.practice-previous-icon:disabled{opacity:.48;background:#f8f6fc}

/* v138: compact responsive MCQs and student maths keyboard */
.answer-options.options-compact,.guided-options.options-compact{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.answer-options.options-stacked,.guided-options.options-stacked{grid-template-columns:1fr;gap:9px}
.practice-live-player .answer-options label>span.student-option-card,.guided-options label>span.student-option-card{display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:11px;min-height:56px;padding:9px 44px 9px 10px}
.student-option-letter{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;background:#f2edff;color:var(--purple);font-size:.78rem;font-weight:950;transition:.14s}
.student-option-copy{min-width:0;font-weight:650;line-height:1.35}
.answer-options input:checked+.student-option-card .student-option-letter,.guided-options input:checked+.student-option-card .student-option-letter{background:var(--purple);color:#fff}
.practice-live-question.is-correct .answer-options input:checked+.student-option-card .student-option-letter,.guided-question-card.is-correct .guided-options input:checked+.student-option-card .student-option-letter{background:#20b980}
.practice-live-question.is-wrong .answer-options input:checked+.student-option-card .student-option-letter,.guided-question-card.is-wrong .guided-options input:checked+.student-option-card .student-option-letter{background:#ef5263}
.practice-question-body,body .guided-question-card .guided-question-body{padding:21px 26px 25px}
.practice-live-player .assessment-question h2,body .guided-question-card .guided-question-body h2{margin:4px 0 17px;font-size:1.3rem;line-height:1.42}
.student-math-answer{display:grid;gap:8px;margin-top:14px}
.student-answer-label,.student-math-answer>.practice-answer-label{color:var(--navy);font-size:.76rem;font-weight:850}
.student-math-entry{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:stretch}
.student-math-entry>.practice-answer-field,.student-math-entry>.guided-answer-input{margin:0;min-height:58px;border:2px solid #dfe3ea;border-radius:14px;padding:12px 15px;background:#fff;font-size:1.08rem}
.student-math-field{display:block;width:100%;min-height:58px;box-sizing:border-box;border:2px solid #dfe3ea;border-radius:14px;padding:9px 13px;background:#fff;color:#20293a;font-size:1.5rem;line-height:1.25;--caret-color:#6b36d8;--selection-background-color:rgba(108,53,212,.14);--contains-highlight-background-color:rgba(108,53,212,.08)}
.student-math-field:focus-within{border-color:#8e6be0;box-shadow:0 0 0 3px rgba(116,68,220,.1)}
.student-math-field::part(virtual-keyboard-toggle),.student-math-field::part(menu-toggle){display:none}
.student-keyboard-toggle{width:58px;min-width:58px;border:1px solid #c9b7ed;border-radius:14px;background:linear-gradient(180deg,#fbf9ff,#eee8fb);color:#6034b4;padding:0;display:flex;align-items:center;justify-content:center;font:inherit;font-size:.76rem;font-weight:700;line-height:1.15;cursor:pointer;box-shadow:0 3px 0 #c9b8e8,0 8px 18px rgba(64,33,123,.08);transition:transform .12s,box-shadow .12s,background .12s}
.student-keyboard-toggle:hover,.student-keyboard-toggle[aria-expanded=true]{background:linear-gradient(180deg,#f3edff,#e6dcfa);border-color:#9e7fde}.student-keyboard-toggle:active{transform:translateY(3px);box-shadow:0 0 0 #c9b8e8}
.student-keyboard-toggle svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.student-keyboard-toggle strong{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* v139: XL Revise-owned compact maths keyboard (the MathLive default keyboard is never shown) */
body.xl-keyboard-open{padding-bottom:var(--xl-keyboard-height,250px)}
.xl-math-keyboard[hidden]{display:none!important}
.xl-math-keyboard{position:fixed;z-index:400;left:0;right:0;bottom:0;background:#111827;color:#fff;border-top:1px solid #303a4b;box-shadow:0 -12px 32px rgba(15,23,42,.24);padding:6px 14px calc(6px + env(safe-area-inset-bottom))}
.xl-math-keyboard-inner{width:min(680px,100%);margin:0 auto}
.xl-math-keyboard-head{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:9px;margin-bottom:5px}
.xl-math-keyboard-head>strong{font-size:.76rem;letter-spacing:.01em}
.xl-math-keyboard-tabs{display:flex;justify-content:center;gap:5px}
.xl-math-keyboard-tabs button,.xl-keyboard-close{min-height:30px;border:1px solid #3b4659;border-radius:7px;background:linear-gradient(180deg,#303c51,#263145);color:#e8ebf2;padding:4px 10px;font:inherit;font-size:.66rem;font-weight:800;cursor:pointer;box-shadow:0 2px 0 #080d16}
.xl-math-keyboard-tabs button:hover,.xl-math-keyboard-tabs button.is-active{background:#7441dc;border-color:#8e63e7;color:#fff}
.xl-keyboard-close{background:transparent;color:#dce2ec}
.xl-keyboard-close:hover{background:#303b4e;color:#fff}
.xl-math-key-grid{display:grid;grid-template-columns:repeat(8,minmax(42px,1fr));gap:4px;max-height:150px;overflow:auto;overscroll-behavior:contain;padding:1px 1px 3px}
.xl-math-key-grid.layout-abc{grid-template-columns:repeat(10,minmax(40px,1fr))}
.xl-math-key{min-height:31px;border:1px solid #d8dce3;border-radius:7px;background:linear-gradient(180deg,#fff,#edf0f5);color:#172033;box-shadow:0 1px 0 rgba(255,255,255,.9) inset,0 2px 0 #9099a8,0 3px 6px rgba(0,0,0,.11);padding:3px 6px;font:inherit;font-family:KaTeX_Main,"Times New Roman",serif;font-size:.92rem;font-weight:700;line-height:1;cursor:pointer;touch-action:manipulation;transition:transform .1s,box-shadow .1s,border-color .1s}
.xl-math-key.is-variable{font-family:KaTeX_Math,"STIX Two Math","Cambria Math","Times New Roman",serif;font-style:italic;font-size:1.08rem;font-weight:500}
.xl-math-key.is-fraction-key{padding-block:2px}
.xl-fraction-key{display:inline-grid;grid-template-rows:8px 1.5px 8px;align-items:center;justify-items:center;width:25px;row-gap:2px;color:currentColor}
.xl-fraction-key:before{content:"";grid-row:2;width:100%;height:1.5px;border-radius:99px;background:currentColor}
.xl-fraction-key>span{width:9px;height:7px;box-sizing:border-box;border:1.3px solid currentColor;border-radius:1px}
.xl-fraction-key>span:first-child{grid-row:1}.xl-fraction-key>span:last-child{grid-row:3}
.xl-math-key:hover{background:linear-gradient(180deg,#fff,#f4efff);border-color:#a889e7}.xl-math-key:active{transform:translateY(3px);box-shadow:0 1px 0 #7f8794;background:#e8ddff}.xl-math-key:focus-visible{outline:3px solid #a788ef;outline-offset:1px}

/* Clear, tactile question navigation and answer actions */
.guided-header-action:not(:disabled),.practice-check-action:not(:disabled){border-color:#5b29bd;background:linear-gradient(180deg,#8756e6,#713ad4);box-shadow:0 4px 0 #4f22a4,0 9px 18px rgba(83,40,166,.22);font-size:.82rem;transform:translateY(-1px)}
.guided-header-action:not(:disabled):hover,.practice-check-action:not(:disabled):hover{background:linear-gradient(180deg,#9364eb,#7840da)}
.guided-header-action:not(:disabled):active,.practice-check-action:not(:disabled):active{transform:translateY(3px);box-shadow:0 1px 0 #4f22a4}
.guided-previous-icon,.practice-previous-icon{box-shadow:0 2px 0 #d8dce6;transition:transform .12s,box-shadow .12s,background .12s}.guided-previous-icon:hover:not(:disabled),.practice-previous-icon:hover:not(:disabled){transform:translateY(-1px)}.guided-previous-icon:active:not(:disabled),.practice-previous-icon:active:not(:disabled){transform:translateY(2px);box-shadow:none}

/* v148: phone layouts use a short, native-keyboard-like bottom sheet. Main is
   exactly four rows of eight keys, so the question and answer remain visible. */
@media(max-width:720px){
  body.xl-keyboard-open{padding-bottom:calc(var(--xl-keyboard-height,214px) + 14px)}
  .answer-options.options-compact,.guided-options.options-compact{grid-template-columns:1fr}
  body .guided-question-card{padding:0}
  .practice-question-body,body .guided-question-card .guided-question-body{padding:17px 16px 20px}
  .student-math-entry{grid-template-columns:minmax(0,1fr) 48px;gap:8px;scroll-margin-bottom:calc(var(--xl-keyboard-height,214px) + 18px)}
  .student-keyboard-toggle{width:48px;min-width:48px;border-radius:12px}
  .student-keyboard-toggle svg{width:23px;height:23px}
  .practice-live-player .assessment-question h2,body .guided-question-card .guided-question-body h2{font-size:1.12rem}
  .practice-live-player .answer-options label>span.student-option-card,.guided-options label>span.student-option-card{min-height:52px}
  .guided-question-toolbar,.practice-question-toolbar{gap:8px;padding:9px 10px}
  .guided-question-leading,.practice-question-leading{gap:8px}
  .guided-question-count,.practice-question-leading strong{font-size:.76rem;line-height:1.22}
  .guided-question-count small{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:.58rem;line-height:1.22}
  .guided-header-action,.practice-check-action{flex:0 0 auto;min-width:96px!important;min-height:36px;padding:7px 9px!important;font-size:.66rem!important;line-height:1.05}
  .xl-math-keyboard{max-height:min(34dvh,232px);overflow:hidden;padding:5px 7px calc(5px + env(safe-area-inset-bottom))}
  .xl-math-keyboard-inner{display:grid;grid-template-rows:auto minmax(0,1fr);max-height:calc(min(34dvh,232px) - env(safe-area-inset-bottom))}
  .xl-math-keyboard-head{grid-template-columns:minmax(0,1fr) auto;gap:6px;margin-bottom:5px}
  .xl-math-keyboard-head>strong{display:none}
  .xl-math-keyboard-tabs{justify-content:flex-start;gap:4px;overflow-x:auto;scrollbar-width:none}
  .xl-math-keyboard-tabs::-webkit-scrollbar{display:none}
  .xl-math-keyboard-tabs button,.xl-keyboard-close{flex:0 0 auto;min-height:29px;padding:3px 7px;font-size:.59rem}
  .xl-keyboard-close{font-size:0;width:34px;padding:0}
  .xl-keyboard-close::after{content:'×';font-size:.95rem}
  .xl-math-key-grid{grid-template-columns:repeat(8,minmax(0,1fr));gap:4px;min-height:0;max-height:none;overflow-y:auto;padding:1px 1px 4px}
  .xl-math-key-grid.layout-abc{grid-template-columns:repeat(7,minmax(0,1fr))}
  .xl-math-key-grid.layout-functions,.xl-math-key-grid.layout-symbols{grid-template-columns:repeat(6,minmax(0,1fr))}
  .xl-math-key{min-height:34px;padding:2px;border-radius:6px;font-size:.8rem}
  .xl-math-key.is-variable{font-size:.94rem}
  .xl-fraction-key{transform:scale(.9)}
}

/* v154: assessment and guided-practice controls remain legible in dark mode. */
html[data-student-theme="dark"] .assessment-question,
html[data-student-theme="dark"] .assessment-session-bar,
html[data-student-theme="dark"] .assessment-next-card{background:#182238;color:#eef2ff;border-color:#35425f}
html[data-student-theme="dark"] .practice-question-toolbar{background:rgba(24,34,56,.97);border-color:#35425f}
html[data-student-theme="dark"] .practice-previous-icon{background:#111b30;color:#bda6ff;border-color:#475674;box-shadow:none}
html[data-student-theme="dark"] .practice-live-player .answer-options label>span,
html[data-student-theme="dark"] .answer-options label{background:#172238;color:#eef2ff;border-color:#43516d}
html[data-student-theme="dark"] .practice-live-player .answer-options input:checked+span{background:#2c2450;border-color:#a383f5}
html[data-student-theme="dark"] .practice-answer-field,
html[data-student-theme="dark"] .student-math-entry>.practice-answer-field,
html[data-student-theme="dark"] .student-math-entry>.guided-answer-input,
html[data-student-theme="dark"] .student-math-field{background:#111b30;color:#f5f1ff;border-color:#52617f}
html[data-student-theme="dark"] .practice-answer-field::placeholder,
html[data-student-theme="dark"] .guided-answer-input::placeholder{color:#8995ae}
html[data-student-theme="dark"] .practice-answer-field[readonly]{background:#202b43;color:#bdc5d8}
html[data-student-theme="dark"] .assessment-review-list .assessment-explanation{background:#211d39;color:#d9d1eb}
html[data-student-theme="dark"] .explanation{background:#211d39;color:#d9d1eb}
@media(max-width:390px){
  .xl-math-keyboard-tabs button{padding-inline:7px}
  .xl-math-key-grid{grid-template-columns:repeat(8,minmax(0,1fr))}
  .xl-math-key-grid.layout-abc{grid-template-columns:repeat(7,minmax(0,1fr))}
  .xl-math-key-grid.layout-functions,.xl-math-key-grid.layout-symbols{grid-template-columns:repeat(6,minmax(0,1fr))}
  .xl-math-key{min-height:33px;font-size:.77rem}
}

/* v150: compact MCQ rhythm and keep question changes anchored to the player. */
.practice-live-question.active-question,.guided-card.active{scroll-margin-top:12px}
.practice-live-player .answer-options,.guided-options{align-content:start}
.practice-live-player .answer-options label,.guided-options label{margin:0!important}
.answer-options.options-compact,.guided-options.options-compact{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.answer-options.options-stacked,.guided-options.options-stacked{grid-template-columns:1fr;gap:7px}
.practice-live-player .answer-options label>span.student-option-card,.guided-options label>span.student-option-card{grid-template-columns:30px minmax(0,1fr);gap:9px;min-height:50px;padding:7px 40px 7px 8px}
.student-option-letter{width:29px;height:29px;border-radius:8px}
.student-option-copy{line-height:1.25}
@media(max-width:720px){
  .answer-options.options-compact,.guided-options.options-compact,.answer-options.options-stacked,.guided-options.options-stacked{grid-template-columns:1fr;gap:6px}
  .practice-live-player .answer-options label>span.student-option-card,.guided-options label>span.student-option-card{grid-template-columns:28px minmax(0,1fr);gap:8px;min-height:44px;padding:6px 36px 6px 7px}
  .student-option-letter{width:27px;height:27px;border-radius:7px;font-size:.72rem}
}

/* v159.4: make unresolved mistakes the recommended next action without locking progression. */
.assessment-next-actions{flex:0 0 auto;min-width:230px;display:grid;gap:8px}
.assessment-next-actions .btn{width:100%;justify-content:center;text-align:center}
.assessment-next-card.is-high-priority{border-color:#f2bd6a;background:linear-gradient(115deg,#fff7e9 0%,#fff 72%);box-shadow:0 12px 30px rgba(166,99,0,.09)}
.assessment-next-card.is-high-priority .eyebrow{color:#a15e00}
html[data-student-theme="dark"] .assessment-next-card.is-high-priority{background:linear-gradient(115deg,#352919 0%,#182238 72%);border-color:#76572b}
@media(max-width:800px){.assessment-next-actions{width:100%;min-width:0}}
