/* TennisFinalsPro — niezależne fazy dodatkowe ligi */
.league-page .tfp-phase-command-center,
.league-page .tfp-phase-editor,
.league-page .tfp-phase-empty-state {
  border: 1px solid #dce7f4;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(19, 47, 81, .075);
}

.league-page .tfp-phase-command-center { padding: 18px; }
.league-page .tfp-phase-command-center__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
}
.league-page .tfp-phase-command-center__head > div:first-child > span,
.league-page .tfp-phase-editor__head .tfp-phase-kind,
.league-page .tfp-public-phases-head span {
  display: inline-flex;
  margin-bottom: 5px;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #1670c9;
}
.league-page .tfp-phase-command-center__head h3,
.league-page .tfp-phase-editor__head h3,
.league-page .tfp-public-phase-panel__head h3 {
  margin: 0;
  color: #10233d;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: -.035em;
  font-weight: 950;
}
.league-page .tfp-phase-command-center__head p,
.league-page .tfp-phase-editor__head p,
.league-page .tfp-public-phase-panel__head p {
  margin: 6px 0 0;
  color: #6f8096;
  font-size: 12px;
  font-weight: 700;
}
.league-page .tfp-phase-command-center__stats { display: flex; gap: 8px; }
.league-page .tfp-phase-command-center__stats article {
  min-width: 82px;
  padding: 10px 12px;
  border: 1px solid #e2ebf5;
  border-radius: 13px;
  background: #f7faff;
  text-align: center;
}
.league-page .tfp-phase-command-center__stats strong { display: block; color: #123765; font-size: 20px; line-height: 1; }
.league-page .tfp-phase-command-center__stats span { display: block; margin-top: 4px; color: #8190a3; font-size: 9px; font-weight: 850; text-transform: uppercase; }

.league-page .tfp-phase-create-form {
  display: grid;
  grid-template-columns: 190px minmax(240px, 1fr) auto;
  gap: 9px;
  align-items: end;
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f6faff, #f9fcff);
  border: 1px solid #e2ebf5;
}
.league-page .tfp-phase-create-form label,
.league-page .tfp-phase-meta-grid label { display: grid; gap: 5px; margin: 0; }
.league-page .tfp-phase-create-form label > span,
.league-page .tfp-phase-meta-grid label > span {
  color: #718198;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.league-page .tfp-phase-create-form input,
.league-page .tfp-phase-create-form select,
.league-page .tfp-phase-meta-grid input,
.league-page .tfp-phase-meta-grid select,
.league-page .tfp-phase-substitution select,
.league-page .tfp-phase-result-form input,
.league-page .tfp-phase-result-form select {
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 12px !important;
  border: 1px solid #d5e1ee !important;
  border-radius: 11px !important;
  background: #fff !important;
  color: #10243d !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  box-shadow: none !important;
}
.league-page .tfp-phase-create-form input:focus,
.league-page .tfp-phase-create-form select:focus,
.league-page .tfp-phase-meta-grid input:focus,
.league-page .tfp-phase-meta-grid select:focus,
.league-page .tfp-phase-substitution select:focus,
.league-page .tfp-phase-result-form input:focus,
.league-page .tfp-phase-result-form select:focus {
  outline: 0 !important;
  border-color: #65a9ef !important;
  box-shadow: 0 0 0 3px rgba(38, 132, 232, .1) !important;
}
.league-page .tfp-phase-legacy-note {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
  padding: 9px 11px;
  border: 1px solid #f2dfb6;
  border-radius: 11px;
  background: #fffaf0;
  color: #725321;
  font-size: 10.5px;
}
.league-page .tfp-phase-legacy-note span { color: #8e754e; }

.league-page .tfp-phase-empty-state {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 12px;
  padding: 24px;
}
.league-page .tfp-phase-empty-state__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 15px;
  color: #fff;
  font-size: 26px;
  background: linear-gradient(135deg, #2576ed, #15b8cc);
  box-shadow: 0 10px 24px rgba(37, 118, 237, .22);
}
.league-page .tfp-phase-empty-state h3 { margin: 0; color: #10243d; font-size: 16px; }
.league-page .tfp-phase-empty-state p { margin: 4px 0 0; color: #73849a; font-size: 11px; }

.league-page .tfp-phase-editor-list { display: grid; gap: 14px; margin-top: 14px; }
.league-page .tfp-phase-editor { overflow: hidden; }
.league-page .tfp-phase-editor__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  background: linear-gradient(135deg, #f8fbff 0%, #fff 60%, #f5fcff 100%);
  border-bottom: 1px solid #e5edf6;
}
.league-page .tfp-phase-editor__identity { display: flex; gap: 12px; align-items: center; }
.league-page .tfp-phase-kind {
  margin: 0 !important;
  padding: 7px 9px;
  border: 1px solid #cfe2f8;
  border-radius: 10px;
  background: #eef6ff;
  white-space: nowrap;
}
.league-page .tfp-phase-kind--masters { color: #6d4bd2; border-color: #ddd3fb; background: #f5f1ff; }
.league-page .tfp-phase-kind--barage { color: #b05c00; border-color: #f7d8aa; background: #fff7e9; }
.league-page .tfp-phase-kind--second_cup { color: #087b65; border-color: #bfeadf; background: #effcf8; }
.league-page .tfp-phase-champion { text-align: right; }
.league-page .tfp-phase-champion span { display: block; color: #8b9aab; font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.league-page .tfp-phase-champion strong { display: block; margin-top: 3px; color: #127257; font-size: 14px; }

.league-page .tfp-phase-main-form { padding: 14px 16px 16px; }
.league-page .tfp-phase-meta-grid { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 10px; margin-bottom: 12px; }
.league-page .tfp-phase-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}
.league-page .tfp-phase-pool,
.league-page .tfp-phase-selected-zone {
  min-width: 0;
  padding: 11px;
  border: 1px solid #e0e9f3;
  border-radius: 14px;
  background: #f9fbfe;
}
.league-page .tfp-phase-selected-zone { background: #f6fbff; border-color: #d6e9f8; }
.league-page .tfp-phase-board__title { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 8px; }
.league-page .tfp-phase-board__title div > span { display: block; color: #7890a7; font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: .09em; }
.league-page .tfp-phase-board__title div > strong { display: block; margin-top: 2px; color: #152b46; font-size: 12px; }
.league-page .tfp-phase-board__title em { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px; background: #e8f3ff; color: #1871cc; font-style: normal; font-size: 10px; font-weight: 950; }
.league-page .tfp-phase-board__title > button { border: 0; background: transparent; color: #2d73b5; font-size: 10px; font-weight: 900; cursor: pointer; }
.league-page .tfp-phase-quick-picks { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.league-page .tfp-phase-quick-picks button {
  height: 28px;
  padding: 0 9px;
  border: 1px solid #d5e5f5;
  border-radius: 999px;
  background: #fff;
  color: #285d91;
  font-size: 9px;
  font-weight: 900;
  cursor: pointer;
}
.league-page .tfp-phase-player-list,
.league-page .tfp-phase-selected-list { display: grid; gap: 5px; max-height: 270px; overflow: auto; padding-right: 3px; }
.league-page .tfp-phase-player {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  min-height: 39px;
  padding: 5px 8px;
  border: 1px solid #e1e9f3;
  border-radius: 10px;
  background: #fff;
  color: #17314e;
  text-align: left;
  cursor: grab;
  transition: .18s ease;
}
.league-page .tfp-phase-player:hover { border-color: #a9cff4; background: #f1f8ff; transform: translateY(-1px); }
.league-page .tfp-phase-player.is-selected { opacity: .46; background: #f3f6f9; }
.league-page .tfp-phase-player > span { color: #3982c8; font-size: 9px; font-weight: 950; }
.league-page .tfp-phase-player > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10.5px; }
.league-page .tfp-phase-player > i { color: #2791dc; font-style: normal; font-size: 16px; }
.league-page .tfp-phase-board__transfer { display: grid; place-items: center; color: #6fa5d8; font-size: 24px; font-weight: 300; }

.league-page .tfp-phase-selected-list { min-height: 64px; }
.league-page .tfp-phase-selected-list.is-dragover { outline: 2px dashed #4aa0ed; outline-offset: 3px; }
.league-page .tfp-phase-selected-player {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  min-height: 41px;
  padding: 5px 6px;
  border: 1px solid #cae2f7;
  border-radius: 10px;
  background: #fff;
  cursor: grab;
}
.league-page .tfp-phase-selected-player .tfp-phase-seed { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #e8f4ff; color: #146dbe; font-size: 10px; font-weight: 950; }
.league-page .tfp-phase-selected-player strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #15314d; font-size: 10.5px; }
.league-page .tfp-phase-selected-controls { display: inline-flex; gap: 3px; align-items: center; }
.league-page .tfp-phase-selected-controls button { width: 25px; height: 25px; padding: 0; border: 1px solid #dce7f2; border-radius: 7px; background: #f6f9fc; color: #47708f; font-size: 11px; font-weight: 900; cursor: pointer; }
.league-page .tfp-phase-selected-controls button[data-phase-remove] { border-color: #f2d8dc; background: #fff0f1; color: #d34b58; font-size: 15px; }
.league-page .tfp-phase-selected-controls button:disabled { opacity: .28; cursor: default; }
.league-page .tfp-phase-drop-hint { display: grid; place-items: center; min-height: 64px; border: 1.5px dashed #b7d8f4; border-radius: 11px; color: #6f91ad; font-size: 10px; font-weight: 800; }
.league-page .tfp-phase-pair-note { margin: 7px 1px 0; color: #9a6b20; font-size: 9.5px; font-weight: 800; }
.league-page .tfp-phase-form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 11px; }

.league-page .tfp-phase-substitution {
  display: grid;
  grid-template-columns: minmax(210px, .75fr) minmax(0, 1.25fr);
  gap: 12px;
  align-items: center;
  margin: 0 16px 14px;
  padding: 11px 12px;
  border: 1px solid #e2eaf3;
  border-radius: 13px;
  background: #fbfcfe;
}
.league-page .tfp-phase-substitution > div > span { display: block; color: #6f839a; font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.league-page .tfp-phase-substitution > div > strong { display: block; margin-top: 2px; color: #18314c; font-size: 11px; }
.league-page .tfp-phase-substitution > div > p { margin: 3px 0 0; color: #8593a4; font-size: 9px; }
.league-page .tfp-phase-substitution form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 7px; align-items: center; }
.league-page .tfp-phase-substitution form button,
.league-page .tfp-phase-result-form button {
  height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: #176fce;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.league-page .tfp-phase-bracket-admin { margin: 0 16px 14px; padding: 12px; border: 1px solid #dce8f4; border-radius: 14px; background: linear-gradient(180deg, #f8fbff, #fff); }
.league-page .tfp-phase-bracket-admin__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.league-page .tfp-phase-bracket-admin__head span { display: block; color: #6e8aa5; font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: .09em; }
.league-page .tfp-phase-bracket-admin__head h4 { margin: 2px 0 0; color: #10243d; font-size: 14px; }
.league-page .tfp-phase-bracket-admin__head em { font-style: normal; color: #24856b; font-size: 9px; font-weight: 900; }
.league-page .tfp-phase-bracket-scroll,
.league-page .tfp-public-phase-bracket-scroll { overflow-x: auto; padding-bottom: 4px; }
.league-page .tfp-phase-bracket { display: flex; gap: 12px; align-items: flex-start; min-width: max-content; }
.league-page .tfp-phase-bracket__round { width: 205px; display: grid; gap: 8px; }
.league-page .tfp-phase-bracket__round h5 { margin: 0 0 2px; color: #61778d; font-size: 9px; font-weight: 950; text-transform: uppercase; letter-spacing: .08em; }
.league-page .tfp-phase-match { width: 100%; padding: 8px; border: 1px solid #dfe8f1; border-radius: 11px; background: #fff; box-shadow: 0 5px 14px rgba(22, 48, 77, .04); }
.league-page .tfp-phase-match.is-played { border-color: #bfe5d5; background: #fbfffd; }
.league-page .tfp-phase-match__players { display: grid; gap: 3px; }
.league-page .tfp-phase-match__players span { padding: 5px 7px; border-radius: 7px; background: #f5f8fc; color: #243b55; font-size: 9.5px; font-weight: 800; }
.league-page .tfp-phase-match__players span.is-winner { background: #e9faf2; color: #147158; }
.league-page .tfp-phase-match > small { display: block; margin-top: 6px; color: #8795a6; font-size: 8.5px; }
.league-page .tfp-phase-result-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 5px; margin-top: 6px; }
.league-page .tfp-phase-result-form input,
.league-page .tfp-phase-result-form select { height: 34px !important; min-height: 34px !important; padding: 0 7px !important; font-size: 9px !important; }
.league-page .tfp-phase-result-form button { height: 34px; padding: 0 9px; font-size: 8.5px; }

.league-page .tfp-phase-editor__danger { display: flex; justify-content: flex-end; gap: 7px; padding: 10px 16px; border-top: 1px solid #edf1f5; background: #fbfcfe; }
.league-page .tfp-phase-editor__danger form { margin: 0; }
.league-page .tfp-phase-editor__danger button { height: 31px; padding: 0 10px; border: 1px solid #d7e2ee; border-radius: 9px; background: #fff; color: #657a91; font-size: 9px; font-weight: 900; cursor: pointer; }
.league-page .tfp-phase-editor__danger button.is-danger { border-color: #f0c9ce; color: #c84956; background: #fff8f8; }

/* Publiczne fazy */
.league-page .tfp-public-phases-head { margin-bottom: 12px; }
.league-page .tfp-public-phase-tabs { display: flex; gap: 7px; overflow-x: auto; padding: 5px; margin-bottom: 10px; border: 1px solid #e1e9f3; border-radius: 14px; background: #fff; }
.league-page .tfp-public-phase-tabs button { flex: 0 0 auto; min-width: 130px; padding: 8px 11px; border: 0; border-radius: 10px; background: transparent; text-align: left; cursor: pointer; }
.league-page .tfp-public-phase-tabs button span { display: block; color: #7c8ca0; font-size: 7.5px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.league-page .tfp-public-phase-tabs button strong { display: block; margin-top: 2px; color: #213a56; font-size: 10.5px; }
.league-page .tfp-public-phase-tabs button.active { background: linear-gradient(135deg, #176fda, #16aeca); box-shadow: 0 8px 20px rgba(23, 111, 218, .18); }
.league-page .tfp-public-phase-tabs button.active span,
.league-page .tfp-public-phase-tabs button.active strong { color: #fff; }
.league-page .tfp-public-phase-panel { padding: 14px !important; }
.league-page .tfp-public-phase-panel__head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 12px; }
.league-page .tfp-public-phase-panel__head > div > span { color: #2b80c9; font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.league-page .tfp-public-phase-winner { padding: 8px 11px; border-radius: 11px; background: #ecfbf5; text-align: right; }
.league-page .tfp-public-phase-winner span { display: block; color: #6e8f82; font-size: 7px; font-weight: 900; text-transform: uppercase; }
.league-page .tfp-public-phase-winner strong { display: block; margin-top: 2px; color: #137258; font-size: 11px; }
.league-page .tfp-phase-bracket--public .tfp-phase-match { min-height: 62px; }

/* Panel ligi bardziej jak organizer turnieju */
.league-page .tfp-manager--league .tfp-manager-tabs {
  padding: 6px !important;
  gap: 4px !important;
  background: #fff !important;
  border: 1px solid #dfe8f3 !important;
  box-shadow: 0 10px 26px rgba(15, 42, 73, .06) !important;
}
.league-page .tfp-manager--league .tfp-manager-tab {
  min-height: 34px !important;
  padding: 0 12px !important;
  border-radius: 10px !important;
  font-size: 10px !important;
}
.league-page .tfp-manager--league .tfp-manager-tab.active { background: linear-gradient(135deg, #176fe2, #19b4ca) !important; }

@media (max-width: 900px) {
  .league-page .tfp-phase-command-center__head { grid-template-columns: 1fr; }
  .league-page .tfp-phase-command-center__stats { width: 100%; }
  .league-page .tfp-phase-command-center__stats article { flex: 1 1 0; min-width: 0; }
  .league-page .tfp-phase-create-form { grid-template-columns: 1fr 1.4fr; }
  .league-page .tfp-phase-create-form .league-save-btn { grid-column: 1 / -1; width: 100%; }
  .league-page .tfp-phase-board { grid-template-columns: 1fr; }
  .league-page .tfp-phase-board__transfer { transform: rotate(90deg); min-height: 22px; }
  .league-page .tfp-phase-substitution { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .league-page .tfp-phase-command-center { padding: 12px; border-radius: 15px; }
  .league-page .tfp-phase-command-center__head h3,
  .league-page .tfp-phase-editor__head h3 { font-size: 18px; }
  .league-page .tfp-phase-command-center__stats article { padding: 8px 5px; }
  .league-page .tfp-phase-command-center__stats strong { font-size: 17px; }
  .league-page .tfp-phase-create-form { grid-template-columns: 1fr; padding: 9px; }
  .league-page .tfp-phase-create-form .league-save-btn { grid-column: auto; }
  .league-page .tfp-phase-editor__head { align-items: flex-start; padding: 12px; }
  .league-page .tfp-phase-editor__identity { align-items: flex-start; flex-direction: column; gap: 7px; }
  .league-page .tfp-phase-champion { max-width: 42%; }
  .league-page .tfp-phase-main-form { padding: 10px; }
  .league-page .tfp-phase-meta-grid { grid-template-columns: 1fr; }
  .league-page .tfp-phase-pool,
  .league-page .tfp-phase-selected-zone { padding: 9px; }
  .league-page .tfp-phase-player-list,
  .league-page .tfp-phase-selected-list { max-height: 220px; }
  .league-page .tfp-phase-form-actions { display: grid; grid-template-columns: 1fr; }
  .league-page .tfp-phase-form-actions .league-save-btn { width: 100%; }
  .league-page .tfp-phase-substitution { margin: 0 10px 10px; padding: 9px; }
  .league-page .tfp-phase-substitution form { grid-template-columns: 1fr; }
  .league-page .tfp-phase-substitution form button { width: 100%; }
  .league-page .tfp-phase-bracket-admin { margin: 0 10px 10px; padding: 9px; }
  .league-page .tfp-phase-bracket__round { width: 190px; }
  .league-page .tfp-phase-result-form { grid-template-columns: 1fr; }
  .league-page .tfp-phase-result-form button { width: 100%; }
  .league-page .tfp-phase-editor__danger { padding: 9px 10px; flex-wrap: wrap; }
  .league-page .tfp-public-phase-panel__head { align-items: flex-start; }
}

/* ========================================================================
   TennisFinalsPro — LEAGUE UNIFIED TABLE LANGUAGE v15
   Jeden system wizualny dla całej ligi. Bez gradientów, ozdobnych underline,
   kolorowych pasków i wielkich piguł. Wzorzec = zakładka Tabela.
   ======================================================================== */

body[data-page="league-view"] .league-page {
  --tfp-navy: #082a43;
  --tfp-navy-2: #0b3655;
  --tfp-blue: #1473e6;
  --tfp-cyan: #1aaed1;
  --tfp-ink: #10243d;
  --tfp-muted: #64748b;
  --tfp-line: #d8e2ed;
  --tfp-line-dark: #aac0d5;
  --tfp-soft: #f5f8fc;
  --tfp-white: #ffffff;
  --tfp-radius: 5px;
  --tfp-radius-card: 7px;
  background: #f7f9fc !important;
  color: var(--tfp-ink) !important;
}

body[data-page="league-view"] .league-shell {
  background: transparent !important;
}

/* --- Typografia: jasne na jasnym / ciemne na ciemnym nigdy --- */
body[data-page="league-view"] .league-page h1,
body[data-page="league-view"] .league-page h2,
body[data-page="league-view"] .league-page h3,
body[data-page="league-view"] .league-page h4,
body[data-page="league-view"] .league-page strong,
body[data-page="league-view"] .league-page label {
  color: var(--tfp-ink);
}
body[data-page="league-view"] .league-section-head p,
body[data-page="league-view"] .league-page small,
body[data-page="league-view"] .league-page .league-round-meta {
  color: var(--tfp-muted) !important;
}

/* --- Główna nawigacja ligi --- */
body[data-page="league-view"] .league-top-tabs {
  display: flex !important;
  align-items: stretch !important;
  gap: 4px !important;
  min-height: 44px !important;
  padding: 4px !important;
  border: 1px solid var(--tfp-line) !important;
  border-radius: var(--tfp-radius-card) !important;
  background: #fff !important;
  box-shadow: 0 5px 14px rgba(8, 42, 67, .035) !important;
  overflow-x: auto !important;
  scrollbar-width: none;
}
body[data-page="league-view"] .league-top-tabs::-webkit-scrollbar { display: none; }
body[data-page="league-view"] .league-top-tab {
  position: relative !important;
  flex: 0 0 auto !important;
  min-height: 34px !important;
  height: 34px !important;
  padding: 0 15px !important;
  border: 1px solid transparent !important;
  border-radius: var(--tfp-radius) !important;
  background: transparent !important;
  color: #27435e !important;
  font-size: 10px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
  text-decoration: none !important;
}
body[data-page="league-view"] .league-top-tab::before,
body[data-page="league-view"] .league-top-tab::after { display: none !important; content: none !important; }
body[data-page="league-view"] .league-top-tab:hover {
  background: #f4f7fa !important;
  border-color: #d5e0ea !important;
  color: var(--tfp-navy) !important;
}
body[data-page="league-view"] .league-top-tab.active {
  background: var(--tfp-navy) !important;
  border-color: var(--tfp-navy) !important;
  color: #fff !important;
  box-shadow: none !important;
}
body[data-page="league-view"] .league-top-tab--manage {
  border-color: #c9d8e6 !important;
  background: #f7fafc !important;
  color: var(--tfp-navy) !important;
}
body[data-page="league-view"] .league-top-tab--manage.active {
  background: var(--tfp-navy) !important;
  color: #fff !important;
}
body[data-page="league-view"] .league-top-tab--owner {
  border-color: #ead5b2 !important;
  background: #fffaf2 !important;
  color: #8a5411 !important;
}
body[data-page="league-view"] .league-top-tab--owner.active {
  background: #8a5411 !important;
  border-color: #8a5411 !important;
  color: #fff !important;
}

/* --- Rundy: jeden globalny przełącznik, małe prostokąty --- */
body[data-page="league-view"] .league-round-tabs {
  display: flex !important;
  gap: 6px !important;
  padding: 0 !important;
  margin: 8px 0 !important;
  background: transparent !important;
  border: 0 !important;
  overflow-x: auto !important;
  scrollbar-width: none;
}
body[data-page="league-view"] .league-round-tabs::-webkit-scrollbar { display: none; }
body[data-page="league-view"] .league-round-tab {
  flex: 0 0 auto !important;
  min-height: 29px !important;
  height: 29px !important;
  padding: 0 12px !important;
  border: 1px solid #cfdbe6 !important;
  border-radius: var(--tfp-radius) !important;
  background: #fff !important;
  color: #27435e !important;
  font-size: 9px !important;
  line-height: 27px !important;
  font-weight: 850 !important;
  box-shadow: none !important;
  text-decoration: none !important;
}
body[data-page="league-view"] .league-round-tab::before,
body[data-page="league-view"] .league-round-tab::after { display: none !important; content: none !important; }
body[data-page="league-view"] .league-round-tab:hover {
  border-color: #8aa6bf !important;
  color: var(--tfp-navy) !important;
  background: #f8fafc !important;
}
body[data-page="league-view"] .league-round-tab.active {
  background: var(--tfp-navy) !important;
  border-color: var(--tfp-navy) !important;
  color: #fff !important;
}

/* --- Grupy wszędzie identyczne jak w Tabeli --- */
body[data-page="league-view"] .league-mini-tabs {
  display: flex !important;
  gap: 6px !important;
  padding: 0 !important;
  margin: 8px 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow-x: auto !important;
  scrollbar-width: none;
}
body[data-page="league-view"] .league-mini-tabs::-webkit-scrollbar { display: none; }
body[data-page="league-view"] .league-mini-tab {
  flex: 0 0 auto !important;
  min-height: 29px !important;
  height: 29px !important;
  padding: 0 12px !important;
  border: 1px solid #cfdbe6 !important;
  border-radius: var(--tfp-radius) !important;
  background: #fff !important;
  color: #27435e !important;
  font-size: 9px !important;
  line-height: 27px !important;
  font-weight: 850 !important;
  box-shadow: none !important;
  text-decoration: none !important;
}
body[data-page="league-view"] .league-mini-tab::before,
body[data-page="league-view"] .league-mini-tab::after { display: none !important; content: none !important; }
body[data-page="league-view"] .league-mini-tab.active {
  background: var(--tfp-navy) !important;
  border-color: var(--tfp-navy) !important;
  color: #fff !important;
}
/* Inline group colors may set CSS variables; never let them recolor tabs/cards. */
body[data-page="league-view"] .league-mini-tab[style] {
  box-shadow: none !important;
}

/* --- Filtry meczów: bez zielonego/kolorowego active --- */
body[data-page="league-view"] .league-match-status-tabs {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}
body[data-page="league-view"] .league-match-status-tab {
  min-height: 31px !important;
  height: 31px !important;
  padding: 0 10px !important;
  border: 1px solid #cfdbe6 !important;
  border-radius: var(--tfp-radius) !important;
  background: #fff !important;
  color: #27435e !important;
  font-size: 9px !important;
  font-weight: 850 !important;
  box-shadow: none !important;
}
body[data-page="league-view"] .league-match-status-tab::before,
body[data-page="league-view"] .league-match-status-tab::after { display: none !important; content: none !important; }
body[data-page="league-view"] .league-match-status-tab:hover {
  border-color: #8aa6bf !important;
  color: var(--tfp-navy) !important;
}
body[data-page="league-view"] .league-match-status-tab.active,
body[data-page="league-view"] .league-match-status-tab[data-match-filter="played"].active,
body[data-page="league-view"] .league-match-status-tab[data-match-filter="pending"].active,
body[data-page="league-view"] .league-match-status-tab[data-match-filter="live"].active {
  background: var(--tfp-navy) !important;
  border-color: var(--tfp-navy) !important;
  color: #fff !important;
}
body[data-page="league-view"] .league-match-status-tab span {
  min-width: 19px !important;
  height: 19px !important;
  padding: 0 5px !important;
  border-radius: 4px !important;
  background: #edf2f7 !important;
  color: #52677c !important;
  line-height: 19px !important;
  font-size: 8px !important;
}
body[data-page="league-view"] .league-match-status-tab.active span {
  background: rgba(255,255,255,.15) !important;
  color: #fff !important;
}
body[data-page="league-view"] .tfp-live-filter-dot {
  width: 7px !important;
  height: 7px !important;
  background: #9fb0c0 !important;
  box-shadow: none !important;
}

/* --- Toolbar meczów: grupy nad; filtry + wyszukiwarka w jednej linii --- */
body[data-page="league-view"] #matches .league-matches-toolbar {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) 220px !important;
  grid-template-rows: auto auto !important;
  column-gap: 12px !important;
  row-gap: 8px !important;
  align-items: center !important;
  margin: 0 0 10px !important;
}
body[data-page="league-view"] #matches .league-matches-toolbar__filters {
  display: contents !important;
}
body[data-page="league-view"] #matches .league-mini-tabs[data-group-tabs="matches"] {
  grid-column: 1 / -1 !important;
  grid-row: 1 !important;
  margin: 0 !important;
}
body[data-page="league-view"] #matches .league-match-status-tabs {
  grid-column: 1 !important;
  grid-row: 2 !important;
}
body[data-page="league-view"] #matches .league-search-box {
  grid-column: 2 !important;
  grid-row: 2 !important;
  width: 100% !important;
  margin: 0 !important;
}

/* --- Wszystkie pola formularzy w lidze: biały + granatowa ramka --- */
body[data-page="league-view"] .league-page input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="color"]):not([type="hidden"]),
body[data-page="league-view"] .league-page select,
body[data-page="league-view"] .league-page textarea {
  border: 1.5px solid var(--tfp-navy) !important;
  border-radius: var(--tfp-radius) !important;
  background: #fff !important;
  color: var(--tfp-ink) !important;
  box-shadow: none !important;
  font-family: inherit !important;
  font-weight: 700 !important;
}
body[data-page="league-view"] .league-page input::placeholder,
body[data-page="league-view"] .league-page textarea::placeholder {
  color: #74869a !important;
  opacity: 1 !important;
}
body[data-page="league-view"] .league-page input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="color"]):not([type="hidden"]):focus,
body[data-page="league-view"] .league-page select:focus,
body[data-page="league-view"] .league-page textarea:focus {
  outline: 0 !important;
  border-color: var(--tfp-blue) !important;
  box-shadow: 0 0 0 2px rgba(20,115,230,.12) !important;
}
body[data-page="league-view"] #matches .league-search-box input {
  width: 100% !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 11px !important;
  font-size: 10px !important;
}
body[data-page="league-view"] .league-set-inputs input {
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 5px !important;
  border-width: 1.5px !important;
  text-align: center !important;
  font-size: 14px !important;
  font-weight: 900 !important;
}

/* --- Karty / plansze: jeden spokojny system --- */
body[data-page="league-view"] .league-card,
body[data-page="league-view"] .league-results-card,
body[data-page="league-view"] .league-stats-card,
body[data-page="league-view"] .league-config-card,
body[data-page="league-view"] .tfp-admin-card,
body[data-page="league-view"] .tfp-phase-command-center,
body[data-page="league-view"] .tfp-phase-editor,
body[data-page="league-view"] .tfp-phase-empty-state {
  border: 1px solid var(--tfp-line) !important;
  border-radius: var(--tfp-radius-card) !important;
  background: #fff !important;
  box-shadow: 0 5px 16px rgba(8,42,67,.035) !important;
}

/* Nagłówki grup/tabel: jak Tabela — pełny granat, biały tekst, bez białych rogów. */
body[data-page="league-view"] .league-card__head,
body[data-page="league-view"] .league-results-card__head {
  min-height: 48px !important;
  padding: 10px 14px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--tfp-navy) !important;
  box-shadow: none !important;
}
body[data-page="league-view"] .league-card__head::before,
body[data-page="league-view"] .league-card__head::after,
body[data-page="league-view"] .league-results-card__head::before,
body[data-page="league-view"] .league-results-card__head::after { display:none !important; content:none !important; }
body[data-page="league-view"] .league-card__head h3,
body[data-page="league-view"] .league-results-card__head span,
body[data-page="league-view"] .league-results-card__head strong,
body[data-page="league-view"] .league-results-card__head p {
  color: #fff !important;
}
body[data-page="league-view"] .league-card__head h3::before,
body[data-page="league-view"] .league-results-card__head span::before { display:none !important; content:none !important; }
body[data-page="league-view"] .league-card__head > span,
body[data-page="league-view"] .league-results-card__head > p {
  border: 1px solid rgba(255,255,255,.18) !important;
  border-radius: 4px !important;
  background: rgba(255,255,255,.08) !important;
  color: #fff !important;
}

/* --- Mecze: bez kolorowych pasków i underline; tylko biel/granat --- */
body[data-page="league-view"] #matches .league-match-card {
  position: relative !important;
  border: 1px solid var(--tfp-line) !important;
  border-radius: var(--tfp-radius-card) !important;
  background: #fff !important;
  box-shadow: none !important;
  overflow: hidden !important;
}
body[data-page="league-view"] #matches .league-match-card::before,
body[data-page="league-view"] #matches .league-match-card::after,
body[data-page="league-view"] #matches .league-match-card.is-played::before,
body[data-page="league-view"] #matches .league-match-card.is-played::after {
  display: none !important;
  content: none !important;
}
body[data-page="league-view"] #matches .league-match-card:hover {
  transform: none !important;
  border-color: #b9cad9 !important;
  box-shadow: 0 4px 12px rgba(8,42,67,.045) !important;
}
body[data-page="league-view"] #matches .league-match-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 6px !important;
  min-height: 28px !important;
  margin-bottom: 7px !important;
}
body[data-page="league-view"] #matches .league-match-badges,
body[data-page="league-view"] #matches .league-match-panel-links {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 4px !important;
}
body[data-page="league-view"] #matches .league-badge,
body[data-page="league-view"] #matches .league-panel-link {
  min-height: 22px !important;
  height: 22px !important;
  padding: 0 7px !important;
  border: 1px solid #cbd8e4 !important;
  border-radius: 4px !important;
  background: #f7f9fc !important;
  color: #28445f !important;
  font-size: 8px !important;
  line-height: 20px !important;
  font-weight: 850 !important;
  box-shadow: none !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}
body[data-page="league-view"] #matches .league-badge.ok,
body[data-page="league-view"] #matches .league-badge.pending,
body[data-page="league-view"] #matches .league-panel-link--referee,
body[data-page="league-view"] #matches .league-panel-link--coach {
  border-color: #cbd8e4 !important;
  background: #f7f9fc !important;
  color: #28445f !important;
}
body[data-page="league-view"] #matches .league-match-player {
  border: 1px solid #d7e2ec !important;
  border-radius: 4px !important;
  background: #f8fafc !important;
  color: var(--tfp-ink) !important;
  box-shadow: none !important;
}
body[data-page="league-view"] #matches .league-match-player.is-win {
  background: #f5faf7 !important;
  border-color: #cfe5d6 !important;
}
body[data-page="league-view"] #matches .league-match-player.is-loss {
  background: #fbf7f7 !important;
  border-color: #ead8d8 !important;
}
body[data-page="league-view"] #matches .league-match-vs {
  border-radius: 4px !important;
  background: #eef3f7 !important;
  color: #60758a !important;
}
body[data-page="league-view"] #matches .league-save-btn,
body[data-page="league-view"] #matches .league-edit-result-btn {
  border: 1px solid var(--tfp-navy) !important;
  border-radius: 4px !important;
  background: var(--tfp-navy) !important;
  color: #fff !important;
  box-shadow: none !important;
  background-image: none !important;
}
body[data-page="league-view"] #matches .league-cancel-btn {
  border-radius: 4px !important;
  box-shadow: none !important;
}
body[data-page="league-view"] #matches .league-set-box label {
  color: #536a80 !important;
}

/* --- Tabele: dokładnie ten sam prostokątny system --- */
body[data-page="league-view"] .league-table-wrap,
body[data-page="league-view"] .league-results-scroll,
body[data-page="league-view"] .league-general-table-wrap {
  border-radius: 0 !important;
  background: #fff !important;
  overflow-x: auto !important;
}
body[data-page="league-view"] table.league-table,
body[data-page="league-view"] table.league-results-matrix {
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
}
body[data-page="league-view"] table.league-table thead,
body[data-page="league-view"] table.league-results-matrix thead,
body[data-page="league-view"] table.league-table thead tr,
body[data-page="league-view"] table.league-results-matrix thead tr,
body[data-page="league-view"] table.league-table thead th,
body[data-page="league-view"] table.league-results-matrix thead th {
  border-radius: 0 !important;
  background: var(--tfp-navy) !important;
  color: #fff !important;
  box-shadow: none !important;
}
body[data-page="league-view"] table.league-table thead th:first-child,
body[data-page="league-view"] table.league-table thead th:last-child,
body[data-page="league-view"] table.league-results-matrix thead th:first-child,
body[data-page="league-view"] table.league-results-matrix thead th:last-child {
  border-radius: 0 !important;
}
body[data-page="league-view"] table.league-table tbody td,
body[data-page="league-view"] table.league-results-matrix tbody td,
body[data-page="league-view"] table.league-results-matrix tbody th {
  color: var(--tfp-ink) !important;
  border-color: #e1e8f0 !important;
}
body[data-page="league-view"] table.league-table tbody tr:nth-child(even),
body[data-page="league-view"] table.league-results-matrix tbody tr:nth-child(even) {
  background: #f8fafc !important;
}

/* --- Statystyki: żadnych wielokolorowych plansz --- */
body[data-page="league-view"] #stats .league-stats-hero-grid {
  gap: 10px !important;
}
body[data-page="league-view"] #stats .league-stats-hero-card {
  border: 1px solid var(--tfp-line) !important;
  border-radius: var(--tfp-radius-card) !important;
  background: #fff !important;
  background-image: none !important;
  box-shadow: none !important;
}
body[data-page="league-view"] #stats .league-stats-hero-card::before,
body[data-page="league-view"] #stats .league-stats-hero-card::after { display:none !important; content:none !important; }
body[data-page="league-view"] #stats .league-stats-hero-card__label { color:#60758a !important; }
body[data-page="league-view"] #stats .league-stats-hero-card__value,
body[data-page="league-view"] #stats .league-stats-hero-card__value a { color:var(--tfp-navy) !important; }
body[data-page="league-view"] #stats .league-stats-hero-card__sub { color:#73869a !important; }
body[data-page="league-view"] #stats .league-stats-card {
  border-radius: var(--tfp-radius-card) !important;
  box-shadow:none !important;
}

/* --- Informacje: zamiast wielkiego gradientu granat + biel --- */
body[data-page="league-view"] #info .league-config-hero__main {
  border: 1px solid var(--tfp-navy) !important;
  border-radius: var(--tfp-radius-card) !important;
  background: var(--tfp-navy) !important;
  background-image: none !important;
  box-shadow: none !important;
}
body[data-page="league-view"] #info .league-config-hero__main::before,
body[data-page="league-view"] #info .league-config-hero__main::after { display:none !important; content:none !important; }
body[data-page="league-view"] #info .league-config-hero__label,
body[data-page="league-view"] #info .league-config-hero h3,
body[data-page="league-view"] #info .league-config-hero__main strong,
body[data-page="league-view"] #info .league-config-hero__main span { color:#fff !important; }
body[data-page="league-view"] #info .league-config-chips span {
  border:1px solid rgba(255,255,255,.2) !important;
  border-radius:4px !important;
  background:rgba(255,255,255,.08) !important;
  color:#fff !important;
}
body[data-page="league-view"] #info .league-config-progress,
body[data-page="league-view"] #info .league-config-kpi,
body[data-page="league-view"] #info .league-config-card,
body[data-page="league-view"] #info .league-config-data__item {
  border-radius:var(--tfp-radius-card) !important;
  background:#fff !important;
  border-color:var(--tfp-line) !important;
  box-shadow:none !important;
}
body[data-page="league-view"] #info .league-config-data__item.is-positive,
body[data-page="league-view"] #info .league-config-data__item.is-negative {
  background:#f8fafc !important;
  border-color:var(--tfp-line) !important;
}

/* --- Klasyfikacja generalna: kompaktowe białe KPI + tabela rund --- */
body[data-page="league-view"] #general .league-general-kpis {
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:10px !important;
  margin:10px 0 !important;
}
body[data-page="league-view"] #general .league-general-kpi {
  min-height:74px !important;
  padding:11px 13px !important;
  border:1px solid var(--tfp-line) !important;
  border-radius:var(--tfp-radius-card) !important;
  background:#fff !important;
  background-image:none !important;
  box-shadow:none !important;
}
body[data-page="league-view"] #general .league-general-kpi::before,
body[data-page="league-view"] #general .league-general-kpi::after { display:none !important; content:none !important; }
body[data-page="league-view"] #general .league-general-kpi small { color:#60758a !important; }
body[data-page="league-view"] #general .league-general-kpi strong,
body[data-page="league-view"] #general .league-general-kpi strong a { color:var(--tfp-navy) !important; }
body[data-page="league-view"] #general .league-general-kpi em { color:#73869a !important; }
body[data-page="league-view"] #general .league-general-kpi__icon {
  border-radius:4px !important;
  background:#eef3f7 !important;
  color:var(--tfp-navy) !important;
  box-shadow:none !important;
}
body[data-page="league-view"] #general .league-general-ranking-card {
  border-radius:var(--tfp-radius-card) !important;
  overflow:hidden !important;
}
body[data-page="league-view"] #general .league-general-ranking-card__head {
  background:var(--tfp-navy) !important;
}
body[data-page="league-view"] #general .league-general-rank,
body[data-page="league-view"] #general .league-general-group {
  border-radius:4px !important;
}

/* --- Manager: dokładnie ten sam system nawigacji --- */
body[data-page="league-view"] .tfp-manager--league .tfp-manager-tabs,
body[data-page="league-view"] .tfp-manager-tabs {
  display:flex !important;
  gap:4px !important;
  padding:4px !important;
  border:1px solid var(--tfp-line) !important;
  border-radius:var(--tfp-radius-card) !important;
  background:#fff !important;
  box-shadow:none !important;
  overflow-x:auto !important;
  scrollbar-width:none;
}
body[data-page="league-view"] .tfp-manager--league .tfp-manager-tabs::-webkit-scrollbar,
body[data-page="league-view"] .tfp-manager-tabs::-webkit-scrollbar { display:none; }
body[data-page="league-view"] .tfp-manager--league .tfp-manager-tab,
body[data-page="league-view"] .tfp-manager-tab {
  flex:0 0 auto !important;
  min-height:32px !important;
  height:32px !important;
  padding:0 10px !important;
  border:1px solid transparent !important;
  border-radius:var(--tfp-radius) !important;
  background:transparent !important;
  color:#334e68 !important;
  font-size:9px !important;
  font-weight:850 !important;
  box-shadow:none !important;
}
body[data-page="league-view"] .tfp-manager--league .tfp-manager-tab.active,
body[data-page="league-view"] .tfp-manager-tab.active {
  background:var(--tfp-navy) !important;
  border-color:var(--tfp-navy) !important;
  color:#fff !important;
  box-shadow:none !important;
}
body[data-page="league-view"] .tfp-manager--league .tfp-manager-tab::before,
body[data-page="league-view"] .tfp-manager--league .tfp-manager-tab::after,
body[data-page="league-view"] .tfp-manager-tab::before,
body[data-page="league-view"] .tfp-manager-tab::after { display:none !important; content:none !important; }

/* --- Fazy dodatkowe również w tym samym języku --- */
body[data-page="league-view"] .tfp-public-phase-tabs {
  gap:5px !important;
  padding:4px !important;
  border-radius:var(--tfp-radius-card) !important;
  border-color:var(--tfp-line) !important;
}
body[data-page="league-view"] .tfp-public-phase-tabs button {
  border-radius:var(--tfp-radius) !important;
  background:#fff !important;
  border:1px solid #cfdbe6 !important;
  box-shadow:none !important;
}
body[data-page="league-view"] .tfp-public-phase-tabs button.active {
  background:var(--tfp-navy) !important;
  border-color:var(--tfp-navy) !important;
  box-shadow:none !important;
}
body[data-page="league-view"] .tfp-phase-create-form,
body[data-page="league-view"] .tfp-phase-pool,
body[data-page="league-view"] .tfp-phase-selected-zone,
body[data-page="league-view"] .tfp-phase-match,
body[data-page="league-view"] .tfp-phase-kind,
body[data-page="league-view"] .tfp-phase-player {
  border-radius:var(--tfp-radius-card) !important;
  background-image:none !important;
  box-shadow:none !important;
}
body[data-page="league-view"] .tfp-phase-quick-picks button,
body[data-page="league-view"] .tfp-phase-board__title em,
body[data-page="league-view"] .tfp-phase-player__move,
body[data-page="league-view"] .tfp-phase-player__remove {
  border-radius:4px !important;
}

/* --- Usuń ozdobne linie/akcenty w sekcjach i kartach --- */
body[data-page="league-view"] .league-page [class*="card"]::before,
body[data-page="league-view"] .league-page [class*="card"]::after {
  box-shadow:none !important;
}
body[data-page="league-view"] #matches .league-card,
body[data-page="league-view"] #results .league-results-card {
  overflow:hidden !important;
}

/* --- Responsive: ten sam design, bez zmiany języka UI --- */
@media (max-width: 900px) {
  body[data-page="league-view"] .league-top-tabs { gap:3px !important; }
  body[data-page="league-view"] .league-top-tab { padding:0 11px !important; }
  body[data-page="league-view"] #matches .league-matches-toolbar {
    grid-template-columns:minmax(0,1fr) 190px !important;
  }
  body[data-page="league-view"] #general .league-general-kpis {
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
}

@media (max-width: 640px) {
  body[data-page="league-view"] .league-page { background:#f7f9fc !important; }
  body[data-page="league-view"] .league-shell { width:100% !important; padding-left:8px !important; padding-right:8px !important; }
  body[data-page="league-view"] .league-top-tabs,
  body[data-page="league-view"] .league-round-tabs,
  body[data-page="league-view"] .league-mini-tabs,
  body[data-page="league-view"] .league-match-status-tabs,
  body[data-page="league-view"] .tfp-manager-tabs {
    flex-wrap:nowrap !important;
    overflow-x:auto !important;
    -webkit-overflow-scrolling:touch;
  }
  body[data-page="league-view"] .league-top-tab { min-height:32px !important; height:32px !important; padding:0 10px !important; font-size:8.5px !important; }
  body[data-page="league-view"] .league-round-tab,
  body[data-page="league-view"] .league-mini-tab { min-height:28px !important; height:28px !important; padding:0 10px !important; line-height:26px !important; font-size:8.5px !important; }
  body[data-page="league-view"] .league-match-status-tab { min-height:29px !important; height:29px !important; padding:0 8px !important; font-size:8.3px !important; }

  body[data-page="league-view"] #matches .league-matches-toolbar {
    grid-template-columns:1fr !important;
    grid-template-rows:auto auto auto !important;
    gap:7px !important;
  }
  body[data-page="league-view"] #matches .league-mini-tabs[data-group-tabs="matches"] { grid-column:1 !important; grid-row:1 !important; }
  body[data-page="league-view"] #matches .league-match-status-tabs { grid-column:1 !important; grid-row:2 !important; }
  body[data-page="league-view"] #matches .league-search-box { grid-column:1 !important; grid-row:3 !important; width:100% !important; }
  body[data-page="league-view"] #matches .league-search-box input { height:35px !important; min-height:35px !important; }

  /* Runda/status/Sędzia/Trener zawsze w jednym rzędzie także na mobile. */
  body[data-page="league-view"] #matches .league-match-top {
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto !important;
    align-items:center !important;
    gap:4px !important;
  }
  body[data-page="league-view"] #matches .league-match-badges,
  body[data-page="league-view"] #matches .league-match-panel-links {
    min-width:0 !important;
    gap:3px !important;
    flex-wrap:nowrap !important;
  }
  body[data-page="league-view"] #matches .league-badge,
  body[data-page="league-view"] #matches .league-panel-link {
    min-height:20px !important;
    height:20px !important;
    padding:0 5px !important;
    font-size:7.2px !important;
    line-height:18px !important;
  }
  body[data-page="league-view"] #matches .league-match-card { padding:9px !important; }
  body[data-page="league-view"] #matches .league-set-inputs input { height:36px !important; min-height:36px !important; }

  body[data-page="league-view"] #general .league-general-kpis {
    grid-template-columns:1fr !important;
    gap:6px !important;
  }
  body[data-page="league-view"] #general .league-general-kpi {
    min-height:58px !important;
    padding:9px 10px !important;
  }
  body[data-page="league-view"] #general .league-general-table-wrap { overflow-x:auto !important; }
  body[data-page="league-view"] #general .league-general-table { min-width:680px !important; }

  body[data-page="league-view"] #info .league-config-hero__main,
  body[data-page="league-view"] #info .league-config-progress,
  body[data-page="league-view"] #info .league-config-card,
  body[data-page="league-view"] #stats .league-stats-hero-card,
  body[data-page="league-view"] .tfp-phase-command-center,
  body[data-page="league-view"] .tfp-phase-editor {
    border-radius:6px !important;
  }
}
