.algorithms-dynamic-programming-state-loom-module__6lF8Ua__figure{--loom-ink:#17202a;--loom-copy:#344054;--loom-muted:#667085;--loom-line:#d7dce2;--loom-line-strong:#98a2b3;--loom-paper:#fff;--loom-soft:#f6f7f9;--loom-charcoal:#1d2939;--loom-cobalt:#155eef;--loom-cobalt-dark:#1849a9;--loom-cobalt-soft:#eff4ff;--loom-teal:#087e8b;--loom-teal-soft:#ecfdfb;--loom-violet:#6938ef;--loom-violet-soft:#f4f3ff;--loom-green:#067647;--loom-green-soft:#ecfdf3;--loom-amber:#b54708;--loom-amber-soft:#fffaeb;--loom-red:#b42318;--loom-red-soft:#fef3f2;width:100%;min-width:0;max-width:100%;color:var(--loom-ink);border:1px solid var(--loom-line);background:linear-gradient(90deg, #17202a08 1px, transparent 1px), linear-gradient(#17202a08 1px, transparent 1px), var(--loom-paper);background-size:36px 36px,36px 36px,auto;border-radius:clamp(.8rem,1.8vw,1.5rem);gap:clamp(1.1rem,2.4vw,2rem);margin:3rem 0 0;padding:clamp(1rem,2.8vw,2.5rem);display:grid;overflow:clip;box-shadow:0 30px 80px #1018281a,inset 0 1px #fff;container-type:inline-size}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__figure,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__figure *{box-sizing:border-box}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__figure p,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__figure h2,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__figure h3,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__figure h4,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__figure ol,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__figure ul,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__figure dl,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__figure dd{margin:0}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__figure fieldset{border:0;min-width:0;margin:0;padding:0}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__srOnly{clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__figureHeader{border-bottom:2px solid var(--loom-charcoal);justify-content:space-between;align-items:end;gap:1.25rem;min-width:0;padding-bottom:1.3rem;display:flex}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__figureHeader>div{min-width:0;max-width:66rem}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__figureHeader p,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__familyChooser header p,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__meaningPanel header p,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__predictionPanel header p,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__finalGate header p,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__receipt header p,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__workspaceHeader p{color:var(--loom-cobalt);font-family:var(--font-vairode-mono,ui-monospace), monospace;letter-spacing:.1em;text-transform:uppercase;font-size:.75rem;font-weight:900}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__figureHeader h2{letter-spacing:-.055em;overflow-wrap:anywhere;text-wrap:balance;word-break:keep-all;max-width:25ch;margin-top:.55rem;font-size:clamp(1.8rem,4vw,3.75rem);line-height:1.03}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__figureHeader>span{color:#fff;max-width:20rem;font-family:var(--font-vairode-mono,ui-monospace), monospace;letter-spacing:.04em;text-align:center;border:1px solid var(--loom-charcoal);background:var(--loom-charcoal);border-radius:999px;flex:none;padding:.72rem .9rem;font-size:.73rem;font-weight:850;line-height:1.45}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__introduction{max-width:56ch;color:var(--loom-copy);overflow-wrap:anywhere;word-break:keep-all;font-size:clamp(1.08rem,1.55vw,1.3rem);line-height:1.78}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__expertPurpose{max-width:58rem;color:var(--loom-copy)}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__expertPurpose summary,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__experimentControls>summary,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__proofDetails summary{cursor:pointer}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__expertPurpose summary{border:1px solid var(--loom-line-strong);background:#fff;border-radius:.45rem;align-items:center;min-height:44px;padding:.55rem .75rem;font-size:.96rem;font-weight:850;line-height:1.5;display:inline-flex}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__expertPurpose p{border-left:3px solid var(--loom-cobalt);background:var(--loom-cobalt-soft);overflow-wrap:anywhere;word-break:keep-all;gap:.4rem;margin-top:.7rem;padding:.95rem 1rem;line-height:1.7;display:grid}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__expertPurpose strong{color:var(--loom-ink)}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__stepRail{border:1px solid var(--loom-charcoal);background:#fffffff5;border-radius:.9rem;grid-template-columns:repeat(8,minmax(0,1fr));min-width:0;padding:0;list-style:none;display:grid;overflow:hidden}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__stepRail li{min-width:0;min-height:5.4rem;color:var(--loom-muted);border-right:1px solid var(--loom-line);align-content:center;gap:.35rem;padding:.75rem .65rem;display:grid;position:relative}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__stepRail li:last-child{border-right:0}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__stepRail li[data-state=complete]{color:var(--loom-green);background:var(--loom-green-soft)}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__stepRail li[data-state=current]{z-index:1;color:#fff;background:var(--loom-cobalt);box-shadow:0 10px 22px #155eef3d}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__stepRail span{font-family:var(--font-vairode-mono,ui-monospace), monospace;letter-spacing:.06em;font-size:.68rem;font-weight:900}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__stepRail strong{overflow-wrap:anywhere;word-break:keep-all;min-width:0;font-size:clamp(.84rem,1vw,1rem);line-height:1.35}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__familyChooser{gap:1rem;min-width:0;display:grid}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__familyChooser header h3,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__meaningPanel header h3,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__predictionPanel header h3,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__workspaceHeader h3,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__finalGate header h3,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__receipt header h4{letter-spacing:-.025em;text-wrap:balance;word-break:keep-all;margin-top:.35rem;font-size:clamp(1.2rem,2vw,1.65rem);line-height:1.35}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__familyGrid{grid-template-columns:repeat(4,minmax(0,1fr));gap:.8rem;min-width:0;display:grid}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__familyOption{min-width:0;min-height:10.5rem;color:var(--loom-copy);border:1px solid var(--loom-line);cursor:pointer;background:#fff;border-radius:.8rem;grid-template-columns:auto minmax(0,1fr);align-content:start;gap:.75rem;padding:1rem;transition:border-color .16s,box-shadow .16s,transform .16s;display:grid;position:relative;box-shadow:0 7px 20px #1018280d}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__familyOption:hover{border-color:var(--loom-line-strong);transform:translateY(-2px);box-shadow:0 12px 26px #10182817}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__familyOption:has(input:checked){color:var(--loom-charcoal);border-color:var(--loom-cobalt);background:linear-gradient(145deg,#fffffff5,#eff4fff5);box-shadow:0 0 0 2px #155eef1c,0 14px 28px #155eef1f}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__familyOption input{width:1.15rem;height:1.15rem;accent-color:var(--loom-cobalt);margin:0;position:absolute;top:.8rem;right:.8rem}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__familyNumber{color:#fff;width:2.35rem;height:2.35rem;font-family:var(--font-vairode-mono,ui-monospace), monospace;background:var(--loom-charcoal);border-radius:.45rem;place-items:center;font-size:.73rem;font-weight:900;display:grid}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__familyOption:has(input:checked) .algorithms-dynamic-programming-state-loom-module__6lF8Ua__familyNumber{background:var(--loom-cobalt)}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__familyOption>span:last-child{gap:.45rem;min-width:0;padding-right:1rem;display:grid}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__familyOption small{color:var(--loom-cobalt);font-family:var(--font-vairode-mono,ui-monospace), monospace;letter-spacing:.05em;font-size:.64rem;font-weight:900}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__familyOption strong{overflow-wrap:anywhere;word-break:keep-all;font-size:1.05rem;line-height:1.4}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__familyOption>span:last-child>span{color:var(--loom-muted);overflow-wrap:anywhere;word-break:keep-all;font-size:.88rem;line-height:1.55}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__experimentControls{border:1px solid var(--loom-line);background:#fff;border-radius:.8rem;min-width:0}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__experimentControls>summary{min-width:0;min-height:48px;color:var(--loom-copy);justify-content:space-between;align-items:center;gap:1rem;padding:.8rem 1rem;font-size:.95rem;font-weight:800;display:flex}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__experimentControls>summary strong{min-width:0;color:var(--loom-cobalt-dark);overflow-wrap:anywhere;text-align:right;word-break:keep-all}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__advancedGrid{border-top:1px solid var(--loom-line);background:var(--loom-soft);grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem;min-width:0;padding:1rem;display:grid}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__advancedGrid legend{color:var(--loom-ink);margin-bottom:.75rem;font-size:1rem;font-weight:900}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__compactOptions{gap:.55rem;min-width:0;display:grid}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__compactOptions label{min-width:0;color:var(--loom-copy);border:1px solid var(--loom-line);cursor:pointer;background:#fff;border-radius:.55rem;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:.7rem;padding:.75rem;display:grid;position:relative}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__compactOptions label:has(input:checked){border-color:var(--loom-cobalt);box-shadow:0 0 0 1px #155eef1a}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__compactOptions input{width:1.05rem;height:1.05rem;accent-color:var(--loom-cobalt);margin:.15rem 0 0}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__compactOptions label>span{gap:.2rem;min-width:0;display:grid}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__compactOptions strong,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__compactOptions small{overflow-wrap:anywhere;word-break:keep-all}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__compactOptions strong{color:var(--loom-ink);line-height:1.45}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__compactOptions small{color:var(--loom-muted);font-size:.82rem;line-height:1.5}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__workspace{border:1px solid var(--loom-charcoal);background:radial-gradient(circle at 90% 0,#155eef14,#0000 26rem),#fff;border-radius:1rem;gap:1.25rem;min-width:0;padding:clamp(1rem,2.2vw,1.8rem);display:grid;box-shadow:0 24px 54px #10182817,inset 0 0 0 1px #ffffffc7}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__workspaceHeader{justify-content:space-between;align-items:start;gap:1rem;min-width:0;display:flex}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__workspaceHeader>div{min-width:0;max-width:55rem}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__workspaceHeader h3:focus{outline:none}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__workspaceHeader h3:focus-visible{outline-offset:4px;outline:3px solid #155eef52}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__workspaceHeader>span{color:#fff;background:var(--loom-cobalt);border-radius:999px;flex:none;padding:.45rem .7rem;font-size:.75rem;font-weight:900}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__learnerPrompt{max-width:62ch;color:var(--loom-copy);word-break:keep-all;font-size:clamp(1rem,1.4vw,1.14rem);line-height:1.7}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__workspaceGrid{grid-template-columns:minmax(0,1.65fr) minmax(17rem,.85fr);align-items:start;gap:1rem;min-width:0;display:grid}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__visualColumn{gap:.65rem;min-width:0;display:grid}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__stateGridViewport{overscroll-behavior-inline:contain;scrollbar-gutter:stable;width:100%;min-width:0;max-width:100%;overflow-x:auto}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__stateGrid{width:100%;max-width:100%;height:auto;color:var(--loom-charcoal);border:1px solid var(--loom-line);background:linear-gradient(135deg,#fffffffa,#f6f7f9fa);border-radius:.85rem;display:block;overflow:visible;box-shadow:inset 0 1px #fff,0 10px 28px #10182812}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__mobilePanHint{color:var(--loom-muted);font-size:.82rem;line-height:1.55;display:none}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__loomThread{fill:none;stroke:var(--loom-line-strong);stroke-width:2px}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__loomKnot{fill:var(--loom-cobalt)}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__svgKicker,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__svgFootnote,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__svgFootnoteEnd{font-family:var(--font-vairode-mono,ui-monospace), monospace;letter-spacing:.04em;font-weight:800}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__svgKicker{fill:var(--loom-cobalt-dark);font-size:13px}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__svgStep{fill:var(--loom-charcoal);letter-spacing:-.03em;font-size:25px;font-weight:900}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__svgFootnote,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__svgFootnoteEnd{fill:var(--loom-muted);font-size:13px}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__dependencyLine{fill:none;stroke:var(--loom-teal);stroke-linecap:round;stroke-width:3px}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__dependencyLine[data-edge-state=reconstructed]{stroke:var(--loom-violet);stroke-width:5px}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__dependencyLine[data-edge-state=invalid]{stroke:var(--loom-red);stroke-dasharray:8 6;stroke-width:5px}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__arrowHead{fill:currentColor;color:var(--loom-teal)}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__stateCell{fill:#fff;stroke:var(--loom-line-strong);stroke-width:2px}[data-cell-status=locked] .algorithms-dynamic-programming-state-loom-module__6lF8Ua__stateCell{fill:#f8fafc;stroke:var(--loom-line)}[data-cell-status=base] .algorithms-dynamic-programming-state-loom-module__6lF8Ua__stateCell{fill:var(--loom-cobalt-soft);stroke:var(--loom-cobalt)}[data-cell-status=dependency] .algorithms-dynamic-programming-state-loom-module__6lF8Ua__stateCell{fill:var(--loom-teal-soft);stroke:var(--loom-teal)}[data-cell-status=ready] .algorithms-dynamic-programming-state-loom-module__6lF8Ua__stateCell{fill:var(--loom-amber-soft);stroke:var(--loom-amber);stroke-width:4px}[data-cell-status=filled] .algorithms-dynamic-programming-state-loom-module__6lF8Ua__stateCell{fill:#f8fafc;stroke:var(--loom-charcoal)}[data-cell-status=reconstructed] .algorithms-dynamic-programming-state-loom-module__6lF8Ua__stateCell{fill:var(--loom-violet-soft);stroke:var(--loom-violet);stroke-width:4px}[data-cell-status=invalid] .algorithms-dynamic-programming-state-loom-module__6lF8Ua__stateCell{fill:var(--loom-red-soft);stroke:var(--loom-red);stroke-dasharray:7 5;stroke-width:4px}[data-cell-status=target] .algorithms-dynamic-programming-state-loom-module__6lF8Ua__stateCell{fill:var(--loom-green-soft);stroke:var(--loom-green);stroke-width:5px}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__cellLabel{fill:var(--loom-copy);font-family:var(--font-vairode-mono,ui-monospace), monospace;font-size:14px;font-weight:850}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__cellValue{fill:var(--loom-charcoal);font-size:23px;font-weight:950}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__cellOrder{fill:var(--loom-cobalt-dark);font-family:var(--font-vairode-mono,ui-monospace), monospace;font-size:11px;font-weight:900}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__stateLegend{color:var(--loom-muted);flex-wrap:wrap;gap:.45rem .8rem;padding:0;font-size:.78rem;font-weight:750;list-style:none;display:flex}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__stateLegend li{align-items:center;gap:.35rem;display:inline-flex}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__stateLegend li>span{border:2px solid var(--loom-line-strong);background:#fff;border-radius:.2rem;width:.75rem;height:.75rem}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__stateLegend li[data-cell-status=base]>span{border-color:var(--loom-cobalt);background:var(--loom-cobalt-soft)}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__stateLegend li[data-cell-status=dependency]>span{border-color:var(--loom-teal);background:var(--loom-teal-soft)}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__stateLegend li[data-cell-status=ready]>span{border-color:var(--loom-amber);background:var(--loom-amber-soft)}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__stateLegend li[data-cell-status=filled]>span{border-color:var(--loom-charcoal);background:#f8fafc}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__stateLegend li[data-cell-status=reconstructed]>span{border-color:var(--loom-violet);background:var(--loom-violet-soft)}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__stateLegend li[data-cell-status=invalid]>span{border-color:var(--loom-red);background:var(--loom-red-soft)}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__meaningPanel{border:1px solid var(--loom-line);background:#fffffff0;border-radius:.85rem;gap:.9rem;min-width:0;padding:1rem;display:grid;box-shadow:0 8px 22px #1018280d}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__meaningPanel ul{gap:0;min-width:0;padding:0;list-style:none;display:grid}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__meaningPanel li{border-top:1px solid var(--loom-line);gap:.3rem;min-width:0;padding:.8rem 0;display:grid}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__meaningPanel li:first-child{border-top:0}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__meaningPanel li span{color:var(--loom-muted);font-size:.72rem;font-weight:900}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__meaningPanel li strong{color:var(--loom-copy);overflow-wrap:anywhere;word-break:keep-all;font-size:.93rem;line-height:1.58}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__predictionSealed,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__sealedGate{min-width:0;color:var(--loom-copy);border:1px dashed var(--loom-line-strong);background:var(--loom-soft);border-radius:.75rem;gap:.45rem;padding:1rem;display:grid}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__predictionSealed span,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__sealedGate span{color:var(--loom-cobalt);font-family:var(--font-vairode-mono,ui-monospace), monospace;letter-spacing:.07em;text-transform:uppercase;font-size:.7rem;font-weight:900}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__predictionSealed strong,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__sealedGate h3{color:var(--loom-ink);word-break:keep-all;font-size:1.05rem;line-height:1.5}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__predictionSealed p,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__sealedGate p{color:var(--loom-muted);word-break:keep-all;line-height:1.6}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__predictionPanel{border:1px solid var(--loom-cobalt);background:linear-gradient(145deg,#eff4ffd1,#fffffffa);border-radius:.85rem;gap:1rem;min-width:0;padding:clamp(1rem,2vw,1.4rem);display:grid}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__mergePair{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:stretch;gap:.7rem;min-width:0;display:grid}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__mergePair article{border:1px solid var(--loom-line);background:#fff;border-radius:.65rem;gap:.35rem;min-width:0;padding:.85rem;display:grid}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__mergePair article span{color:#fff;background:var(--loom-charcoal);border-radius:50%;place-items:center;width:1.7rem;height:1.7rem;font-size:.7rem;font-weight:900;display:grid}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__mergePair article strong{overflow-wrap:anywhere;word-break:keep-all;line-height:1.5}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__mergePair>div{color:var(--loom-cobalt);align-self:center;font-size:1.45rem;font-weight:900}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__visibleKey{color:var(--loom-copy);word-break:keep-all;line-height:1.6}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__predictionChoices{grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem;min-width:0;display:grid}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__predictionChoices label{border:1px solid var(--loom-line);cursor:pointer;background:#fff;border-radius:.65rem;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:.65rem;min-width:0;padding:.85rem;display:grid;position:relative}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__predictionChoices label:has(input:checked){border-color:var(--loom-cobalt);box-shadow:0 0 0 2px #155eef1a}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__predictionChoices input{width:1.05rem;height:1.05rem;accent-color:var(--loom-cobalt);margin:.15rem 0 0}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__predictionChoices label>span{gap:.25rem;min-width:0;display:grid}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__predictionChoices strong,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__predictionChoices small{overflow-wrap:anywhere;word-break:keep-all}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__predictionChoices strong{color:var(--loom-ink);font-size:.91rem;line-height:1.45}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__predictionChoices small{color:var(--loom-muted);font-size:.8rem;line-height:1.5}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__predictionFeedback{color:var(--loom-copy);border-left:4px solid var(--loom-amber);background:var(--loom-amber-soft);padding:.9rem 1rem}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__predictionFeedback[data-result=correct]{border-color:var(--loom-green);background:var(--loom-green-soft)}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__predictionFeedback[data-result=review]{border-color:var(--loom-red);background:var(--loom-red-soft)}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__predictionFeedback strong{color:var(--loom-ink);margin-bottom:.25rem;display:block}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__predictionFeedback p{word-break:keep-all;line-height:1.6}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__finalGate{color:#f8fafc;border:1px solid var(--loom-charcoal);background:radial-gradient(circle at 92% 5%, #155eef8c, transparent 22rem), var(--loom-charcoal);border-radius:.9rem;gap:1rem;min-width:0;padding:clamp(1rem,2vw,1.5rem);display:grid;box-shadow:0 18px 38px #1018282e}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__finalGate[data-result=fail]{background:radial-gradient(circle at 92% 5%, #b423188c, transparent 22rem), var(--loom-charcoal)}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__finalGate>header{justify-content:space-between;align-items:start;gap:1rem;min-width:0;display:flex}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__finalGate header>div{min-width:0}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__finalGate header p{color:#b2ccff}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__finalGate header h3{color:#fff}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__finalGate header>span{color:var(--loom-charcoal);background:#fff;border-radius:999px;flex:none;padding:.45rem .65rem;font-size:.72rem;font-weight:900}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__finalMessage,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__nextAction{word-break:keep-all;max-width:62ch;line-height:1.65}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__finalMessage{color:#d0d5dd}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__nextAction{color:#fff;border-left:3px solid #84adff;padding-left:.8rem;display:block}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__gateChecks{grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem;min-width:0;padding:0;list-style:none;display:grid}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__gateChecks li{background:#ffffff0f;border:1px solid #ffffff26;border-radius:.6rem;grid-template-columns:auto minmax(0,1fr);gap:.65rem;min-width:0;padding:.8rem;display:grid}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__gateChecks li>span{color:#fff;background:var(--loom-green);border-radius:.25rem;height:fit-content;padding:.24rem .42rem;font-size:.65rem;font-weight:900}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__gateChecks li[data-result=fail]>span{background:var(--loom-red)}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__gateChecks li>div{gap:.25rem;min-width:0;display:grid}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__gateChecks li strong{color:#fff}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__gateChecks li p{color:#d0d5dd;overflow-wrap:anywhere;word-break:keep-all;font-size:.82rem;line-height:1.55}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__receipt{min-width:0;color:var(--loom-copy);background:#fff;border-radius:.7rem;gap:.8rem;padding:1rem;display:grid}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__receipt header p{color:var(--loom-cobalt)}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__receipt header h4{color:var(--loom-ink)}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__receipt dl{grid-template-columns:repeat(4,minmax(0,1fr));gap:.55rem;min-width:0;display:grid}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__receipt dl>div{border:1px solid var(--loom-line);background:var(--loom-soft);border-radius:.5rem;gap:.25rem;min-width:0;padding:.75rem;display:grid}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__receipt dt{color:var(--loom-muted);font-size:.72rem;font-weight:800}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__receipt dd{color:var(--loom-charcoal);font-family:var(--font-vairode-mono,ui-monospace), monospace;overflow-wrap:anywhere;font-size:clamp(1rem,1.6vw,1.25rem);font-weight:950}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__receiptDivergence{color:var(--loom-charcoal);border:1px solid var(--loom-line);border-radius:.5rem;gap:.35rem;padding:.85rem;display:grid}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__receiptDivergence strong{color:var(--loom-cobalt);font-size:.75rem}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__receiptDivergence p{word-break:keep-all;font-size:.9rem;font-weight:800;line-height:1.55}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__receiptDivergence small{color:var(--loom-muted);overflow-wrap:anywhere;font-size:.75rem;line-height:1.55}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__receipt>p{color:var(--loom-muted);word-break:keep-all;font-size:.82rem;line-height:1.55}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__proofDetails{color:#e4e7ec;min-width:0}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__proofDetails summary{min-height:44px;padding:.55rem 0;font-weight:800}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__proofDetails code{color:#fff;overflow-wrap:anywhere;border:1px solid #fff3;border-radius:.35rem;width:fit-content;max-width:100%;padding:.5rem .65rem;display:block}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__proofDetails ol{gap:.45rem;margin-top:.8rem;padding-left:1.25rem;display:grid}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__proofDetails li{overflow-wrap:anywhere;word-break:keep-all;padding-left:.25rem;line-height:1.6}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__actions{justify-content:flex-end;align-items:center;gap:.7rem;min-width:0;padding-top:.25rem;display:flex}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__actions button{min-height:48px;font:inherit;cursor:pointer;border-radius:.6rem;padding:.75rem 1rem;font-weight:900;transition:background-color .16s,border-color .16s,box-shadow .16s,transform .16s}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__actions button[data-dp-loom-next]{color:#fff;border:1px solid var(--loom-cobalt-dark);background:var(--loom-cobalt);justify-content:space-between;align-items:center;gap:1rem;min-width:min(100%,19rem);display:inline-flex;box-shadow:0 9px 20px #155eef38}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__actions button[data-dp-loom-next]:hover{background:var(--loom-cobalt-dark);transform:translateY(-1px)}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__actions button[data-dp-loom-reset]{color:var(--loom-copy);border:1px solid var(--loom-line-strong);background:#fff}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__actions button[data-dp-loom-reset]:hover{color:var(--loom-ink);border-color:var(--loom-charcoal);background:var(--loom-soft)}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__caption{max-width:72ch;color:var(--loom-muted);word-break:keep-all;font-size:.82rem;line-height:1.65}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__figure :is(button,input,summary):focus-visible{outline:3px solid color-mix(in srgb, var(--loom-cobalt) 58%, transparent);outline-offset:3px}@container (max-width:68rem){.algorithms-dynamic-programming-state-loom-module__6lF8Ua__familyGrid{grid-template-columns:repeat(2,minmax(0,1fr))}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__workspaceGrid{grid-template-columns:minmax(0,1fr)}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__meaningPanel ul{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:1rem}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__meaningPanel li:nth-child(2){border-top:0}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__receipt dl{grid-template-columns:repeat(2,minmax(0,1fr))}}@container (max-width:52rem){.algorithms-dynamic-programming-state-loom-module__6lF8Ua__figureHeader{align-items:start;display:grid}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__figureHeader>span{width:fit-content;max-width:100%}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__stepRail{grid-template-columns:repeat(4,minmax(0,1fr))}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__stepRail li{border-bottom:1px solid var(--loom-line);min-height:4.5rem}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__stepRail li:nth-child(4n){border-right:0}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__stepRail li:nth-last-child(-n+4){border-bottom:0}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__advancedGrid,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__gateChecks,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__predictionChoices{grid-template-columns:minmax(0,1fr)}}@container (max-width:36rem){.algorithms-dynamic-programming-state-loom-module__6lF8Ua__figure{border-left:0;border-right:0;border-radius:0;gap:1rem;padding:.75rem}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__figureHeader h2{font-size:clamp(1.65rem,9vw,2.5rem)}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__stepRail{grid-template-columns:repeat(2,minmax(0,1fr))}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__stepRail li{min-height:4rem}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__stepRail li:nth-child(2n),.algorithms-dynamic-programming-state-loom-module__6lF8Ua__stepRail li:nth-child(4n){border-right:0}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__stepRail li:nth-last-child(-n+4){border-bottom:1px solid var(--loom-line)}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__stepRail li:nth-last-child(-n+2){border-bottom:0}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__familyGrid,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__meaningPanel ul,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__receipt dl{grid-template-columns:minmax(0,1fr)}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__familyOption{min-height:0}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__stateGrid{width:42rem;max-width:none}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__mobilePanHint{display:block}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__meaningPanel li:nth-child(2){border-top:1px solid var(--loom-line)}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__experimentControls>summary,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__workspaceHeader,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__finalGate>header,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__actions{justify-content:stretch;display:grid}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__experimentControls>summary strong{text-align:left}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__workspaceHeader>span,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__finalGate header>span{width:fit-content}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__mergePair{grid-template-columns:minmax(0,1fr)}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__mergePair>div{justify-self:center;transform:rotate(90deg)}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__actions button,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__actions button[data-dp-loom-next]{width:100%;min-width:0}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__stateLegend{font-size:.72rem}}@media (prefers-reduced-motion:reduce){.algorithms-dynamic-programming-state-loom-module__6lF8Ua__familyOption,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__actions button{transition-duration:.01ms}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__familyOption:hover,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__actions button[data-dp-loom-next]:hover{transform:none}}@media (forced-colors:active){.algorithms-dynamic-programming-state-loom-module__6lF8Ua__figure,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__familyOption,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__experimentControls,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__workspace,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__stateGrid,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__meaningPanel,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__predictionPanel,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__predictionSealed,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__sealedGate,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__finalGate,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__receipt,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__compactOptions label,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__predictionChoices label{color:canvastext;box-shadow:none;forced-color-adjust:auto;background:canvas;border-color:canvastext}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__stepRail li[data-state=current],.algorithms-dynamic-programming-state-loom-module__6lF8Ua__familyNumber,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__workspaceHeader>span,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__finalGate header>span,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__gateChecks li>span,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__actions button[data-dp-loom-next]{color:highlighttext;background:highlight;border-color:highlight}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__stateCell,[data-cell-status] .algorithms-dynamic-programming-state-loom-module__6lF8Ua__stateCell,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__dependencyLine,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__loomThread{fill:canvas;stroke:canvastext}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__cellLabel,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__cellValue,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__cellOrder,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__svgKicker,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__svgStep,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__svgFootnote,.algorithms-dynamic-programming-state-loom-module__6lF8Ua__svgFootnoteEnd{fill:canvastext}.algorithms-dynamic-programming-state-loom-module__6lF8Ua__figure :is(button,input,summary):focus-visible{outline:3px solid highlight}}
