/* Shared layout safeguards; individual service and pricing flows stay in place. */
main,.admin-main,.admin-content-shell,.admin-module,.panel,.card,
.admin-field,.customer-modal-form > *, .admin-form-grid > * { min-width:0; }
.customer-history-grid > *, .group-book-shell > *, .group-detail-hero > * { min-width:0; }
.club-hero > *, .lux-feature-a > *, .lux-feature-b > *, .group-book-form > * { min-width:0; }
.lux-ticket > *, .feature-copy > * { min-width:0; max-width:100%; }
.group-category-tabs { flex-wrap:wrap; overflow:visible; }
.group-combo-grid > *, .group-combo-card__head > * { min-width:0; }
.group-combo-card__head { flex-wrap:wrap; }
img,video { max-width:100%; }
input,select,textarea { min-width:0; max-width:100%; }
button,a,input,select,textarea { -webkit-tap-highlight-color:rgba(217,8,10,.18); }
:focus-visible { outline:2px solid #ff7379; outline-offset:3px; }
.table-wrap,.customer-table-wrap,.admin-table-shell {
  max-width:100%; overscroll-behavior-inline:contain;
}
.table-wrap:focus-visible,.customer-table-wrap:focus-visible,.admin-table-shell:focus-visible {
  outline-offset:2px;
}
.customer-modal,.admin-modal { overscroll-behavior:contain; }
.customer-modal__panel,.admin-modal__panel {
  max-height:calc(100dvh - 32px); overscroll-behavior:contain;
}
.customer-modal__close,.admin-modal__close {
  display:grid; place-items:center; min-width:44px; min-height:44px; z-index:2;
}
body.e3-modal-open { overflow:hidden; }
.e3-mobile-nav-toggle { display:none; }
.e3-mobile-nav-toggle svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:2; }
.e3-mobile-nav-toggle .notification-badge { min-width:22px; height:22px; }
.e3-connection-status {
  position:fixed; inset:auto 12px 12px; z-index:110; padding:12px;
  border:1px solid #a1434b; border-radius:12px; color:#fff; background:#291719;
}
.e3-connection-status[hidden] { display:none; }
@media (max-width:760px) {
  .club-hero,.group-book-shell { grid-template-columns:minmax(0,1fr); }
  .club-hero__content { max-width:100%; }
  .luxury-home :is(h1,h2,h3,.lux-label,.club-hero__eyebrow) { overflow-wrap:anywhere; }
  .luxury-home .founding-section-head h2 { white-space:normal; }
  .group-combo-grid { grid-template-columns:minmax(0,1fr); }
  .group-category-tabs a { max-width:100%; overflow-wrap:anywhere; min-height:44px; }
  .topbar > .row:has(.account-nav--customer) {
    flex-direction:row; align-items:center; flex-wrap:wrap;
  }
  .topbar .brand--icon-only { align-self:auto; }
  .e3-ui-ready .e3-mobile-nav-toggle { display:inline-flex; align-items:center; gap:8px; min-height:44px; }
  .e3-ui-ready .account-nav--customer:not(.e3-nav-open) { display:none; }
  .account-nav--customer { flex-basis:100%; min-width:0; }
  .account-nav--customer.e3-nav-open { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .account-nav--customer > :is(a,form),.account-nav--customer .account-notifications { min-width:0; }
  .account-nav--customer > a,.account-nav--customer button { min-height:44px; text-align:center; }
  .account-nav--customer form button { width:100%; }
  .account-nav--customer .account-notifications__toggle { width:100%; justify-content:center; }
  .account-nav--customer .account-notifications__menu { left:0; right:0; width:100%; }
  .admin-page-head,.admin-module,.admin-hero { overflow-wrap:anywhere; }
  .admin-page-head > *, .admin-detail-card,.admin-booking-card > * { min-width:0; }
  .admin-action-group,.admin-page-actions,.admin-form-actions { max-width:100%; }
  .admin-action-group > *, .admin-page-actions > a { max-width:100%; }
  .admin-action-link,.admin-secondary-btn,.admin-primary-btn { min-height:44px; letter-spacing:.1em; }
  .customer-table { min-width:640px; table-layout:auto; }
  .admin-table-shell:not(:has(~ .admin-booking-cards)):not(:has(~ .admin-interest-cards)) {
    display:block;
  }
  .customer-modal,.admin-modal { padding:8px; }
  .customer-modal .customer-modal__panel,.admin-modal .admin-modal__panel {
    width:100%; max-width:100%; max-height:calc(100dvh - 16px);
    padding:20px 14px; border-radius:16px;
  }
  .customer-modal__panel > h3 { padding-right:40px; }
  .customer-modal .ps5-booking-layout,.customer-modal .premium-booking-layout {
    grid-template-columns:minmax(0,1fr);
  }
  .customer-modal .premium-booking-summary,.customer-modal .ps5-summary {
    position:static; min-width:0;
  }
  .customer-modal .ps5-station-grid,.customer-modal .console-station-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .customer-modal :is(.ps5-slot-grid,.ps5-date-grid) { min-width:0; }
  .customer-modal :is(button,input,select),.admin-form-grid :is(input,select) { min-height:44px; }
  .customer-modal :is(button,input,select),.admin-form-grid :is(input,select,textarea) { max-width:100%; }
  .customer-modal :is(input,select,textarea),.admin-field :is(input,select,textarea),
  .auth-premium-form :is(input,select),.form-card :is(input,select,textarea) { font-size:16px; }
  .e3-calendar__toolbar > *, .e3-calendar__actions { min-width:0; max-width:100%; }
  .e3-calendar__event > div { min-width:0; }
  .e3-calendar__event { overflow-wrap:anywhere; }
}
@media(max-width:430px) {
  .admin-home-grid--minimal,.service-grid,.customer-hub-grid { grid-template-columns:minmax(0,1fr); }
  .customer-modal :is(.ps5-slot-grid,.ps5-slot-grid--compact) { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .admin-topbar { gap:14px; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { animation-duration:.01ms !important; animation-delay:0ms !important; transition-duration:.01ms !important; }
}
