.koa-language-short,#koaAdminRail{display:none}
@media(max-width:700px){
 .koa-language-full{display:none}.koa-language-short{display:inline}
 #mobileProfile .koa-mobile-profile-list,.koa-profile-actions{display:flex!important;flex-wrap:nowrap!important;gap:10px!important;overflow-x:auto!important;max-width:100%;padding:6px 3px 12px!important;scroll-snap-type:x proximity;overscroll-behavior-x:contain}
 #mobileProfile .koa-mobile-profile-list>button,.koa-profile-actions>button{box-sizing:border-box!important;flex:0 0 140px!important;width:140px!important;min-width:140px!important;height:64px!important;min-height:64px!important;margin:0!important;padding:8px!important;display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;gap:6px!important;font-size:13px!important;line-height:1.2!important;white-space:normal!important;scroll-snap-align:start}
 #mobileProfile .koa-mobile-profile-list>button small,#mobileProfile .koa-mobile-profile-list>button strong{display:none!important}
 .header-compact-actions{gap:6px!important;flex-wrap:nowrap!important;overflow-x:auto;max-width:100%}
 .header-compact-actions>button,.header-compact-actions>[role=button]{box-sizing:border-box!important;width:48px!important;min-width:48px!important;height:48px!important;min-height:48px!important;flex:0 0 48px!important;padding:4px!important}
 .koa-mobile-bottom-nav>button{flex:1 1 0!important;min-width:0!important;min-height:56px!important;box-sizing:border-box!important}
}
@media(min-width:1100px){
 body.koa-admin-controls :is(.koa-profile-actions,#mobileProfile) :is(.koa-school-admin-entry,.koa-pilot-entry,.koa-audio-entry){display:none!important}
 body:not(.koa-map-home) #koaAdminRail{display:none}
 #koaAdminRail{position:fixed;left:12px;top:120px;width:156px;display:flex;flex-direction:column;gap:12px;z-index:50}
 #koaAdminRail a{box-sizing:border-box;display:flex;align-items:center;justify-content:center;min-height:64px;padding:12px;text-align:center;text-decoration:none;font:700 14px/1.3 system-ui;color:#40304f;background:#eee3f2;border:2px solid #40304f;border-radius:15px;box-shadow:0 3px 0 #40304f}
 #koaAdminRail a:focus-visible{outline:3px solid #239bd5;outline-offset:4px}
 [data-koa-theme=dark] #koaAdminRail a{color:#f7edff;background:#35263f;border-color:#a78bb6;box-shadow:0 3px 0 #8e72a0}
}

/* One shared baseline and footprint for every League account action. */
:root body.koa-v2 .koa-league-card .koa-profile-actions{align-items:center!important;flex-wrap:nowrap!important;overflow-x:auto;max-width:100%;padding-bottom:8px!important}
:root body.koa-v2 .koa-league-card .koa-profile-actions>button{align-self:center!important;box-sizing:border-box!important;height:64px!important;min-height:64px!important;margin-top:0!important;margin-bottom:0!important;display:flex;align-items:center;justify-content:center;line-height:1.2!important;white-space:normal}
@media(max-width:1099px){:root body.koa-v2 .koa-league-card .koa-profile-actions>button{flex:0 0 140px!important;width:140px!important;min-width:140px!important}}

@media(min-width:1100px){:root body.koa-v2 .koa-league-card .koa-profile-actions{overflow:visible!important;gap:6px!important}:root body.koa-v2 .koa-league-card .koa-profile-actions>button{flex:1 1 0!important;width:0!important;min-width:0!important;height:52px!important;min-height:52px!important;padding:6px!important;font-size:10px!important;overflow-wrap:anywhere}}

/* Mobile account actions stay visible without a horizontal carousel. */
.koa-logout-icon{display:none}
@media(max-width:1099px){
 :root body.koa-v2 .koa-league-card .koa-profile-actions,
 :root body.koa-v2 #mobileProfile .koa-mobile-profile-list{
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px!important;
  overflow:visible!important;width:100%;max-width:100%;box-sizing:border-box;scroll-snap-type:none;
 }
 :root body.koa-v2 .koa-league-card .koa-profile-actions>button,
 :root body.koa-v2 #mobileProfile .koa-mobile-profile-list>button{
  width:100%!important;min-width:0!important;max-width:100%;height:56px!important;min-height:56px!important;
  margin:0!important;padding:5px 3px!important;font-size:10px!important;line-height:1.15!important;
  overflow-wrap:anywhere;box-sizing:border-box;
 }
 .koa-language-full,.koa-logout-label{display:none!important}
 .koa-language-short{display:inline!important}
 .koa-logout-icon{display:block;width:23px;height:23px;flex-shrink:0}
 :root body.koa-v2 .koa-league-card .koa-profile-actions>:is(.koa-school-admin-entry,.koa-pilot-entry,.koa-audio-entry){order:2}
}
#koaLanguageDialog h2:focus{outline:none}

/* All account actions retain the same raised outline in dark appearance. */
:root[data-koa-theme="dark"] body.koa-v2 .koa-league-card .koa-profile-actions>button,
:root[data-koa-theme="dark"] body.koa-v2 #mobileProfile .koa-mobile-profile-list>button{
 border:2px solid #927da1!important;border-radius:11px!important;box-shadow:0 3px 0 var(--koa-raised-edge, #8e739e)!important;
}
#koaAdminTheme{display:none}
@media(min-width:1100px){
 body.koa-admin-controls #koaAdminTheme{display:flex;position:fixed;right:14px;top:185px;width:146px;gap:6px;z-index:1001}
 #koaAdminTheme button{flex:1;min-width:0;min-height:44px;padding:7px 3px;border:2px solid #483856;border-radius:12px;box-shadow:0 3px 0 #483856;background:#f8eef7;color:#40304f;font:700 11px/1.3 system-ui;cursor:pointer}
 #koaAdminTheme button[aria-pressed=true]{background:#d9c4eb}
 #koaAdminTheme button:focus-visible{outline:3px solid #239bd5;outline-offset:3px}
 [data-koa-theme=dark] #koaAdminTheme button{background:#35263f;color:#f7edff;border-color:#a78bb6;box-shadow:0 3px 0 var(--koa-raised-edge, #8e739e)}
 [data-koa-theme=dark] #koaAdminTheme button[aria-pressed=true]{background:#654775}
}
