:root {
  color-scheme: light;
  --bg: #f7f1e5;
  --surface: #fffaf0;
  --surface-strong: #fffdf7;
  --ink: #0c1720;
  --muted: #726b5d;
  --line: #e5d5b7;
  --green: #0b4b38;
  --green-dark: #062f24;
  --navy: #07121c;
  --navy-soft: #102235;
  --gold: #e1ad3f;
  --gold-dark: #9a6a16;
  --amber: #f26a1b;
  --red: #b63e3e;
  --shadow: 0 20px 54px rgba(30, 21, 6, 0.11);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% -10%, rgba(225, 173, 63, 0.24), transparent 30%),
    radial-gradient(circle at 86% 0%, rgba(9, 22, 34, 0.1), transparent 28%),
    linear-gradient(180deg, #fffaf0 0%, var(--bg) 42%, #f3eadb 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.visitor-locked > header,
body.visitor-locked > main {
  display: none;
}

body:not(.visitor-locked) .visitor-login {
  display: none;
}

.visitor-login {
  display: grid;
  place-items: center;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -10%, rgba(231, 184, 75, 0.28), transparent 30%),
    linear-gradient(145deg, #05070a 0%, #10161f 52%, #0b0704 100%);
  padding: 24px;
}

.visitor-login-card {
  display: grid;
  gap: 12px;
  width: min(100%, 380px);
  border: 1px solid rgba(231, 184, 75, 0.42);
  border-radius: 14px;
  background: rgba(11, 16, 23, 0.92);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.44);
  color: #fff8e8;
  padding: 24px;
}

.visitor-brand-logo {
  justify-self: center;
  width: min(210px, 70vw);
  margin-bottom: 2px;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.5));
}

.visitor-login-card h1 {
  margin: 0;
  font-size: 1.8rem;
}

.visitor-login-card p:not(.eyebrow),
.visitor-login-card label {
  color: #c2b18d;
  font-size: 0.9rem;
  font-weight: 800;
}

.visitor-login-card label {
  display: grid;
  gap: 6px;
}

.visitor-login-error {
  min-height: 20px;
  color: #ff8c82;
  font-size: 0.86rem;
  font-weight: 850;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #f4c55c 0%, var(--gold) 100%);
  color: #211604;
  cursor: pointer;
  min-height: 42px;
  padding: 0 16px;
  font-weight: 900;
  box-shadow: inset 0 -1px 0 rgba(68, 42, 0, 0.18);
}

button:hover {
  background: linear-gradient(180deg, #f6d074 0%, #d79825 100%);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--ink);
  min-height: 42px;
  padding: 10px 12px;
}

textarea {
  resize: vertical;
}

main,
.topbar {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(225, 173, 63, 0.38);
  border-radius: 0 0 18px 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 36%),
    linear-gradient(180deg, var(--navy-soft) 0%, var(--navy) 100%);
  box-shadow: 0 20px 46px rgba(7, 18, 28, 0.18);
  color: #fff7df;
  padding: 18px 20px;
  margin-bottom: 18px;
}

.brand-lockup {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.topbar-logo {
  width: 74px;
  height: 74px;
  object-fit: contain;
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.44));
}

.topbar h1 {
  color: #fff7df;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.22);
}

.topbar .eyebrow {
  color: var(--amber);
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.main-nav {
  display: flex;
  gap: 6px;
  max-width: min(100%, 760px);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav button {
  flex: 0 0 auto;
  border: 1px solid rgba(225, 173, 63, 0.28);
  background: rgba(255, 250, 240, 0.08);
  color: #f4ead6;
  min-height: 40px;
  white-space: nowrap;
  box-shadow: none;
}

.main-nav button.active {
  border-color: rgba(255, 218, 130, 0.76);
  background: linear-gradient(180deg, #f4c55c 0%, var(--gold) 100%);
  color: #1b1204;
}

.page-section-hidden {
  display: none !important;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 4.4rem);
  line-height: 0.95;
}

h2 {
  font-size: 1.45rem;
}

h3 {
  font-size: 1.05rem;
}

.eyebrow {
  margin-bottom: 6px;
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.ghost-button {
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--ink);
  box-shadow: none;
}

.ghost-button:hover {
  background: #fff4d9;
}

.ghost-button.danger {
  color: var(--red);
}

.auto-sync-button {
  display: inline-grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 8px;
  row-gap: 1px;
  border: 1px solid var(--line);
  background: #fff7e7;
  color: var(--ink);
  min-height: 46px;
  padding: 6px 12px;
  text-align: left;
}

.auto-sync-button:hover {
  background: #fff1d2;
}

.auto-sync-button .auto-sync-dot {
  grid-row: 1 / span 2;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #9aa39b;
  box-shadow: 0 0 0 3px rgba(154, 163, 155, 0.18);
}

.auto-sync-button span:not(.auto-sync-dot) {
  font-size: 0.84rem;
  font-weight: 950;
  line-height: 1;
}

.auto-sync-button small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1.1;
}

.auto-sync-button[data-state="on"] {
  border-color: rgba(13, 122, 85, 0.46);
  background: #eaf8ef;
  color: #063d2b;
}

.auto-sync-button[data-state="on"]:hover {
  background: #ddf1e6;
}

.auto-sync-button[data-state="on"] .auto-sync-dot {
  background: #0d7a55;
  box-shadow: 0 0 0 3px rgba(13, 122, 85, 0.18);
}

.auto-sync-button[data-state="on"] small {
  color: #0b6044;
}

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

.daily-summary-panel {
  margin-bottom: 16px;
}

.summary-body {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.55;
  white-space: pre-wrap;
}

.summary-archive-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.summary-archive-tools input {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 40px;
  padding: 0 10px;
  font: inherit;
  font-weight: 800;
}

.summary-archive-layout {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: 14px;
  align-items: start;
}

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

.summary-archive-list button {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  padding: 10px 12px;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}

.summary-archive-list button.active,
.summary-archive-list button:hover {
  border-color: rgba(225, 173, 63, 0.52);
  background: #fff3d4;
}

.summary-archive-list strong {
  font-size: 0.86rem;
  font-weight: 950;
}

.summary-archive-list span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.summary-article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  padding: 16px;
}

