
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f3f4f6;
  color: #111827;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  background: #111827;
  color: white;
}

.brand {
  color: white;
  text-decoration: none;
  font-size: 24px;
  font-weight: 800;
}

.sub {
  margin-left: 12px;
  color: #cbd5e1;
}

nav a {
  color: white;
  text-decoration: none;
  margin-left: 16px;
  font-weight: 700;
}

.container {
  max-width: 1400px;
  margin: 24px auto;
  padding: 0 18px;
}

.card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
}

label {
  display: block;
  font-weight: 700;
  margin: 12px 0 6px;
}

input,
select {
  width: 100%;
  padding: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
}

input[type="checkbox"] {
  width: auto;
}

button,
.button {
  display: inline-block;
  background: #16a34a;
  color: white;
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}

.secondary,
.button.secondary {
  background: #374151 !important;
}

.error {
  color: #b91c1c;
  font-weight: 700;
}

.success {
  color: #166534;
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

th,
td {
  border: 1px solid #d1d5db;
  padding: 8px 10px;
  text-align: center;
  white-space: nowrap;
}

th {
  background: #111827;
  color: white;
}

td.team,
td.player {
  text-align: left;
  font-weight: 700;
}

.hit,
.zero-hit {
  background: #22c55e;
  color: #052e16;
  font-weight: 800;
}

.metric {
  font-weight: 800;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.footer {
  max-width: 1400px;
  margin: 24px auto;
  padding: 18px;
  color: #6b7280;
}

/* Pool layout */

.pool-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.closest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.leader-card {
  background: #111827;
  color: white;
  padding: 18px;
  border-radius: 12px;
}

.leader-card h3 {
  margin: 0 0 8px;
}

.leader-card p {
  margin: 0 0 10px;
}

.leader-progress {
  margin: 12px 0;
  font-size: 20px;
  font-weight: 800;
}

.team-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 16px;
}

.team-progress-card {
  background: white;
  border-radius: 14px;
  padding: 20px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}

.team-progress-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.team-progress-header h2 {
  margin: 0;
  font-size: 22px;
}

.team-progress-header p {
  margin: 6px 0 0;
  color: #4b5563;
}

.progress-badge {
  background: #16a34a;
  color: white;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
}

.metrics-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.metrics-row div {
  background: #f3f4f6;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 14px;
}

.missing-section {
  margin-bottom: 16px;
  font-size: 14px;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(36px, 1fr));
  gap: 8px;
}

.score-box {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 10px 0;
  text-align: center;
  background: #f9fafb;
  font-weight: 800;
  min-height: 40px;
}

.score-box.complete {
  background: #22c55e;
  color: #052e16;
  border-color: #16a34a;
}

.activity-feed {
  list-style: none;
  padding: 0;
  margin: 0;
}

.activity-feed li {
  padding: 10px 0;
  border-bottom: 1px solid #e5e7eb;
}

/* Image-based team logos */

.team-logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
  vertical-align: middle;
}

.team-logo-img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  display: inline-block;
  flex: 0 0 auto;
}

.team-logo-large .team-logo-img {
  width: 58px;
  height: 58px;
}

.team-icon-name {
  font-weight: 800;
}

.leader-card .team-logo-wrap {
  color: white;
}

.leader-card .team-icon-name {
  color: white;
}

/* Winner popup */

.winner-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17,24,39,.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
}

