:root {
  --bg: #0d1512;
  --bg-soft: #14221b;
  --surface: #fbfaf7;
  --surface-muted: #f1ede5;
  --text: #f7f2ea;
  --ink: #16211b;
  --ink-muted: #5d665f;
  --line: rgba(255, 255, 255, .12);
  --line-dark: #ded8cd;
  --accent: #f97316;
  --accent-dark: #c84f0d;
  --green: #15803d;
  --orange: #c2410c;
  --red: #b91c1c;
  --shadow: 0 18px 48px rgba(0, 0, 0, .22);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
  letter-spacing: 0;
}

body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

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

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.page-shell {
  width: min(100%, 1160px);
  margin: 0 auto;
  padding: 12px;
}

.site-top {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 0 18px;
}

.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.brand__mark {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: inset 0 0 0 4px #fff, 0 0 0 1px rgba(255, 255, 255, .25);
}

.top-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.top-tabs::-webkit-scrollbar {
  display: none;
}

.top-tabs__link {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
  background: rgba(255, 255, 255, .05);
}

.top-tabs__link:hover,
.top-tabs__link.is-active {
  border-color: rgba(249, 115, 22, .65);
  color: #fff;
  background: rgba(249, 115, 22, .16);
}

.logout-form {
  margin: 0;
}

.logout-button {
  width: 100%;
}

.page-main {
  display: grid;
  gap: 30px;
  padding-bottom: 28px;
}

.hero {
  display: grid;
  gap: 18px;
  padding: 28px 0 10px;
}

.hero h1,
.page-header h1 {
  max-width: 820px;
  margin: 0;
  color: #fff;
  font-size: 2.1rem;
  line-height: 1.08;
}

.hero p,
.page-header p,
.section-heading p {
  max-width: 100%;
  margin: 0;
  color: rgba(247, 242, 234, .78);
}

.eyebrow {
  margin: 0 0 6px;
  color: #ffb36b !important;
  font-size: .86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.quick-actions,
.match-grid,
.subscription-grid,
.status-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.card {
  min-width: 0;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
}

.quick-card,
.subscription-card,
.status-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  text-decoration: none;
}

.quick-card:hover {
  border-color: rgba(249, 115, 22, .6);
  transform: translateY(-1px);
}

.quick-card strong,
.subscription-card h3,
.status-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
}

.quick-card span,
.subscription-card p,
.status-card p,
.muted {
  margin: 0;
  color: var(--ink-muted);
}

.muted--light {
  color: rgba(247, 242, 234, .78);
}

.section-block,
.page-header {
  display: grid;
  gap: 16px;
}

.section-heading {
  display: grid;
  gap: 6px;
}

.section-heading h2,
.page-header h1 {
  margin: 0;
}

.section-heading h2 {
  color: #fff;
  font-size: 1.45rem;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-width: 0;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 12px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.button--primary {
  background: var(--accent);
  color: #1d130b;
}

.button--primary:hover {
  background: #ff8a31;
}

.button--ghost {
  border-color: rgba(22, 33, 27, .16);
  background: #fff;
  color: var(--ink);
}

.button--dark {
  border-color: rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.button--danger {
  border-color: #991b1b;
  background: #b91c1c;
  color: #fff;
}

.button--small {
  min-height: 34px;
  padding: 6px 9px;
  font-size: .9rem;
}

.button.is-disabled {
  cursor: not-allowed;
  opacity: .62;
}

.back-link {
  width: fit-content;
  color: #ffb36b;
  font-weight: 800;
  text-decoration: none;
}

.inline-link {
  color: #ffb36b;
  font-weight: 800;
  text-decoration: none;
}

.match-card {
  display: grid;
  gap: 13px;
  padding: 14px;
}

.match-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.match-card__weekday {
  color: var(--ink);
  font-weight: 900;
}

.match-card__date,
.match-card__venue {
  color: var(--ink-muted);
  font-size: .94rem;
}

.match-card__broadcast {
  color: #657067;
  font-size: .9rem;
  font-weight: 700;
}

.match-card__time {
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 6px 9px;
  font-size: .92rem;
  font-weight: 900;
  white-space: nowrap;
}

.match-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.badge {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(249, 115, 22, .16);
  color: #8a3708;
  font-size: .82rem;
  font-weight: 900;
}

.badge--secondary {
  background: #e9ece5;
  color: #3e4b42;
}

.badge--muted {
  background: #e5e7eb;
  color: #4b5563;
}

.badge--live {
  background: rgba(21, 128, 61, .16);
  color: var(--green);
}

.match-teams {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.team-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 1.05rem;
  font-weight: 900;
}

.match-teams .team-row--matchup {
  grid-template-columns: auto minmax(0, 1fr);
}

.team-row__flag {
  width: 30px;
  color: var(--ink-muted);
  font-size: 1.35rem;
  line-height: 1;
  text-align: center;
}

.team-row__name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.matchup-flags {
  display: inline-grid;
  grid-template-columns: repeat(2, 24px);
  align-items: center;
  gap: 2px;
}

.match-card__venue--muted {
  color: #8b8f89;
}

.match-card__score {
  border-top: 1px solid var(--line-dark);
  padding-top: 10px;
  color: var(--ink);
  font-weight: 900;
}

.match-card__score--muted {
  color: #6b7280;
}

.match-card.is-finished {
  border-color: rgba(21, 128, 61, .34);
}

.match-card.is-needs-result {
  border-color: rgba(249, 115, 22, .34);
}

.match-card.is-recently-finished {
  border-color: #d1d5db;
  background: #f3f4f6;
  box-shadow: none;
}

.match-card.is-recently-finished .match-card__time,
.match-card.is-recently-finished .match-card__weekday,
.match-card.is-recently-finished .team-row__name {
  color: #4b5563;
}

.match-card.is-recently-finished .match-card__date,
.match-card.is-recently-finished .match-card__venue,
.match-card.is-recently-finished .match-card__broadcast {
  color: #6b7280;
}

.t-green {
  color: var(--green);
}

.t-orange {
  color: var(--orange);
}

.t-red {
  color: var(--red);
}

.info-strip,
.spoiler {
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, .06);
  color: rgba(247, 242, 234, .86);
}

.info-strip strong {
  color: #fff;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  width: 100%;
  margin-top: auto;
}

.card-actions .button {
  width: 100%;
}

.follow-panels {
  display: grid;
  gap: 12px;
}

.follow-panel {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .045);
}

