
      html, body { margin: 0; padding: 0; height: 100%; overflow: hidden; background: #2c2c2c; }
      /* Inside the safe area at the top and sides (the status bar upright,
         the Dynamic Island on its side); the foot runs under the home
         indicator, whose 21 pt a phone on its side cannot spare (the dock
         keeps above it, `PlayerUi::set_safe_bottom`). */
      canvas#fermata {
        display: block; position: fixed;
        top: env(safe-area-inset-top, 0px);
        left: env(safe-area-inset-left, 0px);
        width: calc(100% - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
        height: calc(100% - env(safe-area-inset-top, 0px));
      }
      label#open-label {
        position: fixed; z-index: 2;
        top: calc(8px + env(safe-area-inset-top, 0px));
        right: calc(12px + env(safe-area-inset-right, 0px));
        font: 13px system-ui, sans-serif; color: #ddd; background: #444; border: 1px solid #666;
        border-radius: 4px; padding: 4px 10px; cursor: pointer;
      }
      input#open { display: none; }
      /* The library's own + / Open… opens the picker (docs/library.md); the
         page's label stays hidden. */
      label#open-label { display: none !important; }
      body.player label#open-label { display: none; }
      /* A piece open: the page's own background, which shows in the
         safe-area insets beside the canvas (landscape's sides), is the
         paper's white (fermataPaper below), so the score reads as one sheet
         to the screen's edges. The library keeps the dark. */
      html.paper, html.paper body { background: #fff; }
      /* Embedded in the landing page (?embed): no Open control. */
      body.embed label#open-label { display: none; }
      /* A finger (a coarse pointer, or ?touch): Open is a 48 px button at the
         foot of the library, within the thumb's reach, not 23 px in the top
         corner. */
      body.touch label#open-label {
        top: auto; right: auto; left: 50%; transform: translateX(-50%);
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        font-size: 16px; line-height: 48px; padding: 0 28px; border-radius: 24px;
        background: #3a5f8f; border-color: #5d82b3; color: #fff;
      }
    