/* Media (2 November 2026): the top bar's Media button and its sheet. css for js/ux/media-sheet.js. Self-contained: the button's rules hang on #tally > .md-btn, the sheet's on
   #sheet.md-sheet, so nothing else is touched. Colours, radii and type read the system's tokens (the fallbacks are the same values, so ?r13=0 looks the same).
   Calm motion only: opacity and width on the quint-out curve, no overshoot, no scale; under reduced motion the width does not animate and only the fade stays. */

/* ---------- the button: a fourth glyph on the toolbar platter, the leftmost, so Shortlist, Compare and Quick answers never move when it appears ----------
   Same 44px target and plain-glyph skin as its neighbours (css/ux/chrome.css, css/ux/mf-chrome.css: a round highlight inset 4px behind the glyph, drawn by their ::after).
   Where there is nothing to open it is .md-off: zero width, transparent, visibility hidden (out of the tab order and the accessibility tree), and it eases in and out. */
body #ui > #tally > .md-btn { width: var(--ch-h, 44px); padding: 0; justify-content: center; transition: width 200ms var(--mf-ease-out, cubic-bezier(.22, 1, .36, 1)), min-width 200ms var(--mf-ease-out, cubic-bezier(.22, 1, .36, 1)), opacity 180ms var(--mc-ease-fade, cubic-bezier(.4, 0, .6, 1)), visibility 0s linear 0s; }
body #ui > #tally > .md-btn svg { width: 1.2rem; height: 1.2rem; flex: none; }   /* the stroke weight is the toolbar's own (css/ux/mf-base.css), the same as its neighbours */
body #ui > #tally > .md-btn.md-off { width: 0; min-width: 0; opacity: 0; visibility: hidden; pointer-events: none; overflow: hidden; transition: width 200ms var(--mf-ease-out, cubic-bezier(.22, 1, .36, 1)), min-width 200ms var(--mf-ease-out, cubic-bezier(.22, 1, .36, 1)), opacity 160ms var(--mc-ease-fade, cubic-bezier(.4, 0, .6, 1)), visibility 0s linear 200ms; }
@media (prefers-reduced-motion: reduce) {
  body #ui > #tally > .md-btn, body #ui > #tally > .md-btn.md-off { transition: opacity 120ms var(--mc-ease-fade, cubic-bezier(.4, 0, .6, 1)), visibility 0s linear 120ms; }
  body #ui > #tally > .md-btn:not(.md-off) { transition: opacity 120ms var(--mc-ease-fade, cubic-bezier(.4, 0, .6, 1)), visibility 0s linear 0s; }
}
