:root{font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:#fffff8}.app{min-height:100vh;padding:28px 16px 40px;display:flex;flex-direction:column;align-items:center;gap:12px;background:#fffff8;color:#111;font-family:ET Book,Palatino,Palatino Linotype,Book Antiqua,Georgia,serif}.app h1{margin:0;font-size:28px;letter-spacing:-.3px;font-weight:400}.app-subtitle{margin:0;font-size:14px;color:#5a554b;letter-spacing:.2px}.scrubber-nav{display:flex;gap:20px;justify-content:flex-end;margin-bottom:16px;padding:12px 0}.scrubber-nav a{color:#06c;text-decoration:none;font-size:14px;font-weight:500;transition:color .2s}.scrubber-nav a:hover{color:#004999;text-decoration:underline}.compiler-scrubber{--paper: #fffdf4;--wash: #f4f0e6;--ink: #111111;--muted: #55544f;--accent: #2a623d;--accent-strong: #1f4d2f;--accent-warm: #8b0000;--line: #111111;--line-soft: #c9c3b7;--grid: #e1dbcf;width:min(1100px,100%);padding:18px 22px 22px;border-radius:14px;border:1.5px solid var(--line);background:linear-gradient(180deg,#fffdf4,#f5f0e6);color:var(--ink);font-family:ET Book,Palatino,Palatino Linotype,Book Antiqua,Georgia,serif;box-shadow:0 12px 26px #0000001f;animation:scrubber-in .6s ease}@keyframes scrubber-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.scrubber-header{display:flex;flex-direction:column;gap:16px}.scrubber-controls{display:flex;gap:16px;align-items:flex-start;justify-content:space-between;flex-wrap:wrap}.stage-controls{flex:1 1 600px;display:flex;flex-direction:column;gap:12px;min-width:0}.stage-pill-row{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px}.stage-pill{display:inline-flex;align-items:center;gap:8px;padding:6px 10px;border-radius:8px;border:1.5px solid var(--line);background:#fff;color:var(--ink);font-size:12px;font-weight:600;letter-spacing:.02em;cursor:pointer;transition:transform .12s ease,background .12s ease}.stage-pill:hover{transform:translateY(-1px);background:#f2efe7}.stage-pill.active{background:var(--accent);color:#fff}.stage-pill-index{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:4px;border:1px solid var(--line);background:#fffdf4;color:var(--ink);font-size:11px;font-family:IBM Plex Mono,SFMono-Regular,Consolas,Liberation Mono,monospace}.stage-pill.active .stage-pill-index{background:#fff}.stage-pill-label{white-space:nowrap}.stage-slider-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.play-button{border:1.5px solid var(--line);border-radius:8px;padding:7px 14px;background:var(--accent);color:#fff;font-weight:600;font-size:12px;cursor:pointer;transition:transform .15s ease,background .15s ease;box-shadow:2px 2px 0 var(--line)}.play-button:hover{background:var(--accent-strong);transform:translateY(-1px)}.play-button.playing{background:var(--accent-warm)}.stage-slider-row input[type=range]{flex:1 1 240px;accent-color:var(--accent)}.stage-index-readout{font-size:12px;color:var(--muted);font-weight:600;font-family:IBM Plex Mono,SFMono-Regular,Consolas,Liberation Mono,monospace}.view-toggle{display:inline-flex;gap:6px;padding:2px;border-radius:8px;background:#fff;border:1.5px solid var(--line)}.view-toggle-button{border:1px solid transparent;background:transparent;padding:5px 12px;border-radius:6px;font-weight:600;color:var(--muted);cursor:pointer;font-size:12px;font-family:IBM Plex Mono,SFMono-Regular,Consolas,Liberation Mono,monospace;transition:background .12s ease,color .12s ease,border .12s ease}.view-toggle-button.active{background:#f2efe7;color:var(--ink);border-color:var(--line)}.stage-summary{padding:12px 14px;border-radius:10px;background:var(--wash);border:1.5px solid var(--line);border-left:6px solid var(--accent);display:grid;gap:6px;animation:fade-up .5s ease}@keyframes fade-up{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}.stage-summary-title{font-size:18px;font-weight:400}.stage-summary-liner{color:var(--muted);font-size:14px}.stage-summary-highlights{margin:6px 0 0;padding-left:18px;color:var(--ink);font-size:13px;display:grid;gap:4px}.stage-summary-highlights li{animation:highlight-in .48s ease;animation-fill-mode:both}.stage-summary-highlights li:nth-child(1){animation-delay:80ms}.stage-summary-highlights li:nth-child(2){animation-delay:.14s}.stage-summary-highlights li:nth-child(3){animation-delay:.2s}.stage-summary-highlights li:nth-child(4){animation-delay:.26s}@keyframes highlight-in{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}.pane-grid{margin-top:14px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.pane{background:#fffdf6;border-radius:10px;border:1.5px solid var(--line);display:flex;flex-direction:column;min-height:620px;overflow:hidden;animation:pane-in .5s ease}@keyframes pane-in{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}.pane-header{padding:10px 14px;font-size:11px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);border-bottom:1.5px solid var(--line);background:#f2efe7;font-family:IBM Plex Mono,SFMono-Regular,Consolas,Liberation Mono,monospace}.pane-body{padding:14px;flex:1;display:flex}.empty-pane{margin:auto;color:var(--muted);font-size:14px}.code-block{width:100%;display:flex;flex-direction:column;background:#fbf7ef;border-radius:10px;overflow:hidden;border:1.5px solid var(--line)}.code-toolbar{display:flex;justify-content:space-between;align-items:center;padding:8px 12px;background:#f1ecdf;color:var(--ink);font-size:11px;border-bottom:1.5px solid var(--line)}.code-title{font-weight:600;text-transform:uppercase;letter-spacing:.12em;font-family:IBM Plex Mono,SFMono-Regular,Consolas,Liberation Mono,monospace}.copy-button{border:1.5px solid var(--line);background:#fff;color:var(--ink);border-radius:999px;padding:3px 10px;font-size:11px;cursor:pointer;font-family:IBM Plex Mono,SFMono-Regular,Consolas,Liberation Mono,monospace}.copy-button:hover{background:#f2efe7}.code-content{padding:14px;overflow:auto;font-family:IBM Plex Mono,SFMono-Regular,Consolas,Liberation Mono,monospace;font-size:13px;line-height:1.55;color:#111}.code-line{display:grid;grid-template-columns:minmax(28px,auto) 42px 1fr;gap:12px;padding:2px 4px 2px 6px;border-radius:6px;transition:background .16s ease}.code-line-ops{display:flex;gap:4px;flex-wrap:wrap;align-items:center;justify-content:flex-end;min-height:18px}.op-badge{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 4px;border-radius:999px;background:#c21f6a;color:#fffdf4;font-size:10px;font-weight:700;line-height:1;box-shadow:1px 1px 0 var(--line);font-family:IBM Plex Mono,SFMono-Regular,Consolas,Liberation Mono,monospace}.code-line-number{text-align:right;color:#8a857c}.code-line.match{background:#2a623d24;box-shadow:inset 3px 0 0 var(--accent)}.code-line.similar{background:#2a623d14;box-shadow:inset 3px 0 #2a623d73}.code-line.match .code-line-number{color:#2a623d}.code-line.similar .code-line-number{color:#6b4b1f}.code-line-content{white-space:pre}.token-keyword{color:var(--accent);font-weight:600}.token-comment{color:#7b746b;font-style:italic}.graph-view{position:relative;width:100%;height:100%;min-height:480px;border-radius:10px;background-color:#f7f3ea;background-image:radial-gradient(#ded7cb .8px,transparent .8px);background-size:18px 18px;border:1.5px solid var(--line);overflow:hidden}.graph-view.graph-view-dark{background-color:#f7f3ea;background-image:radial-gradient(#ded7cb .8px,transparent .8px);border-color:var(--line)}.graph-view-image{background-color:#f7f3ea;background-image:radial-gradient(#ded7cb .8px,transparent .8px)}.graph-canvas{width:100%;height:100%;cursor:grab;touch-action:none}.graph-canvas.panning{cursor:grabbing}.graph-view svg{width:100%;height:100%}.graph-edge{stroke:var(--line);stroke-width:1.6}.graph-edge-arrow{fill:var(--line)}.graph-node rect{fill:#fff;stroke:var(--line);stroke-width:1.4}.graph-node text{font-size:12px;fill:var(--ink);font-weight:600;font-family:IBM Plex Mono,SFMono-Regular,Consolas,Liberation Mono,monospace}.graph-node:hover rect{fill:#f0ece2}.graph-tooltip{position:absolute;background:#111;color:#fffdf4;padding:6px 10px;border-radius:6px;font-size:11px;pointer-events:none;max-width:220px;box-shadow:0 6px 14px #0003}.graph-controls{position:absolute;top:12px;right:12px;display:flex;align-items:center;gap:6px;padding:6px;border-radius:999px;background:#fffdf6eb;border:1px solid var(--line);z-index:2}.graph-control-button{border:1px solid var(--line);background:#fffaf0;border-radius:999px;width:28px;height:28px;font-weight:700;color:var(--ink);cursor:pointer;transition:transform .2s ease,box-shadow .2s ease}.graph-control-button:hover{transform:translateY(-1px);box-shadow:0 4px 10px #0000001f}.graph-zoom-readout{font-size:11px;font-weight:700;color:var(--ink);padding:0 8px;font-family:IBM Plex Mono,SFMono-Regular,Consolas,Liberation Mono,monospace}.graph-view.graph-view-dark .graph-controls{background:#f7f3eaeb;border-color:var(--line)}.graph-view.graph-view-dark .graph-control-button{background:#fffaf0;color:var(--ink);border-color:var(--line)}.graph-view.graph-view-dark .graph-zoom-readout{color:var(--ink)}.graph-view.graph-view-dark .graph-edge{stroke:var(--line)}.graph-view.graph-view-dark .graph-edge-arrow{fill:var(--line)}.graph-view.graph-view-dark .graph-node rect{fill:#fff;stroke:var(--line)}.graph-view.graph-view-dark .graph-node text{fill:var(--ink)}.graph-view.graph-view-dark .graph-node:hover rect{fill:#f0ece2}.graph-node[data-tone=input] rect,.graph-edge[data-tone=input]{stroke:#f4a340}.graph-node[data-tone=input] text{fill:#f8c57d}.graph-node[data-tone=q] rect,.graph-edge[data-tone=q]{stroke:#2dd36f}.graph-node[data-tone=q] text{fill:#7df0ae}.graph-node[data-tone=k] rect,.graph-edge[data-tone=k]{stroke:#2f9bff}.graph-node[data-tone=k] text{fill:#7dc0ff}.graph-node[data-tone=v] rect,.graph-edge[data-tone=v]{stroke:#ff5e5e}.graph-node[data-tone=v] text{fill:#ff9b9b}.graph-node[data-tone=scores] rect,.graph-edge[data-tone=scores]{stroke:#9d7bff}.graph-node[data-tone=scores] text{fill:#c4b3ff}.graph-node[data-tone=scale] rect,.graph-edge[data-tone=scale]{stroke:#55d6a6}.graph-node[data-tone=scale] text{fill:#97f0cc}.graph-node[data-tone=softmax] rect,.graph-edge[data-tone=softmax]{stroke:#38c3ff}.graph-node[data-tone=softmax] text{fill:#8fdcff}.graph-node[data-tone=output] rect,.graph-edge[data-tone=output]{stroke:#f5c542}.graph-node[data-tone=output] text{fill:#ffe09a}.bench-panel{margin-top:14px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.bench-metric{padding:10px 12px;background:#fffdf6;border-radius:10px;border:1.5px solid var(--line);display:grid;gap:8px}.bench-metric-header{display:flex;justify-content:space-between;align-items:baseline;gap:12px}.bench-metric-label{font-size:11px;color:var(--muted);font-weight:600;font-family:IBM Plex Mono,SFMono-Regular,Consolas,Liberation Mono,monospace}.bench-metric-value{font-size:14px;font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums;font-family:IBM Plex Mono,SFMono-Regular,Consolas,Liberation Mono,monospace}.bench-bar{height:8px;border-radius:999px;background:#e6e1d5;overflow:hidden}.bench-bar-fill{height:100%;border-radius:999px;transition:width .5s ease;background:var(--accent)}.bench-time_ms .bench-bar-fill{background:#8b0000}.bench-speedup_pct .bench-bar-fill{background:#2a623d}@media(max-width:900px){.pane-grid,.bench-panel{grid-template-columns:1fr}}@media(max-width:700px){.scrubber-controls{flex-direction:column;align-items:stretch}.view-toggle{align-self:flex-start}.pane{min-height:520px}}@media(max-width:520px){.compiler-scrubber{padding:16px}.stage-pill-label{display:none}.stage-summary-title{font-size:18px}}.compiler-scrubber-footnote{margin-top:24px;padding-top:16px;border-top:1px solid #e0e0e0;text-align:center;font-size:14px;color:#666}.compiler-scrubber-footnote a{color:#06c;text-decoration:none}.compiler-scrubber-footnote a:hover{text-decoration:underline}
