/* The iPhone frame around the prototype on a computer. On a phone-sized window the app fills the
 * screen instead and the real status bar takes over. Device chrome only, not product UI. */

.stage { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s200); padding: var(--s300); }
/* On a computer the website header and nav (site-shell.css) sit above the phone, and the stage
 * takes the rest of the window. */
body { display: flex; flex-direction: column; }
body > .stage { flex: 1 0 auto; min-height: 0; }
/* index.html?app: the prototype alone, without the website header and nav. */
.app-only body > .site-header, .app-only body > .site-nav { display: none; }
.stage-caption { max-width: 560px; text-align: center; color: var(--muted); display: flex; flex-direction: column; gap: var(--s50); }
.stage-caption kbd { font: inherit; font-weight: 700; color: var(--text-body); }

/* JS sets --scale so the whole phone fits the window. */
.device-wrap { width: calc((var(--ar-device-width) + var(--ar-device-bezel) * 2) * var(--scale, 1)); height: calc((var(--ar-device-height) + var(--ar-device-bezel) * 2) * var(--scale, 1)); flex: none; }
.bezel { width: calc(var(--ar-device-width) + var(--ar-device-bezel) * 2); padding: var(--ar-device-bezel); background: var(--icon-decorative); border-radius: calc(var(--ar-device-radius) + var(--ar-device-bezel)); box-shadow: var(--shadow-medium); transform: scale(var(--scale, 1)); transform-origin: 0 0; }
.device { position: relative; width: var(--ar-device-width); height: var(--ar-device-height); border-radius: var(--ar-device-radius); overflow: hidden; background: var(--white-0); isolation: isolate;
  --status-h: 54px;
  --tabbar-bottom: var(--s300);
}

.statusbar { position: absolute; top: 0; left: 0; right: 0; height: 54px; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--s400) 0 calc(var(--s400) + var(--s200)); pointer-events: none; color: var(--text-body); }
.device.has-sheet .statusbar { color: var(--white-0); }
.sb-time { font-weight: 700; font-size: 17px; width: 54px; text-align: center; font-family: -apple-system, system-ui, var(--sds-global-typography-font-family-mayo-clinic-sans); }
.sb-island { position: absolute; left: 50%; top: 11px; width: 126px; height: 37px; margin-left: -63px; border-radius: var(--r300); background: var(--icon-decorative); }
.sb-icons { display: flex; align-items: center; gap: var(--s50); }
.sb-icons svg { display: block; fill: currentColor; }
.home-indicator { position: absolute; left: 50%; bottom: var(--s100); width: 134px; height: 5px; margin-left: -67px; border-radius: var(--r300); background: var(--text-body); z-index: 50; pointer-events: none; }
.device.has-sheet .home-indicator { background: var(--white-0); }

/* Phone-sized window: full screen, the browser and the phone provide the chrome. */
@media (max-width: 520px) {
  .stage { padding: 0; gap: 0; justify-content: flex-start; }
  .stage-caption, .statusbar, .home-indicator, body > .site-header, body > .site-nav { display: none; }
  .device-wrap { width: 100vw; height: 100dvh; }
  .bezel { width: 100vw; height: 100dvh; padding: 0; border-radius: 0; box-shadow: none; transform: none; }
  .device { width: 100vw; height: 100dvh; border-radius: 0;
    --status-h: env(safe-area-inset-top, 0px);
    --tabbar-bottom: max(var(--s150), env(safe-area-inset-bottom, 0px));
  }
}

body.is-dragging, body.is-dragging * { cursor: grabbing !important; }