.summary-article h3 {
  margin: 0 0 10px;
  font-size: 1.4rem;
}

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

.summary-grid > div,
.daily-card,
.panel,
.admin-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 250, 240, 0.94)),
    var(--surface);
  box-shadow: var(--shadow);
}

.daily-card {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 108px;
  padding: 14px 14px 12px;
}

.daily-card i {
  position: static;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--navy);
  color: #ffe6a3;
  font-style: normal;
  font-weight: 950;
}

.daily-card-body {
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
}

.daily-card.good i {
  background: var(--green);
}

.daily-card.bad i {
  background: var(--red);
}

.daily-card span,
.daily-card em {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 850;
  line-height: 1.2;
}

.daily-card strong {
  display: block;
  margin: 0;
  color: var(--ink);
  font-size: 1.18rem;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.daily-card.good {
  border-color: rgba(11, 75, 56, 0.32);
  background: linear-gradient(135deg, #eef8ef 0, #fffaf0 74%);
}

.daily-card.bad {
  border-color: rgba(182, 62, 62, 0.28);
  background: linear-gradient(135deg, #fff2ee 0, #fffaf0 74%);
}

.daily-card.oranje-card {
  grid-template-columns: 46px minmax(0, 1fr);
  border-color: rgba(225, 173, 63, 0.48);
  background: linear-gradient(135deg, #fff1d2 0, #fffaf0 72%);
}

.daily-card.oranje-card i {
  background: #f26a2e;
}

.daily-card.oranje-card strong {
  color: #cc4e1c;
  font-size: 1.42rem;
  line-height: 1;
}

.daily-card.oranje-card.jump-certain {
  border-color: rgba(13, 122, 85, 0.42);
  background: linear-gradient(135deg, #fff8f3 0, #eefaf2 100%);
}

.daily-card.oranje-card.jump-certain i {
  background: #0d7a55;
  font-size: 1rem;
}

.daily-card.oranje-card.jump-certain strong {
  color: #0d7a55;
}

.daily-card.oranje-card.jump-certain em {
  color: #07563c;
  font-weight: 950;
}

.oranje-mini-bar {
  grid-column: 1 / -1;
  overflow: hidden;
  height: 7px;
  border-radius: 999px;
  background: #efe0c6;
  margin-top: 2px;
}

.oranje-mini-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--amber), var(--gold), var(--green));
  transition: width 260ms ease;
}

.progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf0eb;
  margin-bottom: 14px;
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transition: width 240ms ease;
}

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

.spotlight-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  min-height: 86px;
  padding: 14px;
}

.spotlight-card.live {
  border-color: rgba(231, 184, 75, 0.7);
  background: #fff7df;
}

.spotlight-card span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.spotlight-card strong {
  display: grid;
  gap: 6px;
  line-height: 1.3;
}

.spotlight-card strong span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  color: var(--ink);
}

.spotlight-card strong b {
  color: var(--green-dark);
  white-space: nowrap;
}

.spotlight-card.live strong b {
  color: #9b6500;
}

.summary-grid > div {
  min-height: 92px;
  padding: 18px;
}

.metric-label,
.standing-stat span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}

.summary-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 1.55rem;
}

.panel,
.admin-panel {
  margin-bottom: 16px;
  padding: 18px;
}

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

