/* Shared comparison presentation for application and illustrative previews. */
dialog.matchup-preview-dialog { width: min(720px, calc(100% - 32px)); max-height: calc(100dvh - 40px); }
.matchup-preview-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--secondary); font-size: 12px; }
.dialog-body .matchup-preview-meta p { margin: 0; font-size: inherit; }
.matchup-preview-status { color: var(--ink); font-weight: 600; white-space: nowrap; }
.matchup-preview-teams { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 12px; padding-top: 18px; }
.matchup-preview-team { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; text-align: center; }
.matchup-preview-team .logo-wrap.detail { width: 48px; height: 48px; }
.matchup-preview-team strong { font: var(--section-weight,700) 22px/1.15 var(--headline-family,"IBM Plex Sans Condensed",sans-serif); }
.matchup-preview-team .team-name-line { justify-content: center; }
.matchup-preview-team .team-name-line > :first-child { min-width: 0; overflow-wrap: anywhere; }
.matchup-preview-team small { color: var(--secondary); font-size: 12px; }
.matchup-preview-at { color: var(--secondary); font: italic 600 16px/1 var(--headline-family,"IBM Plex Sans Condensed",sans-serif); }
.matchup-comparison { margin-top: 22px; }
.matchup-comparison .section-heading { margin-bottom: 8px; }
.matchup-comparison h3 { margin: 0; font: var(--section-weight, 700) 22px/1.15 var(--headline-family, "IBM Plex Sans Condensed", sans-serif); }
.dialog-body .matchup-comparison-note { margin: 0 0 12px; color: var(--secondary); font-size: 12px; line-height: 1.4; }
.matchup-comparison-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 14px; }
.matchup-comparison-table th, .matchup-comparison-table td { padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.matchup-comparison-table th { text-align: left; font-weight: 500; }
.matchup-comparison-table tbody th { font-size: inherit; text-transform: none; letter-spacing: normal; }
.matchup-comparison-table th:first-child { width: 44%; }
.matchup-comparison-table thead th { background: var(--quiet); color: var(--secondary); font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.matchup-comparison-table thead th:not(:first-child), .matchup-comparison-table td { text-align: right; font-variant-numeric: tabular-nums; }
.matchup-comparison-table td.matchup-stat-higher { background: #e7f5e9; color: #17211b; }
.matchup-stat-separator { color: var(--secondary); }
.matchup-comparison .matchup-players-heading { margin-top: 22px; }
.matchup-player-teams { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.matchup-player-teams > section { min-width: 0; }
.matchup-player-teams h4 { margin: 0; padding-bottom: 7px; border-bottom: 2px solid var(--ink); font-size: 15px; }
.matchup-player-teams dl, .matchup-player-teams dd { margin: 0; }
.matchup-player-teams dl > div { padding: 9px 0; border-bottom: 1px solid var(--line); }
.matchup-player-teams dt { color: var(--secondary); font-size: 12px; margin-bottom: 3px; }
.matchup-player { display: block; }
.matchup-player + .matchup-player { margin-top: 7px; }
.matchup-player strong { display: block; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.matchup-player strong small { margin-left: 6px; color: var(--secondary); font-size: 11px; font-weight: 400; }
.matchup-player > span, .matchup-player-missing { display: block; color: var(--secondary); font-size: 12px; line-height: 1.35; }
.matchup-comparison .matchup-player-teams + .matchup-comparison-note { margin-top: 12px; }
.matchup-preview-state { margin-block: 20px; font-size: 14px; color: var(--secondary); }
@media (max-width: 640px) {
  dialog.matchup-preview-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
  .matchup-preview-teams { gap: 8px; }
  .matchup-preview-team strong { font-size: 18px; }
  .matchup-preview-team .logo-wrap.detail { width: 40px; height: 40px; }
  .matchup-comparison-table { font-size: 12px; }
  .matchup-comparison-table th, .matchup-comparison-table td { padding: 7px 4px; }
  .matchup-comparison-table th:first-child { width: 42%; }
  .matchup-comparison-table td { overflow-wrap: anywhere; }
  .matchup-player-teams { gap: 12px; }
  .matchup-player-teams h4 { font-size: 14px; overflow-wrap: anywhere; }
  .matchup-player strong { font-size: 13px; }
}
