/* 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-card[hidden], .auth-card [hidden] { display: none !important; }
#logged-in > div .btn + .btn { margin-top: 12px; }
#logged-in #btn-signout { margin-top: 24px; }
#logged-in details { margin-top: 20px; }
#logged-in summary { cursor: pointer; }
.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(auto-fit, minmax(210px, 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; }
/* `color: #fff` on .quick-card is INHERITED, and styles.css has a bare
   `p { color: var(--ink-muted) }` that matches this element directly — a
   direct match always beats an inherited value, so the subtitle rendered dark
   slate on the dark navy gradient at 1.65:1. State the colour explicitly. */
.quick-card p { margin: 0; font-size: 0.82rem; opacity: 0.9; color: #fff; }
.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); }
/* Setup that is incomplete rather than failed — needs to catch the eye without
   reading as an error, so it uses the warm accent, not the stitch red. */
.badge-status.warn { color: var(--heat); border-color: var(--heat); }

/* 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; }
/* Scope pickers: a club can carry a dozen team-seasons, so wrap into columns
   and cap the height rather than pushing the Save button off the panel. */
.tenant-team-picks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0 18px;
  max-height: 260px;
  overflow-y: auto;
  margin: 6px 0 4px;
  padding: 4px 2px;
  border: 1px solid var(--navy-600);
  border-radius: 8px;
}
.tenant-team-picks .tenant-check { margin: 6px 0; }
/* Starting a season is the rarer action next to attaching an existing team, so
   it stays collapsed rather than competing with the common path. */
.tenant-newseason { margin-top: 10px; border-top: 1px dashed var(--navy-600); padding-top: 8px; }
.tenant-newseason summary { cursor: pointer; font-size: 0.86rem; color: var(--cool); }
.tenant-newseason .field-row { margin-top: 8px; }
.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;
}
/* Sits under the sample line in each section header. Deliberately quiet —
   it is a per-section action, not the page's primary control. */
.profile-card-export {
  display: block; margin: 6px 0 0 auto; padding: 5px 11px;
  border: 1px solid var(--navy-600); border-radius: 7px;
  background: #fff; color: var(--carolina-deep);
  font: inherit; font-size: .68rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; cursor: pointer; white-space: nowrap;
}
.profile-card-export:hover:not(:disabled) {
  border-color: var(--carolina); background: var(--navy-800);
}
.profile-card-export:disabled { opacity: .6; cursor: default; }

/* ---------- Situational hitting ----------
   The splits panel is the one place the product's own name shows up as data:
   "Two outs" IS Two Out Barrels. It rendered as four rows of an admin table,
   which read like a database dump of the thing the company is named after. */
.situational-panel { display: grid; gap: 16px; }
.sit-actions { display:flex; justify-content:flex-end; }
.sit-actions:empty { display:none; }
.sit-actions .profile-card-export { margin:0; min-height:42px; padding:10px 16px; }
@media(max-width:640px) {
  .sit-actions .profile-card-export { width:100%; min-height:44px; }
}

.sit-head {
  display: flex; flex-wrap: wrap; align-items: flex-start;
  justify-content: space-between; gap: 18px;
}
.sit-headings { min-width: min(260px, 100%); }
.sit-headings h4 {
  margin: 4px 0 6px; font-family: var(--font-head);
  font-size: clamp(1.5rem, 3.4vw, 2.1rem); line-height: 1;
  letter-spacing: .01em; text-transform: uppercase; color: var(--header-bg);
}
.sit-headings .hint { margin: 0; }

.sit-eyebrow {
  display: flex; align-items: center; gap: 7px; margin: 0;
  color: var(--carolina-deep); font-size: .7rem; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase;
}
.sit-glyph { width: 1.15em; height: 1.15em; display: block; }
.sit-eyebrow .sit-glyph { width: 15px; height: 15px; }

