/* Client overrides; upstream layouts and desktop controls stay intact. */
:root { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
body { -webkit-text-size-adjust: 100%; }
:focus-visible { outline-offset: 3px; }
@media (max-width: 767px) {
  input:not([type="checkbox"]):not([type="radio"]), textarea, select,
  [contenteditable="true"] { font-size: 16px !important; }
  input:not([type="checkbox"]):not([type="radio"]), select { min-height: 44px; }
  main .grid, main .grid > * { min-width: 0; }
  main pre { max-width: 100%; overflow-x: auto; }
  main h1, main h2, main h3, main p { overflow-wrap: anywhere; }
  [data-slot="button"], [data-slot="input"], [data-slot="select-trigger"],
  button[type="submit"] { min-height: 44px; }
  [data-slot="dialog-content"], [role="dialog"] { max-width: calc(100vw - 24px); }
  [data-slot="dialog-content"] { max-height: calc(100dvh - 32px); overflow-y: auto; }
  [data-slot="table-container"] { max-width: 100%; overflow-x: auto; }
  #chat-input { font-size: 16px !important; }
  #loading-container { height: 100dvh !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
