#math-learning{--border:#dfd8cf;min-width:0}#math-learning button{color:var(--ink);border:1px solid var(--border);background:#f3efe9;border-radius:9px;font-weight:650}#math-learning button.primary{background:var(--green);color:#fff;border-color:var(--green)}#math-learning button:hover{filter:brightness(.97)}#math-learning :is(button,input,select):focus-visible{outline:3px solid var(--green);outline-offset:3px}#math-learning :is(input:not([type=checkbox]),select),#math-workflow{background:var(--paper);color:var(--ink);border:1px solid #b9b1a6;border-radius:8px;padding:8px}#math-tool .math-workflow-label{align-items:center;gap:8px;font-weight:650;display:flex}#math-tool[data-workflow]:not([data-workflow=print]) .math-start-line .doc-tabs{display:none}#math-learning .hint{margin-block:8px}#math-tool #math-learning .math-number{display:none}#math-learning .learn-problem{margin:0;padding:0;list-style:none}#math-learning .exam-expression{font-size:clamp(1.1rem,2vw,1.5rem);line-height:1.6}#math-learning :is(section,details){margin-block:1rem}#math-learning :is(input:not([type=checkbox]),select){width:100%;min-width:0;min-height:44px}#math-learning label{display:block}#math-learning p{overflow-wrap:anywhere}#math-learning details{border:1px solid var(--border);border-radius:12px;padding:12px}#math-learning summary{cursor:pointer;min-height:36px}.learn-fields{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;display:grid}.learn-actions,.learn-session-bar{flex-wrap:wrap;align-items:center;gap:8px;margin-block:12px;display:flex}#math-learning button,.learn-file{white-space:normal;max-width:100%;min-height:44px;padding:8px 14px}.learn-file{border:1px solid var(--border);border-radius:10px}.learn-file input{max-width:200px}.learn-question,.learn-wrong{border:1px solid var(--border);border-radius:14px;min-width:0;margin-block:14px;padding:16px}.learn-question h4{margin:0 0 12px}.learn-question .math-question{min-width:0;margin:0;font-size:1.4rem;list-style:none}.learn-question .math-work-space,.learn-question .math-answer-space{display:none}.learn-question .math-equation{flex-wrap:wrap}.learn-answer{flex-wrap:wrap;align-items:end;gap:12px;margin-top:16px;display:flex}.learn-answer label{flex:105px;max-width:230px}.learn-feedback{border-inline-start:4px solid;padding-inline-start:10px;font-weight:600}.learn-solution pre{white-space:pre-wrap;background:var(--bg-soft);overflow-wrap:anywhere;padding:12px;font:1.2rem/1.7 ui-monospace,monospace}.learn-solution li{overflow-wrap:anywhere;padding:8px}.learn-solution li[aria-current=step]{border-radius:6px;outline:2px solid}.math-teaching-figure{break-inside:avoid;background:#fff;width:min(100%,320px);height:auto;margin:10px auto;display:block}.learn-chart{width:100%;max-width:780px;height:auto}#learn-stats table{border-collapse:collapse;width:100%}#learn-stats :is(td,th){border-bottom:1px solid var(--border);text-align:start;overflow-wrap:anywhere;padding:8px}#learn-stats caption{text-align:start;margin:12px 0;font-weight:700}#math-tool[data-workflow]:not([data-workflow=print])>:is(.doc-columns,.ux-mobile-nav,#math-stale,#math-status,#math-error){display:none!important}@media (width<=600px){.learn-fields{grid-template-columns:1fr 1fr}.learn-question{padding:12px}.learn-session-bar label{width:100%}#learn-stats table{font-size:.85rem}#learn-stats :is(td,th){padding:6px 3px}}@media print{#math-learning{display:none!important}}#math-tool .math-start-line{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px;display:flex}#math-tool .math-start-line h2{margin:0;font-size:1.1rem}#math-tool[data-mode=custom] #math-form,#math-tool[data-mode=quick] #math-custom-panel{display:none}#math-custom-panel{min-width:0}#math-tool .exam-section-card{border:1px solid var(--border,#dfd9d1);border-radius:12px;margin-block:12px;padding:12px}#math-tool .exam-section-card h4{margin:0 0 10px}#math-tool #math-custom-panel input,#math-tool #math-custom-panel select{min-width:0;max-width:100%}#math-tool #math-custom-panel button,#math-tool #exam-preview-controls button{min-height:44px}#math-tool .exam-expression{font-size:var(--math-font,20pt);overflow-wrap:anywhere;white-space:pre-wrap;line-height:1.8}#math-tool .exam-fraction{vertical-align:middle;flex-direction:column;align-items:center;min-width:1em;margin-inline:.15em;line-height:1.2;display:inline-flex}#math-tool .exam-fraction>span:first-child{text-align:center;border-bottom:1px solid;width:100%;padding-bottom:.1em}#math-tool .exam-fraction>span:last-child{padding-top:.1em}#math-tool .exam-clock{width:30mm;max-width:100%;height:30mm;display:block}#math-tool #math-paper[data-exam=true] .doc-inner>p{white-space:pre-wrap;overflow-wrap:anywhere;margin-block:2mm;font-size:10pt}#math-tool #math-paper[data-exam=true] .doc-inner h2{overflow-wrap:anywhere;margin-block:2mm;font-size:18pt}#math-tool .exam-block h3{break-after:avoid;overflow-wrap:anywhere;margin-block:4mm 2mm;font-size:12pt}#math-tool .exam-block .math-grid{margin-top:0}#math-tool .exam-vertical .math-work-space{height:var(--exam-vertical-space,20mm)}#math-tool [data-exercise]{cursor:pointer;outline-offset:-2px}#math-tool [data-exercise]:focus-visible{outline:2px solid var(--green)}#math-tool #math-paper[data-exam=true] .math-expression{white-space:pre-wrap;overflow-wrap:anywhere}#math-tool #math-paper[data-orientation=landscape],#math-tool #math-paper[data-orientation=landscape] .doc-sheet{width:297mm}#math-tool #math-paper[data-orientation=landscape] .doc-sheet{height:210mm}#math-tool #math-paper[data-orientation=landscape] .doc-inner{height:186mm}#math-tool #exam-question-tools{border:1px solid var(--border,#dfd9d1);border-radius:10px;margin-block:8px;padding:8px}@media screen and (width<=767px){#math-tool[data-view=questions] #math-custom-panel,#math-tool[data-view=answers] #math-custom-panel,#math-tool .math-start-line h2{display:none}#math-tool .math-start-line .doc-tabs{width:100%}#math-tool #exam-question-tools input{max-width:100%}}@page math-exam-portrait{margin:0;size:A4 portrait!important}@page math-exam-landscape{margin:0;size:A4 landscape!important}@media print{body:has(#math-paper[data-exam=true]){page:math-exam-portrait}body:has(#math-paper[data-orientation=landscape]){page:math-exam-landscape}#math-tool #math-paper[data-orientation=landscape]{width:297mm!important}#math-tool #math-paper[data-exam=true] .doc-sheet{page:math-exam-portrait}#math-tool #math-paper[data-orientation=landscape] .doc-sheet{page:math-exam-landscape}#math-tool #exam-preview-controls,#math-tool #math-custom-panel{display:none!important}#math-tool [data-exercise]{cursor:default;outline:none!important}}#math-tool .math-start-line .doc-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;width:310px;max-width:100%;margin:0;display:grid}#math-tool [data-math-mode][aria-pressed=true]{border:2px solid var(--primary);background:var(--primary-soft);font-weight:700}#math-tool [data-math-mode][aria-pressed=true]:before{content:"✓ "}#math-tool #math-paper[data-orientation=landscape] .doc-inner{width:273mm}#math-tool .exam-answer-line{vertical-align:baseline;min-width:var(--exam-answer-line,25mm);border-bottom:1px solid;height:1em;display:inline-block}@media screen and (width<=767px){#math-tool .math-start-line .doc-tabs{width:100%}#math-tool[data-mode=custom] #math-print-questions,#math-tool[data-mode=custom] #math-print-answers{display:none}}#math-tool .math-grid{gap:var(--math-gap,6mm);margin-top:6mm;padding:0;list-style:none;display:grid}#math-tool .math-question{box-sizing:border-box;border-bottom:1px solid #d4cec7;min-width:0;padding:2mm}#math-tool .math-expression{font-size:var(--math-font,20pt);font-variant-numeric:tabular-nums;overflow-wrap:normal;white-space:nowrap;line-height:1.5}#math-tool .math-number{color:var(--muted);margin-bottom:2mm;font-size:10pt;display:block}#math-tool .math-work-space{height:var(--math-space,14mm)}#math-tool .math-question pre{color:inherit;font-family:Courier New,monospace;font-size:var(--math-font,20pt);white-space:pre;background:0 0;border:0;margin:0;padding:0;line-height:1.25;overflow:visible}#math-tool .math-division{width:max-content;font:var(--math-font,20pt)/1.4 "Courier New", monospace;grid-template-columns:auto minmax(0,1fr);display:grid}#math-tool .math-quotient{text-align:right;grid-column:2;min-height:1.4em;padding:0 3mm}#math-tool .math-divisor{grid-area:2/1;padding-right:2mm}#math-tool .math-dividend{text-align:right;border-top:1px solid;border-left:1px solid;grid-area:2/2;padding:0 3mm}#math-tool .math-remainder{margin-top:2mm;font-size:12pt}#math-tool .math-ink .math-question{color:#000;border:0}#math-tool .math-ink .math-number{color:#000}#math-tool .doc-sheet[data-math-type=answers]{color:var(--ink)}#math-tool .doc-sheet.math-ink,#math-tool .doc-sheet.math-ink *{color:#000}#math-tool .math-grades{grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;margin-block:6px;display:grid}#math-tool .math-grades button{min-width:0;padding:8px 3px;font-size:13px}#math-tool .math-step{margin-block:6px;font-size:16px}#math-tool #math-error:empty{display:none}#math-tool .math-primary-actions{margin-top:4px}#math-tool #math-grade-note{margin-block:6px 4px;font-size:12px;line-height:1.5}#math-tool .math-quick-choices{grid-template-columns:105px minmax(0,1fr);align-items:start;gap:12px;display:grid}#math-tool .math-quick-choices label{font-size:14px}#math-tool .math-counts{grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;margin-block:5px;display:grid}#math-tool .math-counts button{min-width:0;padding:9px 2px;font-size:12px}#math-tool [hidden]{display:none!important}#math-tool .math-question{break-inside:avoid}@media screen{#math-tool.math-measuring #math-preview-panel{visibility:hidden;pointer-events:none;width:210mm;display:block!important;position:absolute!important}}@media screen and (width>=1001px){#math-tool .ux-preview{top:12px}#math-tool .doc-preview-frame{max-height:65vh}#math-tool .math-kinds{gap:5px;margin-block:6px 12px}#math-tool .math-kinds button{padding:9px 7px;font-size:13px}}@media (width<=600px){#math-tool .math-grades{grid-template-columns:repeat(3,minmax(0,1fr))}#math-tool .math-quick-choices{grid-template-columns:90px minmax(0,1fr)}#math-tool .math-counts{grid-template-columns:repeat(3,minmax(0,1fr))}#math-tool .doc-fields{grid-template-columns:minmax(0,1fr)}}
