:root{--text:#6b6375;--text-h:#08060d;--bg:#fff;--border:#e5e4e7;--code-bg:#f4f3ec;--accent:#aa3bff;--accent-bg:#aa3bff1a;--accent-border:#aa3bff80;--social-bg:#f4f3ec80;--shadow:#0000001a 0 10px 15px -3px, #0000000d 0 4px 6px -2px;--sans:system-ui, "Segoe UI", Roboto, sans-serif;--heading:system-ui, "Segoe UI", Roboto, sans-serif;--mono:ui-monospace, Consolas, monospace;font:18px/145% var(--sans);letter-spacing:.18px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;color:var(--text);background:var(--bg);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial}}@media (width<=1024px){:root{font-size:16px}}@media (prefers-color-scheme:dark){:root{--text:#9ca3af;--text-h:#f3f4f6;--bg:#16171d;--border:#2e303a;--code-bg:#1f2028;--accent:#c084fc;--accent-bg:#c084fc26;--accent-border:#c084fc80;--social-bg:#2f303a80;--shadow:#0006 0 10px 15px -3px, #00000040 0 4px 6px -2px}#social .button-icon{filter:invert()brightness(2)}}body{margin:0}#root{text-align:center;border-inline:1px solid var(--border);box-sizing:border-box;flex-direction:column;width:1126px;max-width:100%;min-height:100svh;margin:0 auto;display:flex}h1,h2{font-family:var(--heading);color:var(--text-h);font-weight:500}h1{letter-spacing:-1.68px;margin:32px 0;font-size:56px}@media (width<=1024px){h1{margin:20px 0;font-size:36px}}h2{letter-spacing:-.24px;margin:0 0 8px;font-size:24px;line-height:118%}@media (width<=1024px){h2{font-size:20px}}p{margin:0}code,.counter{font-family:var(--mono);color:var(--text-h);border-radius:4px;display:inline-flex}code{background:var(--code-bg);padding:4px 8px;font-size:15px;line-height:135%}*{box-sizing:border-box}:root{color:#0f172a;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:#f8fafc;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}body{background:#f8fafc;min-width:320px;min-height:100vh;margin:0}button,input{font:inherit}button{cursor:pointer}.appShell{background:linear-gradient(#f8fafc 0%,#eef2ff 100%);min-height:100vh;padding:14px}.appInner{width:min(1500px,100%);margin:0 auto}.header{justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:12px;display:flex}.header h1{letter-spacing:-.03em;margin:0;font-size:clamp(1.45rem,2.2vw,2rem);line-height:1.15}.header p{color:#475569;margin:6px 0 0;font-size:.92rem}.legend{color:#475569;white-space:nowrap;flex-wrap:wrap;justify-content:flex-end;gap:10px 14px;font-size:.8rem;display:flex}.legend span{align-items:center;gap:6px;display:inline-flex}.legendLine{border-radius:999px;width:30px;height:4px;display:inline-block}.legendLine.manual{background:#4f46e5}.legendLine.leastSquares{background:#f43f5e}.legendLine.trueFunction{border-top:3px dashed #059669;height:0}.legendDot{background:#0f172ab8;border-radius:999px;width:11px;height:11px;display:inline-block}.mainGrid{grid-template-columns:minmax(0,1fr) 450px;gap:12px;display:grid}.plotCard,.panelCard{background:#ffffffeb;border:1px solid #94a3b847;border-radius:22px;box-shadow:0 18px 40px #0f172a14}.plotCard{padding:12px}.plotSvg{background:#fff;border-radius:16px;width:100%;height:calc(100vh - 124px);min-height:430px;max-height:650px;display:block}.gridLine{stroke:#e2e8f0;stroke-width:1px}.axisLine{stroke:#334155;stroke-width:2px}.tickLabel{fill:#64748b;font-size:12px}.axisLabel{fill:#334155;font-size:14px;font-weight:700}.dataPoint{fill:#0f172ab8}.manualCurve{stroke:#4f46e5;stroke-width:4px;stroke-linecap:round;stroke-linejoin:round}.leastSquaresCurve{stroke:#f43f5e;stroke-width:4px;stroke-linecap:round;stroke-linejoin:round}.trueFunctionCurve{stroke:#059669;stroke-width:3px;stroke-dasharray:8 7;stroke-linecap:round;stroke-linejoin:round;opacity:.62}.sidePanel{align-content:start;gap:12px;display:grid}.panelCard{padding:14px}.controlBlock+.controlBlock{margin-top:12px}.controlLabel{color:#475569;margin-bottom:6px;font-size:.78rem;font-weight:700}.degreeGrid{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;display:grid}.smallButton,.actionButton,.toggleTrueButton{color:#0f172a;background:#fff;border:1px solid #cbd5e1;border-radius:12px;transition:transform .12s,box-shadow .12s,background .12s,border-color .12s}.smallButton:hover,.actionButton:hover,.toggleTrueButton:hover{transform:translateY(-1px);box-shadow:0 8px 18px #0f172a1a}.smallButton{min-height:34px;padding:6px 8px;font-size:.78rem;font-weight:700}.smallButton.active{color:#fff;background:#4f46e5;border-color:#4f46e5}.sliderGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;margin-top:14px;display:grid}.sliderBlock{min-width:0}.sliderHeader{color:#334155;justify-content:space-between;align-items:center;gap:8px;margin-bottom:5px;font-size:.76rem;font-weight:700;display:flex}.valueBadge{color:#0f172a;text-align:right;background:#f1f5f9;border-radius:7px;min-width:54px;padding:2px 7px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;font-size:.74rem}input[type=range]{accent-color:#4f46e5;width:100%}.buttonGrid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:14px;display:grid}.actionButton{min-height:40px;padding:8px 10px;font-size:.86rem;font-weight:800}.actionButton.primary{color:#fff;background:#4f46e5;border-color:#4f46e5}.actionButton.secondary{background:#fff}.toggleTrueButton{color:#047857;background:#ecfdf5;border-color:#a7f3d0;width:100%;min-height:38px;margin-top:10px;padding:8px 10px;font-size:.84rem;font-weight:800}.toggleTrueButton.on{background:#f0fdf4}.resultCard{gap:12px;display:grid}.formulaBox{overflow-wrap:anywhere;color:#fff;text-align:center;background:#0f172a;border-radius:16px;padding:14px 12px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;font-size:.9rem;line-height:1.5}.metricGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.metric{text-align:center;border-radius:16px;padding:12px}.manualMetric{color:#312e81;background:#eef2ff}.leastSquaresMetric{color:#881337;background:#fff1f2}.metricLabel{font-size:.75rem;font-weight:800}.metricValue{margin-top:2px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;font-size:2rem;font-weight:900;line-height:1.1}.leastSquaresBox,.noteBox,.descriptionBox{border-radius:16px;padding:12px;font-size:.8rem;line-height:1.65}.leastSquaresBox,.noteBox{color:#881337;background:#fff1f2}.leastSquaresTitle{text-align:center;font-weight:900}.leastSquaresFormula{overflow-wrap:anywhere;text-align:center;margin-top:4px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;font-size:.76rem;font-weight:800}.descriptionBox{color:#334155;background:#f1f5f9}@media (width<=1180px){.mainGrid{grid-template-columns:1fr}.sidePanel{grid-template-columns:repeat(2,minmax(0,1fr))}.plotSvg{height:min(62vh,620px)}}@media (width<=820px){.header{flex-direction:column;align-items:flex-start}.legend{justify-content:flex-start}.sidePanel,.sliderGrid,.metricGrid,.buttonGrid{grid-template-columns:1fr}.plotSvg{min-height:360px}}
