/* Present viewer (/present/view/) — phone toolbar readability (2026-10-26, visual QA Phase 3).
   Loaded only by view/index.html, after styles.css. A separate file because styles.css is
   over the 1000-line cap and also feeds the editor, which is not part of this change.

   Measured on a 390px phone (fixture render of main 33470f538): the bar is one row with
   the back arrow, the deck title and six icon buttons. The buttons are flex-shrink:0, so
   the title is what gives way: "Shared Mindmap" was cut to "S...". Under 480px the bar now
   takes two rows - back + title on the first (the whole width, so the title can be read),
   the six actions spread across the second - and --present-viewer-bar-h, which positions
   the stage below the bar, grows to match so nothing slides under it.

   No markup, no script, no change to which controls exist. */

@media (max-width: 480px) {
  :root {
    /* two 36px rows + the bar's 2 x 8px padding + its border */
    --present-viewer-bar-h: 90px;
  }
  #viewerToolbar > div {
    flex-wrap: wrap;
    row-gap: 0;
  }
  #viewerToolbar > div > div:first-child {
    flex: 1 1 100%;
  }
  #viewerToolbar > div > div:last-child {
    flex: 1 1 100%;
    justify-content: space-between;
  }
}

@media (max-width: 480px) and (pointer: coarse) {
  :root {
    /* the 44px touch floor (styles.css) on both rows */
    --present-viewer-bar-h: 106px;
  }
}
