/* ============================================================================
   shared/viewport-bar.css — the VIEWPORT'S OWN CONTROL BAR (`.vp-top`).

   The strip across the top of a 3D viewport: a hint line that elides, then a row of
   labelled controls — projection · gizmo · pivot · overlay — and whatever action the
   surface pins to the end (⤢ Frame).

   EXTRACTED, NOT INVENTED. World, Compose and Sculpt each carried their own copy, and by
   the time a fourth surface wanted one (the Rig viewport) the three had already drifted:
   `gap` was 8px in two and 10px in the third, only two wrapped, and `margin-left:auto`
   sat on `.ctl` in one and on `.btn` in another — so the same bar pushed its controls to
   opposite ends depending on which screen you were looking at. Each copy was individually
   fine, which is exactly why nobody noticed (`theme-and-component-library.md` §4: the
   test is cross-surface identity, not per-surface plausibility).

   WHAT IS SHARED is the bar's chrome and the shape of a labelled control. WHAT STAYS WITH
   THE HOST is which item takes the slack — that is a layout decision about a particular
   bar's contents, and forcing one answer would be the opposite mistake.
   ========================================================================== */
.vp-top { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; padding: 5px 10px;
  border-bottom: 1px solid var(--line); background: var(--panel);
  font-size: 11px; align-items: center; color: var(--muted); }

/* a labelled control: the muted lowercase word, then the shared `.selin` atom. One
   treatment for every member of the set (`design-pattern-consistency.md`) — the label is
   always a word, never an icon, and never absent. */
.vp-top .ctl { display: flex; align-items: center; gap: 5px; flex: 0 0 auto; }
.vp-top .ctl > span { color: var(--muted); }
.vp-top .selin { height: 24px; font-size: 11.5px; }
.vp-top .btn { flex: 0 0 auto; }

/* The hint line takes the slack and ELIDES; without `min-width:0` a flex item refuses to
   shrink below its content, which folds a long sentence into a one-word column beside the
   controls. */
.vp-top > span:first-child { flex: 1 1 auto; min-width: 0; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