.standings {
  display: grid;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.standing-item {
  border-bottom: 1px solid var(--line);
}

.standing-item:last-child {
  border-bottom: 0;
}

.standing-row {
  display: grid;
  grid-template-columns: 46px minmax(160px, 1fr) repeat(var(--standing-stat-cols, 3), minmax(58px, 82px)) 44px;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 8px 10px;
  cursor: pointer;
}

.standing-row:hover {
  background-color: rgba(225, 173, 63, 0.1);
}

.standing-row.gold {
  background: linear-gradient(90deg, #fff0bd 0, #fffaf0 62%);
}

.standing-row.silver {
  background: linear-gradient(90deg, #eef1f3 0, #fffaf0 62%);
}

.standing-row.bronze {
  background: linear-gradient(90deg, #ffe1c5 0, #fffaf0 62%);
}

.standing-row.beer-lord {
  background: linear-gradient(90deg, #fff4cf 0, #fffaf0 62%);
}

.standing-pos span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--navy);
  color: #ffe6a3;
  font-size: 0.9rem;
  font-weight: 950;
}

.gold .standing-pos span {
  background: var(--gold);
  color: #2d2511;
  font-size: 1.1rem;
}

.silver .standing-pos span {
  background: #b8c0c6;
  color: #1f272b;
}

.bronze .standing-pos span {
  background: #c7783d;
  color: #fff;
}

.beer-lord .standing-pos span {
  background: #7a5500;
  color: #fff;
}

.player-name {
  display: grid;
  align-items: center;
  gap: 2px;
  font-weight: 800;
}

.player-name > strong {
  font-weight: 900;
}

.standing-details {
  display: grid;
  gap: 6px;
  border-top: 1px solid var(--line);
  background: #fbfcfa;
  padding: 10px;
}

.standing-details-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}

.standing-details-actions .ghost-button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.82rem;
}

.standing-details-actions span,
.standing-details-more {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.standing-details-more {
  padding: 4px 2px 0;
}

.standing-details-subtitle {
  margin-top: 6px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 950;
}

.standing-details-head,
.standing-detail-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 78px 78px 78px;
  align-items: center;
  gap: 12px;
}

.standing-details-head.upcoming,
.standing-detail-row.upcoming {
  grid-template-columns: minmax(220px, 1fr) 78px 118px;
}

.standing-details-head {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.standing-detail-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  min-height: 38px;
  padding: 7px 9px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.standing-detail-row.upcoming {
  border-color: var(--line);
  background: #fff;
}

.standing-details-head span:not(:first-child),
.standing-detail-score,
.standing-detail-result,
.standing-detail-time,
.standing-detail-points {
  text-align: right;
}

.standing-detail-row.scored {
  border-color: rgba(13, 122, 85, 0.26);
  background: #f2faf5;
}

.standing-detail-row:not(.scored):not(.upcoming) {
  border-color: rgba(182, 62, 62, 0.24);
  background: #fff7f5;
}

.standing-detail-match {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.standing-detail-score,
.standing-detail-result {
  color: #5f6a65;
  font-weight: 950;
  white-space: nowrap;
}

.standing-detail-row strong {
  color: var(--ink);
  text-align: right;
}

.standing-detail-row.scored strong {
  color: var(--green-dark);
}

.standing-detail-row:not(.scored):not(.upcoming) strong {
  color: var(--red);
}

.standing-detail-row.upcoming strong {
  color: var(--muted);
}

.standing-details-empty {
  border-top: 1px solid var(--line);
  background: #fbfcfa;
  color: var(--muted);
  padding: 12px;
  font-size: 0.9rem;
  font-weight: 800;
}

.prediction-viewer {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(13, 122, 85, 0.22);
  border-radius: 8px;
  background: #fbfcfa;
  margin-top: 14px;
  padding: 14px;
}

.prediction-viewer-head,
.prediction-viewer-tools {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.prediction-viewer-head h3 {
  margin-bottom: 4px;
}

.prediction-viewer-head span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.prediction-viewer-tools {
  align-items: center;
  justify-content: flex-start;
}

.prediction-viewer-tools select {
  max-width: 260px;
}

.prediction-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prediction-chips button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  min-height: 32px;
  padding: 0 10px;
  font-size: 0.82rem;
}

.prediction-chips span {
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(13, 122, 85, 0.28);
  border-radius: 8px;
  background: #edf8f2;
  min-height: 32px;
  padding: 0 10px;
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 900;
}

.prediction-table {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow-x: auto;
}

.prediction-table-head,
.prediction-table-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(var(--prediction-columns), minmax(118px, 1fr));
  min-width: calc(260px + var(--prediction-columns) * 128px);
}

.prediction-table-head {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #edf0eb;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  min-height: 34px;
  text-transform: uppercase;
}

.prediction-table-head span {
  display: flex;
  align-items: center;
  border-right: 1px solid var(--line);
  padding: 8px 10px;
}

.prediction-table-row {
  align-items: stretch;
  border-top: 1px solid var(--line);
}

.prediction-table-row > div {
  border-right: 1px solid var(--line);
  background: transparent;
  min-height: 54px;
  padding: 8px 10px;
}

.prediction-table-row > div:last-child,
.prediction-table-head span:last-child {
  border-right: 0;
}

.prediction-table-row.played {
  background: #fbfcfa;
}

.prediction-match-cell {
  display: grid;
  gap: 4px;
}

.prediction-match-cell > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.prediction-match-cell strong {
  color: var(--ink);
  font-size: 0.88rem;
}

.prediction-match-cell span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.prediction-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.prediction-cell.good {
  background: #f2faf5 !important;
}

.prediction-cell.bad {
  background: #fff7f5 !important;
}

.prediction-score {
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: #eef4ee;
  min-width: 48px;
  min-height: 32px;
  padding: 0 8px;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 950;
}

.prediction-cell.good .prediction-score {
  background: #e1f3e8;
}

.prediction-cell.bad .prediction-score {
  background: #ffe4e1;
}

.prediction-points {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 950;
  white-space: nowrap;
}

.prediction-points.good {
  color: var(--green-dark);
}

.prediction-points.bad {
  color: var(--red);
}

.standing-cell {
  display: grid;
  justify-items: end;
  gap: 1px;
}

.standing-cell.bonus-detail-trigger {
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  min-height: 42px;
  padding: 5px 6px;
}

.standing-cell.bonus-detail-trigger:hover {
  border-color: rgba(13, 122, 85, 0.18);
  background: rgba(13, 122, 85, 0.06);
}

.standing-cell span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.standing-cell strong {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 950;
}

.standing-cell.primary strong {
  font-size: 1.18rem;
}

.standing-cell.bonus strong,
.standing-cell.compact-bonus .good {
  color: var(--green-dark);
}

.bonus-detail-panel .standing-details-actions strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.inline-bonus-detail {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(13, 122, 85, 0.18);
  border-radius: 8px;
  background: #fbfdfb;
  margin-bottom: 12px;
  padding: 10px;
}

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

.standing-bonus-strip {
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.bonus-strip-total,
.bonus-strip-button {
  display: grid;
  align-content: center;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  min-width: 88px;
  min-height: 44px;
  padding: 7px 10px;
  color: var(--ink);
}

.bonus-strip-total {
  background: #f7f8f4;
}

.bonus-strip-button {
  cursor: pointer;
  text-align: left;
}

.bonus-strip-button:hover {
  border-color: rgba(13, 122, 85, 0.34);
  background: #eef8f1;
}

.bonus-strip-total span,
.bonus-strip-button span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.bonus-strip-total strong,
.bonus-strip-button strong {
  color: var(--green-dark);
  font-size: 0.95rem;
  font-weight: 950;
}

.bonus-pick {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  min-height: 38px;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
}

.bonus-pick b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bonus-pick em {
  color: inherit;
  flex: 0 0 auto;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 950;
}

.bonus-pick.good {
  border-color: rgba(13, 122, 85, 0.28);
  background: #f0faf4;
  color: var(--green-dark);
}

.bonus-pick.bad {
  border-color: rgba(182, 62, 62, 0.28);
  background: #fff5f3;
  color: var(--red);
}

.standing-cell.daily strong {
  color: var(--green-dark);
}

.player-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  color: #7a5500;
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1.25;
  margin-top: 2px;
  padding-top: 4px;
  border-top: 1px solid rgba(122, 85, 0, 0.38);
}

.top-pick {
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  min-height: 24px;
  max-width: 240px;
  padding: 0 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  background: #edf0eb;
  font-size: 0.72rem;
  font-weight: 900;
}

.top-pick.good,
.top-pick.in {
  background: #e1f3e8;
  color: var(--green-dark);
}

.top-pick.bad {
  background: #ffe4e1;
  color: var(--red);
}

.top-pick.neutral,
.top-pick.out {
  background: #eef4ee;
  color: var(--muted);
}

.england-flag {
  position: relative;
  display: inline-block;
  width: 1.15em;
  height: 0.78em;
  border: 1px solid #cfd8d1;
  border-radius: 2px;
  background: #fff;
  vertical-align: -0.08em;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}

.england-flag::before,
.england-flag::after {
  content: "";
  position: absolute;
  background: #c8102e;
}

.england-flag::before {
  left: 45%;
  top: 0;
  width: 10%;
  height: 100%;
}

.england-flag::after {
  left: 0;
  top: 42%;
  width: 100%;
  height: 16%;
}

.soft-badge {
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #eef4ee;
  color: var(--green-dark);
  min-height: 24px;
  padding: 0 9px;
  font-size: 0.72rem;
  font-weight: 900;
}

.soft-badge.danger {
  background: #fae9e6;
  color: var(--red);
}

.info-dot {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 999px;
  background: #7a5500;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 950;
  cursor: help;
}

.info-dot::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 20;
  width: min(260px, 70vw);
  transform: translateX(-50%);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  padding: 9px 10px;
  opacity: 0;
  pointer-events: none;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  transition: opacity 140ms ease;
}

.info-dot:hover::after,
.info-dot:focus::after {
  opacity: 1;
}

.standing-move-cell {
  display: flex;
  justify-content: flex-end;
}

.standing-move {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 38px;
  min-height: 30px;
  border-radius: 8px;
  background: #161b1a;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 900;
}

.standing-move i {
  font-style: normal;
  font-size: 0.78rem;
  line-height: 1;
}

.standing-move.up i {
  color: #23d66f;
}

.standing-move.down i {
  color: #ff4e46;
}

.standing-move.same {
  color: #cbd1cc;
}

.hidden {
  display: none !important;
}

.login-row,
.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.admin-session {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  margin-bottom: 12px;
  min-height: 52px;
  padding: 8px 10px 8px 14px;
}

.admin-session span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.admin-message {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  color: var(--muted);
  margin-bottom: 12px;
  padding: 10px 12px;
  font-size: 0.9rem;
  font-weight: 800;
}

.admin-message[data-tone="good"] {
  border-color: rgba(13, 122, 85, 0.35);
  background: #eff9f4;
  color: var(--green-dark);
}

.admin-message[data-tone="bad"] {
  border-color: rgba(182, 62, 62, 0.35);
  background: #fff3f0;
  color: var(--red);
}

.admin-toolbar {
  grid-template-columns: minmax(240px, 1fr) 76px auto 76px 130px auto auto;
  margin-top: 14px;
}

.bonus-editor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

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

.compare-results,
.compare-list,
.top-scorers,
#topScorerEditorRows {
  display: grid;
  gap: 8px;
}

