/* Two Out Barrels — app/auth styles (layered on top of styles.css) */

.auth-card {
  background: var(--navy-700);
  border: 1px solid var(--navy-600);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.auth-card h3 { color: var(--ink); margin-bottom: 18px; }
.auth-card label {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-bottom: 14px;
  font-weight: 500;
}
.auth-card input,
.auth-card select,
.auth-card textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 13px;
  background: var(--navy-900);
  border: 1px solid var(--navy-600);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
}
.auth-card input:focus,
.auth-card select:focus,
.auth-card textarea:focus {
  outline: none;
  border-color: var(--carolina);
}
.auth-card .hint { display: block; color: var(--ink-faint); font-size: 0.8rem; margin: -8px 0 16px; }
.auth-card .btn { width: 100%; margin-top: 4px; }
.auth-alt { margin: 16px 0 0; font-size: 0.9rem; color: var(--ink-muted); text-align: center; }
.auth-msg { margin: 12px 0 0; font-size: 0.9rem; min-height: 1.2em; }
.auth-msg.err { color: var(--barrel); }
.auth-msg.ok { color: var(--good); }

/* Nav auth is injected as <li> items inside .nav-links (see nav-auth.js);
   styling lives in styles.css. The old standalone .nav-auth widget was removed. */

/* Reports grid */
.report-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.report-item {
  background: var(--navy-700);
  border: 1px solid var(--navy-600);
  border-radius: var(--radius);
  overflow: hidden;
}
.report-item img { width: 100%; height: 200px; object-fit: cover; background: var(--navy-800); }
.report-document-link {
  display: flex; align-items: center; justify-content: center; min-height: 200px;
  padding: 24px; background: linear-gradient(135deg, var(--navy-900), #eef6fb);
  color: var(--carolina-dark); font-weight: 800; text-decoration: none;
}
.report-document-link::before {
  content: "REPORT"; display: inline-flex; align-items: center; justify-content: center;
  width: 92px; height: 116px; margin-right: 18px; border-radius: 5px;
  background: #fff; border: 1px solid var(--navy-600); box-shadow: var(--shadow);
  color: var(--navy); font-size: .72rem; letter-spacing: .12em;
}
.report-item .meta { padding: 14px 16px; }
.report-item .meta h4 { color: var(--ink); margin: 0 0 4px; font-size: 1rem; }
.report-item .meta p { margin: 0; font-size: 0.85rem; color: var(--ink-faint); }
.report-item .meta .access-label { margin-top: 7px; color: var(--carolina-dark); font-weight: 700; }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-muted);
}

/* Admin + pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.admin-panel { background: var(--navy-700); border: 1px solid var(--navy-600); border-radius: var(--radius); padding: 26px; margin-bottom: var(--gap); }
.admin-panel h3 { color: var(--ink); }

.post-admin { display: grid; gap: 10px; }

@media (max-width: 860px) {
  .report-grid, .price-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .report-grid, .price-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Admin console (tabbed, mobile-first)
   ============================================================ */
.admin-shell { padding: 20px 0 60px; }
.admin-tabs {
  display: flex; gap: 4px; flex-wrap: wrap;
  border-bottom: 2px solid var(--navy-600); margin-bottom: 22px;
  position: sticky; top: 0; background: var(--navy-900); z-index: 5; padding-top: 8px;
}
.admin-tabs a {
  font-family: var(--font-head); text-transform: uppercase; font-size: 0.9rem;
  letter-spacing: 0.5px; padding: 10px 14px; color: var(--ink-muted);
  border-bottom: 3px solid transparent; text-decoration: none;
}
.admin-tabs a:hover { color: var(--carolina-deep); text-decoration: none; }
.admin-tabs a.active { color: var(--carolina-deep); border-bottom-color: var(--carolina); }

.admin-h { font-family: var(--font-head); text-transform: uppercase; margin: 0 0 16px; }
.admin-loading, .admin-empty { color: var(--ink-faint); padding: 20px 0; }
.admin-empty { text-align: center; background: var(--navy-800); border-radius: var(--radius-sm); }

.field-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; }
.field-row label, .admin-panel > label { display: block; font-size: 0.85rem; color: var(--ink-muted); }
.field-row input, .field-row select, .field-row textarea,
.admin-panel > label input, .admin-panel > label select, .admin-panel > label textarea {
  width: 100%; margin-top: 4px; padding: 9px 11px; border: 1px solid var(--navy-600);
  border-radius: var(--radius-sm); font-family: inherit; font-size: 0.95rem; background: #fff;
}
.admin-panel > label { margin-bottom: 12px; }
.hint { font-size: 0.8rem; color: var(--ink-faint); }

