:root {
  --navy: #10213f;
  --blue: #2563eb;
  --ink: #172238;
  --muted: #718096;
  --line: #e6eaf1;
  --bg: #f6f8fc;
  --card: #fff;
  --green: #109b70;
  --orange: #e49b32;
  --violet: #7046d9;
  --shadow: 0 10px 28px rgba(28, 48, 88, 0.06);
}

/* Tournament operations modules */
.module-page .page-title-row {
  margin-bottom: 24px;
}
.module-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.module-summary.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.summary-card {
  min-height: 128px;
  padding: 22px;
  border: 1px solid #dde5f2;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(25, 45, 84, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.summary-card > span {
  color: #8b98ad;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.summary-card > b {
  color: #0d1f3c;
  font-size: 22px;
  line-height: 1.2;
  margin: 9px 0 5px;
}
.summary-card > small {
  color: #75839a;
  font-size: 13px;
}
.group-grid,
.standings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.group-panel,
.standings-panel,
.data-panel,
.referee-assignments,
.recent-results {
  overflow: hidden;
}
.group-head {
  padding: 20px 22px;
  border-bottom: 1px solid #e8edf5;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.group-head > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.group-head h2,
.referee-card h2 {
  color: #10213c;
  font-size: 17px;
  margin: 0 0 4px;
}
.group-head p,
.referee-card p {
  color: #8491a6;
  font-size: 12px;
  margin: 0;
}
.group-letter {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #eaf0ff;
  color: #315fea;
  display: inline-grid;
  place-items: center;
  font-weight: 800;
}
.tag.blue {
  background: #eef3ff;
  color: #315fea;
}
.pair-row {
  min-height: 70px;
  padding: 12px 20px;
  border-bottom: 1px solid #edf1f7;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.pair-row:last-child {
  border-bottom: 0;
}
.pair-seed {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #f3f6fb;
  color: #6d7a91;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}
.pair-players {
  display: flex;
  gap: 18px;
  min-width: 0;
}
.pair-players span {
  color: #243550;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gender-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #315fea;
  display: inline-block;
  margin-right: 7px;
}
.gender-dot.female {
  background: #e95596;
}
.pair-status,
.secure-note {
  color: #1b9a68;
  font-size: 12px;
  font-weight: 700;
}
.data-toolbar {
  padding: 18px 20px;
  border-bottom: 1px solid #e7edf6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.filter-pills {
  display: flex;
  gap: 8px;
}
.filter-pill {
  padding: 8px 14px;
  border: 1px solid #dbe3ef;
  border-radius: 9px;
  background: #fff;
  color: #65738a;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.filter-pill.active {
  border-color: #315fea;
  background: #315fea;
  color: #fff;
}
.data-note {
  color: #8a96aa;
  font-size: 12px;
}
.match-table-head,
.schedule-row {
  display: grid;
  grid-template-columns: 115px minmax(330px, 1.7fr) 90px minmax(140px, 0.7fr) 140px;
  align-items: center;
  gap: 14px;
}
.match-table-head {
  min-width: 910px;
  padding: 13px 20px;
  background: #f8faff;
  color: #8c98aa;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.schedule-row {
  min-width: 910px;
  min-height: 86px;
  padding: 14px 20px;
  border-top: 1px solid #edf1f7;
}
.match-table {
  overflow-x: auto;
}
.schedule-time b,
.schedule-time small,
.schedule-teams span,
.schedule-teams b,
.schedule-teams em,
.schedule-state small {
  display: block;
}
.schedule-time b {
  color: #11233f;
  font-size: 17px;
}
.schedule-time small,
.schedule-teams span,
.schedule-state small {
  color: #8894a8;
  font-size: 11px;
  margin-top: 3px;
}
.schedule-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 50px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}
.schedule-teams span {
  grid-column: 1 / -1;
  color: #315fea;
  font-weight: 700;
}
.schedule-teams b {
  color: #20314c;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.schedule-teams em {
  color: #a0aaba;
  font-size: 10px;
  font-style: normal;
  text-align: center;
  text-transform: uppercase;
}
.court-badge,
.group-chip {
  width: fit-content;
  padding: 6px 9px;
  border-radius: 8px;
  background: #f0f4fb;
  color: #4e607b;
  font-size: 11px;
  font-weight: 700;
}
.referee-cell {
  color: #53627a;
  font-size: 12px;
}
.match-status {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 999px;
  background: #eef3ff;
  color: #315fea;
  font-size: 11px;
  font-weight: 700;
}
.match-status.completed {
  background: #e9f8f2;
  color: #16855c;
}
.match-status.live,
.match-status.pending_review {
  background: #fff1df;
  color: #c56d17;
}
.standings-grid {
  margin-bottom: 18px;
}
.standings-panel .panel-head {
  padding: 20px 22px;
}
.standings-head,
.standing-row {
  display: grid;
  grid-template-columns: 34px minmax(150px, 1fr) repeat(5, 38px);
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
}
.standings-head {
  background: #f7f9fd;
  color: #929dae;
  font-size: 10px;
  font-weight: 800;
}
.standing-row {
  border-top: 1px solid #edf1f7;
  color: #69778d;
  font-size: 12px;
}
.standing-row strong {
  color: #253650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.standing-row > b:last-child {
  color: #315fea;
}
.recent-results .panel-head,
.referee-assignments .panel-head {
  padding: 20px 22px;
  border-bottom: 1px solid #edf1f7;
}
.result-row {
  padding: 16px 22px;
  border-top: 1px solid #edf1f7;
  display: grid;
  grid-template-columns: 80px minmax(150px, 1fr) auto minmax(150px, 1fr) 100px;
  align-items: center;
  gap: 16px;
  color: #23354f;
  font-size: 13px;
}
.set-result {
  display: flex;
  gap: 5px;
}
.set-result b {
  padding: 5px 7px;
  border-radius: 7px;
  background: #eef3ff;
  color: #315fea;
  font-size: 11px;
}
.winner-label {
  color: #16855c;
  font-size: 11px;
  font-weight: 700;
}
.referee-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.referee-card {
  padding: 20px;
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 12px;
}
.referee-avatar {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #e8efff;
  color: #315fea;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.referee-stats {
  grid-column: 1 / -1;
  padding-top: 15px;
  border-top: 1px solid #edf1f7;
  display: flex;
  gap: 22px;
  color: #8190a5;
  font-size: 11px;
}
.referee-stats b {
  color: #1f3150;
  font-size: 15px;
  margin-right: 4px;
}
.ref-link-row {
  padding: 15px 20px;
  border-top: 1px solid #edf1f7;
  display: grid;
  grid-template-columns: 100px minmax(280px, 1fr) 105px 155px;
  align-items: center;
  gap: 16px;
}
.ref-match-time b,
.ref-match-time small,
.ref-match-info span,
.ref-match-info b,
.ref-match-info small {
  display: block;
}
.ref-match-time b {
  color: #152846;
  font-size: 17px;
}
.ref-match-time small,
.ref-match-info span,
.ref-match-info small {
  color: #8895a9;
  font-size: 11px;
  margin-top: 3px;
}
.ref-match-info span {
  color: #315fea;
  font-weight: 700;
}
.ref-match-info b {
  color: #243650;
  font-size: 13px;
  margin: 4px 0;
}
.ref-match-info em {
  color: #a0aabb;
  font-size: 10px;
  font-style: normal;
  margin: 0 6px;
}
.link-state {
  color: #9aa4b4;
  font-size: 11px;
  font-weight: 700;
}
.link-state.ready {
  color: #16855c;
}
.module-empty {
  padding: 64px;
  text-align: center;
}
@media (max-width: 1100px) {
  .module-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .referee-cards {
    grid-template-columns: 1fr;
  }
  .ref-link-row {
    grid-template-columns: 90px minmax(240px, 1fr) 100px 145px;
  }
}
@media (max-width: 820px) {
  .group-grid,
  .standings-grid {
    grid-template-columns: 1fr;
  }
  .result-row {
    grid-template-columns: 70px 1fr;
  }
  .result-row .set-result,
  .result-row > strong:nth-of-type(2),
  .result-row .winner-label {
    grid-column: 2;
  }
  .ref-link-list {
    overflow-x: auto;
  }
  .ref-link-row {
    min-width: 760px;
  }
}
@media (max-width: 560px) {
  .module-summary,
  .module-summary.compact {
    grid-template-columns: 1fr;
  }
  .summary-card {
    min-height: 108px;
  }
  .pair-players {
    flex-direction: column;
    gap: 6px;
  }
  .pair-status,
  .data-note {
    display: none;
  }
}
@media print {
  .sidebar,
  .topbar,
  .page-title-row .btn,
  .data-toolbar {
    display: none !important;
  }
  .main-content,
  .page-content {
    margin: 0;
    padding: 0;
    max-width: none;
  }
  .data-panel {
    border: 0;
    box-shadow: none;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Fira Sans", Arial, sans-serif;
  font-size: 14px;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
.app-shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 256px;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 25px 16px;
  flex-shrink: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px 32px;
}
.brand-mark {
  width: 31px;
  height: 31px;
  background: var(--blue);
  border-radius: 9px;
  color: #fff;
  font-weight: 800;
  font-size: 21px;
  display: grid;
  place-items: center;
}
.brand strong {
  display: block;
  font-size: 16px;
  letter-spacing: -0.3px;
}
.brand span {
  display: block;
  color: #9aa5b7;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.7px;
  margin-top: 2px;
}
.side-label,
.eyebrow {
  font-size: 10px;
  color: #94a0b2;
  font-weight: 800;
  letter-spacing: 1.35px;
}
.side-label {
  padding: 0 11px 9px;
}
.tournament-picker {
  background: #f7f9fd;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  margin-bottom: 24px;
}
.tournament-picker b {
  font-size: 12px;
  display: block;
}
.tournament-picker small {
  font-size: 10px;
  color: var(--green);
  display: block;
  margin-top: 3px;
}
.status-dot {
  width: 8px;
  height: 8px;
  background: #19b47c;
  border-radius: 100%;
  box-shadow: 0 0 0 3px #d8f6e9;
}
.chevron {
  margin-left: auto;
  color: #9aa5b7;
}
.main-nav {
  display: grid;
  gap: 4px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #65738a;
  text-decoration: none;
  padding: 11px 12px;
  border-radius: 8px;
  font-weight: 500;
}
.nav-item:hover {
  background: #f4f7fc;
  color: var(--blue);
}
.nav-item.active {
  background: #edf3ff;
  color: var(--blue);
  font-weight: 700;
}
.nav-icon {
  width: 19px;
  font-size: 19px;
  text-align: center;
  color: inherit;
}
.sidebar-bottom {
  margin-top: auto;
}
.help-card {
  background: #f5f7fc;
  border-radius: 12px;
  padding: 17px 15px;
  margin: 24px 5px 4px;
  position: relative;
}
.help-spark {
  position: absolute;
  right: 15px;
  top: 14px;
  color: #7d5ee7;
  font-size: 18px;
}
.help-card b,
.help-card span {
  display: block;
}
.help-card b {
  font-size: 12px;
  margin-bottom: 4px;
}
.help-card span {
  font-size: 11px;
  color: #8490a4;
  line-height: 1.4;
}
.help-card a {
  display: block;
  color: #5c47b8;
  font-size: 11px;
  font-weight: 700;
  margin-top: 12px;
  text-decoration: none;
}
.main-content {
  flex: 1;
  min-width: 0;
}
.topbar {
  height: 78px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #9aa5b7;
  font-size: 13px;
}
.breadcrumbs b {
  color: #d7dde7;
}
.breadcrumbs strong {
  color: var(--ink);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 19px;
}
.icon-button {
  background: transparent;
  border: 0;
  color: #718096;
  font-size: 22px;
  position: relative;
}
.notification i {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e95656;
  right: 1px;
  top: 2px;
  border: 1px solid #fff;
}
.user-menu {
  display: flex;
  align-items: center;
  gap: 9px;
  border-left: 1px solid var(--line);
  padding-left: 18px;
}
.avatar,
.mini-avatar,
.player-avatar {
  background: #dbe8ff;
  color: #2450a2;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.avatar {
  width: 34px;
  height: 34px;
  font-size: 11px;
}
.user-menu b {
  display: block;
  font-size: 12px;
}
.user-menu small {
  display: block;
  color: #9aa5b7;
  font-size: 10px;
  margin-top: 2px;
}
.user-menu > span {
  color: #a7b1c0;
  margin-left: 4px;
}
.mobile-menu {
  display: none;
  border: 0;
  background: transparent;
  font-size: 21px;
}
.page-content {
  padding: 36px 42px 60px;
  max-width: 1500px;
  margin: auto;
}
.page-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}
.page-title-row h1 {
  font-size: 28px;
  letter-spacing: -0.6px;
  margin: 8px 0 6px;
}
.page-title-row h1 span {
  color: #7455d8;
  font-size: 20px;
}
.page-title-row p {
  color: #7f8ca1;
  margin: 0;
}
.title-actions {
  display: flex;
  gap: 10px;
}
.btn {
  border: 0;
  border-radius: 8px;
  padding: 11px 16px;
  font-weight: 700;
  font-size: 12px;
  transition: 0.2s;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 5px 12px #2563eb2b;
}
.btn-success {
  background: #12a87a;
  color: #fff;
}
.btn-ghost {
  background: #fff;
  color: #5e6c82;
  border: 1px solid var(--line);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 20px;
}
.metric-card,
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.metric-card {
  padding: 20px 21px;
}
.metric-top {
  display: flex;
  justify-content: space-between;
}
.metric-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 18px;
}
.metric-icon.blue {
  background: #eaf1ff;
  color: #3067dc;
}
.metric-icon.violet {
  background: #f0ecff;
  color: #7959de;
}
.metric-icon.orange {
  background: #fff4e5;
  color: #da8a1c;
}
.metric-icon.green {
  background: #e5f8f1;
  color: #16a174;
}
.metric-menu,
.row-menu {
  color: #aeb8c6;
  letter-spacing: 2px;
}
.metric-card > strong {
  font-size: 28px;
  display: block;
  margin-top: 15px;
}
.metric-label {
  display: block;
  color: #5f6d82;
  font-size: 12px;
  margin-top: 2px;
}
.metric-delta {
  display: block;
  font-size: 10px;
  font-weight: 700;
  margin-top: 13px;
}
.metric-delta.blue {
  color: #3370dd;
}
.metric-delta.violet {
  color: #7355d5;
}
.metric-delta.orange {
  color: #d9902b;
}
.metric-delta.green {
  color: #149c72;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.8fr);
  gap: 20px;
  margin-bottom: 20px;
}
.panel {
  padding: 21px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}
