/* Statistics screens share the site's theme tokens and work in every palette. */
.analytics-heading { align-items: flex-end; margin-bottom: 24px; }
.analytics-heading h1 { font-size: 31px; letter-spacing: -1px; }
.analytics-heading p { max-width: 680px; line-height: 1.8; }
.analytics-heading .breadcrumb,
.analytics-heading [aria-label="Breadcrumb"] { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.analytics-heading .breadcrumb a,
.analytics-heading [aria-label="Breadcrumb"] a { color: var(--accent-ink, #456428); }
.analytics-heading .breadcrumb svg { width: 11px; height: 11px; }
.analytics-kicker { display: block; color: var(--accent-ink, #456428); font-size: 9px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 8px; }
.analytics-intro { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 23px 25px; margin-bottom: 23px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface, #fff); }
.analytics-intro h2 { font-size: 20px; font-weight: 600; letter-spacing: -.5px; line-height: 1.35; }
.analytics-intro p { max-width: 720px; color: var(--muted); font-size: 11px; line-height: 1.9; margin-top: 8px; }
.analytics-intro > svg,
.analytics-intro > i { width: 46px; height: 46px; flex-shrink: 0; color: var(--accent-ink, #456428); background: var(--accent-soft, #eaf1dd); padding: 12px; border-radius: 10px; }
.analytics-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 21px; align-items: start; margin-bottom: 23px; }
.analytics-grid.thirds { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.analytics-grid > * { min-width: 0; }
.analytics-panel { min-width: 0; background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 11px; overflow: hidden; color: var(--ink); }
.analytics-panel > h2,
.analytics-panel > h3 { padding: 21px 22px 0; font-size: 15px; font-weight: 650; letter-spacing: -.2px; }
.analytics-panel-head,
.analytics-panel > .panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 21px 22px 17px; }
.analytics-panel-head h2,
.analytics-panel-head h3,
.analytics-panel > .panel-head h2,
.analytics-panel > .panel-head h3 { font-size: 15px; font-weight: 650; letter-spacing: -.3px; line-height: 1.4; }
.analytics-panel-head p,
.analytics-panel > .panel-head p { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.analytics-panel-head > span,
.analytics-panel > .panel-head > span { color: var(--muted); font-size: 9px; white-space: nowrap; }
.analytics-panel-head .stat-link,
.analytics-panel > .panel-head .stat-link { font-size: 9px; font-weight: 500; white-space: nowrap; }
.analytics-note { display: flex; align-items: flex-start; gap: 8px; margin: 16px 0 23px; color: var(--muted); font-size: 10px; line-height: 1.85; }
.analytics-note > svg,
.analytics-note > i { flex-shrink: 0; width: 14px; height: 14px; margin-top: 2px; }
.analytics-note a { color: var(--accent-ink, #456428); text-decoration: underline; text-underline-offset: 3px; }
.analytics-panel > .analytics-note { margin: 0; padding: 15px 22px 18px; border-top: 1px solid var(--line); font-size: 9px; }
.analytics-filter { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin: 0 0 17px; }
.analytics-filter > div { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.analytics-filter label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }
.analytics-filter select,
.analytics-filter input { min-height: 37px; border: 1px solid var(--line); border-radius: 6px; padding: 9px 11px; color: var(--ink); background: var(--surface, #fff); font-size: 10px; max-width: 100%; }
.analytics-filter select { padding-right: 27px; cursor: pointer; }
.analytics-filter input { width: 220px; }
.analytics-filter input::placeholder { color: var(--muted); opacity: 1; }
.analytics-filter .search-input { min-height: 37px; background: var(--surface, #fff); border-color: var(--line); padding: 0 11px; }
.analytics-filter .search-input input { padding: 9px 0; border: 0; min-height: 35px; background: transparent; }
.analytics-filter .search-input svg { color: var(--muted); }
.analytics-filter > small,
.analytics-filter > span { color: var(--muted); font-size: 10px; }
.analytics-table-wrap { width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.analytics-table { width: 100%; border-collapse: collapse; font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.analytics-table th { padding: 12px 13px; background: var(--surface-soft, #f2f5eb); color: var(--muted); text-align: right; font-size: 9px; font-weight: 550; letter-spacing: .2px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.analytics-table td { padding: 15px 13px; text-align: right; border-bottom: 1px solid var(--line); color: var(--ink); vertical-align: middle; }
.analytics-table tr:last-child td { border-bottom: 0; }
.analytics-table th:first-child,
.analytics-table td:first-child { padding-left: 22px; text-align: left; }
.analytics-table th:last-child,
.analytics-table td:last-child { padding-right: 22px; }
.analytics-table th.left,
.analytics-table td.left,
.analytics-table .team-cell,
.analytics-table .player-cell { text-align: left; }
.analytics-table .team-cell > a,
.analytics-table .player-cell > a { display: inline-flex; align-items: center; gap: 10px; }
.analytics-table .team-cell .badge { width: 23px; height: 26px; font-size: 15px; }
.analytics-table .rank { color: var(--muted); font-size: 10px; width: 38px; }
.analytics-table .points,
.analytics-table .emphasis { font-weight: 700; }
.analytics-table .positive { color: var(--accent-ink, #456428); font-weight: 650; }
.analytics-table td small { display: block; color: var(--muted); font-size: 9px; font-weight: 400; margin-top: 4px; }
.analytics-table tbody tr { transition: background .15s; }
.analytics-table tbody tr:hover { background: var(--surface-soft, #f2f5eb); }
.stat-link { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-weight: 550; text-align: inherit; background: transparent; border: 0; padding: 0; font-size: inherit; line-height: 1.5; }
.stat-link:hover { color: var(--accent-ink, #456428); }
.stat-link > svg { width: 12px; height: 12px; flex-shrink: 0; }
.stat-link .badge { flex-shrink: 0; }
.analytics-empty { padding: 37px 24px; color: var(--muted); font-size: 11px; line-height: 1.9; text-align: center; }
.analytics-empty > svg { width: 30px; height: 30px; margin: 0 auto 14px; color: var(--accent-ink, #456428); }
.analytics-empty strong,
.analytics-empty h3 { display: block; margin-bottom: 7px; color: var(--ink); font-size: 15px; font-weight: 600; letter-spacing: -.2px; }
.analytics-empty p { max-width: 420px; margin: 0 auto; }
.analytics-empty .button { margin-top: 17px; }
.stats-hero { position: relative; overflow: hidden; padding: 27px 29px 23px; margin-bottom: 23px; border-radius: 12px; background: var(--hero-bg, #1b241e); color: var(--hero-text, #fff); border: 1px solid color-mix(in srgb, var(--hero-muted, #b7c4b2) 18%, transparent); }
.stats-hero::before { content: ''; pointer-events: none; position: absolute; width: 450px; height: 240px; right: -85px; top: -100px; border: 1px solid color-mix(in srgb, var(--hero-muted, #b7c4b2) 13%, transparent); border-radius: 50%; transform: rotate(-25deg); }
.stats-hero::after { content: ''; pointer-events: none; position: absolute; width: 550px; height: 340px; right: -135px; top: -150px; border: 1px solid color-mix(in srgb, var(--hero-muted, #b7c4b2) 9%, transparent); border-radius: 50%; transform: rotate(-25deg); }
.stats-hero > * { position: relative; z-index: 1; }
.stats-hero .analytics-kicker { color: var(--lime); }
.stats-hero > h2 { font-family: var(--condensed); font-weight: 600; font-size: 36px; line-height: 1.1; letter-spacing: -.4px; }
.stats-hero > p { margin-top: 10px; color: var(--hero-muted, #b7c4b2); font-size: 11px; line-height: 1.8; }
.stats-scoreboard { display: grid; grid-template-columns: minmax(0, 1fr) 165px minmax(0, 1fr); gap: 22px; align-items: center; max-width: 760px; margin: 13px auto 23px; }
.stats-club { min-width: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 11px; text-align: center; }
.stats-club > .badge { width: 58px; height: 65px; font-size: 34px; filter: drop-shadow(0 3px 9px #0002); }
.stats-club > strong,
.stats-club > a { font-size: 15px; font-weight: 600; line-height: 1.35; }
.stats-club > small { color: var(--hero-muted, #b7c4b2); font-size: 9px; line-height: 1.6; }
.stats-club .stat-link { color: inherit; }
.stats-club .stat-link:hover { color: var(--lime); }
.stats-score { display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; gap: 10px; }
.stats-score > strong { display: block; font-family: var(--condensed); font-size: 62px; font-weight: 600; line-height: 1; letter-spacing: 2px; white-space: nowrap; }
.stats-score > strong span { color: var(--hero-muted, #b7c4b2); font-size: .65em; }
.stats-score > span,
.stats-score > small { color: var(--hero-muted, #b7c4b2); font-size: 9px; line-height: 1.6; letter-spacing: .6px; }
.stats-game-meta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 19px; padding-top: 17px; border-top: 1px solid color-mix(in srgb, var(--hero-muted, #b7c4b2) 23%, transparent); color: var(--hero-muted, #b7c4b2); font-size: 10px; line-height: 1.7; }
.stats-game-meta > span,
.stats-game-meta > a { display: inline-flex; align-items: center; gap: 6px; }
.stats-game-meta svg { height: 12px; width: 12px; }
.metric-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 23px; }
.metric-tile { position: relative; min-width: 0; background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 9px; padding: 19px 20px 17px; }
.metric-tile > span,
.metric-tile > label,
.metric-tile > small:first-child { display: block; color: var(--muted); font-size: 10px; font-weight: 450; line-height: 1.5; margin-bottom: 10px; }
.metric-tile > strong,
.metric-tile .value { display: block; color: var(--ink); font-family: var(--condensed); font-size: 35px; font-weight: 600; line-height: 1.05; letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.metric-tile > small:last-child,
.metric-tile > p { display: block; color: var(--muted); font-size: 9px; line-height: 1.7; margin-top: 8px; }
.metric-tile strong > small { font-size: .5em; font-weight: 500; margin-left: 2px; }
.metric-tile > svg { position: absolute; right: 17px; top: 18px; width: 15px; height: 15px; color: var(--accent-ink, #456428); }
.stats-hero .metric-strip { margin: 24px 0 0; gap: 0; border-top: 1px solid color-mix(in srgb, var(--hero-muted, #b7c4b2) 23%, transparent); }
.stats-hero .metric-tile { background: transparent; border: 0; border-radius: 0; padding: 20px 22px 0; text-align: center; }
.stats-hero .metric-tile + .metric-tile { border-left: 1px solid color-mix(in srgb, var(--hero-muted, #b7c4b2) 23%, transparent); }
.stats-hero .metric-tile > strong,
.stats-hero .metric-tile .value { color: var(--hero-text, #fff); font-size: 33px; }
.stats-hero .metric-tile > span,
.stats-hero .metric-tile > small,
.stats-hero .metric-tile > p { color: var(--hero-muted, #b7c4b2); }
.comparison-row { display: grid; grid-template-columns: 45px minmax(0, 1fr) 45px; gap: 8px 15px; padding: 14px 22px; font-size: 11px; font-variant-numeric: tabular-nums; align-items: center; }
.comparison-row + .comparison-row { border-top: 1px solid var(--line); }
.comparison-row > strong:first-child,
.comparison-row > span:first-child { text-align: left; font-weight: 650; }
.comparison-row > strong:last-child,
.comparison-row > span:last-child { text-align: right; font-weight: 650; }
.comparison-row > label,
.comparison-row .comparison-label,
.comparison-row > div > span:first-child { display: block; color: var(--muted); font-size: 10px; font-weight: 450; text-align: center; line-height: 1.6; }
.comparison-row > div { min-width: 0; }
.comparison-track { display: flex; gap: 3px; width: 100%; height: 6px; overflow: hidden; border-radius: 5px; background: var(--surface-soft, #f2f5eb); margin-top: 8px; }
.comparison-home,
.comparison-away { display: block; min-width: 1px; height: 100%; border-radius: 4px; }
.comparison-home { background: var(--lime); }
.comparison-away { background: var(--accent-ink, #456428); }
.chance-panel { padding: 22px; background: var(--surface, #fff); color: var(--ink); border: 1px solid var(--line); border-radius: 11px; margin-bottom: 23px; }
.chance-panel h2,
.chance-panel h3 { font-size: 15px; font-weight: 650; letter-spacing: -.3px; line-height: 1.4; }
.chance-panel p { color: var(--muted); font-size: 10px; line-height: 1.8; margin-top: 8px; }
.chance-panel > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.chance-track { display: flex; height: 11px; gap: 4px; border-radius: 7px; overflow: hidden; margin: 22px 0 12px; background: var(--surface-soft, #f2f5eb); }
.chance-track > span { display: block; height: 100%; min-width: 1px; }
.chance-track .home { background: var(--lime); border-radius: 7px 0 0 7px; }
.chance-track .away { background: var(--accent-ink, #456428); border-radius: 0 7px 7px 0; }
.chance-labels { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; font-size: 10px; line-height: 1.7; }
.chance-labels > :last-child { text-align: right; }
.chance-labels strong { color: var(--ink); font-size: 22px; font-family: var(--condensed); font-weight: 600; margin-left: 6px; }
.chance-labels small { display: block; color: var(--muted); font-size: 9px; }
.model-tag { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border-radius: 4px; background: var(--accent-soft, #eaf1dd); color: var(--accent-ink, #456428); font-size: 8px; font-weight: 600; letter-spacing: .4px; line-height: 1.3; white-space: nowrap; }
.model-tag svg { width: 11px; height: 11px; }
.analytics-chart { min-width: 0; padding: 7px 18px 18px; color: var(--muted); }
.analytics-chart svg { display: block; width: 100%; height: auto; min-height: 160px; overflow: visible; font-family: var(--sans); }
.analytics-chart .chart-bar { fill: var(--lime); }
.analytics-chart .chart-bar.alt { fill: var(--accent-ink, #456428); }
.analytics-chart .chart-axis { fill: none; stroke: var(--line); stroke-width: 1; }
.analytics-chart .chart-label { fill: var(--muted); font-size: 10px; }
.analytics-chart .chart-value { fill: var(--ink); font-size: 11px; font-weight: 600; }
.analytics-chart .chart-line { fill: none; stroke: var(--accent-ink, #456428); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.analytics-chart .chart-dot { fill: var(--accent-ink, #456428); stroke: var(--surface, #fff); stroke-width: 2; }
.analytics-chart-legend { display: flex; justify-content: center; gap: 16px; color: var(--muted); font-size: 9px; margin-bottom: 12px; }
.analytics-chart-legend > span { display: inline-flex; gap: 6px; align-items: center; }
.analytics-chart-legend i { width: 7px; height: 7px; border-radius: 2px; background: var(--lime); }
.analytics-chart-legend .alt { background: var(--accent-ink, #456428); }
.analytics-sources { background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 9px; padding: 18px 21px; margin-top: 22px; color: var(--muted); font-size: 10px; line-height: 1.85; }
.analytics-sources summary { cursor: pointer; font-size: 11px; font-weight: 550; color: var(--ink); }
.analytics-sources p { margin-top: 8px; }
.analytics-sources ul { padding-left: 17px; margin: 10px 0 0; }
.analytics-sources a { color: var(--accent-ink, #456428); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.analytics-update { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 7px; color: var(--muted); font-size: 9px; line-height: 1.7; }
.analytics-update svg { width: 12px; height: 12px; }
.analytics-update .sync-dot { width: 5px; height: 5px; background: var(--accent-ink, #456428); }
.player-identity { display: flex; gap: 19px; align-items: center; min-width: 0; }
.player-identity > div { min-width: 0; }
.player-identity h1,
.player-identity h2 { line-height: 1.2; }
.player-identity p { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: var(--muted); font-size: 11px; line-height: 1.8; margin-top: 7px; }
.player-avatar { display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; width: 72px; height: 78px; border-radius: 12px; background: var(--accent-soft, #eaf1dd); color: var(--accent-ink, #456428); font-family: var(--condensed); font-size: 31px; font-weight: 600; border: 1px solid var(--line); }
.player-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.stats-hero .player-avatar { border-color: color-mix(in srgb, var(--hero-muted, #b7c4b2) 23%, transparent); background: color-mix(in srgb, var(--hero-text, #fff) 7%, transparent); color: var(--lime); }
.stats-hero .player-identity p { color: var(--hero-muted, #b7c4b2); }
.stats-tabs { display: flex; align-items: center; gap: 5px; overflow-x: auto; scrollbar-width: none; padding: 4px; background: var(--surface-soft, #f2f5eb); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 22px; width: fit-content; max-width: 100%; }
.stats-tabs::-webkit-scrollbar { display: none; }
.stats-tabs button { border: 0; background: transparent; border-radius: 5px; padding: 9px 15px; color: var(--muted); white-space: nowrap; font-size: 10px; font-weight: 500; min-height: 33px; }
.stats-tabs button:hover { color: var(--ink); }
.stats-tabs button.active,
.stats-tabs button[aria-selected="true"] { background: var(--surface, #fff); color: var(--ink); box-shadow: 0 1px 4px #0000000b; font-weight: 650; }
.rank-bars { display: grid; gap: 19px; padding: 2px 22px 23px; }
.rank-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; }
.rank-bar > span,
.rank-bar > label { font-size: 10px; color: var(--muted); line-height: 1.5; }
.rank-bar > strong { color: var(--ink); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rank-bar small { font-size: 9px; color: var(--muted); font-weight: 400; margin-left: 4px; }
.rank-track { grid-column: 1 / -1; height: 5px; border-radius: 5px; overflow: hidden; background: var(--surface-soft, #f2f5eb); }
.rank-fill { display: block; height: 100%; background: var(--accent-ink, #456428); border-radius: 5px; }
.rank-fill.alt { background: var(--lime); }
.prediction-list { display: grid; gap: 12px; }
.prediction-card { border: 1px solid var(--line); border-radius: 10px; padding: 18px 21px; background: var(--surface, #fff); min-width: 0; }
.prediction-card > header,
.prediction-card > .prediction-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.prediction-card h3 { font-size: 13px; font-weight: 600; line-height: 1.5; }
.prediction-card p { color: var(--muted); font-size: 10px; line-height: 1.8; margin-top: 8px; }
.prediction-card .chance-track { margin-top: 16px; height: 7px; }
.prediction-card .chance-labels { font-size: 9px; }
.prediction-card .chance-labels strong { font-size: 20px; }
.prediction-card > small { color: var(--muted); font-size: 9px; line-height: 1.8; display: block; margin-top: 13px; }
.player-roster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.player-roster > a,
.player-roster > button,
.player-roster > article { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface, #fff); text-align: left; color: var(--ink); }
.player-roster > a:hover,
.player-roster > button:hover { border-color: var(--accent-ink, #456428); }
.player-roster .player-avatar { width: 42px; height: 46px; border-radius: 7px; font-size: 22px; }
.player-roster strong { display: block; font-size: 11px; font-weight: 600; line-height: 1.5; }
.player-roster small { display: block; font-size: 9px; color: var(--muted); margin-top: 4px; line-height: 1.6; }
.analytics-table .player-avatar { width: 29px; height: 32px; font-size: 16px; border-radius: 5px; }

/* The source helpers intentionally keep tables and charts usable without scripts. */
.sidebar { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.sidebar > * { flex-shrink: 0; }
#content > .analytics-panel { margin-bottom: 23px; }
.analytics-grid > .analytics-panel { margin: 0; }
.analytics-back { color: var(--muted); font-size: 10px; margin-bottom: 17px; font-weight: 450; }
.analytics-intro { position: relative; overflow: hidden; }
.analytics-intro .eyebrow { color: var(--accent-ink, #456428); }
.analytics-intro-mark { position: relative; flex-shrink: 0; padding: 0 15px; color: var(--accent-ink, #456428); opacity: .22; font: 700 105px/.9 var(--condensed); letter-spacing: -8px; transform: rotate(-8deg); }
.analytics-intro-mark span { display: inline-block; font-size: .7em; letter-spacing: -5px; margin-left: 5px; }
.analytics-results-count { padding: 17px 22px 13px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.analytics-filter .stats-tabs { margin-bottom: 0; flex-wrap: nowrap; }
.analytics-filter > label { flex-direction: column; align-items: flex-start; gap: 6px; }
.analytics-filter .analytics-player-search { flex: 1 1 200px; }
.analytics-filter .analytics-player-search input { width: 100%; }
.analytics-table caption { padding: 0 22px 12px; color: var(--muted); font-size: 9px; font-weight: 400; text-align: left; line-height: 1.7; white-space: normal; }
.analytics-table th:nth-child(2), .analytics-table td:nth-child(2) { text-align: left; }
.metric-tile > strong { overflow-wrap: anywhere; }
.metric-tile > strong + span { display: block; margin: 8px 0 0; color: var(--muted); font-size: 9px; line-height: 1.7; font-weight: 400; }
.metric-strip:has(> .metric-tile > strong + span) > .metric-tile:nth-child(n + 2) > strong { font-family: var(--sans); font-size: 19px; line-height: 1.35; letter-spacing: -.35px; }
.analytics-panel > .metric-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px 22px 20px; margin: 0; }
.analytics-panel > .metric-strip .metric-tile { background: var(--surface-soft, #f2f5eb); padding: 15px; }
.stats-hero .eyebrow { color: var(--lime); }
.stats-hero .stat-link { color: var(--hero-text, #fff); }
.stats-hero .stat-link:hover { color: var(--lime); }
.stats-hero.player-identity h2 { font: 600 34px/1.1 var(--condensed); letter-spacing: -.3px; }
.stats-hero.player-identity > .button { margin-left: auto; flex-shrink: 0; }
.stats-score > strong > i { display: inline; color: var(--hero-muted, #b7c4b2); font-style: normal; font-size: .7em; }
.stats-game-meta:first-child { padding-top: 0; border-top: 0; margin-bottom: 23px; justify-content: space-between; }
.stats-game-meta > strong { font-size: 9px; font-weight: 600; letter-spacing: .8px; }
.stats-game-meta > strong.is-live { color: var(--lime); }
.player-bio { display: flex; flex-wrap: wrap; gap: 7px 18px; margin-top: 14px; color: var(--hero-muted, #b7c4b2); font-size: 9px; line-height: 1.7; }
.player-bio strong { color: var(--hero-text, #fff); font-weight: 500; margin-left: 5px; }
.comparison-row { display: block; }
.comparison-row > div:first-child { display: grid; grid-template-columns: minmax(60px, 1fr) minmax(0, 2fr) minmax(60px, 1fr); align-items: center; gap: 12px; }
.comparison-row > div:first-child > strong { font-size: 11px; font-weight: 600; text-align: left; line-height: 1.6; }
.comparison-row > div:first-child > strong:last-child { text-align: right; }
.comparison-row > div:first-child > span { color: var(--muted); text-align: center; font-size: 10px; font-weight: 400; line-height: 1.6; }
.comparison-missing { margin-top: 7px; color: var(--muted); font-size: 8px; line-height: 1.5; text-align: center; }
.analytics-panel > .chance-panel { margin: 0; border: 0; border-radius: 0; padding-top: 0; }
.chance-top { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 19px; }
.chance-top > strong { font-size: 11px; font-weight: 550; }
.chance-labels > span > strong { display: block; font-size: 29px; margin: 5px 0 0; }
.chance-track { margin-top: 15px; margin-bottom: 12px; }
.chance-panel > small { display: block; margin-top: 9px; color: var(--muted); font-size: 9px; line-height: 1.8; }
.chart-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px 17px; margin-top: -2px; color: var(--muted); font-size: 9px; line-height: 1.6; }
.chart-legend > span { display: inline-flex; gap: 6px; align-items: center; }
.chart-legend i { width: 7px; height: 7px; border-radius: 2px; background: var(--lime); }
.chart-legend i.alt { background: var(--accent-ink, #456428); }
.chart-data { border-top: 1px solid var(--line); }
.chart-data summary { color: var(--muted); font-size: 9px; padding: 12px 22px; cursor: pointer; line-height: 1.5; }
.chart-data[open] summary { padding-bottom: 15px; }
.chart-data .analytics-table caption { font-size: 8px; }
.rank-bar { display: block; }
.rank-bar > div:first-child { display: flex; align-items: center; gap: 9px; min-width: 0; margin-bottom: 9px; }
.rank-bar > div:first-child > span:not(.badge):not(.rank-number),
.rank-bar > div:first-child > .stat-link { font-size: 11px; min-width: 0; line-height: 1.5; }
.rank-bar .rank-number { min-width: 12px; color: var(--muted); font-size: 9px; font-variant-numeric: tabular-nums; }
.rank-bar .badge { width: 20px; height: 23px; font-size: 13px; }
.rank-bar > div:first-child > strong { margin-left: auto; color: var(--ink); font-size: 12px; font-weight: 600; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.rank-fill { background: var(--bar-color, var(--accent-ink, #456428)); }
.stats-tabs { flex-wrap: nowrap; }
.stats-tabs button { flex: 0 0 auto; }
.prediction-list { padding: 0 21px 21px; }
.prediction-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.prediction-card-heading > .stat-link { font-size: 12px; flex-wrap: wrap; column-gap: 5px; }
.prediction-card-heading > .stat-link small { color: var(--muted); font-size: 9px; font-weight: 400; }
.prediction-card-heading > span { color: var(--muted); font-size: 8px; line-height: 1.8; text-align: right; flex-shrink: 0; }
.prediction-card > .chance-panel { margin: 17px 0 13px; padding: 16px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.prediction-card > .chance-panel .chance-top { margin-bottom: 14px; }
.prediction-card > .chance-panel .chance-labels strong { font-size: 24px; }
.prediction-card > .text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--accent-ink, #456428); font-size: 9px; }
.prediction-card > .text-link svg { width: 12px; height: 12px; }
.analytics-method { padding: 0 22px 22px; font-size: 11px; line-height: 1.9; color: var(--muted); }
.analytics-method p + p { margin-top: 12px; }
.analytics-sources > a { display: inline-flex; align-items: center; gap: 6px; margin: 10px 16px 0 0; font-size: 9px; }
.analytics-sources > a svg { width: 11px; height: 11px; }

@media (min-width: 1450px) {
  .analytics-grid { gap: 24px; }
  .metric-tile { padding: 22px 23px 20px; }
  .metric-tile > strong, .metric-tile .value { font-size: 39px; }
  .stats-hero { padding: 30px 34px 26px; }
}
@media (max-width: 1150px) {
  .analytics-grid.thirds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-grid.thirds > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .metric-strip { gap: 10px; }
  .metric-tile { padding: 17px 15px; }
  .metric-tile > strong, .metric-tile .value { font-size: 32px; }
  .player-roster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-table th, .analytics-table td { padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 900px) {
  .analytics-heading { align-items: flex-start; }
  .analytics-grid { gap: 17px; }
  .analytics-panel-head, .analytics-panel > .panel-head { padding: 19px 18px 15px; }
  .analytics-panel-head h2, .analytics-panel-head h3,
  .analytics-panel > .panel-head h2, .analytics-panel > .panel-head h3 { font-size: 14px; }
  .analytics-panel-head > span, .analytics-panel > .panel-head > span { white-space: normal; text-align: right; }
  .comparison-row { padding-left: 18px; padding-right: 18px; gap: 8px 10px; grid-template-columns: 35px minmax(0, 1fr) 35px; }
  .stats-scoreboard { grid-template-columns: minmax(0, 1fr) 125px minmax(0, 1fr); gap: 12px; }
  .stats-club > strong, .stats-club > a { font-size: 13px; }
  .stats-score > strong { font-size: 54px; }
  .analytics-chart { padding-left: 14px; padding-right: 14px; }
}
@media (max-width: 700px) {
  .analytics-heading { gap: 13px; margin-bottom: 21px; flex-wrap: wrap; }
  .analytics-heading h1 { font-size: 27px; letter-spacing: -.8px; }
  .analytics-heading p { font-size: 10px; line-height: 1.8; margin-top: 7px; }
  .analytics-heading .breadcrumb, .analytics-heading [aria-label="Breadcrumb"] { font-size: 9px; margin-bottom: 10px; }
  .analytics-heading > .analytics-update { width: 100%; }
  .analytics-intro { padding: 20px 18px; gap: 15px; margin-bottom: 20px; align-items: flex-start; }
  .analytics-intro h2 { font-size: 18px; }
  .analytics-intro p { font-size: 10px; }
  .analytics-intro > svg, .analytics-intro > i { width: 37px; height: 37px; padding: 10px; }
  .analytics-kicker { font-size: 8px; letter-spacing: 1.2px; }
  .analytics-grid, .analytics-grid.thirds { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-bottom: 20px; }
  .analytics-grid.thirds > :last-child:nth-child(odd) { grid-column: auto; }
  .analytics-panel { border-radius: 9px; }
  .analytics-panel-head, .analytics-panel > .panel-head { padding: 19px 17px 15px; }
  .analytics-panel > h2, .analytics-panel > h3 { padding-left: 17px; padding-right: 17px; }
  .analytics-filter { gap: 10px; margin-bottom: 15px; }
  .analytics-filter > div { gap: 8px; max-width: 100%; }
  .analytics-filter label { font-size: 9px; gap: 6px; }
  .analytics-filter input { width: 100%; }
  .analytics-filter .search-input { flex: 1; min-width: 165px; }
  .analytics-filter .search-input input { min-width: 100px; width: 100%; }
  .analytics-filter select, .analytics-filter input { min-height: 39px; font-size: 10px; }
  .analytics-table { font-size: 10px; }
  .analytics-table th { padding-top: 12px; padding-bottom: 12px; font-size: 8px; }
  .analytics-table td { padding-top: 14px; padding-bottom: 14px; }
  .analytics-table th:first-child, .analytics-table td:first-child { padding-left: 17px; }
  .analytics-table th:last-child, .analytics-table td:last-child { padding-right: 17px; }
  .analytics-table .team-cell > a, .analytics-table .player-cell > a { gap: 8px; }
  .analytics-table .team-cell .badge { width: 20px; height: 23px; font-size: 13px; }
  .analytics-table td small { font-size: 8px; }
  .analytics-panel > .analytics-note { padding: 14px 17px 16px; font-size: 9px; }
  .analytics-note { font-size: 9px; margin-top: 13px; margin-bottom: 20px; }
  .analytics-empty { padding: 30px 20px; font-size: 10px; }
  .stats-hero { padding: 22px 18px 20px; margin-bottom: 20px; }
  .stats-hero > h2 { font-size: 32px; }
  .stats-scoreboard { grid-template-columns: minmax(0, 1fr) 98px minmax(0, 1fr); gap: 8px; margin: 13px auto 20px; }
  .stats-club { gap: 10px; }
  .stats-club > .badge { width: 43px; height: 50px; font-size: 27px; }
  .stats-club > strong, .stats-club > a { font-size: 11px; line-height: 1.5; }
  .stats-club > small { font-size: 8px; }
  .stats-score { gap: 8px; }
  .stats-score > strong { font-size: 45px; letter-spacing: 1px; }
  .stats-score > span, .stats-score > small { font-size: 8px; }
  .stats-game-meta { font-size: 8px; gap: 6px 13px; padding-top: 15px; }
  .stats-game-meta svg { width: 11px; height: 11px; }
  .metric-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
  .metric-tile { padding: 17px 16px 15px; }
  .metric-tile > span, .metric-tile > label, .metric-tile > small:first-child { font-size: 9px; margin-bottom: 9px; }
  .metric-tile > strong, .metric-tile .value { font-size: 33px; }
  .metric-tile > small:last-child, .metric-tile > p { font-size: 8px; margin-top: 7px; }
  .stats-hero .metric-strip { margin-top: 20px; row-gap: 20px; }
  .stats-hero .metric-tile { padding: 18px 12px 0; }
  .stats-hero .metric-tile:nth-child(odd) { border-left: 0; }
  .stats-hero .metric-tile:nth-child(n + 3) { padding-top: 0; }
  .stats-hero .metric-tile > strong, .stats-hero .metric-tile .value { font-size: 31px; }
  .comparison-row { padding: 14px 17px; grid-template-columns: 35px minmax(0, 1fr) 35px; }
  .comparison-row > label, .comparison-row .comparison-label, .comparison-row > div > span:first-child { font-size: 9px; }
  .comparison-track { margin-top: 7px; height: 5px; }
  .chance-panel { padding: 20px 17px; margin-bottom: 20px; border-radius: 9px; }
  .chance-panel h2, .chance-panel h3 { font-size: 14px; }
  .chance-panel p { font-size: 9px; }
  .chance-track { margin-top: 19px; height: 9px; }
  .chance-labels { font-size: 9px; gap: 12px; }
  .chance-labels strong { display: block; margin: 2px 0 0; font-size: 25px; }
  .chance-labels small { font-size: 8px; }
  .analytics-chart { padding: 5px 16px 18px; }
  .analytics-chart .chart-label { font-size: 10px; }
  .analytics-sources { padding: 16px 17px; font-size: 9px; margin-top: 20px; }
  .analytics-sources summary { font-size: 10px; }
  .analytics-update { font-size: 8px; }
  .player-identity { gap: 14px; align-items: center; }
  .player-avatar { width: 58px; height: 65px; border-radius: 9px; font-size: 27px; }
  .player-identity p { font-size: 9px; gap: 5px 7px; }
  .stats-tabs { margin-bottom: 20px; width: 100%; padding: 3px; }
  .stats-tabs button { padding: 9px 12px; font-size: 9px; flex: 1; min-height: 35px; }
  .rank-bars { padding: 3px 17px 21px; gap: 18px; }
  .prediction-card { padding: 17px; }
  .prediction-card h3 { font-size: 12px; }
  .prediction-card p { font-size: 9px; }
  .prediction-card .chance-labels strong { display: inline; margin-left: 5px; }
  .player-roster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .player-roster > a, .player-roster > button, .player-roster > article { padding: 13px 11px; gap: 9px; align-items: flex-start; }
  .player-roster .player-avatar { width: 32px; height: 37px; font-size: 19px; border-radius: 5px; }
  .player-roster strong { font-size: 10px; }
  .player-roster small { font-size: 8px; }
}
@media (max-width: 380px) {
  .stats-scoreboard { grid-template-columns: minmax(0, 1fr) 80px minmax(0, 1fr); gap: 5px; }
  .stats-score > strong { font-size: 40px; }
  .stats-club > strong, .stats-club > a { font-size: 10px; }
  .player-roster { grid-template-columns: minmax(0, 1fr); }
  .analytics-filter > div { width: 100%; }
  .analytics-filter .search-input { width: 100%; }
}
@media (max-width: 700px) {
  #content > .analytics-panel { margin-bottom: 20px; }
  .analytics-intro-mark { font-size: 80px; padding: 4px 5px 0 0; letter-spacing: -5px; }
  .analytics-intro-mark span { letter-spacing: -3px; }
  .analytics-results-count { padding: 15px 17px 12px; font-size: 9px; }
  .analytics-table caption { padding-left: 17px; padding-right: 17px; font-size: 8px; }
  .analytics-filter { align-items: flex-end; justify-content: flex-start; }
  .analytics-filter .stats-tabs { width: auto; flex: 0 0 auto; }
  .analytics-filter > label { flex: 1 1 calc(50% - 10px); min-width: 0; }
  .analytics-filter > label select { width: 100%; min-width: 0; }
  .analytics-filter > .analytics-player-search { flex-basis: 100%; }
  .metric-strip:has(> .metric-tile > strong + span) > .metric-tile:nth-child(n + 2) > strong { font-size: 18px; }
  .metric-tile > strong + span { font-size: 8px; }
  .analytics-panel > .metric-strip { padding: 13px 17px 18px; }
  .stats-hero.player-identity { flex-wrap: wrap; }
  .stats-hero.player-identity h2 { font-size: 29px; }
  .stats-hero.player-identity > div:not(.player-avatar) { flex: 1; min-width: 160px; }
  .stats-hero.player-identity > .button { margin-left: 0; }
  .stats-game-meta:first-child { margin-bottom: 20px; gap: 8px 12px; }
  .stats-game-meta > strong { font-size: 8px; }
  .player-bio { gap: 5px 13px; font-size: 8px; margin-top: 11px; }
  .comparison-row > div:first-child { grid-template-columns: minmax(50px, 1fr) minmax(0, 1.8fr) minmax(50px, 1fr); gap: 8px; }
  .comparison-row > div:first-child > strong { font-size: 10px; }
  .comparison-row > div:first-child > span { font-size: 9px; }
  .chance-top { gap: 7px; margin-bottom: 16px; }
  .chance-top > strong { font-size: 10px; }
  .chance-labels > span > strong { font-size: 27px; margin-top: 4px; }
  .chance-panel > small { font-size: 8px; }
  .chart-data summary { padding: 12px 17px; }
  .rank-bar > div:first-child > span:not(.badge):not(.rank-number), .rank-bar > div:first-child > .stat-link { font-size: 10px; }
  .rank-bar > div:first-child > strong { font-size: 11px; }
  .stats-tabs { width: 100%; }
  .stats-tabs button { flex: 0 0 auto; }
  .prediction-list { padding: 0 17px 17px; }
  .prediction-card-heading { flex-wrap: wrap; gap: 5px; }
  .prediction-card-heading > .stat-link { font-size: 11px; }
  .prediction-card-heading > span { text-align: left; font-size: 8px; }
  .prediction-card .chance-labels > span > strong { display: block; margin: 4px 0 0; }
  .analytics-method { padding: 0 17px 20px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .analytics-table tbody tr { transition: none; }
}

/* Official portraits keep the same dimensions when a photograph is unavailable. */
.player-link { display: inline-flex; align-items: center; gap: 9px; vertical-align: middle; text-align: left; }
.player-link > span:last-child { min-width: 0; }
.player-portrait { position: relative; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; isolation: isolate; width: 34px; height: 38px; border: 1px solid var(--line); border-radius: 7px; background: var(--accent-soft, #eaf1dd); color: var(--accent-ink, #456428); vertical-align: middle; }
.player-portrait .player-initials { font-family: var(--condensed); font-size: 17px; font-weight: 650; letter-spacing: .3px; line-height: 1; }
.player-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; background: var(--surface, #fff); }
.player-portrait-profile { width: 104px; height: 116px; border-radius: 12px; }
.player-portrait-profile .player-initials { font-size: 40px; }
.player-portrait-spotlight { width: 91px; height: 102px; border-radius: 10px; }
.player-portrait-spotlight .player-initials { font-size: 36px; }
.stats-hero > .player-portrait { border-color: color-mix(in srgb, var(--hero-muted, #b7c4b2) 30%, transparent); background: color-mix(in srgb, var(--hero-text, #fff) 10%, transparent); color: var(--lime); }
.stats-hero.player-identity > div > p { color: var(--hero-muted, #b7c4b2); }
.stats-hero.player-identity > div > p > .stat-link { color: var(--hero-text, #fff); }
.player-photo-source { display: inline-flex; align-items: center; gap: 6px; margin-top: 11px; color: var(--hero-muted, #b7c4b2); font-size: 8px; line-height: 1.6; }
.player-photo-source:hover { color: var(--hero-text, #fff); }
.player-photo-source svg { width: 11px; height: 11px; }
.rank-bar > div:first-child > .player-portrait { width: 29px; height: 32px; border-radius: 5px; }
.rank-bar > div:first-child > .player-portrait > .player-initials { font-size: 15px; }
.analytics-table-wrap:focus-visible { outline: 2px solid var(--accent-ink, #456428); outline-offset: -3px; border-radius: 5px; }
/* Telegram setup reflects server checks; TEST messages only go to the linked chat. */
.telegram-checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 8px; margin: 22px 0 20px; overflow: hidden; background: var(--surface-soft); }
.telegram-check { padding: 14px 16px; min-width: 0; display: grid; gap: 7px; font-size: 10px; }
.telegram-check:nth-child(even) { border-left: 1px solid var(--line); }
.telegram-check:nth-child(n + 3) { border-top: 1px solid var(--line); }
.telegram-check > span { color: var(--muted); font-size: 9px; }
.telegram-check > strong { font-weight: 600; color: var(--muted); overflow-wrap: anywhere; }
.telegram-check > strong.is-ready { color: var(--accent-ink); }
.telegram-connection-actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.telegram-feedback { display: flex; align-items: flex-start; gap: 9px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-soft); color: var(--muted); font-size: 11px; line-height: 1.8; margin: 0 0 18px; overflow-wrap: anywhere; }
.telegram-feedback > svg { flex-shrink: 0; width: 15px; height: 15px; margin-top: 3px; }
.telegram-feedback.is-success { background: var(--accent-soft); color: var(--accent-ink); }
.telegram-feedback.is-error { background: var(--warning-bg); border-color: var(--warning-border); color: var(--warning-ink); }
.telegram-help, .connect-card p.telegram-help { font-size: 10px; color: var(--muted); line-height: 1.8; margin: 15px 0 0; }
.telegram-test-card, .telegram-launch-card { padding: 22px 25px; }
.telegram-test-card, .telegram-selected-games, .telegram-defaults { margin-top: 20px; }
.telegram-section-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 11px; }
.telegram-section-heading h3, .telegram-launch-card h3 { font-size: 14px; font-weight: 600; }
.telegram-test-label { color: var(--accent-ink); background: var(--accent-soft); border: 1px solid var(--line); border-radius: 4px; padding: 4px 6px; font-size: 8px; letter-spacing: .7px; font-weight: 650; }
.telegram-test-card > p:first-of-type { font-size: 11px; color: var(--muted); line-height: 1.9; max-width: 550px; }
.telegram-test-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-top: 18px; }
.telegram-test-controls > label { display: grid; gap: 8px; min-width: 170px; flex: 1; font-size: 9px; color: var(--muted); }
.telegram-test-controls select { min-height: 40px; width: 100%; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: var(--surface); padding: 9px 11px; font-size: 11px; }
.telegram-test-controls > button { min-height: 40px; }
.telegram-launch-card ol { margin: 17px 0; padding-left: 17px; color: var(--muted); font-size: 11px; line-height: 1.9; }
.telegram-launch-card li + li { margin-top: 10px; }
.telegram-launch-card li a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.telegram-launch-card li strong { color: var(--ink); font-weight: 550; }
.telegram-delivery-note { margin: 18px 0 0; }
.release-downloads { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 18px; }
.platform-card .release-downloads > .button { margin-top: 0; }
.platform-card p.release-download-note { color: var(--warning-ink); font-size: 10px; margin-top: 14px; }
@media (max-width: 700px) {
  .telegram-check { padding: 13px 12px; font-size: 10px; }
  .telegram-check > span { font-size: 8px; }
  .telegram-connection-actions > .button { flex: 1 1 calc(50% - 9px); font-size: 10px; padding: 11px 10px; }
  .telegram-feedback { font-size: 10px; padding: 11px 12px; }
  .telegram-test-card, .telegram-launch-card { padding: 21px 22px; }
  .telegram-test-controls > label, .telegram-test-controls > button { flex: 1 1 100%; }
  .telegram-test-controls select { font-size: 12px; min-height: 43px; }
  .telegram-test-controls > button { min-height: 43px; }
  .telegram-test-card > p:first-of-type, .telegram-launch-card ol { font-size: 10px; }
}
@media (max-width: 700px) {
  .player-portrait-profile { width: 79px; height: 91px; }
  .player-portrait-profile .player-initials { font-size: 32px; }
  .player-link { gap: 8px; }
  .player-portrait-thumb { width: 30px; height: 34px; }
}
.alerts-sign-in { padding: clamp(22px, 4vw, 42px); max-width: 720px; }
.alerts-sign-in h2 { margin: 14px 0; font-size: 25px; }
.alerts-sign-in p { color: var(--muted); font-size: 13px; line-height: 1.8; margin: 16px 0; }
.alerts-sign-in .button { display: inline-flex; }
.alerts-sign-in .text-link { display: inline-flex; align-items: center; gap: 8px; }
