/* Home and public records. Analysis calculations and storage remain in stats.js. */
body.stats-mode {
  --home-green: #116149;
  --home-ink: #202e2a;
  --home-muted: #68756f;
  --home-line: #e1e6e0;
  background: #f5f6f2;
  color: var(--home-ink);
}

body.stats-mode .app-shell {
  width: min(1200px, calc(100% - 64px));
  padding-top: 24px;
}

body.stats-mode #todayStats {
  padding: 0;
  margin-bottom: 40px;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

body.stats-mode #status {
  padding: 0 0 12px;
  min-height: 25px;
  margin-bottom: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--home-muted);
  font-size: 11px;
  line-height: 1.7;
  font-weight: 500;
}

body.stats-mode #status.warning { color: #946629; }
body.stats-mode section { min-width: 0; scroll-margin-top: 104px; }
body.stats-mode :is(a, button, summary):focus-visible { outline: 3px solid #408b72; outline-offset: 4px; }
body.stats-mode :is(.home-section-head, .home-result-head, .home-hero-actions, .home-record-toolbar) svg,
body.stats-mode :is(.home-primary-link, .home-subtle-link, .home-league-shortcut, .home-trust-strip, .home-method-bottom, .home-league-links, .home-empty-state a) svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.home-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--home-green);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .13em;
  line-height: 1.4;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr);
  align-items: center;
  gap: 64px;
  padding: 28px 0 34px;
}

