/* V11.45: header-contained language control and viewport-sized chat. */
body.aow-masters-theme .portal-nav{flex-wrap:nowrap!important;gap:14px}
body.aow-masters-theme .portal-nav>.brand{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.portal-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex:0 0 auto;min-width:0}
body.aow-masters-theme .portal-nav .aow-language-switch{flex:0 0 auto;margin:0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;width:auto;max-width:none;gap:0}
.portal-header-actions .aow-language-options{gap:2px}
.portal-header-actions .aow-language-options a{min-width:88px!important;min-height:44px!important;padding:8px 10px!important;gap:6px!important}
.aow-language-short{display:none}
/* Flex layout uses the real header, notices and composer heights at every size. */
body.aow-masters-theme.tournament-chat-view{height:var(--aow-chat-viewport-height,100dvh)!important;min-height:0!important;overflow:hidden!important}
body.aow-masters-theme.tournament-chat-view>.wrap{box-sizing:border-box!important;height:var(--aow-chat-viewport-height,100dvh)!important;max-height:var(--aow-chat-viewport-height,100dvh)!important;min-height:0!important;margin-block:0!important;padding-bottom:max(8px,env(safe-area-inset-bottom))!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
body.aow-masters-theme.tournament-chat-view .portal-nav{flex:0 0 auto!important}
body.aow-masters-theme.tournament-chat-view .tournament-chat-page{display:flex!important;flex-direction:column!important;flex:1 1 0!important;min-height:0!important;max-height:none!important;margin-block:0!important;padding-block:0!important;overflow:hidden!important}
body.aow-masters-theme.tournament-chat-view .tournament-chat-heading{flex:0 0 auto!important}
body.aow-masters-theme.tournament-chat-view .tournament-chat-shell{display:flex!important;flex-direction:column!important;flex:1 1 0!important;min-height:0!important;height:auto!important;max-height:none!important;margin-bottom:0!important;overflow:hidden!important}
body.aow-masters-theme.tournament-chat-view .tournament-chat-body{display:flex!important;flex:1 1 0!important;min-height:0!important;overflow:hidden!important}
body.aow-masters-theme.tournament-chat-view .tournament-chat-messages{flex:1 1 0!important;min-height:0!important;height:auto!important;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain}
body.aow-masters-theme.tournament-chat-view :is(.tournament-chat-notice,.tournament-chat-compose,.tournament-chat-compose-foot,.tournament-chat-file-preview,.chat-reply-preview,.chat-delivery-outbox){flex-shrink:0!important}
body.aow-masters-theme.tournament-chat-view .footer{display:none!important}
@media(max-width:760px){
 body.aow-masters-theme .portal-nav{gap:8px!important;padding:8px!important}
 .portal-header-actions{gap:8px}
 .portal-header-actions .aow-language-options a{min-width:36px!important;min-height:44px!important;padding:6px!important;font-size:15px!important}
 .portal-header-actions .aow-language-check{display:none}
 .aow-language-short{display:inline}
 .aow-language-full{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0}
 body.aow-masters-theme .portal-header-actions .menu-toggle{min-height:44px;padding:8px!important;font-size:14px!important;gap:6px!important;letter-spacing:.02em!important}
}
@media(max-width:480px){body.aow-masters-theme .portal-nav>.brand{font-size:18px!important;letter-spacing:.02em!important}body.aow-masters-theme .portal-nav>.brand>span{display:none}}
@media(max-height:560px){
 body.aow-masters-theme.tournament-chat-view .tournament-chat-heading :is(.eyebrow,p),body.aow-masters-theme.tournament-chat-view .tournament-chat-notice-text,body.aow-masters-theme.tournament-chat-view .tournament-chat-compose-foot{display:none!important}
 body.aow-masters-theme.tournament-chat-view .tournament-chat-heading{margin-bottom:6px!important;padding:0!important}
 body.aow-masters-theme.tournament-chat-view .tournament-chat-heading h1{font-size:24px!important;margin:0!important}
 body.aow-masters-theme.tournament-chat-view .tournament-chat-notice{padding:6px 10px!important;min-height:0!important}
}
