/* DEHL 0.0.9 responsive layer */
.mobile-toggle{display:none}.mobile-table{max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-inline:contain}.mobile-table:focus-visible{outline:2px solid var(--ice)}main,main section,main article,main form,main div{min-width:0}textarea,select,input{max-width:100%}textarea{width:100%;background:#101a2b;color:white;border:1px solid #52647c;border-radius:5px;padding:10px}main img{max-width:100%}main a,main p,main h1,main h2,main h3{overflow-wrap:anywhere}
@media(max-width:850px){main{padding:18px 12px 36px}section{padding:16px}header{padding:14px 12px;gap:12px}.brand{font-size:34px}.brand small{font-size:8px;letter-spacing:.5px}.mobile-ready .mobile-toggle{display:block;padding:10px 14px;min-height:44px}.mobile-ready #main-navigation:not(.mobile-open){display:none}#main-navigation{width:100%;display:flex;flex-direction:column;align-items:stretch;gap:4px}#main-navigation>a{padding:12px;min-height:44px;border-bottom:1px solid var(--line)}#main-navigation .account-menu,#main-navigation .dehl-notify{width:100%}#main-navigation .account-links,#main-navigation .dehl-notify-panel{position:static;width:100%;max-width:100%;box-shadow:none}#main-navigation .report-sub{position:static;display:block}#main-navigation summary{min-height:44px}.hero{min-height:300px;padding:28px 18px}.hero h1{font-size:clamp(30px,7vw,55px);letter-spacing:-1px}.hero .button{margin:6px 0;max-width:100%}.grid,.club-overview.has-sponsors,.mb-home,.rank-grid{grid-template-columns:minmax(0,1fr)}.club-identity{gap:10px}.club-identity>.club-leaders{margin-left:0}.club-tabs,.profiletabs,.club-actions,.rank-nav{display:flex;flex-wrap:wrap;gap:8px}.club-tabs a,.profiletabs a{padding:10px}.club-player,.club-player-link,.alpha-head{min-width:0;flex-wrap:wrap}.team-directory-row,.team-directory-head{grid-template-columns:minmax(0,1fr) auto!important;gap:8px}.team-directory-row>*:last-child,.team-directory-head>*:last-child{grid-column:1/-1}.alpha-card,.club-panel,.rank-card{padding:12px}.stats-stars,.report-cards,.fc-grid{grid-template-columns:minmax(0,1fr)!important}.stats-event{display:flex!important;flex-wrap:wrap;gap:8px}.stats-event>*{max-width:100%}.stats-event select{flex:1 1 140px}.report-card{min-width:0}.comm-message{margin-right:10%}.comm-message.mine{margin-left:10%}#comm-thread{max-height:55vh}input:not([type=checkbox]),textarea,select{font-size:16px}button,.button{min-height:44px;padding:10px 14px;white-space:normal}.mediaedit button,.mediachoose{min-height:32px;padding:6px}.identity{padding:12px}.avatar-frame{margin-left:12px}.banner-frame{height:200px}.playerfacts>div{min-width:120px}.alpha-event,.alpha-compare{gap:4px;padding:8px;font-size:13px}.mobile-table table{min-width:max-content}.mobile-table th,.mobile-table td{padding:8px}.dehl-history{max-width:100%;overflow-x:auto}.topline{padding:8px 12px;letter-spacing:0}.fc-actions{flex-wrap:wrap}.ds-grid{gap:5px}.ds-score{font-size:clamp(24px,7vw,55px)}}
@media(max-width:420px){main{padding-inline:8px}section{padding:12px}.newhero{padding:0}.hero h1{font-size:32px}.club-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.club-identity>.club-leaders .club-leader{width:76px}.playerfacts strong{font-size:20px}.alpha-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.ds-logo{width:48px;height:48px}.ds-name{font-size:12px}.avatar-frame:has(.mediaedit){width:155px;height:155px}.topline{font-size:9px}.rank-person{min-width:130px}}

/* Mobile header: independent account and notification controls */
.mobile-account-bar{display:none}
@media(max-width:850px){
header{position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:10px}
header>.brand{flex:1 1 auto;min-width:0}
header>.mobile-account-bar{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:0 0 auto;margin-left:auto}
.mobile-ready header>.mobile-toggle{order:2;width:100%;text-align:left}
header>#main-navigation{order:3}
.mobile-account-bar .account-menu,.mobile-account-bar .dehl-notify{width:auto;position:static}
.mobile-account-bar .account-menu summary{min-height:44px;padding:4px 7px;gap:5px}
.mobile-account-bar .nav-avatar{width:38px;height:38px}
.mobile-account-bar .nav-identity{display:none}
.mobile-account-bar .dehl-notify summary{min-height:44px;display:flex;align-items:center;gap:3px;padding:6px}
.mobile-account-bar .account-links,.mobile-account-bar .dehl-notify-panel{position:absolute;top:60px;right:10px;left:auto;width:min(390px,calc(100% - 20px));max-width:none;z-index:1001;box-sizing:border-box}
.mobile-account-bar .report-sub{position:static;display:block}
.mobile-account-bar #dehl-notify-items{max-height:45vh}
}
@media(max-width:360px){header>.brand{font-size:28px}header>.brand small{font-size:7px}.mobile-account-bar{gap:2px!important}}
.dehl-crop-dialog{box-sizing:border-box;width:min(92vw,560px);max-height:90dvh;overflow:auto;background:#152131;color:#eef5ff;border:1px solid #76d9ff;border-radius:14px;padding:16px;margin:auto}.dehl-crop-dialog::backdrop{background:#000b}.dehl-crop-dialog h2{margin:0}.crop-preview{position:relative;width:100%;max-height:48dvh;overflow:hidden;background:#101a2b;touch-action:none;user-select:none;cursor:grab}.crop-preview img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:var(--x) var(--y);transform:scale(var(--z));transform-origin:var(--x) var(--y);pointer-events:none}.crop-preview.contain img{object-fit:contain}.crop-actions{display:flex;justify-content:flex-end;gap:10px}.dehl-crop-dialog input[type=range]{width:100%}.dehl-crop-dialog button{min-height:44px}.mediaframe .banner-crop[hidden]{display:none!important}
@media(max-width:850px){header>.brand{flex:1 1 0;min-width:0}header>.mobile-account-bar{order:1;flex:0 0 auto}.mobile-ready header>.mobile-toggle{flex:0 0 100%;order:2}.mobile-account-bar .account-links,.mobile-account-bar .dehl-notify-panel{z-index:1005}.mobile-account-bar .dehl-notify{z-index:40}.avatar-frame .mediaedit{inset:auto 4px 4px;flex-wrap:nowrap}.avatar-frame .mediaedit>*{font-size:11px;padding:5px}}
