/* V11.52: one mobile reading hierarchy and one page-header layout.
   Desktop, bracket layout engines, modal scrolling and controls are untouched. */
@layer aow-ui-consistency {
 @media(max-width:760px){
  body.aow-masters-theme{font-size:16px!important;line-height:1.5!important;--aow-dim:#b8ceca;--muted:#b8ceca}
  body.aow-masters-theme .wrap :is(h1,h2,h3,h4,h5,h6){font-family:var(--aow-heading)!important;font-weight:800!important;letter-spacing:.025em!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important}
  body.aow-masters-theme .wrap h1{font-size:34px!important;line-height:1.12!important}
  body.aow-masters-theme .wrap h2{font-size:30px!important;line-height:1.15!important}
  body.aow-masters-theme .wrap h3{font-size:24px!important;line-height:1.2!important}
  body.aow-masters-theme .wrap h4{font-size:21px!important;line-height:1.25!important}
  body.aow-masters-theme .wrap h5{font-size:19px!important;line-height:1.3!important}
  body.aow-masters-theme .wrap h6{font-size:18px!important;line-height:1.3!important}
  body.aow-masters-theme .wrap :is(p,.aow-avatar-choice-desc,.roster-help,.modal-copy,.prewrap){font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif!important;font-size:16px!important;font-weight:400!important;line-height:1.55!important;letter-spacing:0!important;text-transform:none!important;word-break:normal!important;overflow-wrap:anywhere!important}
  body.aow-masters-theme .wrap p :is(span,small,strong,b){font-family:inherit!important;font-size:inherit!important;line-height:inherit!important;letter-spacing:inherit!important}
  body.aow-masters-theme .wrap p :is(strong,b){font-weight:700!important}
  body.aow-masters-theme .wrap p.muted{color:#b8ceca!important;opacity:1!important}
  body.aow-masters-theme .wrap :is(small,.small){font-size:15px!important;line-height:1.5!important}
  body.aow-masters-theme .wrap .eyebrow{font-family:var(--aow-heading)!important;font-size:13px!important;font-weight:800!important;line-height:1.35!important;letter-spacing:.08em!important;margin:0 0 8px!important}
  /* All page-level back navigation follows the full-width text block. */
  body.aow-masters-theme .wrap :is(.admin-page-head,.aow-clan-head,.tm-heading,.match-management-head){display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;gap:12px!important;position:relative!important;width:100%!important;min-height:0!important;padding:0!important;margin:0 0 20px!important;float:none!important}
  body.aow-masters-theme .wrap :is(.admin-page-head,.aow-clan-head,.tm-heading,.match-management-head)>div:first-child{width:100%!important;max-width:100%!important;min-width:0!important;grid-column:auto!important;grid-row:auto!important;float:none!important;margin:0!important;padding:0!important}
  body.aow-masters-theme .wrap :is(.admin-page-head,.aow-clan-head,.tm-heading,.match-management-head) :is(h1,h2){font-size:30px!important;line-height:1.15!important;max-width:none!important;min-height:0!important;margin:0 0 10px!important}
  body.aow-masters-theme .wrap :is(.admin-page-head,.aow-clan-head,.tm-heading,.match-management-head) p{width:100%!important;max-width:none!important;margin:0!important}
  body.aow-masters-theme .wrap :is(.admin-page-head,.aow-clan-head,.tm-heading,.match-management-head)>:is(.admin-back-btn,.admin-back-topright,.match-window-close){position:static!important;float:none!important;transform:none!important;align-self:flex-end!important;justify-self:end!important;grid-column:auto!important;grid-row:auto!important;width:auto!important;min-width:0!important;max-width:100%!important;margin:0!important;clear:both!important;white-space:normal!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;min-height:44px!important;padding:10px 14px!important;font-size:16px!important;line-height:1.2!important}
  body.aow-masters-theme .wrap :is(.admin-page-head,.aow-clan-head,.tm-heading,.match-management-head)>:is(.admin-back-btn,.admin-back-topright,.match-window-close)>span{font-size:inherit!important;line-height:inherit!important}
  body.aow-masters-theme .wrap .tm-heading>.row{width:100%!important;justify-content:flex-end!important;margin:0!important;gap:8px!important}
  body.aow-masters-theme .wrap .section :is(.btn,.admin-back-btn,.admin-back-topright,.match-window-close){font-size:16px!important;font-weight:800!important;line-height:1.25!important;letter-spacing:.035em!important;min-height:44px!important;text-align:center!important}
  body.aow-masters-theme .wrap .section :is(input:not([type=checkbox]):not([type=radio]),select,textarea,.aow-select-trigger,.aow-select-value){font-size:18px!important;line-height:1.35!important;font-weight:600!important}
  body.aow-masters-theme .wrap .field>label{font-size:16px!important;line-height:1.35!important;letter-spacing:.04em!important}
  /* Collection cards and their supporting text share the same hierarchy. */
  body.aow-masters-theme .wrap .aow-avatar-hub-choice{padding:20px!important;gap:12px!important}
  body.aow-masters-theme .wrap .aow-avatar-choice-title{font-family:var(--aow-heading)!important;font-size:24px!important;font-weight:800!important;line-height:1.2!important;letter-spacing:.02em!important;margin:0!important}
  body.aow-masters-theme .wrap .aow-avatar-choice-number{font-size:13px!important;font-weight:800!important;line-height:1.35!important;letter-spacing:.08em!important;margin:0!important}
  body.aow-masters-theme .wrap .aow-avatar-choice-action{font-size:16px!important;line-height:1.3!important;margin-top:8px!important}
  body.aow-masters-theme .wrap .aow-clan-settings-header{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:12px!important}
  body.aow-masters-theme .wrap .aow-clan-settings-header>div{width:100%!important;max-width:none!important}
  body.aow-masters-theme .wrap .aow-clan-settings-tag{align-self:flex-start!important;width:auto!important;font-size:14px!important;line-height:1.3!important}
  body.aow-masters-theme .wrap .admin-tool>span{font-size:20px!important;line-height:1.25!important}
  body.aow-masters-theme .wrap .admin-tool>small{font-size:14px!important;line-height:1.35!important}
  body.aow-masters-theme .wrap .notification-status-card b{font-size:19px!important;line-height:1.3!important}
  body.aow-masters-theme .wrap .notification-status-card small{font-size:15px!important;line-height:1.45!important}
  body.aow-masters-theme .wrap .aow-clan-head>.aow-clan-status{align-self:flex-end!important;width:auto!important;max-width:100%!important}
  body.aow-masters-theme .wrap .rescue-intro{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:12px!important}
  body.aow-masters-theme .wrap .rescue-intro>div{width:100%!important;max-width:none!important}
  body.aow-masters-theme .wrap .rescue-tag{align-self:flex-start!important;width:auto!important;font-size:14px!important;line-height:1.3!important}
  body.aow-masters-theme .wrap .info-launch{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:12px!important}
  body.aow-masters-theme .wrap .info-launch>div{width:100%!important;max-width:none!important}
  body.aow-masters-theme .wrap .info-launch>.btn{align-self:flex-end!important;width:auto!important}
  body.aow-masters-theme :is(.ms-option-desc,.p6e-subheading){font:400 15px/1.5 system-ui,-apple-system,"Segoe UI",Arial,sans-serif!important;letter-spacing:0!important}
  /* V11.53: text left, back control right, sharing one mobile header row. */
  body.aow-masters-theme .wrap :is(.admin-page-head,.aow-clan-head,.match-management-head):has(>:is(.admin-back-btn,.admin-back-topright,.match-window-close)),
  body.aow-masters-theme .wrap .tm-heading{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;column-gap:12px!important;row-gap:0!important}
  body.aow-masters-theme .wrap :is(.admin-page-head,.aow-clan-head,.match-management-head):has(>:is(.admin-back-btn,.admin-back-topright,.match-window-close))>div:first-child,
  body.aow-masters-theme .wrap .tm-heading>div:first-child{grid-column:1!important;grid-row:1!important;min-width:0!important;width:100%!important;max-width:100%!important}
  body.aow-masters-theme .wrap :is(.admin-page-head,.aow-clan-head,.match-management-head)>:is(.admin-back-btn,.admin-back-topright,.match-window-close){grid-column:2!important;grid-row:1!important;align-self:center!important;justify-self:end!important;min-width:72px!important;max-width:min(34vw,140px)!important;width:auto!important;padding:10px!important;white-space:normal!important;overflow-wrap:anywhere!important}
  body.aow-masters-theme .wrap .tm-heading>.row{grid-column:2!important;grid-row:1!important;align-self:center!important;justify-self:end!important;min-width:72px!important;max-width:min(34vw,140px)!important;width:auto!important}
  body.aow-masters-theme .wrap .tm-heading>.row .btn{width:100%!important;max-width:100%!important;min-width:0!important;white-space:normal!important;overflow-wrap:anywhere!important;flex:1 1 100%!important}
 }
}