/* Top split callout */
.sit-top {
  position: relative; flex: 0 1 auto; min-width: 260px;
  margin-top: 10px; padding: 20px 20px 16px;
  border: 2px solid var(--barrel); border-radius: var(--radius);
  background: var(--navy-700); box-shadow: var(--shadow-sm);
}
.sit-top-flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 5px 16px; border-radius: 999px;
  background: var(--header-bg); color: #fff;
  font-size: .64rem; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase;
}
.sit-top-flag b { color: var(--barrel); font-size: .8rem; line-height: 1; }
.sit-top-body { display: flex; align-items: center; gap: 16px; }
.sit-top-badge {
  display: grid; place-items: center; width: 46px; height: 46px;
  flex: 0 0 auto; border-radius: 50%;
  background: color-mix(in srgb, var(--barrel) 12%, #fff);
  color: var(--barrel);
}
.sit-top-badge .sit-glyph { width: 24px; height: 24px; }
.sit-top-read { display: grid; gap: 2px; min-width: 0; }
.sit-top-label {
  color: var(--ink); font-family: var(--font-head); font-size: .95rem;
  letter-spacing: .04em; text-transform: uppercase;
}
.sit-top-avg {
  color: var(--barrel); font-family: var(--font-head);
  font-size: 2.5rem; line-height: .95;
}
.sit-top-line {
  margin-left: auto; padding-left: 16px;
  border-left: 1px solid var(--navy-600);
  color: var(--ink); font-family: var(--font-head); font-size: 1.15rem;
  letter-spacing: .02em; white-space: nowrap;
}

/* Split table */
.sit-table {
  border: 1px solid var(--navy-600); border-radius: var(--radius);
  background: var(--navy-700); padding: 6px 10px 10px;
}
/* The header and the rows are separate grid containers, so every column has to
   resolve to the same width from the template ALONE. A content-sized `auto`
   track does not: it sizes to "LINE" in the header and to "7-FOR-27" in a row,
   and the two drift apart. Fixed and fr tracks only. */
.sit-thead, .sit-row {
  display: grid; align-items: center; gap: 14px;
  grid-template-columns: 40px minmax(120px, 1.1fr) minmax(80px, 1.5fr)
    92px 74px;
}
/* The transparent border matches .sit-row's, so both grids get an identical
   content box under border-box sizing. Without it the row is 2px narrower and
   starts 1px right, so the fr tracks resolve differently and the columns drift
   away from the headings that name them. */
.sit-thead {
  padding: 10px 8px; border: 1px solid transparent;
  border-bottom: 1px solid var(--navy-600);
  color: var(--carolina-deep); font-size: .66rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
}
.sit-thead span:first-child { grid-column: 1 / 4; }
.sit-thead span:nth-child(2),
.sit-row .sit-line { text-align: left; }
.sit-thead span:last-child, .sit-row .sit-avg { text-align: center; }

.sit-row {
  padding: 10px 8px; border-radius: 10px;
  border: 1px solid transparent;
}
.sit-row + .sit-row { border-top-color: var(--navy-800); }
.sit-badge {
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 50%; border: 1.5px solid var(--carolina);
  color: var(--carolina-deep);
}
.sit-badge .sit-glyph { width: 18px; height: 18px; }
.sit-name { color: var(--ink); font-weight: 600; }
.sit-bar {
  display: block; height: 9px; border-radius: 999px;
  background: var(--navy-800); overflow: hidden;
}
.sit-bar i {
  display: block; height: 100%; border-radius: inherit;
  background: var(--carolina-dark);
}
.sit-line {
  color: var(--ink-muted); font-family: var(--font-head);
  font-size: 1.02rem; letter-spacing: .02em; white-space: nowrap;
}
/* The accent is its own rounded bar, not a border-right and not an inset
   shadow. Both of those are clipped by the corner radius, so a 4px accent on
   an 8px-rounded chip bows into a crescent that reads as a stray parenthesis
   sitting beside the number. */
.sit-avg {
  position: relative; padding: 7px 15px 7px 9px;
  border: 1px solid var(--navy-600); border-radius: 8px;
  background: var(--navy-700); color: var(--ink);
  font-family: var(--font-head); font-size: 1.3rem; line-height: 1;
}
.sit-avg::after {
  content: ""; position: absolute; right: 5px; top: 6px; bottom: 6px;
  width: 4px; border-radius: 999px; background: var(--carolina-dark);
}

/* The leader carries the brand accent, so the eye lands on it in the table
   and in the callout above without reading a single number twice. */
.sit-row.is-top {
  border-color: color-mix(in srgb, var(--barrel) 45%, #fff);
  background: color-mix(in srgb, var(--barrel) 6%, #fff);
}
.sit-row.is-top .sit-badge {
  border-color: var(--barrel); color: var(--barrel);
}
.sit-row.is-top .sit-name { font-weight: 700; }
.sit-row.is-top .sit-bar i { background: var(--barrel); }
.sit-row.is-top .sit-line { color: var(--ink); }
.sit-row.is-top .sit-avg { color: var(--barrel); }
.sit-row.is-top .sit-avg::after { background: var(--barrel); }

@media (max-width: 720px) {
  .sit-top { min-width: 0; width: 100%; }
  .sit-top-line { margin-left: auto; }

  /* Five columns will not fit a phone. Squeezing them turned "Runners in
     scoring position" into a four-line block with the split line wrapped into
     the middle of it. Stack instead: name and average on the first line, the
     line underneath the name where it belongs. The column headings go with
     them — a heading that no longer sits above its column is worse than none,
     and "7-FOR-27" beside a boxed average needs no label. */
  /* Hidden from sight, kept for assistive tech. `display: none` would strip
     the column headings from the accessibility tree too, leaving "0-FOR-4" and
     ".094" announced with nothing naming them. */
  .sit-thead {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
  }
  .sit-row {
    grid-template-columns: 34px minmax(0, 1fr) 74px;
    grid-template-areas: "badge name avg" "badge line avg";
    align-items: center; gap: 2px 12px; padding: 12px 8px;
  }
  .sit-badge { grid-area: badge; align-self: center; }
  .sit-name { grid-area: name; align-self: end; }
  .sit-line { grid-area: line; align-self: start; font-size: .88rem; }
  .sit-avg { grid-area: avg; font-size: 1.15rem; text-align: center; }
  .sit-bar { display: none; }
}

.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; margin-top: 26px; min-width: 0;
}
.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-player-row.is-viewing td { background: #eef6f8; }
.stats-player-row.is-viewing .stats-player-link::after {
  content: "Viewing player card below \2193";
  display: block;
  margin-top: 4px;
  color: #8f1728;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.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-profiles, .player-evidence {
  background: transparent; border: 0; padding: 0;
}
.external-profiles > .profile-collapsible:last-child,
.player-evidence > .profile-collapsible:last-child { margin-bottom: 0; }
.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; }
.external-profile-provider { display: flex; align-items: center; gap: 9px; }
.external-profile-provider strong { color: var(--ink); }
.external-provider-logo {
  display: block; width: auto; height: 22px; max-width: 76px;
  border-radius: 3px; object-fit: contain; background: #050505;
}
.external-provider-logo.is-pg { width: 22px; }
.external-provider-logo.is-pbr { width: 61px; }
.profile-provider-heading { display:flex; align-items:center; gap:14px; min-width:0; }
.profile-provider-heading > span { min-width:0; }
.profile-provider-heading .external-provider-logo.is-summary { flex-shrink:0; height:40px; width:40px; max-width:90px; padding:5px; box-sizing:content-box; border-radius:7px; }
.profile-provider-heading .external-provider-logo.is-summary.is-pbr { width:80px; }
.profile-provider-heading .external-provider-logo.is-summary.is-digs { background:white; }
@media(max-width:600px) {
  .profile-provider-heading { gap:10px; }
  .profile-provider-heading .external-provider-logo.is-summary { height:28px; width:28px; padding:4px; }
  .profile-provider-heading .external-provider-logo.is-summary.is-pbr { width:62px; }
}
.external-snapshot {
  border: 1px solid var(--navy-600); border-radius: var(--radius-sm);
  background: var(--navy-900); margin: 0; padding: 13px;
}
.external-profiles > .external-snapshot:first-child { margin-top: 0; }
.external-snapshot header {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
.external-snapshot header a, .external-snapshot header > div {
  display: flex; gap: 8px; align-items: center;
}
.external-snapshot header > span, .external-snapshot p,
.external-metric em { color: var(--ink-muted); font-size: .75rem; }
.external-snapshot p { margin: 6px 0 0; }
.external-grade {
  border: 1px solid var(--carolina-text, #13577f); border-radius: 999px;
  background: var(--carolina-text, #13577f); color: #fff;
  font-size: .68rem; font-weight: 800; padding: 2px 7px;
}
.external-identity {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px; margin-top: 11px;
}
.external-identity-row {
  display: grid; grid-template-columns: minmax(72px, auto) minmax(0, 1fr) auto;
  gap: 8px; align-items: center; min-height: 34px; padding: 6px 8px;
  border: 1px solid var(--navy-600); border-radius: 7px; background: #fff;
}
.external-identity-row > span {
  color: var(--ink-muted); font-size: .64rem; letter-spacing: .3px;
  text-transform: uppercase;
}
.external-identity-row strong { color: var(--ink); font-size: .82rem; }
.external-override {
  border: 1px solid var(--carolina-text, #13577f); border-radius: 999px;
  background: #fff; color: var(--carolina-text, #13577f); cursor: pointer;
  font: inherit; font-size: .66rem; font-weight: 800; padding: 4px 8px;
}
.external-override:hover { background: var(--navy-800); }
.external-override:disabled { cursor: default; opacity: .68; }
.external-ranks { display: flex; flex-wrap: wrap; gap: 7px 16px; margin-top: 10px; }
.external-ranks span { color: var(--ink-muted); font-size: .78rem; }
.external-ranks b { color: var(--ink); }
.external-metrics {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px; margin-top: 10px;
}
.external-metric {
  border: 1px solid var(--navy-600); border-radius: 7px;
  display: grid; gap: 2px; padding: 8px;
}
.external-metric > span {
  color: var(--ink-muted); font-size: .64rem; letter-spacing: .3px;
  text-transform: uppercase;
}
.external-metric strong { color: var(--ink); font-size: 1rem; }
.external-metric small { color: var(--ink-muted); font-size: .64rem; }
.external-metric em { font-style: normal; }
.player-evidence-card {
  border: 1px solid var(--navy-600); border-radius: var(--radius-sm);
  background: #fff; padding: 14px;
}
.player-evidence-card > header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 14px; margin-bottom: 10px;
}
.player-evidence-card > header strong { display: block; color: var(--ink); }
.player-evidence-card > header div > span,
.evidence-source {
  display: block; color: var(--ink-muted); font-size: .75rem; margin-top: 3px;
}
.evidence-rank {
  flex: 0 0 auto; border-radius: 999px; background: #e8f3fb;
  color: var(--cool-dark); font-size: .7rem; font-weight: 800;
  padding: 5px 9px;
}
.evidence-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.evidence-correction {
  color: #765300; background: #fff7d9; border-left: 3px solid #e1b23b;
  border-radius: 6px; font-size: .75rem; margin: 10px 0 0; padding: 7px 9px;
}
.evidence-honor {
  display: flex; justify-content: space-between; gap: 12px;
  border: 1px solid #e0c36d; border-radius: 8px; background: #fff9e8;
  color: var(--ink); margin: 8px 0 10px; padding: 10px 12px;
}
.evidence-honor span { color: var(--ink-muted); }
@media (max-width: 760px) {
  .external-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .evidence-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .external-identity { grid-template-columns: 1fr; }
  .external-snapshot header { align-items: flex-start; flex-direction: column; }
  .player-evidence-card > header { flex-direction: column; }
}
#cg-wrap { min-width: 0; }
.access-workspace-panel, .group-workspace-panel { scroll-margin-top: 16px; }
.access-customer-search { display: block; max-width: 540px; margin-bottom: 14px; }
.access-customer-search input { width: 100%; margin-top: 5px; }
.access-manager-layout {
  display: grid; grid-template-columns: minmax(240px, .55fr) minmax(0, 1.45fr);
  gap: 16px; align-items: start;
}
.access-customer-directory {
  min-width: 0; max-height: 760px; overflow: auto;
  border: 1px solid var(--navy-600); border-radius: var(--radius);
  background: var(--navy-900); padding: 8px;
}
.access-customer-directory .btn-row { margin-top: 8px; }
.access-customer-options { display: grid; gap: 6px; }
.access-customer-option {
  width: 100%; display: flex; flex-direction: column; align-items: flex-start;
  gap: 2px; padding: 11px 12px; border: 1px solid transparent;
  border-radius: var(--radius-sm); background: #fff; color: var(--ink);
  text-align: left; font: inherit; cursor: pointer;
}
.access-customer-option:hover { border-color: var(--carolina); }
.access-customer-option.is-selected {
  border-color: var(--carolina-deep); background: rgba(75,156,211,.14);
  box-shadow: inset 4px 0 0 var(--carolina-deep);
}
.access-customer-option strong { font-size: .92rem; }
.access-customer-option span { color: var(--ink-muted); font-size: .78rem; overflow-wrap: anywhere; }
.access-customer-option small { margin-top: 3px; color: var(--cool-dark); font-size: .68rem; }
.access-manager-detail { min-width: 0; }
.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 { scroll-margin-top: 84px; padding: 0; }
  .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-manager-layout { grid-template-columns: 1fr; }
  .access-customer-directory { max-height: 320px; }
  .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(4, 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; }

/* report list actions (customer + admin delete/remove) */
.report-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn-danger { color: #D62828; border-color: rgba(214,40,40,0.4); }
.btn-danger:hover { background: rgba(214,40,40,0.08); border-color: #D62828; }
.report-remove-button { color: #D62828; }

/* ---- Balls in Play grid (shared: stats, coach dashboard, game intelligence) ---- */
.bip-grid-panel { margin: 18px 0; }
.bip-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.bip-head h3 { margin: 0; }
.bip-scope { color: var(--ink-faint); font-size: 0.78rem; }
.bip-summary {
  display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 12px;
}
.bip-stat {
  flex: 1 1 84px; padding: 8px 12px; border-radius: 10px;
  background: var(--navy-800); text-align: center;
}
.bip-stat strong { display: block; font-family: var(--coach-head, inherit); font-size: 1.24rem; }
.bip-stat span { color: var(--ink-faint); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; }
/* Six data columns plus labels overflow a phone; scroll the table, not the page. */
.bip-scroll { overflow-x: auto; }
.bip-grid { width: 100%; border-collapse: separate; border-spacing: 3px; font-size: 0.84rem; }
.bip-grid th { font-weight: 600; color: var(--ink-muted); font-size: 0.72rem; }
.bip-dirhead { text-align: center; text-transform: uppercase; letter-spacing: 0.08em; }
.bip-depthhead { text-align: center; color: var(--ink-faint); font-size: 0.66rem; }
/* Pinned, not min-width. The table is width:100% with auto layout, so any
   leftover width lands on whichever column carries the most text — the contact
   label — opening a gap almost a column wide before the totals. Fixing this
   column pushes the slack into the zone cells, where it becomes bigger tap
   targets instead of dead space. */
   With abbreviated contact labels the widest thing in here is the meta line
   ("51% · 20 BIP"), not the label, so this can sit tighter than it did. */
.bip-rowhead {
  text-align: left;
  width: 78px;
  max-width: 78px;
  vertical-align: middle;
  white-space: nowrap;
}
.bip-rowhead strong { display: block; color: var(--ink); font-size: 0.86rem; }
.bip-rowmeta { display: block; color: var(--ink-faint); font-size: 0.7rem; line-height: 1.3; }
.bip-cell, .bip-rowtotal {
  text-align: center; padding: 7px 4px; border-radius: 8px;
  min-width: 56px; line-height: 1.25;
}
.bip-count { display: block; font-weight: 600; }
.bip-rate { display: block; color: var(--ink-muted); font-size: 0.72rem; }
.bip-xbh {
  display: inline-block; margin-top: 3px; padding: 0 5px; border-radius: 6px;
  background: var(--heat); color: #fff; font-size: 0.62rem; font-weight: 600;
}
.bip-rowtotal { background: var(--navy-800); }
.bip-empty { background: transparent; }
.bip-dash { color: var(--navy-600); }
/* Volume heat. Carolina blue ramp — the brand's own scale, not a rainbow. */
.bip-cell.heat-0 { background: var(--navy-800); }
.bip-cell.heat-1 { background: color-mix(in srgb, var(--carolina) 14%, var(--navy-700)); }
.bip-cell.heat-2 { background: color-mix(in srgb, var(--carolina) 30%, var(--navy-700)); }
.bip-cell.heat-3 { background: color-mix(in srgb, var(--carolina) 48%, var(--navy-700)); }
.bip-cell.heat-4 { background: color-mix(in srgb, var(--carolina-dark) 68%, var(--navy-700)); color: #fff; }
.bip-cell.heat-5 { background: var(--carolina-deep); color: #fff; }
.bip-cell.heat-4 .bip-rate, .bip-cell.heat-5 .bip-rate { color: rgba(255,255,255,0.82); }
.bip-legend { margin: 8px 0 0; color: var(--ink-faint); font-size: 0.72rem; }
.bip-empty-note { color: var(--ink-faint); font-size: 0.82rem; }

/* ---- Pitcher fatigue: horizontal bars ---- */
/* Rows instead of columns so the bin label lives in a fixed left gutter and can
   be read at a normal size. Narrowing the screen shortens bars; nothing shrinks. */
.fx-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin: 12px 0 0; }
.fx-panel { background: var(--navy-700); border: 1px solid var(--navy-600); border-radius: 12px; padding: 13px 15px; }
.fx-panel h5 { font-family: var(--coach-head, Oswald, sans-serif); font-size: 0.76rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 2px; }
.fx-cap { color: var(--ink-faint); font-size: 0.7rem; margin: 0 0 11px; }
.fx-row { display: grid; grid-template-columns: 50px 1fr 44px; align-items: center; gap: 8px; margin: 0 0 7px; }
.fx-lbl { font-size: 0.74rem; color: var(--ink-muted); text-align: right; white-space: nowrap; }
.fx-late .fx-lbl { color: var(--barrel); font-weight: 700; }
.fx-track { position: relative; height: 20px; background: var(--navy-800); border-radius: 5px; overflow: hidden; }
/* Two series share a track as stacked half-height bars, so a bin reads as one
   object rather than two rows that have to be mentally paired. */
.fx-bar { position: absolute; left: 0; height: 20px; border-radius: 0 5px 5px 0; }
.fx-slot1 { top: 0; }
.fx-slot2 { top: 11px; height: 9px; }
.fx-row .fx-slot1:not(:only-child) { height: 9px; }
.fx-val { font-size: 0.74rem; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.fx-divider { display: grid; grid-template-columns: 50px 1fr 44px; gap: 8px; margin: 2px 0 9px; }
.fx-divider span { grid-column: 2; border-top: 2px dashed var(--barrel); position: relative; }
.fx-divider em { position: absolute; top: -8px; left: 0; background: var(--navy-700); padding: 0 6px; font-style: normal; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em; color: var(--barrel); }
.fx-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 0.66rem; color: var(--ink-faint); margin: 10px 0 0; }
.fx-key i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 4px; }
.fx-a, .fx-key i.fx-a { background: var(--carolina-deep); }
.fx-b, .fx-key i.fx-b { background: var(--carolina); }
.fx-c, .fx-key i.fx-c { background: var(--barrel); }
.fx-d, .fx-key i.fx-d { background: var(--heat); }
.fx-e, .fx-key i.fx-e { background: var(--good); }
.fx-foot { margin: 10px 0 0; color: var(--ink-faint); font-size: 0.72rem; }
.fx-f, .fx-key i.fx-f { background: var(--ink-faint); }

/* Compact pitch-count comparison; one aligned table at every screen size. */
.fc-card { padding: 20px; }
.fc-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; }
.fc-heading h4 { margin: 0; }
.fc-heading p, .fc-comparison-caption { margin: 0; color: var(--ink-faint); font-size: .76rem; }
.fc-control { display: block; max-width: 360px; margin: 18px 0 10px; font-size: .78rem; color: var(--ink-muted); }
.fc-control > span:first-child { display: flex; justify-content: space-between; gap: 12px; }
.fc-control output { color: var(--barrel); font-weight: 700; }
.fc-control input { width: 100%; min-height: 32px; padding: 0; margin: 0; accent-color: var(--barrel); cursor: pointer; }
.fc-control-ends { display: flex; justify-content: space-between; font-size: .65rem; }
.fc-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 16px 0 22px; }
.fc-stat > span { display: block; color: var(--ink-muted); font-size: .76rem; margin-bottom: 8px; }
.fc-pair { display: flex; align-items: flex-end; gap: 18px; }
.fc-pair small { display: block; font-size: .6rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-faint); }
.fc-pair b { font-size: 1rem; font-weight: 500; color: var(--ink-faint); }
.fc-pair strong { display: block; font-size: 1.65rem; line-height: 1.15; color: var(--ink); }
.fc-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: .76rem; }
.fc-table th, .fc-table td { padding: 10px 8px; border: 0; text-align: left; background: transparent; }
.fc-table thead th { color: var(--ink-faint); font-size: .68rem; font-weight: 500; text-transform: none; letter-spacing: 0; white-space: normal; }
.fc-table th:first-child { width: 70px; padding-left: 0; }
.fc-table td:last-child { padding-right: 0; }
.fc-table tbody th { font-weight: 600; }
.fc-table tbody th small { display: block; font-size: .6rem; color: var(--ink-faint); font-weight: 400; }
.fc-rate { display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.fc-rate > span:last-child { width: 35px; text-align: right; flex: 0 0 auto; }
.fc-track { flex: 1; height: 8px; border-radius: 3px; background: var(--navy-800); overflow: hidden; }
.fc-track i { display: block; height: 100%; background: var(--ink); border-radius: inherit; }
.fc-small-sample .fc-track i, .fc-small-sample .fc-dot { opacity: .45; }
.fc-small-sample { color: var(--ink-faint); }
.fc-table .fc-cut-row td { padding: 8px 0; }
.fc-cut-row span { display: block; border-top: 2px dashed var(--barrel); padding-top: 3px; text-align: right; font-size: .62rem; color: var(--barrel); text-transform: uppercase; letter-spacing: .05em; }
.fc-runners > span, .fc-dot-group { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.fc-runners > span { gap: 7px; }
.fc-dot-group b { font-weight: 500; }
.fc-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.fc-dot.is-free { background: #b52128; }
.fc-dot.is-hit { background: #2e7d4f; }
.fc-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; color: var(--ink-faint); font-size: .68rem; }
.fc-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.fc-note { color: var(--ink-faint); font-size: .68rem; margin: 14px 0; }
@media (max-width: 600px) {
  .fc-card { padding: 14px; }
  .fc-summary { gap: 10px; }
  .fc-pair { gap: 8px; flex-wrap: wrap; }
  .fc-pair strong { font-size: 1.4rem; }
  .fc-stat > span { min-height: 3.2em; font-size: .68rem; }
  .fc-table th, .fc-table td { padding: 9px 4px; }
  .fc-table th:first-child { width: 54px; }
  .fc-table thead th { font-size: .6rem; }
  .fc-rate { flex-direction: column-reverse; align-items: stretch; gap: 4px; }
  .fc-rate > span:last-child { width: auto; text-align: left; }
  .fc-track { flex: none; }
}
/* Game-log result: the W/L a coach scans for, from the selected player's side. */
.gl-out { display: inline-block; min-width: 1.25em; font-weight: 700; text-align: center; border-radius: 4px; padding: 1px 5px; }
.gl-w { color: #fff; background: var(--good); }
.gl-l { color: #fff; background: var(--barrel); }
.gl-t { color: var(--ink-muted); background: var(--navy-800); }
.gl-score { margin-left: 6px; font-variant-numeric: tabular-nums; }
/* Column totals row: same weight as the row totals, separated from the data. */
.bip-coltotals td, .bip-coltotals th { border-top: 2px solid var(--navy-600); font-weight: 600; }
.bip-coltotal { text-align: center; background: var(--navy-800); }

/* Uploaded brand icon preview (admin → tenant → Brand). */
.tenant-logo-preview { margin: 6px 0 2px; }
.tenant-logo-preview img {
  max-height: 72px;
  max-width: 220px;
  border-radius: 8px;
  background: #fff;
  padding: 6px;
}

/* ---------- Admin: AI prompt editing ---------- */
.prompt-group { margin-bottom: 26px; }
.prompt-group h3 {
  margin: 0 0 10px;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #627184;
}

.prompt-row {
  border: 1px solid #dce4eb;
  border-radius: 10px;
  margin-bottom: 8px;
  background: #fff;
  overflow: hidden;
}
.prompt-row-open { border-color: #4b9cd3; }

.prompt-head {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}
.prompt-head span { display: flex; align-items: center; gap: 8px; }
.prompt-head strong { font-size: 0.92rem; }
.prompt-head small {
  display: block;
  margin-top: 3px;
  font-size: 0.76rem;
  color: #627184;
}

.prompt-body { padding: 4px 14px 14px; border-top: 1px solid #dce4eb; }

.prompt-field { display: block; margin-bottom: 14px; }
.prompt-field > span {
  display: block;
  margin-bottom: 4px;
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 700;
  color: #627184;
}
/* Marks a field that differs from what shipped, so a surprising result can be
   traced to an edit rather than to the model. */
.prompt-field em {
  font-style: normal;
  color: #b4690e;
  letter-spacing: 0;
  text-transform: none;
}
.prompt-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #dce4eb;
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.5;
  resize: vertical;
}

/* Compare mode for the stats table — ctrl-click is desktop-only, so a phone
   needs an explicit toggle to reach multi-season comparison at all. */
.stats-pick-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 8px 0 0;
}
.stats-compare-toggle {
  padding: 7px 14px;
  border: 1px solid #dce4eb;
  border-radius: 999px;
  background: #fff;
  color: #13314d;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.stats-compare-toggle.on { background: #13314d; border-color: #13314d; color: #fff; }
.stats-pick-bar p { margin: 0; }
/* Bigger tap targets while picking, so a thumb hits a row and not a link. */
.select-mode .stats-player-row { cursor: pointer; }
.select-mode .stats-player-row td { padding-top: 12px; padding-bottom: 12px; }

/* ---------- Store ---------- */
.store-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.store-status {
  grid-column: 1 / -1; margin: 0; padding: 40px 0;
  color: var(--ink-muted); text-align: center;
}
.store-status.err { color: var(--barrel-dark); }

.store-card {
  display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden;
  border: 1px solid var(--navy-600); border-radius: var(--radius);
  background: var(--navy-700); box-shadow: var(--shadow-sm);
  font: inherit; text-align: left; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.store-card:hover {
  transform: translateY(-2px); border-color: var(--carolina);
  box-shadow: var(--shadow);
}
.store-card:focus-visible { outline: 3px solid var(--carolina); outline-offset: 2px; }
/* Print-on-demand mockups arrive at assorted aspect ratios, so the tile fixes
   the shape and the image fills it — otherwise one tall hoodie shot drags its
   whole grid row taller than everything beside it. */
.store-card-shot {
  display: block; aspect-ratio: 1 / 1; background: var(--navy-800);
}
.store-card-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.store-card-noimg {
  display: grid; place-items: center; width: 100%; height: 100%;
  color: var(--ink-faint); font-family: var(--font-head); font-size: 2rem;
}
.store-card-body { display: grid; gap: 3px; padding: 14px 16px 16px; }
.store-card-name { color: var(--ink); font-weight: 600; line-height: 1.3; }
.store-card-price {
  color: var(--carolina-deep); font-family: var(--font-head);
  font-size: 1.15rem;
}
.store-card-meta { color: var(--ink-faint); font-size: .76rem; }

/* Variant picker */
.store-dialog {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center;
  padding: 20px; background: rgba(12, 26, 43, .62);
}
/* A class selector beats the user-agent [hidden] rule, so `display: grid`
   above silently defeats the hidden attribute and the empty dialog covers the
   page on load. It has to be turned off explicitly. */
.store-dialog[hidden] { display: none; }
body.store-dialog-open { overflow: hidden; }
.store-dialog-card {
  position: relative; width: min(720px, 100%); max-height: 90vh;
  overflow: auto; padding: 26px; border-radius: var(--radius);
  background: var(--navy-700); box-shadow: 0 24px 60px rgba(12, 26, 43, .3);
}
.store-dialog-close {
  position: absolute; top: 10px; right: 12px;
  width: 44px; height: 44px; border: 0; border-radius: 8px;
  background: transparent; color: var(--ink-muted);
  font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.store-dialog-close:hover { background: var(--navy-800); color: var(--ink); }
.store-detail { display: grid; grid-template-columns: 320px 1fr; gap: 26px; }

/* Gallery */
.store-gallery { display: grid; gap: 10px; align-content: start; }
.store-gallery-main {
  aspect-ratio: 1 / 1; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--navy-800);
}
.store-gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.store-gallery-caption {
  margin: 0; min-height: 1.1em; color: var(--ink-faint);
  font-size: .74rem; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; text-align: center;
}
.store-gallery-strip { display: flex; gap: 8px; flex-wrap: wrap; }
.store-thumb {
  width: 62px; height: 62px; padding: 0; overflow: hidden; cursor: pointer;
  border: 2px solid var(--navy-600); border-radius: var(--radius-sm);
  background: var(--navy-800);
}
.store-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.store-thumb.on { border-color: var(--carolina-deep); }

.store-detail-price {
  margin: 2px 0 16px; color: var(--carolina-deep);
  font-family: var(--font-head); font-size: 1.6rem; line-height: 1;
}

/* Colour + size pickers */
.store-picker { margin: 0 0 16px; }
.store-picker-label {
  display: block; margin-bottom: 7px; color: var(--ink-muted);
  font-size: .72rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase;
}
.store-picker-label b {
  margin-left: 6px; color: var(--ink); font-weight: 600;
  letter-spacing: 0; text-transform: none;
}
.store-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
/* The swatch is the garment in that colour rather than an abstract dot:
   Printful gives a colour NAME, not a hex, and "Heather Carolina Blue" as a
   guessed square is worse than showing the actual shirt. */
.store-swatch {
  width: 54px; height: 54px; padding: 0; overflow: hidden; cursor: pointer;
  border: 2px solid var(--navy-600); border-radius: var(--radius-sm);
  background: var(--navy-800);
}
.store-swatch img { width: 100%; height: 100%; object-fit: cover; display: block; }
.store-swatch.on { border-color: var(--carolina-deep); box-shadow: 0 0 0 2px rgba(75,156,211,.28); }
.store-swatch.sold { opacity: .38; }

.store-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.store-size {
  min-width: 52px; min-height: 44px; padding: 8px 12px; cursor: pointer;
  border: 1px solid var(--navy-600); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); font: inherit; font-weight: 600;
}
.store-size:hover:not(:disabled) { border-color: var(--carolina); }
.store-size.on {
  border-color: var(--carolina-deep); background: var(--carolina-deep);
  color: #fff;
}
/* Sold-out sizes stay visible rather than disappearing — a size vanishing
   between colours reads as a broken page, not as "out of stock". */
.store-size:disabled {
  opacity: .4; cursor: not-allowed; text-decoration: line-through;
}

.store-buyrow { display: flex; align-items: flex-end; gap: 12px; margin-top: 4px; }
.store-buyrow .store-field { margin: 0; }
.store-detail-copy h2 {
  margin: 0 0 8px; font-family: var(--font-head);
  text-transform: uppercase; color: var(--header-bg);
}
.store-detail-desc { color: var(--ink-muted); font-size: .9rem; }
.store-field {
  display: grid; gap: 5px; margin: 14px 0 0;
  color: var(--ink-muted); font-size: .74rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
}
.store-field select, .store-field input {
  min-height: 44px; padding: 8px 10px; border: 1px solid var(--navy-600);
  border-radius: var(--radius-sm); background: #fff; color: var(--ink);
  font: inherit; font-size: .95rem; letter-spacing: 0; text-transform: none;
}
.store-field-qty { max-width: 120px; }
.store-buy { margin-top: 18px; }
.store-note { margin: 12px 0 0; color: var(--ink-faint); font-size: .78rem; }
.store-msg { margin: 10px 0 0; font-size: .85rem; }
.store-msg.err { color: var(--barrel-dark); }

@media (max-width: 620px) {
  .store-detail { grid-template-columns: 1fr; gap: 16px; }
  .store-dialog { padding: 0; place-items: stretch; }
  .store-dialog-card {
    width: 100%; max-height: 100vh; border-radius: 0; padding: 20px 18px 28px;
  }
}

/* ---------- Store masthead ----------
   BRAND.md puts the full-colour lockup on LIGHT backgrounds, and it is right:
   the red 2 and navy OB are the mark, and knocking them out to white on a navy
   band throws away the thing that identifies it. So the masthead is light and
   the brand colours carry it. */
.store-masthead {
  background:
    radial-gradient(circle at 88% 12%,
      color-mix(in srgb, var(--carolina) 16%, transparent), transparent 22rem),
    var(--navy-900);
  border-bottom: 3px solid var(--barrel);
  padding: 30px 0 26px;
}
.store-masthead-inner {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.store-mark {
  width: 76px; height: 76px; flex: 0 0 auto; border-radius: 50%;
  box-shadow: 0 6px 18px rgba(13, 27, 42, .22);
}
.store-lockup { display: grid; gap: 2px; }
.store-wordmark {
  margin: 0; font-family: var(--font-head); font-size: 3rem; line-height: .86;
  letter-spacing: .01em; color: var(--ink); font-weight: 700;
}
.store-wordmark span { color: var(--barrel); }
/* Rules either side of the tagline, as on the master lockup. */
.store-tagline {
  display: flex; align-items: center; gap: 8px; margin: 0;
  color: var(--barrel); font-size: .66rem; font-weight: 700;
  letter-spacing: .28em; text-transform: uppercase; white-space: nowrap;
}
.store-tagline::before, .store-tagline::after {
  content: ""; height: 2px; background: var(--barrel); flex: 1 1 14px;
  min-width: 14px; border-radius: 2px;
}
/* "Gear" names the page without repeating the brand a third time. Separated by
   a rule so it reads as a section of the brand, not part of the mark. */
.store-title {
  margin: 0 0 0 auto; padding-left: 22px;
  border-left: 1px solid var(--navy-600);
  font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1;
  color: var(--ink); text-transform: uppercase; letter-spacing: .02em;
}
.store-cart-open {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px;
  margin-left: 0; padding: 9px 14px; border: 1px solid var(--navy-600);
  border-radius: 999px; background: #fff; color: var(--ink);
  font: 700 .84rem var(--font-body); cursor: pointer;
}
.store-cart-open span {
  display: grid; place-items: center; min-width: 25px; height: 25px;
  padding: 0 6px; border-radius: 999px; background: var(--barrel); color: #fff;
  font-variant-numeric: tabular-nums;
}

/* Cart drawer */
.store-cart { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-columns: 1fr min(430px, 100%); }
.store-cart[hidden] { display: none; }
.store-cart-backdrop { grid-column: 1; grid-row: 1; border: 0; background: rgba(12,26,43,.62); cursor: pointer; }
.store-cart-panel {
  grid-column: 2; grid-row: 1; display: flex; flex-direction: column;
  min-width: 0; height: 100%; background: var(--navy-900); box-shadow: -14px 0 40px rgba(12,26,43,.24);
}
.store-cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px 16px; border-bottom: 1px solid var(--navy-600);
}
.store-cart-head h2 { margin: 0; color: var(--header-bg); text-transform: uppercase; }
.store-cart-close, .store-cart-remove {
  border: 0; background: transparent; color: var(--ink-muted); cursor: pointer; font-size: 1.6rem;
}
.store-cart-items { flex: 1; overflow: auto; padding: 8px 24px; }
.store-cart-line {
  display: grid; grid-template-columns: 72px minmax(0,1fr) 58px 28px;
  gap: 12px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--navy-600);
}
.store-cart-line img, .store-cart-placeholder {
  width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); background: var(--navy-800);
}
.store-cart-placeholder { display: grid; place-items: center; font-family: var(--font-head); color: var(--ink-faint); }
.store-cart-line div { display: grid; gap: 3px; min-width: 0; }
.store-cart-line strong { color: var(--ink); line-height: 1.25; }
.store-cart-line span { color: var(--ink-muted); font-size: .78rem; }
.store-cart-line label { display: grid; gap: 4px; color: var(--ink-faint); font-size: .68rem; text-transform: uppercase; }
.store-cart-line input { width: 58px; min-height: 42px; padding: 6px; border: 1px solid var(--navy-600); border-radius: 6px; }
.store-cart-line.is-unavailable { grid-template-columns: 1fr auto; }
.store-cart-empty { padding: 38px 0; color: var(--ink-muted); text-align: center; }
.store-cart-footer { padding: 18px 24px 24px; border-top: 1px solid var(--navy-600); }
.store-cart-total { display: flex; justify-content: space-between; color: var(--ink); font-size: 1.05rem; }
.store-cart-footer > p { color: var(--ink-faint); font-size: .75rem; }
.store-checkout { width: 100%; }
.store-cart-msg { min-height: 1.2em; margin-bottom: 0; color: var(--barrel-dark) !important; }
@media (max-width: 640px) {
  .store-masthead { padding: 22px 0 20px; }
  .store-mark { width: 58px; height: 58px; }
  .store-wordmark { font-size: 2.3rem; }
  /* Stacked, a left rule on "Gear" points at nothing. */
  .store-title {
    margin: 4px 0 0; padding-left: 0; border-left: 0; flex: 1 1 auto;
  }
  .store-cart-open { margin-left: auto; }
  .store-cart { grid-template-columns: 1fr; }
  .store-cart-backdrop { display: none; }
  .store-cart-panel { grid-column: 1; }
  .store-cart-line { grid-template-columns: 62px minmax(0,1fr) 52px 28px; gap: 9px; }
  .store-cart-line img, .store-cart-placeholder { width: 62px; height: 62px; }
}

/* The bar scale, stated inline in the Situation header. */
.sit-scale {
  display: inline-block; margin-left: 8px; font-style: normal;
  font-weight: 600; letter-spacing: .04em; text-transform: none;
  color: var(--ink-faint);
}
/* Dark surfaces need the knockout mark: the full-colour one is navy artwork
   and simply disappears into the navy footer, leaving only the red swoosh. */
.site-footer .brand .mark {
  background-image: url("../assets/branding/2ob-mark-light.png?v=1");
}

/* ---------- Admin: team-first navigation ----------
   The old Games tab rendered all 1,110 games as one table. These styles carry
   the replacement: an index of 39 teams, then per-team drill-downs that are
   never more than ~50 rows. */
.admin-toolbar { margin: 0 0 16px; }
.admin-search { display: block; }
.admin-search input {
  width: 100%; padding: 11px 14px; border: 1px solid var(--navy-600);
  border-radius: var(--radius-sm); background: #fff; font: inherit;
}
.admin-panel-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 14px; margin-bottom: 12px;
}
.admin-panel-head h3 { margin: 0 0 2px; }
.admin-panel-head .hint { margin: 0; }
.admin-count {
  flex: 0 0 auto; padding: 3px 10px; border-radius: 999px;
  background: var(--navy-800); color: var(--carolina-deep);
  font-size: .74rem; font-weight: 700;
}
.admin-teamlist { display: grid; gap: 6px; }
.admin-team-panel,
.admin-team-collection {
  padding: 0; overflow: hidden;
  border: 1px solid var(--navy-600); border-radius: var(--radius);
  background: var(--navy-700); margin-bottom: var(--gap);
}
.admin-team-panel > summary,
.admin-team-collection > summary {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 20px 24px; cursor: pointer; list-style: none;
}
.admin-team-panel > summary::-webkit-details-marker,
.admin-team-collection > summary::-webkit-details-marker { display: none; }
.admin-team-panel > summary::before,
.admin-team-collection > summary::before {
  content: "+"; color: var(--carolina-deep); font-weight: 800;
}
.admin-team-panel[open] > summary::before,
.admin-team-collection[open] > summary::before { content: "−"; }
.admin-team-panel > summary > span:first-of-type,
.admin-team-collection > summary > span:first-of-type { flex: 1; }
.admin-team-panel summary strong,
.admin-team-panel summary small,
.admin-team-collection summary strong,
.admin-team-collection summary small { display: block; }
.admin-team-panel summary strong,
.admin-team-collection summary strong { color: var(--ink); font-size: 1rem; }
.admin-team-panel summary small,
.admin-team-collection summary small {
  color: var(--ink-muted); font-size: .78rem; margin-top: 2px;
}
.admin-team-panel-body,
.admin-team-collection-body {
  padding: 0 24px 24px; border-top: 1px solid var(--navy-600);
}
.admin-team-collection-body { padding-top: 20px; }
.admin-team-collection-body .admin-team-panel:last-child { margin-bottom: 0; }
.admin-team-panel-tools {
  display: flex; justify-content: flex-end; padding: 12px 0;
}
.admin-load-more { display: block; margin: 14px auto 0; }
.admin-team-kind { text-transform: uppercase; letter-spacing: .04em; }
.admin-lifecycle-meta {
  color: var(--ink-muted); font-size: .8rem; margin: 4px 0 14px;
}
/* Rows are buttons, not links: they drive in-page navigation and need to be
   reachable from the keyboard without inventing an href that goes nowhere. */
.admin-teamrow {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center;
  gap: 12px; width: 100%; min-height: 44px; padding: 10px 12px;
  border: 1px solid var(--navy-600); border-radius: var(--radius-sm);
  background: #fff; font: inherit; text-align: left; cursor: pointer;
}
/* An author display rule beats the user-agent [hidden] rule, so the filter's
   row.hidden did nothing at all. Same trap as .store-dialog above. */
.admin-teamrow[hidden] { display: none; }
.admin-teamrow:hover {
  border-color: var(--carolina); background: var(--navy-800);
}
.admin-teamrow-name { color: var(--ink); font-weight: 600; }
.admin-teamrow-meta { color: var(--ink-faint); font-size: .8rem; }
.admin-teamrow-count {
  color: var(--carolina-deep); font-size: .78rem; font-weight: 700;
  white-space: nowrap;
}
.admin-source-school {
  margin: 0 0 12px; color: var(--ink-muted); font-size: .82rem;
}
.admin-evidence-list { display: grid; gap: 8px; }
.admin-evidence-row {
  display: grid; grid-template-columns: minmax(220px, 1fr) minmax(360px, auto);
  gap: 16px; align-items: center; border: 1px solid var(--navy-600);
  border-radius: var(--radius-sm); background: #fff; padding: 12px;
}
.admin-evidence-identity strong,
.admin-evidence-identity span,
.admin-evidence-identity small { display: block; }
.admin-evidence-identity strong { color: var(--ink); }
.admin-evidence-identity span {
  color: var(--ink-muted); font-size: .78rem; margin-top: 2px;
}
.admin-evidence-identity small {
  color: var(--cool-dark); font-size: .72rem; font-weight: 700; margin-top: 5px;
}
.admin-evidence-review {
  display: grid; grid-template-columns: minmax(130px, auto) minmax(180px, 1fr) auto auto;
  gap: 8px; align-items: center;
}
.admin-evidence-review select {
  min-height: 36px; max-width: 260px; border: 1px solid var(--navy-600);
  border-radius: 7px; background: #fff; color: var(--ink); font: inherit;
  font-size: .78rem; padding: 6px 8px;
}
.evidence-review-status {
  border-radius: 999px; background: #eef3f7; color: var(--ink-muted);
  font-size: .68rem; font-weight: 800; padding: 5px 8px; text-align: center;
  white-space: nowrap;
}
.evidence-review-status.is-linked,
.evidence-review-status.is-exact { background: #e5f5eb; color: #18794e; }
.evidence-review-status.is-class_conflict,
.evidence-review-status.is-ambiguous { background: #fff2d8; color: #8a5b00; }
.pd-linkage-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 16px 0 10px; padding: 12px; border: 1px solid var(--navy-600);
  border-radius: var(--radius-sm); background: var(--navy-800);
}
.pd-linkage-head strong, .pd-linkage-head span { display: block; }
.pd-linkage-head > div > span { margin-top: 3px; color: var(--ink-muted); font-size: .76rem; }
.pd-team-context { display: block; margin: 0 0 12px; color: var(--ink-muted); font-size: .78rem; }
.pd-team-context select {
  display: block; width: min(100%, 520px); min-height: 38px; margin-top: 5px;
  border: 1px solid var(--navy-600); border-radius: 7px; background: #fff;
  color: var(--ink); font: inherit; padding: 7px 9px;
}
.pd-warning { color: #8a5b00; }
.mg-opt span { display: block; margin-top: 2px; color: var(--ink-muted); font-size: .72rem; }
.pd-review-picker { grid-template-columns: minmax(260px, 560px); margin-top: 14px; }
.pd-manual-lookup { margin-top: 18px; border-top: 1px solid var(--navy-600); padding-top: 12px; }
.pd-manual-lookup summary { color: var(--carolina-deep); font-weight: 700; cursor: pointer; }
.pd-manual-lookup > label { display: block; margin-top: 12px; color: var(--ink-muted); font-size: .85rem; }
.pd-review-summary { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 16px 0 10px; padding: 11px 13px; border-radius: var(--radius-sm); background: var(--navy-800); color: var(--ink-muted); font-size: .76rem; }
.pd-review-summary strong { color: var(--ink); }
.pd-review-section { margin-top: 12px; border: 1px solid var(--navy-600); border-radius: var(--radius-sm); overflow: hidden; }
.pd-review-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; background: var(--navy-800); }
.pd-review-head h4, .pd-review-head p { margin: 0; }
.pd-review-head h4 { color: var(--ink); }
.pd-review-head p { margin-top: 2px; color: var(--ink-muted); font-size: .72rem; }
.pd-queue-row { display: grid; grid-template-columns: minmax(180px, .85fr) minmax(260px, 1.5fr) auto; gap: 12px; align-items: center; padding: 11px 12px; border-top: 1px solid var(--navy-600); background: #fff; }
.pd-queue-player { display: flex; align-items: center; gap: 9px; }
.pd-queue-player strong, .pd-queue-player span, .pd-queue-candidate span, .pd-queue-candidate small { display: block; }
.pd-queue-player span, .pd-queue-candidate small { margin-top: 2px; color: var(--ink-muted); font-size: .7rem; }
.pd-queue-candidate select { width: 100%; min-height: 36px; border: 1px solid var(--navy-600); border-radius: 7px; background: #fff; color: var(--ink); padding: 6px 8px; }
.pd-linked-list { margin-top: 12px; color: var(--ink-muted); font-size: .76rem; }
.pd-linked-list summary { color: var(--carolina-deep); font-weight: 700; cursor: pointer; }
.pd-linked-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-bottom: 1px solid var(--navy-600); }
@media (max-width: 900px) {
  .admin-evidence-row { grid-template-columns: 1fr; }
  .admin-evidence-review { grid-template-columns: 1fr; align-items: stretch; }
  .admin-evidence-review select { max-width: none; width: 100%; }
  .pd-linkage-head { align-items: flex-start; }
  .pd-queue-row { grid-template-columns: 1fr; }
  .pd-review-head, .pd-linked-row { align-items: flex-start; flex-direction: column; }
}
.admin-back {
  display: inline-flex; align-items: center; min-height: 40px;
  margin-bottom: 14px; padding: 6px 12px; border: 1px solid var(--navy-600);
  border-radius: var(--radius-sm); background: #fff; color: var(--carolina-deep);
  font: inherit; font-weight: 600; cursor: pointer;
}
.admin-back:hover { border-color: var(--carolina); background: var(--navy-800); }
.admin-rowactions { white-space: nowrap; }
.admin-json {
  max-height: 60vh; overflow: auto; margin: 0; padding: 14px;
  border-radius: var(--radius-sm); background: var(--navy-800);
  font-size: .76rem; line-height: 1.5; white-space: pre-wrap;
  word-break: break-word;
}
@media (max-width: 640px) {
  .admin-teamrow { grid-template-columns: 1fr; gap: 2px; }
}
.admin-scopebar { display: flex; gap: 8px; margin: 0 0 14px; }
.admin-scopebar .active {
  border-color: var(--carolina); background: var(--navy-800);
  color: var(--carolina-deep); font-weight: 700;
}
