:root {
  --ss-navy: #17223a; --ss-green: #12a463; --ss-green-dark: #0d7d4c;
  --ss-mint: #8fe0b4; --ss-mint-soft: #dcf7e8; --ss-surface: #f5f8f6;
  --ss-canvas: #eef3f0; --ss-ink: #17223a; --ss-muted: #5b6675;
  --ss-line: #dbe2ed; --ss-light: #e9eef7; --ss-white: #fff;
  --ss-radius-sm: 12px; --ss-radius: 20px; --ss-radius-lg: 24px;
  --ss-font-body: "DM Sans", Helvetica, Arial, sans-serif;
  --ss-font-display: "Sora", "DM Sans", Helvetica, Arial, sans-serif;
}
body { min-height: 100vh; color: var(--ss-ink); font-family: var(--ss-font-body); }
.display-6 { font-family: var(--ss-font-display); font-weight: 700; }
.card { border: 0; border-radius: var(--ss-radius); }
.navbar-brand { color: var(--ss-ink); font-family: var(--ss-font-display); letter-spacing: -0.02em; }
#token-result code { word-break: break-all; }

.app-shell.bg-body-tertiary { background: var(--ss-canvas) !important; }
.app-navbar { position: relative; z-index: 1050; padding: 15px 0; background: rgba(255,255,255,.92); border-bottom: 1px solid var(--ss-line); backdrop-filter: blur(12px); }
.app-brand-mark { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: var(--ss-green); }
.app-brand-mark span { width: 8px; height: 8px; border-radius: 50%; background: var(--ss-white); }
.app-nav-actions { flex-wrap: wrap; justify-content: flex-end; }
.app-user-menu { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-navbar .dropdown-menu { z-index: 1060; }
.app-shell main { padding-top: 34px !important; padding-bottom: 60px; }
.app-shell h1, .app-shell h2, .app-shell h3, .app-shell h4, .app-shell h5, .app-shell h6 { font-family: var(--ss-font-display); letter-spacing: -.025em; }
.app-shell .card { background: var(--ss-white); box-shadow: 0 10px 28px rgba(23,34,58,.055) !important; }
.app-shell .card-header { padding: 18px 22px; border-bottom: 1px solid var(--ss-line); border-radius: var(--ss-radius) var(--ss-radius) 0 0 !important; }
.app-shell .card-body { padding: 22px; }
.app-shell .btn { border-radius: 999px; font-weight: 600; }
.app-shell .btn-primary { --bs-btn-bg: var(--ss-green); --bs-btn-border-color: var(--ss-green); --bs-btn-hover-bg: var(--ss-green-dark); --bs-btn-hover-border-color: var(--ss-green-dark); }
.app-shell .btn-outline-primary { --bs-btn-color: var(--ss-green-dark); --bs-btn-border-color: var(--ss-green); --bs-btn-hover-bg: var(--ss-green); --bs-btn-hover-border-color: var(--ss-green); }
.app-shell .form-control, .app-shell .form-select { min-height: 44px; border-color: var(--ss-line); border-radius: var(--ss-radius-sm); }
.app-shell .form-control:focus, .app-shell .form-select:focus { border-color: var(--ss-green); box-shadow: 0 0 0 .22rem rgba(18,164,99,.14); }
.app-shell .table { --bs-table-bg: transparent; --bs-table-border-color: var(--ss-line); }
.app-shell .table thead th { color: var(--ss-muted); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.app-shell .alert { border: 0; border-radius: var(--ss-radius-sm); }
.app-shell .text-muted { color: var(--ss-muted) !important; }
.audience-fieldset legend { margin-bottom: 10px; }
.app-audience-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.app-audience-input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.app-audience-option { display: flex; align-items: center; gap: 13px; min-height: 64px; padding: 14px 16px; border: 1px solid var(--ss-line); border-radius: 16px; background: var(--ss-white); color: var(--ss-ink); cursor: pointer; transition: background 140ms ease, border-color 140ms ease; }
.app-audience-option:hover { border-color: #b9c4bf; }
.app-audience-input:checked + .app-audience-option { border-color: var(--ss-navy); background: #f7faf8; }
.app-audience-input:focus-visible + .app-audience-option { outline: 3px solid var(--ss-white); outline-offset: 3px; box-shadow: 0 0 0 6px var(--ss-green-dark); }
.app-audience-mark { display: grid; place-items: center; flex: 0 0 19px; width: 19px; height: 19px; border: 2px solid #cfd6d3; border-radius: 50%; }
.app-audience-mark span { width: 9px; height: 9px; border-radius: 50%; background: transparent; }
.app-audience-input:checked + .app-audience-option .app-audience-mark { border-color: var(--ss-green); }
.app-audience-input:checked + .app-audience-option .app-audience-mark span { background: var(--ss-green); }
.app-audience-copy { min-width: 0; }
.app-audience-copy strong { display: block; font-family: var(--ss-font-display); font-size: 15px; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
.app-audience-copy > span { display: block; margin-top: 3px; color: var(--ss-muted); font-size: 12px; line-height: 1.35; }
.app-footer { padding: 0 0 30px; color: var(--ss-muted); font-size: 12px; }
.app-footer .container { display: flex; justify-content: space-between; gap: 18px; }
.app-footer a { color: var(--ss-muted); }
.app-footer a:hover { color: var(--ss-ink); }
.legal-copy { max-width: 820px; margin: 0 auto; }
.legal-copy h2 { margin-top: 30px; font-size: 1.2rem; }
.legal-copy p, .legal-copy li { color: var(--ss-muted); line-height: 1.7; }
.athlete-list { border-radius: 0 0 var(--ss-radius) var(--ss-radius); overflow: hidden; }
.app-primary-nav-link { position: relative; padding-right: 4px; padding-left: 4px; color: var(--ss-navy); border: 0; border-radius: 0 !important; background: transparent; font-weight: 400 !important; }
.app-primary-nav-link:hover { color: var(--ss-green-dark); background: transparent; }
.app-primary-nav-link.active { color: var(--ss-green-dark); background: transparent; font-weight: 600 !important; }
.app-primary-nav-link.active::after { content: ""; position: absolute; right: 4px; bottom: 0; left: 4px; height: 2px; border-radius: 999px; background: var(--ss-green); }
.athlete-profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.athlete-profile-card .card-body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; }
.athlete-profile-card-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--ss-mint-soft); color: var(--ss-green-dark); font-family: var(--ss-font-display); font-weight: 700; }
.athlete-profile-card-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 9px; padding-top: 4px; }
.athlete-search-card-onboarding { max-width: 820px; margin: 0 auto; }
.athlete-onboarding-preview { max-width: 820px; margin: 0 auto; }
.athlete-onboarding-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.athlete-onboarding-steps div { display: flex; align-items: center; gap: 11px; padding: 14px; border-radius: var(--ss-radius-sm); background: var(--ss-surface); }
.athlete-onboarding-steps strong { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; background: var(--ss-navy); color: var(--ss-white); }
.athlete-manager-card { background: var(--ss-navy) !important; color: var(--ss-white); }
.athlete-manager-card .text-muted { color: #c7d3e3 !important; }
.athlete-candidates { display: grid; gap: 10px; }
.athlete-candidate { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(150px, auto); align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--ss-line); border-radius: var(--ss-radius-sm); cursor: pointer; }
.athlete-candidate:hover { border-color: var(--ss-green); }
.athlete-candidate-suggested { background: var(--ss-mint-soft); }
.athlete-candidate-unavailable { cursor: not-allowed; opacity: .72; }
.athlete-candidate-main, .athlete-candidate-main small, .athlete-candidate-meta, .athlete-candidate-meta small { display: block; }
.athlete-candidate-main small, .athlete-candidate-meta small { margin-top: 3px; color: var(--ss-muted); }
.athlete-candidate-meta { text-align: right; }
.athlete-candidate-meta .badge + .badge { margin-left: 5px; }
.athlete-team-groups { display: grid; gap: 10px; }
.athlete-team-group { padding: 0 14px; border: 1px solid var(--ss-line); border-radius: var(--ss-radius-sm); background: var(--ss-surface); }
.athlete-team-group[open] { padding-bottom: 14px; }
.athlete-team-group > summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; cursor: pointer; font-weight: 700; }
.athlete-team-group > summary::marker { color: var(--ss-green); }
.athlete-save-bar { position: sticky; bottom: 0; z-index: 4; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 22px; border-radius: 0 0 var(--ss-radius) var(--ss-radius); box-shadow: 0 -8px 20px rgba(23,34,58,.06); }
.athlete-confirm-footer { justify-content: space-between; gap: 16px; }
.athlete-confirm-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-left: auto; }
.athlete-confirm-profile { color: var(--ss-green-dark); text-decoration: none; }
.athlete-confirm-profile:hover, .athlete-confirm-profile:focus { color: var(--ss-green-dark); text-decoration: underline; }
.athlete-confirm-primary { min-width: 190px; }
.athlete-roster-list { display: grid; }
.athlete-roster-row { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(220px, .9fr); align-items: center; gap: 20px; padding: 16px 22px; border-bottom: 1px solid var(--ss-line); }
.athlete-roster-row:last-child { border-bottom: 0; }
.athlete-roster-row-suggested { background: var(--ss-mint-soft); }
.athlete-roster-row-connected { background: #f3f7ff; box-shadow: inset 4px 0 0 #1d64d8; }
.athlete-roster-player small { display: block; margin-top: 5px; }
.athlete-review-alert { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.athlete-player-suggestion { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
@media (max-width: 575px) {
  .app-audience-options { grid-template-columns: 1fr; }
  .athlete-candidate { grid-template-columns: auto 1fr; }
  .athlete-candidate-meta { grid-column: 2; text-align: left; }
  .athlete-confirm-footer { display: grid; grid-template-columns: 1fr; }
  .athlete-confirm-actions { display: grid; width: 100%; margin-left: 0; }
  .athlete-confirm-primary { grid-row: 1; width: 100%; }
  .athlete-confirm-profile { grid-row: 2; }
  .athlete-confirm-cancel { grid-row: 2; justify-self: start; }
}
@media (max-width: 767.98px) { .athlete-profile-grid, .athlete-onboarding-steps { grid-template-columns: 1fr; } }
.dashboard-metrics .card { height: 100%; min-height: 128px; }
.dashboard-metrics .card-body { display: flex; flex-direction: column; justify-content: space-between; }
.dashboard-metrics > div:first-child .card { background: var(--ss-navy); color: var(--ss-white); }
.dashboard-metrics > div:first-child .text-muted { color: #a3aebf !important; }
.dashboard-metrics > div:last-child .card { background: var(--ss-mint-soft); }
.dashboard-metric-link { color: inherit; text-decoration: none; transition: transform .16s ease, box-shadow .16s ease; }
.dashboard-metric-link:hover { color: inherit; transform: translateY(-2px); box-shadow: 0 14px 32px rgba(23,34,58,.1) !important; }
.dashboard-metric-cta { margin-top: 4px; color: var(--ss-green-dark); font-size: 12px; font-weight: 700; }
.dashboard-record-value { font-size: 2rem; }
.dashboard-page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.dashboard-scope-dropdown { flex: 0 1 340px; max-width: 100%; }
.dashboard-scope-trigger { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 44px; padding-right: 15px; padding-left: 15px; background: var(--ss-white); text-align: left; }
.dashboard-scope-trigger-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-scope-trigger:hover .text-muted,
.dashboard-scope-trigger:focus .text-muted,
.dashboard-scope-trigger[aria-expanded="true"] .text-muted { color: var(--ss-white) !important; }
.dashboard-scope-menu { width: min(380px, calc(100vw - 32px)); max-height: min(620px, calc(100vh - 150px)); overflow-y: auto; border: 1px solid var(--ss-line); border-radius: var(--ss-radius-sm); box-shadow: 0 18px 45px rgba(23,34,58,.16); }
.dashboard-scope-search-wrap { position: relative; }
.dashboard-scope-search { padding-left: 40px; }
.dashboard-scope-search-icon { position: absolute; top: 50%; left: 14px; z-index: 2; color: var(--ss-muted); font-size: 20px; line-height: 1; transform: translateY(-50%); pointer-events: none; }
.dashboard-scope-group + .dashboard-scope-group { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--ss-line); }
.dashboard-scope-group-label { padding: 4px 12px; color: var(--ss-muted); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.dashboard-scope-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0; padding: 9px 12px; border-radius: 10px; white-space: normal; }
.dashboard-scope-option span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-scope-option.active, .dashboard-scope-option:active { background: var(--ss-mint-soft); color: var(--ss-green-dark); }
.dashboard-scope-compare { position: sticky; bottom: -16px; border-top: 1px solid var(--ss-line); background: var(--ss-white); }
.dashboard-filter-modal .form-select[multiple] { min-height: 150px; padding-top: 8px; padding-bottom: 8px; }
@media (max-width: 575px) { .dashboard-page-heading { flex-direction: column; } .dashboard-scope-dropdown { width: 100%; flex-basis: auto; } }
.dashboard-seeing-card { background: var(--ss-navy) !important; color: var(--ss-white); }
.dashboard-seeing-card .text-muted { color: #a3e7c8 !important; }
.dashboard-pill { display: inline-flex; align-items: center; min-height: 30px; padding: 6px 11px; border-radius: 999px; background: rgba(255,255,255,.12); color: var(--ss-white); font-size: 12px; font-weight: 700; white-space: nowrap; }
.dashboard-seeing-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dashboard-seeing-item { padding: 15px; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; background: rgba(255,255,255,.06); }
.dashboard-seeing-item strong { display: block; margin-bottom: 6px; color: var(--ss-white); }
.dashboard-seeing-item span { color: #c7d3e3; line-height: 1.45; }
.player-analysis-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.player-analysis-grid div { padding: 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(255,255,255,.06); }
.player-analysis-grid span { display: block; color: #a3e7c8; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.player-analysis-grid strong { display: block; margin-top: 5px; color: var(--ss-white); font-size: 1.15rem; }
.dashboard-insight-card { color: var(--ss-ink); transition: transform .16s ease, box-shadow .16s ease; }
.dashboard-insight-card:hover { color: var(--ss-ink); transform: translateY(-2px); }
.my-team-card { border-radius: 8px; }
.my-team-card:focus-visible { outline: 2px solid var(--ss-green); outline-offset: 3px; transform: translateY(-2px); }
.team-logo { width: 48px; height: 48px; flex: 0 0 48px; display: inline-grid; place-items: center; }
.team-logo > * { grid-area: 1 / 1; }
.team-logo img { width: 48px; height: 48px; object-fit: contain; background: white; }
.dashboard-insight-card .card-body { display: flex; flex-direction: column; gap: 18px; }
.dashboard-insight-eyebrow { color: var(--ss-green-dark); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.dashboard-insight-metric { flex: 0 0 auto; min-width: 72px; padding: 8px 10px; border-radius: 14px; background: var(--ss-surface); text-align: right; }
.dashboard-insight-metric span { display: block; color: var(--ss-muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.dashboard-insight-metric strong { display: block; font-family: var(--ss-font-display); font-size: 1.15rem; }
.dashboard-insight-card p { color: var(--ss-muted); line-height: 1.5; }
.team-stats-section { overflow: hidden; border-radius: var(--ss-radius); background: var(--ss-white); box-shadow: 0 10px 28px rgba(23,34,58,.055); }
.team-stats-nav { display: flex; gap: 6px; padding: 10px 14px 0; border-bottom: 1px solid var(--ss-line); background: #f6faf8; }
.team-stats-nav-link { position: relative; padding: 13px 22px 15px; border-radius: 13px 13px 0 0; color: var(--ss-muted); font-weight: 700; text-decoration: none; transition: color .16s ease, background-color .16s ease; }
.team-stats-nav-link:hover { color: var(--ss-green-dark); background: rgba(255,255,255,.7); }
.team-stats-nav-link.active { color: var(--ss-ink); background: var(--ss-white); }
.team-stats-nav-link.active::after { position: absolute; right: 20px; bottom: -1px; left: 20px; height: 3px; border-radius: 3px 3px 0 0; background: var(--ss-green); content: ""; }
.team-stats-card { border-radius: 0; box-shadow: none !important; }
.dashboard-players-list { display: grid; gap: 10px; }
.dashboard-player-row { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(220px, 1.4fr) minmax(150px, .8fr); align-items: center; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--ss-line); color: var(--ss-ink); }
.dashboard-player-row:last-child { border-bottom: 0; }
.dashboard-player-row:hover { color: var(--ss-ink); }
.dashboard-player-why { color: var(--ss-muted); line-height: 1.45; }
.dashboard-player-metric { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.dashboard-player-metric span { padding: 6px 9px; border-radius: 999px; background: var(--ss-surface); color: var(--ss-ink); font-size: 12px; font-weight: 700; white-space: nowrap; }
.dashboard-profile-table td,
.dashboard-card-table td { vertical-align: middle; }
.dashboard-profile-controls { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(170px, .75fr) auto auto; align-items: center; gap: 10px; margin-bottom: 14px; }
.dashboard-profile-qualified { margin: 0 4px; white-space: nowrap; }
.dashboard-profile-result-count { grid-column: 1 / -1; }
.dashboard-profile-sort { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; }
.dashboard-profile-sort span { min-width: 10px; color: var(--ss-green-dark); }
.dashboard-profile-sort:hover, .dashboard-profile-sort.active { color: var(--ss-green-dark); }
.dashboard-profile-more-wrap { display: flex; justify-content: center; padding-top: 18px; }
.dashboard-profile-more-wrap:has(button[hidden]) { display: none; }
.dashboard-profile-empty { padding: 22px 0 4px; text-align: center; }
.dashboard-section-heading { display: flex; align-items: baseline; gap: 12px; margin: 6px 0 14px; padding-top: 8px; }
.dashboard-section-heading span { color: var(--ss-ink); font-family: var(--ss-font-display); font-size: 1.15rem; font-weight: 700; }
.dashboard-section-heading p { margin: 0; color: var(--ss-muted); font-size: 13px; }
.dashboard-stat-sections { display: flex; flex-direction: column; }
.dashboard-stat-section-hitting { order: 1; }
.dashboard-stat-section-pitching { order: 2; }
.dashboard-pitching-leaders { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dashboard-pitching-leader { display: grid; gap: 5px; padding: 16px; border: 1px solid var(--ss-line); border-radius: 16px; background: var(--ss-surface); color: var(--ss-ink); }
.dashboard-pitching-leader:hover { color: var(--ss-ink); border-color: var(--ss-green); }
.dashboard-pitching-leader > span { color: var(--ss-green-dark); font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.dashboard-pitching-leader > strong { font-family: var(--ss-font-display); font-size: 1.05rem; }
.dashboard-pitching-leader > div { color: var(--ss-muted); font-size: 12px; }
.dashboard-pitching-leader > div b { color: var(--ss-ink); font-size: 1.15rem; }
.dashboard-pitching-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; }
.dashboard-ignore-player { padding: 4px 0; font-size: 12px; text-decoration: none; }
.dashboard-ignore-player:hover { color: var(--ss-green-dark) !important; text-decoration: underline; }
.dashboard-mobile-ignore { display: flex; justify-content: flex-end; margin-top: 8px; }
.dashboard-mobile-ignore .btn { padding-right: 0; padding-left: 0; font-size: 12px; text-decoration: none; }
.dashboard-game-log, .dashboard-collapsible-card { overflow: hidden; }
.dashboard-game-log > summary, .dashboard-collapsible-card > summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer; list-style: none; }
.dashboard-game-log > summary::-webkit-details-marker, .dashboard-collapsible-card > summary::-webkit-details-marker { display: none; }
.dashboard-game-log > summary span, .dashboard-collapsible-card > summary span { display: grid; gap: 2px; }
.dashboard-game-log > summary::after, .dashboard-collapsible-card > summary::after { content: "Show"; color: var(--ss-green-dark); font-size: 12px; font-weight: 800; }
.dashboard-game-log[open] > summary::after, .dashboard-collapsible-card[open] > summary::after { content: "Hide"; }
.dashboard-team-link { display: inline-flex; align-items: center; gap: 7px; }
.dashboard-team-dot { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: var(--team-accent); box-shadow: 0 0 0 3px var(--team-line); }
.dashboard-team-legend { display: flex; flex-wrap: wrap; gap: 8px; }
.dashboard-team-legend-item { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 7px 10px; border: 1px solid var(--team-line); border-radius: 999px; background: var(--team-soft); color: var(--ss-ink); font-size: 12px; font-weight: 700; text-decoration: none; }
.dashboard-team-legend-item:hover { color: var(--ss-ink); background: var(--team-hover); }
.dashboard-team-tone-1 { --team-accent: #12a463; --team-soft: #f0fbf5; --team-hover: #e6f8ef; --team-line: #c8f0dc; }
.dashboard-team-tone-2 { --team-accent: #1d64d8; --team-soft: #f3f7ff; --team-hover: #e9f1ff; --team-line: #d5e4ff; }
.dashboard-team-tone-3 { --team-accent: #d88a00; --team-soft: #fff8e8; --team-hover: #fff2d6; --team-line: #ffe3a8; }
.dashboard-team-tone-4 { --team-accent: #b447ad; --team-soft: #fdf3fc; --team-hover: #fae9f8; --team-line: #f1cfed; }
.dashboard-team-tone-5 { --team-accent: #0e8b9d; --team-soft: #effbfd; --team-hover: #e2f6f9; --team-line: #c6edf3; }
.dashboard-team-tone-6 { --team-accent: #d14c32; --team-soft: #fff4f1; --team-hover: #ffe9e3; --team-line: #ffd3c9; }
.profile-badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.profile-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.profile-badge-success { background: #dcf7e8; color: #0d7d4c; }
.profile-badge-success::before { background: #12a463; }
.profile-badge-primary { background: #e7f0ff; color: #1558c8; }
.profile-badge-primary::before { background: #1d64d8; }
.profile-badge-warning { background: #fff3d6; color: #8a5a00; }
.profile-badge-warning::before { background: #d88a00; }
.profile-badge-danger { background: #ffe2e2; color: #b42323; }
.profile-badge-danger::before { background: #d92d20; }
.profile-badge-muted { background: #eef1f5; color: #4b5565; }
.profile-badge-muted::before { background: #8792a2; }
.profile-badge-table-setter { background: #e8f3ff; color: #245b8a; }
.profile-badge-table-setter::before { background: #3b82c4; }
.profile-badge-disciplined-producer { background: #dcf7e8; color: #0d7d4c; }
.profile-badge-disciplined-producer::before { background: #12a463; }
.profile-badge-contact-hitter { background: #e8f7f5; color: #176b65; }
.profile-badge-contact-hitter::before { background: #2a9d8f; }
.profile-badge-power-threat { background: #f2e9ff; color: #7040a0; }
.profile-badge-power-threat::before { background: #9254c8; }
.profile-badge-aggressive-producer { background: #fff0e5; color: #9a4b16; }
.profile-badge-aggressive-producer::before { background: #e2762c; }
.profile-badge-balanced-hitter { background: #e9eefa; color: #42567e; }
.profile-badge-balanced-hitter::before { background: #667aa3; }
.profile-badge-free-swinger { background: #ffe9e5; color: #a33b2b; }
.profile-badge-free-swinger::before { background: #d95a45; }
.profile-badge-developing-hitter { background: #f1f2f4; color: #596273; }
.profile-badge-developing-hitter::before { background: #8993a3; }
.dashboard-sample-note { margin-top: 5px; color: var(--ss-muted); font-size: 11px; font-weight: 700; white-space: nowrap; }
.hitter-type-legend { display: grid; gap: 8px; margin-bottom: 18px; padding: 0 13px; border: 1px solid var(--ss-line); border-radius: 14px; background: var(--ss-surface); }
.hitter-type-legend[open] { gap: 14px; padding: 15px; }
.hitter-type-legend > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; cursor: pointer; list-style: none; }
.hitter-type-legend > summary::-webkit-details-marker { display: none; }
.hitter-type-legend > summary::after { content: "Show"; flex: 0 0 auto; color: var(--ss-green-dark); font-size: 12px; font-weight: 800; }
.hitter-type-legend[open] > summary::after { content: "Hide"; }
.hitter-type-legend-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hitter-type-legend-item { display: grid; gap: 6px; align-content: start; min-width: 0; color: var(--ss-muted); font-size: 12px; line-height: 1.35; }
.hitter-type-legend-item .profile-badge { width: fit-content; max-width: 100%; }
.dashboard-mobile-card-heading .dashboard-sample-note { display: block; text-align: right; }
.dashboard-mobile-list { display: grid; gap: 12px; }
.dashboard-mobile-card { padding: 15px; border: 1px solid var(--ss-line); border-radius: 16px; background: var(--ss-white); box-shadow: 0 8px 22px rgba(23,34,58,.045); }
.dashboard-mobile-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.dashboard-mobile-subtitle { display: inline-block; margin-top: 6px; }
.dashboard-mobile-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 14px 0 0; }
.dashboard-mobile-stats div { padding: 10px; border-radius: 12px; background: var(--ss-surface); }
.dashboard-mobile-stats dt { margin: 0 0 3px; color: var(--ss-muted); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.dashboard-mobile-stats dd { margin: 0; color: var(--ss-ink); font-weight: 700; }
.dashboard-mobile-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--ss-line); text-align: right; }
.dashboard-mobile-row span,
.dashboard-mobile-status { color: var(--ss-muted); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.dashboard-mobile-row strong { font-size: .92rem; }
.dashboard-mobile-status { padding: 6px 9px; border-radius: 999px; background: var(--ss-surface); color: var(--ss-ink); white-space: nowrap; }
.access-gate-stat { min-height: 118px; padding: 18px; border: 1px solid var(--ss-line); border-radius: 18px; background: var(--ss-surface); }
.access-gate-stat span { display: block; margin-bottom: 16px; color: var(--ss-muted); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.access-gate-stat strong { display: block; font-family: var(--ss-font-display); font-size: 1.7rem; line-height: 1.1; }
.access-gate-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.access-gate-date-form { display: inline-flex; gap: 8px; }
.access-gate-date-form .form-control { width: 145px; min-height: 32px; }

@media (max-width: 575.98px) {
  .app-navbar .container { gap: 12px; }
  .app-nav-actions { max-width: 100%; }
  .app-user-menu { max-width: 170px; }
  .dashboard-metrics { --bs-gutter-x: .75rem; --bs-gutter-y: .75rem; }
  .dashboard-metrics > [class*="col-"] { flex: 0 0 auto; width: 50%; }
  .dashboard-metrics .card { min-height: 90px; border-radius: 16px; }
  .dashboard-metrics .card-body { padding: 14px 16px; }
  .dashboard-metrics .small { font-size: .78rem; line-height: 1.2; }
  .dashboard-metrics .display-6 { font-size: 1.85rem; line-height: 1; }
  .dashboard-seeing-list { grid-template-columns: 1fr; gap: 10px; }
  .dashboard-seeing-item { padding: 13px; }
  .player-analysis-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-insight-grid { --bs-gutter-y: .75rem; }
  .dashboard-insight-card .card-body { gap: 14px; padding: 17px; }
  .team-stats-nav { gap: 0; padding: 8px 8px 0; }
  .team-stats-nav-link { flex: 1; padding: 12px 8px 14px; text-align: center; }
  .team-stats-nav-link.active::after { right: 16px; left: 16px; }
  .dashboard-player-row { grid-template-columns: 1fr; gap: 8px; padding: 15px 0; }
  .dashboard-player-metric { justify-content: flex-start; }
  .dashboard-profile-controls { grid-template-columns: 1fr; }
  .dashboard-profile-result-count { grid-column: auto; }
  .dashboard-section-heading { display: grid; gap: 2px; }
  .dashboard-pitching-leaders { grid-template-columns: 1fr; }
  .hitter-type-legend-list { grid-template-columns: 1fr; }
  .hitter-type-legend-item .profile-badge { white-space: normal; }
  .dashboard-mobile-card .profile-badge { flex-shrink: 0; max-width: 48%; white-space: normal; }
  .access-gate-actions { justify-content: flex-start; }
  .access-gate-date-form { width: 100%; }
  .access-gate-date-form .form-control { width: 100%; }
  .athlete-roster-row { grid-template-columns: 1fr; gap: 10px; padding: 15px 17px; }
}

@media (max-width: 359.98px) {
  .dashboard-metrics > [class*="col-"] { width: 100%; }
}
