@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800&family=Barlow:wght@400;500&family=Inter:wght@400;500;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scrollbar-gutter: stable; }

:root {
  --blue: #1e40af; --blue-light: #dbeafe; --blue-mid: #1d4ed8; --blue-muted: #93c5fd;
  --pink: #9d174d; --pink-light: #fce7f3; --pink-muted: #f9a8d4;
  --slate: #374151; --slate-light: #f3f4f6; --slate-muted: #d1d5db;
  --green: #065f46; --green-light: #d1fae5; --green-muted: #6ee7b7;
  --bg: #f8fafc; --surface: #ffffff; --border: #e2e8f0;
  --text: #0f172a; --text-muted: #64748b; --text-faint: #94a3b8;
  --radius: 10px; --radius-sm: 6px;
}

body { font-family: Inter, Arial, sans-serif; background: var(--bg); color: var(--text); font-size: 17px; line-height: 1.65; }

a { color: inherit; text-decoration: none; }
button,
input,
select,
textarea {
  font-family: inherit;
}

.container { max-width: 900px; margin: 0 auto; padding: 0 1.25rem; }

/* NAV */
.site-nav { background: linear-gradient(145deg, #23312d 0%, #181f1d 58%, #271b10 100%); border-bottom: 1px solid rgba(215, 165, 87, 0.34); position: sticky; top: 0; z-index: 100; box-shadow: 0 12px 30px rgba(24, 31, 29, 0.18); }
.nav-inner { display: flex; align-items: center; gap: 1.5rem; height: 64px; }
.nav-logo { display: flex; align-items: center; gap: 12px; font-family: 'Barlow Condensed', sans-serif; font-size: 22px; font-weight: 700; margin-right: auto; color: #fff7df; }
.nav-logo img { width: 56px; height: 64px; object-fit: contain; display: block; transform: translateY(2px); }
.nav-links { display: flex; gap: 0.25rem; }
.nav-link { font-size: 15px; font-weight: 500; padding: 7px 14px; border-radius: var(--radius-sm); color: rgba(255,255,255,0.76); transition: background 0.15s, color 0.15s; }
.nav-link:hover { background: rgba(255,255,255,0.11); color: #ffffff; }
.nav-link.active { background: #235347; color: #ffffff; border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.13); }
.nav-link { display: inline-flex; align-items: center; gap: 6px; }
.nav-link[href="dashboard.html"] { display: none; }
body.dashboard-nav-enabled .nav-link[href="dashboard.html"] { display: inline-flex; }
.nav-pro-badge { display: inline-flex; align-items: center; justify-content: center; min-height: 18px; border-radius: 999px; background: #d7a557; color: #17110a; padding: 2px 7px; font-size: 10px; font-weight: 900; line-height: 1; text-transform: uppercase; letter-spacing: 0; }
.nav-link.active .nav-pro-badge { background: #fff7df; color: #1b1409; }
.nav-burger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: #fff7df; border-radius: 2px; transition: all 0.2s; }

/* PAGE HEADER */
.page-header { padding: 2rem 0 1.5rem; display: flex; align-items: flex-end; flex-wrap: wrap; gap: 0.45rem 1rem; }
.page-header .eyebrow { flex: 0 0 100%; }
.eyebrow { font-family: Inter, Arial, sans-serif; font-size: 13px; font-weight: 800; letter-spacing: 0; text-transform: uppercase; color: #c84b31; margin-bottom: 0.35rem; }
.page-title { margin-right: auto; font-family: 'Barlow Condensed', sans-serif; font-size: clamp(28px, 4.5vw, 52px); font-weight: 700; line-height: 1.05; color: #18362f; }
.page-sub { flex: 0 0 100%; font-size: 15px; color: var(--text-muted); margin-top: 0.35rem; }

/* CARDS */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }

/* SECTION LABEL */
.section-label { font-family: Inter, Arial, sans-serif; font-size: 13px; font-weight: 800; letter-spacing: 0; text-transform: uppercase; color: #c84b31; margin-bottom: 0.6rem; }

/* BADGE */
.badge { display: inline-block; font-family: Inter, Arial, sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0; text-transform: uppercase; padding: 4px 8px; border-radius: 4px; }
.badge-final { background: var(--bg); color: var(--text-muted); border: 1px solid var(--border); }
.badge-tie { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.badge-upcoming { background: #eff6ff; color: #1d4ed8; }

/* TABLES */
.data-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.data-table th { padding: 0.65rem 0.85rem; font-family: Inter, Arial, sans-serif; font-size: 15px; font-weight: 500; text-transform: uppercase; letter-spacing: 0; color: #ffffff; text-align: center; background: #1e40af; border-bottom: 1px solid #1d4ed8; cursor: pointer; user-select: none; }
.data-table th.left { text-align: left; }
.data-table th:hover { background: #1d4ed8; color: #ffffff; }
.data-table th.sorted { color: #bfdbfe; }
.data-table td { padding: 0.38rem 0.85rem; font-family: Inter, Arial, sans-serif; font-size: 15px; font-weight: 400; text-align: center; border-bottom: 1px solid var(--border); color: #80928c; }
.data-table td.left { text-align: left; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--bg); }
.data-table tbody tr:nth-child(even) { background: var(--bg); }
.data-table tbody tr:nth-child(even):hover { background: #e8edf2; }
.team-leaders-table tbody td,
.team-leaders-table tbody a,
.team-leaders-table tbody span {
  font-family: Inter, Arial, sans-serif;
}
.team-leaders-table tbody td {
  color: #80928c;
  font-weight: 400;
}
.team-leaders-table tbody a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
}

.player-name { font-weight: 500; color: var(--text); font-size: 16px; }
.player-team-tag { font-size: 13px; color: var(--text-muted); display: block; }
.impact-panel { margin-bottom: 1rem; padding: 0.85rem 1rem; }
.impact-panel-head { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: 0.65rem; font-family: Inter, Arial, sans-serif; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0; color: var(--text-muted); }
.impact-panel-head > div { display: flex; align-items: center; justify-content: flex-end; gap: 0.65rem; flex-wrap: wrap; }
.impact-panel-head strong { font-family: Inter, Arial, sans-serif; color: var(--text); font-size: 13px; font-weight: 800; letter-spacing: 0; text-align: right; }
.impact-report-btn { border: 1px solid #1e40af; background: #1e40af; color: #fff; border-radius: 5px; padding: 0.35rem 0.55rem; font-family: Inter, Arial, sans-serif; font-size: 12px; font-weight: 800; letter-spacing: 0; cursor: pointer; }
.impact-grid { display: grid; grid-template-columns: repeat(6, minmax(70px, 1fr)); gap: 0.65rem; }
.impact-metric { background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 0.55rem 0.65rem; text-align: center; }
.impact-metric span { display: block; margin-bottom: 0.25rem; font-family: Inter, Arial, sans-serif; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0; color: var(--text-muted); }
.impact-metric strong { display: block; font-family: Inter, Arial, sans-serif; font-size: 22px; font-weight: 700; color: var(--text); line-height: 1; }
.impact-report { margin-top: 0.85rem; padding: 0.75rem 0.85rem; border: 1px solid var(--border); border-radius: 6px; background: #f8fafc; color: var(--text-muted); font-size: 13px; line-height: 1.45; }
.impact-report p { margin: 0 0 0.55rem; }
.impact-report p:last-child { margin-bottom: 0; }
.game-log-team { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; max-width: 100%; text-align: center; white-space: nowrap; padding-block: 0.08rem; }
.game-log-team a { min-width: 0; max-width: calc(100% - 1.2rem); justify-content: center; line-height: 1.25; padding-bottom: 1px; }
.game-log-team-label { display: inline-block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.game-log-team.away { padding-right: 0; }
.game-log-away-cell { padding-right: 1rem !important; }
.game-log-score { display: inline-block; font-family: Inter, Arial, sans-serif; font-size: 15px; font-weight: 600; color: #263f39; line-height: 1; min-width: 12px; text-align: center; flex-shrink: 0; }
.game-log-score.winner { color: var(--text); font-weight: 800; }
.game-log-score.loser, .game-log-score.tie { color: var(--text-muted); font-weight: 400; }
.stat-hi { font-family: Inter, Arial, sans-serif; font-size: 18px; font-weight: 700; color: #000; }
.impact-cost { display: inline-block; cursor: help; min-width: 48px; padding: 0.18rem 0.35rem; border-radius: 4px; font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.impact-low { color: #166534; background: #dcfce7; }
.impact-neutral { color: #334155; background: #e2e8f0; border: 1px solid #94a3b8; }
.impact-costly { color: #991b1b; background: #fee2e2; }
.impact-shared { color: #92400e; background: #fef3c7; }
.impact-personal { color: #92400e; background: #fef3c7; }
.jersey-num { font-family: Inter, Arial, sans-serif; font-size: 15px; font-weight: 500; color: #788b85; }
.pos-badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.04em; background: var(--bg); color: var(--text-muted); border: 1px solid var(--border); }
.rank-num { font-family: Inter, Arial, sans-serif; font-size: 13px; font-weight: 600; color: #60746d; }
.rank-1 { font-family: Inter, Arial, sans-serif; font-weight: 800; color: #263f39; font-size: 15px; }

/* TEAM DOT */
.team-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; flex-shrink: 0; }

/* FILTER / TAB BUTTONS */
.filter-row { display: flex; gap: 0.5rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.f-btn { font-family: Inter, Arial, sans-serif; font-size: 14px; font-weight: 600; padding: 7px 15px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: transparent; color: var(--text-muted); cursor: pointer; letter-spacing: 0; transition: all 0.15s; }
.f-btn:hover { background: var(--bg); color: var(--text); }
.f-btn.active { background: #1e40af; color: #fff; border-color: #1e40af; }
.tab-row { display: flex; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; width: fit-content; margin-bottom: 1rem; }

/* HERO */
.hero-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; margin-bottom: 1.5rem; }
.hero-league-name { font-family: 'Barlow Condensed', sans-serif; font-size: clamp(28px, 4.5vw, 52px); font-weight: 700; line-height: 1.05; white-space: nowrap; color: #18362f; }
.hero-meta { display: flex; gap: 2rem; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.hero-meta-item strong { display: block; font-family: 'Barlow Condensed', sans-serif; font-size: 26px; font-weight: 600; line-height: 1.2; }
.hero-meta-item span { display: block; font-family: Inter, Arial, sans-serif; color: var(--text-muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }

/* TEAM SWITCHER */
.team-switcher { display: flex; gap: 0.5rem; margin-bottom: 1.25rem; flex-wrap: wrap; }

/* STREAK DOTS */
.streak-row { display: flex; align-items: center; gap: 4px; margin-top: 17px; padding-left: 6px; }
.streak-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.streak-label { margin-left: 10px; font-family: Inter, Arial, sans-serif; color: var(--text-muted); font-size: 11px; font-weight: 500; line-height: 1; }

/* GAME ROW */
.game-row { display: grid; grid-template-columns: 52px 1fr 68px 1fr 76px; align-items: center; gap: 6px; padding: 0.38rem 1rem; border-bottom: 1px solid var(--border); }
.game-row:last-child { border-bottom: none; }
.game-row:hover { background: var(--bg); }
/* Schedule page uses full dates - needs wider date column */
.schedule-game-row { grid-template-columns: 100px 1fr 68px 1fr 76px; }
.game-date-col { font-family: Inter, Arial, sans-serif; font-size: 14px; font-weight: 400; color: var(--text); line-height: 1.18; white-space: nowrap; }
.game-date-col strong { display: inline; font-family: Inter, Arial, sans-serif; font-size: 14px; font-weight: 400; color: var(--text); }
.game-team-col { display: flex; align-items: center; gap: 5px; font-family: Inter, Arial, sans-serif; font-size: 14px; font-weight: 400; min-width: 0; color: #607186; }
.game-team-col a, .game-team-col span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-team-col.away { justify-content: flex-end; }
.game-score { text-align: center; font-family: Inter, Arial, sans-serif; font-size: 21px; font-weight: 700; width: 68px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; gap: 2px; }
.score-sep { font-size: 14px; color: var(--text-muted); font-weight: 400; margin: 0 1px; }
.schedule-vs { font-size: 14px; color: var(--text-muted); font-weight: 400; }
.game-status { text-align: right; }
.winner { color: var(--text); font-weight: 700; }
.loser { color: #607186; font-weight: 400; }

/* TEAM CARD (teams page) */
.team-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 1rem; }
.team-card-link { display: block; color: inherit; cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.team-card-link:hover, .team-card-link:focus-visible { border-color: #bfdbfe; box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08); transform: translateY(-1px); outline: none; }
.team-card-header { display: flex; align-items: center; gap: 1rem; padding: 1.25rem; border-bottom: 1px solid var(--border); }
.team-logo-circle { width: 56px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.team-card-record { font-size: 15px; color: var(--text-muted); }
.team-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem; margin-top: 0.9rem; }
.team-summary-card { border: 1px solid rgba(24, 54, 47, 0.12); border-radius: 8px; background: rgba(255, 255, 255, 0.92); padding: 13px; min-width: 0; }
.team-summary-card span { display: block; font-family: Inter, Arial, sans-serif; color: var(--text-muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.team-summary-card strong { display: block; font-family: Inter, Arial, sans-serif; color: var(--text); font-size: 28px; font-weight: 700; line-height: 1.1; }
.team-card-rank { text-align: right; }
.team-card-rank-lbl { font-size: 13px; color: var(--text-muted); }
.team-stats-row { border-bottom: 1px solid var(--border); display: grid; grid-template-columns: repeat(3, 1fr); }
.tstat { padding: 0.85rem 0; text-align: center; border-right: 1px solid var(--border); }
.tstat:last-child { border-right: none; }
.tstat-val { font-size: 26px; font-weight: 600; display: block; }
.tstat-lbl { display: block; font-family: Inter, Arial, sans-serif; color: var(--text-muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.team-card-footer { display: flex; gap: 0.5rem; padding: 0.85rem 1.25rem; background: var(--bg); border-top: 1px solid var(--border); }

/* ROSTER HERO */
.roster-hero { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.5rem; }
.page-logo-card { background: var(--surface); }
.roster-hero-summary { flex: 1; min-width: 0; display: flex; align-items: center; }
.roster-hero-stats { display: flex; align-items: center; gap: 1.5rem; margin: 0; flex-wrap: wrap; }
.rhs { font-family: Inter, Arial, sans-serif; font-size: 12px; font-weight: 800; text-transform: uppercase; color: #60746d; }
.rhs strong { display: block; font-family: Inter, Arial, sans-serif; font-size: 24px; font-weight: 600; color: #263f39; line-height: 1.15; }
.page-card-stat strong { font-size: 28px; }


/* STANDINGS TABLE */
.standings-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 1.5rem; }

/* TWO COL */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }

/* LEADERS */
.leader-row { display: grid; grid-template-columns: 28px 1fr 44px 44px; align-items: center; padding: 0.65rem 1rem; border-bottom: 1px solid var(--border); font-size: 15px; gap: 8px; }
.leader-row:last-child { border-bottom: none; }

/* FOOTER */
.site-footer { border-top: 1px solid var(--border); padding: 1.5rem 0; margin-top: 3rem; text-align: center; font-family: Inter, Arial, sans-serif; font-size: 13px; font-weight: 500; color: #7b8d87; }
.site-footer .footer-brand { color: #4f6860; font-weight: 600; }

/* RESPONSIVE */
@media (max-width: 640px) {
  .hero-league-name { font-size: 26px; white-space: normal; }

  .container { padding-left: 0.875rem; padding-right: 0.875rem; }
  .nav-logo { gap: 8px; font-size: 18px; }
  .nav-logo img { width: 49px; height: 58px; transform: translateY(2px); }
  .section-head-row { align-items: flex-start; }
  .section-head-row .season-toggle { width: 100%; justify-content: flex-start; }
  .team-card-header { flex-direction: column; text-align: center; }
  .team-card-header > div, .roster-hero > div, .player-hero > div { min-width: 0; }
  .team-card-footer { flex-wrap: wrap; justify-content: center; padding: 0.75rem; }
  .schedule-game-row .game-date-col { white-space: normal; }
  .box-header { padding: 1rem; }
  .hero-meta { gap: 0.75rem; flex-wrap: wrap; }
  .team-summary-grid { grid-template-columns: 1fr; }
  .hero-block { flex-direction: column; align-items: center; text-align: center; }
  .hero-block img { width: 160px !important; height: 160px !important; }
  .two-col { grid-template-columns: 1fr; }
  .team-stats-row { border-bottom: 1px solid var(--border); grid-template-columns: repeat(3, 1fr); }
  .game-row { grid-template-columns: 42px 1fr 52px 1fr 58px; gap: 3px; padding: 0.38rem 0.6rem; }
  .schedule-game-row { grid-template-columns: 70px minmax(0,1fr) 50px minmax(0,1fr) 52px; }
  .game-score { font-size: 16px; width: 52px; }
  .game-date-col { font-size: 11px; }
  .game-date-col strong { font-size: 12px; }
  .game-team-col { font-size: 12px; gap: 3px; }
  .badge { font-size: 10px; padding: 2px 5px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: linear-gradient(145deg, #23312d 0%, #181f1d 58%, #271b10 100%); border-bottom: 1px solid rgba(215, 165, 87, 0.34); padding: 0.75rem 1.25rem; gap: 0.25rem; z-index: 99; }
  .page-title { font-size: 26px; }
  .filter-row { gap: 0.35rem; flex-wrap: wrap; }
  .f-btn { font-size: 12px; padding: 5px 9px; }
  .roster-hero { flex-direction: column; text-align: center; padding: 0.9rem 1rem; }
  .roster-hero-summary { justify-content: center; width: 100%; }
  .roster-hero-stats { justify-content: center; flex-wrap: wrap; gap: 0.75rem; }
  .data-table th { padding: 0.35rem 0.35rem; font-size: 11px; background: #1e40af; }
  .data-table td { padding: 0.28rem 0.35rem; font-size: 12px; }
  .tstat-val { font-size: 20px; }
  .tstat-lbl { font-size: 11px; }
  .team-card-header img { width: 160px !important; height: 160px !important; }
  .roster-hero img[alt] { width: 150px !important; height: 150px !important; }
  #teams-grid { grid-template-columns: repeat(2, 1fr) !important; }
  #teams-grid img { width: 100px !important; height: 100px !important; }
  .contact-grid { grid-template-columns: 1fr !important; }
  .reg-layout { grid-template-columns: 1fr !important; }
  .player-hero { flex-direction: column; align-items: center; text-align: center; }
  .impact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .impact-panel-head { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
  .player-hero-stats { justify-content: center; flex-wrap: wrap; gap: 0.75rem; }
  .team-switcher { flex-wrap: wrap; }
  .hero-meta-item strong { font-size: 20px; }
  .season-toggle { flex-wrap: wrap; }
  .box-header { flex-direction: column; align-items: center; }
  .box-score { font-size: 36px; }
  tfoot td { font-size: 14px !important; padding: 0.35rem 0.5rem !important; }
}

.section-head-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.section-head-row .season-toggle { margin: 0; justify-content: flex-end; }
.section-head-row .s-btn { padding: 6px 14px; font-size: 13px; }
/* SEASON TYPE TOGGLE */
.season-toggle { display: flex; gap: 6px; margin-bottom: 1.25rem; align-items: center; }
.season-toggle-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-right: 4px; }
.s-btn { padding: 6px 14px; font-family: Inter, Arial, sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 0; border: 1.5px solid var(--border); border-radius: 20px; background: var(--surface); color: var(--text-muted); cursor: pointer; transition: all 0.15s; white-space: nowrap; }
.s-btn:hover { border-color: #94a3b8; color: var(--text); }
.s-btn.active { background: #c91f32; border-color: #c91f32; color: #fff; }
.s-btn.active-spring { background: rgb(124, 58, 237); border-color: rgb(124, 58, 237); color: #fff; }
.s-btn.active-tournaments { background: #1e40af; border-color: #1e40af; color: #fff; }
.s-btn.active-regular { background: #065f46; border-color: #065f46; color: #fff; }
.s-btn.active-exhibition { background: #b45309; border-color: #b45309; color: #fff; }
.s-btn.active-playoff { background: #7c3aed; border-color: #7c3aed; color: #fff; }
.s-btn.active-combined { background: #0891b2 !important; border-color: #0891b2 !important; color: #fff !important; }

/* CLICKABLE GAME ROW */
.game-row-link { color: inherit; }
.game-row-link:hover .game-row { background: #eff6ff; }

/* ANNOUNCEMENT BANNER */
.announcement-img { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius); margin-top: 1rem; display: block; }
@media (max-width: 640px) {
  .announcement-img { max-height: 240px; }
}


/* STATS CONTROLS */
.stats-control-stack { display: flex; flex-direction: column; align-items: flex-end; gap: 0.55rem; margin-bottom: 1rem; }
.stats-tab-row { margin-bottom: 0; }
.stats-season-toggle { justify-content: flex-end; margin-bottom: 0; flex-wrap: wrap; }
.stats-table-head { margin-top: 0.2rem; }

/* Compact season controls used on table pages. */
.stats-season-toggle { flex-wrap: wrap; }
@media (max-width: 640px) {
  .stats-control-stack { align-items: flex-end; gap: 0.5rem; }
  .stats-season-toggle { width: 100%; gap: 6px; justify-content: flex-end; margin-bottom: 0 !important; }
  .stats-season-toggle .season-toggle-label { display: none; }
  .stats-season-toggle .s-btn { padding: 6px 14px; font-size: 13px; }
}

/* PAGE LOGO */
.page-logo-block { display: flex; justify-content: flex-start; margin: -0.55rem 0 1.5rem; }
.page-logo-block img { width: 260px; height: 260px; object-fit: contain; display: block; }
@media (max-width: 640px) {
  .page-logo-block { justify-content: center; margin: -0.35rem 0 1.25rem; }
  .page-logo-block img { width: 160px; height: 160px; }
}

.player-progress-card { margin-bottom: 1rem; }
.player-chart-head { display: flex; align-items: center; justify-content: space-between; gap: 0.85rem; flex-wrap: wrap; margin-bottom: 0.45rem; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }
.player-chart-wrap + .player-chart-divider { margin-top: 0.65rem; }
.player-chart-divider { border-top: 1px solid var(--border); margin-bottom: 0.75rem; }
.player-progress-legend { justify-content: space-between; align-items: center; }
.player-progress-toggles { display: flex; align-items: center; gap: 0.85rem; flex-wrap: wrap; }
.player-progress-keys { display: inline-flex; align-items: center; gap: 0.7rem; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.player-progress-keys span { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 12px; font-weight: 700; color: var(--text-muted); }
.player-progress-keys i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.player-key-pm { background: #1e40af; }
.player-key-points { background: #1e40af; }
.player-key-plus { background: rgba(22, 163, 74, 0.58); }
.player-key-minus { background: rgba(220, 38, 38, 0.54); }
.player-bar-plus, rect.player-bar-plus { fill: #16a34a; opacity: 0.58; }
.player-bar-minus, rect.player-bar-minus { fill: #dc2626; opacity: 0.54; }
.player-hover-guide, .chart-hover-guide { stroke: #64748b; stroke-width: 1; stroke-dasharray: 4 4; opacity: 0; pointer-events: none; }
.player-bar-hover:hover .player-hover-guide, .chart-bar-hover:hover .chart-hover-guide { opacity: 0.35; }
.player-key-goals, .player-bar-goals { background: #16a34a; fill: #16a34a; opacity: 0.72; }
.player-key-assists, .player-bar-assists { background: #0891b2; fill: #0891b2; opacity: 0.58; }
.player-points-line { fill: none; stroke: #1e40af; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.player-pm-line { fill: none; stroke: #1e40af; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.player-plus-line { fill: none; stroke: #16a34a; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; opacity: 0.8; }
.player-minus-line { fill: none; stroke: #dc2626; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; opacity: 0.75; }
.player-dot-plus { fill: #16a34a; stroke: #fff; stroke-width: 2; }
.player-dot-minus { fill: #dc2626; stroke: #fff; stroke-width: 2; }
.player-dot-even { fill: #d97706; stroke: #fff; stroke-width: 2; }

@media (max-width: 640px) {
  .player-progress-legend { align-items: flex-start; }
  .player-progress-keys { width: 100%; margin-left: 0; justify-content: flex-end; }
}
/* TEAM PROGRESS CHART */
.progress-card { margin-bottom: 2rem; padding: 0.9rem 1rem 1rem; }
.progress-controls { display: flex; align-items: center; gap: 0.85rem; flex-wrap: wrap; margin-bottom: 0.45rem; }
.progress-legend-inline { display: inline-flex; align-items: center; gap: 0.7rem; margin-left: auto; font-size: 12px; font-weight: 700; color: var(--text-muted); }
.progress-legend-inline span { display: inline-flex; align-items: center; gap: 0.3rem; }
.progress-legend-inline i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.progress-key-gf { background: #16a34a; opacity: 0.72; }
.progress-key-ga { background: #dc2626; opacity: 0.55; }
.progress-check { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 13px; font-weight: 700; color: var(--text); cursor: pointer; }
.progress-check input { width: 15px; height: 15px; accent-color: #1e40af; }
.progress-chart-wrap { width: 100%; overflow-x: auto; }
.progress-chart { width: max(100%, var(--progress-chart-width, 720px)); max-width: none; height: auto; display: block; }
.progress-zero { stroke: #cbd5e1; stroke-width: 1.25; stroke-dasharray: 5 5; }
.progress-axis { stroke: #94a3b8; stroke-width: 1.25; }
.progress-line { fill: none; stroke: #1e40af; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.progress-bar-gf { fill: #16a34a; opacity: 0.72; }
.progress-bar-ga { fill: #dc2626; opacity: 0.55; }
.progress-dot-win { fill: #16a34a; stroke: #fff; stroke-width: 2; }
.progress-dot-loss { fill: #dc2626; stroke: #fff; stroke-width: 2; }
.progress-dot-tie { fill: #d97706; stroke: #fff; stroke-width: 2; }
.progress-axis-label, .progress-axis-title { fill: var(--text-muted); font-size: 11px; font-family: Inter, Arial, sans-serif; }
.progress-empty { padding: 1rem; color: var(--text-muted); font-family: Inter, Arial, sans-serif; font-size: 13px; }
@media (max-width: 640px) {
  .progress-card { padding: 0.75rem; }
  .progress-controls { gap: 0.65rem; margin-bottom: 0.35rem; }
  .progress-legend-inline { margin-left: 0; }
  .progress-chart { width: max(100%, var(--progress-chart-width, 720px)); }
}

@media (max-width: 640px) { .analytics-grid { grid-template-columns: 1fr; } }


.analytics-reference { margin-bottom: 0.85rem; padding: 0.55rem 0.75rem; background: linear-gradient(180deg, #f3f6fb 0%, #edf2f8 100%); border-color: #d7e0ec; }
.analytics-reference .impact-panel-head { margin-bottom: 0.4rem; }
.analytics-reference-grid { grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: 0.4rem; }
.analytics-reference .impact-metric { padding: 0.32rem 0.4rem; }
.analytics-reference .impact-metric span { margin-bottom: 0.12rem; }
.analytics-reference .impact-metric span { font-size: 10px; }
.analytics-reference .impact-metric strong { font-size: 20px; }
.analytics-cost-pct { display: block; margin-top: 0.25rem; font-family: Inter, Arial, sans-serif; font-size: 16px; font-weight: 600; color: #263f39; line-height: 1; }
@media (max-width: 760px) { .analytics-reference-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.analytics-table-card { margin-bottom: 0.75rem; }
.analytics-empty-season { margin: 0.25rem 0 1.35rem; padding: 1rem 1.1rem; color: var(--text-muted); background: #fff; }
.analytics-empty-season strong { display: block; color: var(--text); font-family: 'Barlow Condensed', sans-serif; font-size: 22px; line-height: 1.1; margin-bottom: 0.25rem; }
.analytics-empty-season span { display: block; font-size: 14px; line-height: 1.45; }
.analytics-table-note { margin: 0 0 2rem; padding-left: 1rem; font-family: Inter, Arial, sans-serif; color: var(--text-muted); font-size: 13px; font-weight: 400; line-height: 1.45; }
.analytics-table .analytics-player-link { color: var(--text); font-weight: 800; text-decoration: none; }
.analytics-table .analytics-player-link:hover { color: #1e40af; }
.analytics-player-meta { display: block; margin-top: 0.1rem; color: var(--text-muted); font-size: 12px; }
.analytics-cost-pct.inline { display: inline; margin-top: 0; font-size: 18px; }
.analytics-table-report { padding: 0.28rem 0.45rem; font-size: 11px; }
.analytics-report-row td { background: #f8fafc; text-align: left; }
.analytics-report-row .impact-report { margin: 0; }

.analytics-table { min-width: 0; }
.analytics-table th { padding-left: 0.42rem; padding-right: 0.42rem; }
#analytics-table th { font-size: 12px; }
.analytics-table td { padding: 0.28rem 0.42rem; }
.analytics-table .impact-cost { min-width: 52px; padding: 0.15rem 0.28rem; font-size: 10px; }
.analytics-table .pos-badge { padding: 2px 6px; font-size: 11px; }
.analytics-table .jersey-num { font-size: 16px; }
.analytics-definitions { margin-bottom: 2rem; padding: 0.75rem 0.9rem; font-family: Inter, Arial, sans-serif; }
.analytics-definition-list { display: grid; gap: 0.38rem; font-family: Inter, Arial, sans-serif; color: var(--text-muted); font-size: 13px; font-weight: 400; line-height: 1.42; }
.analytics-definition-list p { margin: 0; }
.analytics-definition-list strong { color: var(--text); font-weight: 700; }
.analytics-definition-list h3 { margin: 0.12rem 0 0.03rem; font-family: Inter, Arial, sans-serif; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0; color: var(--text-muted); }
.analytics-definition-divider { height: 1px; margin: 0.55rem 0 0.35rem; background: linear-gradient(90deg, transparent, #d7e0ec, transparent); }

.analytics-table tbody tr:nth-child(even) { background: transparent; }
.analytics-table tbody tr:nth-child(even):hover { background: transparent; }
.analytics-table td { padding-top: 0.38rem; padding-bottom: 0.38rem; }
.analytics-table th:first-child, .analytics-table td:first-child { padding-left: 0.85rem; }
.analytics-table .analytics-player-link { font-weight: 500; font-size: 16px; }
.analytics-player-cell { display: flex; align-items: center; justify-content: space-between; gap: 0.65rem; min-width: 0; }
.analytics-player-cell .analytics-player-link { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.season-journey { width: 76px; height: 22px; flex: 0 0 76px; display: inline-flex; align-items: center; justify-content: center; opacity: 0.95; }
.season-journey svg { width: 76px; height: 22px; display: block; overflow: visible; }
.season-journey polyline { fill: none; stroke: #475569; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.season-journey circle { fill: #475569; stroke: #fff; stroke-width: 1; }
.season-journey.up polyline { stroke: #15803d; }
.season-journey.up circle { fill: #15803d; stroke: #fff; }
.season-journey.down polyline { stroke: #b91c1c; }
.season-journey.down circle { fill: #b91c1c; stroke: #fff; }
.season-journey.flat polyline { stroke: #1e40af; }
.season-journey.flat circle { fill: #1e40af; stroke: #fff; }
.season-journey-empty { opacity: 0.25; }
.analytics-name-spark { display: inline-flex; align-items: center; gap: 0.55rem; max-width: 100%; }
@media (max-width: 720px) { .season-journey { width: 58px; flex-basis: 58px; } .season-journey svg { width: 58px; } }
.analytics-impact-toggle { border: 0; cursor: pointer; font-family: inherit; }
.analytics-impact-toggle[aria-expanded="true"] { outline: 2px solid rgba(30,64,175,0.25); outline-offset: 2px; }

.analytics-table tbody tr.analytics-player-row td { background: #fff; }
.analytics-table tbody tr.analytics-player-row.analytics-even td, .analytics-table tbody tr.analytics-even td { background: rgb(250,252,255); }
.analytics-table tbody tr.analytics-player-row:hover td { background: #e8edf2; }
.analytics-table tbody tr.analytics-player-row td { padding-top: 0.72rem; padding-bottom: 0.72rem; }
.analytics-impact-toggle { min-height: 30px; min-width: 96px; max-width: 126px; display: inline-flex; align-items: center; justify-content: center; line-height: 1.08; padding: 0.32rem 0.42rem; white-space: normal; }
.impact-cell { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.22rem; min-width: 108px; }
.impact-rich-label { display: block; max-width: 132px; color: var(--text-muted); font-size: 11px; font-weight: 700; line-height: 1.16; text-align: center; text-transform: none; letter-spacing: 0; }
.analytics-cost-pct.inline { font-family: Inter, Arial, sans-serif; font-size: 16px; font-weight: 600; }
.analytics-cost-pct.inline.impact-low { color: #166534; background: transparent; }
.analytics-cost-pct.inline.impact-neutral { color: #64748b; background: transparent; border: 0; }
.analytics-cost-pct.inline.impact-costly { color: #dc2626; background: transparent; }
.analytics-cost-pct.inline.impact-shared { color: #92400e; background: transparent; }
.analytics-cost-pct.inline.impact-personal { color: #92400e; background: transparent; }
.analytics-dash { font-family: Inter, Arial, sans-serif; font-size: 16px; font-weight: 500; color: var(--text-muted); }

.analytics-focus-control { margin-left: auto; display: flex; align-items: center; justify-content: flex-end; gap: 0.5rem; flex-wrap: wrap; }
.analytics-focus-control label { display: inline-flex; align-items: center; gap: 0.45rem; font-family: Inter, Arial, sans-serif; color: var(--text-muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0; }
.analytics-focus-control select { min-width: 190px; height: 34px; border: 1px solid var(--border); border-radius: 6px; background: #fff; color: var(--text); font-family: Inter, Arial, sans-serif; font-size: 13px; font-weight: 600; padding: 0 0.55rem; }
.analytics-focus-mode { display: inline-flex; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; background: #fff; }
.analytics-focus-mode button { border: 0; border-right: 1px solid var(--border); background: #fff; color: var(--text-muted); height: 32px; padding: 0 0.6rem; font-family: Inter, Arial, sans-serif; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0; cursor: pointer; }
.analytics-focus-mode button:last-child { border-right: 0; }
.analytics-focus-mode button.active { background: #1e40af; color: #fff; }
.analytics-focus-mode.disabled { opacity: 0.48; background: #f8fafc; }
.analytics-focus-mode button:disabled { cursor: not-allowed; color: #94a3b8; background: #f8fafc; }
.analytics-focus-mode button:disabled.active { background: #e2e8f0; color: #64748b; }
.accountability-point.focus-muted, .impact-scatter-point.focus-muted, .scoring-scatter-point.focus-muted, .coach-scatter-point.focus-muted { opacity: 0.22; }
.accountability-point.focus-selected circle, .impact-scatter-point.focus-selected circle, .scoring-scatter-point.focus-selected circle, .coach-scatter-point.focus-selected circle { stroke: #0f172a; stroke-width: 5; filter: drop-shadow(0 3px 5px rgba(15,23,42,0.36)); }
@media (max-width: 720px) { .analytics-focus-control { width: 100%; justify-content: flex-start; margin-top: 0.55rem; } .analytics-focus-control select { min-width: 0; flex: 1 1 170px; } }
.analytics-view-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 1.2rem; }
.analytics-view-link { border: 1px solid var(--border); background: #fff; color: var(--text-muted); border-radius: 6px; padding: 0.45rem 0.7rem; font-family: Inter, Arial, sans-serif; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0; }
.analytics-view-link:hover { color: var(--text); border-color: #cbd5e1; }
.analytics-view-link.active { background: #1e40af; border-color: #1e40af; color: #fff; }
.analytics-view-link[href="analytics-coach.html"], .analytics-view-link[href="analytics-goalie-coach.html"] { border: 3px double #1e40af; box-shadow: 0 0 0 2px rgba(30,64,175,0.10); }
.analytics-view-link[href="analytics-coach.html"].active, .analytics-view-link[href="analytics-goalie-coach.html"].active { box-shadow: 0 0 0 3px rgba(30,64,175,0.18), inset 0 0 0 1px rgba(255,255,255,0.72); }
.analytics-coach-note { font-family: Inter, Arial, sans-serif; color: var(--text-muted); font-size: 13px; font-weight: 400; margin: -0.25rem 0 1.35rem; line-height: 1.45; }
.analytics-coach-note strong { font-family: Inter, Arial, sans-serif; font-weight: 700; letter-spacing: 0; color: #4c6077; }
.analytics-label { display: inline-flex; align-items: center; justify-content: center; min-width: 72px; min-height: 28px; border-radius: 4px; padding: 0.32rem 0.46rem; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; line-height: 1; }
.analytics-label-good { color: #166534; background: #dcfce7; }
.analytics-label-warn { color: #92400e; background: #fef3c7; }
.analytics-label-risk { color: #991b1b; background: #fee2e2; }
.analytics-label-calm { color: #1e3a8a; background: #dbeafe; }
.analytics-label-specialist { color: #065f46; background: #ccfbf1; }
.analytics-label-neutral { color: #475569; background: #e2e8f0; }
.analytics-table .analytics-tight { font-family: Inter, Arial, sans-serif; font-size: 16px; font-weight: 600; color: #263f39; }
.analytics-table .analytics-value-muted { font-weight: 400; color: var(--text-muted); }
.analytics-table .analytics-value-emphasis { font-size: 18px; font-weight: 700; color: #000; }
.analytics-table .analytics-value-good { color: #166534; }
.analytics-table .analytics-value-warn { color: #92400e; }
.analytics-table .analytics-value-risk { color: #991b1b; }
.analytics-table .analytics-value-calm { color: #1e3a8a; }
.analytics-table .analytics-value-neutral { color: #475569; }
.analytics-table .analytics-cost-pct.analytics-value-muted { font-size: 18px; font-weight: 400; }

.analytics-filter-row { display: flex; justify-content: flex-end; margin: -0.35rem 0 0.7rem; }
.analytics-filter-row .season-toggle { margin: 0; justify-content: flex-end; }
.analytics-position-filter-row { margin-top: -0.45rem; }
.analytics-position-toggle { justify-content: flex-end; margin-bottom: 0; }
.analytics-full-report-actions { display: flex; justify-content: flex-end; margin: -0.5rem 0 1rem; }
.analytics-full-report { margin-bottom: 1rem; border-color: #93c5fd; background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%); box-shadow: 0 12px 28px rgba(30,64,175,0.14); }
.analytics-full-report-list ul { margin: 0 0 0.85rem 1.1rem; padding: 0; }
.analytics-full-report-list li { margin-bottom: 0.35rem; }
@media (max-width: 640px) {
  .analytics-filter-row { justify-content: flex-start; margin-top: -0.2rem; }
  .analytics-filter-row .season-toggle { justify-content: flex-start; }
  .analytics-position-toggle { justify-content: flex-start; }
  .analytics-full-report-actions { justify-content: flex-start; }
}
.analytics-label-toggle { border: 0; cursor: pointer; font-family: inherit; }
.analytics-label-toggle[aria-expanded="true"] { outline: 2px solid rgba(30,64,175,0.25); outline-offset: 2px; }
.accountability-card { margin-bottom: 1rem; padding: 0.85rem 1rem 1rem; }
.accountability-chart-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.65rem; font-family: Inter, Arial, sans-serif; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0; color: var(--text-muted); }
.accountability-chart-head strong { font-family: Inter, Arial, sans-serif; color: var(--text); font-size: 13px; font-weight: 800; letter-spacing: 0; }
.accountability-chart-tools { display: flex; align-items: center; justify-content: flex-end; gap: 0.75rem; flex-wrap: wrap; }
.accountability-chart-tools .filter-row { gap: 0.25rem; margin: 0; }
.accountability-chart-tools .f-btn { font-size: 11px; font-weight: 600; padding: 4px 8px; border-radius: 5px; }
.accountability-chart-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 6px; background: #fff; }
.accountability-svg { display: block; min-width: 780px; width: 100%; height: auto; }
.accountability-svg .quad { opacity: 0.52; }
.accountability-svg .accountable-bg { fill: #ecfdf5; }
.accountability-svg .context-risk-bg { fill: #fff7ed; }
.accountability-svg .risk-bg { fill: #fff7ed; }
.accountability-svg .liability-bg { fill: #fef2f2; }
.accountability-svg .axis-line { stroke: #94a3b8; stroke-width: 2; }
.accountability-svg .avg-line { stroke: #334155; stroke-width: 1.6; stroke-dasharray: 8 7; opacity: 0.72; }
.accountability-svg .axis-label { fill: var(--text-muted); font-size: 18px; font-weight: 800; text-anchor: middle; text-transform: uppercase; letter-spacing: 0.04em; }
.accountability-svg .tick-label { fill: var(--text-muted); font-size: 15px; font-weight: 700; }
.accountability-svg .quad-label { fill: rgba(15, 23, 42, 0.56); font-size: 20px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.accountability-point circle { stroke: #fff; stroke-width: 3; filter: drop-shadow(0 2px 3px rgba(15,23,42,0.25)); }
.accountability-point[role="button"], .impact-scatter-point[role="button"], .scoring-scatter-point[role="button"], .coach-scatter-point[role="button"] { cursor: pointer; }
.accountability-svg .point-guide { stroke: rgba(71,85,105,0.35); stroke-width: 1.2; stroke-dasharray: 3 4; }
.accountability-point text { fill: #fff; font-size: 11px; font-weight: 900; text-anchor: middle; pointer-events: none; }
.accountability-point.accountable circle { fill: #16a34a; }
.accountability-point.context-risk circle { fill: #d97706; }
.accountability-point.risk circle { fill: #d97706; }
.accountability-point.liability circle { fill: #dc2626; }
.accountability-legend { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.65rem; margin: -0.55rem 0 1.8rem; }
.accountability-legend + .analytics-table-note { margin-top: 0; margin-bottom: 2.35rem; }
.accountability-legend > div { display: grid; grid-template-columns: auto 1fr; gap: 0.1rem 0.45rem; align-items: center; border: 1px solid var(--border); border-radius: 6px; padding: 0.55rem 0.65rem; background: #fff; }
.accountability-legend strong { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text); }
.accountability-legend span:last-child { grid-column: 2; color: var(--text-muted); font-size: 12px; line-height: 1.25; }
.accountability-dot { width: 11px; height: 11px; border-radius: 999px; display: inline-block; }
.accountability-dot.accountable { background: #16a34a; }
.accountability-dot.context-risk { background: #d97706; }
.accountability-dot.risk { background: #d97706; }
.accountability-dot.liability { background: #dc2626; }
.accountability-empty { padding: 2rem; color: var(--text-muted); text-align: center; }
@media (max-width: 760px) { .accountability-legend, .impact-label-legend, .scoring-label-legend, .coach-label-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .accountability-legend, .impact-label-legend, .scoring-label-legend, .coach-label-legend { grid-template-columns: 1fr; } .accountability-chart-head { align-items: flex-start; flex-direction: column; gap: 0.35rem; } .accountability-chart-tools { justify-content: flex-start; gap: 0.45rem; } }
.impact-scatter-card { margin: 0.85rem 0 1.1rem; padding: 0.85rem 1rem 1rem; }
.impact-scatter-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 6px; background: #fff; }
.impact-scatter-svg { display: block; min-width: 780px; width: 100%; height: auto; }
.impact-scatter-svg .impact-zone { opacity: 0.48; }
.impact-scatter-svg .neutral-zone { fill: #f8fafc; }
.impact-scatter-svg .low-zone { fill: #ecfdf5; }
.impact-scatter-svg .personal-zone { fill: #fff7ed; }
.impact-scatter-svg .context-zone { fill: #fff7ed; }
.impact-scatter-svg .costly-zone { fill: #fef2f2; }
.impact-scatter-svg .axis-line { stroke: #94a3b8; stroke-width: 2; }
.impact-scatter-svg .threshold-line { stroke: #334155; stroke-width: 1.4; stroke-dasharray: 7 7; opacity: 0.58; }
.impact-scatter-svg .axis-label { fill: var(--text-muted); font-size: 18px; font-weight: 800; text-anchor: middle; text-transform: uppercase; letter-spacing: 0.04em; }
.impact-scatter-svg .tick-label { fill: var(--text-muted); font-size: 15px; font-weight: 700; }
.impact-scatter-svg .zone-label { fill: rgba(15, 23, 42, 0.56); font-size: 20px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.impact-scatter-svg .point-guide { stroke: rgba(71,85,105,0.35); stroke-width: 1.2; stroke-dasharray: 3 4; }
.impact-scatter-point circle { stroke: #fff; stroke-width: 3; filter: drop-shadow(0 2px 3px rgba(15,23,42,0.25)); }
.impact-scatter-point text { fill: #fff; font-size: 11px; font-weight: 900; text-anchor: middle; pointer-events: none; }
.impact-scatter-point.low circle { fill: #16a34a; }
.impact-scatter-point.neutral circle { fill: #94a3b8; }
.impact-scatter-point.shared circle { fill: #d97706; }
.impact-scatter-point.personal circle { fill: #d97706; }
.impact-scatter-point.costly circle { fill: #dc2626; }
.impact-label-legend { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.65rem; margin: -0.55rem 0 1.8rem; }
.impact-label-legend > div { display: grid; grid-template-columns: auto 1fr; gap: 0.1rem 0.45rem; align-items: center; border: 1px solid var(--border); border-radius: 6px; padding: 0.55rem 0.65rem; background: #fff; }
.impact-label-legend strong { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text); }
.impact-label-legend span:last-child { grid-column: 2; color: var(--text-muted); font-size: 12px; line-height: 1.25; }
.impact-label-legend + .analytics-table-note { margin-top: 0; margin-bottom: 2.35rem; }
.impact-scatter-legend { display: flex; align-items: center; justify-content: flex-end; gap: 0.85rem; flex-wrap: wrap; margin-top: 0.65rem; color: var(--text-muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.impact-scatter-legend span { display: inline-flex; align-items: center; gap: 0.32rem; }
.impact-dot { width: 10px; height: 10px; border-radius: 999px; display: inline-block; }
.impact-dot.low, .impact-dot.positive, .impact-dot.winning { background: #16a34a; }
.impact-dot.neutral, .impact-dot.stable { background: #94a3b8; }
.impact-dot.shared { background: #d97706; }
.impact-dot.personal, .impact-dot.defensive { background: #d97706; }
.impact-dot.costly { background: #dc2626; }
.scoring-scatter-card { margin: 0.85rem 0 1.1rem; padding: 0.85rem 1rem 1rem; }
.scoring-scatter-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 6px; background: #fff; }
.scoring-scatter-svg { display: block; min-width: 780px; width: 100%; height: auto; }
.scoring-scatter-svg .scoring-zone { opacity: 0.52; }
.scoring-scatter-svg .driver-zone { fill: #ecfdf5; }
.scoring-scatter-svg .finisher-zone { fill: #eff6ff; }
.scoring-scatter-svg .specialist-zone { fill: #ccfbf1; }
.scoring-scatter-svg .support-zone { fill: #f8fafc; }
.scoring-scatter-svg .axis-line { stroke: #94a3b8; stroke-width: 2; }
.scoring-scatter-svg .avg-line { stroke: #334155; stroke-width: 1.5; stroke-dasharray: 8 7; opacity: 0.65; }
.scoring-scatter-svg .axis-label { fill: var(--text-muted); font-size: 18px; font-weight: 800; text-anchor: middle; text-transform: uppercase; letter-spacing: 0.04em; }
.scoring-scatter-svg .tick-label { fill: var(--text-muted); font-size: 15px; font-weight: 700; }
.scoring-scatter-svg .zone-label { fill: rgba(15, 23, 42, 0.56); font-size: 20px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.scoring-scatter-svg .point-guide { stroke: rgba(71,85,105,0.35); stroke-width: 1.2; stroke-dasharray: 3 4; }
.scoring-scatter-point circle { stroke: #fff; stroke-width: 3; filter: drop-shadow(0 2px 3px rgba(15,23,42,0.25)); }
.scoring-scatter-point text { fill: #fff; font-size: 11px; font-weight: 900; text-anchor: middle; pointer-events: none; }
.scoring-scatter-point.driver circle { fill: #16a34a; }
.scoring-scatter-point.finisher circle { fill: #1e40af; }
.scoring-scatter-point.specialist circle { fill: #0f766e; }
.scoring-scatter-point.support circle { fill: #64748b; }
.scoring-label-legend { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.65rem; margin: -0.55rem 0 1.8rem; }
.scoring-label-legend > div { display: grid; grid-template-columns: auto 1fr; gap: 0.1rem 0.45rem; align-items: center; border: 1px solid var(--border); border-radius: 6px; padding: 0.55rem 0.65rem; background: #fff; }
.scoring-label-legend strong { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text); }
.scoring-label-legend span:last-child { grid-column: 2; color: var(--text-muted); font-size: 12px; line-height: 1.25; }
.scoring-label-legend + .analytics-table-note { margin-top: 0; margin-bottom: 2.35rem; }
.scoring-dot { width: 10px; height: 10px; border-radius: 999px; display: inline-block; }
.scoring-dot.driver { background: #16a34a; }
.scoring-dot.finisher { background: #1e40af; }
.scoring-dot.specialist { background: #0f766e; }
.scoring-dot.support { background: #64748b; }
.coach-table-note { margin-top: 0.2rem; margin-bottom: 1.9rem; padding-left: 1rem; }
.coach-full-report-actions { justify-content: center; margin: 0 0 0.45rem; }
#coach-full-report, #goalie-coach-full-report { margin-top: 0; margin-bottom: 2.8rem; }
#coach-full-report[style*="display:none"], #coach-full-report[style*="display: none"], #goalie-coach-full-report[style*="display:none"], #goalie-coach-full-report[style*="display: none"] { margin-bottom: 0; }
.coach-full-report-actions:has(+ #coach-full-report[style*="display:none"]),
.coach-full-report-actions:has(+ #coach-full-report[style*="display: none"]),
.coach-full-report-actions:has(+ #goalie-coach-full-report[style*="display:none"]),
.coach-full-report-actions:has(+ #goalie-coach-full-report[style*="display: none"]) { margin-bottom: 3.8rem; }
.coach-label-legend { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.65rem; margin: -0.55rem 0 1.8rem; }
.coach-label-legend > div { display: grid; grid-template-columns: auto 1fr; gap: 0.1rem 0.45rem; align-items: center; border: 1px solid var(--border); border-radius: 6px; padding: 0.55rem 0.65rem; background: #fff; }
.coach-label-legend strong { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text); }
.coach-label-legend span:last-child { grid-column: 2; color: var(--text-muted); font-size: 12px; line-height: 1.25; }
.coach-dot { width: 10px; height: 10px; border-radius: 999px; display: inline-block; }
.coach-dot.lockdown { background: #16a34a; }
.coach-dot.driver { background: #1e40af; }
.coach-dot.stable { background: #64748b; }
.coach-dot.risk { background: #d97706; }
.coach-dot.protected { background: #dc2626; }
.coach-scatter-card { margin: 0.85rem 0 1.1rem; padding: 0.85rem 1rem 1rem; }
.coach-scatter-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 6px; background: #fff; }
.coach-scatter-svg { display: block; min-width: 780px; width: 100%; height: auto; }
.coach-scatter-svg .coach-zone { opacity: 0.52; }
.coach-scatter-svg .driver-zone { fill: #eff6ff; }
.coach-scatter-svg .lockdown-zone { fill: #ecfdf5; }
.coach-scatter-svg .risk-zone { fill: #fff7ed; }
.coach-scatter-svg .protected-zone { fill: #fef2f2; }
.coach-scatter-svg .axis-line { stroke: #94a3b8; stroke-width: 2; }
.coach-scatter-svg .avg-line { stroke: #334155; stroke-width: 1.5; stroke-dasharray: 8 7; opacity: 0.65; }
.coach-scatter-svg .axis-label { fill: var(--text-muted); font-size: 18px; font-weight: 800; text-anchor: middle; text-transform: uppercase; letter-spacing: 0.04em; }
.coach-scatter-svg .tick-label { fill: var(--text-muted); font-size: 15px; font-weight: 700; }
.coach-scatter-svg .zone-label { fill: rgba(15, 23, 42, 0.56); font-size: 20px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.coach-scatter-svg .point-guide { stroke: rgba(71,85,105,0.35); stroke-width: 1.2; stroke-dasharray: 3 4; }
.coach-scatter-point circle { stroke: #fff; stroke-width: 3; filter: drop-shadow(0 2px 3px rgba(15,23,42,0.25)); }
.coach-scatter-point text { fill: #fff; font-size: 11px; font-weight: 900; text-anchor: middle; pointer-events: none; }
.coach-scatter-point.lockdown circle { fill: #16a34a; }
.coach-scatter-point.driver circle { fill: #1e40af; }
.coach-scatter-point.risk circle { fill: #d97706; }
.coach-scatter-point.protected circle { fill: #dc2626; }
.coach-scatter-point.stable circle { fill: #64748b; }
.performance-table-card { margin: 1rem 0 2.35rem; }
.performance-table .analytics-tight { font-size: 15px; }
.performance-game-label { color: var(--text); font-weight: 500; font-size: 16px; }
.performance-card { margin-bottom: 1rem; padding: 0.85rem 1rem 1rem; }
.performance-chart-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.65rem; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.performance-legend-inline { display: flex; align-items: center; gap: 0.85rem; flex-wrap: wrap; }
.performance-legend-inline span { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--text-muted); font-size: 12px; font-weight: 800; }
.performance-key { width: 24px; height: 3px; border-radius: 999px; display: inline-block; }
.performance-key.minus { background: #1e40af; }
.performance-key.pga { background: #dc2626; }
.performance-chart-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 6px; background: #fff; }
.performance-svg { display: block; min-width: 780px; width: 100%; height: auto; }
.performance-grid { stroke: #e2e8f0; stroke-width: 1; }
.performance-line { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.performance-line.minus { stroke: #1e40af; }
.performance-line.pga { stroke: #dc2626; }
.performance-dot { stroke: #fff; stroke-width: 2.5; }
.performance-dot.minus { fill: #1e40af; }
.performance-dot.pga { fill: #dc2626; }
.performance-tick, .performance-x-label { fill: var(--text-muted); font-size: 14px; font-weight: 700; text-anchor: middle; }
.performance-tick { font-size: 13px; }
.performance-tick { text-anchor: end; }
.performance-svg .axis-line { stroke: #94a3b8; stroke-width: 2; }
.performance-svg .axis-label { fill: var(--text-muted); font-size: 16px; font-weight: 800; text-anchor: middle; text-transform: uppercase; letter-spacing: 0.04em; }
.scoring-radar { margin-top: 0.85rem; padding-top: 0.85rem; border-top: 1px solid var(--border); display: grid; grid-template-columns: minmax(195px, 285px) 1fr; gap: 1rem; align-items: center; }
.scoring-radar-svg { width: 100%; max-width: 285px; height: auto; display: block; }
.scoring-radar-grid { fill: none; stroke: #dbe3ef; stroke-width: 1; }
.scoring-radar-axis { stroke: #cbd5e1; stroke-width: 1; }
.scoring-radar-shape { fill: rgba(30,64,175,0.18); stroke: #1e40af; stroke-width: 2.5; }
.scoring-radar-dot { fill: #1e40af; stroke: #fff; stroke-width: 2; }
.scoring-radar-label { fill: var(--text-muted); font-size: 11px; font-weight: 800; text-anchor: middle; text-transform: uppercase; letter-spacing: 0.03em; }
.scoring-radar-list { display: grid; gap: 0.32rem; color: var(--text-muted); font-size: 12px; }
.scoring-radar-list span { display: flex; justify-content: space-between; gap: 0.8rem; border-bottom: 1px solid #e8eef6; padding-bottom: 0.25rem; }
.scoring-radar-list strong { color: var(--text); }
.scoring-radar-list em { font-style: normal; font-weight: 800; color: #1e40af; }
.radar-note { grid-column: 1 / -1; margin: -0.1rem 0 0; color: var(--text-muted); font-size: 13px; line-height: 1.4; }
.radar-note strong { color: var(--text); }
@media (max-width: 640px) { .scoring-radar { grid-template-columns: 1fr; } .scoring-radar-svg { margin: 0 auto; } }

@media (max-width: 640px) {
  .analytics-view-nav { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 0.15rem; scrollbar-width: thin; }
  .analytics-view-link { flex: 0 0 auto; padding: 0.42rem 0.62rem; font-size: 11px; }
}
@media (min-width: 641px) {
  body { font-size: 18px; line-height: 1.68; }
  .container { max-width: 940px; }
  .nav-logo { font-size: 24px; }
  .nav-link { font-size: 16px; padding: 8px 15px; }
  .page-title { font-size: clamp(28px, 4.5vw, 52px); }
  .page-sub { font-size: 16px; }
  .eyebrow, .section-label { font-size: 13px; }
  .data-table th { font-size: 15px; padding-top: 0.72rem; padding-bottom: 0.72rem; }
  .data-table td { font-size: 16px; padding-top: 0.46rem; padding-bottom: 0.46rem; }
  .player-name { font-size: 17px; }

  .player-team-tag { font-size: 14px; }
  .game-log-score { font-size: 16px; }
  .jersey-num { font-size: 16px; }
  .pos-badge { font-size: 13px; }
  .f-btn { font-size: 15px; }
  .s-btn,
  .section-head-row .s-btn,
  .stats-season-toggle .s-btn { font-size: 13px; padding: 7px 15px; }
  .team-card-record, .leader-row { font-size: 16px; }
  .rhs { font-size: 12px; }
  .rhs strong { font-size: 26px; }
  .page-card-stat strong { font-size: 30px; }
  .impact-panel-head, .impact-report-btn, .analytics-view-link, .analytics-coach-note, .analytics-table-note { font-size: 13px; }
  .impact-panel-head strong { font-size: 14px; }
  .impact-metric span, .analytics-reference .impact-metric span { font-size: 11px; }
  .impact-metric strong { font-size: 24px; }
  .analytics-reference .impact-metric strong { font-size: 22px; }
  .impact-report { font-size: 14px; }
  .analytics-definition-list { font-size: 13px; }
  .analytics-definition-list h3 { font-size: 11px; }
  .analytics-table th, #analytics-table th { font-size: 13px; }
  #analytics-table th { font-size: 11px; letter-spacing: 0.035em; white-space: nowrap; padding-left: 0.3rem; padding-right: 0.3rem; }
  .analytics-table td { font-size: 15px; }
  #analytics-table td { padding-left: 0.34rem; padding-right: 0.34rem; }
  #analytics-table th:first-child, #analytics-table td:first-child { padding-left: 0.85rem; }
  .analytics-table .analytics-player-link { font-size: 17px; }
  .analytics-table .analytics-tight,
  .analytics-cost-pct.inline,
  .analytics-table .analytics-cost-pct.analytics-value-muted { font-size: 16px; }
  .analytics-dash { font-size: 20px; }
  .analytics-label { min-height: 30px; font-size: 11px; }
  .analytics-table .impact-cost { font-size: 11px; }
  #analytics-table .analytics-impact-toggle { min-width: 96px; min-height: 32px; padding: 0.32rem 0.42rem; }
  #scoring-table { max-width: 900px; margin-left: auto; margin-right: auto; }
  #scoring-table th { font-size: 12px; }
  #scoring-table td { font-size: 14px; }
  #scoring-table .analytics-tight { font-size: 16px; }
  .accountability-chart-head,
  .performance-chart-head,
  .performance-legend-inline span,
  .player-chart-head,
  .player-progress-keys span,
  .progress-legend-inline,
  .progress-check { font-size: 13px; }
}

/* Compact secondary page logo cards */
.roster-hero.page-logo-card {
  background: #fff;
  padding: 0.5rem 0.85rem;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
  min-height: 112px;
}
.roster-hero.page-logo-card img[alt] {
  width: 90px !important;
  height: 90px !important;
  object-fit: contain;
}
.roster-hero.page-logo-card .roster-hero-summary {
  align-self: stretch;
}
.roster-hero.page-logo-card .roster-hero-stats {
  gap: 1.25rem;
}
@media (max-width: 640px) {
  .roster-hero.page-logo-card {
    padding: 0.65rem 0.8rem;
    min-height: 0;
  }
  .roster-hero.page-logo-card .page-card-stat { max-width: 100%; min-width: 0; }
  .roster-hero.page-logo-card .page-card-stat strong { font-size: clamp(20px, 5.6vw, 23px); overflow-wrap: anywhere; text-wrap: balance; }  .roster-hero.page-logo-card img[alt] {
    width: 90px !important;
    height: 90px !important;
  }
}

.analytics-mode-nav { display: flex; gap: 0.45rem; margin: 0.85rem 0 0.7rem; }
.analytics-mode-link { border: 1px solid var(--border); background: #fff; color: var(--text-muted); border-radius: 6px; padding: 0.45rem 0.8rem; font-family: Inter, Arial, sans-serif; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0; }
.analytics-mode-link.active { background: #1e40af; border-color: #1e40af; color: #fff; }
.goalie-label-reliable { color: #166534; background: #dcfce7; }
.goalie-label-protected { color: #1e3a8a; background: #dbeafe; }
.goalie-label-support { color: #92400e; background: #fef3c7; }
.goalie-label-review { color: #991b1b; background: #fee2e2; }
.goalie-scatter-card { margin-bottom: 0.75rem; }
.goalie-scatter-legend { margin-top: -0.35rem; margin-bottom: 1.15rem; }
.goalie-performance-card { overflow-x: hidden; }
.goalie-performance-table { min-width: 0; table-layout: fixed; }
.goalie-performance-table th { padding-left: 0.1rem; padding-right: 0.1rem; font-size: 13px; letter-spacing: 0.01em; }
.goalie-performance-table td { padding-left: 0.18rem; padding-right: 0.18rem; font-size: 15px; }
.goalie-performance-table .analytics-player-link { font-size: 17px; }
.goalie-performance-table .jersey-num { font-size: 18px; }
.goalie-performance-table .analytics-tight { font-size: 16px; }
.goalie-performance-table .stat-hi { font-size: 18px; font-weight: 700; color: #000; }
.goalie-performance-table .analytics-label { min-width: 70px; padding-left: 0.25rem; padding-right: 0.25rem; font-size: 10px; }
.goalie-performance-table .impact-cell { min-width: 0; width: 100%; max-width: 82px; gap: 0.16rem; }
.goalie-performance-table .analytics-label { min-width: 0; width: 100%; max-width: 82px; min-height: 30px; padding-left: 0.12rem; padding-right: 0.12rem; font-size: 11px; line-height: 1.08; white-space: normal; }
.goalie-performance-table .impact-rich-label { max-width: 82px; font-size: 11px; line-height: 1.12; }
.goalie-radar { margin-top: 0.5rem; }
.goalie-coach-scatter-card { margin-bottom: 0.75rem; }
.goalie-coach-legend { margin-top: -0.35rem; margin-bottom: 1.15rem; }
.goalie-log-table tbody tr.analytics-player-row td { padding-top: 0.6rem; padding-bottom: 0.6rem; line-height: 1.3; }
.goalie-log-table td { font-size: 14px; }
.goalie-log-table td:first-child { white-space: nowrap; }
.goalie-log-table td:nth-child(n+3) { font-size: 15px; }
.goalie-log-table .analytics-player-link { font-size: 15px; line-height: 1.25; }
.goalie-log-table .stat-hi { font-size: 18px; font-weight: 700; color: #000; line-height: 1; }
.goalie-score-cell { display: inline-flex; align-items: baseline; justify-content: center; gap: 2px; font-family: Inter, Arial, sans-serif; font-size: 18px; line-height: 1; }
.goalie-score-win { color: #000; font-weight: 700; }
.goalie-score-loss, .goalie-score-tie, .goalie-score-sep { color: #607186; font-weight: 400; }

/* DASHBOARD */
.dashboard-page { padding-bottom: 2rem; }
.dashboard-section-tabs { display:flex; align-items:center; gap:0.45rem; flex-wrap:wrap; margin:0 0 0.9rem; }
.dashboard-section-tab { display:inline-flex; align-items:center; justify-content:center; min-height:36px; border:1px solid var(--border); border-radius:6px; background:#fff; color:var(--text-muted); padding:0.45rem 0.8rem; font-family:Inter, Arial, sans-serif; font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:0; cursor:pointer; }
.dashboard-section-tab:hover { border-color:#cbd5e1; color:#1e40af; }
.dashboard-section-tab.active { background:#1e40af; border-color:#1e40af; color:#fff; }
[data-dashboard-section][hidden] { display:none !important; }
.dashboard-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.dashboard-subtitle { margin: 0.2rem 0 0; color: var(--text-muted); font-size: 13px; line-height: 1.45; max-width: 840px; }
.dashboard-header-actions { display:flex; align-items:center; justify-content:flex-end; gap:0.55rem; flex-wrap:wrap; }
.dashboard-status { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 34px; padding: 0.4rem 0.65rem; border: 1px solid var(--border); border-radius: 6px; background: #fff; color: var(--text); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.status-dot { width: 10px; height: 10px; border-radius: 999px; background: #94a3b8; display: inline-block; }
.status-dot.ok { background: #16a34a; }
.status-dot.bad { background: #dc2626; }
.status-dot.pending { background: #d97706; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr); gap: 1rem; margin-bottom: 1rem; }
.dashboard-card, .dashboard-panel { padding: 0.9rem 1rem; }
.dashboard-card-head, .dashboard-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.7rem; }
.dashboard-card-head span, .dashboard-count { color: var(--text-muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.dashboard-card-head strong { font-family: 'Barlow Condensed', sans-serif; font-size: 24px; line-height: 1; color: var(--text); }
.dashboard-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.55rem; }
.dashboard-metrics div { border: 1px solid var(--border); border-radius: 6px; padding: 0.55rem 0.65rem; background: #f8fafc; }
.dashboard-metrics span { display: block; margin-bottom: 0.18rem; color: var(--text-muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.dashboard-metrics strong { display: block; color: var(--text); font-family: 'Barlow Condensed', sans-serif; font-size: 20px; line-height: 1.05; overflow-wrap: anywhere; }
.dashboard-season-list { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.dash-season-pill { --pill-color: #64748b; display: inline-flex; align-items: center; min-height: 28px; padding: 0.35rem 0.55rem; border-radius: 6px; background: color-mix(in srgb, var(--pill-color) 13%, white); color: var(--pill-color); border: 1px solid color-mix(in srgb, var(--pill-color) 40%, white); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.dashboard-panel { margin-bottom: 1rem; }
.dashboard-health-panel { margin-top: -0.1rem; }
.dashboard-health-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.45rem; }
.dashboard-health-card { border: 1px solid var(--border); border-radius: 6px; padding: 0.48rem 0.55rem; background: #f8fafc; }
.dashboard-health-card span { display:block; color: var(--text-muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.dashboard-health-card strong { display:block; margin-top: 0.14rem; font-family:'Barlow Condensed', sans-serif; font-size: 19px; line-height: 1; }
.dashboard-health-card.ok { background:#dcfce7; border-color:#bbf7d0; }
.dashboard-health-card.ok > strong, .dashboard-health-card.ok strong, .dashboard-health-line.ok strong { color:#15803d !important; }
.dashboard-health-card.warn { background:#fffbeb; border-color:#fde68a; }
.dashboard-health-card.warn strong, .dashboard-health-line.warn strong { color:#b45309; }
.dashboard-health-card.bad { background:#fef2f2; border-color:#fecaca; }
.dashboard-health-card.bad strong, .dashboard-health-line.bad strong { color:#dc2626; }
.dashboard-health-details { margin-top: 0.75rem; display:grid; gap:0.32rem; }
.dashboard-health-line { color: var(--text-muted); font-size: 13px; line-height: 1.45; }
.dashboard-health-line strong { text-transform: uppercase; letter-spacing: 0.04em; font-size: 12px; }
@media (max-width: 900px) { .dashboard-health-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .dashboard-health-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dashboard-form-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.65rem; }
.dashboard-form-grid label { display: grid; align-content: start; gap: 0.25rem; color: var(--text-muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }
.dashboard-form-grid input, .dashboard-form-grid select { width: 100%; min-height: 36px; border: 1px solid var(--border); border-radius: 6px; background: #fff; color: var(--text); font-family: Inter, Arial, sans-serif; font-size: 13px; font-weight: 700; padding: 0.45rem 0.55rem; }
#event-type, #event-player-tag { font-weight: 600; letter-spacing: 0; }
.dashboard-form-grid input::placeholder { color: #cbd5e1; opacity: 1; font-weight: 600; }
.dashboard-form-grid input.dashboard-field-error, .dashboard-form-grid select.dashboard-field-error { border-color: #dc2626; background: #fff5f5; box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12); }
.dashboard-value-field { align-self: start; }
.dashboard-value-field.dashboard-value-hidden { display: none; }
.dashboard-value-field input::-webkit-outer-spin-button, .dashboard-value-field input::-webkit-inner-spin-button { opacity: 1; }
.dashboard-value-presets { display:flex; flex-wrap:wrap; gap:0.3rem; margin-top:0.28rem; }
.dashboard-value-presets:empty { display:none; margin-top:0; }
.dash-mini-btn { min-height:24px; border:1px solid var(--border); border-radius:5px; background:#f8fafc; color:var(--text); padding:0.18rem 0.42rem; font-family: Inter, Arial, sans-serif; font-size:11px; font-weight:800; cursor:pointer; }
.dash-mini-btn:hover { border-color:#1e40af; color:#1e40af; background:#eff6ff; }
.dashboard-note.dashboard-note-error { color: #991b1b; background: #fee2e2; border: 1px solid #fecaca; border-radius: 6px; padding: 0.55rem 0.65rem; }
.dashboard-inline-actions { display:inline-flex; align-items:center; gap:0.4rem; margin-left:0.45rem; flex-wrap:wrap; vertical-align:middle; }
.dashboard-inline-actions .dash-btn { padding:0.3rem 0.5rem; font-size:11px; }
.dashboard-schedule-team-field { grid-column: span 2; }
.dashboard-home-score-field { grid-column: 1 / span 2; }
.dashboard-away-score-field { grid-column: 3 / span 2; }
.dashboard-event-form-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dashboard-event-game-field { grid-column: 1 / span 2; }
.dashboard-event-form-grid.goal-mode #event-x-field { grid-column: 3 / span 1; grid-row: 2; }
.dashboard-event-form-grid.goal-mode #event-y-field { grid-column: 4 / span 1; grid-row: 2; }
.dashboard-event-form-grid.goal-mode #event-notes-field { grid-column: 2 / span 1; grid-row: 2; }
.dashboard-event-form-grid.roster-mode #event-notes-field { grid-column: 3 / span 2; }
.dashboard-event-form-grid.penalty-mode #event-notes-field { grid-column: 2 / span 1; grid-row: 2; }
.dashboard-event-form-grid.penalty-mode #event-value-field { grid-column: 3 / span 1; grid-row: 2; }
.dashboard-event-form-grid.shot-mode #event-x-field { grid-column: 3 / span 1; }
.dashboard-event-form-grid.shot-mode #event-y-field { grid-column: 4 / span 1; }
.dashboard-event-form-grid.shot-mode #event-value-field,
.dashboard-event-form-grid.shot-mode #event-notes-field { display:none; }
@media (max-width: 680px) {
  .dashboard-event-form-grid.goal-mode #event-x-field,
  .dashboard-event-form-grid.goal-mode #event-y-field,
  .dashboard-event-form-grid.goal-mode #event-notes-field,
  .dashboard-event-form-grid.roster-mode #event-notes-field,
  .dashboard-event-form-grid.penalty-mode #event-notes-field,
  .dashboard-event-form-grid.penalty-mode #event-value-field,
  .dashboard-event-form-grid.shot-mode #event-x-field,
  .dashboard-event-form-grid.shot-mode #event-y-field { grid-column: auto; }
}
.dashboard-wide-label { display:grid; gap:0.25rem; margin-top:0.65rem; color:var(--text-muted); font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:0.05em; }
.dashboard-small-textarea { width:100%; min-height:52px; border:1px solid var(--border); border-radius:6px; background:#fff; color:var(--text); font-family:Consolas, 'Courier New', monospace; font-size:12px; line-height:1.35; padding:0.5rem 0.55rem; resize:vertical; text-transform:none; letter-spacing:0; font-weight:600; }
.dashboard-small-textarea::placeholder { color:#cbd5e1; opacity:1; font-weight:600; }
.dashboard-preview { width: 100%; min-height: 70px; margin-top: 0.75rem; border: 1px solid var(--border); border-radius: 6px; background: #f8fafc; color: var(--text); font-family: Consolas, 'Courier New', monospace; font-size: 12px; line-height: 1.4; padding: 0.65rem; resize: vertical; }
.dashboard-preview-label { margin: 0.72rem 0 -0.42rem; color: var(--text-muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }
.dashboard-game-summary { display:flex; align-items:center; flex-wrap:wrap; gap:0.45rem; min-height:34px; margin-top:0.75rem; border:1px solid #dbeafe; border-radius:6px; background:#f8fbff; color:#64748b; font-size:13px; font-weight:700; padding:0.42rem 0.55rem; }
.dashboard-game-summary strong { color:#0f172a; font-size:14px; }
.dashboard-game-summary span { display:inline-flex; align-items:center; }
.dashboard-game-summary span:not(:last-child)::after { content:"/"; margin-left:0.45rem; color:#cbd5e1; }
.dashboard-template-builder { margin-top:0.75rem; border:1px solid var(--border); border-radius:6px; background:#f8fafc; padding:0.65rem; display:grid; gap:0.55rem; }
.dashboard-template-group { display:grid; grid-template-columns:82px minmax(0, 1fr); gap:0.55rem; align-items:start; padding-top:0.55rem; border-top:1px solid #e2e8f0; }
.dashboard-template-group:first-child { border-top:0; padding-top:0; }
.dashboard-template-group-label { color:var(--text-muted); font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:0.05em; padding-top:0.36rem; }
.dashboard-template-chips { display:flex; flex-wrap:wrap; gap:0.35rem; }
.dashboard-template-player { display:inline-flex; align-items:center; gap:0.35rem; min-height:30px; border:1px solid #cbd5e1; border-radius:999px; background:#fff; color:var(--text); padding:0.25rem 0.55rem; font-size:13px; font-weight:400; cursor:pointer; }
.dashboard-template-player input[type="checkbox"] { width:auto; min-height:0; accent-color:#1e40af; }
.dashboard-template-player .chip-number { color:var(--text-muted); font-family:'Barlow Condensed', sans-serif; font-size:15px; min-width:1.1rem; text-align:right; }
.dashboard-template-player .template-player-name { font-weight:400; }
.dashboard-template-player.is-pos-F, .dashboard-player-chip.is-pos-F { background:#ecfdf5; border-color:#bbf7d0; }
.dashboard-template-player.is-pos-F .chip-number, .dashboard-player-chip.is-pos-F .chip-number { color:#047857; }
.dashboard-template-player.is-pos-D, .dashboard-player-chip.is-pos-D { background:#fff7ed; border-color:#fed7aa; }
.dashboard-template-player.is-pos-D .chip-number, .dashboard-player-chip.is-pos-D .chip-number { color:#c2410c; }
.dashboard-template-player.is-pos-G, .dashboard-player-chip.is-pos-G { background:#f1f5f9; border-color:#cbd5e1; }
.dashboard-template-player.is-pos-G .chip-number, .dashboard-player-chip.is-pos-G .chip-number { color:#475569; }
.dashboard-template-player.is-starter-goalie, .dashboard-player-chip.is-starter-goalie { border-color:#93c5fd; background:#dbeafe; color:#1e40af; box-shadow:0 0 0 2px rgba(30,64,175,0.08); }
.dashboard-template-player.is-starter-goalie .chip-number, .dashboard-player-chip.is-starter-goalie .chip-number { color:#1e40af; }
.dashboard-template-player.is-starter-goalie .dashboard-starter-radio { color:#1e40af; }
.dashboard-starter-radio { display:inline-flex; align-items:center; gap:0.25rem; margin-left:0.15rem; color:#1e40af; font-size:10px; font-weight:900; text-transform:uppercase; letter-spacing:0.04em; }
.dashboard-starter-radio input { width:auto; min-height:0; accent-color:#1e40af; }
.dashboard-goalie-role { display:none; align-items:center; justify-content:center; min-height:18px; border-radius:999px; padding:0.08rem 0.36rem; font-size:9px; font-weight:900; letter-spacing:0.05em; }
.dashboard-goalie-role.is-backup { display:inline-flex; }

.dashboard-goalie-role.is-backup { background:#f1f5f9; color:#475569; border:1px solid #cbd5e1; }
.dashboard-template-player:has(.game-roster-player-check:checked):not(.is-starter-goalie) .dashboard-starter-radio { color:#64748b; }
.dashboard-template-ap { display:inline-flex; align-items:center; justify-content:center; min-height:18px; border-radius:999px; background:#fef3c7; color:#92400e; padding:0.08rem 0.28rem; font-size:9px; font-weight:900; letter-spacing:0.04em; }
.dashboard-template-player.is-affiliate, .dashboard-player-chip.is-affiliate { border-style:dashed; border-color:#f59e0b; }
.dashboard-template-player:has(.template-player-check:not(:checked)), .dashboard-template-player:has(.game-roster-player-check:not(:checked)) { opacity:0.48; background:#f1f5f9; }
.dashboard-template-player:has(.template-player-check:not(:checked)) .dashboard-starter-radio, .dashboard-template-player:has(.game-roster-player-check:not(:checked)) .dashboard-starter-radio { display:none; }
.dashboard-template-builder.is-disabled { opacity:0.48; pointer-events:none; }
.dashboard-player-picker { margin-top: 0.65rem; border: 1px solid var(--border); border-radius: 6px; background: #f8fafc; padding: 0.65rem; }
.dashboard-picker-head { display:flex; align-items:flex-end; justify-content:flex-start; gap:0.65rem; margin-bottom:0.6rem; }
.dashboard-picker-head label { display:grid; gap:0.25rem; color:var(--text-muted); font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:0.05em; }
.dashboard-picker-head .dash-btn { margin-left:auto; }
.dashboard-picker-head select { min-height:36px; border:1px solid var(--border); border-radius:6px; background:#fff; color:var(--text); font-family: Inter, Arial, sans-serif; font-size:13px; font-weight:700; padding:0.45rem 0.55rem; }
.dashboard-pga-percent { display:grid; gap:0.25rem; color:var(--text-muted); font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:0.05em; }
.dashboard-pga-row { display:flex; align-items:center; gap:0.45rem; }
.dashboard-pga-percent input { width:76px; min-height:32px; border:1px solid var(--border); border-radius:6px; background:#fff; color:var(--text); font-family: Inter, Arial, sans-serif; font-size:12px; font-weight:800; padding:0.32rem 0.45rem; }
.dashboard-pga-percent #event-pga-remaining { color:var(--text-muted); font-size:12px; font-weight:800; text-transform:none; letter-spacing:0; white-space:nowrap; }
.dashboard-picker-group { display:grid; grid-template-columns:80px minmax(0, 1fr); gap:0.55rem; align-items:start; padding:0.45rem 0; border-top:1px solid #e2e8f0; }
.dashboard-picker-group:first-of-type { border-top:0; padding-top:0; }
.dashboard-picker-label { color:var(--text-muted); font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:0.05em; padding-top:0.35rem; }
.dashboard-picker-chips { display:flex; flex-wrap:wrap; gap:0.35rem; }
.dashboard-player-chip { display:inline-flex; align-items:center; gap:0.35rem; min-height:28px; border:1px solid #cbd5e1; border-radius:999px; background:#fff; color:var(--text); padding:0.25rem 0.5rem; font-family: Inter, Arial, sans-serif; font-size:13px; font-weight:400; cursor:pointer; }
.dashboard-player-chip:hover { border-color:#1e40af; color:#1e40af; }
.dashboard-player-chip .chip-number { color:var(--text-muted); font-family:'Barlow Condensed', sans-serif; font-size:15px; min-width:1.1rem; text-align:right; }
.dashboard-player-chip .chip-name { font-weight:400; }
.dashboard-note { margin: 0.55rem 0 0; color: var(--text-muted); font-size: 13px; line-height: 1.45; }
.dashboard-queue-actions { display:flex; justify-content:flex-end; gap:0.45rem; flex-wrap:wrap; margin:-0.25rem 0 0.65rem; }
.dashboard-writeback-grid { display:grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap:0.65rem; margin:0 0 0.55rem; }
.dashboard-schedule-writeback-grid { margin-top: 1.15rem; }
.dashboard-writeback-grid label { display:grid; align-content:start; gap:0.25rem; color:var(--text-muted); font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:0.05em; }
.dashboard-writeback-grid input { width:100%; min-height:36px; border:1px solid var(--border); border-radius:6px; background:#fff; color:var(--text); font-family: Inter, Arial, sans-serif; font-size:13px; font-weight:700; padding:0.45rem 0.55rem; }
.dashboard-writeback-grid input::placeholder { color:#cbd5e1; opacity:1; font-weight:600; }
.dashboard-note.dashboard-note-ok { color:#166534; background:#dcfce7; border:1px solid #bbf7d0; border-radius:6px; padding:0.55rem 0.65rem; }
.dashboard-note.dashboard-note-warn { color:#92400e; background:#fffbeb; border:1px solid #fde68a; border-radius:6px; padding:0.55rem 0.65rem; }
.dashboard-queue-preview { min-height: 92px; }
.dashboard-pending-list { display:grid; gap:0.45rem; margin:0.1rem 0 0.75rem; }
.dashboard-pending-row { display:flex; align-items:flex-start; justify-content:space-between; gap:0.75rem; border:1px solid var(--border); border-left:4px solid #cbd5e1; border-radius:7px; background:#fff; padding:0.62rem 0.68rem; box-shadow:0 6px 14px rgba(15,23,42,0.04); }
.dashboard-pending-main { display:flex; align-items:center; gap:0.55rem; flex-wrap:wrap; min-width:0; color:var(--text); font-size:13px; line-height:1.25; }
.dashboard-pending-main strong { color:var(--text); font-size:13px; font-weight:800; }
.dashboard-pending-main span { color:#1e40af; font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:0.04em; }
.dashboard-pending-main em { color:var(--text-muted); font-style:normal; font-size:13px; }
.dashboard-pending-empty { border:1px dashed var(--border); border-radius:6px; color:var(--text-muted); background:#f8fafc; padding:0.75rem; font-size:13px; }
.dashboard-pending-shot-for { border-left-color:#67c5d8; }
.dashboard-pending-shot-against { border-left-color:#c9a4ea; }
.dashboard-pending-gf { border-left-color:#8ed39a; }
.dashboard-pending-ga { border-left-color:#f3a6a3; }
.dashboard-pending-penalty { border-left-color:#f8c493; }
.dashboard-pending-goalie-change { border-left-color:#f3d486; }
.dashboard-pending-remove { color:#991b1b; border-color:#fecaca; background:#fff7f7; }
.dashboard-pending-remove:hover { color:#7f1d1d; border-color:#fca5a5; background:#fee2e2; }
.dashboard-pending-ghost-remove { visibility:hidden; pointer-events:none; }
.dashboard-pending-row.is-cloud-event { background:#fbfffc; }
.dashboard-pending-row.is-cloud-event .dashboard-pending-main span { color:#15803d; }
.dashboard-pending-action { display:grid; grid-template-columns:40px 78px; align-items:center; justify-content:end; gap:0.45rem; flex-shrink:0; width:132px; }
.dashboard-pending-action .dash-status-badge { justify-self:start; }
.dashboard-pending-action > .dashboard-pending-remove, .dashboard-pending-action > .dash-btn:not(.dash-status-badge) { justify-self:end; }
.dashboard-cloud-spacer { padding-left:0; }
.dashboard-pending-action-confirm { grid-template-columns:40px minmax(170px, 1fr); width:min(280px, 42vw); }
.dashboard-pending-confirm { grid-column:1 / -1; display:flex; flex-direction:column; align-items:flex-end; gap:0.35rem; min-width:0; color:#991b1b; font-size:11px; font-weight:800; text-align:right; }
.dashboard-pending-confirm div { display:flex; justify-content:flex-end; gap:0.35rem; flex-wrap:wrap; }
.dashboard-pending-confirm .dash-btn { width:max-content; padding:0.32rem 0.5rem; }
.dashboard-event-issues { flex-basis:100%; color:#b45309; font-size:12px; line-height:1.35; }
.dashboard-shot-chip-list { display:flex; flex-wrap:wrap; gap:0.3rem; width:100%; }
.dashboard-shot-chip { border:1px solid #bfdbfe; border-radius:5px; background:#eff6ff; color:#1e40af; padding:0.2rem 0.38rem; font-family:Consolas, 'Courier New', monospace; font-size:12px; font-weight:700; cursor:pointer; }
.dashboard-shot-chip:hover { border-color:#93c5fd; background:#dbeafe; }
.dashboard-table-wrap { overflow-x: auto; }
.dashboard-table { min-width: 820px; }
.dashboard-table th, .dashboard-table td { padding-left: 0.55rem; padding-right: 0.55rem; }
.dash-date-main { font-weight: 500; color: var(--text); line-height: 1.05; }
.dash-date-time { margin-top: 0.18rem; font-size: 12px; font-weight: 700; color: var(--text-muted); line-height: 1.05; }
.dash-winner, .dash-winner-score { font-weight: 800; color: var(--text); }
.dash-at { color: var(--text-muted); font-weight: 600; }
.dashboard-table .dash-season-pill { min-height: 26px; padding: 0.3rem 0.5rem; font-size: 11px; }
.dashboard-event-table { min-width: 720px; }
.dashboard-selected-event-table { min-width: 760px; }
.dashboard-audit-table { min-width: 760px; }
.dashboard-gamestats-audit-table { min-width: 840px; }
.dash-status-badge { display:inline-flex; align-items:center; min-height:24px; padding:0.22rem 0.42rem; border-radius:5px; font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:0.04em; }
.dash-status-badge.ok { background:#dcfce7; color:#15803d; border:1px solid #bbf7d0; }
.dash-status-badge.warn { background:#fffbeb; color:#b45309; border:1px solid #fde68a; }
.dash-status-badge.pending-source { background:#eef2ff; color:#3730a3; border:1px solid #c7d2fe; }
.dash-status-text { margin-left:0.35rem; color:var(--text-muted); font-size:13px; }
.dashboard-table tbody tr:nth-child(even) td { background: rgb(250,252,255); }
.dashboard-games-table tbody tr:nth-child(even) td { background: #f1f6ff; }
.dash-actions { display: inline-flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }
.dash-actions-stack { flex-direction: column; align-items: flex-start; }
.dash-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; border: 1px solid var(--border); border-radius: 6px; background: #fff; color: var(--text); padding: 0.35rem 0.55rem; font-family: Inter, Arial, sans-serif; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0; cursor: pointer; text-decoration: none; }
.dash-btn:hover { border-color: #cbd5e1; color: #1e40af; }
.dash-btn-primary { background: #1e40af; border-color: #1e40af; color: #fff; box-shadow: 0 8px 18px rgba(30,64,175,0.16); }
.dash-btn-primary:hover { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
.dash-btn-add-game { min-height: 40px; padding: 0.55rem 1.1rem; font-size: 13px; }
#new-game-season { --season-select-color: #64748b; background: color-mix(in srgb, var(--season-select-color) 16%, white); border-color: color-mix(in srgb, var(--season-select-color) 48%, white); color: color-mix(in srgb, var(--season-select-color) 78%, #0f172a); font-weight: 800; }
.dashboard-game-filter-row { justify-content: flex-end; margin: 0 0 0.65rem; }
.dashboard-game-filter-standalone { justify-content: flex-end; margin: 1.65rem 0 0.55rem; padding: 0 0.1rem; }
.dashboard-games-table th { cursor: default; }
.dashboard-games-table th:hover { background: #1e40af; color: #ffffff; }
.dashboard-roster-subrow td { background: linear-gradient(180deg, #eef4ff 0%, #f8fbff 100%) !important; padding: 0.85rem !important; box-shadow: inset 4px 0 0 #1e40af; }
.dashboard-inline-roster { border: 1px solid #bfdbfe; border-radius: 6px; background: #f6f9ff; padding: 0.85rem; box-shadow: 0 10px 24px rgba(30,64,175,0.08); }
.dashboard-manage-section { border: 1px solid #dbeafe; border-radius: 6px; background: rgba(255,255,255,0.72); padding: 0.7rem; margin-top: 0.7rem; }
.dashboard-inline-roster .dashboard-manage-section:first-of-type { margin-top: 0; }
.dashboard-manage-grid { display:grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap:0.55rem; align-items:end; }
.dashboard-manage-grid label { display:flex; flex-direction:column; gap:0.25rem; font-size:0.72rem; font-weight:800; color:#64748b; text-transform:uppercase; letter-spacing:0.05em; }
.dashboard-number-input { min-height: 32px !important; text-align: center; font-size: 14px !important; padding-left: 0.4rem !important; padding-right: 0.4rem !important; }
.dashboard-number-input::-webkit-outer-spin-button, .dashboard-number-input::-webkit-inner-spin-button { width: 17px; min-height: 24px; opacity: 1; }
.dash-btn.disabled, .dash-btn:disabled { cursor: not-allowed; color: #94a3b8; background: #f8fafc; }
.dashboard-track-grid { display:grid; grid-template-columns:1fr; gap:0.85rem; align-items:start; }
.dashboard-track-head { align-items:start; }
.dashboard-track-head-game { width:min(430px, 58%); margin-left:auto; min-height:36px; border:1px solid var(--border); border-radius:6px; background:#fff; color:var(--text); font-family: Inter, Arial, sans-serif; font-size:13px; font-weight:700; padding:0.45rem 0.55rem; }
.dashboard-track-controls { display:grid; grid-template-columns:1fr; gap:0.42rem; align-items:start; margin-bottom:0.15rem; }
.dashboard-track-game-field, .dashboard-track-location-row label { display:grid; gap:0.25rem; min-width:0; color:var(--text-muted); font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:0.05em; }
.dashboard-track-game-field select, .dashboard-track-location-row input { width:100%; min-width:0; min-height:36px; border:1px solid var(--border); border-radius:6px; background:#fff; color:var(--text); font-family: Inter, Arial, sans-serif; font-size:13px; font-weight:700; padding:0.45rem 0.55rem; }
.dashboard-track-event-types { display:flex; flex-wrap:wrap; justify-content:flex-start; gap:0.35rem; }
.dashboard-track-auto-stage { display:inline-flex; align-items:center; gap:0.4rem; width:max-content; min-height:32px; border:1px solid var(--border); border-radius:999px; background:#f8fafc; color:var(--text-muted); padding:0.28rem 0.65rem; font-size:12px; font-weight:800; }
.dashboard-track-auto-stage input { accent-color:#1e40af; }
.dashboard-track-modifiers { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-start; gap:0.45rem; margin:0.12rem 0 0.35rem; min-height:36px; }
.dashboard-track-gf-options { display:flex; flex-wrap:wrap; align-items:center; gap:0.35rem; }
.dashboard-track-gf-options[hidden] { display:none; }
.track-modifier-btn { --modifier-bg:#d8f5cf; --modifier-border:#b7e7a9; --modifier-text:#166534; display:inline-flex; align-items:center; justify-content:center; gap:0.3rem; min-height:30px; border:1px solid var(--modifier-border); border-radius:999px; background:var(--modifier-bg); color:var(--modifier-text); padding:0.28rem 0.6rem; font-family: Inter, Arial, sans-serif; font-size:12px; font-weight:800; cursor:pointer; opacity:0.66; }
.track-modifier-btn span { display:inline-flex; align-items:center; min-height:16px; border-radius:999px; background:rgba(255,255,255,0.52); padding:0 0.32rem; font-size:9px; font-weight:900; letter-spacing:0.04em; text-transform:uppercase; }
.track-modifier-btn.active { opacity:1; background:var(--modifier-bg); border-color:color-mix(in srgb, var(--modifier-border) 75%, #0f172a); color:var(--modifier-text); box-shadow:0 0 0 3px rgba(22,101,52,0.18), 0 5px 10px rgba(15,23,42,0.1); }
.track-strength-ev { --modifier-bg:#dcfce7; --modifier-border:#86efac; --modifier-text:#14532d; }
.track-strength-pp, .track-strength-sh, .track-strength-ps { --modifier-bg:#dcfce7; --modifier-border:#86efac; --modifier-text:#14532d; }
.dashboard-track-ga-options { display:flex; align-items:center; justify-content:flex-start; flex-wrap:wrap; gap:0.55rem 0.8rem; }
.dashboard-track-ga-options[hidden] { display:none; }
.dashboard-track-ga-options label { display:inline-flex; align-items:center; gap:0.45rem; min-height:30px; border:1px solid #fecaca; border-radius:999px; background:#fff1f2; color:#991b1b; padding:0.3rem 0.6rem; font-family: Inter, Arial, sans-serif; font-size:12px; font-weight:800; text-transform:none; letter-spacing:0; }
.dashboard-track-ga-options input { accent-color:#dc2626; }
.dashboard-track-ga-options span { color:#b91c1c; font-size:11px; font-weight:900; text-transform:uppercase; letter-spacing:0.04em; }
.track-event-btn { display:inline-flex; align-items:center; justify-content:center; min-height:34px; border:1px solid var(--border); border-radius:999px; background:#fff; color:var(--text-muted); padding:0.38rem 0.62rem; font-family: Inter, Arial, sans-serif; font-size:12px; font-weight:800; cursor:pointer; }
.track-event-btn:hover { border-color:#93c5fd; color:#1e40af; }
.track-event-btn.active { background:#1e40af; border-color:#1e40af; color:#fff; }
.track-event-btn { --track-bg:#e2e8f0; --track-border:#cbd5e1; --track-text:#334155; background:var(--track-bg); border-color:var(--track-border); color:var(--track-text); opacity:0.58; transition:opacity 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease, filter 0.12s ease; }
.track-event-btn:hover { opacity:0.86; filter:saturate(1.08) brightness(0.99); border-color:var(--track-border); color:var(--track-text); }
.track-event-btn.active { opacity:1; background:var(--track-bg); border-color:color-mix(in srgb, var(--track-border) 78%, #0f172a); color:var(--track-text); transform:translateY(-1px); box-shadow:0 0 0 3px rgba(15,23,42,0.2), 0 6px 12px rgba(15,23,42,0.12), inset 0 0 0 1px rgba(255,255,255,0.58); }
.track-event-gf { --track-bg:#dcfce7; --track-border:#86efac; --track-text:#14532d; }
.track-event-ga { --track-bg:#fca5a5; --track-border:#ef4444; --track-text:#b91c1c; }
.track-event-penalty { --track-bg:#ffd7bd; --track-border:#f6b98f; --track-text:#92400e; }
.track-event-shot-for { --track-bg:#c7e7ef; --track-border:#9ed4df; --track-text:#155e75; }
.track-event-shots-for { --track-bg:#c7e7ef; --track-border:#9ed4df; --track-text:#155e75; }
.track-event-shot-against { --track-bg:#e6c9fb; --track-border:#d5aef5; --track-text:#6b21a8; }
.track-event-shots-against { --track-bg:#e6c9fb; --track-border:#d5aef5; --track-text:#6b21a8; }
.track-event-goalie-change { --track-bg:#fee8a6; --track-border:#f7d76f; --track-text:#854d0e; }
.dashboard-rink { position:relative; overflow:hidden; width:100%; min-height:340px; aspect-ratio:2.08/1; border:2px solid #cbd5e1; border-radius:18px; background:linear-gradient(90deg,#f8fbff 0 49.8%,#fee2e2 49.8% 50.2%,#f8fbff 50.2% 100%); box-shadow:inset 0 0 0 1px #eff6ff; cursor:crosshair; }
.dashboard-rink-warning { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); z-index:20; width:min(88%, 430px); border:1px solid #fecaca; border-radius:10px; background:rgba(254,242,242,0.96); color:#991b1b; box-shadow:0 16px 38px rgba(127,29,29,0.24); padding:0.75rem 0.85rem; text-align:center; cursor:default; }
.dashboard-rink-warning strong { display:block; margin-bottom:0.15rem; font-size:14px; }
.dashboard-rink-warning span { display:block; color:#7f1d1d; font-size:12px; line-height:1.35; }
.dashboard-rink-warning-actions { display:flex; justify-content:center; gap:0.45rem; flex-wrap:wrap; margin-top:0.55rem; }
.dashboard-rink-warning-actions .dash-btn { background:#fff; }
.dashboard-rink::before { content:''; position:absolute; left:50%; top:50%; width:138px; height:138px; transform:translate(-50%,-50%); border:2px solid rgba(30,64,175,0.35); border-radius:999px; }
.dashboard-rink::after { content:''; position:absolute; left:50%; top:0; bottom:0; width:2px; transform:translateX(-50%); background:rgba(220,38,38,0.42); }
.rink-blue-line { position:absolute; top:0; bottom:0; width:3px; background:rgba(30,64,175,0.42); }
.rink-blue-line-left { left:31%; }
.rink-blue-line-right { right:31%; }
.rink-goal-line { position:absolute; top:0; bottom:0; width:2px; background:rgba(239,68,68,0.42); }
.rink-goal-line-left { left:8%; }
.rink-goal-line-right { right:8%; }
.rink-net { position:absolute; top:50%; width:18px; height:40px; transform:translateY(-50%); border:2px solid rgba(220,38,38,0.5); background:rgba(255,255,255,0.46); z-index:1; }
.rink-net-left { left:calc(8% - 18px); border-right:0; border-radius:12px 0 0 12px; }
.rink-net-right { right:calc(8% - 18px); border-left:0; border-radius:0 12px 12px 0; }
.rink-crease { position:absolute; top:50%; width:22px; height:52px; transform:translateY(-50%); border:2px solid rgba(37,99,235,0.42); background:rgba(147,197,253,0.22); z-index:1; }
.rink-crease-left { left:8%; border-left:0; border-radius:0 24px 24px 0; }
.rink-crease-right { right:8%; border-right:0; border-radius:24px 0 0 24px; }
.rink-faceoff-circle { position:absolute; width:130px; height:130px; border:2px solid rgba(220,38,38,0.26); border-radius:999px; transform:translate(-50%,-50%); z-index:1; }
.rink-hash { position:absolute; width:2px; height:7px; background:rgba(220,38,38,0.42); border-radius:999px; transform:translate(-50%,-50%); z-index:2; }
.rink-hash-left-top-a { left:17.9%; top:calc(28% - 69px); transform:translate(-50%,-50%); }
.rink-hash-left-top-b { left:17.9%; top:calc(28% + 69px); transform:translate(-50%,-50%); }
.rink-hash-left-bottom-a { left:17.9%; top:calc(72% - 69px); transform:translate(-50%,-50%); }
.rink-hash-left-bottom-b { left:17.9%; top:calc(72% + 69px); transform:translate(-50%,-50%); }
.rink-hash-right-top-a { left:82.1%; top:calc(28% - 69px); transform:translate(-50%,-50%); }
.rink-hash-right-top-b { left:82.1%; top:calc(28% + 69px); transform:translate(-50%,-50%); }
.rink-hash-right-bottom-a { left:82.1%; top:calc(72% - 69px); transform:translate(-50%,-50%); }
.rink-hash-right-bottom-b { left:82.1%; top:calc(72% + 69px); transform:translate(-50%,-50%); }
.rink-faceoff-circle-left-top { left:17.9%; top:28%; }
.rink-faceoff-circle-left-bottom { left:17.9%; top:72%; }
.rink-faceoff-circle-right-top { left:82.1%; top:28%; }
.rink-faceoff-circle-right-bottom { left:82.1%; top:72%; }
.rink-faceoff-dot, .rink-offside-dot { position:absolute; width:7px; height:7px; border-radius:999px; transform:translate(-50%,-50%); background:rgba(220,38,38,0.56); z-index:2; }
.rink-faceoff-dot-left-top { left:17.9%; top:28%; }
.rink-faceoff-dot-left-bottom { left:17.9%; top:72%; }
.rink-faceoff-dot-right-top { left:82.1%; top:28%; }
.rink-faceoff-dot-right-bottom { left:82.1%; top:72%; }
.rink-offside-dot { background:rgba(220,38,38,0.56); }
.rink-offside-dot-left-top { left:34.5%; top:28%; }
.rink-offside-dot-left-bottom { left:34.5%; top:72%; }
.rink-offside-dot-right-top { left:65.5%; top:28%; }
.rink-offside-dot-right-bottom { left:65.5%; top:72%; }
.rink-zone-label { position:absolute; bottom:0.45rem; transform:translateX(-50%); color:#64748b; font-family:Inter, Arial, sans-serif; font-size:11px; font-weight:900; letter-spacing:0; text-transform:uppercase; pointer-events:none; z-index:2; }
.rink-zone-label-home { left:25%; }
.rink-zone-label-away { left:75%; }
.rink-owner-logo { position:absolute; bottom:0.36rem; width:24px; height:24px; object-fit:contain; opacity:0.34; filter:saturate(0.9); pointer-events:none; z-index:2; }
.rink-owner-logo-left { left:calc(25% - 26px); transform:translateX(-100%); }
.rink-owner-logo-right { left:calc(75% + 26px); transform:translateX(0); }
.rink-footer-score { position:absolute; top:50%; transform:translate(-50%,-50%); display:flex; align-items:baseline; gap:0.55rem; min-width:86px; justify-content:center; color:var(--text); pointer-events:none; }
.rink-footer-score-left { left:19.5%; }
.rink-footer-score-right { left:80.5%; }
.rink-footer-score strong { font-size:21px; line-height:1; font-weight:900; }
.rink-footer-score span { color:var(--text-muted); font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:0.04em; white-space:nowrap; }
.dashboard-rink-view-control { display:inline-flex; align-items:center; justify-content:center; gap:0.5rem; }
.rink-center-dot { position:absolute; left:50%; top:50%; width:9px; height:9px; border-radius:999px; background:#dc2626; transform:translate(-50%,-50%); z-index:2; }
.rink-goalie-marker { position:absolute; top:50%; width:28px; height:28px; border-radius:999px; transform:translate(-50%,-50%); z-index:5; display:flex; align-items:center; justify-content:center; background:#dbeafe; border:3px double #1e40af; color:#1e3a8a; font-size:11px; font-weight:900; line-height:1; box-shadow:0 0 0 3px rgba(30,64,175,0.14), 0 4px 10px rgba(15,23,42,0.16); pointer-events:none; }
.rink-goalie-marker-home { left:7.4%; }
.rink-goalie-marker-away { left:92.6%; }
.rink-marker { position:absolute; width:18px; height:18px; border-radius:999px; border:3px solid color-mix(in srgb, var(--track-border, #0f172a) 70%, #0f172a); background:var(--track-bg, #22c55e); box-shadow:0 0 0 4px color-mix(in srgb, var(--track-bg, #22c55e) 34%, transparent); transform:translate(-50%,-50%); z-index:6; pointer-events:none; }
.rink-history-marker { position:absolute; width:11px; height:11px; border-radius:999px; transform:translate(-50%,-50%); z-index:4; pointer-events:none; box-shadow:0 0 0 2px rgba(17,24,39,0.08); }
.rink-history-marker.is-registered { background:#111827; opacity:0.28; }
.rink-history-marker.is-registered-shot { width:9px; height:9px; background:var(--track-bg, #111827); border:1px solid var(--track-border, #94a3b8); opacity:0.3; box-shadow:0 0 0 3px color-mix(in srgb, var(--track-bg, #cbd5e1) 14%, transparent); }
.rink-history-marker.is-registered-goal { width:14px; height:14px; background:var(--track-bg, #22c55e); border:2px solid var(--track-border, #86efac); opacity:0.58; box-shadow:0 0 0 4px color-mix(in srgb, var(--track-bg, #22c55e) 22%, transparent); }
.rink-history-marker.is-registered-shot.track-event-shot-for { --track-bg:#8fd5e3; --track-border:#38a9bd; --track-text:#155e75; }
.rink-history-marker.is-registered-shot.track-event-shot-against { --track-bg:#d7b3f4; --track-border:#a855f7; --track-text:#6b21a8; }
.rink-history-marker.is-registered-goal.track-event-gf { --track-bg:#dcfce7; --track-border:#86efac; --track-text:#14532d; }
.rink-history-marker.is-registered-goal.track-event-ga { --track-bg:#fca5a5; --track-border:#ef4444; --track-text:#b91c1c; }
.rink-history-marker.is-pending { background:var(--track-bg, #cbd5e1); border:1px solid var(--track-border, #94a3b8); opacity:0.56; box-shadow:0 0 0 3px color-mix(in srgb, var(--track-bg, #cbd5e1) 24%, transparent); }
.rink-draft-marker { position:absolute; width:14px; height:14px; border-radius:999px; background:var(--track-bg, #22c55e); border:2px solid color-mix(in srgb, var(--track-border, #0f172a) 75%, #0f172a); opacity:0.82; transform:translate(-50%,-50%); z-index:5; pointer-events:none; box-shadow:0 0 0 3px color-mix(in srgb, var(--track-bg, #22c55e) 28%, transparent); }
.rink-draft-marker.is-latest { width:18px; height:18px; opacity:1; z-index:6; box-shadow:0 0 0 4px color-mix(in srgb, var(--track-bg, #22c55e) 38%, transparent); }
.rink-history-marker.is-latest-staged { width:22px; height:22px; opacity:1; z-index:7; border:3px solid color-mix(in srgb, var(--track-border, #0f172a) 72%, #0f172a); background:var(--track-bg, #22c55e); box-shadow:0 0 0 5px color-mix(in srgb, var(--track-bg, #22c55e) 34%, transparent), 0 6px 14px rgba(15,23,42,0.22); }
.dashboard-track-location-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0.65rem; margin-top:0.65rem; max-width:380px; }
.dashboard-rink-orientation { position:relative; display:flex; align-items:center; justify-content:center; gap:0.5rem; min-height:34px; margin-top:0.45rem; color:var(--text-muted); font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:0.05em; }
.dashboard-track-penalty { display:flex; align-items:center; gap:0.4rem; min-height:32px; }
.dashboard-track-penalty[hidden] { display:none; }
.dashboard-track-penalty-label { color:var(--text-muted); font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:0.05em; }
.dashboard-track-penalty .dashboard-value-presets { min-height:30px; display:flex; align-items:center; margin-top:0; }
.dashboard-track-penalty .dash-mini-btn.active { border-color:#dc2626; color:#991b1b; background:#fee2e2; box-shadow:0 0 0 2px rgba(220,38,38,0.14); }
.dashboard-track-pga { display:flex; align-items:center; flex-wrap:wrap; gap:0.35rem; margin-left:0.35rem; padding-left:0.7rem; border-left:1px solid var(--border); color:var(--text-muted); font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:0.05em; }
.dashboard-track-pga .dash-mini-btn.active { border-color:#b91c1c; color:#991b1b; background:#fee2e2; box-shadow:0 0 0 2px rgba(185,28,28,0.14); }
.dashboard-track-pga-remaining { color:#991b1b; font-size:12px; font-weight:900; letter-spacing:0; text-transform:none; }
.pga-label-short { display:none; }
.dashboard-track-side { position:relative; border:1px solid var(--border); border-radius:8px; background:#f8fafc; padding:0.7rem 0.75rem; }
.dashboard-track-side-head { display:flex; justify-content:space-between; align-items:center; gap:0.6rem; margin-bottom:0.65rem; color:var(--text); }
.dashboard-track-side-head strong { font-size:14px; }
.dashboard-track-side-head span { color:var(--text-muted); font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:0.05em; }
.dashboard-track-roster-count { position:absolute; right:0.75rem; bottom:0.7rem; color:var(--text-muted); font-size:11px; font-weight:900; text-transform:uppercase; letter-spacing:0.05em; pointer-events:none; }
.dashboard-track-roster { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0.75rem; align-items:start; }
.dashboard-track-roster-group { display:grid; gap:0.35rem; }
.dashboard-track-roster-group > strong { color:var(--text-muted); font-size:11px; font-weight:900; text-transform:uppercase; letter-spacing:0.06em; }
.dashboard-track-chip { cursor:default; }
.dashboard-track-chip:hover { border-color:#cbd5e1; color:var(--text); }
.dashboard-track-chip[role="button"] { cursor:pointer; }
.dashboard-track-chip.is-track-selected { box-shadow:0 0 0 2px rgba(30,64,175,0.18); border-color:#1e40af; }
.dashboard-track-tag { display:inline-flex; align-items:center; justify-content:center; min-height:17px; border-radius:999px; padding:0.05rem 0.32rem; background:#1e40af; color:#fff; font-size:9px; font-weight:900; letter-spacing:0.02em; }
.dashboard-track-tag.is-penalty { background:#dc2626; color:#fff; }
.dashboard-track-tag.is-pga { background:#b91c1c; color:#fff; }
.dashboard-track-tag.is-goalie-change { background:#f59e0b; color:#111827; }
.dashboard-track-preview-label { margin-top:2rem; }
.dashboard-track-hidden-preview { display:none; }
.dashboard-track-actions { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:0.75rem; margin-top:0.45rem; }
.dashboard-track-left-actions { justify-self:start; display:inline-flex; align-items:center; gap:0.35rem; }
.dashboard-track-save-btn { grid-column:2; justify-self:center; }
.dashboard-track-review-grid { display:grid; gap:1rem; margin-top:1rem; }
.dashboard-track-review-panel { margin:0; }
.track-undo-btn, .track-clear-btn { opacity:0.42; }
.track-undo-btn.can-undo { opacity:1; border-style:double; border-width:3px; border-color:#1e40af; color:#1e40af; background:#eff6ff; box-shadow:0 0 0 2px rgba(30,64,175,0.12); }
.track-undo-btn.can-undo:hover { background:#dbeafe; color:#1d4ed8; }
.track-clear-btn.can-clear { opacity:1; border-style:double; border-width:3px; border-color:#b91c1c; color:#991b1b; background:#fef2f2; box-shadow:0 0 0 2px rgba(185,28,28,0.1); }
.track-clear-btn.can-clear:hover { background:#fee2e2; color:#7f1d1d; }
.dashboard-note-error { color:#991b1b; }
.dashboard-muted-inline { color:var(--text-muted); font-size:12px; }
@media (max-width: 800px) {
  .dashboard-track-grid, .dashboard-track-controls, .dashboard-track-roster { grid-template-columns:1fr; }
  .dashboard-track-head { align-items:flex-start; flex-direction:column; gap:0.45rem; }
  .dashboard-track-head-game { width:100%; margin-left:0; }
  .dashboard-track-event-types { justify-content:flex-start; }
  .dashboard-rink { min-height:190px; border-radius:14px; }
}
@media (max-width: 800px) {
  .dashboard-header { flex-direction: column; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-form-grid, .dashboard-writeback-grid, .dashboard-manage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .dashboard-metrics, .dashboard-form-grid, .dashboard-writeback-grid, .dashboard-manage-grid { grid-template-columns: 1fr; }
  .dashboard-schedule-team-field { grid-column: auto; }
  .dashboard-home-score-field, .dashboard-away-score-field { grid-column: auto; }
  .dashboard-header-actions { width:100%; justify-content:stretch; }
  .dashboard-header-actions .dash-btn, .dashboard-status { width: 100%; justify-content: center; }
}

.data-error-card { background:#fee2e2; border:1px solid #fca5a5; border-radius:8px; padding:1.1rem 1.25rem; margin:1rem 0; font-size:15px; line-height:1.45; color:#991b1b; box-shadow:0 1px 0 rgba(153,27,27,0.04); }
.data-error-card strong { display:inline-block; margin-bottom:0.18rem; color:#7f1d1d; }
.dashboard-error-card { margin-top:0; }
.site-data-status { margin-left:auto; align-self:flex-start; border-color:#fecaca; background:#fff5f5; color:#991b1b; }
.sheet-error { flex:0 0 100%; width:100%; }
@media (max-width: 640px) { .site-data-status { width:100%; justify-content:center; margin-left:0; } }

@media (max-width:640px){ .dashboard-track-pga { margin-left:0; padding-left:0; border-left:0; } .pga-label-full { display:none; } .pga-label-short { display:inline; } }
@media (max-width: 520px) {
  .dashboard-add-game-actions { width: 100%; justify-content: stretch; }
  .dashboard-add-game-actions .dash-btn-add-game { width: 100%; }
}


.shot-quality-card { margin: 0.85rem 0 1.1rem; padding: 0.85rem 1rem 1rem; }
.shot-quality-rink-wrap { overflow-x:auto; border:0; border-radius:0; background:transparent; }
.shot-quality-rink { min-width:760px; cursor:default; }
.shot-quality-rink .shot-quality-point { position:absolute; width:13px; height:13px; border-radius:999px; transform:translate(-50%,-50%); z-index:8; border:2px solid #fff; box-shadow:0 2px 5px rgba(15,23,42,0.24); }
.shot-quality-point.for { background:#38a9bd; }
.shot-quality-point.against { background:#a855f7; }
.shot-quality-point.goal-for { width:17px; height:17px; background:#22c55e; border-color:#bbf7d0; }
.shot-quality-point.goal-against { width:17px; height:17px; background:#ef4444; border-color:#fecaca; }
.shot-quality-point.high { box-shadow:0 0 0 5px rgba(239,68,68,0.22), 0 2px 5px rgba(15,23,42,0.24); }
.shot-quality-point.medium { box-shadow:0 0 0 4px rgba(245,158,11,0.18), 0 2px 5px rgba(15,23,42,0.2); }
.shot-quality-point.low { opacity:0.72; }
.shot-danger-zone { position:absolute; inset:0; pointer-events:none; z-index:0; border-radius:0; transform:none; filter:drop-shadow(0 0 0.7px rgba(100,116,139,0.34)); }
.shot-danger-zone.high { background:rgba(239,68,68,0.09); filter:drop-shadow(0 0 0.8px rgba(220,38,38,0.32)); }
.shot-danger-zone.medium { background:rgba(245,158,11,0.06); filter:drop-shadow(0 0 1.15px rgba(180,83,9,0.42)); }
.shot-danger-zone.medium.left { clip-path:polygon(8% 45%, 17.9% 28%, 25.55% 28%, 25.55% 72%, 17.9% 72%, 8% 55%); }
.shot-danger-zone.high.left { clip-path:polygon(8% 45%, 13.45% 35.65%, 17.9% 40.6%, 17.9% 59.4%, 13.45% 64.35%, 8% 55%); }
.shot-danger-zone.medium.right { clip-path:polygon(92% 45%, 82.1% 28%, 74.45% 28%, 74.45% 72%, 82.1% 72%, 92% 55%); }
.shot-danger-zone.high.right { clip-path:polygon(92% 45%, 86.55% 35.65%, 82.1% 40.6%, 82.1% 59.4%, 86.55% 64.35%, 92% 55%); }
.shot-quality-legend { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:0.8rem; margin:0.55rem 0 0; color:var(--text-muted); font-size:12px; font-weight:800; }
.shot-quality-legend span { display:inline-flex; align-items:center; gap:0.3rem; }
.shot-quality-legend i { width:10px; height:10px; border-radius:999px; display:inline-block; }
.shot-quality-legend i.sf { background:#38a9bd; }
.shot-quality-legend i.sa { background:#a855f7; }
.shot-quality-legend i.gf { background:#22c55e; }
.shot-quality-legend i.ga { background:#ef4444; }
.shot-quality-toggle-row { align-items:center; }
.shot-quality-toggle { display:inline-flex; align-items:center; gap:0.32rem; min-height:28px; border:1px solid #e2e8f0; border-radius:999px; padding:0.22rem 0.62rem; background:#fff; color:#94a3b8; font:inherit; cursor:pointer; opacity:1; transition:border-color 0.15s ease, color 0.15s ease, background 0.15s ease; }
.shot-quality-toggle.active { color:#475569; border-color:#bfdbfe; background:#fff; }
.shot-quality-toggle i { width:10px; height:10px; border-radius:999px; display:inline-block; }
.shot-quality-toggle.sf i { background:#38a9bd; }
.shot-quality-toggle.sa i { background:#a855f7; }
.shot-quality-toggle.gf i { background:#22c55e; }
.shot-quality-toggle.ga i { background:#ef4444; }
.shot-quality-toggle:not(.active) i { background:#fff; border:1px solid #cbd5e1; }
.shot-quality-badge { display:inline-flex; align-items:center; justify-content:center; min-height:24px; min-width:64px; border-radius:999px; padding:0.15rem 0.55rem; font-size:11px; font-weight:900; text-transform:uppercase; letter-spacing:0.03em; }
.shot-quality-badge.high { color:#991b1b; background:#fee2e2; border:1px solid #fca5a5; }
.shot-quality-badge.medium { color:#92400e; background:#fef3c7; border:1px solid #fcd34d; }
.shot-quality-badge.low { color:#166534; background:#dcfce7; border:1px solid #86efac; }
.shot-quality-report-btn { cursor:pointer; font-family:inherit; }
.shot-quality-note { color:var(--text-muted); font-size:13px; margin:0.45rem 0 0; }
@media (max-width: 760px) { .shot-quality-rink { min-width:680px; } .shot-quality-legend { justify-content:flex-start; } }


.shot-quality-rink .rink-zone-label { display:none; }

.save-quality-table .shot-quality-badge { min-width: 0; width: 84px; max-width: 84px; min-height: 30px; padding-left: 0.18rem; padding-right: 0.18rem; font-size: 10px; line-height: 1.05; white-space: normal; text-align: center; }
.save-quality-table th, .save-quality-table td { overflow: hidden; }

.goal-quality-table .shot-quality-badge { min-width: 0; width: 84px; max-width: 84px; min-height: 30px; padding-left: 0.18rem; padding-right: 0.18rem; font-size: 10px; line-height: 1.05; white-space: normal; text-align: center; }
.goal-quality-table .shot-quality-badge.driver { color:#166534; background:#dcfce7; border:1px solid #86efac; }
.goal-quality-table .shot-quality-badge.positive { color:#1e40af; background:#dbeafe; border:1px solid #93c5fd; }
.goal-quality-table .shot-quality-badge.quiet { color:#475569; background:#e2e8f0; border:1px solid #cbd5e1; }
.goal-quality-table th, .goal-quality-table td { overflow: hidden; }



.dashboard-logo-panel { grid-column: 1 / -1; }
.dashboard-logo-generator { display:grid; grid-template-columns:minmax(0, 1fr) 240px; gap:1rem; align-items:stretch; }
.dashboard-logo-controls { margin:0; }
.dashboard-logo-controls input[type="color"] { min-height:38px; padding:3px; cursor:pointer; }
.dashboard-logo-preview-card { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:0.65rem; min-height:230px; border:1px solid var(--border); border-radius:8px; background:#f8fafc; box-shadow:inset 0 0 0 1px rgba(255,255,255,0.72); padding:1rem; }
.dashboard-logo-preview { width:180px; height:180px; display:flex; align-items:center; justify-content:center; }
.dashboard-logo-preview svg { display:block; width:180px; height:180px; filter:drop-shadow(0 10px 18px rgba(0,0,0,0.28)); }
.dashboard-logo-preview-meta { display:flex; flex-direction:column; align-items:center; gap:0.1rem; text-align:center; color:var(--text); }
.dashboard-logo-preview-meta strong { font-family:'Barlow Condensed', sans-serif; font-size:18px; line-height:1; letter-spacing:0.04em; }
.dashboard-logo-preview-meta span { color:var(--text-muted); font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:0.05em; }
@media (max-width: 800px) { .dashboard-logo-generator { grid-template-columns:1fr; } .dashboard-logo-preview-card { min-height:220px; } }

.analytics-access-card {
  max-width: 520px;
  margin: 3rem auto;
  padding: 1.35rem;
  background: #fff;
}
body.analytics-gated main.container > * {
  visibility: hidden;
}
body.analytics-gated.analytics-access-granted main.container > *,
body.analytics-gated.analytics-access-blocked main.container > * {
  visibility: visible;
}
body.dashboard-gated main.container > * {
  visibility: hidden;
}
body.dashboard-gated.dashboard-access-granted main.container > *,
body.dashboard-gated.dashboard-access-blocked main.container > * {
  visibility: visible;
}
.analytics-access-card h2 {
  margin: .25rem 0 .55rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  letter-spacing: .02em;
}
.analytics-access-card p {
  color: var(--text-muted);
  line-height: 1.5;
}
.analytics-access-form {
  display: grid;
  gap: .8rem;
  margin-top: 1rem;
}
.analytics-access-form label {
  display: grid;
  gap: .35rem;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.analytics-access-form input[type="password"] {
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 .8rem;
  color: var(--text);
  font-size: 15px;
  text-transform: none;
  letter-spacing: 0;
}
.analytics-password-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
  gap: .45rem;
}
.analytics-password-wrap input[type="password"],
.analytics-password-wrap input[type="text"] {
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 .8rem;
  color: var(--text);
  font-size: 15px;
  text-transform: none;
  letter-spacing: 0;
}
.analytics-password-toggle {
  min-width: 66px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--text-muted);
  font-family: Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .03em;
  cursor: pointer;
}
.analytics-password-toggle:hover,
.analytics-password-toggle[aria-pressed="true"] {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1e40af;
}
.analytics-access-remember {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: .5rem !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 13px !important;
}
.analytics-access-error {
  min-height: 18px;
  margin: 0;
  color: #b91c1c !important;
  font-size: 13px;
  font-weight: 800;
}
.analytics-access-form .primary-action-btn {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #1e40af, #2563eb);
  color: #fff;
  box-shadow: 0 10px 22px rgba(30, 64, 175, .22);
  font-family: Inter, Arial, sans-serif;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.analytics-access-form .primary-action-btn:hover {
  background: linear-gradient(135deg, #1d4ed8, #0891b2);
  box-shadow: 0 12px 26px rgba(30, 64, 175, .28);
  transform: translateY(-1px);
}
.analytics-access-form .primary-action-btn:active {
  transform: translateY(0);
  box-shadow: 0 7px 16px rgba(30, 64, 175, .2);
}
.analytics-access-link {
  display: inline-flex;
  margin-top: .8rem;
}






/* Team landing stat-number experiment */
#team-gp,
#team-gf,
#team-ga,
#team-diff {
  font-family: Inter, Arial, sans-serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--text);
}




























.points-leader-value { font-size: 18px; font-weight: 700; color: #000; }







.data-table tfoot td:not(.left) { font-size: 18px !important; font-weight: 500; }
.data-table tfoot td.left {
  font-size: 16px !important;
}
/* SHARED LINK AND CHART FONTS */
.back-link {
  font-family: Inter, Arial, sans-serif;
  font-weight: 500;
}
.player-chart-head,
.player-progress-keys span,
.progress-legend-inline,
.progress-check,
.accountability-chart-head,
.performance-chart-head,
.performance-legend-inline span,
.accountability-legend,
.impact-label-legend,
.scoring-label-legend,
.coach-label-legend,
.impact-scatter-legend,
.shot-quality-legend,
.scoring-radar-list,
.radar-note {
  font-family: Inter, Arial, sans-serif;
  letter-spacing: 0;
}
.progress-chart text,
.accountability-svg text,
.impact-scatter-svg text,
.scoring-scatter-svg text,
.coach-scatter-svg text,
.performance-svg text,
.scoring-radar-svg text {
  font-family: Inter, Arial, sans-serif;
  letter-spacing: 0;
}
.accountability-svg .axis-label,
.impact-scatter-svg .axis-label,
.scoring-scatter-svg .axis-label,
.coach-scatter-svg .axis-label,
.performance-svg .axis-label {
  font-weight: 700;
}
.accountability-svg .tick-label,
.impact-scatter-svg .tick-label,
.scoring-scatter-svg .tick-label,
.coach-scatter-svg .tick-label,
.scoring-radar-label {
  font-weight: 700;
}
/* DASHBOARD INTER TYPOGRAPHY */
.dashboard-page,
.dashboard-page button,
.dashboard-page input,
.dashboard-page select,
.dashboard-page label,
.dashboard-page textarea,
.dashboard-section-tab,
.dashboard-card-head,
.dashboard-card-head strong,
.dashboard-metrics,
.dashboard-metrics strong,
.dashboard-health-card strong,
.dashboard-form-grid input,
.dashboard-form-grid select,
.dashboard-picker-head select,
.dashboard-pga-percent input,
.dashboard-player-chip,
.dashboard-template-player .chip-number,
.dashboard-player-chip .chip-number,
.dashboard-writeback-grid input,
.dashboard-track-game-field select,
.dashboard-track-location-row input,
.track-modifier-btn,
.dashboard-track-ga-options label,
.track-event-btn,
.dash-btn,
.dash-mini-btn,
.dashboard-logo-preview-meta strong,
.dashboard-logo-preview-meta span,
.rink-footer-score,
.rink-goalie-marker,
.dashboard-track-auto-stage,
.dashboard-track-tag,
.dashboard-game-summary,
.dash-status-badge,
.dash-season-pill,
.dashboard-note,
.dashboard-count,
.dashboard-status,
.dashboard-preview-label,
.dashboard-picker-label,
.dashboard-template-group-label,
.dashboard-track-penalty-label,
.dashboard-track-side-head,
.dashboard-muted-inline,
.dashboard-pending-main,
.dashboard-pending-empty {
  font-family: Inter, Arial, sans-serif;
  letter-spacing: 0;
}
.dashboard-preview,
.dashboard-small-textarea,
.dashboard-shot-chip {
  font-family: Consolas, 'Courier New', monospace;
}
.dashboard-section-tab,
.dash-btn,
.dash-mini-btn,
.track-event-btn,
.track-modifier-btn,
.dashboard-track-ga-options label {
  font-weight: 700;
}
.dashboard-card-head strong,
.dashboard-metrics strong,
.dashboard-health-card strong,
.dashboard-logo-preview-meta strong {
  font-weight: 700;
}
.dashboard-template-player .chip-number,
.dashboard-player-chip .chip-number {
  font-weight: 600;
}
.dashboard-page *:not(.dashboard-preview):not(.dashboard-small-textarea):not(.dashboard-shot-chip) {
  font-family: Inter, Arial, sans-serif;
  letter-spacing: 0;
}
.dashboard-page .dashboard-preview,
.dashboard-page .dashboard-small-textarea,
.dashboard-page .dashboard-shot-chip {
  font-family: Consolas, 'Courier New', monospace;
}
.dashboard-page .dashboard-header .page-title {
  font-family: 'Barlow Condensed', sans-serif !important;
  letter-spacing: 0;
}
.dashboard-header-actions > .dash-btn,
.dashboard-header-actions > .dashboard-status {
  min-height: 40px;
}
.dashboard-games-table tbody td:nth-child(4) {
  font-size: 13px;
  line-height: 1.35;
}
.dashboard-games-table tbody td:nth-child(4) .dash-winner {
  font-weight: 700;
}
.dashboard-table tbody tr:nth-child(even) .dash-actions .dash-btn {
  background: rgb(250,252,255);
}
.dashboard-games-table tbody tr:nth-child(even) .dash-actions .dash-btn {
  background: #f1f6ff;
}
.dashboard-table tbody tr:nth-child(even) .dash-actions .dash-btn:hover {
  background: #eef4ff;
}
.player-game-matchup-cell {
  font-size: 13px;
  line-height: 1.35;
}
.player-game-matchup {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  color: var(--text-muted);
}
.player-game-matchup .dash-winner {
  color: var(--text);
  font-weight: 700;
}
.dashboard-games-table .dash-date-main {
  font-size: 13px;
  line-height: 1.25;
}
.dashboard-games-table .dash-date-time {
  font-size: 12px;
  line-height: 1.25;
}
.player-game-matchup,
.player-game-matchup span {
  font-size: 13px;
}

@media (orientation: landscape) and (max-height: 520px) and (max-width: 940px) {
  .site-nav { display: none; }
}