.follow-panel summary {
  cursor: pointer;
  padding: 13px 14px;
  color: #fff;
  font-weight: 900;
}

.follow-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0 14px;
  padding: 0 14px 12px;
}

.follow-list--groups {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.follow-row {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 9px 0;
  color: rgba(247, 242, 234, .86);
}

.follow-row__name {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.follow-row__actions {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 9px;
}

.follow-row__actions a {
  color: #ffb36b;
  font-weight: 900;
  text-decoration: none;
}

.follow-row__actions a:hover {
  text-decoration: underline;
}

.poule-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.poule-panel h3,
.poule-panel p {
  margin: 0;
}

.poule-table th,
.poule-table td {
  white-space: nowrap;
}

.poule-form {
  display: grid;
  gap: 26px;
}

.poule-action-area {
  display: grid;
  gap: 16px;
  max-width: 980px;
  padding: 16px;
}

.poule-action-area h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
}

.poule-action-area__signup {
  display: grid;
  gap: 10px;
  align-content: start;
}

.poule-action-area__signup .button {
  width: fit-content;
}

.poule-login-inline {
  display: grid;
  gap: 10px;
}

.signup-form {
  max-width: 520px;
}

.private-link {
  overflow-wrap: anywhere;
  font-weight: 900;
}

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

.poule-match-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--line-dark);
  padding-top: 10px;
}

.poule-match-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.poule-match-row div:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.poule-match-row span {
  color: var(--ink-muted);
  font-size: .9rem;
}

.score-inputs {
  display: grid;
  grid-template-columns: 52px auto 52px;
  gap: 6px;
  align-items: center;
}

.score-inputs input {
  width: 52px;
  min-height: 38px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  padding: 6px;
  text-align: center;
}

.poule-field,
.poule-topscorer-row label {
  display: grid;
  gap: 6px;
}

.poule-field span,
.poule-topscorer-row span {
  color: var(--ink);
  font-weight: 900;
}

.poule-field input,
.poule-field select,
.poule-topscorer-row input,
.poule-topscorer-row select {
  min-width: 0;
  min-height: 40px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  color: var(--ink);
}

.poule-topscorers {
  display: grid;
  gap: 10px;
}

.poule-topscorer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, .45fr);
  gap: 10px;
}

.poule-fields-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.poule-sticky-actions {
  position: sticky;
  bottom: 8px;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  padding: 10px;
  background: rgba(13, 21, 18, .88);
  backdrop-filter: blur(8px);
}

.poule-list {
  margin: 0;
  padding-left: 22px;
}

.admin-actions-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-actions-cell form {
  margin: 0;
}

.load-more {
  display: flex;
  justify-content: center;
}

.spoiler {
  display: grid;
  gap: 14px;
}

.spoiler-content {
  display: none;
}

.spoilers-visible .spoiler-content {
  display: block;
}

