/* cubes.css // the cubes page's own additions. Loads after instrument.css. */
/* A phone in full window has room for one short row: play, save, controls, exit.
   The save button's accessible name stays "save PNG" (aria-label). */
.cubes-short { display: none; }
@media (max-width: 699px) {
  .inst[data-expanded="true"] .cubes-long { display: none; }
  .inst[data-expanded="true"] .cubes-short { display: inline; }
}
/* There the status line, clear and undo are hidden. So while the picture is full, play cannot start it,
   and clear takes play's place. While a clear can be undone, undo shows beside save, and to make room
   controls shows only its indicator (its name stays "controls", from aria-label). */
@media (max-width: 699px) {
  .inst[data-expanded="true"][data-full="true"] #play { display: none; }
  .inst[data-expanded="true"][data-full="true"] #clear.inst-wide-only { display: inline-flex !important; }
  .inst[data-expanded="true"][data-undo="true"] #undo.inst-wide-only { display: inline-flex !important; }
  .inst[data-expanded="true"][data-undo="true"] #panel-toggle .surface-disclosure-label { display: none; }
  .inst[data-expanded="true"][data-undo="true"] #panel-toggle { min-width: 44px; justify-content: center; }
}
/* Below 360 px the same row keeps to one line with tighter spacing. */
@media (max-width: 359px) {
  .inst[data-expanded="true"] .inst-bar {
    padding-left: max(var(--space-2), env(safe-area-inset-left));
    padding-right: max(var(--space-2), env(safe-area-inset-right));
  }
  .inst[data-expanded="true"] .inst-bar-actions { gap: var(--space-1); }
}
.cubes-nowrap { white-space: nowrap; }
