:root{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#26354b;background:#f5f7fb;font-synthesis:none;font-weight:400;font-size:14px;line-height:1.5}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:7px;background:transparent;border:1px solid transparent;border-radius:6px;color:inherit;padding:8px 10px;font-weight:500}button:hover:not(:disabled){background:#edf2fc}button:disabled{cursor:not-allowed;opacity:.4}button:focus-visible,input:focus-visible,select:focus-visible,svg:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #759aff;outline-offset:3px}input,select{min-width:0;border:1px solid #dbe1eb;border-radius:6px;background:#fff;color:#25354b;padding:9px 11px;width:100%}input[type=checkbox]{width:14px;height:14px;accent-color:#4267d5;margin:0}input[type=range]{padding:0;accent-color:#4d70df}input[hidden]{display:none}h1,h2,h3,p{margin:0}h2{font-size:16px;font-weight:650}h3{font-size:14px;font-weight:650}.app-header{height:74px;padding:0 34px;background:#fff;border-bottom:1px solid #e2e7ef;display:flex;align-items:center;justify-content:space-between}.brand{text-decoration:none;color:#24364f;display:flex;align-items:center;gap:12px;font-size:18px;letter-spacing:-.4px}.brand strong span{font-weight:400;color:#7a8799;font-size:16px;letter-spacing:0}.brand-icon{width:36px;height:36px;background:#4267d5;border-radius:9px;color:#fff;display:grid;place-items:center}.header-meta{display:flex;gap:22px;align-items:center;color:#778399;font-size:13px}.local-badge{font-size:10px;letter-spacing:1.1px;color:#557a6b;background:#edf6f1;padding:6px 9px;border-radius:5px;font-weight:700}main{max-width:1800px;margin:auto;padding:30px 34px 0}.page-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:27px}.eyebrow{font-size:10px;letter-spacing:1.8px;color:#6b80a1;font-weight:700;margin-bottom:6px}h1{font-size:28px;letter-spacing:-1px;font-weight:650;color:#20314a}.page-heading p{color:#7a8799;margin-top:7px;font-size:14px}.compare-toggle{display:flex;align-items:center;gap:8px;border:1px solid #dce3ee;background:#fff;border-radius:7px;padding:10px 13px;cursor:pointer}.compare-toggle.checked{border-color:#7897ed;color:#4267d5}.workspace{display:grid;grid-template-columns:240px minmax(400px,1fr) 310px;gap:20px;align-items:start}.panel{background:#fff;border:1px solid #dfe5ee;border-radius:10px;box-shadow:0 2px 3px #253e6710}.configuration{padding:20px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.section-title h2{display:flex;align-items:center;gap:8px}.badge{font-size:10px;letter-spacing:.5px;background:#f1f4f9;color:#78869a;border-radius:4px;padding:3px 6px;white-space:nowrap}.muted{color:#7a8799;font-size:12px;line-height:1.65}.configuration>.muted{margin:8px 0 22px;font-size:12px}label{font-size:12px;font-weight:500;color:#526179}form>label{display:block;margin:17px 0}label input:not([type=checkbox]){display:block;margin-top:6px;font-size:13px}.field-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:18px}.field-label{font-size:12px;font-weight:500;color:#526179;margin-bottom:7px}.mode-choice{display:flex;background:#f3f5fa;padding:3px;border:1px solid #e3e7ef;border-radius:7px}.mode-choice button{font-size:11px;padding:6px;flex:1;white-space:nowrap}.mode-choice button.selected{background:#fff;box-shadow:0 1px 4px #243c5b18;color:#4267d5}.field-help{font-size:11px;color:#8792a4;margin-top:9px;min-height:34px}.optional{float:right;font-size:10px;color:#95a0b0;font-weight:400}.primary{background:#466bdb;color:#fff;border-color:#466bdb}.primary:hover:not(:disabled){background:#3457bf}.secondary{background:#fff;border-color:#dfe5ee;font-size:12px}.apply,.regenerate{width:100%;font-size:12px;padding:10px;margin-top:4px}.regenerate{margin-top:9px;font-size:11px}.config-actions{display:flex;justify-content:space-evenly;margin:17px -8px 18px;border-bottom:1px solid #edf0f5;padding-bottom:17px}.config-actions button{font-size:11px;color:#738097}.config-note{border-left:2px solid #ccd8f4;padding-left:12px;font-size:11px;color:#8591a2}.config-note strong{font-size:11px;color:#65758c;font-weight:500}.config-note p{margin-top:7px}.main-column{min-width:0;display:flex;flex-direction:column;gap:17px}.canvas-panel{overflow:hidden}.canvas-header{padding:19px 22px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #edf0f5}.canvas-header h2{font-size:16px;margin-top:4px}.status-tag{font-size:9px;letter-spacing:1.2px;color:#5776b9;font-weight:700}.canvas-meta{text-align:right;font:11px/1.8 ui-monospace,SFMono-Regular,Consolas,monospace;color:#8795a9}.canvas-meta span{display:block;font-size:10px}.maze-area{padding:19px 38px 16px;display:grid;align-items:center;min-height:340px;background:radial-gradient(#e1e7f1 .6px,transparent .6px);background-size:10px 10px}.maze-area>div{min-width:0}.maze-label{font-size:9px;letter-spacing:1.6px;color:#8c9aaf;margin-bottom:13px;text-align:center}.maze{display:block;width:100%;max-height:460px;margin:auto;overflow:visible;filter:drop-shadow(0 4px 10px #2945770a)}.cell{cursor:pointer}.cell path{stroke:#617693;stroke-width:1.15;stroke-linecap:square;fill:none}.cell text{text-anchor:middle;font:12px ui-monospace,monospace;pointer-events:none}.cell .selected-cell{fill:none;stroke:#4267d5;stroke-width:2;stroke-dasharray:3 2}.cell .changed{fill:none;stroke:#9f7bd5;stroke-width:1.5;rx:3}.cell .square-check{fill:#f7b53f20;stroke:#e7aa37;stroke-dasharray:3 2;stroke-width:1}.comparison{grid-template-columns:1fr 1fr;gap:20px;padding:20px}.comparison-metrics{font-size:10px;color:#7c8da3;margin-top:14px}.comparison-note{font-size:11px;color:#7b879c;padding:0 22px 15px}.legend{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 14px;padding:11px 15px 18px;color:#78879d;font-size:10px}.legend span{display:flex;align-items:center;gap:5px}.legend i{width:9px;height:9px;border-radius:2px;display:inline-block;border:1px solid #a1b0c644}.visited{background:#edf3ff}.stack{background:#cfddff}.current{background:#8eafff}.eligible{background:#e6dcff}.queue{background:#c8e8e0}.path{background:#bbe4d7}.blocked{background:#273c59}.playback{border-top:1px solid #edf0f5;background:#fcfdff;padding:14px 20px 11px;display:flex;align-items:center;gap:15px}.transport{display:flex;align-items:center;gap:3px}.transport button{padding:5px;color:#788ba5}.transport .play-button{background:#466bdb;color:#fff;padding:10px;margin:0 7px;border-radius:50%}.step-counter{font-size:9px;letter-spacing:.5px;color:#a0aabd;white-space:nowrap}.step-counter strong{font-size:13px;color:#52657f;margin:0 5px}.step-counter span{font-size:10px}.speed{display:flex;align-items:center;gap:6px;margin-left:auto;font-size:10px;color:#8995a8;white-space:nowrap}.speed select{padding:5px;font-size:10px;width:90px}.timeline{display:block;width:calc(100% - 44px);margin:0 22px;height:4px;border:none}.timeline-footer{display:flex;justify-content:space-between;padding:12px 22px 15px;font-size:10px;color:#95a0b2}.timeline-footer label{display:flex;align-items:center;gap:6px;font-size:10px;color:#8995a8}.metrics{display:grid;grid-template-columns:repeat(6,1fr);background:#fff;border:1px solid #dfe5ee;border-radius:9px;padding:16px 0}.metrics>div{display:flex;flex-direction:column;padding:0 12px;border-right:1px solid #edf0f5}.metrics>div:last-child{border:0}.metrics span{font-size:10px;color:#8996aa}.metrics strong{font-size:20px;font-weight:550;letter-spacing:-.7px;margin-top:3px;white-space:nowrap}.metrics small{font-size:8px;color:#9aa7b8}.pipeline{padding:18px 20px}.pipeline .section-title .muted{font-size:10px}.stage-list{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:16px 0}.stage-list button{font-size:10px;justify-content:flex-start;background:#f8f9fc;padding:7px 6px;border:1px solid #e9edf4}.stage-list button span{font-size:9px;background:#fff;border:1px solid #e1e6ee;border-radius:4px;width:17px;height:17px;text-align:center;flex-shrink:0}.stage-list button.active{color:#4267d5;background:#edf2ff;border-color:#a9bfef}.pipeline>p{font-size:11px}.inspection-column{display:flex;flex-direction:column;gap:17px;min-width:0}.explanation{padding:20px}.explanation h2{margin:8px 0 10px}.step-explanation{font-size:12px;color:#748399;line-height:1.85;min-height:88px}.code-title{display:flex;justify-content:space-between;font-size:9px;color:#9ca7b7;letter-spacing:1px;margin:21px 0 10px}.code-title span{letter-spacing:0;color:#7990b5}.pseudocode{background:#f7f9fc;border:1px solid #edf0f5;border-radius:6px;padding:9px 0;overflow:auto}.pseudocode>div{display:flex;font-size:9px;line-height:2.1;white-space:pre;padding-right:10px}.pseudocode>div>span{min-width:24px;text-align:center;color:#b0bac8;-webkit-user-select:none;user-select:none}.pseudocode code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;color:#7a899f}.pseudocode .active{background:#e8efff;border-left:2px solid #4c73dd}.pseudocode .active code{color:#3d65c4}.structure{padding:18px 20px}.structure>.muted{margin-top:5px;font-size:11px}.structure-list{display:flex;flex-wrap:wrap;gap:6px;max-height:110px;overflow:auto;margin-top:13px}.structure-list>span{font:10px ui-monospace,monospace;border:1px solid #e2e7f0;border-radius:4px;padding:6px;color:#8492a8}.structure-list>span.head{color:#4a6dcd;background:#edf2ff;border-color:#b8c9f2}.structure-list small{font-size:8px}.structure-list .empty{border:none;padding:6px 0;font-family:inherit;color:#a0aabb}.order{font:10px/1.8 ui-monospace,monospace;max-height:130px;overflow:auto;color:#7c8ba2}details{margin-top:10px;font-size:11px;color:#7b8ba3}summary{cursor:pointer}.inspector-tabs{display:flex;border-bottom:1px solid #dfe5ee;margin-bottom:-7px}.inspector-tabs button{border-radius:0;font-size:11px;color:#8996a9;padding:8px 14px}.inspector-tabs button.active{border-bottom:2px solid #5275d5;color:#476bce}.bitmask,.output,.event-log{padding:18px 20px}.bitmask>.muted{font-size:10px;margin-top:6px}.encodings{display:flex;justify-content:space-between;margin:20px 0}.encodings>div{display:flex;flex-direction:column}.encodings small{font-size:8px;letter-spacing:.7px;color:#8e9aad}.encodings strong{font:24px/1.6 ui-monospace,monospace;color:#4c6281}.bits{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.bits>div{display:flex;justify-content:space-between;background:#f7f9fc;padding:7px;font-size:9px;border-radius:4px;color:#98a3b4}.bits b{color:#6a7c95;font-weight:400}.wall-change{font-size:11px;color:#7e60a9;background:#f7f0ff;border-radius:4px;padding:8px;margin-top:8px}.wall-change code{display:block}.output pre{max-height:260px;overflow:auto;background:#f8faff;padding:10px;font-size:11px;line-height:1.5}.output button{width:100%}.event-log>div{max-height:350px;overflow:auto;margin-top:12px}.event-log button{display:block;text-align:left;font-size:11px;padding:10px;border-bottom:1px solid #eef1f7;width:100%;font-weight:400}.event-log small{display:block;color:#8d9bb0;margin-bottom:3px;font-size:9px}.event-log button.active{background:#edf2ff;color:#466bdb}.error,.warning{padding:12px 16px;background:#fff0ee;color:#a34037;border:1px solid #f0c9c4;border-radius:7px;font-size:12px}.warning{background:#fff9e9;border-color:#efe0b1;color:#977623}footer{padding:24px 0 20px;display:flex;justify-content:space-between;color:#9aa7b8;font-size:10px;gap:15px}footer>span{display:flex;align-items:center;gap:6px}.footer-dot{padding:0 5px}@media(min-width:1500px){:root{font-size:16px}.workspace{grid-template-columns:260px minmax(400px,1fr) 335px}.maze-area{padding-left:65px;padding-right:65px}.maze{max-height:500px}}@media(max-width:1200px){main{padding:24px 20px 0}.app-header{padding:0 20px}.workspace{grid-template-columns:210px minmax(350px,1fr);gap:16px}.inspection-column{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr 1fr;align-items:start}.inspector-tabs{grid-column:3;grid-row:1;margin-top:0}.inspection-column>.bitmask,.inspection-column>.output,.inspection-column>.event-log{grid-column:3;grid-row:1;margin-top:45px}.explanation{grid-column:1;grid-row:1}.structure{grid-column:2;grid-row:1}.configuration{padding:16px}.playback{gap:9px}.header-meta>span:first-child{display:none}}@media(max-width:760px){.app-header{height:64px;padding:0 16px}.brand strong{font-size:16px}.brand strong span{display:none}.local-badge{font-size:8px}.page-heading{align-items:flex-start;gap:12px;flex-direction:column;margin-bottom:18px}h1{font-size:25px}.page-heading p{font-size:12px}.compare-toggle{font-size:11px;padding:7px 10px}.workspace{grid-template-columns:1fr}.configuration{grid-row:2}.configuration form{display:grid;grid-template-columns:1fr 1fr;gap:10px 18px}.configuration form>label{margin:0}.field-pair{margin:0}.field-label{display:none}.field-help{font-size:11px;margin:0}.mode-choice{align-self:start}.main-column{grid-row:1}.inspection-column{grid-column:1;grid-row:3;display:flex}.inspection-column>.bitmask,.inspection-column>.output,.inspection-column>.event-log{margin-top:0}.maze-area{padding:18px 24px;min-height:260px}.metrics>div{padding:0 8px}.metrics strong{font-size:17px}.metrics span{font-size:9px}.playback{padding:12px;gap:7px}.transport{gap:0}.transport .play-button{margin:0 3px;padding:8px}.step-counter{font-size:8px}.speed{font-size:0}.speed select{width:73px;font-size:9px}.playback>button:last-child{display:none}.stage-list{grid-template-columns:repeat(2,1fr)}.comparison{padding:16px 10px;gap:10px}.comparison .maze-label{font-size:7px}.comparison-metrics{font-size:8px}.canvas-header{padding:15px}.timeline-footer{padding:12px;font-size:9px}.timeline-footer label{font-size:9px}.legend{font-size:9px;gap:8px 12px}footer{flex-direction:column;font-size:9px}.header-meta{gap:0}main{padding:20px 14px 0}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}.step-explanation,.configuration label,.field-label,.configuration input{font-size:14px}.field-help,.config-note,.config-note strong{font-size:12px}.pseudocode>div{font-size:11px}.legend{font-size:12px}.pipeline>p{font-size:12px}.bits>div{font-size:12px}.bitmask>.muted,.structure>.muted{font-size:12px}.structure-list>span{font-size:12px}.inspector-tabs button,.stage-list button,.canvas-meta,.canvas-meta span,.timeline-footer,.timeline-footer label,.metrics span{font-size:12px}.apply,.regenerate{font-size:13px}.speed,.speed select{font-size:12px}.speed select{width:96px}.comparison{align-items:start}.comparison .maze{min-height:0}.header-meta{font-size:14px}@media(max-width:760px){.metrics span,.timeline-footer,.timeline-footer label{font-size:10px}.speed{font-size:0}.speed select{font-size:10px;width:79px}.legend{font-size:10px}.configuration label{font-size:13px}.stage-list button{font-size:12px}.canvas-meta,.canvas-meta span{font-size:10px}}:root{color-scheme:light}.theme-toggle{border:1px solid #dce3ee;background:#f7f9fc;font-size:12px;white-space:nowrap}:root[data-theme=dark]{color-scheme:dark;color:#d8e3f5;background:#080f20;--maze-empty: #101e34;--maze-visited: #1a3050;--maze-stack: #2e4982;--maze-discovered: #163f47;--maze-queue: #20575b;--maze-path: #286e65;--maze-eligible: #473868;--maze-current: #668be2;--maze-blocked: #070e1c;--maze-blocked-text: #7f97bd;--maze-current-text: #071b3c;--maze-text: #b7eee0}[data-theme=dark] .app-header,[data-theme=dark] .panel,[data-theme=dark] .metrics,[data-theme=dark] .compare-toggle{background:#101b30;border-color:#263650;box-shadow:0 3px 12px #00000016}[data-theme=dark] h1,[data-theme=dark] h2,[data-theme=dark] h3,[data-theme=dark] .brand{color:#e5edfa}[data-theme=dark] .brand strong span,[data-theme=dark] .page-heading p,[data-theme=dark] .header-meta,[data-theme=dark] .muted,[data-theme=dark] .step-explanation,[data-theme=dark] .field-help,[data-theme=dark] .config-note,[data-theme=dark] .config-note strong,[data-theme=dark] label,[data-theme=dark] .field-label,[data-theme=dark] .legend,[data-theme=dark] .metrics span,[data-theme=dark] .canvas-meta,[data-theme=dark] .timeline-footer,[data-theme=dark] .timeline-footer label,[data-theme=dark] .inspector-tabs button,[data-theme=dark] .comparison-note,[data-theme=dark] .comparison-metrics,[data-theme=dark] .structure-list .empty,[data-theme=dark] .order,[data-theme=dark] details{color:#a7b8d1}[data-theme=dark] .eyebrow,[data-theme=dark] .status-tag,[data-theme=dark] .maze-label,[data-theme=dark] .optional,[data-theme=dark] .code-title,[data-theme=dark] .encodings small,[data-theme=dark] .metrics small,[data-theme=dark] footer{color:#90a6c6}[data-theme=dark] input,[data-theme=dark] select,[data-theme=dark] .secondary,[data-theme=dark] .theme-toggle{background:#0c1629;border-color:#334560;color:#dae5f7}[data-theme=dark] button:hover:not(:disabled){background:#223454}[data-theme=dark] .primary,[data-theme=dark] .transport .play-button{background:#5278df;color:#fff;border-color:#668be9}[data-theme=dark] .primary:hover:not(:disabled),[data-theme=dark] .transport .play-button:hover:not(:disabled){background:#668be9}[data-theme=dark] .mode-choice,[data-theme=dark] .pseudocode,[data-theme=dark] .bits>div,[data-theme=dark] .output pre,[data-theme=dark] .stage-list button,[data-theme=dark] .badge{background:#15233b;border-color:#2a3b57;color:#a7bbd8}[data-theme=dark] .mode-choice button.selected,[data-theme=dark] .stage-list button.active,[data-theme=dark] .pseudocode .active,[data-theme=dark] .structure-list>span.head,[data-theme=dark] .event-log button.active{background:#233963;border-color:#5679c5;color:#c1d4ff}[data-theme=dark] .pseudocode code,[data-theme=dark] .bits b,[data-theme=dark] .structure-list>span,[data-theme=dark] .config-actions button{color:#a7bbd8}[data-theme=dark] .pseudocode .active code,[data-theme=dark] .inspector-tabs button.active,[data-theme=dark] .compare-toggle.checked{color:#adc5ff}[data-theme=dark] .encodings strong,[data-theme=dark] .step-counter strong{color:#d5e3ff}[data-theme=dark] .canvas-header,[data-theme=dark] .config-actions,[data-theme=dark] .config-note,[data-theme=dark] .metrics>div,[data-theme=dark] .structure-list>span,[data-theme=dark] .inspector-tabs,[data-theme=dark] .event-log button{border-color:#293a55}[data-theme=dark] .stage-list button span{background:#101b30;border-color:#3a4d6c}[data-theme=dark] .playback{background:#0d182b;border-color:#293a55}[data-theme=dark] .maze-area{background-image:radial-gradient(#263750 .6px,transparent .6px)}[data-theme=dark] .cell path{stroke:#738bab}[data-theme=dark] .cell .selected-cell{stroke:#b3cbff}[data-theme=dark] .cell .changed{stroke:#c5a1ff}[data-theme=dark] .visited{background:var(--maze-visited)}[data-theme=dark] .stack{background:var(--maze-stack)}[data-theme=dark] .current{background:var(--maze-current)}[data-theme=dark] .eligible{background:var(--maze-eligible)}[data-theme=dark] .queue{background:var(--maze-queue)}[data-theme=dark] .path{background:var(--maze-path)}[data-theme=dark] .blocked{background:var(--maze-blocked)}[data-theme=dark] .local-badge{background:#15372f;color:#a5ddc6}[data-theme=dark] .wall-change{background:#302342;color:#d2b9f5}[data-theme=dark] .warning{background:#342b19;color:#edcd86;border-color:#67522c}[data-theme=dark] .error{background:#38212c;color:#f4b3b7;border-color:#70404e}@media(max-width:760px){.header-meta .local-badge{display:none}.theme-toggle{padding:7px}}
