:root {
  --brand-primary: #101010;
  --brand-secondary: #26312f;
  --brand-accent: #ff7a00;
  --brand-primary-hover: #080808;
  --brand-primary-soft: rgba(16, 16, 16, 0.11);
  --brand-accent-soft: rgba(255, 122, 0, 0.13);
  --on-brand-primary: #ffffff;
  --on-brand-accent: #101010;
  --app-background: #f4f5f6;
  --surface-primary: #ffffff;
  --surface-secondary: #eef3f2;
  --surface-sidebar: #111b1a;
  --text-primary: #171717;
  --text-muted: #666a70;
  --border-subtle: #d9dde2;
  --button-primary-background: var(--brand-primary);
  --button-primary-text: var(--on-brand-primary);
  --focus-ring: rgba(16, 16, 16, 0.22);
  --bg: var(--app-background);
  --panel: var(--surface-primary);
  --text: var(--text-primary);
  --muted: var(--text-muted);
  --line: var(--border-subtle);
  --primary: var(--brand-primary);
  --accent: var(--brand-accent);
  --danger: #dc2626;
  --ok: #16a34a;
  --info: #2563eb;
  --radius: 8px;
  --shadow: 0 14px 40px rgba(12, 12, 12, 0.12);
}

* {
  box-sizing: border-box;
}

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

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

button {
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
}

.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) 1.1fr;
  background: #070707;
}

.login-visual {
  min-height: 100vh;
  background-image:
    radial-gradient(circle at 50% 42%, rgba(255, 122, 0, 0.24), transparent 24%),
    linear-gradient(90deg, rgba(7, 7, 7, 0.08), rgba(7, 7, 7, 0.70)),
    url("/assets/torix-logo.png");
  background-size: cover, cover, min(76vw, 850px);
  background-position: center;
  background-repeat: no-repeat;
}

.login-panel {
  display: grid;
  align-content: center;
  padding: 48px;
  background: linear-gradient(180deg, #ffffff, #f5f6f7);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}

.brand-mark {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary) 52%, var(--brand-accent));
  font-weight: 900;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #080808;
}

img[data-src] {
  background: linear-gradient(135deg, #eef4f3, #dfe7e5);
}

.brand-mark.torix-mark {
  box-shadow: 0 10px 26px var(--brand-accent-soft);
}

.brand h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.1;
}

.brand span,
.muted {
  color: var(--muted);
}

.login h2 {
  margin: 0 0 8px;
  font-size: 34px;
}

.login-form,
.stack {
  display: grid;
  gap: 14px;
}

/* Torix Sports Dark Green */
:root {
  --sports-bg-main: #03170f;
  --sports-bg-deep: #020d09;
  --sports-bg-panel: #062619;
  --sports-bg-row: #082d1c;
  --sports-bg-row-alt: #072419;
  --sports-green-primary: #20df50;
  --sports-green-secondary: #16b844;
  --sports-green-line: #29c954;
  --sports-green-soft: rgba(32, 223, 80, 0.12);
  --sports-green-glow: rgba(32, 223, 80, 0.24);
  --sports-text-main: #f5f6f2;
  --sports-text-secondary: #c1c9c2;
  --sports-text-muted: #849189;
  --sports-text-dark: #071209;
  --sports-gold: #f0c62e;
  --sports-direct-green: #28d861;
  --sports-playoff-blue: #0869d8;
  --sports-neutral-gray: #777e7a;
  --sports-danger-red: #df2025;
  --sports-yellow-card: #f7c52b;
  --sports-red-card: #e52529;
  --sports-border: rgba(57, 218, 92, 0.42);
  --sports-border-soft: rgba(57, 218, 92, 0.20);
  --sports-divider: rgba(190, 255, 203, 0.16);
  --sports-shadow-panel: 0 18px 45px rgba(0, 0, 0, 0.35);
  --sports-shadow-green: 0 0 24px rgba(32, 223, 80, 0.10);
  --sports-row-height-desktop: 72px;
  --sports-logo-size-desktop: 46px;
  --sports-logo-size-mobile: 34px;
  --sports-radius-panel: 18px;
  --sports-radius-badge: 8px;
}

.sports-board {
  display: grid;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--sports-border-soft);
  border-radius: var(--sports-radius-panel);
  background:
    radial-gradient(circle at 50% -10%, rgba(32, 223, 80, .18), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.035), transparent 18%),
    linear-gradient(140deg, var(--sports-bg-deep), var(--sports-bg-main) 48%, #010905);
  color: var(--sports-text-main);
  box-shadow: var(--sports-shadow-panel), var(--sports-shadow-green);
}

.sports-board.compact {
  padding: 16px;
}

.sports-tournament-header {
  display: grid;
  justify-items: center;
  gap: 9px;
  text-align: center;
  text-transform: uppercase;
}

.sports-tournament-header h2 {
  margin: 0;
  color: var(--sports-text-main);
  font-family: "Arial Narrow", "Roboto Condensed", "Barlow Condensed", Impact, system-ui, sans-serif;
  font-size: clamp(34px, 6vw, 68px);
  font-stretch: condensed;
  font-weight: 950;
  line-height: .92;
  text-shadow: 0 4px 18px rgba(0, 0, 0, .55);
}

.sports-board.compact .sports-tournament-header h2 {
  font-size: clamp(26px, 4vw, 48px);
}

.sports-division-band {
  min-width: min(520px, 92%);
  padding: 6px 22px;
  border: 1px solid rgba(121, 255, 143, .24);
  background:
    linear-gradient(90deg, transparent, rgba(32, 223, 80, .92) 18%, rgba(32, 223, 80, .82) 82%, transparent),
    linear-gradient(180deg, rgba(255,255,255,.18), transparent);
  color: var(--sports-text-dark);
  font-family: "Arial Narrow", "Roboto Condensed", "Barlow Condensed", Impact, system-ui, sans-serif;
  font-size: clamp(18px, 3vw, 34px);
  font-style: italic;
  font-weight: 950;
}

.sports-section-title {
  display: grid;
  grid-template-columns: minmax(36px, 1fr) auto minmax(36px, 1fr);
  align-items: center;
  gap: 16px;
  width: min(760px, 100%);
  color: var(--sports-text-main);
  font-family: "Arial Narrow", "Roboto Condensed", "Barlow Condensed", Impact, system-ui, sans-serif;
  font-size: clamp(19px, 2.7vw, 34px);
  font-weight: 950;
}

.sports-section-title span {
  height: 4px;
  border-top: 2px solid var(--sports-green-line);
  border-bottom: 2px solid var(--sports-green-line);
}

.sports-panel {
  overflow: hidden;
  border: 1px solid var(--sports-border);
  border-radius: var(--sports-radius-panel);
  background:
    linear-gradient(90deg, rgba(32, 223, 80, .055), transparent 20%, transparent 80%, rgba(32, 223, 80, .055)),
    linear-gradient(180deg, rgba(6, 38, 25, .96), rgba(3, 23, 15, .96));
}

.sports-subtitle,
.sports-round-head h3 {
  margin: 0;
  color: var(--sports-text-main);
  font-family: "Arial Narrow", "Roboto Condensed", "Barlow Condensed", Impact, system-ui, sans-serif;
  font-size: 24px;
  font-weight: 950;
  text-transform: uppercase;
}

.sports-empty-state {
  margin: 14px;
  padding: 18px;
  border: 1px dashed var(--sports-border);
  border-radius: 12px;
  background: rgba(0, 0, 0, .22);
  color: var(--sports-text-secondary);
  font-weight: 800;
}

