.matrix-input{display:inline-block}.matrix-input__grid{display:grid;gap:6px}.matrix-input__cell{width:64px;text-align:center;padding:8px 6px!important;font-size:14px;font-variant-numeric:tabular-nums}.matrix-input__title{font-size:13px;color:var(--text-dim);margin:0 0 8px}.panel__head:has(.size-ctl){flex-wrap:wrap;row-gap:8px}.size-ctl{display:inline-flex;align-items:center;gap:8px}.size-ctl__val{font-size:13px;color:var(--text-dim);min-width:44px;text-align:center}.size-ctl__btn{width:28px;height:28px;border:1px solid var(--border-strong);border-radius:7px;background:transparent;color:var(--text);font-size:15px;cursor:pointer;line-height:1}.size-ctl__btn:hover:not(:disabled){border-color:var(--accent)}.size-ctl__btn:disabled{opacity:.35;cursor:not-allowed}.matrix-pair{display:flex;gap:28px;flex-wrap:wrap;align-items:flex-start}.mx{display:inline-flex;align-items:center;padding:4px 10px;position:relative;margin:2px 4px}.mx:before,.mx:after{content:"";position:absolute;top:0;bottom:0;width:7px;border:2px solid var(--text-dim)}.mx:before{left:0;border-right:none;border-radius:6px 0 0 6px}.mx:after{right:0;border-left:none;border-radius:0 6px 6px 0}.mx__grid{display:grid;gap:4px 14px}.mx__cell{text-align:center;font-variant-numeric:tabular-nums;font-family:ui-monospace,Consolas,monospace;font-size:14px;padding:2px 0;white-space:nowrap}.mx__cell--sep{border-inline-start:1px solid var(--border-strong);padding-inline-start:14px}.steps{display:flex;flex-direction:column;gap:10px;margin-top:12px;counter-reset:step}.step{background:var(--bg-elev-2);border:1px solid var(--border);border-radius:var(--radius-sm);padding:12px 14px 12px 46px;position:relative;overflow-x:auto}.step:before{counter-increment:step;content:counter(step);position:absolute;left:12px;top:12px;width:22px;height:22px;border-radius:50%;background:#6c8cff24;color:var(--accent);font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center}.step__text{font-size:14px;line-height:1.55;white-space:pre-wrap}.step__text code,.math-expr{font-family:ui-monospace,Consolas,monospace;font-size:13.5px}.step__matrix{margin-top:8px}.step__matrix--pair{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px}.step__arrow{color:var(--accent);font-size:20px;font-weight:700}.result-box{background:var(--green-soft);border:1px solid rgba(34,197,94,.35);border-radius:var(--radius-sm);padding:14px 16px;font-size:15px;line-height:1.6;overflow-x:auto}.result-box--warn{background:#eab3081a;border-color:#eab30859}.result-box b{font-family:ui-monospace,Consolas,monospace;font-weight:700}.math-row{display:flex;gap:12px;flex-wrap:wrap;align-items:flex-end;margin-top:12px}.math-input-lg{font-family:ui-monospace,Consolas,monospace!important;font-size:16px!important;padding:12px 14px!important}.eq-list{display:flex;flex-direction:column;gap:8px;margin-top:12px}.eq-list__row{display:flex;gap:8px;align-items:center}.eq-list__row input{font-family:ui-monospace,Consolas,monospace}.eq-list__row input.is-bad{border-color:var(--red)}.math-error{background:var(--red-soft);border:1px solid rgba(239,68,68,.4);border-radius:var(--radius-sm);color:#fca5a5;padding:10px 14px;font-size:13.5px;margin-top:12px}.graph-wrap{position:relative;margin-top:14px}.graph-canvas{width:100%;height:auto;display:block;background:var(--bg-elev);border:1px solid var(--border);border-radius:var(--radius);cursor:grab;touch-action:none}.graph-canvas:active{cursor:grabbing}.graph-coords{position:absolute;right:10px;top:10px;background:#0e0f13cc;border:1px solid var(--border);border-radius:7px;color:var(--text-dim);font-size:12px;font-family:ui-monospace,Consolas,monospace;padding:4px 8px;pointer-events:none}.fn-list{display:flex;flex-direction:column;gap:8px;margin-top:12px}.fn-row{display:flex;gap:8px;align-items:center}.fn-row__swatch{width:14px;height:14px;border-radius:4px;flex:none}.fn-row input{font-family:ui-monospace,Consolas,monospace}.fn-row.is-bad input{border-color:var(--red)}.param-list{display:flex;flex-direction:column;gap:8px;margin-top:12px}.param-list:empty{display:none}.param-row{display:flex;flex-wrap:wrap;align-items:center;gap:2px 12px;min-width:0}.param-row__label{flex:1 1 7em;min-width:0;overflow:hidden;white-space:nowrap;font-family:ui-monospace,Consolas,monospace;font-variant-numeric:tabular-nums}.param-row__play{flex:none;width:36px;height:36px;padding:0;border:1px solid var(--border-strong);border-radius:50%;background:transparent;color:var(--text);font-size:13px;line-height:1;cursor:pointer}.param-row__play:hover{border-color:var(--accent)}.param-row__play:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.param-row.is-playing .param-row__play{border-color:var(--accent);background:var(--accent);color:var(--bg)}.param-row__track{display:flex;flex:1 1 220px;align-items:center;gap:8px;min-width:0}.param-row .param-row__range{flex:1 1 auto;width:auto;min-width:0}.param-num{padding:6px 2px;border:0;background:transparent;color:inherit;font:inherit;text-decoration:underline dashed var(--text-faint);text-underline-offset:4px;cursor:text}.param-num:hover{color:var(--accent);text-decoration-color:var(--accent)}.param-num:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.param-num[hidden]{display:none}.param-row__track .param-num{flex:none;max-width:11ch;overflow:hidden;color:var(--text-dim);font-size:13px;white-space:nowrap}.param-row .param-edit{flex:none;width:9ch;min-width:0;max-width:40%;padding:4px 6px;font-family:ui-monospace,Consolas,monospace;font-size:14px}@media(pointer:coarse){.param-row__play{width:44px;height:44px}.param-num{min-height:44px}}.graph-block{margin-top:14px}.graph-panel .panel__head{flex-wrap:wrap}.graph-tools{display:flex;flex-wrap:wrap;gap:6px}.graph-tools .btn--icon:hover:not(:disabled){color:var(--accent);background:transparent}.graph-panel .graph-wrap{margin-top:0}.pt-list{display:flex;flex-direction:column;gap:10px;margin-top:10px}.pt-list.is-stale,.study.is-stale{opacity:.5;transition:opacity .15s}.pt-group{min-width:0;padding:2px 0 2px 10px;border-left:3px solid var(--border)}.pt-group__head{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 2px;font-family:ui-monospace,Consolas,monospace;font-size:13.5px;color:var(--text);overflow-wrap:anywhere}.pt-group__line,.study__line{margin:2px 0;font-size:14px;color:var(--text-dim);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.pt-group__note,.study__note{margin:2px 0;font-size:12.5px;color:var(--text-faint)}.study-pick{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:10px;font-size:14px}.study-pick select{width:auto;min-width:0;max-width:100%;font-family:ui-monospace,Consolas,monospace}.study{display:flex;flex-direction:column;gap:2px;margin-top:10px}@media(max-width:640px){.examples.graph-palette{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;padding-bottom:4px}.graph-palette .example-chip,.graph-palette .hint{flex:none}.graph-panel .graph-tools{width:100%}.graph-panel .graph-tools .btn{flex:1 1 auto}}.math-nobr{white-space:nowrap}.math-link{display:inline-block;max-width:100%}.frac{display:inline-flex;flex-direction:column;align-items:center;vertical-align:middle;margin:0 3px}.frac__n{padding:0 6px;border-bottom:1.5px solid var(--text);line-height:1.3}.frac__d{padding:0 6px;line-height:1.3}.int-area:empty{display:none}.int-area{margin:8px 0 12px;color:var(--text-dim)}.int-area p{margin:0 0 4px}.int{display:inline-flex;align-items:center;vertical-align:middle;margin:0 2px}.int__sign{font-size:1.6em;line-height:1}.int__lims{display:inline-flex;flex-direction:column;justify-content:space-between;align-self:stretch;font-size:.72em;line-height:1.15;margin-left:1px}.val-table-wrap{margin-top:20px;padding:16px;background:var(--bg-elev-2);border:1px solid var(--border);border-radius:var(--radius)}.val-table-title{font-size:15px;font-weight:600;margin:0 0 4px;color:var(--text)}.val-table-desc{font-size:12.5px;color:var(--text-dim);margin:0 0 14px;line-height:1.4}.val-table-scroll{overflow-x:auto;margin-bottom:10px}.val-table{border-collapse:collapse;font-family:ui-monospace,Consolas,monospace;font-size:14px;min-width:100%}.val-table th{padding:8px 12px;color:var(--text-dim);font-weight:700;text-align:center;background:var(--bg-elev);border:1px solid var(--border);min-width:45px}.val-table td{border:1px solid var(--border);padding:2px;text-align:center;min-width:70px;background:var(--bg-elev-3)}.val-table__input{width:76px;background:transparent;border:none;text-align:center;color:var(--text);font-family:inherit;font-size:inherit;padding:6px;box-sizing:border-box}.val-table__input:focus{outline:2px solid var(--accent);outline-offset:-2px;border-radius:4px;background:var(--bg-elev)}.val-table__del-btn{background:transparent;border:none;color:var(--text-faint);cursor:pointer;font-size:12px;padding:4px 8px;width:100%}.val-table__del-btn:hover{color:var(--red);background:#ef44441a}.val-table-actions{display:flex;gap:10px;margin-top:10px}@media(pointer:coarse){.val-table__del-btn{min-height:44px}.size-ctl__btn{width:44px;height:44px}}@media(max-width:520px){.matrix-input__cell{width:52px}.mx__grid{gap:3px 10px}}.calc-formula{font-family:ui-monospace,Consolas,monospace;font-size:18px;padding:6px 0;display:flex;gap:8px;align-items:baseline;overflow-x:auto}.math-answer{min-width:0;overflow-wrap:anywhere}.calc-formula:has(.math-answer--long){flex-wrap:wrap}.math-answer--long{flex:1 1 16ch}.calc-formula__label{color:var(--text-dim);white-space:nowrap}.calc-formula__label--word{font-family:var(--font);font-size:16px}.calc-at{color:var(--text-dim)}.anti-pt{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin-top:12px}.anti-pt .hint{margin:0}.anti-pt__eq{display:inline-flex;align-items:center;gap:4px;font-family:ui-monospace,Consolas,monospace;font-size:18px}.anti-pt__eq input{width:72px;text-align:center;font-family:inherit;font-size:16px}.anti-pt__eq input.tan-task__line{width:150px}#chkInput{flex:1 1 200px;max-width:320px;font-family:ui-monospace,Consolas,monospace;font-size:16px}.graph3d-wrap{position:relative;touch-action:none}.graph3d-axis{position:absolute;font:12px ui-monospace,Consolas,monospace;color:var(--text-dim);pointer-events:none;transform:translate(-50%,-50%)}.graph3d-tick{position:absolute;font:11px ui-monospace,Consolas,monospace;line-height:1.2;white-space:nowrap;color:var(--text-dim);text-shadow:0 0 2px var(--bg-elev),0 0 2px var(--bg-elev),0 0 3px var(--bg-elev);transform:translate(-50%,-50%)}.graph3d-domain{flex-wrap:wrap;gap:10px;align-items:center}.graph3d-domain .val-table__input{max-width:70px}.graph3d-marks{position:absolute;inset:0;pointer-events:none;overflow:hidden}.graph3d-mark{position:absolute;width:12px;height:12px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px #0000008c;transform:translate(-50%,-50%)}.graph3d-mark--static{position:static;display:inline-block;transform:none;vertical-align:-1px;margin-inline-end:6px}.graph3d-mark--min{background:#22c55e}.graph3d-mark--max{background:#ef4444}.graph3d-mark--saddle{background:#a855f7}.graph3d-mark--unknown{background:#9aa0b0}.graph3d-mark--tangent{background:#14b8a6}.graph3d-wide{flex-basis:100%}.graph3d-ineq{font-family:ui-monospace,Consolas,monospace}.graph3d-hint{margin:6px 0 0;font-size:12px}.graph3d-mark--cand{background:#64748b;width:9px;height:9px}.graph3d-legend{display:flex;flex-wrap:wrap;gap:6px 16px;margin:10px 0 4px;font-size:13px;color:var(--text-dim)}.graph3d-legend__item{display:inline-flex;align-items:center}.graph3d-study .field__label{display:block;font-size:12px;color:var(--text-dim);margin-bottom:6px}.graph3d-study .field:first-child{min-width:min(100%,280px)}.graph3d-study #studyPointRow{flex:0 1 auto}.graph3d-point{display:flex;flex-wrap:wrap;gap:8px 14px}.graph3d-point label{display:inline-flex;align-items:center;gap:6px;margin:0;font-size:15px;color:var(--text)}.graph3d-point .val-table__input{max-width:90px}.ineq-sys{position:relative;direction:ltr;padding-left:18px;margin-top:4px}.ineq-sys:before{content:"";position:absolute;left:4px;top:14px;bottom:2px;width:9px;border:2px solid var(--text-dim);border-right:0;border-radius:10px 0 0 10px}.ineq-sys input{flex:1;min-width:0}.number-line-box{margin-top:12px;overflow-x:auto;direction:ltr}.number-line{display:block;max-width:100%;height:auto;margin:0 auto;color:var(--text)}.number-line__axis{stroke:currentColor;stroke-width:1.5;fill:none}.number-line__hatch{stroke:var(--accent);stroke-width:2}.number-line__band--layer{opacity:.85}.number-line__answer{stroke:var(--accent);stroke-width:5;stroke-linecap:round}.number-line__pt{stroke:currentColor;stroke-width:1.5}.number-line__pt--in{fill:currentColor}.number-line__pt--out{fill:var(--bg-elev)}.number-line__label,.number-line__var{font-size:13px;fill:currentColor;text-anchor:middle}.number-line__var{font-style:italic}.number-line__sign{font-size:16px;font-weight:700;text-anchor:middle}.number-line__sign--pos{fill:var(--green)}.number-line__sign--neg{fill:var(--red)}.number-line__sign--zero{fill:var(--text-dim)}.trig-task input{width:100%;max-width:520px;text-align:left;font-family:ui-monospace,Consolas,monospace;font-size:16px}.trig-echo{color:var(--text-dim);font-family:ui-monospace,Consolas,monospace;font-size:13px;margin:12px 0 0;min-height:1em;overflow-wrap:anywhere}.trig-answer{flex-direction:column;align-items:flex-start;gap:4px}.trig-seg{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin-top:12px}.trig-seg input{width:100%;max-width:240px;text-align:left;font-family:ui-monospace,Consolas,monospace;font-size:16px}.trig-copy{margin-top:10px}.trig-quarters .example-chip.is-active{border-color:var(--accent);color:var(--text)}.trig-other{margin-top:16px}.tri-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-items:center;margin:8px 0 12px}@media(min-width:560px){.tri-grid{grid-template-columns:minmax(0,300px) minmax(0,1fr)}}.tri-svg svg{width:100%;max-width:300px;height:auto;display:block}.tri-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.tri-field{display:flex;flex-direction:column;gap:4px;font-size:13px;color:var(--text-dim)}.tri-field input{width:100%}.math-echo{color:var(--text-dim);font-family:ui-monospace,Consolas,monospace;font-size:13px;margin:8px 0 0;min-height:1em;white-space:pre-line;overflow-wrap:anywhere}.math-err{color:var(--red);font-size:14px;margin:6px 0 0}.math-vars{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:8px 0 0}.math-vars .example-chip.is-active{border-color:var(--accent)}.run.is-bad input{border-color:var(--red)}.area-figures{margin-bottom:12px}.area-figures .example-chip.is-active{border-color:var(--accent);font-weight:600}.area-figures .example-chip{max-width:100%;overflow-wrap:anywhere}.pct-mode{margin:0 0 10px}.pct-copy{margin-left:8px;padding:2px 10px;font-size:12px;vertical-align:middle}.calc-card .steps{margin-top:8px}.calc-card .step__text{font-size:13px}.lim{display:inline-flex;flex-direction:column;align-items:center;vertical-align:middle;line-height:1.05;margin:0 3px 0 1px}.lim__sub{font-size:.68em;white-space:nowrap}sub{white-space:nowrap}.lim-form{display:flex;align-items:center;gap:12px}.lim-form__sign{display:inline-flex;flex-direction:column;align-items:center;gap:2px;flex:none}.lim-form__word{font-size:26px;line-height:1;font-weight:600}.lim-form__under{display:inline-flex;align-items:center;gap:3px;font-family:ui-monospace,Consolas,monospace;font-size:14px;color:var(--text-dim)}.lim-form__under .lim-form__point{width:70px;padding:4px 6px;font-family:ui-monospace,Consolas,monospace;font-size:14px;text-align:center}.lim-form .math-input-lg{flex:1;min-width:0}.lim-side{margin-top:10px}.lim-side__group{display:inline-flex;flex-wrap:wrap;gap:6px}.lim-side__group[hidden]{display:none}.lim-side__group .example-chip[aria-pressed=true]{border-color:var(--accent);color:var(--text)}.lim-chain{margin-top:12px;padding:12px 14px;border:1px dashed var(--border-strong);border-radius:var(--radius-sm);font-size:16px;line-height:2.1;overflow-x:auto}.lim-chain__title,.lim-check__title{margin:0 0 2px;font-size:12.5px;color:var(--text-dim)}.lim-check{margin-top:14px}.lim-check__tables{display:flex;flex-wrap:wrap;gap:8px 24px}.lim-check__cap{margin:4px 0;font-size:13px}.lim-check__table{border-collapse:collapse;font-family:ui-monospace,Consolas,monospace;font-size:13px;font-variant-numeric:tabular-nums}.lim-check__table th,.lim-check__table td{padding:3px 10px;border:1px solid var(--border);text-align:end}.lim-check__table th{color:var(--text-dim);background:var(--bg-elev)}@media(max-width:480px){.lim-form{gap:8px}.lim-form__word{font-size:22px}.lim-form__under .lim-form__point{width:58px}}.frac--big{margin:2px 4px}.step__table-wrap{margin-top:8px;overflow-x:auto}.step__table{border-collapse:collapse;font-family:ui-monospace,Consolas,monospace;font-size:13.5px;font-variant-numeric:tabular-nums}.step__table th,.step__table td{padding:3px 10px;border:1px solid var(--border);text-align:center;white-space:nowrap}.step__table th{color:var(--text-dim);background:var(--bg-elev);font-weight:600}.stat-modes{display:inline-flex;flex-wrap:wrap;gap:6px}.stat-modes .example-chip[aria-pressed=true],.stat-opts__group .example-chip[aria-pressed=true]{border-color:var(--accent);color:var(--accent);background:#6c8cff1f}.stat-input{display:block;width:100%;min-height:84px;resize:vertical;line-height:1.5;box-sizing:border-box}.stat-hint{margin:6px 0 0}.stat-table-in{display:flex;flex-direction:column;gap:8px}.stat-table-in__row{display:flex;align-items:center;gap:10px}.stat-table-in__cap{flex:0 0 110px;font-size:13.5px;color:var(--text-dim)}.stat-table-in__row input{flex:1;min-width:0}.stat-opts{margin-top:10px;align-items:center}.stat-opts__cap{margin:0 6px 0 0}.stat-opts__group{display:inline-flex;flex-wrap:wrap;gap:6px}.stat-select{max-width:100%;padding:7px 10px;border-radius:var(--radius-sm);border:1px solid var(--border-strong);background:var(--bg-elev-2);color:var(--text);font:inherit;font-size:14px}.stat-summary{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:8px;margin:14px 0 0}.stat-summary dt,.stat-summary dd{margin:0}.stat-card{background:var(--bg-elev-2);border:1px solid var(--border);border-radius:var(--radius-sm);padding:8px 12px;min-width:0}.stat-card dt{display:block;font-size:12.5px;color:var(--text-dim);margin-bottom:2px}.stat-card dd{font-family:ui-monospace,Consolas,monospace;font-size:15px;overflow-wrap:anywhere}.stat-card dd.stat-card__word{font-family:inherit}.stat-chart-box{margin-top:14px;background:var(--bg-elev-2);border:1px solid var(--border);border-radius:var(--radius-sm);padding:10px 12px 6px}.stat-chart-box__title,.stat-steps-title{font-size:13.5px;color:var(--text-dim);margin:0 0 6px;font-weight:600}.stat-steps-title{margin:18px 0 0}.stat-chart{width:100%;overflow:hidden;direction:ltr}.stat-chart__svg{display:block;max-width:100%;color:var(--text)}.stat-chart__axis{stroke:var(--text-dim);stroke-width:1.5}.stat-chart__tick{font-size:12px;fill:var(--text-dim);text-anchor:middle}.stat-chart__dot{fill:var(--accent)}.stat-chart__dot--out{fill:var(--red)}.stat-chart__bar{fill:var(--accent);opacity:.85}.stat-chart__count{font-size:11px;fill:var(--text-dim);text-anchor:middle}.stat-chart__median{stroke:var(--green);stroke-width:1.5;stroke-dasharray:4 3}.stat-chart__mean{fill:#f59e0b}.stat-chart__label{font-size:13px;fill:var(--text);text-anchor:middle}.stat-chart__label--median{fill:var(--green);font-weight:600}.stat-chart__label--mean{fill:#f59e0b;font-weight:600;text-anchor:start}.stat-chart__box{fill:#6c8cff2e;stroke:var(--accent);stroke-width:1.5}.stat-chart__box-med{stroke:var(--green);stroke-width:2.5}.stat-chart__whisker{stroke:var(--text-dim);stroke-width:1.5}.stat-chart__out{fill:none;stroke:var(--red);stroke-width:1.5}.stat-fig{display:block;width:100%;max-width:400px;height:auto;margin:4px auto 14px;direction:ltr}.stat-fig .stat-chart__tick,.stat-fig .stat-chart__label{font-size:15px}.stat-fig__title{font-size:15px;font-weight:600;fill:var(--text);text-anchor:middle}.stat-fig__dev{font-size:14px;font-weight:600;fill:var(--accent);text-anchor:middle}.stat-fig__dev--zero,.stat-fig__pos{fill:var(--text-dim)}.stat-fig__pos{font-size:13px;text-anchor:middle}.stat-fig__cell{fill:var(--bg-elev-2);stroke:var(--border-strong);stroke-width:1.2}.stat-fig__cell--on{fill:#22c55e24;stroke:var(--green);stroke-width:2}.stat-fig__num{font-size:16px;fill:var(--text);text-anchor:middle;font-variant-numeric:tabular-nums}.stat-fig__num--on{fill:var(--green);font-weight:700}.stat-fig__brace{fill:none;stroke:var(--text-dim);stroke-width:1.5}.stat-fig__fence{stroke:var(--red);stroke-width:1.5;stroke-dasharray:4 3}@media(max-width:480px){.stat-table-in__row{flex-direction:column;align-items:stretch;gap:4px}.stat-table-in__cap{flex:none}.stat-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}:where([dir=rtl] .app) :where(input[type=text],input[type=number],input:not([type]),textarea){direction:ltr;text-align:right}.simp-modes{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:0 0 12px;padding:4px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--bg-elev-2)}.simp-mode{min-height:44px;padding:8px 10px;border:0;border-radius:calc(var(--radius-sm) - 2px);background:transparent;color:var(--text-dim);font:inherit;font-size:15px;font-weight:600;cursor:pointer}.simp-mode[aria-pressed=true]{background:var(--accent);color:#fff}.simp-mode:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.simp-at{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin-top:12px}.simp-at__label{font-size:13.5px;color:var(--text-dim)}.simp-at input{flex:1 1 180px;max-width:280px;font-family:ui-monospace,Consolas,monospace;font-size:16px}.simp-result{display:flex;flex-direction:column;gap:6px}.simp-result__answer{font-size:18px;font-weight:600;line-height:1.9}.simp-result__form,.simp-result__value{font-size:15px;line-height:1.9}.simp-result__note{font-size:13.5px;color:var(--text-dim)}.simp-chain__row+.simp-chain__row{margin-top:6px}[dir=rtl] .simp-chain__row{text-align:right}.simp-chain__link{display:inline-block;white-space:nowrap}.alg-act{color:var(--accent)}.alg-frac .frac__n,.alg-frac .frac__d{white-space:nowrap}.alg-horner{margin-top:8px;border-collapse:collapse;font-family:ui-monospace,Consolas,monospace;font-size:14px;font-variant-numeric:tabular-nums}.alg-horner td{min-width:34px;padding:4px 8px;border:1px solid var(--border);text-align:center}.alg-horner__root{color:var(--accent);font-weight:700}.alg-horner__rest{background:var(--green-soft);font-weight:700}.alg-cross{display:inline-grid;grid-template-columns:auto 40px auto;grid-template-rows:20px 20px;align-items:center;column-gap:8px;margin-top:8px;font-family:ui-monospace,Consolas,monospace;font-size:15px}.alg-cross__a1{grid-area:1 / 1;text-align:end}.alg-cross__c1{grid-area:1 / 3}.alg-cross__a2{grid-area:2 / 1;text-align:end}.alg-cross__c2{grid-area:2 / 3}.alg-cross__x{grid-area:1 / 2 / 3 / 3;width:40px;height:40px;stroke:var(--accent);stroke-width:2}.simp-fig{margin:12px 0 16px}.simp-fig svg{display:block;width:100%;max-width:420px;height:auto;font-family:ui-monospace,Consolas,monospace;font-size:15px}.simp-fig rect,.simp-fig path{stroke:var(--text-dim);stroke-width:1.5}.simp-fig__a{fill:#6c8cff38}.simp-fig__ab{fill:#22c55e33}.simp-fig__b{fill:#eab30840}.simp-fig__cut{fill:none;stroke-dasharray:4 3}.simp-fig text{fill:var(--text);text-anchor:middle;dominant-baseline:middle}.simp-fig .simp-fig__cap,.simp-fig .simp-fig__note{text-anchor:start}.simp-fig__note,.simp-fig__side,.simp-fig__small{fill:var(--text-dim);font-size:13px}.simp-fig__arrow{fill:var(--accent);font-size:24px}.simp-fig figcaption{margin-top:4px;font-size:13.5px;color:var(--text-dim)}.simp-mistakes__t{margin:16px 0 6px;font-size:15px}.simp-mistakes{margin:0;padding-inline-start:20px;line-height:1.6}.simp-mistakes li+li{margin-top:4px}.calc{display:flex;flex-direction:column;gap:12px}.calc-steps,.calc-history{margin-top:14px}.calc__bar{display:flex;flex-wrap:wrap;gap:8px 12px;justify-content:space-between}.calc__seg{display:inline-flex;border:1px solid var(--border-strong);border-radius:10px;overflow:hidden}.calc__segbtn{background:transparent;border:0;color:var(--text-dim);font:inherit;font-size:14px;padding:8px 14px;min-height:38px;cursor:pointer}.calc__segbtn+.calc__segbtn{border-inline-start:1px solid var(--border-strong)}.calc__segbtn[aria-pressed=true]{background:#6c8cff29;color:var(--text);font-weight:600}.calc[data-mode=basic] .calc__angle,.calc[data-mode=basic] .calc__sci,.calc[data-mode=sci] .calc__basic{display:none}.calc__screen{background:var(--bg);border:1px solid var(--border);border-radius:var(--radius-sm);padding:10px 12px 12px;min-width:0}.calc__inputrow{display:flex;align-items:center;gap:6px}.calc__input{flex:1;min-width:0;font-family:ui-monospace,Consolas,monospace!important;font-size:24px!important;text-align:end;padding:8px 10px!important;background:transparent!important;border:1px solid transparent!important;border-radius:8px}.calc__input:focus{border-color:var(--border-strong)!important}.calc__kbd{flex:none;width:40px;height:40px;border:1px solid var(--border-strong);border-radius:8px;background:transparent;color:var(--text-dim);font-size:20px;cursor:pointer}.calc__kbd[aria-pressed=true]{color:var(--text);border-color:var(--accent)}@media(pointer:fine){.calc__kbd{display:none}}.calc__echo{text-align:end;margin-top:4px}.calc__hint{margin:8px 0 0;font-size:13.5px;color:#fcd34d;text-align:end}.calc__hintbtn{margin-inline-start:6px}.calc__error{text-align:start}.calc__result{text-align:end;min-height:44px;margin-top:6px;overflow-wrap:anywhere}.calc__main{font-family:ui-monospace,Consolas,monospace;font-size:28px;font-weight:700;line-height:1.35;color:var(--text-dim)}.calc__main>div{display:inline}.calc__main.is-fit{white-space:nowrap;overflow-wrap:normal}.calc__result.is-final .calc__main{color:var(--text)}.calc__result.is-verdict .calc__main{font-family:inherit;font-size:18px;color:var(--green)}.calc__result.is-verdict.is-wrong .calc__main{color:#fca5a5}.calc__eqsign{color:var(--text-faint);font-weight:400}.calc__forms{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px;margin-top:6px}.calc__form{font-family:ui-monospace,Consolas,monospace;font-size:14px;color:var(--text-dim);background:var(--bg-elev-2);border:1px solid var(--border);border-radius:8px;padding:4px 10px;cursor:pointer;max-width:100%;overflow-wrap:anywhere;text-align:start}.calc__form:hover{border-color:var(--accent);color:var(--text)}.calc__form.is-copied,#copyBtn.is-copied{border-color:var(--green);color:var(--green)}.calc__digits{font-size:12px;max-height:7.5em;overflow-y:auto}.calc__rep{text-decoration:overline}.calc__dot{-webkit-text-emphasis:filled dot;text-emphasis:filled dot;-webkit-text-emphasis-position:over right;text-emphasis-position:over right}.calc__tools{display:flex;justify-content:flex-end;gap:6px;margin-top:8px}.calc__links{margin-top:8px;font-size:14px;text-align:end}.calc__links p{margin:0}.calc__link{color:var(--accent);font-weight:600}.calc__pad{display:grid;gap:8px;grid-template-columns:minmax(0,1fr);max-width:420px;width:100%;margin-inline:auto}.calc[data-mode=sci] .calc__pad{max-width:none}@media(min-width:700px){.calc[data-mode=sci] .calc__pad{grid-template-columns:minmax(0,5fr) minmax(0,4fr)}}.calc__sci,.calc__num{display:grid;gap:6px;direction:ltr}.calc__sci{grid-template-columns:repeat(5,minmax(0,1fr));align-content:start}.calc__num{grid-template-columns:repeat(4,minmax(0,1fr))}.calc__key{min-height:52px;border:1px solid var(--border);border-radius:10px;background:var(--bg-elev-2);color:var(--text);font:inherit;font-size:22px;cursor:pointer;touch-action:manipulation;user-select:none;-webkit-user-select:none;padding:0 2px;line-height:1.1;overflow:hidden}.calc__key:hover{border-color:var(--border-strong);background:var(--bg-elev-3)}.calc__key:active{transform:translateY(1px)}.calc__key--fn{font-size:15px;background:var(--bg-elev);color:var(--text-dim)}.calc__sci .calc__key{min-height:46px}.calc__key--op{color:var(--accent);font-size:24px}.calc__key--clear{color:#fca5a5;font-size:18px;font-weight:600}.calc__key--eq{background:var(--accent);border-color:var(--accent);color:#fff;font-size:26px}.calc__key--eq:hover{background:#7f9bff}.calc__key[data-act="2nd"][aria-pressed=true]{background:#6c8cff38;color:var(--text);border-color:var(--accent)}.calc .k2,.calc.is-second .k1{display:none}.calc.is-second .k2{display:inline;color:var(--accent)}@media(max-width:600px){.calc__result{min-height:118px}.calc__screen{display:grid;grid-template-columns:minmax(0,1fr)}.calc__inputrow{grid-row:1}.calc__echo{grid-row:2;min-height:1.5em;min-height:1lh}.calc__hint{grid-row:3}.calc__error,.calc__result,.calc__links{grid-row:4;grid-column:1}.calc__error,.calc__links{align-self:start;z-index:1}.calc__tools{grid-row:5}.calc__forms{flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start;scrollbar-width:none}.calc__forms::-webkit-scrollbar{display:none}.calc__forms>:first-child{margin-inline-start:auto}.calc__form{flex:none;white-space:nowrap}}@media(max-width:480px){.calc__key{min-height:50px}.calc__sci .calc__key{min-height:44px;font-size:14px}.calc__main{font-size:24px}.calc__input{font-size:22px!important}.calc__segbtn{padding:8px 10px}}.calc-steps__list{margin:0;padding-inline-start:26px;display:flex;flex-direction:column;gap:6px;font-family:ui-monospace,Consolas,monospace;font-size:15px;line-height:1.6}.calc-steps__more{margin-top:8px}.calc-history__list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px;max-height:320px;overflow-y:auto}.calc-history__item{width:100%;display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 12px;background:transparent;border:1px solid transparent;border-radius:8px;color:var(--text);font-family:ui-monospace,Consolas,monospace;font-size:14px;padding:8px 10px;min-height:44px;cursor:pointer;text-align:start}.calc-history__item:hover{border-color:var(--border-strong);background:var(--bg-elev-2)}.calc-history__expr{color:var(--text-dim);overflow-wrap:anywhere}.calc-history__res{font-weight:600;overflow-wrap:anywhere}.calc__examples{margin-top:14px}.subsup{display:inline-flex;flex-direction:column;vertical-align:.6em;font-size:.7em;line-height:1.05;margin-left:1px;margin-right:1px}.subsup__hi,.subsup__lo{display:block}.binom{display:inline-flex;align-items:center;vertical-align:middle;margin:0 2px}.binom__stack{display:inline-flex;flex-direction:column;align-items:center;line-height:1.15;padding:1px 6px;border-left:1.5px solid currentColor;border-right:1.5px solid currentColor;border-radius:45%/22%}.prob-modes{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}.prob-modes .example-chip[aria-pressed=true],.prob-q__group .example-chip[aria-pressed=true]{border-color:var(--accent);color:var(--accent);background:#6c8cff1f}.prob-fields{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px 12px}.prob-field{display:flex;flex-direction:column;justify-content:flex-end;gap:4px;min-width:0}.prob-field--wide{max-width:520px}.prob-field__cap{font-size:13.5px;color:var(--text-dim)}.prob-field input{width:100%;min-width:0;box-sizing:border-box}.prob-rel{display:flex;gap:6px;min-width:0}.prob-rel .prob-rel__sel{flex:0 1 auto;width:auto;min-width:0}.prob-rel input{flex:1 1 64px;width:auto;min-width:64px}.prob-word-in,:where([dir=rtl] .app) .prob-word-in{unicode-bidi:plaintext;text-align:start}.prob-q{margin-top:12px}.prob-q__text{margin:0 0 6px;font-size:14.5px}.prob-q__group{display:inline-flex;flex-wrap:wrap;gap:6px}.prob-box .examples{margin-top:12px}.prob-summary{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}.prob-steps bdi.math-run{display:inline-block}.math-glue{white-space:nowrap}.prob-card--main{grid-column:1 / -1}.prob-card--main dd{font-size:18px}.prob-full{margin-top:6px;font-family:inherit;font-size:13.5px}.prob-full summary{cursor:pointer;color:var(--accent)}.prob-full__num{margin-top:4px;font-family:ui-monospace,Consolas,monospace;font-size:13px;line-height:1.5;overflow-wrap:anywhere;color:var(--text-dim)}.prob-fig-box{margin-top:14px;background:var(--bg-elev-2);border:1px solid var(--border);border-radius:var(--radius-sm);padding:10px 12px}.prob-dice{display:block;width:100%;max-width:300px;height:auto;margin:2px auto 4px;direction:ltr}.prob-dice__head{fill:var(--text-dim);font-size:14px;font-weight:600;text-anchor:middle}.prob-dice__cell{fill:var(--bg-elev);stroke:var(--border)}.prob-dice__cell--on{fill:#34c77b38;stroke:#34c77b;stroke-width:1.5}.prob-dice__num{fill:var(--text-dim);font-size:13px;text-anchor:middle}.prob-dice__num--on{fill:var(--text);font-weight:700}.prob-fig{display:block;width:100%;max-width:360px;height:auto;margin:4px auto 14px;direction:ltr}.prob-fig--theory.prob-dice{max-width:260px;margin:4px auto 14px}.prob-fig__pos{fill:var(--text-dim);font-size:12px;text-anchor:middle}.prob-fig__slot{fill:var(--bg-elev-2);stroke:var(--border-strong)}.prob-fig__set{fill:#34c77b2e;stroke:#34c77b}.prob-fig__big{fill:var(--text);font-size:20px;font-weight:700;text-anchor:middle}.prob-fig__op{fill:var(--text-dim);font-size:22px;text-anchor:middle}.prob-fig__res{fill:var(--accent);font-size:17px;font-weight:700;text-anchor:middle}.prob-fig__word{fill:var(--text);font-size:15px;font-family:ui-monospace,Consolas,monospace;text-anchor:middle}.prob-fig__brace{fill:none;stroke:var(--text-dim);stroke-width:1.5}@media(max-width:560px){.prob-fields{grid-template-columns:1fr}}