.compare-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  padding: 10px 12px;
}

.compare-summary span,
.empty-note {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.compare-row {
  display: grid;
  grid-template-columns: 72px minmax(180px, 1fr) minmax(120px, 0.7fr) minmax(120px, 0.7fr) 112px;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  min-height: 48px;
  padding: 9px 10px;
}

.compare-row span,
.compare-row em,
.compare-row b {
  color: var(--muted);
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 700;
}

.compare-row b {
  border-radius: 999px;
  background: #edf0eb;
  padding: 6px 8px;
  text-align: center;
}

.compare-row b.good {
  background: #dff4e8;
  color: var(--green-dark);
}

.compare-row b.bad {
  background: #fae2de;
  color: var(--red);
}

.top-scorer-row {
  display: grid;
  grid-template-columns: 42px minmax(160px, 1fr) 96px minmax(220px, 1.7fr);
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  min-height: 52px;
  padding: 12px;
}

.top-scorer-row.leader {
  border-color: rgba(231, 184, 75, 0.55);
  background: #fffaf0;
}

.top-scorer-row span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
}

.top-scorer-row em,
.top-scorer-row small {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.top-scorer-row small {
  border-radius: 999px;
  background: #f5f7f3;
  padding: 7px 10px;
}

.topscorer-editor {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.topscorer-editor-row {
  display: grid;
  grid-template-columns: 34px minmax(160px, 1fr) 100px;
  gap: 10px;
  align-items: center;
}

.topscorer-editor-row span {
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}

.summary-editor {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  border: 1px solid rgba(13, 122, 85, 0.18);
  border-radius: 8px;
  background: #fbfdfb;
  padding: 14px;
}

.summary-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.summary-editor-head > div {
  display: grid;
  gap: 4px;
}

.summary-editor-head span {
  width: fit-content;
  border-radius: 999px;
  background: #eef4ee;
  color: var(--muted);
  padding: 4px 9px;
  font-size: 0.76rem;
  font-weight: 900;
}

.summary-editor-head span[data-state="manual"] {
  background: #fff2c9;
  color: #7a5500;
}

.summary-editor-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.summary-editor-preview label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.summary-editor-preview textarea[readonly] {
  background: #f6f7f5;
}

.summary-editor-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.bonus-editor h3,
.bonus-editor button {
  grid-column: 1 / -1;
}

.bonus-editor label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.search-box {
  max-width: 280px;
}

.match-tools {
  display: grid;
  grid-template-columns: 150px 140px minmax(180px, 280px);
  gap: 10px;
}

.program-switch {
  display: inline-flex;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-strong);
  padding: 4px;
  margin-bottom: 12px;
}

.program-switch button {
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  min-height: 34px;
}

.program-switch button.active {
  background: linear-gradient(180deg, #f4c55c 0%, var(--gold) 100%);
  color: #211604;
}

.agenda-controls {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  margin-bottom: 12px;
  padding: 8px;
}

.agenda-controls > div {
  display: grid;
  gap: 2px;
  text-align: center;
}

.agenda-controls span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.agenda-controls strong {
  color: var(--ink);
  font-size: 0.96rem;
}

.agenda-day-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  padding: 12px;
}

.agenda-day-heading span {
  color: var(--muted);
  font-weight: 900;
}

.match-tools.compact-tools {
  grid-template-columns: minmax(180px, 240px);
}

.bonus-overview,
.bonus-round-block {
  display: grid;
  gap: 14px;
}

.bonus-summary-table {
  display: grid;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.bonus-summary-head,
.bonus-summary-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) repeat(7, minmax(76px, 92px));
  align-items: center;
  min-width: 780px;
}