.home-status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--home-green); }
.home-hero-copy h1 { margin: 21px 0 18px; font-size: clamp(36px, 3.9vw, 52px); line-height: 1.22; letter-spacing: -.055em; font-weight: 740; }
.home-hero-copy h1 > span { color: var(--home-green); }
.home-hero-copy > p { color: #69756f; font-size: 15px; line-height: 1.85; letter-spacing: -.025em; }
.home-hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 27px; }
.home-primary-link { display: inline-flex; align-items: center; justify-content: center; gap: 27px; min-height: 48px; padding: 12px 20px; border: 1px solid var(--home-green); border-radius: 9px; background: var(--home-green); color: #fff; text-decoration: none; font-size: 14px; font-weight: 700; transition: background .18s, transform .18s; }
.home-primary-link:hover { background: #0c4d3a; transform: translateY(-1px); }
.home-text-link { display: inline-flex; align-items: center; min-height: 44px; color: #465a50; font-size: 13px; font-weight: 650; text-decoration-color: #b7c4b9; text-underline-offset: 5px; }
.home-principle-card { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; min-height: 302px; padding: 27px 30px 24px; border: 1px solid #1d624e; border-radius: 17px; background: #155640; color: #fff; }
.home-principle-card::before { content: ""; position: absolute; z-index: -1; width: 230px; height: 230px; top: 67px; right: -100px; border: 1px solid #ffffff15; border-radius: 50%; box-shadow: 0 0 0 26px #ffffff04, 0 0 0 27px #ffffff0b, 0 0 0 55px #ffffff03, 0 0 0 56px #ffffff08; }
.home-principle-eyebrow { display: flex; align-items: center; justify-content: space-between; color: #c5dfd0; font-size: 10px; font-weight: 600; letter-spacing: .13em; }
.home-principle-eyebrow > span { font-size: 19px; line-height: 1; }
.home-principle-card > p { margin: 25px 0 12px; font-size: 29px; line-height: 1.38; letter-spacing: -.04em; font-weight: 600; }
.home-principle-detail { color: #c3d9cb; font-size: 12px; line-height: 1.8; }
.home-principle-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 27px; padding-top: 17px; border-top: 1px solid #ffffff25; font-size: 11px; }
.home-principle-foot > span { color: #b9d2c3; }
.home-principle-foot > strong { font-weight: 550; text-align: right; }
.home-trust-strip { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 24px; margin-bottom: 43px; border-top: 1px solid var(--home-line); border-bottom: 1px solid var(--home-line); }
.home-trust-strip > span { display: inline-flex; align-items: center; gap: 9px; color: #596a60; font-size: 12px; font-weight: 570; }
.home-trust-strip svg { color: var(--home-green); }
.home-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 16px; }
.home-section-head :is(h2, h3) { margin: 0; font-size: 23px; font-weight: 700; line-height: 1.35; letter-spacing: -.04em; }
.home-section-head .home-kicker { margin-bottom: 6px; font-size: 9px; }
.home-date { display: inline-flex; align-items: center; justify-content: flex-end; gap: 7px; color: var(--home-muted); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.home-date small { font-size: 10px; color: #8c9690; }
.home-desk { margin-bottom: 37px; }
.home-league-shortcuts { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 9px; }
.home-league-shortcut { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 4px; min-height: 81px; padding: 15px; border: 1px solid var(--home-line); border-radius: 11px; background: #fff; text-decoration: none; transition: border-color .16s, box-shadow .16s; }
.home-league-shortcut:hover { border-color: #7fa893; box-shadow: 0 3px 10px #17452b08; }
.home-league-shortcut strong { font-size: 15px; font-weight: 730; letter-spacing: -.01em; }
.home-league-shortcut > span { grid-row: 2; color: var(--home-muted); font-size: 10px; white-space: nowrap; }
.home-league-shortcut > svg { grid-column: 2; grid-row: 1 / 3; color: #9aad9f; width: 16px !important; }
.home-method-section { margin-bottom: 42px; }
.home-subtle-link { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: #697a70; font-size: 11px; font-weight: 550; text-decoration: none; }
.home-subtle-link:hover { color: var(--home-green); }
.home-method-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.home-method-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; min-width: 0; gap: 18px; padding: 25px 25px 0; border: 1px solid var(--home-line); border-radius: 15px; background: #fff; text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.home-method-card:hover { border-color: #8cb39f; box-shadow: 0 7px 24px #16483208; }
.home-method-label { color: var(--home-green); font-size: 9px; letter-spacing: .12em; font-weight: 750; }
.home-method-card.detail .home-method-label { color: #657168; }
.home-method-copy h4 { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; margin: 7px 0 12px; font-size: 25px; letter-spacing: -.035em; font-weight: 680; }
.home-method-copy h4 > span { color: #728076; font-size: 11px; font-weight: 500; letter-spacing: -.015em; }
.home-method-copy p { color: #718077; font-size: 12px; line-height: 1.8; letter-spacing: -.02em; }
.home-method-metric { display: flex; flex-direction: column; align-self: center; align-items: flex-end; gap: 5px; min-width: 108px; font-variant-numeric: tabular-nums; }
.home-method-metric > span { color: var(--home-muted); font-size: 10px; }
.home-method-metric > strong { color: var(--home-green); font-size: 37px; font-weight: 650; line-height: 1.2; letter-spacing: -.05em; }
.home-method-metric > small { color: var(--home-muted); font-size: 10px; white-space: nowrap; }
.home-method-metric.is-empty { min-width: 90px; max-width: 145px; }
.home-method-metric.is-empty > strong { margin-block: 5px; color: #79867e; font-size: 21px; }
.home-method-metric.is-empty > small { max-width: 125px; white-space: normal; text-align: right; line-height: 1.6; }
.home-method-bottom { display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; border-top: 1px solid #edf0eb; }
.home-method-bottom > span { color: #758277; font-size: 10px; }
.home-method-bottom strong { display: inline-flex; align-items: center; gap: 7px; color: var(--home-green); font-size: 11px; font-weight: 650; white-space: nowrap; }
.home-data-note { margin-top: 13px; color: #7c8780; font-size: 11px; line-height: 1.7; }
.home-results { padding-top: 32px; border-top: 1px solid var(--home-line); }
.home-section-note { margin: -7px 0 20px; color: var(--home-muted); font-size: 12px; line-height: 1.8; }
.home-result-toolbar, .home-record-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.home-segmented { display: inline-flex; align-items: center; gap: 3px; max-width: 100%; padding: 4px; border: 1px solid #e7eae4; border-radius: 9px; background: #ecefe8; }
.home-segmented > button { display: inline-flex; align-items: center; justify-content: center; min-width: 65px; min-height: 36px; padding: 7px 16px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #738074; font-size: 12px; font-weight: 550; box-shadow: none; cursor: pointer; white-space: nowrap; }
.home-segmented > button[aria-pressed="true"] { border-color: #dfe5dc; background: #fff; color: var(--home-green); font-weight: 700; box-shadow: 0 1px 3px #28443008; }
.home-segmented > button:hover { color: var(--home-green); }
.home-result-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: #738078; font-size: 11px; }
.home-result-summary > strong { color: #4e6357; font-weight: 650; }
.home-result-summary > span { padding-inline: 4px; color: #bac3ba; }
.home-result-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.home-result-card { display: block; min-width: 0; padding: 19px 19px 13px; border: 1px solid var(--home-line); border-radius: 12px; background: #fff; text-decoration: none; transition: border-color .18s, transform .18s; }
.home-result-card:hover { border-color: #93af9c; transform: translateY(-2px); }
.home-result-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.home-league-label { color: var(--home-green); font-size: 10px; font-weight: 750; letter-spacing: .025em; }
.home-result-open { display: inline-flex; align-items: center; gap: 5px; color: #8a968c; font-size: 10px; }
.home-result-open > svg { width: 13px !important; height: 13px !important; }
.home-result-card h4 { margin-bottom: 13px; color: #2c3e33; font-size: 14px; font-weight: 650; line-height: 1.6; letter-spacing: -.02em; overflow-wrap: anywhere; }
.home-result-card h4 > span { margin-inline: 3px; color: #a3ada4; font-size: 10px; font-weight: 500; }
.home-result-line { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 36px; border-top: 1px solid #f0f2ed; }
.home-result-line > span:first-child { color: #8b968d; font-size: 10px; }
.home-result-line > strong { color: #5b6a5e; font-size: 11px; font-weight: 550; line-height: 1.6; overflow-wrap: anywhere; }
body.stats-mode .home-result-line .result-tag { display: inline-flex; align-items: center; min-width: 40px; min-height: 23px; justify-content: center; padding: 3px 6px; border: 0; border-radius: 4px; font-size: 9px; font-weight: 600; }
body.stats-mode .result-tag.win { color: #176c4b; background: #edf5ee; }
body.stats-mode .result-tag.loss { color: #ad5e4c; background: #fbf0ec; }
body.stats-mode .result-tag.void { color: #788278; background: #f0f2ed; }
body.stats-mode .result-tag.pending { color: #8f794d; background: #f7f3e8; }
.home-show-more { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; min-height: 44px; margin-top: 13px; border: 1px solid var(--home-line); border-radius: 8px; background: #f8f9f5; color: #627768; font-size: 12px; font-weight: 600; cursor: pointer; }
.home-show-more:hover { background: #eef2e9; }
.home-show-more > span { font-size: 18px; font-weight: 400; }
.home-empty-state { grid-column: 1 / -1; display: flex; align-items: center; flex-direction: column; padding: 32px 20px; border: 1px dashed #d9e1d5; border-radius: 13px; background: #f8f9f5; text-align: center; }
.home-empty-state > svg { width: 29px; height: 29px; margin-bottom: 12px; color: #8fa592; }
.home-empty-state > strong { color: #5d7061; font-size: 14px; font-weight: 600; }
.home-empty-state > p { margin-top: 7px; color: #849081; font-size: 12px; line-height: 1.7; }
.home-empty-state > a { display: flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 7px; color: var(--home-green); text-decoration: none; font-size: 12px; font-weight: 650; }

body.stats-mode #leagueOverview { margin-bottom: 27px; }
.home-record-toolbar > span { color: #8b968a; font-size: 11px; }
body.stats-mode .stats-league-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
body.stats-mode .stats-league-card { padding: 22px; border: 1px solid var(--home-line); border-radius: 13px; background: #fff; box-shadow: none; }
body.stats-mode .stats-league-head { display: flex; flex-wrap: wrap; gap: 5px 12px; align-items: center; margin-bottom: 17px; }
body.stats-mode .stats-league-head :is(h2, h3) { font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
body.stats-mode .stats-league-head > span { color: #8a978b; font-size: 10px; font-weight: 500; }
body.stats-mode .stats-league-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
body.stats-mode .stats-metric--count { display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; padding: 9px 0; border-top: 1px solid #f0f2ed; border-bottom: 1px solid #f0f2ed; }
body.stats-mode .stats-metric--count > strong { margin: 0; font-size: 12px; font-weight: 600; color: #758176; }
body.stats-mode .stats-metric--chart { display: block; padding: 4px 0 10px; border: 0; background: transparent; }
body.stats-mode .stats-metric--chart > .viz-ring { display: none; }
body.stats-mode .stats-metric span { color: #89968b; font-size: 11px; }
body.stats-mode .stats-metric-copy { min-width: 0; }
body.stats-mode .stats-metric-copy strong { margin: 5px 0 10px; color: #365642; font-size: 16px; font-weight: 650; letter-spacing: -.03em; }
body.stats-mode .stats-metric .viz-bar { height: 4px; background: #edf0e8; }
body.stats-mode .stats-metric .viz-bar-fill { display: block; height: 4px; border-radius: 3px; background: #629176; }
.home-league-links { display: flex; align-items: center; gap: 16px; padding-top: 8px; border-top: 1px solid #f0f2ed; }
body.stats-mode .home-league-links .stats-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 7px; flex: 1; min-height: 35px; margin: 0; color: #587260; font-size: 11px; font-weight: 600; }
body.stats-mode .home-league-links svg { width: 15px; }

body.stats-mode :is(#versionAnalysis, #confidenceStats, #bestDays) { padding: 0; margin-bottom: 10px; border: 1px solid var(--home-line); border-radius: 11px; background: #fff; box-shadow: none; }
body.stats-mode .stats-section-disclosure { overflow: visible; }
body.stats-mode .stats-section-disclosure > summary { min-height: 63px; padding: 17px 22px; gap: 12px; font-size: 14px; font-weight: 650; }
body.stats-mode .stats-section-disclosure > summary > span:first-child { flex: 1; }
body.stats-mode .stats-section-disclosure > summary::after { font-size: 17px; font-weight: 400; color: #879989; }
body.stats-mode .stats-section-disclosure[open] > summary { border-bottom-color: #eef1ea; }
body.stats-mode .section-badge { padding: 4px 7px; border: 0; border-radius: 5px; background: #f0f3ec; color: #788976; font-size: 10px; font-weight: 500; }
body.stats-mode .stats-disclosure-body { padding: 20px 22px 22px; }
body.stats-mode .note { font-size: 12px; line-height: 1.8; color: #7c897d; }
body.stats-mode .stats-subhead { margin: 22px 0 10px; font-size: 14px; font-weight: 650; }
body.stats-mode .stats-sport-block { padding-top: 0; margin-top: 23px; border: 0; }
body.stats-mode .stats-sport-block-head { padding: 0; margin-bottom: 13px; border: 0; }
body.stats-mode .stats-sport-block-head :is(h2, h3) { font-size: 14px; font-weight: 650; }
body.stats-mode .table-wrap { border: 1px solid #e9ede4; border-radius: 9px; box-shadow: none; }
body.stats-mode :is(.stats-version-analysis, .stats-confidence) :is(th, td) { padding: 12px; border-color: #edf0e8; font-size: 11px; line-height: 1.6; }
body.stats-mode :is(.stats-version-analysis, .stats-confidence) th { background: #f6f8f2; color: #73816f; font-weight: 550; }
body.stats-mode .stats-compare-table { min-width: 510px; }
body.stats-mode .version-badge { padding: 4px 7px; border: 0; border-radius: 4px; font-size: 10px; font-weight: 600; }
body.stats-mode .version-badge.standard { background: #ecf4eb; color: #39724c; }
body.stats-mode .version-badge.detail { background: #eff0e9; color: #6e765c; }
.home-confidence-sport { margin-top: 12px; border: 1px solid #e6ebe1; border-radius: 10px; }
.home-confidence-sport > summary { display: flex; justify-content: space-between; align-items: center; min-height: 51px; gap: 16px; padding: 12px 17px; color: #496748; font-size: 13px; font-weight: 600; cursor: pointer; }
.home-confidence-sport > summary > span { color: #8b9786; font-size: 10px; font-weight: 500; }
.home-confidence-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px; border-top: 1px solid #edf0e8; }
body.stats-mode .stats-confidence-block { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
body.stats-mode .stats-confidence-block h3 { font-size: 12px; font-weight: 600; }
body.stats-mode .confidence-tables { display: grid; grid-template-columns: 1fr; gap: 12px; }
body.stats-mode .confidence-table { min-width: 0; width: 100%; table-layout: auto; }
body.stats-mode .confidence-table-block { min-width: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
body.stats-mode .confidence-table-block h4 { color: #7f8e77; font-size: 11px; font-weight: 500; }
body.stats-mode .confidence-table th, body.stats-mode .confidence-table td { padding: 8px; font-size: 10px; }
body.stats-mode .stats-best-day-grid { gap: 13px; }
body.stats-mode .stats-best-day-card { padding: 19px; border: 1px solid #e5eadd; border-radius: 11px; background: #fafbf7; box-shadow: none; }
body.stats-mode .stats-best-day-card::before { content: none; }
body.stats-mode .stats-best-day-card .stats-best-day-score strong { color: #597751; font-size: 29px; }
body.stats-mode .stats-best-day-card .viz-ring { display: none; }
body.stats-mode .stats-best-day-score { display: block; }
body.stats-mode .stats-best-day-score-copy { display: grid; gap: 6px; }
body.stats-mode .stats-best-day-card > a { min-height: 35px; display: inline-flex; align-items: center; color: #687f5f; font-size: 11px; font-weight: 550; }
body.stats-mode .stats-best-day-card.empty > p { margin-top: 12px; color: #8d9887; font-size: 12px; }
body.stats-mode .home-today-details { margin-top: 16px; padding: 0; border: 1px solid var(--home-line); border-radius: 10px; background: #f8faf5; }
body.stats-mode .home-today-details > summary { display: flex; align-items: center; gap: 12px; min-height: 49px; padding: 12px 17px; color: #637d66; font-size: 12px; font-weight: 550; cursor: pointer; }
body.stats-mode .home-today-details > summary > span:first-child { flex: 1; }
body.stats-mode .stats-today-more-body { padding: 15px; border-top: 1px solid var(--home-line); }
body.stats-mode .stats-today-version { padding: 14px; border: 1px solid #e5eadd; border-radius: 10px; background: #fff; }
body.stats-mode .stats-today-version-list { display: grid; gap: 12px; }
body.stats-mode .stats-today-grid { margin-top: 13px; }
body.stats-mode .stats-today-card { padding: 15px; }
body.stats-mode .stats-today-card .stats-league-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.stats-mode .stats-today-card .stats-metric strong { color: #647957; font-size: 12px; font-weight: 600; }

body.stats-mode .feedback-banner { margin: 36px 0 16px; padding: 25px 28px; border: 1px solid #dce6d5; border-radius: 13px; background: #edf2e6; box-shadow: none; }
body.stats-mode .feedback-banner h2 { margin-bottom: 8px; font-size: 18px; font-weight: 650; letter-spacing: -.025em; }
body.stats-mode .feedback-banner .home-kicker { font-size: 9px; }
body.stats-mode .feedback-openchat-link { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; gap: 24px; min-height: 45px; padding: 11px 16px; border: 1px solid #c9d9c0; border-radius: 8px; background: #f8faf4; color: #476d3b; font-size: 12px; font-weight: 600; box-shadow: none; }
body.stats-mode .guest-comments { padding: 27px; border: 1px solid var(--home-line); border-radius: 13px; background: #fff; box-shadow: none; }
body.stats-mode .guest-comment-headline { border: 0; padding: 0; margin-bottom: 10px; }
body.stats-mode .guest-comment-headline h2 { font-size: 18px; font-weight: 650; letter-spacing: -.025em; }
body.stats-mode .guest-comment-headline .home-kicker { font-size: 9px; margin-bottom: 7px; }
body.stats-mode .guest-comment-form { display: grid; grid-template-columns: 160px minmax(0, 1fr) 113px; align-items: start; gap: 16px; margin: 21px 0 0; padding: 0; border: 0; background: transparent; }
body.stats-mode .guest-comment-form label { display: grid; gap: 8px; color: #75836b; font-size: 11px; font-weight: 500; }
body.stats-mode .guest-comment-form :is(input, textarea) { min-width: 0; width: 100%; min-height: 45px; border: 1px solid #e0e7d9; border-radius: 7px; background: #fafbf7; color: #495f3e; padding: 12px; font-size: 12px; font-weight: 400; }
body.stats-mode .guest-comment-form textarea { min-height: 96px; resize: vertical; }
body.stats-mode .guest-comment-form :is(input, textarea)::placeholder { color: #919d88; opacity: 1; }
body.stats-mode .guest-comment-form > button { min-height: 45px; margin-top: 24px; padding: 11px 14px; border: 1px solid var(--home-green); border-radius: 7px; background: var(--home-green); color: white; font-size: 12px; font-weight: 600; }
body.stats-mode .guest-comment-form > button:disabled { opacity: .6; cursor: wait; }
body.stats-mode .guest-comment-list { margin-top: 14px; }
body.stats-mode .guest-comment { padding: 18px 0; border: 0; border-top: 1px solid #edf0e8; background: transparent; }
body.stats-mode .guest-comment-head { gap: 8px; }
body.stats-mode .guest-comment-head strong { color: #62754f; font-size: 12px; font-weight: 600; }
body.stats-mode .guest-comment-head :is(time, .guest-comment-ip) { color: #9da68f; font-size: 10px; }
body.stats-mode .guest-comment > p { margin-top: 8px; color: #7b886a; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
body.stats-mode .guest-comment-empty { padding: 18px 0 0; }
.home-visitor-wrap { margin: 20px 0 0; }
body.stats-mode .home-visitor-wrap .visitor-stats { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-end; position: static; width: 100%; padding: 0; gap: 15px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
body.stats-mode .home-visitor-wrap .visitor-stats > div:not(.visitor-source-block) { display: inline-flex; align-items: baseline; gap: 6px; padding: 0; border: 0; background: transparent; }
body.stats-mode .home-visitor-wrap .visitor-stats :is(span, strong) { font-size: 10px; color: #8e9985; font-weight: 500; }
body.stats-mode .home-visitor-wrap .visitor-source-block { flex-basis: 100%; }

@media (max-width: 1050px) {
  .home-hero { gap: 30px; grid-template-columns: minmax(0, 1.25fr) minmax(280px, 1fr); }
  .home-league-shortcuts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home-method-card { gap: 14px; padding-inline: 20px; }
  .home-method-copy h4 { gap: 5px; }
  .home-method-copy h4 > span { width: 100%; }
  .home-method-copy p br { display: none; }
  .home-result-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-confidence-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.stats-mode .stats-league-card { padding: 18px; }
  body.stats-mode .stats-metric-copy strong { font-size: 14px; }
}

@media (max-width: 720px) {
  body.stats-mode .app-shell { width: calc(100% - 32px); padding-top: 14px; }
  body.stats-mode #status { font-size: 10px; padding-bottom: 6px; }
  body.stats-mode #todayStats { margin-bottom: 29px; }
  body.stats-mode section { scroll-margin-top: 88px; }
  .home-hero { grid-template-columns: 1fr; gap: 23px; padding: 23px 3px 25px; }
  .home-hero-copy h1 { margin: 17px 0 13px; font-size: clamp(33px, 8.8vw, 43px); line-height: 1.25; letter-spacing: -.058em; }
  .home-hero-copy > p { font-size: 13px; line-height: 1.85; }
  .home-hero-actions { margin-top: 21px; gap: 20px; }
  .home-primary-link { min-height: 47px; padding: 11px 17px; gap: 27px; font-size: 12px; }
  .home-text-link { font-size: 11px; }
  .home-kicker { font-size: 9px; }
  .home-principle-card { min-height: 0; display: grid; grid-template-columns: 1fr auto; gap: 0 14px; padding: 20px; border-radius: 13px; }
  .home-principle-eyebrow { grid-column: 1 / -1; font-size: 8px; }
  .home-principle-card > p { margin: 13px 0 2px; font-size: 22px; }
  .home-principle-detail { align-self: end; padding-bottom: 2px; font-size: 10px; line-height: 1.8; }
  .home-principle-foot { grid-column: 1 / -1; margin-top: 17px; padding-top: 13px; font-size: 10px; }
  .home-principle-card::before { top: -54px; right: -74px; }
  .home-trust-strip { justify-content: space-around; gap: 8px; padding: 13px 0; margin-bottom: 30px; }
  .home-trust-strip > span { flex-direction: column; gap: 6px; font-size: 9px; line-height: 1.6; text-align: center; font-weight: 500; }
  body.stats-mode .home-trust-strip svg { width: 18px; height: 18px; }
  .home-section-head { gap: 10px; margin-bottom: 15px; }
  .home-section-head :is(h2, h3) { font-size: 20px; letter-spacing: -.04em; }
  .home-section-head .home-kicker { margin-bottom: 5px; font-size: 8px; }
  .home-date { gap: 4px; font-size: 10px; }
  .home-date small { font-size: 8px; }
  body.stats-mode .home-date svg { width: 14px; height: 14px; }
  .home-desk { margin-bottom: 28px; }
  .home-league-shortcuts { gap: 7px; }
  .home-league-shortcut { grid-template-columns: 1fr; gap: 4px; min-height: 68px; padding: 12px 9px; border-radius: 8px; }
  .home-league-shortcut strong { font-size: 13px; }
  .home-league-shortcut > span { font-size: 9px; }
  .home-league-shortcut > svg { display: none; }
  .home-method-section { margin-bottom: 28px; }
  .home-subtle-link { gap: 3px; font-size: 9px; }
  body.stats-mode .home-subtle-link svg { width: 14px; }
  .home-method-grid { grid-template-columns: 1fr; gap: 11px; }
  .home-method-card { padding: 20px 19px 0; gap: 16px; border-radius: 12px; }
  .home-method-label { font-size: 8px; }
  .home-method-copy h4 { margin-top: 6px; margin-bottom: 10px; font-size: 23px; gap: 8px; }
  .home-method-copy h4 > span { width: auto; font-size: 10px; }
  .home-method-copy > p { font-size: 11px; line-height: 1.75; }
  .home-method-copy > p br { display: inline; }
  .home-method-metric { min-width: 96px; gap: 5px; }
  .home-method-metric > span { font-size: 9px; }
  .home-method-metric > strong { font-size: 34px; }
  .home-method-metric > small { font-size: 9px; }
  .home-method-metric.is-empty { min-width: 82px; max-width: 105px; }
  .home-method-metric.is-empty > strong { font-size: 19px; }
  .home-method-bottom { min-height: 45px; gap: 7px; }
  .home-method-bottom > span { font-size: 9px; }
  .home-method-bottom strong { font-size: 10px; gap: 5px; }
  body.stats-mode .home-method-bottom svg { width: 15px; }
  .home-data-note { font-size: 10px; margin-top: 11px; }
  .home-results { padding-top: 25px; }
  .home-section-note { margin: -7px 0 16px; font-size: 11px; }
  .home-result-toolbar, .home-record-toolbar { gap: 11px; margin-bottom: 13px; }
  .home-segmented { padding: 3px; gap: 2px; }
  .home-segmented > button { min-width: 58px; min-height: 38px; padding: 7px 15px; font-size: 11px; }
  .home-result-summary { width: 100%; padding-left: 2px; font-size: 10px; }
  .home-result-list { grid-template-columns: 1fr; gap: 10px; }
  .home-result-card { padding: 16px 17px 10px; border-radius: 11px; }
  .home-result-head { margin-bottom: 8px; }
  .home-result-card h4 { font-size: 14px; margin-bottom: 11px; }
  .home-result-line { grid-template-columns: 27px minmax(0, 1fr) auto; min-height: 36px; gap: 8px; }
  .home-result-line > strong { font-size: 12px; }
  body.stats-mode .home-result-line .result-tag { min-width: 42px; min-height: 24px; font-size: 10px; }
  .home-empty-state { padding: 28px 18px; }
  .home-empty-state > p { font-size: 11px; }
  .home-record-toolbar > span { font-size: 10px; }
  body.stats-mode #leagueOverview { margin-bottom: 20px; }
  body.stats-mode .stats-league-grid { grid-template-columns: 1fr; gap: 10px; }
  body.stats-mode .stats-league-card { padding: 19px 20px 10px; }
  body.stats-mode .stats-league-head { margin-bottom: 12px; }
  body.stats-mode .stats-league-head :is(h2, h3) { font-size: 17px; }
  body.stats-mode .stats-league-head > span { font-size: 10px; }
  body.stats-mode .stats-league-metrics { grid-template-columns: 80px repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
  body.stats-mode .stats-metric--count { display: block; grid-column: auto; padding: 4px 0 10px; border: 0; }
  body.stats-mode .stats-metric--count > strong { margin-top: 5px; font-size: 15px; }
  body.stats-mode .stats-metric span { font-size: 10px; }
  body.stats-mode .stats-metric-copy > strong { margin: 5px 0 9px; font-size: 15px; }
  body.stats-mode .stats-metric--chart { padding-bottom: 9px; }
  .home-league-links { gap: 22px; padding-top: 3px; }
  body.stats-mode .home-league-links .stats-link { min-height: 38px; font-size: 11px; }
  body.stats-mode :is(#versionAnalysis, #confidenceStats, #bestDays) { margin-bottom: 8px; }
  body.stats-mode .stats-section-disclosure > summary { gap: 8px; padding: 15px 16px; min-height: 58px; font-size: 12px; }
  body.stats-mode .section-badge { padding: 3px 5px; font-size: 9px; }
  body.stats-mode .stats-disclosure-body { padding: 16px; }
  body.stats-mode .note { font-size: 11px; line-height: 1.8; }
  body.stats-mode .stats-compare-table { min-width: 450px; }
  body.stats-mode :is(.stats-version-analysis, .stats-confidence) :is(th, td) { padding: 10px 8px; font-size: 10px; }
  .home-confidence-sport > summary { padding: 12px; font-size: 12px; }
  .home-confidence-grid { grid-template-columns: 1fr; gap: 19px; padding: 12px; }
  body.stats-mode .confidence-tables { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  body.stats-mode .stats-confidence-block + .stats-confidence-block { border-top: 1px solid #e6ecdf; padding-top: 18px; }
  body.stats-mode .confidence-table :is(th, td) { padding: 8px 5px; font-size: 9px; }
  body.stats-mode .confidence-table .confidence-threshold { font-size: 10px; }
  body.stats-mode .stats-best-day-grid { grid-template-columns: 1fr; gap: 10px; }
  body.stats-mode .stats-best-day-card { padding: 17px; }
  body.stats-mode .stats-today-version { padding: 11px; }
  body.stats-mode .stats-today-version-meta { font-size: 9px; white-space: normal; text-align: right; }
  body.stats-mode .stats-today-version-title { font-size: 10px; gap: 5px; }
  body.stats-mode .stats-today-card { padding: 14px; }
  body.stats-mode .feedback-banner { flex-direction: column; align-items: stretch; gap: 18px; margin-top: 28px; padding: 22px; border-radius: 12px; }
  body.stats-mode .feedback-banner h2 { font-size: 17px; }
  body.stats-mode .feedback-openchat-link { align-self: flex-start; min-height: 43px; font-size: 11px; }
  body.stats-mode .guest-comments { padding: 22px 19px; }
  body.stats-mode .guest-comment-headline { align-items: flex-start; gap: 7px; }
  body.stats-mode .guest-comment-headline h2 { max-width: 245px; font-size: 17px; line-height: 1.5; }
  body.stats-mode .guest-comment-headline > .section-badge { margin-top: 2px; white-space: nowrap; }
  body.stats-mode .guest-comment-form { grid-template-columns: 1fr; gap: 14px; margin-top: 18px; }
  body.stats-mode .guest-comment-form label:first-child { max-width: 180px; }
  body.stats-mode .guest-comment-form :is(input, textarea) { font-size: 16px; min-height: 46px; }
  body.stats-mode .guest-comment-form :is(input, textarea)::placeholder { font-size: 13px; }
  body.stats-mode .guest-comment-form > button { justify-self: end; min-width: 115px; min-height: 44px; margin-top: 0; }
  body.stats-mode .guest-comment-head { flex-wrap: wrap; }
  body.stats-mode .guest-comment-head time { margin-left: 0; }
  body.stats-mode .home-visitor-wrap .visitor-stats { justify-content: center; }
}

@media (max-width: 370px) {
  body.stats-mode .app-shell { width: calc(100% - 24px); }
  .home-hero-copy h1 { font-size: 32px; }
  .home-principle-card { padding: 18px; }
  .home-principle-card > p { font-size: 20px; }
  .home-principle-detail { font-size: 9px; }
  .home-trust-strip > span { font-size: 8px; }
  .home-section-head :is(h2, h3) { font-size: 18px; }
  .home-date { font-size: 9px; }
  .home-date small { display: none; }
  .home-method-card { padding: 17px 15px 0; gap: 13px; }
  .home-method-copy h4 > span { width: 100%; }
  .home-method-copy > p { font-size: 10px; }
  .home-method-copy > p br { display: none; }
  .home-method-metric > strong { font-size: 31px; }
  .home-method-bottom > span { font-size: 8px; }
  .home-segmented > button { min-width: 54px; padding-inline: 13px; }
  body.stats-mode .stats-league-metrics { grid-template-columns: 65px repeat(2, minmax(0, 1fr)); gap: 10px; }
  body.stats-mode .stats-metric-copy > strong { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  body.stats-mode :is(.home-primary-link, .home-result-card, .home-method-card, .home-league-shortcut) { transition: none; transform: none; }
}
