/* One owner for league/tournament match cards and their native options dialog.
   Page tables, brackets, scoring rules and requests are deliberately untouched. */

body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .league-matches-grid {
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:16px!important;
  align-items:start!important;grid-auto-rows:auto!important;min-height:0!important;height:auto!important;
}
body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .league-match-card.tfp-result-card {
  --match-ink:#18364c;--match-muted:#5b7285;--match-line:#dbe4ed;
  display:block!important;min-width:0!important;width:auto!important;height:auto!important;min-height:0!important;
  margin:0!important;padding:0!important;overflow:hidden!important;border:1px solid var(--match-line)!important;
  border-radius:14px!important;background:#fff!important;color:var(--match-ink)!important;
  box-shadow:0 3px 12px #17364b09!important;text-align:center!important;font:14px/1.45 system-ui,sans-serif;
}
body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .tfp-result-card::before,
body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .tfp-result-card::after {display:none!important}
body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .tfp-result-card * {box-sizing:border-box!important;-webkit-text-fill-color:currentColor!important}
body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .tfp-result-card[hidden],
body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .tfp-result-card [hidden] {display:none!important}

/* Purple bar: status on the left, all tools together on the right. */
body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .tfp-result-card > .league-match-top {
  display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:center!important;justify-content:space-between!important;
  gap:7px 8px!important;width:100%!important;min-height:48px!important;height:auto!important;margin:0!important;padding:8px 10px!important;
  border:0!important;border-radius:0!important;background:linear-gradient(105deg,#792fdb,#6c29cc)!important;color:#fff!important;
}
body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .tfp-result-card :is(.league-match-badges,.league-match-panel-links) {
  display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:center!important;gap:5px!important;
  width:auto!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:0!important;
}
body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .tfp-result-card .league-match-badges {flex:0 1 auto!important;flex-wrap:nowrap!important;justify-content:flex-start!important}
body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .tfp-result-card .league-match-panel-links {flex:0 0 auto!important;flex-wrap:nowrap!important;justify-content:flex-end!important;margin-inline-start:auto!important}
body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .tfp-result-card .league-badge {
  display:inline-flex!important;align-items:center!important;min-height:25px!important;height:auto!important;margin:0!important;padding:4px 7px!important;
  border:1px solid #efda9b!important;border-radius:6px!important;background:#fff5d8!important;color:#76500d!important;
  font:600 11px/1.3 system-ui,sans-serif!important;white-space:nowrap!important;letter-spacing:normal!important;text-transform:none!important;
}
body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .tfp-result-card .tfp-result-status.ok {background:#e4f7ee!important;border-color:#bee7d4!important;color:#116d50!important}
body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .tfp-result-card .tfp-result-status--walkover.ok {background:#f2eafa!important;border-color:#e2cfee!important;color:#63418a!important}
body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .tfp-result-card .tfp-result-status--retirement.ok {background:#fff0dd!important;border-color:#f1d6ac!important;color:#87551b!important}
body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .tfp-result-card .tfp-match-schedule {background:#ffffff1f!important;border-color:#ffffff45!important;color:#fff!important}
body[data-page="league-view"] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .tfp-result-card .tfp-match-schedule {display:none!important}
body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .tfp-result-card :is(.league-panel-link,.tfp-match-options-trigger) {
  display:inline-flex!important;flex:0 0 auto!important;align-items:center!important;justify-content:center!important;gap:4px!important;
  width:auto!important;min-height:32px!important;height:auto!important;margin:0!important;padding:5px 7px!important;
  border:1px solid #ffffffbf!important;border-radius:7px!important;background:#fff!important;background-image:none!important;
  color:#3e285f!important;-webkit-text-fill-color:currentColor!important;font:600 11px/1.3 system-ui,sans-serif!important;
  text-decoration:none!important;white-space:nowrap!important;box-shadow:none!important;transform:none!important;cursor:pointer!important;
}
body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .tfp-result-card .league-panel-link {background:#f0faf8!important;color:#245c5b!important}
body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .tfp-result-card :is(.league-panel-link,.tfp-match-options-trigger):hover {background:#ece5fb!important;color:#50278c!important}
body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .tfp-match-options-trigger span {color:inherit!important;font:inherit!important;-webkit-text-fill-color:currentColor!important}
body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"]:not([data-match-options-ready="1"]) #matches .tfp-match-options-trigger {display:none!important}
body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"][data-match-options-ready="1"] #matches .tfp-result-card[data-match-options-card] .tfp-result-types {display:none!important}

/* Equal team columns: complete names, two lines per doubles team. */
body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .tfp-result-card > .league-match-players-row {
  display:grid!important;grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr)!important;align-items:center!important;gap:8px!important;
  width:100%!important;min-width:0!important;min-height:88px!important;margin:0!important;padding:17px 12px!important;
}
body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .tfp-result-card .league-match-player {
  display:flex!important;flex:none!important;align-items:center!important;justify-content:center!important;align-self:center!important;
  width:100%!important;min-width:0!important;max-width:100%!important;min-height:0!important;height:auto!important;
  margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;text-align:center!important;
}
body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .tfp-result-card .league-match-player :is(strong,.tfp-pair-stack,.tfp-pair-member,.tfp-player-link) {
  display:block!important;flex:none!important;width:100%!important;min-width:0!important;max-width:100%!important;height:auto!important;
  margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
  color:var(--match-ink)!important;font:600 14px/1.45 system-ui,sans-serif!important;text-align:center!important;
  white-space:normal!important;overflow:visible!important;overflow-wrap:anywhere!important;text-overflow:clip!important;text-transform:none!important;text-decoration:none!important;
}
body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .tfp-result-card .league-match-player .tfp-pair-stack {display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:2px!important}
body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .tfp-result-card .league-match-player.is-win :is(strong,.tfp-pair-member,.tfp-player-link) {color:#087451!important}
body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .tfp-result-card .league-match-player a:hover {color:#6f31c3!important;text-decoration:none!important}
body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .tfp-result-card .league-dot {display:none!important}
body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .tfp-result-card .league-match-vs {
  display:block!important;align-self:center!important;justify-self:center!important;width:20px!important;min-width:20px!important;height:auto!important;
  margin:0!important;padding:0!important;border:0!important;background:none!important;color:#6b7e8f!important;
  font:500 11px/1.3 system-ui,sans-serif!important;text-align:center!important;text-transform:uppercase!important;
}

/* The existing editor and its fields keep their names, values and validation. */
body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .tfp-result-card .league-match-form:not(.league-match-form--cancel) {
  margin:0!important;padding:0 13px!important;border:0!important;background:none!important;box-shadow:none!important;min-width:0!important;
}
body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .tfp-result-card .tfp-result-editor {display:grid!important;gap:10px!important;min-width:0!important;margin:0!important}
body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .tfp-result-card .tfp-result-set-grid {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;min-width:0!important}
body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .tfp-result-card .tfp-result-set {display:grid!important;grid-template-rows:minmax(28px,auto) auto!important;align-content:start!important;gap:5px!important;min-width:0!important;width:100%!important}
body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .tfp-result-card .tfp-result-set > label {
  display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-height:28px!important;
  margin:0!important;padding:0!important;color:#4d657a!important;font:500 11px/1.25 system-ui,sans-serif!important;text-align:center!important;white-space:normal!important;
}
body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .tfp-result-card .tfp-result-editor :is(select,input[type="number"]) {
  width:100%!important;max-width:100%!important;min-width:0!important;min-height:44px!important;height:44px!important;
  margin:0!important;padding:8px!important;border:1px solid #d0dce7!important;border-radius:8px!important;
  background:#fff!important;color:#18364c!important;-webkit-text-fill-color:currentColor!important;
  font:400 14px/1.3 system-ui,sans-serif!important;box-shadow:none!important;
}
body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .tfp-result-card .tfp-result-set select {text-align:center!important;text-align-last:center!important}
body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .tfp-result-card .tfp-result-custom {display:grid!important;grid-template-columns:minmax(0,1fr) 8px minmax(0,1fr)!important;gap:3px!important;align-items:center!important;min-width:0!important}
body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .tfp-result-card .tfp-result-custom input {padding:4px!important;text-align:center!important}
body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .tfp-result-card .tfp-result-withdrawal > label {display:block!important;margin:0 0 6px!important;color:#3c5469!important;font-size:12px!important;text-align:left!important}
body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .tfp-result-card .tfp-result-note {color:#607589!important;font:400 11px/1.45 system-ui,sans-serif!important;text-align:left!important}

body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .tfp-result-card .league-match-actions {
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin:13px!important;padding:0!important;
}
body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .tfp-result-card .league-match-actions > * {width:100%!important;min-width:0!important;margin:0!important}
body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .tfp-result-card .league-match-actions button {
  display:flex!important;align-items:center!important;justify-content:center!important;
  min-height:44px!important;height:auto!important;margin:0!important;padding:10px 8px!important;border:1px solid #cbd9e5!important;border-radius:8px!important;
  background:#fff!important;background-image:none!important;color:#23445c!important;font:600 13px/1.35 system-ui,sans-serif!important;
  text-align:center!important;white-space:normal!important;box-shadow:none!important;transform:none!important;cursor:pointer!important;
}
body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .tfp-result-card .league-match-actions .league-save-btn {background:#07815e!important;border-color:#07815e!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .tfp-result-card:not(.is-played) .league-match-actions {grid-template-columns:minmax(0,1fr)!important}
body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .tfp-result-card:not(.is-played) .league-match-actions > .league-save-btn {grid-column:auto!important}
body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .tfp-result-card .league-match-actions .league-save-btn:hover {background:#066c4f!important;border-color:#066c4f!important}
body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .tfp-result-card .league-match-actions .league-cancel-btn {background:#fff7f8!important;border-color:#eed2d9!important;color:#a33b55!important}
body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .tfp-result-card .league-match-form--cancel {padding:0!important;border:0!important;background:none!important;box-shadow:none!important}
body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .tfp-result-card button:disabled {opacity:.6!important;cursor:wait!important}
body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .tfp-result-card.is-played:not(.is-editing-result) :is(.league-match-form--played-edit,.league-save-btn--edit-save) {display:none!important}

/* Recorded result strip: totals and individual sets, including W / K labels. */
body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .tfp-result-card > .tfp-result-board {
  display:grid!important;grid-template-columns:repeat(var(--tfp-result-columns,1),minmax(0,1fr))!important;gap:0!important;align-items:center!important;
  min-width:0!important;margin:0 13px 13px!important;padding:10px 0!important;border:1px solid #e0e8ef!important;border-radius:9px!important;background:#f6f9fc!important;box-shadow:none!important;
}
body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .tfp-result-card .tfp-result-cell {display:grid!important;justify-items:center!important;gap:4px!important;min-width:0!important;padding:0 5px!important;text-align:center!important}
body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .tfp-result-card .tfp-result-cell-label {color:#5b7285!important;font:400 11px/1.3 system-ui,sans-serif!important}
body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .tfp-result-card .tfp-result-cell-score {color:#19394c!important;font:600 17px/1.3 system-ui,sans-serif!important;font-variant-numeric:tabular-nums!important}
body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .tfp-result-card .tfp-result-cell--total .tfp-result-cell-score {padding:2px 7px!important;border-radius:5px!important;background:#e1f3e9!important;color:#087451!important;font-size:20px!important}
body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .tfp-result-card .tfp-result-ending {grid-column:1!important;white-space:normal!important}

/* Native dialog is outside the workspace: isolate it from global button skins. */
body[data-page] dialog#tfpMatchOptionsDialog[data-match-cards-dialog] {
  position:fixed!important;inset:50% auto auto 50%!important;transform:translate(-50%,-50%)!important;width:min(500px,calc(100% - 32px))!important;max-width:none!important;
  height:auto!important;max-height:calc(100vh - 32px)!important;max-height:calc(100dvh - 32px)!important;
  margin:0!important;padding:0!important;overflow:auto!important;overscroll-behavior:contain!important;
  box-sizing:border-box!important;border:1px solid #ded5ed!important;border-radius:18px!important;background:#fff!important;color:#19354b!important;
  box-shadow:0 24px 80px #101f4040!important;font:14px/1.45 system-ui,sans-serif!important;
}
body[data-page] dialog#tfpMatchOptionsDialog[data-match-cards-dialog]:not([open]) {display:none!important}
body[data-page] dialog#tfpMatchOptionsDialog[data-match-cards-dialog][open] {display:block!important}
body[data-page] dialog#tfpMatchOptionsDialog[data-match-cards-dialog]::backdrop {background:#101b36a6!important;backdrop-filter:blur(4px)}
html:has(dialog#tfpMatchOptionsDialog[data-match-cards-dialog][open]) {overflow:hidden}
body[data-page] dialog#tfpMatchOptionsDialog[data-match-cards-dialog] * {box-sizing:border-box!important;-webkit-text-fill-color:currentColor!important}
body[data-page] dialog#tfpMatchOptionsDialog[data-match-cards-dialog] > form {display:block!important;width:100%!important;margin:0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;max-width:none!important}
body[data-page] dialog#tfpMatchOptionsDialog[data-match-cards-dialog] .tfp-match-options-head {
  display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:16px!important;
  margin:0!important;padding:22px!important;border:0!important;background:linear-gradient(105deg,#792fdb,#6c29cc)!important;color:#fff!important;
}
body[data-page] dialog#tfpMatchOptionsDialog[data-match-cards-dialog] h2 {margin:0!important;padding:0!important;color:#fff!important;font:700 22px/1.25 system-ui,sans-serif!important;letter-spacing:-.02em!important}
body[data-page] dialog#tfpMatchOptionsDialog[data-match-cards-dialog] .tfp-match-options-head > div {flex:1 1 auto!important;min-width:0!important}
body[data-page] dialog#tfpMatchOptionsDialog[data-match-cards-dialog] svg {color:inherit!important;stroke:currentColor!important;fill:none!important}
body[data-page] dialog#tfpMatchOptionsDialog[data-match-cards-dialog] p {margin:5px 0 0!important;padding:0!important;color:#eee4ff!important;font:400 13px/1.45 system-ui,sans-serif!important;overflow-wrap:anywhere!important}
body[data-page] dialog#tfpMatchOptionsDialog[data-match-cards-dialog] .tfp-match-options-close {
  display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 40px!important;width:40px!important;height:40px!important;min-height:40px!important;
  margin:0!important;padding:0!important;border:1px solid #ffffff55!important;border-radius:10px!important;background:#ffffff1f!important;background-image:none!important;color:#fff!important;
  box-shadow:none!important;transform:none!important;cursor:pointer!important;
}
body[data-page] dialog#tfpMatchOptionsDialog[data-match-cards-dialog] .tfp-match-options-list {display:grid!important;gap:10px!important;margin:0!important;padding:18px!important;border:0!important;background:#fff!important}
body[data-page] dialog#tfpMatchOptionsDialog[data-match-cards-dialog] .tfp-match-option {
  position:relative!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:13px!important;
  width:100%!important;min-height:80px!important;height:auto!important;margin:0!important;padding:14px 44px 14px 14px!important;
  border:1px solid #dce4ed!important;border-radius:12px!important;background:#fff!important;background-image:none!important;color:#19354b!important;
  font:400 14px/1.4 system-ui,sans-serif!important;text-align:left!important;text-transform:none!important;box-shadow:none!important;transform:none!important;cursor:pointer!important;
}
body[data-page] dialog#tfpMatchOptionsDialog[data-match-cards-dialog] .tfp-match-option:hover,
body[data-page] dialog#tfpMatchOptionsDialog[data-match-cards-dialog] .tfp-match-option[aria-pressed="true"] {border-color:#9d77db!important;background:#f7f2ff!important}
body[data-page] dialog#tfpMatchOptionsDialog[data-match-cards-dialog] .tfp-match-option-icon {display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 44px!important;width:44px!important;height:44px!important;border-radius:11px!important;background:#eee7fb!important;color:#6c30be!important}
body[data-page] dialog#tfpMatchOptionsDialog[data-match-cards-dialog] .tfp-match-option[value="walkover"] .tfp-match-option-icon {background:#fff3d9!important;color:#966b16!important}
body[data-page] dialog#tfpMatchOptionsDialog[data-match-cards-dialog] .tfp-match-option[value="retirement"] .tfp-match-option-icon {background:#fcecf1!important;color:#a44766!important}
body[data-page] dialog#tfpMatchOptionsDialog[data-match-cards-dialog] .tfp-match-option-copy {display:flex!important;flex:1 1 auto!important;flex-direction:column!important;gap:3px!important;min-width:0!important;text-align:left!important}
body[data-page] dialog#tfpMatchOptionsDialog[data-match-cards-dialog] .tfp-match-option strong {display:block!important;color:#19354b!important;font:650 16px/1.3 system-ui,sans-serif!important;white-space:normal!important}
body[data-page] dialog#tfpMatchOptionsDialog[data-match-cards-dialog] .tfp-match-option small {display:block!important;color:#607387!important;font:400 12px/1.4 system-ui,sans-serif!important;white-space:normal!important}
body[data-page] dialog#tfpMatchOptionsDialog[data-match-cards-dialog] .tfp-match-option[aria-pressed="true"]::after {content:""!important;position:absolute!important;right:18px!important;top:50%!important;width:12px!important;height:7px!important;border:solid #7135c5!important;border-width:0 0 2px 2px!important;transform:translateY(-65%) rotate(-45deg)!important}
body[data-page] dialog#tfpMatchOptionsDialog[data-match-cards-dialog] button:focus-visible,
body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .tfp-result-card :is(button,a,select,input):focus-visible {outline:3px solid #b399e8!important;outline-offset:2px!important}

@media(min-width:760px) {
  body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .league-matches-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(min-width:1120px) {
  body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .league-matches-grid {grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:600px) {
  body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .tfp-result-card .league-match-player :is(strong,.tfp-pair-stack,.tfp-pair-member,.tfp-player-link) {font-size:13px!important}
  body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .tfp-result-card .tfp-result-editor :is(select,input[type="number"]) {font-size:16px!important}
  body[data-page] dialog#tfpMatchOptionsDialog[data-match-cards-dialog] {width:calc(100% - 24px)!important;border-radius:16px!important}
  body[data-page] dialog#tfpMatchOptionsDialog[data-match-cards-dialog] .tfp-match-options-head {padding:18px!important}
  body[data-page] dialog#tfpMatchOptionsDialog[data-match-cards-dialog] .tfp-match-options-list {padding:14px!important}
}

/* Hidden custom scores and played editors stay hidden after every mode switch. */
body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .tfp-result-card .tfp-result-editor [hidden] {display:none!important}
body[data-page] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .tfp-result-card input[type="hidden"] {display:none!important}

/* Preserve the small league toolbar refinements from the retired stylesheet. */
body[data-page="league-view"] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .league-matches-toolbar__filters {display:contents!important}
body[data-page="league-view"] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .league-match-status-tab [data-match-filter-count] {border-radius:999px!important}
body[data-page="league-view"] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .league-card__head h3 {display:flex!important;align-items:center!important;gap:12px!important}
body[data-page="league-view"] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .league-card__head h3::before {content:""!important;display:block!important;flex:0 0 8px!important;width:8px!important;height:8px!important;border-radius:50%!important;background:var(--group-color,#2563eb)!important;box-shadow:0 0 0 4px #2563eb14!important}
@media(max-width:700px) {
  body[data-page="league-view"] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .league-matches-toolbar {grid-template-columns:minmax(0,1fr)!important}
  body[data-page="league-view"] main#tfpCompetitionView.league-page[data-match-card-skin="purple"] #matches .league-search-box {grid-column:1!important;grid-row:3!important}
}
