/* ============================================================================
   shared/graph-preview.css — the WebGL graph preview viewer (graph-preview.js).
   SPEC tokens only; `gp-` prefixed so a host page's styles never clash.
   ========================================================================== */
/* THE VIEWER FILLS ITS HOST. It used to be a toolbar over a 210px-tall canvas over a status line,
   whatever room the host gave it — so a workspace that handed the preview half its column still got
   a 210px render with dead space under it. That is why every 3D preview in the suite measured small
   regardless of its pane, and it is a shared-chrome fact, not a per-workspace layout mistake.

   `height:100%` against an AUTO-height host resolves to auto, so `.gp-stage`'s `min-height` still
   sets the floor and every host that never sized its container is unchanged. */
.gp{display:flex;flex-direction:column;background:var(--panel);height:100%;min-height:0}
/* PreviewViewport's toolbar is `.vp-top` (viewport-bar.css + `.selin`). `.gp-bar` remains
   for ParticlePreview's transport chips, which are not a select and have not yet joined
   that bar. */
.gp-bar{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between;padding:6px 10px;border-bottom:1px solid var(--line)}
.gp .vp-top{flex:0 0 auto}
.gp-seg{display:flex;gap:4px;flex-wrap:wrap}
.gp-chip{font-size:10.5px;border:1px solid var(--line);border-radius:6px;padding:1px 7px;color:var(--text2);cursor:pointer;background:var(--chip);user-select:none;text-transform:lowercase}
.gp-chip:hover{border-color:var(--muted)}
.gp-chip.on{border-color:var(--accent);color:var(--accent-text);background:var(--accent-soft)}
.gp-sellbl{display:inline-flex;align-items:center;gap:3px;font-size:10.5px;color:var(--muted);user-select:none}
.gp-sel{font-size:10.5px;border:1px solid var(--line);border-radius:6px;padding:1px 4px;color:var(--text2);background:var(--chip);cursor:pointer;text-transform:lowercase;font-family:inherit}
.gp-sel:hover{border-color:var(--muted)}.gp-sel:focus{outline:none;border-color:var(--accent);color:var(--accent-text)}
.gp-stage{position:relative;background:var(--well);flex:1 1 auto;min-height:210px}
/* 210px is the STAGE's floor, not the canvas's. The canvas is taken out of flow the same way
   World / Compose / Sculpt pin `canvas#vp` (`position:absolute;inset:0`), because a `<canvas>`
   is a replaced element with a 300×150 intrinsic size: as a flex child it never stretches, and
   `align-items:center` then parks that thumbnail in a large well. The stage still grows with
   the host; the canvas just paints it. */
.gp-cvs{position:absolute;inset:0;width:100%;height:100%;min-height:0;display:block;cursor:grab;touch-action:none}
.gp-cvs:active{cursor:grabbing}
.gp-msg{position:absolute;inset:0;display:none;align-items:center;justify-content:center;text-align:center;padding:16px;color:var(--muted);font-size:12px}
.gp-msg.show{display:flex}
.gp-status{flex:0 0 auto;padding:4px 10px;font-size:10.5px;font-family:Consolas,monospace;color:var(--muted);border-top:1px solid var(--line);display:flex;align-items:center;gap:6px}
.gp-status::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--muted)}
.gp-status.ok{color:var(--ok)}.gp-status.ok::before{background:var(--ok)}
.gp-status.err{color:var(--danger)}.gp-status.err::before{background:var(--danger)}
/* the budget is degrading the effect on purpose — a working state, not a failure,
   so it reads amber rather than danger */
.gp-status.warn{color:var(--warn)}.gp-status.warn::before{background:var(--warn)}