.bonus-summary-head {
  background: #f1e5ca;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.bonus-summary-head span,
.bonus-summary-row > * {
  border-right: 1px solid var(--line);
  padding: 9px 10px;
}

.bonus-summary-head span:last-child,
.bonus-summary-row > *:last-child {
  border-right: 0;
}

.bonus-summary-row {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

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

.bonus-summary-row > *:not(:first-child) {
  text-align: right;
}

.bonus-summary-row .good {
  color: var(--green-dark);
}

.bonus-round-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.bonus-round-head > span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.bonus-country-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.bonus-country-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  padding: 12px;
}

.bonus-country-title,
.bonus-prediction-split {
  display: grid;
  gap: 8px;
}

.bonus-country-title {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.bonus-country-title strong {
  font-size: 1rem;
}

.bonus-country-title span {
  border-radius: 999px;
  background: #f2e6cb;
  color: var(--muted);
  padding: 5px 9px;
  font-size: 0.76rem;
  font-weight: 900;
}

.bonus-prediction-split {
  grid-template-columns: 1fr 1fr;
}

.bonus-hit-list {
  display: grid;
  gap: 4px;
  border-radius: 8px;
  min-height: 70px;
  padding: 10px;
}

.bonus-hit-list.good {
  border: 1px solid rgba(13, 122, 85, 0.22);
  background: #f2faf5;
}

.bonus-hit-list.missed {
  border: 1px solid rgba(182, 62, 62, 0.18);
  background: #fff7f5;
}

.bonus-hit-list b {
  color: var(--ink);
  font-size: 0.78rem;
}

.bonus-hit-list span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
}

.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.tabs button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--ink);
  min-height: 38px;
  white-space: nowrap;
  box-shadow: none;
}