/* Dashboard */
.admin-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.quick-card {
  background: linear-gradient(160deg, #2f7cb3, #13314d); color: #fff; border-radius: var(--radius);
  padding: 18px; text-decoration: none; display: block;
}
.quick-card:hover { text-decoration: none; opacity: 0.95; }
.quick-card .qi { font-size: 1.6rem; }
.quick-card h3 { color: #fff; margin: 8px 0 4px; font-size: 1.05rem; }
.quick-card p { margin: 0; font-size: 0.82rem; opacity: 0.9; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat-tile { background: var(--navy-700); border: 1px solid var(--navy-600); border-radius: var(--radius); padding: 18px; text-align: center; }
.stat-tile .n { font-family: var(--font-head); font-size: 2rem; color: var(--carolina-deep); }
.stat-tile .l { font-size: 0.78rem; text-transform: uppercase; color: var(--ink-muted); letter-spacing: 0.5px; }

/* Tables + rows */
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-table th { text-align: left; color: var(--ink-muted); font-weight: 600; padding: 8px; border-bottom: 2px solid var(--navy-600); }
.admin-table td { padding: 8px; border-bottom: 1px solid var(--navy-600); }
.admin-table code { font-size: 0.8rem; color: var(--ink-faint); }
.admin-note { font-size: 0.82rem; color: var(--ink-muted); margin: -4px 0 12px; }

.preview-card { margin-top: 16px; background: var(--navy-800); border: 1px solid var(--navy-600); border-radius: var(--radius); padding: 16px; }
.preview-card .warn { color: var(--barrel-dark); font-size: 0.85rem; margin: 8px 0; }
.report-frame { width: 100%; height: 520px; border: 1px solid var(--navy-600); border-radius: var(--radius-sm); margin-top: 12px; background: #fff; }

.player-row, .bat-row { padding: 12px 0; border-bottom: 1px solid var(--navy-600); }
.bat-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.player-row code { font-size: 0.78rem; color: var(--ink-faint); margin: 0 8px; }
.btn-sm { padding: 5px 12px; font-size: 0.8rem; }
.badge-status { font-size: 0.72rem; border-radius: 10px; padding: 2px 8px; border: 1px solid; }
.badge-status.ok { color: var(--good); border-color: var(--good); }
.badge-status.pending { color: var(--ink-faint); border-color: var(--ink-faint); }

/* Toast */
.toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px;
  font-size: 0.9rem; z-index: 50; box-shadow: var(--shadow);
}
.toast.ok { background: var(--good); }
.toast.err { background: var(--barrel-dark); }

@media (max-width: 760px) {
  .field-row { grid-template-columns: 1fr; }
  .admin-quick { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .report-frame { height: 420px; }
}

/* Modal dialog */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(19, 49, 77, 0.55);
  display: flex; align-items: center; justify-content: center; z-index: 60; padding: 20px;
}
.modal-box {
  background: #fff; border-radius: var(--radius); padding: 24px; max-width: 460px; width: 100%;
  box-shadow: var(--shadow);
}
.modal-box h3 { margin: 0 0 12px; font-family: var(--font-head); text-transform: uppercase; }
.modal-actions { justify-content: flex-end; margin-top: 18px; }
.modal-overlay.modal-review { padding: 0; align-items: stretch; }
.modal-review .modal-box {
  max-width: none; width: 100%; min-height: 100%; border-radius: 0;
  display: flex; flex-direction: column;
}
.modal-review .modal-body { overflow: auto; flex: 1; }
.modal-review .admin-table { min-width: 760px; }
.modal-intelligence .modal-box { background: #f7f9fb; }
.intel-wrap { max-width: 1180px; width: 100%; margin: 0 auto; color: var(--ink); }
.intel-source {
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center;
  margin-bottom: 18px; padding: 12px 14px; background: #fff;
  border: 1px solid var(--navy-600); border-radius: var(--radius-sm);
  font-size: .82rem; color: var(--ink-muted);
}
.intel-source strong { color: var(--ink); }
.intel-metrics {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-bottom: 18px;
}
.intel-metric {
  background: #fff; border: 1px solid var(--navy-600);
  border-radius: var(--radius-sm); padding: 16px;
}
.intel-value { font-family: var(--font-head); font-size: 1.55rem; color: var(--cool-dark); }
.intel-label { margin-top: 3px; font-size: .77rem; text-transform: uppercase;
  letter-spacing: .4px; color: var(--ink-muted); }
.intel-note { margin-top: 4px; font-size: .76rem; color: var(--ink-faint); }
.intel-section {
  background: #fff; border: 1px solid var(--navy-600);
  border-radius: var(--radius-sm); padding: 18px; margin-bottom: 14px;
}
.intel-section h4 { margin: 0 0 6px; color: var(--ink); }
.intel-section h5 { margin: 0 0 8px; color: var(--ink-muted); }
.intel-subgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.intel-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.intel-chip {
  display: inline-flex; gap: 4px; align-items: center;
  padding: 5px 9px; background: var(--navy-800);
  border-radius: 999px; color: var(--ink-muted); font-size: .78rem;
}
.intel-chip strong { color: var(--cool-dark); }
.intel-table-scroll { overflow-x: auto; }
.intel-evidence { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.intel-play { border-left: 3px solid var(--carolina); background: var(--navy-800);
  padding: 10px 12px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.intel-play-meta { color: var(--ink-faint); font-size: .72rem; text-transform: uppercase; }
.intel-play p { margin: 3px 0 0; color: var(--ink-muted); font-size: .83rem; }
.intel-limitations { background: #fff; border: 1px solid var(--navy-600);
  border-radius: var(--radius-sm); padding: 12px 16px; color: var(--ink-muted); }
.intel-limitations summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.intel-limitations li { margin: 5px 0; font-size: .82rem; }
@media (max-width: 760px) {
  .intel-metrics { grid-template-columns: repeat(2, 1fr); }
  .intel-subgrid, .intel-evidence { grid-template-columns: 1fr; }
  .intel-section { padding: 14px; }
}
.keep-list { display: grid; gap: 8px; margin-top: 10px; }
.keep-opt { padding: 10px 12px; border: 1px solid var(--navy-600); border-radius: var(--radius-sm); cursor: pointer; }
.keep-opt:hover { background: var(--navy-800); }

/* Team Intelligence tenant setup */
.admin-manager-grid {
  display: grid;
  grid-template-columns: minmax(260px, .7fr) minmax(520px, 1.3fr);
  gap: 18px;
}
.tenant-list { display: grid; gap: 8px; }
.tenant-choice {
  width: 100%; display: grid; grid-template-columns: 18px minmax(0, 1fr);
  align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--navy-600);
  border-radius: var(--radius-sm); text-align: left; background: #fff; cursor: pointer;
}
.tenant-choice:hover, .tenant-choice.active {
  border-color: var(--carolina); background: var(--navy-800);
}
.tenant-choice strong, .tenant-choice small { display: block; }
.tenant-choice small { color: var(--ink-faint); margin-top: 2px; }
.tenant-swatch { width: 14px; height: 36px; border-radius: 999px; }
.tenant-config-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 18px;
}
.tenant-config-head h3 { margin: 6px 0 2px; }
.tenant-config-head code { color: var(--ink-faint); }
#tm-config details {
  border-top: 1px solid var(--navy-600); padding: 12px 0;
}
#tm-config details > summary {
  cursor: pointer; color: var(--ink); font-weight: 600;
}
.tenant-config-section { padding: 15px 0 2px; }
.tenant-config-section textarea {
  width: 100%; padding: 10px; border: 1px solid var(--navy-600);
  border-radius: var(--radius-sm); resize: vertical;
}
.color-input { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 6px; }
.color-input input[type="color"] { width: 42px; padding: 3px; }
.tenant-check { display: flex; align-items: center; gap: 8px; margin: 12px 0; }
.tenant-check input { width: auto; }
.tenant-programs { display: grid; gap: 10px; margin-top: 16px; }
.tenant-program {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px; border: 1px solid var(--navy-600); border-radius: var(--radius-sm);
}
.tenant-program strong, .tenant-program small { display: block; }
.tenant-program small { color: var(--ink-faint); }
.tenant-attach { display: flex; gap: 8px; }
.tenant-attach select {
  min-width: 180px; padding: 7px; border: 1px solid var(--navy-600);
  border-radius: var(--radius-sm);
}
@media (max-width: 900px) {
  .admin-manager-grid { grid-template-columns: 1fr; }
  .tenant-program { align-items: stretch; flex-direction: column; }
  .tenant-attach { flex-wrap: wrap; }
}

/* Player pick rows */
.player-row .pick { display: inline-flex; align-items: center; gap: 8px; margin-right: 10px; }
.player-row .pick input { width: auto; }

/* Merge tool is tucked into a collapsible so it doesn't imply players are dupes */
.merge-tool { margin-top: 16px; border-top: 1px solid var(--navy-600); padding-top: 12px; }
.merge-tool summary { cursor: pointer; color: var(--ink-muted); font-size: 0.9rem; }
.merge-tool summary:hover { color: var(--carolina-deep); }

/* Player lookup + dedicated merge picker */
.linklike { background: none; border: none; color: var(--cool); font: inherit;
  cursor: pointer; padding: 8px 0; text-align: left; }
.linklike:hover { color: var(--cool-dark); text-decoration: underline; }
.mg-res { border: 1px solid var(--navy-600); border-radius: var(--radius-sm);
  margin-top: 4px; max-height: 180px; overflow-y: auto; }
.mg-res:empty { display: none; }
.mg-opt { display: block; width: 100%; text-align: left; background: #fff; border: none;
  border-bottom: 1px solid var(--navy-600); padding: 8px 10px; cursor: pointer; font: inherit; }
.mg-opt:hover { background: var(--navy-800); }
.mg-sel { margin-top: 6px; }
.mg-chip { display: inline-block; background: var(--carolina); color: #fff;
  border-radius: 999px; padding: 3px 12px; font-size: 0.85rem; }

/* Player Intelligence Profile */
.profile-scope-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 0 2px; }
.modal-player-profile .modal-box { background: #f7f9fb; }
.player-profile { max-width: 1120px; width: 100%; margin: 0 auto; color: var(--ink); }
.profile-header {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 18px;
  background: #fff; border: 1px solid var(--navy-600); border-radius: var(--radius);
  padding: 22px; margin-bottom: 16px;
}
.profile-header h2 { margin: 0; color: var(--ink); }
.profile-header p { margin: 5px 0 0; color: var(--ink-muted); }
.profile-header .profile-scope { color: var(--cool-dark); font-weight: 600; }
.profile-sources { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 7px; }
.profile-source-badge, .profile-metric-source {
  display: inline-block; border-radius: 999px; text-transform: uppercase;
  font-size: .68rem; font-weight: 700; letter-spacing: .35px;
}
.profile-source-badge { padding: 5px 9px; }
.profile-source-badge.provider, .profile-metric-source.provider {
  color: #664800; background: #fff2c2;
}
.profile-source-badge.derived, .profile-metric-source.derived {
  color: #174f77; background: #e6f3fb;
}
.profile-metric-source.mixed { color: #5b426f; background: #f1e8f7; }
.profile-section {
  background: #fff; border: 1px solid var(--navy-600);
  border-radius: var(--radius); padding: 18px; margin-bottom: 14px;
}
.profile-section h4 { margin: 0 0 4px; color: var(--ink); }
.profile-metrics {
  display: flex; flex-wrap: wrap; gap: 1px;
  background: var(--navy-600); border: 1px solid var(--navy-600);
  border-radius: var(--radius-sm); overflow: hidden; margin-top: 12px;
}
.profile-metric {
  flex: 1 1 calc(25% - 1px); min-width: 165px;
  min-height: 84px; padding: 13px 14px; background: #fff;
}
.profile-metric-label {
  color: var(--ink-muted); font-size: .74rem;
  text-transform: uppercase; letter-spacing: .35px;
}
.profile-metric-value {
  font-family: var(--font-head); font-size: 1.75rem; color: var(--cool-dark);
  margin: 5px 0 0;
}
.profile-metric-source { padding: 3px 7px; }
.profile-metric p { color: var(--ink-faint); font-size: .72rem; margin: 7px 0 0; }
.profile-coverage { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 12px 0; }
.profile-reconciliation {
  background: #fff8df; border-left: 3px solid #e1b23b;
  border-radius: var(--radius-sm); padding: 10px 12px; margin: 10px 0;
}
.profile-reconciliation h5 { margin: 0 0 5px; }
.profile-reconciliation div { font-size: .8rem; color: var(--ink-muted); }
.profile-quality { margin-top: 14px; }
.profile-collapsible {
  background: #fff; border: 1px solid var(--navy-600);
  border-radius: var(--radius); margin-bottom: 12px; overflow: hidden;
}
.profile-collapsible > summary {
  display: flex; justify-content: space-between; align-items: center;
  gap: 18px; cursor: pointer; list-style: none; padding: 16px 18px;
  color: var(--ink); user-select: none;
}
.profile-collapsible > summary::-webkit-details-marker { display: none; }
.profile-collapsible > summary:hover { background: #f7fafc; }
.profile-collapsible > summary strong {
  display: block; font-family: var(--font-head); font-size: 1.12rem;
}
.profile-collapsible > summary small {
  display: block; color: var(--ink-muted); font-size: .76rem;
  font-weight: 500; margin-top: 2px;
}
.profile-toggle-label {
  color: var(--cool-dark); font-size: .74rem; font-weight: 700;
  letter-spacing: .35px; text-transform: uppercase;
}
.profile-collapsible .when-open { display: none; }
.profile-collapsible[open] .when-open { display: inline; }
.profile-collapsible[open] .when-closed { display: none; }
.profile-collapsible[open] > summary {
  border-bottom: 1px solid var(--navy-600);
}
.profile-collapsible-content { padding: 14px; background: #f7f9fb; }
.profile-collapsible-content > .profile-section {
  margin: 0; border-radius: var(--radius-sm);
}
.profile-collapsible-content > .profile-section + .profile-section {
  margin-top: 12px;
}
.profile-analysis {
  overflow: hidden; border-color: #b9cedd;
  background: #fffdf8;
}
.analysis-title-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 18px; margin-bottom: 12px;
}
.analysis-title-row .hint { margin: 4px 0 0; }
.analysis-sample {
  flex: 0 0 auto; margin: 2px 0 0; color: var(--cool-dark);
  font-size: .75rem; font-weight: 700; text-align: right;
}
.profile-bip .analysis-title-row { margin-bottom: 10px; }
.bip-filters {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px; margin-bottom: 12px;
}
.bip-filters label {
  color: var(--ink-muted); font-size: .76rem; font-weight: 700;
}
.bip-filters select {
  display: block; width: 100%; margin-top: 4px; padding: 9px 11px;
  border: 1px solid var(--navy-600); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); font-family: inherit; font-size: .9rem;
}
.bip-filters select:focus {
  outline: 2px solid rgba(69, 156, 210, .25); border-color: var(--carolina);
}
.bip-summary-stack {
  border-top: 1px solid var(--navy-600);
  border-bottom: 1px solid var(--navy-600);
}
.bip-summary-row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 8px 18px; flex-wrap: wrap; padding: 10px 1px;
}
.bip-total-row {
  background: var(--navy-900); border-top: 1px solid var(--navy-600);
  padding-left: 10px; padding-right: 10px;
}
.bip-result-name { font-size: .82rem; }
.bip-summary-values {
  display: flex; align-items: baseline; gap: 7px 18px; flex-wrap: wrap;
  color: var(--ink-muted); font-size: .76rem;
}
.bip-summary-values strong {
  color: var(--cool-dark); font-family: var(--font-head); font-size: .98rem;
}
.bip-coverage {
  color: var(--ink-faint); font-size: .68rem; margin: 8px 0 0;
}
.count-heat-legend {
  display: flex; align-items: center; gap: 10px; color: var(--ink-faint);
  font-size: .68rem; margin: 10px 0;
}
.count-heat-legend i {
  display: block; width: 220px; max-width: 42vw; height: 9px;
  border-radius: 99px;
  background: linear-gradient(
    90deg,
    #e0e6e4 0%,
    #b7c267 35%,
    #e5c03e 55%,
    #e88539 75%,
    #e56b5f 100%
  );
}
.count-grid { overflow-x: auto; padding-bottom: 4px; }
.pitch-coverage-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid #c8d8e4;
  border-radius: 10px;
  background: #f3f8fb;
  color: #40566b;
  font-size: .88rem;
  line-height: 1.45;
}
.pitch-coverage-note strong { color: #17324b; }
.count-grid-row {
  display: grid; grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 10px; min-width: 740px;
}
.count-grid-row { margin-bottom: 9px; }
.count-card {
  position: relative; overflow: hidden; min-height: 168px;
  border: 1px solid rgba(20, 40, 61, .13); border-radius: 11px;
  color: var(--ink); padding: 13px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .04)),
    var(--count-bg);
  box-shadow:
    0 5px 14px rgba(20, 40, 61, .09),
    inset 0 1px 0 rgba(255, 255, 255, .42);
}
.count-card-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
}
.count-card-head strong {
  font-family: var(--font-head); font-size: 1.45rem; line-height: 1;
}
.count-swing-rate {
  border: 1px solid rgba(20, 40, 61, .12); border-radius: 999px;
  background: rgba(255, 255, 255, .38); color: var(--ink);
  font-size: .7rem; font-weight: 800; padding: 4px 8px;
}
.count-rate-track {
  height: 5px; overflow: hidden; border-radius: 999px;
  background: rgba(255, 255, 255, .46); margin: 11px 0 9px;
  box-shadow: inset 0 0 0 1px rgba(20, 40, 61, .08);
}
.count-rate-track i {
  display: block; width: var(--swing-width); height: 100%;
  border-radius: inherit; background: #294739;
}
.count-card-lines { display: grid; gap: 6px; }
.count-stat-line {
  display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap;
  border-radius: 6px; background: rgba(255, 255, 255, .23);
  color: var(--ink); font-size: .66rem; line-height: 1.35;
  padding: 5px 7px;
}
.count-stat-line span, .count-stat-line strong { color: var(--ink); }
.count-stat-line strong { font-size: .72rem; }
.count-stat-line i { font-style: normal; opacity: .45; }
@media (prefers-reduced-motion: no-preference) {
  .count-card { transition: transform .16s ease, box-shadow .16s ease; }
  .count-card:hover {
    transform: translateY(-1px);
    box-shadow:
      0 8px 18px rgba(20, 40, 61, .12),
      inset 0 1px 0 rgba(255, 255, 255, .45);
  }
}
.contact-section, .analysis-insights { margin-top: 18px; }
.contact-section h5, .analysis-insights h5 { margin: 0 0 9px; }
.contact-comparison-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px;
}
.contact-comparison > strong {
  display: block; color: var(--ink); font-size: .75rem; margin-bottom: 6px;
  text-transform: uppercase;
}
.contact-bar {
  display: flex; height: 30px; overflow: hidden; border-radius: 5px;
  background: #e8e5dc; color: #fff; font-size: .66rem; font-weight: 800;
}
.contact-bar span {
  display: flex; align-items: center; justify-content: center; white-space: nowrap;
}
.contact-hits { background: #238052; min-width: 0; }
.contact-outs { color: var(--ink-muted); flex: 1; }
.contact-comparison small {
  display: block; color: var(--ink-faint); font-size: .67rem; margin-top: 5px;
}
.analysis-insights { display: grid; gap: 8px; }
.analysis-insight {
  display: grid; gap: 2px; border-left: 4px solid var(--cool-dark);
  padding: 6px 10px;
}
.analysis-insight-watch { border-color: #af3028; }
.analysis-insight strong { font-size: .78rem; }
.analysis-insight span { color: var(--ink-muted); font-size: .72rem; }
.fatigue-legend {
  display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 12px 2px 8px;
  color: var(--ink-muted); font-size: .7rem;
}
.fatigue-legend span { display: flex; align-items: center; gap: 6px; }
.fatigue-legend i {
  display: inline-block; width: 11px; height: 11px; border-radius: 2px;
}
.fatigue-legend .fatigue-line-key {
  width: 18px; height: 3px; border-radius: 0; background: #fff8e9;
  box-shadow: 0 0 0 1px #172a45;
}
.fatigue-chart-scroll {
  overflow-x: auto; border-radius: 8px; background: #172a45;
}
.fatigue-svg { display: block; width: 100%; min-width: 820px; height: auto; }
.fatigue-late-zone { fill: rgba(175, 48, 40, .1); }
.fatigue-grid-line { stroke: rgba(190, 211, 231, .2); stroke-width: 1; }
.fatigue-axis-label, .fatigue-bf-label {
  fill: #9fb8d2; font-size: 11px; font-family: var(--font-body);
}
.fatigue-checkpoint {
  stroke: #af3028; stroke-width: 1.5; stroke-dasharray: 5 5;
}
.fatigue-checkpoint-label {
  fill: #f0b9b4; font-size: 11px; font-weight: 800;
  font-family: var(--font-body); letter-spacing: .6px;
}
.fatigue-bar { rx: 3px; }
.fatigue-value-label, .fatigue-rate-label, .fatigue-bin-label {
  fill: #fff8e9; font-family: var(--font-body); font-weight: 800;
}
.fatigue-value-label { font-size: 10px; }
.fatigue-rate-label { font-size: 12px; }
.fatigue-bin-label { font-size: 13px; }
.fatigue-rate-line {
  fill: none; stroke: #fff8e9; stroke-width: 3; stroke-linejoin: round;
}
.fatigue-rate-point {
  fill: #172a45; stroke: #fff8e9; stroke-width: 3;
}
.fatigue-coaching-read {
  display: grid; grid-template-columns: auto 1fr; gap: 14px;
  align-items: start; background: #f5efe4; border-radius: 8px;
  padding: 13px 15px; margin-top: 12px;
}
.fatigue-coaching-read strong {
  background: #af3028; border-radius: 5px; color: #fff;
  font-size: .68rem; letter-spacing: .7px; padding: 7px 9px;
  text-transform: uppercase;
}
.fatigue-coaching-read p {
  color: var(--ink); font-size: .78rem; line-height: 1.5; margin: 1px 0 0;
}

/* Customer player hub */
.player-hub-section {
  margin-bottom: 38px; padding-bottom: 30px; border-bottom: 1px solid var(--navy-600);
}
.player-hub-heading {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 16px; margin: 0 0 16px;
}
.player-hub-heading h2 { margin: 2px 0 0; }
.my-player-list { margin-bottom: 18px; }
.my-team-list, .my-player-roster { display: grid; gap: 12px; }
.my-team-list {
  grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 18px;
}
.my-team-card {
  border-left: 4px solid var(--carolina); background: #fff;
  border-radius: var(--radius); padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.my-team-card h3 { margin: 3px 0; }
.my-team-card p { margin: 0; color: var(--ink-muted); }
.my-player-card {
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  background: #fff; border: 1px solid var(--navy-600);
  border-radius: var(--radius); padding: 16px 18px;
}
.my-player-card h3 { margin: 0; }
.my-player-card p { margin: 4px 0 0; color: var(--ink-muted); }
.my-player-card .access-label {
  color: var(--cool-dark); font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .3px;
}
.my-player-card .profile-scope-actions { justify-content: flex-end; }
.my-player-profile {
  scroll-margin-top: 18px; background: #f7f9fb; border-radius: var(--radius);
  padding: 18px; margin-top: 26px; border: 1px solid var(--navy-600);
}
.player-detail-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 18px; padding: 2px 4px 16px;
}
.player-detail-toolbar h2 { margin: 2px 0 0; }
.player-detail-toolbar .eyebrow { margin: 0; }
.report-open-button {
  margin-top: 10px; padding: 6px 14px; font-size: .8rem;
}

/* Roster-first customer statistics */
.stats-toolbar {
  display: grid; grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr);
  gap: 16px; align-items: end; background: #fff;
  border: 1px solid var(--navy-600); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow-sm);
}
.stats-filter { display: grid; gap: 6px; }
.stats-filter > span {
  color: var(--ink-muted); font-size: .75rem; font-weight: 700;
  letter-spacing: .35px; text-transform: uppercase;
}
.stats-filter select, .stats-filter input {
  width: 100%; min-height: 42px; border: 1px solid var(--navy-600);
  border-radius: var(--radius-sm); background: #fff; color: var(--ink);
  font: inherit; padding: 9px 11px;
}
.stats-filter select:focus, .stats-filter input:focus,
.stats-view-button:focus-visible, .stats-sort-button:focus-visible,
.stats-player-link:focus-visible, .stats-player-row:focus-visible {
  outline: 3px solid rgba(85, 164, 215, .3); outline-offset: 2px;
}
.stats-view-toggle {
  display: grid; grid-template-columns: 1fr 1fr; min-width: 230px;
  border: 1px solid var(--navy-600); border-radius: var(--radius-sm);
  overflow: hidden;
}
.stats-view-button {
  min-height: 42px; border: 0; background: var(--navy-900);
  color: var(--ink-muted); cursor: pointer; font: inherit; font-weight: 700;
  padding: 8px 18px;
}
.stats-view-button + .stats-view-button {
  border-left: 1px solid var(--navy-600);
}
.stats-view-button.active {
  background: var(--carolina); color: #fff;
}
.stats-table-heading {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; margin: 17px 2px 8px;
}
.stats-table-heading p { margin: 0; }
#stats-table-summary { color: var(--ink); font-weight: 700; }
.stats-sort-hint { color: var(--ink-faint); font-size: .78rem; }
.stats-table-wrap {
  overflow: auto; max-height: 68vh; background: #fff;
  border: 1px solid var(--navy-600); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.stats-roster-table {
  width: 100%; min-width: 1180px; border-collapse: separate;
  border-spacing: 0; color: var(--ink); font-size: .84rem;
}
.stats-roster-table th {
  position: sticky; top: 0; z-index: 3; background: var(--navy-900);
  border-bottom: 2px solid var(--navy-600); white-space: nowrap;
  text-align: right;
}
.stats-roster-table th:first-child,
.stats-roster-table th:nth-child(2) { text-align: left; }
.stats-sort-button {
  width: 100%; border: 0; background: transparent; color: var(--ink-muted);
  cursor: pointer; font: inherit; font-size: .72rem; font-weight: 700;
  letter-spacing: .3px; padding: 12px 9px; text-align: inherit;
  text-transform: uppercase;
}
.stats-sort-button:hover { color: var(--cool-dark); }
.stats-roster-table td {
  border-bottom: 1px solid var(--navy-600); padding: 11px 9px;
  text-align: right; white-space: nowrap; background: #fff;
}
.stats-roster-table tbody tr:last-child td { border-bottom: 0; }
.stats-roster-table tbody tr:hover td,
.stats-roster-table tbody tr:focus td { background: #f1f7fb; }
.stats-roster-table .stats-total-row th,
.stats-roster-table .stats-total-row td {
  position: static; z-index: 1;
  border-top: 0; border-bottom: 2px solid var(--navy-600);
  background: #e8f1f8; color: var(--ink); font-weight: 800;
  padding: 11px 9px; text-align: right; white-space: nowrap;
}
.stats-roster-table .stats-total-row th:first-child,
.stats-roster-table .stats-total-row td:nth-child(2) { text-align: left; }
.stats-roster-table .stats-total-row th.stats-player-column {
  position: sticky; left: 0; top: auto; z-index: 2;
  background: #dbe9f3;
}
.stats-player-row { cursor: pointer; }
.stats-roster-table .stats-player-column {
  position: sticky; left: 0; z-index: 2; min-width: 190px;
  text-align: left;
}
.stats-roster-table th.stats-player-column {
  z-index: 4; background: var(--navy-900);
}
.stats-roster-table .stats-team-column {
  min-width: 170px; text-align: left;
}
.stats-player-link {
  display: block; border: 0; background: transparent; color: var(--cool-dark);
  cursor: pointer; font: inherit; font-weight: 700; padding: 0; text-align: left;
}
.stats-player-link:hover { text-decoration: underline; }
.stats-player-identity, .stats-team-season {
  display: block; color: var(--ink-faint); font-size: .69rem;
  font-weight: 500; margin-top: 3px;
}
.profile-game-logs { overflow: hidden; }
.game-log-block + .game-log-block { margin-top: 22px; }
.game-log-block h5 { margin: 14px 0 8px; color: var(--ink); }
.game-log-table {
  width: 100%; min-width: 900px; border-collapse: collapse; font-size: .8rem;
}
.game-log-table th {
  color: var(--ink-muted); background: var(--navy-900);
  font-size: .68rem; letter-spacing: .3px; padding: 9px 8px;
  text-align: right; text-transform: uppercase; white-space: nowrap;
}
.game-log-table th:first-child, .game-log-table th:nth-child(2),
.game-log-table th:nth-child(3), .game-log-table td:first-child,
.game-log-table td:nth-child(2), .game-log-table td:nth-child(3) {
  text-align: left;
}
.game-log-table td {
  border-bottom: 1px solid var(--navy-600); padding: 9px 8px;
  text-align: right; white-space: nowrap;
}
.external-profile-list { display: grid; gap: 8px; margin-top: 12px; }
.external-profile-list > a, .external-profile-list > div {
  display: flex; justify-content: space-between; gap: 12px;
  border: 1px solid var(--navy-600); border-radius: var(--radius-sm);
  background: var(--navy-900); padding: 11px 13px;
}
.external-profile-list span { color: var(--ink-muted); font-size: .8rem; }
}
#cg-wrap { overflow-x: auto; }
.access-workspace-panel, .group-workspace-panel { scroll-margin-top: 16px; }
.group-picker-row { max-width: 520px; margin-top: 12px; }
.access-customer-header {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: var(--navy-900); border-left: 4px solid var(--carolina);
  border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 14px;
}
.access-customer-header .eyebrow { margin: 0; }
.access-customer-header h4 { margin: 2px 0 0; color: var(--ink); font-size: 1.2rem; }
.access-customer-header p:last-child { margin: 3px 0 0; color: var(--ink-muted); }
.access-columns {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px; align-items: start;
}
.access-card {
  background: #fff; border: 1px solid var(--navy-600);
  border-radius: var(--radius); padding: 16px;
}
.access-card h5 { margin: 0 0 5px; font-size: 1rem; color: var(--ink); }
.access-card > label {
  display: block; margin-top: 12px; font-size: .85rem; color: var(--ink-muted);
}
.access-card > label input,
.access-card > label select {
  width: 100%; margin-top: 4px; padding: 9px 11px;
  border: 1px solid var(--navy-600); border-radius: var(--radius-sm);
  background: #fff; font: inherit;
}
.effective-access-card { margin-top: 14px; }
.customer-team-picker {
  grid-template-columns: minmax(0, 1fr) auto; align-items: flex-end;
}
.customer-team-picker .btn { margin-bottom: 1px; }
.customer-player-list { margin-top: 12px; display: grid; gap: 8px; }
.customer-player-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  border: 1px solid var(--navy-600); border-radius: var(--radius-sm);
  background: #fff; padding: 10px 12px;
}
.customer-player-row p {
  margin: 3px 0 0; color: var(--ink-muted); font-size: .8rem;
}
.effective-player-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px; margin-top: 12px;
}
.effective-player-chip {
  display: flex; flex-direction: column; gap: 3px;
  background: var(--navy-900); border: 1px solid var(--navy-600);
  border-radius: var(--radius-sm); padding: 9px 11px;
}
.effective-player-chip strong { color: var(--ink); font-size: .88rem; }
.effective-player-chip span { color: var(--cool-dark); font-size: .72rem; }