.sports-table-wrap,
.sports-board .table-wrap {
  overflow: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.sports-table,
.sports-board table {
  min-width: 780px;
  color: var(--sports-text-main);
  font-family: "Arial Narrow", "Roboto Condensed", "Barlow Condensed", Impact, system-ui, sans-serif;
  font-size: 18px;
  letter-spacing: 0;
}

.sports-table th,
.sports-table td,
.sports-board table th,
.sports-board table td {
  padding: 12px 14px;
  border-color: var(--sports-divider);
  color: var(--sports-text-main);
  text-align: center;
  vertical-align: middle;
}

.sports-table th,
.sports-board table th {
  background: rgba(0, 0, 0, .46);
  color: var(--sports-text-main);
  font-size: 15px;
  font-weight: 950;
  text-transform: uppercase;
}

.sports-table tbody tr,
.sports-board table tbody tr {
  min-height: var(--sports-row-height-desktop);
  background: var(--sports-bg-row);
}

.sports-table tbody tr:nth-child(even),
.sports-board table tbody tr:nth-child(even) {
  background: var(--sports-bg-row-alt);
}

.sports-table td:nth-child(2),
.sports-board table td:nth-child(2) {
  text-align: left;
}

.sports-rank {
  display: inline-grid;
  place-items: center;
  min-width: 58px;
  min-height: 58px;
  border-radius: 0;
  color: #fff;
  font-size: 30px;
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}

.sports-rank-gold,
.sports-stat-gold {
  background: linear-gradient(135deg, #fff185, var(--sports-gold));
  color: #091008;
}

.sports-rank-green,
.sports-stat-green {
  background: linear-gradient(135deg, #5dff82, var(--sports-direct-green));
  color: #061207;
}

.sports-rank-blue,
.sports-stat-blue {
  background: linear-gradient(135deg, #0d87ff, var(--sports-playoff-blue));
}

.sports-rank-gray,
.sports-stat-gray {
  background: linear-gradient(135deg, #9aa29d, var(--sports-neutral-gray));
}

.sports-rank-red,
.sports-stat-red {
  background: linear-gradient(135deg, #ff5357, var(--sports-danger-red));
}

.sports-rank-neutral {
  background: rgba(255, 255, 255, .11);
  color: var(--sports-text-secondary);
}

.sports-row-tone-gold {
  background: rgba(240, 198, 46, .12) !important;
}

.sports-row-tone-green {
  background: rgba(40, 216, 97, .11) !important;
}

.sports-row-tone-blue {
  background: rgba(8, 105, 216, .14) !important;
}

.sports-row-tone-gray {
  background: rgba(119, 126, 122, .12) !important;
}

.sports-row-tone-red {
  background: rgba(223, 32, 37, .16) !important;
}

.sports-team-identity,
.sports-board .standing-team {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--sports-text-main);
  text-align: left;
  text-transform: uppercase;
}

.sports-team-identity strong,
.sports-board .standing-team strong,
.sports-player-name {
  overflow-wrap: anywhere;
  color: var(--sports-text-main);
  font-size: 22px;
  font-weight: 950;
}

.sports-team-logo,
.sports-board .tiny-logo {
  width: var(--sports-logo-size-desktop);
  height: var(--sports-logo-size-desktop);
  flex: 0 0 var(--sports-logo-size-desktop);
  object-fit: contain;
}

.sports-team-logo.placeholder,
.sports-board .tiny-logo.placeholder,
.scoreboard-shield.placeholder {
  border: 1px solid rgba(190, 255, 203, .20);
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.05));
}

.sports-stat-pill {
  display: inline-grid;
  place-items: center;
  min-width: 54px;
  min-height: 42px;
  padding: 6px 12px;
  border-radius: var(--sports-radius-badge);
  color: #fff;
  font-size: 26px;
  font-weight: 950;
  line-height: 1;
}

.sports-stat-yellow {
  background: linear-gradient(135deg, #ffe16b, var(--sports-yellow-card));
  color: #151006;
}

.sports-stat-red {
  background: linear-gradient(135deg, #ff575b, var(--sports-red-card));
}

.sports-board .badge,
.sports-board .badge.playoff-prelim,
.sports-board .badge.playoff-direct,
.sports-board .badge.playoff-out,
.sports-board .badge.playoff-champion,
.sports-board .badge.relegation-badge {
  border-radius: 8px;
  color: #fff;
  font-weight: 950;
  text-transform: uppercase;
}

.sports-board .badge.playoff-champion {
  background: var(--sports-gold);
  color: var(--sports-text-dark);
}

.sports-board .badge.playoff-direct,
.sports-board .badge.ok {
  background: var(--sports-direct-green);
  color: var(--sports-text-dark);
}

.sports-board .badge.playoff-prelim,
.sports-board .badge.info {
  background: var(--sports-playoff-blue);
}

.sports-board .badge.playoff-out {
  background: var(--sports-neutral-gray);
}

.sports-board .badge.relegation-badge,
.sports-board .badge.danger {
  background: var(--sports-danger-red);
}

.sports-board input,
.sports-board select,
.sports-board textarea {
  border-color: var(--sports-border-soft);
  background: rgba(0, 0, 0, .26);
  color: var(--sports-text-main);
}

.sports-board input[type="date"],
.sports-board input[type="time"] {
  color-scheme: dark;
}

.sports-board .btn.secondary {
  background: rgba(255,255,255,.10);
  color: var(--sports-text-main);
}

.sports-board .year-block {
  padding: 16px;
  border-top: 1px solid var(--sports-border-soft);
}

.sports-board .year-block:first-child {
  border-top: 0;
}

.results-scoreboard-list {
  gap: 0;
}

.scoreboard-round-card {
  border-color: var(--sports-border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.scoreboard-round-card + .scoreboard-round-card {
  border-top: 1px solid var(--sports-border);
}

.scoreboard-round-card header {
  background: #000;
  color: var(--sports-text-main);
  font-family: "Arial Narrow", "Roboto Condensed", "Barlow Condensed", Impact, system-ui, sans-serif;
  font-size: 26px;
}

.scoreboard-match-row {
  min-height: 82px;
  border-color: var(--sports-divider);
  background: linear-gradient(90deg, rgba(9, 49, 29, .92), rgba(5, 27, 17, .92));
}

.scoreboard-match-row:nth-child(even) {
  background: linear-gradient(90deg, rgba(7, 36, 25, .92), rgba(3, 23, 15, .92));
}

.scoreboard-match-row.interzonal-match-row {
  border-left-color: var(--sports-gold);
  background: rgba(240, 198, 46, .10);
}

.scoreboard-team {
  color: var(--sports-text-main);
  font-family: "Arial Narrow", "Roboto Condensed", "Barlow Condensed", Impact, system-ui, sans-serif;
  font-size: clamp(18px, 2.5vw, 30px);
  font-weight: 950;
}

.scoreboard-shield {
  width: 48px;
  height: 48px;
}

.scoreboard-center {
  color: var(--sports-green-primary);
  font-family: "Arial Narrow", "Roboto Condensed", "Barlow Condensed", Impact, system-ui, sans-serif;
}

.scoreboard-center strong {
  color: var(--sports-green-primary);
  font-size: 17px;
  font-style: italic;
  font-weight: 950;
}

.scoreboard-center span {
  color: var(--sports-green-primary);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 950;
}

.sports-board .match-teams-cell,
.sports-board .fixture-rivals {
  color: var(--sports-text-main);
}

.sports-board .fixture-rivals em {
  color: var(--sports-green-primary);
  font-weight: 950;
}

.scheduled-shell {
  background:
    radial-gradient(circle at top left, rgba(32, 223, 80, .16), transparent 34%),
    linear-gradient(145deg, var(--sports-bg-deep) 0%, var(--sports-bg-main) 54%, #010905 100%);
}

.scheduled-calendar-icon,
.scheduled-venue-icon {
  border-color: var(--sports-border);
  background: var(--sports-green-soft);
  color: var(--sports-green-primary);
}

.scheduled-hero h2,
.scheduled-venue-title h3 {
  font-family: "Arial Narrow", "Roboto Condensed", "Barlow Condensed", Impact, system-ui, sans-serif;
  font-weight: 950;
  text-transform: uppercase;
}

.scheduled-hero p,
.scheduled-venue-title p,
.scheduled-info-copy p,
.scheduled-venue-tabs.empty {
  color: var(--sports-text-secondary);
}

.scheduled-panel {
  border-color: var(--sports-border-soft);
  background: rgba(3, 23, 15, .78);
}

.scheduled-venue-tabs {
  border-bottom-color: var(--sports-border-soft);
}

.scheduled-venue-tab {
  color: var(--sports-text-muted);
}

.scheduled-venue-tab.active {
  border-color: var(--sports-green-primary);
  color: var(--sports-green-primary);
}

.scheduled-date-picker,
.scheduled-table,
.scheduled-info-card,
.scheduled-empty,
.scheduled-refresh {
  border-color: var(--sports-border-soft);
  background: rgba(0, 0, 0, .24);
}

.scheduled-head {
  background: rgba(0, 0, 0, .36);
  color: var(--sports-text-secondary);
}

.scheduled-row {
  border-top-color: var(--sports-divider);
}

.scheduled-time {
  color: var(--sports-green-primary);
}

.scheduled-matchup > strong {
  color: var(--sports-text-muted);
}

.scheduled-matchup small,
.scheduled-date-picker {
  color: var(--sports-text-secondary);
}

.scheduled-team {
  color: var(--sports-text-main);
  font-family: "Arial Narrow", "Roboto Condensed", "Barlow Condensed", Impact, system-ui, sans-serif;
  font-weight: 950;
  text-transform: uppercase;
}

.scheduled-tournament {
  border-left-color: var(--sports-border-soft);
}

.scheduled-tournament-badge,
.scheduled-tournament-badge.violet,
.scheduled-tournament-badge.green,
.scheduled-tournament-badge.neutral {
  border-color: rgba(32, 223, 80, .26);
  background: rgba(32, 223, 80, .16);
  color: var(--sports-green-primary);
}

.scheduled-match.highlight {
  background: rgba(32, 223, 80, .10);
}

.scheduled-match.interzonal-match-row {
  box-shadow: inset 5px 0 0 var(--sports-gold);
}

.scheduled-info-icon {
  border-color: var(--sports-green-primary);
  color: var(--sports-green-primary);
}

.scheduled-refresh {
  color: var(--sports-green-primary);
}

@media (max-width: 760px) {
  .sports-board {
    padding: 10px;
    border-radius: 14px;
  }

  .sports-tournament-header {
    gap: 7px;
  }

  .sports-section-title {
    gap: 9px;
  }

  .sports-table,
  .sports-board table {
    min-width: 620px;
    font-size: 15px;
  }

  .sports-table th,
  .sports-table td,
  .sports-board table th,
  .sports-board table td {
    padding: 9px 8px;
  }

  .sports-rank {
    min-width: 42px;
    min-height: 42px;
    font-size: 22px;
  }

  .sports-team-logo,
  .sports-board .tiny-logo {
    width: var(--sports-logo-size-mobile);
    height: var(--sports-logo-size-mobile);
    flex-basis: var(--sports-logo-size-mobile);
  }

  .sports-team-identity strong,
  .sports-board .standing-team strong,
  .sports-player-name {
    font-size: 16px;
  }

  .sports-stat-pill {
    min-width: 40px;
    min-height: 34px;
    font-size: 20px;
  }

  .scoreboard-match-row {
    grid-template-columns: minmax(0, 38%) minmax(78px, 24%) minmax(0, 38%);
    min-height: 72px;
  }

  .scoreboard-team {
    gap: 6px;
    padding: 8px 7px;
    font-size: 14px;
  }

  .scoreboard-shield {
    width: 32px;
    height: 32px;
  }

  .scoreboard-center strong {
    font-size: 10px;
  }

  .scoreboard-center span {
    font-size: 24px;
  }
}

.access-contact {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.access-contact a {
  color: var(--accent);
  font-weight: 800;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
  color: var(--text);
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field.compact {
  display: flex;
  align-items: center;
  gap: 8px;
}

.field.compact span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.field.compact select {
  min-width: 190px;
  padding: 8px 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--button-primary-background), var(--brand-primary-hover));
  color: var(--button-primary-text);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 18px var(--focus-ring);
}

.btn.secondary {
  background: var(--surface-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  box-shadow: none;
}

.btn.success {
  background: #008f3a;
  color: #fff;
}

.btn.warn {
  background: #f59e0b;
  color: #1f1604;
}

.btn.danger {
  background: var(--danger);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

[aria-busy="true"] {
  cursor: progress;
}

input[type="file"][data-pending-active="true"] {
  opacity: 0.58;
}

.field:has(input[type="file"][data-pending-active="true"])::after {
  content: "Procesando...";
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}

.btn.ghost {
  background: transparent;
  color: var(--brand-primary);
  border: 1px solid var(--border-subtle);
  box-shadow: none;
}

.btn:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.public-entry {
  margin-top: 12px;
  width: 100%;
}

.public-register {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.password-recovery {
  margin-top: 14px;
}

.password-recovery .reset-confirm {
  margin-top: 12px;
}

.public-register h3 {
  margin: 0 0 12px;
}

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

.public-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  text-align: left;
  font-weight: 800;
}

.public-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.public-item.selected,
.public-item:hover {
  border-color: var(--primary);
  background: #eef8f6;
}

.public-league-grid,
.public-tournament-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.public-league-picker-simple {
  padding: 22px 24px;
}

.public-league-only-page {
  --public-league-icon-size: clamp(92px, 18vw, 136px);
  position: relative;
  min-height: 100svh;
  width: 100%;
  display: grid;
  place-items: center;
  padding: clamp(18px, 6vw, 64px);
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 122, 0, 0.16), transparent 32%),
    linear-gradient(145deg, #020202 0%, #0d110f 56%, #020202 100%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.public-league-only-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/torix-logo.png") center / min(78vw, 740px) auto no-repeat;
  opacity: 0.12;
  z-index: -2;
}

.public-league-only-page::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.78)),
    radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.32) 60%, rgba(0, 0, 0, 0.82) 100%);
  z-index: -1;
}

.public-league-only-content {
  position: relative;
  z-index: 1;
  width: min(100%, 940px);
  display: grid;
  place-items: center;
}

.public-league-only-back {
  position: absolute;
  top: clamp(16px, 4vw, 34px);
  right: clamp(16px, 4vw, 38px);
  z-index: 2;
  min-width: 116px;
  background: rgba(255, 255, 255, 0.94);
  color: #101010;
  border-color: rgba(255, 255, 255, 0.32);
}

.public-league-icons-only {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(16px, 4vw, 34px);
  padding: clamp(54px, 8vw, 84px) 0 0;
}

.public-league-logo-button {
  width: var(--public-league-icon-size);
  min-height: var(--public-league-icon-size);
  display: grid;
  place-items: center;
  padding: clamp(10px, 2vw, 16px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.42);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.public-league-logo-button:hover,
.public-league-logo-button:focus-visible {
  border-color: rgba(255, 122, 0, 0.9);
  background: rgba(255, 255, 255, 0.14);
  outline: none;
  transform: translateY(-2px);
}

.public-league-logo-only {
  width: 100%;
  max-width: 108px;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.95);
  padding: 8px;
}

.public-league-logo-only.placeholder {
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--surface);
  color: var(--primary);
  font-weight: 950;
  font-size: 28px;
}

.public-league-empty {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 900;
}

.public-league-picker-simple .public-league-grid {
  grid-template-columns: repeat(auto-fit, minmax(124px, 150px));
  justify-content: start;
  align-items: start;
  gap: 16px;
}

.public-league-title {
  margin: 0 0 18px;
  font-size: clamp(32px, 3.2vw, 46px);
  line-height: 0.95;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.public-tournament-grid {
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
}

.public-league-card,
.public-tournament-card {
  width: 100%;
  min-height: 150px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  text-align: center;
  box-shadow: var(--shadow);
}

.public-tournament-card {
  min-height: 136px;
  justify-items: center;
  text-align: center;
  align-content: center;
  gap: 7px;
}

.public-league-icon-card {
  min-height: 132px;
  padding: 12px 10px;
  gap: 7px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.public-league-icon-card span,
.public-league-icon-card small {
  display: none;
}

.public-league-icon-card strong {
  max-width: 100%;
  font-size: 15px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.public-tournament-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.public-tournament-logo.placeholder {
  display: grid;
  place-items: center;
  background: #0d1b17;
  color: #fff;
  font-size: 20px;
  font-weight: 950;
}

.public-tournament-logo.standard {
  background: #0d1b17;
  padding: 7px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.public-tournament-fast-entry {
  padding: 12px;
}

.public-tournament-fast-entry .public-tournament-grid {
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  gap: 10px;
}

.public-tournament-icon-button {
  min-height: 92px;
  padding: 10px;
}

.public-tournament-icon-button .public-tournament-logo {
  width: 72px;
  height: 72px;
}

.public-tournament-icon-button strong,
.public-tournament-icon-button small,
.public-tournament-icon-button span:not(.sr-only) {
  display: none;
}

.public-league-card.selected,
.public-league-card:hover,
.public-tournament-card.selected,
.public-tournament-card:hover {
  border-color: var(--primary);
  background: #eef8f6;
  transform: translateY(-1px);
}

.public-league-logo,
.public-selected-league-logo {
  width: 82px;
  height: 82px;
  object-fit: contain;
  border-radius: 14px;
  background: #0d1b17;
  border: 1px solid var(--line);
}

.public-selected-league-logo {
  width: 74px;
  height: 74px;
}

.public-league-logo.placeholder,
.public-selected-league-logo.placeholder {
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 24px;
  font-weight: 950;
}

.public-league-card span,
.public-tournament-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.public-league-card small,
.public-tournament-card small {
  color: var(--primary);
  font-weight: 950;
}

.public-selected-league {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.public-selected-league-compact {
  padding: 14px 16px;
}

.public-selected-league-main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.public-selected-league h2 {
  margin: 2px 0;
}

.tournament-logo-preview {
  min-height: 74px;
}

.tournament-logo-preview img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 12px;
  background: #0d1b17;
  border: 1px solid var(--line);
  padding: 4px;
}

.tournament-logo-editor {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0, 153, 73, 0.07), rgba(255, 255, 255, 0.92));
}

.tournament-logo-editor-preview {
  width: 90px;
  min-width: 90px;
  height: 90px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #0d1b17;
  border: 1px solid var(--line);
  overflow: hidden;
}

.tournament-logo-editor-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.tournament-logo-editor-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}

.tournament-logo-editor-button {
  width: fit-content;
  cursor: pointer;
}

.tournament-logo-editor-button input {
  display: none;
}

@media (max-width: 560px) {
  .public-league-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .public-tournament-fast-entry {
    padding: 8px;
  }

  .public-tournament-fast-entry .public-tournament-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .public-league-card {
    min-height: 118px;
    padding: 12px;
  }

  .public-league-picker-simple {
    padding: 18px 12px;
  }

  .public-league-picker-simple .public-league-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .public-league-title {
    margin-bottom: 14px;
    font-size: 34px;
  }

  .public-league-icon-card {
    min-height: 122px;
    padding: 10px 8px;
  }

  .public-tournament-card {
    min-height: 112px;
    padding: 10px;
  }

  .public-tournament-icon-button {
    min-height: 70px;
    padding: 6px;
  }

  .public-tournament-logo {
    width: 56px;
    height: 56px;
  }

  .public-tournament-icon-button .public-tournament-logo {
    width: 54px;
    height: 54px;
    border-radius: 12px;
  }

  .public-league-logo,
  .public-selected-league-logo {
    width: 64px;
    height: 64px;
  }

  .public-selected-league {
    align-items: flex-start;
    flex-direction: column;
  }

  .public-selected-league-compact {
    flex-direction: row;
    align-items: center;
    padding: 12px;
  }

  .public-selected-league-compact .btn {
    width: auto;
  }

  .tournament-logo-editor {
    align-items: flex-start;
  }

  .tournament-logo-editor-preview {
    width: 72px;
    min-width: 72px;
    height: 72px;
  }
}

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

.owner-card,
.tournament-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  text-align: left;
}

.owner-card {
  display: grid;
  justify-items: start;
}

.tournament-main {
  flex: 1;
  min-width: 220px;
  padding: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.tournament-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}

.tournament-title strong {
  font-size: 16px;
}

.tournament-title strong + strong::before {
  content: "-";
  margin-right: 6px;
  color: var(--muted);
  font-weight: 700;
}

.toggle-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-weight: 800;
}

.toggle-line input {
  width: auto;
}

.owner-card strong,
.tournament-row strong {
  font-size: 16px;
}

.owner-card span,
.tournament-row small {
  color: var(--muted);
}

.owner-card:hover,
.tournament-row:hover {
  border-color: var(--primary);
  background: #eef8f6;
}

.year-block {
  display: grid;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.year-block > h3 {
  margin: 0;
  font-size: 22px;
}

.fixture-block {
  display: grid;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.fixture-block:first-child {
  border-top: 0;
  padding-top: 0;
}

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

.fixture-block-head h4 {
  margin: 0;
  font-size: 17px;
}

.fixture-block-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

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

.results-scoreboard-section {
  display: grid;
  gap: 14px;
}

.results-scoreboard-list {
  display: grid;
  gap: 18px;
}

.scoreboard-round-card {
  overflow: hidden;
  border: 1px solid #d8d8d8;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .08);
}

.scoreboard-round-card header {
  display: grid;
  min-height: 58px;
  place-items: center;
  background: #050505;
  color: #fff;
  font-size: 24px;
  font-weight: 950;
  letter-spacing: .04em;
  text-align: center;
}

.scoreboard-round-matches {
  display: grid;
}

.scoreboard-match-row {
  display: grid;
  grid-template-columns: minmax(0, 40%) minmax(92px, 20%) minmax(0, 40%);
  align-items: center;
  min-height: 76px;
  border-top: 1px solid #d7d7d7;
  background: #fff;
}

.scoreboard-match-row.interzonal-match-row {
  border-left: 5px solid #ff7a00;
  background: #fff8ef;
}

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

.scoreboard-team {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  padding: 12px 16px;
  color: #30343a;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.08;
  text-align: center;
  text-transform: uppercase;
}

.scoreboard-home {
  justify-content: flex-end;
}

.scoreboard-away {
  justify-content: flex-start;
}

.scoreboard-team-name {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.scoreboard-shield {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 4px;
}

.scoreboard-shield.placeholder {
  display: inline-block;
  border: 1px solid #d4dde0;
  border-radius: 9px;
  background: linear-gradient(180deg, #edf2f3, #e2e9eb);
}

.scoreboard-center {
  display: grid;
  justify-items: center;
  gap: 2px;
  min-width: 0;
  padding: 8px 4px;
  color: #252525;
  text-align: center;
}

.scoreboard-center strong {
  font-size: 15px;
  font-weight: 950;
  letter-spacing: .02em;
}

.scoreboard-center span {
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
}

.fixture-preview-row {
  display: grid;
  grid-template-columns: 110px 90px minmax(130px, 1fr) minmax(240px, 2fr);
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.fixture-preview-row span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.fixture-preview-row strong {
  display: block;
  margin-top: 2px;
}

.fixture-rivals {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.fixture-rivals em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.fixture-rivals.inline {
  justify-content: flex-start;
}

.tournament-hero-card,
.team-profile-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border-radius: 8px;
  background: #111c1b;
  color: #fff;
  box-shadow: var(--shadow);
}

.tournament-hero-logo,
.team-profile-logo {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  color: var(--primary);
  overflow: hidden;
  font-weight: 900;
  font-size: 24px;
}

.tournament-hero-logo img,
.team-profile-logo img,
.team-profile-shield {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tournament-hero-card h2,
.team-profile-hero h2 {
  margin: 2px 0 4px;
  font-size: 28px;
}

.tournament-hero-card p,
.team-profile-hero p {
  margin: 0;
  color: #d7e1df;
}

.eyebrow {
  color: #94d7cf;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-badges,
.round-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.round-picker {
  margin-top: 0;
}

.round-picker select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 800;
}

.scoreboard-grid {
  display: grid;
  gap: 12px;
}

.score-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.score-status {
  display: flex;
  justify-content: center;
}

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

.score-team {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
  background: #f8fbfa;
  color: var(--text);
  text-align: left;
}

.score-team:hover,
.standing-team:hover {
  background: #eef8f6;
}

.score-team span:last-child,
.score-separator {
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.score-shield {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
}

.score-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.empty-state {
  margin: 0;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fbfdfc;
}

.standings-table th,
.standings-table td {
  vertical-align: middle;
}

.table-sort {
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-transform: inherit;
}

.leader-row {
  background: #ecfdf5;
}

.qualified-row {
  background: #eff6ff;
}

.promotion-row.promotion-champion {
  background: #fffdf5;
}

.promotion-row.promotion-direct {
  background: #f7fef9;
}

.promotion-row.promotion-prelim {
  background: #f8fbff;
}

.promotion-row.promotion-out {
  background: #fff;
}

.relegation-row {
  background: #fef2f2;
}

.relegation-row td:first-child,
.promotion-row.relegation-row td:first-child {
  background: #dc2626;
  color: #fff;
}

.relegation-row .standing-team strong {
  color: #991b1b;
}

.promotion-row td:first-child {
  width: 54px;
  color: #fff;
  font-weight: 900;
  text-align: center;
}

.promotion-row.promotion-champion td:first-child {
  background: #1d4ed8;
}

.promotion-row.promotion-direct td:first-child {
  background: #06b6d4;
}

.promotion-row.promotion-prelim td:first-child {
  background: #22c55e;
}

.promotion-row.promotion-out td:first-child {
  background: #f3f4f6;
  color: #6b7280;
}

.promotion-row.relegation-row td:first-child {
  background: #dc2626;
  color: #fff;
}

.promotion-position {
  display: inline-block;
  min-width: 26px;
}

.leader-mark {
  color: var(--accent);
  font-weight: 900;
}

.standing-team {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

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

.team-match-row {
  display: grid;
  grid-template-columns: 80px minmax(140px, 1fr) 80px 80px minmax(120px, 1fr) minmax(120px, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.schedule-import {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(220px, 1fr);
  gap: 14px;
  align-items: start;
}

.schedule-import .wide,
.schedule-import p,
.schedule-import .btn {
  grid-column: 1 / -1;
}

.schedule-preview {
  min-height: 120px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  overflow: hidden;
}

.schedule-preview:empty::before {
  content: "Vista previa de la foto";
  color: var(--muted);
  font-weight: 800;
}

.schedule-preview img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
}

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

.program-round-head {
  align-items: flex-start;
}

.program-round-head .toolbar {
  justify-content: flex-end;
}

.matchday-order-field {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 900;
  color: var(--muted);
  text-transform: uppercase;
}

.matchday-order-field input {
  width: 76px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
  font: inherit;
  color: var(--text);
}

.program-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) 140px 110px minmax(150px, 1fr) minmax(120px, 0.8fr);
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.program-row.finished {
  background: #f8fafc;
  opacity: .78;
}

.program-row.finished input,
.program-row.finished select {
  background: #eef2f7;
}

.program-row.interzonal-match-row,
.schedule-match-card.interzonal-match-row,
.team-fixture-card.interzonal-match-row,
.match-card.interzonal-match-row {
  border-left: 5px solid #ff7a00;
  border-color: #ffc078;
  background: #fff8ef;
}

.program-row input,
.program-row select {
  min-height: 38px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
}

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

.program-match > span {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.manual-fixture {
  display: grid;
  gap: 16px;
}

.fixture-status-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.fixture-mode-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px auto;
  align-items: end;
  gap: 12px;
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff7ed;
}

.fixture-info {
  display: grid;
  gap: 4px;
  min-height: 68px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.fixture-info span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fixture-info strong {
  font-size: 14px;
}

.manual-fixture-intro {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.manual-fixture-intro h3,
.manual-fixture-group h4,
.manual-preview h3 {
  margin: 0 0 4px;
}

.manual-fixture-group,
.manual-preview {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.manual-pair-list,
.manual-preview-list {
  display: grid;
  gap: 8px;
}

.manual-pair-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfa;
}

.manual-pair-row select,
.manual-bye select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
}

.manual-unassigned {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.manual-preview-row {
  display: grid;
  grid-template-columns: 110px 130px minmax(220px, 1fr) 90px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfa;
}

.manual-preview-row.bye {
  background: #fff7ed;
}

.manual-preview-row span,
.manual-preview-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.manual-fixture-actions,
.top-gap {
  margin-top: 8px;
}

.form-strip {
  display: flex;
  gap: 8px;
}

.form-pill {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-weight: 900;
  background: #eef4f3;
}

.form-pill.g {
  background: #dcfce7;
  color: #166534;
}

.form-pill.e {
  background: #fef3c7;
  color: #92400e;
}

.form-pill.p {
  background: #fee2e2;
  color: #991b1b;
}

.state-block {
  display: grid;
  gap: 10px;
}

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

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

.tabs button {
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--surface-secondary);
  color: var(--text-primary);
  font-weight: 800;
  border: 1px solid transparent;
}

.tabs button.active {
  background: var(--button-primary-background);
  color: var(--button-primary-text);
  border-color: var(--brand-accent);
  box-shadow: 0 8px 18px var(--focus-ring);
}

.branding-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1.2fr);
  gap: 16px;
  align-items: start;
}

.branding-form {
  display: grid;
  gap: 14px;
}

.branding-logo-preview {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-secondary);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  font-size: 22px;
  font-weight: 900;
  color: var(--brand-primary);
}

.branding-logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-color-field {
  min-width: 0;
}

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

.brand-color-input {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.brand-color-input input[type="color"] {
  width: 52px;
  min-height: 42px;
  padding: 4px;
}

.theme-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.branding-preview-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-primary);
  color: var(--text-primary);
  box-shadow: 0 16px 36px rgba(10, 20, 18, 0.10);
}

.branding-preview-sidebar {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 320px;
  padding: 18px;
  background: var(--surface-sidebar);
  color: var(--on-brand-primary);
}

.branding-preview-sidebar span {
  color: color-mix(in srgb, var(--on-brand-primary) 70%, transparent);
}

.branding-preview-sidebar button {
  min-height: 34px;
  border-radius: 8px;
  background: transparent;
  color: var(--on-brand-primary);
  text-align: left;
  font-weight: 800;
}

.branding-preview-sidebar button.active {
  background: color-mix(in srgb, var(--brand-primary) 32%, transparent);
  box-shadow: inset 4px 0 0 var(--brand-accent);
}

.branding-preview-content {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: var(--app-background);
}

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

.theme-sample-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--brand-primary) 16%, var(--border-subtle));
  background: var(--surface-primary);
}

.theme-sample-card.accent {
  border-color: var(--brand-accent);
  background: color-mix(in srgb, var(--brand-accent) 9%, var(--surface-primary));
}

.brand-token-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.brand-token {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--surface-secondary);
  color: var(--text-primary);
  font-weight: 800;
}

.brand-token::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--token-color, var(--brand-primary));
  border: 1px solid var(--border-subtle);
}

.theme-rules-note {
  padding: 12px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--brand-primary) 8%, var(--surface-primary));
  border: 1px solid color-mix(in srgb, var(--brand-primary) 18%, var(--border-subtle));
  color: var(--text-muted);
}

.tiny-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 8px;
}

.team-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.team-badge > span:not(.team-shield) {
  display: grid;
  gap: 2px;
}

.team-code-inline {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
}

.team-code-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--line));
  border-radius: 7px;
  background: color-mix(in srgb, var(--primary) 8%, #fff);
  color: var(--primary);
  font-size: 12px;
  font-weight: 950;
}

.icon-btn {
  min-height: 28px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
}

.icon-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.icon-btn.mini {
  font-size: 12px;
}

