.fixture.locked {
  opacity: 0.52;
  background: #e5e1d7;
}
.fixture.locked > em {
  color: #777;
}
.pairing-note {
  padding: 10px 12px;
  background: #f0ede5;
  color: #777;
  font: 700 9px monospace;
}
.format-note {
  color: #777;
  font: 700 9px monospace;
}
.format-note b,
.format-note span {
  display: block;
}
.format-note span {
  margin-top: 5px;
}
.brand img,
#orgLogo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
}
.club {
  position: relative;
}
.club > img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 8px;
}
.club.away > img {
  margin-left: auto;
}
.management {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr;
  gap: 24px;
  padding: 0 4vw 70px;
}
.catalog {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.catalog-card {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 16px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  padding: 15px;
  min-height: 92px;
}
.catalog-card h3 {
  margin: 4px 0;
}
.catalog-card p {
  margin: 5px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.catalog-card small {
  font: 700 9px monospace;
  color: var(--red);
}
.team-logo,
.duel-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 58px;
}
.team-logo img,
.duel-logos img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}
.team-logo b {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font: 700 11px monospace;
}
.duel-logos img {
  width: 30px;
  height: 30px;
}
.duel-logos b {
  font: 700 9px monospace;
}
.dark-card textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  border: 1px solid #444;
  background: #222;
  color: #fff;
  padding: 12px;
  resize: vertical;
}
.logo-preview {
  display: block;
  max-width: 120px;
  max-height: 100px;
  object-fit: contain;
  margin: 12px 0;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 0 4vw 70px;
}
.settings-grid select {
  display: block;
  width: 100%;
  height: 43px;
  margin-top: 7px;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 0 12px;
}
.settings-grid input[type="color"] {
  display: block;
  width: 100%;
  height: 48px;
  margin-top: 7px;
}
.empty {
  min-height: 70vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 30px;
}
.empty h1 {
  font-size: 40px;
  margin-bottom: 5px;
}
.empty p {
  color: var(--muted);
}
#orgSelect {
  max-width: 180px;
  height: 36px;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 0 8px;
}
:root[data-theme="dark"] {
  --ink: #f2f2ee;
  --paper: #171817;
  --line: #3b3d39;
  --muted: #aaa9a2;
}
html[data-theme="dark"] body,
html[data-theme="dark"] header {
  background: #171817;
  color: #f2f2ee;
}
html[data-theme="dark"] header {
  background: #171817f2;
}
html[data-theme="dark"] .score-hero {
  background: linear-gradient(120deg, #1c1d1c, #252724);
}
html[data-theme="dark"] .fixture,
html[data-theme="dark"] .team-card,
html[data-theme="dark"] .catalog-card,
html[data-theme="dark"] .scoring > div {
  background: #232522;
}
html[data-theme="dark"] .fixture.done {
  background: #292b27;
}
html[data-theme="dark"] .fixture.locked {
  background: #20221f;
}
html[data-theme="dark"] .round,
html[data-theme="dark"] .outline,
html[data-theme="dark"] select,
html[data-theme="dark"] input {
  color: #f2f2ee;
  background: #20221f;
  border-color: #4a4c47;
}
html[data-theme="dark"] .brand i,
html[data-theme="dark"] .side i,
html[data-theme="dark"] .team-logo b {
  background: #f2f2ee;
  color: #171817;
}
html[data-theme="dark"] nav button {
  color: #aaa;
}
html[data-theme="dark"] nav button.active {
  color: #fff;
}
@media (max-width: 1050px) {
  header {
    height: auto;
    min-height: 72px;
    flex-wrap: wrap;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  nav {
    order: 3;
    width: 100%;
    height: 44px;
    overflow-x: auto;
  }
  .management,
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .catalog-card {
    grid-template-columns: 64px 1fr auto;
  }
}
@media (max-width: 650px) {
  header {
    gap: 8px;
  }
  #orgSelect {
    margin-left: auto;
    max-width: 135px;
  }
  nav {
    gap: 4px;
  }
  nav button {
    white-space: nowrap;
    padding: 0 9px;
  }
  .score-hero {
    min-height: 220px;
  }
  .club > img {
    width: 45px;
    height: 45px;
  }
  .club h1 {
    font-size: 20px;
  }
  .management {
    padding: 0 14px 55px;
  }
  .catalog-card {
    grid-template-columns: 50px 1fr;
  }
  .catalog-card > button,
  .catalog-card > select {
    grid-column: 1/-1;
    width: 100%;
  }
  .team-logo img {
    width: 42px;
    height: 42px;
  }
  .toolbar h2 {
    font-size: 27px;
  }
  .settings-grid {
    padding: 0 14px 55px;
  }
  .dark-card {
    padding: 20px;
  }
  .empty h1 {
    font-size: 30px;
  }
  .fixture {
    min-height: 92px;
  }
  .fixture-no span {
    font-size: 7px;
  }
  .scoring {
    grid-template-columns: 1fr;
  }
  .modal {
    padding: 25px 18px;
  }
}
.league-filter {
  margin-left: auto;
  font: 700 9px monospace;
  color: var(--muted);
}
.league-filter select,
.league-rules select {
  display: block;
  min-width: 170px;
  height: 42px;
  margin-top: 7px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 0 12px;
}
.league-hint {
  margin: 0 4vw 22px;
  display: grid;
  gap: 7px;
}
.league-hint > div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 14px;
  padding: 13px 16px;
  background: #fff;
  border-left: 4px solid var(--red);
}
.league-hint b {
  font: 700 10px monospace;
  color: var(--red);
}
.league-hint span {
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
}
.league-rules {
  margin: 0 4vw 70px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 180px 190px 1fr auto;
  gap: 18px;
  align-items: end;
}
.league-rules h3 {
  margin: 5px 0;
}
.league-rules label {
  font: 700 9px monospace;
  color: var(--muted);
}
.league-rules textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 12px;
  resize: vertical;
}
.league-rules button {
  margin-bottom: 1px;
}
:root[data-theme="dark"] .league-hint > div,
:root[data-theme="dark"] .league-rules {
  background: #232522;
}
@media (max-width: 900px) {
  .league-rules {
    grid-template-columns: 1fr 1fr;
  }
  .league-rules > label:nth-of-type(2) {
    grid-column: 1/-1;
  }
}
@media (max-width: 650px) {
  .league-filter {
    width: 100%;
    margin-left: 0;
  }
  .league-filter select {
    width: 100%;
  }
  .league-hint {
    margin: 0 14px 18px;
  }
  .league-hint > div {
    grid-template-columns: 1fr;
  }
  .league-rules {
    margin: 0 14px 55px;
    grid-template-columns: 1fr;
  }
  .league-rules > label:nth-of-type(2) {
    grid-column: auto;
  }
  .league-rules select {
    width: 100%;
  }
}
