@font-face {
  font-family: "Inter";
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  src: url("./fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0300-0301, U+0303, U+0308-0309, U+0323, U+0329, U+1D00-1DBF, U+1E00-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  src: url("./fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow Condensed";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("./fonts/barlow-condensed-latin-ext-700-normal.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0300-0301, U+0303, U+0308-0309, U+0323, U+0329, U+1D00-1DBF, U+1E00-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Barlow Condensed";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("./fonts/barlow-condensed-latin-700-normal.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow Condensed";
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url("./fonts/barlow-condensed-latin-ext-800-normal.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0300-0301, U+0303, U+0308-0309, U+0323, U+0329, U+1D00-1DBF, U+1E00-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Barlow Condensed";
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url("./fonts/barlow-condensed-latin-800-normal.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow Condensed";
  font-weight: 800;
  font-style: italic;
  font-display: swap;
  src: url("./fonts/barlow-condensed-latin-ext-800-italic.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0300-0301, U+0303, U+0308-0309, U+0323, U+0329, U+1D00-1DBF, U+1E00-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Barlow Condensed";
  font-weight: 800;
  font-style: italic;
  font-display: swap;
  src: url("./fonts/barlow-condensed-latin-800-italic.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
:root {
  color-scheme: light;
  --bg: #f4f6fa;
  --paper: #fff;
  --ink: #172b45;
  --muted: #5d6a7a;
  --line: #dfe5ed;
  --school-navy: #06172c;
  --navy-raised: #0b294a;
  --school-blue: #31599d;
  --school-red: #df0024;
  --accent: #b60829;
  --soft-red: #fff0f3;
  --green: #198360;
  --side: 222px;
  --heading: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 300px;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  background: none;
  border: 0;
  color: inherit;
}
input,
select {
  color: var(--ink);
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 3px solid #517bbd;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--heading);
  font-weight: 700;
}
b,
strong {
  font-weight: 650;
}
svg {
  flex-shrink: 0;
  vertical-align: middle;
}
abbr[title] {
  text-decoration: none;
}
button,
input,
select,
a {
  transition:
    background-color 0.16s,
    color 0.16s,
    border-color 0.16s,
    box-shadow 0.16s;
}
select {
  appearance: none;
}
button:disabled:hover {
  transform: none;
}
.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;
}
.skip-link {
  position: fixed;
  left: 1rem;
  top: -100px;
  background: white;
  z-index: 100;
  padding: 12px;
}
.skip-link:focus {
  top: 8px;
}
.app-shell {
  min-height: 100dvh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--side);
  background: var(--school-navy);
  color: #fafafa;
  display: flex;
  flex-direction: column;
  z-index: 12;
  overflow: hidden;
  border-right: 1px solid #142e4b;
}
.side-brand {
  padding: 26px 22px 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  flex-shrink: 1;
  gap: 9px;
  color: white;
}
.cup-symbol {
  width: 50px;
  height: auto;
  flex: none;
  display: block;
}
.brand-type {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-transform: uppercase;
}
.brand-type strong {
  font: italic 800 1.76rem/.89 var(--heading);
  letter-spacing: -.03em;
}
.brand-type b {
  color: #ff526a;
  font: 800 1.13rem/.98 var(--heading);
  letter-spacing: 0.055em;
  margin-top: 2px;
}
.brand-type small {
  color: #ffe5a2;
  font: 700 .6rem/1.2 Inter,sans-serif;
  letter-spacing: 0.12em;
  margin-top: 4px;
}
.brand-on-light {
  color: var(--school-navy);
}
.brand-on-light .brand-type b {
  color: #ba0733;
}
.brand-on-light .brand-type small {
  color: #644317;
}
.school-link {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  color: var(--school-navy);
  font-size: 0.8rem;
  font-weight: 625;
  white-space: nowrap;
}
.school-link:hover,
.download-mark:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.school-sign {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 51px;
  height: 34px;
  background: var(--school-navy);
  border-radius: 5px;
}
.school-sign img {
  display: block;
  width: 45px;
  height: auto;
}
.sidebar nav {
  padding: 10px 14px 14px;
  z-index: 1;
}
.nav-label {
  font-size: 0.68rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 1.7px;
  color: #9baec5;
  margin: 0 14px 14px;
}
.nav-item {
  display: flex;
  gap: 13px;
  align-items: center;
  position: relative;
  min-height: 44px;
  border-radius: 7px;
  margin: 4px 0;
  padding: 10px 14px;
  color: #d2dfed;
  font-size: 0.875rem;
  font-weight: 510;
}
.nav-item svg {
  stroke-width: 1.65;
  color: #a8bed7;
}
.nav-item:hover {
  color: white;
  background: var(--navy-raised);
}
.nav-item.current {
  background: #c8002a;
  color: #fff;
  font-weight: 650;
}
.nav-item.current svg {
  stroke-width: 2;
  color: #fff;
}
.nav-item.current i {
  width: 6px;
  height: 6px;
  display: block;
  background: #ffb9c6;
  border-radius: 50%;
  margin-left: auto;
}
.nav-break {
  height: 1px;
  background: #263d58;
  margin: 25px 10px 24px;
}
.sidebar-bottom {
  margin-top: auto;
  position: relative;
}
.mode {
  display: flex;
  align-items: center;
  gap: 11px;
  position: relative;
  margin: 0 18px;
  padding: 20px 4px 22px;
  border-top: 1px solid #253b56;
  background: var(--school-navy);
}
.mode-icon {
  display: grid;
  place-items: center;
  background: #142f50;
  border: 1px solid #304b6c;
  border-radius: 9px;
  color: #e6eef9;
  width: 36px;
  height: 36px;
}
.mode strong,
.mode small {
  display: block;
}
.mode strong {
  font-size: 0.835rem;
  color: #efefef;
  font-weight: 580;
}
.mode small {
  font-size: 0.72rem;
  color: #aec0d4;
  margin-top: 5px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.mode small i {
  width: 5px;
  height: 5px;
  background: #56ba91;
  border-radius: 50%;
}
.pitch-art {
  position: absolute;
  pointer-events: none;
  height: 146px;
  width: 250px;
  border: 1px solid #ffffff0e;
  bottom: 125px;
  left: -63px;
  transform: rotate(-25deg) skew(1deg);
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    transparent 49.7%,
    #ffffff0e 49.8%,
    #ffffff0e 50.1%,
    transparent 50.2%
  );
}
.pitch-art::before,
.pitch-art::after,
.pitch-art i,
.pitch-art b,
.pitch-art em {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid #ffffff0e;
}
.pitch-art::before {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  left: calc(50% - 24px);
}
.pitch-art::after {
  width: 32px;
  height: 76px;
  right: 0;
  border-right: none;
  border-radius: 50% 0 0 50%;
}
.pitch-art i {
  width: 32px;
  height: 76px;
  left: 0;
  border-left: none;
  border-radius: 0 50% 50% 0;
}
.pitch-art b {
  width: 13px;
  height: 38px;
  right: 0;
  border-right: 0;
}
.pitch-art em {
  width: 13px;
  height: 38px;
  left: 0;
  border-left: 0;
}
.main-column {
  margin-left: var(--side);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.topbar {
  background: white;
  border-bottom: 1px solid var(--line);
  height: 64px;
  min-height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 clamp(24px, 2.45vw, 42px);
}
.top-left,
.top-actions,
.breadcrumbs {
  display: flex;
  align-items: center;
}
.breadcrumbs {
  gap: 11px;
  font-size: 0.83rem;
  color: #757b83;
  font-weight: 450;
}
.breadcrumbs > svg {
  color: #a8adb3;
}
.breadcrumbs b {
  font-weight: 590;
  color: #263b55;
}
.top-actions {
  gap: 17px;
}
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #cfe7d9;
  color: #187546;
  background: #edf9f1;
  border-radius: 100px;
  font-size: 0.77rem;
  font-weight: 620;
  padding: 5px 11px;
  line-height: 1.25;
}
.live-badge.offline {
  color: #8b551d;
  background: #fff7e7;
  border-color: #f3ddbd;
}
.top-divider {
  height: 22px;
  width: 1px;
  background: var(--line);
}
.fullscreen-btn {
  display: grid;
  place-items: center;
  color: #697078;
  width: 27px;
  height: 29px;
  border-radius: 5px;
}
.fullscreen-btn:hover,
.icon-button:hover {
  background: #eceef0;
}
.mobile-menu.icon-button,
.mobile-close,
.mobile-brand,
.nav-backdrop {
  display: none;
}
.main-area {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 25px clamp(24px, 2.45vw, 42px) 25px;
  flex: 1;
  outline: none;
}
.footer {
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  padding: 14px clamp(24px, 2.45vw, 42px) 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #697079;
  font-size: 0.765rem;
  gap: 10px;
}
.footer-signature {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.footer-signature .school-link {
  display: none;
}
.logo-downloads {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.download-mark {
  font-size: 0.77rem;
  font-weight: 580;
  color: var(--accent);
}
.creator-credit {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: .815rem;
  line-height: 1.5;
}
.creator-credit img {
  display: block;
  flex: none;
  width: 5.25rem;
  height: auto;
  mix-blend-mode: multiply;
}
.creator-credit b {
  display: block;
  font-size: .95rem;
  font-weight: 700;
  color: var(--ink);
}
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 13px;
  color: #f7f9fc;
  background: #0b203b;
}
.hero-title {
  margin: 0;
  line-height: 1;
}
.hero-title picture,
.hero-title img {
  display: block;
  width: 100%;
  height: auto;
}
.hero-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 20px;
  padding: 10px clamp(14px, 2vw, 25px);
  background: #0b203b;
  border-top: 1px solid #36516b;
}
.hero-competition {
  margin: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-weight: 700;
}
.season-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.35;
}
.season-badge svg {
  flex: none;
  color: #ffd078;
}
.hero-meta,
.hero-meta span {
  display: flex;
  align-items: center;
}
.hero-meta {
  flex-wrap: wrap;
  margin-left: auto;
  gap: 8px 20px;
  color: #e2ebf6;
  font-size: .875rem;
  line-height: 1.35;
}
.hero-meta span {
  gap: 8px;
}
.hero-meta svg {
  flex: none;
  color: #c5d7e9;
}
.hero-dot {
  flex: none;
  width: 7px;
  height: 7px;
  background: #ff405b;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #ff405b25;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0 23px;
}
.stat {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  display: flex;
  gap: 15px;
  align-items: center;
  min-height: 87px;
  padding: 14px 18px;
  box-shadow: 0 2px 4px #12151a02;
}
.stat-icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 43px;
  height: 43px;
  border-radius: 11px;
}
.stat-icon svg {
  stroke-width: 1.8;
}
.stat-icon.red {
  background: var(--soft-red);
  color: #c60029;
}
.stat-icon.navy {
  background: #eaf1fa;
  color: var(--school-blue);
}
.stat > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.stat b {
  font: 700 2.18rem/0.93 var(--heading);
  letter-spacing: -0.6px;
  color: #132e50;
  font-variant-numeric: tabular-nums;
}
.stat > div > span {
  font-size: 0.8rem;
  color: #686e76;
  font-weight: 490;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.31fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 2px 4px #10234305;
  overflow: hidden;
  min-width: 0;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 19px 21px 16px;
  min-height: 61px;
}
.panel-heading h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font: 700 1.62rem/1 var(--heading);
  letter-spacing: -0.38px;
}
.title-mark {
  display: inline-block;
  width: 5px;
  height: 18px;
  background: var(--school-red);
  border-radius: 1px;
  transform: skewX(-10deg);
  flex-shrink: 0;
}
.text-link,
.text-action {
  color: var(--accent);
  font-size: 0.775rem;
  font-weight: 650;
  white-space: nowrap;
}
.text-link:hover,
.text-action:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.text-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.segment-line {
  padding: 1px 21px 14px;
}
.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  background: #f0f1f3;
  border: 1px solid #eceef0;
  padding: 3px;
  border-radius: 7px;
}
.segmented button {
  font-size: 0.76rem;
  line-height: 1.25;
  color: #626970;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 6px 12px;
  font-weight: 550;
}
.segmented button.selected {
  background: #fff;
  color: #22262b;
  border-color: #dddee1;
  box-shadow: 0 1px 3px #21252a0e;
}
.segmented button:hover:not(.selected) {
  background: #e7e8eb;
  color: #293f58;
}
.match-row {
  display: block;
  width: 100%;
  padding: 13px 21px 15px;
  border-top: 1px solid #edeef0;
  text-align: left;
}
.match-row:hover {
  background: #fafbfc;
}
.match-meta,
.match-line,
.team-label,
.score-wrap,
.stage-tag,
.round-tag,
.match-status {
  display: flex;
  align-items: center;
}
.match-meta {
  gap: 8px;
  margin-bottom: 11px;
}
.stage-tag {
  width: max-content;
  background: #f3f4f5;
  color: #565d65;
  border: 1px solid #e8e9eb;
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 0.63rem;
  letter-spacing: 0.7px;
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
}
.round-tag {
  color: #777d85;
  font-size: 0.72rem;
}
.match-status {
  margin-left: auto;
  gap: 5px;
  color: #606974;
  font-weight: 470;
  font-size: 0.69rem;
}
.match-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8796aa;
}
.match-status.done {
  color: #68736e;
}
.match-status.done i {
  background: #47956e;
}
.match-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
}
.team-label {
  gap: 10px;
  min-width: 0;
}
.team-label.flip {
  flex-direction: row-reverse;
  justify-self: end;
  text-align: right;
}
.flag {
  width: 30px;
  height: 22px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 0 0 1px #10162014;
}
.team-label .team-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.team-label strong {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.team-label small {
  font-size: 0.76rem;
  color: #6a7079;
  line-height: 1.2;
}
.team-label.compact {
  gap: 9px;
}
.team-label.compact .flag {
  width: 24px;
  height: 17px;
  border-radius: 3px;
}
.team-label.compact strong {
  font-size: 0.865rem;
}
.team-label.compact small {
  font-size: 0.72rem;
}
.score {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  min-width: 64px;
  background: #152e4d;
  color: #fff;
  border: 1px solid #1b395b;
  border-radius: 6px;
  padding: 2px 11px 4px;
  font: 700 1.55rem/1.1 var(--heading);
  font-variant-numeric: tabular-nums;
}
.score i {
  font-style: normal;
  font-size: 1.12rem;
  color: #a6b8cf;
  align-self: center;
}
.score.pending {
  background: #f1f3f6;
  border-color: #e2e7ed;
  font:
    600 0.76rem Inter,
    sans-serif;
  letter-spacing: 0.5px;
  min-width: 48px;
  padding: 7px 9px;
  color: #697078;
}
.score-wrap {
  flex-direction: column;
  gap: 3px;
}
.score-wrap small {
  font-size: 0.7rem;
  color: var(--muted);
}
.placeholder-team {
  font-size: 0.82rem;
  color: var(--muted);
}
.right {
  text-align: right;
}
.leader-preview {
  margin-top: 18px;
}
.leader-preview .panel-heading {
  padding-bottom: 15px;
}
.leader-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #e9ebed;
}
.leader-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 17px 20px;
  min-width: 0;
}
.leader-item + .leader-item {
  border-left: 1px solid #e9ebed;
}
.leader-details {
  flex: 1;
  min-width: 0;
}
.leader-details strong {
  display: block;
  font-size: 0.86rem;
  line-height: 1.3;
}
.leader-details small {
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 5px;
}
.leader-details small i {
  font-style: normal;
  color: #aaa;
}
.leader-details .flag {
  width: 17px;
  height: 12px;
  border-radius: 2px;
}
.leader-goals {
  font: 700 1.3rem var(--heading);
  display: flex;
  align-items: center;
  gap: 4px;
}
.leader-goals svg {
  color: #90959d;
}
.medal-position {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 8px;
  background: #f1f3f5;
  color: #697078;
  font: 700 1.04rem var(--heading);
}
.medal-1 {
  color: #986416;
  background: #fff3d6;
}
.medal-2 {
  color: #6b788b;
  background: #eef1f5;
}
.medal-3 {
  color: #a56545;
  background: #fcf0e6;
}
.table-scroll {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
}
.standings,
.ranking-table,
.team-admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 0.845rem;
}
.standings th,
.ranking-table th,
.team-admin-table th {
  font-size: 0.715rem;
  font-weight: 600;
  color: #737a83;
  background: #f7f8f9;
  padding: 9px 6px;
  border-block: 1px solid #e9ebed;
  white-space: nowrap;
}
.standings td {
  padding: 11px 6px;
  color: #47505a;
  border-bottom: 1px solid #eceef0;
  font-variant-numeric: tabular-nums;
}
.standings .team-col {
  text-align: left;
}
.standings td.team-col {
  min-width: 90px;
  color: var(--ink);
}
.standings .place-col {
  width: 45px;
  padding-left: 15px;
}
.standings .points {
  padding-right: 18px;
  width: 47px;
  font-weight: 700;
  color: var(--ink);
}
.standings tbody tr:last-child td {
  border-bottom: 0;
}
.rank-num {
  font-size: 0.8rem;
  border-radius: 4px;
  color: #727780;
  display: inline-grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
}
.qualifies .rank-num {
  background: #e9f6ef;
  color: #23794d;
  font-weight: 650;
}
.standings .positive {
  color: #28875a;
}
.table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 12px 20px 14px;
}
.qualify-legend {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.7rem;
  color: #69746d;
  white-space: nowrap;
}
.qualify-legend i {
  background: #59aa7c;
  width: 7px;
  height: 7px;
  border-radius: 2px;
}
.select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 0;
}
.select-wrap select {
  font-size: 0.82rem;
  padding: 9px 32px 9px 12px;
  border: 1px solid #dce0e4;
  border-radius: 7px;
  background: white;
  width: 100%;
  cursor: pointer;
  min-height: 36px;
}
.select-wrap svg {
  position: absolute;
  right: 11px;
  color: #6e7680;
  pointer-events: none;
}
.compact-select select {
  font-size: 0.76rem;
  min-height: 30px;
  font-weight: 570;
  padding: 6px 26px 6px 10px;
}
.compact-select svg {
  right: 8px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 6px 0 22px;
}
.page-heading h1,
.connection-state h1 {
  font: 700 clamp(2.1rem, 3.5vw, 3rem)/1.08 var(--heading);
  letter-spacing: -0.7px;
}
.page-heading p,
.connection-state p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 6px;
}
.filter-toolbar {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  flex-wrap: wrap;
}
.panel > .panel-heading + .filter-toolbar {
  padding-top: 0;
}
.fixtures-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.fixtures-list .match-row:nth-child(odd) {
  border-right: 1px solid var(--line);
}
.table-stack {
  display: grid;
  gap: 18px;
}
.standings.full .place-col {
  width: 58px;
}
.standings.full td {
  padding-block: 13px;
}
.standings.full .team-col {
  min-width: 150px;
}
.standings.full .points {
  width: 70px;
}
.rules-note,
.info-strip {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: #5e666e;
  font-size: 0.83rem;
  line-height: 1.6;
}
.rules-note {
  margin-top: 22px;
  padding: 18px;
  background: #eef0f2;
  border-radius: 9px;
}
.rules-note strong {
  font-size: 0.92rem;
  color: #31353a;
}
.rules-note p {
  margin-top: 3px;
}
.rules-note svg {
  margin-top: 3px;
}
.search-field {
  display: flex;
  gap: 7px;
  align-items: center;
  border: 1px solid #dce0e4;
  border-radius: 7px;
  padding: 0 10px;
  color: #7d838a;
  max-width: 100%;
}
.search-field input {
  outline: none;
  border: 0;
  width: 194px;
  min-height: 34px;
  font-size: 0.8rem;
  max-width: 100%;
  background: transparent;
}
.search-field:focus-within {
  border-color: #c74361;
  box-shadow: 0 0 0 2px #df00241a;
}
.ranking-table th,
.ranking-table td {
  padding: 12px 14px;
  text-align: left;
}
.ranking-table td,
.team-admin-table td {
  border-bottom: 1px solid #eceef0;
}
.ranking-table tr:last-child td,
.team-admin-table tr:last-child td {
  border-bottom: 0;
}
.ranking-table th:first-child,
.ranking-table td:first-child {
  padding-left: 21px;
  width: 60px;
}
.ranking-table th:nth-last-child(-n + 2),
.ranking-table td:nth-last-child(-n + 2) {
  text-align: center;
}
.goals-number {
  display: inline-block;
  min-width: 26px;
  font: 700 1.25rem var(--heading);
}
.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 35px 20px 38px;
  text-align: center;
  gap: 8px;
}
.empty-icon,
.access-icon {
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--soft-red);
  width: 45px;
  height: 45px;
  border-radius: 12px;
  margin-bottom: 4px;
}
.empty strong {
  font-size: 0.96rem;
}
.empty p {
  max-width: 420px;
  font-size: 0.835rem;
  color: var(--muted);
  line-height: 1.6;
}
.soft-badge {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 5px 9px;
  background: #f0f2f4;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.76rem;
  color: #59626b;
}
.bracket-scroll {
  overflow: auto;
  max-height: 75vh;
  padding: 0 22px 24px;
  scrollbar-width: thin;
}
.bracket-grid {
  display: grid;
  gap: 30px;
  min-width: 100%;
  width: max-content;
}
.bracket-column {
  display: flex;
  flex-direction: column;
  max-width: 245px;
}
.bracket-column h3 {
  font: 700 1.2rem var(--heading);
  color: #515a61;
  text-align: center;
  padding-bottom: 12px;
}
.bracket-slots {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.bracket-slot {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  padding: 9px 0;
  min-height: 100px;
}
.bracket-game {
  position: relative;
  text-align: left;
  width: 100%;
  border: 1px solid #dce0e4;
  border-radius: 8px;
  background: white;
  z-index: 1;
  overflow: hidden;
}
.bracket-game:hover {
  border-color: #d34a6a;
  background: #fff7f9;
}
.bracket-game > small {
  display: block;
  background: #f4f5f6;
  padding: 5px 9px;
  font-size: 0.67rem;
  color: #757b83;
}
.bracket-team {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.76rem;
  min-height: 29px;
  padding: 3px 8px;
}
.bracket-team + .bracket-team {
  border-top: 1px solid #eeeff1;
}
.bracket-team > svg {
  color: #a8adb2;
}
.bracket-team .flag {
  width: 19px;
  height: 14px;
  border-radius: 2px;
}
.bracket-team strong {
  margin-left: auto;
}
.bracket-team.winner {
  color: #187346;
  background: #eff9f1;
}
.bracket-slot.top::after,
.bracket-slot.bottom::after {
  content: "";
  position: absolute;
  left: 100%;
  width: 15px;
  height: 50%;
  border-right: 1px solid #c9cdd3;
}
.bracket-slot.top::after {
  top: 50%;
  border-top: 1px solid #c9cdd3;
}
.bracket-slot.bottom::after {
  bottom: 50%;
  border-bottom: 1px solid #c9cdd3;
}
.bracket-column:not(:first-child) .bracket-slot::before {
  content: "";
  position: absolute;
  right: 100%;
  width: 15px;
  height: 1px;
  background: #c9cdd3;
}
.champion {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  margin-bottom: 18px;
  border: 1px solid #f0d3a7;
  background: #fff4d9;
  border-radius: 10px;
  color: #88521d;
}
.champion small {
  display: block;
  margin-bottom: 6px;
}

.primary-btn,
.secondary-btn,
.danger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  min-height: 38px;
  padding: 8px 14px;
  font-size: 0.83rem;
  line-height: 1.25;
  font-weight: 620;
  white-space: nowrap;
}
.primary-btn {
  background: var(--school-red);
  color: #fff;
  border-color: #c60025;
}
.primary-btn:hover:not(:disabled) {
  background: #b40025;
}
.secondary-btn {
  background: white;
  border-color: #d9dde2;
  color: #434951;
}
.secondary-btn:hover:not(:disabled) {
  background: #f4f5f6;
  border-color: #aeb5be;
}
.danger-btn {
  background: #b74038;
  color: white;
}
.danger-btn:hover {
  background: #9d3029;
}
.info-strip,
.inline-note {
  padding: 12px 15px;
  border-radius: 8px;
  background: #edf3fb;
  border: 1px solid #d3e1f2;
  color: #284971;
  margin-bottom: 16px;
}
.info-strip {
  align-items: center;
}
.inline-note {
  border-radius: 0;
  border-inline: 0;
  font-size: 0.8rem;
  margin: 0;
  background: #f3f6fb;
}
.admin-tabs {
  display: flex;
  gap: 5px;
  margin: 18px 0;
}
.admin-tabs button {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 0.85rem;
  font-weight: 550;
  padding: 9px 14px;
  color: #606872;
}
.admin-tabs button.active {
  background: var(--navy-raised);
  color: white;
}
.admin-tabs button:hover:not(.active) {
  background: #e9ebee;
}
.admin-match {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 21px;
  border-top: 1px solid var(--line);
}
.admin-match-info {
  display: flex;
  align-items: center;
  gap: 15px;
}
.admin-match-info > div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-match-info .flag {
  width: 22px;
  height: 16px;
  border-radius: 3px;
}
.admin-match-info .score {
  font-size: 1.12rem;
  min-width: 45px;
  padding: 3px 7px;
  gap: 5px;
}
.admin-match-info .score.pending {
  font: 600 0.72rem Inter;
}
.admin-match-info b {
  font-size: 0.88rem;
}
.team-admin-table td,
.team-admin-table th {
  padding: 10px 20px;
  text-align: left;
}
.row-actions,
.inline-actions,
.rule-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.row-actions {
  justify-content: flex-end;
}
.small-icon,
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 6px;
  color: #65707a;
}
.small-icon {
  border: 1px solid var(--line);
  background: white;
}
.small-icon:hover:not(:disabled) {
  background: #f4f5f7;
  color: var(--ink);
}
.config-list {
  margin: 0;
  padding: 0 21px;
}
.config-list > div {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.86rem;
  padding: 13px 0;
}
.config-list dt {
  color: #68717b;
}
.config-list dd {
  margin: 0;
  text-align: right;
  font-weight: 570;
}
.config-rules {
  background: #f9fafb;
  border-top: 1px solid var(--line);
  padding: 17px 21px;
}
.config-rules h3 {
  font-size: 1.3rem;
}
.config-rules ol {
  padding-left: 22px;
  line-height: 1.85;
  font-size: 0.83rem;
  margin: 8px 0 0;
}
.access-card {
  max-width: 570px;
  padding: 27px;
}
.access-icon {
  margin-bottom: 14px;
}
.access-card h2 {
  font-size: 1.8rem;
}
.access-card p {
  font-size: 0.92rem;
  color: #636d76;
  line-height: 1.65;
  margin: 10px 0 15px;
}
.access-card .form-stack {
  padding-top: 0;
}
.access-card .form-stack p {
  margin-bottom: 0;
}
.access-card .primary-btn {
  align-self: flex-start;
}
.connection-state {
  text-align: center;
  padding: 80px 12px;
}
.connection-state svg {
  color: var(--accent);
  margin-bottom: 15px;
}
.connection-state button {
  margin-top: 20px;
}
.modal {
  background: #fff;
  color: var(--ink);
  border: 1px solid #d7dade;
  border-radius: 14px;
  padding: 0;
  width: min(510px, calc(100% - 28px));
  max-height: 89dvh;
  margin: auto;
  box-shadow: 0 25px 110px #11151b3d;
  overflow: auto;
  overscroll-behavior: contain;
}
.modal::backdrop {
  background: #11151aac;
  backdrop-filter: blur(3px);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 0;
  background: white;
  z-index: 3;
  border-bottom: 1px solid var(--line);
  padding: 18px 22px 16px;
}
.modal-head h2 {
  font: 700 1.85rem/1.05 var(--heading);
  margin: 4px 0 0;
}
.overline {
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 680;
  letter-spacing: 1.15px;
  font-size: 0.68rem;
}
.dialog-content {
  padding: 20px 22px 22px;
}
.dialog-content > p {
  font-size: 0.9rem;
  line-height: 1.6;
}
.form-stack,
.field {
  display: flex;
  flex-direction: column;
}
.form-stack {
  gap: 16px;
}
.field {
  gap: 6px;
  min-width: 0;
}
.field label,
.score-box legend,
.rule-fieldset legend {
  font-size: 0.83rem;
  font-weight: 620;
  color: #3b4148;
}
.field input,
.field select,
.scorer-edit-row input,
.score-field input {
  width: 100%;
  border: 1px solid #d5d9de;
  background: #fff;
  border-radius: 6px;
  min-height: 39px;
  padding: 8px 10px;
  font-size: 0.9rem;
}
.field select {
  padding-right: 30px;
}
.control {
  width: 100%;
}
.field input:focus,
.scorer-edit-row input:focus,
.score-field input:focus {
  outline: 2px solid #df002424;
  outline-offset: 0;
  border-color: #cf4b6a;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
}
.danger-link {
  color: #ac3a36;
  margin-right: auto;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.rule-fieldset,
.score-box {
  padding: 0;
  border: 0;
  margin: 0;
  min-width: 0;
}
.rule-fieldset legend,
.score-box legend {
  padding: 0;
  margin-bottom: 4px;
}
.field-help {
  font-size: 0.77rem;
  color: #707982;
  line-height: 1.55;
}
.score-mode {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 550;
  color: var(--school-navy);
  margin-top: 12px;
  cursor: pointer;
}
.score-mode input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  flex: none;
}
.points-preview {
  display: flex;
  gap: 7px;
  align-items: baseline;
  flex-wrap: wrap;
  margin: 8px 0 0;
  color: #3d536c;
  font-size: 0.79rem;
}
.points-preview strong {
  color: #142e4b;
  font-variant-numeric: tabular-nums;
}
.score-field input[readonly] {
  background: #eef3f8;
  color: #244765;
}
.goal-credit {
  display: block;
  font-size: 0.75rem;
  color: #526579;
  margin: 3px 0;
}
.filter-toolbar .segmented {
  flex-wrap: wrap;
}
.rule-list {
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  margin: 9px 0;
}
.rule-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  min-height: 36px;
  font-size: 0.81rem;
}
.rule-item + .rule-item {
  border-top: 1px solid #eceef0;
}
.rule-item label,
.confirm-check {
  display: flex;
  align-items: center;
  gap: 9px;
}
.rule-item input,
.confirm-check input {
  accent-color: var(--school-red);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.rule-controls .small-icon {
  width: 25px;
  height: 25px;
}
.confirm-check,
.confirm-box {
  font-size: 0.8rem;
  line-height: 1.55;
  border: 1px solid #f1c8d1;
  background: #fff4f6;
  border-radius: 7px;
  padding: 11px;
  color: #853247;
}
.confirm-check {
  align-items: flex-start;
}
.confirm-check input {
  margin-top: 2px;
}
.confirm-box .inline-actions {
  margin-top: 10px;
}
.form-error {
  font-size: 0.83rem !important;
  color: #981c3b;
  background: #fff0f3;
  border: 1px solid #efcad2;
  border-radius: 7px;
  line-height: 1.5;
  padding: 10px;
  margin: 12px 0 0;
}
.goals-inputs,
.featured-match {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 15px;
  align-items: center;
}
.goals-inputs {
  margin-top: 5px;
  background: #f4f6fa;
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 8px;
}
.goals-inputs > b {
  color: #9ca1a6;
  margin-top: 28px;
}
.score-field {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
}
.score-field input {
  text-align: center;
  max-width: 86px;
  font-family: var(--heading);
  font-size: 1.7rem;
  font-weight: 700;
  padding: 4px 7px;
  appearance: textfield;
}
.score-field input::-webkit-inner-spin-button {
  appearance: none;
}
.score-field .team-label {
  align-self: center;
}
.minor-title {
  font: 700 1.35rem var(--heading);
  display: flex;
  align-items: center;
  gap: 7px;
}
.scorer-editor {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 11px;
}
.scorer-editor-head,
.scorer-editor-head b,
.detail-team > b {
  display: flex;
  align-items: center;
}
.scorer-editor-head {
  justify-content: space-between;
  gap: 10px;
}
.scorer-editor-head b,
.detail-team > b {
  gap: 8px;
  font-size: 0.85rem;
}
.scorer-editor-head .flag,
.detail-team .flag {
  width: 22px;
  height: 16px;
  border-radius: 3px;
}
.scorer-edit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 51px 29px;
  gap: 7px;
  margin-top: 9px;
  align-items: center;
}
.scorer-edit-row input {
  font-size: 0.82rem;
  min-height: 35px;
}
.scorer-edit-row .small-icon {
  width: 29px;
  height: 29px;
}
.featured-match {
  padding: 14px 0 24px;
}
.featured-match .score {
  font-size: 2rem;
}
.notice,
.detail-status {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #637067;
  background: #edf6f0;
  border-radius: 6px;
  font-size: 0.78rem;
  padding: 7px 10px;
  margin-bottom: 12px;
}
.detail-team {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}
.detail-team > b {
  padding: 8px 10px;
  background: #f5f6f8;
}
.detail-player {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.84rem;
  padding: 8px 10px;
  border-top: 1px solid #eef0f2;
}
.muted {
  color: var(--muted);
}
.detail-status {
  gap: 6px;
  margin: 15px 0 0;
}
.toast {
  position: fixed;
  z-index: 30;
  bottom: 21px;
  right: 22px;
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 12px 16px;
  background: var(--school-navy);
  color: #fff;
  border-radius: 9px;
  box-shadow: 0 5px 22px #14181d22;
  font-size: 0.83rem;
}
.toast svg {
  color: #88d3aa;
}
@media (min-width: 1550px) {
  :root {
    --side: 245px;
  }
  .topbar {
    height: 72px;
  }
  .side-brand {
    padding-left: 30px;
  }
  .nav-item {
    min-height: 48px;
  }
  .main-area {
    padding-top: 30px;
  }
  .stats {
    margin-block: 19px 25px;
  }
  .stat {
    min-height: 95px;
  }
  .match-row {
    padding-block: 15px 18px;
  }
  .panel-heading {
    padding: 22px 25px 18px;
  }
  .match-row,
  .segment-line {
    padding-inline: 25px;
  }
  .standings td {
    padding-block: 14px;
  }
}
@media (max-width: 1220px) {
  :root {
    --side: 200px;
  }
  .sidebar nav {
    padding-inline: 11px;
  }
  .side-brand {
    padding-left: 20px;
  }
  .nav-item {
    gap: 10px;
    padding-inline: 12px;
    font-size: 0.845rem;
  }
  .main-area {
    padding-inline: 22px;
  }
  .topbar {
    padding-inline: 22px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
    gap: 14px;
  }
  .panel-heading {
    padding-inline: 16px;
  }
  .panel-heading h2 {
    font-size: 1.45rem;
    gap: 8px;
  }
  .segment-line,
  .match-row {
    padding-inline: 16px;
  }
  .stat {
    gap: 10px;
    padding: 13px;
  }
  .stat-icon {
    width: 37px;
    height: 37px;
    border-radius: 9px;
  }
  .stats {
    gap: 10px;
  }
  .table-footer {
    padding-inline: 14px;
  }
  .leader-item {
    padding-inline: 13px;
    gap: 8px;
  }
  .compact-select select {
    padding-left: 8px;
  }
  .team-label.compact {
    gap: 7px;
  }
}
@media (max-width: 990px) and (min-width: 761px) {
  :root {
    --side: 184px;
  }
  .side-brand .cup-symbol {
    width: 44px;
  }
  .side-brand .brand {
    gap: 7px;
  }
  .side-brand .brand-type strong {
    font-size: 1.5rem;
  }
  .sidebar nav {
    padding: 10px 8px;
  }
  .nav-item {
    gap: 8px;
    padding-inline: 10px;
    font-size: 0.8rem;
  }
  .nav-item svg {
    width: 17px;
  }
  .main-area,
  .topbar {
    padding-inline: 16px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 10px;
  }
  .panel-heading {
    padding-inline: 12px;
    gap: 6px;
  }
  .panel-heading h2 {
    font-size: 1.31rem;
  }
  .text-link {
    font-size: 0.7rem;
  }
  .segment-line,
  .match-row {
    padding-inline: 12px;
  }
  .stats {
    gap: 8px;
  }
  .stat {
    gap: 8px;
    padding: 10px;
  }
  .stat-icon {
    width: 31px;
    height: 31px;
  }
  .stat-icon svg {
    width: 19px;
    height: 19px;
  }
  .stat > div > span {
    font-size: 0.72rem;
  }
  .table-footer {
    padding-inline: 10px;
  }
  .standings .place-col {
    padding-left: 6px;
    width: 29px;
  }
  .standings .points {
    padding-right: 8px;
    width: 33px;
  }
  .team-label .flag {
    width: 23px;
    height: 17px;
  }
  .team-label {
    gap: 6px;
  }
  .score {
    min-width: 50px;
    gap: 5px;
  }
  .leader-grid {
    grid-template-columns: 1fr;
  }
  .leader-item + .leader-item {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .fixtures-list {
    grid-template-columns: 1fr;
  }
  .fixtures-list .match-row:nth-child(odd) {
    border-right: 0;
  }
}
@media (max-width: 870px) and (min-width: 761px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .group-preview .panel-heading h2,
  .match-preview .panel-heading h2 {
    font-size: 1.6rem;
  }
  .group-preview .standings {
    font-size: 0.85rem;
  }
  .match-preview .match-row {
    padding-inline: 18px;
  }
}
@media (max-width: 760px) {
  :root {
    --side: 224px;
  }
  .sidebar {
    visibility: hidden;
    transform: translateX(-101%);
    transition: transform 0.2s ease;
    z-index: 22;
    box-shadow: 7px 0 25px #1112;
  }
  .sidebar.opened {
    visibility: visible;
    transform: translateX(0);
  }
  .side-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 23px 19px;
  }
  .mobile-close {
    display: grid;
    place-items: center;
    color: #b7bdc3;
    width: 29px;
    height: 29px;
  }
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 20;
    background: #10131888;
  }
  .main-column {
    margin: 0;
  }
  .topbar {
    height: 55px;
    min-height: 55px;
    padding: 0 16px;
  }
  .mobile-menu.icon-button {
    display: grid;
    width: 30px;
    height: 32px;
    color: #34383c;
    margin-right: 10px;
  }
  .breadcrumbs {
    display: none;
  }
  .mobile-brand {
    display: block;
  }
  .mobile-brand .brand {
    gap: 6px;
  }
  .mobile-brand .cup-symbol {
    width: 34px;
  }
  .mobile-brand .brand-type strong {
    font-size: 1.08rem;
  }
  .mobile-brand .brand-type b {
    font-size: 0.71rem;
  }
  .mobile-brand .brand-type small {
    font-size: 0.48rem;
    margin-top: 2px;
  }
  .footer-signature .school-link {
    display: inline-flex;
  }
  .footer-signature .school-sign {
    width: 39px;
    height: 27px;
  }
  .footer-signature .school-sign img {
    width: 35px;
  }
  .top-actions {
    gap: 10px;
  }
  .top-divider {
    height: 18px;
  }
  .live-badge {
    font-size: 0.71rem;
    padding: 4px 9px;
  }
  .main-area {
    padding: 16px 15px 18px;
  }
  .hero {
    border-radius: 10px;
  }
  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 11px 0 15px;
  }
  .stat {
    min-height: 69px;
    gap: 8px;
    padding: 9px;
  }
  .stat-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }
  .stat-icon svg {
    width: 17px;
    height: 17px;
  }
  .stat b {
    font-size: 1.7rem;
  }
  .stat > div > span {
    font-size: 0.68rem;
  }
  .dashboard-grid {
    gap: 12px;
    grid-template-columns: 1fr;
  }
  .panel-heading {
    padding: 16px 16px 13px;
    min-height: 53px;
  }
  .panel-heading h2 {
    font-size: 1.5rem;
  }
  .text-link {
    font-size: 0.75rem;
  }
  .group-preview .table-footer {
    padding: 13px 16px;
  }
  .leader-preview {
    margin-top: 12px;
  }
  .leader-grid {
    grid-template-columns: 1fr;
  }
  .leader-item {
    padding: 13px 16px;
  }
  .leader-item + .leader-item {
    border-left: 0;
    border-top: 1px solid #eceef0;
  }
  .segment-line {
    padding-bottom: 12px;
  }
  .match-row {
    padding: 12px 16px;
  }
  .footer {
    padding: 14px 16px 21px;
    font-size: 0.7rem;
  }
  .page-heading {
    margin: 3px 0 17px;
    gap: 12px;
  }
  .page-heading h1 {
    font-size: 2.1rem;
  }
  .page-heading p {
    font-size: 0.83rem;
  }
  .fixtures-list {
    grid-template-columns: 1fr;
  }
  .fixtures-list .match-row:nth-child(odd) {
    border-right: 0;
  }
  .filter-toolbar {
    padding: 13px 15px;
    gap: 9px;
  }
  .admin-match {
    padding: 12px 14px;
  }
  .table-stack {
    gap: 12px;
  }
  .standings.full {
    min-width: 520px;
  }
  .ranking-table {
    min-width: 465px;
  }
  .bracket-scroll {
    padding: 0 15px 16px;
  }
  .wrap {
    flex-wrap: wrap;
  }
  .access-card {
    padding: 21px;
  }
  .info-strip {
    font-size: 0.78rem;
  }
}
@media (max-width: 520px) {
  .main-area {
    padding: 12px;
  }
  .hero-info {
    padding: 10px 14px 12px;
    gap: 7px 14px;
  }
  .hero-competition {
    flex-basis: 100%;
  }
  .hero-meta {
    margin-left: 0;
    gap: 7px 14px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .stat {
    padding: 10px 13px;
    gap: 11px;
    min-height: 65px;
  }
  .stat-icon {
    width: 33px;
    height: 33px;
  }
  .stat-icon svg {
    width: 19px;
    height: 19px;
  }
  .stat > div > span {
    font-size: 0.72rem;
  }
  .score {
    min-width: 54px;
    padding: 2px 8px 3px;
    font-size: 1.36rem;
    gap: 6px;
  }
  .team-label .flag {
    width: 26px;
    height: 19px;
  }
  .team-label .team-copy {
    gap: 2px;
  }
  .team-label {
    gap: 7px;
  }
  .team-label strong {
    font-size: 0.9rem;
  }
  .match-meta {
    margin-bottom: 9px;
  }
  .page-heading {
    flex-wrap: wrap;
  }
  .page-heading h1 {
    font-size: 2rem;
  }
  .panel-heading h2 {
    font-size: 1.42rem;
  }
  .panel-heading .primary-btn,
  .panel-heading .secondary-btn {
    font-size: 0.74rem;
    min-height: 32px;
    padding: 6px 9px;
  }
  .team-admin-table td,
  .team-admin-table th {
    padding-inline: 12px;
  }
  .admin-tabs {
    gap: 2px;
    justify-content: space-between;
  }
  .admin-tabs button {
    font-size: 0.79rem;
    padding: 8px 9px;
  }
  .admin-match-info {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
  .admin-match-info > div {
    gap: 6px;
  }
  .admin-match-info .flag {
    width: 18px;
    height: 13px;
  }
  .admin-match .secondary-btn {
    font-size: 0.73rem;
    padding: 7px 9px;
  }
  .form-grid {
    gap: 7px;
  }
  .form-grid label {
    font-size: 0.76rem;
  }
  .modal-head,
  .dialog-content {
    padding-inline: 16px;
  }
  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
  }
  .footer-signature {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }
  .creator-credit img {
    width: 4.75rem;
  }
  .bracket-column {
    max-width: 220px;
  }
  .toast {
    left: 12px;
    right: 12px;
    bottom: 15px;
    justify-content: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

.school-panel-link{font-size:.82rem;font-weight:700;color:var(--accent);text-decoration:underline;text-underline-offset:3px;padding:.4rem .2rem}.top-actions form{margin:0}@media(max-width:580px){.top-actions{gap:.3rem}.school-panel-link{font-size:.72rem}}
.mfc-login{max-width:460px;margin:5vh auto;padding:1.3rem;text-align:center}.mfc-login> a img{max-width:62%;height:auto;margin-bottom:1rem}.mfc-login>.panel{padding:1.6rem;text-align:left}.mfc-login h1{margin:0;font:800 2.2rem var(--heading)}.mfc-login .field input{width:100%}.mfc-credit{display:flex;gap:.4em;align-items:center;justify-content:center;font-size:.78rem;color:var(--muted)}.mfc-credit img{height:auto}.static-note{padding:2rem;text-align:center}

/* Harmonogram grudniowy i baraże o awans. */
.cup-schedule, .cup-thirds, .cup-import { margin-bottom: 1.15rem; }
.schedule-days { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.schedule-days section { padding: .9rem 1.3rem 1.25rem; }
.schedule-days section + section { border-left: 1px solid #e0e5ec; }
.schedule-days h3 { display: flex; gap: .5rem; align-items: center; font-size: 1.03rem; color: #122848; margin: .2rem 0 .7rem; }
.schedule-days h3 svg { color: #c40e39; }
.schedule-days dl { margin: 0; }
.schedule-days dl div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .3rem .8rem; padding: .4rem 0; border-bottom: 1px solid #edf0f5; }
.schedule-days dt, .schedule-days dd { margin: 0; font-size: .9rem; }
.schedule-days dd { font-weight: 700; font-variant-numeric: tabular-nums; color: #18365a; }
.cup-footnote { margin: 0; padding: .8rem 1.3rem; font-size: .86rem; line-height: 1.55; color: #41536c; }
.cup-pending { display: block; margin-top: .2rem; font-size: .72rem; color: #983315; }
.third-status { white-space: nowrap; font-size: .8rem; }
.cup-import { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .7rem; background: #eef3f9; border-left: 3px solid #ce193c; border-radius: .4rem; padding: 1rem 1.3rem; }
.cup-import p { margin: .25rem 0 0; }
.cup-links { display: flex; gap: .6rem 1.4rem; flex-wrap: wrap; font-weight: 700; }
.cup-links a { color: #223d61; text-decoration: underline; text-underline-offset: .2em; }
.fixture-time { display: inline-flex; align-items: center; gap: .4rem; color: #495a73; font-size: .84rem; }
.admin-match .fixture-time { margin-left: .5rem; }
@media(max-width: 640px) {
  .schedule-days { grid-template-columns: 1fr; }
  .schedule-days section + section { border-left: 0; border-top: 1px solid #e0e5ec; }
  .cup-thirds .panel-heading { flex-wrap: wrap; }
}
