/* The screen is moved by `swipe.js` while a finger holds it. `clip` rather
   than `hidden`: a screen pushed half off the glass must not give the page a
   sideways scroll, and `hidden` would make the body a scroll container. */
html,body{overflow-x:clip}

/* A long press on a control is a press, not a selection — Ofir held "סגור" in
   the chat on 21.10 and got the text-editing handles around the word. The
   shell turns selection off app-wide from build 18; this does it for the
   controls on every build and in a browser too, and leaves text and fields
   selectable there. */
button,.chip,.btn,nav,summary,label.chip{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
/* …and now ordinary text too (Ofir and Idan, 22.10: a long press on a line of
   text still brought up Copy and Look Up). An app reads as an app when its
   words are not a document; what is typed into stays selectable, and so does the
   invitation with its code, which people do copy. */
body{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
input,textarea,[contenteditable],.selectable,.invite-draft{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}

/* The next screen, drawn beside the one under the finger (see `peekFor`). It
   takes the box #main has at that moment and never takes a touch. */
main.peek{position:fixed;margin:0;overflow:hidden;pointer-events:none;z-index:1}
