/* Salonah cross-screen safeguards — additive and intentionally low-specificity. */
html { -webkit-text-size-adjust: 100%; }
body { min-width: 0; overflow-x: hidden; }
img, video, canvas, svg { max-width: 100%; height: auto; }
input, select, textarea, button { max-width: 100%; }
[data-radix-popper-content-wrapper] { max-width: calc(100vw - 16px) !important; }
[role="dialog"] { max-width: min(96vw, 760px) !important; max-height: min(92dvh, 920px) !important; overflow: auto !important; }
table { max-width: 100%; }
.salonah-scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 640px) {
  [role="dialog"] { width: calc(100vw - 20px) !important; padding: 16px !important; }
  .fixed.inset-0 > [role="dialog"] { margin: 10px !important; }
  input, select, textarea { font-size: 16px !important; }
}
.container, main, section, article, header, footer, nav { min-width: 0; }
.flex > *, .grid > * { min-width: 0; }
.break-words { overflow-wrap: anywhere; }
@media (max-width: 768px) {
  table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  pre, code { white-space: pre-wrap; overflow-wrap: anywhere; }
}
