:root{color-scheme:light;--bg: #f7f8fb;--panel: #ffffff;--panel-soft: #f0f5f4;--ink: #17212b;--muted: #61707f;--line: #d8e0e5;--accent: #0f766e;--accent-strong: #0b5f59;--accent-soft: #d9f2ee;--blue: #2f6fbe;--red: #d34a43;--amber: #b7791f;--violet: #6f58c9;--shadow: 0 18px 46px rgba(36, 53, 68, .12);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}html,body,#root{margin:0;min-height:100vh}body{background:linear-gradient(180deg,#ffffffb8,#f7f8fbf5),radial-gradient(circle at 17% 0%,rgba(15,118,110,.14),transparent 30%),var(--bg);color:var(--ink)}button,input,select{font:inherit}button{border:0}h1,h2,h3,p{margin:0}.app-shell{min-height:100vh;display:grid;grid-template-rows:auto 1fr}.topbar{min-height:78px;display:grid;grid-template-columns:minmax(230px,330px) minmax(240px,1fr) auto;gap:18px;align-items:center;padding:16px 22px;background:#ffffffe6;border-bottom:1px solid var(--line);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);position:sticky;top:0;z-index:20}.brand-block{display:flex;align-items:center;gap:12px;min-width:0}.brand-mark{width:42px;height:42px;display:grid;grid-template-columns:repeat(3,1fr);align-items:end;gap:4px;padding:8px;border:1px solid rgba(15,118,110,.28);background:#e7f6f2;border-radius:8px;flex:0 0 auto}.brand-mark span{display:block;border-radius:999px 999px 3px 3px;background:var(--accent)}.brand-mark span:nth-child(1){height:15px}.brand-mark span:nth-child(2){height:25px;background:var(--blue)}.brand-mark span:nth-child(3){height:20px;background:var(--amber)}h1{font-size:1.18rem;line-height:1.1;letter-spacing:0}.brand-block p,.stage-summary,.code-note,.toggle-row p{color:var(--muted)}.brand-block p{margin-top:3px;font-size:.82rem}.search-shell{height:44px;display:flex;align-items:center;gap:9px;padding:0 14px;border:1px solid var(--line);background:#fff;border-radius:8px;min-width:0;color:var(--muted)}.search-shell input{width:100%;border:0;outline:0;color:var(--ink);background:transparent}.topbar-actions,.dataset-actions{display:flex;align-items:center;gap:8px}.button,.icon-button{height:40px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:8px;cursor:pointer;transition:transform .15s ease,background-color .15s ease,border-color .15s ease,color .15s ease;white-space:nowrap}.button{padding:0 14px;font-weight:800}.button.primary{background:var(--accent);color:#fff;min-width:92px}.compact-button{min-width:0;height:36px}.button.secondary{background:#fff;border:1px solid var(--line);color:var(--ink)}.icon-button{width:40px;background:#fff;border:1px solid var(--line);color:var(--ink)}.icon-button.compact{width:36px;height:36px}.button:hover,.icon-button:hover{transform:translateY(-1px)}.button.primary:hover{background:var(--accent-strong)}.button:focus-visible,.icon-button:focus-visible,.tab:focus-visible,.algorithm-row:focus-visible,.segmented-control button:focus-visible{outline:3px solid rgba(15,118,110,.25);outline-offset:2px}.layout{display:grid;grid-template-columns:minmax(220px,280px) minmax(0,1fr);min-height:0}.catalog-panel,.side-panel{background:#ffffffe6;min-height:0}.catalog-panel{border-right:1px solid var(--line);padding:18px 14px;overflow:auto}.panel-heading{display:flex;align-items:center;justify-content:space-between;margin:0 4px 12px}.panel-heading p,.eyebrow,.metric-card span,.data-summary span,.formula-card span{text-transform:uppercase;color:var(--muted);font-weight:900;font-size:.72rem;letter-spacing:.08em}.panel-heading span{color:var(--muted);font-size:.8rem}.catalog-filter-row{display:flex;flex-wrap:wrap;gap:7px;margin:0 4px 16px}.catalog-filter{min-height:30px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--muted);padding:0 10px;cursor:pointer;font-size:.74rem;font-weight:900}.catalog-filter:hover,.catalog-filter.active{border-color:#0f766e52;background:var(--accent-soft);color:var(--accent-strong)}.catalog-quick-section{display:grid;gap:9px;margin:0 4px 16px}.quick-section-heading{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:.72rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.recommended-path{display:grid;gap:6px}.path-step{width:100%;min-height:34px;display:grid;grid-template-columns:24px minmax(0,1fr);gap:8px;align-items:center;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);padding:6px 8px;cursor:pointer;text-align:left}.path-step span{width:22px;height:22px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:var(--panel-soft);color:var(--accent-strong);font-size:.72rem;font-weight:900}.path-step strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.78rem}.path-step:hover,.path-step.active{border-color:#0f766e52;background:var(--accent-soft)}.recent-row{display:flex;flex-wrap:wrap;gap:6px}.recent-chip{min-height:28px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--muted);padding:0 8px;cursor:pointer;font-size:.72rem;font-weight:900;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.recent-chip:hover,.recent-chip.active{border-color:#0f766e4d;background:var(--accent-soft);color:var(--accent-strong)}.catalog-list{display:grid;gap:8px}.category-group{display:grid;gap:6px}.category-title-button{width:100%;min-height:34px;display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:7px;border-radius:8px;background:transparent;color:var(--muted);padding:0 6px;cursor:pointer;text-align:left}.category-title-button:hover{background:#eef3f5}.category-title-button span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:.78rem;font-weight:900}.category-title-button small{min-width:24px;border-radius:999px;background:var(--panel-soft);color:var(--muted);padding:2px 6px;text-align:center;font-size:.68rem;font-weight:900}.category-title-button svg{transition:transform .16s ease}.category-title-button svg.open{transform:rotate(180deg)}.algorithm-row{width:100%;display:grid;grid-template-columns:10px 1fr;gap:10px;align-items:center;padding:11px 10px;border-radius:8px;background:transparent;color:var(--ink);text-align:left;cursor:pointer;border:1px solid transparent}.algorithm-row.active{background:var(--accent-soft);border-color:#0f766e38}.algorithm-row:hover{background:#eef3f5}.category-placeholder{display:grid;grid-template-columns:10px 1fr;gap:10px;align-items:start;padding:9px 10px 10px;border:1px dashed var(--line);border-radius:8px;background:#f0f5f48c}.category-placeholder span{width:10px;height:10px;margin-top:4px;border-radius:999px;background:#c3d0d6}.category-placeholder p{color:var(--muted);font-size:.82rem;line-height:1.35}.algorithm-dot{width:10px;height:10px;border-radius:999px;background:var(--accent)}.algorithm-main{min-width:0}.algorithm-main strong,.metric-card strong,.data-summary strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.algorithm-main small{display:block;margin-top:3px;color:var(--muted);line-height:1.35}.stage-panel{min-width:0;display:grid;align-content:start;gap:18px;padding:22px;overflow:auto}.primary-workspace{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,360px);align-items:start;gap:16px}.visual-column{min-width:0}.stage-header{display:flex;justify-content:space-between;gap:18px;align-items:end}.stage-header h2{margin-top:5px;font-size:clamp(1.45rem,2vw,2.12rem);letter-spacing:0}.stage-summary{margin-top:6px;max-width:720px;line-height:1.45}.concept-graph-card{overflow:hidden;border:1px solid var(--line);border-radius:8px;background:#fffffff0;box-shadow:0 14px 38px #2435441a}.concept-graph-header{min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 15px;border-bottom:1px solid var(--line);background:#fbfcfd}.concept-graph-header h3{margin-top:4px;font-size:1.02rem;letter-spacing:0}.graph-legend{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px}.graph-legend span{min-height:26px;display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--muted);padding:3px 8px;font-size:.74rem;font-weight:800}.graph-legend i{width:8px;height:8px;border-radius:999px}.concept-graph-body{display:grid;grid-template-columns:minmax(420px,1fr) minmax(245px,300px);min-height:330px}.concept-graph-svg{width:100%;min-height:330px;display:block;background:linear-gradient(#ecf1f4 1px,transparent 1px),linear-gradient(90deg,#ecf1f4 1px,transparent 1px),#fff;background-size:32px 32px}.graph-link{stroke:#c9d5dc;stroke-width:1.5}.graph-link.primary{stroke:#0f766e7a;stroke-width:2.4}.graph-link-label{fill:var(--muted);paint-order:stroke;stroke:#fff;stroke-width:5px;stroke-linejoin:round;text-anchor:middle;font-size:.72rem;font-weight:800}.graph-node{cursor:pointer}.graph-node circle,.graph-node-label{transition:fill .18s ease,r .18s ease,stroke-width .18s ease,transform .18s ease}.graph-node:hover circle:first-child,.graph-node:focus-visible circle:first-child{stroke-width:4}.graph-node:focus-visible{outline:none}.graph-node-label{fill:var(--muted);text-anchor:middle;font-size:.76rem;font-weight:900}.graph-node-label.active{fill:var(--ink);font-size:.86rem}.graph-focus-ring circle{fill:none;stroke:#0f766e38;stroke-width:2;stroke-dasharray:6 6}.concept-graph-detail{min-width:0;display:grid;align-content:start;gap:12px;padding:16px;border-left:1px solid var(--line);background:#f7fafc}.detail-kicker,.neighbor-heading{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:.74rem;font-weight:900;text-transform:uppercase}.concept-graph-detail h4{color:var(--ink);font-size:1.05rem;letter-spacing:0}.concept-graph-detail p{color:var(--muted);line-height:1.48;font-size:.9rem}.concept-neighbor-list{display:grid;gap:8px}.neighbor-row{width:100%;display:grid;grid-template-columns:16px minmax(0,1fr);gap:8px;align-items:start;padding:9px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);text-align:left;cursor:pointer}.neighbor-row:hover,.neighbor-row:focus-visible{border-color:#0f766e57;background:var(--accent-soft);outline:none}.neighbor-row strong,.neighbor-row small{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.neighbor-row strong{font-size:.82rem}.neighbor-row small{margin-top:3px;color:var(--muted);font-size:.76rem}.status-pills{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.lesson-guide{display:grid;gap:12px;padding:2px 0 0}.lesson-guide-header{display:flex;justify-content:space-between;gap:14px;align-items:end}.lesson-guide-header h3{margin-top:4px;font-size:1.02rem;letter-spacing:0}.lesson-guide-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.lesson-guide-card{min-width:0;min-height:96px;display:grid;grid-template-columns:30px minmax(0,1fr);align-items:start;gap:10px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);padding:11px;text-align:left}.lesson-guide-card.interactive{cursor:pointer}.lesson-guide-card.interactive:hover{border-color:#0f766e57;background:#f6fbfa}.guide-icon{width:30px;height:30px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;background:var(--accent-soft);color:var(--accent-strong)}.guide-copy{min-width:0;display:grid;gap:5px}.guide-copy strong{color:var(--ink);font-size:.82rem}.guide-copy small{color:var(--muted);display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-height:1.38;font-size:.78rem}.lesson-current-run{min-height:44px;display:flex;align-items:center;gap:10px;flex-wrap:wrap;border:1px solid #cfe0de;border-radius:8px;background:#f3faf8;padding:9px 11px}.lesson-current-run span{color:var(--muted);font-size:.7rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.lesson-current-run strong{color:var(--ink);font-size:.86rem;line-height:1.35}.lesson-current-run em{margin-left:auto;color:var(--accent-strong);font-style:normal;font-size:.78rem;font-weight:900}.pill{display:inline-flex;align-items:center;min-height:28px;border-radius:999px;background:#fff;border:1px solid var(--line);color:var(--muted);padding:4px 9px;font-weight:800;font-size:.78rem}.visual-shell{position:relative;min-height:360px;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow);overflow:hidden}.visual-shell.backprop-shell,.visual-shell.activation-shell,.visual-shell.loss-shell,.visual-shell.optimizer-shell,.visual-shell.framework-shell,.visual-shell.stochastic-shell,.visual-shell.svd-shell,.visual-shell.nmf-shell,.visual-shell.polynomial-shell,.visual-shell.bayesian-regression-shell,.visual-shell.bayes-rule-shell,.visual-shell.gda-shell,.visual-shell.determinant-shell,.visual-shell.eigen-direction-shell,.visual-shell.regularization-shell,.visual-shell.convex-shell,.visual-shell.dynamic-programming-shell{min-height:620px}.visual-shell.framework-shell,.visual-shell.stochastic-shell,.visual-shell.tokenizer-shell,.visual-shell.hidden-markov-shell,.visual-shell.svd-shell,.visual-shell.nmf-shell,.visual-shell.polynomial-shell,.visual-shell.bayesian-regression-shell,.visual-shell.bayes-rule-shell,.visual-shell.gda-shell,.visual-shell.determinant-shell,.visual-shell.eigen-direction-shell,.visual-shell.regularization-shell,.visual-shell.convex-shell,.visual-shell.convolution-shell,.visual-shell.dynamic-programming-shell{min-height:680px}.visual-shell canvas{width:100%;height:100%;min-height:360px;display:block}.visual-shell.dynamic-programming-shell canvas,.visual-shell.polynomial-shell canvas,.visual-shell.gda-shell canvas,.visual-shell.bayesian-regression-shell canvas,.visual-shell.determinant-shell canvas,.visual-shell.eigen-direction-shell canvas{cursor:crosshair}.visual-shell.backprop-shell canvas,.visual-shell.activation-shell canvas,.visual-shell.loss-shell canvas,.visual-shell.optimizer-shell canvas,.visual-shell.framework-shell canvas,.visual-shell.stochastic-shell canvas,.visual-shell.hidden-markov-shell canvas,.visual-shell.svd-shell canvas,.visual-shell.nmf-shell canvas,.visual-shell.polynomial-shell canvas,.visual-shell.bayesian-regression-shell canvas,.visual-shell.bayes-rule-shell canvas,.visual-shell.gda-shell canvas,.visual-shell.determinant-shell canvas,.visual-shell.eigen-direction-shell canvas,.visual-shell.regularization-shell canvas,.visual-shell.convex-shell canvas,.visual-shell.dynamic-programming-shell canvas{min-height:620px}.visual-shell.framework-shell canvas,.visual-shell.stochastic-shell canvas,.visual-shell.tokenizer-shell canvas,.visual-shell.hidden-markov-shell canvas,.visual-shell.svd-shell canvas,.visual-shell.nmf-shell canvas,.visual-shell.polynomial-shell canvas,.visual-shell.bayesian-regression-shell canvas,.visual-shell.bayes-rule-shell canvas,.visual-shell.gda-shell canvas,.visual-shell.determinant-shell canvas,.visual-shell.eigen-direction-shell canvas,.visual-shell.regularization-shell canvas,.visual-shell.convex-shell canvas,.visual-shell.convolution-shell canvas,.visual-shell.dynamic-programming-shell canvas{min-height:680px}.canvas-readout{position:absolute;left:12px;bottom:12px;max-width:min(500px,calc(100% - 24px));display:flex;flex-wrap:wrap;gap:8px;align-items:center;background:#ffffffe0;border:1px solid var(--line);border-radius:8px;color:var(--muted);padding:8px 10px;font-size:.82rem;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.canvas-readout strong{color:var(--ink)}.metrics-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.primary-rail{min-width:0;position:sticky;top:94px;display:grid;align-content:start;gap:16px}.primary-card-heading{display:flex;justify-content:space-between;gap:10px;align-items:end;margin-bottom:10px}.primary-card-heading h3{margin-top:4px;font-size:1rem;letter-spacing:0}.primary-rail .control-stack{gap:10px}.primary-rail .metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.metric-card{background:#fff;border:1px solid var(--line);border-radius:8px;padding:11px 12px;min-width:0}.metric-card strong{margin-top:5px;color:var(--ink);font-size:1rem}.secondary-learning{display:grid;gap:12px}.secondary-learning-header{display:flex;justify-content:space-between;gap:16px;align-items:end;padding-top:2px}.secondary-learning-header h3{margin-top:4px;font-size:1.02rem;letter-spacing:0}.secondary-tabbar{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.secondary-tabbar .tab{min-height:36px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--muted);padding:0 13px;cursor:pointer;font-size:.8rem;font-weight:900;text-transform:none}.secondary-tabbar .tab.active{border-color:#0f766e57;background:var(--accent-soft);color:var(--accent-strong)}.secondary-panel-body{min-width:0}.applications-panel{display:grid;gap:14px}.applications-header{display:grid;gap:5px;max-width:920px}.applications-header h3{font-size:1.08rem;letter-spacing:0}.applications-header p{color:var(--muted);line-height:1.5}.application-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.application-card{min-width:0;display:grid;align-content:start;gap:12px;border:1px solid var(--line);border-radius:8px;background:#fff;padding:14px}.application-card-title{display:grid;grid-template-columns:32px minmax(0,1fr);gap:10px;align-items:center}.application-card-title span{width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;background:var(--accent-soft);color:var(--accent-strong)}.application-card h4{font-size:.98rem;letter-spacing:0}.application-card p,.application-caveat,.application-flow-pill small{color:var(--muted);line-height:1.45}.application-card p{font-size:.9rem}.application-flow{display:grid;grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr);gap:8px;align-items:center}.application-flow>svg{color:var(--muted)}.application-flow-pill{min-width:0;display:grid;grid-template-columns:20px minmax(0,1fr);gap:7px;align-items:start;min-height:74px;border:1px solid var(--line);border-radius:8px;background:#f7fafc;padding:9px}.application-flow-pill svg{color:var(--accent-strong);margin-top:2px}.application-flow-pill span{min-width:0;display:grid;gap:3px}.application-flow-pill strong{color:var(--ink);font-size:.76rem;text-transform:uppercase;letter-spacing:.06em}.application-flow-pill small{font-size:.78rem}.application-caveat{display:grid;grid-template-columns:18px minmax(0,1fr);gap:7px;align-items:start;border:1px solid rgba(183,121,31,.28);border-radius:8px;background:#fffaf0;padding:9px;font-size:.82rem}.application-caveat svg{color:var(--amber);margin-top:2px}.algorithm-deep-dive{display:grid;gap:14px;padding:16px;border:1px solid var(--line);border-radius:8px;background:#ffffffeb;box-shadow:0 12px 34px #24354414}.deep-dive-header{display:grid;gap:5px;max-width:920px}.deep-dive-header span,.deep-dive-block span,.deep-dive-current span{text-transform:uppercase;color:var(--muted);font-weight:900;font-size:.7rem;letter-spacing:.08em}.deep-dive-header h3{font-size:1.08rem;letter-spacing:0}.deep-dive-header p,.deep-dive-block li,.deep-dive-block p,.deep-dive-current,.big-o-glossary span{color:var(--muted);line-height:1.45}.deep-dive-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(260px,.8fr);gap:12px}.deep-dive-block{min-width:0;display:grid;align-content:start;gap:10px;padding:13px;border:1px solid var(--line);border-radius:8px;background:#fbfcfd}.deep-dive-block-wide{grid-row:span 2}.deep-dive-block ul{margin:0;padding-left:18px}.deep-dive-block li+li{margin-top:7px}.complexity-list{display:grid;gap:8px;margin:0}.complexity-list div{display:grid;grid-template-columns:82px minmax(0,1fr);gap:8px}.complexity-list dt{color:var(--ink);font-size:.78rem;font-weight:900}.complexity-list dd{margin:0;color:var(--muted);font-size:.82rem;line-height:1.35}.complexity-bars{display:grid;gap:8px}.complexity-bar-row{display:grid;grid-template-columns:104px minmax(0,1fr);gap:9px;align-items:center}.complexity-bar-row span{color:var(--muted);font-size:.74rem;font-weight:800;letter-spacing:0;text-transform:none}.complexity-bar-row div{height:9px;overflow:hidden;border-radius:999px;background:#e6edf1}.complexity-bar-row i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--accent),var(--blue))}.deep-dive-current{display:grid;grid-template-columns:minmax(220px,1fr) minmax(260px,auto);gap:12px;align-items:center;padding:12px 13px;border:1px solid #cfe0de;border-radius:8px;background:#f3faf8}.deep-dive-current strong{display:block;margin-top:4px;color:var(--ink);line-height:1.35}.deep-dive-metric-strip{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px}.deep-dive-metric-strip span{min-height:28px;display:inline-flex;align-items:center;gap:4px;border:1px solid var(--line);border-radius:999px;background:#fff;padding:4px 9px;color:var(--muted);font-size:.78rem;font-weight:800;letter-spacing:0;text-transform:none}.deep-dive-metric-strip strong{display:inline;margin:0;color:var(--ink)}.big-o-glossary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.big-o-glossary div{min-width:0;display:grid;gap:4px;padding:10px;border:1px solid var(--line);border-radius:8px;background:#fff}.big-o-glossary strong{color:var(--ink);font-size:.8rem}.big-o-glossary span{font-size:.78rem}.side-panel{position:sticky;top:94px;max-height:calc(100vh - 112px);min-width:0;display:grid;grid-template-rows:auto 1fr;border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow);overflow:hidden}.side-scroll{overflow:auto;min-height:0;padding:14px}.tabbar{display:grid;grid-template-columns:repeat(4,1fr);border-bottom:1px solid var(--line);background:#fff}.tab{min-height:48px;background:transparent;color:var(--muted);cursor:pointer;font-weight:900;border-bottom:3px solid transparent;text-transform:capitalize}.tab.active{color:var(--accent-strong);border-bottom-color:var(--accent)}.control-stack,.dataset-panel,.education-panel,.code-viewer,.notebook-panel{display:grid;gap:16px}.control-card{background:#fff;border:1px solid var(--line);border-radius:8px;padding:12px}.stepper-control{display:grid;gap:12px}.stepper-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.stepper-button{min-height:36px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:8px;background:var(--panel-soft);color:var(--ink);cursor:pointer}.stepper-button:hover:not(:disabled){background:var(--accent-soft);color:var(--accent-strong)}.stepper-button:disabled{color:#a5b1ba;cursor:not-allowed}.action-control{display:grid;gap:12px}.action-button{width:100%}.text-control{display:grid;gap:12px}.text-control textarea{width:100%;min-height:112px;resize:vertical;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);padding:10px;line-height:1.45}.quick-insert-row{display:flex;flex-wrap:wrap;gap:7px}.quick-insert-button{min-height:32px;border:1px solid var(--line);border-radius:8px;background:var(--panel-soft);color:var(--ink);padding:0 9px;cursor:pointer;font-size:.8rem;font-weight:900}.quick-insert-button:hover{background:var(--accent-soft);color:var(--accent-strong)}.gridworld-control{gap:12px}.gridworld-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.gridworld-counts span{border:1px solid var(--line);background:#f7fafc;color:var(--muted);font-size:.74rem;font-weight:800;padding:7px 8px;text-align:center}.matrix-control{display:grid;gap:12px}.matrix-grid{display:grid;grid-template-columns:minmax(44px,.9fr) repeat(3,minmax(48px,1fr)) minmax(46px,.8fr);gap:6px;align-items:center}.matrix-heading,.matrix-row-sum{min-height:32px;display:inline-flex;align-items:center;justify-content:center;border-radius:6px;background:var(--panel-soft);color:var(--muted);font-size:.74rem;font-weight:900}.matrix-sum-heading{color:var(--accent-strong)}.matrix-row-sum{background:#fff;border:1px solid var(--line);color:var(--amber);font-variant-numeric:tabular-nums}.matrix-row-sum.balanced{color:var(--accent-strong)}.matrix-grid input{width:100%;min-width:0;min-height:32px;border:1px solid var(--line);border-radius:6px;color:var(--ink);background:#fff;padding:0 5px;text-align:center;font-size:.78rem;font-weight:800}.image-control{display:grid;gap:12px}.image-upload-button{min-height:38px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);cursor:pointer;font-weight:900}.image-upload-button input{display:none}.image-upload-button:hover{background:var(--accent-soft);color:var(--accent-strong)}.image-control-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--muted);font-size:.78rem;font-weight:800}.image-control-meta span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.control-group{display:grid;gap:8px}.control-label{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.control-label strong,.toggle-row strong{color:var(--ink);font-size:.92rem}.control-label span:last-child{color:var(--accent-strong);font-variant-numeric:tabular-nums;font-weight:900}input[type=range]{width:100%;accent-color:var(--accent)}select{width:100%;min-height:38px;border:1px solid var(--line);border-radius:8px;color:var(--ink);background:#fff;padding:0 10px}.toggle-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:42px}.toggle-row p{margin-top:3px;line-height:1.4;font-size:.84rem}.switch{position:relative;width:48px;height:26px;flex:0 0 auto}.switch input{opacity:0;width:0;height:0}.switch span{position:absolute;inset:0;border-radius:999px;background:#cbd5dc;cursor:pointer}.switch span:after{content:"";position:absolute;width:20px;height:20px;top:3px;left:3px;border-radius:999px;background:#fff;box-shadow:0 2px 8px #17212b3d;transition:transform .16s ease}.switch input:checked+span{background:var(--accent)}.switch input:checked+span:after{transform:translate(22px)}.dataset-actions{flex-wrap:wrap}.data-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px;background:#fff;border:1px solid var(--line);border-radius:8px}.data-summary span{display:block;margin-bottom:5px}.dataset-issues{display:grid;gap:8px}.dataset-issue{display:grid;gap:4px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:#fff}.dataset-issue strong{color:var(--ink);font-size:.78rem;text-transform:uppercase}.dataset-issue span{color:var(--muted);line-height:1.42;font-size:.82rem}.dataset-issue.error{border-color:#d34a436b;background:#fff7f6}.dataset-issue.warning{border-color:#b7791f61;background:#fffaf0}.mapping-controls{display:grid;gap:12px}.mapping-field{display:grid;gap:7px}.mapping-field span{color:var(--muted);font-size:.8rem;font-weight:900}.data-preview{display:grid;border:1px solid var(--line);border-radius:8px;background:#fff;overflow:hidden}.preview-row{display:grid;grid-template-columns:minmax(74px,1fr) minmax(74px,1fr) minmax(74px,1fr);gap:8px;padding:8px 10px;border-bottom:1px solid var(--line);color:var(--muted);font-size:.82rem}.preview-row:last-child{border-bottom:0}.preview-row.header{color:var(--ink);font-weight:900;background:var(--panel-soft)}.education-copy{display:grid;gap:12px}.education-copy p{color:var(--muted);line-height:1.62;font-size:.94rem}.formula-stack{display:grid;gap:10px}.formula-card{display:grid;gap:8px;padding:12px;background:var(--panel-soft);border:1px solid var(--line);border-radius:8px;overflow:auto}.formula{color:var(--ink);min-width:0}.code-viewer-header{display:flex;justify-content:space-between;gap:10px;align-items:center}.segmented-control{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:3px;background:var(--panel-soft);border:1px solid var(--line);border-radius:8px;flex:1 1 auto}.segmented-control button{min-height:32px;border-radius:6px;background:transparent;color:var(--muted);cursor:pointer;font-weight:900}.segmented-control button.active{color:var(--ink);background:#fff;box-shadow:0 2px 8px #17212b14}.code-note{line-height:1.5;font-size:.86rem}.code-viewer pre{margin:0;max-height:calc(100vh - 240px);min-height:360px;overflow:auto;border-radius:8px;border:1px solid #26323f;font-size:.82rem;line-height:1.55}.notebook-header{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.notebook-header h3{margin-top:4px;font-size:1.08rem;letter-spacing:0}.notebook-header p{max-width:840px;color:var(--muted);line-height:1.5}.notebook-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.notebook-frame-shell{min-height:620px;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:#fff;box-shadow:0 16px 36px #17212b14}.notebook-frame-shell iframe{display:block;width:100%;min-height:620px;border:0;background:#fff}.empty-state{color:var(--muted);padding:14px;border:1px dashed var(--line);border-radius:8px;line-height:1.5}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:1180px){.topbar{grid-template-columns:1fr}.layout{grid-template-columns:minmax(210px,260px) minmax(0,1fr)}.primary-workspace{grid-template-columns:minmax(0,1fr) minmax(270px,320px)}.primary-rail,.side-panel{top:128px;max-height:calc(100vh - 146px)}.code-viewer pre{max-height:520px}.concept-graph-body{grid-template-columns:1fr}.concept-graph-detail{border-left:0;border-top:1px solid var(--line)}}@media(max-width:980px){.primary-workspace{grid-template-columns:1fr}.primary-rail,.side-panel{position:static;max-height:none}.primary-rail .metrics-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.side-scroll{max-height:min(560px,70vh)}.lesson-guide-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.application-card-grid{grid-template-columns:1fr}}@media(max-width:780px){.topbar{padding:14px}.topbar-actions{flex-wrap:wrap}.layout{grid-template-columns:1fr}.catalog-panel{border-right:0;border-bottom:1px solid var(--line);max-height:360px}.stage-panel{padding:16px}.stage-header,.lesson-guide-header,.notebook-header,.secondary-learning-header{align-items:flex-start;flex-direction:column}.status-pills,.secondary-tabbar{justify-content:flex-start}.concept-graph-header{align-items:flex-start;flex-direction:column}.graph-legend{justify-content:flex-start}.concept-graph-body{min-height:0}.concept-graph-svg{min-height:300px}.metrics-grid,.primary-rail .metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.deep-dive-grid,.deep-dive-current,.big-o-glossary{grid-template-columns:1fr}.deep-dive-metric-strip{justify-content:flex-start}.visual-shell.backprop-shell,.visual-shell.backprop-shell canvas,.visual-shell.activation-shell,.visual-shell.activation-shell canvas,.visual-shell.loss-shell,.visual-shell.loss-shell canvas,.visual-shell.optimizer-shell,.visual-shell.optimizer-shell canvas{min-height:760px}.visual-shell.framework-shell,.visual-shell.framework-shell canvas,.visual-shell.stochastic-shell,.visual-shell.stochastic-shell canvas,.visual-shell.tokenizer-shell,.visual-shell.tokenizer-shell canvas,.visual-shell.hidden-markov-shell,.visual-shell.hidden-markov-shell canvas,.visual-shell.svd-shell,.visual-shell.svd-shell canvas,.visual-shell.nmf-shell,.visual-shell.nmf-shell canvas,.visual-shell.polynomial-shell,.visual-shell.polynomial-shell canvas,.visual-shell.bayesian-regression-shell,.visual-shell.bayesian-regression-shell canvas,.visual-shell.bayes-rule-shell,.visual-shell.bayes-rule-shell canvas,.visual-shell.gda-shell,.visual-shell.gda-shell canvas,.visual-shell.determinant-shell,.visual-shell.determinant-shell canvas,.visual-shell.eigen-direction-shell,.visual-shell.eigen-direction-shell canvas,.visual-shell.regularization-shell,.visual-shell.regularization-shell canvas,.visual-shell.convex-shell,.visual-shell.convex-shell canvas,.visual-shell.convolution-shell,.visual-shell.convolution-shell canvas,.visual-shell.dynamic-programming-shell,.visual-shell.dynamic-programming-shell canvas{min-height:860px}.notebook-frame-shell,.notebook-frame-shell iframe{min-height:720px}}@media(max-width:480px){.topbar-actions,.dataset-actions,.notebook-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.button,.icon-button{width:100%}.metrics-grid,.primary-rail .metrics-grid,.lesson-guide-grid,.preview-row{grid-template-columns:1fr}.secondary-tabbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.secondary-tabbar .tab{width:100%}.lesson-current-run em{margin-left:0}.application-flow{grid-template-columns:1fr}.application-flow>svg{transform:rotate(90deg);justify-self:center}.graph-legend{display:none}.concept-graph-detail{padding:13px}}