.standings-wrap {
  overflow-x: auto;
  border-radius: 8px;
  background: var(--surface);
}

.standings-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  color: var(--ink);
}

.standings-table th,
.standings-table td {
  border-bottom: 1px solid var(--line-dark);
  padding: 10px;
  text-align: left;
}

.standings-table th {
  background: var(--surface-muted);
  font-size: .86rem;
}

.results-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.result-group {
  display: grid;
  gap: 14px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, .05);
}

.result-group__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.result-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
}

.result-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.result-row span:last-child {
  text-align: right;
}

.result-row strong {
  min-width: 58px;
  text-align: center;
  color: #fff;
}

.result-row--finished {
  background: rgba(21, 128, 61, .16);
}

.result-row--needs-result {
  background: rgba(249, 115, 22, .14);
}

.result-row--recently-finished {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
  background: rgba(229, 231, 235, .16);
  color: rgba(247, 242, 234, .72);
}

.result-row--recently-finished em {
  color: rgba(247, 242, 234, .78);
  font-size: .84rem;
  font-style: normal;
  font-weight: 800;
}

.result-upcoming summary {
  cursor: pointer;
  color: rgba(247, 242, 234, .78);
  font-weight: 800;
}

.result-upcoming[open] summary {
  margin-bottom: 10px;
}

.result-standings .standings-table {
  min-width: 0;
}

.standings-content,
.standings-groups {
  display: grid;
  gap: 16px;
}

.standings-group {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
}

.standings-group__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 14px;
  padding: 13px 14px;
}

.standings-group__header h2,
.standings-group__header p {
  margin: 0;
}

.standings-group__header h2 {
  color: #fff;
  font-size: 1.1rem;
}

.standings-group__header p {
  color: rgba(247, 242, 234, .72);
  font-size: .92rem;
}

.standings-table-box {
  min-width: 0;
  overflow-x: auto;
  background: var(--surface);
}

.standings-table--full {
  min-width: 0;
  table-layout: fixed;
}

.standings-table--full th,
.standings-table--full td {
  padding: 9px 7px;
  text-align: right;
}

.standings-table--full th:first-child,
.standings-table--full td:first-child {
  width: 44px;
  text-align: center;
}

.standings-table--full th:nth-child(2),
.standings-table--full td:nth-child(2) {
  width: 34%;
  text-align: left;
}

.standings-table--full tr.is-qualified {
  background: rgba(21, 128, 61, .08);
}

.standings-table--full tr.is-outside {
  background: rgba(194, 65, 12, .06);
}

.standings-table--full tr.is-qualified .standings-table__rank {
  box-shadow: inset 3px 0 0 rgba(21, 128, 61, .55);
}

.standings-table__rank,
.standings-table__points {
  font-weight: 900;
}

.standings-table__team {
  overflow-wrap: anywhere;
  font-weight: 800;
}

.standings-table--thirds {
  min-width: 860px;
}

.standings-table--thirds th:first-child,
.standings-table--thirds td:first-child {
  width: 46px;
}

.standings-table--thirds th:nth-child(2),
.standings-table--thirds td:nth-child(2) {
  width: 64px;
  text-align: center;
}

.standings-table--thirds th:nth-child(3),
.standings-table--thirds td:nth-child(3) {
  width: 23%;
  text-align: left;
}

.standings-table--thirds th:last-child,
.standings-table--thirds td:last-child {
  width: 168px;
  text-align: left;
}

.standings-table__status {
  overflow-wrap: anywhere;
  font-weight: 800;
}

.standings-table__status--qualified {
  color: var(--green);
}

.standings-table__status--outside {
  color: var(--orange);
}

.source-note {
  display: grid;
  gap: 10px;
  border-left: 4px solid var(--accent);
  padding: 4px 0 4px 14px;
  color: rgba(247, 242, 234, .82);
}

.source-note p {
  margin: 0;
}

.status-card__value {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 900;
}

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

.source-row {
  display: grid;
  gap: 6px;
  padding: 14px;
}

.source-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--ink-muted);
  font-size: .92rem;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 18px 0 8px;
  color: rgba(247, 242, 234, .58);
  font-size: .86rem;
  text-align: center;
}

.site-footer a {
  color: rgba(247, 242, 234, .76);
  font-weight: 700;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.is-admin .page-main {
  gap: 16px;
}

.is-admin table {
  width: 100%;
  max-width: 100%;
}

.admin-panel {
  display: grid;
  gap: 16px;
  padding: 16px;
}

.admin-panel h1,
.admin-panel h2,
.admin-panel p {
  margin: 0;
}

.admin-form,
.admin-filters {
  display: grid;
  gap: 12px;
}

.admin-filters,
.admin-score-grid {
  grid-template-columns: 1fr;
}

.admin-field {
  display: grid;
  gap: 5px;
}

.admin-field label,
.admin-check {
  color: var(--ink);
  font-weight: 800;
}

.admin-field input,
.admin-field select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  color: var(--ink);
}

