/* LAUNCH_FIX2B: extend the standalone canvas to the physical iPhone edge. */
@media (max-width:599px) {
  #blueink-r11[data-pwa-standalone].preview-shell,
  #blueink-r11[data-pwa-standalone] .app,
  #blueink-r11[data-pwa-standalone] .screen {
    height:calc(100dvh + var(--pwa-bleed,0px));
  }
}

/* The app canvas now owns the bleed. Controls measure only from its physical edge. */
#blueink-r11[data-pwa-standalone] .bottom-nav {
  bottom:calc(env(safe-area-inset-bottom,0px) + 8px);
}

#blueink-r11[data-pwa-standalone] .content.nonav {
  padding-bottom:calc(24px + env(safe-area-inset-bottom,0px));
}

#blueink-r11[data-pwa-standalone] .r12-composer {
  margin-bottom:calc(8px + env(safe-area-inset-bottom,0px));
}

#blueink-r11[data-pwa-standalone] .r12-composer::after {
  content:"";
  position:absolute;
  z-index:0;
  top:100%;
  right:-12px;
  left:-12px;
  height:calc(8px + env(safe-area-inset-bottom,0px));
  background:var(--bg);
  pointer-events:none;
}

/* Fixed layers escape the extended app box, so carry their own physical-edge bleed. */
#blueink-r11[data-pwa-standalone] .sheet-backdrop,
#blueink-r11[data-pwa-standalone] .b7-sheet-backdrop,
#blueink-r11[data-pwa-standalone] .daily-call-host .daily-call-overlay,
#blueink-r11[data-pwa-standalone] .daily-call-host .incall,
#blueink-r11[data-pwa-standalone] .daily-call-host .daily-call-history {
  bottom:calc(-1 * (var(--pwa-bleed,0px) + env(safe-area-inset-bottom,0px)));
}

#blueink-r11[data-pwa-standalone] .calendar-sheet,
#blueink-r11[data-pwa-standalone] .b7-detail-sheet {
  bottom:calc(-1 * (var(--pwa-bleed,0px) + env(safe-area-inset-bottom,0px)));
}

#blueink-r11[data-pwa-standalone] .daily-call-host .daily-call-stage,
#blueink-r11[data-pwa-standalone] .daily-call-host .incall-card {
  min-height:calc(100dvh + var(--pwa-bleed,0px) + env(safe-area-inset-bottom,0px));
}