@media (max-width: 760px) {
  .profile-header { display: block; padding: 16px; }
  .profile-sources { justify-content: flex-start; margin-top: 12px; }
  .profile-metric {
    flex-basis: calc(50% - 1px); min-width: 135px;
  }
  .profile-section { padding: 14px; }
  .profile-collapsible > summary { padding: 14px; }
  .profile-collapsible-content { padding: 8px; }
  .analysis-title-row { display: block; }
  .analysis-sample { margin-top: 7px; text-align: left; }
  .bip-filters { grid-template-columns: 1fr; }
  .bip-summary-row { align-items: flex-start; flex-direction: column; }
  .contact-comparison-grid { grid-template-columns: 1fr; }
  .fatigue-coaching-read { grid-template-columns: 1fr; }
  .fatigue-coaching-read strong { justify-self: start; }
  .my-player-card { display: block; }
  .my-player-card .profile-scope-actions { justify-content: flex-start; }
  .my-player-profile { padding: 8px; }
  .player-detail-toolbar {
    align-items: flex-start; padding: 8px 6px 14px;
  }
  .stats-toolbar { grid-template-columns: 1fr; gap: 12px; }
  .stats-view-toggle { min-width: 0; }
  .stats-table-heading { align-items: flex-start; }
  .stats-sort-hint { display: none; }
  .stats-table-wrap { max-height: none; }
  .stats-roster-table { min-width: 1050px; }
  .stats-roster-table .stats-player-column { min-width: 160px; }
  .my-team-list { grid-template-columns: 1fr; }
  .access-columns { grid-template-columns: 1fr; }
  .access-card { padding: 13px; }
  .customer-team-picker { grid-template-columns: 1fr; }
  .customer-player-row { align-items: flex-start; }
}
@media (max-width: 420px) {
  .profile-metric {
    flex-basis: calc(50% - 1px); min-width: 125px;
    min-height: 76px; padding: 11px;
  }
  .profile-metric-value { font-size: 1.5rem; }
}

