/* Estrelas & Refugos V109 Command Center Premium 2.0
   ONE canonical final layer. Existing layouts are preserved; mobile first. */
body.theme-v62{--v109-ink:#173b5c;--v109-muted:#526e86;--v109-line:#d5e3ee;--v109-blue:#176aa9;--v109-surface:#fff}
body.theme-v62 .content{min-width:0}
body.theme-v62 .content :is(.page-heading,.section-head){align-items:center;min-width:0}
body.theme-v62 .content :is(.page-heading h1,.section-head h2){line-height:1.18;text-wrap:balance;letter-spacing:-.018em}
body.theme-v62 .content :is(.page-heading p,.section-head p){font-size:13px;line-height:1.45;color:var(--v109-muted)}
body.theme-v62 .topbar{isolation:isolate}
body.theme-v62 .topbar .v102-top-actions .top-profile-slot{
 width:92px!important;min-width:92px!important;height:44px!important;
 display:flex!important;align-items:center;justify-content:flex-end;gap:4px;position:relative!important
}
body.theme-v62 .topbar #profileBtn.top-player-profile{position:relative;z-index:1;flex:0 0 43px;min-width:43px;width:43px;height:44px}
body.theme-v62 .topbar #adminBtn.top-admin-badge{
 position:relative!important;right:auto!important;bottom:auto!important;left:auto!important;top:auto!important;
 flex:0 0 44px!important;width:44px!important;min-width:44px!important;
 height:44px!important;min-height:44px!important;
 border:1px solid #c3d7e8!important;border-radius:12px!important;box-shadow:none!important;
 padding:0!important;margin:0!important;
 background:#f4f9ff;z-index:2;display:grid!important;place-items:center!important;
}
body.theme-v62 .topbar #adminBtn.top-admin-badge.is-admin{background:#e9f3ff;border-color:#a9c9e5!important}
body.theme-v62 .topbar #adminBtn.top-admin-badge .icon{
 width:22px!important;height:22px!important;min-width:22px!important;max-width:22px!important;
 object-fit:contain
}
body.theme-v62 .topbar .top-player-profile .avatar.header{border-radius:10px;overflow:visible}
body.theme-v62 :is(.main-menu-route,.nav-item,.btn,.v109-menu-tools button):focus-visible{
 outline:3px solid #1876c9;outline-offset:2px
}
body.theme-v62 .main-menu-route{position:relative;min-width:0;gap:7px}
body.theme-v62 .main-menu-route>span:nth-child(2){min-width:0}
body.theme-v62 .main-menu-route.is-current{border-color:#8cb8df;background:#f1f8ff}
body.theme-v62 .main-menu-route em{
 position:static!important;display:inline-block!important;align-self:start!important;justify-self:start!important;
 margin-top:4px!important;max-width:100%!important;flex:none!important;
 font-size:10px!important;line-height:1.2!important
}
body.theme-v62 .main-menu-route small{overflow-wrap:anywhere;line-height:1.32;font-size:11px;color:#58738c}
body.theme-v62 .v109-menu-tools{
 margin-top:13px;padding:12px;border:1px solid #d6e4ef;border-radius:13px;background:#f7fafc
}
body.theme-v62 .v109-menu-tools h3{font-size:13px;color:#284f74;margin:0 0 8px}
body.theme-v62 .v109-menu-tools>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
body.theme-v62 .v109-menu-tools button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:46px;padding:8px;
 border:1px solid #c7dbe9;border-radius:10px;background:#fff;color:#244b70;font-size:12px;font-weight:800}
body.theme-v62 .v109-menu-tools button .icon{width:19px;height:19px;object-fit:contain;flex:none}
body.theme-v62 .v108-share-toolbar.v109-sharing-compact{
 display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center;min-width:0;
 border:1px solid #d5e3ef;border-left:3px solid #528cbc;
 border-radius:12px;padding:9px 11px;margin:12px 0;
 background:#f9fbfe;box-shadow:none;justify-content:space-between;
}
body.theme-v62 .v109-sharing-compact .v108-share-heading img{width:29px;height:29px}
body.theme-v62 .v109-sharing-compact .v108-share-heading b{font-size:12px}
body.theme-v62 .v109-sharing-compact .v108-share-heading small{font-size:11px;line-height:1.25;color:#5c748a}
body.theme-v62 .v109-sharing-compact .v108-share-buttons{gap:6px;display:flex;width:auto}
body.theme-v62 .v109-sharing-compact .v108-share-button{min-height:42px;font-size:11.5px;padding:7px 11px}
body.theme-v62 .v109-sharing-compact .v108-share-craque{min-height:40px}
body.theme-v62 .content .btn{line-height:1.3}
body.theme-v62 .v105-page-context{background:#f4f8fc;border-color:#dbe7f1;box-shadow:none}
body.theme-v62 .v105-page-context button{min-height:44px}
body.theme-v62 .content[data-route="home"] .home-hero-premium{box-shadow:0 7px 17px rgba(13,53,95,.11)}
body.theme-v62 .content[data-route="home"] .v104-home-essentials{margin-top:11px}
body.theme-v62 .content[data-route="home"] .v109-sharing-compact{margin-block:11px}
body.theme-v62 .content[data-route="presence"] .er-presence-actions{border-color:#c4dce9}
body.theme-v62 .content[data-route="draw"] .player-list small,
body.theme-v62 .content[data-route="presence"] .presence-lists small{
 overflow-wrap:anywhere;white-space:normal;line-height:1.3
}
body.theme-v62 .content[data-route="discipline"] :is(.discipline-status,.discipline-option,.case-status) span{
 overflow-wrap:anywhere;white-space:normal;min-width:0
}
body.theme-v62 .content[data-route="court"] .v108-court-row{border-radius:12px}
body.theme-v62 .content[data-route="court"] .v108-court-status-summary{margin-top:8px}
body.theme-v62 .modal-card{box-shadow:0 12px 32px rgba(16,44,79,.17)}
body.theme-v62 .modal-header{border-bottom:1px solid #e1eaf1}
body.theme-v62 .modal-card :is(input,select,textarea){max-width:100%}
@media(max-width:620px){
 body.theme-v62 .topbar{
  display:grid!important;
  grid-template-columns:44px minmax(0,1fr) 44px 92px!important;
  grid-template-rows:50px!important;
  column-gap:3px!important;row-gap:0!important;
  padding:calc(env(safe-area-inset-top,0px) + 4px) max(6px,env(safe-area-inset-right,0px))
    4px max(6px,env(safe-area-inset-left,0px))!important;
  min-height:56px!important;align-items:center
 }
 body.theme-v62 .topbar>#menuBtn{grid-column:1!important;grid-row:1!important}
 body.theme-v62 .topbar .brand-versus{
  grid-column:2!important;grid-row:1!important;justify-self:center!important;align-self:center;
  display:grid;grid-template-columns:24px minmax(0,auto) 24px!important;gap:2px!important;
  max-width:100%;min-width:0;overflow:visible
 }
 body.theme-v62 .topbar .brand-versus .brand-team-mark{
  width:24px!important;height:24px!important;min-width:24px!important;max-width:24px!important
 }
 body.theme-v62 .topbar .brand-versus>span{min-width:0;max-width:90px;text-align:center}
 body.theme-v62 .topbar .brand-versus b{font-size:11px!important;line-height:1.08!important;letter-spacing:0}
 body.theme-v62 .topbar .brand-versus em{font-size:9.5px!important;line-height:1.1!important}
 body.theme-v62 .topbar .brand-versus .app-version-badge{margin-top:1px!important;font-size:8.5px!important;padding:0 4px!important}
 body.theme-v62 .topbar .v102-top-actions{display:contents!important}
 body.theme-v62 .topbar .v103-top-tools{
  grid-column:3!important;grid-row:1!important;display:flex!important;gap:0!important;
  align-items:center!important;justify-self:center!important;min-width:0
 }
 body.theme-v62 .topbar #topCacheBtn{display:none!important}
 body.theme-v62 .topbar #topRefreshBtn{
  display:grid!important;place-items:center!important;width:44px!important;min-width:44px!important;
  height:44px!important;min-height:44px!important;padding:0!important;margin:0!important;
  border:1px solid #ccdfef;border-radius:12px;background:#f7fbff
 }
 body.theme-v62 .topbar .v102-top-tool>.icon{width:21px!important;height:21px!important;margin:auto!important}
 body.theme-v62 .topbar .v103-tool-label{display:none!important}
 body.theme-v62 .topbar .v102-top-actions .top-profile-slot{
  grid-column:4!important;grid-row:1!important;justify-self:end!important;width:92px!important;
  min-width:92px!important;align-self:center!important
 }
 body.theme-v62 .content>.v109-sharing-compact{margin-top:9px}
 body.theme-v62 .v109-sharing-compact .v108-share-buttons{width:auto!important;display:flex!important;gap:5px!important}
 body.theme-v62 .v109-sharing-compact .v108-share-button{min-height:42px!important;padding:7px 9px!important}
 body.theme-v62 .v109-sharing-compact .v108-share-heading small{font-size:11px}
 body.theme-v62 .main-menu-route{padding:12px 9px;gap:7px;align-items:start}
 body.theme-v62 .main-menu-route em{font-size:9px!important}
 body.theme-v62 .modal-card{max-height:calc(100dvh - env(safe-area-inset-top,0px) - 4px)}
 body.theme-v62 .modal-body{overscroll-behavior:contain}
}
@media(max-width:355px){
 body.theme-v62 .topbar{grid-template-columns:42px minmax(0,1fr) 44px 92px!important;column-gap:2px!important;padding-inline:5px!important}
 body.theme-v62 .topbar .brand-versus{grid-template-columns:22px minmax(0,auto) 22px!important;gap:1px!important}
 body.theme-v62 .topbar .brand-versus .brand-team-mark{width:22px!important;height:22px!important;min-width:22px!important;max-width:22px!important}
 body.theme-v62 .topbar .brand-versus>span{max-width:86px}
 body.theme-v62 .topbar .brand-versus b{font-size:10.5px!important}
 body.theme-v62 .topbar .brand-versus em{font-size:8.6px!important}
 body.theme-v62 .topbar #topRefreshBtn{width:44px!important;min-width:44px!important}
 body.theme-v62 .topbar .v102-top-actions .top-profile-slot{width:92px!important;min-width:92px!important;gap:4px}
 body.theme-v62 .v109-sharing-compact .v108-share-buttons{width:100%!important}
 body.theme-v62 .v109-sharing-compact .v108-share-buttons button{flex:1;min-width:0}
 body.theme-v62 .main-menu-grid{gap:7px}
 body.theme-v62 .main-menu-route small{font-size:10.5px}
}
@media(min-width:621px){
 body.theme-v62 .topbar .v102-top-actions .top-profile-slot{width:89px!important}
 body.theme-v62 .v109-sharing-compact{max-width:100%}
}
@media(min-width:621px){
 body.theme-v62 .main-menu-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px}
 body.theme-v62 .main-menu-route{min-height:76px}
 body.theme-v62 .main-menu-route>span:nth-child(2){min-width:0;overflow-wrap:anywhere}
}
body.theme-v62 .content[data-route="rank"] .v109-sharing-compact{margin:9px 0 12px}
body.theme-v62 .content[data-route="court"] .v109-sharing-compact{margin:9px 0 12px}
@media(prefers-reduced-motion:reduce){
 body.theme-v62 .v109-sharing-compact,body.theme-v62 .main-menu-route{transition:none!important;animation:none!important}
}
