/* Mobile design tokens follow the household dashboard reference. */
.mobile-admin-header,.mobile-dashboard{display:none}
.mobile-admin-menu:not([open]){display:none}
.mobile-admin-menu{--mobile-accent:#40596c;color:#d6e0ec;background:#1d2938;border:0;padding:0;width:min(320px,86vw);max-width:86vw;height:100dvh;max-height:100dvh;margin:0 auto 0 0;box-shadow:12px 0 40px #10182726;overflow-y:auto;overscroll-behavior:contain}
.mobile-admin-menu::backdrop{background:rgba(25,39,55,.5)}
body.mobile-menu-open{overflow:hidden}
.mobile-admin-menu svg,.mobile-admin-header svg,.mobile-dashboard svg{width:23px;height:23px;flex:0 0 auto}
.mobile-menu-top{padding:14px 18px 8px;padding-top:max(14px,env(safe-area-inset-top))}
.mobile-menu-close{border-radius:8px;display:flex;align-items:center;gap:12px;min-height:44px;padding:6px 8px;background:none;border:0;color:#c1cbd7;font:inherit;font-size:.9rem;cursor:pointer}
.mobile-menu-brand{display:flex;align-items:center;gap:12px;padding:22px 4px 14px;color:white;font-size:18px}
.mobile-menu-brand>span{display:grid;place-items:center;width:42px;height:42px;border-radius:10px;background:#40596c}
.mobile-menu-brand svg{width:25px;height:25px}
.mobile-menu-group{margin:10px 12px 24px}
.mobile-menu-group h2{margin:0;padding:6px 14px 8px;font-size:11px;line-height:1.4;font-weight:600;color:#9babbc;text-transform:uppercase;letter-spacing:.035em}
.mobile-menu-group button{display:flex;align-items:center;gap:15px;width:100%;min-height:46px;text-align:left;border:0;border-radius:10px;padding:10px 14px;background:none;color:#d6e0ec;font:inherit;font-size:16px;cursor:pointer}
.mobile-menu-group button[aria-current="page"]{background:#40596c;color:#fff}
.mobile-menu-group button:hover,.mobile-menu-close:hover{background:#ffffff0d}
.mobile-menu-group button[aria-current="page"]:hover{background:#40596c}
.mobile-menu-profile{position:sticky;bottom:0;display:flex;align-items:center;gap:12px;width:100%;min-height:82px;padding:16px 22px;padding-bottom:max(16px,env(safe-area-inset-bottom));border:0;border-top:1px solid #354253;background:#1d2938;color:#fff;text-align:left;font:inherit;cursor:pointer}
.mobile-menu-profile>span{display:grid;gap:4px;flex:1;min-width:0}
.mobile-menu-profile strong{font-size:15px;overflow-wrap:anywhere}
.mobile-menu-profile small{font-size:13px;color:#aab9ca}
.mobile-admin-menu button:focus-visible{outline:2px solid #b8d8f0;outline-offset:-3px}
@media(max-width:700px){
  body.mobile-admin-ready{--mobile-accent:#40596c;--bg:#f5f6fa;background:#f5f6fa;color:#1f2937}
  .mobile-admin-ready .app-shell{background:#f5f6fa}
  .mobile-admin-ready .hero,.mobile-admin-ready main>.tabs{display:none}
  .mobile-admin-ready .mobile-admin-header{position:sticky;top:0;z-index:90;display:flex;align-items:center;gap:9px;min-height:64px;padding:8px 12px;padding-top:max(8px,env(safe-area-inset-top));background:#fff;border-bottom:1px solid #e5e8ef}
  .mobile-admin-header[hidden]{display:none!important}
  .mobile-admin-header>strong{flex:1;min-width:0;font-size:17px;font-weight:650;line-height:1.25}
  .mobile-icon-button{display:grid;place-items:center;flex:0 0 40px;width:40px;height:44px;min-height:44px;padding:8px;border:0;border-radius:8px;background:transparent;color:#697b89;cursor:pointer}
  .mobile-icon-button[hidden]{display:none}
  .mobile-icon-button:focus-visible{outline:2px solid #40596c}
  .mobile-admin-ready main{width:calc(100% - 32px);margin:0 auto 40px;padding:0;max-width:none}
  .mobile-admin-ready .view{padding-top:20px}
  .mobile-admin-ready .panel{border:1px solid #e5e8ef;border-radius:14px;box-shadow:none}
  .mobile-admin-ready .toolbar{box-shadow:none;border:0;border-radius:0}
  .mobile-admin-ready .button{border-radius:10px}
  .mobile-admin-ready .view>.toolbar:first-child{padding:0;margin-bottom:18px;background:none}
  .mobile-dashboard{display:block}
  .mobile-dashboard-intro{padding:7px 0 22px}
  .mobile-dashboard-intro .mobile-kicker{margin:0 0 10px;color:#7c8c9c;text-transform:uppercase;letter-spacing:.1em;font-size:.69rem;font-weight:700}
  .mobile-dashboard-intro h1{margin:0 0 10px;font-size:2rem;line-height:1.12;letter-spacing:-.045em;font-weight:750;color:#182331}
  .mobile-dashboard-intro p:not(.mobile-kicker){margin:0 0 20px;font-size:.94rem;line-height:1.5;color:#71808f}
  .mobile-dashboard .mobile-primary{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:44px;padding:11px 16px;border:0;background:#40596c;color:#fff;font-size:.94rem;font-weight:600;box-shadow:none}
  .mobile-dashboard .mobile-primary[hidden]{display:none}
  .mobile-dashboard-stats{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin-bottom:16px}
  .mobile-stat{display:flex;flex-direction:column;align-items:flex-start;min-width:0;min-height:154px;padding:16px;border:1px solid #e5e8ef;border-radius:14px;background:#fff}
  .mobile-stat svg{margin-bottom:10px;color:#40596c}
  .mobile-stat h2{margin:0 0 4px;font-size:14px;line-height:1.35;font-weight:600;overflow-wrap:anywhere}
  .mobile-stat>strong{font-size:1.65rem;line-height:1.2;letter-spacing:-.03em;font-weight:750}
  .mobile-stat p{margin:6px 0 0;font-size:12px;line-height:1.4;color:#71808f}
  .mobile-stat-primary{background:#40596c;color:#fff;border-color:#40596c}
  .mobile-stat-primary svg,.mobile-stat-primary p{color:#e0e8ee}
  .mobile-upcoming-card{margin-bottom:22px;padding:16px;background:#fff;border:1px solid #e5e8ef;border-radius:14px}
  .mobile-upcoming-card h2{margin:0 0 10px;font-size:1.08rem}
  .mobile-upcoming-row{display:flex;align-items:center;gap:12px;width:100%;min-height:65px;padding:12px 0;border:0;border-top:1px solid #e8ebf1;background:none;color:inherit;text-align:left;font:inherit;cursor:pointer}
  .mobile-upcoming-row:first-child{border-top:0}
  .mobile-upcoming-date{flex:0 0 53px}
  .mobile-upcoming-info{min-width:0;flex:1}
  .mobile-upcoming-row strong{display:block;font-size:14px;line-height:1.4;font-weight:650;overflow-wrap:anywhere}
  .mobile-upcoming-row small{display:block;font-size:12px;color:#71808f;line-height:1.4;overflow-wrap:anywhere}
  .mobile-upcoming-row>svg{width:16px;height:16px;color:#71808f}
  .mobile-upcoming-empty{font-size:.85rem;color:#71808f;margin:12px 0 0;line-height:1.5}
  .mobile-admin-ready #dashboard>.dashboard-upcoming{display:none}
  .mobile-admin-ready #gameCounts .counts-toolbar{padding:0;margin:0 0 12px}
  .mobile-admin-ready #gameCounts .counts-toolbar h2{font-size:1.1rem}
  .mobile-admin-ready #gameCounts .counts-toolbar p{font-size:.76rem;line-height:1.5;margin-bottom:0;color:#71808f}
  .mobile-admin-ready #gameCounts .team-counts{gap:12px}
  .mobile-admin-ready #gameCounts details.dashboard-team-count{border:1px solid #e5e8ef;border-radius:12px}
  .mobile-admin-ready #gameCounts details.dashboard-team-count>summary.team-count-head{min-height:58px;padding:12px 14px;background:#fff}
  .mobile-admin-ready #gameCounts .dashboard-team-count .team-count-title h2{font-size:.95rem}
  .mobile-admin-ready #gameCounts .dashboard-team-count .team-count-title .pill{font-size:.74rem;color:#71808f;background:#f2f4f8;font-weight:500}
  .mobile-admin-ready #gameCounts .dashboard-team-count .team-count-toggle{width:28px;height:28px;flex-basis:28px;border:0;background:none;color:#71808f;font-size:1.1rem}
  .mobile-admin-ready #gameCounts details.dashboard-team-count[open]>summary.team-count-head{background:var(--team-bg)}
  .mobile-admin-ready main .panel-head,.mobile-admin-ready main .toolbar{flex-wrap:wrap}
}
@media(prefers-reduced-motion:no-preference){.mobile-admin-menu[open]{animation:mobile-menu-enter .16s ease-out}@keyframes mobile-menu-enter{from{transform:translateX(-100%)}to{transform:translateX(0)}}}

.mobile-dashboard-stats:empty{display:none}

/* Give match and planning cards more room by reducing nested mobile gutters. */
@media(max-width:700px){
 body.mobile-admin-ready :is(#matches,#planning){margin-inline:-8px}
 body.mobile-admin-ready #matches>.split>.panel,
 body.mobile-admin-ready #planning>.panel{min-width:0;padding:8px 6px}
 body.mobile-admin-ready :is(#matches,#planning) .match-section{min-width:0;padding:0}
 body.mobile-admin-ready :is(#matches,#planning) .match-section>.team-count-head{padding:12px 8px}
 body.mobile-admin-ready :is(#matches,#planning) .match-section-list{min-width:0;padding:8px 3px 10px}
 body.mobile-admin-ready :is(#matches,#planning) .matchday-item{min-width:0;width:100%;margin-inline:0}
}
