/* Default console UI; choosing normal mode restores native browser gestures. */
html[data-ct-click-only], html[data-ct-click-only] body {
  overflow: hidden !important;
  overscroll-behavior: none;
}
html[data-ct-click-only] body { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
html[data-ct-click-only][data-ct-console-controls] body { padding-bottom: calc(132px + env(safe-area-inset-bottom, 0px)); }
html[data-ct-click-only][data-ct-console-controls] { scroll-padding-bottom:calc(132px + env(safe-area-inset-bottom,0px)); }
html[data-ct-click-only][data-ct-console-controls] :is([data-ct-zone-back], [data-ct-touch-pad]) { display:none !important; }
html[data-ct-click-only], html[data-ct-click-only] * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: none;
  scrollbar-width: none;
  scroll-behavior: auto !important;
}
html[data-ct-click-only] *::-webkit-scrollbar { display: none; }
html[data-ct-click-only] img, html[data-ct-click-only] a { -webkit-user-drag: none; }
html[data-ct-click-only] :is(input, textarea, select, [contenteditable="true"], [contenteditable=""]) {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
  font-size: max(16px, 1em);
}
html[data-ct-click-only] [contenteditable] * { -webkit-user-select: text; user-select: text; }
html[data-ct-click-only] textarea { resize: none; }
html[data-ct-click-only] :is(canvas, iframe, video, audio, [data-ct-allow-gestures]) { touch-action: auto; }
.ct-click-nav {
  position: fixed;
  z-index: 2147483646;
  bottom: max(12px, env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, 44px) auto;
  gap: 5px;
  max-width: calc(100vw - 16px);
  padding: 7px;
  border: 1px solid #80d9ff;
  border-radius: 18px;
  background: #111b34;
  box-shadow: 0 4px 22px #0009;
  color: #f5faff;
  font: 700 15px/1.2 system-ui, sans-serif;
}
.ct-click-nav[hidden] { display: none !important; }
.ct-click-nav--console { grid-template-columns:repeat(4,44px); }
.ct-click-nav__commands { display:grid; grid-column:1 / -1; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; }
.ct-click-nav__commands[hidden] { display:none !important; }
.ct-click-nav .ct-click-nav__commands button { font-size:14px; }
.ct-click-nav button {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 8px;
  border: 1px solid #89c8f0;
  border-radius: 11px;
  background: #213756;
  color: #fff;
  font: inherit;
  font-size: 23px;
  cursor: pointer;
}
.ct-click-nav .ct-click-nav__exit { background: #a4e7ff; color: #112441; font-size: 14px; }
.ct-click-nav button:disabled { opacity: .35; cursor: default; }
.ct-click-nav button:focus-visible { outline: 3px solid #ffe18a; outline-offset: 2px; }
.ct-click-nav.ct-click-nav--dialog {
  position: sticky;
  inset: 0 auto auto;
  transform: none;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 12px;
}