.winner-modal {
  max-width: 520px;
  background: white;
  border-radius: 14px;
  padding: 26px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

.winner-modal h2 {
  margin-top: 0;
  font-size: 28px;
}

/* Mobile */

@media (max-width: 850px) {
  .topbar,
  .pool-header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav a {
    display: inline-block;
    margin: 8px 12px 0 0;
  }

  .container {
    margin-top: 14px;
    padding: 0 10px;
  }

  .score-grid {
    grid-template-columns: repeat(4, minmax(40px, 1fr));
  }

  .team-progress-header {
    flex-direction: column;
  }

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

@media (max-width: 700px) {
  .team-logo-img {
    width: 40px;
    height: 40px;
  }

  .team-logo-large .team-logo-img {
    width: 50px;
    height: 50px;
  }
}

/* v2.1.6 full stylesheet marker */



/* v2.2.0 subscription and change-highlighting */

.subscribe-panel {
  border-left: 5px solid #16a34a;
}

.subscribe-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.user-card-highlight {
  border: 3px solid #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, .18), 0 8px 24px rgba(0,0,0,.12);
}

.user-card-highlight::before {
  content: "Your Card";
  display: inline-block;
  background: #f59e0b;
  color: #111827;
  padding: 5px 10px;
  border-radius: 999px;
  font-weight: 900;
  margin-bottom: 10px;
}

.score-box.recent-change {
  background: #facc15;
  color: #422006;
  border-color: #eab308;
  animation: pulseChange 1.4s ease-in-out infinite;
}

@keyframes pulseChange {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(250, 204, 21, .45); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 5px rgba(250, 204, 21, .12); }
}

.new-since-visit {
  background: #fffbeb;
  border-left: 5px solid #f59e0b;
}

.next-game {
  margin-top: 14px;
  padding: 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  font-size: 14px;
}

.next-game strong {
  display: block;
  margin-bottom: 4px;
}

.subscription-status {
  font-weight: 800;
  color: #166534;
}

@media (max-width: 700px) {
  .subscribe-form {
    grid-template-columns: 1fr;
  }
}


/* v2.2.1 metric leader highlights */

.metric-high-runs {
  background: #dcfce7 !important;
  border: 2px solid #16a34a !important;
  color: #166534 !important;
  font-weight: 900;
}

.metric-high-so {
  background: #dbeafe !important;
  border: 2px solid #2563eb !important;
  color: #1e3a8a !important;
  font-weight: 900;
}


/* v2.2.2 RUNS/SO leaderboard sections */

.leader-card .leader-progress {
  color: #ffffff;
}

.leader-card .team-logo-wrap {
  margin: 6px 0;
}

.leader-card div:last-child {
  margin-top: 8px;
  font-size: 13px;
}




/* v2.3.1 cleaned transparent logo assets */

.team-logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
  vertical-align: middle;
}

.team-logo-img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  display: inline-block;
  flex: 0 0 auto;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.team-logo-large .team-logo-img {
  width: 58px;
  height: 58px;
}

.team-icon-name {
  font-weight: 800;
}

.leader-card .team-logo-wrap,
.leader-card .team-icon-name {
  color: white;
}

@media (max-width: 700px) {
  .team-logo-img {
    width: 40px;
    height: 40px;
  }

  .team-logo-large .team-logo-img {
    width: 50px;
    height: 50px;
  }
}



/* v2.4.0 pool-page sort and compact leader tabs */

.sort-card {
  padding: 14px 18px;
}

.pool-sort-form {
  display: grid;
  grid-template-columns: auto minmax(220px, 320px);
  gap: 12px;
  align-items: center;
}

.pool-sort-form label {
  margin: 0;
}

.leaders-panel {
  overflow: hidden;
}

.leaders-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
}

.leaders-header h2 {
  margin: 0;
}

.leader-tabs {
  display: inline-flex;
  background: #f3f4f6;
  padding: 4px;
  border-radius: 999px;
  gap: 4px;
}

.leader-tab {
  background: transparent;
  color: #374151;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 900;
}

.leader-tab.active {
  background: #111827;
  color: #ffffff;
}

.leader-tab-panel {
  display: none;
}

.leader-tab-panel.active {
  display: block;
}

.leader-tab-panel h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
}

.tie-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  background: #fef3c7;
  color: #92400e;
  font-size: 12px;
  font-weight: 900;
}

.compact-leader-list {
  display: grid;
  gap: 10px;
}