.team-shield {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.team-shield.placeholder {
  background: linear-gradient(135deg, #eef4f3, #dfe7e5);
}

.bulk-import-card textarea {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  min-height: 150px;
}

.soft-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfa;
}

.player-photo {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.player-photo.placeholder {
  display: inline-block;
  background: linear-gradient(135deg, #eef4f3, #dfe7e5);
}

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

.file-btn {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.file-btn input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.inline-select {
  min-height: 40px;
  max-width: 190px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.inline-edit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: 8px;
  min-width: min(720px, 78vw);
}

.inline-edit-grid input,
.inline-edit-grid select {
  min-height: 40px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  color: var(--text);
}

.inline-edit-grid .btn {
  min-height: 40px;
}

.roster-player-edit {
  grid-template-columns: repeat(2, minmax(96px, 1fr));
  min-width: min(320px, 68vw);
}

.team-owner-roster-card {
  overflow: hidden;
}

.roster-bulk-actions {
  justify-content: flex-end;
}

.team-owner-add-player-line {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
  align-items: end;
}

.team-owner-add-player-line .field {
  min-width: 0;
}

.team-owner-add-player-line input,
.team-owner-add-player-line select {
  width: 100%;
  min-width: 0;
}

.team-owner-add-player-line .btn {
  min-height: 42px;
}

.team-owner-roster-list {
  display: grid;
  gap: 12px;
}

.team-owner-roster-row {
  display: grid;
  grid-template-columns: minmax(220px, .9fr) minmax(0, 2fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.team-owner-roster-row.simple {
  grid-template-columns: 42px minmax(180px, 1fr) minmax(110px, .55fr) minmax(90px, .45fr) minmax(120px, .65fr) auto auto;
  align-items: center;
  gap: 10px;
}

.team-owner-roster-row.simple .player-photo {
  width: 36px;
  height: 36px;
}

.roster-simple-name,
.roster-simple-cell {
  min-width: 0;
}

.roster-simple-name strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roster-simple-cell {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.team-owner-roster-row.simple .file-btn {
  justify-self: end;
}

.team-owner-roster-sheet {
  overflow-x: auto;
}

.roster-sheet-head,
.roster-sheet-row.simple {
  display: grid;
  grid-template-columns: 44px minmax(180px, 1.2fr) 110px 110px 80px minmax(110px, .8fr) 110px minmax(150px, auto);
  gap: 10px;
  align-items: center;
}

.roster-sheet-head {
  min-width: 920px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
  background: #f3f8f7;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.roster-sheet-row.simple {
  min-width: 920px;
  border-radius: 0;
  border-top: 0;
}

.roster-row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.roster-row-actions .btn {
  min-height: 34px;
}

.team-owner-roster-row.editing.roster-sheet-row {
  grid-template-columns: minmax(220px, .75fr) minmax(0, 2fr) minmax(110px, auto);
  align-items: end;
}

.roster-photo-cell {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 6px;
  align-items: center;
}

.roster-photo-cell .file-btn {
  justify-self: stretch;
}

.roster-name-edit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.roster-field-compact {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.roster-name-edit input,
.roster-field-compact input,
.roster-field-compact select,
.team-owner-roster-fields textarea {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.team-owner-roster-fields .wide {
  grid-column: 1 / -1;
}

.team-owner-roster-fields textarea {
  resize: vertical;
}

.roster-player-summary {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.roster-player-summary .file-btn {
  grid-column: 1 / -1;
  justify-self: start;
}

.team-owner-roster-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 10px;
}

.team-owner-roster-fields label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.team-owner-roster-fields input,
.team-owner-roster-fields select {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  color: var(--text);
  font: inherit;
  background: #fff;
}

.team-owner-roster-fields input:disabled,
.team-owner-roster-fields select:disabled {
  color: #111827;
  background: #f3f7f6;
  opacity: 1;
}

.venue-edit-grid {
  grid-template-columns: repeat(4, minmax(120px, 1fr));
}

.logo-preview {
  min-height: 62px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  color: var(--muted);
  font-weight: 800;
}

.logo-preview img {
  max-width: 100%;
  max-height: 74px;
  object-fit: contain;
}

.color-preview {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.color-preview span {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.color-preview.compact {
  display: inline-flex;
  min-height: 0;
  padding: 4px;
}

.color-preview.compact span {
  width: 20px;
  height: 20px;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.check-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.check-card input {
  width: 18px;
  height: 18px;
}

.demo-card {
  text-align: left;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.demo-card strong {
  display: block;
}

.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  background: linear-gradient(180deg, var(--surface-sidebar), color-mix(in srgb, var(--brand-secondary) 68%, #020403));
  color: #eef7f5;
}

.sidebar .brand {
  margin-bottom: 4px;
}

.sidebar .brand span {
  color: #9fb5b1;
}

.nav {
  display: grid;
  gap: 6px;
}

.nav button {
  width: 100%;
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 8px;
  background: transparent;
  color: #d8e7e4;
  text-align: left;
  font-weight: 700;
}

.nav button.active,
.nav button:hover {
  background: color-mix(in srgb, var(--brand-primary) 24%, rgba(255, 255, 255, 0.10));
  box-shadow: inset 4px 0 0 var(--brand-accent);
  color: #fff;
}

.userbox {
  margin-top: auto;
  display: grid;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.main {
  min-width: 0;
  max-width: 100%;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 28px;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 3;
}

.topbar h2 {
  margin: 0;
  font-size: 24px;
}

.content {
  padding: 28px;
  display: grid;
  gap: 22px;
  min-width: 0;
  max-width: 100%;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: stretch;
}

.hero-copy {
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(255, 122, 0, 0.18), transparent 36%),
    linear-gradient(135deg, #080808, #202226);
  color: #fff;
  border-radius: 8px;
  display: grid;
  align-content: center;
  min-height: 240px;
  border: 1px solid rgba(255, 122, 0, 0.18);
  box-shadow: var(--shadow);
}

.hero-copy h2 {
  margin: 0 0 10px;
  font-size: 34px;
}

.league-hero-logo {
  width: 84px;
  height: 84px;
  object-fit: contain;
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.96);
}

.hero-img {
  min-height: 240px;
  border-radius: 8px;
  background-color: #070707;
  background-image:
    radial-gradient(circle at center, rgba(255, 122, 0, 0.20), transparent 30%),
    url("/assets/torix-logo.png");
  background-size: cover, contain;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: var(--shadow);
}

.grid {
  display: grid;
  gap: 16px;
}

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

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

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

.card {
  min-width: 0;
  max-width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 1px 2px rgba(22, 32, 31, 0.04);
}

.edit-panel {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent);
}

.metric {
  display: grid;
  gap: 6px;
}

.metric strong {
  font-size: 30px;
}

.team-dashboard-hero {
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr) 140px;
  align-items: stretch;
  gap: 18px;
  padding: 22px;
  border-radius: 8px;
  background: #101816;
  color: #fff;
  box-shadow: var(--shadow);
}

.team-dashboard-photo,
.team-dashboard-shield {
  display: grid;
  place-items: center;
  min-height: 150px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  color: #d7e1df;
  font-weight: 900;
}

.team-dashboard-photo img,
.team-dashboard-shield img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-dashboard-shield img {
  object-fit: contain;
  padding: 12px;
  background: #fff;
}

.team-dashboard-copy {
  display: grid;
  align-content: center;
  gap: 10px;
}

.team-dashboard-copy h2,
.team-dashboard-copy p {
  margin: 0;
}

.team-photo-cell {
  display: grid;
  gap: 8px;
  max-width: 150px;
}

.team-photo-cell .managed-team-photo-image {
  width: 130px;
  height: 74px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.managed-team-compact-list {
  display: grid;
  gap: 8px;
}

.managed-team-compact-row {
  display: grid;
  grid-template-columns: minmax(210px, 1.3fr) minmax(180px, 1fr) minmax(180px, auto) auto;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.managed-team-compact-identity {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.managed-team-compact-identity strong,
.managed-team-compact-identity span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.managed-team-compact-identity span,
.managed-team-compact-competition {
  color: var(--muted);
  font-size: 13px;
}

.managed-team-compact-shield {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.managed-team-compact-status,
.managed-team-pagination,
.managed-team-editor-tabs,
.managed-team-editor-head,
.managed-team-editor-media-grid {
  display: flex;
  align-items: center;
  gap: 8px;
}

.managed-team-pagination {
  justify-content: center;
  margin-top: 14px;
}

.managed-team-editor {
  display: grid;
  gap: 16px;
}

.managed-team-back {
  justify-self: start;
}

.managed-team-editor-head {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.managed-team-editor-head h2,
.managed-team-editor-head p {
  margin: 0;
}

.managed-team-editor-head .managed-team-editor-shield {
  width: 76px;
  height: 76px;
}

.managed-team-editor-tabs {
  flex-wrap: wrap;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.managed-team-editor-tabs button {
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text);
  background: var(--surface-secondary);
  font-weight: 800;
}

.managed-team-editor-tabs button.active {
  color: var(--button-primary-text);
  background: var(--button-primary-background);
}

.managed-team-editor-grid {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(320px, 1.1fr);
  gap: 14px;
  align-items: start;
}

.managed-team-editor-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.managed-team-editor-panel h3 {
  margin: 0;
}

.managed-team-editor-media-grid {
  align-items: start;
  flex-wrap: wrap;
}

.managed-team-editor-media-grid > div {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.managed-team-editor-shield {
  width: 128px;
  height: 128px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.managed-team-editor-photo {
  width: min(360px, 100%);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-secondary);
}

.managed-team-danger-zone {
  display: flex;
  justify-content: flex-end;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.managed-team-meta {
  display: grid;
  gap: 5px;
}

.managed-team-meta span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.managed-team-meta p {
  margin: 0;
  color: var(--text);
}

.managed-team-delegate .team-access-grid {
  min-width: 0;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
}

.team-sidebar-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.team-sidebar-card span {
  display: block;
  color: #9fb5b1;
  font-size: 12px;
  font-weight: 800;
}

.team-sidebar-card strong {
  display: block;
  overflow: hidden;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-sidebar-logo {
  display: grid;
  place-items: center;
}

.team-owner-selector {
  padding: 14px 18px;
}

.team-owner-selector .field.compact {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.team-dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border-radius: 8px;
  background: linear-gradient(135deg, #101010, #262a2e);
  color: #fff;
  box-shadow: var(--shadow);
}

.team-dashboard-header h2,
.team-dashboard-header p {
  margin: 0;
}

.team-dashboard-media {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(320px, 1.2fr);
  gap: 18px;
}

.team-identity-card,
.team-photo-card,
.team-match-summary {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 1px 2px rgba(22, 32, 31, 0.04);
}

.team-shield-large {
  min-height: 250px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f8f8;
  overflow: hidden;
}

.team-shield-large img {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  padding: 18px;
}

.team-photo-preview {
  aspect-ratio: 16 / 9;
  width: 100%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f8f8;
  overflow: hidden;
}

.team-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-owner-home {
  display: grid;
  gap: 18px;
}

.team-owner-cover {
  position: relative;
  min-height: clamp(180px, 30vw, 360px);
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101b19;
  box-shadow: var(--shadow);
}

.team-owner-cover > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-owner-cover .image-placeholder {
  min-height: clamp(180px, 30vw, 360px);
  background:
    linear-gradient(135deg, rgba(10, 20, 18, 0.92), rgba(5, 8, 8, 0.96)),
    #101b19;
  color: rgba(255, 255, 255, 0.78);
}

.team-owner-cover .image-placeholder strong {
  color: #fff;
}

.team-owner-identity {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 20px 16px 18px;
  border-radius: 8px;
  background: #101b19;
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow);
}

.team-owner-identity h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1;
}

.team-owner-shield {
  width: min(168px, 42vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: visible;
  background: transparent;
}

.team-owner-shield img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.team-owner-summary {
  gap: 16px;
}

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

.team-owner-media-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 4px 4px;
}

.team-owner-media-actions .btn.subtle {
  min-height: 36px;
  padding: 8px 12px;
  border-color: transparent;
  background: rgba(238, 244, 244, 0.72);
  color: #4a5458;
  font-size: 12px;
  box-shadow: none;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 20px;
  color: #5f686d;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(16, 24, 22, 0.06), rgba(255, 122, 0, 0.08)),
    #f1f3f4;
}

.image-placeholder strong {
  color: #20252a;
}

.photo-placeholder::before {
  content: "";
  width: min(220px, 70%);
  height: 54px;
  border-radius: 999px 999px 8px 8px;
  background:
    radial-gradient(circle at 18% 0, #c6cdd2 0 16px, transparent 17px),
    radial-gradient(circle at 50% 0, #b7c0c5 0 20px, transparent 21px),
    radial-gradient(circle at 82% 0, #c6cdd2 0 16px, transparent 17px),
    linear-gradient(#dbe0e3, #cbd2d6);
}

.shield-placeholder::before {
  content: "";
  width: 82px;
  height: 96px;
  clip-path: polygon(50% 0, 92% 16%, 84% 72%, 50% 100%, 16% 72%, 8% 16%);
  background: #cbd2d6;
}

.team-fixture-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

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

.match-teams-cell.interzonal-cell {
  padding: 2px 0;
}

.table-wrap tr:has(.interzonal-marker) {
  background: #fff8ef;
  box-shadow: inset 5px 0 0 #ff7a00;
}

.interzonal-badge {
  width: fit-content;
  background: #111;
  color: #ffb35b;
  border: 1px solid #ff7a00;
  letter-spacing: 0;
}

.interzonal-meta {
  color: #8a4600;
  font-weight: 900;
}

.team-fixture-card.bye {
  background: #fff7df;
  border-color: #f4d98d;
}

.team-fixture-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.schedule-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.schedule-hero h2,
.schedule-hero p {
  margin: 0;
}

.schedule-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
}

.schedule-venue-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(22, 32, 31, 0.08);
}

.schedule-venue-card.pending {
  border-color: #f4d98d;
  background: #fffaf0;
}

.schedule-venue-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.schedule-venue-head h3,
.schedule-venue-head p,
.schedule-field-group h4 {
  margin: 0;
}

.schedule-field-group {
  display: grid;
  gap: 10px;
}

.schedule-field-group h4 {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.schedule-match-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.schedule-match-card.highlight {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, #fff);
}

.schedule-time {
  display: grid;
  place-items: center;
  min-height: 48px;
  border-radius: 8px;
  background: #101816;
  color: #fff;
  font-weight: 900;
}

.schedule-match-main {
  display: grid;
  gap: 4px;
}

.schedule-match-main p {
  margin: 0;
}

.schedule-state {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.scheduled-shell {
  display: grid;
  gap: 24px;
  padding: 12px;
  border-radius: 8px;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, .16), transparent 34%),
    linear-gradient(145deg, #010a14 0%, #031425 54%, #061423 100%);
  color: #f8fbff;
}

.scheduled-hero {
  display: grid;
  grid-template-columns: 44px 52px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 28px 22px 2px;
}

.scheduled-back,
.scheduled-mini-btn,
.scheduled-refresh,
.scheduled-venue-tab {
  cursor: pointer;
  border: 0;
  font: inherit;
}

.scheduled-back {
  width: 40px;
  height: 40px;
  background: transparent;
  color: #fff;
  font-size: 42px;
  line-height: 1;
}

.scheduled-calendar-icon,
.scheduled-venue-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(87, 131, 255, .5);
  border-radius: 14px;
  background: rgba(38, 92, 211, .22);
  color: #5f8cff;
  font-size: 30px;
}

.scheduled-hero h2 {
  margin: 0;
  font-size: 44px;
  line-height: 1.04;
  color: #fff;
}

.scheduled-hero p {
  margin: 10px 0 0;
  color: #aab7d0;
  font-size: 20px;
}

.scheduled-panel {
  display: grid;
  gap: 26px;
  padding: 0 20px 24px;
  border: 1px solid rgba(91, 139, 255, .2);
  border-radius: 16px;
  background: rgba(3, 18, 34, .72);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025);
}

.scheduled-venue-tabs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, max-content);
  gap: 22px;
  overflow-x: auto;
  border-bottom: 1px solid rgba(120, 149, 190, .18);
}

.scheduled-venue-tabs.empty {
  padding: 20px;
  color: #9fb0cc;
}

.scheduled-venue-tab {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 0 22px;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #91a0bd;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.scheduled-venue-tab.active {
  border-color: #4f79ff;
  color: #5f8cff;
}

.venue-glyph {
  font-size: 26px;
}

.scheduled-selected-venue {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.scheduled-venue-title {
  display: flex;
  align-items: center;
  gap: 22px;
}

.scheduled-venue-title h3,
.scheduled-venue-title p,
.scheduled-info-copy p {
  margin: 0;
}

.scheduled-venue-title h3 {
  font-size: 30px;
  line-height: 1;
}

.scheduled-venue-title p,
.scheduled-info-copy p {
  color: #9fb0cc;
  font-size: 18px;
}

.scheduled-date-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.scheduled-mini-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(88, 119, 160, .16);
  color: #c9d7f2;
  font-size: 24px;
}

.scheduled-date-picker {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
  padding: 14px 16px;
  border: 1px solid rgba(116, 147, 190, .28);
  border-radius: 14px;
  color: #aebbd4;
}

.scheduled-date-picker input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.scheduled-date-picker strong {
  font-weight: 800;
}

.scheduled-table {
  overflow: hidden;
  border: 1px solid rgba(116, 147, 190, .25);
  border-radius: 14px;
}

.scheduled-row {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) 170px 170px;
  align-items: center;
  min-height: 90px;
  border-top: 1px solid rgba(116, 147, 190, .22);
}

.scheduled-field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  border-top: 1px solid rgba(0, 153, 64, .18);
  background: rgba(0, 153, 64, .07);
  color: #008f3b;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.scheduled-field-label span {
  color: #5f6b7a;
  font-size: 11px;
}

.scheduled-head {
  min-height: 54px;
  border-top: 0;
  background: rgba(51, 93, 157, .15);
  color: #9fb0cc;
  font-weight: 900;
  text-transform: uppercase;
}

.scheduled-row > * {
  padding: 0 22px;
}

.scheduled-time {
  color: #4f79ff;
  font-size: 28px;
  font-weight: 950;
}

.scheduled-matchup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.scheduled-matchup > strong {
  justify-self: center;
  color: #72819f;
  font-size: 16px;
}

.scheduled-matchup small {
  grid-column: 1 / -1;
  color: #7f8fac;
  font-weight: 800;
}

.scheduled-team {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}

.scheduled-team.home {
  justify-content: flex-end;
  text-align: right;
}

.scheduled-team.away {
  justify-content: flex-start;
}

.scheduled-team span {
  overflow-wrap: anywhere;
}

.scheduled-shield {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  object-fit: contain;
}

.scheduled-shield.placeholder {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background: linear-gradient(135deg, #dfe7ea, #b6c1c7);
}

.scheduled-tournament {
  border-left: 1px solid rgba(116, 147, 190, .25);
}

.scheduled-referee {
  border-left: 1px solid rgba(116, 147, 190, .25);
  color: #dbeafe;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.scheduled-referee span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scheduled-tournament-badge {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  font-weight: 950;
  color: #bcd2ff;
  background: rgba(24, 80, 177, .35);
  border: 1px solid rgba(76, 135, 255, .25);
}

.scheduled-tournament-badge.violet {
  color: #e6a9ff;
  background: rgba(112, 40, 159, .42);
  border-color: rgba(202, 94, 255, .24);
}

.scheduled-tournament-badge.green {
  color: #8cff72;
  background: rgba(38, 123, 38, .35);
  border-color: rgba(115, 255, 107, .2);
}

.scheduled-tournament-badge.neutral {
  color: #d6e2f7;
  background: rgba(83, 101, 130, .28);
}

.scheduled-match.highlight {
  background: rgba(79, 121, 255, .1);
}

.scheduled-match.interzonal-match-row {
  box-shadow: inset 5px 0 0 #ff7a00;
}

.scheduled-info-card,
.scheduled-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border: 1px solid rgba(91, 139, 255, .22);
  border-radius: 14px;
  background: rgba(4, 20, 38, .62);
}

.scheduled-info-copy {
  display: flex;
  align-items: center;
  gap: 16px;
}

.scheduled-info-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid #4f79ff;
  border-radius: 50%;
  color: #6f94ff;
  font-weight: 950;
}

.scheduled-refresh {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(91, 139, 255, .28);
  border-radius: 12px;
  background: rgba(9, 31, 60, .75);
  color: #6f94ff;
  font-weight: 900;
}

.scheduled-empty {
  display: grid;
  justify-items: start;
  color: #dbe6ff;
}

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

.section-head h3,
.card h3 {
  margin: 0;
  font-size: 18px;
}

.loading-card {
  min-height: 180px;
}

.skeleton-lines {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.skeleton-lines span {
  display: block;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--surface-secondary), #ffffff, var(--surface-secondary));
  background-size: 220% 100%;
  animation: skeletonPulse 1.2s ease-in-out infinite;
}

.skeleton-lines span:nth-child(2) {
  width: 76%;
}

.skeleton-lines span:nth-child(3) {
  width: 52%;
}

@keyframes skeletonPulse {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: -100% 0;
  }
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #f2f6f5;
  color: #41514e;
  font-size: 12px;
  text-transform: uppercase;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 8px;
  background: #eef4f3;
  color: #263734;
  font-size: 12px;
  font-weight: 800;
}

.badge.ok {
  background: #dcfce7;
  color: #166534;
}

.badge.warn {
  background: #fef3c7;
  color: #92400e;
}

.badge.info {
  background: #dbeafe;
  color: #1d4ed8;
}

.badge.danger {
  background: #fee2e2;
  color: #991b1b;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}

.team-create-form {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  align-items: end;
}

.team-create-submit {
  width: 100%;
  align-self: end;
}

.teams-create-card,
.import-panel-teams {
  overflow: hidden;
}

.import-panel-teams .stack {
  min-width: 0;
  max-width: 100%;
}

.import-panel-teams textarea {
  max-width: 100%;
  overflow: auto;
  white-space: pre;
}

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

.form-grid .wide {
  grid-column: 1 / -1;
}

.notice {
  border-left: 4px solid var(--accent);
  background: #fff7e6;
  padding: 12px;
  border-radius: 8px;
}

.image-upload-status {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 1200;
  max-width: min(320px, calc(100vw - 32px));
  box-shadow: 0 12px 32px rgb(15 23 42 / 24%);
  font-weight: 800;
}

.error {
  color: var(--danger);
  font-weight: 800;
}

.success {
  color: var(--ok);
  font-weight: 800;
}

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

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

.group-card h4 {
  margin: 0;
  padding: 12px;
  background: #f2f6f5;
}

.group-card ol {
  margin: 0;
  padding: 12px 12px 12px 30px;
}

.group-card li {
  margin: 8px 0;
}

.group-draw-panel {
  display: grid;
  gap: 14px;
}

.manual-group-editor,
.manual-group-team-list {
  display: grid;
  gap: 10px;
}

.manual-group-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.manual-group-team-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(150px, 220px);
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

@media (max-width: 640px) {
  .manual-group-team-row {
    grid-template-columns: 1fr;
  }
}

.bracket {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 16px;
  overflow: auto;
  padding-bottom: 6px;
}

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

.playoff-editor {
  display: grid;
  gap: 14px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfa;
}

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

.playoff-editor-round,
.playoff-editor-card {
  display: grid;
  gap: 10px;
}

.playoff-editor-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.playoff-editor-card label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.playoff-editor-card select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
}

.match-sheet {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.team-sheet {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.sheet-head,
.sheet-row {
  display: grid;
  grid-template-columns: 54px 42px minmax(220px, 1.4fr) 132px 90px 64px 64px 64px;
  gap: 6px;
  align-items: center;
}

.team-sheet.sheet-can-delete .sheet-head,
.team-sheet.sheet-can-delete .sheet-row {
  grid-template-columns: 54px 42px minmax(220px, 1.4fr) 132px 90px 64px 64px 64px 86px;
}

.team-sheet.sheet-attendance-only .sheet-head,
.team-sheet.sheet-attendance-only .sheet-row {
  grid-template-columns: 54px 42px minmax(220px, 1.6fr) 132px 90px;
}

.sheet-delete-btn {
  min-height: 34px;
  padding: 6px 8px;
}

.roster-player-open {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.roster-number-inline-wrap {
  display: grid;
  gap: 2px;
}

.roster-number-inline {
  width: 72px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  background: #fff;
  font: inherit;
  font-weight: 900;
  text-align: center;
}

.sheet-head {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.sheet-head span {
  text-align: center;
}

.sheet-head span:first-child {
  text-align: left;
}

.sheet-row {
  min-height: 44px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
}

.sheet-row.present {
  background: #f0fbf7;
}

.sheet-row.editing {
  outline: 2px solid rgba(0, 118, 110, .24);
  background: #effdfa;
}

.sheet-row.sanctioned-player {
  background: #fff1f2;
  border-color: #fecdd3;
}

.sheet-row.sanctioned-player strong {
  color: #991b1b;
}

.sheet-player-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.sheet-player-edit-cell .player-photo {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
}

.sheet-photo-control {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  cursor: default;
}

.sheet-photo-control input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.sheet-photo-control .player-photo {
  width: 34px;
  height: 34px;
}

.sheet-player-name-button {
  display: grid;
  gap: 2px;
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.sheet-player-name-button strong {
  min-width: 0;
  overflow: hidden;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sheet-player-name-button small {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sheet-name-fields {
  display: grid;
  grid-template-columns: minmax(82px, 1fr) minmax(82px, 1fr);
  gap: 6px;
  min-width: 0;
}

.sheet-name-fields input,
.sheet-row input[data-stat="dni"],
.sheet-row input[data-stat="shirtNumber"],
.sheet-row input[data-stat="goals"],
.sheet-row input[data-stat="yellowCards"],
.sheet-row input[data-stat="redCards"] {
  width: 100%;
  min-width: 0;
  min-height: 32px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #f8faf9;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
}

.sheet-name-fields input {
  padding: 0 7px;
}

.sheet-row input[data-stat="dni"],
.sheet-row input[data-stat="shirtNumber"],
.sheet-row input[data-stat="goals"],
.sheet-row input[data-stat="yellowCards"],
.sheet-row input[data-stat="redCards"] {
  text-align: center;
}

.sheet-name-fields input:focus,
.sheet-row input[data-stat="dni"]:focus,
.sheet-row input[data-stat="shirtNumber"]:focus,
.sheet-row input[data-stat="goals"]:focus,
.sheet-row input[data-stat="yellowCards"]:focus,
.sheet-row input[data-stat="redCards"]:focus {
  border-color: rgba(0, 118, 110, .36);
  background: #fff;
  outline: 2px solid rgba(0, 118, 110, .12);
}

.sheet-player-flags {
  grid-column: 1 / -1;
  min-height: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.sheet-notes {
  min-width: 82px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
}

.sheet-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.player-detail-edit-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  margin: 8px 0 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-sizing: border-box;
}

.player-detail-edit-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.player-detail-edit-head strong,
.player-detail-edit-head span {
  display: block;
  min-width: 0;
}

.player-detail-edit-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 12px;
}

.player-detail-edit-fields label {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.player-detail-edit-fields input,
.player-detail-edit-fields select,
.player-detail-edit-fields textarea {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.player-detail-edit-fields .wide {
  grid-column: 1 / -1;
}

.player-detail-edit-fields textarea {
  resize: vertical;
}

.player-detail-edit-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 10px;
  width: min(100%, 760px);
}

.match-figure-picker {
  display: grid;
  gap: 8px;
  margin: 14px 0 10px;
  padding: 10px 12px;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  background: #f0fdf4;
}

.match-figure-picker .compact-head {
  margin: 0;
}

.match-figure-picker h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 950;
}

.match-figure-picker .field label {
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.match-detail-view {
  padding-top: 74px;
}

.content:has(.sheet-sticky-save) {
  padding-top: 102px;
}

.content:has(.sheet-sticky-save) .match-detail-view {
  padding-top: 0;
}

.sheet-sticky-save {
  position: fixed;
  top: 92px;
  left: 308px;
  right: 28px;
  z-index: 120;
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 8px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .96) 34%);
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.12);
}

.sheet-sticky-save .btn {
  flex: 1 1 0;
  max-width: 420px;
  min-height: 44px;
}

.sheet-sticky-save.single-action .btn {
  max-width: 720px;
}

.result-score-panel {
  gap: 12px;
}

.result-score-panel .section-head {
  align-items: center;
}

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

.result-score-team {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.result-score-team-name {
  overflow: hidden;
  color: #5c6470;
  font-size: 15px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-score-input-wrap {
  display: grid;
  justify-items: center;
  gap: 4px;
  width: max-content;
}

.result-score-input-wrap small {
  color: #6b7280;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.result-score-input {
  width: 64px;
  height: 58px;
  border: 0;
  border-radius: 10px;
  background: #101010;
  color: #fff;
  font-size: 28px;
  font-weight: 950;
  text-align: center;
}

.result-score-input:focus {
  outline: 3px solid rgba(0, 118, 110, .2);
}

@media (max-width: 560px) {
  .result-score-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .result-score-team {
    grid-template-columns: minmax(0, 1fr) 58px;
    align-items: center;
  }

  .result-score-team-name {
    font-size: 14px;
  }

  .result-score-input-wrap {
    justify-self: end;
  }

  .result-score-input {
    width: 58px;
    height: 52px;
    font-size: 24px;
  }
}

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

.sheet-row input[type="number"],
.sheet-dni-control input {
  width: 100%;
  min-height: 32px;
  border: 1px solid transparent;
  border-radius: 6px;
  text-align: center;
}

.sheet-dni-control input {
  padding: 0 8px;
  font-weight: 800;
}

.assigned-match-cards {
  display: none;
}

.assigned-match-cards.always-visible {
  display: grid;
  gap: 12px;
}

.assigned-match-card {
  display: grid;
  gap: 14px;
  max-width: 760px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
}

.assigned-match-header {
  display: grid;
  grid-template-columns: minmax(110px, auto) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.assigned-match-time {
  display: grid;
  place-items: center;
  min-width: 112px;
  border-radius: 8px;
  padding: 12px;
  background: #081711;
  color: #fff;
  text-align: center;
}

.assigned-match-time strong,
.assigned-match-time span {
  display: block;
  line-height: 1.1;
}

.assigned-match-time strong {
  font-size: 14px;
}

.assigned-match-time span {
  margin-top: 4px;
  color: #d7eee7;
  font-size: 18px;
  font-weight: 950;
}

.assigned-match-referee {
  display: grid;
  align-content: center;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #f8faf9;
}

.assigned-match-referee span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.assigned-match-referee strong {
  min-width: 0;
  overflow: hidden;
  color: #0b1110;
  font-size: 20px;
  font-weight: 950;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.assigned-team-line {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-areas: "logo name" "logo code";
  align-items: center;
  column-gap: 10px;
  min-width: 0;
}

.assigned-team-logo {
  grid-area: logo;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef3f4;
  object-fit: contain;
}

.assigned-team-line strong {
  grid-area: name;
  min-width: 0;
  overflow: hidden;
  color: #0b1110;
  font-size: 17px;
  font-weight: 950;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assigned-team-line small {
  grid-area: code;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .5px;
}

.assigned-vs {
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.assigned-match-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.assigned-match-meta > span {
  border-radius: 999px;
  padding: 6px 10px;
  background: #ecfdf3;
  color: #087a43;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.assigned-open-btn {
  justify-self: start;
  min-width: 220px;
}

.sheet-control {
  display: grid;
  align-items: center;
  gap: 4px;
}

.sheet-mobile-label {
  display: none;
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 6, 23, .56);
}

.modal-panel {
  width: min(920px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(15, 23, 42, .24);
}

.quick-player-modal {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.quick-player-head {
  align-items: flex-start;
}

.team-logo {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #eef2f7;
  flex: 0 0 auto;
}

.team-logo.placeholder {
  display: inline-block;
}

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

.quick-player-context span {
  display: grid;
  gap: 2px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  color: var(--muted);
  font-size: 13px;
}

.quick-player-context strong {
  color: var(--text);
  font-size: 12px;
  text-transform: uppercase;
}

.quick-player-options {
  display: grid;
  gap: 8px;
}

.quick-player-actions {
  justify-content: flex-end;
}

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

.sanction-rules-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f8fafc;
}

.sanction-rules-panel h4 {
  margin: 0 0 4px;
}

.sanction-sections {
  display: grid;
  gap: 18px;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.sanction-section {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.sanction-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.sanction-section-head h4 {
  margin: 0;
  font-size: 16px;
}

.sanction-list {
  display: grid;
}

.sanction-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(116px, auto);
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: #fff;
}

.sanction-row + .sanction-row {
  border-top: 1px solid var(--line);
}

.sanction-row.active {
  box-shadow: 4px 0 0 #f97316 inset;
}

.sanction-row-main {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.sanction-row-player {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.sanction-row-player > div {
  display: grid;
  gap: 2px;
}

.sanction-row-player span,
.sanction-row-context {
  color: var(--muted);
  font-size: 12px;
}

.sanction-row-details {
  display: grid;
  grid-template-columns: repeat(6, minmax(110px, 1fr));
  gap: 10px;
  margin: 0;
}

.sanction-row-meta,
.sanction-row-report {
  display: grid;
  gap: 3px;
}

.sanction-row-meta dt,
.sanction-row-report strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.sanction-row-meta dd {
  margin: 0;
  color: var(--muted);
}

.sanction-row-meta.remaining dd {
  color: #b45309;
  font-size: 18px;
  font-weight: 900;
}

.sanction-row-context {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.sanction-row-report p {
  margin: 0;
  color: var(--muted);
}

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

.sanction-row-management .wide {
  grid-column: 1 / -1;
}

.sanction-row-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  gap: 8px;
  align-self: stretch;
}

.sanction-row-actions:empty {
  display: none;
}

.sanction-section > .empty-state {
  margin: 0;
  padding: 18px 14px;
}

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

.sanction-active-filter {
  align-self: end;
  min-height: 42px;
}

.goal-summary-card {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.goal-summary-card.ok {
  border-color: #86efac;
  background: #f0fdf4;
}

.goal-summary-card.warn {
  border-color: #fde68a;
  background: #fffbeb;
}

.match-control-lines {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.match-control-help {
  margin: -2px 0 10px;
}

.own-goal-panel {
  margin: 10px 0 12px;
  padding: 12px;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  background: #f0fdf4;
}

.own-goal-panel .compact-head {
  margin-bottom: 4px;
}

.own-goal-panel h4 {
  margin: 0;
  color: #065f46;
  font-size: 15px;
}

.own-goal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 0;
}

.own-goal-field {
  display: grid;
  gap: 6px;
}

.own-goal-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.own-goal-field input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111;
  color: #fff;
  font-size: 20px;
  font-weight: 950;
  text-align: center;
}

.match-control-line {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf9;
}

.match-control-line.ok {
  border-color: #86efac;
  background: #f0fdf4;
}

.match-control-line.warn {
  border-color: #fde68a;
  background: #fffbeb;
}

.match-control-line strong {
  font-size: 14px;
  font-weight: 950;
}

.match-control-line span {
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
}

.playoff-config-preview,
.playoff-preview-card {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

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

.playoff-preview-card.direct {
  border-color: #86efac;
  background: #f0fdf4;
}

.playoff-preview-card.prelim {
  border-color: #93c5fd;
  background: #eff6ff;
}

.playoff-preview-card.out {
  border-color: #d1d5db;
  background: #f9fafb;
}

.playoff-preview-card.champion,
.promotion-preview {
  border-color: #fbbf24;
  background: #fffbeb;
}

.playoff-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}

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

.playoff-legend b {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid var(--line);
}

.legend-direct {
  background: #dcfce7;
}

.legend-champion {
  background: #fef3c7;
}

.legend-prelim {
  background: #dbeafe;
}

.legend-relegation {
  background: #fecaca;
}

.legend-out {
  background: #f3f4f6;
}

.badge.playoff-direct {
  color: #166534;
  background: #dcfce7;
}

.badge.playoff-champion {
  color: #92400e;
  background: #fef3c7;
}

.badge-stack {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
}

.badge.playoff-prelim {
  color: #1d4ed8;
  background: #dbeafe;
}

.badge.playoff-out {
  color: #4b5563;
  background: #f3f4f6;
}

.badge.relegation-badge {
  color: #991b1b;
  background: #fee2e2;
}

.check-cell {
  display: grid;
  place-items: center;
}

.check-cell input {
  width: 20px;
  height: 20px;
}

.sheet-present-control input[data-stat="present"] {
  position: relative;
  width: 44px;
  height: 24px;
  margin: 0;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: #b8b8bd;
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.18);
  cursor: pointer;
  transition: background 0.18s ease;
}

.sheet-present-control input[data-stat="present"]::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.28);
  transition: transform 0.18s ease;
}

.sheet-present-control input[data-stat="present"]:checked {
  background: #a8f0bf;
}

.sheet-present-control input[data-stat="present"]:checked::after {
  transform: translateX(20px);
  background: #39d765;
}

.sheet-present-control input[data-stat="present"]:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.inline-tool {
  margin-top: 16px;
}

.match-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.score-input {
  width: 58px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.result-editor {
  display: grid;
  gap: 8px;
  min-width: 220px;
}

.result-editor .toolbar {
  gap: 6px;
}

.result-units textarea {
  min-height: 66px;
  font-size: 12px;
}

.assign-cell {
  display: grid;
  gap: 6px;
  min-width: 170px;
}

.assign-cell select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: #fff;
}

.assign-cell small {
  color: var(--muted);
}

.admin-matches-panel {
  display: grid;
  gap: 18px;
}

.admin-matches-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.admin-matches-title h2 {
  margin: 2px 0 4px;
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: .98;
  text-transform: uppercase;
}

.admin-matchday-block {
  display: grid;
  gap: 12px;
}

.admin-matchday-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px;
}

.admin-matchday-head h3 {
  margin: 0;
}

.admin-matchday-head span {
  color: var(--muted);
  font-weight: 900;
}

.admin-match-card-list {
  display: grid;
  gap: 12px;
}

.admin-match-card {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .05);
}

.admin-match-card.interzonal-match-row {
  border-left: 5px solid #ff7a00;
  background: #fff8ef;
}

.admin-match-card.match-audit-ok {
  border-left: 6px solid #16a34a;
  background: linear-gradient(90deg, rgba(22, 163, 74, .08), #fff 24%);
}

.admin-match-card.match-audit-warn {
  border-left: 6px solid #facc15;
  background: linear-gradient(90deg, rgba(250, 204, 21, .16), #fff 24%);
}

.match-audit-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.match-audit-badge.ok {
  color: #047857;
  background: #dcfce7;
}

.match-audit-badge.warn {
  color: #92400e;
  background: #fef3c7;
}

.audit-card .table-wrap td {
  vertical-align: middle;
}

.admin-match-main {
  display: grid;
  grid-template-columns: minmax(130px, .6fr) minmax(280px, 1.8fr) auto;
  align-items: center;
  gap: 14px;
}

.admin-match-status {
  display: grid;
  gap: 6px;
}

.admin-match-status small {
  color: var(--muted);
  font-weight: 900;
}

.admin-match-teams .match-teams-cell {
  display: grid;
  gap: 6px;
}

.admin-match-teams .fixture-rivals {
  justify-content: center;
  gap: 14px;
}

.admin-match-teams .standing-team {
  min-width: 0;
  max-width: 260px;
}

.admin-match-controls {
  display: grid;
  grid-template-columns: repeat(6, minmax(160px, 1fr));
  gap: 10px;
}

.admin-control-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfa;
}

.admin-control-card > strong {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.admin-control-card .assign-cell,
.admin-control-card .result-editor {
  min-width: 0;
  width: 100%;
}

.admin-control-card input,
.admin-control-card select,
.admin-control-card textarea {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 9px;
  background: #fff;
}

.admin-control-card .toolbar {
  gap: 6px;
}

.admin-control-result {
  grid-column: span 2;
}

.admin-byes-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  border: 1px dashed #9ca3af;
  border-radius: 8px;
  background: #f8fafc;
}

.btn.mini {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 12px;
}

.public-site {
  min-height: 100vh;
  background: #080808;
  color: #f7f7f7;
}

.public-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(14px);
}

.public-header nav,
.public-header .public-menu,
.public-header > .toolbar,
.public-header .btn,
.public-header a:not(.public-brand) {
  display: none !important;
}

.public-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.public-brand small {
  display: block;
  color: #aeb4bc;
  font-size: 12px;
  font-weight: 700;
}

.public-nav {
  display: none !important;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #d7dbe0;
  font-size: 14px;
  font-weight: 800;
}

.public-header .public-menu,
.public-header > .toolbar {
  display: none !important;
}

.public-nav a,
.link-button {
  text-decoration: none;
}

.link-button {
  padding: 0;
  color: inherit;
  background: transparent;
  font-weight: 900;
}

.secondary-nav {
  display: none;
}

.public-menu {
  display: none;
  position: relative;
}

.public-menu summary {
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

.public-menu[open] {
  display: grid;
  gap: 10px;
}

.public-menu[open] a,
.public-menu[open] button {
  width: 100%;
}

.public-menu a {
  color: #f7f7f7;
  text-decoration: none;
  font-weight: 800;
}

.landing-hero {
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.62fr);
  align-items: center;
  gap: 34px;
  padding: clamp(44px, 6vw, 92px) clamp(18px, 5vw, 72px) 54px;
  background:
    linear-gradient(110deg, rgba(8, 8, 8, 1) 0%, rgba(8, 8, 8, 0.92) 46%, rgba(255, 122, 0, 0.12) 100%),
    url("/assets/torix-logo.png") right 6vw center / min(54vw, 760px) no-repeat;
}

.landing-copy {
  max-width: 680px;
}

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

.landing-copy h1 {
  margin: 10px 0 14px;
  font-size: clamp(52px, 9vw, 118px);
  line-height: 0.92;
}

.landing-copy p {
  max-width: 620px;
  color: #d7dbe0;
  font-size: 20px;
  line-height: 1.55;
}

.landing-copy h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
}

.landing-logo {
  display: grid;
  place-items: center;
}

.landing-logo img {
  width: min(520px, 100%);
  border-radius: 8px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.48);
}

.landing-access-card {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: #151515;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

.landing-access-card .brand-mark {
  width: 72px;
  height: 72px;
}

.landing-access-card h2 {
  margin: 0;
  font-size: 28px;
}

.landing-access-card p {
  margin: 0;
  line-height: 1.5;
}

.btn.ghost.light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
}

.public-band,
.public-section,
.public-footer {
  padding: 42px clamp(18px, 5vw, 72px);
}

.public-section {
  background: #f4f5f6;
  color: var(--text);
}

.public-band {
  background: #111;
}

.public-band .section-head h2,
.public-band .feature-card h3 {
  color: #fff;
}

.public-band .muted {
  color: #c8cdd3;
}

.public-band .feature-card {
  background: #181818;
  border-color: rgba(255, 255, 255, 0.12);
}

.public-section.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
}

.feature-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card h3,
.contact-card h3 {
  margin-top: 0;
}

.feature-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 8px;
  background: var(--accent);
  color: #111;
  font-size: 13px;
  font-weight: 950;
}

#request-service .request-title + .section-head {
  display: none;
}

.anchor-target {
  position: absolute;
  transform: translateY(-96px);
}

.lead {
  font-size: 20px;
  line-height: 1.55;
  font-weight: 800;
}

.steps {
  display: grid;
  gap: 12px;
}

.step {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.step span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #111;
  font-weight: 900;
}

.contact-card,
.faq {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.faq summary {
  cursor: pointer;
  font-weight: 900;
}

.service-form {
  max-width: 1180px;
}

.check-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.public-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #d7dbe0;
}

.access-page .login-panel {
  min-height: 100vh;
}

.access-brand {
  margin-bottom: 24px;
}

.access-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.access-tabs button {
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 900;
}

.access-tabs button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #111;
}

.password-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.access-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.access-links button {
  padding: 0;
  color: var(--info);
  background: transparent;
  font-weight: 800;
}

.notification-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.notification-row.unread strong {
  color: var(--accent);
}

.request-detail {
  display: grid;
  gap: 22px;
}

.request-editor {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafafa;
}

.request-editor summary {
  cursor: pointer;
  font-weight: 900;
}

.request-editor .form-grid {
  margin: 14px 0;
}

.info-tile {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.info-tile a {
  color: var(--info);
  font-weight: 900;
}

.request-message {
  white-space: pre-wrap;
  line-height: 1.55;
}

.meta-list p {
  margin: 6px 0;
}

.timeline {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.timeline-item {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.mobile-menu {
  display: none;
}

@media (max-width: 980px) {
  .managed-team-compact-row,
  .managed-team-editor-grid {
    grid-template-columns: 1fr;
  }

  .managed-team-compact-row > .btn {
    width: 100%;
  }

  .managed-team-compact-status {
    flex-wrap: wrap;
  }

  .managed-team-editor-media-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .managed-team-editor-tabs button {
    flex: 1 1 140px;
  }

  .login,
  .app,
  .hero,
  .landing-hero,
  .public-section.split {
    grid-template-columns: 1fr;
  }

  .login-visual {
    min-height: 220px;
    order: -1;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .sheet-sticky-save {
    top: calc(env(safe-area-inset-top, 0px) + 102px);
    left: 24px;
    right: 24px;
  }

  .grid.cols-2,
  .grid.cols-3,
  .grid.cols-4,
  .branding-grid,
  .brand-colors-grid,
  .branding-preview-card,
  .theme-sample-grid,
  .admin-match-main,
  .admin-match-controls,
  .managed-team-fields,
  .team-owner-roster-row,
  .team-owner-roster-fields,
  .fixture-preview-row,
  .score-line,
  .team-match-row,
  .schedule-import,
  .program-row,
  .manual-pair-row,
  .manual-preview-row,
  .fixture-status-grid,
  .fixture-mode-form,
  .form-grid,
  .own-goal-grid,
  .match-sheet {
    grid-template-columns: 1fr;
  }

  .fixture-rivals {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .admin-matches-title,
  .admin-matchday-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-match-teams .fixture-rivals {
    justify-content: flex-start;
  }

  .admin-control-result {
    grid-column: auto;
  }

  .tournament-hero-card,
  .team-profile-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .score-team {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }

  .public-header,
  .public-footer,
  .notification-row,
  .managed-team-card-head,
  .manual-fixture-intro {
    align-items: stretch;
    flex-direction: column;
  }

  .public-header {
    display: flex;
  }

  .public-nav {
    display: none;
  }

  .roster-bulk-actions,
  .roster-bulk-actions .btn,
  .team-owner-roster-row .file-btn {
    width: 100%;
  }

  .team-owner-roster-row {
    padding: 10px;
  }

  .team-owner-cover {
    min-height: 210px;
  }

  .team-owner-identity {
    padding: 18px 14px;
  }

  .team-owner-shield {
    width: min(150px, 46vw);
  }

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

  .team-owner-media-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .team-owner-add-player-line {
    grid-template-columns: 1fr;
  }

  .team-owner-roster-row.simple {
    grid-template-columns: 38px minmax(0, 1fr) 68px auto;
    align-items: center;
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
  }

  .team-owner-roster-sheet {
    overflow-x: visible;
  }

  .roster-sheet-head,
  .roster-sheet-row.simple {
    grid-template-columns: 38px minmax(0, 1fr) 68px auto;
    gap: 6px;
    min-width: 0;
  }

  .roster-sheet-head {
    display: none;
  }

  .roster-sheet-row.simple .roster-simple-cell {
    display: none;
  }

  .team-owner-roster-row.simple .badge,
  .team-owner-roster-row.simple .file-btn {
    display: none;
  }

  .team-owner-roster-row.simple .roster-row-actions {
    display: flex;
    grid-column: auto;
    min-width: 0;
  }

  .team-owner-roster-row.simple .roster-row-actions {
    justify-content: stretch;
  }

  .team-owner-roster-row.simple .roster-row-actions .btn,
  .team-owner-roster-row.simple .file-btn {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 6px 8px;
    font-size: 11px;
  }

  .roster-player-open strong {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    font-size: 14px;
    line-height: 1.1;
  }

  .roster-number-inline {
    width: 58px;
    min-height: 36px;
    padding: 4px;
    font-size: 15px;
  }

  .roster-player-summary {
    grid-template-columns: 44px minmax(0, 1fr);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
  }

  .team-owner-roster-fields label {
    font-size: 11px;
  }

  .team-owner-roster-fields input,
  .team-owner-roster-fields select {
    min-height: 44px;
    font-size: 16px;
  }

  .team-owner-roster-row.editing.roster-sheet-row {
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: start;
  }

  .team-owner-roster-row.editing.roster-sheet-row .roster-player-summary,
  .team-owner-roster-row.editing.roster-sheet-row .team-owner-roster-fields,
  .team-owner-roster-row.editing.roster-sheet-row .roster-row-actions {
    grid-column: 1 / -1;
  }

  .team-owner-roster-row.editing.roster-sheet-row .roster-row-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
    gap: 8px;
  }

  .team-owner-roster-row.editing.roster-sheet-row .roster-row-actions .btn {
    width: 100%;
  }

  .team-sheet {
    gap: 8px;
    border: 0;
    border-radius: 0;
    padding: 8px 0;
    overflow: hidden;
    box-shadow: none;
  }

  .team-sheet .section-head {
    align-items: stretch;
    gap: 10px;
  }

  .team-sheet .toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .team-sheet .toolbar .btn {
    min-height: 38px;
    padding: 7px 8px;
    font-size: 11px;
  }

  .sheet-head {
    display: none;
  }

  .team-sheet.sheet-can-delete .sheet-row,
  .sheet-row {
    grid-template-columns: 46px 28px minmax(74px, 1fr) 38px 36px 32px 34px;
    column-gap: 7px;
    row-gap: 5px;
    min-width: 0;
    padding: 8px 0;
  }

  .team-sheet.sheet-can-delete .sheet-row {
    grid-template-columns: 46px 28px minmax(68px, 1fr) 36px 34px 30px 32px 40px;
  }

  .team-sheet.sheet-attendance-only .sheet-row {
    grid-template-columns: 46px 30px minmax(100px, 1fr) 42px;
  }

  .sheet-dni-control {
    display: none;
  }

  .sheet-photo-control,
  .sheet-photo-control .player-photo {
    width: 28px;
    height: 28px;
  }

  .sheet-player-name-button strong {
    font-size: 11px;
    line-height: 1;
  }

  .sheet-player-name-button small {
    display: none;
  }

  .sheet-player-edit-cell .player-photo {
    display: none;
  }

  .sheet-name-fields {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .sheet-name-fields input {
    min-height: 22px;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 12px;
    line-height: 1.1;
    text-align: left;
  }

  .sheet-name-fields input[data-stat="lastName"] {
    color: #4b5563;
  }

  .sheet-player-flags {
    display: none;
  }

  .sheet-mobile-label {
    display: none;
  }

  .sheet-present-control {
    justify-items: start;
  }

  .sheet-present-control input {
    width: 44px;
    height: 24px;
    accent-color: #008f3b;
  }

  .sheet-row input[data-stat="shirtNumber"],
  .sheet-row input[data-stat="goals"],
  .sheet-row input[data-stat="yellowCards"],
  .sheet-row input[data-stat="redCards"] {
    border: 0;
    background: #f8faf9;
    min-height: 34px;
    padding: 2px;
    font-size: 13px;
  }

  .sheet-shirt-control {
    justify-self: start;
    margin-left: -1px;
    margin-right: 7px;
  }

  .sheet-goals-control {
    justify-self: center;
    margin-left: 7px;
  }

  .sheet-yellow-control {
    justify-self: center;
  }

  .sheet-shirt-control input[data-stat="shirtNumber"],
  .sheet-goals-control input[data-stat="goals"] {
    max-width: 32px;
    margin-inline: auto;
  }

  .sheet-red-control {
    justify-self: end;
    margin-right: -1px;
  }

  .sheet-delete-btn {
    min-height: 34px;
    padding: 5px 6px;
    font-size: 10px;
  }

  .sheet-sticky-save {
    top: calc(env(safe-area-inset-top, 0px) + 102px);
    left: 24px;
    right: 24px;
    padding: 8px 4px;
  }

  .public-menu {
    display: block;
  }

  .public-header > .toolbar {
    display: none;
  }

  .landing-hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(8, 8, 8, 0.88), rgba(8, 8, 8, 1)),
      url("/assets/torix-logo.png") right 18px top 18px / 160px no-repeat;
    padding-top: 34px;
  }

  .landing-logo {
    display: none;
  }

  .landing-access-card {
    width: 100%;
  }

  .feature-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .login-panel,
  .content,
  .topbar,
  .public-band,
  .public-section,
  .public-footer {
    padding: 18px;
  }

  .login h2,
  .hero-copy h2 {
    font-size: 26px;
  }

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

  .toolbar {
    align-items: stretch;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

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

  .team-dashboard-photo,
  .team-dashboard-shield {
    min-height: 120px;
  }

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

  .schedule-hero,
  .schedule-venue-head {
    align-items: stretch;
    flex-direction: column;
  }

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

  .schedule-match-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .scheduled-shell {
    padding: 0;
  }

  .scheduled-hero {
    grid-template-columns: 36px 42px minmax(0, 1fr);
    gap: 10px;
    padding: 20px 14px 0;
  }

  .scheduled-back {
    width: 34px;
    height: 34px;
    font-size: 34px;
  }

  .scheduled-calendar-icon,
  .scheduled-venue-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 22px;
  }

  .scheduled-hero h2 {
    font-size: 27px;
  }

  .scheduled-hero p {
    font-size: 14px;
  }

  .scheduled-panel {
    gap: 18px;
    padding: 0 12px 14px;
    border-radius: 14px;
  }

  .scheduled-venue-tabs {
    grid-auto-columns: max-content;
    gap: 10px;
  }

  .scheduled-venue-tab {
    min-height: 58px;
    padding: 0 14px;
    font-size: 13px;
  }

  .scheduled-selected-venue,
  .scheduled-info-card {
    align-items: stretch;
    flex-direction: column;
  }

  .scheduled-date-tools {
    justify-content: stretch;
  }

  .scheduled-date-picker {
    min-width: 0;
    width: 100%;
  }

  .scheduled-row,
  .scheduled-head {
    grid-template-columns: 1fr;
  }

  .scheduled-head {
    display: none;
  }

  .scheduled-match {
    gap: 12px;
    padding: 14px;
  }

  .scheduled-row > * {
    padding: 0;
  }

  .scheduled-time {
    font-size: 25px;
  }

  .scheduled-matchup {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .scheduled-matchup > strong {
    justify-self: start;
  }

  .scheduled-team.home,
  .scheduled-team.away {
    justify-content: flex-start;
    text-align: left;
  }

  .scheduled-team.home {
    flex-direction: row-reverse;
  }

  .scheduled-tournament {
    border-left: 0;
  }

  .schedule-state {
    justify-items: start;
  }

  .scoreboard-round-card {
    border-radius: 14px;
  }

  .scoreboard-round-card header {
    min-height: 48px;
    font-size: 18px;
  }

  .scoreboard-match-row {
    grid-template-columns: minmax(0, 38%) minmax(74px, 24%) minmax(0, 38%);
    min-height: 68px;
  }

  .scoreboard-team {
    gap: 6px;
    padding: 8px 7px;
    font-size: 13px;
    font-weight: 800;
  }

  .scoreboard-shield {
    width: 30px;
    height: 30px;
  }

  .scoreboard-center strong {
    font-size: 10px;
  }

  .scoreboard-center span {
    font-size: 22px;
  }

  .toolbar .btn,
  .toolbar select,
  .toolbar input {
    width: 100%;
  }

  .team-sheet {
    padding: 10px;
    overflow-x: hidden;
  }

  .modal-backdrop {
    align-items: start;
    padding: 10px;
  }

  .quick-player-modal {
    max-height: calc(100vh - 20px);
    padding: 12px;
  }

  .quick-player-context {
    grid-template-columns: 1fr;
  }

  .quick-player-actions .btn {
    width: 100%;
  }

  .assigned-matches-desktop {
    display: none;
  }

  .assigned-match-cards {
    display: grid;
    gap: 12px;
  }

  .assigned-match-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(22, 32, 31, .06);
  }

  .assigned-match-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    align-items: stretch;
  }

  .assigned-match-time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    min-height: 42px;
    padding: 8px 9px;
    border-radius: 9px;
    background: #101816;
    color: #fff;
    text-align: center;
  }

  .assigned-match-time strong,
  .assigned-match-time span {
    display: block;
    line-height: 1.05;
    white-space: nowrap;
  }

  .assigned-match-time strong {
    font-size: 13px;
  }

  .assigned-match-time span {
    margin-top: 0;
    color: #d7eee7;
    font-size: 14px;
    font-weight: 950;
  }

  .assigned-match-referee {
    display: grid;
    align-content: center;
    min-width: 0;
    min-height: 42px;
    padding: 7px 9px;
    border: 1px solid #dce2e6;
    border-radius: 9px;
    background: #f8faf9;
  }

  .assigned-match-referee span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 950;
    line-height: 1;
    text-transform: uppercase;
  }

  .assigned-match-referee strong {
    min-width: 0;
    overflow: hidden;
    color: #0b1110;
    font-size: 12px;
    font-weight: 950;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .assigned-match-main {
    display: grid;
    gap: 5px;
    min-width: 0;
  }

  .assigned-team-line {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    grid-template-areas: "logo name" "logo code";
    align-items: center;
    column-gap: 8px;
    min-width: 0;
  }

  .assigned-team-logo {
    grid-area: logo;
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #eef3f4;
  }

  .assigned-team-line strong {
    grid-area: name;
    min-width: 0;
    overflow: hidden;
    color: #0b1110;
    font-size: 18px;
    font-weight: 950;
    line-height: 1.02;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .assigned-team-line small {
    grid-area: code;
    color: var(--muted);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 1px;
  }

  .assigned-vs {
    width: fit-content;
    margin-left: 42px;
    color: #111827;
    font-size: 11px;
    font-weight: 950;
    line-height: 1;
  }

  .assigned-match-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }

  .assigned-match-meta > span {
    max-width: 58%;
    overflow: hidden;
    color: #0f766e;
    font-size: 12px;
    font-weight: 950;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .assigned-open-btn {
    min-height: 44px;
    width: 100%;
  }

  .sheet-head,
  .sheet-row {
    grid-template-columns: 40px 24px minmax(62px, 1fr) 35px 33px 28px 30px;
    column-gap: 6px;
    row-gap: 4px;
    min-width: 0;
  }

  .team-sheet.sheet-can-delete .sheet-head,
  .team-sheet.sheet-can-delete .sheet-row {
    grid-template-columns: 40px 24px minmax(58px, 1fr) 34px 31px 27px 29px 36px;
    min-width: 0;
  }

  .sheet-head {
    display: none;
    padding: 8px 4px 6px;
    border-bottom: 1px solid var(--line);
    color: #5f646b;
    font-size: 9px;
    font-weight: 950;
    line-height: 1.1;
    text-transform: uppercase;
  }

  .sheet-row input[type="number"] {
    width: 100%;
    border: 0;
    min-height: 32px;
    padding: 3px 1px;
    background: #f8faf9;
    font-size: 12px;
    font-weight: 900;
  }

  .sheet-row {
    grid-template-areas: none;
    min-height: 52px;
    padding: 7px 0;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: #fff;
  }

  .match-detail-view,
  .match-detail-view .card,
  .match-detail-view .inline-tool,
  .match-detail-view .team-sheet {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .match-detail-view .team-sheet {
    padding-inline: 0;
  }

  .sheet-present-control {
    align-self: stretch;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .sheet-player-cell {
    align-items: center;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .sheet-player-edit-cell .player-photo {
    display: none;
  }

  .sheet-photo-control,
  .sheet-photo-control .player-photo {
    width: 24px;
    height: 24px;
  }

  .sheet-player-name-button strong {
    font-size: 9.5px;
    line-height: 1.05;
  }

  .sheet-player-name-button small {
    display: none;
  }

  .sheet-name-fields {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .sheet-name-fields input,
  .sheet-row input[data-stat="dni"],
  .sheet-row input[data-stat="shirtNumber"],
  .sheet-row input[data-stat="goals"],
  .sheet-row input[data-stat="yellowCards"],
  .sheet-row input[data-stat="redCards"] {
    border: 0;
    min-height: 34px;
    padding: 0 2px;
    background: #f8faf9;
    font-size: 10px;
  }

  .sheet-player-flags {
    display: none;
  }

  .sheet-control {
    min-width: 0;
    display: block;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .sheet-mobile-label {
    display: none;
  }

  .sheet-dni-control {
    display: none;
  }

  .check-cell {
    place-items: center start;
  }

  .check-cell input {
    justify-self: center;
    width: 38px;
    height: 22px;
  }

  .sheet-shirt-control {
    justify-self: start;
    margin-left: -1px;
    margin-right: 7px;
  }

  .sheet-goals-control {
    justify-self: center;
    margin-left: 7px;
  }

  .sheet-yellow-control {
    justify-self: center;
  }

  .sheet-shirt-control input[data-stat="shirtNumber"],
  .sheet-goals-control input[data-stat="goals"] {
    max-width: 30px;
    margin-inline: auto;
  }

  .sheet-red-control {
    justify-self: end;
    margin-right: -1px;
  }

  .sheet-present-control input[data-stat="present"]::after {
    width: 18px;
    height: 18px;
  }

  .sheet-present-control input[data-stat="present"]:checked::after {
    transform: translateX(16px);
  }

  .sheet-delete-btn {
    min-height: 34px;
    padding: 4px 5px;
    font-size: 10px;
  }

  .sheet-notes {
    width: 100%;
    min-height: 42px;
    font-size: 15px;
  }

  .sheet-actions {
    padding-top: 4px;
  }

  .sheet-actions {
    justify-content: stretch;
  }

  .sheet-actions .btn {
    flex: 1 1 46%;
    min-height: 42px;
    font-size: 12px;
  }

  .sheet-row-edit {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
    border: 1px dashed var(--line);
    border-radius: 10px;
    background: #fbfefd;
  }

  .player-detail-edit-card {
    margin-top: 8px;
    padding: 12px 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .player-detail-edit-head {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .player-detail-edit-head .file-btn {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .player-detail-edit-fields {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .player-detail-edit-actions {
    grid-template-columns: 1fr 1fr;
  }

  .goal-summary {
    grid-template-columns: 1fr;
  }

  .sanction-row,
  .sanction-row-details,
  .sanction-row-management,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .sanction-row {
    gap: 12px;
    padding: 12px;
  }

  .sanction-row-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .sanction-row-management .wide {
    grid-column: auto;
  }

  .playoff-preview-grid {
    grid-template-columns: 1fr;
  }

  .result-editor,
  .assign-cell {
    min-width: 0;
    width: 100%;
  }

  .inline-edit-grid,
  .venue-edit-grid {
    grid-template-columns: 1fr;
    min-width: 260px;
  }

  table {
    min-width: 640px;
  }

  .landing-copy h1 {
    font-size: 52px;
  }

  .landing-copy p {
    font-size: 16px;
  }

  .public-header .toolbar,
  .public-footer .toolbar {
    width: 100%;
  }
}

/* Final overrides for the shared Torix Sports Dark Green views. */
.sports-board {
  background:
    radial-gradient(circle at 50% -10%, rgba(32, 223, 80, .18), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.035), transparent 18%),
    linear-gradient(140deg, var(--sports-bg-deep), var(--sports-bg-main) 48%, #010905);
  color: var(--sports-text-main);
}

.sports-board .sports-panel,
.sports-board .scoreboard-round-card,
.sports-board .table-wrap,
.sports-board .sports-table-wrap {
  border-color: var(--sports-border);
  background: linear-gradient(180deg, rgba(6, 38, 25, .96), rgba(3, 23, 15, .96));
}

.sports-board .scoreboard-round-card {
  overflow: hidden;
  border-radius: var(--sports-radius-panel);
  box-shadow: none;
}

.sports-board .scoreboard-round-card + .scoreboard-round-card {
  margin-top: 14px;
}

.sports-board .scoreboard-round-card header {
  min-height: 58px;
  background: #000;
  color: var(--sports-text-main);
  font-family: "Arial Narrow", "Roboto Condensed", "Barlow Condensed", Impact, system-ui, sans-serif;
  font-size: 26px;
  font-weight: 950;
  text-transform: uppercase;
}

.sports-board .scoreboard-match-row {
  min-height: 82px;
  border-color: var(--sports-divider);
  background: linear-gradient(90deg, rgba(9, 49, 29, .94), rgba(5, 27, 17, .94));
}

.sports-board .scoreboard-match-row:nth-child(even) {
  background: linear-gradient(90deg, rgba(7, 36, 25, .94), rgba(3, 23, 15, .94));
}

.sports-board .scoreboard-match-row.interzonal-match-row {
  border-left-color: var(--sports-gold);
  background: rgba(240, 198, 46, .10);
}

.sports-board .scoreboard-team {
  color: var(--sports-text-main);
  font-family: "Arial Narrow", "Roboto Condensed", "Barlow Condensed", Impact, system-ui, sans-serif;
  font-size: clamp(18px, 2.5vw, 30px);
  font-weight: 950;
  text-transform: uppercase;
}

.sports-board .scoreboard-shield {
  width: 48px;
  height: 48px;
}

.sports-board .scoreboard-center {
  color: var(--sports-green-primary);
  font-family: "Arial Narrow", "Roboto Condensed", "Barlow Condensed", Impact, system-ui, sans-serif;
}

.sports-board .scoreboard-center strong {
  color: var(--sports-green-primary);
  font-size: 17px;
  font-style: italic;
  font-weight: 950;
}

.sports-board .scoreboard-center .interzonal-badge,
.sports-board .scoreboard-center .interzonal-meta {
  font-size: 17px;
  line-height: 1.1;
}

.sports-board .scoreboard-center span {
  color: var(--sports-green-primary);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 950;
}

.sports-board table,
.sports-board .sports-table {
  color: var(--sports-text-main);
  font-family: "Arial Narrow", "Roboto Condensed", "Barlow Condensed", Impact, system-ui, sans-serif;
}

.sports-board th,
.sports-board td {
  border-color: var(--sports-divider);
  color: var(--sports-text-main);
}

.sports-board th {
  background: rgba(0, 0, 0, .46);
}

.sports-board tbody tr {
  background: var(--sports-bg-row);
}

.sports-board tbody tr:nth-child(even) {
  background: var(--sports-bg-row-alt);
}

.sports-board .leader-row,
.sports-board .qualified-row,
.sports-board .promotion-row,
.sports-board .relegation-row {
  color: var(--sports-text-main);
}

.sports-board .sports-row-tone-gold {
  background: rgba(240, 198, 46, .12) !important;
}

.sports-board .sports-row-tone-green {
  background: rgba(40, 216, 97, .11) !important;
}

.sports-board .sports-row-tone-blue {
  background: rgba(8, 105, 216, .14) !important;
}

.sports-board .sports-row-tone-gray {
  background: rgba(119, 126, 122, .12) !important;
}

.sports-board .sports-row-tone-red {
  background: rgba(223, 32, 37, .16) !important;
}

.sports-board .scheduled-row,
.scheduled-shell .scheduled-row {
  border-top-color: var(--sports-divider);
}

.scheduled-shell {
  background:
    radial-gradient(circle at top left, rgba(32, 223, 80, .16), transparent 34%),
    linear-gradient(145deg, var(--sports-bg-deep) 0%, var(--sports-bg-main) 54%, #010905 100%);
}

.scheduled-shell .scheduled-calendar-icon,
.scheduled-shell .scheduled-venue-icon {
  border-color: var(--sports-border);
  background: var(--sports-green-soft);
  color: var(--sports-green-primary);
}

.scheduled-shell .scheduled-panel,
.scheduled-shell .scheduled-date-picker,
.scheduled-shell .scheduled-table,
.scheduled-shell .scheduled-info-card,
.scheduled-shell .scheduled-empty,
.scheduled-shell .scheduled-refresh {
  border-color: var(--sports-border-soft);
  background: rgba(0, 0, 0, .24);
}

.scheduled-shell .scheduled-venue-tab.active {
  border-color: var(--sports-green-primary);
  color: var(--sports-green-primary);
}

.scheduled-shell .scheduled-time,
.scheduled-shell .scheduled-refresh,
.scheduled-shell .scheduled-info-icon {
  color: var(--sports-green-primary);
}

.scheduled-shell .scheduled-info-icon {
  border-color: var(--sports-green-primary);
}

.scheduled-shell .scheduled-tournament-badge,
.scheduled-shell .scheduled-tournament-badge.violet,
.scheduled-shell .scheduled-tournament-badge.green,
.scheduled-shell .scheduled-tournament-badge.neutral {
  border-color: rgba(32, 223, 80, .26);
  background: rgba(32, 223, 80, .16);
  color: var(--sports-green-primary);
}

@media (max-width: 760px) {
  .sports-board .scoreboard-match-row {
    grid-template-columns: minmax(0, 38%) minmax(78px, 24%) minmax(0, 38%);
    min-height: 72px;
  }

  .sports-board .scoreboard-team {
    gap: 6px;
    padding: 8px 7px;
    font-size: 14px;
  }

  .sports-board .scoreboard-shield {
    width: 32px;
    height: 32px;
  }

  .sports-board .scoreboard-center strong {
    font-size: 10px;
  }

  .sports-board .scoreboard-center .interzonal-badge,
  .sports-board .scoreboard-center .interzonal-meta {
    font-size: 10px;
  }

  .sports-board .scoreboard-center span {
    font-size: 24px;
  }
}

/* Lightweight white sports panels used across every role. */
.sports-board {
  --sports-panel-line: #dce2e6;
  --sports-row-line: #e7ebee;
  --sports-ink: #07090b;
  --sports-muted-ink: #4b5563;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--sports-panel-line);
  border-radius: 12px;
  background: #fff;
  color: var(--sports-ink);
  box-shadow: none;
}

.sports-board.compact {
  padding: 16px;
}

.sports-board .sports-tournament-header {
  grid-template-columns: auto 1fr;
  justify-items: start;
  align-items: center;
  gap: 4px 16px;
  text-align: left;
}

.sports-board .sports-tournament-header h2 {
  color: var(--sports-ink);
  font-family: "Arial Narrow", "Roboto Condensed", "Barlow Condensed", Impact, system-ui, sans-serif;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 950;
  line-height: .95;
  text-shadow: none;
}

.sports-board.compact .sports-tournament-header h2 {
  font-size: clamp(28px, 3.4vw, 42px);
}

.sports-board .sports-division-band {
  min-width: 0;
  padding: 7px 18px;
  border: 0;
  border-radius: 999px;
  background: #edf0f2;
  color: var(--sports-ink);
  font-size: 17px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
}

.sports-board .sports-section-title {
  grid-column: 1 / -1;
  display: block;
  width: auto;
  color: var(--sports-ink);
  font-size: clamp(19px, 2vw, 26px);
  line-height: 1.05;
}

.sports-board .sports-section-title span {
  display: none;
}

.sports-board .sports-panel,
.sports-board .scoreboard-round-card,
.sports-board .table-wrap,
.sports-board .sports-table-wrap {
  overflow: hidden;
  border: 1px solid var(--sports-panel-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
}

.sports-board .sports-panel {
  border: 0;
  border-radius: 0;
}

.sports-board table,
.sports-board .sports-table {
  min-width: 720px;
  color: var(--sports-ink);
  font-size: 16px;
  font-weight: 800;
}

.sports-board th,
.sports-board td,
.sports-board table th,
.sports-board table td {
  padding: 9px 12px;
  border-color: var(--sports-row-line);
  color: var(--sports-ink);
  background: transparent;
}

.sports-board th,
.sports-board table th {
  background: #fff;
  color: #20262d;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.sports-board tbody tr,
.sports-board table tbody tr,
.sports-board tbody tr:nth-child(even),
.sports-board table tbody tr:nth-child(even),
.sports-board .leader-row,
.sports-board .qualified-row,
.sports-board .promotion-row,
.sports-board .relegation-row,
.sports-board .sports-row-tone-gold,
.sports-board .sports-row-tone-green,
.sports-board .sports-row-tone-blue,
.sports-board .sports-row-tone-gray,
.sports-board .sports-row-tone-red {
  background: #fff !important;
  color: var(--sports-ink);
}

.sports-board .sports-team-identity,
.sports-board .standing-team,
.sports-board .match-teams-cell,
.sports-board .fixture-rivals {
  color: var(--sports-ink);
}

.sports-board .sports-team-identity strong,
.sports-board .standing-team strong,
.sports-board .sports-player-name {
  color: var(--sports-ink);
  font-size: 17px;
  font-weight: 950;
}

.sports-board .sports-team-logo,
.sports-board .tiny-logo,
.sports-board .scoreboard-shield {
  width: 34px;
  height: 34px;
}

.sports-board .sports-team-logo.placeholder,
.sports-board .tiny-logo.placeholder,
.sports-board .scoreboard-shield.placeholder,
.scheduled-shell .scheduled-shield.placeholder {
  border: 1px solid #d8dfe3;
  border-radius: 8px;
  background: #eef3f4;
}

.sports-board .sports-rank {
  min-width: 44px;
  min-height: 30px;
  border-radius: 4px;
  font-size: 18px;
  text-shadow: none;
}

.sports-board .sports-stat-pill {
  min-width: 54px;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 20px;
  text-shadow: none;
}

.sports-board .badge,
.sports-board .badge.playoff-prelim,
.sports-board .badge.playoff-direct,
.sports-board .badge.playoff-out,
.sports-board .badge.playoff-champion,
.sports-board .badge.relegation-badge {
  border-radius: 5px;
  padding: 4px 7px;
  font-size: 12px;
  font-weight: 950;
}

.sports-board .scoreboard-round-card {
  margin: 0;
  border-radius: 10px;
}

.sports-board .scoreboard-round-card + .scoreboard-round-card {
  margin-top: 12px;
  border-top: 1px solid var(--sports-panel-line);
}

.sports-board .scoreboard-round-card header {
  min-height: 44px;
  border-bottom: 1px solid var(--sports-row-line);
  background: #fff;
  color: var(--sports-ink);
  font-size: 24px;
  letter-spacing: 0;
}

.sports-board .scoreboard-match-row,
.sports-board .scoreboard-match-row:nth-child(even) {
  min-height: 58px;
  border-color: var(--sports-row-line);
  background: #fff;
}

.sports-board .scoreboard-match-row.interzonal-match-row {
  border-left: 5px solid #f0c62e;
  background: #fffdf2;
}

.sports-board .scoreboard-team {
  color: var(--sports-ink);
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 850;
}

.sports-board .scoreboard-center {
  color: #1f2933;
}

.sports-board .scoreboard-center strong,
.sports-board .scoreboard-center .interzonal-badge,
.sports-board .scoreboard-center .interzonal-meta {
  color: #2f3740;
  font-size: 13px;
  font-style: normal;
}

.sports-board .scoreboard-center span {
  color: var(--sports-ink);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 850;
}

.sports-board .fixture-rivals em {
  color: var(--sports-muted-ink);
}

.sports-board input,
.sports-board select,
.sports-board textarea {
  border-color: var(--sports-panel-line);
  background: #fff;
  color: var(--sports-ink);
}

.sports-board input[type="date"],
.sports-board input[type="time"] {
  color-scheme: light;
}

.sports-board .btn.secondary {
  background: #f2f6f6;
  color: var(--sports-ink);
}

.scheduled-shell {
  padding: 14px;
  border: 1px solid #dce2e6;
  border-radius: 12px;
  background: #fff;
  color: #07090b;
}

.scheduled-shell .scheduled-hero {
  grid-template-columns: 38px 44px minmax(0, 1fr);
  gap: 12px;
  padding: 22px 16px 0;
}

.scheduled-shell .scheduled-hero {
  color: #07090b;
}

.scheduled-shell .scheduled-hero h2 {
  color: #07090b;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1;
}

.scheduled-shell .scheduled-hero p {
  margin-top: 6px;
  font-size: 15px;
}

.scheduled-shell .scheduled-calendar-icon,
.scheduled-shell .scheduled-venue-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 23px;
}

.scheduled-shell .scheduled-hero p,
.scheduled-shell .scheduled-venue-title p,
.scheduled-shell .scheduled-info-copy p,
.scheduled-shell .scheduled-venue-tabs.empty,
.scheduled-shell .scheduled-matchup small,
.scheduled-shell .scheduled-date-picker {
  color: #4b5563;
}

.scheduled-shell .scheduled-calendar-icon,
.scheduled-shell .scheduled-venue-icon {
  border-color: #bce9c7;
  background: #f1fff4;
  color: #11a637;
}

.scheduled-shell .scheduled-panel {
  gap: 18px;
  padding: 0 16px 18px;
}

.scheduled-shell .scheduled-venue-tab {
  min-height: 58px;
  padding: 0 16px;
  gap: 9px;
  font-size: 13px;
}

.scheduled-shell .venue-glyph {
  font-size: 20px;
}

.scheduled-shell .scheduled-selected-venue {
  gap: 12px;
}

.scheduled-shell .scheduled-venue-title {
  gap: 14px;
}

.scheduled-shell .scheduled-venue-title h3 {
  font-size: 24px;
}

.scheduled-shell .scheduled-venue-title p,
.scheduled-shell .scheduled-info-copy p {
  font-size: 14px;
}

.scheduled-shell .scheduled-date-picker {
  min-width: 230px;
  padding: 11px 13px;
  border-radius: 12px;
  font-size: 13px;
}

.scheduled-shell .scheduled-mini-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.scheduled-shell .scheduled-panel,
.scheduled-shell .scheduled-date-picker,
.scheduled-shell .scheduled-table,
.scheduled-shell .scheduled-info-card,
.scheduled-shell .scheduled-empty,
.scheduled-shell .scheduled-refresh {
  border-color: #dce2e6;
  background: #fff;
  box-shadow: none;
}

.scheduled-shell .scheduled-venue-tabs {
  border-bottom-color: #dce2e6;
}

.scheduled-shell .scheduled-venue-tab {
  color: #4b5563;
}

.scheduled-shell .scheduled-venue-tab.active {
  border-color: #14b83e;
  color: #08912c;
}

.scheduled-shell .scheduled-head {
  background: #fff;
  color: #2f3740;
}

.scheduled-shell .scheduled-row {
  grid-template-columns: 112px minmax(0, 1fr) 150px 150px;
  min-height: 72px;
}

.scheduled-shell .scheduled-row {
  border-top-color: #e7ebee;
}

.scheduled-shell .scheduled-row > * {
  padding: 0 16px;
}

.scheduled-shell .scheduled-time {
  font-size: 22px;
  line-height: 1.18;
}

.scheduled-shell .scheduled-matchup {
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
  gap: 10px;
}

.scheduled-shell .scheduled-team {
  gap: 10px;
  font-size: 16px;
}

.scheduled-shell .scheduled-team span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow-wrap: anywhere;
}

.scheduled-shell .scheduled-shield {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
}

.scheduled-shell .scheduled-matchup > strong {
  font-size: 13px;
}

.scheduled-shell .scheduled-matchup small {
  font-size: 12px;
}

.scheduled-shell .scheduled-match,
.scheduled-shell .scheduled-match:nth-child(even) {
  background: #fff;
}

.scheduled-shell .scheduled-match.highlight {
  background: #f4fff7;
}

.scheduled-shell .scheduled-time,
.scheduled-shell .scheduled-refresh,
.scheduled-shell .scheduled-info-icon {
  color: #08912c;
}

.scheduled-shell .scheduled-team {
  color: #07090b;
  font-weight: 850;
}

.scheduled-shell .scheduled-tournament {
  border-left-color: #e7ebee;
}

.scheduled-shell .scheduled-referee {
  border-left-color: #e7ebee;
  color: #374151;
  font-size: 12px;
}

.scheduled-shell .scheduled-tournament-badge {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 12px;
}

.scheduled-shell .scheduled-info-card {
  padding: 14px 16px;
}

.scheduled-shell .scheduled-info-icon {
  width: 32px;
  height: 32px;
}

.scheduled-shell .scheduled-refresh {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 14px;
}

.scheduled-shell .scheduled-tournament-badge,
.scheduled-shell .scheduled-tournament-badge.violet,
.scheduled-shell .scheduled-tournament-badge.green,
.scheduled-shell .scheduled-tournament-badge.neutral,
.scheduled-shell .scheduled-tournament-badge.blue {
  border-color: #bce9c7;
  background: #f1fff4;
  color: #08912c;
}

@media (max-width: 760px) {
  .sports-board {
    padding: 12px;
  }

  .sports-board .sports-tournament-header {
    grid-template-columns: 1fr;
  }

  .sports-board table,
  .sports-board .sports-table {
    min-width: 620px;
    font-size: 14px;
  }

  .sports-board .scoreboard-match-row {
    grid-template-columns: minmax(0, 38%) minmax(78px, 24%) minmax(0, 38%);
  }

  .scheduled-shell {
    padding: 12px;
  }

  .scheduled-shell .scheduled-hero {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
    padding: 12px 4px 0;
  }

  .scheduled-shell .scheduled-calendar-icon {
    display: none;
  }

  .scheduled-shell .scheduled-hero h2 {
    font-size: 24px;
  }

  .scheduled-shell .scheduled-hero p {
    font-size: 13px;
  }

  .scheduled-shell .scheduled-panel {
    gap: 12px;
    padding: 0 8px 12px;
    border-radius: 12px;
  }

  .scheduled-shell .scheduled-venue-tabs {
    grid-auto-flow: row;
    grid-auto-columns: unset;
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
    gap: 6px;
    overflow-x: visible;
    padding: 8px 0;
  }

  .scheduled-shell .scheduled-venue-tab {
    justify-content: center;
    min-width: 0;
    min-height: 38px;
    padding: 0 6px;
    border: 1px solid #dce2e6;
    border-radius: 10px;
    font-size: 10px;
    line-height: 1.05;
    text-align: center;
    white-space: normal;
  }

  .scheduled-shell .scheduled-venue-tab.active {
    border-color: #14b83e;
    background: #effdf3;
  }

  .scheduled-shell .scheduled-venue-tab .venue-glyph {
    display: none;
  }

  .scheduled-shell .scheduled-selected-venue {
    align-items: stretch;
    flex-direction: column;
  }

  .scheduled-shell .scheduled-venue-icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .scheduled-shell .scheduled-venue-title {
    gap: 10px;
  }

  .scheduled-shell .scheduled-venue-title h3 {
    font-size: 20px;
  }

  .scheduled-shell .scheduled-date-tools {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
  }

  .scheduled-shell .scheduled-date-picker {
    width: auto;
    min-width: 0;
    padding: 9px 10px;
    font-size: 12px;
  }

  .scheduled-shell .scheduled-row {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .scheduled-shell .scheduled-match {
    gap: 9px;
    padding: 10px;
  }

  .scheduled-shell .scheduled-time {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
  }

  .scheduled-shell .scheduled-time small {
    font-size: 12px;
  }

  .scheduled-shell .scheduled-matchup {
    grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr);
    gap: 6px;
  }

  .scheduled-shell .scheduled-team {
    gap: 6px;
    font-size: 12px;
    line-height: 1.15;
  }

  .scheduled-shell .scheduled-team.home {
    flex-direction: row;
  }

  .scheduled-shell .scheduled-shield {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }

  .scheduled-shell .scheduled-matchup > strong {
    justify-self: center;
    font-size: 12px;
  }

  .scheduled-shell .scheduled-tournament {
    border-left: 0;
    padding-top: 2px;
  }

  .scheduled-shell .scheduled-referee {
    border-left: 0;
    padding-top: 0;
    color: #4b5563;
    font-size: 11px;
  }

  .scheduled-shell .scheduled-referee::before {
    content: "Arbitro: ";
    color: #6b7280;
    font-weight: 850;
  }

  .scheduled-shell .scheduled-tournament-badge {
    min-height: 28px;
    padding: 0 8px;
    font-size: 11px;
  }

  .scheduled-shell .scheduled-info-card {
    padding: 12px;
  }
}

/* Mobile sports tables: keep the full table visible without horizontal cropping. */
@media (max-width: 760px) {
  .sports-board {
    gap: 10px;
    padding: 8px;
  }

  .sports-board .sports-panel,
  .sports-board .scoreboard-round-card,
  .sports-board .table-wrap,
  .sports-board .sports-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    border-radius: 8px;
  }

  .sports-board table,
  .sports-board .sports-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    font-size: 11px;
    line-height: 1.08;
  }

  .sports-board th,
  .sports-board td,
  .sports-board table th,
  .sports-board table td {
    padding: 6px 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
  }

  .sports-board th,
  .sports-board table th {
    font-size: 8.5px;
    letter-spacing: 0;
  }

  .sports-board .sports-rank {
    min-width: 30px;
    min-height: 24px;
    padding: 2px 4px;
    font-size: 13px;
    line-height: 1;
  }

  .sports-board .sports-stat-pill {
    min-width: 24px;
    min-height: 21px;
    padding: 2px 4px;
    font-size: 12px;
  }

  .sports-board .sports-team-logo,
  .sports-board .tiny-logo {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
  }

  .sports-board .sports-team-identity,
  .sports-board .standing-team {
    min-width: 0;
    gap: 4px;
  }

  .sports-board .sports-team-identity strong,
  .sports-board .standing-team strong,
  .sports-board .sports-player-name {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px;
    line-height: 1.05;
  }

  .sports-board .badge,
  .sports-board .badge.playoff-prelim,
  .sports-board .badge.playoff-direct,
  .sports-board .badge.playoff-out,
  .sports-board .badge.playoff-champion,
  .sports-board .badge.relegation-badge {
    max-width: 58px;
    padding: 2px 3px;
    overflow: hidden;
    text-overflow: clip;
    white-space: nowrap;
    font-size: 7.5px;
    line-height: 1.1;
  }

  .sports-standings-table th:nth-child(1),
  .sports-standings-table td:nth-child(1) {
    width: 34px;
  }

  .sports-standings-table th:nth-child(2),
  .sports-standings-table td:nth-child(2) {
    width: 105px;
    text-align: left;
  }

  .sports-standings-table th:nth-child(n+3):nth-child(-n+10),
  .sports-standings-table td:nth-child(n+3):nth-child(-n+10) {
    width: 23px;
    text-align: center;
  }

  .sports-standings-table th:nth-child(11),
  .sports-standings-table td:nth-child(11) {
    width: 60px;
  }

  .sports-standings-table .sports-team-logo,
  .sports-standings-table .tiny-logo {
    display: none;
  }
}

@media (max-width: 430px) {
  .sports-board {
    padding: 6px;
  }

  .sports-board table,
  .sports-board .sports-table {
    font-size: 9.5px;
  }

  .sports-board th,
  .sports-board td,
  .sports-board table th,
  .sports-board table td {
    padding: 5px 2px;
  }

  .sports-board th,
  .sports-board table th {
    font-size: 7.5px;
  }

  .sports-board .sports-rank {
    min-width: 27px;
    min-height: 22px;
    font-size: 12px;
  }

  .sports-board .sports-team-identity strong,
  .sports-board .standing-team strong,
  .sports-board .sports-player-name {
    font-size: 8.8px;
  }

  .sports-board .sports-stat-pill {
    min-width: 20px;
    min-height: 19px;
    padding: 1px 2px;
    font-size: 10px;
  }

  .sports-board .badge,
  .sports-board .badge.playoff-prelim,
  .sports-board .badge.playoff-direct,
  .sports-board .badge.playoff-out,
  .sports-board .badge.playoff-champion,
  .sports-board .badge.relegation-badge {
    max-width: 50px;
    font-size: 6.5px;
  }

  .sports-standings-table th:nth-child(1),
  .sports-standings-table td:nth-child(1) {
    width: 31px;
  }

  .sports-standings-table th:nth-child(2),
  .sports-standings-table td:nth-child(2) {
    width: 92px;
  }

  .sports-standings-table th:nth-child(n+3):nth-child(-n+10),
  .sports-standings-table td:nth-child(n+3):nth-child(-n+10) {
    width: 19px;
  }

  .sports-standings-table th:nth-child(11),
  .sports-standings-table td:nth-child(11) {
    width: 48px;
  }
}

.coordinator-tournament-shell {
  display: grid;
  gap: 12px;
  padding: 10px 12px;
}

.coordinator-tournament-picker {
  margin: 0;
}

.coordinator-tournament-picker select {
  min-height: 42px;
  border-radius: 10px;
  font-weight: 850;
}

.info-tournament-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(54px, 68px));
  justify-content: start;
  gap: 6px;
}

.info-tournament-button {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 70px;
  padding: 5px;
  border: 1px solid #dfe6e5;
  border-radius: 10px;
  background: #fff;
  color: #111;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(11, 32, 24, 0.05);
}

.info-tournament-button.active {
  border-color: #16a34a;
  background: #f5fff8;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.12), 0 10px 22px rgba(11, 32, 24, 0.08);
}

.info-tournament-button .public-tournament-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
}

.division-button-icon {
  display: grid;
  place-items: center;
  gap: 2px;
  width: 56px;
  min-height: 58px;
  padding: 5px 4px;
  border: 2px solid #0b6f2a;
  border-radius: 12px;
  background: transparent;
  color: #075d25;
  line-height: 1;
  text-transform: uppercase;
}

.division-icon-ring {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 2px solid currentColor;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 1000;
}

.division-icon-trophy {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

.division-icon-line {
  width: 32px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.division-icon-title {
  max-width: 46px;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 6px;
  font-weight: 1000;
}

.division-icon-ribbon {
  min-width: 34px;
  padding: 2px 5px;
  border-radius: 4px;
  background: #087a2f;
  color: #fff;
  text-align: center;
  font-size: 7px;
  font-weight: 1000;
}

.team-name-editor {
  display: grid;
  gap: 8px;
  min-width: 220px;
}

.team-name-editor .toolbar {
  gap: 6px;
}

.team-name-editor input {
  min-width: 0;
  width: min(240px, 100%);
}

.coordinator-sports-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  border-bottom: 1px solid var(--line);
}

.coordinator-sports-tabs button {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 0;
  padding: 10px 4px 8px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #20262d;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
}

.coordinator-sports-tabs button strong {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid #dce2e6;
  border-radius: 7px;
  background: #f5faf7;
  color: #16843a;
  font-size: 12px;
}

.coordinator-sports-tabs button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.coordinator-sports-tabs button span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coordinator-sports-tabs button.active {
  border-bottom-color: #18b84c;
  color: #16843a;
}

.coordinator-fixture-board {
  display: grid;
  gap: 20px;
}

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

.coordinator-fixture-round-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.coordinator-fixture-round-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 950;
}

.coordinator-fixture-round-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.coordinator-fixture-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.fixture-byes-line,
.coordinator-fixture-byes,
.scoreboard-byes {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px dashed rgba(16, 185, 129, 0.35);
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.07);
  color: #10201b;
  font-weight: 800;
}

.fixture-byes-line > span,
.coordinator-fixture-byes > span,
.scoreboard-byes > span {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.coordinator-fixture-byes {
  margin: 8px;
}

.scoreboard-byes {
  justify-content: center;
  margin: 8px 10px 12px;
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 118, 110, 0.25);
}

.coordinator-fixture-row {
  display: grid;
  grid-template-columns: minmax(132px, 150px) minmax(180px, 1fr) minmax(70px, 82px) minmax(180px, 1fr) minmax(120px, 150px);
  align-items: center;
  gap: 14px;
  min-height: 66px;
  padding: 10px 14px;
  border-top: 1px solid #e6ebee;
  background: #fff;
}

button.coordinator-fixture-row,
button.scoreboard-match-row,
.match-detail-open-link {
  width: 100%;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: inherit;
}

button.coordinator-fixture-row:hover,
button.scoreboard-match-row:hover,
.match-detail-open-link:hover {
  background: #f8fbfa;
}

button.coordinator-fixture-row:focus-visible,
button.scoreboard-match-row:focus-visible,
.match-detail-open-link:focus-visible {
  outline: 3px solid rgba(22, 163, 74, 0.35);
  outline-offset: -3px;
}

.coordinator-fixture-row:first-child {
  border-top: 0;
}

.coordinator-fixture-row.interzonal-match-row {
  background: #fffdf2;
}

.coordinator-fixture-date {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #20262d;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.coordinator-fixture-date span {
  padding-left: 8px;
  border-left: 1px solid #dce2e6;
}

.coordinator-fixture-team {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  color: #07090b;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.coordinator-fixture-team.home {
  justify-content: flex-end;
  text-align: right;
}

.coordinator-fixture-team.away {
  justify-content: flex-start;
  text-align: left;
}

.coordinator-fixture-team strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coordinator-fixture-shield {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 7px;
}

.coordinator-fixture-shield.placeholder {
  border: 1px solid #d8dfe3;
  background: #eef3f4;
}

.coordinator-fixture-vs,
.coordinator-fixture-result {
  color: #1f2933;
  font-size: 10px;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
}

.coordinator-fixture-result {
  display: grid;
  justify-items: center;
  gap: 2px;
  min-width: 70px;
  line-height: 1;
}

.coordinator-fixture-result strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 30px;
  padding: 4px 8px;
  border-radius: 9px;
  background: #edf2f4;
  color: #111827;
  font-size: 15px;
  white-space: nowrap;
}

.coordinator-fixture-result.finished strong {
  background: #111827;
  color: #fff;
  font-size: 16px;
}

.coordinator-fixture-result span {
  max-width: 82px;
  overflow: hidden;
  color: #4b5563;
  font-size: 7px;
  font-weight: 950;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coordinator-fixture-result.finished span {
  color: #047857;
}

.coordinator-fixture-venue {
  display: grid;
  justify-items: end;
  gap: 2px;
  min-width: 0;
}

.coordinator-fixture-venue span,
.coordinator-fixture-venue small {
  max-width: 100%;
  padding: 5px 8px;
  overflow: hidden;
  border-radius: 7px;
  background: #edfdf1;
  color: #128234;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.coordinator-fixture-venue small {
  background: #fff3cf;
  color: #8a5c00;
}

.match-detail-page {
  display: grid;
  gap: 18px;
  width: min(760px, 100%);
  margin: 0 auto;
}

.match-detail-actions {
  position: sticky;
  top: 10px;
  z-index: 20;
  display: flex;
  justify-content: flex-start;
  padding: 6px 0;
  background: linear-gradient(180deg, rgba(243, 245, 246, 0.98), rgba(243, 245, 246, 0));
}

.match-detail-actions .btn {
  min-width: 132px;
}

.match-detail-card {
  overflow: hidden;
  border: 1px solid #d7dde1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(15, 23, 42, 0.12);
}

.match-detail-title {
  padding: 14px 16px;
  background: #050505;
  color: #fff;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0.03em;
  text-align: center;
  text-transform: uppercase;
}

.match-detail-body {
  padding: 18px;
}

.match-detail-schedule-lines {
  display: grid;
  gap: 6px;
  color: #20262d;
  font-size: 15px;
  font-weight: 750;
  text-align: center;
}

.match-detail-empty-text {
  margin: 0;
  color: #5b6470;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

.match-detail-scoreboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(96px, 120px) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.match-detail-team {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-width: 0;
  color: #242930;
  font-size: 16px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.match-detail-team strong {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.match-detail-shield {
  width: 78px;
  height: 78px;
  object-fit: contain;
  border-radius: 12px;
}

.match-detail-shield.placeholder {
  border: 1px solid #d8dfe3;
  background: #eef3f4;
}

.match-detail-center {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
}

.match-detail-status {
  min-width: 116px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #838383;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
}

.match-detail-score {
  color: #222;
  font-size: 42px;
  font-weight: 500;
  line-height: 1;
}

.match-detail-scorers-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin: 18px -18px -18px;
  border-top: 1px solid #d7dde1;
}

.match-detail-scorers-column {
  min-width: 0;
  padding: 16px 18px;
}

.match-detail-scorers-column + .match-detail-scorers-column {
  border-left: 1px solid #d7dde1;
}

.match-detail-scorers-column h4 {
  margin: 0 0 12px;
  color: #1f2933;
  font-size: 14px;
  font-weight: 950;
  text-transform: uppercase;
}

.match-detail-scorers-list {
  display: grid;
  gap: 12px;
}

.match-detail-scorer-line {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  color: #3f4650;
  font-size: 15px;
  line-height: 1.35;
}

.match-detail-ball {
  font-size: 18px;
  line-height: 1.15;
}

.match-detail-scorers-note {
  margin: 0;
  color: #5b6470;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.match-detail-mvp {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  max-width: 520px;
  margin: 0 auto;
}

.match-detail-mvp-photo {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  object-fit: cover;
}

.match-detail-mvp-photo.placeholder {
  display: inline-grid;
  place-items: center;
  background: #eef3f4;
  color: #0b2b22;
  font-weight: 950;
}

.match-detail-mvp strong,
.match-detail-mvp span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.match-detail-mvp strong {
  color: #242930;
  font-size: 18px;
  font-weight: 950;
}

.match-detail-mvp span {
  color: #5b6470;
  font-size: 17px;
}

@media (max-width: 680px) {
  .coordinator-tournament-shell {
    padding: 8px 6px 0;
    border: 0;
    background: transparent;
  }

  .info-tournament-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
    gap: 5px;
    margin: 0 -2px;
    overflow: visible;
    padding: 0 2px 4px;
  }

  .info-tournament-button {
    min-height: 50px;
    padding: 3px;
    border-radius: 9px;
  }

  .division-button-icon {
    width: 38px;
    min-height: 42px;
    border-radius: 10px;
    border-width: 1.5px;
    padding: 4px 3px;
  }

  .division-icon-ring {
    width: 21px;
    height: 21px;
    font-size: 7px;
  }

  .division-icon-line {
    width: 24px;
  }

  .division-icon-title {
    max-width: 34px;
    font-size: 5px;
  }

  .division-icon-ribbon {
    min-width: 26px;
    padding: 1px 4px;
    font-size: 6px;
  }

  .coordinator-sports-tabs {
    gap: 2px;
  }

  .coordinator-sports-tabs button {
    padding: 8px 1px 7px;
    font-size: 7.5px;
  }

  .coordinator-sports-tabs button strong {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }

  .coordinator-fixture-board {
    gap: 18px;
  }

  .coordinator-fixture-round-head {
    padding: 0 2px;
  }

  .coordinator-fixture-round-head h3 {
    font-size: 15px;
  }

  .coordinator-fixture-row {
    grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
    grid-template-areas:
      "date date venue"
      "home result away";
    gap: 7px 8px;
    min-height: 70px;
    padding: 9px 8px;
  }

  .coordinator-fixture-date {
    grid-area: date;
    gap: 5px;
    font-size: 10px;
    line-height: 1;
  }

  .coordinator-fixture-date span {
    padding-left: 5px;
  }

  .coordinator-fixture-team {
    gap: 5px;
    font-size: 9.2px;
    line-height: 1.05;
  }

  .coordinator-fixture-team.home {
    grid-area: home;
  }

  .coordinator-fixture-team.away {
    grid-area: away;
  }

  .coordinator-fixture-team strong {
    max-width: 100%;
  }

  .coordinator-fixture-shield {
    flex-basis: 24px;
    width: 24px;
    height: 24px;
    border-radius: 6px;
  }

  .coordinator-fixture-vs,
  .coordinator-fixture-result {
    font-size: 8px;
  }

  .coordinator-fixture-result {
    grid-area: result;
    min-width: 48px;
  }

  .coordinator-fixture-result strong {
    min-width: 42px;
    min-height: 24px;
    padding: 3px 5px;
    border-radius: 7px;
    font-size: 11px;
    white-space: nowrap;
  }

  .coordinator-fixture-result.finished strong {
    font-size: 12px;
  }

  .coordinator-fixture-result span {
    max-width: 48px;
    font-size: 5.5px;
  }

  .coordinator-fixture-venue {
    grid-area: venue;
  }

  .coordinator-fixture-venue span,
  .coordinator-fixture-venue small {
    padding: 4px 6px;
    border-radius: 7px;
    font-size: 8px;
  }

  .match-detail-page {
    gap: 14px;
    width: 100%;
  }

  .match-detail-card {
    border-radius: 10px;
  }

  .match-detail-title {
    padding: 12px;
    font-size: 13px;
  }

  .match-detail-body {
    padding: 14px;
  }

  .match-detail-scoreboard {
    grid-template-columns: minmax(0, 1fr) 82px minmax(0, 1fr);
    gap: 8px;
  }

  .match-detail-shield {
    width: 58px;
    height: 58px;
  }

  .match-detail-team {
    font-size: 13px;
  }

  .match-detail-status {
    min-width: 78px;
    padding: 6px 7px;
    font-size: 9px;
  }

  .match-detail-score {
    font-size: 34px;
  }

  .match-detail-scorers-grid {
    margin: 14px -14px -14px;
  }

  .match-detail-scorers-column {
    padding: 13px 12px;
  }

  .match-detail-scorers-column h4 {
    font-size: 12px;
  }

  .match-detail-scorer-line {
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 6px;
    font-size: 13px;
  }

  .match-detail-mvp {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
  }

  .match-detail-mvp-photo {
    width: 66px;
    height: 66px;
  }

  .match-detail-mvp strong {
    font-size: 15px;
  }

  .match-detail-mvp span {
    font-size: 14px;
  }
}

@media (max-width: 390px) {
  .coordinator-fixture-row {
    grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
    gap: 6px 6px;
    padding: 8px 6px;
  }

  .coordinator-fixture-date,
  .coordinator-fixture-team {
    font-size: 8.2px;
  }

  .coordinator-fixture-shield {
    flex-basis: 21px;
    width: 21px;
    height: 21px;
  }

  .coordinator-fixture-venue span,
  .coordinator-fixture-venue small {
    font-size: 7px;
  }

  .coordinator-fixture-result strong {
    min-width: 38px;
    min-height: 22px;
    font-size: 10px;
  }

  .coordinator-fixture-result.finished strong {
    font-size: 10.5px;
  }

  .coordinator-fixture-result span {
    max-width: 44px;
    font-size: 5px;
  }

  .match-detail-scoreboard {
    grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr);
  }

  .match-detail-shield {
    width: 48px;
    height: 48px;
  }

  .match-detail-team {
    font-size: 11px;
  }

  .match-detail-status {
    min-width: 68px;
    font-size: 8px;
  }

  .match-detail-score {
    font-size: 29px;
  }

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

  .match-detail-scorers-column + .match-detail-scorers-column {
    border-top: 1px solid #d7dde1;
    border-left: 0;
  }
}

/* Shared sports rendering refinements for every role. */
.sports-board .sports-subtitle {
  margin: 12px 2px 6px;
  color: #07090b !important;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1;
}

.sports-board .sports-table {
  width: 100%;
  table-layout: fixed;
}

@media (min-width: 761px) {
.sports-board .sports-standings-table {
  min-width: 1080px;
}

.sports-board .sports-table th:first-child,
.sports-board .sports-table td:first-child {
  width: 68px;
}

.sports-board .sports-table th:last-child,
.sports-board .sports-table td:last-child {
  width: 176px;
}

.sports-board .sports-table td:last-child {
  overflow: hidden;
}

.sports-board .sports-standings-table th:nth-child(2),
.sports-board .sports-standings-table td:nth-child(2) {
  width: 270px;
}

.sports-board .sports-standings-table th:nth-child(n+3):nth-child(-n+10),
.sports-board .sports-standings-table td:nth-child(n+3):nth-child(-n+10) {
  width: 70px;
}

.sports-board .sports-scorers-table {
  min-width: 940px;
}

.sports-board .sports-sanctions-table {
  min-width: 900px;
}

.sports-board .sports-clean-sheet-table {
  min-width: 960px;
}

.sports-board .sports-scorers-table th:nth-child(2),
.sports-board .sports-scorers-table td:nth-child(2),
.sports-board .sports-sanctions-table th:nth-child(2),
.sports-board .sports-sanctions-table td:nth-child(2) {
  width: 300px;
}

.sports-board .sports-scorers-table th:nth-child(3),
.sports-board .sports-scorers-table td:nth-child(3),
.sports-board .sports-sanctions-table th:nth-child(3),
.sports-board .sports-sanctions-table td:nth-child(3),
.sports-board .sports-clean-sheet-table th:nth-child(2),
.sports-board .sports-clean-sheet-table td:nth-child(2) {
  width: 280px;
}

.sports-board .sports-scorers-table th:nth-child(4),
.sports-board .sports-scorers-table td:nth-child(4),
.sports-board .sports-clean-sheet-table th:nth-child(3),
.sports-board .sports-clean-sheet-table td:nth-child(3) {
  width: 76px;
}

.sports-board .sports-clean-sheet-table th:nth-child(4),
.sports-board .sports-clean-sheet-table td:nth-child(4),
.sports-board .sports-clean-sheet-table th:nth-child(5),
.sports-board .sports-clean-sheet-table td:nth-child(5) {
  width: 150px;
}

.sports-board .sports-team-identity,
.sports-board .standing-team {
  width: 100%;
}

.sports-board .sports-team-identity strong,
.sports-board .standing-team strong,
.sports-board .sports-player-name {
  min-width: 0;
  overflow: hidden;
  overflow-wrap: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}
}

.sports-board .sports-rank {
  min-width: 40px;
  min-height: 30px;
}

.sports-board .badge,
.sports-board .badge.playoff-prelim,
.sports-board .badge.playoff-direct,
.sports-board .badge.playoff-out,
.sports-board .badge.playoff-champion,
.sports-board .badge.relegation-badge {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sports-board .sports-row-tone-gold > td {
  border-bottom-color: rgba(240, 198, 46, .55);
  background: rgba(240, 198, 46, .09) !important;
  box-shadow: inset 0 -2px rgba(240, 198, 46, .2);
}

.sports-board .sports-row-tone-green > td {
  border-bottom-color: rgba(32, 201, 88, .5);
  background: rgba(32, 201, 88, .08) !important;
  box-shadow: inset 0 -2px rgba(32, 201, 88, .18);
}

.sports-board .sports-row-tone-blue > td {
  border-bottom-color: rgba(24, 118, 242, .45);
  background: rgba(24, 118, 242, .07) !important;
  box-shadow: inset 0 -2px rgba(24, 118, 242, .16);
}

.sports-board .sports-row-tone-gray > td {
  border-bottom-color: rgba(120, 130, 133, .42);
  background: rgba(120, 130, 133, .07) !important;
  box-shadow: inset 0 -2px rgba(120, 130, 133, .16);
}

.sports-board .sports-row-tone-red > td {
  border-bottom-color: rgba(229, 30, 37, .5);
  background: rgba(229, 30, 37, .08) !important;
  box-shadow: inset 0 -2px rgba(229, 30, 37, .18);
}

.sports-board .sports-scorers-table th:first-child,
.sports-board .sports-scorers-table td:first-child,
.sports-board .sports-sanctions-table th:first-child,
.sports-board .sports-sanctions-table td:first-child,
.sports-board .sports-clean-sheet-table th:first-child,
.sports-board .sports-clean-sheet-table td:first-child {
  width: 64px;
}

.sports-board .sports-scorers-table th:last-child,
.sports-board .sports-scorers-table td:last-child,
.sports-board .sports-sanctions-table th:last-child,
.sports-board .sports-sanctions-table td:last-child,
.sports-board .sports-clean-sheet-table th:last-child,
.sports-board .sports-clean-sheet-table td:last-child {
  width: 116px;
}

.sports-board .sports-clean-sheet-table th:nth-child(3),
.sports-board .sports-clean-sheet-table td:nth-child(3) {
  width: 72px;
}

@media (max-width: 760px) {
  .sports-board .sports-subtitle {
    margin: 10px 0 5px;
    font-size: 16px;
  }

  .sports-board .sports-table th:first-child,
  .sports-board .sports-table td:first-child {
    width: 28px;
  }

  .sports-board .sports-table th:last-child,
  .sports-board .sports-table td:last-child {
    width: 50px;
  }

  .sports-board .sports-table td:last-child {
    padding-right: 1px;
  }

  .sports-board .sports-rank {
    min-width: 22px;
    min-height: 20px;
    padding: 1px 2px;
    border-radius: 4px;
    font-size: 10px;
  }

  .sports-board .sports-stat-pill {
    max-width: 100%;
  }

  .sports-board .badge,
  .sports-board .badge.playoff-prelim,
  .sports-board .badge.playoff-direct,
  .sports-board .badge.playoff-out,
  .sports-board .badge.playoff-champion,
  .sports-board .badge.relegation-badge {
    width: 100%;
    max-width: 100%;
    padding: 2px 2px;
    font-size: 5.8px;
  }

  .sports-standings-table th:nth-child(1),
  .sports-standings-table td:nth-child(1) {
    width: 26px;
  }

  .sports-standings-table th:nth-child(2),
  .sports-standings-table td:nth-child(2) {
    width: 88px;
  }

  .sports-standings-table th:nth-child(n+3):nth-child(-n+10),
  .sports-standings-table td:nth-child(n+3):nth-child(-n+10) {
    width: 18px;
  }

  .sports-standings-table th:nth-child(11),
  .sports-standings-table td:nth-child(11) {
    width: 52px;
  }

  .sports-board .sports-scorers-table th:first-child,
  .sports-board .sports-scorers-table td:first-child,
  .sports-board .sports-sanctions-table th:first-child,
  .sports-board .sports-sanctions-table td:first-child,
  .sports-board .sports-clean-sheet-table th:first-child,
  .sports-board .sports-clean-sheet-table td:first-child {
    width: 28px;
  }

  .sports-board .sports-scorers-table th:last-child,
  .sports-board .sports-scorers-table td:last-child,
  .sports-board .sports-sanctions-table th:last-child,
  .sports-board .sports-sanctions-table td:last-child,
  .sports-board .sports-clean-sheet-table th:last-child,
  .sports-board .sports-clean-sheet-table td:last-child {
    width: 38px;
  }

  .sports-board .sports-scorers-table th:nth-child(4),
  .sports-board .sports-scorers-table td:nth-child(4),
  .sports-board .sports-clean-sheet-table th:nth-child(3),
  .sports-board .sports-clean-sheet-table td:nth-child(3) {
    width: 24px;
  }

  .sports-board .sports-clean-sheet-table th:nth-child(4),
  .sports-board .sports-clean-sheet-table td:nth-child(4),
  .sports-board .sports-clean-sheet-table th:nth-child(5),
  .sports-board .sports-clean-sheet-table td:nth-child(5) {
    width: 48px;
  }
}

@media (max-width: 430px) {
  .sports-standings-table th:nth-child(1),
  .sports-standings-table td:nth-child(1) {
    width: 24px;
  }

  .sports-standings-table th:nth-child(2),
  .sports-standings-table td:nth-child(2) {
    width: 80px;
  }

  .sports-standings-table th:nth-child(n+3):nth-child(-n+10),
  .sports-standings-table td:nth-child(n+3):nth-child(-n+10) {
    width: 16px;
  }

  .sports-standings-table th:nth-child(11),
  .sports-standings-table td:nth-child(11) {
    width: 44px;
  }
}

/* Hard stop for mobile/tablet schedule venue tabs: never allow lateral overflow. */
@media (max-width: 980px) {
  .scheduled-shell,
  .scheduled-shell .scheduled-panel,
  .scheduled-shell .scheduled-venue-tabs {
    max-width: 100%;
    overflow-x: hidden;
  }

  .scheduled-shell .scheduled-venue-tabs {
    display: grid;
    grid-auto-flow: row;
    grid-auto-columns: unset;
    grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
    gap: 6px;
    width: 100%;
    padding: 8px 0;
  }

  .scheduled-shell .scheduled-venue-tab {
    justify-content: center;
    min-width: 0;
    width: 100%;
    min-height: 36px;
    padding: 4px 5px;
    border: 1px solid #dce2e6;
    border-radius: 10px;
    font-size: 9.5px;
    line-height: 1.05;
    text-align: center;
    white-space: normal;
    word-break: break-word;
  }

  .scheduled-shell .scheduled-venue-tab .venue-glyph {
    display: none;
  }
}

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

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

.prode-card.active {
  border-color: rgba(22, 163, 74, 0.45);
  box-shadow: inset 4px 0 0 var(--ok);
}

.ghost-card {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 0;
  color: inherit;
  text-align: left;
  background: transparent;
}

.ghost-card strong {
  font-size: 17px;
}

.ghost-card span,
.ghost-card small {
  color: var(--muted);
}

.prode-detail {
  margin-top: 16px;
}

.prode-tools {
  margin: 12px 0 18px;
}

.prode-linked-rounds {
  display: grid;
  gap: 12px;
  margin: 12px 0;
}

.prode-round-pick {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.prode-match-picker {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf9;
}

.prode-match-picker.compact {
  max-height: 270px;
}

.prode-match-option {
  display: grid;
  grid-template-columns: auto minmax(110px, 0.7fr) minmax(260px, 1.4fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #e5e9ec;
  border-radius: 8px;
  background: #fff;
}

.prode-round {
  margin: 10px 0;
}

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

.prode-match-line {
  display: grid;
  gap: 8px;
}

.prode-match-row {
  display: grid;
  grid-template-columns: 150px minmax(160px, 1fr) 70px minmax(160px, 1fr) minmax(140px, 0.9fr);
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid #e3e7ea;
  border-radius: 8px;
  background: #fff;
}

.prode-score {
  justify-self: center;
  min-width: 56px;
  padding: 7px 10px;
  border-radius: 8px;
  color: #fff;
  text-align: center;
  background: #111827;
}

.prode-score.pending {
  color: #111827;
  background: #edf2f4;
}

.prode-prediction {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.prode-join-box {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.prode-choice-group {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border-radius: 8px;
  background: #eef4f0;
}

.prode-choice {
  cursor: pointer;
}

.prode-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.prode-choice span {
  display: grid;
  min-width: 42px;
  min-height: 36px;
  place-items: center;
  border: 1px solid #d8e0dc;
  border-radius: 8px;
  color: #0f172a;
  font-weight: 900;
  background: #fff;
}

.prode-choice input:checked + span,
.prode-choice.selected span {
  color: #fff;
  border-color: #047857;
  background: #059669;
}

.prode-prediction.locked {
  color: var(--muted);
}

.prode-match-card {
  display: grid;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  gap: 12px;
  padding: 14px;
  border: 1px solid #d9dde2;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.prode-match-card__schedule {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #5f6670;
  font-weight: 800;
}

.prode-match-card__teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.prode-match-card__team {
  display: grid;
  min-width: 0;
  justify-items: center;
  gap: 5px;
  text-align: center;
}

.prode-match-card__team strong {
  max-width: 100%;
  min-width: 0;
  color: #111827;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.15;
  overflow-wrap: anywhere;
  white-space: normal;
}

.prode-match-card__team span:not(.prode-match-card__shield) {
  max-width: 100%;
  min-width: 0;
  color: #6b7280;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
  white-space: normal;
}

.prode-match-card__shield {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border: 1px solid #dbe3e3;
  border-radius: 8px;
  background: #eef3f3;
}

.prode-match-card__versus {
  min-width: 28px;
  color: #111827;
  font-weight: 900;
  text-align: center;
}

.prode-match-card__competition {
  max-width: 100%;
  min-width: 0;
  margin: 0;
  color: #68707a;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
  text-align: center;
  white-space: normal;
}

.prode-match-card__prediction {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  min-width: 0;
  gap: 8px;
}

.prode-match-card__choice {
  display: grid;
  min-width: 0;
  min-height: 48px;
  place-items: center;
  border: 1px solid #d8e0dc;
  border-radius: 10px;
  color: #111827;
  font-weight: 900;
  background: #fff;
  cursor: pointer;
}

.prode-match-card__choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.prode-match-card__choice span {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 46px;
  place-items: center;
  border-radius: 9px;
}

.prode-match-card__choice.selected span,
.prode-match-card__choice input:checked + span {
  color: #fff;
  background: #059669;
  box-shadow: inset 0 0 0 2px #047857;
}

.prode-match-card__prediction.locked {
  opacity: 0.68;
}

.prode-match-card__closed {
  justify-self: center;
}

.prode-match-card__save {
  width: 100%;
  min-height: 48px;
  border-radius: 10px;
}

.prode-save-bar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.prode-save-all-btn {
  min-width: 240px;
}

.prode-role-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 12px;
  border: 1px solid #dce5e1;
  border-radius: 10px;
  background: #f8fbfa;
}

.prode-role-picker strong {
  width: 100%;
}

.prode-role-picker label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-weight: 800;
}

.prode-role-picker input {
  width: 18px;
  height: 18px;
  accent-color: #059669;
}

@media (max-width: 760px) {
  body:has(.prode-detail),
  body:has(.prode-list),
  .app:has(.prode-detail),
  .app:has(.prode-list),
  .main:has(.prode-detail),
  .main:has(.prode-list),
  .content:has(.prode-detail),
  .content:has(.prode-list) {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .content:has(.prode-save-bar) {
    padding-bottom: 94px;
  }

  .prode-detail,
  .prode-detail *,
  .prode-round,
  .prode-round *,
  .prode-match-line,
  .prode-match-line *,
  .prode-player-line,
  .prode-player-line *,
  .prode-match-card,
  .prode-match-card * {
    box-sizing: border-box;
  }

  .prode-detail {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
    padding: 12px;
  }

  .prode-detail section,
  .prode-detail .grid > section,
  .prode-match-list {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
  }

  .prode-detail > .section-title,
  .prode-round > .section-title {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    align-items: start;
  }

  .prode-detail > .section-title h3,
  .prode-detail > .section-title p,
  .prode-round > .section-title strong,
  .prode-round > .section-title p {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .prode-detail .grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px;
    min-width: 0;
    max-width: 100%;
  }

  .prode-card,
  .prode-match-option,
  .prode-match-row {
    grid-template-columns: 1fr;
  }

  .prode-card {
    align-items: stretch;
  }

  .prode-join-box,
  .prode-round-pick .toolbar {
    grid-template-columns: 1fr;
  }

  .prode-match-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    gap: 6px;
    padding: 10px;
  }

  .prode-round {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
    margin: 8px 0;
    padding: 8px;
  }

  .prode-match-line,
  .prode-player-line {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
  }

  .prode-player-line {
    padding: 8px;
    border: 1px solid #e2e8e5;
    border-radius: 10px;
    background: #fff;
  }

  .prode-player-line .prode-match-row {
    padding: 0;
    border: 0;
    background: transparent;
  }

  .prode-match-row > span,
  .prode-match-row > span:first-child,
  .prode-match-row > small,
  .prode-match-date,
  .prode-match-team,
  .prode-match-tournament {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--muted);
    font-size: 12px;
  }

  .prode-match-row .team-badge {
    display: inline-flex;
    max-width: 100%;
    min-width: 0;
  }

  .prode-match-row .team-badge > span:not(.team-shield) {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .prode-score {
    justify-self: stretch;
  }

  .prode-prediction {
    display: grid;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
    justify-content: stretch;
    grid-template-columns: 1fr;
  }

  .prode-choice-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
    gap: 4px;
    padding: 3px;
    box-sizing: border-box;
  }

  .prode-choice {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .prode-prediction .btn,
  .prode-choice span {
    min-width: 0 !important;
    max-width: 100%;
    width: 100%;
    min-height: 34px;
    padding: 0 3px;
    overflow: hidden;
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
  }

  .prode-match-card {
    gap: 10px;
    padding: 12px;
  }

  .prode-match-card__teams {
    gap: 8px;
  }

  .prode-match-card__team strong {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .content:has(.prode-detail),
  .content:has(.prode-list) {
    width: 100%;
    max-width: 100%;
    padding-left: 6px;
    padding-right: 6px;
    gap: 10px;
  }

  .card.prode-detail {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 6px;
    border-radius: 7px;
  }

  .prode-list,
  .prode-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .prode-card {
    padding: 8px;
  }

  .prode-detail h3 {
    font-size: 20px;
  }

  .prode-detail h4,
  .prode-round > .section-title strong {
    font-size: 18px;
  }

  .prode-round > .section-title p {
    font-size: 13px;
  }

  .prode-round {
    width: 100%;
    max-width: 100%;
    margin: 6px 0;
    padding: 4px;
    border-radius: 7px;
  }

  .prode-player-line {
    width: 100%;
    max-width: 100%;
    padding: 4px;
    border-radius: 8px;
  }

  .prode-match-row {
    gap: 4px;
    padding: 6px;
  }

  .prode-match-row > span,
  .prode-match-row > span:first-child,
  .prode-match-row > small,
  .prode-match-date,
  .prode-match-team,
  .prode-match-tournament {
    font-size: 11px;
  }

  .prode-match-row .team-badge {
    gap: 5px;
    font-size: 12px;
  }

  .prode-match-row .team-shield,
  .prode-match-row .tiny-logo {
    width: 24px;
    height: 24px;
  }

  .prode-score {
    min-width: 0;
    padding: 6px 8px;
    font-size: 14px;
  }

  .prode-choice-group {
    width: 100%;
    max-width: 100%;
    gap: 3px;
    padding: 1px;
  }

  .prode-choice span {
    min-height: 26px;
    padding: 0 1px;
    border-radius: 6px;
    font-size: 8.5px;
    letter-spacing: 0;
  }

  .prode-prediction .btn {
    min-height: 30px;
    padding: 6px 8px;
    font-size: 10.5px;
  }

  .prode-match-list {
    gap: 10px;
  }

  .prode-match-card {
    gap: 9px;
    padding: 10px;
    border-radius: 12px;
  }

  .prode-match-card__schedule {
    font-size: 13px;
  }

  .prode-match-card__teams {
    grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
    gap: 6px;
  }

  .prode-match-card__team strong {
    font-size: 14px;
  }

  .prode-match-card__team span:not(.prode-match-card__shield) {
    font-size: 10px;
  }

  .prode-match-card__shield {
    width: 34px;
    height: 34px;
  }

  .prode-match-card__competition {
    font-size: 12px;
  }

  .prode-match-card__prediction {
    gap: 6px;
  }

  .prode-match-card__choice,
  .prode-match-card__save {
    min-height: 44px;
  }

  .prode-save-bar {
    position: fixed;
    right: 12px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
    left: 12px;
    z-index: 35;
    margin: 12px 0 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 10px 30px rgba(15, 23, 42, .18);
  }

  .prode-save-all-btn {
    width: 100%;
    min-width: 0;
    min-height: 46px;
  }
}

@media (max-width: 340px) {
  .prode-match-card__teams {
    grid-template-columns: minmax(0, 1fr);
  }

  .prode-match-card__versus {
    min-width: 0;
  }

  .prode-match-card__choice,
  .prode-match-card__save {
    min-height: 42px;
  }
}

.sports-standings-table tr.sports-standing-clickable {
  cursor: pointer;
  transition: background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.sports-standings-table tr.sports-standing-clickable:hover {
  box-shadow: inset 4px 0 0 #16a34a;
  filter: brightness(.985);
}

.sports-standings-table tr.sports-standing-clickable:active {
  transform: scale(.997);
}

.sports-standings-table tr.sports-standing-clickable:focus-visible {
  outline: 3px solid #16a34a;
  outline-offset: -3px;
}

.team-matches-page {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 0 12px 24px;
  box-sizing: border-box;
}

.team-matches-actions {
  display: flex;
  justify-content: flex-start;
  margin: 0 0 12px;
}

.team-matches-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .12);
}

.team-matches-title {
  padding: 18px;
  background: #050505;
  color: #fff;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: .04em;
}

.team-matches-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.team-matches-summary h2 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.1;
}

.team-matches-summary p {
  margin: 4px 0 0;
  color: var(--muted);
}

.team-matches-summary-shield {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f3f7f7;
}

.team-matches-summary-shield.placeholder,
.team-matches-shield.placeholder {
  display: inline-block;
}

.team-matches-summary-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.team-matches-summary-stats span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: .82rem;
}

.team-matches-section {
  padding: 0;
}

.team-matches-section h3 {
  margin: 0;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  color: #111827;
  font-size: .96rem;
  font-weight: 900;
  letter-spacing: .02em;
}

.team-matches-list {
  display: grid;
}

.team-matches-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(94px, auto) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 14px 18px;
  border: 0;
  border-top: 1px solid #d9dfe5;
  background: #fff;
  color: inherit;
  text-align: inherit;
  cursor: pointer;
}

.team-matches-row:hover,
.team-matches-row:focus-visible {
  background: #f8fbfa;
  outline: none;
}

.team-matches-team {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #111827;
  font-weight: 900;
  text-transform: uppercase;
}

.team-matches-home {
  justify-content: flex-end;
  text-align: right;
}

.team-matches-away {
  justify-content: flex-start;
  text-align: left;
}

.team-matches-team strong {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.1;
}

.team-matches-team.selected strong {
  color: #047857;
}

.team-matches-shield {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f3f7f7;
}

.team-matches-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  gap: 4px;
  text-align: center;
}

.team-match-outcome {
  max-width: 130px;
  padding: 5px 13px;
  border-radius: 999px;
  color: #fff;
  font-size: .78rem;
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
}

.team-match-outcome-won {
  background: #079455;
}

.team-match-outcome-drawn {
  background: #f59e0b;
  color: #111827;
}

.team-match-outcome-lost,
.team-match-outcome-suspended {
  background: #dc2626;
}

.team-match-outcome-upcoming {
  background: #2563eb;
}

.team-match-outcome-unscheduled {
  background: #64748b;
}

.team-match-outcome-postponed {
  background: #f97316;
}

.team-matches-score {
  color: #111827;
  font-size: 1.38rem;
  font-weight: 900;
  line-height: 1;
}

.team-matches-center small {
  color: #64748b;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.15;
}

.team-matches-empty-text {
  margin: 0;
  padding: 18px 20px;
  color: #64748b;
}

.sports-clickable-row {
  cursor: pointer;
}

.sports-clickable-row:hover,
.sports-clickable-row:focus-visible {
  outline: 2px solid rgba(0, 148, 72, .35);
  outline-offset: -2px;
  filter: brightness(.98);
}

.sports-player-link {
  appearance: none;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  margin: 0;
  max-width: 100%;
  padding: 0;
  text-align: left;
}

.sports-player-link:hover,
.sports-player-link:focus-visible {
  color: var(--brand-primary, #009448);
  outline: 2px solid rgba(0, 148, 72, .25);
  outline-offset: 3px;
}

.info-return-actions {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto 12px;
}

.team-matches-roster-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  padding: 0;
}

.team-matches-roster-link:focus-visible,
.team-matches-roster-button:focus-visible {
  outline: 2px solid rgba(0, 148, 72, .45);
  outline-offset: 3px;
}

.team-matches-summary-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.team-matches-summary-main span {
  color: #087a36;
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.team-matches-summary-content {
  flex: 1 1 280px;
  min-width: 0;
}

.team-matches-roster-button {
  margin-top: 10px;
}

.team-roster-page,
.player-profile-page {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px;
}

.team-roster-card,
.player-profile-card {
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid #d9e0e3;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, .08);
}

.team-roster-title,
.player-profile-title {
  padding: 14px 16px;
  background: #050505;
  color: #fff;
  font-weight: 900;
  letter-spacing: .04em;
  text-align: center;
  text-transform: uppercase;
}

.team-roster-header,
.player-profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
}

.team-roster-header h2,
.player-profile-header h2 {
  margin: 0 0 4px;
  line-height: 1.05;
}

.team-roster-header p,
.player-profile-header p {
  margin: 0 0 10px;
  color: #64748b;
  font-weight: 700;
}

.team-roster-shield {
  flex: 0 0 74px;
  width: 74px;
  height: 74px;
  border: 1px solid #d9e0e3;
  border-radius: 14px;
  background: #eef4f2;
  object-fit: contain;
  padding: 6px;
}

.team-roster-summary,
.team-matches-summary-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.team-roster-summary span,
.team-matches-summary-stats span {
  border-radius: 999px;
  background: #edf7f2;
  color: #0b5f35;
  font-size: .78rem;
  font-weight: 800;
  padding: 5px 9px;
}

.team-roster-scope,
.player-profile-scope {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 16px;
}

.team-roster-table {
  width: 100%;
  border-collapse: collapse;
}

.team-roster-table th,
.team-roster-table td {
  border-top: 1px solid #e2e8f0;
  padding: 12px;
  text-align: left;
  vertical-align: middle;
}

.team-roster-table th {
  background: #f5f8f7;
  color: #334155;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.team-roster-row {
  cursor: pointer;
}

.team-roster-row:hover,
.team-roster-row:focus-visible,
.team-roster-mobile-card:hover,
.team-roster-mobile-card:focus-visible {
  background: #f2fbf6;
  outline: 2px solid rgba(0, 148, 72, .28);
  outline-offset: -2px;
}

.team-roster-player {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.team-roster-player-photo,
.player-profile-mini-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 1px solid #d9e0e3;
  border-radius: 9px;
  background: #eef4f2;
  color: #0b5f35;
  font-weight: 900;
  object-fit: cover;
}

.team-roster-mobile {
  display: none;
}

.team-roster-mobile-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  border-top: 1px solid #e2e8f0;
  background: #fff;
  color: inherit;
  text-align: left;
  padding: 12px;
  cursor: pointer;
}

.team-roster-mobile-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.team-roster-mobile-main strong,
.player-profile-list-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.team-roster-mobile-main small,
.player-profile-list-row small {
  color: #64748b;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.team-roster-mobile-stats {
  color: #0b5f35;
  font-size: .78rem;
  font-weight: 900;
  text-align: right;
}

.player-profile-photo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 96px;
  width: 96px;
  height: 96px;
  border: 1px solid #d9e0e3;
  border-radius: 999px;
  background: #eef4f2;
  color: #0b5f35;
  font-size: 1.35rem;
  font-weight: 900;
  object-fit: cover;
}

.player-profile-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding: 0 18px 18px;
}

.player-profile-stat {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  padding: 10px;
}

.player-profile-stat span {
  display: block;
  color: #64748b;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.player-profile-stat strong {
  display: block;
  margin-top: 4px;
  color: #0f172a;
  font-size: 1.25rem;
}

.player-profile-list {
  padding: 14px 18px;
}

.player-profile-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.5fr) auto;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #e2e8f0;
  padding: 10px 0;
}

.player-profile-list-row:first-child {
  border-top: 0;
}

.player-profile-list-row span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.player-profile-empty-text,
.team-roster-empty-text {
  margin: 0;
  padding: 16px 18px;
  color: #64748b;
}

@media (max-width: 640px) {
  .team-matches-page {
    width: 100%;
    padding: 0 6px 18px;
  }

  .team-matches-actions {
    padding: 0 2px;
  }

  .team-matches-card {
    border-radius: 14px;
  }

  .team-matches-title {
    padding: 14px 10px;
    font-size: 1.15rem;
  }

  .team-matches-summary {
    gap: 10px;
    padding: 12px;
  }

  .team-matches-summary h2 {
    font-size: 1.12rem;
  }

  .team-matches-summary p {
    font-size: .82rem;
    line-height: 1.25;
  }

  .team-matches-summary-shield {
    width: 46px;
    height: 46px;
    border-radius: 10px;
  }

  .team-matches-summary-stats {
    gap: 5px;
  }

  .team-matches-summary-stats span {
    padding: 4px 6px;
    font-size: .68rem;
  }

  .team-matches-section h3 {
    padding: 11px 10px;
    font-size: .84rem;
  }

  .team-matches-row {
    grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr);
    gap: 5px;
    padding: 10px 7px;
  }

  .team-matches-team {
    gap: 5px;
    font-size: .72rem;
    line-height: 1.1;
  }

  .team-matches-shield {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
    border-radius: 7px;
  }

  .team-matches-center {
    min-width: 0;
    gap: 3px;
  }

  .team-match-outcome {
    max-width: 72px;
    padding: 4px 5px;
    font-size: .55rem;
    white-space: normal;
  }

  .team-matches-score {
    font-size: .98rem;
  }

  .team-matches-center small {
    max-width: 74px;
    font-size: .55rem;
    overflow-wrap: anywhere;
  }

  .team-matches-empty-text {
    padding: 14px 10px;
    font-size: .85rem;
  }

  .team-matches-summary {
    align-items: flex-start;
  }

  .team-matches-roster-link {
    width: 100%;
  }

  .team-matches-roster-button {
    width: 100%;
  }

  .team-roster-page,
  .player-profile-page {
    padding: 0 6px 18px;
  }

  .info-return-actions {
    padding: 0 2px;
  }

  .info-return-actions .btn {
    width: 100%;
  }

  .team-roster-title,
  .player-profile-title {
    padding: 13px 10px;
    font-size: 1rem;
  }

  .team-roster-header,
  .player-profile-header {
    gap: 12px;
    padding: 14px 12px;
  }

  .team-roster-shield {
    flex-basis: 54px;
    width: 54px;
    height: 54px;
    border-radius: 11px;
  }

  .player-profile-photo {
    flex-basis: 68px;
    width: 68px;
    height: 68px;
  }

  .team-roster-header h2,
  .player-profile-header h2 {
    font-size: 1.1rem;
    overflow-wrap: anywhere;
  }

  .team-roster-header p,
  .player-profile-header p {
    font-size: .78rem;
    line-height: 1.25;
  }

  .team-roster-scope,
  .player-profile-scope {
    display: grid;
    grid-template-columns: 1fr;
    padding: 0 12px 12px;
  }

  .team-roster-desktop {
    display: none;
  }

  .team-roster-mobile {
    display: block;
  }

  .team-roster-mobile-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 10px;
  }

  .team-roster-player-photo,
  .player-profile-mini-logo {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
  }

  .player-profile-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 0 12px 12px;
  }

  .player-profile-stat {
    padding: 8px;
  }

  .player-profile-stat strong {
    font-size: 1.05rem;
  }

  .player-profile-list {
    padding: 10px 12px;
  }

  .player-profile-list-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .player-profile-list-row > strong {
    justify-self: start;
  }
}

/* Navegacion interna compacta y sin desborde para telefonos. */
@media (max-width: 680px) {
  .app {
    display: block;
    max-width: 100%;
    overflow-x: hidden;
  }

  .sidebar {
    gap: 12px;
    padding: 14px 18px;
  }

  .sidebar .nav {
    display: flex;
    gap: 8px;
    max-width: 100%;
    overflow-x: auto;
    padding: 2px 0 6px;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }

  .sidebar .nav button {
    flex: 0 0 auto;
    width: auto;
    min-height: 38px;
    white-space: nowrap;
  }

  .sidebar .userbox {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 10px;
    margin-top: 0;
    padding-top: 12px;
  }

  .sidebar .userbox strong,
  .sidebar .userbox .muted {
    grid-column: 1;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .sidebar .userbox .btn {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: auto;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
  }

  .topbar > .toolbar {
    width: 100%;
    min-width: 0;
  }
}
.global-roster-row { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; padding: .85rem 0; border-bottom: 1px solid var(--border); }
.global-roster-row > strong { flex: 1 1 12rem; }
.global-roster-row label, .global-roster-lookup label { display: grid; gap: .25rem; }
.global-roster-row input[type="number"] { width: 5rem; }
.global-roster-profile { display: flex; flex-wrap: wrap; gap: .65rem; width: 100%; align-items: end; }
.global-roster-profile label { flex: 1 1 10rem; }
