/* =========================================================
   TennisFinalsPro — Harmonogram PRO / Professional UI 2026
   Scoped only to tournament schedule/admin schedule.
   ========================================================= */
body[data-page='tournament-view'] {
	--sch-navy: #071f4d;
	--sch-blue: #1268f4;
	--sch-blue2: #16a8ec;
	--sch-cyan: #0ea5e9;
	--sch-green: #13a86b;
	--sch-orange: #f59e0b;
	--sch-red: #ef4444;
	--sch-ink: #13233e;
	--sch-muted: #6b7c96;
	--sch-line: #dce7f4;
	--sch-soft: #f4f8fd;
	--sch-white: #fff;
	--sch-shadow: 0 14px 36px rgba(17, 52, 101, 0.08);
	--sch-shadow-soft: 0 7px 18px rgba(17, 52, 101, 0.06);
}

/* -------------------------
   MANAGER / GENERATOR
-------------------------- */
body[data-page='tournament-view'] .tfp-scheduler-pro--redesign {
	padding: 14px !important;
	border: 1px solid #d8e5f4 !important;
	border-radius: 20px !important;
	background: linear-gradient(180deg, #f8fbff 0%, #f3f8fe 100%) !important;
	box-shadow: var(--sch-shadow) !important;
}
body[data-page='tournament-view'] .tfp-scheduler-pro__intro--redesign {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 18px !important;
	margin: 0 0 12px !important;
	padding: 16px 18px !important;
	border: 1px solid #d4e4f7 !important;
	border-radius: 16px !important;
	background:
		radial-gradient(circle at 88% -20%, rgba(22, 168, 236, 0.12), transparent 38%),
		linear-gradient(100deg, #ffffff 0%, #f4f9ff 100%) !important;
}
body[data-page='tournament-view'] .tfp-scheduler-pro__titlebox {
	min-width: 0 !important;
}
body[data-page='tournament-view'] .tfp-schedule-kicker,
body[data-page='tournament-view'] .tfp-scheduler-pro__intro--redesign > div > span {
	display: inline-flex !important;
	align-items: center !important;
	min-height: 22px !important;
	padding: 0 9px !important;
	border-radius: 999px !important;
	color: #1261c9 !important;
	background: #e9f3ff !important;
	font-size: 8.5px !important;
	font-weight: 950 !important;
	letter-spacing: 0.08em !important;
	text-transform: uppercase !important;
}
body[data-page='tournament-view'] .tfp-scheduler-pro__intro--redesign h3 {
	margin: 6px 0 3px !important;
	color: var(--sch-ink) !important;
	font-size: 20px !important;
	line-height: 1.05 !important;
	letter-spacing: -0.035em !important;
}
body[data-page='tournament-view'] .tfp-scheduler-pro__intro--redesign p {
	margin: 0 !important;
	max-width: 680px !important;
	color: var(--sch-muted) !important;
	font-size: 10.5px !important;
	line-height: 1.42 !important;
	font-weight: 650 !important;
}
body[data-page='tournament-view'] .tfp-schedule-top-actions {
	display: flex !important;
	align-items: center !important;
	justify-content: flex-end !important;
	flex-wrap: wrap !important;
	gap: 7px !important;
}
body[data-page='tournament-view'] .tfp-schedule-top-actions form {
	margin: 0 !important;
}
body[data-page='tournament-view'] .tfp-schedule-primary-btn,
body[data-page='tournament-view'] .tfp-schedule-outline-btn,
body[data-page='tournament-view'] .tfp-schedule-danger-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 7px !important;
	min-height: 36px !important;
	padding: 0 12px !important;
	border-radius: 10px !important;
	font-size: 9.5px !important;
	line-height: 1 !important;
	font-weight: 900 !important;
	text-decoration: none !important;
	cursor: pointer !important;
	transition:
		transform 0.16s ease,
		box-shadow 0.16s ease,
		border-color 0.16s ease,
		background 0.16s ease !important;
}
body[data-page='tournament-view'] .tfp-schedule-primary-btn {
	border: 1px solid transparent !important;
	color: #fff !important;
	background: linear-gradient(135deg, var(--sch-blue), var(--sch-blue2)) !important;
	box-shadow: 0 9px 20px rgba(18, 104, 244, 0.22) !important;
}
body[data-page='tournament-view'] .tfp-schedule-primary-btn--generate {
	min-width: 150px !important;
}
body[data-page='tournament-view'] .tfp-schedule-outline-btn {
	border: 1px solid #cbdcf1 !important;
	color: #174e9b !important;
	background: #fff !important;
}
body[data-page='tournament-view'] .tfp-schedule-danger-btn {
	border: 1px solid #ffd1d1 !important;
	color: #d92f3d !important;
	background: #fff7f7 !important;
}
body[data-page='tournament-view'] .tfp-schedule-primary-btn:hover,
body[data-page='tournament-view'] .tfp-schedule-outline-btn:hover,
body[data-page='tournament-view'] .tfp-schedule-danger-btn:hover {
	transform: translateY(-1px) !important;
	box-shadow: 0 10px 22px rgba(17, 52, 101, 0.12) !important;
}

body[data-page='tournament-view'] .tfp-schedule-generator--redesign {
	display: block !important;
	padding: 12px !important;
	border: 1px solid #dbe7f4 !important;
	border-radius: 16px !important;
	background: #fff !important;
	box-shadow: 0 7px 20px rgba(17, 52, 101, 0.045) !important;
}
body[data-page='tournament-view'] .tfp-scheduler-grid--redesign {
	display: flex !important;
	align-items: flex-end !important;
	flex-wrap: wrap !important;
	gap: 9px !important;
	margin: 0 !important;
}
body[data-page='tournament-view'] .tfp-scheduler-grid--redesign label {
	display: grid !important;
	gap: 5px !important;
	flex: 0 0 auto !important;
}
body[data-page='tournament-view'] .tfp-scheduler-grid--redesign label:nth-child(1) {
	width: 145px !important;
}
body[data-page='tournament-view'] .tfp-scheduler-grid--redesign label:nth-child(2) {
	width: 118px !important;
}
body[data-page='tournament-view'] .tfp-scheduler-grid--redesign label:nth-child(3) {
	width: 116px !important;
}
body[data-page='tournament-view'] .tfp-scheduler-grid--redesign label:nth-child(4) {
	width: 126px !important;
}
body[data-page='tournament-view'] .tfp-scheduler-grid--redesign label:nth-child(5) {
	width: 154px !important;
}
body[data-page='tournament-view'] .tfp-scheduler-grid--redesign label:nth-child(6) {
	width: 190px !important;
}
body[data-page='tournament-view'] .tfp-scheduler-grid--redesign label > span,
body[data-page='tournament-view'] .tfp-schedule-board-controls label > span,
body[data-page='tournament-view'] .tfp-group-schedule-card--redesign label > span {
	color: #60718c !important;
	font-size: 8px !important;
	line-height: 1 !important;
	font-weight: 950 !important;
	letter-spacing: 0.055em !important;
	text-transform: uppercase !important;
}
body[data-page='tournament-view'] .tfp-scheduler-grid--redesign small {
	font-size: 7px !important;
	color: #95a4b8 !important;
}
body[data-page='tournament-view'] .tfp-scheduler-grid--redesign input,
body[data-page='tournament-view'] .tfp-scheduler-grid--redesign select,
body[data-page='tournament-view'] .tfp-schedule-board-controls input,
body[data-page='tournament-view'] .tfp-group-schedule-card--redesign input {
	width: 100% !important;
	min-height: 38px !important;
	padding: 0 10px !important;
	border: 1px solid #d6e2f1 !important;
	border-radius: 10px !important;
	color: #13233e !important;
	background: #fbfdff !important;
	font-size: 10.5px !important;
	font-weight: 850 !important;
	outline: none !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
	transition:
		border-color 0.15s ease,
		box-shadow 0.15s ease,
		background 0.15s ease !important;
}
body[data-page='tournament-view'] .tfp-scheduler-grid--redesign input:focus,
body[data-page='tournament-view'] .tfp-scheduler-grid--redesign select:focus,
body[data-page='tournament-view'] .tfp-schedule-board-controls input:focus,
body[data-page='tournament-view'] .tfp-group-schedule-card--redesign input:focus {
	border-color: #5a9df4 !important;
	background: #fff !important;
	box-shadow: 0 0 0 3px rgba(18, 104, 244, 0.1) !important;
}

body[data-page='tournament-view'] .tfp-scheduler-courts-wrap {
	display: grid !important;
	grid-template-columns: 180px minmax(240px, 420px) !important;
	align-items: center !important;
	gap: 12px !important;
	margin-top: 10px !important;
	padding: 10px 12px !important;
	border: 1px solid #e0e9f5 !important;
	border-radius: 12px !important;
	background: #f8fbff !important;
}
body[data-page='tournament-view'] .tfp-scheduler-courts-head {
	display: flex !important;
	align-items: center !important;
	gap: 7px !important;
}
body[data-page='tournament-view'] .tfp-scheduler-courts-head > div {
	display: grid !important;
	gap: 2px !important;
}
body[data-page='tournament-view'] .tfp-scheduler-courts-head strong {
	font-size: 10.5px !important;
	color: #162b4d !important;
}
body[data-page='tournament-view'] .tfp-scheduler-courts-head div > span {
	font-size: 8px !important;
	color: #8392a8 !important;
}
body[data-page='tournament-view'] .tfp-schedule-count-pill {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-height: 22px !important;
	padding: 0 8px !important;
	border-radius: 999px !important;
	color: #1265cf !important;
	background: #eaf3ff !important;
	font-size: 8px !important;
	font-weight: 950 !important;
}
body[data-page='tournament-view'] .tfp-scheduler-courts--redesign textarea {
	width: 100% !important;
	height: 46px !important;
	min-height: 46px !important;
	resize: vertical !important;
	padding: 8px 10px !important;
	border: 1px solid #d6e2f1 !important;
	border-radius: 10px !important;
	background: #fff !important;
	color: #172d50 !important;
	font-size: 10px !important;
	line-height: 1.35 !important;
	font-weight: 800 !important;
	outline: none !important;
}
body[data-page='tournament-view'] .tfp-scheduler-courts--redesign textarea:focus {
	border-color: #5a9df4 !important;
	box-shadow: 0 0 0 3px rgba(18, 104, 244, 0.1) !important;
}

body[data-page='tournament-view'] .tfp-group-schedule-settings {
	margin-top: 10px !important;
	border: 1px solid #dbe7f4 !important;
	border-radius: 12px !important;
	background: #fbfdff !important;
	overflow: hidden !important;
}
body[data-page='tournament-view'] .tfp-group-schedule-settings summary {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 10px !important;
	padding: 10px 12px !important;
	cursor: pointer !important;
	list-style: none !important;
}
body[data-page='tournament-view'] .tfp-group-schedule-settings summary::-webkit-details-marker {
	display: none !important;
}
body[data-page='tournament-view'] .tfp-group-schedule-settings summary span {
	font-size: 10px !important;
	font-weight: 900 !important;
	color: #17325a !important;
}
body[data-page='tournament-view'] .tfp-group-schedule-settings summary small {
	font-size: 8.5px !important;
	color: #7e8da3 !important;
	font-weight: 700 !important;
}
body[data-page='tournament-view'] .tfp-group-schedule-settings summary::after {
	content: '+' !important;
	width: 24px !important;
	height: 24px !important;
	display: grid !important;
	place-items: center !important;
	border-radius: 8px !important;
	background: #edf5ff !important;
	color: #1265cf !important;
	font-weight: 1000 !important;
}
body[data-page='tournament-view'] .tfp-group-schedule-settings[open] summary::after {
	content: '−' !important;
}
body[data-page='tournament-view'] .tfp-group-schedule-grid--redesign {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 8px !important;
	padding: 0 10px 10px !important;
}
body[data-page='tournament-view'] .tfp-group-schedule-card--redesign {
	display: grid !important;
	grid-template-columns: 100px 90px minmax(150px, 1fr) !important;
	align-items: end !important;
	gap: 8px !important;
	padding: 9px !important;
	border: 1px solid #e0e8f3 !important;
	border-radius: 10px !important;
	background: #fff !important;
}
body[data-page='tournament-view'] .tfp-group-card-head {
	grid-column: 1/-1 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
}
body[data-page='tournament-view'] .tfp-group-card-head strong {
	font-size: 10px !important;
	color: #142a4b !important;
}
body[data-page='tournament-view'] .tfp-group-card-head > span {
	font-size: 8px !important;
	color: #1265cf !important;
	background: #eaf3ff !important;
	border-radius: 999px !important;
	padding: 3px 7px !important;
	font-weight: 900 !important;
}

body[data-page='tournament-view'] .tfp-scheduler-actions--redesign {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 12px !important;
	margin-top: 10px !important;
	padding-top: 10px !important;
	border-top: 1px solid #e5edf7 !important;
}
body[data-page='tournament-view'] .tfp-schedule-helper {
	color: #7a8aa1 !important;
	font-size: 8.8px !important;
	line-height: 1.35 !important;
	font-weight: 700 !important;
}
body[data-page='tournament-view'] .tfp-generate-schedule-btn,
body[data-page='tournament-view'] .tfp-scheduler-actions--redesign .league-save-btn {
	min-height: 38px !important;
	padding: 0 18px !important;
	border: 0 !important;
	border-radius: 10px !important;
	color: #fff !important;
	background: linear-gradient(135deg, var(--sch-blue), var(--sch-blue2)) !important;
	box-shadow: 0 9px 20px rgba(18, 104, 244, 0.2) !important;
	font-size: 9.5px !important;
	font-weight: 950 !important;
	cursor: pointer !important;
}
body[data-page='tournament-view'] .tfp-schedule-summary-strip {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 7px !important;
	margin-top: 10px !important;
}
body[data-page='tournament-view'] .tfp-schedule-summary-strip > div {
	padding: 9px 10px !important;
	border: 1px solid #e0e9f4 !important;
	border-radius: 10px !important;
	background: #f8fbff !important;
}
body[data-page='tournament-view'] .tfp-schedule-summary-strip span {
	display: block !important;
	font-size: 7.5px !important;
	color: #8392a8 !important;
	font-weight: 900 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.05em !important;
}
body[data-page='tournament-view'] .tfp-schedule-summary-strip strong {
	display: block !important;
	margin-top: 2px !important;
	color: #152a4a !important;
	font-size: 13px !important;
}

/* -------------------------
   SCHEDULE TAB / OWNER STUDIO
-------------------------- */
body[data-page='tournament-view'] #schedule .league-section-head--schedule-export {
	display: flex !important;
	align-items: flex-end !important;
	justify-content: space-between !important;
	gap: 10px !important;
	margin-bottom: 9px !important;
}
body[data-page='tournament-view'] #schedule .league-section-head--schedule-export h2 {
	font-size: 20px !important;
	line-height: 1 !important;
	color: #12284a !important;
}
body[data-page='tournament-view'] #schedule .league-section-head--schedule-export p {
	font-size: 9.5px !important;
	color: #7789a3 !important;
	margin-top: 4px !important;
}
body[data-page='tournament-view'] .tfp-schedule-export-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-height: 34px !important;
	padding: 0 12px !important;
	border: 0 !important;
	border-radius: 10px !important;
	color: #fff !important;
	background: linear-gradient(135deg, #176cf3, #14a7e9) !important;
	box-shadow: 0 8px 18px rgba(18, 104, 244, 0.2) !important;
	font-size: 9px !important;
	font-weight: 950 !important;
	text-decoration: none !important;
}