.tabs button.active {
  border-color: rgba(225, 173, 63, 0.76);
  background: linear-gradient(180deg, #f4c55c 0%, var(--gold) 100%);
  color: #211604;
}

.tournament-standings {
  display: grid;
  gap: 14px;
}

.group-standings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.group-table-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.group-table-card h3 {
  background: linear-gradient(180deg, var(--navy-soft) 0%, var(--navy) 100%);
  color: #ffe6a3;
  padding: 10px 12px;
  font-size: 1.05rem;
}

.group-table-head,
.group-table-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 34px 34px 42px;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
}

.group-table-head {
  background: #f1e5ca;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.group-table-row {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
}

.group-table-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-table-row b {
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
  min-height: 22px;
}

.group-table-row.oranje {
  color: #ff6a00;
}

.phase-fixtures {
  display: grid;
  gap: 10px;
}

.phase-bracket {
  display: grid;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.phase-bracket-row {
  display: grid;
  grid-template-columns: minmax(330px, 1fr) 60px minmax(280px, 0.9fr);
  align-items: center;
  min-width: 760px;
}

.phase-bracket-pair {
  display: grid;
  gap: 8px;
}

.phase-bracket-next {
  display: grid;
}

.phase-connector {
  position: relative;
  min-height: 100%;
}

.phase-connector::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 25%;
  width: 24px;
  height: 50%;
  border: solid #c8d1ca;
  border-width: 1px 1px 1px 0;
}

.phase-connector::after {
  content: "";
  position: absolute;
  left: 40px;
  top: 50%;
  width: 20px;
  border-top: 1px solid #c8d1ca;
}

.phase-fixture-card {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.phase-fixture-date {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-weight: 850;
}

.phase-fixture-teams {
  display: grid;
  gap: 6px;
}

.phase-fixture-teams div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  gap: 10px;
  align-items: center;
}

.phase-fixture-teams span {
  font-weight: 950;
  text-align: right;
}

.phase-fixture-card em {
  border-radius: 999px;
  background: #f0eee8;
  color: var(--muted);
  padding: 6px 10px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

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

.agenda-date-group {
  display: grid;
  gap: 0;
}

.agenda-date-group + .agenda-date-group {
  margin-top: 8px;
}

.load-more-matches {
  justify-self: center;
  border: 2px solid var(--gold);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--navy);
  min-height: 42px;
  min-width: 150px;
  margin: 10px 0 0;
  padding: 0 18px;
  font-weight: 950;
}

.load-more-matches:hover {
  background: #fff0c9;
}

.match-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.match-stage-label {
  grid-column: 1 / -1;
  background: #f1e5ca;
  color: #655126;
  min-height: 36px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.fixture-layout {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px 14px;
}

.fixture-date {
  display: grid;
  gap: 4px;
  color: var(--muted);
}

.fixture-date span {
  font-size: 0.76rem;
  font-weight: 900;
}

.fixture-date strong {
  font-size: 1.15rem;
  font-weight: 700;
}

.fixture-teams {
  display: grid;
  gap: 8px;
}

.fixture-team {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 12px;
  align-items: center;
}

.fixture-team strong {
  font-size: 1.05rem;
}

.fixture-team span {
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 950;
  text-align: right;
}

.match-card:hover,
.match-card.expanded {
  border-color: rgba(225, 173, 63, 0.72);
  box-shadow: 0 14px 32px rgba(64, 45, 8, 0.1);
}

.agenda-fixture-card {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--surface-strong);
}

.played-matches-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  margin-top: 14px;
}

.played-matches-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 0 14px;
  cursor: pointer;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 950;
  list-style: none;
}

