.finite-difference-table td{vertical-align:middle;padding:1.25rem .85rem}.finite-difference-table th{padding:.75rem .85rem}.finite-difference-table :is(th,td):nth-child(n+2){text-align:center}.derivative-aside{border:1px solid #cbd5e1;border-radius:8px;margin:1.5rem 0;padding:.9rem 1rem}.derivative-aside>summary{cursor:pointer;font-weight:600}.derivative-aside>summary:focus-visible{outline-offset:4px;outline:3px solid #7c3aed}.loss-lab{color:#1e293b;background:#fbfcff;border:1px solid #cbd5e1;border-radius:12px;min-width:0;margin:2rem 0;padding:1.1rem;font:15px/1.55 system-ui,sans-serif}.loss-lab *{box-sizing:border-box}.loss-lab .ll-header{flex-direction:column;gap:.2rem;margin-bottom:1rem;display:flex}.loss-lab .ll-header strong{font-size:1.08rem}.loss-lab .ll-kicker{color:#64748b;letter-spacing:.06em;text-transform:uppercase;font-size:.74rem}.loss-lab .ll-controls{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));align-items:end;gap:1rem;display:grid}.loss-lab .ll-slider{min-width:0;margin:.4rem 0;display:block}.loss-lab .ll-slider>span{justify-content:space-between;gap:.75rem;display:flex}.loss-lab output{color:#1d4ed8;font-variant-numeric:tabular-nums}.loss-lab input[type=range]{accent-color:#2563eb;cursor:pointer;width:100%;min-height:28px;margin:.3rem 0 0}.loss-lab .ll-select{flex-direction:column;gap:.35rem;max-width:320px;margin:.4rem 0;display:flex}.loss-lab select{font:inherit;color:#1e293b;background:#fff;border:1px solid #94a3b8;border-radius:6px;width:100%;padding:.45rem}.loss-lab .ll-plot{width:100%;height:auto;margin:.6rem 0;display:block}.loss-lab .ll-average-plot{width:100%;height:auto;margin:1rem 0;display:block}.loss-lab .ll-average-plot text{fill:#17202a;font:18px system-ui,sans-serif}.loss-lab .ll-average-axis{fill:none;stroke:#17202a;stroke-width:2.5px}.loss-lab .ll-average-area{fill:#e5e7eb;fill-opacity:.5}.loss-lab .ll-average-guide{stroke:#a1a1aa;stroke-width:1.5px;stroke-dasharray:5 6}.loss-lab .ll-average-triangle{fill:none;stroke:#717786;stroke-width:2px}.loss-lab .ll-average-curve{fill:none;stroke:#51978a;stroke-width:5px}.loss-lab .ll-average-secant{fill:none;stroke:#4e63df;stroke-width:3px;stroke-dasharray:10 7}.loss-lab .ll-average-first-line{stroke:#b45309;stroke-width:3px;stroke-dasharray:5 3}.loss-lab .ll-average-second-line{stroke:#7c3aed;stroke-width:3px;stroke-dasharray:5 3}.loss-lab .ll-average-plot .ll-average-curve{stroke-width:2.5px}.loss-lab .ll-average-plot :is(.ll-average-secant,.ll-average-first-line,.ll-average-second-line){stroke-width:1.5px}.loss-lab .ll-average-plot :is(.ll-average-axis,.ll-average-triangle){stroke-width:1.25px}.loss-lab .ll-average-plot .ll-average-guide{stroke-width:1px}.loss-lab .ll-average-point{fill:#4e63df}.loss-lab .ll-average-blue{color:#4055ce}.loss-lab .ll-average-green{color:#307669}.loss-lab .ll-average-legend{justify-content:center}.loss-lab .ll-average-legend span{align-items:center;gap:.4rem;display:inline-flex}.loss-lab .ll-average-legend i{border-top:2px dashed;width:20px}.loss-lab .ll-average-legend .ll-average-green i{border-top-style:solid}.loss-lab .ll-average-first-key{color:#92400e}.loss-lab .ll-average-second-key{color:#6d28d9}.loss-lab .ll-autodiff{width:100%;height:auto;margin:.6rem 0;display:block}.loss-lab .ll-autodiff-trace{min-width:600px}.loss-lab .ll-autodiff text{font-size:14px}.loss-lab .ll-equation{margin:.7rem 0;font:1.05rem/1.5 ui-monospace,monospace}.loss-lab svg text{fill:#475569;font:12px system-ui,sans-serif}.loss-lab .ll-grid{stroke:#e2e8f0;stroke-width:1px}.loss-lab .ll-axis{stroke:#94a3b8;stroke-width:1px}.loss-lab .ll-curve{fill:none;stroke:#2563eb;stroke-width:2.8px}.loss-lab .ll-tangent{fill:none;stroke:#7c3aed;stroke-width:2px;stroke-dasharray:7 4}.loss-lab .ll-secant{fill:none;stroke:#b45309;stroke-width:2px;stroke-dasharray:3 4}.loss-lab .ll-dot{fill:#2563eb;stroke:#fff;stroke-width:1.5px}.loss-lab .ll-dot-second{fill:#b45309;stroke:#fff;stroke-width:1.5px}.loss-lab .ll-predicted{fill:none;stroke:#7c3aed;stroke-width:2px}.loss-lab .ll-target{fill:#15803d}.loss-lab .ll-error{stroke:#b91c1c;stroke-width:1.5px;stroke-dasharray:4 4}.loss-lab .ll-legend{flex-wrap:wrap;gap:.4rem 1rem;margin-bottom:.8rem;font-size:.8rem;display:flex}.loss-lab .ll-slope-header{text-align:center}.loss-lab .ll-slope-legend{justify-content:center}.loss-lab .ll-slope-values{grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem;max-width:28rem;margin:.65rem auto 0;display:grid}.loss-lab .ll-slope-value{text-align:center;border:1px solid;border-radius:8px;flex-direction:column;align-items:center;gap:.2rem;padding:.45rem .5rem;display:flex}.loss-lab .ll-slope-exact{color:#6d28d9;background:#f5f3ff}.loss-lab .ll-slope-estimate{color:#92400e;background:#fff7ed}.loss-lab .ll-slope-value>strong{font-variant-numeric:tabular-nums;font-size:1.3rem;line-height:1.2}.loss-lab .ll-slope-value>span:first-child{font-size:.85rem;font-weight:600}.loss-lab .ll-slope-formula{overflow-wrap:anywhere;font:.75rem/1.5 ui-monospace,monospace}.loss-lab .ll-refresh-flow{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:.5rem;margin:1rem 0;display:grid}.loss-lab .ll-refresh-node{text-align:center;background:#fff;border:1px solid #cbd5e1;border-radius:8px;flex-direction:column;gap:.2rem;padding:.5rem .25rem;font-size:.8rem;display:flex}.loss-lab .ll-refresh-node strong{color:#1d4ed8;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;font-size:1.25rem}.loss-lab .ll-refresh-arrow{color:#64748b}.loss-lab .ll-refresh-rules{grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;display:grid}.loss-lab .ll-refresh-rules>div{text-align:center;overflow-wrap:anywhere;flex-direction:column;gap:.25rem;font-size:.8rem;display:flex}.loss-lab .ll-refresh-rules small{color:#64748b}.loss-lab .ll-refresh-gradient{color:#6d28d9;text-align:center;overflow-wrap:anywhere;background:#f5f3ff;border-radius:8px;margin-top:.75rem;padding:.6rem}.loss-lab .ll-refresh-change{flex-wrap:wrap;justify-content:center;gap:.3rem 1.25rem;font-size:.85rem;display:flex}.loss-lab.ll-refresh .ll-actions{justify-content:center}.loss-lab .ll-paths-diagram{width:100%;max-width:600px;margin:0 auto;display:block}.loss-lab .ll-paths-diagram text{font-size:17px}.loss-lab .ll-paths-diagram .ll-paths-number{fill:#1d4ed8;font-size:21px;font-weight:600}.loss-lab.ll-paths .ll-actions{justify-content:center}.loss-lab.ll-paths button[aria-pressed=true]{background:#eff4fc;border-color:#2563eb;box-shadow:inset 0 0 0 1px #2563eb}.loss-lab .ll-paths-contributions,.loss-lab .ll-paths-comparison{grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem;margin-top:.8rem;display:grid}.loss-lab .ll-paths-contributions>div,.loss-lab .ll-paths-comparison>div{text-align:center;overflow-wrap:anywhere;border-radius:8px;flex-direction:column;gap:.25rem;padding:.5rem;font-size:.8rem;display:flex}.loss-lab .ll-paths-indirect{color:#92400e;background:#fff7ed;border:1px solid #fed7aa}.loss-lab .ll-paths-direct{color:#6d28d9;background:#f5f3ff;border:1px solid #ddd6fe}.loss-lab .ll-paths-total{text-align:center}.loss-lab .ll-paths-comparison>div{background:#fff;border:1px solid #cbd5e1}.loss-lab .ll-paths-comparison strong{font-variant-numeric:tabular-nums;font-size:1.25rem}.loss-lab .ll-blue{color:#1d4ed8}.loss-lab .ll-purple{color:#6d28d9}.loss-lab .ll-orange{color:#92400e}.loss-lab .ll-green{color:#166534}.loss-lab .ll-red{color:#991b1b}.loss-lab .ll-readout{overflow-wrap:anywhere;font-variant-numeric:tabular-nums;background:#eff4fc;border-radius:6px;margin:.8rem 0;padding:.8rem}.loss-lab .ll-readout p{font:inherit;margin:.5rem 0 0}.loss-lab .ll-actions{flex-wrap:wrap;gap:.5rem;margin:.8rem 0;display:flex}.loss-lab button{font:inherit;color:#1e40af;cursor:pointer;background:#fff;border:1px solid #94a3b8;border-radius:6px;min-height:40px;padding:.5rem .7rem;font-size:.9rem}.loss-lab button:hover:enabled{background:#eff6ff;border-color:#2563eb}.loss-lab button:disabled{opacity:.5;cursor:default}.loss-lab :is(button,select,input,[tabindex]):focus-visible{outline-offset:3px;outline:3px solid #7c3aed}.loss-lab .ll-note{color:#475569;margin:.7rem 0 0;font-size:.85rem}.loss-lab .ll-graph-scroll,.loss-lab .ll-table-scroll{overflow-x:auto}.loss-lab .ll-graph{width:100%;min-width:620px;display:block}.loss-lab .ll-mobile-hint{display:none}.loss-lab .ll-graph text[fill]{fill:#6d28d9}.loss-lab table{border-collapse:collapse;width:100%;font:inherit;margin:0;font-size:.85rem}.loss-lab caption{text-align:left;color:#64748b;padding-bottom:.5rem;font-size:.8rem}.loss-lab :is(th,td){text-align:left;white-space:nowrap;border-bottom:1px solid #e2e8f0;padding:.35rem .5rem}@media (width<=480px){.loss-lab{padding:.75rem}.loss-lab .ll-controls{grid-template-columns:1fr;gap:.3rem}.loss-lab .ll-plot text{font-size:18px}.loss-lab .ll-average-plot text{font-size:24px}.loss-lab .ll-autodiff text{font-size:16px}.loss-lab .ll-mobile-hint{color:#475569;font-size:.85rem;display:block}}
