/* Upcoming cards only: retain the established button design and group navigation. */
#upcoming .event-actions { margin-top:8px; }
#upcoming .event-primary-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
#upcoming .event-primary-actions .button,
#upcoming .event-prep-space {
  display:inline-flex; align-items:center; justify-content:center;
  width:auto; max-width:100%; min-height:44px;
  margin:0; padding:10px 16px; font-size:13px;
  font-weight:950; text-align:center; line-height:1.4;
}
/* Reserve only the pending action's footprint. No visible or focusable loading button. */
#upcoming .event-prep-space { visibility:hidden; }
#upcoming [data-event-prep-slot][hidden] { display:none; }
#upcoming .event-contact-action { margin-top:4px; min-height:44px; }
/* Existing broad mobile font-weight rules must not enlarge this navigation group. */
#upcoming .event-primary-actions > div { min-width:0; max-width:100%; }
#upcoming .event-primary-actions a { font-size:13px !important; line-height:1.4 !important; max-width:100%; }

/* Only upcoming-event listings escape the lobby's accumulated mobile gutters. */
@media (max-width:600px) {
  #app > .shell:has(> #upcoming) { overflow:visible !important; }
  #upcoming {
    padding-inline:0 !important;
    width:calc(100vw - 36px) !important;
    margin-inline:calc(50% - 50vw + 18px);
  }
  #upcoming .upcoming-events-grid { padding-inline:0 !important; }
}