.played-matches-panel summary::-webkit-details-marker {
  display: none;
}

.played-matches-panel summary::before {
  content: "Eerder";
  border-radius: 999px;
  background: #f2e6cb;
  color: var(--muted);
  padding: 5px 9px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.played-matches-panel summary span {
  border-radius: 999px;
  background: #f2f3f0;
  color: var(--muted);
  padding: 5px 9px;
  font-size: 0.78rem;
}

.played-matches-list {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 12px;
}

.agenda-date-group.played {
  opacity: 0.92;
}

.agenda-fixture-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 46px minmax(118px, auto);
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
}

.agenda-fixture-time {
  display: grid;
  gap: 4px;
  color: var(--muted);
}

.agenda-fixture-time span {
  font-size: 0.74rem;
  font-weight: 900;
}

.agenda-fixture-time strong {
  color: #5f6a65;
  font-size: 1.04rem;
  font-weight: 850;
}

.agenda-fixture-teams {
  display: grid;
  gap: 6px;
}

.agenda-fixture-teams div {
  min-width: 0;
}

.agenda-fixture-teams strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agenda-fixture-score {
  display: grid;
  gap: 6px;
}

.agenda-fixture-score span {
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: #eadfc9;
  color: var(--ink);
  min-height: 28px;
  font-size: 0.96rem;
  font-weight: 950;
}

.agenda-fixture-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.match-earlier-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--muted);
  min-height: 30px;
  padding: 0 10px;
  font-size: 0.78rem;
  font-weight: 900;
}

.match-insight {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #f0e6d0;
  background: #fff9ec;
  color: #765500;
  padding: 10px 14px;
  font-size: 0.86rem;
  font-weight: 900;
}

.match-insight span {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #e7b84b;
  color: #4d3500;
  font-size: 0.9rem;
}

.match-card.compact {
  background: #fbfcfa;
}

.match-number {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.teams strong:last-child {
  text-align: right;
}

.teams span {
  display: grid;
  place-items: center;
  min-height: 34px;
  border-radius: 8px;
  background: #eef4ee;
  font-weight: 800;
}

.match-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.status-pill {
  align-self: start;
  margin: 12px 14px 0 0;
  border-radius: 999px;
  background: #f0eee8;
  color: var(--muted);
  padding: 7px 11px;
  font-size: 0.8rem;
  font-weight: 800;
}

.status-pill.final,
.status-pill.played {
  background: #e4f4ec;
  color: var(--green-dark);
}

.status-pill.live {
  background: #fff2c9;
  color: #7a5500;
}

.match-insight {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--line);
  background: #fffaf0;
  color: #775700;
  padding: 9px 14px;
  font-size: 0.86rem;
  font-weight: 900;
}

.match-insight span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--gold);
  color: #2d2511;
  font-weight: 950;
}

.match-stats {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 12px 14px 0;
}

.match-stats span {
  border-radius: 999px;
  background: #f5f7f3;
  color: var(--muted);
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 700;
}

.match-stats.compact-info {
  align-items: center;
  gap: 6px;
  padding: 8px 14px 10px;
}

.match-stats.compact-info .info-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 28px;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 900;
}

.info-chip.neutral {
  background: #fff;
  color: var(--muted);
}

.info-chip.good {
  border-color: rgba(13, 122, 85, 0.24);
  background: #f2faf5;
  color: var(--green-dark);
}

.info-chip.warn {
  border-color: rgba(231, 184, 75, 0.32);
  background: #fffaf0;
  color: #7a5500;
}

.info-chip.bad {
  border-color: rgba(182, 62, 62, 0.24);
  background: #fff7f5;
  color: var(--red);
}

.match-details {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 14px;
}

.inline-admin {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 84px auto 84px 140px auto auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(13, 122, 85, 0.24);
  border-radius: 8px;
  background: #f4fbf7;
  padding: 12px;
}

.bracket-override {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  border: 1px solid rgba(231, 184, 75, 0.34);
  border-radius: 8px;
  background: #fffaf0;
  padding: 12px;
}

.bracket-override-fields {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) auto auto;
  align-items: end;
  gap: 10px;
}

.bracket-override label {
  display: grid;
  gap: 5px;
}

.bracket-override label > span,
.bracket-override small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.bracket-override small {
  line-height: 1.25;
}

.inline-admin h3 {
  margin: 0;
}

.inline-admin span {
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}

.match-details h3 {
  margin-bottom: 10px;
}

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

.match-info-grid > div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  min-height: 58px;
  padding: 10px;
}

.match-info-grid span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
}

.match-info-grid strong {
  min-width: 0;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.25;
}

.prediction-groups,
.points-list {
  display: grid;
  gap: 8px;
}

.prediction-group,
.points-row {
  display: grid;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  min-height: 44px;
  padding: 9px 10px;
}

.prediction-group {
  grid-template-columns: 58px minmax(0, 1fr);
}

.prediction-group strong {
  display: grid;
  place-items: center;
  min-height: 30px;
  border-radius: 8px;
  background: #eef4ee;
}

