:root {
  color-scheme: light;
  --bg: #f5f4ef;
  --surface: #ffffff;
  --surface-2: #eef2ee;
  --ink: #17201b;
  --muted: #66716b;
  --line: #d7ddd6;
  --accent: #146c5f;
  --accent-2: #c63f2f;
  --gold: #d59b2f;
  --shadow: 0 16px 40px rgba(21, 35, 29, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

select {
  font: inherit;
}

button {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 6px;
  cursor: pointer;
}

button.secondary {
  background: transparent;
  color: var(--ink);
}

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

.app-shell {
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: 18px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 4px 22px;
}

.topbar h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 0.95;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.topbar__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.icon-button {
  width: 42px;
  padding: 0;
  font-size: 20px;
}

.workspace {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
}

.entry-panel,
.main-panel,
.overview-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.entry-panel {
  align-self: start;
  display: grid;
  gap: 14px;
  padding: 16px;
  position: sticky;
  top: 14px;
}

.field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.field input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 11px;
  color: var(--ink);
  background: #fff;
}

.progress-block {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.progress-row {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
}

.progress-row strong {
  color: var(--ink);
}

.progress-track {
  height: 9px;
  overflow: hidden;
  background: var(--surface-2);
  border-radius: 999px;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width 160ms ease;
}

.button-row {
  display: grid;
  grid-template-columns: 1fr 74px;
  gap: 8px;
}

.submit-button {
  width: 100%;
  background: var(--accent-2);
  border-color: var(--accent-2);
}

.status-line {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.main-panel {
  min-width: 0;
  overflow: hidden;
}

.group-tabs {
  display: grid;
  grid-template-columns: repeat(12, minmax(42px, 1fr));
  border-bottom: 1px solid var(--line);
}

.group-tabs button {
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  color: var(--muted);
  min-height: 48px;
  padding: 0;
  font-weight: 800;
}

.group-tabs button:last-child {
  border-right: 0;
}

.group-tabs button.is-active {
  background: var(--accent);
  color: #fff;
}

.group-tabs button.is-complete:not(.is-active) {
  color: var(--accent);
  background: #e8f1ed;
}

.group-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  min-height: 560px;
}

.match-list,
.table-panel {
  padding: 18px;
}

.table-panel {
  border-left: 1px solid var(--line);
  background: #fbfcfa;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-heading h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0;
}

.section-heading span {
  color: var(--muted);
  font-size: 13px;
}

.match-card {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 56px 28px 56px minmax(120px, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 70px;
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

.match-card:first-child {
  border-top: 0;
}

.team-name {
  min-width: 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.team-name.away {
  text-align: right;
}

.score-input {
  width: 56px;
  height: 44px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}

.score-separator {
  color: var(--muted);
  text-align: center;
  font-weight: 900;
}

.match-meta {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.standings-table th,
.standings-table td {
  border-bottom: 1px solid var(--line);
  padding: 9px 6px;
  text-align: right;
  white-space: nowrap;
}

.standings-table th:first-child,
.standings-table td:first-child {
  text-align: left;
}

.standings-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.standings-table .team-cell {
  max-width: 150px;
  white-space: normal;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.position-pill {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 6px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
}

.position-pill.qualifies {
  background: var(--accent);
  color: #fff;
}

.position-pill.third {
  background: var(--gold);
  color: #1c1303;
}

.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.overview-panel {
  min-width: 0;
  padding: 18px;
  scroll-margin-top: 76px;
}

.overview-panel.is-nav-target {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(20, 108, 95, 0.14), var(--shadow);
}

.follow-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 0 10px;
  background: var(--bg);
}

.follow-nav-button {
  display: grid;
  place-items: center;
  min-height: 42px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  text-decoration: none;
}

.follow-nav-button:focus,
.follow-nav-button:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}


.follow-grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.75fr) minmax(0, 1.25fr);
  gap: 16px;
  align-items: start;
}

.follow-leaderboard-panel,
.follow-match-panel {
  min-height: 620px;
}

.follow-schedule-panel {
  grid-column: 1 / -1;
}

.public-leaderboard {
  display: grid;
  gap: 8px;
}

.leaderboard-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 11px;
}

.leaderboard-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.leaderboard-legend i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
}

.public-leaderboard-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  background: #fff;
}

.public-leaderboard-row span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 900;
  font-size: 13px;
}

.public-leaderboard-row:first-child span {
  background: var(--gold);
  color: #211604;
}

.public-leaderboard-row strong {
  overflow-wrap: anywhere;
}