/* Interactive report chat */
.chat-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 12px; }
.chat-col { display: flex; flex-direction: column; }
.chat-log { border: 1px solid var(--navy-600); border-radius: var(--radius-sm);
  background: #fff; padding: 12px; height: 320px; overflow-y: auto; margin-bottom: 10px; }
.chat-msg { margin-bottom: 12px; }
.chat-msg .who { display: block; font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: .5px; color: var(--ink-faint); margin-bottom: 2px; }
.chat-msg.user .txt { display: inline-block; background: var(--carolina); color: #fff;
  border-radius: 10px; padding: 8px 12px; }
.chat-msg.assistant .txt { display: inline-block; background: var(--navy-800);
  color: var(--ink); border-radius: 10px; padding: 8px 12px; }
.chat-input { display: flex; gap: 8px; align-items: flex-end; }
.chat-input textarea { flex: 1; padding: 9px 11px; border: 1px solid var(--navy-600);
  border-radius: var(--radius-sm); font-family: inherit; }
.chat-preview { display: flex; flex-direction: column; }
.chat-preview .hint { margin-bottom: 6px; }
.chat-preview .report-frame { height: 380px; }
@media(max-width:760px){ .chat-wrap { grid-template-columns: 1fr; } }

/* ============================================================
   Customer-first landing page
   ============================================================ */
.home-hero { padding: 72px 0 70px; }
.home-hero::after { opacity: .65; }
.home-hero-grid {
  position: relative; z-index: 1; display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: 52px; align-items: center;
}
.home-hero-copy .lead { max-width: 690px; }
.home-trust-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.home-trust-row span {
  padding: 6px 10px; border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px; color: rgba(255,255,255,.84); font-size: .75rem;
}
.hero-player-card {
  background: rgba(255,255,255,.97); color: var(--ink);
  border: 1px solid rgba(255,255,255,.55); border-radius: 22px;
  box-shadow: 0 24px 60px rgba(9,31,50,.3); padding: 22px;
}
.hero-player-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 18px;
}
.hero-player-head h2 { color: var(--ink); font-size: 1.65rem; margin: 5px 0 2px; }
.hero-player-head p { margin: 0; font-size: .82rem; color: var(--ink-muted); }
.sample-label {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--carolina-deep); font-size: .7rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
}
.sample-label::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--carolina);
}
.hero-ops {
  min-width: 82px; background: var(--ink); color: #fff;
  border-radius: 12px; padding: 9px 11px; text-align: center;
  font-family: var(--font-head); font-size: 1.5rem; line-height: 1;
}
.hero-ops span {
  display: block; margin-top: 5px; color: #bfe4fb; font-family: var(--font-body);
  font-size: .63rem; letter-spacing: .08em;
}
.hero-metric-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px; margin: 20px 0 12px;
}
.hero-metric-row div {
  background: var(--navy-900); border: 1px solid var(--navy-600);
  border-radius: 10px; padding: 12px 8px; text-align: center;
}
.hero-metric-row strong {
  display: block; color: var(--ink); font-family: var(--font-head); font-size: 1.35rem;
}
.hero-metric-row span { color: var(--ink-faint); font-size: .67rem; letter-spacing: .08em; }
.hero-insight {
  border-left: 4px solid var(--good); background: #edf9f2;
  border-radius: 10px; padding: 13px 14px;
}
.hero-insight > span {
  display: block; color: #147743; font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
}
.hero-insight strong { display: block; margin: 4px 0; font-size: .92rem; }
.hero-insight p { margin: 0; color: var(--ink-muted); font-size: .78rem; line-height: 1.45; }