body[data-page='tournament-view'] .tfp-schedule-studio {
	margin: 0 0 10px !important;
	border: 1px solid #d8e5f3 !important;
	border-radius: 16px !important;
	background: #fff !important;
	box-shadow: var(--sch-shadow-soft) !important;
	overflow: hidden !important;
}
body[data-page='tournament-view'] .tfp-schedule-studio__summary {
	display: grid !important;
	grid-template-columns: auto minmax(0, 1fr) auto !important;
	align-items: center !important;
	gap: 9px !important;
	padding: 10px 12px !important;
	list-style: none !important;
	cursor: pointer !important;
	background: linear-gradient(90deg, #edf5ff 0%, #f8fbff 100%) !important;
	border-bottom: 0 !important;
}
body[data-page='tournament-view'] .tfp-schedule-studio__summary::-webkit-details-marker {
	display: none !important;
}
body[data-page='tournament-view'] .tfp-schedule-studio__summary-kicker {
	display: inline-flex !important;
	align-items: center !important;
	min-height: 20px !important;
	padding: 0 7px !important;
	border-radius: 999px !important;
	color: #1265cf !important;
	background: #dfeeff !important;
	font-size: 7px !important;
	font-weight: 950 !important;
	text-transform: uppercase !important;
}
body[data-page='tournament-view'] .tfp-schedule-studio__summary strong {
	font-size: 10px !important;
	color: #17325a !important;
}
body[data-page='tournament-view'] .tfp-schedule-studio__summary em {
	font-style: normal !important;
	color: #1265cf !important;
	font-size: 8.5px !important;
	font-weight: 850 !important;
}
body[data-page='tournament-view'] .tfp-schedule-studio__summary::after {
	content: '+' !important;
	display: grid !important;
	place-items: center !important;
	width: 24px !important;
	height: 24px !important;
	border-radius: 8px !important;
	background: #176bf2 !important;
	color: #fff !important;
	font-size: 14px !important;
	font-weight: 950 !important;
}
body[data-page='tournament-view'] .tfp-schedule-studio[open] .tfp-schedule-studio__summary::after {
	content: '−' !important;
}
body[data-page='tournament-view'] .tfp-schedule-studio__content {
	padding: 11px !important;
	background: #f8fbff !important;
	border-top: 1px solid #dfe8f4 !important;
}
body[data-page='tournament-view'] .tfp-schedule-studio__head {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 12px !important;
	margin-bottom: 9px !important;
	padding: 0 2px !important;
}
body[data-page='tournament-view'] .tfp-schedule-studio__head > div:first-child > span {
	font-size: 7px !important;
	color: #1265cf !important;
	text-transform: uppercase !important;
	font-weight: 950 !important;
	letter-spacing: 0.07em !important;
}
body[data-page='tournament-view'] .tfp-schedule-studio__head h3 {
	margin: 3px 0 2px !important;
	font-size: 15px !important;
	color: #132b4f !important;
	letter-spacing: -0.02em !important;
}
body[data-page='tournament-view'] .tfp-schedule-studio__head p {
	margin: 0 !important;
	max-width: 650px !important;
	font-size: 8.8px !important;
	color: #7b8da8 !important;
	line-height: 1.35 !important;
}
body[data-page='tournament-view'] .tfp-schedule-studio__actions {
	display: flex !important;
	align-items: center !important;
	gap: 5px !important;
	flex-wrap: wrap !important;
}
body[data-page='tournament-view'] .tfp-schedule-studio__actions form {
	margin: 0 !important;
}
body[data-page='tournament-view'] .tfp-scheduler-link,
body[data-page='tournament-view'] .tfp-schedule-studio__pdf,
body[data-page='tournament-view'] .tfp-schedule-studio__clear {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-height: 30px !important;
	padding: 0 9px !important;
	border-radius: 9px !important;
	font-size: 8px !important;
	font-weight: 950 !important;
	text-decoration: none !important;
	cursor: pointer !important;
}
body[data-page='tournament-view'] .tfp-scheduler-link {
	border: 0 !important;
	color: #fff !important;
	background: linear-gradient(135deg, #176bf2, #13a8e9) !important;
}
body[data-page='tournament-view'] .tfp-schedule-studio__pdf {
	border: 1px solid #cadcf0 !important;
	color: #125dbf !important;
	background: #fff !important;
}
body[data-page='tournament-view'] .tfp-schedule-studio__clear {
	border: 1px solid #ffd4d7 !important;
	color: #d83543 !important;
	background: #fff7f8 !important;
}

body[data-page='tournament-view'] .tfp-schedule-board-form {
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
}
body[data-page='tournament-view'] .tfp-schedule-board-controls {
	display: flex !important;
	align-items: flex-end !important;
	flex-wrap: wrap !important;
	gap: 7px !important;
	margin-bottom: 9px !important;
	padding: 9px !important;
	border: 1px solid #dfe8f4 !important;
	border-radius: 12px !important;
	background: #fff !important;
}
body[data-page='tournament-view'] .tfp-schedule-board-controls label {
	display: grid !important;
	gap: 4px !important;
	flex: 0 0 auto !important;
}
body[data-page='tournament-view'] .tfp-schedule-board-controls label:nth-child(1) {
	width: 142px !important;
}
body[data-page='tournament-view'] .tfp-schedule-board-controls label:nth-child(2) {
	width: 118px !important;
}
body[data-page='tournament-view'] .tfp-schedule-board-controls label:nth-child(3) {
	width: 110px !important;
}
body[data-page='tournament-view'] .tfp-schedule-board-controls label:nth-child(4) {
	width: 100px !important;
}
body[data-page='tournament-view'] .tfp-schedule-board-controls .league-save-btn {
	min-height: 38px !important;
	margin-left: auto !important;
	padding: 0 16px !important;
	border: 0 !important;
	border-radius: 10px !important;
	color: #fff !important;
	background: linear-gradient(135deg, #176bf2, #12a9e9) !important;
	box-shadow: 0 8px 18px rgba(18, 104, 244, 0.18) !important;
	font-size: 9px !important;
	font-weight: 950 !important;
	cursor: pointer !important;
}

/* Board columns */
body[data-page='tournament-view'] .tfp-schedule-board {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 8px !important;
	align-items: start !important;
}
body[data-page='tournament-view'] .tfp-court-column {
	min-width: 0 !important;
	border: 1px solid #dce7f4 !important;
	border-radius: 13px !important;
	background: #fff !important;
	box-shadow: 0 6px 18px rgba(18, 50, 91, 0.045) !important;
	overflow: hidden !important;
}
body[data-page='tournament-view'] .tfp-court-column--unscheduled {
	border-color: #f5d7b5 !important;
	background: #fffcf7 !important;
}
body[data-page='tournament-view'] .tfp-court-column__head {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 8px !important;
	min-height: 38px !important;
	padding: 0 9px !important;
	border-bottom: 1px solid #dce7f4 !important;
	background: linear-gradient(90deg, #eaf3ff, #f7fbff) !important;
}
body[data-page='tournament-view'] .tfp-court-column--unscheduled .tfp-court-column__head {
	background: linear-gradient(90deg, #fff5e9, #fffaf3) !important;
	border-color: #f4ddc3 !important;
}
body[data-page='tournament-view'] .tfp-court-column__head strong {
	font-size: 10px !important;
	color: #17325a !important;
}
body[data-page='tournament-view'] .tfp-court-column__head span {
	display: inline-flex !important;
	align-items: center !important;
	min-height: 20px !important;
	padding: 0 7px !important;
	border-radius: 999px !important;
	color: #1265cf !important;
	background: #fff !important;
	font-size: 7.5px !important;
	font-weight: 950 !important;
	border: 1px solid #d7e5f4 !important;
}
body[data-page='tournament-view'] .tfp-court-dropzone {
	display: grid !important;
	gap: 6px !important;
	min-height: 84px !important;
	padding: 7px !important;
	background: linear-gradient(180deg, #fbfdff 0%, #f7faff 100%) !important;
	transition:
		background 0.15s ease,
		box-shadow 0.15s ease !important;
}
body[data-page='tournament-view'] .tfp-court-column--unscheduled .tfp-court-dropzone {
	background: #fffcf8 !important;
}
body[data-page='tournament-view'] .tfp-court-dropzone.is-over {
	background: #eaf4ff !important;
	box-shadow: inset 0 0 0 2px #56a2fa !important;
}
body[data-page='tournament-view'] .tfp-court-dropzone:empty::before {
	content: 'Upuść mecz tutaj' !important;
	display: grid !important;
	place-items: center !important;
	min-height: 70px !important;
	border: 1px dashed #c8d9ed !important;
	border-radius: 10px !important;
	color: #8ca0bb !important;
	font-size: 8.5px !important;
	font-weight: 850 !important;
}
body[data-page='tournament-view'] .tfp-court-column--unscheduled .tfp-court-dropzone:empty::before {
	content: 'Brak meczów bez godziny' !important;
	border-color: #f2cfa7 !important;
	color: #b27734 !important;
}

/* Match card */
body[data-page='tournament-view'] .tfp-schedule-card {
	position: relative !important;
	display: grid !important;
	grid-template-columns: 20px 54px minmax(0, 1fr) auto !important;
	grid-template-areas: 'drag top players meta' 'drag move move meta' !important;
	align-items: center !important;
	gap: 3px 7px !important;
	min-height: 65px !important;
	padding: 7px 7px !important;
	border: 1px solid #dce7f4 !important;
	border-left: 3px solid #2b7cf2 !important;
	border-radius: 10px !important;
	background: #fff !important;
	box-shadow: 0 4px 12px rgba(17, 52, 101, 0.055) !important;
	cursor: grab !important;
	transition:
		transform 0.14s ease,
		box-shadow 0.14s ease,
		border-color 0.14s ease !important;
}
body[data-page='tournament-view'] .tfp-schedule-card:hover {
	transform: translateY(-1px) !important;
	border-color: #b9d2ef !important;
	box-shadow: 0 8px 18px rgba(17, 52, 101, 0.09) !important;
}
body[data-page='tournament-view'] .tfp-schedule-card.is-dragging {
	opacity: 0.55 !important;
	transform: scale(0.98) !important;
	cursor: grabbing !important;
}
body[data-page='tournament-view'] .tfp-schedule-card__drag {
	grid-area: drag !important;
	align-self: stretch !important;
	display: grid !important;
	place-items: center !important;
	color: #8da4c2 !important;
	font-size: 13px !important;
	font-weight: 1000 !important;
	border-right: 1px solid #edf2f8 !important;
	cursor: grab !important;
}
body[data-page='tournament-view'] .tfp-schedule-card__top {
	grid-area: top !important;
	display: grid !important;
	align-content: center !important;
	gap: 3px !important;
}
body[data-page='tournament-view'] .tfp-schedule-card__time {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-height: 22px !important;
	padding: 0 6px !important;
	border-radius: 7px !important;
	color: #075ed2 !important;
	background: #e9f3ff !important;
	font-size: 9px !important;
	font-weight: 1000 !important;
	white-space: nowrap !important;
}
body[data-page='tournament-view'] .tfp-schedule-card__top em {
	font-style: normal !important;
	color: #697c97 !important;
	font-size: 6.8px !important;
	font-weight: 900 !important;
	text-align: center !important;
	line-height: 1.1 !important;
}
body[data-page='tournament-view'] .tfp-schedule-card__players {
	grid-area: players !important;
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) !important;
	align-content: center !important;
	gap: 1px !important;
	min-width: 0 !important;
}
body[data-page='tournament-view'] .tfp-schedule-card__players b {
	display: block !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	white-space: nowrap !important;
	color: #132844 !important;
	font-size: 8.6px !important;
	line-height: 1.18 !important;
	font-weight: 900 !important;
}
body[data-page='tournament-view'] .tfp-schedule-card__players span {
	font-size: 6px !important;
	color: #a0aec0 !important;
	font-weight: 950 !important;
	text-transform: uppercase !important;
}
body[data-page='tournament-view'] .tfp-schedule-card__meta {
	grid-area: meta !important;
	display: grid !important;
	grid-template-columns: repeat(3, 22px) !important;
	gap: 3px !important;
	align-items: center !important;
	justify-items: center !important;
}
body[data-page='tournament-view'] .tfp-schedule-card__meta .league-badge {
	grid-column: 1/-1 !important;
	justify-self: end !important;
	display: inline-flex !important;
	align-items: center !important;
	min-height: 18px !important;
	padding: 0 6px !important;
	border-radius: 999px !important;
	font-size: 6.8px !important;
	font-weight: 950 !important;
	white-space: nowrap !important;
}
body[data-page='tournament-view'] .tfp-schedule-card__meta .league-badge.pending {
	color: #087b4f !important;
	background: #e9f9f1 !important;
	border: 1px solid #c8efdc !important;
}
body[data-page='tournament-view'] .tfp-schedule-card__meta .league-badge.ok {
	color: #087b4f !important;
	background: #e9f9f1 !important;
	border: 1px solid #c8efdc !important;
}
body[data-page='tournament-view'] .tfp-schedule-card__meta button {
	width: 22px !important;
	height: 22px !important;
	min-width: 22px !important;
	padding: 0 !important;
	border: 1px solid #d9e5f3 !important;
	border-radius: 7px !important;
	color: #1766c9 !important;
	background: #f8fbff !important;
	font-size: 9px !important;
	font-weight: 1000 !important;
	cursor: pointer !important;
	transition: 0.14s ease !important;
}
body[data-page='tournament-view'] .tfp-schedule-card__meta button:hover {
	border-color: #91b9e8 !important;
	background: #eaf3ff !important;
	transform: translateY(-1px) !important;
}
body[data-page='tournament-view'] .tfp-schedule-card__meta [data-card-unschedule] {
	color: #e24451 !important;
	border-color: #ffd2d6 !important;
	background: #fff7f7 !important;
}
body[data-page='tournament-view'] .tfp-card-mobile-move {
	grid-area: move !important;
	display: flex !important;
	align-items: center !important;
	gap: 5px !important;
	min-width: 0 !important;
}
body[data-page='tournament-view'] .tfp-card-mobile-move > span {
	font-size: 6.8px !important;
	color: #8a99ae !important;
	font-weight: 850 !important;
	white-space: nowrap !important;
}
body[data-page='tournament-view'] .tfp-card-mobile-move select {
	width: auto !important;
	max-width: 130px !important;
	min-height: 23px !important;
	padding: 0 20px 0 7px !important;
	border: 1px solid #e0e9f4 !important;
	border-radius: 7px !important;
	color: #48617f !important;
	background: #f9fbfe !important;
	font-size: 7.5px !important;
	font-weight: 850 !important;
	outline: none !important;
}

/* -------------------------
   PUBLIC SCHEDULE
-------------------------- */
body[data-page='tournament-view'] .tfp-public-schedule-head.league-card {
	margin: 0 0 8px !important;
	padding: 9px 11px !important;
	border: 1px solid #dbe7f4 !important;
	border-radius: 12px !important;
	background: #fff !important;
	box-shadow: var(--sch-shadow-soft) !important;
}
body[data-page='tournament-view'] .tfp-public-schedule {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 8px !important;
}
body[data-page='tournament-view'] .tfp-public-court {
	border: 1px solid #d9e6f5 !important;
	border-radius: 12px !important;
	background: #fff !important;
	overflow: hidden !important;
	box-shadow: 0 6px 17px rgba(8, 38, 95, 0.045) !important;
}
body[data-page='tournament-view'] .tfp-public-court__head {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	padding: 8px 9px !important;
	background: linear-gradient(90deg, #eaf3ff, #f8fbff) !important;
	border-bottom: 1px solid #d9e6f5 !important;
}
body[data-page='tournament-view'] .tfp-public-court__head strong {
	font-size: 10px !important;
	color: #17325a !important;
}
body[data-page='tournament-view'] .tfp-public-court__head span {
	font-size: 7.5px !important;
	color: #1767ca !important;
	font-weight: 950 !important;
}
body[data-page='tournament-view'] .tfp-schedule-row {
	display: grid !important;
	grid-template-columns: 46px 72px minmax(0, 1fr) 50px auto !important;
	align-items: center !important;
	gap: 6px !important;
	min-height: 38px !important;
	padding: 5px 7px !important;
	border-bottom: 1px solid #edf2f8 !important;
	background: #fff !important;
}
body[data-page='tournament-view'] .tfp-schedule-row:last-child {
	border-bottom: 0 !important;
}
body[data-page='tournament-view'] .tfp-schedule-row time {
	font-size: 8.5px !important;
	color: #1265cf !important;
	font-weight: 1000 !important;
}
body[data-page='tournament-view'] .tfp-schedule-row__phase {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-height: 18px !important;
	padding: 0 5px !important;
	border-radius: 999px !important;
	background: #fff2df !important;
	color: #9a5c00 !important;
	font-size: 6.6px !important;
	font-weight: 950 !important;
	white-space: nowrap !important;
}
body[data-page='tournament-view'] .tfp-schedule-row__players {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr) !important;
	align-items: center !important;
	gap: 3px !important;
	min-width: 0 !important;
}
body[data-page='tournament-view'] .tfp-schedule-row__players strong {
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	white-space: nowrap !important;
	font-size: 8.5px !important;
	line-height: 1.18 !important;
	text-align: left !important;
}
body[data-page='tournament-view'] .tfp-schedule-row__players em {
	font-style: normal !important;
	color: #9ba9bb !important;
	font-size: 6px !important;
	text-align: center !important;
}
body[data-page='tournament-view'] .tfp-schedule-row__score {
	font-size: 7.5px !important;
	color: #07834f !important;
	text-align: right !important;
	white-space: nowrap !important;
}
body[data-page='tournament-view'] .tfp-schedule-row__actions {
	display: flex !important;
	gap: 3px !important;
}
body[data-page='tournament-view'] .tfp-match-panel-link {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-height: 22px !important;
	padding: 0 5px !important;
	border-radius: 6px !important;
	font-size: 6.5px !important;
	text-decoration: none !important;
	font-weight: 950 !important;
}
body[data-page='tournament-view'] .tfp-match-panel-link--referee {
	color: #1265cf !important;
	background: #eaf3ff !important;
}
.tfp-match-panel-link--coach {
	color: #08784a !important;
	background: #e8f9f1 !important;
}
body[data-page='tournament-view'] .tfp-schedule-empty-state {
	text-align: center !important;
	padding: 22px !important;
	border: 1px dashed #cbdcf0 !important;
	border-radius: 14px !important;
	background: #fbfdff !important;
}
body[data-page='tournament-view'] .tfp-schedule-empty-state h3 {
	font-size: 15px !important;
}
.tfp-schedule-empty-state p {
	font-size: 9px !important;
	color: #788aa5 !important;
}

/* -------------------------
   RESPONSIVE
-------------------------- */
@media (max-width: 1180px) {
	body[data-page='tournament-view'] .tfp-schedule-board {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
	body[data-page='tournament-view'] .tfp-court-column--unscheduled {
		grid-column: 1/-1 !important;
	}
	body[data-page='tournament-view'] .tfp-group-schedule-grid--redesign {
		grid-template-columns: 1fr !important;
	}
}
@media (max-width: 820px) {
	body[data-page='tournament-view'] .tfp-scheduler-pro__intro--redesign {
		align-items: flex-start !important;
		flex-direction: column !important;
	}
	body[data-page='tournament-view'] .tfp-schedule-top-actions {
		justify-content: flex-start !important;
		width: 100% !important;
	}
	body[data-page='tournament-view'] .tfp-scheduler-grid--redesign {
		display: grid !important;
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
	body[data-page='tournament-view'] .tfp-scheduler-grid--redesign label {
		width: auto !important;
	}
	body[data-page='tournament-view'] .tfp-scheduler-courts-wrap {
		grid-template-columns: 1fr !important;
	}
	body[data-page='tournament-view'] .tfp-public-schedule {
		grid-template-columns: 1fr !important;
	}
}
@media (max-width: 700px) {
	body[data-page='tournament-view'] .tfp-scheduler-pro--redesign {
		padding: 7px !important;
		border-radius: 13px !important;
	}
	body[data-page='tournament-view'] .tfp-scheduler-pro__intro--redesign {
		gap: 8px !important;
		margin-bottom: 7px !important;
		padding: 10px !important;
		border-radius: 11px !important;
	}
	body[data-page='tournament-view'] .tfp-scheduler-pro__intro--redesign h3 {
		font-size: 16px !important;
	}
	body[data-page='tournament-view'] .tfp-scheduler-pro__intro--redesign p {
		font-size: 8.6px !important;
		line-height: 1.3 !important;
	}
	body[data-page='tournament-view'] .tfp-schedule-top-actions {
		display: grid !important;
		grid-template-columns: 1fr 1fr !important;
		gap: 5px !important;
	}
	body[data-page='tournament-view'] .tfp-schedule-top-actions > * {
		width: 100% !important;
	}
	body[data-page='tournament-view'] .tfp-schedule-primary-btn--generate {
		grid-column: 1/-1 !important;
		min-width: 0 !important;
	}
	body[data-page='tournament-view'] .tfp-schedule-primary-btn,
	body[data-page='tournament-view'] .tfp-schedule-outline-btn,
	body[data-page='tournament-view'] .tfp-schedule-danger-btn {
		width: 100% !important;
		min-height: 32px !important;
		padding: 0 7px !important;
		font-size: 7.7px !important;
		border-radius: 8px !important;
	}

	body[data-page='tournament-view'] .tfp-schedule-generator--redesign {
		padding: 8px !important;
		border-radius: 12px !important;
	}
	body[data-page='tournament-view'] .tfp-scheduler-grid--redesign {
		grid-template-columns: 1fr 1fr !important;
		gap: 6px !important;
	}
	body[data-page='tournament-view'] .tfp-scheduler-grid--redesign label {
		width: auto !important;
	}
	body[data-page='tournament-view'] .tfp-scheduler-grid--redesign label:nth-child(6) {
		grid-column: 1/-1 !important;
		width: auto !important;
	}
	body[data-page='tournament-view'] .tfp-scheduler-grid--redesign input,
	body[data-page='tournament-view'] .tfp-scheduler-grid--redesign select {
		min-height: 34px !important;
		font-size: 9.3px !important;
	}
	body[data-page='tournament-view'] .tfp-scheduler-courts-wrap {
		margin-top: 7px !important;
		padding: 8px !important;
		gap: 7px !important;
	}
	body[data-page='tournament-view'] .tfp-scheduler-courts--redesign textarea {
		height: 42px !important;
		min-height: 42px !important;
	}
	body[data-page='tournament-view'] .tfp-group-schedule-grid--redesign {
		grid-template-columns: 1fr !important;
		padding: 0 7px 7px !important;
	}
	body[data-page='tournament-view'] .tfp-group-schedule-card--redesign {
		grid-template-columns: 1fr 1fr !important;
	}
	.tfp-group-courts-field {
		grid-column: 1/-1 !important;
	}
	body[data-page='tournament-view'] .tfp-scheduler-actions--redesign {
		display: block !important;
	}
	.tfp-schedule-helper {
		margin-bottom: 6px !important;
	}
	.tfp-generate-schedule-btn {
		width: 100% !important;
	}
	body[data-page='tournament-view'] .tfp-schedule-summary-strip {
		grid-template-columns: 1fr 1fr !important;
	}

	body[data-page='tournament-view'] #schedule .league-section-head--schedule-export {
		align-items: flex-start !important;
	}
	body[data-page='tournament-view'] #schedule .league-section-head--schedule-export h2 {
		font-size: 17px !important;
	}
	body[data-page='tournament-view'] .tfp-schedule-studio {
		border-radius: 13px !important;
	}
	body[data-page='tournament-view'] .tfp-schedule-studio__summary {
		grid-template-columns: auto 1fr auto !important;
		padding: 8px !important;
	}
	body[data-page='tournament-view'] .tfp-schedule-studio__summary em {
		display: none !important;
	}
	body[data-page='tournament-view'] .tfp-schedule-studio__content {
		padding: 7px !important;
	}
	body[data-page='tournament-view'] .tfp-schedule-studio__head {
		align-items: flex-start !important;
		flex-direction: column !important;
		gap: 7px !important;
	}
	body[data-page='tournament-view'] .tfp-schedule-studio__actions {
		width: 100% !important;
		display: grid !important;
		grid-template-columns: 1fr 1fr 1fr !important;
	}
	.tfp-schedule-studio__actions > * {
		width: 100% !important;
	}
	.tfp-schedule-studio__actions form button {
		width: 100% !important;
	}
	body[data-page='tournament-view'] .tfp-schedule-board-controls {
		display: grid !important;
		grid-template-columns: 1fr 1fr !important;
		gap: 6px !important;
		padding: 7px !important;
	}
	body[data-page='tournament-view'] .tfp-schedule-board-controls label {
		width: auto !important;
	}
	body[data-page='tournament-view'] .tfp-schedule-board-controls .league-save-btn {
		grid-column: 1/-1 !important;
		width: 100% !important;
		margin: 0 !important;
		min-height: 34px !important;
	}
	body[data-page='tournament-view'] .tfp-schedule-board {
		grid-template-columns: 1fr !important;
		gap: 7px !important;
	}
	body[data-page='tournament-view'] .tfp-court-column--unscheduled {
		grid-column: auto !important;
	}
	body[data-page='tournament-view'] .tfp-court-column__head {
		min-height: 34px !important;
	}
	body[data-page='tournament-view'] .tfp-court-dropzone {
		padding: 5px !important;
		gap: 5px !important;
	}

	body[data-page='tournament-view'] .tfp-schedule-card {
		grid-template-columns: 15px 48px minmax(0, 1fr) auto !important;
		grid-template-areas: 'drag top players meta' 'drag move move meta' !important;
		min-height: 60px !important;
		padding: 6px !important;
		gap: 3px 5px !important;
		border-radius: 9px !important;
	}
	body[data-page='tournament-view'] .tfp-schedule-card__drag {
		font-size: 11px !important;
	}
	body[data-page='tournament-view'] .tfp-schedule-card__time {
		min-height: 20px !important;
		font-size: 8px !important;
	}
	body[data-page='tournament-view'] .tfp-schedule-card__players b {
		font-size: 8px !important;
	}
	body[data-page='tournament-view'] .tfp-schedule-card__meta {
		grid-template-columns: repeat(3, 20px) !important;
	}
	body[data-page='tournament-view'] .tfp-schedule-card__meta button {
		width: 20px !important;
		height: 20px !important;
		min-width: 20px !important;
		font-size: 8px !important;
	}
	body[data-page='tournament-view'] .tfp-card-mobile-move select {
		max-width: 108px !important;
		min-height: 21px !important;
		font-size: 7px !important;
	}

	body[data-page='tournament-view'] .tfp-public-schedule {
		grid-template-columns: 1fr !important;
		gap: 6px !important;
	}
	body[data-page='tournament-view'] .tfp-schedule-row {
		grid-template-columns: 39px 58px minmax(0, 1fr) 42px !important;
		grid-template-areas: 'time phase players score' 'actions actions actions actions' !important;
		gap: 3px !important;
		padding: 5px !important;
		min-height: 43px !important;
	}
	body[data-page='tournament-view'] .tfp-schedule-row time {
		grid-area: time !important;
	}
	.tfp-schedule-row__phase {
		grid-area: phase !important;
	}
	.tfp-schedule-row__players {
		grid-area: players !important;
	}
	.tfp-schedule-row__score {
		grid-area: score !important;
	}
	.tfp-schedule-row__actions {
		grid-area: actions !important;
		justify-content: flex-end !important;
	}
	body[data-page='tournament-view'] .tfp-schedule-row__players strong {
		font-size: 7.8px !important;
	}
}
body[data-page='tournament-view'] .tfp-schedule-card.tfp-card-just-moved {
	animation: tfpSchedulePulse 0.5s ease !important;
}
@keyframes tfpSchedulePulse {
	0% {
		box-shadow: 0 0 0 0 rgba(18, 104, 244, 0.28);
	}
	55% {
		box-shadow: 0 0 0 5px rgba(18, 104, 244, 0.1);
	}
	100% {
		box-shadow: 0 4px 12px rgba(17, 52, 101, 0.055);
	}
}

/* =========================================================
   FIX: czytelny przycisk rozwijania panelu harmonogramu
   ========================================================= */
body[data-page='tournament-view'] .tfp-schedule-studio__summary em {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-height: 30px !important;
	padding: 0 12px !important;
	border: 1px solid rgba(255, 255, 255, 0.22) !important;
	border-radius: 999px !important;
	background: linear-gradient(135deg, #175fd7 0%, #168ee9 100%) !important;
	color: #ffffff !important;
	font-size: 9px !important;
	line-height: 1 !important;
	font-weight: 900 !important;
	font-style: normal !important;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22) !important;
	box-shadow: 0 6px 15px rgba(23, 95, 215, 0.22) !important;
	white-space: nowrap !important;
	opacity: 1 !important;
	visibility: visible !important;
}
body[data-page='tournament-view'] .tfp-schedule-studio__summary:hover em,
body[data-page='tournament-view'] .tfp-schedule-studio__summary:focus-visible em {
	background: linear-gradient(135deg, #0f4fbe 0%, #0e7dd3 100%) !important;
	color: #ffffff !important;
}
body[data-page='tournament-view'] .tfp-schedule-studio__summary::after {
	margin-left: 2px !important;
	background: #0c55c7 !important;
	color: #fff !important;
}

@media (max-width: 768px) {
	body[data-page='tournament-view'] .tfp-schedule-studio__summary em {
		display: none !important;
	}
}

/* Harmonogram PRO — 7. pole: rotacja zawodników */
body[data-page='tournament-view'] .tfp-scheduler-grid--redesign label:nth-child(6) {
	width: 170px !important;
}
body[data-page='tournament-view'] .tfp-scheduler-grid--redesign label:nth-child(7) {
	width: 190px !important;
}
body[data-page='tournament-view'] .tfp-scheduler-grid--redesign label:nth-child(7) select {
	border-color: #bcd6ff !important;
	background: #f7fbff !important;
	color: #0d4fa8 !important;
	font-weight: 900 !important;
}
@media (max-width: 700px) {
	body[data-page='tournament-view'] .tfp-scheduler-grid--redesign label:nth-child(6),
	body[data-page='tournament-view'] .tfp-scheduler-grid--redesign label:nth-child(7) {
		grid-column: 1/-1 !important;
		width: auto !important;
	}
}

/* ======================================================================
   TFP SCHEDULE PAIRS — clean responsive fix
   Desktop zachowuje oryginalny układ. Mobile: pary jedna pod drugą,
   pojedyncze VS oraz akcje w górnym wierszu.
   ====================================================================== */

/* Nowy markup nazw zawodników nie może dziedziczyć 6px z ogólnego
   .tfp-schedule-card__players span (ten rozmiar jest tylko dla etykiety VS). */
body[data-page='tournament-view'] #schedule .tfp-schedule-card__player,
body[data-page='tournament-view'] #schedule .tfp-schedule-card__player .tfp-schedule-player,
body[data-page='tournament-view'] #schedule .tfp-schedule-card__player .tfp-pair-stack,
body[data-page='tournament-view'] #schedule .tfp-schedule-card__player .tfp-pair-member,
body[data-page='tournament-view'] #schedule .tfp-schedule-card__player .tfp-player-link {
  color: #132844 !important;
  font-size: 8.6px !important;
  line-height: 1.16 !important;
  font-weight: 900 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

body[data-page='tournament-view'] #schedule .tfp-schedule-card__player .tfp-pair-stack {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 1px !important;
  width: 100% !important;
}

body[data-page='tournament-view'] #schedule .tfp-schedule-card__player .tfp-pair-member,
body[data-page='tournament-view'] #schedule .tfp-schedule-card__player .tfp-player-link {
  display: block !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}

/* Tylko bezpośredni span pomiędzy stronami meczu jest etykietą VS. */
body[data-page='tournament-view'] #schedule .tfp-schedule-card__players > span {
  color: #a0aec0 !important;
  font-size: 6px !important;
  line-height: 1 !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
}

/* Publiczny harmonogram — zgodność nowego markup z dotychczasowym desktopem. */
body[data-page='tournament-view'] #schedule .tfp-schedule-row__player,
body[data-page='tournament-view'] #schedule .tfp-schedule-row__player .tfp-schedule-player,
body[data-page='tournament-view'] #schedule .tfp-schedule-row__player .tfp-pair-stack,
body[data-page='tournament-view'] #schedule .tfp-schedule-row__player .tfp-pair-member,
body[data-page='tournament-view'] #schedule .tfp-schedule-row__player .tfp-player-link {
  min-width: 0 !important;
  max-width: 100% !important;
  font-size: 8.5px !important;
  line-height: 1.14 !important;
  font-weight: 850 !important;
  text-transform: none !important;
}

body[data-page='tournament-view'] #schedule .tfp-schedule-row__player .tfp-pair-stack {
  display: inline-flex !important;
  flex-direction: column !important;
  gap: 1px !important;
  max-width: 100% !important;
}

body[data-page='tournament-view'] #schedule .tfp-schedule-row__player .tfp-pair-member,
body[data-page='tournament-view'] #schedule .tfp-schedule-row__player .tfp-player-link {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}

/* DESKTOP — nie zmieniamy siatki kart ani panelu właściciela. */
@media (min-width: 769px) {
  body[data-page='tournament-view'] #schedule .tfp-schedule-row__players {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 3px !important;
    min-width: 0 !important;
  }

  body[data-page='tournament-view'] #schedule .tfp-schedule-row__player--a {
    text-align: right !important;
  }

  body[data-page='tournament-view'] #schedule .tfp-schedule-row__player--a .tfp-pair-stack {
    align-items: flex-end !important;
    text-align: right !important;
  }

  body[data-page='tournament-view'] #schedule .tfp-schedule-row__player--b {
    text-align: left !important;
  }

  body[data-page='tournament-view'] #schedule .tfp-schedule-row__player--b .tfp-pair-stack {
    align-items: flex-start !important;
    text-align: left !important;
  }

  body[data-page='tournament-view'] #schedule .tfp-schedule-row__players em {
    display: block !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #9ba9bb !important;
    font-size: 6px !important;
    line-height: 1 !important;
    font-style: normal !important;
    font-weight: 800 !important;
    text-align: center !important;
    text-transform: lowercase !important;
  }

  body[data-page='tournament-view'] #schedule .tfp-schedule-row__players em::before {
    content: none !important;
    display: none !important;
  }

  body[data-page='tournament-view'] #schedule .tfp-schedule-card {
    min-height: 65px !important;
    height: auto !important;
  }

  body[data-page='tournament-view'] #schedule .tfp-schedule-card__players {
    align-content: center !important;
    gap: 2px !important;
  }
}

