/* Field Chalk & Clay — adapted from new_theme. Workflow layout foundation. */
/* Report-first presentation: shared axes, quiet rules, and directly labeled data. */
.gc-stats {
    --report-rule: #343735;
    --report-muted: #a0a6a2;
    --report-paper: #eceee8;
    --report-surface: #151918;
    --report-gold: #e8b85d;
    --report-mint: #9fcbbb;
    --report-mono: "Space Mono", ui-monospace, monospace;
    --gc-muted-color: var(--report-muted);
    --gc-text-color: var(--report-paper);
    --gc-canvas: 15 18 17;
    --gc-dark: 19 23 21;
    --gc-card: 21 25 24;
    --gc-border: 52 55 53;
    --gc-muted: 160 166 162;
    --gc-text: 236 238 232;
    --gc-softWhite: 236 238 232;
    --gc-gold: 232 184 93;
    line-height: 1.55;
}
.gc-stats .site-header { background: transparent; border-color: var(--report-rule); }
.gc-stats .header-inner { min-height: 68px; }
.gc-stats .site-main { max-width: 1320px; }
.gc-stats .brand { letter-spacing: .04em; }
.gc-stats .brand-mark { width: 32px; height: 32px; font-size: 1.45rem; border-radius: 50%; background: var(--report-gold); }
.gc-stats .brand small { color: var(--report-muted); }
.gc-stats .sport-menu { position: relative; flex: none; }
.gc-stats .sport-menu summary { cursor: pointer; list-style: none; border: 1px solid var(--report-rule); border-radius: 4px; padding: .45rem .75rem; color: var(--report-paper); font-size: .82rem; white-space: nowrap; }
.gc-stats .sport-menu summary::-webkit-details-marker { display: none; }
.gc-stats .sport-menu summary::after { content: " ▾"; color: var(--report-gold); }
.gc-stats .sport-menu nav { position: absolute; z-index: 20; top: calc(100% + .25rem); left: 0; min-width: 8rem; display: grid; border: 1px solid var(--report-rule); border-radius: 4px; background: var(--report-surface); box-shadow: 0 8px 20px #0005; }
.gc-stats .sport-menu a { padding: .55rem .8rem; color: var(--report-paper); text-decoration: none; }
.gc-stats .sport-menu a:hover, .gc-stats .sport-menu a[aria-current="true"] { color: var(--report-gold); background: #e8b85d12; }
.gc-stats .site-nav { padding: 0; border: 0; border-bottom: 1px solid var(--report-rule); border-radius: 0; background: transparent; gap: 1.5rem; margin-bottom: 2.5rem; }
.gc-stats .site-nav a { padding: .6rem 0 .85rem; border-radius: 0; border-bottom: 2px solid transparent; color: var(--report-muted); }
.gc-stats .site-nav a.active { background: transparent; color: var(--report-gold); border-bottom-color: var(--report-gold); }
.gc-stats .site-nav a:hover:not(.active) { background: transparent; border-bottom-color: var(--report-muted); }
.gc-stats h1 { font-family: var(--display-font); font-size: clamp(2rem, 4.2vw, 3.15rem); font-weight: 400; letter-spacing: -.035em; color: var(--report-paper); }
.gc-stats h2, .gc-stats h3 { color: var(--report-paper); }
.gc-stats .subtitle, .gc-stats .muted, .gc-stats .cell-detail { color: var(--report-muted); }
.gc-stats .eyebrow { font-family: var(--report-mono); font-weight: 500; letter-spacing: .13em; color: var(--report-gold); }
.gc-stats .page-heading { margin-bottom: 2rem; }
.preview-notice { margin: 0 0 1rem; padding: .5rem .75rem; border-left: 2px solid var(--report-gold); color: var(--report-muted); font: .72rem var(--report-mono); }
.gc-stats .gc-card, .gc-stats .panel { border-radius: 4px; background: var(--report-surface); border-color: var(--report-rule); box-shadow: none; }
.gc-stats .metric-grid { gap: 0; border-top: 1px solid var(--report-rule); border-bottom: 1px solid var(--report-rule); margin-bottom: 2rem; }
.gc-stats .metric { border: 0; border-right: 1px solid var(--report-rule); border-radius: 0; padding: 1.15rem 1.5rem; background: transparent; min-width: 0; }
.gc-stats .metric:first-child { padding-left: 0; }
.gc-stats .metric:last-child { border-right: 0; }
.gc-stats .metric > span { color: var(--report-muted); font: .64rem var(--report-mono); letter-spacing: .1em; }
.gc-stats .metric strong { font-size: 2.25rem; font-weight: 500; color: var(--report-paper); margin: .4rem 0; }
.gc-stats .metric small { color: var(--report-muted); font-size: .75rem; }
.gc-stats .gold, .gc-stats .metric strong.gold { color: var(--report-gold); }
.gc-stats .gc-button, .gc-stats .gc-input { border-radius: 4px; }
.gc-stats .gc-button:not(.gc-button-primary) { background: transparent; }
.gc-stats .gc-button-primary { background: var(--report-gold); color: #101411; }
.gc-stats .gc-input { background: #101411; border-color: var(--report-rule); }
.gc-stats .section-heading { padding-bottom: 1rem; align-items: baseline; }
.gc-stats .section-heading h2 { font-size: 1.2rem; letter-spacing: -.025em; }
.gc-stats .workflow-steps { gap: 0; margin: 0 0 1.5rem; counter-reset: step; }
.gc-stats .workflow-steps li { padding-right: 1.5rem; color: var(--report-muted); }
.gc-stats .workflow-steps li:not(:last-child)::after { content: " /"; margin-left: 1.5rem; color: #69716b; }
.gc-stats .workflow-steps b { font-family: var(--report-mono); color: var(--report-gold); }
.gc-stats .workflow-steps a { color: inherit; text-decoration: none; }
.gc-stats .workflow-steps [aria-current="step"] { color: var(--report-paper); }
.gc-stats .finder { margin: 0 0 2rem; }
.tournament-disclosure > summary { cursor: pointer; font-weight: 600; }
.finder-context { display: block; color: var(--report-muted); font-size: .8rem; font-weight: 400; margin-top: .2rem; }
.finder #discovered-tournaments { border-top: 1px solid var(--report-rule); padding-top: 1.5rem; }
.finder .workflow-form { padding: .75rem 0 1.5rem; }
.gc-stats .age-selector { padding: .75rem 0; }
.gc-stats .age-option { border-color: var(--report-rule); background: transparent; border-radius: 3px; padding: .4rem .65rem; }
.gc-stats .age-option:has(input:checked) { border-color: var(--report-gold); background: #e8b85d0c; }
.finder-help { flex-basis: 100%; font-size: .8rem; color: var(--report-muted); margin: .25rem 0 0; max-width: 80ch; }
.finder .workflow-form > .finder-help { grid-column: 1 / -1; }
.gc-stats .table-panel { border: 0; background: transparent; }
.gc-stats .ingested-tournaments { margin-bottom: 2.5rem; }
.gc-stats .table-panel > .section-heading { padding: 0 0 1rem; }
.gc-stats .table-footer { padding-inline: 0; border-color: var(--report-rule); }
.gc-stats .stat-table { font-size: .82rem; }
.gc-stats .stat-table th { color: var(--report-muted); background: #171d19; font: .64rem var(--report-mono); letter-spacing: .055em; padding: .8rem .8rem; border-color: var(--report-rule); }
.gc-stats .stat-table td { padding: .85rem .8rem; border-color: #2b312d; font-variant-numeric: tabular-nums; }
.gc-stats .stat-table tbody tr:nth-child(even) { background: transparent; }
.gc-stats .stat-table tbody tr:hover { background: #e8b85d08; }
.gc-stats .stat-table td a { color: var(--report-paper); }
.gc-stats .tournament-refresh-table { min-width: 1160px; }
.gc-stats .tournament-refresh-table th, .gc-stats .tournament-refresh-table td { padding: .85rem .6rem; }
.gc-stats .tournament-refresh-table tbody th { min-width: 190px; max-width: 250px; background: transparent; color: var(--report-paper); font: 600 .82rem var(--gc-font-body, sans-serif); letter-spacing: 0; text-align: left; }
.tournament-refresh-table .cell-detail { display: block; margin-top: .3rem; font-weight: 400; overflow-wrap: anywhere; }
.tournament-refresh-table code.cell-detail { font-family: var(--report-mono); font-size: .72rem; }
.tournament-refresh-table .refresh-time { min-width: 150px; max-width: 175px; font-size: .76rem; }
.tournament-refresh-table td:last-child { white-space: nowrap; }
.gc-stats .status-badge { border-radius: 3px; font-size: .66rem; letter-spacing: .015em; }
.gc-stats .candidate-row, .gc-stats .inline-match-search { border-radius: 3px; background: #101411; border-color: var(--report-rule); }
.gc-stats .candidate-score { color: var(--report-gold); font-family: var(--report-mono); }
.gc-stats .match-card { border: 0; border-top: 1px solid var(--report-rule); padding: 1.5rem 0; background: transparent; }
.gc-stats .match-card h2 { font-size: 1.2rem; }
.gc-stats .welcome-card { background: transparent; border: 0; border-left: 2px solid var(--report-gold); border-radius: 0; padding: .5rem 0 .5rem 1.5rem; }
.gc-stats .action-card { background: transparent; border: 0; border-top: 1px solid var(--report-rule); padding: 1.25rem 0; }
.gc-stats .action-card p { color: var(--report-muted); }
.report-jumps { display: flex; gap: 1.5rem; border-bottom: 1px solid var(--report-rule); padding: .5rem 0 1rem; margin: 0 0 1.5rem; flex-wrap: wrap; }
.report-jumps a { color: var(--report-muted); font-size: .8rem; text-decoration: none; }
.report-jumps a:hover { color: var(--report-gold); }
.gc-stats .report-controls { background: transparent; padding: 0 0 1.5rem; border: 0; border-bottom: 1px solid var(--report-rule); }
.report-controls .section-heading { padding-bottom: .25rem; }
.report-controls p { max-width: 80ch; }
.report-note { font-size: .8rem; color: var(--report-muted); max-width: 92ch; }
.gc-stats .report-board { background: transparent; border: 0; border-radius: 0; padding: 0; margin-top: 2rem; }
.report-board :is(h3, caption) { letter-spacing: -.02em; }
.summary-filters { gap: .75rem; padding: 1rem 0; margin: 1rem 0; border-block: 1px solid var(--report-rule); }
.summary-filters label { font-size: .75rem; color: var(--report-muted); flex: 1 1 150px; }
.level-board { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 2.5rem; margin: 1.25rem 0; }
.level-figure { display: block; min-width: 0; padding: 1.25rem 0; border-top: 1px solid var(--report-rule); color: inherit; text-decoration: none; }
.level-figure:hover, .level-figure[aria-current="true"] { border-top-color: var(--report-gold); color: inherit; }
.level-figure[aria-current="true"] .level-heading { color: var(--report-gold); }
.level-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font: 600 1.5rem var(--display-font); letter-spacing: -.03em; }
.level-heading .level-entries { font: .7rem var(--report-mono); color: var(--report-muted); letter-spacing: 0; }
.level-meta { font-size: .75rem; color: var(--report-muted); margin: .2rem 0 1rem; }
.coverage-label { display: flex; justify-content: space-between; gap: .5rem; font-size: .75rem; margin-bottom: .5rem; }
.coverage-label strong { color: var(--report-mint); font-weight: 500; font-variant-numeric: tabular-nums; }
.coverage-track { display: block; height: 7px; background: repeating-linear-gradient(120deg,#3d4942 0,#3d4942 1px,transparent 1px,transparent 5px); border: 1px solid #3d4942; }
.coverage-track > span { display: block; height: 100%; background: var(--report-mint); }
.level-rates { display: flex; gap: 2rem; margin-top: 1rem; }
.level-rate { display: flex; flex-direction: column; }
.level-rate small { font: .62rem var(--gc-font-sans); color: var(--report-muted); letter-spacing: .08em; }
.level-rate strong { color: var(--report-paper); font-size: 1.55rem; font-weight: 400; font-variant-numeric: tabular-nums; }
.level-open { color: var(--report-gold); font-size: .72rem; margin-left: auto; align-self: flex-end; }
.report-method { font-size: .8rem; color: var(--report-muted); margin: .75rem 0 1.5rem; max-width: 95ch; }
.report-method summary { cursor: pointer; color: var(--report-muted); padding-block: .5rem; }
.report-method p { margin: .4rem 0; }
.report-detail { border-top: 1px solid var(--report-rule); margin: 1.5rem 0; }
.report-detail > summary { padding: .9rem 0; cursor: pointer; font-weight: 600; }
.summary-level-table :is(th,td):not(:first-child), .summary-team-table :is(th,td):nth-child(n+3) { text-align: right; }
.gc-stats .summary-selected { background: #fff1e8 !important; }
#tournament-summary, #team-stats, #tournament-schedule, #tournament-teams, #saved-tournaments { scroll-margin-top: 1.5rem; }
.workflow-context { font: .8rem var(--gc-font-sans); color: var(--report-muted); margin-bottom: 1rem; }
.gc-stats .workflow-progress { padding: 1rem 0; border: 0; border-block: 1px solid var(--report-rule); background: transparent; }
.gc-stats .activity-list li { border-color: var(--report-rule); }
.table-scroll:focus-visible { outline-offset: -2px; }
@media(max-width:760px) {
    .gc-stats .site-nav { gap: 1.25rem; margin-bottom: 1.75rem; }
    .gc-stats .metric { padding: 1rem; }
    .gc-stats .metric:nth-child(odd) { padding-left: 0; }
    .gc-stats .metric:nth-child(even) { border-right: 0; }
    .gc-stats .metric:nth-child(-n+2) { border-bottom: 1px solid var(--report-rule); }
    .gc-stats .metric strong { font-size: 1.85rem; }
    .gc-stats .workflow-steps { row-gap: .6rem; }
    .gc-stats .workflow-steps li { padding-right: .75rem; }
    .gc-stats .workflow-steps li:not(:last-child)::after { margin-left: .75rem; }
    .level-board { grid-template-columns: 1fr; }
    .finder-context { max-width: 29ch; }
    .report-jumps { gap: 1rem; }
    .level-rates { gap: 1.5rem; }
    .gc-stats .section-heading { flex-wrap: wrap; }
}
@media print {
    .gc-stats { --report-rule: #b3b8b2; --report-muted: #48504a; --report-paper: #171c18; --report-surface: white; --report-gold: #795512; --report-mint: #36725c; background: white; color: #171c18; }
    .gc-stats .site-nav, .finder, .report-controls, .report-jumps, .summary-filters, .level-open { display: none !important; }
    .gc-stats h1, .gc-stats h2, .gc-stats h3 { color: #171c18; }
    .level-figure { break-inside: avoid; }
    .gc-stats .stat-table th { background: #f0f2ed; }
    .gc-stats .metric-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}

.softball-mark { display: block; flex: 0 0 auto; object-fit: contain; border-radius: 50%; }
.gc-stats .brand { text-transform: none; }
.team-refresh-toolbar { border-block: 1px solid var(--report-rule); padding: 1rem 0; margin-bottom: 1.5rem; }
.selection-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin: 1rem 0; }
.selection-actions > label { display: inline-flex; align-items: center; gap: .5rem; }
.selection-actions output { color: var(--report-muted); font: .75rem var(--report-mono); }
.selectable-team { display: flex; align-items: center; gap: .5rem; border-bottom: 1px solid var(--report-rule); }
.selectable-team .team-link { flex: 1; min-width: 0; }
.selectable-team:has(.team-refresh-pick:checked) { background: #e8b85d0c; }
.team-refresh-pick { flex-shrink: 0; }
@media(max-width:480px) {
    .gc-stats .brand { font-size: .9rem; gap: .6rem; }
    .gc-stats .brand small { font-size: .56rem; letter-spacing: .07em; }
    .softball-mark { width: 34px; height: 34px; }
    .gc-stats .tools-menu summary { padding: .6rem .7rem; }
    .team-link .team-slug { overflow-wrap: anywhere; }
}

.gc-stats .boxscore-review-link { color: var(--report-gold); text-decoration: underline; text-underline-offset: .2em; }
.alignment-review { margin-block: 1.5rem; scroll-margin-top: 1rem; }
.game-link-review { border-top: 1px solid var(--report-rule); padding-block: 1rem; }
.game-link-review > summary { cursor: pointer; }
.game-link-review .status-badge { margin-left: .5rem; }
.game-link-candidate { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; justify-content: space-between; padding: 1rem 0; border-top: 1px solid var(--report-rule); }
.game-link-candidate h4, .game-link-candidate p { margin: 0 0 .4rem; }
.game-link-candidate form { display: grid; gap: .75rem; flex-basis: 320px; }
.game-link-candidate .check-label { white-space: normal; }

/* Active theme: daylight surfaces, infield clay, and tabular scouting data. */
.gc-stats {
    color-scheme: light;
    --chalk: #faf8ff; --chalk-soft: #f2f3ff; --chalk-band: #e8ecff;
    --ink: #131b2e; --ink-muted: #475569; --clay: #c2410c; --clay-dark: #9a3412;
    --turf: #006c4a; --navy: #3650a0; --line: #cbd5e1;
    --gc-font-sans: Inter, system-ui, sans-serif;
    --gc-font-body: var(--gc-font-sans);
    --display-font: "Space Grotesk", Inter, sans-serif;
    --report-mono: "Space Mono", ui-monospace, monospace;
    --report-rule: var(--line); --report-muted: var(--ink-muted); --report-paper: var(--ink);
    --report-surface: #fff; --report-gold: var(--clay); --report-mint: var(--turf);
    --gc-bg: var(--chalk); --gc-panel: #fff; --gc-primary: var(--clay); --gc-accent: var(--clay-dark);
    --gc-text-color: var(--ink); --gc-muted-color: var(--ink-muted); --gc-highlight: var(--ink);
    --gc-gold-border: var(--line); --gc-gold-border-strong: var(--clay); --gc-gold-tint: #fff1e8;
    --gc-danger: #ba1a1a; --gc-canvas: 250 248 255; --gc-dark: 242 243 255; --gc-card: 255 255 255;
    --gc-border: 203 213 225; --gc-muted: 71 85 105; --gc-text: 19 27 46; --gc-softWhite: 19 27 46;
    --gc-gold: 194 65 12; --gc-black: 255 255 255;
    font-family: var(--gc-font-sans); font-size: 15px; line-height: 1.5; background: var(--chalk); color: var(--ink);
}
.gc-stats :focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }
.gc-stats h1, .gc-stats h2, .gc-stats h3, .gc-stats h4 { font-family: var(--display-font); font-weight: 700; color: var(--ink); letter-spacing: -.025em; }
.gc-stats h1 { font-size: clamp(28px, 3vw, 36px); line-height: 1.2; }
.gc-stats h2 { font-size: 20px; } .gc-stats h3 { font-size: 16px; }
.gc-stats .eyebrow { font: 600 11px/1.4 var(--gc-font-sans); letter-spacing: .06em; color: var(--clay-dark); }
.gc-stats .site-header { background: white; border-color: var(--line); padding: 0 24px; position: relative; z-index: 20; }
.gc-stats .header-inner { max-width: 1600px; min-height: 72px; gap: 24px; flex-wrap: wrap; }
.gc-stats .brand { gap: 10px; letter-spacing: -.02em; color: var(--ink); font-family: var(--display-font); flex-shrink: 0; font-size: 17px; }
.gc-stats .brand small { color: var(--clay-dark); font: 700 11px var(--report-mono); letter-spacing: .04em; text-transform: uppercase; }
.softball-mark { width: 34px; height: 34px; }
.gc-stats .site-nav { margin: 0; border: 0; padding: 4px; border-radius: 4px; gap: 3px; background: var(--chalk-soft); }
.gc-stats .site-nav a { border: 0; border-radius: 3px; padding: 8px 12px; color: var(--ink); font-size: 13px; }
.gc-stats .site-nav a.active, .gc-stats .tab.active { background: var(--clay); color: white; border-color: var(--clay); }
.gc-stats .site-nav a:hover:not(.active) { background: var(--chalk-band); color: var(--ink); }
.header-search { flex: 1 1 180px; display: flex; align-items: center; min-width: 130px; background: var(--chalk-soft); border-radius: 4px; }
.header-search input { width: 100%; min-width: 0; border: 0; background: transparent; padding: 10px 12px; color: var(--ink); font: inherit; }
.header-search button { color: var(--clay-dark); background: transparent; border: 0; padding: 8px 12px; font-size: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.gc-stats .tools-menu { margin-left: auto; }
.gc-stats .tools-menu summary { display: flex; align-items: center; justify-content: center; list-style: none; background: var(--chalk-soft); border: 1px solid transparent; border-radius: 4px; color: var(--ink); min-width: 44px; min-height: 44px; padding: 10px; }
.gc-stats .tools-menu summary::-webkit-details-marker { display: none; }
.gc-stats .tools-menu nav { background: white; border-color: var(--line); border-radius: 6px; box-shadow: 0 4px 12px #0f172a18; }
.gc-stats .tools-menu nav a { color: var(--ink); } .gc-stats .tools-menu a:hover { background: var(--chalk-soft); }
.gc-stats .site-main { max-width: 1600px; padding: 24px 24px 48px; }
.gc-stats .page-heading { margin-bottom: 24px; gap: 16px; }
.gc-stats .subtitle { font-size: 15px; color: var(--ink-muted); }
.gc-stats .crumbs { font-size: 12px; margin-bottom: 20px; }
.gc-stats .gc-card, .gc-stats .panel, .gc-stats .login-card, .gc-stats .filters { background: white; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 1px 2px #0f172a0a; }
.gc-stats .gc-card, .gc-stats .panel { padding: 16px; }
.gc-stats .scouting-filters { margin-bottom: 20px; }
.gc-stats .panel-lineage .panel-heading { margin-bottom: 12px; }
.gc-stats .table-panel { padding: 0; background: white; border: 1px solid var(--line); }
.gc-stats .table-panel > .section-heading { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.gc-stats .table-panel > p { margin: 0; padding: 12px 16px; line-height: 1.6; }
.gc-stats .table-panel > p + p { padding-top: 0; }
.gc-stats .section-heading { padding-bottom: 12px; gap: 12px; }
.gc-stats .section-heading h2 { font-size: 20px; }
.gc-stats .ingested-tournaments { margin-bottom: 24px; }
.gc-stats .finder { margin-bottom: 16px; }
.gc-stats .finder #discovered-tournaments { margin-bottom: 0; padding-top: 0; }
.gc-stats .finder-context { max-width: none; margin-top: 4px; }
.gc-stats .tournament-disclosure > summary { font: 600 14px var(--display-font); }
.gc-stats .tournament-disclosure[open] > summary { margin-bottom: 12px; }
.gc-stats .gc-button, .gc-stats .pager-btn, .gc-stats .print-btn, .gc-stats .logout-button { border: 1px solid var(--line); background: white; color: var(--ink); border-radius: 4px; min-height: 36px; padding: 7px 12px; font: 600 14px/1.5 var(--gc-font-sans); text-decoration: none; }
.gc-stats .gc-button:hover, .gc-stats .pager-btn:hover { background: var(--chalk-soft); border-color: var(--clay); color: var(--clay-dark); }
.gc-stats .gc-button-primary, .gc-stats .filter-actions button[type=submit], .gc-stats .login-card button[type=submit], .gc-stats .search-hit-fetch { background: var(--clay); border-color: var(--clay-dark); color: white; }
.gc-stats .gc-button-primary:hover, .gc-stats .filter-actions button[type=submit]:hover { background: var(--clay-dark); color: white; }
.gc-stats button:active, .gc-stats .gc-button:active { transform: translateY(1px); }
.gc-stats .text-button { color: var(--clay-dark); }
.gc-stats input:not([type=checkbox]):not([type=radio]):not([type=hidden]), .gc-stats select, .gc-stats textarea { color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 4px; font-family: var(--gc-font-sans); min-height: 36px; }
.gc-stats .header-search input { background: transparent; border: 0; }
/* Use the reference's body-lg for reading and body-md for compact metadata. */
.gc-stats .report-note, .gc-stats .report-method, .gc-stats .finder-help { font-size: 14px; line-height: 1.6; }
.gc-stats .summary-filters label, .gc-stats .workflow-form > label:not(.check-label), .gc-stats .filter-row > label { font-size: 14px; }
.gc-stats .level-meta, .gc-stats .coverage-label, .gc-stats .level-open, .gc-stats .level-heading .level-entries { font-size: 13px; }
.gc-stats .level-rate small { font-size: 12px; }
.gc-stats .site-nav a, .gc-stats .tab { font-size: 14px; }
.gc-stats input:not([type=checkbox]):not([type=radio]):not([type=hidden]), .gc-stats select, .gc-stats textarea { font-size: 15px; }
.gc-stats .gc-input, .gc-stats select.gc-input { background: white; color: var(--ink); border-color: var(--line); }
.gc-stats input::placeholder, .gc-stats textarea::placeholder { color: #64748b; }
.gc-stats input[type=checkbox], .gc-stats input[type=radio] { accent-color: var(--clay); }
.gc-stats input[type=date]::-webkit-calendar-picker-indicator { filter: none; }
.gc-stats .workflow-form > label:not(.check-label), .gc-stats .check-label, .gc-stats .filter-row > label, .gc-stats .filter-teams legend { color: var(--ink-muted); }
.gc-stats .age-options { gap: 6px; }
.gc-stats .age-option { min-height: 32px; padding: 4px 8px; border-radius: 4px; color: var(--ink); background: var(--chalk-soft); font: 11px var(--report-mono); }
.gc-stats .age-option:has(input:checked) { background: var(--clay); border-color: var(--clay-dark); color: white; }
.gc-stats .age-option input { accent-color: var(--clay-dark); }
.gc-stats .count-badge { background: var(--chalk-band); color: var(--navy); border-radius: 3px; font: 11px var(--report-mono); }
.gc-stats .metric-grid { border: 0; gap: 12px; margin-bottom: 20px; }
.gc-stats .metric, .gc-stats .metric:first-child, .gc-stats .metric:nth-child(odd), .gc-stats .metric:nth-child(even) { background: white; border: 1px solid var(--line); padding: 12px 16px; border-radius: 6px; }
.gc-stats .metric > span { font: 600 10px var(--gc-font-sans); color: var(--ink-muted); }
.gc-stats .metric strong { font: 700 28px var(--report-mono); margin: 6px 0; }
.gc-stats .metric small { color: var(--ink-muted); font-size: 11px; }
.gc-stats .tabs { display: inline-flex; max-width: 100%; background: var(--chalk-band); padding: 4px; border: 0; border-radius: 4px; margin: 0 0 16px; overflow-x: auto; }
.gc-stats .tab { border-radius: 3px; padding: 7px 14px; color: var(--ink); border: 0; margin: 0; font-size: 14px; font-weight: 600; }
.gc-stats .tab:hover:not(.active) { background: white; }
.gc-stats .stat-table { font-size: 12px; border-collapse: separate; border-spacing: 0; }
.gc-stats .stat-table th { padding: 8px 10px; background: var(--chalk-band); color: var(--ink); border-color: var(--line); font: 600 12px var(--gc-font-sans); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.gc-stats .stat-table td { padding: 8px 10px; border-color: #e2e8f0; font: 13px/1.5 var(--gc-font-sans); white-space: nowrap; vertical-align: middle; }
.gc-stats .stat-table td:first-child, .gc-stats .stat-table .col-player, .gc-stats .stat-table .col-team { font-family: var(--gc-font-sans); text-align: left; }
.gc-stats .stat-table tbody tr { background: white; }
.gc-stats .stat-table tbody tr:nth-child(even) { background: #f8f9ff; }
.gc-stats .stat-table tbody tr:hover { background: #fff1e8; }
.gc-stats .stat-table tbody tr:hover > :first-child { box-shadow: inset 2px 0 var(--clay); }
.gc-stats .stat-table td a { color: var(--ink); } .gc-stats .stat-table td a:hover { color: var(--clay-dark); }
.gc-stats .stat-table td.num, .gc-stats .stat-table th.num { text-align: right; }
.gc-stats .stat-table td.num,
.gc-stats .summary-level-table tbody td:not(:first-child),
.gc-stats .summary-team-table tbody td:nth-child(n+3),
.gc-stats .summary-schedule tbody td:nth-child(4),
.gc-stats .stat-line dd { font-family: var(--report-mono); font-variant-numeric: tabular-nums; }
.gc-stats .stat-table .sorted-stat { color: var(--clay-dark); background: #c2410c06; }
.gc-stats .stat-table th.sorted-stat { background: #f1e6e8; }
.gc-stats .stat-table .stat-ops { color: var(--turf); font-weight: 700; }
.gc-stats .table-scroll { scrollbar-width: thin; scrollbar-color: #94a3b8 var(--chalk-soft); overscroll-behavior-x: contain; }
.gc-stats .player-grid .col-player { position: sticky; left: 0; z-index: 2; min-width: 220px; width: 220px; max-width: 220px; background: inherit; white-space: normal; box-shadow: 1px 0 0 var(--line); }
.gc-stats .player-grid thead .col-player { background: var(--chalk-band); z-index: 4; }
.gc-stats .player-grid thead tr { background: var(--chalk-band); }
.gc-stats .player-grid .col-player a { font-family: var(--display-font); font-size: 14px; font-weight: 700; }
.player-team-mobile { display: none; }
.player-rank { display: inline-block; min-width: 22px; text-align: center; padding: 2px 4px; margin-right: 6px; font: 11px var(--report-mono); background: var(--chalk-band); color: var(--clay-dark); border-radius: 3px; }
.gc-stats .grid-meta, .gc-stats .pager { font: 13px var(--gc-font-sans); background: var(--chalk-soft); color: var(--ink-muted); padding: 10px 12px; }
.gc-stats .grid-meta { margin: -16px -16px 0; }
/* Give each team a readable name line, with its season and age directly below. */
.gc-stats .team-checkboxes,
.gc-stats .team-checkboxes.wide {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 26rem), 1fr));
    gap: 4px 16px;
    max-height: 22rem;
    padding: 2px;
    scrollbar-gutter: stable;
}
.gc-stats .team-checkbox {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: start;
    align-items: start;
    gap: 2px 10px;
    padding: 8px;
    border-radius: 4px;
}
.gc-stats .team-checkbox input { grid-column: 1; grid-row: 1 / 3; margin-top: 3px; }
.gc-stats .team-checkbox-name { grid-column: 2; grid-row: 1; line-height: 1.45; overflow-wrap: anywhere; }
.gc-stats .team-checkbox-meta { grid-column: 2; grid-row: 2; line-height: 1.45; }
.gc-stats .team-checkbox:hover,
.gc-stats .team-checkbox:has(input:checked) { background: var(--chalk-band); }
.gc-stats .team-checkbox:focus-within { outline: 2px solid var(--clay); outline-offset: -2px; }
.gc-stats .pager { border: 1px solid var(--line); border-radius: 4px; margin-top: 8px; gap: 12px; flex-wrap: wrap; }
.gc-stats .grid-meta strong { color: var(--clay-dark); }
.table-hint { font-size: 11px; color: var(--ink-muted); display: flex; justify-content: space-between; gap: 12px; margin: 8px 0; }
.gc-stats .table-footer { padding: 12px 16px; }
.gc-stats .level-board { gap: 12px; background: transparent; border: 0; }
.gc-stats .level-figure { background: white; border: 1px solid var(--line); border-radius: 6px; padding: 16px; }
.gc-stats .level-figure[aria-current=true] { border: 2px solid var(--clay); padding: 15px; background: #fffaf6; }
.gc-stats .level-heading { color: var(--navy); font-family: var(--display-font); }
.gc-stats .coverage-track { background: var(--chalk-band); border-radius: 2px; }
.gc-stats .coverage-track > span { background: var(--turf); }
.gc-stats .level-rate strong { font-family: var(--report-mono); color: var(--ink); }
.gc-stats .report-controls { background: white; }
.gc-stats .candidate-row, .gc-stats .inline-match-search { background: var(--chalk-soft); border: 1px solid var(--line); border-radius: 4px; }
.gc-stats .candidate-score { color: var(--clay-dark); font-family: var(--report-mono); }
.gc-stats .candidate-score small, .gc-stats .empty-state { color: var(--ink-muted); }
.gc-stats .status-badge { color: var(--ink-muted); border-color: var(--line); background: var(--chalk-soft); border-radius: 3px; font-size: 10px; padding: 3px 6px; }
.gc-stats .status-badge.success, .gc-stats .status-badge.succeeded, .gc-stats .status-badge.updated, .gc-stats .status-badge.current { background: #ecfdf5; color: #006c4a; border-color: #a7d9c4; }
.gc-stats .status-badge.running, .gc-stats .status-badge.queued, .gc-stats .status-badge.partial { background: #fff7ed; color: #9a3412; border-color: #fed7aa; }
.gc-stats .status-badge.failed, .gc-stats .status-badge.interrupted { background: #fff1f2; color: #ba1a1a; border-color: #fecaca; }
.gc-stats .notice, .gc-stats .form-success { background: #fff7ed; border-color: #fed7aa; color: #832600; border-radius: 4px; }
.gc-stats progress { accent-color: var(--turf); } .gc-stats progress::-webkit-progress-value { background: var(--turf); } .gc-stats progress::-webkit-progress-bar { background: var(--chalk-band); }
.gc-stats .selectable-team:has(.team-refresh-pick:checked) { background: #fff1e8; }
.gc-stats .activity-list li { border-color: var(--line); }
.gc-stats .tournament-refresh-table tbody th { background: inherit; color: var(--ink); font: 600 12px/1.5 var(--gc-font-sans); letter-spacing: 0; text-transform: none; }
.gc-stats .tournament-refresh-table tbody th .cell-detail { font: 11px var(--report-mono); }
.gc-stats .summary-selected { background: #fff1e8; }
.gc-stats .boxscore-review-link { color: var(--clay-dark); }
.site-footer { max-width: 1600px; margin: auto; padding: 20px 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; color: var(--ink-muted); font-size: 11px; }
.site-footer strong { display: block; color: var(--clay-dark); text-transform: uppercase; font-size: 10px; letter-spacing: .08em; }
.leaderboard-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 20px; }
.leaderboard-controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.leaderboard-metrics { display: flex; gap: 8px; }
.leaderboard-metrics > div { min-width: 110px; background: white; border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; }
.leaderboard-metrics dt { display: block; color: var(--ink-muted); font-size: 10px; text-transform: uppercase; }
.leaderboard-metrics dd { margin: 4px 0 0; font: 700 18px var(--report-mono); }
.leaderboard-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.preset-controls { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-bottom: 16px; }
.preset-controls a { padding: 5px 8px; color: var(--ink); background: var(--chalk-band); border-radius: 3px; text-decoration: none; font-size: 11px; }
.preset-controls a[aria-current=true] { background: white; box-shadow: inset 0 -2px var(--clay); }
.scout-sheet { max-width: 1100px; margin: auto; }
.scout-header { display: flex; gap: 16px; align-items: center; }
.jersey-mark { background: var(--clay); color: white; font: 700 28px var(--report-mono); border-radius: 4px; padding: 12px; min-width: 64px; text-align: center; }
.jersey-mark small { display: block; font-size: 10px; font-weight: 400; }
.scout-header h1 { font-size: 28px; margin-bottom: 4px; }
.scout-sheet .gc-card { margin-block: 16px; }
.scout-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin-top: 12px; }
.scout-metrics > div { padding: 10px 6px; text-align: center; background: var(--chalk-band); border-radius: 4px; }
.scout-metrics dt { font-size: 10px; text-transform: uppercase; }
.scout-metrics dd { margin: 5px 0 0; font: 700 18px var(--report-mono); }
.scout-metrics .accent { background: var(--clay); color: white; }
.scout-metrics .positive { background: var(--turf); color: white; }
.scout-facts { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 12px; margin: 12px 0 0; }
.scout-facts dt { color: var(--ink-muted); font-size: 10px; text-transform: uppercase; }
.scout-facts dd { margin: 0; font-weight: 600; }
.scout-stat-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(65px,1fr)); gap: 12px; text-align: center; }
.scout-stat-list dt { font-size: 10px; color: var(--ink-muted); } .scout-stat-list dd { margin: 4px 0; font: 13px var(--report-mono); }
.scout-plays { list-style: none; padding: 0; margin: 0; } .scout-plays li { background: var(--chalk-soft); padding: 12px; margin-top: 8px; border-radius: 4px; }
.scout-plays p { margin: 6px 0 0; } .scout-plays small { color: var(--ink-muted); }
/* Font roles match new_theme: UI = Inter; display = Space Grotesk; data = Space Mono.
   Native controls and code elements do not inherit the body's font by default. */
.gc-stats button, .gc-stats input, .gc-stats select, .gc-stats textarea, .gc-stats option { font-family: var(--gc-font-sans); }
.gc-stats code, .gc-stats pre, .gc-stats kbd, .gc-stats samp,
.gc-stats .team-slug, .gc-stats .token-form textarea { font-family: var(--report-mono); }
.gc-stats h2, .gc-stats h3, .gc-stats h4, .gc-stats h5, .gc-stats h6 { font-family: var(--display-font); font-weight: 600; }
.gc-stats .level-heading, .gc-stats .player-profile-link { font-family: var(--display-font); font-weight: 600; }
.gc-stats .status-badge, .gc-stats .cell-detail, .gc-stats .table-hint { font-family: var(--gc-font-sans); }
.gc-stats code.cell-detail { font-family: var(--report-mono); }
.gc-stats .player-grid .col-player a { font-size: 16px; font-weight: 600; }
@media(min-width:1100px) {
    .gc-stats .player-grid .col-team { position: sticky; left: 220px; min-width: 210px; max-width: 210px; width: 210px; z-index: 1; background: inherit; white-space: normal; box-shadow: 1px 0 var(--line); }
    .gc-stats .player-grid thead .col-team { background: var(--chalk-band); z-index: 3; }
}
@media(max-width:1100px) { .header-search { display: none; } .gc-stats .header-inner { gap: 12px; } }
@media(max-width:760px) {
    .gc-stats { font-size: 15px; }
    .gc-stats .site-header { padding: 0 12px; }
    .gc-stats .header-inner { min-height: 62px; padding-block: 10px; gap: 12px; }
    .gc-stats .brand { font-size: 15px; } .gc-stats .brand small { font-size: 9px; }
    .gc-stats .site-nav { order: 3; width: 100%; justify-content: space-between; }
    .gc-stats .site-nav a { flex: 1; text-align: center; padding: 9px 6px; min-height: 40px; }
    .gc-stats .site-main { padding: 16px 12px 32px; }
    .gc-stats .page-heading { margin-bottom: 16px; gap: 12px; }
    .gc-stats .metric-grid { gap: 8px; }
    .gc-stats .metric, .gc-stats .metric:first-child { padding: 10px; }
    .gc-stats .metric strong { font-size: 22px; }
    .gc-stats .gc-button { min-height: 40px; }
    .gc-stats .level-board { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
    .gc-stats .level-figure { padding: 10px; } .gc-stats .level-figure[aria-current=true] { padding: 9px; }
    .gc-stats .level-heading { flex-wrap: wrap; } .gc-stats .level-rates { gap: 8px; flex-wrap: wrap; }
    .gc-stats .level-rate strong { font-size: 18px; }
    .gc-stats .coverage-label { flex-wrap: wrap; }
    .gc-stats .level-open { font-size: 13px; flex-basis: 100%; margin-left: 0; }
    .gc-stats .stat-table td, .gc-stats .stat-table th { padding: 9px 8px; }
    .gc-stats .player-grid .col-player { min-width: 155px; width: 155px; max-width: 155px; }
    .gc-stats .player-grid .col-player a { font-size: 16px; }
    .gc-stats .player-grid .col-team { display: none; }
    .player-team-mobile { display: block; color: var(--ink-muted); font-size: 10px; margin: 4px 0 0 2px; }
    .player-rank { min-width: 18px; margin-right: 3px; font-size: 10px; }
    .gc-stats .team-checkboxes, .gc-stats .team-checkboxes.wide { grid-template-columns: 1fr; }
    .gc-stats .team-picker-select { min-width: 0; width: 100%; }
    .leaderboard-metrics { width: 100%; }
    .leaderboard-metrics > div { flex: 1; min-width: 0; padding: 8px; }
    .leaderboard-metrics strong { font-size: 16px; }
    .scout-header { gap: 10px; } .scout-header h1 { font-size: 22px; }
    .scout-metrics { gap: 4px; } .scout-metrics dd { font-size: 16px; }
    .site-footer { padding: 16px 12px; flex-direction: column; }
}
@media(prefers-reduced-motion:reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
@media print {
    .gc-stats { background: white; font-size: 10px; }
    .site-footer, .header-search, .scout-sheet .tabs, .scout-sheet .page-actions, .alignment-review form { display: none !important; }
    .gc-stats .site-main { padding: 0; } .gc-stats .gc-card, .gc-stats .panel { break-inside: avoid; box-shadow: none; }
    .gc-stats .table-scroll { overflow: visible; } .gc-stats .stat-table .col-player, .gc-stats .stat-table .col-team { position: static; }
}

/* Analysis controls follow the same column grid as their headline cards. */
.analyses-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; margin-top: 24px; }
.analyses-column { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.gc-stats .analyses-column > .gc-card { margin-bottom: 0; }
.analyses-column .tournament-analysis-picker > label { flex: 1 1 240px; width: auto; min-width: 0; }
@media (max-width: 900px) {
    .analyses-columns { grid-template-columns: 1fr; gap: 20px; }
}
.tournament-analysis-picker { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-top: 16px; }
.tournament-analysis-picker > label { display: flex; flex-direction: column; gap: 6px; width: min(100%, 520px); color: var(--ink-muted); }
.tournament-analysis-picker select { width: 100%; min-width: 0; }
.tournament-analysis-picker .field-validation-valid { display: none; }
.tournament-analysis-picker .field-validation-error { flex-basis: 100%; margin: 0; }
.gc-stats .analysis-filters { margin: 20px 0 24px; }
.gc-stats .analysis-filters .filter-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: end; }
.gc-stats .analysis-filters .filter-row > label { min-width: 0; }
.gc-stats .analysis-filters select { width: 100%; min-width: 0; height: 40px; }
.gc-stats .analysis-filters button { justify-self: start; min-height: 40px; }
.gc-stats .level-analysis-filters .filter-row { grid-template-columns: minmax(180px, 300px) auto; }
@media (max-width: 760px) {
    .gc-stats .analysis-filters .filter-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 8px; }
    .gc-stats .level-analysis-filters .filter-row { grid-template-columns: minmax(0, 1fr) auto; }
}
@media (max-width: 480px) {
    .gc-stats .level-analysis-filters .filter-row { grid-template-columns: minmax(0, 1fr); }
}
.gc-stats .sport-menu summary { background: var(--chalk-soft); border-color: var(--line); color: var(--ink); }
.gc-stats .sport-menu nav { background: white; border-color: var(--line); }
.gc-stats .sport-menu a { color: var(--ink); }
.gc-stats .sport-menu a:hover, .gc-stats .sport-menu a[aria-current="true"] { color: var(--clay-dark); background: var(--chalk-soft); }
.gc-stats .matchup-picker { margin: 20px 0 24px; display: grid; grid-template-columns: minmax(110px, 160px) repeat(2, minmax(180px, 1fr)) auto; gap: 12px; align-items: end; }
.gc-stats .matchup-picker > label { min-width: 0; }
.gc-stats .matchup-picker select { width: 100%; min-width: 0; height: 40px; }
.gc-stats .matchup-picker button { min-height: 40px; }
.gc-stats .forecast-picker { margin: 20px 0 24px; }
.gc-stats .forecast-picker > label { width: min(100%, 360px); }
.gc-stats .forecast-picker select { width: 100%; min-width: 0; height: 40px; }
.gc-stats .forecast-picker button { min-height: 40px; }
.gc-stats a.guest-player-indicator { display: inline-flex; align-items: center; gap: 3px; flex-shrink: 0; vertical-align: middle; margin-left: 6px; padding: 2px; border: 1px solid #fed7aa; border-radius: 4px; background: #fff7ed; color: #9a3412; line-height: 1; text-decoration: none; }
.gc-stats .guest-player-indicator img { display: block; width: 20px; height: 20px; }
.gc-stats .guest-player-indicator:hover { background: #ffedd5; border-color: #c64008; }
.gc-stats .guest-player-indicator:focus-visible { outline: 2px solid var(--clay-dark); outline-offset: 3px; }
.gc-stats .guest-indicator-count { font: 700 12px var(--gc-font-sans); padding-right: 3px; }
.gc-stats .matchup-outcomes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.gc-stats .matchup-outcomes > div { border: 1px solid var(--line); border-radius: 5px; padding: 16px; }
.gc-stats .matchup-outcomes small { display: block; color: var(--ink-muted); }
.gc-stats .matchup-outcomes strong { display: block; font-size: 28px; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .gc-stats .matchup-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .gc-stats .matchup-picker, .gc-stats .matchup-outcomes { grid-template-columns: 1fr; } }

/* Registration import and tournament pool scenarios */
.coming-import { margin: 1.5rem 0; }
.coming-import .workflow-form > label:first-child { grid-column: 1 / -1; }
.pool-picker { margin: 1.5rem 0; gap: 1rem; }
.pool-picker input[type=number] { width: 8rem; }
.pool-means { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; padding: 1rem; color: var(--ink-muted); }
