/* Preserve the original device bodies and their matching display cutouts.
 * The shared squircle rule continues to style the website and dashboard content;
 * physical phone corners and notches retain the original rounded geometry.
 * Original radii, bezel padding, dimensions, placement and shadows stay in the
 * component stylesheets. Only the corner shape is restored here.
 */
#bridgefort-bridgeyourterms .bf-terms__phone,
#bridgefort-bridgeyourterms .bf-terms__screen,
#bridgefort-bridgeyourterms .bf-terms__island,
#bridgefort-bridgeyourterms .bf-terms__battery,
#bridgefort-bridgeapp.app-concept .app-concept__phone,
#bridgefort-bridgeapp.app-concept .concept-screen,
#bridgefort-bridgeapp.app-concept .concept-status i {
  corner-shape: round;
}

/* Static Home previews fill the usable screen without the old content padding. */
#bridgefort-bridgeyourterms .bf-terms__screen.bf-dashboard-phone-screen,
#bridgefort-bridgeapp.app-concept .concept-screen.bf-dashboard-phone-screen {
  /* Matches the actual dashboard header's --bf-navigation colour. */
  --bf-preview-chrome: #19316b;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: var(--bf-preview-chrome);
}

#bridgefort-bridgeyourterms .bf-dashboard-phone-screen > .bf-terms__status,
#bridgefort-bridgeapp .bf-dashboard-phone-screen > .concept-status {
  flex: 0 0 auto;
  color: #fff;
}

/* Keep the original status/notch safe insets without adding rails around the dashboard. */
#bridgefort-bridgeyourterms .bf-dashboard-phone-screen > .bf-terms__status {
  margin: 4.4% 4% 8px;
}

#bridgefort-bridgeyourterms .bf-dashboard-phone-screen .bf-terms__battery {
  background: currentColor;
  border-color: currentColor;
}

#bridgefort-bridgeapp .bf-dashboard-phone-screen > .concept-status {
  margin: 10px 13px 8px;
}

#bridgefort-bridgeyourterms .bf-dashboard-phone-viewport,
#bridgefort-bridgeapp .bf-dashboard-phone-viewport {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--bf-preview-chrome);
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

#bridgefort-bridgeyourterms .bf-dashboard-phone-viewport iframe,
#bridgefort-bridgeapp .bf-dashboard-phone-viewport iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  pointer-events: none;
  transform-origin: top left;
}