.admin-filter-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px;
}

.admin-section-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  min-width: 980px;
  border-collapse: collapse;
  color: var(--ink);
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line-dark);
  padding: 9px 8px;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  background: var(--surface-muted);
  font-size: .82rem;
  text-transform: uppercase;
}

.admin-row-finished {
  background: rgba(21, 128, 61, .08);
}

.admin-row-needs-result {
  background: rgba(249, 115, 22, .1);
}

.admin-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e9ece5;
  font-size: .82rem;
  font-weight: 900;
}

.admin-status--finished {
  background: rgba(21, 128, 61, .16);
  color: #166534;
}

.admin-status--needs-result {
  background: rgba(249, 115, 22, .16);
  color: #9a3412;
}

.admin-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0;
}

.admin-meta div {
  display: grid;
  gap: 3px;
}

.admin-meta dt {
  color: var(--ink-muted);
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-meta dd {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

.admin-check {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}

.admin-check input {
  margin-top: 5px;
}

.message {
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 800;
}

.message--success {
  background: rgba(21, 128, 61, .14);
  color: #14532d;
}

.message--warning {
  background: rgba(249, 115, 22, .16);
  color: #8a3708;
}

.message--error {
  background: rgba(185, 28, 28, .12);
  color: #991b1b;
}

@media (max-width: 639px) {
  .standings-table--full,
  .standings-table--full thead,
  .standings-table--full tbody,
  .standings-table--full th,
  .standings-table--full td,
  .standings-table--full tr {
    display: block;
  }

  .standings-table--full thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .standings-table--full tbody {
    display: grid;
    gap: 8px;
    padding: 8px;
  }

  .standings-table--full tr {
    overflow: hidden;
    border: 1px solid var(--line-dark);
    border-radius: 8px;
    background: #fff;
  }

  .standings-table--full tr.is-qualified {
    border-color: rgba(21, 128, 61, .42);
    background: rgba(21, 128, 61, .08);
  }

  .standings-table--full td {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    width: auto;
    gap: 10px;
    border-bottom: 1px solid var(--line-dark);
    padding: 7px 10px;
    text-align: right;
  }

  .standings-table--full td:last-child {
    border-bottom: 0;
  }

  .standings-table--full td::before {
    content: attr(data-label);
    color: var(--ink-muted);
    font-size: .78rem;
    font-weight: 900;
    text-align: left;
    text-transform: uppercase;
  }

  .standings-table--full .standings-table__team {
    grid-template-columns: minmax(0, 1fr);
    background: var(--surface-muted);
    text-align: left;
  }

  .standings-table--full .standings-table__team::before {
    display: none;
  }

  .standings-table--thirds {
    min-width: 0;
  }

  .standings-table--thirds th:first-child,
  .standings-table--thirds td:first-child,
  .standings-table--thirds th:nth-child(2),
  .standings-table--thirds td:nth-child(2),
  .standings-table--thirds th:nth-child(3),
  .standings-table--thirds td:nth-child(3),
  .standings-table--thirds th:last-child,
  .standings-table--thirds td:last-child {
    width: auto;
  }

  .standings-table--thirds td:nth-child(2),
  .standings-table--thirds td:last-child {
    text-align: right;
  }

  .standings-table--full tr.is-qualified .standings-table__rank {
    box-shadow: none;
  }
}

@media (max-width: 620px) {
  .poule-match-row,
  .poule-topscorer-row {
    grid-template-columns: 1fr;
  }

  .score-inputs {
    width: fit-content;
  }

  .poule-sticky-actions .button {
    width: 100%;
  }
}

@media (min-width: 640px) {
  .page-shell {
    padding: 18px;
  }

  .site-top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .hero h1,
  .page-header h1 {
    font-size: 2.7rem;
  }

  .quick-actions,
  .subscription-grid,
  .status-grid,
  .admin-filters,
  .admin-score-grid,
  .admin-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .card-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 940px) {
  .page-shell {
    padding: 24px;
  }

  .hero {
    padding-top: 42px;
  }

  .quick-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .poule-action-area {
    grid-template-columns: minmax(190px, .45fr) minmax(0, 1fr);
    align-items: end;
  }

  .poule-login-inline {
    grid-template-columns: minmax(260px, 1fr) auto;
    align-items: end;
  }

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

  .match-grid.match-grid--wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .standings-groups {
    grid-template-columns: repeat(2, minmax(560px, 1fr));
  }
}
