/* Match shop accent (#ff6600) site-wide — was softer Playways orange #f28e44 */
:root {
	--tl-accent: #ff6600;
	--tl-accent-dark: #e65c00;
}

.tl-unapproved,
tr.tl-unapproved,
.tl-card.tl-unapproved,
.tl-fixture-row.tl-unapproved,
.tl-cell.tl-unapproved a {
	color: #b00020;
}

.tl-cell.tl-unapproved {
	background: #ffe8e8;
}

/* Overdue unplayed fixtures highlight (Super Users and League Admins only) */
tr.tl-overdue,
tr.tl-overdue td {
	background-color: #fffbeb !important;
}

.tl-fixture-card.is-overdue {
	border-left-color: #d97706;
	background: #fffbeb;
}

.tl-card.is-overdue {
	border: 2px solid #f59e0b;
	background: #fffbeb;
}

.tl-cell.is-overdue {
	background: #fef3c7 !important;
	border: 1px dashed #d97706 !important;
}

.tl-cell-schedule.is-overdue {
	color: #92400e !important;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	justify-content: center;
}

.tl-overdue-tag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 15px;
	height: 15px;
	border-radius: 50%;
	background: #d97706;
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}

.tl-badge-overdue {
	font-size: 0.72rem;
	margin-top: 3px;
	padding: 2px 6px;
	background-color: #fef3c7 !important;
	color: #92400e !important;
	border: 1px solid #f59e0b;
}

/* Overdue unplayed fixtures - Acknowledged / Being dealt with (Super Users and League Admins only) */
tr.tl-overdue-ack,
tr.tl-overdue-ack td {
	background-color: #faf8ff !important;
}

.tl-fixture-card.is-overdue-ack {
	border-left-color: #7100e2;
	background: #faf8ff;
}

.tl-card.is-overdue-ack {
	border: 2px solid #7100e2;
	background: #faf8ff;
}

.tl-cell.is-overdue-ack {
	background: #f5f3ff !important;
	border: 1px dashed #7100e2 !important;
}

.tl-cell-schedule.is-overdue-ack {
	color: #5800b3 !important;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	justify-content: center;
}

.tl-overdue-ack-tag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 15px;
	height: 15px;
	border-radius: 50%;
	background: #7100e2;
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}

.tl-badge-overdue-ack {
	font-size: 0.72rem;
	margin-top: 3px;
	padding: 2px 7px;
	background-color: #f3e8ff !important;
	color: #5800b3 !important;
	border: 1px solid #7100e2;
	font-weight: 600;
	border-radius: 4px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.tl-ack-symbol {
	font-weight: bold;
	font-size: 0.85rem;
	line-height: 1;
}

.tl-overdue-ack-box {
	margin-top: 6px;
}

.tl-overdue-ack-note {
	display: inline-block;
	font-size: 0.75rem;
	color: #4b5563;
	background: #f3e8ff;
	border: 1px solid #d8b4fe;
	border-radius: 4px;
	padding: 2px 8px;
}

.tl-league {
	background: #fff;
	border-radius: 0.5rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	padding: 1rem 1.25rem 1.5rem;
}

.tl-league-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem;
	margin-bottom: 0.75rem;
}

/* Brand + league name on one row, same size, vertically centred */
.tl-league-header > div {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.85rem;
	min-width: 0;
}

.tl-league-org {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin: 0;
	color: #6b2d8b;
	font-size: clamp(1.55rem, 3.2vw, 2.15rem);
	font-weight: 700;
	line-height: 1.15;
}

.tl-league-org-logo {
	width: 3.35rem;
	height: 3.35rem;
	object-fit: contain;
	flex: 0 0 auto;
}

.tl-league-title {
	margin: 0;
	padding: 0;
	font-size: clamp(1.55rem, 3.2vw, 2.15rem);
	font-weight: 700;
	line-height: 1.15;
	color: #222;
}

.tl-league-header > div > .tl-stats-sub,
.tl-league-header > div > .text-muted {
	flex: 1 0 100%;
}

.tl-team-link {
	color: inherit;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
	font-weight: 600;
}

.tl-team-link:hover {
	color: #6b2d8b;
}

.tl-fixture-card-meta {
	text-decoration: none;
}

.tl-league-settings {
	font-size: 1.5rem;
	text-decoration: none;
	color: #222;
	line-height: 1;
	padding: 0.25rem;
}

.tl-league-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.25rem;
	border-bottom: 1px solid #e5e7eb;
	margin-bottom: 1rem;
}

.tl-league-tab {
	display: inline-block;
	padding: 0.65rem 0;
	text-decoration: none;
	color: #444;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	font-size: 0.85rem;
	border-bottom: 3px solid transparent;
}

.tl-league-tab.is-active {
	color: #111;
	border-bottom-color: #111;
}

.tl-league-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.tl-league-filters .form-select {
	min-width: 10rem;
	padding: 0.45rem 0.7rem;
	border: 1px solid #ced4da;
	border-radius: 0.35rem;
	background: #fff;
}

.tl-empty {
	color: #666;
	padding: 1rem 0;
}

.tl-standings-scroll {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid #dbe3ea;
	border-radius: 0.4rem;
	background: #fff;
}

.tl-standings-table {
	width: max-content;
	min-width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	font-size: 0.92rem;
}