.leaderboard-namebar {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.leaderboard-name-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.leaderboard-name-line strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.leaderboard-stack {
  display: flex;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
}

.leaderboard-stack i {
  display: block;
  height: 100%;
  min-width: 2px;
}

.is-outcome {
  background: #d92128;
}

.is-exact {
  background: #075eaa;
}

.is-structure {
  background: #718551;
}

.is-cup {
  background: #d59b2f;
}

.is-topscorer {
  background: #d84a8b;
}

.leaderboard-name-line b {
  flex: 0 0 auto;
  text-align: right;
  font-size: 22px;
}

.match-filter-row {
  display: grid;
  grid-template-columns: minmax(130px, 0.32fr) minmax(0, 0.68fr);
  gap: 10px;
  margin-bottom: 12px;
}

.schedule-filter-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.schedule-filter-row button {
  min-height: 36px;
}

.schedule-filter-row button.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.follow-schedule-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.follow-schedule-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.follow-schedule-row.is-active {
  border-color: var(--accent);
  box-shadow: inset 4px 0 0 var(--accent);
}

.follow-schedule-row span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.follow-schedule-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.schedule-matchline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
}

.schedule-matchline strong:first-child {
  text-align: right;
}

.schedule-matchline strong:last-child {
  text-align: left;
}

.schedule-matchline b {
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
  font-size: 17px;
  font-weight: 1000;
}

.schedule-matchline b.is-result {
  color: var(--ink);
}

.follow-schedule-row small {
  grid-column: 2;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.bracket-panel {
  grid-column: 1 / -1;
}

.qualified-list,
.third-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.team-chip,
.third-row,
.knockout-match {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.team-chip {
  min-height: 46px;
  padding: 8px 10px;
}

.team-chip strong,
.third-row strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.team-chip span,
.third-row span {
  color: var(--muted);
  font-size: 12px;
}

.third-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.third-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 8px 10px;
}

.third-rank {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--surface-2);
  font-weight: 900;
}

.third-row.is-in .third-rank {
  background: var(--gold);
}

.third-points {
  font-weight: 900;
}

.knockout-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(170px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.knockout-round {
  min-width: 170px;
  display: grid;
  align-content: start;
  gap: 8px;
}

.knockout-round h3 {
  margin: 0;
  font-size: 14px;
}

.knockout-match {
  display: grid;
  gap: 5px;
  min-height: 68px;
  padding: 9px;
  font-size: 13px;
}

.knockout-match strong {
  overflow-wrap: anywhere;
}

.empty-state {
  color: var(--muted);
  padding: 18px 0;
}

.rules-panel {
  grid-column: 1 / -1;
}

.rules-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.rules-list article,
.entry-rules {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.rules-list article {
  min-height: 112px;
  padding: 12px;
}

.rules-list strong,
.entry-rules strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.rules-list p,
.entry-rules p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.entry-rules {
  padding: 10px;
  background: #fbfcfa;
}

.phase2-workspace {
  grid-template-columns: 300px minmax(0, 1fr);
}

.phase2-panel {
  padding: 18px;
}

.phase2-match-list {
  display: grid;
  gap: 10px;
}

.phase2-lookup {
  display: grid;
  gap: 14px;
  max-width: 520px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px;
  background: #fff;
}

.phase2-lookup[hidden] {
  display: none;
}

.phase2-lookup h2,
.phase2-lookup p {
  margin: 0;
}

.phase2-lookup p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.phase2-match-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  background: #fff;
}

.phase2-match-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.phase2-scoreline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px 18px 56px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

.phase2-scoreline strong:first-child {
  text-align: right;
}

.phase2-scoreline strong:last-child {
  text-align: left;
}

.phase2-scoreline input {
  width: 56px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-align: center;
  font-weight: 900;
}

.phase2-scoreline b {
  color: var(--muted);
  text-align: center;
}

.phase2-advancing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.phase2-advancing button {
  min-width: 0;
  background: transparent;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.phase2-advancing button.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.admin-grid {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 16px;
}

.admin-list-panel,
.admin-detail-panel {
  min-height: 680px;
}

.entry-list {
  display: grid;
  gap: 8px;
}

.pool-form {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.pool-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.pool-links a {
  display: grid;
  place-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.entry-list-item {
  display: grid;
  gap: 4px;
  width: 100%;
  min-height: 72px;
  padding: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.entry-list-item.is-active {
  border-color: var(--accent);
  box-shadow: inset 4px 0 0 var(--accent);
}

.entry-list-item span,
.entry-list-item small {
  color: var(--muted);
  font-size: 12px;
}

.admin-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.leaderboard-summary {
  margin-bottom: 16px;
}

.sync-runs-admin {
  margin-bottom: 16px;
}

.sync-run-list {
  display: grid;
  gap: 6px;
}

.sync-run-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) minmax(150px, 0.55fr);
  gap: 8px;
  align-items: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 9px;
  background: #fff;
  font-size: 12px;
}

.sync-run-row strong {
  color: var(--accent);
  text-transform: uppercase;
}

.sync-run-row.is-error strong {
  color: var(--accent-2);
}

.sync-run-row span,
.sync-run-row small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.match-distribution-admin {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.match-select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  background: #fff;
  color: var(--ink);
}

.distribution-panel {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  background: #fbfcfa;
}

.distribution-match-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.distribution-match-title strong {
  overflow-wrap: anywhere;
}

.distribution-match-title span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.outcome-bars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.outcome-bar {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 28px 42px;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  font-size: 12px;
}

.outcome-bar > span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--surface-2);
  font-weight: 900;
}

.outcome-bar div,
.scoreline-row div {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
}

.outcome-bar b,
.scoreline-row span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.outcome-bar small,
.scoreline-row small {
  color: var(--muted);
}

.scoreline-list {
  display: grid;
  gap: 6px;
}

.scoreline-row {
  display: grid;
  grid-template-columns: 46px minmax(80px, 0.55fr) 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 30px;
  font-size: 12px;
}

.scoreline-row > b {
  font-size: 14px;
}

.scenario-list {
  display: grid;
  gap: 8px;
  padding-top: 4px;
}

.scenario-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.scenario-heading strong {
  color: var(--ink);
  font-size: 14px;
}

.scenario-row {
  display: grid;
  grid-template-columns: 46px minmax(90px, 0.25fr) minmax(140px, 0.35fr) minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
  font-size: 12px;
}

.scenario-row > b {
  font-size: 16px;
}

.scenario-row > strong {
  font-size: 14px;
}

.scenario-row > span {
  color: var(--muted);
}

.scenario-row small {
  grid-column: 4;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.scenario-row small + small {
  margin-top: -4px;
}

.scenario-row small b {
  color: var(--ink);
}

.leaderboard-table {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 54px minmax(210px, 0.9fr);
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  background: #fff;
}

.leaderboard-row span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 900;
  font-size: 12px;
}

.leaderboard-row b {
  text-align: right;
  font-size: 18px;
}

.leaderboard-row small {
  color: var(--muted);
  font-size: 12px;
}

.summary-tile {
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  background: #fff;
}

.summary-tile span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
}

