@import url('./theme.css');
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { padding: clamp(18px, 4vw, 38px); }
.playground { max-width: 920px; margin: 0 auto; }
.lab-head { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 24px; }
.kicker { color: var(--accent); font: 11px Quattro, monospace; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 5px 0 0; font-size: clamp(22px, 4vw, 34px); font-weight: 520; letter-spacing: -.04em; }
.status { margin: 0; max-width: 430px; color: var(--muted); font: 12px/1.6 Quattro, monospace; text-align: right; }
.canvas { min-height: 330px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-top: 16px; }
.control { display: grid; gap: 5px; min-width: 130px; color: var(--muted); font: 11px Quattro, monospace; }
.control input, .control select { width: 100%; }
input[type='number'], select { padding: 8px 10px; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
svg { width: 100%; height: auto; max-height: 430px; }
.node { cursor: pointer; }
.node circle, .tree-node rect { fill: var(--paper); stroke: var(--line); stroke-width: 2; }
.node.active circle, .tree-node.active rect { fill: color-mix(in srgb, var(--accent) 20%, var(--paper)); stroke: var(--accent); }
.node.offline { opacity: .3; }
.node text, .tree-node text, .chart-label { fill: var(--ink); font: 12px Quattro, monospace; text-anchor: middle; }
.muted-label { fill: var(--muted); font: 10px Quattro, monospace; }
.edge { stroke: var(--line); stroke-width: 2; }
.axis { stroke: var(--line); stroke-width: 1; }
.vector-a { stroke: #82b4ff; fill: #82b4ff; }
.vector-b { stroke: #ffbd69; fill: #ffbd69; }
.bar { fill: color-mix(in srgb, var(--accent) 70%, transparent); transition: all .25s; }
.bar.selected { fill: #ffbd69; }
.point-a { fill: #82b4ff; }
.point-b { fill: #ff7e96; }
.boundary { stroke: var(--ink); stroke-width: 2; stroke-dasharray: 7 5; }
.metric { font-size: clamp(34px, 8vw, 68px); letter-spacing: -.06em; fill: var(--ink); }
.tree { display: grid; gap: 42px; width: 100%; padding: 36px 24px; }
.tree-level { display: flex; justify-content: space-around; gap: 16px; }
.tree-box { min-width: 90px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font: 14px Quattro, monospace; text-align: center; }
.legend { display: flex; gap: 18px; margin-top: 12px; color: var(--muted); font: 11px Quattro, monospace; }
.dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; }
@media (max-width: 640px) { body { padding: 16px; } .lab-head { display: block; } .status { margin-top: 8px; text-align: left; } .canvas { min-height: 300px; } }
