/* FlowXperience Anti-Squeeze Responsive SVG Integration Kit (flowx-svg-embed.css) */
.fx-svg-stage {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  background: #ffffff;
  border: 1.5px solid rgba(123, 113, 101, 0.25);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px -20px rgba(44, 42, 43, 0.12);
}

.fx-svg-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 16px;
  background: #f3f3ef;
  border-bottom: 1px solid rgba(123, 113, 101, 0.25);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #2c2a2b;
}

/* Horizontal pan-scroll on small screens so words & numbers NEVER squeeze below legible size */
.fx-svg-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 16px;
  background: #fbfbf9;
}

.fx-svg-diagram {
  display: block;
  width: 100%;
  min-width: 1040px; /* Guarantees crisp, unsqueezed typography on mobile & split-screen viewports */
  max-width: 1680px;
  margin: 0 auto;
  height: auto !important;
  object-fit: contain !important;
  border-radius: 14px;
  transition: width 0.2s ease, min-width 0.2s ease;
}

.fx-svg-diagram.fx-scale-native {
  width: 1680px !important;
  min-width: 1680px !important;
  max-width: none !important;
}

/* For compact 16:9 hero thumbnails, use flowx-00-hero-compact-stack.svg with contain */
.fx-svg-hero-compact {
  display: block;
  width: 100%;
  height: auto !important;
  aspect-ratio: 16 / 9;
  object-fit: contain !important;
  background: #fbfbf9;
}
