/* brand/league.css — League hub, draft, waitlist, schedule, IA, calendar (Wave 3 split; cascade slice 4029-5001) */
/* 1.8.29 — League hub (/league/ · [tmg_league]) */
.tmg-league {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	max-width: var(--tmg-content-max, 1240px);
	margin: 0 auto;
	color: var(--tmg-mist, #E8EEF0);
}
.tmg-league-header {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1.25rem;
	padding: 1.25rem 1.5rem;
	border: 1px solid color-mix(in srgb, var(--tmg-teal, #00C9B1) 28%, transparent);
	border-radius: 12px;
}
.tmg-league-kicker {
	margin: 0 0 0.25rem;
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tmg-teal, #00C9B1);
	font-weight: 700;
}
.tmg-league-title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.5rem, 2.4vw, 2rem);
	line-height: 1.15;
}
.tmg-league-status {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	margin: 0;
}
.tmg-league-status-pill,
.tmg-league-tier-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.2rem 0.65rem;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 600;
}
.tmg-league-status-pill {
	background: color-mix(in srgb, var(--tmg-teal, #00C9B1) 22%, transparent);
	color: var(--tmg-teal, #00C9B1);
}
.tmg-league-tier-badge {
	background: color-mix(in srgb, var(--tmg-mist, #E8EEF0) 10%, transparent);
	border: 1px solid color-mix(in srgb, var(--tmg-mist, #E8EEF0) 18%, transparent);
}
.tmg-league-header-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: stretch;
}
.tmg-league-stat {
	min-width: 5.5rem;
	padding: 0.65rem 0.85rem;
	border-radius: 10px;
	background: color-mix(in srgb, var(--tmg-mist, #E8EEF0) 6%, transparent);
	text-align: center;
}
.tmg-league-stat-val {
	display: block;
	font-size: 1.35rem;
	font-weight: 800;
	color: var(--tmg-teal, #00C9B1);
	line-height: 1.1;
}
.tmg-league-stat-label {
	display: block;
	font-size: 0.7rem;
	opacity: 0.75;
	margin-top: 0.2rem;
}
.tmg-league-signup,
.tmg-league-panel {
	padding: 1.15rem 1.35rem;
	border-radius: 12px;
}
.tmg-league-section-title {
	margin: 0 0 0.5rem;
	font-size: 1.1rem;
}
.tmg-league-section-lead {
	margin: 0 0 1rem;
	opacity: 0.85;
	font-size: 0.95rem;
}
.tmg-league-flash {
	padding: 0.75rem 1rem;
	border-radius: 10px;
	font-weight: 600;
}
.tmg-league-flash--ok {
	background: color-mix(in srgb, var(--tmg-teal, #00C9B1) 18%, transparent);
	border: 1px solid color-mix(in srgb, var(--tmg-teal, #00C9B1) 40%, transparent);
}
.tmg-league-flash--err {
	background: color-mix(in srgb, #ff5c5c 16%, transparent);
	border: 1px solid color-mix(in srgb, #ff5c5c 40%, transparent);
	color: #ffb4b4;
}
.tmg-league-form .tmg-req {
	color: var(--tmg-teal, #00C9B1);
}
.tmg-league-check {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-weight: 600;
	cursor: pointer;
}
.tmg-league-check input {
	margin-top: 0.2rem;
}
.tmg-league-lead-toggle .description {
	display: block;
	margin: 0.35rem 0 0 1.4rem;
}
.tmg-league-signup-meta {
	margin: 0.5rem 0 0;
	padding-left: 1.1rem;
}
.tmg-league-pending {
	color: var(--tmg-teal, #00C9B1);
	font-weight: 600;
}
.tmg-league-login-cta {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.75rem;
}
.tmg-league-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1rem;
}
.tmg-league-rules-copy ul {
	margin: 0.5rem 0 0.75rem;
	padding-left: 1.2rem;
}
.tmg-league-rules-copy li {
	margin: 0.35rem 0;
}
.tmg-league-rules-note {
	margin: 0.5rem 0 0;
	opacity: 0.85;
	font-size: 0.9rem;
	color: var(--tmg-text-muted, inherit);
}
/* W4e — rulebook TOC + sections (brand tokens; light+dark) */
.tmg-league-rules-toc {
	margin: 0 0 1.25rem;
	padding: 0.85rem 1rem;
	border: 1px solid var(--tmg-border, rgba(127, 140, 148, 0.35));
	border-radius: 8px;
	background: var(--tmg-panel-alt, var(--tmg-panel, transparent));
}
.tmg-league-rules-toc-label {
	margin: 0 0 0.4rem;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	opacity: 0.85;
	color: var(--tmg-text-muted, inherit);
}
.tmg-league-rules-toc ul {
	margin: 0;
	padding-left: 1.1rem;
	columns: 2;
	column-gap: 1.5rem;
}
@media (max-width: 560px) {
	.tmg-league-rules-toc ul {
		columns: 1;
	}
}
.tmg-league-rules-toc a {
	color: var(--tmg-accent, #2ec4b6);
	text-decoration: none;
}
.tmg-league-rules-toc a:hover,
.tmg-league-rules-toc a:focus {
	text-decoration: underline;
}
.tmg-league-rules-intro {
	margin: 0 0 1.25rem;
}
.tmg-league-rules-intro p,
.tmg-league-rules-section p {
	margin: 0 0 0.75rem;
	line-height: 1.55;
	color: var(--tmg-text, inherit);
}
.tmg-league-rules-section {
	margin: 0 0 1.5rem;
	padding-top: 0.25rem;
	scroll-margin-top: 5rem;
}
.tmg-league-rules-section .tmg-league-section-title {
	margin: 0 0 0.6rem;
}
.tmg-league-rules-section:last-child {
	margin-bottom: 0;
}

/* 1.8.31 — League Phase 2 M1 draft / captains */
.tmg-league-admin-note {
	font-size: 0.9rem;
	opacity: 0.85;
	border-left: 3px solid #f0a000;
	padding-left: 0.6rem;
	margin: 0.5rem 0 1rem;
}
.tmg-league-captain-list,
.tmg-league-poll-tallies,
.tmg-league-roster-summary,
.tmg-league-draft-teams,
.tmg-league-draft-pool,
.tmg-league-draft-picks {
	margin: 0.5rem 0 1rem;
	padding-left: 1.2rem;
}
.tmg-league-draft-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: center;
	margin-bottom: 0.75rem;
}
.tmg-league-draft-cols {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}
@media (max-width: 720px) {
	.tmg-league-draft-cols {
		grid-template-columns: 1fr;
	}
}
.tmg-league-draft-teams li.is-on-clock {
	font-weight: 700;
	outline: 1px solid currentColor;
	padding: 0.15rem 0.35rem;
	border-radius: 4px;
}
.tmg-league-draft-pool .tmg-muted {
	opacity: 0.7;
	font-size: 0.85em;
}
.tmg-league-pick-form {
	margin-top: 0.75rem;
}


/* League M2 — teams/rosters + waitlist offers (1.8.32) */
.tmg-league-team-cards {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1rem;
}
.tmg-league-team-card {
	border: 1px solid rgba(255,255,255,.08);
	border-radius: 10px;
	padding: .85rem 1rem;
	background: rgba(0,0,0,.18);
}
.tmg-league-team-card-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: .75rem;
	margin-bottom: .35rem;
}
.tmg-league-team-fill {
	opacity: .75;
	font-size: .9em;
}
.tmg-league-team-captains {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem 1.25rem;
	margin: 0 0 .65rem;
	font-size: .92em;
}
.tmg-league-team-roles {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: .75rem;
}
@media (max-width: 640px) {
	.tmg-league-team-roles { grid-template-columns: 1fr; }
}
.tmg-league-role-label {
	margin: 0 0 .25rem;
	font-size: .8rem;
	text-transform: uppercase;
	letter-spacing: .04em;
	opacity: .8;
}
.tmg-league-role-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.tmg-league-role-list li {
	display: flex;
	align-items: center;
	gap: .35rem;
	padding: .15rem 0;
}
.tmg-league-inline-form {
	display: inline;
	margin: 0;
}
.tmg-league-drop-btn {
	border: 0;
	background: transparent;
	color: #f88;
	cursor: pointer;
	font-size: 1rem;
	line-height: 1;
	padding: 0 .2rem;
}
.tmg-league-team-offer-note {
	margin: .65rem 0 0;
	font-size: .9em;
	opacity: .85;
}
.tmg-league-offer-cta {
	border: 1px solid rgba(80, 200, 120, .45);
	background: rgba(40, 120, 70, .18);
	border-radius: 10px;
	padding: .85rem 1rem;
	margin: 0 0 1rem;
}
.tmg-league-offer-cta-title {
	margin: 0 0 .35rem;
}
.tmg-league-waitlist {
	margin: 0;
	padding-left: 0;
	list-style: none;
	counter-reset: none;
}
.tmg-league-waitlist li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem .75rem;
	padding: .4rem 0;
	border-bottom: 1px solid rgba(255,255,255,.06);
}
.tmg-league-waitlist li.has-offer {
	background: rgba(80, 160, 220, .08);
	margin: 0 -.5rem;
	padding-left: .5rem;
	padding-right: .5rem;
	border-radius: 6px;
}
.tmg-league-wait-pos {
	font-variant-numeric: tabular-nums;
	opacity: .7;
	min-width: 2.2em;
}
.tmg-league-wait-you {
	opacity: .7;
	font-size: .9em;
}

/* ---- League M3: availability + match lobby + ready (1.8.33) ---- */
.tmg-league-avail-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: .75rem 1rem;
	margin: .75rem 0 1rem;
}
.tmg-league-avail-day {
	margin: 0;
	padding: .5rem .65rem;
	border: 1px solid rgba(255,255,255,.1);
	border-radius: 8px;
	background: rgba(0,0,0,.2);
}
.tmg-league-avail-day legend {
	padding: 0 .25rem;
	font-size: .85rem;
	font-weight: 600;
}
.tmg-league-avail-slot {
	display: flex;
	align-items: center;
	gap: .4rem;
	font-size: .85rem;
	margin: .2rem 0;
}
.tmg-league-avail-meta,
.tmg-league-avail-team {
	opacity: .85;
	margin: 0 0 .5rem;
}
.tmg-league-match-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.tmg-league-match-row {
	border-bottom: 1px solid rgba(255,255,255,.08);
}
.tmg-league-match-row.is-conflict {
	background: rgba(220, 80, 60, .08);
}
.tmg-league-match-link {
	display: flex;
	flex-wrap: wrap;
	gap: .35rem .85rem;
	align-items: baseline;
	padding: .55rem 0;
	text-decoration: none;
	color: inherit;
}
.tmg-league-match-teams { font-weight: 600; }
.tmg-league-match-when { opacity: .8; font-size: .92em; }
.tmg-league-match-modes { opacity: .65; font-size: .85em; }
.tmg-league-match-lobby-meta { margin: 0 0 .75rem; }
.tmg-league-grace {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: .35rem .6rem;
	margin: 0 0 1rem;
	padding: .55rem .75rem;
	border-radius: 8px;
	background: rgba(255, 180, 40, .1);
	border: 1px solid rgba(255, 180, 40, .25);
}
.tmg-league-grace strong[data-tmg-grace-countdown] {
	font-variant-numeric: tabular-nums;
	font-size: 1.15em;
}
.tmg-league-ready-cols {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin-bottom: 1rem;
}
@media (max-width: 640px) {
	.tmg-league-ready-cols { grid-template-columns: 1fr; }
}
.tmg-league-ready-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.tmg-league-ready-list li {
	display: flex;
	justify-content: space-between;
	gap: .5rem;
	padding: .35rem 0;
	border-bottom: 1px solid rgba(255,255,255,.06);
}
.tmg-league-ready-list li.is-ready {
	color: #8fd18f;
}
.tmg-league-inline-form { margin-top: .75rem; }
.tmg-muted { opacity: .65; font-size: .9em; }

.tmg-league-grace strong[data-tmg-grace-countdown]{font-variant-numeric:tabular-nums;font-size:1.15em;}


/* ---- League M4: standings + DE bracket + tracker report (1.8.34) ---- */
.tmg-league-standings-wrap { overflow-x: auto; margin: .5rem 0 1rem; }
.tmg-league-standings-table {
	width: 100%;
	border-collapse: collapse;
	font-size: .95rem;
}
.tmg-league-standings-table th,
.tmg-league-standings-table td {
	padding: .4rem .55rem;
	text-align: left;
	border-bottom: 1px solid rgba(255,255,255,.08);
}
.tmg-league-standings-table th { opacity: .75; font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
.tmg-league-standings-table td strong { font-variant-numeric: tabular-nums; }
.tmg-league-bracket { display: grid; gap: 1.25rem; margin: .75rem 0 1rem; }
.tmg-league-bracket-track-title { margin: 0 0 .5rem; font-size: 1rem; }
.tmg-league-bracket-round { margin-bottom: .75rem; }
.tmg-league-bracket-round h4 { margin: 0 0 .35rem; font-size: .95rem; }
.tmg-league-bracket-matches { list-style: none; margin: 0; padding: 0; }
.tmg-league-bracket-matches li {
	display: flex; flex-wrap: wrap; gap: .35rem .75rem; align-items: baseline;
	padding: .35rem 0; border-bottom: 1px solid rgba(255,255,255,.06);
}
.tmg-league-subsection-title { margin: 1.25rem 0 .5rem; font-size: 1.05rem; }
.tmg-league-series-games { list-style: none; margin: .75rem 0 0; padding: 0; }
.tmg-league-series-game {
	padding: .75rem .85rem;
	margin-bottom: .65rem;
	border-radius: 8px;
	border: 1px solid rgba(255,255,255,.1);
	background: rgba(0,0,0,.18);
}
.tmg-league-series-game.status-accepted { border-color: rgba(100,180,100,.35); }
.tmg-league-series-game.status-review { border-color: rgba(220,160,60,.45); background: rgba(220,160,60,.08); }
.tmg-league-series-game-head {
	display: flex; flex-wrap: wrap; gap: .35rem .65rem; align-items: baseline; margin-bottom: .35rem;
}
.tmg-league-tracker-url { margin: .25rem 0; word-break: break-all; font-size: .9em; }
.tmg-league-tracker-form { margin-top: .5rem; }
.tmg-league-tracker-form input[type="url"] { width: 100%; max-width: 36rem; }

/* Phase 2 M5 — trades / succession / lineup swap */
.tmg-league-trade-window-meta { margin: .35rem 0 .75rem; display: flex; flex-wrap: wrap; gap: .35rem .65rem; align-items: center; }
.tmg-league-trade-form select,
.tmg-league-lineup-swap select { max-width: 28rem; }
.tmg-league-trade-pending,
.tmg-league-pass-cta,
.tmg-league-co-vote {
	margin: .75rem 0;
	padding: .75rem 1rem;
	border: 1px solid rgba(100,160,220,.35);
	border-radius: 8px;
	background: rgba(80,140,220,.08);
}
.tmg-league-trade-log { list-style: none; margin: .75rem 0 0; padding: 0; }
.tmg-league-trade-log li { margin: .25rem 0; display: flex; flex-wrap: wrap; gap: .35rem .5rem; align-items: center; }
.tmg-league-lineup-swap { margin: 1rem 0; padding: .75rem 0; border-top: 1px solid rgba(255,255,255,.08); }

/* —— 1.8.36 League IA sub-nav + Draft Day —— */
.tmg-league-subnav {
	margin: 0 0 1.25rem;
	padding: .35rem 0 .65rem;
	border-bottom: 1px solid rgba(255,255,255,.1);
}
.tmg-league-subnav-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: .35rem .15rem;
	align-items: center;
}
.tmg-league-subnav-item { margin: 0; }
.tmg-league-subnav-link {
	display: inline-block;
	padding: .45rem .9rem;
	border-radius: 999px;
	font-size: .92rem;
	font-weight: 600;
	letter-spacing: .01em;
	color: var(--tmg-muted);
	text-decoration: none;
	border: 1px solid transparent;
	transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.tmg-league-subnav-link:hover,
.tmg-league-subnav-link:focus {
	color: var(--tmg-mist);
	background: rgba(255,255,255,.06);
	border-color: rgba(255,255,255,.12);
}
/* Light shell: use ink alpha for chrome and keep hover text dark/readable. */
html[data-theme="light"] .tmg-league-subnav,
body.tmg-theme-light .tmg-league-subnav {
	border-bottom-color: rgba(11,18,20,.14);
}
html[data-theme="light"] .tmg-league-subnav-link:hover,
html[data-theme="light"] .tmg-league-subnav-link:focus,
body.tmg-theme-light .tmg-league-subnav-link:hover,
body.tmg-theme-light .tmg-league-subnav-link:focus {
	color: var(--tmg-mist);
	background: rgba(11,18,20,.06);
	border-color: rgba(11,18,20,.14);
}
.tmg-league-subnav-item.is-active .tmg-league-subnav-link {
	color: #0b0f14;
	background: linear-gradient(135deg, #7dd3fc, #38bdf8);
	border-color: transparent;
}
.tmg-league-subnav-item:last-child {
	margin-left: auto;
}
.tmg-league--overview .tmg-league-header,
.tmg-league--teams .tmg-league-header,
.tmg-league--rules .tmg-league-header,
.tmg-league--seasons .tmg-league-header {
	margin-bottom: 1rem;
}
.tmg-league--draft-day .tmg-league-draft-day-hero {
	border: 1px solid rgba(56, 189, 248, .35);
	background:
		radial-gradient(120% 80% at 10% 0%, rgba(56,189,248,.18), transparent 55%),
		rgba(0,0,0,.28);
	box-shadow: 0 0 0 1px rgba(56,189,248,.08) inset;
}
.tmg-league--draft-day .tmg-league-kicker {
	color: #7dd3fc;
	text-transform: uppercase;
	letter-spacing: .08em;
	font-size: .75rem;
}
.tmg-league-draft-day-grid {
	margin-top: .5rem;
}
.tmg-league-finals-placeholder {
	padding: 1.5rem 1rem;
	border: 1px dashed rgba(255,255,255,.18);
	border-radius: 10px;
	text-align: center;
	background: rgba(0,0,0,.15);
}
.tmg-league-manage-hint {
	display: flex;
	flex-wrap: wrap;
	gap: .65rem 1rem;
	align-items: center;
	margin-bottom: 1rem;
}
.tmg-league-prev-link { margin: 1rem 0 0; }
.tmg-league-team-cards--public .tmg-league-team-card {
	transition: border-color .15s ease, transform .15s ease;
}
.tmg-league-team-cards--public .tmg-league-team-card:hover {
	border-color: rgba(56,189,248,.35);
}
.tmg-league-seasons-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.tmg-league-seasons-list li {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem .75rem;
	align-items: center;
	padding: .65rem 0;
	border-bottom: 1px solid rgba(255,255,255,.08);
}
.tmg-profile-league-manage { margin-top: 1rem; }
@media (max-width: 640px) {
	.tmg-league-subnav-item:last-child { margin-left: 0; }
	.tmg-league-subnav-list { gap: .25rem; }
	.tmg-league-subnav-link { padding: .4rem .7rem; font-size: .85rem; }
}

/* —— 1.8.38 League Calendar + My Team hub —— */
.tmg-league--calendar .tmg-league-header { margin-bottom: 1rem; }
.tmg-league-cal-nav {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem 1rem;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1rem;
}
.tmg-league-cal-month { font-size: 1.1rem; }
.tmg-league-cal-grid { padding: .75rem; }
.tmg-league-cal-head,
.tmg-league-cal-body {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 2px;
}
.tmg-league-cal-dow {
	text-align: center;
	font-size: .75rem;
	opacity: .7;
	padding: .35rem 0;
	font-weight: 600;
}
.tmg-league-cal-cell {
	min-height: 5.5rem;
	padding: .35rem;
	border: 1px solid rgba(255,255,255,.08);
	border-radius: 6px;
	background: rgba(0,0,0,.18);
}
.tmg-league-cal-cell.is-outside { opacity: .35; background: transparent; }
.tmg-league-cal-cell.has-events { border-color: rgba(56,189,248,.28); }
.tmg-league-cal-daynum { font-weight: 700; font-size: .85rem; }
.tmg-league-cal-events { list-style: none; margin: .25rem 0 0; padding: 0; }
.tmg-league-cal-events li { font-size: .72rem; margin: .15rem 0; line-height: 1.25; }
.tmg-league-cal-events .type-draft a,
.tmg-league-cal-events .type-draft span { color: #7dd3fc; }
.tmg-league-cal-events .type-trade a,
.tmg-league-cal-events .type-trade span { color: #fbbf24; }
.tmg-league-cal-events .type-lock span { color: #f87171; }
.tmg-league-cal-list { list-style: none; margin: 0; padding: 0; }
.tmg-league-cal-list li {
	display: flex;
	flex-wrap: wrap;
	gap: .35rem .65rem;
	align-items: center;
	padding: .5rem 0;
	border-bottom: 1px solid rgba(255,255,255,.08);
}
.tmg-league-cal-widget-list { list-style: none; margin: 0 0 .75rem; padding: 0; }
.tmg-league-cal-widget-item {
	display: flex;
	flex-wrap: wrap;
	gap: .35rem .65rem;
	padding: .35rem 0;
	border-bottom: 1px solid rgba(255,255,255,.06);
}
.tmg-league-cal-date { font-variant-numeric: tabular-nums; opacity: .8; min-width: 6.5rem; }
.tmg-league--manage-main .tmg-league-match-list--upcoming { margin: 0; padding: 0; list-style: none; }
.tmg-league-team-ops summary {
	cursor: pointer;
	list-style: none;
}
.tmg-league-team-ops summary::-webkit-details-marker { display: none; }
.tmg-league-ops-block { margin: 1rem 0; padding-top: .75rem; border-top: 1px solid rgba(255,255,255,.08); }
.tmg-league-hub-back { margin: 0 0 .75rem; }
.tmg-league-propose-slots { list-style: none; margin: .5rem 0 1rem; padding: 0; }
.tmg-league-propose-slots li {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	align-items: center;
	margin: .35rem 0;
}
.tmg-league-dual-sides {
	display: flex;
	flex-direction: column;
	gap: .25rem;
	font-size: .9rem;
}
.tmg-league-admin-note {
	padding: .5rem .75rem;
	border-left: 3px solid rgba(251,191,36,.5);
	background: rgba(251,191,36,.06);
}
.tmg-league-series-game.status-match { border-color: rgba(52,211,153,.35); }
.tmg-league-series-game.status-mismatch { border-color: rgba(248,113,113,.45); }
@media (max-width: 720px) {
	.tmg-league-cal-cell { min-height: 3.5rem; }
	.tmg-league-cal-events { display: none; }
	.tmg-league-cal-cell.has-events .tmg-league-cal-daynum::after {
		content: '•';
		color: #38bdf8;
		margin-left: .2rem;
	}
}


/* -------------------------------------------------------------------------- */
/* 1.8.40 — Home title regression hotfix                                  */
/* -------------------------------------------------------------------------- */

/* Shared page-title typography = News mast (.tmg-news-mast-title). Home hero kept. */
body:not(.home):not(.front-page) .wp-block-post-title,
body:not(.home):not(.front-page) h1.wp-block-post-title,
body:not(.home):not(.front-page) .entry-title,
.tmg-players-head h2,
.tmg-members-head h2,
.tmg-league-title {
    color: var(--tmg-mist);
    font-family: inherit;
    font-size: clamp(1.6rem, 3vw, 2.15rem);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.1;
}

/* Show WP page titles on shell pages that have no shortcode mast (override 1.8.10 hides). */
body.page-slug-tournaments .wp-block-post-title,
body.page-slug-account .wp-block-post-title,
body.page-tournaments .wp-block-post-title,
body.page-account .wp-block-post-title,
.page-slug-tournaments .wp-block-post-title,
.page-slug-account .wp-block-post-title,
body.page-slug-tournaments .entry-title,
body:not(.home):not(.front-page):not(:has(.tmg-home)):has(table.tmg-leaderboard):not(:has(.tmg-news-page)) .wp-block-post-title,
body:not(.home):not(.front-page):not(:has(.tmg-home)):has(.tmg-tournament):not(:has(.tmg-news-page)) .wp-block-post-title,
body:not(.home):not(.front-page):not(:has(.tmg-home)):has(.tmg-leaderboard-live):not(:has(.tmg-news-page)) .wp-block-post-title {
    clip: auto !important;
    color: var(--tmg-mist);
    display: block !important;
    font-size: clamp(1.6rem, 3vw, 2.15rem);
    font-weight: 800;
    height: auto !important;
    letter-spacing: -.02em;
    line-height: 1.1;
    margin: 0 0 0.65rem !important;
    overflow: visible !important;
    /* Keep existing shell padding/max-width rules; only restore visibility + mast type. */
    padding-bottom: 0 !important;
    padding-top: 0 !important;
}

/* Shortcode-owned chrome: hide duplicate WP title on players (news/ladder already). */
body:has(.tmg-players) .wp-block-post-title,
body:has(.tmg-players) .entry-title,
body:has(.tmg-league) .wp-block-post-title,
body:has(.tmg-league) .entry-title,
body:has(.tmg-ladder-teams) .wp-block-post-title,
body:has(.tmg-ladder-teams) .entry-title,
.page-slug-players .wp-block-post-title,
.page-slug-league .wp-block-post-title,
.page-slug-teams .wp-block-post-title,
.page-slug-my-teams .wp-block-post-title {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* Content H1s used as page intros (ladder/tournaments) — demote vs page title. */
.page-slug-ladder .entry-content > h1:first-child,
.page-slug-tournaments .entry-content > h1:first-child,
.page-slug-standings .entry-content > h1:first-child,
body.page-slug-ladder .wp-block-post-content > h1:first-child,
body.page-slug-tournaments .wp-block-post-content > h1:first-child {
    color: var(--tmg-muted);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.45;
    margin: 0 0 0.75rem;
}

/* Shrink TT5 spacing-60 gap under sticky nav (main margin + inner group pad). */
body:not(.home):not(.front-page) .wp-site-blocks > main,
body:not(.home):not(.front-page) .wp-site-blocks > main.wp-block-group {
    margin-top: 0.35rem !important;
    padding-top: 0 !important;
}

body:not(.home):not(.front-page) .wp-site-blocks > main > .wp-block-group,
body:not(.home):not(.front-page) .wp-site-blocks > main > .wp-block-group.alignfull {
    padding-top: 0.65rem !important;
}

/* Keep bottom breathing room without the double spacing-60 stack. */
body:not(.home):not(.front-page) .wp-site-blocks > main > .wp-block-group.alignfull {
    padding-bottom: clamp(1.25rem, 3vw, 2rem) !important;
}

/* News shortcode already owns title — tighten masthead under nav. */
.tmg-news-page {
    padding-top: 0.15rem;
}

.tmg-news-masthead {
    margin-top: 0;
}

/* Functional readability: tables / cards inherit fg; muted secondary clearer. */
.tmg-panel,
.tmg-form,
.tmg-leaderboard,
.tmg-player-card,
.tmg-league-panel,
.tmg-league-signup,
table.tmg-leaderboard,
.tmg-leaderboard th,
.tmg-leaderboard td {
    color: var(--tmg-fg);
}

.tmg-leaderboard th,
.tmg-form .description,
.tmg-empty-hint,
.tmg-league-stat-label,
.tmg-league-section-lead {
    color: var(--tmg-muted);
}

html[data-theme="light"] .tmg-league,
body.tmg-theme-light .tmg-league {
    color: var(--tmg-mist, #0B1214);
}

body.tmg-settings-open {
    overflow: hidden;
}
.tmg-settings[hidden] {
    display: none !important;
}
.tmg-settings {
    position: fixed;
    inset: 0;
    z-index: 100000;
}
.tmg-settings-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 10, 12, 0.72);
}
.tmg-settings-panel {
    position: relative;
    z-index: 1;
    width: min(560px, calc(100vw - 24px));
    max-height: min(86vh, 760px);
    overflow: auto;
    margin: 8vh auto 0;
    padding: 18px 18px 20px;
    background: var(--tmg-panel, #142026);
    color: var(--tmg-text, #E8EEF0);
    border: 1px solid var(--tmg-border, #243038);
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.tmg-settings-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.tmg-settings-head h2 {
    margin: 0;
    font-size: 1.25rem;
}
.tmg-settings-close {
    background: transparent;
    border: 0;
    color: var(--tmg-text, #E8EEF0);
    cursor: pointer;
    font-size: 1.6rem;
    line-height: 1;
    padding: 0 4px;
}
.tmg-settings-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 14px;
    padding: 4px;
    background: var(--tmg-bg, #0B1214);
    border-radius: 10px;
}
.tmg-settings-tabs button {
    flex: 1 1 0;
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: var(--tmg-muted, #9AA8AE);
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    padding: 10px 6px;
}
.tmg-settings-tabs button.is-active {
    background: rgba(0, 201, 177, 0.16);
    color: var(--tmg-text, #E8EEF0);
    box-shadow: inset 0 -2px 0 var(--tmg-teal, #00C9B1);
}
.tmg-settings-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tmg-settings-form[hidden] {
    display: none !important;
}
.tmg-settings-form label {
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 6px;
}
.tmg-settings-form input[type="text"],
.tmg-settings-form input[type="password"],
.tmg-settings-form textarea {
    width: 100%;
    box-sizing: border-box;
    background: var(--tmg-bg, #0B1214);
    color: var(--tmg-text, #E8EEF0);
    border: 1px solid var(--tmg-border, #243038);
    border-radius: 8px;
    padding: 10px 12px;
    font: inherit;
}
.tmg-settings-form button[type="submit"] {
    margin-top: 8px;
    align-self: flex-start;
    background: var(--tmg-teal, #00C9B1);
    color: #06211e;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
    padding: 10px 16px;
}
.tmg-settings-form button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: wait;
}
.tmg-settings-hint,
.tmg-settings-status {
    margin: 0 0 10px;
    color: var(--tmg-muted, #9AA8AE);
    font-size: 0.9rem;
}
.tmg-settings-status.is-ok {
    color: var(--tmg-teal, #00C9B1);
}
.tmg-settings-status.is-err {
    color: #e07a7a;
}
.tmg-settings-preview-photo {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
}
.tmg-settings-preview-banner {
    width: 100%;
    max-height: 140px;
    object-fit: cover;
    border-radius: 8px;
}


/* === W4g in-app notifications (brand tokens; no decorative art) === */
.tmg-notify {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 10050;
	font-family: inherit;
}
.tmg-notify-bell {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	border-radius: 999px;
	border: 1px solid var(--tmg-border);
	background: var(--tmg-panel);
	color: var(--tmg-mist);
	box-shadow: var(--tmg-shadow);
	cursor: pointer;
	font-weight: 700;
	font-size: 0.9rem;
}
.tmg-notify-bell:hover,
.tmg-notify-bell:focus-visible {
	border-color: var(--tmg-teal);
	outline: none;
}
.tmg-notify-bell-icon {
	display: none;
}
.tmg-notify-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.4em;
	height: 1.4em;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--tmg-teal);
	color: #06211e;
	font-size: 0.75rem;
	font-weight: 800;
	line-height: 1;
}
.tmg-notify-badge.is-empty {
	display: none;
}
.tmg-notify-badge--inline {
	margin-left: 8px;
	vertical-align: middle;
}
.tmg-notify-panel {
	position: absolute;
	right: 0;
	bottom: calc(100% + 8px);
	width: min(360px, calc(100vw - 24px));
	max-height: min(70vh, 480px);
	overflow: auto;
	background: var(--tmg-panel);
	color: var(--tmg-mist);
	border: 1px solid var(--tmg-border);
	border-radius: 12px;
	box-shadow: var(--tmg-shadow);
}
.tmg-notify-head,
.tmg-notify-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 10px 12px;
	border-bottom: 1px solid var(--tmg-border);
}
.tmg-notify-foot {
	border-bottom: 0;
	border-top: 1px solid var(--tmg-border);
}
.tmg-notify-mark-all,
.tmg-notify-mark {
	background: transparent;
	border: 1px solid var(--tmg-border);
	color: var(--tmg-teal);
	border-radius: 8px;
	cursor: pointer;
	font-weight: 700;
	padding: 4px 8px;
	font-size: 0.8rem;
}
.tmg-notify-mark-all:hover,
.tmg-notify-mark:hover {
	border-color: var(--tmg-teal);
}
.tmg-notify-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.tmg-notify-item {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	padding: 10px 12px;
	border-bottom: 1px solid var(--tmg-border);
}
.tmg-notify-item:last-child {
	border-bottom: 0;
}
.tmg-notify-item.is-unread {
	background: color-mix(in srgb, var(--tmg-teal) 10%, transparent);
}
.tmg-notify-item-main {
	flex: 1;
	min-width: 0;
}
.tmg-notify-type {
	display: inline-block;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--tmg-teal);
	margin-bottom: 2px;
}
.tmg-notify-title {
	display: block;
	font-weight: 700;
	color: var(--tmg-mist);
	text-decoration: none;
}
a.tmg-notify-title:hover {
	color: var(--tmg-teal);
}
.tmg-notify-body {
	margin: 4px 0 0;
	font-size: 0.85rem;
	color: var(--tmg-muted);
}
.tmg-notify-when {
	display: block;
	margin-top: 4px;
	font-size: 0.75rem;
	color: var(--tmg-muted);
}
.tmg-notify-empty {
	padding: 16px 12px;
	color: var(--tmg-muted);
	font-size: 0.9rem;
}
.tmg-notify-manage-link {
	color: var(--tmg-teal);
	font-weight: 700;
	text-decoration: none;
}
.tmg-notify-manage {
	margin-bottom: 1.25rem;
}
.tmg-notify-manage-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}
.tmg-notify-manage-head .tmg-league-section-title {
	margin: 0;
	flex: 1;
}
.tmg-notify-manage .tmg-notify-list {
	border: 1px solid var(--tmg-border);
	border-radius: 10px;
	overflow: hidden;
}
@media (max-width: 640px) {
	.tmg-notify {
		right: 10px;
		bottom: 10px;
	}
}


/* W4h5d: hide legacy [tmg_teams] Proof Squad directory + duplicate WP Teams title */
body.page-slug-teams .tmg-teams,
body.page-teams .tmg-teams,
body:has(.tmg-ladder-teams) .tmg-teams,
.page-slug-teams .tmg-teams {
	display: none !important;
}
body.page-slug-teams .wp-block-post-title,
body.page-slug-teams .entry-title,
body.page-teams .wp-block-post-title,
body.page-teams .entry-title,
body:has(.tmg-ladder-teams) .wp-block-post-title,
body:has(.tmg-ladder-teams) .entry-title,
body:has(.tmg-ladder-teams) h1.wp-block-post-title {
	display: none !important;
}


/* W4h5h4: ladder tip-top — same breathing as other non-home pages (0.35rem + 0.65rem); still kills TT5 spacing--60 */
body.page-slug-ladder:not(.home):not(.front-page) .wp-site-blocks > main,
body.page-slug-ladder:not(.home):not(.front-page) .wp-site-blocks > main.wp-block-group,
body.tmg-is-ladder-page:not(.home):not(.front-page) .wp-site-blocks > main,
body.tmg-is-ladder-page:not(.home):not(.front-page) .wp-site-blocks > main.wp-block-group,
body.page-ladder:not(.home):not(.front-page) .wp-site-blocks > main,
body:has(.tmg-ladder-teams):not(.home):not(.front-page) .wp-site-blocks > main {
	margin-top: 0.35rem !important;
	padding-top: 0 !important;
}
body.page-slug-ladder:not(.home):not(.front-page) .wp-site-blocks > main > .wp-block-group,
body.page-slug-ladder:not(.home):not(.front-page) .wp-site-blocks > main > .wp-block-group.alignfull,
body.tmg-is-ladder-page:not(.home):not(.front-page) .wp-site-blocks > main > .wp-block-group,
body.tmg-is-ladder-page:not(.home):not(.front-page) .wp-site-blocks > main > .wp-block-group.alignfull,
body.page-ladder:not(.home):not(.front-page) .wp-site-blocks > main > .wp-block-group,
body:has(.tmg-ladder-teams):not(.home):not(.front-page) .wp-site-blocks > main > .wp-block-group,
body:has(.tmg-ladder-teams):not(.home):not(.front-page) .wp-site-blocks > main > .wp-block-group.alignfull {
	margin-top: 0 !important;
	padding-top: 0.65rem !important;
}

/* W4h5h: force-hide duplicate WP title on ladder (beats earlier page-slug-ladder show) */
body.page-slug-ladder .wp-block-post-title,
body.page-slug-ladder .entry-title,
body.page-slug-ladder h1.wp-block-post-title,
body.page-ladder .wp-block-post-title,
body.page-ladder .entry-title,
body.tmg-is-ladder-page .wp-block-post-title,
body.tmg-is-ladder-page .entry-title,
body.tmg-is-ladder-page h1.wp-block-post-title,
body:has(.tmg-ladder-teams) .wp-block-post-title,
body:has(.tmg-ladder-teams) .entry-title,
body:has(.tmg-ladder-teams) h1.wp-block-post-title {
	clip: rect(0, 0, 0, 0) !important;
	display: none !important;
	height: 0 !important;
	margin: 0 !important;
	overflow: hidden !important;
	padding: 0 !important;
	position: absolute !important;
	visibility: hidden !important;
	width: 0 !important;
}

/* W4h5h2: ladder hub owns mast — never show the duplicate WP post title. */
body.page-slug-ladder .wp-block-post-title,
body.page-ladder .wp-block-post-title,
.page-slug-ladder .wp-block-post-title,
body.tmg-is-ladder-page .wp-block-post-title,
body:has(.tmg-ladder-teams) .wp-block-post-title,
body:has(.tmg-ladder-teams) .entry-title,
body:has(.tmg-ladder-teams) h1.wp-block-post-title {
	display: none !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
	position: absolute !important;
	clip: rect(0, 0, 0, 0) !important;
	width: 0 !important;
}

/* W4h5h4: ladder main/group match other non-home pages; nested first-child stays flush (no empty band). */
body.tmg-is-ladder-page:not(.home):not(.front-page) .wp-site-blocks > main,
body.page-slug-ladder:not(.home):not(.front-page) .wp-site-blocks > main,
body.page-ladder:not(.home):not(.front-page) .wp-site-blocks > main,
body:has(.tmg-ladder-teams):not(.home):not(.front-page) .wp-site-blocks > main {
	margin-top: 0.35rem !important;
	padding-top: 0 !important;
}
body.tmg-is-ladder-page:not(.home):not(.front-page) .wp-site-blocks > main > .wp-block-group,
body.page-slug-ladder:not(.home):not(.front-page) .wp-site-blocks > main > .wp-block-group,
body.page-ladder:not(.home):not(.front-page) .wp-site-blocks > main > .wp-block-group,
body:has(.tmg-ladder-teams):not(.home):not(.front-page) .wp-site-blocks > main > .wp-block-group,
body.tmg-is-ladder-page:not(.home):not(.front-page) .wp-site-blocks > main > .wp-block-group.alignfull,
body.page-slug-ladder:not(.home):not(.front-page) .wp-site-blocks > main > .wp-block-group.alignfull,
body.page-ladder:not(.home):not(.front-page) .wp-site-blocks > main > .wp-block-group.alignfull,
body:has(.tmg-ladder-teams):not(.home):not(.front-page) .wp-site-blocks > main > .wp-block-group.alignfull {
	margin-top: 0 !important;
	padding-top: 0.65rem !important;
}
body.tmg-is-ladder-page:not(.home):not(.front-page) .wp-site-blocks > main > .wp-block-group > .wp-block-group:first-child,
body.page-slug-ladder:not(.home):not(.front-page) .wp-site-blocks > main > .wp-block-group > .wp-block-group:first-child,
body.page-ladder:not(.home):not(.front-page) .wp-site-blocks > main > .wp-block-group > .wp-block-group:first-child,
body:has(.tmg-ladder-teams):not(.home):not(.front-page) .wp-site-blocks > main > .wp-block-group > .wp-block-group:first-child {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

body.tmg-is-ladder-page .entry-content,
body.tmg-is-ladder-page .wp-block-post-content,
body.page-slug-ladder .entry-content,
body.page-slug-ladder .wp-block-post-content,
body.page-ladder .entry-content,
body.page-ladder .wp-block-post-content,
body:has(.tmg-ladder-teams) .entry-content,
body:has(.tmg-ladder-teams) .wp-block-post-content {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

body.tmg-is-ladder-page .entry-content > :first-child,
body.tmg-is-ladder-page .wp-block-post-content > :first-child,
body.page-slug-ladder .entry-content > :first-child,
body.page-slug-ladder .wp-block-post-content > :first-child,
body.page-ladder .entry-content > :first-child,
body.page-ladder .wp-block-post-content > :first-child,
body:has(.tmg-ladder-teams) .entry-content > :first-child,
body:has(.tmg-ladder-teams) .wp-block-post-content > :first-child {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

body.tmg-is-ladder-page .tmg-ladder-teams-header,
body.page-slug-ladder .tmg-ladder-teams-header,
body.page-ladder .tmg-ladder-teams-header,
body:has(.tmg-ladder-teams) .tmg-ladder-teams-header {
	margin-top: 0 !important;
	padding-top: 0.65rem !important;
}


/* W4h5h4: beat TT5 inline spacing--60; restore unified tip-top rhythm (0.35rem + 0.65rem) */
body.page-slug-ladder main#wp--skip-link--target,
body.tmg-is-ladder-page main#wp--skip-link--target,
body.page-slug-ladder .wp-site-blocks > main,
body.tmg-is-ladder-page .wp-site-blocks > main {
  margin-top: 0.35rem !important;
  padding-top: 0 !important;
}
body.page-slug-ladder .wp-site-blocks > main > .wp-block-group,
body.tmg-is-ladder-page .wp-site-blocks > main > .wp-block-group {
  margin-top: 0 !important;
  padding-top: 0.65rem !important; /* kills inline padding-top:spacing--60; matches other pages */
}
body.page-slug-ladder .tmg-ladder-teams,
body.tmg-is-ladder-page .tmg-ladder-teams {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
body.page-slug-ladder .tmg-ladder-teams-header,
body.tmg-is-ladder-page .tmg-ladder-teams-header {
  margin-top: 0 !important;
  padding-top: 0.65rem !important; /* modest header panel air */
}
body.page-slug-ladder .tmg-ladder-login-hint,
body.tmg-is-ladder-page .tmg-ladder-login-hint {
  margin: 0.35rem 0 0 !important;
}


/* W4h5i — Account settings: merged photos tab, social tab, delete account */
.tmg-settings-form input[type="url"] {
    width: 100%;
    box-sizing: border-box;
    background: var(--tmg-bg, #0B1214);
    color: var(--tmg-text, #E8EEF0);
    border: 1px solid var(--tmg-border, #243038);
    border-radius: 8px;
    padding: 10px 12px;
    font: inherit;
}
.tmg-settings-photos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 640px) {
    .tmg-settings-photos-grid { grid-template-columns: 1fr; }
}
.tmg-settings-photo-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.tmg-settings-password-links {
    margin: 12px 0 0;
}
.tmg-settings-forgot {
    color: var(--tmg-teal, #00C9B1);
    font-weight: 700;
    text-decoration: none;
}
.tmg-settings-forgot:hover { text-decoration: underline; }
.tmg-settings-danger {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--tmg-border, #243038);
}
.tmg-settings-danger-title {
    margin: 0 0 8px;
    font-size: 1rem;
    color: #e07a7a;
}
.tmg-settings-danger-btn {
    margin-top: 8px;
    align-self: flex-start;
    background: #7a1f1f;
    color: #ffeaea;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
    padding: 10px 16px;
}
.tmg-settings-danger-btn:hover { filter: brightness(1.08); }
.tmg-register-social {
    margin: 16px 0;
    padding: 14px 16px;
    background: var(--tmg-panel, #142026);
    border: 1px solid var(--tmg-border, #243038);
    border-radius: 12px;
}
.tmg-register-social-title {
    margin: 0 0 6px;
    font-weight: 800;
}
.tmg-register-social-field {
    margin: 10px 0;
}
.tmg-register-social-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.tmg-register-social-field input {
    width: 100%;
    box-sizing: border-box;
}
.tmg-ladder-result-facing {
    font-weight: 700;
}
.tmg-ladder-result-facing .tmg-vs-sep {
    margin: 0 6px;
    color: var(--tmg-muted, #9AA8AE);
    font-weight: 600;
}


/* W4h5l — Halo bind status in Account settings */
.tmg-halo-url-preview {
	word-break: break-all;
	opacity: 0.85;
	font-size: 0.85em;
}
.tmg-halo-flag {
	color: #e8a838;
	font-weight: 600;
}


/* 1.8.84 — Account settings popup phone width (Cap: mobile only; no desktop modal redesign). */
@media (max-width: 782px) {
  .tmg-settings-panel {
    box-sizing: border-box;
    width: calc(100vw - 24px);
    max-width: 100%;
    min-width: 0;
    margin: 4vh auto 0;
    max-height: min(90vh, 100dvh - 24px);
    padding: 14px 14px 16px;
  }
  .tmg-settings-tabs {
    flex-wrap: wrap;
    min-width: 0;
  }
  .tmg-settings-tabs button {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    font-size: 12px;
    padding: 8px 4px;
  }
  .tmg-settings-form input[type="text"],
  .tmg-settings-form input[type="password"],
  .tmg-settings-form input[type="url"],
  .tmg-settings-form textarea {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
  }
  .tmg-settings-head h2 {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  /* LO standings: scroll the table on phone; do not redesign desktop columns. */
  .tmg-lo-standings {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
