
/* iPad and other touch tablets: the page behind the app can never scroll or bounce. Safari scrolls an overflow:hidden page to follow the caret
   while you type or press Backspace, and that made the whole app jump. Fixed to the screen, there is nothing for it to scroll. */
@media (hover: none) and (pointer: coarse) {
  html:not(.ph):not(.desk-tb) { overscroll-behavior: none; }
  html:not(.ph):not(.desk-tb) body { position: fixed; top: 0; left: 0; right: 0; width: 100%; overscroll-behavior: none; }
  html:not(.ph):not(.desk-tb) body.tb-kb .app { height: var(--vvh, 100dvh); }
}
/* the chat box sits inside the rounded composer: a visible focus ring goes around the composer, never a square inside it */
body.gx-focus #chat-input:focus-visible { outline: none !important; }
body.gx-focus .composer:focus-within { box-shadow: 0 0 0 2px var(--accent); }
:root.ui-glass body.gx-focus .composer:focus-within { box-shadow: var(--g-rim), var(--g-drop), 0 0 0 2px var(--accent); }