/* MOBILE — zwarty układ 2-rzędowy:
   góra: godzina + grupa + wynik + Sędzia/Trener
   dół: para A + VS + para B */
@media (max-width: 768px) {
  body[data-page='tournament-view'] #schedule .tfp-schedule-row {
    grid-template-columns: 40px 56px minmax(12px, 1fr) auto !important;
    grid-template-areas:
      'time phase score actions'
      'players players players players' !important;
    align-items: center !important;
    column-gap: 4px !important;
    row-gap: 3px !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 4px 5px !important;
  }

  body[data-page='tournament-view'] #schedule .tfp-schedule-row time {
    grid-area: time !important;
    align-self: center !important;
  }

  body[data-page='tournament-view'] #schedule .tfp-schedule-row__phase {
    grid-area: phase !important;
    align-self: center !important;
    justify-self: start !important;
  }

  body[data-page='tournament-view'] #schedule .tfp-schedule-row__score {
    grid-area: score !important;
    align-self: center !important;
    justify-self: end !important;
    width: auto !important;
    min-width: 0 !important;
    font-size: 7px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  body[data-page='tournament-view'] #schedule .tfp-schedule-row__actions {
    grid-area: actions !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 3px !important;
    min-width: max-content !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body[data-page='tournament-view'] #schedule .tfp-match-panel-link {
    min-height: 19px !important;
    height: 19px !important;
    padding: 0 5px !important;
    border-radius: 6px !important;
    font-size: 6px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  body[data-page='tournament-view'] #schedule .tfp-schedule-row__players {
    grid-area: players !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 5px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 1px 1px !important;
  }

  body[data-page='tournament-view'] #schedule .tfp-schedule-row__player,
  body[data-page='tournament-view'] #schedule .tfp-schedule-row__player .tfp-schedule-player,
  body[data-page='tournament-view'] #schedule .tfp-schedule-row__player .tfp-pair-stack,
  body[data-page='tournament-view'] #schedule .tfp-schedule-row__player .tfp-pair-member,
  body[data-page='tournament-view'] #schedule .tfp-schedule-row__player .tfp-player-link {
    font-size: 8.6px !important;
    line-height: 1.16 !important;
    font-weight: 800 !important;
  }

  body[data-page='tournament-view'] #schedule .tfp-schedule-row__player--a {
    text-align: right !important;
  }

  body[data-page='tournament-view'] #schedule .tfp-schedule-row__player--a .tfp-pair-stack {
    align-items: flex-end !important;
    text-align: right !important;
  }

  body[data-page='tournament-view'] #schedule .tfp-schedule-row__player--b {
    text-align: left !important;
  }

  body[data-page='tournament-view'] #schedule .tfp-schedule-row__player--b .tfp-pair-stack {
    align-items: flex-start !important;
    text-align: left !important;
  }

  body[data-page='tournament-view'] #schedule .tfp-schedule-row__players em {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    justify-self: center !important;
    width: 22px !important;
    height: 17px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 999px !important;
    background: #eef3f8 !important;
    color: #6b7b90 !important;
    font-size: 6px !important;
    line-height: 1 !important;
    font-style: normal !important;
    font-weight: 1000 !important;
    text-transform: uppercase !important;
  }

  body[data-page='tournament-view'] #schedule .tfp-schedule-row__players em::before {
    content: none !important;
    display: none !important;
  }

  /* Panel właściciela na mobile — pełne nazwiska, bez dziedziczenia 6px. */
  body[data-page='tournament-view'] #schedule .tfp-schedule-card {
    height: auto !important;
  }

  body[data-page='tournament-view'] #schedule .tfp-schedule-card__player,
  body[data-page='tournament-view'] #schedule .tfp-schedule-card__player .tfp-schedule-player,
  body[data-page='tournament-view'] #schedule .tfp-schedule-card__player .tfp-pair-stack,
  body[data-page='tournament-view'] #schedule .tfp-schedule-card__player .tfp-pair-member,
  body[data-page='tournament-view'] #schedule .tfp-schedule-card__player .tfp-player-link {
    font-size: 8px !important;
    line-height: 1.14 !important;
  }
}
