/* Leaderboard and player analytics. Colors describe ownership consistently. */
.app.leaderboard-app { width: min(100%, 1320px); max-width: 1320px; margin: auto; box-sizing: border-box; }
.leaderboard-main { --gold: #f2c24b; --received: #789bbf; --muted: #a5aebb; --panel: #121923; --border: #2a3441; color: #edf0f5; display: flex; flex-direction: column; gap: 42px; padding: 30px 26px 70px; font-size: 15px; line-height: 1.5; }
.leaderboard-main *, .detail-drawer * { box-sizing: border-box; }
.leaderboard-main h2, .leaderboard-main h3, .leaderboard-main h4 { margin: 0; line-height: 1.2; }
.leaderboard-main h2 { font-size: clamp(34px, 4vw, 54px); font-weight: 850; letter-spacing: -.035em; }
.leaderboard-main h3 { font-size: 24px; letter-spacing: -.02em; }
.leaderboard-main h4 { font-size: 18px; }
.leaderboard-main p { margin: 8px 0; }
.leaderboard-main a { color: inherit; text-decoration: none; }
.leaderboard-main button, .detail-drawer button { font: inherit; color: inherit; cursor: pointer; }
.leaderboard-main button { border: 0; background: none; }
.leaderboard-main :focus-visible, .detail-drawer :focus-visible { outline: 3px solid #f2c24b; outline-offset: 4px; }
.leaderboard-main section[id] { scroll-margin-top: 90px; }
.leaderboard-main small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.leaderboard-main b, .leaderboard-main strong { font-variant-numeric: tabular-nums; }
.leaderboard-main .muted, .card-note, .chart-caption, .page-head p, .section-head p { color: var(--muted); }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.page-head .back-link { display: inline-block; color: #bac3cf; font-size: 13px; margin-bottom: 20px; }
.eyebrow { color: #f2c24b !important; font-size: 11px; text-transform: uppercase; font-weight: 750; letter-spacing: .15em; }
.season-control { display: grid; gap: 5px; font-size: 12px; color: var(--muted); }
.season-control input { width: 95px; padding: 10px 12px; color: #edf0f5; background: #121923; border: 1px solid var(--border); border-radius: 8px; font: inherit; font-size: 16px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 19px; }
.section-head p { font-size: 13px; max-width: 650px; margin: 5px 0 0; }
section > .section-head > p { text-align: right; }
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 13px; }
.leaderboard-main table { width: 100%; border-collapse: collapse; text-align: left; }
.leaderboard-main th, .leaderboard-main td { padding: 19px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.leaderboard-main thead th { font-size: 11px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; background: #111821; }
.leaderboard-main tbody tr:last-child > * { border-bottom: 0; }
.standings tbody tr { cursor: pointer; transition: background .15s; }
.standings tbody tr:hover { background: #1b2532; }
.standings tbody tr:first-child { background: linear-gradient(90deg, #f2c24b12, transparent); }
.standings tbody th a { font-size: 18px; }
.rank { font-size: 20px; color: #aab4c2; }
.standings tbody tr:first-child .rank, .points-cell { color: var(--gold); }
.points-cell { font-size: 30px; font-weight: 800; }
.form { display: flex; gap: 5px; }
.form a { width: 27px; height: 28px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 5px; font-size: 12px; }
.form .form-win { color: var(--gold); background: #f2c24b14; border-color: #f2c24b50; }
.form .form-loss { color: #e39595; }
.panel { background: linear-gradient(135deg, #151e2a, #101721); border: 1px solid var(--border); border-radius: 14px; padding: 22px; min-width: 0; }
.series-grid, .bonus-grid, .split-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.season-pair { display: flex; justify-content: space-between; margin: 20px 0; gap: 12px; }
.season-pair > div { display: grid; gap: 3px; }
.season-pair > div:last-child { text-align: right; }
.season-pair span { color: #cbd2dd; font-size: 14px; }
.series-card .current-week { border-top: 1px solid var(--border); padding-top: 16px; }
.current-week > .section-head { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.status { display: inline-flex; align-items: center; padding: 4px 9px; border: 1px solid #4a5462; border-radius: 30px; font-size: 10px; font-weight: 750; text-transform: uppercase; white-space: nowrap; color: #bec6d1; }
.status-final { color: var(--gold); border-color: #f2c24b66; background: #f2c24b0b; }
.status-live { color: #71d7a3; border-color: #71d7a366; background: #71d7a30b; }
.matchup-score { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.matchup-score > div { display: grid; gap: 3px; }
.matchup-score > div:last-child { text-align: right; }
.matchup-score span { font-size: 12px; color: #c4ccd7; }
.matchup-score strong { font-size: 36px; line-height: 1.15; }
.matchup-score .score-divider { font-size: 25px; color: #596577; }
.winner-line { color: var(--gold); font-size: 13px; }
.series-progress { margin: 18px 0 10px; }
.progress-labels { display: flex; gap: 18px; font-size: 12px; color: #c6ced8; margin-bottom: 8px; }
.progress-labels span { display: inline-flex; align-items: center; gap: 5px; }
.progress-labels i, .legend-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }
.progress-rail { display: flex; height: 6px; border-radius: 8px; overflow: hidden; background: #283240; }
.progress-final { background: #f2c24b; }
.progress-live { background: #71d7a3; }
.progress-remaining { background: #596577; }
.finish-note { color: var(--muted); font-size: 11px; }
.leaderboard-main .text-link { color: var(--gold); display: inline-block; font-size: 13px; margin-top: 10px; padding: 0; }
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card-note { font-size: 12px; min-height: 35px; }
.team-row { min-height: 0; width: 100%; display: flex; gap: 12px; align-items: center; text-align: left; padding: 13px 0; border-bottom: 1px solid #2a3441 !important; }
.team-row:last-child { border-bottom: 0 !important; }
.team-row > span:nth-child(2) { flex: 1; min-width: 0; }
.team-row b { font-size: 14px; }
.team-row small { margin-top: 3px; }
.stat-action:hover { color: #f2c24b; }
.team-logo { width: 40px; height: 40px; position: relative; display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 8px; background: #202c3b; color: #b8c4d5; overflow: hidden; }
.team-logo > span { font-size: 10px; font-weight: 800; }
.team-logo img { position: absolute; inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); object-fit: contain; background: #202c3b; }
.all-teams { margin-top: 18px; }
.leaderboard-main summary { cursor: pointer; color: #cbd4df; }
.all-teams > summary { font-size: 13px; }
.weekly-row, .history-week > summary { display: grid; grid-template-columns: 90px 1fr 100px 90px 30px; align-items: center; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.weekly-list { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.weekly-list > :last-child { border-bottom: 0; }
.weekly-row:hover { background: #192331; }
.entry-switcher { display: flex; gap: 8px; flex-wrap: wrap; margin-top: -20px; }
.entry-switcher a { padding: 8px 12px; border: 1px solid var(--border); border-radius: 25px; color: #b4becc; font-size: 12px; }
.entry-switcher a[aria-current] { color: var(--gold); border-color: #f2c24b66; background: #f2c24b0b; }
.player-hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; }
.hero-score { display: flex; flex-direction: column; justify-content: center; padding: 15px 0; }
.hero-points { font-size: 104px; line-height: 1.1; font-weight: 850; letter-spacing: -.05em; color: var(--gold); font-variant-numeric: tabular-nums; }
.hero-points > span { font-size: 18px; color: #b9c2d0; font-weight: 500; margin-left: 17px; letter-spacing: 0; }
.hero-record { display: flex; gap: 30px; margin-top: 18px; color: #b2bdcb; font-size: 12px; }
.hero-record b { color: #edf0f5; font-size: 22px; display: block; }
.anchor-nav { display: flex; flex-wrap: wrap; gap: 22px; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: 13px; margin-top: -10px; }
.anchor-nav a:hover { color: var(--gold); }
.performance-headline { border-left: 3px solid var(--gold); padding: 3px 0 3px 24px; max-width: 980px; }
.performance-headline h3 { font-size: 30px; line-height: 1.25; max-width: 850px; }
.performance-headline > p:last-child { color: var(--muted); font-size: 12px; }
.contribution-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 35px; }
.point-stack { height: 27px; display: flex; background: #283240; overflow: hidden; border-radius: 7px; margin-top: 14px; }
.from-picks { background: #f2c24b; }
.from-received { background: #789bbf; }
.point-legend { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 14px 0 20px; }
.point-legend button { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; padding: 0; }
.point-legend i { width: 8px; height: 8px; border-radius: 2px; }
.point-legend b { font-size: 19px; }
.contribution summary { font-size: 12px; }
.component-row { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 13px; font-size: 12px; color: #b7c1ce; }
.component-row b { color: #edf0f5; }
.core-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.metric { padding: 15px 0 !important; text-align: left; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.metric > span { color: #bdc6d2; font-size: 12px; }
.metric strong { font-size: 27px; line-height: 1.25; }
.metric small { font-size: 11px; }
.range-control { color: #b7c1ce; font-size: 11px; display: grid; gap: 5px; }
.range-control select { color: #edf0f5; background: #17202c; border: 1px solid var(--border); border-radius: 7px; padding: 9px; font: inherit; font-size: 12px; max-width: 100%; }
.chart-scroll { overflow-x: auto; padding: 15px 4px 65px; }
.margin-chart { display: grid; grid-template-columns: repeat(var(--columns), minmax(55px, 1fr)); height: 255px; position: relative; gap: 9px; }
.zero-line { position: absolute; top: 50%; left: 0; right: 0; border-top: 1px solid #637085; pointer-events: none; }
.zero-line > span { position: absolute; left: -2px; top: 3px; font-size: 10px; color: #8291a5; }
.margin-mark { position: relative; height: 100%; padding: 0; }
.margin-bar { display: block; position: absolute; left: 25%; width: 50%; background: #f2c24b; border-radius: 4px 4px 0 0; min-height: 0; }
.margin-bar.negative { background: #b57479; border-radius: 0 0 4px 4px; }
.margin-value { display: block; top: auto; transform: none; position: absolute; left: 0; right: 0; color: #f2c24b; font-size: 12px; padding-bottom: 3px; }
.margin-value.negative { bottom: auto; color: #e2a4a8; padding-top: 3px; }
.margin-team { position: absolute; top: calc(100% + 10px); left: 0; right: 0; display: grid; justify-items: center; gap: 5px; }
.margin-team .team-logo { width: 30px; height: 30px; }
.margin-team small { font-size: 9px; white-space: nowrap; }
.chart-caption { font-size: 12px; margin-top: 12px !important; }
.chart-caption .legend-dot { margin: 0 5px 0 14px; }
.margin-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-top: 22px; }
.extreme-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.extreme-row .metric strong { font-size: 22px; }
.highlights { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.highlights .panel { padding: 17px; }
.highlights .team-row { flex-wrap: wrap; }
.subheading { margin-top: 28px !important; margin-bottom: 13px !important; }
.recent-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.recent-result { display: flex; align-items: center; text-align: left; gap: 10px; padding: 12px !important; border: 1px solid var(--border) !important; border-radius: 9px; }
.recent-result > span:nth-child(2) { flex: 1; font-size: 12px; }
.recent-result > strong { font-size: 14px; }
.gold-text { color: var(--gold); }
.negative-text { color: #e2a4a8; }
.bonus-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.bonus-card p { color: #b3bfce; font-size: 12px; }
.bonus-card > strong { font-size: 30px; color: var(--gold); }
.bonus-card > button { width: 100%; text-align: left; }
.split-toggle { display: flex; border: 1px solid var(--border); border-radius: 9px; padding: 3px; }
.split-toggle button { padding: 8px 12px; border-radius: 6px; font-size: 12px; }
.split-toggle button[aria-pressed="true"] { background: var(--gold); color: #161a22; }
.split-row { display: grid; grid-template-columns: 1fr 50px 60px 42px; gap: 8px; width: 100%; text-align: left; padding: 13px 0 !important; border-bottom: 1px solid var(--border) !important; font-size: 13px !important; }
.split-row:last-child { border-bottom: 0 !important; }
.split-row > :not(:first-child) { text-align: right; }
.analysis-block { margin-top: 32px; }
.draft-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
.draft-cell { border: 1px solid var(--border) !important; border-radius: 8px; padding: 12px !important; min-height: 92px; text-align: left; display: grid; gap: 5px; font-size: 12px; }
.draft-cell b { font-size: 13px; }
.draft-cell small { font-size: 10px; }
.scatter, .cumulative { width: 100%; display: block; background: #121923; border: 1px solid var(--border); border-radius: 12px; }
.scatter line { stroke: #47576c; }
.scatter text, .cumulative text { fill: #bbc5d2; font: 12px sans-serif; }
.scatter circle { fill: #f2c24b; stroke: #101721; stroke-width: 2; opacity: .85; cursor: pointer; }
.scatter circle:hover, .scatter circle:focus { stroke: white; opacity: 1; }
.comparison-table small { margin-top: 4px; }
.weekly-columns { min-height: 205px; display: flex; gap: 23px; align-items: end; overflow-x: auto; padding: 10px 6px; }
.weekly-columns > button { min-width: 62px; display: flex; align-items: center; flex-direction: column; gap: 8px; padding: 0; font-size: 12px; }
.weekly-stack { display: flex; flex-direction: column; width: 38px; border-radius: 4px 4px 0 0; overflow: hidden; }
.weekly-stack > i { display: block; min-height: 0; }
.history-week > summary { grid-template-columns: 90px 1fr 100px 70px 100px; list-style: none; }
.history-week > summary::-webkit-details-marker { display: none; }
.history-week > summary > b::before { content: '+ '; color: var(--gold); }
.history-week[open] > summary > b::before { content: '− '; }
.history-content { padding: 10px 24px 25px; border-bottom: 1px solid var(--border); }
.history-content .contribution { max-width: 650px; }
.history-content p { font-size: 13px; }
.history-content .text-link { margin-right: 25px; }
.cumulative polyline { fill: none; stroke-width: 3; }
.cumulative-own { stroke: #f2c24b; }
.cumulative-other { stroke: #d8dee8; stroke-dasharray: 7 5; }
.leaderboard-warning { border: 1px solid #f2c24b66; background: #f2c24b0b; border-radius: 10px; padding: 18px; }
.leaderboard-warning p { font-size: 13px; color: #c8c0ab; }
.leaderboard-state { padding: 60px 24px; text-align: center; background: #121923; border-radius: 13px; }
.leaderboard-state button { border: 1px solid #f2c24b !important; border-radius: 6px; padding: 8px 15px; }
.detail-drawer { --muted: #abb6c5; --border: #2a3441; color: #edf0f5; background: #111923; width: min(720px, 96vw); max-height: 92vh; padding: 0; border: 1px solid #465469; border-radius: 14px; font: 14px/1.5 system-ui, sans-serif; box-shadow: 0 30px 100px #000a; }
.detail-drawer::backdrop { background: #03070dd1; }
.drawer-header { display: flex; align-items: start; justify-content: space-between; gap: 18px; padding: 23px; position: sticky; top: 0; background: #111923; z-index: 2; border-bottom: 1px solid #344155; }
.drawer-header h3 { margin: 0; font-size: 22px; }
.drawer-header button, .drawer-more { background: #243044; border: 1px solid #495a73; border-radius: 6px; padding: 6px 12px; }
.drawer-body { padding: 0 23px 23px; }
.drawer-body > p { color: #b8c5d5; }
.game-detail { padding: 22px 0; border-bottom: 1px solid #344155; }
.game-detail header { display: flex; align-items: center; gap: 12px; }
.game-detail h4 { margin: 0; font-size: 16px; }
.game-detail h4 span { color: #adb9c9; font-weight: 400; }
.game-detail header p { margin: 4px 0 0; font-size: 11px; color: #abb6c5; }
.game-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.game-facts > span { color: #aab7c9; font-size: 12px; }
.game-facts b { display: block; font-size: 14px; color: #edf0f5; }
.game-detail .text-link { color: #f2c24b; text-decoration: none; display: inline-block; margin-top: 15px; }
.game-detail .chart-caption { color: #abb6c5; }
.drawer-more { margin-top: 18px; }
@media (max-width: 1000px) {
  .leaderboard-main { padding: 24px 18px 50px; }
  .team-grid { grid-template-columns: 1fr; }
  .team-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
  .highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-points { font-size: 82px; }
  .hero-points > span { display: block; margin-left: 0; }
  .contribution-grid { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 640px) {
  .leaderboard-main { padding: 20px 10px 45px; gap: 30px; font-size: 14px; }
  .page-head { align-items: start; }
  .page-head h2 { font-size: 34px; }
  .page-head > div > p:last-child { font-size: 12px; }
  .season-control input { width: 75px; }
  .section-head { align-items: start; flex-direction: column; gap: 10px; }
  section > .section-head > p { text-align: left; }
  .series-grid, .player-hero, .bonus-grid, .split-grid { grid-template-columns: 1fr; }
  .panel { padding: 17px; }
  .team-list, .recent-results { grid-template-columns: 1fr; }
  .highlights { grid-template-columns: 1fr 1fr; }
  .highlights .panel { padding: 12px; }
  .highlights .team-row { gap: 7px; }
  .highlights .team-row b { font-size: 12px; }
  .highlights .team-row small { font-size: 10px; }
  .performance-headline h3 { font-size: 23px; }
  .hero-points { font-size: 86px; }
  .hero-points > span { display: inline; font-size: 16px; margin-left: 12px; }
  .anchor-nav { gap: 16px; }
  .margin-stats { grid-template-columns: 1fr 1fr; }
  .extreme-row .metric strong { font-size: 20px; }
  .extreme-row .metric > span { font-size: 10px; }
  .draft-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .weekly-row, .history-week > summary { grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px; }
  .weekly-row > span:last-child { display: none; }
  .history-content { padding: 10px 14px 20px; }
  .component-row { gap: 12px; }
  .scatter { min-height: 160px; }
  .game-facts { grid-template-columns: 1fr; }
  .drawer-header, .drawer-body { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .leaderboard-main *, .detail-drawer * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Desktop refinement: compact default, secondary detail on demand. */
.app.leaderboard-app { width: min(100%, 1100px); padding: 22px 20px 45px; }
.leaderboard-main { padding: 22px 0 30px; gap: 27px; }
.page-head h2 { font-size: 38px; }
.page-head .back-link { margin-bottom: 10px; }
.page-head > div > p:last-child { font-size: 14px; }
.section-head { margin-bottom: 12px; }
.leaderboard-main h3 { font-size: 21px; }
.leaderboard-main h4 { font-size: 16px; }
.panel { padding: 16px; border-radius: 10px; }
.leaderboard-main th, .leaderboard-main td { padding: 13px 12px; }
.points-cell { font-size: 25px; }
.standings tbody th a { font-size: 16px; }
.season-pair { margin: 12px 0; }
.season-pair > div { gap: 1px; }
.season-pair b { font-size: 13px; }
.season-pair span, .season-pair small { display: inline; font-size: 12px; }
.series-card .current-week { padding-top: 10px; }
.compact-score { display: flex; align-items: center; gap: 18px; }
.compact-score > span:first-child { font-size: 13px; }
.compact-score > strong { font-size: 27px; flex: 1; text-align: center; }
.matchup-names { font-size: 12px; color: var(--muted); }
.matchup-footer { display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.matchup-footer .series-progress { flex: 1; margin: 10px 0 0; }
.matchup-footer .text-link { white-space: nowrap; }
.progress-labels { gap: 12px; font-size: 11px; }
.stat-info { font-size: 12px; margin: -4px 0 12px; }
.stat-info summary { color: #aeb9c7; }
.stat-info p { max-width: 780px; padding: 10px 14px; border-left: 2px solid #789bbf; color: #bec9d7; }
.team-row { padding: 9px 0; gap: 10px; }
.team-logo { background: transparent; border-radius: 0; width: 34px; height: 34px; overflow: visible; }
.team-logo img { background: transparent; inset: 0; width: 100%; height: 100%; }
.team-logo:has(img) > span { visibility: hidden; }
.team-all { margin-top: 8px; font-size: 12px; }
.team-leader:has(.team-all[open]) .team-preview { display: none; }
.team-leader { align-self: start; }
.team-leader .card-note { min-height: 0; }
.player-hero { grid-template-columns: 1fr 1fr; gap: 24px; }
.hero-score { padding: 0; }
.hero-points { font-size: 56px; }
.hero-points > span { font-size: 15px; margin-left: 10px; display: inline; }
.hero-record { gap: 24px; margin-top: 8px; }
.hero-record b { font-size: 18px; display: inline; margin-right: 5px; }
.hero-record span { font-size: 12px; }
.hero-score .eyebrow { margin-top: 0; letter-spacing: .08em; }
.entry-switcher { margin-top: -10px; }
.anchor-nav { padding: 10px 0; margin: -8px 0 0; gap: 17px; }
.contribution-grid { grid-template-columns: 1.3fr 1fr; gap: 25px; }
.point-stack { margin-top: 7px; height: 20px; }
.point-legend { margin: 9px 0; }
.point-legend b { font-size: 17px; }
.metric { padding: 8px 0 !important; }
.metric strong { font-size: 23px; }
.core-stats { gap: 12px; }
.margin-headline { margin-top: 9px; font-size: 17px; color: #bac5d2; }
.margin-headline button { padding: 0; }
.margin-headline strong { font-size: 34px; color: var(--gold); }
.margin-chart { height: 205px; }
.chart-scroll { padding-top: 8px; padding-bottom: 62px; }
.margin-stats { margin-top: 10px; border: 0; }
.margin-bottom { border-top: 1px solid var(--border); }
.extreme-row { grid-template-columns: 1fr 1fr; max-width: 480px; gap: 30px; }
.disclosure { border-top: 1px solid var(--border); }
.disclosure > summary { padding: 13px 0; font-size: 14px; font-weight: 600; }
.disclosure[open] > summary { color: var(--gold); }
.disclosure .split-grid { margin-bottom: 15px; }
#more-margins { margin-top: 8px; }
.highlights { gap: 10px; }
.highlights .panel { padding: 12px; }
.highlights .team-row { flex-wrap: nowrap; align-items: start; }
.highlights .eyebrow { font-size: 10px; letter-spacing: .06em; }
.highlights .team-row small { font-size: 11px; }
.subheading { margin-top: 18px !important; }
.recent-result { padding: 8px 10px !important; }
.recent-result .team-logo { width: 27px; height: 27px; }
.bonus-card { gap: 4px 12px; padding: 12px 16px; }
.bonus-card > strong { font-size: 25px; }
.bonus-card > button { margin-top: 3px !important; }
.analysis-block { margin-top: 12px; }
.draft-grid { display: block; margin-bottom: 15px; }
.draft-cell { display: grid; grid-template-columns: 40px 1fr 1fr; align-items: center; min-height: 0; width: 100%; border: 0 !important; border-bottom: 1px solid var(--border) !important; border-radius: 0; padding: 8px 10px !important; }
.draft-cell small { font-size: 12px; }
.weekly-columns { min-height: 165px; }
.history-week > summary { padding: 12px 15px; }
.history-content .analysis-block { margin: 15px 0; }
.history-content .section-head h3 { font-size: 16px; }
.history-content .comparison-table td, .history-content .comparison-table th { padding: 9px 12px; }
.drawer-header button { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 900px) {
 .contribution-grid { grid-template-columns: 1fr; }
 .team-list { display: block; }
}
@media (max-width: 640px) {
 .app.leaderboard-app { padding: 18px 16px 30px; }
 .leaderboard-main { padding: 15px 0; gap: 23px; }
 .player-hero { grid-template-columns: 1fr; gap: 12px; }
 .hero-points { font-size: 52px; }
 .page-head h2 { font-size: 32px; }
 .highlights { grid-template-columns: 1fr 1fr; }
 .highlights .team-row { flex-wrap: wrap; }
 .margin-chart { height: 185px; }
 .compact-score { gap: 12px; }
 .draft-cell { grid-template-columns: 30px 1fr; }
 .draft-cell > small:last-child { grid-column: 2; }
 .margin-stats { grid-template-columns: 1fr 1fr; }
}

/* Focused count-chart refinement; contribution summary retains its layout. */
.history-content .contribution { max-width: none; width: 100%; }
.weekly-columns { justify-content: flex-start; }
.weekly-columns > button { flex: 0 0 62px; }
.split-row { grid-template-columns: minmax(75px, 1fr) minmax(0, 2fr); align-items: center; }
.split-row > span:last-child { font-size: 12px; }
.spread-bands { grid-column: 1 / -1; }
.result-legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: 12px; color: var(--muted); }
.result-legend span { display: inline-flex; align-items: center; gap: 6px; }
.result-legend i { width: 10px; height: 10px; display: inline-block; }
.ats-win { background: #dcb64e; }
.ats-loss { background: #c87883; }
.ats-pending { background: repeating-linear-gradient(135deg, #81909d 0 3px, #52616e 3px 6px); }
.band-row { position: relative; display: grid; grid-template-columns: 150px minmax(80px, 1fr) 240px; gap: 16px; align-items: center; width: 100%; text-align: left; padding: 12px 0 !important; font-size: 12px !important; }
.count-track { display: flex; height: 16px; background: #192431; border-radius: 3px; overflow: hidden; }
.count-track i { display: block; height: 100%; }
.chart-tooltip { display: none; position: absolute; z-index: 5; bottom: calc(100% - 8px); left: 0; width: max-content; max-width: 280px; padding: 10px; background: #253345; border: 1px solid #64748b; border-radius: 6px; color: #fff; font-size: 12px; text-align: left; pointer-events: none; }
.band-row:is(:hover, :focus) .chart-tooltip, .draft-column:is(:hover, :focus) .chart-tooltip { display: block; }
.draft-scroll { overflow-x: auto; padding-top: 65px; }
.draft-chart { display: flex; align-items: end; gap: 8px; min-width: 670px; padding: 0 6px 10px; }
.draft-column { position: relative; display: flex; flex: 1 0 30px; flex-direction: column; align-items: center; gap: 8px; min-width: 30px; padding: 0 !important; font-size: 12px !important; }
.draft-track { height: 145px; width: 100%; max-width: 34px; display: flex; flex-direction: column-reverse; justify-content: flex-start; background: #192431; border-bottom: 1px solid #617081; }
.draft-track i { display: block; flex-shrink: 0; width: 100%; }
.draft-column:nth-last-child(-n+5) .chart-tooltip { left: auto; right: 0; }
.count-axis { display: flex; height: 166px; padding-bottom: 23px; flex-direction: column; justify-content: space-between; color: var(--muted); font-size: 11px; }
@media (max-width: 650px) {
 .band-row { grid-template-columns: 130px minmax(80px, 1fr); gap: 8px; }
 .band-row > span:nth-last-child(2) { grid-column: 1 / -1; }
 .split-grid { grid-template-columns: 1fr; }
}

.draft-column[data-count="0"] .draft-track { background: transparent; }

/* Match Picks' .small-logo-plate without changing its styles or these sizes. */
.leaderboard-main .team-logo, .detail-drawer .team-logo {
  background: rgba(255, 255, 255, 0.92);
  padding: 3px;
  border-radius: 7px;
  box-sizing: border-box;
  color: #253345;
}
.leaderboard-main .team-logo img, .detail-drawer .team-logo img {
  display: block;
  position: static;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.leaderboard-main .team-logo > span, .detail-drawer .team-logo > span {
  position: absolute;
  inset: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}
