@font-face {
  font-family: Manrope;
  src: url("/admin/fonts/Manrope-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("/admin/fonts/Manrope-bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
:root {
  --navy: #12284a;
  --lime: #cbe64e;
  --ink: #1b2f50;
  --muted: #5e6f83;
  --line: #dee5ed;
  --paper: #fff;
  --bg: #f3f5f8;
  --green: #236d3a;
  --red: #a12c36;
  font-family: Manrope, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  padding: 9px 14px;
  min-height: 42px;
  border-radius: 8px;
  font-weight: 700;
}
button:hover {
  background: #edf2f7;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button.primary {
  background: var(--lime);
  color: var(--navy);
  border-color: var(--lime);
}
button.primary:hover {
  background: #d8ed83;
}
button.danger {
  color: var(--red);
  border-color: #e1bac0;
}
button.subtle {
  background: transparent;
  border-color: transparent;
  padding: 6px 9px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #6095d4;
  outline-offset: 3px;
}
a {
  color: var(--green);
  text-underline-offset: 3px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin-bottom: 9px;
}
h2 {
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 16px;
  margin-bottom: 12px;
}
p {
  margin-bottom: 16px;
}
.muted,
.hint {
  color: var(--muted);
}
.hint {
  font-size: 12px;
  margin-top: 5px;
  font-weight: 400;
  display: block;
  line-height: 1.5;
}
.ball {
  border-radius: 50%;
  background: var(--lime);
  color: var(--navy);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
#app {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  min-height: 100vh;
}
aside {
  background: var(--navy);
  color: white;
  display: flex;
  flex-direction: column;
  padding: 26px 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  padding: 0 7px 28px;
}
.brand .ball {
  width: 38px;
  height: 38px;
}
nav {
  display: grid;
  gap: 4px;
}
nav a {
  color: #c8d5e4;
  text-decoration: none;
  padding: 11px 14px;
  border-radius: 7px;
  display: flex;
  gap: 11px;
  align-items: center;
  font-size: 13px;
}
nav a:hover {
  background: #1d385d;
  color: white;
}
nav a.active {
  background: var(--lime);
  color: var(--navy);
  font-weight: 700;
}
nav .navmark {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.identity {
  margin-top: auto;
  padding: 28px 10px 0;
  color: #c8d5e4;
  font-size: 12px;
}
.identity button {
  color: white;
  display: block;
  margin: 8px 0 0 -9px;
}
.workspace {
  min-width: 0;
}
.time-zone {
  display: block;
  color: #a3b6ce;
  font-size: 11px;
  margin-top: 18px;
}
main {
  padding: 32px 34px;
  max-width: 1560px;
  margin: 0 auto;
}
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}
.page-head p {
  color: var(--muted);
  margin-bottom: 0;
  max-width: 70ch;
}
.actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 20px;
}
.panel.flush {
  padding: 0;
  overflow: hidden;
}
.panel .panel-title {
  padding: 20px 22px 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.grid.wide-left {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr);
}
.stats {
  display: flex;
  gap: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.stat {
  flex: 1;
  min-width: 150px;
  padding: 20px 24px;
  border-right: 1px solid var(--line);
}
.stat:last-child {
  border: 0;
}
.stat strong {
  display: block;
  font-size: 29px;
  letter-spacing: -0.9px;
  line-height: 1.3;
}
.stat span {
  font-size: 12px;
  color: var(--muted);
}
.task {
  padding: 17px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.task:last-child {
  border: 0;
  padding-bottom: 0;
}
.task p {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.tag {
  display: inline-block;
  border-radius: 5px;
  padding: 4px 8px;
  background: #edf2f7;
  color: #46617d;
  font-size: 11px;
  white-space: nowrap;
}
.tag.ok {
  color: #236d3a;
  background: #e9f5e9;
}
.tag.warn {
  color: #825310;
  background: #fff2d9;
}
.tag.bad {
  color: #a12c36;
  background: #fbecee;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  background: #fafbfd;
}
td,
th {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
tbody tr:last-child td {
  border-bottom: 0;
}
td {
  font-size: 13px;
}
td .hint {
  margin: 3px 0 0;
}
td button {
  min-height: 34px;
  padding: 5px 9px;
  font-size: 12px;
}
.toolbar {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.toolbar label {
  margin: 0;
  max-width: 360px;
  flex: 1;
  min-width: 140px;
}
.toolbar button {
  flex-shrink: 0;
}
label {
  display: block;
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 18px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #ccd6e1;
  border-radius: 7px;
  padding: 11px 12px;
  color: var(--ink);
  background: white;
  margin-top: 7px;
  min-width: 0;
  min-height: 44px;
}
textarea {
  resize: vertical;
  min-height: 100px;
  font-weight: 400;
}
input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  margin: 0;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 400;
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}
.field-grid .full {
  grid-column: 1/-1;
}
.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.error {
  padding: 14px 16px;
  background: #fbecee;
  color: var(--red);
  border-radius: 8px;
  margin: 16px 0;
}
.notice {
  padding: 14px 16px;
  background: #edf2f7;
  color: #465c75;
  border-radius: 8px;
  margin: 16px 0;
  font-size: 13px;
}
.empty {
  text-align: center;
  padding: 45px 20px;
}
.empty h3 {
  margin-bottom: 6px;
}
.empty p {
  color: var(--muted);
  margin: 0 auto;
  max-width: 55ch;
}
.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 18px;
  color: var(--muted);
  font-size: 12px;
  gap: 10px;
}
.tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.tabs button[aria-pressed="true"] {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.thumb {
  width: 90px;
  height: 48px;
  object-fit: cover;
  border-radius: 7px;
  background: #edf2f7;
}
.upload-zone {
  border: 1px dashed #91a4b9;
  background: #f7f9fc;
  border-radius: 10px;
  padding: 18px;
  margin: 10px 0 18px;
}
.cover-preview {
  display: block;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  margin: 12px 0 8px;
}
.upload-zone input {
  border: 0;
  padding: 0;
  background: transparent;
  font-size: 12px;
}
.upload-zone p {
  margin: 8px 0;
}
.phone {
  max-width: 340px;
  margin: auto;
  background: white;
  color: var(--navy);
  padding: 22px 14px;
  border: 6px solid var(--navy);
  border-radius: 29px;
}
.phone.compact {
  max-width: 280px;
}
.phone-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 15px;
}
.phone-head .ball {
  width: 32px;
  height: 32px;
  font-size: 10px;
}
.banner-preview {
  position: relative;
  overflow: hidden;
  background: #234864;
  min-height: 165px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  padding: 17px;
}
.banner-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0a203dcc, #0a203d20);
}
.banner-copy {
  position: relative;
  z-index: 1;
  color: white;
  max-width: 95%;
}
.banner-copy strong {
  display: block;
  font-size: 23px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.banner-copy small {
  font-size: 11px;
  display: block;
  margin-bottom: 5px;
}
.banner-copy span {
  display: inline-block;
  margin-top: 13px;
  padding: 7px 10px;
  background: var(--lime);
  color: var(--navy);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}
.compact .banner-preview {
  min-height: 104px;
  padding: 12px;
}
.compact .banner-copy strong {
  font-size: 18px;
}
.compact .banner-copy small {
  display: none;
}
.phone-stub {
  padding: 17px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.phone-stub strong {
  display: block;
}
.phone-actions {
  display: flex;
  gap: 6px;
  margin-top: 16px;
}
.phone-actions span {
  background: var(--lime);
  border-radius: 7px;
  padding: 10px 7px;
  font-size: 10px;
  font-weight: 700;
  flex: 1;
}
.avatar {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e7edf4;
  color: var(--navy);
  font-weight: 700;
  margin-right: 10px;
  flex-shrink: 0;
}
.person {
  display: flex;
  align-items: center;
}
.score {
  font-size: 19px;
  letter-spacing: 1px;
  font-weight: 700;
}
.detail-list {
  display: grid;
  grid-template-columns: minmax(120px, 0.6fr) 1fr;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.detail-list dt {
  color: var(--muted);
}
.detail-list dd {
  margin: 0;
}
.code-details {
  font:
    12px/1.5 Manrope,
    system-ui;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 12px;
  background: #f5f7fa;
  border-radius: 6px;
  max-height: 360px;
  overflow: auto;
}
details summary {
  cursor: pointer;
  color: var(--green);
  font-size: 12px;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  background: var(--navy);
  color: white;
  border-radius: 10px;
  padding: 14px 22px;
  box-shadow: 0 4px 20px #12284a33;
  z-index: 10;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  max-width: 760px;
  width: calc(100% - 28px);
  max-height: 90vh;
  padding: 22px;
  color: var(--ink);
  box-shadow: 0 15px 70px #12284a33;
}
dialog::backdrop {
  background: #0b203266;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}
.dialog-head h2 {
  margin: 0;
}
.loading {
  padding: 50px;
  color: var(--muted);
}
.crop-frame {
  aspect-ratio: 2/1;
  overflow: hidden;
  background: #12284a;
  margin: 14px 0;
}
.crop-frame canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.crop-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.crop-controls input {
  padding: 0;
}
#dialog-content .panel {
  padding: 15px;
}
.role-caption {
  display: block;
  color: #c8d5e4;
  margin-top: 4px;
}
@media (min-width: 1050px) {
  aside {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: auto;
  }
}
@media (max-width: 1050px) {
  #app {
    grid-template-columns: 185px minmax(0, 1fr);
  }
  main {
    padding: 24px;
  }
  .grid.wide-left {
    grid-template-columns: 1fr;
  }
  .brand {
    font-size: 11px;
  }
}
@media (max-width: 720px) {
  #app {
    display: block;
  }
  aside {
    padding: 16px;
  }
  .brand {
    padding-bottom: 16px;
  }
  nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }
  nav a {
    font-size: 11px;
    padding: 8px;
    min-height: 40px;
  }
  nav .navmark {
    width: 18px;
    height: 18px;
  }
  .identity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding: 12px 5px 0;
  }
  .identity button {
    margin: 0;
  }
  .role-caption {
    display: inline;
    margin-left: 7px;
  }
  .time-zone {
    margin-top: 0;
    font-size: 11px;
  }
  main {
    padding: 22px 16px;
  }
  h1 {
    font-size: 25px;
  }
  .grid,
  .field-grid {
    grid-template-columns: 1fr;
  }
  .field-grid .full {
    grid-column: auto;
  }
  .panel {
    padding: 17px;
  }
  .stat {
    padding: 16px;
    min-width: 45%;
    border-bottom: 1px solid var(--line);
  }
  input,
  select,
  textarea {
    font-size: 16px;
  }
  td,
  th {
    padding: 12px;
  }
  .page-head {
    gap: 14px;
  }
  dialog {
    padding: 17px;
  }
  .detail-list {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .detail-list dd {
    margin-bottom: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

.crop-frame.cover {
  aspect-ratio: 16 / 9;
}

/* Shared league controls. No platform select menus or date pickers. */
:focus-visible {
  outline-color: var(--navy);
}
input:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px #cbe64e55;
}
.league-control {
  display: block;
  position: relative;
  margin-top: 7px;
  font-weight: 400;
}
.league-select {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  font-weight: 400;
  border-color: #ccd6e1;
}
.league-select:hover,
.league-select[aria-expanded="true"] {
  border-color: var(--navy);
  background: #f7f9ed;
}
.league-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.league-chevron,
.league-calendar-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
}
.league-chevron svg,
.league-calendar-trigger svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.league-select[aria-expanded="true"] .league-chevron {
  transform: rotate(180deg);
}
.league-popover {
  position: fixed;
  inset: auto;
  margin: 0;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  font:
    400 13px/1.5 Manrope,
    sans-serif;
  box-shadow: 0 14px 40px #12284a26;
  overflow: auto;
}
.league-popover::backdrop {
  background: transparent;
}
.league-option-list {
  max-height: 260px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.league-option {
  min-height: 42px;
  padding: 11px 36px 11px 12px;
  border-radius: 7px;
  position: relative;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.league-option[aria-selected="true"] {
  background: var(--lime);
  color: var(--navy);
  font-weight: 700;
}
.league-option[aria-selected="true"]::after {
  content: "✓";
  position: absolute;
  right: 13px;
  top: 11px;
}
.league-option.highlighted {
  box-shadow: inset 0 0 0 2px var(--navy);
}
.league-option:not([aria-selected="true"]):hover {
  background: #edf2f7;
}
.league-option[aria-disabled="true"] {
  opacity: 0.45;
  cursor: default;
}
.league-option-search {
  margin: 0 0 7px;
  min-height: 40px;
  font-size: 13px;
}
.league-empty {
  color: var(--muted);
  margin: 12px;
}
.league-date {
  display: flex;
  gap: 6px;
}
.league-date-text {
  margin: 0;
  font-variant-numeric: tabular-nums;
  flex: 1;
}
.league-calendar-trigger {
  padding: 10px;
  min-width: 44px;
  border-color: #ccd6e1;
}
.league-calendar-trigger[aria-expanded="true"] {
  background: var(--lime);
}
.league-calendar {
  padding: 16px;
}
.league-calendar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.league-calendar-head strong {
  text-transform: capitalize;
}
.league-month-arrow {
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  font-size: 24px;
  line-height: 1;
}
.league-weekdays,
.league-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
  text-align: center;
}
.league-weekdays {
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 6px;
}
.league-day {
  min-height: 35px;
  padding: 4px 0;
  border-color: transparent;
  font-size: 12px;
  font-weight: 400;
}
.league-day[aria-pressed="true"] {
  background: var(--lime);
  font-weight: 700;
  color: var(--navy);
}
.league-time-label {
  margin: 15px 0;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.league-time {
  font-variant-numeric: tabular-nums;
}
.league-calendar-footer,
.league-confirm-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.league-confirm {
  max-width: min(460px, calc(100vw - 32px));
  padding: 28px;
}
.league-confirm h2 {
  font-size: 21px;
}
.league-confirm-footer {
  margin-top: 24px;
}
input[type="file"] {
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 12px;
  font-weight: 400;
}
input[type="file"]::file-selector-button {
  font:
    700 12px Manrope,
    sans-serif;
  color: var(--navy);
  background: var(--lime);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 11px 14px;
  margin-right: 10px;
  cursor: pointer;
}
input[type="file"]::file-selector-button:hover {
  border-color: var(--navy);
}
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  min-height: 20px;
  flex: 0 0 20px;
  padding: 0;
  border: 1.5px solid #9baabc;
  border-radius: 5px;
  display: inline-grid;
  place-content: center;
  cursor: pointer;
}
input[type="checkbox"]:checked {
  background: var(--lime);
  border-color: var(--navy);
}
input[type="checkbox"]:checked::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: translateY(-1px) rotate(-45deg);
}
input[type="range"] {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  min-height: 28px;
  accent-color: var(--navy);
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 5px;
  background: #d8e1ea;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--lime);
  border: 2px solid var(--navy);
  margin-top: -7px;
  cursor: grab;
}
input[type="range"]::-moz-range-track {
  height: 5px;
  border-radius: 5px;
  background: #d8e1ea;
}
input[type="range"]::-moz-range-thumb {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--lime);
  border: 2px solid var(--navy);
  cursor: grab;
}
input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}
input::-webkit-inner-spin-button,
input::-webkit-outer-spin-button,
input::-webkit-search-cancel-button {
  appearance: none;
  -webkit-appearance: none;
}
* {
  scrollbar-width: thin;
  scrollbar-color: #9eacbc #f3f5f8;
}
::selection {
  background: var(--lime);
  color: var(--navy);
}

.league-field-error {
  display: block;
  color: #a32e35;
  font-size: 12px;
  font-weight: 500;
  margin-top: 7px;
}
[aria-invalid="true"] {
  border-color: #a32e35;
  background: #fff8f7;
}

.league-date-text {
  min-width: 0;
}

.tournament-tabs { margin: 0 0 22px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.tournament-tabs .selected { background: var(--navy); color: white; border-color: var(--navy); }
.competition h2 { margin-bottom: 8px; }
.competition fieldset { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.competition legend, #dialog-content legend { font-weight: 700; margin-bottom: 12px; }
#dialog-content fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.competition-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 16px; }
.competition-group { min-width: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.competition-group > h3 { padding: 18px 16px 0; }
.competition details summary { padding: 14px 16px; border-top: 1px solid var(--line); }
.fixture-list { display: grid; gap: 12px; padding: 12px; }
.league-fixtures { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.fixture-card { border: 1px solid var(--line); border-radius: 9px; padding: 14px; background: white; min-width: 0; }
.fixture-card .hint { margin: 10px 0 0; }
.fixture-card .actions { margin-top: 12px; gap: 4px; }
.fixture-card .actions button { font-size: 11px; padding: 7px 10px; min-height: 36px; }
.fixture-players { display: grid; gap: 8px; }
.fixture-player { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 13px; }
.fixture-player span { overflow-wrap: anywhere; }
.fixture-player strong { white-space: nowrap; font-size: 12px; }
.fixture-player.is-winner { color: var(--green); font-weight: 700; }
.playoff-title { margin: 28px 0 14px; }
.bracket { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 18px; overflow-x: auto; padding: 2px 2px 20px; margin-bottom: 12px; align-items: start; }
.bracket:focus-visible { outline: 3px solid #6095d4; outline-offset: 3px; }
.bracket-round { display: grid; gap: 12px; align-content: start; }
.bracket-round > h3 { margin: 0; font-size: 14px; }
.bracket-round .fixture-card.is-complete { border-left: 3px solid #78a58b; }
#fixture-result-preview { margin-top: 18px; }
@media (max-width: 1050px) { .competition-groups { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .tournament-tabs { gap: 6px; } .tournament-tabs button { padding: 8px 10px; font-size: 12px; } .bracket { grid-auto-columns: minmax(230px, 80vw); } }

.tie-mark { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 5px; border-radius: 4px; background: #edf2f7; font-size: 11px; color: var(--muted); }
.competition-group th:first-child { width: 64px; }
.competition-group td:first-child { white-space: nowrap; }

/* League sign-in: the court is the one graphic gesture; the form stays quiet. */
.login-wrap { padding: 0; width: min(1080px, calc(100% - 64px)); margin: max(32px, 7vh) auto; display: grid; grid-template-columns: 1fr 1fr; min-height: 660px; background: #fff; border-radius: 24px; overflow: hidden; box-shadow: 0 24px 80px #12284a12; }
.login-brand { position: relative; padding: 48px; background: #12284a; color: #fff; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; }
.login-logo { position: relative; z-index: 1; object-fit: cover; border-radius: 22px; margin-bottom: 34px; }
.login-brand-copy { position: relative; z-index: 1; }
.login-brand h1 { font-size: clamp(30px, 3vw, 42px); line-height: 1.16; letter-spacing: -1.5px; margin-bottom: 20px; }
.login-brand-copy p { color: #c7d4e4; font-size: 16px; line-height: 1.6; }
.login-brand-foot { position: relative; z-index: 1; color: #c7d4e4; font-size: 12px; margin: auto 0 0; padding-top: 220px; }
.login-court { position: absolute; width: 430px; height: 235px; bottom: 60px; right: -85px; transform: rotate(-24deg); }
.court-lines { position: absolute; inset: 0; border: 2px solid #608093; background: #1b4055; }
.court-lines::before, .court-lines::after { content: ""; position: absolute; top: 0; bottom: 0; width: 2px; background: #608093; }
.court-lines::before { left: 12%; }.court-lines::after { right: 12%; }
.court-lines i { position: absolute; left: 12%; right: 12%; top: 24%; bottom: 24%; border-top: 2px solid #608093; border-bottom: 2px solid #608093; }
.court-lines b { position: absolute; left: 50%; width: 2px; top: 24%; bottom: 24%; background: #608093; }
.court-lines span { position: absolute; left: -3%; right: -3%; top: 50%; border-top: 3px solid #acbac5; box-shadow: 0 5px 0 #12284a40; }
.court-ball { width: 60px; height: 60px; position: absolute; border-radius: 50%; background: #cbe64e; left: 55px; top: 112px; overflow: hidden; box-shadow: 8px 14px 0 #10233e70; transform: rotate(32deg); }
.court-ball::before, .court-ball::after { content: ""; position: absolute; top: -6px; bottom: -6px; width: 54px; border: 3px solid #f3f8c9; border-radius: 50%; }
.court-ball::before { left: -38px; }.court-ball::after { right: -38px; }
.login-panel { display: flex; flex-direction: column; justify-content: center; padding: 60px 56px 36px; }
.login-caption { color: #456647; font-size: 13px; margin-bottom: 12px; font-weight: 700; }
.login-heading h2 { font-size: 29px; letter-spacing: -1px; margin-bottom: 14px; }
.login-heading .muted { line-height: 1.7; margin-bottom: 32px; }
.login-form label { display: block; margin: 0 0 8px; font-size: 13px; font-weight: 700; }
.login-form input { width: 100%; height: 52px; padding: 12px 14px; border: 1px solid #c7d1de; border-radius: 9px; background: #fff; color: #12284a; margin: 0 0 22px; font-size: 16px; }
.login-form input::placeholder { color: #758294; }
.password-field { position: relative; }.password-field input { padding-right: 52px; margin-bottom: 0; }
.password-toggle { position: absolute; right: 4px; top: 4px; width: 44px; height: 44px; padding: 11px; border: 0; background: transparent; }
.password-toggle svg { width: 22px; height: 22px; stroke: #586b83; stroke-width: 1.6; fill: none; }
.login-error { color: #a12c36; font-size: 13px; margin: 12px 0 0; }.login-error:empty { display: none; }
.login-submit { width: 100%; min-height: 52px; margin-top: 26px; font-size: 15px; border-radius: 9px; }
.login-method { align-self: center; background: transparent; border: 0; font-size: 13px; font-weight: 400; text-decoration: underline; text-underline-offset: 4px; margin: 18px 0 30px; padding: 8px 0; color: #4b6078; }
.login-method:hover { background: transparent; color: #12284a; }
.login-footnote { text-align: center; color: #6d7d90; font-size: 11px; margin: auto 0 0; padding-top: 24px; }
@media (max-width: 850px) { .login-wrap { width: calc(100% - 40px); } .login-brand { padding: 36px; } .login-panel { padding: 42px 32px 30px; } .login-heading h2 { font-size: 25px; } }
@media (max-width: 620px) {
  .login-wrap { width: 100%; margin: 0; min-height: 100svh; display: block; border-radius: 0; box-shadow: none; }
  .login-brand { padding: 26px 24px; flex-direction: row; align-items: center; gap: 18px; }
  .login-logo { width: 76px; height: 76px; border-radius: 15px; margin: 0; flex-shrink: 0; }
  .login-brand h1 { font-size: 23px; letter-spacing: -.7px; margin: 0; line-height: 1.2; }
  .login-brand-copy p, .login-brand-foot, .login-court { display: none; }
  .login-panel { max-width: 440px; margin: 0 auto; padding: 32px 24px 24px; }
  .login-heading h2 { font-size: 27px; }.login-heading .muted { margin-bottom: 26px; }
  .login-method { margin-bottom: 16px; }.login-footnote { padding-top: 12px; }
}
