.live-title-status {
  display: inline-flex;
  gap: 0.3em;
  align-items: center;
  color: #ef4444;
  font-weight: 950;
  vertical-align: 0.08em;
  transform: translateY(-0.18em);
}

.live-title-status::before {
  width: 0.42em;
  height: 0.42em;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0.14em rgba(239, 68, 68, 0.2);
  content: "";
}

.mobile-header-controls,
.mobile-refresh-button {
  display: none;
}

@media (max-width: 768px) {
  .mobile-header-controls {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    order: -1;
  }

  .mobile-header-controls .mobile-menu-toggle {
    margin-right: 0 !important;
    order: 0 !important;
  }

  html.web-app-mode .mobile-refresh-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--gold-soft);
    cursor: pointer;
  }

  .mobile-refresh-button:active {
    background: rgba(255, 255, 255, 0.2);
  }

  .mobile-refresh-button:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
  }

  .mobile-refresh-icon {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
  }

  .mobile-refresh-button.is-refreshing .mobile-refresh-icon {
    animation: mobile-refresh-spin 0.55s linear infinite;
  }
}

@keyframes mobile-refresh-spin {
  to { transform: rotate(360deg); }
}

.automation-health-grid {
  margin-top: 0.8rem;
}

.automation-health-warning,
.schedule-import-safety.is-blocked {
  border-left: 4px solid #b91c1c;
  background: #fff1f2;
  color: #7f1d1d;
}

.automation-health-warning {
  padding: 0.75rem 0.9rem;
}

.automation-alert-list {
  margin: 0.75rem 0 0;
}

.automation-health-action {
  margin-top: 1rem;
}

.schedule-import-safety {
  margin: 1rem 0;
  padding: 0.9rem;
  border: 1px solid #d8d1bb;
  border-left: 4px solid #c69a20;
  border-radius: 6px;
  background: #fffdf6;
}

.schedule-import-safety h4 {
  margin: 0 0 0.65rem;
}

.schedule-difference-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.2rem;
}

