html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  touch-action: pan-x pan-y;
}

#root,
.app-shell,
.contract-layout,
.lead-layout,
.lead-columns,
.panel,
.topbar,
header,
footer {
  min-width: 0;
  max-width: 100%;
}

img,
video,
canvas {
  max-width: 100%;
}

.nav-scroll,
.docx-preview,
[data-horizontal-scroll="true"] {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
}

body.reshape90-module-open {
  overflow: hidden !important;
}

#reshape90-module-host {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  width: 100%;
  height: 100dvh;
  max-width: none;
  overflow: hidden;
  background: var(--reshape90-shell-bg, var(--shell-bg, #fafaf9));
}

#reshape90-module-host[hidden],
.reshape90-module-frame[hidden],
.reshape90-module-loading[hidden] {
  display: none !important;
}

.reshape90-module-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--reshape90-shell-bg, var(--shell-bg, #fafaf9));
}

.reshape90-module-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--reshape90-shell-fg, var(--shell-fg, #1c1917));
  background: var(--reshape90-shell-bg, var(--shell-bg, #fafaf9));
  font: 600 14px/1.4 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.reshape90-module-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 77, 139, 0.25);
  border-top-color: #ff4d8b;
  border-radius: 999px;
  animation: reshape90-spin 0.7s linear infinite;
}

@keyframes reshape90-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
  input,
  select,
  textarea {
    font-size: 16px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reshape90-module-spinner {
    animation-duration: 1.4s;
  }
}

@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}