.compact-leader-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.compact-leader-main {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.compact-leader-text {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.compact-leader-text strong {
  font-size: 15px;
}

.compact-leader-text span {
  color: #4b5563;
  font-size: 13px;
}

.compact-leader-metric {
  white-space: nowrap;
  font-weight: 950;
  color: #166534;
  background: #dcfce7;
  border: 1px solid #86efac;
  border-radius: 999px;
  padding: 7px 10px;
}

.compact-user-leader {
  border: 2px solid #f59e0b;
  background: #fffbeb;
}

.compact-your-tag {
  display: inline-flex !important;
  width: fit-content;
  color: #111827 !important;
  background: #f59e0b;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 11px !important;
  font-weight: 900;
}

@media (max-width: 700px) {
  .pool-sort-form {
    grid-template-columns: 1fr;
  }

  .leaders-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .leader-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .leader-tab {
    width: 100%;
    padding: 9px 8px;
  }

  .compact-leader-row {
    padding: 10px;
  }

  .compact-leader-metric {
    font-size: 13px;
  }
}

.muted-note{color:#6b7280;font-size:13px;margin:4px 0 8px;}



/* v2.5.0 desktop-horizontal leaders + admin option */

@media (min-width: 901px) {
  .leaders-panel {
    padding-bottom: 14px;
  }

  .leader-tab-panel.active {
    display: block;
  }

  .compact-leader-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .compact-leader-row {
    min-width: 280px;
    max-width: 340px;
    flex: 0 0 auto;
  }

  .compact-leader-main {
    min-width: 0;
  }

  .compact-leader-text {
    min-width: 0;
  }

  .compact-leader-text strong,
  .compact-leader-text span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}



/* v2.5.1 scroll fix */

html,
body {
  overflow-y: auto !important;
  overflow-x: hidden;
  height: auto !important;
  min-height: 100%;
}

.container {
  overflow: visible !important;
}

.leaders-panel {
  overflow: visible !important;
}

@media (min-width: 901px) {
  .compact-leader-list {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
  }
}

/* Only the winner overlay should lock visual focus. It should not affect normal pages when absent. */
.winner-overlay {
  overscroll-behavior: contain;
}



/* v2.5.2 stability fixes */

/* Restore normal mouse-wheel page scrolling */
html,
body {
  height: auto !important;
  min-height: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  position: static !important;
}

body.modal-open {
  overflow-y: auto !important;
}

.container,
.card,
.leaders-panel,
.team-card-grid {
  overflow: visible !important;
}

/* Logos are now clean generated transparent PNG badges */
.team-logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
  vertical-align: middle;
}

.team-logo-img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  display: inline-block;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  flex: 0 0 auto;
}

.team-logo-large .team-logo-img {
  width: 58px;
  height: 58px;
}

/* Make Leaders compact horizontally on desktop without trapping vertical scroll */
.leaders-panel {
  max-width: 100%;
}

.leader-tab-panel {
  display: none;
}

.leader-tab-panel.active {
  display: block;
}

@media (min-width: 901px) {
  .leaders-panel {
    padding-bottom: 12px;
  }

  .compact-leader-list {
    display: grid !important;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 320px);
    gap: 12px;
    overflow-x: auto !important;
    overflow-y: visible !important;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
    max-width: 100%;
    padding-bottom: 8px;
  }

  .compact-leader-row {
    min-width: 0 !important;
    max-width: none !important;
    width: 100%;
  }
}

@media (max-width: 900px) {
  .compact-leader-list {
    display: grid !important;
    grid-auto-flow: row;
    gap: 10px;
    overflow: visible !important;
  }
}

/* Admin/help minor display */
.muted-note {
  color: #6b7280;
  font-size: 13px;
  margin: 4px 0 8px;
}

/* v2.5.2 marker */



/* v2.5.4 Leaders card layout fix */

.compact-leader-row {
  align-items: flex-start !important;
  gap: 14px !important;
}

.compact-leader-main {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  align-items: flex-start !important;
}