.home-path { position: relative; z-index: 2; margin-top: -25px; }
.home-path-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #fff; border: 1px solid var(--navy-600); border-radius: 16px;
  box-shadow: var(--shadow); overflow: hidden;
}
.home-path-card {
  display: flex; gap: 14px; align-items: center; padding: 19px 20px;
  border-right: 1px solid var(--navy-600); text-decoration: none;
}
.home-path-card:last-child { border-right: 0; }
.home-path-card:hover { background: var(--navy-900); text-decoration: none; }
.home-path-number {
  color: var(--carolina-deep); font-family: var(--font-head);
  font-size: 1.05rem; letter-spacing: .08em;
}
.home-path-card h2 { margin: 0; font-size: 1.1rem; color: var(--ink); }
.home-path-card p { margin: 2px 0 0; font-size: .78rem; color: var(--ink-muted); }

.home-section-head {
  max-width: none; display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 44px; align-items: end;
}
.home-section-head > p { margin: 0; font-size: .98rem; line-height: 1.7; }
.sample-profile {
  border: 1px solid var(--navy-600); border-radius: 20px;
  background: #fff; box-shadow: var(--shadow-sm); overflow: hidden;
}
.sample-profile-head {
  display: flex; justify-content: space-between; gap: 22px; align-items: center;
  background: var(--ink); color: #fff; padding: 24px 26px;
}
.sample-profile-head h3 { margin: 5px 0 2px; color: #fff; font-size: 1.45rem; }
.sample-profile-head p { margin: 0; color: rgba(255,255,255,.7); font-size: .85rem; }
.sample-profile-head .sample-label { color: #bfe4fb; }
.sample-source-badges { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.sample-source-badges span {
  border: 1px solid rgba(255,255,255,.28); border-radius: 999px;
  color: rgba(255,255,255,.84); padding: 6px 9px; font-size: .68rem;
}
.sample-stat-grid {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  border-bottom: 1px solid var(--navy-600);
}
.sample-stat-grid > div {
  min-height: 124px; padding: 19px 16px; border-right: 1px solid var(--navy-600);
  display: flex; flex-direction: column; justify-content: center;
}
.sample-stat-grid > div:last-child { border-right: 0; }
.sample-stat-grid span {
  color: var(--ink-faint); font-size: .68rem; text-transform: uppercase;
  letter-spacing: .08em;
}
.sample-stat-grid strong {
  margin: 5px 0 2px; color: var(--ink);
  font-family: var(--font-head); font-size: 1.75rem;
}
.sample-stat-grid small { color: var(--ink-muted); font-size: .7rem; }
.sample-intel-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 18px;
}
.intel-callout { border-radius: 12px; padding: 17px 18px; }
.intel-callout.positive { background: #edf9f2; border-left: 4px solid var(--good); }
.intel-callout.action { background: #fff3f1; border-left: 4px solid var(--barrel); }
.intel-callout > span {
  color: var(--ink-faint); font-size: .67rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .09em;
}
.intel-callout h4 { margin: 6px 0 4px; color: var(--ink); font-size: 1rem; }
.intel-callout p { margin: 0; font-size: .82rem; line-height: 1.5; }

.home-report-section { background: #f8fbfe; border-block: 1px solid var(--navy-600); }
.home-report-grid {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(480px, 1.2fr);
  gap: 58px; align-items: center;
}
.home-report-copy .lead { font-size: 1.05rem; line-height: 1.7; }
.home-check-list { list-style: none; margin: 22px 0 26px; padding: 0; }
.home-check-list li {
  position: relative; padding: 8px 0 8px 29px; color: var(--ink-muted);
}
.home-check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 7px;
  color: var(--good); font-weight: 800;
}
.report-paper {
  background: #fffdf7; border: 1px solid #e6d5b9; border-radius: 16px;
  box-shadow: 0 22px 55px rgba(60,43,20,.14); overflow: hidden;
}
.report-paper > header {
  display: flex; justify-content: space-between; gap: 18px; align-items: flex-start;
  background: #142744; color: #fff; padding: 22px 24px;
}
.report-paper > header span:first-child {
  color: #d9b66c; font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
}
.report-paper h3 { margin: 4px 0 0; color: #fff; font-size: 1.4rem; }
.report-private {
  border: 1px solid rgba(255,255,255,.35); border-radius: 999px;
  padding: 6px 9px; color: rgba(255,255,255,.8); font-size: .65rem;
  text-transform: uppercase; letter-spacing: .07em; white-space: nowrap;
}
.report-scoreline {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid #e6d5b9;
}
.report-scoreline div { padding: 18px; text-align: center; border-right: 1px solid #e6d5b9; }
.report-scoreline div:last-child { border-right: 0; }
.report-scoreline strong {
  display: block; color: #142744; font-family: var(--font-head); font-size: 1.6rem;
}
.report-scoreline span { color: #786a57; font-size: .67rem; letter-spacing: .08em; }
.report-paper > section { padding: 20px 24px 8px; }
.report-paper > section.report-action {
  margin: 12px 24px 20px; padding: 15px 17px; background: #fff0ed;
  border-left: 4px solid var(--barrel); border-radius: 9px;
}
.report-kicker {
  color: #a4762c; font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .09em;
}
.report-paper h4 { margin: 5px 0; color: #142744; font-size: 1.02rem; }
.report-paper p { margin: 0; color: #5e5549; font-size: .83rem; line-height: 1.55; }
.report-paper > footer {
  background: #142744; color: rgba(255,255,255,.7); padding: 11px 24px;
  font-size: .68rem; letter-spacing: .04em;
}

.home-swing-section { background: var(--navy-900); }
.swing-preview {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr);
  gap: 22px; align-items: stretch;
}
.swing-preview-video,
.swing-feedback-preview {
  background: #fff; border: 1px solid var(--navy-600);
  border-radius: 18px; box-shadow: var(--shadow-sm); padding: 18px;
}
.swing-preview-stage {
  position: relative; min-height: 315px; overflow: hidden; border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(13,37,56,.08), rgba(13,37,56,.22)),
    linear-gradient(135deg, #b9d7e8 0 46%, #d9c9a6 46% 70%, #6b9f65 70%);
}
.swing-preview-stage::before,
.swing-preview-stage::after {
  content: ""; position: absolute; left: 50%; background: rgba(255,255,255,.7);
}
.swing-preview-stage::before {
  width: 150px; height: 150px; bottom: -72px;
  transform: translateX(-50%) rotate(45deg);
  border: 4px solid rgba(255,255,255,.72); background: transparent;
}
.swing-preview-stage::after {
  width: 2px; height: 220px; bottom: -8px; transform: translateX(-50%);
}
.swing-player-mark {
  position: absolute; z-index: 2; left: 46%; top: 23%;
  width: 30px; height: 30px; border-radius: 50%; background: #142744;
  box-shadow: 10px 40px 0 10px #142744;
}
.swing-player-mark::before {
  content: ""; position: absolute; left: 20px; top: 43px;
  width: 82px; height: 8px; background: #142744;
  border-radius: 999px; transform: rotate(-30deg); transform-origin: left center;
}
.swing-player-mark::after {
  content: ""; position: absolute; left: 88px; top: 0;
  width: 7px; height: 118px; background: #d79b4a;
  border-radius: 999px; transform: rotate(-54deg);
}
.swing-frame-count {
  position: absolute; left: 12px; bottom: 12px; z-index: 3;
  background: rgba(10,27,43,.72); color: #fff; border-radius: 7px;
  padding: 6px 8px; font-size: .7rem;
}
.swing-play-mark {
  position: absolute; z-index: 3; inset: 50% auto auto 50%;
  transform: translate(-50%,-50%); display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255,255,255,.9); color: var(--carolina-deep);
  font-size: 1.2rem; box-shadow: 0 8px 24px rgba(9,31,50,.22);
}
.swing-timeline {
  position: relative; height: 5px; margin: 16px 5px 18px;
  border-radius: 999px; background: var(--navy-600);
}
.swing-timeline span {
  display: block; width: 62%; height: 100%; border-radius: inherit;
  background: var(--carolina);
}
.swing-timeline i {
  position: absolute; top: 50%; width: 11px; height: 11px; border-radius: 50%;
  background: #fff; border: 3px solid var(--carolina);
  transform: translate(-50%,-50%);
}
.swing-timeline i:nth-of-type(1) { left: 22%; }
.swing-timeline i:nth-of-type(2) { left: 47%; }
.swing-timeline i:nth-of-type(3) { left: 74%; }
.swing-frame-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.swing-frame-strip > div {
  border: 1px solid var(--navy-600); border-radius: 9px; overflow: hidden;
  background: var(--navy-900);
}
.swing-frame-strip strong {
  display: block; padding: 6px 7px; color: var(--ink); font-size: .7rem;
}
.frame-art {
  position: relative; display: block; height: 58px;
  background: linear-gradient(145deg, #b7d6e8 0 52%, #729c68 52%);
}
.frame-art::before {
  content: ""; position: absolute; width: 11px; height: 11px; border-radius: 50%;
  background: #142744; left: 43%; top: 15%;
  box-shadow: 4px 16px 0 4px #142744;
}
.frame-art::after {
  content: ""; position: absolute; width: 4px; height: 44px;
  border-radius: 999px; background: #d79b4a; left: 63%; top: 3px;
  transform-origin: center;
}
.frame-art.load::after { transform: rotate(-32deg); }
.frame-art.turn::after { transform: rotate(-58deg); }
.frame-art.contact::after { transform: rotate(-83deg); }
.frame-art.finish::after { transform: rotate(-118deg); }
.swing-feedback-preview {
  display: flex; flex-direction: column; justify-content: center;
}
.feedback-tabs {
  display: flex; gap: 8px; padding-bottom: 15px; margin-bottom: 18px;
  border-bottom: 1px solid var(--navy-600);
}
.feedback-tabs span {
  border: 1px solid var(--navy-600); border-radius: 999px;
  padding: 7px 10px; color: var(--ink-muted); font-size: .72rem;
}
.feedback-tabs span.active {
  background: var(--carolina); border-color: var(--carolina); color: #fff;
}
.swing-feedback-preview h3 { margin: 8px 0; color: var(--ink); font-size: 1.3rem; }
.swing-feedback-preview > p { line-height: 1.6; }
.feedback-priority {
  background: #fff3f1; border-left: 4px solid var(--barrel);
  border-radius: 10px; padding: 14px 15px; margin: 8px 0 20px;
}
.feedback-priority span {
  display: block; color: var(--barrel-dark); font-size: .67rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
}
.feedback-priority strong { display: block; margin: 5px 0 3px; }
.feedback-priority p { margin: 0; font-size: .8rem; line-height: 1.5; }
.home-cta .btn-row { justify-content: center; }
.footer-grid.footer-grid-4 { grid-template-columns: 2fr repeat(3, 1fr); }

@media (max-width: 960px) {
  .home-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-player-card { max-width: 650px; }
  .sample-stat-grid { grid-template-columns: repeat(3, 1fr); }
  .sample-stat-grid > div:nth-child(3) { border-right: 0; }
  .sample-stat-grid > div:nth-child(-n+3) {
    border-bottom: 1px solid var(--navy-600);
  }
  .home-report-grid { grid-template-columns: 1fr; }
  .report-paper { max-width: 720px; }
  .swing-preview { grid-template-columns: 1fr; }
  .footer-grid.footer-grid-4 { grid-template-columns: 2fr 1fr 1fr; }
}
@media (max-width: 720px) {
  .home-hero { padding: 58px 0 50px; }
  .home-path { margin-top: 18px; }
  .home-path-grid { grid-template-columns: 1fr; }
  .home-path-card { border-right: 0; border-bottom: 1px solid var(--navy-600); }
  .home-path-card:last-child { border-bottom: 0; }
  .home-section-head { grid-template-columns: 1fr; gap: 12px; }
  .sample-profile-head { display: block; }
  .sample-source-badges { margin-top: 15px; justify-content: flex-start; }
  .sample-intel-grid { grid-template-columns: 1fr; }
  .swing-preview-stage { min-height: 255px; }
  .footer-grid.footer-grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .hero-player-head { display: block; }
  .hero-ops { margin-top: 14px; }
  .sample-stat-grid { grid-template-columns: 1fr 1fr; }
  .sample-stat-grid > div {
    border-right: 1px solid var(--navy-600);
    border-bottom: 1px solid var(--navy-600);
  }
  .sample-stat-grid > div:nth-child(even) { border-right: 0; }
  .sample-stat-grid > div:nth-last-child(-n+2) { border-bottom: 0; }
  .report-scoreline div { padding: 13px 7px; }
  .report-paper > header { display: block; }
  .report-private { display: inline-block; margin-top: 12px; }
  .swing-preview-video, .swing-feedback-preview { padding: 12px; }
  .swing-preview-stage { min-height: 215px; }
  .swing-frame-strip { grid-template-columns: 1fr 1fr; }
  .footer-grid.footer-grid-4 { grid-template-columns: 1fr; }
}

/* ===== pitcher fatigue story (3 aligned panels) ===== */
.fx-story { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.fx-panel { border: 1px solid #dce4eb; border-radius: 12px; padding: 12px 14px 6px; background: #fff; }
.fx-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.fx-head h5 { margin: 0; font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: .04em; font-size: .9rem; color: #0D1B2A; }
.fx-head span { font-size: .78rem; color: #627184; }
.fx-legend { display: flex; gap: 14px; flex-wrap: wrap; margin: 6px 0 2px; font-size: .74rem; color: #627184; }
.fx-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.fx-k-strike { background: #1f3b63; } .fx-k-fps { background: #c9922f; }
.fx-k-free { background: #D62828; }
.fx-k-ld { background: #D62828; } .fx-k-fb { background: #c9b487; } .fx-k-gb { background: #2f7d46; }
.fx-scroll { overflow-x: auto; }
.fx-svg { width: 100%; min-width: 520px; height: auto; display: block; }
.fx-late { fill: rgba(178,59,59,0.06); }
.fx-check { stroke: #D62828; stroke-width: 1; stroke-dasharray: 3 3; opacity: .6; }
.fx-checklbl { fill: #D62828; font-size: 9px; font-family: "Oswald", sans-serif; letter-spacing: .06em; }
.fx-ref { stroke: #9aa7b4; stroke-width: 1; stroke-dasharray: 4 4; opacity: .8; }
.fx-grid { stroke: #dce4eb; stroke-width: 1; }
.fx-reflbl { fill: #8a97a4; font-size: 9px; }
.fx-strike { fill: #1f3b63; } .fx-fps { fill: #c9922f; } .fx-free { fill: #D62828; }
.fx-gb { fill: #2f7d46; } .fx-fb { fill: #c9b487; } .fx-ld { fill: #D62828; }
.fx-empty { fill: #eef3f7; }
.fx-barval { fill: #45535f; font-size: 9px; text-anchor: middle; font-variant-numeric: tabular-nums; }
.fx-ldval { fill: #fff; font-size: 9px; text-anchor: middle; font-weight: 700; }
.fx-binlbl { fill: #0D1B2A; font-size: 11px; text-anchor: middle; font-family: "Oswald", sans-serif; }
.fx-binsub { fill: #8a97a4; font-size: 9px; text-anchor: middle; }