.schedule-import-safety button:disabled,
.live-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.live-main {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.live-home-main,
.live-data-page {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.live-results-main {
  width: calc(100% - 1rem);
  max-width: none;
  margin-inline: auto;
}

.live-results-main .results-card,
.live-results-main .results-table-wrap {
  width: 100%;
}

.live-results-main .results-table-wrap {
  max-height: none;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
}

.live-results-main .modern-results-table thead {
  position: relative;
  z-index: 20;
  transform: translateY(var(--results-head-y, 0px));
  will-change: transform;
}

.live-results-main .modern-results-table thead th {
  top: auto;
}

.weekly-results-main .results-summary {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.weekly-results-main .results-summary small {
  color: var(--ink-muted);
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.weekly-results-main .weekly-winner-lines {
  display: grid;
  gap: 0.25rem;
  margin: 0.18rem 0 0;
  padding: 0;
}

.weekly-results-main .results-summary .weekly-winner-row {
  display: flex;
  gap: 0.35rem;
  align-items: baseline;
  min-width: 0;
  text-transform: none;
}

.weekly-results-main .results-summary .weekly-winner-league {
  color: var(--ink-muted);
  display: inline;
  flex: 0 0 auto;
  font-size: 0.82rem !important;
  font-weight: 900;
  text-transform: uppercase;
}

.weekly-results-main .results-summary .weekly-winner-names {
  color: #111827;
  display: inline;
  font-size: 1.2rem !important;
  font-weight: 950;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

@media (max-width: 780px) {
  .weekly-results-main .results-summary .weekly-winner-names {
    font-size: 0.9rem !important;
    line-height: 1.2;
  }
}

.modern-results-table .who-cell.one-correct-pick {
  background: #15803d !important;
  box-shadow: inset 0 0 0 2px #14532d;
  color: #fff !important;
}

.live-home-main .scoreboard {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-control-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-control-summary .admin-summary-detail small {
  display: block;
  margin-top: 0.3rem;
  color: var(--ink-muted);
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.3;
  text-transform: none;
}

.admin-control-summary .admin-summary-detail small b {
  color: var(--green-deep);
  font-size: 0.9rem;
}

.admin-control-summary .admin-week-list .admin-current-week-label {
  color: #7a4b00;
  font-size: inherit;
  font-weight: 950;
}

.admin-control-summary .admin-submission-list b {
  font-size: 0.72rem;
}

.admin-control-summary .admin-placement-summary > strong {
  font-size: 1.05rem;
  line-height: 1.25;
}

.score-api-status-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 1rem;
}

.score-api-status-grid .admin-summary-detail strong {
  font-size: 1.05rem;
  line-height: 1.25;
}

.score-api-status-grid .admin-summary-detail small {
  display: block;
  margin-top: 0.3rem;
  color: var(--ink-muted);
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.3;
  text-transform: none;
}

.score-api-safe-state,
.score-api-result-ok {
  color: #166534 !important;
}

.score-api-off-state {
  color: #991b1b !important;
}

.score-api-error {
  width: 100%;
  margin-bottom: 1rem;
}

.score-api-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.score-api-section-heading > div {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.score-api-section-heading h3 {
  margin: 0;
}

.score-api-step {
  display: inline-grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border: 2px solid #c69a20;
  border-radius: 50%;
  color: #254f3c;
  font-weight: 950;
}

.score-api-inline-form {
  justify-content: flex-end;
  margin: 0;
}

.score-api-diagnostics,
.score-api-match-summary,
.score-api-apply-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
}

.score-api-provider-tests {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.score-api-provider-test {
  padding: 0.8rem;
  border: 1px solid #d8d1bb;
  border-left: 4px solid #b91c1c;
  border-radius: 6px;
  background: #fffdf6;
}

.score-api-provider-test.passed {
  border-left-color: #15803d;
}

.score-api-provider-test > strong,
.score-api-provider-test > span,
.score-api-provider-test > small {
  display: block;
}

.score-api-provider-test > span {
  margin-top: 0.2rem;
  color: #991b1b;
  font-weight: 900;
}

.score-api-provider-test.passed > span {
  color: #166534;
}

.score-api-provider-test > small {
  margin-top: 0.25rem;
  color: var(--ink-muted);
  font-size: 0.75rem;
  line-height: 1.3;
}

.score-api-request-details {
  margin-top: 0.9rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid #d8d1bb;
  border-radius: 6px;
  background: #fffdf6;
}

.score-api-request-details summary {
  cursor: pointer;
  color: #254f3c;
  font-weight: 850;
}

.score-api-request-details p {
  margin: 0.5rem 0 0;
  color: var(--ink-muted);
  font-size: 0.75rem;
}

.score-api-diagnostics > div,
.score-api-match-summary > div,
.score-api-apply-summary > div {
  padding: 0.7rem;
  border: 1px solid #d8d1bb;
  border-radius: 6px;
  background: #fffdf6;
}

.score-api-diagnostics dt,
.score-api-match-summary span,
.score-api-apply-summary span {
  display: block;
  color: var(--ink-muted);
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
}

.score-api-diagnostics dd,
.score-api-match-summary strong,
.score-api-apply-summary strong {
  display: block;
  margin: 0.2rem 0 0;
  color: #173f2f;
  font-size: 1.05rem;
  font-weight: 950;
}

.score-api-request-line {
  margin: 0.8rem 0;
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.score-api-coverage-warning {
  margin: 0.75rem 0;
  padding: 0.65rem 0.75rem;
  border-left: 4px solid #ca8a04;
  background: #fef9c3;
  color: #713f12;
  font-size: 0.8rem;
  font-weight: 800;
}

.score-api-table small,
.score-api-match-table td small {
  display: block;
  margin-top: 0.2rem;
  color: var(--ink-muted);
  font-size: 0.7rem;
  line-height: 1.25;
}

.score-api-match-badge {
  display: inline-block;
  min-width: 5.2rem;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  background: #e5e7eb;
  color: #374151;
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
}

.score-api-match-badge.exact {
  background: #dcfce7;
  color: #166534;
}

.score-api-match-badge.likely {
  background: #fef3c7;
  color: #854d0e;
}

.score-api-match-badge.ambiguous,
.score-api-match-badge.unmatched {
  background: #fee2e2;
  color: #991b1b;
}

.score-api-apply-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.score-api-apply-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.9rem 0 0;
  padding: 0.75rem;
  border: 1px solid #b9cdbf;
  border-left: 4px solid #15803d;
  border-radius: 6px;
  background: #f0fdf4;
}

.score-api-apply-form small {
  color: #365b47;
  font-size: 0.75rem;
  font-weight: 750;
}

.score-api-apply-badge {
  display: inline-block;
  min-width: 7rem;
  padding: 0.25rem 0.45rem;
  border-radius: 4px;
  background: #e5e7eb;
  color: #374151;
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
}

.score-api-apply-badge.eligible {
  background: #dcfce7;
  color: #166534;
}

.score-api-apply-badge.manual_protected {
  background: #dbeafe;
  color: #1e40af;
}

.score-api-apply-badge.not_final,
.score-api-apply-badge.missing_scores,
.score-api-apply-badge.already_current {
  background: #fef3c7;
  color: #854d0e;
}

.score-api-apply-badge.tie,
.score-api-apply-badge.low_confidence,
.score-api-apply-badge.not_matched,
.score-api-apply-badge.missing_provider_id {
  background: #fee2e2;
  color: #991b1b;
}

.score-api-row-note {
  color: #991b1b !important;
  font-weight: 750;
}

.score-api-unused-events {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid #d8d1bb;
}

.score-api-unused-events summary {
  cursor: pointer;
  color: #254f3c;
  font-weight: 850;
}

.score-api-unused-events ul {
  margin-bottom: 0;
}

@media (max-width: 780px) {
  .score-api-status-grid,
  .score-api-diagnostics,
  .score-api-match-summary,
  .score-api-apply-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .score-api-provider-tests {
    grid-template-columns: 1fr;
  }

  .score-api-section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .score-api-inline-form {
    align-items: stretch;
    justify-content: flex-start;
  }

  .score-api-apply-form {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 1000px) {
  .admin-control-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .admin-control-summary {
    grid-template-columns: 1fr;
  }
}

.live-home-main .scoreboard-week-title {
  position: absolute;
  top: 0;
  left: 50%;
  margin: 0;
  padding: 0 0.75rem;
  transform: translate(-50%, -58%);
  background: #0b2a1f;
  color: var(--gold-soft);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.live-home-main .quick-links::after {
  content: none;
  display: none;
}

.live-home-main .quick-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.live-home-main .quick-links a {
  display: flex;
  min-height: 100%;
}

.live-home-main .quick-links a span {
  width: 100%;
}

.live-card {
  margin: 1.5rem 0 2rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
}

.live-card h3 {
  margin-top: 0;
}

.live-form-card form,
.live-inline-form,
.live-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: end;
  margin-bottom: 1rem;
}

.live-form-card label,
.live-toolbar label {
  display: grid;
  gap: 0.25rem;
  font-weight: 700;
}

.live-card input,
.live-card select {
  min-height: 2.45rem;
  max-width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.22);
  border-radius: 6px;
  padding: 0.45rem 0.6rem;
  font: inherit;
}

.live-stats-page .stats-picker {
  margin: 0 auto 1rem;
}

.live-stats-page .stats-picker form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: end;
  justify-content: center;
}

.live-stats-page .stats-picker label {
  display: grid;
  gap: 0.3rem;
  min-width: 220px;
  color: var(--green-deep);
  font-weight: 900;
  text-align: center;
}

.live-stats-page .stats-picker select {
  min-height: 2.45rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.45rem 0.65rem;
  background: #fff;
  color: var(--dark);
  font: inherit;
}

.live-stats-page .stats-missed-week-note {
  margin: 0.65rem 0 0;
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
}

.standings-missed-week-note {
  margin: 0.65rem 0 0;
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1.4;
}

.picksheet-main .picker-info select {
  width: 100%;
  min-height: 2.45rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.55rem 0.65rem;
  background: #fff;
  color: var(--dark);
  font: inherit;
}

.picksheet-main .page-hero .picksheet-name-reminder {
  display: inline-block;
  width: fit-content;
  margin-top: 0.65rem;
  padding: 0.38rem 0.65rem;
  border: 1px solid var(--gold);
  border-radius: 4px;
  background: rgba(246, 223, 151, 0.1);
  color: var(--gold-soft);
  font-weight: 900;
}

.picksheet-main .picker-info .contestant-picker-label {
  padding: 0.75rem;
  border: 2px solid var(--gold);
  border-radius: 6px;
  background: #fff8df;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

.picksheet-main .contestant-picker-label .required-marker {
  color: #991b1b;
  font-size: 0.78rem;
  font-weight: 900;
}

.picksheet-main .contestant-picker-label select {
  border: 2px solid var(--green);
  background: #fff;
  color: var(--green-deep);
  font-size: 1.05rem;
  font-weight: 900;
}

.picksheet-main .contestant-picker-label select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(214, 168, 63, 0.3);
  outline: none;
}

.picksheet-main .contestant-picker-label select[aria-invalid="true"] {
  border-color: #b91c1c;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.18);
}

.picksheet-main .neutral-site-note {
  display: grid;
  flex: 0 0 auto;
  gap: 0.08rem;
  margin-left: auto;
  max-width: 8rem;
  color: var(--ink-muted);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.15;
  opacity: 0.8;
  text-align: right;
  white-space: normal;
}

.picksheet-main .neutral-site-note span:first-child {
  font-weight: 900;
}

.picksheet-main .picksheet-table thead th {
  text-align: center;
}

.picksheet-card > p {
  margin: 0;
  padding: 1rem;
}

.nfl-bracket-sheet {
  margin: 1rem 0;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-top: 4px solid var(--gold);
  border-radius: 8px;
  background: #fff;
}

.nfl-bracket-heading {
  display: flex;
  gap: 1rem;
  align-items: end;
  justify-content: space-between;
  padding: 1rem 1.1rem;
  background: #f8fafc;
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}

.nfl-bracket-heading h3,
.nfl-bracket-heading p {
  margin: 0;
}

.nfl-bracket-heading > p {
  max-width: 42rem;
  color: var(--ink-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.nfl-bracket-grid {
  display: grid;
  grid-template-columns: minmax(340px, 1.7fr) minmax(250px, 1fr) minmax(230px, 0.9fr);
  min-height: 34rem;
}

.bracket-round {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
  padding: 1rem;
  border-right: 1px solid rgba(15, 23, 42, 0.12);
}

.bracket-round:last-child {
  border-right: 0;
}

.bracket-round h4 {
  margin: 0 0 0.25rem;
  color: var(--green-deep);
  font-size: 1rem;
  text-align: center;
}

.bracket-conference-label {
  padding: 0.28rem 0.5rem;
  background: var(--green-deep);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

.bracket-matchup {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 6px;
  padding: 0.55rem;
  background: #fff;
}

.bracket-matchup legend {
  padding: 0 0.3rem;
  color: var(--ink-muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.bracket-team {
  cursor: pointer;
}

.bracket-team input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.bracket-team span {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  min-height: 2.55rem;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 5px;
  padding: 0.4rem 0.55rem;
  background: #f8fafc;
  color: var(--dark);
  font-weight: 800;
}

.bracket-team input:checked + span {
  border-color: var(--gold);
  background: #fff8df;
  color: var(--green-deep);
  box-shadow: inset 4px 0 0 var(--gold);
}

.bracket-team input:focus-visible + span {
  outline: 3px solid rgba(214, 168, 63, 0.35);
  outline-offset: 1px;
}

.bracket-team input[aria-invalid="true"] + span,
.bracket-advance select[aria-invalid="true"] {
  border-color: #b91c1c;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.14);
}

.bracket-team .team-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.bracket-conference {
  justify-content: space-around;
  background: #f8fafc;
}

.bracket-champion {
  justify-content: center;
  background: #fff8df;
}

.bracket-advance {
  display: grid;
  gap: 0.45rem;
  position: relative;
  color: var(--green-deep);
  font-weight: 900;
}

.bracket-advance::before {
  position: absolute;
  top: 50%;
  left: -1rem;
  width: 1rem;
  border-top: 2px solid var(--gold);
  content: "";
}

.bracket-advance select {
  width: 100%;
  min-height: 2.75rem;
  border: 2px solid var(--green);
  border-radius: 6px;
  padding: 0.45rem 0.55rem;
  background: #fff;
  color: var(--dark);
  font: inherit;
}

.bracket-trophy {
  padding: 1rem;
  border: 2px solid var(--gold);
  border-radius: 6px;
  background: #fff;
  text-align: center;
}

.survivor-pick-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: 1rem;
  align-items: end;
  margin: 1rem 0;
  padding: 1rem;
  border: 2px solid var(--gold);
  border-radius: 8px;
  background: #fffdf3;
  box-shadow: 0 3px 12px rgba(107, 79, 0, 0.12);
}

.survivor-pick-card h3 {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 0 0.25rem;
  color: var(--green-deep);
}

.survivor-optional-flag {
  display: inline-flex;
  padding: 0.18rem 0.45rem;
  border-radius: 4px;
  background: var(--gold);
  color: #352600;
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.survivor-pick-card .survivor-pick-reminder {
  margin-bottom: 0.3rem;
  color: #7f1d1d;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.survivor-pick-card p {
  margin: 0;
}

.survivor-used-teams {
  margin-top: 0.55rem !important;
  color: #7f1d1d;
  font-size: 0.92rem;
  line-height: 1.35;
}

.survivor-pick-card label {
  display: grid;
  gap: 0.35rem;
  font-weight: 900;
  color: var(--green-deep);
}

.survivor-pick-card select {
  min-height: 2.6rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.55rem 0.65rem;
  background: #fff;
  color: var(--dark);
  font: inherit;
}

.survivor-pick-card select[aria-invalid="true"] {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.14);
}

.survivor-duplicate-message {
  margin-top: 0.55rem !important;
  padding: 0.65rem 0.75rem;
  border: 1px solid #fca5a5;
  border-radius: 6px;
  background: #fef2f2;
  color: #7f1d1d;
  font-weight: 800;
}

.survivor-out-message {
  padding: 0.75rem;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  background: #fee2e2;
  color: #7f1d1d;
  font-weight: 800;
}

.picks-locked-message {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  border: 1px solid #fda4af;
  border-left: 5px solid #be123c;
  border-radius: 6px;
  background: #fff1f2;
  color: #881337;
}

.picks-locked-message strong {
  font-weight: 950;
}

.live-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.45rem;
  padding: 0.45rem 0.9rem;
  border: 0;
  border-radius: 6px;
  background: #1f6feb;
  color: #fff !important;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.live-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.live-button-small {
  min-height: 2rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.9rem;
}

.live-button-lock {
  background: #9f1239;
}

.live-button-unlock {
  background: #16794b;
}

.live-admin-pick-actions,
.live-row-actions,
.admin-pick-editor-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.live-admin-pick-actions {
  margin: 0 0 1rem;
}

.live-admin-pick-actions form,
.live-row-actions form {
  margin: 0;
}

.admin-results-entry-table .admin-results-league-divider th {
  padding: 0.58rem 0.75rem;
  border-top: 4px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  background: #fff8df;
  color: var(--green-deep);
  font-size: 0.92rem;
  font-weight: 900;
  text-align: left;
}

.modern-results-table .results-league-row th {
  padding: 0.58rem 0.75rem;
  border-top: 4px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  background: #8f1010;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 900;
  text-align: center;
}

.modern-results-table tbody td.results-column-hover:not(.date-cell):not(.conf-cell):not(.team-cell):not(.winner-cell) {
  position: relative;
}

.modern-results-table tbody th.results-column-hover {
  position: relative;
}

.modern-results-table .results-column-hover::after {
  position: absolute;
  inset: 0;
  z-index: 12;
  border-inline: 2px solid rgba(159, 113, 0, 0.35);
  background: rgba(242, 201, 76, 0.2);
  content: "";
  pointer-events: none;
}

/* The admin picks preview scrolls as one grid; no columns are frozen horizontally. */
.admin-pick-review-table thead th,
.admin-pick-review-table tbody th,
.admin-pick-review-table tbody td,
.admin-picks-preview-table thead th,
.admin-picks-preview-table tbody th,
.admin-picks-preview-table tbody td {
  left: auto !important;
  right: auto !important;
}

.admin-pick-review-table th:nth-child(6),
.admin-pick-review-table td:nth-child(6) {
  min-width: 112px;
}

.admin-picks-preview-table tbody th,
.admin-picks-preview-table tbody td {
  position: static;
}

.admin-pick-compare-form {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 0 0 0.8rem;
}

#pick-preview {
  scroll-margin-top: 5rem;
}

.admin-pick-compare-form label {
  display: grid;
  gap: 0.25rem;
  min-width: 12rem;
  color: var(--green-deep);
  font-size: 0.82rem;
  font-weight: 900;
}

.admin-pick-compare-note {
  margin: 0 0 0.7rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid #d6b13e;
  border-radius: 6px;
  background: #fff8df;
  color: var(--green-deep);
}

.admin-pick-compare-note.has-no-differences {
  border-color: #86b89c;
  background: #eef7f0;
}

.admin-pick-difference-counts {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0.35rem;
}

.admin-pick-difference-counts > span {
  padding: 0.15rem 0.45rem;
  border: 1px solid rgba(6, 47, 31, 0.28);
  border-radius: 4px;
  background: #fff;
  white-space: nowrap;
}

.admin-pick-compare-form .live-button-secondary {
  background: #5f6b65;
}

.admin-pick-compare-form + .live-alert-error {
  margin: 0 0 0.7rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid #fca5a5;
  border-radius: 6px;
  background: #fee2e2;
  color: #7f1d1d;
  font-weight: 800;
}

.admin-picks-preview-table thead th.admin-pick-compare-player {
  background: #6b4f00;
  color: #fff8df;
  box-shadow: inset 0 -4px 0 #f2c94c;
}

.admin-picks-preview-table tbody td.admin-pick-difference {
  background: #fff0a8 !important;
  color: #7d140f;
  box-shadow: inset 0 0 0 3px #d39b00;
  font-weight: 950;
}

@media (max-width: 720px) {
  .admin-pick-compare-form {
    align-items: stretch;
  }

  .admin-pick-compare-form label {
    flex: 1 1 100%;
    min-width: 0;
  }
}

.live-row-actions {
  justify-content: center;
  flex-wrap: nowrap;
}

.pick-lock-badge {
  display: inline-flex;
  justify-content: center;
  min-width: 5.5rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-weight: 900;
}

.pick-lock-badge.is-locked {
  background: #ffe4e6;
  color: #9f1239;
}

.pick-lock-badge.is-unlocked {
  background: #dcfce7;
  color: #166534;
}

.survivor-pick-status {
  display: inline-flex;
  justify-content: center;
  min-width: 2.8rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 900;
}

.survivor-pick-status.is-made {
  background: #dcfce7;
  color: #166534;
}

.survivor-pick-status.is-missing {
  background: #fef3c7;
  color: #854d0e;
}

.pick-comment-badge,
.pick-comment-count {
  display: inline-flex;
  justify-content: center;
  padding: 0.25rem 0.55rem;
  border: 1px solid #d39b00;
  border-radius: 4px;
  background: #fff8df;
  color: #6b4f00;
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
}

.pick-comment-badge:hover,
.pick-comment-badge:focus-visible {
  background: #f8e7a4;
  color: #4f3a00;
}

.admin-pick-comments {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.admin-pick-comment,
.admin-pick-editor-comment {
  padding: 0.85rem 1rem;
  border-left: 5px solid var(--gold);
  border-radius: 6px;
  background: #fffdf6;
}

.admin-pick-comment > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

.admin-pick-comment time {
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.admin-pick-comment p,
.admin-pick-editor-comment p {
  margin: 0.5rem 0 0;
  white-space: normal;
}

.admin-pick-editor-comment {
  margin: 0.8rem 0 1rem;
}

.admin-pick-editor-heading {
  justify-content: space-between;
}

.admin-pick-editor-heading h3 {
  margin-bottom: 0;
}

.admin-pick-edit-table select {
  min-width: 190px;
}

.admin-survivor-editor {
  display: grid;
  gap: 0.35rem;
  max-width: 360px;
  margin-top: 1rem;
  font-weight: 900;
}

.live-muted {
  color: #64748b;
}

.live-radio {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-right: 1rem;
  font-weight: 700;
}

.live-radio input {
  min-height: auto;
}

.live-tabs,
.live-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.live-tabs a,
.live-admin-grid a {
  display: grid;
  gap: 0.3rem;
  padding: 0.85rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a;
  text-decoration: none;
}

.live-admin-grid span {
  color: #64748b;
  font-size: 0.92rem;
}

.live-standings-tabs {
  margin: 0 auto 1rem;
  max-width: 860px;
}

.live-standings-tabs a {
  font-weight: 900;
  text-align: center;
}

.live-week-switcher {
  display: flex;
  justify-content: flex-end;
  margin: -0.5rem 0 1rem;
}

.live-week-switcher label {
  display: grid;
  gap: 0.3rem;
  color: var(--green-deep);
  font-weight: 900;
}

.live-week-switcher select {
  min-height: 2.45rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.45rem 0.65rem;
  background: #fff;
  color: var(--dark);
  font: inherit;
}

.live-week-card .leader-list a {
  color: inherit;
}

.live-data-page .card {
  border-radius: 8px;
}

.live-flash {
  width: min(1180px, calc(100% - 2rem));
  margin: 1rem auto 0;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #14532d;
  font-weight: 800;
}

.live-flash-error {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #7f1d1d;
}

.score-api-provider-warning {
  background: #fff8df;
  border-color: #d6b13e;
  color: #614600;
  font-weight: 700;
}

.admin-quick-nav {
  border-top: 1px solid #d6b13e;
  border-bottom: 2px solid #d6b13e;
  background: #fff8df;
}

.admin-quick-nav-scroll {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0.35rem 0.75rem;
  overflow-x: auto;
  box-sizing: border-box;
  scrollbar-width: thin;
}

.admin-quick-nav a {
  flex: 0 0 auto;
  padding: 0.38rem 0.58rem;
  border-bottom: 3px solid transparent;
  color: var(--green-deep);
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.admin-quick-nav a:hover,
.admin-quick-nav a:focus-visible,
.admin-quick-nav a[aria-current="page"] {
  border-bottom-color: #a72b24;
  color: #7d140f;
}

.admin-quick-nav .admin-quick-nav-logout {
  margin-left: auto;
  color: #9f1239;
}

@media (max-width: 720px) {
  .admin-quick-nav-scroll {
    gap: 0.05rem;
    padding: 0.28rem 0.4rem;
  }

  .admin-quick-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 2rem;
    padding: 0.3rem 0.45rem;
    font-size: 0.76rem;
  }

  .admin-quick-nav .admin-quick-nav-logout {
    margin-left: 0.1rem;
  }
}

.footer-admin-link {
  color: inherit;
  opacity: 0.35;
  text-decoration: none;
}

.footer-admin-link:hover,
.footer-admin-link:focus {
  opacity: 0.75;
  text-decoration: none;
}

.survivor-content-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 12px 32px;
  box-sizing: border-box;
}

.survivor-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.2), transparent 55%),
    radial-gradient(circle at top right, rgba(52, 211, 153, 0.2), transparent 55%),
    rgba(15, 23, 42, 0.96);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.35);
  color: #e5e7eb;
}

.survivor-card-header {
  margin-bottom: 18px;
}

.survivor-page-title {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0 0 4px;
  color: #e5e7eb;
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
}

.survivor-page-title span {
  color: #cbd5e1;
  font-size: 0.8em;
  opacity: 0.9;
}

.survivor-page-subtitle {
  margin: 0;
  color: #cbd5f5;
  font-size: 0.9rem;
}

.survivor-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  margin-bottom: 10px;
  color: #cbd5f5;
  font-size: 0.78rem;
}

.legend-label {
  color: #9ca3af;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legend-pill {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 2px 8px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
}

.legend-swatch {
  width: 14px;
  height: 14px;
  border: 1px solid rgba(15, 23, 42, 0.9);
  border-radius: 4px;
}

.legend-swatch.alive { background: #16a34a; }
.legend-swatch.loss { background: #b91c1c; }
.legend-swatch.pending { background: #ca8a04; }
.legend-swatch.empty { background: #111827; }

.survivor-table-wrapper {
  max-height: none;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 14px;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.98));
  -webkit-overflow-scrolling: touch;
}

.survivor-scrollbar-top {
  width: 100%;
  height: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: rgba(15, 23, 42, 0.96);
  box-sizing: border-box;
  scrollbar-color: #ca8a04 #111827;
}

.survivor-scrollbar-top[hidden] {
  display: none;
}

.survivor-scrollbar-spacer {
  height: 1px;
}

.survivor-scrollbar-top:not([hidden]) + .survivor-table-wrapper {
  border-radius: 0 0 14px 14px;
}

.survivor-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
  color: #e5e7eb;
  font-size: 0.8rem;
  table-layout: fixed;
}

.survivor-table thead {
  position: relative;
  z-index: 5;
  transform: translateY(var(--survivor-head-y, 0px));
  will-change: transform;
}

.survivor-table th,
.survivor-table td {
  padding: 7px 8px;
  border-right: 1px solid rgba(31, 41, 55, 0.95);
  border-bottom: 1px solid rgba(55, 65, 81, 0.85);
  text-align: center;
  white-space: nowrap;
}

.survivor-table thead th {
  position: sticky;
  top: auto;
  z-index: 3;
  background: rgba(15, 23, 42, 0.98);
  color: #9ca3af;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.survivor-table tbody tr:nth-child(even) { background: rgba(15, 23, 42, 0.6); }
.survivor-table tbody tr:nth-child(odd) { background: rgba(15, 23, 42, 0.72); }

.survivor-table .player-col {
  position: sticky;
  left: 0;
  z-index: 2;
  width: 7rem;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: 4px 0 8px rgba(15, 23, 42, 0.85);
  color: #e5e7eb;
  font-weight: 800;
  text-align: left;
}

.survivor-table thead .player-col {
  top: auto;
  z-index: 4;
}

.survivor-pick-cell.win,
.survivor-status.alive {
  background: rgba(22, 163, 74, 0.18);
  color: #bbf7d0;
}

.survivor-pick-cell.loss,
.survivor-status.out {
  background: rgba(239, 68, 68, 0.2);
  color: #fecaca;
}

.survivor-pick-cell.pending {
  background: rgba(202, 138, 4, 0.2);
  color: #fde68a;
}

.survivor-pick-cell.empty {
  color: rgba(148, 163, 184, 0.75);
  font-style: italic;
}

.survivor-count {
  font-weight: 900;
}

.survivor-status {
  display: inline-flex;
  justify-content: center;
  min-width: 4rem;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  font-weight: 900;
}

.live-team-page .team-picks-table.team-picks-body-table thead {
  display: table-header-group;
}

.live-team-page .team-table-body-scroll {
  overflow-x: auto;
}

.live-team-page .team-picks-table {
  min-width: 1120px;
}

.live-team-page .team-picks-table .record-col {
  width: 4.5%;
  min-width: 3.6rem;
}

.live-team-page .team-picks-table td.team-pick-empty {
  background: rgba(15, 23, 42, 0.55);
  color: rgba(226, 232, 240, 0.45);
}

.live-team-page .team-picks-table td.pct-cell {
  box-shadow: none;
  min-width: 3.2rem;
}

.live-team-page .team-picks-table thead th:nth-child(2),
.live-team-page .team-picks-table tbody td:nth-child(2) {
  border-left: 2px solid #facc15;
  border-right: 2px solid #facc15;
  box-shadow: none;
}

.live-team-page .team-picks-table thead tr:first-child th:nth-child(2) {
  box-shadow: none;
}

.live-team-page .card-wide {
  margin-bottom: 2rem;
}

@media (min-width: 1100px) {
  .live-team-page .team-data-page,
  .live-stats-page {
    box-sizing: border-box;
    max-width: 1600px;
    width: calc(100% - 2rem);
  }

  .live-team-page .team-table-wrapper {
    overflow: hidden;
  }

  .live-team-page .team-table-body-scroll {
    max-height: none;
    overflow-x: auto;
    overflow-y: visible;
  }

  .live-team-page .team-picks-table {
    min-width: 1120px;
    width: 100%;
  }

  .live-stats-page .stats-weekly-row {
    gap: 1.25rem;
  }

  .live-stats-page .table-scroll {
    overflow-x: visible;
  }

  .live-stats-page .ncaa-performance-table,
  .live-stats-page .nfl-performance-table {
    font-size: 0.76rem;
    min-width: 0;
    table-layout: fixed;
    width: 100%;
  }

  .live-stats-page .ncaa-performance-table th,
  .live-stats-page .ncaa-performance-table td,
  .live-stats-page .nfl-performance-table th,
  .live-stats-page .nfl-performance-table td {
    overflow-wrap: normal;
    padding-left: 0.28rem;
    padding-right: 0.28rem;
    white-space: normal;
  }
}

.admin-visit-stats {
  margin-bottom: 1rem;
}

.admin-visit-stats .card-header {
  align-items: center;
}

.admin-visit-totals {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0.75rem 0 1rem;
}

.admin-visit-totals span {
  background: #f7faf8;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  color: var(--green-deep);
  padding: 0.65rem 0.75rem;
}

.admin-visit-totals b {
  display: block;
  font-size: 1.3rem;
}

.admin-visit-table {
  border-collapse: collapse;
  max-width: 520px;
  width: 100%;
}

.admin-visit-table th,
.admin-visit-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.45rem 0.6rem;
  text-align: left;
}

.admin-visit-table th:last-child,
.admin-visit-table td:last-child {
  text-align: right;
}

@media (max-width: 600px) {
  .admin-visit-totals {
    grid-template-columns: 1fr;
  }
}

.live-info-page .standings-main,
.live-info-page .content-wrapper {
  padding-top: 2.75rem;
  position: relative;
  z-index: 0;
}

.live-info-page .standings-main .card,
.live-info-page .content-wrapper .card {
  position: relative;
  z-index: 0;
}

header nav .dropdown-toggle {
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
}

header nav .dropdown-toggle:hover,
header nav .dropdown-toggle:focus-visible,
header nav li.dropdown.open > .dropdown-toggle {
  background: rgba(255, 255, 255, 0.12);
  color: var(--gold-soft);
}

header nav li.info-dropdown > .dropdown-menu {
  left: auto;
  right: 0;
}

@media (max-width: 720px) {
  .picksheet-main .team-name.has-neutral-site {
    position: relative;
    padding-bottom: 1.35rem;
  }

  .picksheet-main .team-display-name {
    min-width: 0;
  }

  .picksheet-main .neutral-site-note {
    position: absolute;
    right: 0.8rem;
    bottom: 0.42rem;
    left: calc(0.8rem + 50px + 0.65rem);
    display: flex;
    gap: 0.2rem;
    margin-left: 0;
    max-width: none;
    padding: 0;
    width: auto;
    font-size: 0.62rem;
    line-height: 1.05;
    text-align: left;
  }

  .picksheet-main .neutral-site-note span {
    white-space: nowrap;
  }

  .picksheet-main .neutral-site-note span:first-child::after {
    content: " -";
  }

  .weekly-results-main .results-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .live-main {
    width: min(100% - 1rem, 1180px);
  }

  .live-home-main,
  .live-results-main,
  .live-data-page {
    width: min(100% - 1rem, 1180px);
  }

  .live-home-main .scoreboard {
    grid-template-columns: 1fr;
  }

  .live-home-main .quick-links {
    grid-template-columns: 1fr;
  }

  .live-week-switcher {
    justify-content: stretch;
  }

  .live-card {
    padding: 0.85rem;
  }

  .survivor-pick-card {
    grid-template-columns: 1fr;
  }

  .nfl-bracket-heading {
    display: grid;
    align-items: start;
  }

  .nfl-bracket-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .bracket-round {
    border-right: 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.12);
  }

  .bracket-round:last-child {
    border-bottom: 0;
  }

  .bracket-advance::before {
    content: none;
  }

  .survivor-content-wrapper {
    width: calc(100% - 0.5rem);
    max-width: calc(100% - 0.5rem);
    padding: 10px 4px 18px;
  }

  .survivor-card {
    padding: 12px 8px 10px;
    border-radius: 12px;
  }

  .survivor-table {
    min-width: 1180px;
    font-size: 0.64rem;
  }

  .live-form-card form,
  .live-inline-form,
  .live-toolbar {
    display: grid;
    align-items: stretch;
  }
}

@media (max-width: 768px) {
  .picksheet-main,
  .live-stats-page {
    width: calc(100% - 0.5rem) !important;
    max-width: calc(100% - 0.5rem) !important;
    box-sizing: border-box;
  }

  .picksheet-main .picksheet-table thead {
    display: none !important;
  }

  .survivor-content-wrapper {
    box-sizing: border-box;
    margin-inline: auto;
  }

  .admin-visit-stats,
  .admin-visit-totals,
  .admin-visit-totals span {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }

  .admin-visit-stats .table-scroll {
    box-sizing: border-box;
    max-width: 100%;
    overflow-x: hidden;
    width: 100%;
  }

  .admin-visit-table {
    max-width: 100%;
    min-width: 0 !important;
    table-layout: fixed;
    width: 100%;
  }

  .admin-visit-table th,
  .admin-visit-table td {
    box-sizing: border-box;
    overflow-wrap: anywhere;
    padding-left: 0.4rem;
    padding-right: 0.4rem;
    white-space: normal;
  }

  .admin-visit-table th:first-child,
  .admin-visit-table td:first-child {
    width: 68%;
  }

  .admin-visit-table th:last-child,
  .admin-visit-table td:last-child {
    width: 32%;
  }

  .standings-main .live-form-card,
  .standings-main .live-form-card form,
  .standings-main .live-form-card label,
  .standings-main .live-toolbar,
  .standings-main .live-toolbar label {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }

  .standings-main .live-form-card input:not([type="hidden"]),
  .standings-main .live-form-card select,
  .standings-main .live-form-card button,
  .standings-main .live-toolbar select,
  .standings-main .live-toolbar button {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }

  .standings-main .live-form-card input[type="file"] {
    font-size: 0.72rem;
    overflow: hidden;
    padding: 0.35rem;
  }

  .score-api-status-grid .admin-summary-detail {
    min-width: 0;
  }

  .score-api-status-grid .admin-summary-detail strong {
    font-size: 0.82rem;
    overflow-wrap: anywhere;
  }
}

@media (orientation: landscape) and (max-width: 950px) and (max-height: 500px) {
  .picksheet-main .picksheet-table thead {
    display: none !important;
  }

  .admin-visit-stats .table-scroll {
    box-sizing: border-box;
    max-width: 100%;
    overflow-x: hidden;
    width: 100%;
  }

  .admin-visit-table {
    max-width: 100%;
    min-width: 0 !important;
    table-layout: fixed;
    width: 100%;
  }

  .admin-visit-table th,
  .admin-visit-table td {
    box-sizing: border-box;
    overflow-wrap: anywhere;
    white-space: normal;
  }
}

@media (max-width: 768px),
       (orientation: landscape) and (max-width: 950px) and (max-height: 500px) {
  .admin-picks-main .modern-results-table thead,
  .admin-results-main .modern-results-table thead,
  .admin-score-api-main .modern-results-table thead,
  .admin-players-main .modern-results-table thead {
    position: static !important;
    transform: none !important;
  }

  .admin-picks-main .modern-results-table thead th,
  .admin-results-main .modern-results-table thead th,
  .admin-score-api-main .modern-results-table thead th,
  .admin-players-main .modern-results-table thead th {
    left: auto !important;
    right: auto !important;
    position: static !important;
  }
}

/* Statistics insights */
.stats-insights-section,
.pool-insights-page {
  margin-bottom: 2.5rem;
}

.stats-section-title {
  margin: 2rem 0 1rem;
  text-align: center;
}

.stats-section-title h2,
.stats-section-title p {
  margin: 0;
}

.stats-section-title p {
  color: var(--ink-muted);
}

.stats-insight-league {
  margin-bottom: 1.25rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.stats-insight-heading,
.insights-panel-heading,
.survivor-analytics-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.stats-insight-heading {
  margin-bottom: 0.9rem;
}

.stats-insight-heading h3,
.stats-insight-heading span,
.insights-panel-heading h3,
.insights-panel-heading span {
  margin: 0;
}

.stats-insight-heading > span,
.insights-panel-heading > span {
  color: var(--ink-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.stats-insight-kicker,
.survivor-analytics-heading > div > span {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stats-insight-metrics,
.insights-metric-grid,
.comparison-summary,
.survivor-analytics-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
  gap: 0.65rem;
}

.stats-insight-metrics > div,
.insights-metric-grid > div,
.comparison-summary > div,
.survivor-analytics-metrics > div {
  min-width: 0;
  padding: 0.7rem;
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  background: #f4f7f3;
}

.stats-insight-metrics span,
.insights-metric-grid span,
.comparison-summary span,
.survivor-analytics-metrics span {
  display: block;
  color: var(--ink-muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.stats-insight-metrics strong,
.insights-metric-grid strong,
.comparison-summary strong,
.survivor-analytics-metrics strong {
  display: block;
  color: var(--green-deep);
  font-size: 1.25rem;
}

.insights-metric-grid small,
.comparison-summary small {
  display: block;
  color: var(--ink-muted);
  font-size: 0.72rem;
}

.stats-rank-track {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.8rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.stats-rank-track-label {
  color: var(--green-deep);
  font-weight: 900;
}

.stats-rank-track > div {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
}

.stats-rank-track > div > span {
  display: grid;
  flex: 0 0 auto;
  min-width: 64px;
  padding: 0.35rem 0.45rem;
  border-radius: 4px;
  background: var(--green-deep);
  color: #fff;
  text-align: center;
}

.stats-rank-track small {
  color: var(--gold-soft);
  font-size: 0.68rem;
}

.stats-insight-grid,
.insights-content-grid,
.survivor-analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.stats-insight-table-block,
.insights-data-panel,
.survivor-analytics-grid > article,
.similarity-section {
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.stats-insight-table-block h4,
.survivor-analytics-grid h3 {
  margin: 0 0 0.55rem;
  color: var(--green-deep);
}

.stats-compact-table,
.insights-table,
.survivor-analytics-table,
.similarity-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.stats-compact-table th,
.stats-compact-table td,
.insights-table th,
.insights-table td,
.survivor-analytics-table th,
.survivor-analytics-table td,
.similarity-table th,
.similarity-table td {
  padding: 0.42rem 0.5rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.stats-compact-table td:not(:first-child),
.insights-table td:not(:first-child),
.survivor-analytics-table td:not(:first-child) {
  text-align: center;
}

.stats-compact-table thead th,
.insights-table thead th,
.survivor-analytics-table thead th,
.similarity-table thead th {
  background: var(--green-deep);
  color: #fff;
  font-size: 0.72rem;
}

.trend-positive,
.comparison-correct {
  color: #126b39;
  font-weight: 900;
}

.trend-negative,
.comparison-miss {
  color: var(--red);
  font-weight: 900;
}

.stats-insight-list {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stats-insight-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--line);
}

.stats-insight-list span {
  color: var(--ink-muted);
  text-align: right;
}

.stats-contrarian-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  margin-top: 0.8rem;
  padding: 0.65rem 0.75rem;
  border-radius: 4px;
  background: #fff7dc;
}

.pool-insights-page .page-hero {
  margin-bottom: 1rem;
}

.insights-tabs {
  margin-bottom: 1rem;
}

.insights-tabs a.active {
  background: var(--green-deep);
  color: #fff;
}

.insights-metric-grid,
.comparison-summary {
  margin-bottom: 1rem;
}

.comparison-picker {
  margin-bottom: 1rem;
}

.comparison-picker form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
}

.comparison-picker label {
  display: grid;
  gap: 0.25rem;
  min-width: 190px;
  color: var(--green-deep);
  font-weight: 800;
}

.comparison-picker select {
  min-height: 2.4rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.4rem 0.55rem;
  background: #fff;
  font: inherit;
}

.comparison-content-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
}

.similarity-section {
  margin-top: 1rem;
}

.similarity-scroll {
  overflow-x: auto;
  margin-top: 0.7rem;
}

.similarity-table {
  width: max-content;
  min-width: 100%;
}

.similarity-table th,
.similarity-table td {
  min-width: 42px;
  padding: 0.35rem;
  text-align: center;
}

.similarity-table tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 75px;
  background: #fff;
  color: var(--green-deep);
  text-align: left;
}

.similarity-high {
  background: #1f6b46;
  color: #fff;
}

.similarity-medium {
  background: #f1d98b;
  color: #33270b;
}

.similarity-low {
  background: #f2c7c4;
  color: #6f1712;
}

.survivor-analytics {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: 8px;
  background: #fff;
  color: var(--dark);
  box-shadow: var(--shadow-sm);
}

.survivor-analytics-heading {
  margin-bottom: 0.8rem;
}

.survivor-analytics-heading h2,
.survivor-analytics-heading p {
  margin: 0;
}

.survivor-analytics-heading p {
  color: var(--ink-muted);
}

.survivor-unused-teams {
  grid-column: 1 / -1;
}

.survivor-unused-teams > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.survivor-unused-teams span {
  padding: 0.25rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f4f7f3;
  font-size: 0.8rem;
  font-weight: 700;
}

/* Polished statistics presentation */
.stats-insights-section {
  padding: 1rem;
  border: 1px solid #cbd8d1;
  border-top: 5px solid var(--gold);
  border-radius: 6px;
  background: #edf3ef;
  box-shadow: 0 10px 28px rgba(13, 55, 38, 0.09);
}

.stats-insights-section .stats-section-title {
  margin: 0 0 1rem;
  padding: 0.2rem 0 0.85rem;
  border-bottom: 1px solid #c7d5cd;
}

.stats-insights-section .stats-section-title h2 {
  color: var(--green-deep);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.stats-insight-league {
  overflow: hidden;
  padding: 0 1rem 1rem;
  border-top: 0;
  border-radius: 5px;
  box-shadow: 0 5px 16px rgba(13, 55, 38, 0.08);
}

.stats-insight-heading {
  margin: 0 -1rem 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 3px solid var(--gold);
  background: var(--green-deep);
  color: #fff;
}

.stats-insight-heading h3 {
  color: #fff;
  font-size: 1.08rem;
}

.stats-insight-heading .stats-insight-kicker {
  color: var(--gold-soft);
}

.stats-insight-heading > span {
  color: #dfece5;
}

.stats-insight-metrics > div,
.insights-metric-grid > div,
.comparison-summary > div,
.survivor-analytics-metrics > div {
  position: relative;
  overflow: hidden;
  padding: 0.8rem 0.72rem;
  border: 1px solid #d4ded8;
  border-top: 3px solid var(--gold);
  border-left: 1px solid #d4ded8;
  background: #f8faf9;
  box-shadow: 0 2px 7px rgba(13, 55, 38, 0.05);
  text-align: center;
}

.stats-insight-metrics > div:first-child,
.insights-metric-grid > div:first-child,
.comparison-summary > div:first-child,
.survivor-analytics-metrics > div:first-child {
  background: #e9f3ed;
  border-color: #b9cfc2;
}

.stats-insight-metrics strong,
.insights-metric-grid strong,
.comparison-summary strong,
.survivor-analytics-metrics strong {
  margin-top: 0.18rem;
  line-height: 1.12;
}

.stats-rank-track {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  margin-top: 0.9rem;
  padding: 0.65rem 0.75rem;
  background: #fbfcfb;
}

.stats-rank-track > div {
  position: relative;
  align-items: center;
  gap: 0.7rem;
  padding: 0.2rem 0;
}

.stats-rank-track > div::before {
  position: absolute;
  right: 0.35rem;
  left: 0.35rem;
  height: 2px;
  background: #cfb75f;
  content: "";
}

.stats-rank-track > div > span {
  z-index: 1;
  min-width: 72px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #aec3b7, 0 2px 6px rgba(13, 55, 38, 0.13);
}

.stats-visual-panel {
  overflow: hidden;
  padding: 0;
  box-shadow: 0 3px 10px rgba(13, 55, 38, 0.05);
}

.stats-visual-panel h4,
.survivor-analytics-grid h3 {
  margin: 0;
  padding: 0.68rem 0.78rem;
  border-bottom: 1px solid #d3ddd7;
  background: #eaf2ed;
  font-size: 0.91rem;
}

.stats-form-legend {
  display: flex;
  justify-content: flex-end;
  gap: 0.85rem;
  padding: 0.55rem 0.75rem 0;
  color: var(--ink-muted);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.stats-form-legend span::before {
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  margin-right: 0.3rem;
  border-radius: 2px;
  content: "";
  vertical-align: -0.05rem;
}

.stats-form-legend .is-player::before,
.stats-meter-fill.is-player {
  background: #1d6a47;
}

.stats-form-legend .is-pool::before,
.stats-meter-fill.is-pool {
  background: #d4aa2b;
}

.stats-form-list,
.stats-record-list {
  display: grid;
  gap: 0;
  padding: 0.35rem 0.75rem 0.7rem;
}

.stats-form-row,
.stats-record-row {
  padding: 0.55rem 0;
  border-bottom: 1px solid #e2e8e4;
}

.stats-form-row:last-child,
.stats-record-row:last-child {
  border-bottom: 0;
}

.stats-form-row-heading {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.32rem;
  color: #29483b;
  font-size: 0.78rem;
}

.stats-dual-meter {
  display: grid;
  gap: 0.2rem;
}

.stats-meter-line {
  position: relative;
  height: 0.8rem;
  overflow: hidden;
  border-radius: 2px;
  background: #e5ebe7;
}

.stats-meter-line b {
  position: absolute;
  top: 50%;
  right: 0.3rem;
  color: #173e30;
  font-size: 0.64rem;
  line-height: 1;
  transform: translateY(-50%);
}

.stats-meter-fill {
  display: block;
  min-width: 0;
  height: 100%;
}

.stats-record-row {
  display: grid;
  grid-template-columns: minmax(105px, 1fr) minmax(90px, 1.35fr) 3.5rem;
  gap: 0.65rem;
  align-items: center;
}

.stats-record-row > div:first-child {
  min-width: 0;
}

.stats-record-row strong,
.stats-record-row span {
  display: block;
}

.stats-record-row strong {
  overflow: hidden;
  color: #29483b;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats-record-row > div:first-child span {
  color: var(--ink-muted);
  font-size: 0.7rem;
}

.stats-record-row > b {
  color: var(--green-deep);
  font-size: 0.8rem;
  text-align: right;
}

.stats-record-meter {
  height: 0.48rem;
  overflow: hidden;
  border-radius: 4px;
  background: #e3e9e5;
}

.stats-record-meter span {
  height: 100%;
  border-radius: inherit;
  background: #b28a19;
}

.stats-record-row.is-strong .stats-record-meter span { background: #1d6a47; }
.stats-record-row.is-steady .stats-record-meter span { background: #d0a11f; }
.stats-record-row.is-risk .stats-record-meter span { background: #b64a42; }
.stats-record-row.is-neutral .stats-record-meter span { background: #9aa9a1; }

.stats-empty-state {
  margin: 0;
  padding: 0.75rem 0;
  color: var(--ink-muted);
  font-size: 0.82rem;
}

.stats-visual-panel .stats-insight-list {
  padding: 0.7rem 0.75rem;
}

.stats-contrarian-strip {
  border: 1px solid #ead797;
  border-left: 4px solid var(--gold);
}

.pool-insights-page .insights-tabs {
  display: flex;
  gap: 0.35rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #cbd8d1;
}

.pool-insights-page .insights-tabs a {
  border: 1px solid #c4d1ca;
  border-radius: 4px;
  background: #fff;
  color: var(--green-deep);
  font-weight: 800;
}

.insights-data-panel,
.similarity-section {
  overflow: hidden;
  padding: 0;
  box-shadow: 0 4px 13px rgba(13, 55, 38, 0.07);
}

.insights-panel-heading {
  min-height: 3.6rem;
  padding: 0.68rem 0.8rem;
  border-bottom: 3px solid var(--gold);
  background: var(--green-deep);
  color: #fff;
}

.insights-panel-heading h3 {
  margin: 0;
  color: #fff;
  font-size: 0.96rem;
}

.insights-panel-heading > span {
  max-width: 48%;
  color: #dbe9e1;
  text-align: right;
}

.insights-table tbody tr:nth-child(even) > *,
.survivor-analytics-table tbody tr:nth-child(even) > * {
  background: #f6f9f7;
}

.insights-table tbody tr:hover > *,
.survivor-analytics-table tbody tr:hover > * {
  background: #fff5d2;
}

.insights-table tbody td:last-child,
.survivor-analytics-table tbody td:last-child {
  color: var(--green-deep);
  font-weight: 900;
}

.similarity-section .insights-panel-heading {
  min-height: 0;
}

.similarity-scroll {
  margin: 0;
  padding: 0.75rem;
}

.survivor-analytics {
  overflow: hidden;
  padding: 0 1rem 1rem;
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(13, 55, 38, 0.09);
}

.survivor-analytics-heading {
  margin: 0 -1rem 1rem;
  padding: 0.8rem 1rem;
  border-bottom: 3px solid var(--gold);
  background: var(--green-deep);
}

.survivor-analytics-heading h2,
.survivor-analytics-heading > div > span,
.survivor-analytics-heading p {
  color: #fff;
}

.survivor-analytics-heading > div > span {
  color: var(--gold-soft);
}

.survivor-analytics-grid > article {
  overflow: hidden;
  padding: 0;
  box-shadow: 0 3px 10px rgba(13, 55, 38, 0.05);
}

.survivor-unused-teams > div {
  padding: 0.75rem;
}

@media (max-width: 820px) {
  .stats-insight-grid,
  .insights-content-grid,
  .comparison-content-grid,
  .survivor-analytics-grid {
    grid-template-columns: 1fr;
  }

  .stats-insight-heading,
  .insights-panel-heading,
  .survivor-analytics-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
  }

  .survivor-unused-teams {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .stats-insight-league,
  .survivor-analytics {
    padding: 0 0.7rem 0.7rem;
  }

  .stats-insight-heading,
  .survivor-analytics-heading {
    margin-right: -0.7rem;
    margin-left: -0.7rem;
    padding: 0.7rem;
  }

  .stats-insights-section {
    padding: 0.65rem;
  }

  .stats-rank-track {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .stats-rank-track > div > span {
    min-width: 66px;
  }

  .stats-record-row {
    grid-template-columns: minmax(88px, 1fr) minmax(72px, 1fr) 3.15rem;
    gap: 0.42rem;
  }

  .stats-record-row strong {
    white-space: normal;
  }

  .insights-panel-heading > span {
    max-width: none;
    text-align: left;
  }

  .stats-insight-metrics,
  .insights-metric-grid,
  .comparison-summary,
  .survivor-analytics-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .comparison-picker form,
  .comparison-picker label,
  .comparison-picker select,
  .comparison-picker button {
    width: 100%;
  }

  .stats-insight-list li {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.1rem;
  }

  .stats-insight-list span {
    text-align: left;
  }
}
