/* Layout only; typography inherits the shared reading theme. */
.hypercube-scroll { overflow-x:auto; margin:20px 0; }
[data-hypercube-picture] { display:block; width:100%; min-width:480px; max-width:520px; margin:0 auto; }
[data-hypercube-lab] .lab-controls { display:flex; flex-wrap:wrap; align-items:center; gap:12px 18px; }
[data-hypercube-lab] select, [data-hypercube-lab] button { font:inherit; max-width:100%; }
[data-hypercube-picture] text { font:var(--body) 'Times New Roman',serif; fill:var(--ink,#222); }
.hypercube-face { fill:#fafbfc; stroke:#e6e6e6; }
.hypercube-edge { stroke:#c0c0c0; stroke-width:1.1; }
.hypercube-bridge { stroke:#cec4db; stroke-width:1; stroke-dasharray:4 4; }
.hypercube-neighbor { stroke:#a66a1b; stroke-width:2.5; }
[data-hypercube-picture] [role=button] { cursor:pointer; }
[data-hypercube-picture] [role=button]:focus-visible { outline:2px solid #338bde; outline-offset:4px; }
[data-hypercube-readout] { padding:14px; border:1px solid var(--rule,#e6e6e6); border-radius:6px; overflow-wrap:anywhere; }
@media(max-width:600px) {
 [data-hypercube-lab] label { display:flex; flex-wrap:wrap; gap:6px; max-width:100%; }
 [data-hypercube-picture] text { font-size:16px; }
}