.tl-standings-table thead th {
	background: var(--tl-accent, #ff6600);
	color: #fff;
	font-weight: 700;
	padding: 0.65rem 0.45rem;
	border: 0;
	border-bottom: 2px solid var(--tl-accent-dark, #e65c00);
	text-align: center;
	white-space: nowrap;
	letter-spacing: 0.02em;
}

.tl-standings-table th,
.tl-standings-table td {
	padding: 0.55rem 0.45rem;
	border-bottom: 1px solid #e8eef3;
	text-align: center;
	background: #fff;
	white-space: nowrap;
}

.tl-standings-table tbody tr:nth-child(even) td {
	background: #f8fbfd;
}

.tl-standings-table tbody tr:hover td {
	background: #f3fbfe;
}

.tl-team-compact {
	display: none;
}

.tl-team-full {
	display: inline;
}

.tl-standings-table .tl-sticky-team {
	text-align: left;
	min-width: 9rem;
	font-weight: 600;
}

.tl-standings-table .tl-sticky-rank,
.tl-standings-table .tl-sticky-team,
.tl-standings-table .tl-sticky-pts {
	position: sticky;
	z-index: 2;
}

.tl-standings-table .tl-sticky-rank {
	left: 0;
	min-width: 2.25rem;
	width: 2.25rem;
	color: #6b7280;
	font-weight: 700;
	box-shadow: 1px 0 0 #e8eef3;
}

.tl-standings-table .tl-sticky-team {
	left: 2.25rem;
	box-shadow: 6px 0 8px -6px rgba(0, 0, 0, 0.16);
}

.tl-standings-table .tl-sticky-pts {
	right: 0;
	min-width: 3.25rem;
	font-weight: 800;
	color: #0b4f66;
	background: #e8f7fc;
	box-shadow: -6px 0 8px -6px rgba(0, 0, 0, 0.16);
}

.tl-standings-table tbody tr:nth-child(even) .tl-sticky-pts {
	background: #dff3fa;
}

.tl-standings-table tbody tr:hover .tl-sticky-pts {
	background: #d2effa;
}

.tl-standings-table thead .tl-sticky-rank,
.tl-standings-table thead .tl-sticky-team,
.tl-standings-table thead .tl-sticky-pts {
	background: var(--tl-accent, #ff6600);
	color: #fff;
	z-index: 3;
}

.tl-standings-table .tl-team-link {
	color: #0b4f66;
	text-decoration: none;
	border-bottom: 1px solid rgba(0, 174, 239, 0.45);
}

.tl-standings-table .tl-team-link:hover {
	color: #00aeef;
	border-bottom-color: #00aeef;
}

.tl-fixture-day {
	margin-bottom: 1.1rem;
}

.tl-fixture-day-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin: 0 0 0.45rem;
	padding: 0.5rem 0.8rem;
	background: var(--tl-accent, #ff6600);
	color: #fff;
	font-size: 0.95rem;
	font-weight: 700;
	border-radius: 0.35rem;
}

.tl-fixture-day-title small {
	font-weight: 700;
	opacity: 0.9;
}

.tl-fixture-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tl-fixture-card {
	display: block;
	text-decoration: none;
	color: inherit;
	background: #fff;
	border: 1px solid #dbe3ea;
	border-left: 4px solid #00aeef;
	border-radius: 0.4rem;
	padding: 0.7rem 0.85rem;
	margin-bottom: 0.45rem;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.tl-fixture-card:hover {
	background: #f3fbfe;
	border-color: #00aeef;
}

.tl-fixture-card.has-score {
	border-left-color: #22c55e;
}

.tl-fixture-card.is-pending {
	border-left-color: #c62828;
	background: #fff7f7;
}

.tl-fixture-card-main {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 0.55rem;
	align-items: start;
	font-weight: 700;
}

.tl-fixture-side {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

.tl-fixture-side-away {
	align-items: flex-end;
	text-align: right;
}

.tl-fixture-side-label {
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #6b7280;
	line-height: 1.2;
}

.tl-fixture-side-home .tl-fixture-side-label {
	color: #0369a1;
}

.tl-fixture-side-away .tl-fixture-side-label {
	color: #9a3412;
}

.tl-fixture-card .tl-team-away {
	text-align: right;
}

.tl-fixture-mid {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 0.12rem;
	text-decoration: none;
	color: inherit;
	text-align: center;
	/* Align "Vs" with team names under Home/Away labels */
	padding-top: 0.95rem;
}

.tl-fixture-vs-label {
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1.2;
	color: #111827;
}

.tl-fixture-vs,
.tl-fixture-score {
	display: inline-block;
	min-width: 3.6rem;
	text-align: center;
	font-variant-numeric: tabular-nums;
	border-radius: 0.4rem;
	padding: 0.3rem 0.55rem;
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1.25;
	white-space: nowrap;
}

.tl-fixture-vs {
	background: #00aeef;
	color: #fff;
	cursor: help;
}

.tl-fixture-score {
	background: #e8f8ee;
	color: #166534;
}

.tl-fixture-card.is-pending .tl-fixture-score {
	background: #fde8e8;
	color: #c62828;
}

.tl-fixture-card-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.75rem;
	margin-top: 0.4rem;
	font-size: 0.78rem;
	color: #6b7280;
}

.tl-fixture-open {
	color: #00aeef;
	font-weight: 700;
	white-space: nowrap;
}

.tl-fixture-open::after {
	content: " >";
}

.tl-results-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid #dbe3ea;
	border-radius: 0.4rem;
	background: #fff;
}

.tl-grid-hint {
	font-size: 0.85rem;
	color: #666;
	margin: 0 0 0.75rem;
}

.tl-fixture-progress {
	margin: 0.85rem 0 0;
	padding: 0.65rem 0.8rem;
	border-radius: 8px;
	background: #f4f1f8;
	border: 1px solid #e4ddea;
	font-size: 0.85rem;
	color: #4a3a5c;
}

.tl-fixture-progress__division {
	margin: 0;
	font-weight: 600;
	font-size: 0.85rem;
	color: #4a3a5c;
}

.tl-fixture-progress__season {
	margin: 0.35rem 0 0;
	font-size: 0.85rem;
	font-weight: 400;
	color: #4a3a5c;
}

.tl-fixture-progress__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.85rem;
	margin: 0.4rem 0 0;
	padding: 0;
	list-style: none;
	font-size: 0.85rem;
	color: #4a3a5c;
}

.tl-fixture-progress__list .is-current {
	font-weight: 700;
	color: #7100e2;
}

.tl-grid-hint .tl-win {
	color: #16a34a;
	font-size: 1.05em;
	vertical-align: -0.1em;
}

.tl-results-grid {
	border-collapse: collapse;
	font-size: 0.78rem;
	min-width: 640px;
	width: 100%;
}

.tl-results-grid th,
.tl-results-grid td {
	border: 1px solid #e8eef3;
	padding: 0.4rem 0.35rem;
	text-align: center;
	vertical-align: middle;
	min-width: 5.5rem;
	background: #fff;
}

.tl-results-grid thead th {
	background: var(--tl-accent, #ff6600);
	color: #fff;
	font-weight: 700;
	max-width: 7rem;
	white-space: normal;
	border-color: var(--tl-accent-dark, #e65c00);
}

.tl-results-grid thead th .tl-team-link {
	color: #fff;
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}

.tl-results-grid thead th .tl-team-link:hover {
	color: #e8f7fc;
	border-bottom-color: #e8f7fc;
}

.tl-results-grid tbody th {
	background: #e8f7fc;
	color: #0b4f66;
	text-align: left;
	position: sticky;
	left: 0;
	z-index: 1;
	max-width: 8rem;
	font-weight: 700;
	border-color: #d5eef7;
}

.tl-results-grid tbody th .tl-team-link {
	color: #0b4f66;
	text-decoration: none;
	border-bottom: 1px solid rgba(0, 174, 239, 0.45);
}

.tl-results-grid tbody th .tl-team-link:hover {
	color: #00aeef;
	border-bottom-color: #00aeef;
}

.tl-results-grid tbody tr:nth-child(even) td {
	background: #f8fbfd;
}

.tl-results-grid tbody tr:hover td {
	background: #f3fbfe;
}

.tl-corner {
	min-width: 8rem !important;
	background: var(--tl-accent, #ff6600) !important;
}

.tl-diag {
	background: #eef2f5 !important;
}

.tl-empty-cell {
	background: #fff;
}

.tl-cell-score {
	display: block;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.tl-cell-games {
	display: block;
	font-size: 0.7rem;
	color: #555;
	margin-top: 0.15rem;
}

.tl-cell-schedule {
	display: inline-block;
	background: #00aeef;
	color: #fff !important;
	font-weight: 700;
	font-size: 0.78rem;
	padding: 0.45rem 0.65rem;
	border-radius: 0.45rem;
	line-height: 1.2;
	text-decoration: none !important;
	white-space: nowrap;
}

.tl-cell-schedule:hover {
	background: #0095cc;
	color: #fff !important;
}

.tl-cell-result {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.05rem;
	text-decoration: none !important;
	color: #222;
	font-size: 0.72rem;
	line-height: 1.25;
	font-variant-numeric: tabular-nums;
}

.tl-cell-result-main {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.15rem;
}

.tl-cell-result.is-pending,
.tl-cell-result.is-pending .tl-cell-scoreline {
	color: #c62828;
}

.tl-cell-scoreline {
	display: inline;
	font-weight: 700;
}

.tl-grid-admin {
	margin: 0 0 0.75rem;
}

.tl-edit-toggle {
	display: inline-block;
	font-size: 0.85rem;
	font-weight: 700;
	color: #00aeef;
	text-decoration: none;
}

.tl-edit-toggle:hover {
	text-decoration: underline;
}

.tl-win {
	display: inline-block;
	color: #16a34a;
	font-size: 1.15rem;
	font-weight: 800;
	line-height: 1;
	margin: 0 0.15rem;
	vertical-align: -0.05em;
}

.tl-win-home {
	margin: 0;
}

.tl-win-away {
	margin: 0;
	line-height: 1;
}

.tl-about {
	max-width: 52rem;
	background: #fff;
	border: 1px solid #dbe3ea;
	border-radius: 0.4rem;
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.tl-about-title {
	margin: 0;
	padding: 0.65rem 0.9rem;
	background: var(--tl-accent, #ff6600);
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
}

.tl-about-body {
	padding: 1rem 1.1rem 1.25rem;
	line-height: 1.65;
	color: #222;
	font-size: 0.95rem;
}

.tl-about-body > *:first-child {
	margin-top: 0;
}

.tl-about-body > *:last-child {
	margin-bottom: 0;
}

.tl-about-body h1,
.tl-about-body h2,
.tl-about-body h3,
.tl-about-body h4 {
	color: #0b4f66;
	margin: 1.25rem 0 0.5rem;
	line-height: 1.3;
}

.tl-about-body h2 {
	padding-bottom: 0.35rem;
	border-bottom: 3px solid #00aeef;
}

.tl-about-body a {
	color: #00aeef;
	font-weight: 600;
	text-decoration: none;
}

.tl-about-body a:hover {
	text-decoration: underline;
	color: #0095cc;
}

.tl-about-body ul,
.tl-about-body ol {
	padding-left: 1.25rem;
}

.tl-about-body li {
	margin: 0.25rem 0;
}

.tl-about-body table {
	width: 100%;
	border-collapse: collapse;
	margin: 0.85rem 0;
	font-size: 0.9rem;
}

.tl-about-body th {
	background: var(--tl-accent, #ff6600);
	color: #fff;
	padding: 0.45rem 0.55rem;
	text-align: left;
}

.tl-about-body td {
	border-bottom: 1px solid #e8eef3;
	padding: 0.45rem 0.55rem;
}

.tl-about-body tr:nth-child(even) td {
	background: #f8fbfd;
}

.tl-rubbers input.form-control {
	display: inline-block;
	width: 3.5rem;
	margin-right: 0.25rem;
}

.tl-schedule-form {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	align-items: stretch;
}

.tl-schedule-form-compact {
	margin-top: 0.35rem;
	padding-top: 0.35rem;
	border-top: 1px dashed #ddd;
}

.tl-schedule-date,
.tl-schedule-time {
	width: 100%;
	font-size: 0.72rem;
	padding: 0.15rem 0.25rem;
	border: 1px solid #cbd5e1;
	border-radius: 0.25rem;
}

.tl-schedule-actions {
	display: flex;
	gap: 0.25rem;
	justify-content: space-between;
	align-items: center;
}

.tl-schedule-save {
	font-size: 0.72rem;
	padding: 0.25rem 0.5rem;
	border: 0;
	border-radius: 0.3rem;
	background: #00aeef;
	color: #fff;
	cursor: pointer;
	font-weight: 700;
}

.tl-schedule-scorecard {
	font-size: 0.72rem;
	color: #00aeef;
	font-weight: 600;
}

.visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

/* Playwaze-style scorecard — fixed home(left) / away(right) layout */
.tl-scorecard {
	width: 100%;
	max-width: 860px;
	margin: 0 auto;
	background: #fff;
	border-radius: 0.4rem;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0,0,0,.1);
	font-size: 15px;
}

.tl-scorecard > .tl-sc-header,
header.tl-sc-header,
.tl-sc-header {
	display: grid;
	grid-template-columns: 1fr auto 1fr auto;
	align-items: center;
	gap: 0.5rem;
	background: #00aeef !important;
	background-color: #00aeef !important;
	color: #fff !important;
	padding: 0.85rem 1rem;
	min-height: 3.25rem;
}

.tl-sc-header-home { font-weight: 700; text-align: left; }
.tl-sc-header-away { font-weight: 700; text-align: right; }
.tl-sc-header-vs { opacity: .85; font-weight: 600; }
.tl-sc-back,
.tl-sq-back {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	background: #22c55e;
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 700;
	border: 1px solid #16a34a;
	padding: 0.4rem 0.75rem;
	border-radius: 0.3rem;
	white-space: nowrap;
	line-height: 1.2;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.tl-sc-back:hover,
.tl-sc-back:focus,
.tl-sq-back:hover,
.tl-sq-back:focus {
	background: #16a34a;
	border-color: #15803d;
	color: #fff;
}

.tl-sc-alert {
	background: #fff3cd;
	color: #664d03;
	padding: 0.75rem 1rem;
	font-size: 0.9rem;
}

.tl-sc-alert a { margin-left: 0.5rem; font-weight: 700; }

.tl-sc-alert.tl-sc-alert-approved {
	background: #f5f3ff;
	color: #5800b3;
	border-left: 4px solid #7100e2;
	font-weight: 500;
}

.tl-sc-note {
	background: #eef7fb;
	color: #0b4f66;
	padding: 0.65rem 1rem;
	font-size: 0.88rem;
}

.tl-scorecard-form { padding: 0.75rem 1rem 1.25rem; }

.tl-sc-toolbar {
	display: flex;
	justify-content: flex-end;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
}

.tl-sc-icon-btn {
	width: 2.4rem;
	height: 2.4rem;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	font-size: 1rem;
}

.tl-sc-btn-save { background: #22c55e; }
.tl-sc-btn-submit { background: #00aeef; color: #fff; }
.tl-sc-btn-approve { background: #16a34a; color: #fff; }
.tl-sc-btn-reset { background: #dc2626; color: #fff; }

.tl-sc-meta {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.6rem;
	margin-bottom: 0.85rem;
}

.tl-sc-meta label,
.tl-sc-notes {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	font-size: 0.78rem;
	font-weight: 700;
}

.tl-sc-meta input,
.tl-player-input,
.tl-sc-sets input,
.tl-sc-totals input,
.tl-sc-notes textarea {
	font-weight: 400;
	border: 1px solid #cfd4da;
	border-radius: 0.3rem;
	padding: 0.4rem 0.45rem;
	font-size: 0.9rem;
	width: 100%;
	background: #fff;
	box-sizing: border-box;
}

.tl-sc-section { margin-bottom: 0.65rem; border: 0; }
.tl-sc-section > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	background: var(--tl-accent, #ff6600);
	color: #fff;
	font-weight: 700;
	padding: 0.55rem 0.8rem;
	cursor: pointer;
	list-style: none;
}
.tl-sc-section > summary::-webkit-details-marker,
.tl-sc-section > summary::marker { display: none; content: ''; }
.tl-sc-section > summary::after {
	content: "^";
	color: #fff;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1;
	flex: 0 0 auto;
	transition: transform 0.15s ease;
}
.tl-sc-section:not([open]) > summary::after {
	transform: rotate(180deg);
}
.tl-sc-section[open] > summary { border-radius: 0; }
.tl-sc-section > *:not(summary) { padding: 0.45rem 0.25rem 0.25rem; }

/* Always home left / away right — do not stack by breakpoint */
.tl-sc-sides {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
	align-items: start;
}

.tl-sc-rubber-players {
	grid-template-columns: 1fr 38px 1fr;
	align-items: center;
}

.tl-sc-home-col,
.tl-sc-away-col {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	min-width: 0;
}

.tl-sc-home-col strong,
.tl-sc-away-col strong {
	font-size: 0.85rem;
	margin-bottom: 0.1rem;
}

.tl-sc-vs-col {
	text-align: center;
	font-weight: 700;
	color: #666;
}

.tl-sc-help {
	font-size: 0.78rem;
	color: #555;
	margin: 0.35rem 0 0;
}

.tl-sc-players-help {
	margin: 0.35rem 0 0;
	padding: 0.28rem 0.5rem;
	background: #f3fbfe;
	border-left: 3px solid #00aeef;
	border-radius: 0.25rem;
	font-size: 0.78rem;
	line-height: 1.3;
	color: #334155;
}

.tl-sc-rubber {
	border-bottom: 1px solid #e5e7eb;
	padding: 0.45rem 0;
}

.tl-sc-rubber.is-invalid-rubber {
	background: #fff5f5;
	border: 1px solid #ef4444;
	border-radius: 0.4rem;
	padding: 0.45rem 0.5rem;
	margin-bottom: 0.35rem;
}

.tl-lineup-slot {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.35rem;
	margin-bottom: 0;
}

.tl-lineup-slot .tl-player-input,
.tl-rubber-player-slot .tl-player-input {
	flex: 1 1 auto;
	min-width: 0;
}

.tl-player-combo {
	position: relative;
	display: flex;
	align-items: center;
	flex: 1 1 auto;
	min-width: 0;
}

.tl-player-combo .tl-lineup-input {
	width: 100%;
	padding-right: 3.1rem;
}

.tl-combo-clear,
.tl-combo-toggle {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	border: 0;
	background: transparent;
	color: #64748b;
	cursor: pointer;
	padding: 0.15rem 0.3rem;
	font-size: 0.9rem;
	line-height: 1;
	border-radius: 0.2rem;
}

.tl-combo-clear {
	right: 1.55rem;
	font-size: 1.05rem;
	font-weight: 700;
}

.tl-combo-toggle {
	right: 0.25rem;
	color: #00aeef;
	font-size: 0.85rem;
}

.tl-combo-clear:hover,
.tl-combo-toggle:hover {
	background: #e2e8f0;
	color: #0f172a;
}

.tl-combo-clear[hidden],
.tl-combo-menu[hidden] {
	display: none !important;
}

.tl-combo-menu {
	position: absolute;
	top: calc(100% + 2px);
	left: 0;
	right: 0;
	z-index: 60;
	max-height: 210px;
	overflow-y: auto;
	background: #fff;
	border: 1px solid #00aeef;
	border-radius: 0.3rem;
	box-shadow: 0 6px 16px rgba(15, 23, 42, 0.15);
	display: flex;
	flex-direction: column;
}

.tl-combo-option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	text-align: left;
	border: 0;
	border-bottom: 1px solid #f1f5f9;
	background: #fff;
	color: #0f172a;
	padding: 0.42rem 0.6rem;
	font-size: 0.86rem;
	cursor: pointer;
}

.tl-combo-option:last-child {
	border-bottom: 0;
}

.tl-combo-option:hover {
	background: #e0f6fe;
	color: #0b4f66;
}

.tl-combo-option.is-selected {
	background: #f0f9ff;
	font-weight: 700;
	color: #00aeef;
}

.tl-combo-option.is-used-elsewhere {
	color: #94a3b8;
}
.tl-combo-option.is-used-elsewhere::after {
	content: "selected";
	font-size: 0.7rem;
	color: #94a3b8;
	font-style: italic;
}

.tl-role-badge,
.tl-rubber-role-tag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.1rem;
	padding: 0.18rem 0.4rem;
	background: #00aeef;
	color: #fff;
	font-size: 0.74rem;
	font-weight: 700;
	border-radius: 0.25rem;
	flex: 0 0 auto;
	cursor: pointer;
	line-height: 1.2;
}

.tl-sc-rubber-header {
	display: flex;
	flex-direction: row;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin-bottom: 0.35rem;
	padding: 0.25rem 0.5rem;
	background: #f3fbfe;
	border-left: 3px solid #00aeef;
	border-radius: 0.25rem;
}

.tl-sc-rubber-title {
	font-size: 0.86rem;
	font-weight: 700;
	color: #0b4f66;
}

.tl-sc-rubber-desc {
	font-size: 0.78rem;
	color: #334155;
	font-weight: 600;
}

.tl-rubber-player-slot {
	display: flex;
	align-items: center;
	gap: 0.35rem;
}

.tl-player-input.is-auto-populated {
	background: #f8fafc;
	color: #1e293b;
	font-weight: 600;
}

.tl-sc-set-block.has-error .tl-sc-set input,
.tl-sc-set-block.has-error .tl-sc-tb input {
	border: 2px solid #dc2626;
	background: #fef2f2;
	color: #991b1b;
}

.tl-sc-points-banner {
	border-radius: 0.35rem;
	padding: 0.4rem 0.65rem;
	margin-bottom: 0.5rem;
	border: 1px solid #cbd5e1;
	background: #f8fafc;
}

.tl-sc-points-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.15rem;
}

.tl-sc-points-badge {
	display: inline-block;
	padding: 0.12rem 0.45rem;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	background: #00aeef;
	color: #fff;
}

.tl-sc-points-score {
	font-size: 0.86rem;
	font-weight: 700;
	color: #0f172a;
}

.tl-sc-points-message {
	font-size: 0.78rem;
	color: #334155;
}

.tl-sc-points-banner.is-complete {
	background: #f0fdf4;
	border-color: #22c55e;
}
.tl-sc-points-banner.is-complete .tl-sc-points-badge {
	background: #16a34a;
}
.tl-sc-points-banner.is-complete .tl-sc-points-message {
	color: #14532d;
	font-weight: 600;
}

.tl-sc-points-banner.is-incomplete {
	background: #fffbeb;
	border-color: #f59e0b;
}
.tl-sc-points-banner.is-incomplete .tl-sc-points-badge {
	background: #d97706;
}
.tl-sc-points-banner.is-incomplete .tl-sc-points-message {
	color: #78350f;
}

.tl-sc-points-banner.is-error {
	background: #fef2f2;
	border-color: #ef4444;
	border-width: 2px;
}
.tl-sc-points-banner.is-error .tl-sc-points-badge {
	background: #dc2626;
}
.tl-sc-points-banner.is-error .tl-sc-points-score,
.tl-sc-points-banner.is-error .tl-sc-points-message {
	color: #991b1b;
	font-weight: 700;
}

.tl-sc-points-banner.is-walkover {
	background: #eff6ff;
	border-color: #3b82f6;
}
.tl-sc-points-banner.is-walkover .tl-sc-points-badge {
	background: #2563eb;
}

.tl-sc-sets {
	margin-top: 0.35rem;
	display: grid;
	gap: 0.3rem;
	justify-items: center;
}

.tl-sc-set-block {
	display: grid;
	gap: 0.2rem;
	justify-items: center;
}

.tl-sc-set,
.tl-sc-tb {
	display: grid;
	grid-template-columns: 72px 64px 72px;
	gap: 0.45rem;
	align-items: center;
}

/* Author display:grid must not override the HTML hidden attribute. */
.tl-sc-tb[hidden] {
	display: none !important;
}

.tl-sc-set span,
.tl-sc-tb span {
	text-align: center;
	font-size: 0.8rem;
	font-weight: 700;
}

.tl-sc-tb span {
	font-size: 0.72rem;
	color: #555;
}

.tl-sc-set input,
.tl-sc-tb input {
	text-align: center;
	width: 72px;
}

.tl-sc-tb input {
	width: 64px;
	background: #f8fafc;
}

.tl-sc-calc {
	display: block;
	width: 100%;
	background: #00aeef;
	color: #fff;
	border: 0;
	border-radius: 0.35rem;
	padding: 0.75rem 1rem;
	font-weight: 700;
	font-size: 1rem;
	cursor: pointer;
	margin-bottom: 0.55rem;
}

.tl-sc-walkover-btn {
	display: block;
	width: 100%;
	background: #fff;
	color: #0b4f66;
	border: 2px solid #00aeef;
	border-radius: 0.35rem;
	padding: 0.65rem 1rem;
	font-weight: 700;
	font-size: 0.95rem;
	cursor: pointer;
	margin-bottom: 0.75rem;
}

.tl-sc-walkover-btn:hover {
	background: #eef7fb;
}

.tl-sc-walkover-panel {
	border: 1px solid #dbe3ea;
	border-radius: 0.4rem;
	padding: 0.75rem 0.85rem;
	margin-bottom: 0.75rem;
	background: #f8fafc;
}

.tl-sc-walkover-choices {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.55rem;
	margin: 0.55rem 0;
}

.tl-sc-walkover-choice {
	border: 1px solid #cfd4da;
	border-radius: 0.35rem;
	background: #fff;
	padding: 0.7rem 0.6rem;
	font-weight: 700;
	cursor: pointer;
}

.tl-sc-walkover-choice.is-selected {
	border-color: #16a34a;
	background: #e8f8ee;
	color: #166534;
	box-shadow: inset 0 0 0 1px #16a34a;
}

.tl-sc-walkover-cancel {
	border: 0;
	background: transparent;
	color: #6b7280;
	font-weight: 600;
	cursor: pointer;
	padding: 0.2rem 0;
}

.tl-scorecard-form.is-walkover .tl-sc-section:has(.tl-sc-rubber),
.tl-scorecard-form.is-walkover details.tl-sc-section:has(.tl-sc-players) {
	opacity: 0.55;
}

.tl-sc-totals-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	margin: 0 auto 0.75rem;
	max-width: 100%;
}

.tl-sc-totals {
	width: 320px;
	max-width: calc(100% - 4rem);
	margin: 0;
	border-collapse: collapse;
}

.tl-sc-totals td {
	padding: 0.25rem;
	text-align: center;
	font-weight: 700;
}

.tl-sc-totals input {
	text-align: center;
	background: #f3f4f6;
	width: 72px;
}

.tl-sc-win-arrow {
	color: #16a34a;
	font-size: 1.75rem;
	font-weight: 800;
	line-height: 1;
	flex: 0 0 auto;
}

.tl-sc-winner {
	text-align: center;
	font-weight: 700;
	margin: 0 0 0.75rem;
	min-height: 1.25rem;
}

.tl-sc-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
	margin-top: 1rem;
	justify-content: flex-end;
}

.tl-sc-btn {
	border: 0;
	border-radius: 999px;
	padding: 0.65rem 1.25rem;
	font-weight: 700;
	cursor: pointer;
	color: #fff;
}

.tl-sc-actions .tl-sc-btn-save { background: #22c55e; }
.tl-sc-actions .tl-sc-btn-submit { background: #00aeef; }
.tl-sc-actions .tl-sc-btn-approve { background: #16a34a; }
.tl-sc-actions .tl-sc-btn-reset { background: #dc2626; margin-right: auto; }

.tl-sc-modal-backdrop[hidden] {
	display: none !important;
}

.tl-sc-modal-backdrop {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: rgba(15, 23, 42, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.tl-sc-modal {
	background: #fff;
	border-radius: 0.5rem;
	max-width: 420px;
	width: 100%;
	padding: 1.25rem 1.35rem;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.25);
	border-top: 4px solid #dc2626;
}

.tl-sc-modal-title {
	margin: 0 0 0.5rem;
	font-size: 1.05rem;
	font-weight: 700;
	color: #991b1b;
}

.tl-sc-modal-body {
	margin: 0 0 1.1rem;
	font-size: 0.9rem;
	line-height: 1.45;
	color: #334155;
}

.tl-sc-modal-actions {
	display: flex;
	justify-content: flex-end;
	gap: 0.6rem;
}

.tl-sc-modal-btn {
	border: 0;
	border-radius: 0.35rem;
	padding: 0.5rem 1rem;
	font-size: 0.88rem;
	font-weight: 700;
	cursor: pointer;
}

.tl-sc-modal-cancel {
	background: #e2e8f0;
	color: #1e293b;
}

.tl-sc-modal-cancel:hover {
	background: #cbd5e1;
}

.tl-sc-modal-confirm {
	background: #dc2626;
	color: #fff;
}

.tl-sc-modal-confirm:hover {
	background: #b91c1c;
}

/*
 * Phones: same layout as desktop (home left / away right, same rows and order),
 * just compressed to fit the screen width so there is no sideways scrolling
 * and no need to rotate the phone. Desktop is unaffected (above 768px).
 */
@media (max-width: 768px) {
	.tl-scorecard {
		max-width: 100%;
		font-size: 14px;
	}

	.tl-scorecard > .tl-sc-header,
	header.tl-sc-header,
	.tl-sc-header {
		grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
		gap: 0.35rem;
		padding: 0.6rem 0.6rem;
	}

	.tl-sc-header-home,
	.tl-sc-header-away {
		min-width: 0;
		overflow-wrap: anywhere;
		line-height: 1.2;
	}

	.tl-sc-back {
		padding: 0.35rem 0.55rem;
		font-size: 0.85rem;
	}

	.tl-scorecard-form {
		padding: 0.6rem 0.5rem 1rem;
	}

	/* Meta row keeps its 4 columns; explicit sizes so Date and Time never overlap */
	.tl-sc-meta {
		grid-template-columns: minmax(105px, 1.4fr) minmax(52px, 0.7fr) minmax(0, 1fr) minmax(0, 1fr);
		gap: 0.35rem;
	}

	.tl-sc-meta label {
		min-width: 0;
		overflow: hidden;
	}

	.tl-sc-meta input {
		min-width: 0;
		max-width: 100%;
		width: 100%;
		box-sizing: border-box;
	}

	.tl-sc-meta input[type="date"] {
		font-size: 13.5px;
		padding: 0.35rem 0.2rem;
		-webkit-appearance: none;
		appearance: none;
	}

	.tl-sc-meta input[name="match_time"] {
		font-size: 14px;
		text-align: center;
		padding: 0.35rem 0.15rem;
	}

	.tl-sc-meta input::-webkit-calendar-picker-indicator {
		display: none;
	}

	/* 16px stops iPhones auto-zooming on tap (which forces sideways panning) */
	.tl-player-input,
	.tl-sc-sets input,
	.tl-sc-totals input,
	.tl-sc-notes textarea {
		font-size: 16px;
		padding: 0.35rem 0.3rem;
		min-width: 0;
		text-overflow: ellipsis;
	}

	.tl-sc-section > summary {
		padding: 0.5rem 0.65rem;
	}

	.tl-sc-section > *:not(summary) {
		padding: 0.4rem 0 0.2rem;
	}

	/* Two columns stay side by side, but are allowed to shrink */
	.tl-sc-sides {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 0.4rem;
	}

	.tl-sc-rubber-players {
		grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr);
		gap: 0.25rem;
	}

	.tl-sc-vs-col {
		font-size: 0.8rem;
	}

	.tl-lineup-slot,
	.tl-rubber-player-slot {
		gap: 0.2rem;
	}

	.tl-role-badge,
	.tl-rubber-role-tag {
		min-width: 1.6rem;
		padding: 0.15rem 0.2rem;
		font-size: 0.68rem;
	}

	.tl-player-combo .tl-lineup-input {
		padding-right: 2.5rem;
	}

	.tl-combo-clear {
		right: 1.3rem;
	}

	.tl-combo-toggle {
		right: 0.1rem;
	}

	.tl-combo-menu {
		min-width: 11rem;
	}

	.tl-sc-away-col .tl-combo-menu {
		left: auto;
		right: 0;
	}

	.tl-sc-rubber-header {
		padding: 0.25rem 0.4rem;
	}

	.tl-sc-totals {
		width: 270px;
		max-width: 100%;
	}

	.tl-sc-totals input {
		width: 58px;
	}

	.tl-sc-win-arrow {
		font-size: 1.4rem;
	}
}

/* Playwaze-style squad manager */
.tl-squad {
	width: 100%;
	max-width: 860px;
	margin: 0 auto;
	background: #fff;
	border-radius: 0.4rem;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	font-size: 15px;
}

.tl-sq-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 0.75rem;
	background: #00aeef;
	color: #fff;
	padding: 0.9rem 1rem;
}

.tl-sq-header-main {
	min-width: 0;
}

.tl-sq-org {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	opacity: 0.95;
}

.tl-sq-org-logo {
	width: 2.1rem;
	height: 2.1rem;
	object-fit: contain;
	flex: 0 0 auto;
	background: #fff;
	border-radius: 0.25rem;
	padding: 0.1rem;
}

.tl-sq-title {
	margin: 0.35rem 0 0;
	font-size: clamp(1.35rem, 3vw, 1.8rem);
	font-weight: 700;
	line-height: 1.2;
}

.tl-sq-sub {
	margin: 0.25rem 0 0;
	font-size: 0.85rem;
	opacity: 0.9;
}

.tl-sq-back {
	align-self: flex-start;
}

.tl-sq-alert {
	background: #fff3cd;
	color: #664d03;
	padding: 0.75rem 1rem;
	font-size: 0.9rem;
}

.tl-sq-alert a {
	margin-left: 0.5rem;
	font-weight: 700;
}

.tl-sq-hint {
	margin: 0;
	padding: 0.65rem 1rem;
	background: #eef7fb;
	color: #0b4f66;
	font-size: 0.88rem;
}

.tl-sq-body {
	padding: 0.85rem 1rem 1.35rem;
}

.tl-sq-section {
	margin-bottom: 1.15rem;
}

.tl-sq-section:last-child {
	margin-bottom: 0;
}

.tl-sq-section-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin: 0 0 0.7rem;
	background: var(--tl-accent, #ff6600);
	color: #fff;
	font-size: 0.95rem;
	font-weight: 700;
	padding: 0.55rem 0.8rem;
}

.tl-sq-section-title small {
	font-size: 0.8rem;
	font-weight: 700;
	opacity: 0.95;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 999px;
	padding: 0.1rem 0.55rem;
}

.tl-sq-empty {
	color: #666;
	margin: 0 0 0.75rem;
	padding: 0.35rem 0.1rem;
}

.tl-sq-list {
	list-style: none;
	margin: 0 0 0.75rem;
	padding: 0;
}

.tl-sq-card {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.65rem 0.85rem;
	background: #fff;
	border: 1px solid #dbe3ea;
	border-left: 4px solid #00aeef;
	border-radius: 0.4rem;
	padding: 0.7rem 0.85rem;
	margin-bottom: 0.45rem;
}

.tl-sq-card.is-inactive {
	border-left-color: #9ca3af;
	background: #f8fafc;
	opacity: 0.9;
}

.tl-sq-card-main {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

.tl-sq-name {
	font-weight: 700;
	color: #111;
}

.tl-sq-meta {
	font-size: 0.8rem;
	color: #6b7280;
}

.tl-sq-registered {
	display: block;
	margin-top: 0.25rem;
	font-size: 0.8rem;
	font-weight: 600;
	color: #2f8f4e;
}

.tl-sq-unregistered {
	display: block;
	margin-top: 0.25rem;
	font-size: 0.8rem;
	font-weight: 500;
	color: #8a6d3b;
}

.tl-sq-meta.tl-sq-unregistered {
	display: inline;
	margin-top: 0;
}

.tl-sq-card-actions {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin-left: auto;
}

.tl-sq-player-fields {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(7rem, 0.7fr);
	gap: 0.55rem;
	flex: 1 1 18rem;
	min-width: 0;
}

.tl-sq-form {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0.55rem;
	margin-bottom: 0.55rem;
}

.tl-sq-field {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	font-size: 0.78rem;
	font-weight: 700;
	min-width: 8rem;
}

.tl-sq-field-grow {
	flex: 1 1 12rem;
}

.tl-sq-field-status {
	min-width: 7rem;
}

.tl-sq-field input,
.tl-sq-field select {
	font-weight: 400;
	border: 1px solid #cfd4da;
	border-radius: 0.3rem;
	padding: 0.45rem 0.5rem;
	font-size: 0.9rem;
	width: 100%;
	background: #fff;
	box-sizing: border-box;
}

.tl-sq-help {
	font-size: 0.8rem;
	color: #666;
	margin: 0.2rem 0 0;
}

.tl-sq-actions {
	display: flex;
	justify-content: flex-end;
	margin-top: 0.85rem;
}

.tl-sq-btn {
	border: 0;
	border-radius: 999px;
	padding: 0.55rem 1.1rem;
	font-weight: 700;
	cursor: pointer;
	font-size: 0.9rem;
	line-height: 1.2;
	white-space: nowrap;
}

.tl-sq-btn-primary {
	background: #00aeef;
	color: #fff;
}

.tl-sq-btn-primary:hover {
	background: #0095cc;
}

.tl-sq-btn-save {
	background: #22c55e;
	color: #fff;
}

.tl-sq-btn-save:hover {
	background: #16a34a;
}

.tl-sq-btn-danger {
	background: transparent;
	color: #c62828;
	border: 1px solid #f1aeb5;
	padding: 0.35rem 0.75rem;
	font-size: 0.8rem;
}

.tl-sq-btn-danger:hover {
	background: #fff5f5;
}

.tl-hidden {
	display: none !important;
}

.tl-captain-contacts {
	list-style: none;
	margin: 0.35rem 0 0;
	padding: 0;
}

.tl-captain-contacts li {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	margin-bottom: 0.55rem;
}

.tl-captain-name {
	font-weight: 700;
}

.tl-captain-email,
.tl-captain-phone {
	font-size: 0.85rem;
	color: #0b4f66;
	text-decoration: none;
	word-break: break-word;
}

.tl-captain-email:hover,
.tl-captain-phone:hover {
	text-decoration: underline;
	color: #00aeef;
}

.tl-captain-phone.is-missing {
	color: #9ca3af;
	font-style: italic;
}

.tl-sq-phone-form {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0.4rem;
}

@media (max-width: 700px) {
	.tl-sq-player-fields {
		grid-template-columns: 1fr;
		width: 100%;
	}

	.tl-sq-card-actions {
		margin-left: 0;
		width: 100%;
		justify-content: flex-end;
	}

	.tl-sq-form .tl-sq-btn {
		width: 100%;
	}
}
/* —— Public statistics hub / player pages —— */
.tl-stats-sub {
	margin: 0.35rem 0 0;
	color: #0b4f66;
}

.tl-stats-filters {
	margin: 0.75rem 0 1rem;
	padding: 0.85rem 1rem;
	background: #e8f7fc;
	border: 1px solid #dbe3ea;
	border-radius: 0.35rem;
}

.tl-stats-filter-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
	margin-bottom: 0.75rem;
}

.tl-stats-filter-row .form-select {
	max-width: 18rem;
}

.tl-stats-seasons {
	margin: 0;
	border: 0;
	padding: 0;
}

.tl-stats-seasons legend {
	font-weight: 600;
	color: #0b4f66;
	margin-bottom: 0.4rem;
}

.tl-stats-season-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem 1rem;
}

.tl-stats-season-item {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin: 0;
}

.tl-stats-drill-hint {
	margin: 0 0 0.75rem;
	font-size: 0.85rem;
	color: #4b5563;
	line-height: 1.35;
}

.tl-stats-pair-sub {
	margin: 0 0 0.75rem;
	font-size: 0.9rem;
	color: #4b5563;
}

.tl-stats-pair-players {
	margin: 0.85rem 0 0;
	font-weight: 600;
}

.tl-player-fixture-table tr.is-won td {
	background: #f0fdf4;
}

.tl-player-fixture-table tr.is-lost td {
	background: #fef2f2;
}

.tl-stats-search {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
	margin: 0.65rem 0 0.75rem;
}

.tl-stats-search label {
	font-weight: 600;
	color: #0b4f66;
	margin: 0;
}

.tl-stats-search-input {
	max-width: 18rem;
	width: 100%;
}

.tl-stats-toolbar {
	margin: 0.75rem 0;
	padding: 0.7rem 0.85rem;
	background: #f3f8fb;
	border: 1px solid #dbe3ea;
	border-radius: 0.35rem;
}

.tl-stats-toolbar-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0.75rem 1rem;
}

.tl-stats-toolbar-row label {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	margin: 0;
	font-weight: 600;
	color: #0b4f66;
	font-size: 0.85rem;
}

.tl-stats-toolbar-row .form-select {
	min-width: 10rem;
}

.tl-stats-reset,
.tl-stats-export {
	font-weight: 700;
	text-decoration: none;
	padding: 0.35rem 0.6rem;
	border-radius: 0.3rem;
	background: #fff;
	color: #0369a1;
	border: 1px solid #7dd3fc;
}

.tl-stats-reset {
	margin-left: auto;
}

.tl-stats-reset:hover,
.tl-stats-export:hover {
	background: #e0f2fe;
}

.tl-stats-table th a {
	color: inherit;
	text-decoration: none;
}

.tl-stats-table th a:hover {
	color: #0369a1;
	text-decoration: underline;
}

.tl-stats-compare-form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45rem 0.65rem;
	margin: 0 0 0.85rem;
	padding: 0.65rem 0.85rem;
	background: #eef9f1;
	border: 1px solid #bbf7d0;
	border-radius: 0.35rem;
}

.tl-stats-compare-label {
	font-weight: 700;
	color: #166534;
}

.tl-stats-compare-form .form-select {
	min-width: 11rem;
	max-width: 16rem;
}

.tl-stats-compare-vs {
	font-weight: 700;
	color: #6b7280;
}

.tl-stats-compare-btn {
	border: 0;
	border-radius: 0.3rem;
	background: #166534;
	color: #fff;
	font-weight: 700;
	padding: 0.4rem 0.75rem;
	cursor: pointer;
}

.tl-stats-compare-btn:hover {
	background: #14532d;
}

.tl-stats-compare-inline {
	background: #f8fafc;
	border-color: #dbe3ea;
}

.tl-stats-compare-inline label {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45rem;
	margin: 0;
	font-weight: 600;
}

.tl-stats-compare-title {
	margin: 0.5rem 0 0.85rem;
	font-size: 1.25rem;
}

.tl-stats-compare-table th:first-child {
	text-align: left;
	color: #4b5563;
	font-weight: 600;
}

.tl-stats-partnership {
	margin-top: 1.25rem;
}

.tl-stats-partnership h3 {
	margin: 0 0 0.4rem;
	font-size: 1.05rem;
	color: #0b4f66;
}

.tl-stats-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.tl-player-stats-layout {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	align-items: stretch;
}

.tl-player-summary {
	background: #e8f7fc;
	border: 1px solid #dbe3ea;
	border-radius: 0.35rem;
	padding: 0.85rem 1rem;
	width: 100%;
}

.tl-player-summary-title {
	margin: 0 0 0.65rem;
	font-size: 1.15rem;
	color: #0b4f66;
}

.tl-summary-strip {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.75rem;
}

.tl-summary-block {
	min-width: 0;
}

.tl-player-summary h2 {
	margin: 0 0 0.6rem;
	font-size: 1.1rem;
	color: #0b4f66;
}

.tl-summary-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 0;
	font-size: 0.9rem;
}

.tl-summary-table th,
.tl-summary-table td {
	border: 1px solid #dbe3ea;
	padding: 0.25rem 0.4rem;
}

.tl-summary-table th {
	text-align: left;
	background: #dff3fa;
	color: #0b4f66;
	white-space: nowrap;
}

.tl-player-fixtures {
	min-width: 0;
	width: 100%;
}

.tl-player-fixture-table {
	min-width: 56rem;
	width: 100%;
}

.tl-player-fixture-table .tl-stats-partner {
	white-space: normal;
	min-width: 9rem;
	max-width: 14rem;
	line-height: 1.25;
}

.tl-player-fixture-table .tl-stats-opposition {
	white-space: nowrap;
}

.tl-player-fixture-table .tl-fx-toggle {
	border: 1px solid #0b4f66;
	background: #fff;
	color: #0b4f66;
	width: 1.6rem;
	height: 1.6rem;
	line-height: 1;
	cursor: pointer;
}

.tl-rubber-detail {
	width: 100%;
	border-collapse: collapse;
	margin: 0.4rem 0;
}

.tl-rubber-detail td {
	border: 1px solid #dbe3ea;
	padding: 0.3rem 0.45rem;
}

.tl-rubber-detail tr.is-won {
	background: #e5f7ea;
}

.tl-rubber-detail tr.is-lost {
	background: #fdecec;
}

.tl-player-club {
	font-weight: 500;
	color: #0b4f66;
}

.tl-stats-back {
	color: #0b4f66;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.tl-stats-scopes {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.25rem;
	border-bottom: 1px solid #e5e7eb;
	margin: 0.75rem 0 1rem;
}

.tl-stats-crumb {
	margin: 0 0 0.75rem;
}

.tl-stats-crumb a {
	color: #0b4f66;
	font-weight: 600;
	text-decoration: none;
}

.tl-stats-seasons-help {
	margin: 0 0 0.45rem;
	font-size: 0.9rem;
	color: #0b4f66;
}

.tl-stats-panel h3 {
	margin: 1rem 0 0.5rem;
	color: #0b4f66;
	font-size: 1.05rem;
}

@media (max-width: 900px) {
	.tl-summary-strip {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.tl-summary-strip {
		grid-template-columns: 1fr;
	}
}

.tl-stats-members-hint {
	margin: 0.75rem 0 0;
	font-size: 0.92rem;
	color: #0b4f66;
}

.tl-stats-members-hint a {
	font-weight: 600;
	color: #0b4f66;
}

/* ==========================================================================
   Member "My Stats" Personal Player Hub
   ========================================================================== */

.tl-player-hub {
	max-width: 1200px;
	margin: 0 auto;
}

/* Header: keep logo on the very left, align Banbury Tennis Leagues, Personal Player Hub, and subtitle together */
.tl-player-hub .tl-hub-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1.25rem;
	padding-bottom: 1.15rem;
	margin-bottom: 1.35rem;
	border-bottom: 1px solid #e2e8f0;
}

.tl-player-hub .tl-hub-brand-group {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: flex-start !important;
	gap: 1rem !important;
	min-width: 0 !important;
	flex: 1 1 auto !important;
}

.tl-player-hub .tl-hub-logo {
	width: 54px !important;
	height: 54px !important;
	max-width: 54px !important;
	object-fit: contain !important;
	flex: 0 0 54px !important;
	margin-top: 2px !important;
}

.tl-player-hub .tl-hub-brand-text {
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	justify-content: flex-start !important;
	text-align: left !important;
	min-width: 0 !important;
	flex: 1 1 auto !important;
}

.tl-player-hub .tl-hub-org-name {
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	color: #7100e2 !important;
	font-size: clamp(1.55rem, 3.2vw, 2.15rem) !important;
	font-weight: 700 !important;
	line-height: 1.15 !important;
	text-align: left !important;
}

.tl-player-hub .tl-hub-title {
	display: block !important;
	margin: 0.25rem 0 0.15rem !important;
	padding: 0 !important;
	font-size: 1.25rem !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	color: #1e293b !important;
	letter-spacing: -0.01em !important;
	text-align: left !important;
}

.tl-player-hub .tl-hub-sub {
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	font-size: 0.88rem !important;
	color: #64748b !important;
	line-height: 1.4 !important;
	text-align: left !important;
	flex: initial !important;
}

.tl-player-hub .tl-hub-back {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	background: #ffffff;
	color: #334155;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	padding: 0.45rem 0.95rem;
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	transition: all 0.15s ease-in-out;
	flex-shrink: 0;
	margin-top: 0.35rem;
}

.tl-player-hub .tl-hub-back:hover,
.tl-player-hub .tl-hub-back:focus {
	background: #f5f3ff;
	color: #7100e2;
	border-color: #7100e2;
	box-shadow: 0 2px 5px rgba(113, 0, 226, 0.15);
}

.tl-mystats-login {
	margin: 1.5rem 0;
	padding: 1.75rem;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 1.5rem;
	align-items: center;
}

.tl-mystats-login p {
	margin: 0;
	flex: 1 1 100%;
	color: #334155;
	font-size: 1.05rem;
}

.tl-login-actions {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
}

/* Auto-detected Alert Banner */
.tl-hub-alert {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.85rem 1.15rem;
	border-radius: 6px;
	margin-bottom: 1.5rem;
	font-size: 0.93rem;
}

.tl-hub-alert-info {
	background: #f5f3ff;
	border: 1px solid #ddd6fe;
	color: #5b21b6;
}

.tl-hub-alert-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #7100e2;
	color: #ffffff;
	font-weight: 700;
	font-size: 0.8rem;
	flex-shrink: 0;
}

.tl-hub-alert-text strong {
	display: block;
	color: #4c1d95;
	font-size: 0.95rem;
}

/* 1. HERO PLAYER CARD & HIGHLIGHTS */
.tl-player-hero-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
	padding: 1.5rem;
	margin-bottom: 2rem;
}

.tl-player-hero-banner {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid #edf2f7;
	margin-bottom: 1.25rem;
}

.tl-player-avatar {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: linear-gradient(135deg, #7100e2 0%, #4a0099 100%);
	color: #ffffff;
	font-size: 1.4rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 10px rgba(113, 0, 226, 0.25);
	flex-shrink: 0;
}

.tl-player-details {
	flex: 1 1 auto;
}

.tl-player-kicker {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #7100e2;
	font-weight: 700;
	display: block;
	margin-bottom: 0.2rem;
}

.tl-player-name {
	margin: 0 0 0.4rem;
	font-size: 1.65rem;
	font-weight: 800;
	color: #1e293b;
	line-height: 1.2;
}

.tl-player-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.tl-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.25rem 0.6rem;
	border-radius: 4px;
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1.2;
}

.tl-badge-club {
	background: #f5f3ff;
	color: #7100e2;
	border: 1px solid #ddd6fe;
}

.tl-badge-team {
	background: #f1f5f9;
	color: #475569;
	border: 1px solid #e2e8f0;
}

.tl-badge-home {
	background: #f5f3ff;
	color: #7100e2;
	border: 1px solid #ddd6fe;
}

.tl-badge-away {
	background: #f8fafc;
	color: #64748b;
	border: 1px solid #cbd5e1;
}

/* Highlights Grid */
.tl-player-highlights-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
	margin-bottom: 1.25rem;
}

.tl-highlight-tile {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 1rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.tl-tile-header {
	display: flex;
	flex-direction: column;
	margin-bottom: 0.65rem;
}

.tl-tile-title {
	font-size: 0.82rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #64748b;
}

.tl-tile-kicker {
	font-size: 0.75rem;
	color: #94a3b8;
}

.tl-tile-body {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

/* Tile 1: Win Rate Gauge */
.tl-winrate-gauge {
	position: relative;
	width: 72px;
	height: 72px;
	margin: 0 auto;
}

.tl-gauge-circle {
	display: block;
	width: 100%;
	height: 100%;
}

.tl-gauge-bg {
	fill: none;
	stroke: #e2e8f0;
	stroke-width: 3.5;
}

.tl-gauge-fill {
	fill: none;
	stroke: #8bb805;
	stroke-width: 3.5;
	stroke-linecap: round;
	transition: stroke-dasharray 0.4s ease;
}

.tl-gauge-text {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tl-gauge-value {
	font-size: 0.95rem;
	font-weight: 800;
	color: #1e293b;
}

.tl-tile-sub {
	text-align: center;
	font-size: 0.85rem;
	color: #475569;
}

.tl-dot {
	margin: 0 3px;
	color: #94a3b8;
}

.tl-pld-total {
	font-size: 0.78rem;
	color: #64748b;
	margin-top: 2px;
}

/* Tile 2: Form Streak */
.tl-form-streak-wrap {
	display: flex;
	gap: 6px;
	align-items: center;
	justify-content: center;
	padding: 0.5rem 0;
}

.tl-form-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 6px;
	font-weight: 800;
	font-size: 0.9rem;
	color: #ffffff;
	cursor: default;
	transition: transform 0.15s;
}

.tl-form-pill:hover {
	transform: scale(1.08);
}

.tl-form-pill.is-win {
	background: #8bb805;
	box-shadow: 0 2px 5px rgba(139, 184, 5, 0.35);
}

.tl-form-pill.is-loss {
	background: #ef4444;
	box-shadow: 0 2px 5px rgba(239, 68, 68, 0.25);
}

.tl-form-pill.is-draw {
	background: #f59e0b;
	box-shadow: 0 2px 5px rgba(245, 158, 11, 0.25);
}

.tl-form-legend {
	text-align: center;
	font-size: 0.78rem;
	color: #64748b;
}

/* Tile 3: Division Rank */
.tl-rank-big {
	text-align: center;
	font-size: 2.2rem;
	font-weight: 800;
	color: #7100e2;
	line-height: 1;
	margin: 0.35rem 0;
}

.tl-rank-hash {
	font-size: 1.4rem;
	font-weight: 700;
	color: #a78bfa;
	margin-right: 2px;
}

.tl-rank-div {
	font-size: 0.78rem;
	color: #7100e2;
	font-weight: 600;
	margin-top: 3px;
}

/* Tile 4: Home vs Away */
.tl-ha-row {
	display: flex;
	flex-direction: column;
	gap: 3px;
	margin-bottom: 0.45rem;
}

.tl-ha-label {
	display: flex;
	justify-content: space-between;
	font-size: 0.82rem;
	color: #334155;
}

.tl-ha-bar-track {
	height: 7px;
	background: #e2e8f0;
	border-radius: 999px;
	overflow: hidden;
}

.tl-ha-bar {
	display: block;
	height: 100%;
	border-radius: 999px;
}

.tl-ha-bar.is-home {
	background: #7100e2;
}

.tl-ha-bar.is-away {
	background: #64748b;
}

.tl-ha-sub {
	font-size: 0.74rem;
	color: #94a3b8;
	text-align: right;
}

/* Secondary Stats Strip */
.tl-secondary-stats-strip {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1rem;
	background: #f8fafc;
	border-radius: 6px;
	font-size: 0.88rem;
	color: #475569;
}

.tl-sec-item strong {
	color: #1e293b;
}

.tl-sec-separator {
	color: #cbd5e1;
}

/* SECTION HEADINGS */
.tl-section-heading {
	font-size: 1.35rem;
	font-weight: 700;
	color: #1e293b;
	margin: 2rem 0 0.5rem;
	display: flex;
	align-items: center;
	gap: 0.45rem;
}

.tl-heading-accent {
	font-size: 1.3rem;
}

.tl-section-sub {
	font-size: 0.9rem;
	color: #64748b;
	margin: 0 0 1.25rem;
}

/* 2. MATCH CENTRE GRID */
.tl-match-centre-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.25rem;
	margin-bottom: 2rem;
}

.tl-centre-box {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 1.25rem;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
	height: 100%;
}

.tl-box-title {
	margin: 0 0 1rem;
	font-size: 1.1rem;
	font-weight: 700;
	color: #1e293b;
	padding-bottom: 0.65rem;
	border-bottom: 1px solid #edf2f7;
}

/* Upcoming Fixtures */
.tl-upcoming-list {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.tl-upcoming-item {
	display: flex;
	gap: 0.85rem;
	align-items: flex-start;
	padding: 0.85rem;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	transition: background-color 0.15s;
}

.tl-upcoming-item:hover {
	background: #f1f5f9;
}

.tl-upcoming-date-badge {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: #7100e2;
	color: #ffffff;
	padding: 0.45rem 0.65rem;
	border-radius: 6px;
	font-size: 0.78rem;
	font-weight: 700;
	min-width: 90px;
	text-align: center;
	line-height: 1.2;
}

.tl-up-day {
	font-size: 0.76rem;
}

.tl-up-time {
	font-size: 0.72rem;
	font-weight: 500;
	color: #e9d5ff;
	margin-top: 2px;
}

.tl-upcoming-body {
	flex: 1 1 auto;
}

.tl-up-division {
	font-size: 0.75rem;
	font-weight: 600;
	color: #7100e2;
	text-transform: uppercase;
	margin-bottom: 2px;
}

.tl-up-match {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.5rem;
	font-size: 0.95rem;
	color: #1e293b;
}

.tl-up-vs {
	font-size: 0.78rem;
	color: #94a3b8;
	font-weight: 600;
}

.tl-up-venue {
	font-size: 0.78rem;
	color: #64748b;
	margin-top: 3px;
}

/* Recent Matches */
.tl-recent-matches-list {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.tl-recent-match-card {
	padding: 0.85rem;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
}

.tl-recent-match-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.8rem;
	color: #64748b;
	margin-bottom: 0.45rem;
}

.tl-recent-date {
	font-weight: 600;
	color: #334155;
}

.tl-recent-scorecard-link {
	color: #7100e2;
	font-weight: 600;
	text-decoration: none;
	font-size: 0.78rem;
}

.tl-recent-scorecard-link:hover {
	text-decoration: underline;
}

.tl-recent-teams-row {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.55rem;
	font-size: 0.92rem;
	font-weight: 600;
}

.tl-recent-team {
	color: #334155;
}

.tl-recent-team.is-team-win {
	color: #1e293b;
	font-weight: 700;
}

.tl-recent-score-pill {
	display: inline-flex;
	padding: 2px 7px;
	border-radius: 4px;
	font-size: 0.82rem;
	font-weight: 700;
	color: #ffffff;
}

.tl-recent-score-pill.is-win {
	background: #8bb805;
}

.tl-recent-score-pill.is-draw {
	background: #f59e0b;
}

.tl-recent-score-pill.is-loss {
	background: #ef4444;
}

.tl-recent-venue-pill {
	margin-left: auto;
	font-size: 0.72rem;
	padding: 2px 6px;
	background: #e2e8f0;
	border-radius: 3px;
	color: #475569;
}

.tl-recent-rubbers {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding-top: 0.45rem;
	border-top: 1px dashed #e2e8f0;
}

.tl-rubber-row {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.82rem;
	color: #475569;
}

.tl-rubber-outcome {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 1px 5px;
	border-radius: 3px;
	font-size: 0.7rem;
	font-weight: 700;
	color: #ffffff;
	min-width: 42px;
}

.tl-rubber-outcome.is-win {
	background: #8bb805;
}

.tl-rubber-outcome.is-loss {
	background: #ef4444;
}

.tl-rubber-outcome.is-draw {
	background: #f59e0b;
}

.tl-rubber-pair {
	flex: 1 1 auto;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tl-rubber-score {
	font-weight: 600;
	color: #1e293b;
}

/* 3. DOUBLES PARTNER CHEMISTRY */
.tl-partner-chem-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	margin-bottom: 2rem;
}

.tl-partner-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 1.15rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.tl-partner-card.is-top-partner {
	border-color: #8bb805;
	background: linear-gradient(180deg, #f7fee7 0%, #ffffff 40%);
	box-shadow: 0 2px 8px rgba(139, 184, 5, 0.15);
}

.tl-partner-card-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 0.75rem;
}

.tl-partner-info {
	display: flex;
	align-items: center;
	gap: 0.65rem;
}

.tl-partner-rank {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #f1f5f9;
	color: #475569;
	font-weight: 700;
	font-size: 0.8rem;
}

.tl-partner-name {
	margin: 0;
	font-size: 1.02rem;
	font-weight: 700;
	color: #1e293b;
}

.tl-partner-club {
	font-size: 0.78rem;
	color: #64748b;
}

.tl-top-chemistry-badge {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	padding: 2px 7px;
	background: #8bb805;
	color: #ffffff;
	border-radius: 4px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.tl-partner-stats-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.65rem;
}

.tl-partner-winrate {
	display: flex;
	flex-direction: column;
}

.tl-chem-pct {
	font-size: 1.35rem;
	font-weight: 800;
	color: #7100e2;
	line-height: 1.1;
}

.tl-chem-pct-label {
	font-size: 0.72rem;
	color: #64748b;
	text-transform: uppercase;
}

.tl-partner-tally {
	text-align: right;
	font-size: 0.82rem;
	color: #334155;
}

.tl-chem-tally-detail {
	font-size: 0.75rem;
	color: #64748b;
	margin-top: 2px;
}

.tl-chem-stat-line {
	font-size: 0.82rem;
	color: #334155;
	line-height: 1.35;
}

.tl-chem-sets-line {
	color: #475569;
	margin-top: 2px;
}

.tl-chem-sub-pct {
	color: #7100e2;
	font-weight: 700;
	margin-left: 2px;
}

.tl-chem-games-line {
	font-size: 0.76rem;
	color: #64748b;
	margin-top: 1px;
}

.tl-partner-bar-track {
	height: 6px;
	background: #e2e8f0;
	border-radius: 999px;
	overflow: hidden;
}

.tl-partner-bar {
	height: 100%;
	background: #8bb805;
	border-radius: 999px;
}

/* 4. COMPARE WITH RIVAL */
#tl-rival-compare {
	scroll-margin-top: 1.5rem;
}

.tl-rival-selector-form {
	margin-bottom: 1.25rem;
}

.tl-rival-selector-row {
	display: flex;
	gap: 0.65rem;
	max-width: 500px;
}

.tl-rival-select {
	flex: 1 1 auto;
}

.tl-rival-comparison-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 1.5rem;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
	margin-bottom: 2rem;
}

.tl-matchup-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid #edf2f7;
	margin-bottom: 1.25rem;
}

.tl-matchup-player {
	flex: 1 1 40%;
}

.tl-player-left {
	text-align: left;
}

.tl-player-right {
	text-align: right;
}

.tl-matchup-name {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
	color: #1e293b;
}

.tl-matchup-club {
	font-size: 0.85rem;
	color: #64748b;
	display: block;
	margin: 2px 0 4px;
}

.tl-matchup-winrate {
	font-size: 0.95rem;
	font-weight: 700;
	color: #7100e2;
}

.tl-matchup-vs {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #7100e2;
	color: #ffffff;
	font-weight: 800;
	font-size: 0.85rem;
	flex-shrink: 0;
	margin: 0 1rem;
	box-shadow: 0 2px 6px rgba(113, 0, 226, 0.3);
}

.tl-matchup-banner {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	padding: 0.85rem 1.15rem;
	margin-bottom: 1.25rem;
}

.tl-h2h-headline {
	font-size: 0.95rem;
	color: #1e293b;
	margin-bottom: 0.5rem;
}

.tl-h2h-score {
	font-weight: 800;
	color: #7100e2;
	margin-left: 4px;
}

.tl-h2h-matches {
	font-size: 0.82rem;
	color: #64748b;
	margin-left: 4px;
}

.tl-h2h-list {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.tl-h2h-rubber-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem 0.75rem;
	align-items: center;
	font-size: 0.82rem;
	color: #475569;
	padding: 4px 0;
	border-top: 1px dashed #e2e8f0;
}

.tl-h2h-score-val {
	font-weight: 700;
	color: #1e293b;
}

.tl-h2h-outcome {
	display: inline-flex;
	padding: 1px 5px;
	border-radius: 3px;
	font-size: 0.7rem;
	font-weight: 700;
	color: #ffffff;
}

.tl-h2h-outcome.is-win {
	background: #8bb805;
}

.tl-h2h-outcome.is-loss {
	background: #ef4444;
}

.tl-h2h-empty {
	margin: 0;
	font-size: 0.88rem;
	color: #64748b;
}

.tl-partnership-notice {
	margin-top: 0.65rem;
	padding-top: 0.65rem;
	border-top: 1px dashed #cbd5e1;
	font-size: 0.88rem;
	color: #334155;
}

.tl-comparison-table {
	width: 100%;
	border-collapse: collapse;
	text-align: center;
	font-size: 0.9rem;
}

.tl-comparison-table th {
	padding: 0.65rem;
	background: #f1f5f9;
	color: #334155;
	font-weight: 700;
	border-bottom: 2px solid #cbd5e1;
}

.tl-comparison-table td {
	padding: 0.6rem;
	border-bottom: 1px solid #e2e8f0;
}

.tl-col-a {
	text-align: right;
	font-weight: 600;
	color: #334155;
	width: 35%;
}

.tl-col-stat {
	text-align: center;
	color: #64748b;
	font-size: 0.82rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	width: 30%;
}

.tl-col-b {
	text-align: left;
	font-weight: 600;
	color: #334155;
	width: 35%;
}

.tl-comparison-table td.is-superior {
	color: #7100e2;
	font-weight: 800;
}

/* 5. WATCHLIST */
.tl-watchlist-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.25rem;
	margin-bottom: 2rem;
}

.tl-watchlist-box {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 1.25rem;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.tl-followed-cards-list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.tl-followed-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.75rem 0.85rem;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
}

.tl-followed-info h4 {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 700;
	color: #1e293b;
}

.tl-followed-club {
	font-size: 0.78rem;
	color: #64748b;
	display: block;
}

.tl-followed-sub {
	font-size: 0.78rem;
	color: #475569;
	margin-top: 2px;
}

.tl-followed-stat-badge {
	font-size: 1.15rem;
	font-weight: 800;
	color: #7100e2;
}

.tl-btn-compare-pill {
	display: inline-flex;
	align-items: center;
	padding: 0.35rem 0.75rem;
	background: #f5f3ff;
	border: 1px solid #ddd6fe;
	color: #7100e2;
	font-size: 0.8rem;
	font-weight: 600;
	border-radius: 4px;
	text-decoration: none;
	transition: background-color 0.15s;
}

.tl-btn-compare-pill:hover {
	background: #7100e2;
	color: #ffffff;
}

/* 6. PREFERENCES & DIGEST DRAWER */
.tl-preferences-drawer-wrap {
	margin: 0 0 1.25rem;
}

.tl-preferences-drawer-wrap.tl-pref-top .tl-preferences-details {
	border: 1px solid #ddd6fe;
	box-shadow: 0 2px 6px rgba(113, 0, 226, 0.05);
}

.tl-preferences-drawer-wrap.tl-pref-top .tl-preferences-summary {
	background: #faf5ff;
}

.tl-preferences-drawer-wrap.tl-pref-top .tl-preferences-details[open] .tl-preferences-summary {
	background: #f3e8ff;
	border-bottom-color: #ddd6fe;
}

.tl-preferences-details {
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.tl-preferences-summary {
	padding: 1rem 1.25rem;
	background: #f8fafc;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	user-select: none;
	border-bottom: 1px solid transparent;
	transition: background-color 0.15s;
}

.tl-preferences-details[open] .tl-preferences-summary {
	border-bottom-color: #e2e8f0;
	background: #f1f5f9;
}

.tl-pref-summary-left {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 1.05rem;
	color: #1e293b;
}

.tl-pref-summary-hint {
	font-size: 0.82rem;
	color: #64748b;
}

.tl-preferences-body {
	padding: 1.25rem;
}

.tl-mystats-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem 1.25rem;
	margin-bottom: 1rem;
}

.tl-mystats-grid label {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	font-weight: 600;
	color: #1e293b;
	font-size: 0.92rem;
}

.tl-mystats-grid small {
	font-weight: 400;
	color: #64748b;
}

.tl-mystats-widgets {
	border: 0;
	margin: 0 0 1rem;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem 1.25rem;
}

.tl-mystats-widgets legend {
	font-weight: 600;
	color: #1e293b;
	margin-bottom: 0.45rem;
	padding: 0;
	font-size: 0.92rem;
}

.tl-mystats-widgets label {
	font-weight: 500;
	color: #334155;
	font-size: 0.88rem;
}

.tl-pref-save-bar {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin-top: 1rem;
}

.tl-btn-send-test-digest {
	background: #ffffff;
	color: #7100e2;
	border: 1px solid #ddd6fe;
	border-radius: 4px;
	padding: 0.55rem 1.15rem;
	font-weight: 700;
	font-size: 0.88rem;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	transition: all 0.15s ease-in-out;
}

.tl-btn-send-test-digest:hover {
	background: #f5f3ff;
	border-color: #7100e2;
	color: #5b00b5;
}

/* Common button */
.tl-stats-compare-btn {
	background: #7100e2;
	color: #ffffff;
	border: none;
	border-radius: 4px;
	padding: 0.55rem 1.25rem;
	font-weight: 700;
	font-size: 0.9rem;
	cursor: pointer;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.15s, transform 0.1s;
}

.tl-stats-compare-btn:hover {
	background: #5b00b5;
	color: #ffffff;
}

.tl-not-linked-card {
	padding: 2rem;
	text-align: center;
	background: #ffffff;
	border: 2px dashed #cbd5e1;
	border-radius: 8px;
	margin: 1.5rem 0;
}

.tl-not-linked-card h2 {
	color: #7100e2;
	margin-bottom: 0.5rem;
}

/* Season & Format Filter Bar */
.tl-hub-filter-bar {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 0.85rem 1.15rem;
	margin-bottom: 1.25rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.tl-hub-filter-form {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	align-items: center;
}

.tl-filter-group {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.tl-filter-group label {
	font-size: 0.88rem;
	font-weight: 700;
	color: #334155;
	margin: 0;
	white-space: nowrap;
}

.tl-filter-group .form-select {
	font-size: 0.88rem;
	padding: 0.4rem 2rem 0.4rem 0.75rem;
	border-radius: 6px;
	border: 1px solid #cbd5e1;
	background-color: #f8fafc;
	color: #1e293b;
	cursor: pointer;
	min-width: 200px;
}

.tl-filter-group .form-select:focus {
	border-color: #7100e2;
	outline: none;
	box-shadow: 0 0 0 3px rgba(113, 0, 226, 0.15);
}

/* Player Summary Share Box & Toast */
.tl-player-share-box {
	position: relative;
	margin-left: auto;
	display: flex;
	align-items: center;
}

.tl-btn-share-pass {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	background: #f5f3ff;
	border: 1px solid #ddd6fe;
	color: #7100e2;
	font-size: 0.82rem;
	font-weight: 700;
	padding: 0.45rem 0.9rem;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.15s ease-in-out;
	white-space: nowrap;
}

.tl-btn-share-pass:hover {
	background: #7100e2;
	color: #ffffff;
	border-color: #7100e2;
	transform: translateY(-1px);
	box-shadow: 0 3px 8px rgba(113, 0, 226, 0.25);
}

.tl-copy-toast {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	background: #1e293b;
	color: #ffffff;
	font-size: 0.8rem;
	font-weight: 600;
	padding: 0.5rem 0.85rem;
	border-radius: 6px;
	white-space: nowrap;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
	opacity: 0;
	transform: translateY(-4px);
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
	z-index: 100;
}

.tl-copy-toast.is-show {
	opacity: 1;
	transform: translateY(0);
}

/* Milestones & Badges */
.tl-milestones-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	margin-bottom: 2rem;
}

.tl-milestone-card {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding: 1rem;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tl-milestone-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.tl-milestone-card.tl-tier-gold {
	border-color: #fde047;
	background: linear-gradient(135deg, #fefce8 0%, #ffffff 60%);
}

.tl-milestone-card.tl-tier-silver {
	border-color: #cbd5e1;
	background: linear-gradient(135deg, #f8fafc 0%, #ffffff 60%);
}

.tl-milestone-card.tl-tier-bronze {
	border-color: #fed7aa;
	background: linear-gradient(135deg, #fff7ed 0%, #ffffff 60%);
}

.tl-milestone-card.tl-tier-purple {
	border-color: #ddd6fe;
	background: linear-gradient(135deg, #f5f3ff 0%, #ffffff 60%);
}

.tl-milestone-card.tl-tier-lime {
	border-color: #d9f99d;
	background: linear-gradient(135deg, #f7fee7 0%, #ffffff 60%);
}

.tl-milestone-icon {
	font-size: 1.85rem;
	line-height: 1;
	flex-shrink: 0;
}

.tl-milestone-info {
	flex: 1 1 auto;
	min-width: 0;
}

.tl-milestone-title {
	margin: 0 0 0.2rem;
	font-size: 0.95rem;
	font-weight: 700;
	color: #1e293b;
}

.tl-milestone-desc {
	margin: 0;
	font-size: 0.78rem;
	color: #64748b;
	line-height: 1.35;
}

/* Tiebreak & Clutch Performance */
.tl-clutch-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.25rem;
	margin-bottom: 2rem;
}

.tl-clutch-box {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 1.25rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.tl-clutch-title {
	display: block;
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #64748b;
	margin-bottom: 0.5rem;
}

.tl-clutch-pct-line {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 0.65rem;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.tl-clutch-pct {
	font-size: 1.85rem;
	font-weight: 800;
	color: #7100e2;
	line-height: 1;
}

.tl-clutch-tally {
	font-size: 0.84rem;
	color: #475569;
}

.tl-clutch-bar-track {
	height: 8px;
	background: #e2e8f0;
	border-radius: 999px;
	overflow: hidden;
}

.tl-clutch-bar {
	height: 100%;
	border-radius: 999px;
	transition: width 0.4s ease;
}

.tl-clutch-bar.is-lime {
	background: #8bb805;
}

.tl-clutch-bar.is-purple {
	background: #7100e2;
}

/* Rival Search Autocomplete */
.tl-rival-search-wrap {
	position: relative;
	max-width: 500px;
	margin-bottom: 0.65rem;
}

.tl-search-icon {
	position: absolute;
	left: 0.75rem;
	top: 50%;
	transform: translateY(-50%);
	font-size: 0.85rem;
	color: #94a3b8;
	pointer-events: none;
}

.tl-rival-search-input {
	padding-left: 2.3rem;
	font-size: 0.9rem;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	background-color: #f8fafc;
	width: 100%;
}

.tl-rival-search-input:focus {
	border-color: #7100e2;
	background-color: #ffffff;
	box-shadow: 0 0 0 3px rgba(113, 0, 226, 0.15);
	outline: none;
}

/* Opponent Insights (Nemesis, Favourite, Frequent) */
.tl-opponents-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
	margin-bottom: 2rem;
}

.tl-opp-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 1.25rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.tl-opp-card.is-nemesis {
	border-top: 3px solid #dc2626;
	background: linear-gradient(180deg, #fef2f2 0%, #ffffff 35%);
}

.tl-opp-card.is-favourite {
	border-top: 3px solid #8bb805;
	background: linear-gradient(180deg, #f7fee7 0%, #ffffff 35%);
}

.tl-opp-card.is-frequent {
	border-top: 3px solid #7100e2;
}

.tl-opp-badge-label {
	font-size: 0.75rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #64748b;
	margin-bottom: 0.65rem;
}

.tl-opp-card.is-nemesis .tl-opp-badge-label {
	color: #dc2626;
}

.tl-opp-card.is-favourite .tl-opp-badge-label {
	color: #65a30d;
}

.tl-opp-card.is-frequent .tl-opp-badge-label {
	color: #7100e2;
}

.tl-opp-name {
	margin: 0 0 0.2rem;
	font-size: 1.1rem;
	font-weight: 700;
	color: #1e293b;
}

.tl-opp-club {
	font-size: 0.8rem;
	color: #64748b;
	display: block;
	margin-bottom: 0.65rem;
}

.tl-opp-record {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin: 0.5rem 0 1rem;
	font-size: 0.88rem;
}

.tl-opp-tally {
	color: #334155;
}

.tl-opp-pct {
	font-weight: 800;
	color: #7100e2;
}

.tl-btn-opp-compare {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 0.45rem 0.75rem;
	background: #f8fafc;
	border: 1px solid #cbd5e1;
	color: #334155;
	border-radius: 6px;
	font-size: 0.82rem;
	font-weight: 700;
	text-decoration: none;
	transition: all 0.15s ease;
}

.tl-btn-opp-compare:hover {
	background: #7100e2;
	color: #ffffff;
	border-color: #7100e2;
}

.tl-freq-list {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.tl-freq-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px dashed #e2e8f0;
}

.tl-freq-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.tl-freq-info {
	display: flex;
	flex-direction: column;
	font-size: 0.88rem;
	color: #1e293b;
}

.tl-freq-sub {
	font-size: 0.76rem;
	color: #64748b;
}

/* Venue Performance Split */
.tl-venue-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1rem;
	margin-bottom: 2rem;
}

.tl-venue-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 1rem 1.15rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.tl-venue-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.45rem;
}

.tl-venue-title {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 700;
	color: #1e293b;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	padding-right: 0.5rem;
}

.tl-venue-pct {
	font-size: 1.1rem;
	font-weight: 800;
	color: #7100e2;
	flex-shrink: 0;
}

.tl-venue-tally {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.8rem;
	color: #64748b;
	margin-bottom: 0.6rem;
}

.tl-venue-bar-track {
	height: 6px;
	background: #e2e8f0;
	border-radius: 999px;
	overflow: hidden;
}

.tl-venue-bar {
	height: 100%;
	background: #7100e2;
	border-radius: 999px;
	transition: width 0.4s ease;
}

@media (max-width: 900px) {
	.tl-player-highlights-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.tl-milestones-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.tl-clutch-grid {
		grid-template-columns: 1fr;
	}

	.tl-match-centre-grid {
		grid-template-columns: 1fr;
	}

	.tl-partner-chem-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.tl-opponents-grid {
		grid-template-columns: 1fr;
	}

	.tl-watchlist-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.tl-player-highlights-grid {
		grid-template-columns: 1fr;
	}

	.tl-milestones-grid {
		grid-template-columns: 1fr;
	}

	.tl-partner-chem-grid {
		grid-template-columns: 1fr;
	}

	.tl-mystats-grid {
		grid-template-columns: 1fr;
	}

	.tl-hub-filter-form {
		flex-direction: column;
		align-items: stretch;
	}

	.tl-filter-group {
		flex-direction: column;
		align-items: stretch;
	}

	.tl-player-hero-banner {
		flex-direction: column;
		text-align: center;
	}

	.tl-player-badges {
		justify-content: center;
	}

	.tl-player-share-box {
		margin-left: 0;
		margin-top: 0.5rem;
		width: 100%;
		justify-content: center;
	}

	.tl-btn-share-pass {
		width: 100%;
		justify-content: center;
	}

	.tl-matchup-header {
		flex-direction: column;
		gap: 0.75rem;
		text-align: center;
	}

	.tl-player-left, .tl-player-right {
		text-align: center;
	}
}


.tl-reminder-form {
	display: inline-block;
	margin: 0;
	padding: 0;
	vertical-align: middle;
}

.tl-btn-reminder {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: #fef3c7;
	border: 1px solid #f59e0b;
	color: #92400e;
	font-size: 0.72rem;
	font-weight: 600;
	padding: 2px 7px;
	border-radius: 4px;
	cursor: pointer;
	margin-left: 6px;
	vertical-align: middle;
	transition: background-color 0.15s, color 0.15s;
}

.tl-btn-reminder:hover {
	background: #fde68a;
	color: #78350f;
}

.tl-btn-reminder-cell {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #fef3c7;
	border: 1px solid #d97706;
	color: #92400e;
	font-size: 11px;
	width: 19px;
	height: 19px;
	border-radius: 3px;
	padding: 0;
	margin-left: 4px;
	cursor: pointer;
	line-height: 1;
	vertical-align: middle;
	transition: background-color 0.15s, color 0.15s;
}

.tl-btn-reminder-cell:hover {
	background: #f59e0b;
	color: #ffffff;
}

.tl-badge-reminder-sent {
	display: inline-flex;
	align-items: center;
	font-size: 0.72rem;
	font-weight: 600;
	color: #065f46;
	background: #d1fae5;
	border: 1px solid #10b981;
	border-radius: 4px;
	padding: 2px 6px;
	margin-right: 4px;
	vertical-align: middle;
}

.tl-btn-reminder-cell.is-sent {
	background: #d1fae5;
	border-color: #10b981;
	color: #065f46;
}

.tl-btn-reminder-cell.is-sent:hover {
	background: #059669;
	color: #ffffff;
}

/*
 * Mobile Portrait View (Table & Results Matrix compacting):
 * Only active on narrow mobile screens (<= 768px) in vertical (portrait) orientation.
 * When the phone is turned horizontally (landscape), no compacting applies.
 */
@media (max-width: 768px) and (orientation: portrait) {
	.tl-team-compact {
		display: inline !important;
	}

	.tl-team-full {
		display: none !important;
	}

	/* League Standings Table: Pos | Team | P | W | L | PTS fit without scrolling */
	.tl-standings-table {
		min-width: unset;
		width: max-content;
		font-size: 0.74rem;
	}

	.tl-standings-table th,
	.tl-standings-table td {
		padding: 0.38rem 0.22rem;
		min-width: 1.65rem;
	}

	.tl-standings-table .tl-sticky-rank {
		left: 0;
		min-width: 1.6rem;
		width: 1.6rem;
		max-width: 1.6rem;
		padding: 0.38rem 0.15rem;
		font-size: 0.72rem;
	}

	.tl-standings-table .tl-sticky-team {
		left: 1.6rem;
		min-width: 5.2rem;
		max-width: 5.6rem;
		padding: 0.38rem 0.22rem;
		font-size: 0.74rem;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		box-shadow: 4px 0 6px -4px rgba(0, 0, 0, 0.22);
	}

	.tl-standings-table .tl-sticky-team .tl-team-link {
		display: block;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.tl-standings-table .tl-sticky-pts {
		right: 0;
		min-width: 2.3rem;
		max-width: 2.6rem;
		padding: 0.38rem 0.2rem;
		font-weight: 800;
		box-shadow: -4px 0 6px -4px rgba(0, 0, 0, 0.22);
	}

	/* Results Matrix: compact team labels & narrower columns */
	.tl-results-grid {
		min-width: unset;
		width: max-content;
		font-size: 0.7rem;
	}

	.tl-results-grid th,
	.tl-results-grid td {
		min-width: 3.75rem;
		max-width: 4.25rem;
		padding: 0.25rem 0.15rem;
	}

	.tl-corner,
	.tl-results-grid tbody th {
		min-width: 4.8rem !important;
		max-width: 5.2rem !important;
		width: 4.8rem;
		box-shadow: 4px 0 6px -4px rgba(0, 0, 0, 0.22);
	}

	.tl-results-grid tbody th {
		padding: 0.3rem 0.25rem;
		font-size: 0.72rem;
		white-space: normal;
		line-height: 1.15;
		word-break: break-word;
	}

	.tl-results-grid thead th {
		max-width: 4.25rem;
		padding: 0.3rem 0.15rem;
		font-size: 0.7rem;
		line-height: 1.15;
		white-space: normal;
	}

	.tl-results-grid thead th .tl-team-link,
	.tl-results-grid tbody th .tl-team-link {
		word-break: break-word;
	}

	.tl-cell-scoreline {
		font-size: 0.66rem;
		line-height: 1.15;
	}

	.tl-cell-schedule {
		font-size: 0.65rem;
		padding: 0.12rem 0.2rem;
		white-space: normal;
		line-height: 1.1;
	}
}

/* ==========================================================================
   Scorecard Print to PDF & Intelligent Single-Page A4 Layout
   ========================================================================== */

/* Screen styles for Print to PDF button */
.tl-sc-header-actions {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	justify-self: end;
}

.tl-sc-btn-print {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #7100e2;
	color: #fff !important;
	border: 1px solid #5b00b5;
	width: 2.3rem;
	height: 2.3rem;
	padding: 0;
	border-radius: 0.35rem;
	cursor: pointer;
	font-size: 1.15rem;
	line-height: 1;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
	transition: background 0.15s ease-in-out, border-color 0.15s ease-in-out, transform 0.1s ease-in-out;
	text-decoration: none;
}

.tl-sc-btn-print:hover,
.tl-sc-btn-print:focus {
	background: #5b00b5;
	border-color: #490091;
	color: #fff !important;
}

.tl-sc-btn-print:active {
	transform: scale(0.96);
}

.tl-sc-bottom-actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}


@media (max-width: 640px) {
	.tl-sc-header-actions {
		gap: 0.3rem;
	}
	.tl-sc-btn-print {
		width: 2.1rem;
		height: 2.1rem;
		font-size: 1rem;
	}
}

/* Hide dedicated print sheet on screen */
@media screen {
	.tl-sc-print-sheet {
		display: none !important;
	}
}

/* ==========================================================================
   Print / Save to PDF Stylesheet (A4 Portrait, Guaranteed 1-Page Fit)
   ========================================================================== */
@media print {
	/* 1. Page definition - strictly A4 portrait with safe 6mm/8mm margins */
	@page {
		size: A4 portrait;
		margin: 6mm 8mm;
	}

	/* 2. Global clean reset */
	html, body {
		width: 100% !important;
		height: auto !important;
		margin: 0 !important;
		padding: 0 !important;
		background: #fff !important;
		color: #0f172a !important;
		font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
		font-size: 8pt !important;
		line-height: 1.2 !important;
		-webkit-print-color-adjust: exact !important;
		print-color-adjust: exact !important;
	}

	/* 3. Hide all Joomla template elements and interactive screen elements */
	header, nav, footer, #sp-header, #sp-footer, #sp-top-bar, .breadcrumb,
	#tl-scorecard-form, .tl-sc-header-actions, .tl-sc-bottom-actions,
	.tl-scorecard > .tl-sc-header, .tl-scorecard > .tl-sc-meta,
	.tl-sc-toolbar, .tl-sc-actions, .tl-sc-alert, .tl-sc-note, .tl-sc-back,
	.tl-sc-modal-backdrop, .tl-sc-help, .tl-sc-subnav,
	.mod-menu, .sp-megamenu-wrapper, .sp-column, .sidebar,
	.navbar, #sp-menu, .sp-module {
		display: none !important;
	}

	/* Ensure parent containers don't collapse or create margins/borders */
	body, #wrapper, #sp-main-body, .container, .row, .col, main, .tl-scorecard {
		display: block !important;
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
		border: none !important;
		box-shadow: none !important;
		background: transparent !important;
		position: static !important;
	}

	/* 4. Print sheet container: fits precisely on one single A4 side */
	.tl-sc-print-sheet {
		display: block !important;
		visibility: visible !important;
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 auto !important;
		padding: 0 !important;
		background: #fff !important;
		page-break-inside: avoid !important;
		break-inside: avoid !important;
		color: #0f172a !important;
	}

	.tl-sc-print-sheet * {
		visibility: visible !important;
		box-sizing: border-box !important;
	}

	/* 1. Header: Exact Match to Online Scorecard Header */
	#tl-sc-print-sheet .tl-sc-header {
		display: flex !important;
		justify-content: center !important;
		align-items: center !important;
		gap: 8px !important;
		background: #7100e2 !important;
		color: #fff !important;
		padding: 3px 8px !important;
		border-radius: 3px 3px 0 0 !important;
		margin-bottom: 0 !important;
		text-align: center !important;
		-webkit-print-color-adjust: exact !important;
		print-color-adjust: exact !important;
	}

	#tl-sc-print-sheet .tl-sc-header-home,
	#tl-sc-print-sheet .tl-sc-header-away {
		font-size: 10pt !important;
		font-weight: 800 !important;
		color: #fff !important;
		line-height: 1.1 !important;
	}

	#tl-sc-print-sheet .tl-sc-header-vs {
		font-size: 7.5pt !important;
		font-weight: 700 !important;
		text-transform: uppercase !important;
		opacity: 0.85 !important;
		color: #fff !important;
	}

	/* Subbar */
	#tl-sc-print-sheet .tl-print-subbar {
		display: flex !important;
		justify-content: space-between !important;
		align-items: center !important;
		background: #f8fafc !important;
		border: 1px solid #cbd5e1 !important;
		border-top: none !important;
		padding: 2px 6px !important;
		margin-bottom: 2.5px !important;
		border-radius: 0 0 3px 3px !important;
	}

	#tl-sc-print-sheet .tl-print-league-name {
		font-size: 7.5pt !important;
		font-weight: 700 !important;
		color: #334155 !important;
	}

	#tl-sc-print-sheet .tl-print-status-tag {
		background: #7100e2 !important;
		color: #fff !important;
		font-size: 6pt !important;
		font-weight: 800 !important;
		text-transform: uppercase !important;
		letter-spacing: 0.04em !important;
		padding: 1px 5px !important;
		border-radius: 2px !important;
		-webkit-print-color-adjust: exact !important;
		print-color-adjust: exact !important;
	}

	/* 2. Meta: Exact Match to Online Scorecard Meta Row */
	#tl-sc-print-sheet .tl-sc-meta {
		display: grid !important;
		grid-template-columns: repeat(4, 1fr) !important;
		gap: 3px !important;
		margin-bottom: 2.5px !important;
	}

	#tl-sc-print-sheet .tl-sc-meta label {
		display: flex !important;
		flex-direction: column !important;
		gap: 0.5px !important;
		background: #f8fafc !important;
		border: 1px solid #e2e8f0 !important;
		border-radius: 2.5px !important;
		padding: 1.5px 4px !important;
		margin: 0 !important;
	}

	#tl-sc-print-sheet .tl-sc-meta label span {
		font-size: 5pt !important;
		font-weight: 700 !important;
		text-transform: uppercase !important;
		letter-spacing: 0.04em !important;
		color: #64748b !important;
		line-height: 1 !important;
	}

	#tl-sc-print-sheet .tl-print-field {
		font-size: 7pt !important;
		font-weight: 700 !important;
		color: #0f172a !important;
		line-height: 1.15 !important;
	}

	/* Generic Section styling */
	#tl-sc-print-sheet .tl-sc-section {
		background: #fff !important;
		border: 1px solid #e2e8f0 !important;
		border-radius: 2.5px !important;
		padding: 2px 4px !important;
		margin-bottom: 2.5px !important;
		page-break-inside: avoid !important;
		break-inside: avoid !important;
	}

	#tl-sc-print-sheet .tl-sc-section-title {
		font-size: 6.5pt !important;
		font-weight: 800 !important;
		text-transform: uppercase !important;
		letter-spacing: 0.04em !important;
		color: #7100e2 !important;
		border-bottom: 1px solid #f1f5f9 !important;
		padding-bottom: 1px !important;
		margin-bottom: 2px !important;
	}

	/* Two-column sides (Captains & Players) */
	#tl-sc-print-sheet .tl-sc-sides {
		display: grid !important;
		grid-template-columns: 1fr 1fr !important;
		gap: 6px !important;
	}

	#tl-sc-print-sheet .tl-sc-home-col,
	#tl-sc-print-sheet .tl-sc-away-col {
		display: flex !important;
		flex-direction: column !important;
		gap: 1px !important;
		min-width: 0 !important;
	}

	#tl-sc-print-sheet .tl-sc-home-col > strong,
	#tl-sc-print-sheet .tl-sc-away-col > strong {
		font-size: 7pt !important;
		font-weight: 800 !important;
		color: #0f172a !important;
		border-bottom: 1px solid #f1f5f9 !important;
		padding-bottom: 0.5px !important;
		margin-bottom: 0.5px !important;
		display: block !important;
	}

	/* Captains */
	#tl-sc-print-sheet .tl-captain-contacts {
		list-style: none !important;
		margin: 0 !important;
		padding: 0 !important;
		display: flex !important;
		flex-direction: column !important;
		gap: 0.5px !important;
	}

	#tl-sc-print-sheet .tl-captain-contacts li {
		font-size: 6.5pt !important;
		display: flex !important;
		gap: 5px !important;
		line-height: 1.15 !important;
	}

	#tl-sc-print-sheet .tl-captain-name {
		font-weight: 700 !important;
		color: #1e293b !important;
	}

	#tl-sc-print-sheet .tl-captain-phone {
		color: #64748b !important;
	}

	/* Players Lineup */
	#tl-sc-print-sheet .tl-lineup-slot {
		display: flex !important;
		align-items: center !important;
		gap: 3px !important;
		height: 12px !important;
	}

	#tl-sc-print-sheet .tl-role-badge {
		font-size: 5pt !important;
		font-weight: 800 !important;
		padding: 0.5px 2.5px !important;
		border-radius: 2px !important;
		min-width: 16px !important;
		text-align: center !important;
		background: #e0f2fe !important;
		color: #0369a1 !important;
		border: 1px solid #bae6fd !important;
		line-height: 1 !important;
		-webkit-print-color-adjust: exact !important;
		print-color-adjust: exact !important;
	}

	#tl-sc-print-sheet .tl-lineup-field {
		font-size: 6.5pt !important;
		font-weight: 600 !important;
		color: #0f172a !important;
		flex: 1 !important;
		white-space: nowrap !important;
		overflow: hidden !important;
		text-overflow: ellipsis !important;
		line-height: 1.15 !important;
	}

	/* 5. Doubles Rubbers: Exact Visual Structure (1fr auto 1fr prevents any badge overlapping) */
	#tl-sc-print-sheet .tl-sc-rubber {
		border: 1px solid #e2e8f0 !important;
		border-radius: 2.5px !important;
		margin-bottom: 2px !important;
		overflow: hidden !important;
		background: #fff !important;
		page-break-inside: avoid !important;
		break-inside: avoid !important;
	}

	#tl-sc-print-sheet .tl-sc-rubber-header {
		display: flex !important;
		justify-content: space-between !important;
		align-items: center !important;
		background: #f8fafc !important;
		border-bottom: 1px solid #e2e8f0 !important;
		padding: 0.5px 3px !important;
		line-height: 1.05 !important;
	}

	#tl-sc-print-sheet .tl-sc-rubber-title {
		font-size: 6pt !important;
		font-weight: 800 !important;
		color: #334155 !important;
	}

	#tl-sc-print-sheet .tl-sc-rubber-desc {
		font-size: 5.5pt !important;
		color: #64748b !important;
	}

	#tl-sc-print-sheet .tl-sc-rubber-main {
		display: grid !important;
		grid-template-columns: 1fr auto 1fr !important;
		align-items: center !important;
		gap: 8px !important;
		padding: 1px 4px !important;
		background: #fff !important;
	}

	#tl-sc-print-sheet .tl-sc-rubber-side {
		display: flex !important;
		flex-direction: column !important;
		gap: 1.5px !important;
		min-width: 0 !important;
		justify-content: center !important;
	}

	#tl-sc-print-sheet .tl-rubber-player-slot {
		display: flex !important;
		align-items: center !important;
		gap: 2.5px !important;
		height: 13px !important;
	}

	#tl-sc-print-sheet .tl-rubber-role-tag {
		font-size: 4.8pt !important;
		font-weight: 800 !important;
		padding: 0.5px 2px !important;
		border-radius: 2px !important;
		background: #f1f5f9 !important;
		color: #475569 !important;
		border: 1px solid #cbd5e1 !important;
		min-width: 14px !important;
		text-align: center !important;
		line-height: 1 !important;
		-webkit-print-color-adjust: exact !important;
		print-color-adjust: exact !important;
	}

	#tl-sc-print-sheet .tl-rubber-player {
		font-size: 6.5pt !important;
		font-weight: 600 !important;
		color: #0f172a !important;
		white-space: nowrap !important;
		overflow: hidden !important;
		text-overflow: ellipsis !important;
		line-height: 1.2 !important;
	}

	#tl-sc-print-sheet .tl-print-line {
		display: inline-block !important;
		width: 100px !important;
		max-width: 100% !important;
		border-bottom: 1px solid #64748b !important;
		height: 9px !important;
		vertical-align: middle !important;
	}

	/* Sets: Results shown on side of each pair (Home on left, Set name in center, Away on right), Set 1 above Set 2 */
	#tl-sc-print-sheet .tl-sc-sets {
		display: flex !important;
		flex-direction: column !important;
		justify-content: center !important;
		align-items: center !important;
		gap: 1.5px !important;
	}

	#tl-sc-print-sheet .tl-sc-set-block {
		display: flex !important;
		flex-direction: column !important;
		align-items: center !important;
		gap: 0.5px !important;
	}

	#tl-sc-print-sheet .tl-sc-set,
	#tl-sc-print-sheet .tl-sc-tb {
		display: grid !important;
		grid-template-columns: 24px 26px 24px !important;
		align-items: center !important;
		text-align: center !important;
	}

	/* Strictly hide empty tiebreaks on print */
	#tl-sc-print-sheet .tl-sc-tb[hidden] {
		display: none !important;
	}

	#tl-sc-print-sheet .tl-sc-set > span,
	#tl-sc-print-sheet .tl-sc-tb > span {
		font-size: 5pt !important;
		font-weight: 700 !important;
		color: #64748b !important;
		text-transform: uppercase !important;
		line-height: 1 !important;
	}

	#tl-sc-print-score-box,
	#tl-sc-print-sheet .tl-print-score-box {
		font-size: 7pt !important;
		font-weight: 800 !important;
		text-align: center !important;
		background: #f8fafc !important;
		border: 1px solid #cbd5e1 !important;
		border-radius: 2px !important;
		height: 13.5px !important;
		line-height: 12.5px !important;
		color: #0f172a !important;
		-webkit-print-color-adjust: exact !important;
		print-color-adjust: exact !important;
	}

	#tl-sc-print-sheet .tl-sc-tb .tl-print-score-box {
		font-size: 5pt !important;
		height: 10px !important;
		line-height: 9px !important;
		background: #fff !important;
		color: #64748b !important;
	}

	/* 6. Match Result & Totals */
	#tl-sc-print-sheet .tl-sc-points-banner {
		background: #7100e2 !important;
		color: #fff !important;
		border-radius: 2.5px !important;
		padding: 1.5px 5px !important;
		margin-bottom: 2px !important;
		display: flex !important;
		justify-content: space-between !important;
		align-items: center !important;
		-webkit-print-color-adjust: exact !important;
		print-color-adjust: exact !important;
	}

	#tl-sc-print-sheet .tl-sc-points-header {
		display: flex !important;
		align-items: center !important;
		gap: 5px !important;
	}

	#tl-sc-print-sheet .tl-sc-points-badge {
		font-size: 5.5pt !important;
		font-weight: 800 !important;
		text-transform: uppercase !important;
		background: rgba(255, 255, 255, 0.25) !important;
		padding: 0.5px 3.5px !important;
		border-radius: 2px !important;
		color: #fff !important;
		-webkit-print-color-adjust: exact !important;
		print-color-adjust: exact !important;
	}

	#tl-sc-print-sheet .tl-sc-points-score {
		font-size: 7.5pt !important;
		font-weight: 800 !important;
		letter-spacing: 0.04em !important;
		color: #fff !important;
	}

	#tl-sc-print-sheet .tl-sc-points-message {
		font-size: 6.5pt !important;
		font-weight: 700 !important;
		color: #fff !important;
	}

	#tl-sc-print-sheet .tl-sc-totals-wrap {
		margin-top: 1px !important;
	}

	#tl-sc-print-sheet .tl-sc-totals {
		width: 100% !important;
		border-collapse: collapse !important;
		font-size: 6.5pt !important;
	}

	#tl-sc-print-sheet .tl-sc-totals td {
		padding: 1px 3px !important;
		text-align: center !important;
		border: 1px solid #e2e8f0 !important;
		line-height: 1.05 !important;
	}

	#tl-sc-print-sheet .tl-sc-totals tr td:first-child {
		font-weight: 800 !important;
		color: #7100e2 !important;
		width: 40% !important;
	}

	#tl-sc-print-sheet .tl-sc-totals tr td:nth-child(2) {
		font-weight: 700 !important;
		color: #64748b !important;
		width: 20% !important;
		background: #f8fafc !important;
		font-size: 6pt !important;
		text-transform: uppercase !important;
		-webkit-print-color-adjust: exact !important;
		print-color-adjust: exact !important;
	}

	#tl-sc-print-sheet .tl-sc-totals tr td:last-child {
		font-weight: 800 !important;
		color: #7100e2 !important;
		width: 40% !important;
	}

	/* 7. Notes */
	#tl-sc-print-sheet .tl-sc-notes {
		border: 1px solid #e2e8f0 !important;
		background: #f8fafc !important;
		border-radius: 2.5px !important;
		padding: 1.5px 4px !important;
		margin-bottom: 2px !important;
	}

	#tl-sc-print-sheet .tl-sc-notes > span {
		font-size: 5pt !important;
		font-weight: 700 !important;
		text-transform: uppercase !important;
		letter-spacing: 0.04em !important;
		color: #64748b !important;
		display: block !important;
		margin-bottom: 0.5px !important;
	}

	#tl-sc-print-sheet .tl-print-notes-body {
		font-size: 6.5pt !important;
		color: #334155 !important;
		line-height: 1.15 !important;
		min-height: 8px !important;
	}

	/* 8. Signatures & Watermark */
	#tl-sc-print-sheet .tl-print-signatures {
		display: flex !important;
		justify-content: space-between !important;
		gap: 15px !important;
		margin-top: 2px !important;
		margin-bottom: 1.5px !important;
	}

	#tl-sc-print-sheet .tl-print-sig-col {
		flex: 1 !important;
		font-size: 6pt !important;
		font-weight: 600 !important;
		color: #475569 !important;
		border-bottom: 1px dashed #cbd5e1 !important;
		padding-bottom: 1px !important;
	}

	#tl-sc-print-sheet .tl-print-watermark {
		text-align: center !important;
		font-size: 5pt !important;
		color: #94a3b8 !important;
		margin-top: 1.5px !important;
		border-top: 1px solid #f1f5f9 !important;
		padding-top: 1px !important;
	}
}