.compact-leader-text {
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.compact-leader-text strong {
  display: block !important;
  line-height: 1.2 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

.compact-leader-text span {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

.compact-your-tag {
  display: inline-flex !important;
  width: fit-content !important;
  max-width: fit-content !important;
  align-self: flex-start !important;
  margin-top: 2px !important;
  background: #f59e0b !important;
  color: #111827 !important;
  border-radius: 999px !important;
  padding: 3px 8px !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
}

.compact-leader-metric {
  flex: 0 0 auto !important;
  min-width: 58px !important;
  text-align: center !important;
  align-self: flex-start !important;
}

.compact-user-leader {
  border: 2px solid #f59e0b !important;
  background: #fffbeb !important;
}

@media (max-width: 520px) {
  .compact-leader-row {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    align-items: start !important;
  }

  .compact-leader-main {
    min-width: 0 !important;
  }

  .compact-leader-main .team-logo-wrap {
    align-items: flex-start !important;
  }

  .compact-leader-main .team-icon-name {
    white-space: normal !important;
    line-height: 1.15 !important;
  }

  .compact-leader-metric {
    min-width: 54px !important;
    padding: 6px 8px !important;
  }
}



/* v2.5.5 remove Your Card pill and restore compact layout */

.compact-your-tag {
  display: none !important;
}

.compact-user-leader {
  background: #fffbeb !important;
  border: 2px solid #f59e0b !important;
}

.compact-leader-row {
  align-items: center !important;
}

.compact-leader-text {
  display: block !important;
}

.compact-leader-text strong {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.compact-leader-metric {
  align-self: center !important;
}



/* v2.5.6 revert leader layout */

.compact-leader-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

.compact-leader-main {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

.compact-leader-text {
  display: grid !important;
  gap: 2px !important;
  min-width: 0 !important;
}

.compact-leader-text strong {
  display: block !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  line-height: 1.15 !important;
}

.compact-leader-text span {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.compact-leader-metric {
  flex: 0 0 auto !important;
  min-width: 58px !important;
  text-align: center !important;
  align-self: center !important;
}

@media (max-width: 520px) {
  .compact-leader-row {
    display: flex !important;
    align-items: center !important;
  }

  .compact-leader-main {
    min-width: 0 !important;
  }

  .compact-leader-text strong {
    font-size: 14px !important;
  }
}



/* v2.5.7 leader metric pill layout */

.compact-leader-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

.compact-leader-main {
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

.compact-leader-main .team-logo-wrap {
  min-width: 0 !important;
}

.compact-leader-main .team-icon-name {
  white-space: normal !important;
  line-height: 1.15 !important;
}

.compact-leader-pill-stack {
  flex: 0 0 auto;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  min-width: 66px;
}

.compact-leader-name {
  font-size: 11px;
  line-height: 1.05;
  font-weight: 900;
  color: #111827;
  max-width: 78px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-leader-metric {
  min-width: 58px !important;
  text-align: center !important;
  align-self: auto !important;
}

.compact-your-tag {
  display: none !important;
}

@media (max-width: 520px) {
  .compact-leader-pill-stack {
    min-width: 62px;
  }

  .compact-leader-name {
    max-width: 70px;
    font-size: 10px;
  }

  .compact-leader-metric {
    min-width: 54px !important;
    padding: 6px 8px !important;
  }
}



/* v2.5.8 recent pools card layout */

.hero-card h1 {
  margin-top: 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.section-header h2 {
  margin: 0 0 4px;
}

.section-header p {
  margin: 0;
  color: #6b7280;
}

.recent-pool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.pool-card-link {
  display: block;
  text-decoration: none;
  color: #111827;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}

.pool-card-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,.10);
  border-color: #9ca3af;
}

.pool-card-subscribed {
  border: 2px solid #f59e0b;
  background: #fffbeb;
}

.pool-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.pool-card-top h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.pool-status {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.status-active {
  background: #dcfce7;
  color: #166534;
}

.status-ended {
  background: #fee2e2;
  color: #991b1b;
}

.status-soon {
  background: #dbeafe;
  color: #1e3a8a;
}

.pool-card-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.pool-card-meta div {
  background: #f9fafb;
  border-radius: 10px;
  padding: 10px;
}

.pool-card-meta span {
  display: block;
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 3px;
}

.pool-card-meta strong {
  display: block;
  font-size: 14px;
}

.pool-card-footer {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.pool-card-footer span {
  background: #f3f4f6;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
  color: #374151;
}

.pool-card-footer .subscribed-pill {
  background: #f59e0b;
  color: #111827;
}

@media (max-width: 700px) {
  .section-header {
    flex-direction: column;
  }

  .recent-pool-grid {
    grid-template-columns: 1fr;
  }

  .pool-card-meta {
    grid-template-columns: 1fr;
  }
}



/* v2.6.0 roles, participant dashboard, admin contact */

.admin-signup-fields {
  margin-top: 18px;
  padding: 16px;
  border-radius: 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.participant-pool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.participant-pool-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.participant-pool-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.participant-pool-top h2 {
  margin: 0;
}

.participant-team-row {
  margin: 14px 0;
}

.admin-contact-box {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
  margin: 14px 0;
}

.admin-contact-box h2 {
  margin-top: 0;
}

.email-pref-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.inline-check {
  margin-top: 10px;
  font-weight: 800;
}

.inline-check input {
  width: auto;
}

@media (max-width: 700px) {
  .participant-pool-grid {
    grid-template-columns: 1fr;
  }

  .email-pref-form {
    display: grid;
  }
}



/* v2.8.0 SaaS admin */

.saas-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.saas-stat-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.saas-stat-card span {
  display: block;
  color: #6b7280;
  font-size: 13px;
  font-weight: 800;
}

.saas-stat-card strong {
  display: block;
  font-size: 34px;
  margin-top: 8px;
}

@media (max-width:700px) {
  .saas-stat-grid {
    grid-template-columns: 1fr 1fr;
  }
}
