.lab-site{color:#182345;font-optical-sizing:auto;background:#f3f5fb;min-height:100dvh;font-family:system-ui,sans-serif}.lab-nav{z-index:3;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#f8f9fdee;border-bottom:1px solid #d8dfee;position:sticky;top:0}.lab-nav-inner{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.5rem 1rem;max-width:72rem;margin:auto;padding:.55rem 1.15rem;display:flex}.lab-home,.lab-page{max-width:72rem;margin:auto;padding:clamp(1rem,4vw,3rem) 1.15rem 2rem}.lab-site h1{letter-spacing:-.045em;font-size:clamp(2rem,5vw,3.6rem);line-height:1.1}.lab-subtitle{color:#425173;margin:.6rem 0 1.25rem;line-height:1.5}.lab-site-home{background:#f5f6fa;flex-shrink:0}.lab-site-home .lab-nav{border:0;box-shadow:0 5px 22px #19254a0a}.lab-home{padding-block:0 3rem}.lab-about{text-align:center;margin-block-end:clamp(2.5rem,6vw,4.5rem);padding-block-start:clamp(3rem,8vw,6rem)}.lab-about h1{letter-spacing:-.07em;font-size:clamp(2.5rem,8vw,5.5rem);line-height:1}.lab-about p{color:#425173;max-width:56ch;margin:.95rem auto 0;font-size:clamp(1rem,2vw,1.25rem);line-height:1.5}@media (prefers-reduced-motion:no-preference){.lab-about h1,.lab-about p,.lab-option-row[data-reveal=revealing]{animation:.44s cubic-bezier(.2,.7,.2,1) both home-intro}.lab-about h1{animation-delay:.75s}.lab-about p{animation-delay:1.19s}.lab-option-row[data-reveal=waiting]:not(:focus-within){opacity:0;pointer-events:none}.lab-option-row[data-reveal=revealing]:focus-within{animation:none}}@keyframes home-intro{0%{opacity:0;transform:translateY(.35rem)}to{opacity:1;transform:translateY(0)}}.lab-options{gap:clamp(1.75rem,4vw,3.25rem);display:grid}.lab-option-row{--topic-ink:#3849a7;--topic-surface:#edf0fd;--topic-quiet:#dfe5fb;--topic-line:#aab7e4;grid-template-columns:minmax(0,1.22fr) minmax(0,1fr);gap:clamp(.85rem,2.4vw,1.65rem);min-height:clamp(19rem,34vw,23.5rem);display:grid}.lab-option-row[data-topic=trees]{--topic-ink:#21634d;--topic-surface:#eaf5ef;--topic-quiet:#d8ede1;--topic-line:#a2c7b6}.lab-option-row[data-topic=hashing]{--topic-ink:#824516;--topic-surface:#fbf1e5;--topic-quiet:#f4e0c4;--topic-line:#d6b38c}.lab-option-row[data-topic=arrays]{--topic-ink:#654593;--topic-surface:#f1edf9;--topic-quiet:#e7ddf4;--topic-line:#beacd6}.home-preview,.lab-option{border:1px solid #dce2ef;border-radius:clamp(1.15rem,2.2vw,1.65rem);min-width:0}.home-preview{background:var(--topic-surface);grid-template-rows:auto 1fr auto;gap:.65rem;margin:0;padding:clamp(.75rem,2.35vw,1.5rem);display:grid}.home-preview-caption{justify-content:space-between;align-items:center;gap:.75rem;display:flex}.home-preview-title{min-height:2.75rem;color:var(--topic-ink);letter-spacing:-.015em;align-items:center;font-size:clamp(.9rem,1.7vw,1.05rem);font-weight:700;display:flex}.home-preview-stage{place-items:center;min-width:0;padding-block:.35rem;display:grid}.home-preview-diagram{width:min(100%,27rem);height:auto;display:block;overflow:visible}.home-preview-caption{color:#354365;align-items:start;min-height:2.6em;font-size:.875rem;line-height:1.35}.home-preview-count{color:var(--topic-ink);font-variant-numeric:tabular-nums;flex:none}.preview-line,.preview-line-accent{fill:none;stroke:var(--topic-line);stroke-width:2px;stroke-linecap:round}.preview-line-accent{stroke:var(--topic-ink);stroke-width:3px}.preview-node{fill:#fff;stroke:var(--topic-line);stroke-width:1.5px}.preview-node-accent{fill:var(--topic-quiet);stroke:var(--topic-ink);stroke-width:2px}.preview-line-accent,.preview-node-accent{opacity:0;transition:opacity .22s ease-out}[data-tone=visited]>.preview-node-accent{opacity:.55}[data-tone=queued]>.preview-node-accent{opacity:1;stroke-dasharray:3 3}[data-tone=active]>:is(.preview-node-accent,.preview-line-accent),[data-tone=result]>:is(.preview-node-accent,.preview-line-accent){opacity:1}[data-tone=active]>.preview-node-accent{stroke-width:2.5px}[data-tone=result]>.preview-node-accent{fill:var(--topic-ink)}[data-tone=result]:not(.preview-bar)>.preview-label{fill:#fff}.preview-label,.preview-formula{fill:var(--topic-ink);font-size:16px;font-weight:700}.preview-index{fill:#425173;font-size:12px}.preview-bar{transition:transform .36s cubic-bezier(.2,.7,.2,1)}.preview-bar .preview-node{fill:var(--topic-quiet)}.lab-option{touch-action:manipulation;background:#fff;flex-direction:column;justify-content:center;align-items:flex-start;padding:clamp(1.35rem,4.2vw,3.25rem);display:flex;box-shadow:0 5px 18px #19254a08}.lab-option:hover{border-color:var(--topic-line)}.lab-option:active{background:var(--topic-surface)}.lab-option h2{letter-spacing:-.06em;font-size:clamp(2rem,4.5vw,3.5rem);line-height:1.06}.lab-option p{color:#425173;max-width:36ch;margin-top:.85rem;font-size:clamp(.95rem,1.6vw,1.1rem);line-height:1.6}.lab-option-cta{color:var(--topic-ink);align-items:center;gap:.45rem;margin-top:1.45rem;font-weight:700;display:inline-flex}@media (prefers-reduced-motion:no-preference){.lab-option-cta svg{transition:transform .18s ease-out}.lab-option:hover .lab-option-cta svg{transform:translate(.2rem)}}.lab-board{background:#fff;border:1px solid #cdd7ed;border-radius:1rem;overflow:hidden}.lab-controls{flex-wrap:wrap;align-items:end;gap:.55rem .7rem;padding:.9rem;display:flex}.lab-controls label{color:#425173;flex-wrap:wrap;align-items:center;gap:.35rem;font-size:.875rem;display:flex}.lab-actions{flex-wrap:wrap;gap:.35rem;display:flex}.lab-controls input:not([type=range]),.lab-controls select{color:#182345;background:#f9faff;border:1px solid #b4c1df;border-radius:.5rem;width:7rem;min-width:0;height:2.35rem;padding:.3rem .5rem}.lab-controls select{width:auto;max-width:100%}.lab-controls .array-input{flex:16rem}.lab-controls .array-input input{flex:1;width:auto}.lab-controls input[type=range]{width:5rem}.lab-feedback,.lab-notice{color:#79501e;flex-basis:100%;font-size:.875rem}.lab-notice{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}.lab-visual{background:#f7f9ff;border-block:1px solid #e0e6f2;min-width:0;padding:.75rem}.lab-site .playback{border-top:0;flex-wrap:wrap;padding:.55rem .9rem}.lab-site .timeline{min-width:5rem}.lab-decision{border-top:1px solid #e0e6f2;flex-wrap:wrap;justify-content:space-between;align-items:start;gap:.55rem;padding:.8rem .9rem;display:flex}.lab-decision h2{font-size:.95rem}.lab-decision p{color:#425173;margin-top:.25rem;font-size:.875rem;line-height:1.45}.lab-readout{flex-wrap:wrap;gap:.55rem 1.5rem;width:100%;margin:0;font-size:.875rem;display:flex}.lab-readout dt{color:#425173}.lab-readout dd{overflow-wrap:anywhere;margin:.15rem 0 0}.lab-empty{text-align:center;color:#425173;padding:2rem .5rem}.tree-scroll,.array-scroll{overflow:auto}.tree-scroll{max-height:28rem}.tree-plot{max-width:100%;height:auto;margin:auto;display:block}.tree-plot.dense{max-width:none}.tree-plot line{stroke:#8494bc;stroke-width:2px}.tree-plot circle{fill:#fff;stroke:#8494bc;stroke-width:2px}.tree-plot text{fill:#182345;font-size:12px;font-weight:650}.tree-plot .lab-active circle{fill:#dce6ff;stroke:#304bac}.tree-plot .lab-found circle{fill:#d6f2e3;stroke:#287557}.array-plot{min-width:max-content;margin:0;padding:.35rem 0;list-style:none;display:flex}.array-plot li{text-align:center;border-radius:.35rem;flex:1 0 clamp(2rem,10vw,3.1rem);grid-template-rows:1.25rem 7.5rem 1.2rem 1.25rem;align-items:center;min-width:0;display:grid}.array-value{white-space:nowrap;text-overflow:ellipsis;font-size:.82rem;font-weight:650;overflow:hidden}.array-bar-track{background:linear-gradient(#0000 calc(50% - 1px),#aebbd8 50%,#0000 calc(50% + 1px));height:100%;position:relative}.array-bar-track>span{background:#657ccf;border-radius:.25rem .25rem 0 0;width:48%;position:absolute;bottom:50%;left:26%}.array-bar-track>span.negative{background:#9170c0;border-radius:0 0 .25rem .25rem;top:50%;bottom:auto}.array-index,.array-pointers{color:#425173;font-size:.7rem}.array-range{background:#edf1fb}.array-range-right{background:#f1e9fa}.array-range-right.lab-active .array-bar-track>span{background:#9170c0}.array-plot .lab-active,.hash-buckets .lab-active{background:#dce6ff;box-shadow:inset 0 0 0 1px #5771c2}.array-plot .lab-found{background:#d6f2e3;box-shadow:inset 0 0 0 1px #287557}.hash-buckets{grid-template-columns:repeat(auto-fit,minmax(9rem,1fr));gap:.45rem;margin:0;padding:0;list-style:none;display:grid}.hash-buckets>li{background:#fff;border:1px solid #d4def2;border-radius:.5rem;align-items:start;gap:.45rem;min-width:0;padding:.4rem;display:flex}.bucket-index{text-align:center;background:#e9eefb;border-radius:.3rem;min-width:1.45rem;padding:.18rem;font-size:.82rem;font-weight:700}.bucket-empty{color:#54617d;align-self:center;font-size:.8rem}.bucket-chain,.bucket-link{flex-wrap:wrap;align-items:center;gap:.2rem;min-width:0;display:flex}.bucket-link>span{overflow-wrap:anywhere;border-radius:.3rem;padding:.2rem .3rem;font-size:.8rem}.lab-site .button:not(:disabled):active{background-color:#dae3fa}.lab-site .button.primary:not(:disabled):active{background-color:#24317f}@media (width<=42rem){.lab-option-row{grid-template-columns:minmax(0,1fr);gap:.65rem;min-height:0}.home-preview{min-height:15rem}.lab-option p{max-width:50ch}.lab-option-cta{margin-top:1rem}}@media (width<=27rem){.lab-nav-inner,.lab-home,.lab-page{padding-inline:.7rem}.lab-site .playback{column-gap:.3rem}}@media (prefers-reduced-transparency:reduce),(prefers-contrast:more){.lab-nav{-webkit-backdrop-filter:none;backdrop-filter:none;background:#fff}}@media (prefers-reduced-motion:reduce){.lab-site *,.lab-site :before,.lab-site :after{transition:none;animation:none}}.learning-resources{--learning-radius:.75rem;border-radius:var(--learning-radius);background:#fff;border:1px solid #cdd7ed;margin-top:1rem}.lab-home .learning-resources{--learning-radius:.75rem;margin-top:clamp(1.75rem,4vw,3.25rem)}.learning-resources summary{cursor:pointer;border-radius:var(--learning-radius);align-items:center;gap:.55rem;padding:.75rem .85rem;font-weight:650;list-style:none;display:flex}.learning-resources[open] summary{border-end-end-radius:0;border-end-start-radius:0}.learning-resources summary::-webkit-details-marker{display:none}.learning-resources summary svg:last-child{margin-left:auto}.learning-resources[open] summary svg:last-child{transform:rotate(180deg)}.learning-topics{border-top:1px solid #d8dfee;grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr));gap:.85rem;padding:.8rem;display:grid}.learning-topics h2{padding:0 .35rem;font-size:.95rem}.learning-topics ul{margin:.25rem 0 0;padding:0;list-style:none}.learning-topics a{border-radius:.4rem;align-items:start;gap:.4rem;padding:.45rem .35rem;font-size:.85rem;display:flex}.learning-topics a:hover,.learning-resources summary:hover{background:#edf1ff}.learning-topics a svg{margin-top:.15rem}.learning-topics small{color:#425173;display:block}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/ibm-plex-mono-latin-500-normal-DSY6xOcd.woff2)format("woff2"),url(/assets/ibm-plex-mono-latin-500-normal-CB9ihrfo.woff)format("woff")}@font-face{font-family:Instrument Sans;src:url(/assets/instrument-sans-latin-wght-normal-BbzFLZTg.woff2)format("woff2");font-style:normal;font-weight:400 700;font-display:swap}:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;color:#1d2452;font-synthesis:none;--page:#e8eaf8;--surface:#f4f5ff;--plot:#fafaff;--ink:#1d2452;--muted:#525d85;--line:#c6cbea;--line-strong:#aab3da;--grid:#e2e6f7;--accent:#3743bf;--accent-dark:#293695;--accent-light:#e0e5ff;--mono:"IBM Plex Mono", monospace;background:#e8eaf8;font-family:Instrument Sans,Segoe UI,sans-serif}*,:before,:after{box-sizing:border-box}body{margin:0}#root{flex-direction:column;height:100dvh;display:flex}button,input,select{font:inherit}button{cursor:pointer}button:disabled,input:disabled,select:disabled{cursor:default;opacity:.55}:focus-visible{outline:2px solid var(--accent);outline-offset:3px}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin:0}svg{flex-shrink:0}.topbar{background:var(--page);border-bottom:1px solid var(--line)}.topbar-inner{align-items:center;gap:20px;max-width:1480px;min-height:53px;margin-inline:auto;padding-inline:40px;display:flex}.brand{letter-spacing:-.052em;white-space:nowrap;align-items:center;gap:10px;font-size:23px;font-weight:700;display:inline-flex}.brand img{display:block}.header-actions{gap:9px;margin-left:auto;display:flex}.button,.icon-button,.play-button{border:1px solid var(--line-strong);min-height:38px;color:var(--ink);white-space:nowrap;background:0 0;border-radius:6px;justify-content:center;align-items:center;gap:7px;padding:0 12px;font-size:14px;font-weight:650;display:inline-flex}.button:hover:not(:disabled),.icon-button:hover:not(:disabled){background:var(--accent-light);border-color:#8798cf}.button.primary,.play-button{background:var(--accent);color:#fff;border-color:var(--accent)}.button.primary:hover:not(:disabled),.play-button:hover:not(:disabled){background:var(--accent-dark);border-color:var(--accent-dark)}.button.subdued{border-color:#0000}.clear-button:hover:not(:disabled),.delete-node:hover:not(:disabled){color:#96274a;background:#f8e2e8;border-color:#dc9cae}.icon-button{width:37px;padding:0}.workspace{flex-direction:column;flex:1;width:100%;max-width:1480px;min-height:0;margin-inline:auto;padding:9px 40px 12px;display:flex}.workspace-heading{justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px;display:flex}.title-field{letter-spacing:-.055em;flex:1;align-items:center;gap:10px;min-width:0;font-size:clamp(21px,3vw,36px);font-weight:690;line-height:1.08;display:flex}.title-field svg{color:var(--muted)}.title-input{field-sizing:content;min-width:4ch;max-width:calc(100% - 28px);color:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;background:0 0;border:1px solid #0000;border-radius:5px;outline:none;margin-left:-4px;padding:2px 3px}.title-input:hover,.title-input:focus{border-color:var(--line-strong);background:var(--surface)}.title-input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.title-input::placeholder{color:var(--muted)}.workspace-actions{gap:4px;display:flex}.feedback{border:1px solid var(--line-strong);background:var(--surface);color:var(--ink);border-radius:6px;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;padding:10px 13px;font-size:14px;display:flex}.feedback .button{min-height:29px}.workspace-grid{border:1px solid var(--line-strong);background:var(--surface);border-radius:13px;flex:1;grid-template:"graph inspector"minmax(132px,1fr)"playback inspector""matrix inspector"/minmax(0,1fr) 248px;min-height:0;display:grid}.graph-panel{flex-direction:column;grid-area:graph;min-width:0;min-height:0;display:flex}.canvas-toolbar{justify-content:space-between;align-items:center;gap:12px;min-height:45px;padding:4px 12px;display:flex}.canvas-controls,.tool-picker,.graph-options,.graph-options button{align-items:center;display:flex}.canvas-controls{gap:7px}.tool-picker{border:1px solid var(--line);background:#eaedfb;border-radius:7px;gap:4px;padding:3px}.tool-picker button,.graph-options button{color:var(--muted);white-space:nowrap;background:0 0;border:0;align-items:center;gap:7px;font-size:13px;font-weight:650;display:inline-flex}.tool-picker button{border-radius:4px;min-height:27px;padding:4px 9px}.tool-picker button:hover:not(:disabled),.graph-options button:hover:not(:disabled){color:var(--accent-dark)}.tool-picker button[aria-pressed=true]{background:var(--accent-light);color:var(--accent-dark);box-shadow:inset 0 0 0 1px #b1bcec}.graph-options{gap:16px}.graph-options button{padding:3px 0 3px 3px}.switch{background:#e3e7f8;border:1px solid #9da8d4;border-radius:18px;align-items:center;width:30px;height:18px;padding:2px;display:flex}.switch:after{content:"";background:#6875a1;border-radius:50%;width:12px;height:12px}[role=switch][aria-checked=true] .switch{background:var(--accent);border-color:var(--accent)}[role=switch][aria-checked=true] .switch:after{background:#fff;transform:translate(12px)}.delete-node{width:31px;min-height:31px}.plot{flex:1;min-height:0;margin-inline:12px}.canvas-loading{opacity:.6}.canvas-shell{justify-content:center;align-items:center;height:100%;display:flex;position:relative;container-type:size}.graph-canvas{background:var(--plot);touch-action:none;-webkit-user-select:none;user-select:none;cursor:crosshair;border:1px solid #aab6e1;border-radius:4px;width:100%;height:100%;display:block}.connect-mode .graph-canvas{cursor:default}.plot-ruler{pointer-events:none;color:#5f6e9e}.plot-ruler text{fill:currentColor;font:500 9px var(--mono);paint-order:stroke;stroke:var(--plot);stroke-width:3px}.major-gridline{fill:none;stroke:#ccd4ee;stroke-width:.9px}.ruler-notch{stroke:#899bd0;stroke-width:1px}.graph-edge{fill:none;stroke:var(--state-color);stroke-width:1.7px;pointer-events:none}.graph-edge.state-active,.graph-edge.state-path{stroke-width:3.3px}.graph-edge.matrix-highlight{stroke:#9b4715;stroke-width:4.5px}.graph-arrow{fill:var(--state-color)}.state-unvisited{--state-color:#6573a3;--state-fill:#fbfbff;--state-ink:#273663}.state-frontier{--state-color:#a75917;--state-fill:#fff0d3;--state-ink:#77390c}.state-active{--state-color:#3346c4;--state-fill:#3346c4;--state-ink:#fff}.state-visited{--state-color:#7751a0;--state-fill:#eee4ff;--state-ink:#522b76}.state-path{--state-color:#21684f;--state-fill:#21684f;--state-ink:#fff}.graph-node{cursor:grab;outline:none}.graph-node.is-dragging{cursor:grabbing}.connect-mode .graph-node{cursor:crosshair}.node-disc{fill:var(--state-fill);stroke:var(--state-color);stroke-width:2.3px}.graph-node:hover .node-disc,.graph-node:focus-visible .node-disc{stroke:var(--accent);stroke-width:3.8px}.graph-node:focus-visible .node-disc{stroke:#1b256a}.node-ring{fill:none;stroke:var(--state-color);stroke-width:1.15px;stroke-dasharray:3 3}.is-selected .node-ring{stroke:var(--accent);stroke-width:2.1px;stroke-dasharray:none}.state-active .node-ring{stroke-width:1.7px}.node-label{fill:var(--state-ink);font:500 17px var(--mono);pointer-events:none}.node-marker{fill:var(--ink);paint-order:stroke;stroke:var(--plot);stroke-width:5px;pointer-events:none;font:650 13px Instrument Sans,sans-serif}.edge-weight{appearance:none;background:var(--plot);width:46px;height:24px;color:var(--ink);text-align:center;font:500 12px var(--mono);border:1px solid #a7b3de;border-radius:4px;padding:0 2px}.edge-weight:focus{border-color:var(--accent);outline:1px solid var(--accent);outline-offset:0}.canvas-empty{pointer-events:none;color:var(--muted);flex-direction:column;justify-content:center;align-items:center;gap:5px;font-size:14px;display:flex;position:absolute;inset:0}.canvas-empty strong{color:var(--ink);font-size:20px}.canvas-footer{min-height:24px;color:var(--muted);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:3px 12px;padding:4px 12px;font-size:12px;display:flex}.legend{flex-wrap:wrap;gap:6px 12px;margin:0;padding:0;list-style:none;display:flex}.legend li{color:var(--ink);align-items:center;gap:6px;font-size:12px;display:flex}.legend i{border:1.5px solid var(--state-color);background:var(--state-fill);border-radius:50%;width:10px;height:10px}.playback{border-top:1px solid var(--line);grid-area:playback;align-items:center;gap:12px;padding:4px 12px;display:flex}.playback-top,.transport,.speed-control,.timeline{align-items:center;display:flex}.playback-top{display:contents}.transport{gap:1px}.transport .icon-button{border-color:#0000;width:27px;min-height:30px}.play-button{border-radius:16px;min-width:61px;min-height:30px;padding-inline:6px;font-size:13px}.speed-control{color:var(--muted);order:2;gap:4px;font-size:12px}.speed-control input{width:clamp(52px,8vw,112px)}.speed-control output{min-width:24px;color:var(--ink);font-variant-numeric:tabular-nums;text-align:right}input[type=range]{accent-color:var(--accent);cursor:pointer;margin:0}.timeline{min-width:0;color:var(--muted);flex:1;order:1;gap:8px;font-size:13px}.timeline>span{font-variant-numeric:tabular-nums;flex:none}.timeline-label-compact{display:none}.timeline-track{flex:1;min-width:0;padding:0 0 8px;position:relative}.timeline-track:after{content:"";background:repeating-linear-gradient(90deg, #a6b0d8 0 1px, transparent 1px var(--tick-interval));pointer-events:none;height:4px;position:absolute;inset:auto 6px 3px}.timeline-track input{appearance:none;background:linear-gradient(90deg, var(--accent) var(--elapsed), #c8d0ef var(--elapsed));border-radius:4px;width:100%;height:4px;display:block}.timeline-track input::-webkit-slider-thumb{appearance:none;border:2px solid var(--accent);background:#fff;border-radius:50%;width:13px;height:13px}.timeline-track input::-moz-range-thumb{box-sizing:border-box;border:2px solid var(--accent);background:#fff;border-radius:50%;width:13px;height:13px}.inspector{border-left:1px solid var(--line-strong);background:#eff1fd;border-radius:0 12px 12px 0;flex-direction:column;grid-area:inspector;min-width:0;min-height:0;display:flex}.inspector-section{padding:9px 12px}.inspector-section:not(:first-child){border-top:1px solid var(--line)}.inspector h2{letter-spacing:-.033em;font-size:18px;font-weight:680}.inspector h3{font-size:15px;font-weight:700}.algorithm-picker{border:1px solid var(--line);border-radius:6px;grid-template-columns:1fr 1fr;gap:0;margin-top:5px;display:grid;overflow:hidden}.algorithm-picker button{background:var(--surface);color:var(--muted);border:0;border-bottom:3px solid #0000;flex-direction:column;align-items:start;gap:1px;padding:4px 7px;display:flex}.algorithm-picker button+button{border-left:1px solid var(--line)}.algorithm-picker button:hover{background:#ebeeff}.algorithm-picker button[aria-pressed=true]{background:var(--accent-light);border-bottom-color:var(--accent);color:var(--accent-dark)}.algorithm-picker button:focus-visible{outline-offset:-3px}.algorithm-picker b{font-size:15px;font-weight:700}.algorithm-picker span{font-size:12px}.endpoints{grid-template-columns:1fr 1fr;gap:8px;margin-top:6px;display:grid}.endpoints label{min-width:0;color:var(--muted);flex-direction:column;gap:4px;font-size:13px;font-weight:600;display:flex}.endpoints select{border:1px solid var(--line-strong);background:var(--plot);width:100%;min-width:0;min-height:29px;color:var(--ink);border-radius:5px;padding-inline:8px;font-size:13px}.weight-note{color:var(--muted);margin-top:9px;font-size:12px;line-height:1.4}.section-heading{justify-content:space-between;align-items:center;gap:7px;display:flex}.section-heading>span{color:var(--muted);font-size:12px}.frontier-list{border:1px solid var(--line);background:var(--surface);border-radius:5px;align-items:center;gap:4px;min-height:32px;margin-top:4px;padding:3px;display:flex;overflow:auto}.frontier-list span{text-align:center;color:#77390c;min-width:28px;font:500 12px var(--mono);background:#fff0d3;border:1px solid #c68a4e;border-radius:4px;flex:none;padding:5px}.frontier-list .frontier-first{border-width:2px;border-color:#a75917;padding:4px}.frontier-list p,.log-empty{color:var(--muted);font-size:13px}.log-section{flex-direction:column;flex:1;min-height:0;display:flex}.step-log{overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#9ca8d5 transparent;min-height:0;margin:4px 0 0;padding:0;list-style:none;position:relative;overflow:auto}.step-log li+li{margin-top:2px}.step-log button{text-align:left;width:100%;color:var(--muted);background:0 0;border:0;border-left:3px solid #0000;border-radius:0 4px 4px 0;grid-template-columns:20px 1fr;align-items:start;gap:6px;padding:7px 8px;font-size:13px;line-height:1.4;display:grid}.step-log button[aria-current]{border-left-color:var(--accent);color:var(--ink);background:#e2e7ff}.step-log button:hover{color:var(--ink);background:#e8ecff}.step-log button:focus-visible{outline-offset:-2px}.step-log button span:first-child{color:var(--accent-dark);font-variant-numeric:tabular-nums}.log-empty{margin-top:8px}.path-result{color:#205e49;font:500 12px var(--mono);background:#d9efe6;border-radius:5px;align-items:start;gap:6px;margin-top:4px;padding:5px;display:flex;overflow:auto}.path-result>span,.path-result>span>span{flex-wrap:wrap;align-items:center;gap:5px;display:flex}.modal{border:1px solid var(--line-strong);background:var(--surface);width:min(490px,100% - 28px);color:var(--ink);border-radius:10px;padding:0}.modal::backdrop{background:#1c245971}.modal-content{padding:20px}.modal-heading{align-items:center;gap:9px;margin-bottom:9px;display:flex}.modal-heading h2{letter-spacing:-.033em;font-size:23px;font-weight:670}.heading-icon{color:var(--accent);place-items:center;display:grid}.modal-heading .icon-button{width:32px;min-height:32px;margin-left:auto}.modal p{color:var(--muted);font-size:14px;line-height:1.45}.dialog-empty{color:var(--muted);align-items:center;gap:10px;padding:17px 0 6px;font-size:14px;display:flex}.saved-list{max-height:min(380px,50vh);margin:14px 0 0;padding:2px;list-style:none;overflow-y:auto}.saved-list a{border:1px solid var(--line);background:var(--plot);border-radius:5px;margin-bottom:5px;padding:9px 12px;display:block}.saved-list a:hover{background:var(--accent-light)}.saved-list strong,.saved-list small{overflow-wrap:anywhere;display:block}.saved-list strong{font-size:15px}.saved-list small{color:var(--muted);margin-top:3px;font-size:12px}.share-field{gap:8px;margin-block:13px;display:flex}.share-field input{border:1px solid var(--line-strong);background:var(--plot);min-width:0;color:var(--ink);font:500 12px var(--mono);border-radius:5px;flex:1;padding:0 9px}.open-snapshot{color:var(--accent-dark);text-underline-offset:3px;align-items:center;gap:5px;margin-top:6px;font-size:14px;text-decoration:underline;display:inline-flex}.matrix-panel{--matrix-cell:clamp(16px, 2.8dvh, 23px);border-top:1px solid var(--line);grid-area:matrix;grid-template-columns:minmax(0,1fr) minmax(120px,154px);grid-template-areas:"heading heading""table edit";align-items:start;gap:5px 10px;min-width:0;padding:6px 12px 8px;display:grid}.matrix-heading{grid-area:heading;justify-content:space-between;align-items:baseline;gap:7px;display:flex}.matrix-heading h2{font-size:15px;font-weight:700}.matrix-heading span,.matrix-empty{color:var(--muted);font-size:12px}.matrix-empty{grid-column:1/-1;padding-block:4px}.matrix-scroll{overscroll-behavior:contain;max-height:calc(var(--matrix-cell) * 8 + 2px);border:1px solid var(--line-strong);background:var(--plot);border-radius:4px;grid-area:table;overflow:auto}.edge-matrix{border-collapse:separate;border-spacing:0;min-width:100%}.edge-matrix th,.edge-matrix td{border-right:1px solid var(--line);border-bottom:1px solid var(--line);text-align:center;padding:0}.edge-matrix th,.matrix-cell{height:calc(var(--matrix-cell) - 1px)}.edge-matrix th{z-index:1;color:var(--muted);background:var(--page);white-space:nowrap;padding-inline:4px;font-size:12px;font-weight:650;line-height:1;position:sticky;left:0}.edge-matrix thead th{top:0;left:auto}.edge-matrix thead th:first-child{z-index:2;left:0}.edge-matrix th span{text-overflow:ellipsis;max-width:5ch;margin:auto;display:block;overflow:hidden}.edge-matrix th.matrix-selected-heading{color:var(--accent-dark);background:var(--accent-light)}.edge-matrix td:last-child,.edge-matrix th:last-child{border-right:0}.edge-matrix tr:last-child>td,.edge-matrix tbody tr:last-child>th{border-bottom:0}.matrix-cell{width:100%;min-width:24px;color:var(--muted);font:500 11px/1 var(--mono);background:0 0;border:0;place-items:center;padding:0 2px;display:grid}.matrix-cell span{text-overflow:ellipsis;max-width:6ch;overflow:hidden}.matrix-cell.has-edge{color:var(--accent-dark);background:#e8ebff}.matrix-cell:hover{background:#d7defd}.matrix-cell[aria-pressed=true]{box-shadow:inset 0 0 0 2px var(--accent);color:var(--accent-dark)}.matrix-cell:focus-visible{outline-offset:-4px;outline-style:dashed}.matrix-edit{min-width:0;max-height:calc(var(--matrix-cell) * 8);border:1px solid var(--line);background:var(--plot);border-radius:4px;grid-area:edit;padding:5px 6px;overflow:auto}.matrix-edit h3{text-overflow:ellipsis;white-space:nowrap;margin-bottom:3px;font-size:13px;overflow:hidden}.matrix-actions{flex-wrap:wrap;gap:3px;display:flex}.matrix-actions .button,.matrix-add .button{gap:3px;min-height:25px;padding-inline:4px;font-size:12px}.matrix-edges{margin:0;padding:0;list-style:none}.matrix-edges li,.matrix-edit p{color:var(--muted);overflow-wrap:anywhere;font-size:11px}.matrix-edges li+li{border-top:1px solid var(--line);margin-top:4px;padding-top:4px}.matrix-edit>p{margin-top:4px}@media (width<=1010px){.topbar-inner,.workspace{padding-inline:20px}.workspace-grid{grid-template-columns:minmax(0,1fr) 232px}.speed-control>span{display:none}}@media (width<=745px){.topbar-inner,.workspace{padding-inline:9px}.topbar-inner{gap:6px;min-height:42px}.brand{gap:5px;font-size:19px}.brand img{width:25px;height:25px}.header-actions{gap:4px}.header-actions .button{gap:4px;min-height:30px;padding-inline:6px;font-size:12px}.header-actions svg{width:13px}.workspace{padding-block:4px 6px}.workspace-heading{gap:3px;margin-bottom:4px}.workspace-actions .button{min-height:28px;padding-inline:5px}.workspace-actions .button span{display:none}.title-field{gap:4px}.title-field svg{width:12px}.workspace-grid{grid-template:"graph"minmax(112px,1fr)"playback""matrix""inspector"/minmax(0,1fr)}.canvas-toolbar{gap:4px;min-height:34px;padding:2px 7px}.tool-picker{gap:2px;padding:2px}.tool-picker button{min-height:23px;padding:2px 5px}.delete-node{width:23px;min-height:23px}.graph-options{flex-wrap:wrap;gap:3px 7px}.graph-options button{font-size:12px}.plot{margin-inline:7px}.canvas-footer{min-height:20px;padding:2px 7px}.canvas-hint{display:none}.legend{gap:3px 8px}.legend li{gap:3px;font-size:11px}.legend i{width:8px;height:8px}.node-label{font-size:20px}.node-marker{font-size:15px}.matrix-panel{--matrix-cell:clamp(14px, 2.55dvh, 22px);grid-template-columns:minmax(0,1fr);grid-template-areas:"heading""table""edit";gap:3px;padding:4px 7px}.matrix-heading h2{font-size:14px}.matrix-edit{background:0 0;border:0;align-items:center;gap:5px 8px;max-height:34px;padding:2px 4px;display:flex}.matrix-edit h3{margin:0 auto 0 0}.matrix-actions .button,.matrix-add .button{min-height:23px}.matrix-edit>p{margin-top:0}.inspector{border:0;border-top:1px solid var(--line-strong);border-radius:0 0 12px 12px;grid-template-columns:minmax(74px,.65fr) minmax(0,1.35fr);grid-template-areas:"setup setup""frontier log";display:grid}.inspector-section{padding:4px 7px}.algorithm-section{grid-area:setup;align-items:center;gap:6px;display:flex}.algorithm-picker{flex:0 115px;margin-top:0}.algorithm-picker button{align-items:center;padding:5px 4px 2px}.algorithm-picker b{font-size:12px}.algorithm-picker span,.traversal-heading,.weight-note{display:none}.endpoints{flex:1;gap:5px;min-width:0;margin-top:0}.endpoints label{flex-direction:row;align-items:center;gap:3px;font-size:11px}.endpoints select{min-height:23px;padding-inline:2px;font-size:12px}.playback{gap:7px;padding:3px 7px}.playback-top{justify-content:space-between}.speed-control>span{display:inline}.frontier-section{grid-area:frontier}.frontier-section .section-heading>span{display:none}.frontier-list{min-height:21px;margin-top:2px;padding:2px}.frontier-list span{min-width:18px;padding:2px;font-size:10px}.frontier-list .frontier-first{padding:1px}.frontier-list p,.log-empty{font-size:11px}.log-section{border-left:1px solid var(--line);grid-area:log}.inspector h3{font-size:12px}.step-log{height:clamp(29px,6dvh,52px);margin-top:2px}.step-log button{grid-template-columns:17px 1fr;gap:4px;padding:3px 4px;font-size:11px;line-height:1.25}.path-result{max-height:20px;margin-top:2px;padding:2px;font-size:10px}.path-result>span{flex-wrap:nowrap}}@media (width<=450px){.tool-picker button span,.plot-ruler text{display:none}.endpoints label,.endpoints select{display:block}}@media (width<=345px){.brand{font-size:17px}.header-actions svg{display:none}}@media (width<=745px) and (height<=640px){.matrix-panel{grid-template-columns:auto minmax(0,1fr);grid-template-areas:"heading edit""table table";align-items:center}.matrix-heading span{display:none}.matrix-edit{justify-content:flex-end;min-height:23px;padding:0}.matrix-edit h3{margin-right:0}.matrix-actions .button svg{display:none}.endpoints label{display:flex}.playback{align-items:center;gap:7px;display:flex}.playback-top{display:contents}.timeline{text-align:center;flex-direction:column;flex:1;order:1;align-items:stretch;gap:4px;min-width:0;margin:0;font-size:11px}.timeline-label{display:none}.timeline-label-compact{white-space:nowrap;display:inline}.timeline-track{padding-bottom:3px}.timeline-track:after{display:none}.speed-control{order:2}.speed-control>span{display:none}.node-label{font-size:23px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important}}
