/* MiStudio 0.5.33: the smart contextual-tab switch and the next-step strip under the pointer
   (research docs/research/MiStudio UI motion and layout stability.md, C1 and L1) */

/* C1 cue on an AUTOMATIC switch (Smart): the tab underline grows in and the command row cross-fades in ~150 ms. Nothing slides:
   buttons appear in their final place, only their opacity changes. Reduced motion: no cue at all. */
@keyframes rbcuefade { from { opacity: .25; } to { opacity: 1; } }
@keyframes rbcueline { from { border-bottom-color: transparent; } }
#rbRow.rb-cue [data-pane]:not([hidden]) { animation: rbcuefade 150ms ease-out; }
#rbTabs.rb-cue .rb-tab.on { animation: rbcueline 150ms ease-out; }
@media (prefers-reduced-motion: reduce) {
  #rbRow.rb-cue [data-pane]:not([hidden]), #rbTabs.rb-cue .rb-tab.on { animation: none; }
}

/* L1: a strip that appears UNDER the pointer is faded and lets clicks through until the pointer has left it once */
.rb-next.under { opacity: .35; pointer-events: none; }
.rb-next.under * { pointer-events: none; }

/* Settings > Ribbon: the three-way choice */
.st-ctxmode { display: inline-flex; gap: 0; border: 1px solid var(--line2); border-radius: 7px; overflow: hidden; margin-left: 6px; vertical-align: middle; }
.st-ctxmode label { padding: 2px 10px; cursor: default; display: inline-flex; align-items: center; gap: 4px; }
.st-ctxmode label + label { border-left: 1px solid var(--line2); }
.st-ctxmode input { margin: 0; }
/* C13 (found by the 0.5.33 audit: hiding a body marked the model unsaved and the title row's Undo / Redo / model tab slid 19 px):
   the Save button's unsaved dot has its slot ALWAYS (transparent when saved) and the unsaved look no longer goes bold
   (bold text is wider); the color and the dot say it */
#bSave::after { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-left: 6px; vertical-align: 1px; background: transparent; }
#bSave.unsaved { font-weight: inherit; }

#stRbCtx { display: block; line-height: 1.5; }
#stRbCtx .st-ctxmode { white-space: nowrap; }
#stRbCtx .as-note { margin-top: 4px; }
