.math-tool{min-width:0}.math-tool .tool-inputs{padding:20px}.math-layout{grid-template-columns:minmax(0,1.2fr) minmax(230px,.8fr);align-items:start;gap:24px;display:grid}.math-controls,.math-stack{flex-direction:column;gap:18px;min-width:0;display:flex}.math-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.math-tool .tool-field,.math-tool .tool-field input{min-width:0}.math-stage{border:1px solid var(--border);background:var(--soft);overflow-wrap:anywhere;border-radius:16px;flex-direction:column;justify-content:center;gap:18px;min-width:0;min-height:250px;padding:28px;display:flex}.math-eyebrow{color:var(--muted);letter-spacing:.03em;font-size:11px;font-weight:550}.math-answer{letter-spacing:-.04em;font-variant-numeric:tabular-nums;font-size:clamp(30px,5vw,52px);font-weight:550;line-height:1.15}.math-equation{font-variant-numeric:tabular-nums;margin:0;font-size:17px;line-height:1.6}.math-note{color:var(--muted);margin:0;font-size:12px;line-height:1.6}.math-preview-error{color:var(--muted);margin:0;font-size:14px;line-height:1.7}.math-bar{background:var(--border);border-radius:999px;height:12px;display:flex;overflow:hidden}.math-bar>span{background:var(--fg);border-radius:inherit;min-width:0}.math-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px;display:grid}.math-stat{flex-direction:column;gap:6px;min-width:0;display:flex}.math-stat>span{color:var(--muted);font-size:11px}.math-stat>strong{font-variant-numeric:tabular-nums;overflow-wrap:anywhere;font-size:21px;font-weight:500}.math-pills{flex-wrap:wrap;gap:7px;display:flex}.math-pills button{max-width:100%}.math-fraction-comparison{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.math-fraction-view{text-align:center;flex-direction:column;align-items:center;gap:15px;min-width:0;display:flex}.math-fraction{font-variant-numeric:tabular-nums;flex-direction:column;align-items:stretch;min-width:36px;max-width:100%;font-size:clamp(20px,3vw,32px);display:inline-flex}.math-fraction>span:first-child{border-bottom:1px solid;padding:0 6px 5px}.math-fraction>span:last-child{padding-top:5px}.math-fraction-view small{color:var(--muted);font-size:10px}.math-fraction-cells{gap:3px;width:100%;display:grid}.math-fraction-cells>span{border:1px solid var(--border);background:var(--surface);border-radius:3px;height:15px}.math-fraction-cells>span[data-filled=true]{background:var(--fg)}.math-histogram{border-bottom:1px solid var(--border);align-items:end;gap:5px;height:110px;margin-top:18px;display:flex}.math-histogram>span{background:var(--fg);opacity:.75;border-radius:5px 5px 0 0;flex:1;min-height:2px;position:relative}.math-histogram-count{font-variant-numeric:tabular-nums;color:var(--fg);font-size:11px;font-weight:500;position:absolute;bottom:calc(100% + 5px);left:50%;transform:translate(-50%)}.math-range-labels{color:var(--muted);font-variant-numeric:tabular-nums;justify-content:space-between;gap:12px;font-size:11px;display:flex}.math-keypad{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;display:grid}.math-keypad button{border-radius:12px;width:100%;min-height:42px;padding-inline:3px}.math-keypad .math-key-equals{grid-column:span 2}.math-history{flex-direction:column;gap:8px;display:flex}.math-history button{font-variant-numeric:tabular-nums;white-space:normal;text-align:left;overflow-wrap:anywhere;justify-content:space-between;gap:12px;height:auto;min-height:40px;padding:8px 12px}.math-draws{flex-wrap:wrap;gap:8px;padding:0 24px 20px;display:flex}.math-draws>span{border:1px solid var(--border);background:var(--soft);font-variant-numeric:tabular-nums;border-radius:12px;place-items:center;padding:12px 16px;font-size:21px;display:grid}.math-word-answer{letter-spacing:-.02em;font-size:clamp(22px,3vw,32px);line-height:1.45}.math-place-values{flex-wrap:wrap;gap:8px;display:flex}.math-place-values>span{border:1px solid var(--border);background:var(--surface);font-variant-numeric:tabular-nums;border-radius:10px;flex-direction:column;gap:5px;min-width:66px;padding:10px 12px;display:flex}.math-place-values small{color:var(--muted);font-size:10px}.math-prime-mark{letter-spacing:-.03em;align-items:center;gap:10px;font-size:clamp(26px,4vw,40px);font-weight:550;display:flex}.math-prime-mark svg{flex-shrink:0}@media (width<=760px){.math-layout{grid-template-columns:1fr;gap:20px}.math-stage{min-height:200px;padding:22px}.math-tool .tool-inputs{padding:14px}}@media (width<=380px){.math-stage{padding:18px}.math-row{gap:9px}.math-keypad{gap:6px}}
