/* Shared public-web containment rules. Keep overflow fixes at section boundaries. */
html, body { overflow-x: clip; }

@media (max-width: 767px) {
  .hero-heading { font-size: clamp(2.4rem, 10vw, 4rem) !important; letter-spacing: -0.045em !important; }
  .hero-dashboard-card { aspect-ratio: 1 / 1 !important; }
  .hero-dashboard-overlay { padding: 16px !important; }
  .hero-dashboard-stat { padding-block: 24px !important; }
}
@media (max-width: 767px) {
  main .grid { grid-template-columns: minmax(0, 1fr) !important; }
  main [class*="min-w-"] { min-width: 0 !important; max-width: 100%; }
  main .flex { min-width: 0; }
}


.public-select { position: relative; width: 100%; z-index: 20; }
.public-select-native { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
.public-select-trigger { display: flex; min-height: 48px; width: 100%; align-items: center; justify-content: space-between; gap: 12px; border: 2px solid rgb(226 232 240); border-radius: 1rem; background: #fff; padding: 12px 16px; color: rgb(15 23 42); font-size: .875rem; font-weight: 600; text-align: left; }
.public-select-trigger:focus-visible { outline: 2px solid #135bec; outline-offset: 2px; }
.public-select-chevron { font-size: 20px; color: rgb(100 116 139); }
.public-select-list { position: absolute; top: calc(100% + 6px); left: 0; width: 100%; max-height: 240px; overflow-y: auto; border: 1px solid rgb(203 213 225); border-radius: 1rem; background: #fff; padding: 6px; box-shadow: 0 18px 42px rgba(15,23,42,.16); }
.public-select-option { display: block; min-height: 44px; width: 100%; border-radius: .75rem; padding: 10px 12px; color: rgb(51 65 85); font-size: .875rem; font-weight: 600; text-align: left; }
.public-select-option:hover, .public-select-option[aria-selected="true"] { background: rgb(239 246 255); color: #135bec; }
.public-select-list[hidden] { display: none; }

#builder-lab,
#builder-shell,
#builder-shell .builder-surface,
#builder-shell .builder-panel { min-width: 0 !important; max-width: 100% !important; }

#builder-shell .builder-surface > .grid {
  grid-template-columns: minmax(0, 0.74fr) minmax(0, 1.26fr) !important;
}

@media (min-width: 768px) and (max-width: 1100px) {
  header { overflow-x: clip; }
  header .premium-services-menu {
    position: fixed !important;
    top: 56px !important;
    left: 16px !important;
    right: 16px !important;
    width: auto !important;
    max-width: none !important;
    transform: none !important;
  }
  header .premium-services-menu > div { box-shadow: none !important; }
}