.prediction-group.exact {
  border-color: rgba(13, 122, 85, 0.26);
  background: #f2faf5;
}

.prediction-group.exact strong {
  background: #e1f3e8;
  color: var(--green-dark);
}


.prediction-group span,
.points-row span,
.points-row em {
  min-width: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.points-row {
  grid-template-columns: minmax(150px, 1fr) 64px 74px 96px;
}

.points-row.exact {
  border-color: rgba(13, 122, 85, 0.46);
  background: #dff2e8;
  box-shadow: inset 4px 0 0 var(--green);
}

.points-row.result {
  border-color: rgba(13, 122, 85, 0.16);
  background: #f5fbf7;
}

.points-row.miss {
  border-color: rgba(182, 62, 62, 0.3);
  background: #fff7f5;
}

.points-row span:first-child {
  color: var(--ink);
  font-weight: 800;
}

.points-row strong {
  text-align: right;
}

.points-row.exact strong,
.points-row.result strong {
  color: var(--green-dark);
}

.points-row.exact span:first-child {
  color: #063d2b;
}

.points-row.exact em {
  color: var(--green-dark);
  font-weight: 950;
}

.points-row.result em {
  color: #0b6044;
}

.points-row.miss strong {
  color: var(--red);
}

.points-row.miss em {
  color: var(--red);
}

.points-row em {
  font-style: normal;
  text-align: right;
}

@media (max-width: 780px) {
  main,
  .topbar {
    width: min(100% - 20px, 1180px);
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    padding: 16px 0 12px;
  }

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

  .brand-lockup {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .topbar-logo {
    width: 52px;
    height: 52px;
  }

  .top-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .main-nav {
    flex-direction: row;
    margin: 0 -10px;
    padding: 0 10px 4px;
    max-width: none;
  }

  .main-nav button {
    min-height: 38px;
    padding: 0 14px;
  }

  .top-actions > .ghost-button {
    width: 100%;
  }

  .summary-grid,
  .daily-grid,
  .summary-editor-preview,
  .spotlight-grid,
  .summary-archive-layout,
  .bonus-editor,
  .compare-controls {
    grid-template-columns: 1fr;
  }

  .standing-row {
    grid-template-columns: 42px minmax(120px, 1fr) repeat(var(--standing-stat-cols, 3), minmax(58px, 78px)) 36px;
    min-width: calc(220px + var(--standing-stat-cols, 3) * 70px);
  }

  .standing-move-cell {
    display: none;
  }

  .login-row,
  .admin-session,
  .admin-toolbar {
    grid-template-columns: 1fr;
  }

  .admin-session {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-toolbar span {
    display: none;
  }

  .search-box {
    max-width: none;
  }

  .match-tools {
    grid-template-columns: 1fr;
  }

  .program-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .agenda-controls {
    grid-template-columns: 1fr 1fr;
  }

  .agenda-controls > div {
    grid-column: 1 / -1;
    order: -1;
  }

  .group-standings-grid {
    grid-template-columns: 1fr;
  }

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

  .phase-bracket-row {
    grid-template-columns: minmax(260px, 1fr) 44px minmax(240px, 0.9fr);
    min-width: 620px;
  }

  .bonus-country-grid,
  .bonus-prediction-split {
    grid-template-columns: 1fr;
  }

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

  .agenda-fixture-row {
    grid-template-columns: 58px minmax(0, 1fr) 34px;
    gap: 10px;
  }

  .agenda-fixture-status {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-left: 68px;
  }

  .summary-editor-head {
    align-items: stretch;
    flex-direction: column;
  }

  .fixture-layout {
    grid-template-columns: 1fr;
  }

  .status-pill {
    margin: 0 14px 12px;
  }

  .match-details {
    grid-template-columns: 1fr;
  }

  .inline-admin {
    grid-template-columns: 1fr;
  }

  .bracket-override-fields {
    grid-template-columns: 1fr;
  }

  .inline-admin span {
    display: none;
  }

  .teams {
    grid-template-columns: 1fr;
  }

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

  .compare-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .compare-row,
  .top-scorer-row,
  .topscorer-editor-row {
    grid-template-columns: 1fr;
  }

  .top-scorer-row span {
    width: 100%;
    border-radius: 8px;
  }

  .points-row {
    grid-template-columns: minmax(0, 1fr) 48px 50px;
  }

  .points-row em {
    grid-column: 1 / -1;
    text-align: left;
  }

  .standing-details-head,
  .standing-detail-row {
    grid-template-columns: minmax(0, 1fr) 56px 58px 58px;
    gap: 6px;
  }

  .standing-detail-row strong {
    grid-column: auto;
    text-align: right;
  }

  .standing-details-head.upcoming,
  .standing-detail-row.upcoming {
    grid-template-columns: minmax(0, 1fr) 56px 82px;
  }

  .prediction-viewer-head,
  .prediction-viewer-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .prediction-viewer-tools select {
    max-width: none;
  }

  .match-info-grid {
    grid-template-columns: 1fr;
  }
}
