/* THE IDE'S OWN APP ON A TABLET (owner, 29 Nov 2026, from the Play app on a
 * Galaxy tablet: "it does not have updates we did").
 *
 * app-mode-start.js marks the app's page data-app="native" (iPhone, iPad and
 * Android). In the app the top bar has a Remote button that the website's
 * has not, and a tablet that keeps the desktop's rules (an iPad, or an
 * Android tablet taller than 600; phone.css has the smaller ones) ran out of
 * room in a project. Measured with the Remote button shown:
 *   - 1133 by 744, an iPad mini on its side: the buttons 34px over each
 *     other, the PERSONAL badge on Coach and the project's name gone;
 *   - 1152 by 648, a Galaxy Tab S9 FE: 16px over;
 *   - 1180 by 820, an iPad Air: nothing over, but the name 10px wide.
 *
 * So the app's bar does what the phone's does (phone.css), where it needs to:
 *   - no edition badge, on any screen (owner, 28 Nov 2026, on the phone: "the
 *     personal at the top, let's take it off"); About says which edition
 *     this is;
 *   - under 1280 wide, Remote, Sign in and Coach are their pictures, their
 *     names still read out and in their tooltips.
 * The website and the desktop app have no data-app and are unchanged. */

:root[data-app="native"] .topbar #edition-badge { display: none; }

@media (max-width: 1279px) {
  :root[data-app="native"] .topbar #use-as-remote,
  :root[data-app="native"] .topbar #profile-menu-button,
  :root[data-app="native"] .topbar #open-coach {
    gap: 0;
    width: 36px;
    padding-inline: 0;
    justify-content: center;
  }
  /* Clipped, not removed, so a screen reader still says them. */
  :root[data-app="native"] .topbar #use-as-remote > span,
  :root[data-app="native"] .topbar #profile-btn-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }
  /* Coach's word is a bare text node beside its picture. */
  :root[data-app="native"] .topbar #open-coach { font-size: 0; }
  :root[data-app="native"] .topbar #open-coach svg { width: 16px; height: 16px; }
}