.panel-head h2 {
  margin: 0;
  font-size: 15px;
}
.panel-head p {
  color: #95a0b0;
  font-size: 11px;
  margin: 5px 0 0;
}
.text-link,
.outline-link {
  color: #3368d5;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
}
.schedule-list {
  display: grid;
}
.match-row {
  display: grid;
  grid-template-columns: 76px 1fr 100px;
  gap: 15px;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid #f0f2f6;
}
.time-col b {
  display: block;
  font-size: 13px;
}
.time-col span {
  display: block;
  color: #a0a9b7;
  font-size: 10px;
  margin-top: 3px;
}
.match-info .category {
  display: block;
  color: #8b96a8;
  font-size: 10px;
  margin-bottom: 4px;
}
.match-info b {
  font-size: 11px;
  font-weight: 600;
}
.match-score-col {
  text-align: right;
}
.match-score-col strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}
.status {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.status.live {
  color: #e35f61;
}
.status.upcoming {
  color: #ca8a1c;
}
.status.scheduled {
  color: #6a7b95;
}
.status.done {
  color: #15a078;
}
.progress-panel {
  display: flex;
  flex-direction: column;
}
.progress-ring {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  margin: 5px auto 18px;
  background: conic-gradient(var(--blue) 0 72%, #edf1f8 72% 100%);
  display: grid;
  place-items: center;
}
.progress-ring:after {
  content: "";
  position: absolute;
}
.progress-ring > div {
  width: 116px;
  height: 116px;
  background: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}
.progress-ring strong {
  font-size: 30px;
  color: var(--ink);
}
.progress-ring strong small {
  font-size: 15px;
}
.progress-ring span {
  font-size: 10px;
  color: #99a4b4;
}
.progress-legend {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.progress-legend span {
  font-size: 11px;
  color: #6e7c90;
  display: flex;
  align-items: center;
}
.progress-legend b {
  margin-left: auto;
  color: var(--ink);
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
}
.dot.blue {
  background: var(--blue);
}
.dot.orange {
  background: #e99c2f;
}
.dot.muted {
  background: #d8dfeb;
}
.outline-link {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px;
  text-align: center;
  margin-top: 19px;
}
.status.live {
  background: #fff2f3;
  padding: 5px 8px;
  border-radius: 4px;
}
.athletes-panel {
  padding-bottom: 12px;
}
.athlete-table {
  width: 100%;
}
.table-head,
.table-row {
  display: grid;
  grid-template-columns: 2fr 0.65fr 1.2fr 1.5fr 1fr 25px;
  gap: 14px;
  align-items: center;
}
.table-head {
  color: #a1abb9;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.7px;
  padding: 0 8px 11px;
}
.table-row {
  border-top: 1px solid #f0f2f6;
  padding: 12px 8px;
  font-size: 11px;
  color: #637087;
}
.athlete-name {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mini-avatar {
  width: 31px;
  height: 31px;
  font-size: 10px;
  flex-shrink: 0;
}
.athlete-name b {
  color: var(--ink);
  display: block;
}
.athlete-name small {
  font-size: 9px;
  color: #a4adbb;
  display: block;
  margin-top: 3px;
}
.athlete-status {
  font-size: 10px;
  white-space: nowrap;
}
.athlete-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
}
.athlete-status.active {
  color: #169b73;
}
.athlete-status.active i {
  background: #1db985;
}
.athlete-status.pending {
  color: #c48a24;
}
.athlete-status.pending i {
  background: #dda43a;
}
.athlete-status.done {
  color: #7f8b9d;
}
.athlete-status.done i {
  background: #9ba7b8;
}
.full {
  margin-top: 5px;
}
.toolbar {
  display: flex;
  gap: 10px;
  margin: -7px 0 18px;
}
.search-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: #9aa5b7;
  flex: 1;
  max-width: 420px;
}
.search-box input {
  border: 0;
  outline: 0;
  padding: 10px;
  width: 100%;
  font-size: 12px;
}
.toolbar select {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 0 11px;
  color: #6c7a8e;
  font-size: 11px;
}
.pagination {
  border-top: 1px solid var(--line);
  padding: 17px 8px 4px;
  color: #8c98aa;
  font-size: 11px;
}
.pagination span {
  float: right;
  color: #486cc0;
}
.empty-panel {
  text-align: center;
  padding: 85px 20px;
  border: 1px dashed #cbd5e4;
  background: #fff;
  border-radius: 14px;
}
.empty-icon {
  font-size: 36px;
  color: #7557db;
}
.empty-panel h2 {
  font-size: 18px;
  margin: 15px 0 6px;
}
.empty-panel p {
  color: #8c98a9;
  max-width: 440px;
  margin: 0 auto 22px;
  line-height: 1.6;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #15233b66;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 10;
}
.modal-backdrop.open {
  display: flex;
}
.modal {
  width: 100%;
  max-width: 470px;
  background: #fff;
  border-radius: 15px;
  padding: 28px;
  position: relative;
  display: none;
  box-shadow: 0 24px 70px #17223833;
}
.modal.active {
  display: block;
}
.modal-close {
  position: absolute;
  right: 17px;
  top: 15px;
  border: 0;
  background: transparent;
  font-size: 23px;
  color: #8995a5;
}
.modal h2 {
  margin: 8px 0 6px;
}
.modal p {
  color: #8491a4;
  font-size: 12px;
  line-height: 1.5;
}
.modal label {
  display: block;
  font-size: 11px;
  color: #627086;
  font-weight: 700;
  margin-top: 16px;
}
.modal input,
.modal select {
  display: block;
  width: 100%;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px;
  outline: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 25px;
}
.upload-box {
  border: 1px dashed #aebbd0;
  border-radius: 10px;
  padding: 28px;
  text-align: center;
  color: #7e8ba0;
  display: grid;
  gap: 7px;
}
.upload-box:first-letter {
  font-size: 28px;
  color: var(--blue);
}
.upload-box b {
  color: var(--ink);
  font-size: 12px;
}
.upload-box span {
  font-size: 10px;
}
.upload-box input {
  border: 0 !important;
}
.toast {
  position: fixed;
  right: 25px;
  bottom: 25px;
  background: #10213f;
  color: #fff;
  padding: 12px 17px;
  border-radius: 8px;
  font-size: 12px;
  opacity: 0;
  transform: translateY(12px);
  transition: 0.25s;
  z-index: 20;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
.referee-main {
  background: #f7f9fc;
}
.referee-page {
  max-width: 980px;
  margin: auto;
  padding: 34px 28px 60px;
}
.referee-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
}
.referee-hero h1 {
  margin: 8px 0 5px;
  font-size: 27px;
}
.referee-hero p {
  margin: 0;
  color: #7f8ca1;
}
.referee-hero p span {
  color: #bac3d0;
  padding: 0 6px;
}
.live-pill {
  background: #fff0f1;
  color: #d9535d;
  border-radius: 5px;
  padding: 7px 10px;
  font-size: 10px;
  font-weight: 800;
}
.live-pill i {
  width: 6px;
  height: 6px;
  display: inline-block;
  background: #df5a64;
  border-radius: 50%;
  margin-right: 4px;
}
.score-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 25px;
  box-shadow: var(--shadow);
}
.score-meta {
  display: flex;
  justify-content: space-between;
  color: #9ca7b7;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.7px;
}
.players {
  display: grid;
  grid-template-columns: 1fr 180px 1fr;
  align-items: center;
  gap: 10px;
  padding: 26px 0 24px;
}
.player {
  text-align: center;
}
.player-avatar {
  width: 48px;
  height: 48px;
  margin: 0 auto 9px;
  font-size: 14px;
}
.player-avatar.alt {
  background: #f0eaff;
  color: #7859d8;
}
.player strong {
  display: block;
  font-size: 15px;
  line-height: 1.4;
}
.serve {
  display: inline-block;
  color: #149c72;
  font-size: 10px;
  background: #e9fbf4;
  border-radius: 4px;
  padding: 4px 7px;
  margin-top: 7px;
  font-weight: 700;
}
.match-score {
  text-align: center;
}
.set-scores {
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: center;
}
.set-scores b {
  font-size: 28px;
}
.set-scores em {
  font-style: normal;
  color: #c9d1dd;
}
.match-score small {
  color: #98a4b4;
  font-size: 10px;
  display: block;
  margin-top: 6px;
}
.score-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  background: #f7f9fc;
  border-radius: 10px;
  padding: 18px;
}
.score-controls > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.score-controls span {
  font-size: 9px;
  color: #94a0b1;
  font-weight: 800;
  letter-spacing: 0.7px;
  margin-right: 2px;
}
.score-controls strong {
  font-size: 30px;
  min-width: 30px;
  text-align: center;
}
.score-btn {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  border: 1px solid #dce3ed;
  background: #fff;
  color: #6f7d90;
  font-size: 20px;
}
.score-btn.plus {
  background: #eaf1ff;
  color: var(--blue);
  border-color: #d6e3ff;
}
.score-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 18px;
}
.referee-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}
.set-row,
.rule {
  display: flex;
  align-items: center;
  border-top: 1px solid #f0f2f6;
  padding: 13px 0;
}
.set-row span {
  font-size: 9px;
  color: #9ca6b5;
  font-weight: 800;
  margin-right: 22px;
}
.set-row b {
  font-size: 14px;
}
.set-row i {
  font-style: normal;
  color: #9aa5b6;
  font-size: 10px;
  margin-left: auto;
}
.set-row.current b {
  color: var(--blue);
}
.tag {
  font-size: 9px;
  font-weight: 800;
  padding: 4px 7px;
  border-radius: 4px;
}
.tag.green {
  background: #e9faf3;
  color: #129a71;
}
.rule {
  justify-content: space-between;
  font-size: 11px;
  color: #8b97a8;
}
.rule b {
  color: var(--ink);
}
.ref-note {
  background: #f5f7fc;
  color: #748196;
  border-radius: 8px;
  padding: 11px;
  font-size: 10px;
  line-height: 1.5;
  margin-top: 10px;
}
::selection {
  background: #cdddff;
  color: #10213f;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #93b4ff;
  outline-offset: 2px;
}
.toast.error {
  background: #b4232c;
}
.import-result {
  min-height: 18px;
  margin-top: 12px;
  color: #305fae;
  font-size: 12px;
  font-weight: 600;
}
.athlete-table.no-results:after {
  content: "Không tìm thấy vận động viên phù hợp.";
  display: block;
  text-align: center;
  padding: 40px;
  color: #7b8798;
}
.athlete-table.no-results .table-row {
  display: none !important;
}
@media (max-width: 1050px) {
  .sidebar {
    width: 220px;
  }
  .page-content {
    padding-left: 25px;
    padding-right: 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .table-head,
  .table-row {
    grid-template-columns: 2fr 0.6fr 1fr 1.3fr 1fr 20px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .progress-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .progress-panel .panel-head {
    grid-column: 1/-1;
  }
  .progress-ring {
    grid-row: 2/4;
  }
  .progress-legend {
    border-top: 0;
  }
}
@media (max-width: 720px) {
  .sidebar {
    position: fixed;
    left: -250px;
    top: 0;
    bottom: 0;
    z-index: 5;
    transition: 0.25s;
    box-shadow: 10px 0 30px #192b4b22;
  }
  .sidebar.open {
    left: 0;
  }
  .mobile-menu {
    display: block;
  }
  .topbar {
    height: 64px;
    padding: 0 16px;
  }
  .breadcrumbs {
    font-size: 11px;
  }
  .top-actions {
    gap: 10px;
  }
  .user-menu > div:not(.avatar),
  .user-menu > span,
  .icon-button {
    display: none;
  }
  .user-menu {
    border: 0;
    padding: 0;
  }
  .page-content {
    padding: 25px 15px 40px;
  }
  .page-title-row {
    align-items: flex-start;
    gap: 15px;
    flex-direction: column;
    margin-bottom: 22px;
  }
  .page-title-row h1 {
    font-size: 24px;
  }
  .page-title-row > .btn,
  .title-actions {
    width: 100%;
  }
  .title-actions .btn {
    flex: 1;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .metric-card {
    padding: 14px;
  }
  .metric-card > strong {
    font-size: 23px;
    margin-top: 12px;
  }
  .metric-label {
    font-size: 11px;
  }
  .metric-delta {
    font-size: 9px;
  }
  .panel {
    padding: 16px;
  }
  .match-row {
    grid-template-columns: 55px 1fr;
    gap: 9px;
  }
  .match-score-col {
    text-align: left;
    grid-column: 2;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .match-score-col strong {
    margin: 0;
  }
  .table-head {
    display: none;
  }
  .table-row {
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 13px 0;
  }
  .table-row > span:nth-child(2),
  .table-row > span:nth-child(3),
  .table-row > span:nth-child(4) {
    display: none;
  }
  .athlete-status {
    justify-self: end;
  }
  .row-menu {
    grid-column: 2;
    grid-row: 1;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .toolbar select {
    height: 37px;
    flex: 1;
  }
  .toolbar .btn {
    width: 100%;
  }
  .progress-panel {
    display: block;
  }
  .referee-page {
    padding: 24px 14px 40px;
  }
  .referee-hero {
    align-items: flex-start;
    gap: 15px;
    flex-direction: column;
  }
  .referee-hero h1 {
    font-size: 22px;
  }
  .score-card {
    padding: 16px;
  }
  .score-meta {
    font-size: 8px;
  }
  .players {
    grid-template-columns: 1fr 110px 1fr;
    gap: 4px;
    padding: 24px 0;
  }
  .player strong {
    font-size: 12px;
  }
  .set-scores {
    gap: 5px;
  }
  .set-scores b {
    font-size: 22px;
  }
  .score-controls {
    padding: 12px 8px;
    gap: 6px;
  }
  .score-controls > div {
    gap: 7px;
  }
  .score-controls span {
    font-size: 8px;
  }
  .score-btn {
    width: 34px;
    height: 34px;
  }
  .score-controls strong {
    font-size: 25px;
  }
  .score-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .score-actions .btn:last-child {
    grid-column: 1/-1;
  }
  .referee-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .modal {
    padding: 23px;
  }
  .top-actions {
    margin-left: auto;
  }
}
.set-scores b {
  min-width: 28px;
  text-align: center;
}
.referee-main .mobile-menu {
  display: none;
}
@media (max-width: 720px) {
  .set-scores b {
    min-width: 23px;
  }
}
.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #f2f6fc;
}
.auth-card {
  width: min(430px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 34px;
  box-shadow: 0 18px 50px rgba(28, 48, 88, 0.12);
}
.auth-card .brand {
  padding: 0 0 28px;
}
.auth-card h1 {
  font-size: 26px;
  margin: 0 0 8px;
}
.auth-card > p {
  color: #768398;
  line-height: 1.5;
  margin: 0 0 22px;
}
.auth-card form {
  display: grid;
  gap: 16px;
}
.auth-card label {
  font-size: 12px;
  font-weight: 700;
  color: #526178;
}
.auth-card input {
  width: 100%;
  display: block;
  margin-top: 7px;
  border: 1px solid #dce3ed;
  border-radius: 8px;
  padding: 12px;
  min-height: 44px;
}
.auth-card form .btn {
  margin-top: 4px;
  min-height: 44px;
}
.auth-error {
  background: #fff0f1;
  color: #a8242d;
  border-radius: 8px;
  padding: 11px 12px;
  margin-bottom: 17px;
  font-size: 12px;
}
.auth-link {
  display: block;
  text-align: center;
  margin-top: 20px;
  color: #456fc2;
  font-size: 12px;
  text-decoration: none;
}
.auth-button {
  display: block;
  text-align: center;
  text-decoration: none;
}
.tournament-picker {
  text-decoration: none;
  color: var(--ink);
  width: 100%;
}
.tournaments-page .page-title-row {
  margin-bottom: 22px;
}
.tournaments-page .page-title-row h1 {
  margin-top: 0;
}
.tournament-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.tournament-toolbar select {
  height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 0 12px;
  color: #536176;
}
.result-count {
  margin-left: auto;
  color: #7c889a;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.tournament-list {
  padding: 0;
  overflow: hidden;
}
.tournament-list-head,
.tournament-row {
  display: grid;
  grid-template-columns: minmax(310px, 2.1fr) minmax(145px, 0.8fr) minmax(
      210px,
      1.1fr
    ) minmax(125px, 0.72fr) 118px;
  gap: 20px;
  align-items: center;
}
.tournament-list-head {
  padding: 13px 20px;
  background: #fafbfe;
  color: #8d99aa;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.65px;
}
.tournament-row {
  padding: 19px 20px;
  border-top: 1px solid #edf0f5;
  transition: background-color 0.18s ease;
}
.tournament-row:hover {
  background: #fbfcff;
}
.tournament-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.date-tile {
  width: 54px;
  height: 57px;
  flex: 0 0 54px;
  border-radius: 10px;
  background: #edf3ff;
  color: #2459bd;
  display: grid;
  place-items: center;
  align-content: center;
}
.date-tile b {
  font-size: 21px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.date-tile span {
  font-size: 8px;
  font-weight: 800;
  margin-top: 5px;
  letter-spacing: 0.35px;
}
.tournament-copy {
  min-width: 0;
}
.tournament-name-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.tournament-name-line h2 {
  font-size: 15px;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.selected-mark {
  background: #e8f8f1;
  color: #117b5d;
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}
.tournament-copy p {
  color: #68768b;
  margin: 5px 0 3px;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tournament-copy small {
  color: #99a3b1;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.tournament-scale {
  display: flex;
  align-items: baseline;
  gap: 5px;
  white-space: nowrap;
}
.tournament-scale b {
  font-size: 16px;
  color: #24334b;
  font-variant-numeric: tabular-nums;
}
.tournament-scale span {
  font-size: 10px;
  color: #8c97a7;
}
.tournament-scale i {
  height: 20px;
  width: 1px;
  background: #dfe5ee;
  margin: 0 5px;
}
.tournament-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #7b8798;
  font-size: 10px;
}
.tournament-progress b {
  color: #34445d;
  font-variant-numeric: tabular-nums;
}
.progress-track {
  height: 6px;
  background: #edf1f7;
  border-radius: 999px;
  margin-top: 8px;
  overflow: hidden;
}
.progress-track i {
  display: block;
  height: 100%;
  background: #3267db;
  border-radius: inherit;
}
.tournament-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.tournament-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.tournament-status.running {
  background: #fff0f1;
  color: #c8444e;
}
.tournament-status.registration {
  background: #eaf8f2;
  color: #137d5e;
}
.tournament-status.draft {
  background: #f0f3f7;
  color: #657287;
}
.tournament-status.locked {
  background: #fff4df;
  color: #9b6b16;
}
.tournament-status.completed {
  background: #eaf1ff;
  color: #285dbb;
}
.tournament-status.cancelled {
  background: #f4f4f5;
  color: #74777c;
}
.open-tournament {
  text-decoration: none;
  text-align: center;
  padding-inline: 10px;
}
.tournament-no-results,
.tournament-empty {
  text-align: center;
  padding: 64px 20px;
}
.tournament-no-results h2,
.tournament-empty h2 {
  font-size: 17px;
  margin: 0 0 7px;
}
.tournament-no-results p,
.tournament-empty p {
  color: #7b8798;
  margin: 0 0 20px;
}
.empty-court {
  width: 74px;
  height: 50px;
  border: 2px solid #b9caeb;
  border-radius: 9px;
  margin: 0 auto 18px;
  position: relative;
}
.empty-court:before,
.empty-court:after,
.empty-court i {
  content: "";
  position: absolute;
  background: #b9caeb;
}
.empty-court:before {
  width: 2px;
  top: 0;
  bottom: 0;
  left: 50%;
}
.empty-court:after {
  height: 2px;
  left: 0;
  right: 0;
  top: 50%;
}
.empty-court i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3267db;
  left: 13px;
  top: 10px;
}
@media (max-width: 1100px) {
  .tournament-list-head {
    display: none;
  }
  .tournament-row {
    grid-template-columns: minmax(280px, 1.7fr) 1fr auto;
  }
  .tournament-scale {
    display: none;
  }
  .tournament-status {
    grid-column: 3;
    grid-row: 1;
  }
  .tournament-progress {
    grid-column: 2;
    grid-row: 1;
  }
  .open-tournament {
    grid-column: 3;
    grid-row: 2;
  }
  .tournament-main {
    grid-row: 1/3;
  }
}
@media (max-width: 720px) {
  .tournament-toolbar {
    align-items: stretch;
    flex-wrap: wrap;
  }
  .tournament-toolbar .search-box {
    max-width: none;
    flex-basis: 100%;
    height: 44px;
  }
  .tournament-toolbar select {
    flex: 1;
    height: 44px;
  }
  .result-count {
    align-self: center;
  }
  .tournament-list {
    background: transparent;
    border: 0;
    box-shadow: none;
    display: grid;
    gap: 12px;
    overflow: visible;
  }
  .tournament-row {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px;
    grid-template-columns: 1fr auto;
    gap: 15px;
  }
  .tournament-main {
    grid-column: 1/-1;
    grid-row: auto;
  }
  .tournament-progress {
    grid-column: 1/-1;
    grid-row: auto;
  }
  .tournament-status {
    grid-column: 1;
    grid-row: auto;
  }
  .open-tournament {
    grid-column: 2;
    grid-row: auto;
    min-height: 42px;
    display: grid;
    place-items: center;
  }
  .date-tile {
    width: 48px;
    height: 52px;
    flex-basis: 48px;
  }
  .tournament-name-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .tournament-name-line h2 {
    white-space: normal;
  }
  .selected-mark {
    padding: 2px 6px;
  }
}