.summary-tile strong {
  overflow-wrap: anywhere;
}

.admin-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 16px;
}

.section-heading.compact {
  margin-top: 8px;
}

.prediction-list {
  display: grid;
  gap: 6px;
}

.prediction-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 58px minmax(0, 1fr) 70px;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.prediction-row span,
.prediction-row small {
  color: var(--muted);
}

.prediction-row b {
  text-align: center;
  font-size: 15px;
}

.prediction-row strong:nth-of-type(2) {
  text-align: right;
}

.admin-qualified {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1050px) {
  .workspace,
  .group-layout,
  .overview-grid,
  .follow-grid,
  .admin-grid,
  .admin-columns {
    grid-template-columns: 1fr;
  }

  .entry-panel {
    position: static;
  }

  .table-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .qualified-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rules-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .follow-schedule-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .app-shell {
    padding: 10px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 12px;
  }

  .topbar h1 {
    font-size: 34px;
  }

  .topbar__meta {
    width: 100%;
    justify-content: space-between;
  }

  .follow-nav {
    gap: 6px;
    margin-bottom: 10px;
  }

  .follow-nav-button {
    min-height: 40px;
    font-size: 12px;
  }

  .follow-leaderboard-panel,
  .follow-match-panel,
  .admin-list-panel,
  .admin-detail-panel {
    min-height: 0;
  }

  .overview-panel {
    padding: 12px;
  }

  .section-heading {
    margin-bottom: 10px;
  }

  .public-leaderboard {
    gap: 6px;
  }

  .public-leaderboard-row {
    grid-template-columns: 28px minmax(0, 1fr);
    min-height: 38px;
    padding: 6px 8px;
    gap: 8px;
  }

  .public-leaderboard-row span {
    width: 23px;
    height: 23px;
    font-size: 12px;
  }

  .leaderboard-name-line {
    gap: 8px;
  }

  .leaderboard-name-line strong {
    font-size: 14px;
  }

  .leaderboard-name-line b {
    font-size: 18px;
  }

  .leaderboard-namebar {
    gap: 3px;
  }

  .leaderboard-stack {
    height: 5px;
  }

  .group-tabs {
    grid-template-columns: repeat(6, minmax(42px, 1fr));
  }

  .match-card {
    grid-template-columns: minmax(0, 1fr) 48px 18px 48px minmax(0, 1fr);
    gap: 7px;
  }

  .score-input {
    width: 48px;
  }

  .qualified-list,
  .third-list,
  .admin-summary,
  .admin-qualified {
    grid-template-columns: 1fr;
  }

  .prediction-row {
    grid-template-columns: 28px minmax(0, 1fr) 52px minmax(0, 1fr);
  }

  .prediction-row small {
    grid-column: 2 / -1;
  }

  .leaderboard-row {
    grid-template-columns: 28px minmax(0, 1fr) 44px;
  }

  .leaderboard-row small {
    grid-column: 2 / -1;
  }

  .sync-run-row {
    grid-template-columns: 1fr;
  }

  .match-filter-row,
  .outcome-bars {
    grid-template-columns: 1fr;
  }

  .schedule-filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .rules-list {
    grid-template-columns: 1fr;
  }

  .scoreline-row {
    grid-template-columns: 42px minmax(80px, 1fr) 28px;
  }

  .scoreline-row small {
    grid-column: 2 / -1;
  }

  .scenario-row {
    grid-template-columns: 42px minmax(0, 1fr) auto;
  }

  .scenario-row > span,
  .scenario-row small {
    grid-column: 2 / -1;
  }
}
