/* Omid Labs · app/labs/space.css — styles for the space labs (span, lsq, rank3d); every selector starts with .vl-space.
   LDS 1.0 (docs/LABS-DESIGN-SYSTEM.md): typed coordinates are 36 px cells in the kit's matrix style (§7.1, §7.3); the rest is
   the kit's own card, section and stage styling. */
.vl-space-stagewrap{min-width:0}
.vl-space-stagewrap[hidden]{display:none}
.vl-space-blk[hidden]{display:none}
/* a coordinate tuple, rank3d's b = ( , , ) */
.vl-space-vecrow{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin:8px 0;font-size:14px}
.vl-space-veclabel{font:italic 16px var(--serif);min-width:1.6em}
.vl-space-coords{display:inline-flex;align-items:center;gap:4px;flex-wrap:nowrap;font:16px var(--serif);color:var(--muted)}
.vl-space-coord{width:56px;min-width:0;height:36px;min-height:36px;box-sizing:border-box;font:13px ui-monospace,SFMono-Regular,Menlo,monospace;text-align:center;padding:6px 4px;border-radius:7px;border:1px solid var(--line);background:var(--paper);color:var(--ink)}
.vl-space-coord[aria-invalid="true"]{border-color:var(--red);background:var(--bad-bg)}
.vl-space-coord[hidden]{display:none}
/* span: the vectors (and w) as the columns of one bracketed matrix [v₁ v₂ v₃ | w] */
.vl-space-mat{display:inline-grid;align-items:center;margin:4px 0 8px;max-width:100%;overflow-x:auto}
.vl-space-mat>*{margin:2.5px}
.vl-space-mat>[hidden]{display:none}
.vl-space-mat .vl-space-coord{width:54px}
.vl-space-rowname{font:italic 15px var(--serif);color:var(--muted);padding-right:4px;text-align:right}
.vl-space-colh{justify-self:stretch;text-align:center;font:italic 15px/1.5 var(--serif);color:var(--ink);border-bottom:3px solid transparent;padding-bottom:1px}
.vl-space-br{align-self:stretch;width:5px;border:2px solid var(--ink);border-radius:4px 0 0 4px;border-right:0}
.vl-space-brr{border-radius:0 4px 4px 0;border:2px solid var(--ink);border-left:0}
.vl-space-mat .vl-space-aug{margin-left:12px}
.vl-space-div{align-self:stretch;justify-self:start;width:0;margin:3px 0 3px 4px;border-left:1.5px dashed var(--muted)}
.vl-space-pic .vl-seg-btn{padding:6px 7px}
.vl-space-result{margin:8px 0 0;line-height:1.45}
.vl-space-eq{overflow-x:auto;overflow-y:hidden;margin:8px 0 0;padding:2px 0;font-size:14px}
.vl-space-eq .katex-display{margin:4px 0}
.vl-space-note{margin:6px 0 0}
/* rank3d: the rank + nullity bar (dark text on both colors: 9.9:1 on teal, 4.7:1 on purple) */
.vl-space-rn{display:flex;height:24px;border-radius:7px;overflow:hidden;border:1px solid var(--line);margin:8px 0 4px}
.vl-space-rn span{flex:1;display:flex;align-items:center;justify-content:center;font:650 12px var(--sans);color:#0f1420;transition:background .3s}
.vl-space-rn span+span{border-left:1px solid rgba(15,20,32,.25)}
.vl-space-rn .vl-space-rk{background:#5CD0B3}
.vl-space-rn .vl-space-nl{background:#9A72AC}
.vl-space-gs{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:6px 0}
.vl-space-gsR{overflow-x:auto;margin:6px 0 0}
.vl-space-duo{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
.vl-space-duo>.vl-space-r3wrap[hidden]{display:none}
@media (min-width:1500px){.vl-space-duo.vl-space-two{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)}}
@media (prefers-reduced-motion:reduce){.vl-space-rn span{transition:none}}
/* vector tip labels (v⃗₁, a⃗₁, …): the math size of the other labs' labels, so the subscripts stay legible (LDS §3.5) */
.vl-space .vl-texlabel.vl-space-tip{font-size:18px}
.vl-space .vl-space-colh sub{font-size:12px}
