.math-activity{font-family:'Noto Sans KR',sans-serif;color:#233b55;min-width:0}.math-activity-title h2{font-size:clamp(1.35rem,3vw,1.85rem);margin:10px 0 14px;line-height:1.4}.math-activity-title p{line-height:1.85;font-size:1.04rem;white-space:pre-line}.math-evidence-goal{background:#eff7ff;border-left:4px solid #5391ca;padding:14px 18px;border-radius:0 12px 12px 0;line-height:1.7}.math-evidence-goal strong{display:block;color:#316998;font-size:.85rem;margin-bottom:4px}.math-workspace{display:grid;gap:24px;margin:24px 0;align-items:start;min-width:0}.math-workspace.has-board{grid-template-columns:minmax(0,1fr) minmax(280px,1fr)}.math-board{margin:0;border:1px solid #d7e4f0;border-radius:18px;padding:14px;background:#f8fbff;min-width:0;position:sticky;top:18px}.math-board svg{display:block;width:100%;height:auto}.math-board figcaption{font-size:.8rem;line-height:1.6;margin:10px 4px 0;color:#516b84}.math-controls{display:flex;flex-direction:column;gap:18px;min-width:0}.math-control{border:0;margin:0;padding:0;min-width:0}.math-control legend,.math-control>label{display:block;font-weight:700;font-size:.96rem;line-height:1.6;margin-bottom:8px;white-space:pre-line}.math-choice-grid{display:grid;gap:8px;grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.math-choice{display:flex;gap:10px;align-items:center;background:white;border:1.5px solid #cbd9e8;border-radius:12px;padding:12px;cursor:pointer;line-height:1.55}.math-choice.selected{background:#eaf4ff;border-color:#3c86cc}.math-choice:focus-within{outline:3px solid #ffc45e;outline-offset:2px}.math-choice input{width:18px;height:18px;flex-shrink:0;accent-color:#357fc2}.math-input-row{display:flex;gap:10px;align-items:center}.math-input-row input,.math-range-number,.math-control textarea{font:inherit;border:1.5px solid #b7cadf;border-radius:10px;background:white;padding:11px;min-width:0;width:100%;color:#183b57}.math-input-row input{max-width:250px}.math-input-row span{white-space:nowrap}.math-range-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.math-range-row input[type=range]{flex:1;min-width:120px;accent-color:#3c86cc}.math-range-number{width:80px}.math-control-note,.math-control small{font-size:.78rem;color:#5d748b;line-height:1.7}.math-cell-grid{display:grid;grid-template-columns:repeat(var(--columns),minmax(0,1fr));max-width:420px;gap:3px;margin:10px 0}.math-cell{aspect-ratio:1;border:1px solid #94aec8;border-radius:4px;background:white;cursor:pointer;padding:0;min-width:0;color:#54718e}.math-cell span{font-size:clamp(7px,1.1vw,11px);pointer-events:none}.math-cell.selected{background:#3985ce;color:white;border-color:#276aaa}.math-cell:focus-visible{outline:3px solid #ffba45;outline-offset:2px}.math-submit{align-self:flex-start;padding:13px 24px;min-height:48px}.math-design-notes{border-top:1px solid #dce6f0;padding:18px 0;font-size:.85rem;line-height:1.8;color:#4c637b}.math-design-notes summary{cursor:pointer;font-weight:700}.math-model-pattern{display:flex;gap:9px;flex-wrap:wrap;padding:20px}.math-model-pattern span{padding:12px;border:1px solid #c9dceb;border-radius:9px;background:white;font-size:1.3rem;min-width:40px;text-align:center}.math-table-scroll{overflow:auto}.math-model-table{border-collapse:collapse;width:100%;font-size:.9rem}.math-model-table th,.math-model-table td{padding:12px;border:1px solid #c4d7e7;text-align:center}.math-model-table th{background:#e9f3ff}.math-sequence-progress{display:flex;gap:7px;flex-wrap:wrap;font-size:.78rem;margin:16px 0}.math-sequence-progress span{padding:6px 10px;border-radius:8px;background:#eef3f8}.math-sequence-progress span.earned{background:#def5eb;color:#1d7159}.math-phase-status{font-size:.85rem;line-height:1.6}.math-activity input:focus-visible,.math-activity textarea:focus-visible{outline:3px solid #ffbd55;outline-offset:2px}.math-activity :disabled{cursor:wait;opacity:.65}.spiral-step:disabled{cursor:not-allowed;opacity:.4}.math-lesson-goal{line-height:1.7}.math-completion{padding:20px;background:#edf8f1;border-radius:14px;margin:16px 0;line-height:1.8}
@media(max-width:1050px){.math-workspace.has-board{grid-template-columns:1fr}.math-board{position:static;max-width:620px;width:100%;box-sizing:border-box}.math-cell span{font-size:10px}.spiral-learning{min-width:0}.spiral-task{min-width:0}.lesson-shell .spiral-step-list{overflow:auto}}@media(max-width:600px){.math-workspace{gap:18px}.math-activity-title p{font-size:.95rem}.math-choice-grid{grid-template-columns:1fr}.math-choice{padding:10px}.math-evidence-goal{padding:12px}.math-activity .math-submit{width:100%;align-self:stretch}.math-control legend,.math-control>label{font-size:.9rem}.math-cell-grid{gap:2px}.math-cell span{font-size:8px}}
.math-cell[data-fixed="true"]{background:#a9d9bd;color:#234f3a;opacity:1;cursor:default}.math-cell[data-fixed="true"] span{font-weight:700}
/* The lesson already has a map-back button. Give mobile models and answers
   the full width without a floating profile covering learner controls. */
@media(max-width:640px){body:has(#spiral-lesson-section:not(.hidden)) #aiedue-rpg-hud.rpg-collapsed{display:none}.lesson-shell .spiral-task{padding-bottom:32px}}
