/* MiStudio 0.5.29 (Maysam, November 23, 2026): rule "AN INTERACTION NEVER MOVES WHAT IS UNDER OR NEAR THE POINTER".
   Shared layout mechanisms (docs/notes/ms_layout_shift_audit_2026-11-23.md): stable slots, tabular counters, one place per
   command across tabs. Loaded last. */

/* live counters: digits of equal width, so a count that changes never shifts its neighbors */
.ct, .x, .gt-foot, .sd-count, .acc-row .t, .acc-row .pct, #selChipText, .rb-ctx small, .gt-top .ct { font-variant-numeric: tabular-nums; }

/* the Geometry tree's top groups: always there; a zero count is quiet, the row keeps its place */
.gt-list .row.gt-top .ct { min-width: 3.5ch; text-align: right; }
.gt-list .row.gt-top.zero .nm, .gt-list .row.gt-top.zero .ct { color: var(--faint); font-weight: 500; }

/* the Inspect group (Measure, Mass) sits at the same place, the right end of the ribbon row, on every tab that has it */
.rb-pane { flex: 1 0 auto; }
.rb-pane > .rb-grp[data-g="inspect"] { margin-left: auto; }

/* the next-step strip: commands in slots of one minimum width, so a command that keeps its slot (ribbon.js stableOrder)
   stays where it was when the commands before it change */
.rb-next > button:not(.ico):not(.x) { min-width: 84px; justify-content: center; }
/* its Close sits at the LEFT end, right after the grip, where the strip's left edge is kept: at the right end it slid with
   every change of the commands' widths */
.rb-next > .g { order: -2; }
.rb-next > .x { order: -1; }

/* the Selection panel under the ribbon (one row): its count has a fixed slot, so the buttons after it never slide when it
   says "nothing picked" / "1 body" / "12 faces" */
.seldock[data-place="top"] .sd-n { display: inline-block; min-width: 15ch; }

/* scrolling panes keep their scrollbar's room: content that grows past the pane's height no longer narrows it by the
   scrollbar's width (the Inspector's sections and buttons slid 15 px sideways on a second pick) */
#props, #tree, .sd-list, .acc-list { scrollbar-gutter: stable; }
