/* The keyboard overlays the existing layout; it does not resize the app shell. */
:root[data-smcp-keyboard-overlay] {
  --admin-viewport-height: var(--smcp-resting-root-height) !important;
}
html[data-smcp-keyboard-overlay],
html[data-smcp-keyboard-overlay] body,
html[data-smcp-keyboard-overlay] #root {
  height: var(--smcp-resting-root-height) !important;
  min-height: 0 !important;
}
html[data-smcp-keyboard-overlay] .pin-monitor-shell {
  max-height: var(--smcp-resting-root-height) !important;
}

/* The fullscreen Pin iframe paints the safe area; its scroller owns the inset. */
.pin-monitor-shell[data-pin-fill-bottom] { padding-bottom: 0 !important; }
.pin-monitor-shell[data-pin-fill-bottom]::after {
  content: ""; position: absolute; visibility: hidden; pointer-events: none;
  height: var(--pin-safe-bottom, env(safe-area-inset-bottom, 0px));
}
