html,body,#root{height:100%}html,body{background:#eee;margin:0;padding:0;overflow:hidden;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif}.navbar{display:flex;align-items:center;justify-content:space-between;height:48px;padding:0 12px;background:transparent;color:#333}.navbar .brand{font-weight:600}.navbar .mode-toggle{display:flex;gap:4px;list-style:none;padding:0;margin:0}.navbar .mode-toggle button{background:#fff6;color:#333;border:1px solid #ccc;padding:6px 10px;cursor:pointer;border-radius:8px}.navbar .mode-toggle button.active{background:#0000000f}.layout{position:relative;height:calc(100% - 48px);width:100%}.tree-canvas{display:block}.tree-scroll{position:absolute;top:0;right:0;bottom:0;left:0;overflow:auto}.ctrl-panel{z-index:10;position:absolute;top:8px;right:8px;width:325px;padding:12px;background:#ffffffa6;border:1px solid #ddd;border-radius:12px;font-size:12px}.ctrl-panel .row{margin:6px 0;display:flex;align-items:center;justify-content:center;gap:8px}.ctrl-panel .split{display:grid;grid-template-columns:1fr 1fr;gap:8px}.ctrl-panel .progress{height:8px;width:100%;background:#eee;border-radius:8px;overflow:hidden}.ctrl-panel .progress .bar{height:100%;background:#999;width:0%}.ctrl-panel .answer{text-align:center;font-weight:600}.ctrl-panel .answer.correct{color:#080}.ctrl-panel .answer.incorrect{color:#800}.slider-row{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:8px}input[type=range]{width:100%}svg{background-color:transparent;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}button,.btn{background:#fff6;color:#333;border:1px solid #ccc;padding:6px 10px;border-radius:8px;cursor:pointer}button:hover,.btn:hover{background:#0000000a}path.link{fill:none;stroke:#333;stroke-width:4px}path.link.hover{stroke:#666}path.link.entered,path.link.entered.hover{stroke:#080}path.link.pruned{stroke-dasharray:10,10;stroke:#800}path.link.pruned.hover{stroke:#cd0000}path.mouselink{stroke-width:30px;stroke:#000;stroke-opacity:0;cursor:pointer}g.node path{cursor:pointer;fill:#fff;stroke:#333}g.node path:hover{fill:#eee}g.node.entered path{fill:#efe}g.node.leaf path{fill:#fff}g.node.leaf path:hover{fill:#eee}g.node.entered.leaf path{fill:#eef}rect.cursor{fill:#000;animation:blink 1.2s steps(1,end) infinite}text{font-family:Helvetica Neue,Arial,sans-serif;font-size:18px;pointer-events:none}text.value{text-anchor:middle;font-weight:700}g.node.pruned .alpha,g.node.pruned .beta{fill:#a00}.info{z-index:10;position:absolute;bottom:6px;left:6px;font-size:11px;color:#444}.prune-info{z-index:10;position:absolute;bottom:6px;right:6px;font-size:14px;color:#444}@keyframes blink{0%{opacity:1}50%{opacity:0}to{opacity:1}}
