@import"https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap";*{box-sizing:border-box}body{margin:0;background:#101825;color:#e8eefb;font-family:Manrope,system-ui,sans-serif;min-width:320px}main{min-height:100vh;background:radial-gradient(circle at 60% -10%,#1d3155 0,transparent 30%),#101825}header{height:88px;border-bottom:1px solid #26354e;display:flex;align-items:center;justify-content:space-between;padding:0 28px;gap:20px}.brand{display:flex;align-items:center;gap:13px}.brand-mark{width:42px;height:42px;display:grid;place-items:center;font-size:31px;color:#94a0ff;border:1px solid #5969d0;border-radius:12px;background:#1d2850;transform:rotate(-12deg)}h1{font-size:18px;letter-spacing:-.6px;margin:0;font-weight:800}h1 em{color:#a4adff;font-style:normal}header p{font:10px DM Mono;letter-spacing:2px;color:#8292ae;margin:3px 0 0}.header-tools{display:flex;align-items:center;gap:14px}.algo-select{height:47px;padding:4px 12px;display:flex;flex-direction:column;border:1px solid #35445f;border-radius:8px;background:#182337}.algo-select span{font-size:9px;text-transform:uppercase;letter-spacing:1px;color:#8292ae}.algo-select select{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;background:none;color:#eef4ff;font-family:Manrope;font-size:13px;font-weight:700;padding:0 20px 0 0;outline:none}.algo-select option{background:#172237}.visualize{border:0;border-radius:8px;background:#8490ff;color:#111936;padding:13px 15px;font:700 13px Manrope;cursor:pointer;box-shadow:0 6px 20px #5663d055}.visualize kbd{font:10px DM Mono;margin-left:9px;color:#354080}.workspace{display:grid;grid-template-columns:minmax(260px,.87fr) minmax(390px,1.55fr) minmax(220px,.73fr);height:calc(100vh - 124px);min-height:580px}.panel{border-right:1px solid #26354e;min-width:0}.pane-title{height:48px;padding:0 16px;border-bottom:1px solid #26354e;display:flex;align-items:center;justify-content:space-between;font:700 10px DM Mono;letter-spacing:1px;color:#bfcbdf}.pane-title small{font:9px DM Mono;letter-spacing:0;color:#71809a}.icon{color:#8b98ff;font-size:16px;margin-right:6px}.editor-pane{display:flex;flex-direction:column}.editor-pane>div:last-child{flex:1}.active-line{background:#28385c66}.center{display:flex;flex-direction:column;min-width:0}.visualizer{height:calc(100% - 83px);border-right:0}.viz-stage{height:calc(100% - 83px);display:grid;place-items:center;padding:14px}.viz-svg{width:100%;height:100%;max-height:420px}.viz-svg text{fill:#e7edff;font:600 13px DM Mono}.viz-svg .value{font-size:11px;fill:#bdc8e4}.viz-svg .index{fill:#71809a;font-size:11px}.legend{border-top:1px solid #26354e;height:35px;display:flex;align-items:center;justify-content:center;gap:14px;font-size:10px;color:#91a0b9}.legend i{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:5px}.blue{background:#3c5fdb}.purple{background:#7c83ff}.orange{background:#ff8c5a}.green,.live-dot,.status-dot{background:#4ee0a3}.live-dot{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:7px;box-shadow:0 0 10px #4ee0a3}.stack-viz{width:min(420px,90%);padding:14px}.stack-label{font:11px DM Mono;color:#90a0bd;margin-bottom:15px}.stack-label span{float:right;color:#687792}.stack-card{margin:9px 0;padding:13px 15px;background:#1a263a;border:1px solid #34435d;border-radius:8px;display:flex;gap:12px;align-items:center}.stack-card.current{border-color:#8c97ff;background:#263255;box-shadow:0 0 0 1px #5968b766}.stack-card span{color:#8d9aff;font:12px DM Mono}.stack-card b{font-size:13px}.stack-card code{margin-left:auto;font:11px DM Mono;color:#9dadc8}.empty-viz,.empty-trace{color:#7888a5;text-align:center;font-size:13px}.controls{height:83px;border-top:1px solid #26354e;border-right:1px solid #26354e;display:flex;align-items:center;gap:8px;padding:0 15px;background:#131e30}.control-btn,.reset{padding:9px 11px;border:1px solid #35445f;border-radius:6px;background:#1d2a40;color:#d9e2f7;font:600 11px Manrope;cursor:pointer}.control-btn:disabled{opacity:.35}.primary{background:#7e89fa;border-color:#98a1ff;color:#121938}.timeline{flex:1;display:flex;align-items:center;gap:8px;min-width:80px}.timeline input{width:100%;accent-color:#8792ff}.timeline span,.speed{font:10px DM Mono;color:#8291ac;white-space:nowrap}.speed{display:flex;align-items:center;gap:5px}.speed input{width:50px;accent-color:#8792ff}.speed b{color:#cdd7ee}.reset{color:#ffb09a;border-color:#754456;background:#2b2433}.trace-pane{display:flex;flex-direction:column;border-right:0}.trace-list{overflow:auto;flex:1}.trace-row{width:100%;border:0;border-bottom:1px solid #26354e;background:transparent;color:#dfe8fa;padding:13px;display:flex;gap:10px;text-align:left;cursor:pointer}.trace-row.active{background:#253354;border-left:3px solid #909aff;padding-left:10px}.step{color:#71809a;font:11px DM Mono;padding-top:2px}.trace-row b{font:10px DM Mono;color:#9faeff}.trace-row p{margin:4px 0 0;font-size:11px;line-height:1.35}.trace-row code{display:none}.empty-trace{padding:55px 15px;line-height:1.8}.empty-trace span{font-size:11px;color:#596983}footer{height:36px;border-top:1px solid #26354e;padding:0 20px;display:flex;justify-content:space-between;align-items:center;color:#74839d;font:10px DM Mono}.status-dot{display:inline-block;border-radius:50%;width:6px;height:6px;margin-right:6px}@media(max-width:1000px){.workspace{grid-template-columns:1fr 1.2fr;height:auto;min-height:0}.trace-pane{grid-column:1/-1;height:220px;border-top:1px solid #26354e}.trace-list{display:flex}.trace-row{min-width:180px;border-right:1px solid #26354e}.center{min-height:540px}}@media(max-width:680px){header{height:auto;padding:16px;align-items:flex-start;flex-direction:column}.header-tools{width:100%;justify-content:space-between}.workspace{display:block}.editor-pane{height:440px}.center{height:500px;min-height:0}.trace-pane{height:230px}.controls{padding:8px;gap:5px;flex-wrap:wrap;height:auto;min-height:80px}.speed{margin-left:auto}footer{display:none}.algo-select{flex:1}.visualize{white-space:nowrap}}.workspace{grid-template-rows:minmax(0,1fr)}.center{height:100%;max-height:100%;min-height:0;overflow:hidden}.visualizer{height:auto;min-height:0;flex:1;display:flex;flex-direction:column;overflow:hidden}.viz-stage{height:auto;min-height:320px;flex:1;overflow:hidden}.viz-svg{display:block}.theme-select{height:47px;padding:4px 12px;display:flex;flex-direction:column;border:1px solid #35445f;border-radius:8px;background:#182337}.theme-select span{font-size:9px;text-transform:uppercase;letter-spacing:1px;color:#8292ae}.theme-select select{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;outline:0;background:transparent;color:#eef4ff;font:700 13px Manrope,sans-serif;cursor:pointer}.theme-select option{background:#172237}.custom-data{height:47px;width:180px;padding:4px 12px;display:flex;flex-direction:column;border:1px solid #4f5f85;border-radius:8px;background:#202b43}.custom-data span{color:#9aa8c4;font-size:9px;letter-spacing:1px;text-transform:uppercase}.custom-data input{width:100%;border:0;outline:0;background:transparent;color:#f2f5ff;font:600 12px DM Mono,monospace}.viz-stage{position:relative}.mascot-guide{position:absolute;right:13px;bottom:8px;z-index:4;display:flex;align-items:flex-end;pointer-events:none;filter:drop-shadow(0 10px 18px #080d1d80)}.mascot-guide img{width:clamp(76px,9vw,118px);height:auto;transform-origin:bottom center;animation:mascot-float 3.4s ease-in-out infinite}.mascot-guide.is-active img{animation:mascot-bounce .55s ease-out,mascot-float 3.4s .55s ease-in-out infinite}.mascot-bubble{width:142px;margin:0 -9px 82px 0;padding:9px 11px;color:#222749;background:#fff;border:2px solid #b5afff;border-radius:14px 14px 3px;box-shadow:0 8px 25px #080d1d55;font-size:10px;font-weight:800;line-height:1.35}body[data-theme=sakura] main{background:radial-gradient(circle at 65% -15%,#5b315c 0,transparent 36%),#21182b}body[data-theme=sakura] header,body[data-theme=sakura] .controls{background-color:#291d37}body[data-theme=sakura] .panel,body[data-theme=sakura] header,body[data-theme=sakura] footer,body[data-theme=sakura] .pane-title,body[data-theme=sakura] .controls,body[data-theme=sakura] .trace-row{border-color:#533958}body[data-theme=sakura] .visualize,body[data-theme=sakura] .control-btn.primary{background:#ff91bd}body[data-theme=sakura] h1 em,body[data-theme=sakura] .icon{color:#ffacd0}body[data-theme=mint] main{background:radial-gradient(circle at 65% -15%,#214c50 0,transparent 36%),#101e25}body[data-theme=mint] header,body[data-theme=mint] .controls{background-color:#14282e}body[data-theme=mint] .panel,body[data-theme=mint] header,body[data-theme=mint] footer,body[data-theme=mint] .pane-title,body[data-theme=mint] .controls,body[data-theme=mint] .trace-row{border-color:#28505a}body[data-theme=mint] .visualize,body[data-theme=mint] .control-btn.primary{background:#62ddb4}body[data-theme=mint] h1 em,body[data-theme=mint] .icon{color:#71e2c0}@keyframes mascot-float{0%,to{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-7px) rotate(1deg)}}@keyframes mascot-bounce{0%{transform:scale(.92) translateY(4px)}55%{transform:scale(1.06) translateY(-8px)}to{transform:scale(1) translateY(0)}}@media(max-width:1000px){.mascot-bubble{display:none}.mascot-guide img{width:78px;opacity:.9}}@media(max-width:760px){.theme-select{display:none}.custom-data{order:3;width:100%}}
