/* v179.9.22 — final consistency polish.
   Shared geometry applies to Default / Generic / Wrigley. Theme rules below only color it. */

/* Restore the approved compact timeline appearance while retaining v179.9.21 native momentum scrolling. */
#playModal .v141-sequence{min-width:0!important;overflow:hidden!important;margin-top:7px!important;padding-top:9px!important}
#playModal .v141-sequence>header{gap:10px!important;margin-bottom:7px!important}
#playModal .v141-sequence>div{
  display:flex!important;width:100%!important;max-width:100%!important;min-width:0!important;
  gap:0!important;overflow-x:auto!important;overflow-y:hidden!important;
  touch-action:pan-x pan-y!important;scroll-snap-type:none!important;scroll-behavior:auto!important;
  overscroll-behavior-x:contain!important;-webkit-overflow-scrolling:touch!important;
  padding:3px 18px 8px 0!important;scrollbar-width:none!important;
}
#playModal .v141-sequence>div::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
#playModal .v141-sequence article{
  position:relative!important;flex:0 0 102px!important;scroll-snap-align:none!important;
  display:grid!important;grid-template-columns:1fr!important;grid-template-rows:auto auto auto auto!important;
  justify-items:center!important;align-content:start!important;gap:1px!important;text-align:center!important;
  min-width:0!important;padding:0 4px!important;margin:0!important;border:0!important;border-radius:0!important;
  background:transparent!important;box-shadow:none!important;box-sizing:border-box!important;
}
#playModal .v141-sequence article:last-child{margin-right:18px!important}
#playModal .v141-sequence article:not(:last-child)::after{
  content:""!important;display:block!important;position:absolute!important;z-index:0!important;
  top:14px!important;left:64%!important;width:72%!important;height:1px!important;background:var(--line)!important;
}
#playModal .v141-sequence article>span{
  position:relative!important;z-index:1!important;grid-row:auto!important;grid-column:auto!important;
  width:29px!important;height:29px!important;display:grid!important;place-items:center!important;
  border:2px solid var(--line)!important;border-radius:50%!important;background:var(--panel)!important;
  color:var(--text,var(--ink))!important;font-size:9px!important;font-weight:900!important;
}
#playModal .v141-sequence article>b{
  grid-column:auto!important;margin-top:2px!important;max-width:92px!important;
  font-size:8.5px!important;line-height:1.15!important;text-align:center!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;overflow-wrap:normal!important;
}
#playModal .v141-sequence article>small{
  grid-column:auto!important;max-width:92px!important;font-size:6.8px!important;line-height:1.25!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
#playModal .v141-sequence article>em{
  grid-column:auto!important;max-width:94px!important;margin-top:2px!important;padding:2px 5px!important;
  border:1px solid var(--line)!important;border-radius:999px!important;background:transparent!important;
  color:var(--text,var(--ink))!important;font-size:6.8px!important;line-height:1.2!important;font-style:normal!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
#playModal .v144-sequence-controls{gap:6px!important;flex-shrink:0!important}
#playModal .v144-sequence-controls button{min-height:30px!important;padding:5px 9px!important;border-radius:8px!important;font-size:8px!important}

/* Game Information: every blank value occupies the same visual value row. */
.game-info .game-field-copy{position:relative!important}
.game-info .game-field.is-empty:has(input[type="date"],input[type="time"]) .game-field-copy::after{
  content:"—";position:absolute;left:0;right:0;bottom:1px;text-align:center;color:var(--muted);pointer-events:none;
  font:700 15px/32px system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.game-info .game-field.is-empty:focus-within .game-field-copy::after{opacity:0!important}
#gameInfoManagerModal .v102-info-tile.is-empty:has(input[type="date"],input[type="time"])::after{
  content:"—";grid-row:3!important;grid-column:1!important;align-self:center!important;justify-self:center!important;
  color:var(--muted)!important;font-size:15px!important;font-weight:700!important;line-height:34px!important;pointer-events:none!important;
}
#gameInfoManagerModal .v102-info-tile.is-empty:focus-within::after{opacity:0!important}

