/* v139 mobile-first stability layer. Desktop is intentionally untouched. */
@media (max-width:900px){
  html,body{max-width:100%;overflow-x:hidden} body{font-size:16px;-webkit-text-size-adjust:100%}
  *,*::before,*::after{box-sizing:border-box} img,svg,video,canvas{max-width:100%;height:auto}
  .container{width:100%!important;max-width:none!important;padding-left:18px!important;padding-right:18px!important}
  input,select,textarea,button{font-size:16px!important} input,select,textarea{min-height:50px} textarea{line-height:1.45}
  .btn-3d,.btn-glass,.portal-primary,.portal-ghost,.portal-mini-btn,.table-btn,.payment-card-link,.registration-submit{min-height:50px!important;padding:13px 18px!important;font-size:14px!important;line-height:1.2!important;white-space:normal!important;text-align:center;justify-content:center}
  .site-header{position:relative!important}.header-inner{min-height:76px!important;padding-top:10px!important;padding-bottom:10px!important;gap:10px!important}
  .brand{min-width:0;max-width:calc(100% - 58px)}.brand-mark{width:46px!important;height:54px!important;flex:0 0 auto}.brand-copy{min-width:0}.brand-copy strong{font-size:20px!important;line-height:1!important}.brand-copy span{font-size:8px!important;white-space:normal!important;line-height:1.25!important}
  .menu-toggle{display:grid!important;place-items:center;width:48px!important;height:48px!important;min-width:48px;border-radius:14px;font-size:24px!important}
  .main-nav{max-height:calc(100dvh - 88px);overflow:auto!important}.main-nav a{font-size:15px!important;padding:13px 14px!important;min-height:46px;display:flex;align-items:center}
  .global-back-btn,.fixed-question-btn{font-size:12px!important;min-height:44px!important;padding:10px 14px!important}
  h1,.page-hero h1,.event-hero-copy h1,.payment-hero h1{overflow-wrap:anywhere}.section-heading h2,.legal-shell h1{overflow-wrap:anywhere}
  .hero,.page-hero,.event-hero{padding-top:96px!important;min-height:auto!important}.hero-grid,.page-hero-grid,.event-hero-grid,.registration-grid,.contact-panel,.two-col,.statement{grid-template-columns:1fr!important;gap:28px!important}
  .hero h1,.page-hero h1,.event-hero-copy h1{font-size:clamp(44px,13vw,68px)!important;line-height:.92!important}.section-heading h2{font-size:clamp(38px,10vw,56px)!important;line-height:.98!important}
  .hero-actions,.contact-actions,.admin-head-buttons,.admin-panel-actions{flex-wrap:wrap}.hero-actions>*{width:100%!important}
  .event-poster-placeholder{width:100%!important;max-width:520px;margin-inline:auto}.event-hero-tags{gap:8px!important}.event-hero-tags span{font-size:11px!important}
  .ticket-type-grid,.payment-category-grid,.payment-offer-grid,.generic-ticket-grid,.event-quickfacts-grid,.feature-grid,.product-grid,.review-grid,.stats{grid-template-columns:1fr!important}
  .ticket-type-card,.payment-category-card,.generic-ticket-card,.event-info-card{min-width:0!important;width:100%!important}
  .form-grid,.auth118-pair,.admin-form-grid{grid-template-columns:1fr!important}.form-grid>*,.admin-form-grid>*{min-width:0!important}.admin-form-grid .wide{grid-column:auto!important}
  .registration-form,.legal-card{padding:22px!important;border-radius:22px!important}.registration-copy{position:static!important}.promo-entry-row{grid-template-columns:1fr!important;gap:10px!important}.promo-entry-row .btn-glass{width:100%!important}
  .check-row{align-items:flex-start!important;gap:12px!important;font-size:14px!important}.check-row input{width:22px!important;height:22px!important;min-height:22px!important;flex:0 0 22px;margin-top:1px}
  .registration-source-field select,.registration-source-field input{width:100%}.discovery-source-other[hidden]{display:none!important}
  .footer-grid{grid-template-columns:1fr!important;gap:28px!important}.footer-links{grid-template-columns:1fr 1fr!important}.footer-bottom{flex-direction:column!important;align-items:flex-start!important}
  .scroll-nav-host{display:none!important}
  /* Account */
  .portal-shell,.portal-wrap,.portal-main,.portal-card{width:100%!important;max-width:none!important}.portal-shell{padding:16px!important}.portal-wrap{padding:14px!important;border-radius:24px!important}
  .portal-topbar,.portal-identity,.portal-head,.portal-section-head{flex-direction:column!important;align-items:flex-start!important;gap:14px!important}.portal-top-actions{width:100%;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px!important}.portal-top-actions>*{width:100%!important;min-width:0!important;padding-inline:8px!important}
  .portal-tabs{display:flex!important;overflow-x:auto!important;overscroll-behavior-x:contain;scrollbar-width:none;gap:8px!important;padding-bottom:4px}.portal-tabs::-webkit-scrollbar{display:none}.portal-tabs>*{flex:0 0 auto!important;white-space:nowrap!important}
  .portal-stat-grid,.portal-stats{grid-template-columns:1fr 1fr!important;gap:10px!important}.portal-stat-card{min-width:0!important;padding:18px!important}.portal-stat-card b{font-size:34px!important}
  .portal-profile-grid,.profile-grid,.portal-owner-grid{grid-template-columns:1fr!important;gap:18px!important}.profile-photo-layout{grid-template-columns:1fr!important}.profile-photo-main{max-width:260px;margin-inline:auto}.profile-photo-thumbs{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important}
  .portal-event{grid-template-columns:1fr!important}.portal-event-actions{justify-content:flex-start!important;flex-wrap:wrap!important}
  .portal-message-modal,.portal-notification-modal,.portal-photo-modal{width:calc(100vw - 20px)!important;max-width:none!important;max-height:calc(100dvh - 20px)!important}.portal-messenger{grid-template-columns:1fr!important;min-height:70dvh}.portal-dialog-list{max-height:210px!important;border-right:0!important;border-bottom:1px solid rgba(230,190,90,.18)}
  /* Admin */
  .admin-v2-shell,.admin-v2-app{min-width:0!important;width:100%!important}.admin-v2-app{display:block!important}.admin-sidebar{position:relative!important;inset:auto!important;width:100%!important;height:auto!important;padding:14px!important;border-right:0!important;border-bottom:1px solid rgba(233,197,105,.15)}
  .admin-brand{display:none!important}.admin-demo-pill{margin:0 0 10px!important}.admin-side-nav{display:flex!important;overflow-x:auto!important;gap:8px!important;padding-bottom:4px}.admin-side-nav button{flex:0 0 auto!important;width:auto!important;min-height:44px!important;padding:10px 14px!important;white-space:nowrap!important}.admin-side-bottom{display:none!important}
  .admin-v2-main{margin:0!important;width:100%!important;padding:18px!important}.admin-v2-top{flex-direction:column!important;align-items:stretch!important;gap:16px!important}.admin-v2-top h1{font-size:48px!important}.admin-top-actions{width:100%!important;display:grid!important;grid-template-columns:1fr auto;gap:10px!important}.admin-top-actions select{width:100%!important;min-width:0!important}
  .admin-stat-grid,.admin-overview-stats,.admin-v2-grid,.admin-events-list,.admin-ticket-settings,.payment-category-settings,.admin-quick-grid{grid-template-columns:1fr 1fr!important;gap:10px!important}.admin-v2-grid>*,.admin-panel{min-width:0!important}.admin-panel{padding:20px!important}.admin-panel h2,.admin-section-head h2{font-size:36px!important;overflow-wrap:anywhere}
  .admin-section-head{flex-direction:column!important;align-items:stretch!important;gap:14px!important}.admin-toolbar{display:grid!important;grid-template-columns:1fr!important}.admin-toolbar>*{width:100%!important}
  .table-wrap{width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch}.admin-table{min-width:760px!important}.admin-table th,.admin-table td{font-size:12px!important;padding:10px!important}.admin-table .table-btn{min-height:38px!important;font-size:12px!important;padding:8px 10px!important}
  /* Legal */
  .legal-shell{padding-top:100px!important}.legal-shell h1{font-size:clamp(40px,12vw,62px)!important;line-height:.95!important}.legal-card h2{font-size:28px!important}.legal-card p,.legal-card li{font-size:15px!important;line-height:1.6!important}.legal-offer-actions{display:grid!important;grid-template-columns:1fr 1fr;gap:10px!important;margin-bottom:18px}.legal-offer-actions>*{width:100%!important}
}
@media (max-width:600px){
  .container{padding-left:14px!important;padding-right:14px!important}.brand-copy strong{font-size:18px!important}.brand-copy span{display:none!important}
  .portal-stat-grid,.portal-stats,.admin-stat-grid,.admin-overview-stats,.admin-v2-grid,.admin-events-list,.admin-ticket-settings,.payment-category-settings,.admin-quick-grid{grid-template-columns:1fr!important}
  .portal-top-actions{grid-template-columns:1fr 1fr!important}.portal-top-actions>*:last-child{grid-column:1/-1}
  .footer-links{grid-template-columns:1fr!important}.legal-offer-actions{grid-template-columns:1fr!important}
  .fixed-question-btn{left:10px!important;right:auto!important;bottom:10px!important;max-width:160px!important}.global-back-btn{left:10px!important;top:10px!important}
  .admin-v2-main{padding:14px!important}.admin-v2-top h1{font-size:42px!important}.admin-top-actions{grid-template-columns:1fr!important}.admin-top-actions .btn-glass{width:100%!important}
  .profile-photo-thumbs{grid-template-columns:repeat(4,1fr)!important}.portal-message-modal{border-radius:18px!important}.portal-messenger{min-height:76dvh}
}
@media (max-width:380px){.portal-stat-grid,.portal-stats{grid-template-columns:1fr!important}.portal-top-actions{grid-template-columns:1fr!important}.portal-top-actions>*:last-child{grid-column:auto}.hero h1,.page-hero h1,.event-hero-copy h1{font-size:42px!important}}
