/* ==========================================================
   v179.9.54 — FINAL CONSISTENCY POLISH
   Conservative refinement only. No scorekeeping behavior or
   approved Home / Library card architecture changes.
   ========================================================== */

/* 1) Library empty states: quieter, shorter, and theme-aware. */
.v175-source-empty,
.v175-filter-empty{
  width:100%!important;
  max-width:760px!important;
  margin:4px auto 0!important;
  padding:24px 18px!important;
  border-radius:18px!important;
  border-color:color-mix(in srgb,var(--line) 76%,transparent)!important;
  box-shadow:none!important;
}
.v175-source-empty{
  min-height:190px!important;
  align-content:center!important;
  gap:7px!important;
}
.v175-source-empty>span{
  display:grid!important;
  place-items:center!important;
  width:42px!important;
  height:42px!important;
  margin:0 auto 3px!important;
  border:1px solid color-mix(in srgb,var(--line) 74%,transparent)!important;
  border-radius:13px!important;
  background:transparent!important;
  font-size:21px!important;
  color:var(--muted)!important;
}
.v175-source-empty strong,
.v175-filter-empty strong{
  font-size:15px!important;
  line-height:1.15!important;
}
.v175-source-empty p,
.v175-filter-empty p{
  max-width:38ch!important;
  font-size:9px!important;
  line-height:1.4!important;
}
.v175-source-empty button{
  min-height:40px!important;
  margin-top:5px!important;
  padding:0 17px!important;
  border-radius:11px!important;
  box-shadow:none!important;
  font-size:8.5px!important;
}
body[data-theme-family="generic"] .v175-source-empty button{
  background:var(--accent)!important;
  border:1px solid var(--accent)!important;
  color:var(--generic-accent-ink,#fff)!important;
}
body[data-theme-family="wrigley"] .v175-source-empty,
body[data-theme-family="wrigley"] .v175-filter-empty{
  background:transparent!important;
  border-color:var(--wr-line-soft)!important;
}
body[data-theme-family="wrigley"] .v175-source-empty>span{
  color:var(--wr-cream-muted)!important;
  border-color:var(--wr-line-soft)!important;
}
body[data-theme-family="wrigley"] .v175-source-empty button{
  background:transparent!important;
  color:var(--wr-yellow)!important;
  border:1px solid var(--wr-yellow)!important;
}

/* 2) Keep Library header/source geometry identical across theme families. */
body[data-theme-family] .v175-library > .v175-source-nav,
body[data-theme-family] .v175-library > .v175-library-summary{
  width:100%!important;
  box-sizing:border-box!important;
}

/* 3) Game Information: same compact geometry for MLB + Personal. */
#gameInfoManagerModal .v102-manager-card{
  padding:12px!important;
}
#gameInfoManagerModal .v102-team-pair.v179946-gameinfo-team-pair{
  align-items:end!important;
  gap:8px!important;
  margin:6px 0 8px!important;
}
#gameInfoManagerModal .v179946-gameinfo-team-pair label{
  gap:4px!important;
}
#gameInfoManagerModal .v179946-gameinfo-team-pair label>small{
  min-height:14px!important;
  align-items:center!important;
}
#gameInfoManagerModal .v179946-gameinfo-team-pair input,
#gameInfoManagerModal .v179946-gameinfo-team-pair select{
  height:42px!important;
}
#gameInfoManagerModal .v102-info-grid{
  border-radius:16px!important;
}
#gameInfoManagerModal .v102-info-tile{
  min-height:86px!important;
  padding:8px 9px!important;
  column-gap:8px!important;
}
#gameInfoManagerModal .v102-info-tile>span{
  width:34px!important;
  height:34px!important;
  border-radius:10px!important;
  font-size:16px!important;
}
#gameInfoManagerModal .v102-info-tile>small{
  font-size:8.5px!important;
}
#gameInfoManagerModal .v102-info-tile :is(input,textarea){
  font-size:13.5px!important;
}
#gameInfoManagerModal .v102-manager-note{
  margin:8px 2px 2px!important;
  font-size:10px!important;
  line-height:1.3!important;
}

/* 4) Bottom command bar: preserve geometry; only calm the visual weight. */
@media(max-width:700px){
  body.theme-default:not(.home-page) .mobile-action-bar.v91-action-bar .score-command,
  body[data-theme-family="generic"]:not(.home-page) .mobile-action-bar.v91-action-bar .score-command{
    box-shadow:0 2px 9px rgba(15,23,42,.10)!important;
  }
}

/* 5) Secondary save/status microcopy should stay secondary everywhere. */
body:not(.home-page) .save-status{
  color:var(--muted)!important;
  opacity:.72!important;
}
body:not(.home-page) .save-status.is-saved{
  color:var(--muted)!important;
  opacity:.86!important;
  box-shadow:none!important;
}
body[data-theme-family="wrigley"]:not(.home-page) .save-status,
body[data-theme-family="wrigley"]:not(.home-page) .save-status.is-saved{
  color:var(--wr-cream-muted)!important;
}
.v179949-meta{
  color:var(--muted)!important;
}
.v179949-meta span{
  opacity:.88!important;
}

/* 6) Desktop parity: same components, just controlled widths and rhythm. */
@media(min-width:1100px){
  .saved-games-page.scorebook-library-page.v175-library{
    width:min(1180px,calc(100vw - 64px))!important;
    margin-inline:auto!important;
  }
  .v175-source-empty,
  .v175-filter-empty{
    max-width:780px!important;
  }
  #gameInfoManagerModal .v102-manager-card{
    width:min(760px,calc(100vw - 56px))!important;
    max-width:760px!important;
  }
  #settingsModal .v90-settings-card{
    width:min(720px,calc(100vw - 56px))!important;
    max-width:720px!important;
  }
}

@media(max-width:700px){
  #gameInfoManagerModal .v102-manager-card{
    padding:11px 12px 12px!important;
  }
  #gameInfoManagerModal .v102-info-tile{
    min-height:76px!important;
    padding:7px 8px!important;
  }
  #gameInfoManagerModal .v102-info-tile>span{
    width:32px!important;
    height:32px!important;
    font-size:15px!important;
  }
  #gameInfoManagerModal .v102-manager-note{
    margin-top:7px!important;
  }
  .v175-source-empty{
    min-height:174px!important;
    padding:21px 15px!important;
  }
}