/* Player / Substitutions: remove the orphaned half-row and keep the section visually seamless. */
#playerModal .section-row{background:transparent!important;background-image:none!important;box-shadow:none!important;border-color:var(--line)!important}
#playerModal #subsEditor{background:transparent!important;background-image:none!important;box-shadow:none!important}
@media(max-width:600px){
  #playerModal .form-grid.three{grid-template-columns:minmax(0,1fr) 108px!important;gap:8px!important;align-items:end!important}
  #playerModal .form-grid.three>label:nth-child(3){grid-column:1/-1!important}
  #playerModal .form-grid.three>label:nth-child(3) select{width:100%!important}
  #playerModal .section-row{margin:11px 0 6px!important;padding:9px 0!important;border-top:1px solid var(--line)!important;border-bottom:1px solid var(--line)!important}
}

/* Deterministic settings icon (no platform emoji rendering). */
.v97-settings-button .v179922-settings-svg{width:19px!important;height:19px!important;display:block!important;margin:auto!important;fill:none!important;stroke:currentColor!important;stroke-width:1.55!important;stroke-linecap:round!important;stroke-linejoin:round!important}

/* Wrigley palette: same restored timeline, cream / red / yellow pitch meaning. */
body[data-theme-family="wrigley"] #playModal .v141-sequence article{border:0!important;background:transparent!important}
body[data-theme-family="wrigley"] #playModal .v141-sequence article:not(:last-child)::after{background:var(--wr-line-soft)!important}
body[data-theme-family="wrigley"] #playModal .v141-sequence article>em{color:var(--wr-cream)!important;border-color:var(--wr-line-soft)!important}
body[data-theme-family="wrigley"] #playModal .v141-sequence article.tone-ball>span{
  background:var(--wr-cream)!important;color:var(--wr-green-950)!important;border-color:var(--wr-cream)!important;
}
body[data-theme-family="wrigley"] #playModal .v141-sequence article:is(.tone-called,.tone-swing,.tone-foul)>span{
  background:var(--wr-red)!important;color:var(--wr-cream)!important;border-color:var(--wr-red)!important;
}
body[data-theme-family="wrigley"] #playModal .v141-sequence article.tone-play>span{
  background:var(--wr-yellow)!important;color:var(--wr-green-950)!important;border-color:var(--wr-yellow)!important;
}
body[data-theme-family="wrigley"] #playerModal .section-row{border-color:var(--wr-line-soft)!important}

/* The blank Wrigley Home medallion becomes a quiet scoreboard clock mark. */
body[data-theme-family="wrigley"].home-page .v97-brand-mark{
  width:34px!important;height:34px!important;display:block!important;position:relative!important;border-radius:50%!important;
  background:var(--wr-green-800)!important;border:1.5px solid var(--wr-line)!important;box-shadow:none!important;
}
body[data-theme-family="wrigley"].home-page .v97-brand-mark::before,
body[data-theme-family="wrigley"].home-page .v97-brand-mark::after{
  content:""!important;display:block!important;position:absolute!important;left:50%!important;top:50%!important;
  width:1.5px!important;border:0!important;border-radius:999px!important;background:var(--wr-cream)!important;transform-origin:50% 100%!important;
}
body[data-theme-family="wrigley"].home-page .v97-brand-mark::before{height:9px!important;transform:translate(-50%,-100%) rotate(28deg)!important}
body[data-theme-family="wrigley"].home-page .v97-brand-mark::after{height:7px!important;transform:translate(-50%,-100%) rotate(118deg)!important}
body[data-theme-family="wrigley"].home-page .v97-brand-mark>i:first-child{
  position:absolute!important;left:50%!important;top:50%!important;width:4px!important;height:4px!important;border-radius:50%!important;
  background:var(--wr-yellow)!important;transform:translate(-50%,-50%)!important;z-index:2!important;
}
body[data-theme-family="wrigley"].home-page .v97-brand-mark>i:last-child{display:none!important}
