/*
 * Pool League Manager - public styles
 * Design language: clubhouse scoreboard. Deep baize green + brass rail gold
 * + chalk cream, with monospaced numerals standing in for a real scoreboard.
 */

.plm-wrap {
	--plm-baize: #123524;
	--plm-baize-dark: #0a2115;
	--plm-cream: #f6f1e4;
	--plm-brass: #c69a3d;
	--plm-brass-light: #e7c876;
	--plm-ink: #1c211d;
	--plm-surface: #fffdf8;
	--plm-surface-alt: #f6f2e8;
	--plm-line: rgba(18, 53, 36, 0.14);
	--plm-red: #9c2b2b;

	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--plm-ink);
	max-width: 820px;
	margin: 0 auto;
	background: var(--plm-surface);
	border: 1px solid var(--plm-line);
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(10, 33, 21, 0.06);
}

.plm-wrap * {
	box-sizing: border-box;
}

@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap");

.plm-header {
	background: var(--plm-baize);
	background-image:
		repeating-linear-gradient(45deg, rgba(255,255,255,0.025) 0, rgba(255,255,255,0.025) 1px, transparent 1px, transparent 26px),
		repeating-linear-gradient(-45deg, rgba(255,255,255,0.025) 0, rgba(255,255,255,0.025) 1px, transparent 1px, transparent 26px);
	color: var(--plm-cream);
	padding: 28px 28px 22px;
	border-bottom: 3px solid var(--plm-brass);
}

.plm-league-name {
	font-family: "Fraunces", Georgia, serif;
	font-weight: 600;
	font-size: 26px;
	letter-spacing: 0.01em;
	margin: 0;
	color: var(--plm-cream);
}

.plm-tabs {
	display: flex;
	gap: 6px;
	padding: 14px 20px;
	background: var(--plm-surface-alt);
	border-bottom: 1px solid var(--plm-line);
}

.plm-tab-btn {
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	background: transparent;
	border: 1px solid transparent;
	border-radius: 7px;
	color: rgba(28, 33, 29, 0.6);
	padding: 9px 16px;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	box-shadow: none;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.plm-tab-btn:hover {
	color: var(--plm-baize);
	background: rgba(18, 53, 36, 0.06);
}

.plm-tab-btn.is-active {
	color: var(--plm-cream);
	background: var(--plm-baize);
	border-color: var(--plm-baize);
}

.plm-tab-btn.is-active:hover {
	color: var(--plm-cream);
	background: var(--plm-baize);
}

.plm-tab-btn:focus-visible {
	outline: 2px solid var(--plm-brass);
	outline-offset: 2px;
}

.plm-tab-panel {
	padding: 20px 20px 26px;
}

.plm-table-scroll {
	overflow-x: auto;
}

.plm-standings-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	min-width: 480px;
}

.plm-standings-table th {
	text-align: center;
	font-size: 11.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: rgba(28, 33, 29, 0.5);
	padding: 8px 6px;
	border-bottom: 2px solid var(--plm-line);
}

.plm-standings-table th.plm-col-team {
	text-align: left;
}

.plm-standings-table td {
	text-align: center;
	padding: 10px 6px;
	border-bottom: 1px solid var(--plm-line);
	font-variant-numeric: tabular-nums;
	font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
	font-size: 13.5px;
}

.plm-standings-table td.plm-col-team {
	text-align: left;
	font-family: inherit;
	font-weight: 600;
	font-size: 14px;
}

.plm-standings-table td.plm-col-pos {
	font-weight: 700;
	color: var(--plm-baize);
}

.plm-standings-table tbody tr:nth-child(-n+1) td.plm-col-pos {
	position: relative;
}

.plm-standings-table td.plm-col-pts {
	background: rgba(198, 154, 61, 0.12);
	font-weight: 700;
	color: var(--plm-baize-dark);
}

.plm-standings-table tbody tr:hover td {
	background-color: rgba(18, 53, 36, 0.035);
}
.plm-standings-table tbody tr:hover td.plm-col-pts {
	background-color: rgba(198, 154, 61, 0.2);
}

.plm-fixture-date-group {
	margin-bottom: 20px;
}

.plm-fixture-date {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--plm-brass);
	border-bottom: 1px solid var(--plm-line);
	padding-bottom: 6px;
	margin: 0 0 8px;
}

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

.plm-fixture-row {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 10px;
	padding: 9px 4px;
	border-bottom: 1px solid var(--plm-line);
	font-size: 14px;
}

.plm-fixture-home {
	text-align: right;
}

.plm-fixture-away {
	text-align: left;
}

.plm-fixture-vs {
	font-size: 11px;
	color: rgba(28, 33, 29, 0.4);
	font-weight: 700;
	text-transform: uppercase;
}

.plm-fixture-score {
	font-family: "IBM Plex Mono", monospace;
	font-weight: 700;
	font-size: 14px;
	color: var(--plm-baize);
	background: rgba(198, 154, 61, 0.14);
	border-radius: 6px;
	padding: 3px 10px;
	white-space: nowrap;
}

.plm-frame-breakdown {
	list-style: none;
	padding: 0 4px 10px;
	margin-top: -4px;
}

.plm-frame-breakdown summary {
	font-size: 12px;
	color: var(--plm-baize);
	cursor: pointer;
	font-weight: 600;
	list-style: none;
}

.plm-frame-breakdown summary::-webkit-details-marker {
	display: none;
}

.plm-frame-breakdown summary::before {
	content: "\25B8";
	display: inline-block;
	margin-right: 5px;
	font-size: 10px;
	transition: transform 0.12s ease;
}

.plm-frame-breakdown details[open] summary::before {
	transform: rotate(90deg);
}

.plm-frame-breakdown-list {
	list-style: none;
	margin: 8px 0 4px;
	padding: 8px 10px;
	background: var(--plm-surface-alt);
	border-radius: 6px;
	display: grid;
	gap: 4px;
}

.plm-frame-breakdown-list li {
	display: grid;
	grid-template-columns: 20px 1fr auto 1fr;
	align-items: center;
	gap: 6px;
	font-size: 12.5px;
}

.plm-frame-breakdown-num {
	color: rgba(28, 33, 29, 0.4);
	font-family: "IBM Plex Mono", monospace;
}

.plm-frame-breakdown-vs {
	font-size: 10px;
	color: rgba(28, 33, 29, 0.35);
	text-transform: uppercase;
	text-align: center;
}

.plm-frame-winner {
	font-weight: 700;
	color: #16803a;
}

.plm-frame-loser {
	font-weight: 600;
	color: #b42318;
}

.plm-player-stats-table td.plm-col-team:nth-child(3) {
	color: rgba(28, 33, 29, 0.65);
	font-weight: 500;
}

.plm-col-form {
	white-space: nowrap;
}

.plm-form-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 4px;
	font-size: 9.5px;
	font-weight: 700;
	margin-right: 2px;
	font-family: "IBM Plex Mono", monospace;
}

.plm-form-w {
	background: rgba(18, 53, 36, 0.14);
	color: var(--plm-baize);
}

.plm-form-d {
	background: rgba(198, 154, 61, 0.2);
	color: #7a5a1e;
}

.plm-form-l {
	background: rgba(156, 43, 43, 0.12);
	color: var(--plm-red);
}

.plm-leaders-row {
	display: flex;
	gap: 12px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.plm-leader-card {
	flex: 1;
	min-width: 180px;
	background: var(--plm-baize);
	color: var(--plm-cream);
	border-radius: 8px;
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.plm-leader-label {
	font-size: 10.5px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: rgba(246, 241, 228, 0.7);
	font-weight: 700;
}

.plm-leader-name {
	font-family: "Fraunces", Georgia, serif;
	font-size: 18px;
	font-weight: 600;
}

.plm-leader-value {
	font-size: 12.5px;
	color: var(--plm-brass-light);
	font-weight: 600;
}

.plm-empty {
	color: rgba(28, 33, 29, 0.55);
	font-style: italic;
	padding: 10px 0;
}

.plm-roster-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 14px;
}

.plm-roster-card {
	background: var(--plm-surface-alt);
	border: 1px solid var(--plm-line);
	border-top: 3px solid var(--plm-brass);
	border-radius: 8px;
	padding: 14px 16px;
	width: 100%;
	text-align: left;
	cursor: pointer;
	font-family: inherit;
	display: flex;
	flex-direction: column;
	gap: 4px;
	transition: box-shadow 0.15s ease, border-color 0.15s ease;
	appearance: none;
	-webkit-appearance: none;
}

.plm-roster-card:hover {
	border-color: var(--plm-brass);
	box-shadow: 0 2px 6px rgba(18, 53, 36, 0.08);
}

.plm-roster-card:focus-visible {
	outline: 2px solid var(--plm-brass);
	outline-offset: 2px;
}

.plm-roster-card-title {
	font-family: "Fraunces", Georgia, serif;
	font-size: 15px;
	font-weight: 600;
	color: var(--plm-baize);
}

.plm-roster-card-count {
	font-size: 12px;
	color: rgba(28, 33, 29, 0.55);
}

.plm-roster-modal {
	border: none;
	border-radius: 10px;
	padding: 0;
	width: min(360px, 90vw);
	box-shadow: 0 12px 32px rgba(10, 33, 21, 0.25);
}

.plm-roster-modal::backdrop {
	background: rgba(10, 33, 21, 0.45);
}

.plm-roster-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 18px;
	background: var(--plm-baize);
	color: var(--plm-cream);
}

.plm-roster-modal-title {
	font-family: "Fraunces", Georgia, serif;
	font-size: 17px;
	font-weight: 600;
	margin: 0;
}

.plm-roster-modal-close {
	background: none;
	border: none;
	color: var(--plm-cream);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	padding: 0 2px;
}

.plm-roster-modal-body {
	padding: 16px 18px 20px;
	max-height: 60vh;
	overflow-y: auto;
}

.plm-roster-modal-list {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 14px;
}

.plm-roster-modal-list li {
	padding: 8px 0;
	border-bottom: 1px solid var(--plm-line);
}

.plm-roster-modal-list li:last-child {
	border-bottom: none;
}

.plm-roster-card-empty {
	font-size: 13px;
	font-style: italic;
	color: rgba(28, 33, 29, 0.5);
	margin: 0;
}

.plm-roster-modal-ical {
	display: inline-block;
	margin-top: 10px;
	font-size: 12.5px;
	color: var(--plm-baize);
	text-decoration: underline;
}

.plm-ical-link {
	font-size: 13px;
	margin: 0 0 14px;
}

.plm-ical-link a {
	color: var(--plm-baize);
	text-decoration: none;
	font-weight: 600;
}

.plm-ical-link a:hover {
	text-decoration: underline;
}

/* ---------------- Captain Portal ---------------- */

.plm-portal .plm-header {
	display: none;
}

.plm-notice {
	margin: 16px 20px 0;
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 14px;
}

.plm-notice-success {
	background: rgba(18, 53, 36, 0.08);
	color: var(--plm-baize);
	border: 1px solid rgba(18, 53, 36, 0.2);
}

.plm-notice-error {
	background: rgba(156, 43, 43, 0.08);
	color: var(--plm-red);
	border: 1px solid rgba(156, 43, 43, 0.25);
}

/* Toasts - transient success/error feedback that announces itself then
   gets out of the way, rather than a banner permanently taking up space. */
.plm-toast-wrap {
	position: fixed;
	left: 50%;
	bottom: 24px;
	transform: translateX(-50%);
	z-index: 9999;
	width: min(92vw, 380px);
	pointer-events: none;
}

.plm-toast {
	pointer-events: auto;
	background: var(--plm-baize);
	color: var(--plm-cream);
	border-radius: 10px;
	padding: 13px 18px;
	font-size: 14px;
	font-weight: 500;
	box-shadow: 0 8px 24px rgba(10, 33, 21, 0.3);
	animation: plm-toast-in 0.25s ease;
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.plm-toast-error {
	background: #7a2620;
}

.plm-toast.plm-toast-hide {
	opacity: 0;
	transform: translateY(10px);
}

@keyframes plm-toast-in {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.plm-toast {
		animation: none;
	}
}

.plm-login-card {
	max-width: 340px;
	margin: 28px auto;
	padding: 26px 24px 24px;
	text-align: left;
}

.plm-login-card h3 {
	font-family: "Fraunces", Georgia, serif;
	font-size: 22px;
	margin: 0 0 4px;
	color: var(--plm-baize);
}

.plm-login-sub {
	font-size: 13.5px;
	color: rgba(28, 33, 29, 0.6);
	margin: 0 0 18px;
}

.plm-form label {
	display: block;
	margin-bottom: 14px;
	font-size: 13px;
	font-weight: 600;
	color: var(--plm-ink);
}

.plm-form label span {
	display: block;
	margin-bottom: 5px;
}

.plm-form input[type="text"],
.plm-form input[type="password"] {
	width: 100%;
	padding: 9px 11px;
	border: 1px solid var(--plm-line);
	border-radius: 6px;
	font-size: 14px;
	font-family: inherit;
}

.plm-form input:focus {
	outline: 2px solid var(--plm-brass);
	outline-offset: 1px;
	border-color: var(--plm-brass);
}

.plm-btn {
	font-family: inherit;
	font-weight: 700;
	font-size: 13.5px;
	letter-spacing: 0.02em;
	border-radius: 6px;
	padding: 10px 18px;
	border: none;
	cursor: pointer;
	transition: filter 0.12s ease;
}

.plm-btn:hover {
	filter: brightness(1.08);
}

.plm-btn-primary {
	background: var(--plm-baize);
	color: var(--plm-cream);
	width: 100%;
}

.plm-btn-secondary {
	background: var(--plm-brass);
	color: var(--plm-baize-dark);
}

.plm-btn-link {
	background: transparent;
	color: rgba(28, 33, 29, 0.55);
	text-decoration: underline;
	font-weight: 500;
	padding: 4px 0;
}

.plm-btn-small {
	padding: 7px 14px;
	font-size: 12.5px;
}

.plm-portal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	background: var(--plm-baize);
	color: var(--plm-cream);
}

.plm-portal-team {
	display: block;
	font-family: "Fraunces", Georgia, serif;
	font-size: 19px;
	font-weight: 600;
}

.plm-portal-welcome {
	display: block;
	font-size: 12px;
	color: rgba(246, 241, 228, 0.7);
	margin-top: 2px;
}

.plm-portal-heading {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: rgba(28, 33, 29, 0.55);
	margin: 20px 20px 10px;
}

.plm-frame-cards {
	display: grid;
	gap: 12px;
	padding: 0 20px 20px;
}

.plm-score-date {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: rgba(28, 33, 29, 0.5);
	font-weight: 700;
}

.plm-frame-card {
	background: var(--plm-surface-alt);
	border: 1px solid var(--plm-line);
	border-left: 4px solid var(--plm-brass);
	border-radius: 8px;
	padding: 0;
	overflow: hidden;
}

.plm-frame-card-played {
	border-left-color: rgba(18, 53, 36, 0.35);
}

.plm-frame-summary {
	list-style: none;
	cursor: pointer;
	padding: 14px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
}

.plm-frame-summary::-webkit-details-marker {
	display: none;
}

.plm-frame-summary .plm-score-date {
	margin-bottom: 0;
}

.plm-frame-summary-teams {
	font-weight: 600;
	font-size: 14px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.plm-frame-summary-vs {
	font-size: 11px;
	color: rgba(28, 33, 29, 0.4);
	text-transform: uppercase;
}

.plm-frame-summary-score {
	font-family: "IBM Plex Mono", monospace;
	color: var(--plm-baize);
	background: rgba(198, 154, 61, 0.16);
	border-radius: 6px;
	padding: 2px 9px;
}

.plm-frame-form {
	padding: 4px 16px 16px;
	border-top: 1px solid var(--plm-line);
}

.plm-slot-list {
	display: grid;
	gap: 8px;
	margin: 12px 0;
}

.plm-slot-row {
	background: var(--plm-surface);
	border: 1px solid var(--plm-line);
	border-radius: 8px;
	padding: 10px 12px;
}

.plm-slot-row[data-plm-slot-type="doubles"] {
	border-left: 3px solid var(--plm-brass);
}

.plm-slot-label-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 8px;
}

.plm-slot-label {
	display: flex;
	align-items: baseline;
	gap: 8px;
	font-family: "IBM Plex Mono", monospace;
	font-weight: 700;
	font-size: 13px;
	color: var(--plm-baize);
}

.plm-slot-label-type {
	font-family: inherit;
	font-weight: 600;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: rgba(28, 33, 29, 0.45);
}

.plm-walkover-toggle {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 11px;
	font-weight: 600;
	color: rgba(28, 33, 29, 0.55);
	cursor: pointer;
	white-space: nowrap;
}

.plm-walkover-toggle input {
	width: 15px;
	height: 15px;
	accent-color: var(--plm-red);
	cursor: pointer;
}

.plm-walkover-toggle input:checked ~ span,
.plm-walkover-toggle:has(input:checked) span {
	color: var(--plm-red);
}

.plm-walkover-hint {
	font-size: 11.5px;
	font-style: italic;
	color: var(--plm-red);
	margin: -2px 0 8px;
}

.plm-slot-side select:disabled {
	background: rgba(28, 33, 29, 0.05);
	color: rgba(28, 33, 29, 0.35);
	cursor: not-allowed;
}

.plm-slot-sides {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.plm-slot-side {
	flex: 1;
	min-width: 130px;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.plm-slot-side select,
.plm-frame-col-player select {
	width: 100%;
	padding: 8px 8px;
	border: 1px solid var(--plm-line);
	border-radius: 6px;
	font-size: 13px;
	font-family: inherit;
	background: #fff;
	min-height: 38px;
}

.plm-slot-side select.plm-player-conflict {
	border-color: var(--plm-red);
	background: rgba(156, 43, 43, 0.06);
}

.plm-slot-winner {
	display: flex;
	gap: 6px;
	justify-content: center;
	flex-shrink: 0;
}

.plm-winner-toggle {
	position: relative;
}

.plm-winner-toggle input {
	position: absolute;
	opacity: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	cursor: pointer;
}

.plm-winner-toggle span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 6px;
	border: 1px solid var(--plm-line);
	background: #fff;
	font-size: 12px;
	font-weight: 700;
	color: rgba(28, 33, 29, 0.45);
}

.plm-winner-toggle input:checked + span {
	background: var(--plm-baize);
	border-color: var(--plm-baize);
	color: var(--plm-cream);
}

.plm-winner-toggle input:focus-visible + span {
	outline: 2px solid var(--plm-brass);
	outline-offset: 1px;
}

.plm-frame-hint {
	font-size: 12px;
	color: rgba(28, 33, 29, 0.55);
	margin: 6px 0 12px;
}

.plm-lineup-warning {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--plm-red);
	background: rgba(156, 43, 43, 0.08);
	border-radius: 6px;
	padding: 8px 10px;
	margin: 0 0 12px;
}

.plm-confirm-badge {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 3px 9px;
	border-radius: 999px;
	white-space: nowrap;
}

.plm-confirm-badge-confirmed {
	background: rgba(18, 53, 36, 0.1);
	color: var(--plm-baize);
}

.plm-confirm-badge-disputed {
	background: rgba(156, 43, 43, 0.1);
	color: var(--plm-red);
}

.plm-confirm-badge-pending {
	background: rgba(198, 154, 61, 0.16);
	color: #7a5a1e;
}

.plm-frame-card-confirm {
	border-left-color: var(--plm-red);
}

.plm-frame-breakdown-list-standalone {
	margin: 12px 0;
}

.plm-confirm-actions {
	display: flex;
	gap: 10px;
	margin-top: 10px;
	flex-wrap: wrap;
}

.plm-btn-dispute {
	background: transparent;
	border: 1px solid var(--plm-red);
	color: var(--plm-red);
}

.plm-btn-dispute:hover {
	background: rgba(156, 43, 43, 0.08);
}

.plm-match-format-note {
	font-family: "IBM Plex Mono", monospace;
	font-weight: 700;
	font-size: 14px;
	color: var(--plm-baize);
	margin: 0 0 4px;
}

.plm-owner-format-note {
	font-size: 13px;
	background: var(--plm-surface-alt);
	border: 1px solid var(--plm-line);
	border-radius: 6px;
	padding: 8px 12px;
	margin: 0 0 12px;
	font-family: "IBM Plex Mono", monospace;
}

@media (max-width: 480px) {
	.plm-slot-sides {
		flex-direction: column;
		align-items: stretch;
	}
	.plm-slot-side {
		min-width: 0;
	}
	.plm-slot-winner {
		justify-content: center;
		order: 2;
	}
	.plm-slot-side:first-of-type {
		order: 1;
	}
	.plm-slot-side:last-of-type {
		order: 3;
	}
}

@media (max-width: 380px) {
	.plm-winner-toggle span {
		width: 44px;
		height: 44px;
	}
	.plm-btn,
	.plm-btn-small {
		min-height: 44px;
	}
}

@media (max-width: 480px) {
	.plm-league-name {
		font-size: 21px;
	}
	.plm-tab-btn {
		flex: 1;
		text-align: center;
		padding: 10px 6px 12px;
		font-size: 12px;
	}
	.plm-score-team-name {
		min-width: 70px;
		font-size: 13px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.plm-wrap * {
		transition: none !important;
	}
}

/* ---------------- Owner Dashboard ---------------- */

.plm-form-secondary {
	margin-top: 12px;
	text-align: center;
}

.plm-owner-nav {
	display: flex;
	gap: 6px;
	padding: 14px 20px;
	background: var(--plm-surface-alt);
	border-bottom: 1px solid var(--plm-line);
}

.plm-owner-nav-link {
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	text-decoration: none;
	color: rgba(28, 33, 29, 0.6);
	padding: 9px 16px;
	border-radius: 7px;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.plm-owner-nav-link:hover {
	color: var(--plm-baize);
	background: rgba(18, 53, 36, 0.06);
}

.plm-owner-nav-link.is-active {
	color: var(--plm-cream);
	background: var(--plm-baize);
}

.plm-owner-body {
	padding: 18px 20px 26px;
}

.plm-owner-season-picker {
	margin-bottom: 16px;
}

.plm-owner-season-picker select {
	margin-left: 6px;
	padding: 5px 8px;
	border-radius: 6px;
	border: 1px solid var(--plm-line);
}

.plm-owner-form,
.plm-owner-inline-form {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: flex-end;
	background: var(--plm-surface-alt);
	border: 1px solid var(--plm-line);
	border-radius: 8px;
	padding: 14px 16px;
	margin-bottom: 18px;
}

.plm-owner-inline-form-tight {
	display: flex;
	gap: 8px;
	margin-top: 8px;
}

.plm-owner-form label,
.plm-owner-inline-form label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 12px;
	font-weight: 600;
	color: rgba(28, 33, 29, 0.7);
}

.plm-owner-checkbox {
	flex-direction: row !important;
	align-items: center;
	gap: 6px !important;
}

.plm-owner-points-row {
	display: flex;
	gap: 10px;
}

.plm-owner-form input[type="text"],
.plm-owner-form input[type="email"],
.plm-owner-form input[type="date"],
.plm-owner-form input[type="number"],
.plm-owner-form select,
.plm-owner-inline-form input[type="text"],
.plm-owner-inline-form input[type="email"],
.plm-owner-inline-form input[type="date"],
.plm-owner-inline-form input[type="number"],
.plm-owner-inline-form select,
.plm-owner-inline-form-tight input[type="text"] {
	padding: 7px 9px;
	border: 1px solid var(--plm-line);
	border-radius: 6px;
	font-size: 13px;
	font-family: inherit;
	background: #fff;
}

.plm-owner-exclusion-list {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
	font-size: 13px;
}

.plm-owner-exclusion-list li {
	padding: 5px 0;
	border-bottom: 1px solid var(--plm-line);
	display: flex;
	justify-content: space-between;
	gap: 10px;
}

.plm-owner-season-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.plm-owner-season-list li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 0;
	border-bottom: 1px solid var(--plm-line);
	font-size: 13.5px;
	flex-wrap: wrap;
}

.plm-owner-season-name {
	font-weight: 600;
	margin-right: auto;
}

.plm-owner-season-list a,
.plm-text-btn-portal {
	font-size: 12.5px;
	color: var(--plm-baize);
	text-decoration: underline;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
}

.plm-text-btn-portal-danger {
	color: var(--plm-red);
}

.plm-owner-team-list {
	display: grid;
	gap: 14px;
}

.plm-owner-team-card {
	background: var(--plm-surface-alt);
	border: 1px solid var(--plm-line);
	border-left: 4px solid var(--plm-brass);
	border-radius: 8px;
	padding: 14px 16px;
}

.plm-owner-team-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}

.plm-owner-team-card-header strong {
	font-size: 15px;
}

.plm-owner-team-section {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid var(--plm-line);
}

.plm-owner-team-label {
	display: block;
	font-size: 10.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: rgba(28, 33, 29, 0.5);
	margin-bottom: 6px;
}

.plm-owner-captain-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 4px;
}

.plm-owner-roster-list {
	list-style: none;
	margin: 0 0 8px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.plm-owner-roster-list li {
	display: flex;
	align-items: center;
	gap: 6px;
	background: #fff;
	border: 1px solid var(--plm-line);
	border-radius: 999px;
	padding: 4px 6px 4px 12px;
	font-size: 12.5px;
}

.plm-owner-empty-inline {
	font-size: 12.5px;
	font-style: italic;
	color: rgba(28, 33, 29, 0.5);
	margin: 0 0 8px;
}

.plm-icon-btn-portal,
.plm-icon-btn-portal-tiny {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: none;
	background: transparent;
	cursor: pointer;
	border-radius: 6px;
	color: rgba(28, 33, 29, 0.5);
	padding: 0;
}

.plm-icon-btn-portal {
	width: 30px;
	height: 30px;
}

.plm-icon-btn-portal-tiny {
	width: 20px;
	height: 20px;
}

.plm-icon-btn-portal .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

.plm-icon-btn-portal-tiny .dashicons {
	font-size: 13px;
	width: 13px;
	height: 13px;
}

.plm-icon-btn-portal:hover,
.plm-icon-btn-portal-tiny:hover {
	background: rgba(18, 53, 36, 0.08);
	color: var(--plm-baize);
}

.plm-icon-btn-portal-danger:hover {
	background: rgba(156, 43, 43, 0.1);
	color: var(--plm-red);
}

.plm-owner-generate {
	margin-bottom: 18px;
}

.plm-owner-fixture-rounds {
	display: grid;
	gap: 18px;
}

.plm-owner-round-group {
	background: var(--plm-surface);
	border: 1px solid var(--plm-line);
	border-radius: 12px;
	overflow: hidden;
}

.plm-owner-round-title {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 52px;
	padding: 12px 14px;
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--plm-brass);
	margin: 0;
}

.plm-owner-round-title::-webkit-details-marker { display: none; }
.plm-owner-round-title::marker { content: ''; }
.plm-owner-round-date { margin-left: auto; color: var(--plm-muted); font-size: 12px; font-weight: 700; text-transform: none; letter-spacing: 0; }
.plm-owner-round-chevron { transition: transform .18s ease; }
.plm-owner-round-group[open] .plm-owner-round-chevron { transform: rotate(180deg); }
.plm-owner-round-body { padding: 0 10px 10px; border-top: 1px solid var(--plm-line); }
.plm-owner-round-body .plm-owner-fixture-row:first-child { margin-top: 10px; }

@media (max-width: 480px) {
	.plm-owner-round-title { min-height: 56px; padding: 12px; }
	.plm-owner-round-date { font-size: 11px; }
	.plm-owner-round-body { padding: 0 8px 8px; }
}

.plm-owner-fixture-row {
	background: var(--plm-surface-alt);
	border: 1px solid var(--plm-line);
	border-radius: 8px;
	padding: 0;
	margin-bottom: 8px;
}

.plm-owner-fixture-row summary {
	list-style: none;
	cursor: pointer;
	padding: 10px 14px;
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13.5px;
	flex-wrap: wrap;
}

.plm-owner-fixture-row summary::-webkit-details-marker {
	display: none;
}

.plm-owner-vs {
	font-size: 11px;
	text-transform: uppercase;
	color: rgba(28, 33, 29, 0.4);
}

.plm-owner-fixture-row form {
	padding: 0 14px 14px;
	border-top: 1px solid var(--plm-line);
	padding-top: 10px;
}

@media (max-width: 480px) {
	.plm-owner-nav {
		flex-wrap: wrap;
	}
	.plm-owner-form,
	.plm-owner-inline-form,
	.plm-owner-inline-form-tight {
		flex-direction: column;
		align-items: stretch;
	}
	.plm-owner-form input,
	.plm-owner-form select,
	.plm-owner-inline-form input,
	.plm-owner-inline-form select,
	.plm-owner-inline-form-tight input {
		min-height: 44px;
		font-size: 15px;
	}
	.plm-owner-points-row {
		flex-wrap: wrap;
	}
	.plm-icon-btn-portal {
		width: 40px;
		height: 40px;
	}
	.plm-icon-btn-portal-tiny {
		width: 30px;
		height: 30px;
	}
	.plm-owner-season-list li {
		gap: 12px 14px;
	}
	.plm-owner-season-picker select {
		width: 100%;
		min-height: 44px;
		font-size: 15px;
	}
	.plm-owner-team-card-header {
		flex-wrap: wrap;
		gap: 8px;
	}
	.plm-owner-captain-row {
		flex-wrap: wrap;
	}
}

/* ---------------- Dashboard tiles (owner + captain home screens) ---------------- */

.plm-dashboard-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 14px;
}

.plm-dashboard-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	aspect-ratio: 1 / 1;
	background: var(--plm-surface-alt);
	border: 1px solid var(--plm-line);
	border-radius: 14px;
	padding: 20px 14px;
	text-align: center;
	text-decoration: none;
	color: var(--plm-ink);
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.plm-dashboard-tile:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(18, 53, 36, 0.12);
	border-color: var(--plm-brass);
}

.plm-dashboard-tile:focus-visible {
	outline: 2px solid var(--plm-brass);
	outline-offset: 2px;
}

.plm-dashboard-tile-icon {
	font-size: 32px;
	width: 32px;
	height: 32px;
	color: var(--plm-baize);
}

.plm-dashboard-tile-label {
	font-family: "Fraunces", Georgia, serif;
	font-weight: 600;
	font-size: 16px;
	color: var(--plm-baize);
}

.plm-dashboard-tile-desc {
	font-size: 11.5px;
	line-height: 1.35;
	color: rgba(28, 33, 29, 0.55);
}

.plm-dashboard-tile-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	background: var(--plm-red);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	min-width: 20px;
	height: 20px;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 5px;
}

@media (max-width: 480px) {
	.plm-dashboard-tiles {
		grid-template-columns: repeat(2, 1fr);
	}
	.plm-dashboard-tile-icon {
		font-size: 26px;
		width: 26px;
		height: 26px;
	}
	.plm-dashboard-tile-label {
		font-size: 14px;
	}
}

.plm-owner-nav-crumb {
	font-size: 12.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: rgba(28, 33, 29, 0.5);
	padding: 9px 4px;
}

.plm-owner-nav-link .dashicons {
	font-size: 15px;
	width: 15px;
	height: 15px;
	vertical-align: -2px;
}

/* ---------------- Wizard (step-by-step score entry) ---------------- */

.plm-wizard-controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	margin: 10px 0 4px;
}


.plm-wizard-step-label {
	font-family: "IBM Plex Mono", monospace;
	font-size: 12px;
	font-weight: 600;
	color: rgba(28, 33, 29, 0.6);
	text-align: right;
}

.plm-frame-hint-compact {
	background: var(--plm-surface-alt);
	border-radius: 6px;
	padding: 8px 10px;
	margin: 10px 0 4px;
}

.plm-slot-warning {
	font-size: 11.5px;
	font-weight: 600;
	color: var(--plm-red);
	background: rgba(156, 43, 43, 0.08);
	border-radius: 6px;
	padding: 6px 9px;
	margin: 8px 0 0;
}

.plm-wizard-footer {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid var(--plm-line);
}

.plm-wizard-primary-action {
	flex: 1;
	max-width: 260px;
	text-align: center;
	font-size: 14px;
	padding: 12px 16px;
	min-height: 46px;
}

.plm-wizard-back {
	flex-shrink: 0;
}

@media (max-width: 480px) {
	.plm-wizard-footer {
		flex-direction: column-reverse;
		align-items: stretch;
	}
	.plm-wizard-primary-action {
		max-width: none;
		width: 100%;
	}
	.plm-wizard-back {
		width: 100%;
		text-align: center;
	}
}

/* ---------------- Locked / counter-proposal ---------------- */

.plm-locked-note {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12.5px;
	color: rgba(28, 33, 29, 0.55);
	font-style: italic;
	margin: 10px 0 4px;
}

.plm-locked-note .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
}

.plm-confirm-badge-confirmed .dashicons {
	font-size: 11px;
	width: 11px;
	height: 11px;
	vertical-align: -1px;
}

.plm-counter-form {
	margin-top: -4px;
}

.plm-toggle-counter-btn {
	background: transparent;
}

/* ---------------- Frame card affordances ---------------- */

.plm-frame-summary-cta {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 11.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--plm-brass);
	white-space: nowrap;
	margin-left: auto;
}

.plm-frame-summary-chevron {
	font-size: 16px;
	transition: transform 0.15s ease;
}

details[open] > .plm-frame-summary .plm-frame-summary-chevron {
	transform: rotate(90deg);
}

/* ---------------- Enter Scores: single-match teaser ---------------- */

.plm-next-match-teaser {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	background: var(--plm-surface-alt);
	border: 1px solid var(--plm-line);
	border-left: 3px solid var(--plm-brass);
	border-radius: 8px;
	padding: 14px 16px;
}

.plm-next-match-teaser-icon {
	font-size: 22px;
	line-height: 1;
}

.plm-next-match-teaser strong {
	display: block;
	font-size: 15px;
	margin-bottom: 4px;
}

.plm-next-match-teaser p {
	margin: 0;
	font-size: 13px;
	color: rgba(28, 33, 29, 0.6);
	line-height: 1.4;
}

/* ---------------- My Fixtures: filter tabs ---------------- */

.plm-fixture-filter-tabs {
	display: flex;
	gap: 6px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.plm-fixture-filter-tab {
	font-size: 12.5px;
	font-weight: 700;
	text-decoration: none;
	color: rgba(28, 33, 29, 0.6);
	background: var(--plm-surface-alt);
	border: 1px solid var(--plm-line);
	border-radius: 999px;
	padding: 8px 14px;
	white-space: nowrap;
}

.plm-fixture-filter-tab.is-active {
	background: var(--plm-baize);
	color: var(--plm-cream);
	border-color: var(--plm-baize);
}

/* ---------------- Calendar view ---------------- */

.plm-calendar-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-bottom: 12px;
}

.plm-calendar-nav-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 999px;
	border: 1px solid var(--plm-line);
	background: #fff;
	color: var(--plm-baize);
	font-size: 18px;
	text-decoration: none;
}

.plm-calendar-month-label {
	font-family: "Fraunces", Georgia, serif;
	font-weight: 600;
	font-size: 16px;
	min-width: 140px;
	text-align: center;
}

.plm-calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
	margin-bottom: 16px;
}

.plm-calendar-weekday {
	text-align: center;
	font-size: 10.5px;
	font-weight: 700;
	text-transform: uppercase;
	color: rgba(28, 33, 29, 0.45);
	padding-bottom: 4px;
}

.plm-calendar-cell {
	aspect-ratio: 1 / 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	background: var(--plm-surface-alt);
	font-size: 12px;
	gap: 2px;
}

.plm-calendar-cell-empty {
	background: transparent;
}

.plm-calendar-cell.has-match {
	background: rgba(198, 154, 61, 0.16);
	font-weight: 700;
}

.plm-calendar-cell.is-today {
	outline: 2px solid var(--plm-baize);
	outline-offset: -2px;
}

.plm-calendar-dot {
	font-size: 11px;
	line-height: 1;
}

.plm-calendar-list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--plm-line);
}

.plm-calendar-list li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 2px;
	border-bottom: 1px solid var(--plm-line);
	font-size: 13px;
}

.plm-calendar-list-date {
	font-family: "IBM Plex Mono", monospace;
	font-size: 11px;
	color: var(--plm-brass);
	font-weight: 700;
	min-width: 42px;
}

@media (max-width: 480px) {
	.plm-calendar-cell {
		font-size: 10.5px;
	}
	.plm-calendar-day-num {
		font-size: 10.5px;
	}
}

/* ---------------- Top 10 player leaderboard ---------------- */
.plm-player-leaderboard {
	margin-top: 4px;
	border: 1px solid var(--plm-line);
	border-radius: 12px;
	background: linear-gradient(180deg, #fff 0%, var(--plm-surface-alt) 100%);
	overflow: hidden;
}

.plm-player-leaderboard-heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 20px 14px;
	background: var(--plm-baize);
	color: var(--plm-cream);
}

.plm-player-leaderboard-kicker {
	display: block;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--plm-brass-light);
	margin-bottom: 3px;
}

.plm-player-leaderboard-heading h3 {
	margin: 0;
	font-family: "Fraunces", Georgia, serif;
	font-size: 22px;
	line-height: 1.1;
	color: inherit;
}

.plm-player-leaderboard-note {
	font-size: 11px;
	font-weight: 700;
	color: rgba(246, 241, 228, .68);
	white-space: nowrap;
}

.plm-player-leaderboard-list {
	padding: 8px;
}

.plm-player-leaderboard-row {
	display: grid;
	grid-template-columns: 48px minmax(150px, 1fr) 66px minmax(170px, auto);
	align-items: center;
	gap: 12px;
	padding: 11px 12px;
	border-bottom: 1px solid var(--plm-line);
	border-radius: 8px;
	opacity: 0;
	transform: translateY(14px) scale(.985);
}

.plm-player-leaderboard-row:last-child {
	border-bottom: none;
}

.plm-player-leaderboard.is-animated .plm-player-leaderboard-row {
	animation: plmLeaderboardIn .48s cubic-bezier(.2,.75,.25,1) forwards;
	animation-delay: var(--plm-rank-delay);
}

.plm-player-leaderboard-row.is-podium {
	background: rgba(198, 154, 61, .08);
}

.plm-player-leaderboard-rank {
	display: flex;
	align-items: center;
	gap: 5px;
	font-family: "IBM Plex Mono", monospace;
	font-size: 13px;
	font-weight: 800;
	color: var(--plm-baize);
}

.plm-player-leaderboard-rank span[aria-hidden="true"] {
	font-size: 17px;
}

.plm-player-leaderboard-player {
	min-width: 0;
}

.plm-player-leaderboard-player strong,
.plm-player-leaderboard-player > span {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.plm-player-leaderboard-player strong {
	font-family: "Fraunces", Georgia, serif;
	font-size: 15px;
	color: var(--plm-baize);
}

.plm-player-leaderboard-player > span {
	font-size: 11px;
	color: rgba(28, 33, 29, .55);
	margin-top: 1px;
}

.plm-player-leaderboard-track {
	height: 4px;
	margin-top: 7px;
	background: rgba(18, 53, 36, .09);
	border-radius: 999px;
	overflow: hidden;
}

.plm-player-leaderboard-track span {
	display: block;
	width: 0;
	height: 100%;
	border-radius: inherit;
	background: var(--plm-brass);
}

.plm-player-leaderboard.is-animated .plm-player-leaderboard-track span {
	animation: plmLeaderboardBar .72s ease-out forwards;
	animation-delay: calc(var(--plm-rank-delay) + 160ms);
}

.plm-player-leaderboard-record {
	text-align: center;
}

.plm-player-leaderboard-record strong,
.plm-player-leaderboard-record span {
	display: block;
}

.plm-player-leaderboard-record strong {
	font-family: "IBM Plex Mono", monospace;
	font-size: 20px;
	line-height: 1;
	color: var(--plm-baize);
}

.plm-player-leaderboard-record span {
	font-size: 9px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: rgba(28, 33, 29, .45);
	margin-top: 3px;
}

.plm-player-leaderboard-meta {
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	font-size: 10.5px;
	color: rgba(28, 33, 29, .52);
	white-space: nowrap;
}

.plm-player-leaderboard-meta b {
	color: var(--plm-baize);
	font-family: "IBM Plex Mono", monospace;
}

@keyframes plmLeaderboardIn {
	to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes plmLeaderboardBar {
	to { width: var(--plm-win-bar); }
}

@media (max-width: 680px) {
	.plm-player-leaderboard-row {
		grid-template-columns: 38px minmax(0, 1fr) 52px;
		gap: 8px;
		padding: 10px 8px;
	}
	.plm-player-leaderboard-meta {
		grid-column: 2 / 4;
		justify-content: flex-start;
		margin-top: -3px;
	}
	.plm-player-leaderboard-heading { padding: 16px; }
	.plm-player-leaderboard-heading h3 { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
	.plm-player-leaderboard-row { opacity: 1; transform: none; }
	.plm-player-leaderboard-track span { width: var(--plm-win-bar); }
	.plm-player-leaderboard.is-animated .plm-player-leaderboard-row,
	.plm-player-leaderboard.is-animated .plm-player-leaderboard-track span { animation: none; }
}

/* Calendar cells now show the actual opponent instead of only a ball icon. */
.plm-calendar-cell {
	aspect-ratio: auto;
	min-height: 72px;
	justify-content: flex-start;
	padding: 7px 4px 5px;
	box-sizing: border-box;
}

.plm-calendar-day-num {
	align-self: flex-start;
	margin-left: 3px;
	font-family: "IBM Plex Mono", monospace;
	font-weight: 700;
}

.plm-calendar-matchups {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.plm-calendar-matchup {
	display: flex;
	align-items: center;
	gap: 3px;
	width: 100%;
	min-width: 0;
	padding: 3px 4px;
	border-radius: 5px;
	background: rgba(198, 154, 61, .18);
	color: var(--plm-baize);
	box-sizing: border-box;
}

.plm-calendar-matchup small {
	flex: 0 0 auto;
	font-family: "IBM Plex Mono", monospace;
	font-size: 8px;
	font-weight: 800;
	color: var(--plm-brass);
}

.plm-calendar-matchup strong {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 9px;
	line-height: 1.15;
}

@media (max-width: 480px) {
	.plm-calendar-grid { gap: 2px; }
	.plm-calendar-cell { min-height: 62px; padding: 5px 2px 3px; }
	.plm-calendar-matchup { display: block; padding: 2px; text-align: center; }
	.plm-calendar-matchup small { display: block; font-size: 7px; }
	.plm-calendar-matchup strong { display: block; font-size: 7.5px; }
}

/* v1.6.2 — keep league standings fully contained on phones (no horizontal scrollbar). */
@media (max-width: 680px) {
    .plm-tab-panel { padding-left: 8px; padding-right: 8px; }
    .plm-table-scroll { overflow-x: hidden; width: 100%; }
    .plm-standings-table { min-width: 0; width: 100%; table-layout: fixed; font-size: 10px; }
    .plm-standings-table th { padding: 7px 1px; font-size: 8.5px; letter-spacing: 0; }
    .plm-standings-table td { padding: 9px 1px; font-size: 10px; }
    .plm-standings-table .plm-col-pos { width: 22px; }
    .plm-standings-table .plm-col-team { width: 28%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .plm-standings-table .plm-col-pts { width: 28px; }
    .plm-standings-table .plm-col-form { width: 48px; }
    .plm-standings-table .plm-form-badge { width: 13px; height: 13px; line-height: 13px; font-size: 7px; margin: 0 1px 1px 0; }
}
@media (max-width: 420px) {
    .plm-standings-table th { font-size: 7.5px; }
    .plm-standings-table td { font-size: 9px; }
    .plm-standings-table .plm-col-team { width: 25%; font-size: 10px; }
    .plm-standings-table .plm-col-form { width: 42px; }
}


/* v1.6.3 — fixture month selector */
.plm-fixture-month-filter {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 12px 0 18px;
	padding: 12px 14px;
	border: 1px solid rgba(198, 154, 61, .28);
	border-radius: 10px;
	background: rgba(255,255,255,.55);
}
.plm-fixture-month-filter label { font-weight: 700; }
.plm-fixture-month-select {
	min-width: 170px;
	max-width: 100%;
	padding: 8px 32px 8px 10px;
	border: 1px solid rgba(31, 64, 50, .25);
	border-radius: 8px;
	background: #fff;
	font: inherit;
}
@media (max-width: 520px) {
	.plm-fixture-month-filter { align-items: stretch; flex-direction: column; }
	.plm-fixture-month-select { width: 100%; min-width: 0; }
}

/* v1.6.4 — keep all public navigation tabs visible on smaller screens. */
@media (max-width: 680px) {
    .plm-tabs {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 3px;
        padding: 10px 6px;
    }

    .plm-tab-btn {
        min-width: 0;
        width: 100%;
        padding: 8px 2px;
        font-size: 9px;
        line-height: 1.15;
        letter-spacing: 0;
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 420px) {
    .plm-tabs {
        gap: 2px;
        padding-left: 4px;
        padding-right: 4px;
    }

    .plm-tab-btn {
        padding: 7px 1px;
        font-size: 8px;
    }
}

@media (max-width: 350px) {
    .plm-tab-btn {
        font-size: 7.25px;
        padding-left: 0;
        padding-right: 0;
    }
}


/* v1.6.5: team modal + tap/click result details. */
.plm-roster-modal-title {
	color: #fff !important;
}

.plm-result-row-clickable {
	position: relative;
	cursor: pointer;
	padding-right: 34px;
	transition: background-color 0.16s ease, transform 0.16s ease;
}

.plm-result-row-clickable:hover {
	background: var(--plm-surface-alt);
}

.plm-result-row-clickable:focus-visible {
	outline: 2px solid var(--plm-baize);
	outline-offset: 2px;
}

.plm-result-row-chevron {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 23px;
	line-height: 1;
	color: var(--plm-baize);
	transition: transform 0.18s ease;
}

.plm-result-row-clickable[aria-expanded="true"] .plm-result-row-chevron {
	transform: translateY(-50%) rotate(90deg);
}

.plm-frame-breakdown {
	margin-top: 0;
	padding-top: 0;
}

.plm-frame-breakdown-list {
	margin-top: 0;
}


/* v1.6.6 — immediate match-entry validation */
.plm-slot-row.plm-slot-invalid {
    outline: 2px solid rgba(220, 53, 69, .75);
    outline-offset: 2px;
}
.plm-slot-warning:not([hidden]) {
    display: block;
    margin: 10px 0 0;
    font-weight: 700;
}


/* ---------------- v1.6.7: mobile-app score entry ----------------
 * Score entry is deliberately dense on phones: one frame fills the useful
 * width, both teams stay side-by-side, and the navigation stays on one row.
 * This avoids the old tall/stacked form and keeps normal phone use to a
 * minimum of page scrolling.
 */
@media (max-width: 680px) {
	.plm-frame-cards {
		padding: 0 6px 10px;
		gap: 8px;
	}

	.plm-frame-card {
		border-radius: 12px;
	}

	.plm-frame-summary {
		padding: 10px 11px;
		gap: 5px 8px;
	}

	.plm-frame-summary-teams {
		width: 100%;
		justify-content: center;
		font-size: 13px;
		gap: 6px;
		text-align: center;
	}

	.plm-frame-summary-cta {
		font-size: 10px;
	}

	.plm-frame-form {
		padding: 3px 8px 9px;
	}

	.plm-wizard-controls {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 6px;
		margin: 6px 0 2px;
	}

	.plm-wizard-mode-toggle {
		width: 100%;
		display: grid;
		grid-template-columns: 1fr 1fr;
		border-radius: 9px;
		padding: 2px;
	}

	.plm-wizard-mode-btn {
		padding: 6px 4px;
		font-size: 9.5px;
		letter-spacing: 0;
		white-space: nowrap;
	}

	.plm-wizard-step-label {
		font-size: 10px;
		white-space: nowrap;
		align-self: center;
	}

	.plm-slot-list {
		gap: 5px;
		margin: 6px 0;
	}

	.plm-slot-row {
		padding: 7px;
		border-radius: 9px;
	}

	.plm-slot-label-row {
		flex-wrap: nowrap;
		gap: 5px;
		margin-bottom: 5px;
	}

	.plm-slot-label {
		font-size: 11px;
		gap: 4px;
		white-space: nowrap;
	}

	.plm-slot-label-type {
		font-size: 8px;
		letter-spacing: 0;
	}

	.plm-walkover-toggle {
		margin-left: auto;
		font-size: 9px;
		gap: 3px;
		white-space: nowrap;
	}

	.plm-walkover-toggle input {
		width: 13px;
		height: 13px;
	}

	/* Critical mobile change: home / winner / away remain in one row. */
	.plm-slot-sides {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
		align-items: center;
		gap: 5px;
		flex-wrap: nowrap;
	}

	.plm-slot-side {
		min-width: 0;
		width: 100%;
		gap: 3px;
	}

	.plm-slot-side select,
	.plm-frame-col-player select {
		min-width: 0;
		width: 100%;
		min-height: 36px;
		padding: 5px 22px 5px 5px;
		font-size: 12px;
		border-radius: 7px;
	}

	.plm-slot-winner {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 3px;
	}

	.plm-winner-toggle span {
		width: 31px;
		height: 36px;
		font-size: 10px;
		border-radius: 7px;
	}

	.plm-walkover-hint,
	.plm-slot-warning {
		font-size: 9.5px;
		line-height: 1.25;
		margin: 4px 0 0;
		padding: 4px 6px;
	}

	.plm-frame-hint {
		font-size: 10px;
		line-height: 1.3;
		margin: 5px 0;
	}

	.plm-lineup-warning {
		font-size: 10px;
		padding: 5px 7px;
		margin: 0 0 5px;
	}

	/* Override the older mobile rule that stacked Back / Next vertically. */
	.plm-wizard-footer {
		position: sticky;
		bottom: 0;
		z-index: 4;
		display: grid;
		grid-template-columns: auto minmax(0, 1fr);
		flex-direction: row;
		align-items: stretch;
		gap: 6px;
		margin-top: 5px;
		padding: 6px 0 2px;
		border-top: 1px solid var(--plm-line);
		background: var(--plm-surface-alt);
	}

	.plm-wizard-primary-action {
		max-width: none;
		width: 100%;
		min-height: 40px;
		padding: 8px 10px;
		font-size: 12px;
	}

	.plm-wizard-back {
		width: auto;
		min-height: 40px;
		padding: 8px 10px;
		font-size: 11px;
		text-align: center;
	}

	.plm-portal-heading {
		margin: 12px 8px 7px;
		font-size: 11px;
	}
}

@media (max-width: 380px) {
	.plm-frame-form {
		padding-left: 5px;
		padding-right: 5px;
	}

	.plm-slot-row {
		padding: 6px 5px;
	}

	.plm-slot-sides {
		gap: 3px;
	}

	.plm-slot-side select,
	.plm-frame-col-player select {
		font-size: 11px;
		padding-left: 4px;
		padding-right: 18px;
	}

	.plm-winner-toggle span {
		width: 27px;
		font-size: 9px;
	}

	.plm-walkover-toggle span {
		font-size: 8px;
	}

	.plm-slot-label-type {
		display: none;
	}
}


/* v1.6.8 — choose live vs full-time result entry and durable live checkpoints. */
.plm-entry-choice {
	padding: 6px 0 10px;
}
.plm-entry-choice-title {
	margin: 2px 0 9px;
	font-size: 13px;
	font-weight: 700;
	color: var(--plm-baize);
	text-align: center;
}
.plm-entry-choice-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}
.plm-entry-choice-btn {
	border: 1px solid var(--plm-line);
	background: var(--plm-surface-alt);
	border-radius: 10px;
	padding: 13px 12px;
	text-align: left;
	cursor: pointer;
	font-family: inherit;
	color: var(--plm-ink);
}
.plm-entry-choice-btn:hover,
.plm-entry-choice-btn:focus-visible {
	border-color: var(--plm-brass);
	background: rgba(198,154,61,.09);
}
.plm-entry-choice-btn strong {
	display: block;
	font-size: 14px;
	color: var(--plm-baize);
	margin-bottom: 4px;
}
.plm-entry-choice-btn span {
	display: block;
	font-size: 11px;
	line-height: 1.35;
	color: rgba(28,33,29,.68);
}
.plm-live-status {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 6px 8px;
	margin-bottom: 6px;
	border-radius: 8px;
	background: rgba(18,53,36,.07);
	font-size: 10.5px;
	color: var(--plm-baize);
}
.plm-live-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #2f8f58;
	box-shadow: 0 0 0 3px rgba(47,143,88,.12);
}
.plm-live-save-state {
	margin-left: auto;
	color: rgba(28,33,29,.6);
}
.plm-live-change-mode {
	border: 0;
	background: transparent;
	color: var(--plm-baize);
	font: inherit;
	font-weight: 700;
	text-decoration: underline;
	cursor: pointer;
	padding: 2px;
}
.plm-live-footer {
	position: sticky;
	bottom: 0;
	z-index: 5;
	padding: 7px 0 2px;
	background: var(--plm-surface-alt);
	border-top: 1px solid var(--plm-line);
}
.plm-live-footer .plm-btn {
	width: 100%;
	min-height: 44px;
	font-size: 13px;
}
.plm-live-row-locked select,
.plm-live-row-locked .plm-walkover-toggle {
	pointer-events: none;
	opacity: .68;
}
.plm-slot-winner {
	opacity: .45;
	transition: opacity .15s ease;
}
.plm-slot-winner.plm-live-winner-ready,
.plm-lineup-form:not(.plm-entry-is-live) .plm-slot-winner {
	opacity: 1;
}
.plm-live-current {
	border-color: rgba(198,154,61,.42);
	box-shadow: inset 0 0 0 1px rgba(198,154,61,.12);
}

@media (max-width: 680px) {
	.plm-entry-choice-grid {
		grid-template-columns: 1fr 1fr;
		gap: 6px;
	}
	.plm-entry-choice-btn {
		padding: 11px 8px;
	}
	.plm-entry-choice-btn strong {
		font-size: 12px;
	}
	.plm-entry-choice-btn span {
		font-size: 9.5px;
	}
	.plm-live-status {
		padding: 5px 6px;
		gap: 4px;
	}
	.plm-live-footer .plm-btn {
		min-height: 42px;
	}
}

.plm-entry-is-live .plm-slot-winner:not(.plm-live-winner-ready) {
	pointer-events: none;
}


/* v1.6.9 — roomier live score entry. */
@media (max-width: 680px) {
	/* Use the full phone width: remove nested card/border treatment. */
	.plm-frame-cards {
		padding-left: 0;
		padding-right: 0;
	}

	.plm-frame-card {
		border: 0;
		border-radius: 0;
		box-shadow: none;
		background: transparent;
	}

	.plm-frame-summary {
		padding: 10px 4px 8px;
		border-bottom: 0;
		background: transparent;
	}

	.plm-frame-form {
		padding: 2px 2px 8px;
		background: transparent;
	}

	.plm-slot-list {
		margin-top: 4px;
	}

	.plm-slot-row {
		padding: 8px 2px 10px;
		border: 0;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
	}

	.plm-live-current {
		border: 0;
		box-shadow: none;
	}

	.plm-slot-label-row {
		padding: 0 2px;
		margin-bottom: 7px;
	}

	.plm-slot-label {
		font-size: 12.5px;
	}

	/* More room for player names. */
	.plm-slot-sides {
		grid-template-columns: minmax(0, 1fr) 94px minmax(0, 1fr);
		gap: 8px;
	}

	.plm-slot-side select,
	.plm-frame-col-player select {
		min-height: 48px;
		padding: 8px 28px 8px 8px;
		font-size: 14px;
		border-radius: 9px;
	}

	/* H / A become proper thumb-sized winner buttons. */
	.plm-slot-winner {
		gap: 6px;
		opacity: 1;
	}

	.plm-winner-toggle span {
		width: 44px;
		height: 48px;
		font-size: 15px;
		font-weight: 800;
		border-radius: 9px;
	}

	.plm-entry-is-live .plm-slot-winner:not(.plm-live-winner-ready) {
		opacity: .38;
	}

	.plm-live-winner-ready .plm-winner-toggle span {
		box-shadow: 0 0 0 1px rgba(18,53,36,.08);
	}

	.plm-walkover-toggle {
		font-size: 10.5px;
	}

	.plm-walkover-toggle input {
		width: 16px;
		height: 16px;
	}

	.plm-live-status {
		margin: 2px 0 8px;
		padding: 7px 4px;
		border-radius: 0;
		background: transparent;
		border-bottom: 1px solid var(--plm-line);
	}

	.plm-live-footer {
		padding: 8px 0 4px;
		background: var(--plm-surface);
	}

	.plm-live-footer .plm-btn {
		min-height: 50px;
		font-size: 14px;
		border-radius: 10px;
	}

	/* Full-time controls stay available only in full-time mode. */
	.plm-entry-is-live .plm-wizard-controls,
	.plm-entry-is-live .plm-wizard-footer {
		display: none !important;
	}
}

@media (max-width: 390px) {
	.plm-slot-sides {
		grid-template-columns: minmax(0, 1fr) 86px minmax(0, 1fr);
		gap: 5px;
	}

	.plm-slot-side select,
	.plm-frame-col-player select {
		min-height: 46px;
		font-size: 13px;
		padding-left: 6px;
		padding-right: 22px;
	}

	.plm-winner-toggle span {
		width: 40px;
		height: 46px;
		font-size: 14px;
	}
}


/* v1.6.10 — live mode has two clean stages: choose players, then choose winner. */
.plm-entry-is-live .plm-slot-warning {
	display: none;
}
.plm-entry-is-live .plm-slot-invalid {
	border-color: transparent !important;
	box-shadow: none !important;
}
.plm-live-winner-stage {
	padding: 6px 2px 2px;
}
.plm-live-winner-question {
	margin: 0 0 10px;
	text-align: center;
	font-size: 15px;
	font-weight: 800;
	color: var(--plm-baize);
}
.plm-live-winner-summary {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-bottom: 10px;
}
.plm-live-winner-team {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	min-height: 62px;
	padding: 8px;
	background: var(--plm-surface-alt);
	border-radius: 10px;
	text-align: center;
}
.plm-live-ha {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--plm-baize);
	color: var(--plm-cream);
	font-size: 12px;
	font-weight: 800;
}
.plm-live-winner-team strong {
	font-size: 13px;
	line-height: 1.2;
	color: var(--plm-ink);
}
.plm-live-winner-stage .plm-slot-winner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	opacity: 1 !important;
	pointer-events: auto !important;
}
.plm-live-winner-stage .plm-winner-toggle {
	width: 100%;
}
.plm-live-winner-stage .plm-winner-toggle span {
	width: 100%;
	height: 54px;
	font-size: 16px;
	border-radius: 10px;
}
.plm-entry-is-live .plm-live-winner-stage[hidden] + .plm-walkover-hint {
	margin-top: 0;
}

@media (max-width: 680px) {
	.plm-live-winner-question {
		font-size: 17px;
		margin-bottom: 12px;
	}
	.plm-live-winner-summary {
		gap: 8px;
	}
	.plm-live-winner-team {
		min-height: 68px;
		padding: 9px 6px;
	}
	.plm-live-winner-team strong {
		font-size: 14px;
	}
	.plm-live-winner-stage .plm-winner-toggle span {
		height: 58px;
		font-size: 17px;
	}
}


/* v1.6.10 live-entry cleanup */
.plm-entry-is-live .plm-frame-hint {
	display: none;
}
.plm-entry-is-live .plm-slot-warning {
	display: none;
}
.plm-entry-is-live .plm-slot-invalid {
	border-color: transparent !important;
	box-shadow: none !important;
}
.plm-live-winner-stage {
	padding: 8px 2px 2px;
}
.plm-live-winner-question {
	margin: 0 0 12px;
	text-align: center;
	font-size: 17px;
	font-weight: 800;
	color: var(--plm-baize);
}
.plm-live-winner-summary {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-bottom: 12px;
}
.plm-live-winner-team {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	min-height: 72px;
	padding: 10px 8px;
	background: var(--plm-surface-alt);
	border-radius: 10px;
	text-align: center;
}
.plm-live-ha {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--plm-baize);
	color: var(--plm-cream);
	font-size: 12px;
	font-weight: 800;
}
.plm-live-winner-team strong {
	font-size: 14px;
	line-height: 1.2;
	color: var(--plm-ink);
}
.plm-live-winner-stage .plm-slot-winner {
	display: grid !important;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	opacity: 1 !important;
	pointer-events: auto !important;
}
.plm-live-winner-stage .plm-winner-toggle {
	width: 100%;
}
.plm-live-winner-stage .plm-winner-toggle span {
	width: 100%;
	height: 58px;
	font-size: 17px;
	font-weight: 800;
	border-radius: 10px;
}
.plm-entry-is-live .plm-slot-sides[hidden],
.plm-entry-is-live .plm-slot-label-row[hidden],
.plm-entry-is-live .plm-live-winner-stage[hidden] {
	display: none !important;
}


/* v1.6.11 — dedicated live winner selection */
.plm-entry-is-live .plm-slot-winner {
	display: none !important;
}
.plm-live-winner-choice-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}
.plm-live-winner-choice {
	border: 2px solid var(--plm-line);
	background: var(--plm-surface-alt);
	border-radius: 12px;
	min-height: 118px;
	padding: 14px 10px;
	font-family: inherit;
	color: var(--plm-ink);
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 7px;
	text-align: center;
}
.plm-live-winner-choice.is-selected {
	border-color: var(--plm-baize);
	background: rgba(18,53,36,.10);
	box-shadow: inset 0 0 0 1px var(--plm-baize);
}
.plm-live-winner-choice .plm-live-ha {
	width: 38px;
	height: 38px;
	font-size: 15px;
}
.plm-live-winner-choice strong {
	font-size: 16px;
	line-height: 1.2;
	color: var(--plm-baize);
}
.plm-live-winner-choice small {
	font-size: 11px;
	color: rgba(28,33,29,.62);
}
@media (max-width: 680px) {
	.plm-live-winner-question {
		font-size: 20px;
		margin-bottom: 14px;
	}
	.plm-live-winner-choice {
		min-height: 132px;
	}
	.plm-live-winner-choice strong {
		font-size: 17px;
	}
	.plm-live-winner-choice small {
		font-size: 12px;
	}
}

.plm-live-history-nav .plm-live-prev:only-child,
.plm-live-history-nav .plm-live-return:only-child {
	grid-column: 1 / -1;
}


/* v1.6.13 — quieter live-history navigation and change-only amendments. */
.plm-live-history-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin: 2px 0 8px;
}

.plm-live-history-nav .plm-btn {
	min-height: 0;
	padding: 4px 2px;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: rgba(28,33,29,.58);
	font-size: 10.5px;
	font-weight: 600;
	text-decoration: none;
}

.plm-live-history-nav .plm-btn:hover,
.plm-live-history-nav .plm-btn:focus-visible {
	background: transparent;
	color: var(--plm-baize);
	text-decoration: underline;
}

.plm-live-amend {
	margin-top: 6px;
	background: var(--plm-brass) !important;
	border-color: var(--plm-brass) !important;
	color: var(--plm-baize-dark) !important;
}

@media (max-width: 680px) {
	.plm-live-history-nav {
		margin-top: 0;
		margin-bottom: 6px;
	}

	.plm-live-history-nav .plm-btn {
		min-height: 32px;
		padding: 3px 2px;
		font-size: 10px;
	}

	.plm-live-amend {
		min-height: 46px !important;
		font-size: 13px !important;
	}
}


/* v1.6.14 — live scoring handover */
.plm-live-handover {
	border: 0;
	background: transparent;
	color: var(--plm-baize);
	font: inherit;
	font-weight: 700;
	text-decoration: underline;
	cursor: pointer;
	padding: 2px;
}
.plm-live-handed-over {
	padding: 14px 12px;
	border-radius: 10px;
	background: var(--plm-surface-alt);
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.plm-live-handed-over strong {
	color: var(--plm-baize);
	font-size: 13px;
}
.plm-live-handed-over span {
	font-size: 11px;
	line-height: 1.4;
	color: rgba(28,33,29,.68);
}
@media (max-width: 680px) {
	.plm-live-status {
		flex-wrap: wrap;
	}
	.plm-live-save-state {
		margin-left: auto;
	}
	.plm-live-handover,
	.plm-live-change-mode {
		font-size: 9.5px;
	}
}


/* v1.6.15 — walkover team labels, results summary, clearer logout. */
.plm-live-results-toggle,
.plm-live-handover,
.plm-live-change-mode {
	border: 0;
	background: transparent;
	color: var(--plm-baize);
	font: inherit;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	padding: 2px 4px;
}

.plm-live-results-toggle:hover,
.plm-live-handover:hover,
.plm-live-change-mode:hover {
	text-decoration: none;
	opacity: .78;
}

.plm-live-results-panel {
	margin: 6px 0 10px;
	padding: 10px;
	border-radius: 10px;
	background: var(--plm-surface-alt);
}

.plm-live-results-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}

.plm-live-results-panel-head strong {
	font-size: 12px;
	color: var(--plm-baize);
}

.plm-live-results-close {
	border: 0;
	background: transparent;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	color: rgba(28,33,29,.55);
}

.plm-live-results-list {
	display: grid;
	gap: 6px;
}

.plm-live-results-item {
	display: grid;
	grid-template-columns: 50px minmax(0,1fr) auto;
	align-items: center;
	gap: 8px;
	padding: 7px 0;
	border-bottom: 1px solid var(--plm-line);
}

.plm-live-results-item:last-child {
	border-bottom: 0;
}

.plm-live-results-game {
	font-size: 10px;
	font-weight: 700;
	color: rgba(28,33,29,.52);
}

.plm-live-results-matchup {
	min-width: 0;
	font-size: 11px;
	line-height: 1.25;
}

.plm-live-results-winner {
	font-size: 10.5px;
	color: var(--plm-baize);
	white-space: nowrap;
}

.plm-live-results-empty {
	margin: 0;
	font-size: 11px;
	color: rgba(28,33,29,.58);
}

.plm-portal-logout {
	background: #fff !important;
	color: var(--plm-baize-dark) !important;
	border: 1px solid rgba(255,255,255,.8) !important;
	border-radius: 8px !important;
	padding: 7px 12px !important;
	font-size: 11px !important;
	font-weight: 800 !important;
	text-decoration: none !important;
	box-shadow: none !important;
}

.plm-portal-logout:hover,
.plm-portal-logout:focus-visible {
	background: var(--plm-cream) !important;
	color: var(--plm-baize-dark) !important;
	text-decoration: none !important;
}

@media (max-width: 680px) {
	.plm-live-results-panel {
		margin-left: 0;
		margin-right: 0;
		padding: 9px 8px;
	}

	.plm-live-results-item {
		grid-template-columns: 44px minmax(0,1fr) auto;
		gap: 6px;
	}

	.plm-live-results-matchup {
		font-size: 10.5px;
	}

	.plm-portal-logout {
		padding: 7px 10px !important;
		font-size: 10.5px !important;
	}
}


/* v1.6.16 — clearer home v away separation for live doubles on mobile. */
.plm-mobile-vs {
	display: none;
}

@media (max-width: 680px) {
	.plm-entry-is-live .plm-slot-sides {
		position: relative;
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr);
		column-gap: 7px;
		align-items: center;
	}

	.plm-entry-is-live .plm-slot-sides > .plm-slot-side:first-of-type {
		grid-column: 1;
	}

	.plm-entry-is-live .plm-slot-sides > .plm-slot-side:last-of-type {
		grid-column: 3;
	}

	.plm-entry-is-live .plm-slot-side {
		min-width: 0;
		display: grid;
		gap: 7px;
	}

	.plm-entry-is-live .plm-slot-side select {
		width: 100%;
		min-width: 0;
		margin: 0;
		font-size: 12px;
	}

	.plm-entry-is-live .plm-mobile-vs {
		display: flex;
		grid-column: 2;
		grid-row: 1;
		align-self: stretch;
		align-items: center;
		justify-content: center;
		font-size: 13px;
		font-weight: 900;
		color: var(--plm-baize);
	}

	.plm-entry-is-live .plm-mobile-vs::before,
	.plm-entry-is-live .plm-mobile-vs::after {
		content: "";
		position: absolute;
		left: 50%;
		width: 1px;
		background: var(--plm-line);
		transform: translateX(-50%);
	}

	.plm-entry-is-live .plm-mobile-vs::before {
		top: 0;
		height: calc(50% - 14px);
	}

	.plm-entry-is-live .plm-mobile-vs::after {
		bottom: 0;
		height: calc(50% - 14px);
	}
}


/* v1.6.17 — colour-coded Results so far winners. */
.plm-live-results-winner.is-home-win {
	color: #16834a;
	background: rgba(22,131,74,.10);
	border: 1px solid rgba(22,131,74,.20);
	border-radius: 999px;
	padding: 4px 7px;
}

.plm-live-results-winner.is-away-win {
	color: #c43b3b;
	background: rgba(196,59,59,.10);
	border: 1px solid rgba(196,59,59,.20);
	border-radius: 999px;
	padding: 4px 7px;
}


/* v1.6.18 — colour the actual player/team names in Results so far. */
.plm-live-result-side.is-winner {
	color: #16834a;
	font-weight: 800;
}

.plm-live-result-side.is-loser {
	color: #c43b3b;
	font-weight: 700;
}

.plm-live-result-v {
	color: rgba(28,33,29,.45);
	font-weight: 600;
}

.plm-live-results-winner,
.plm-live-results-winner.is-home-win,
.plm-live-results-winner.is-away-win {
	color: rgba(28,33,29,.55);
	background: transparent;
	border: 0;
	border-radius: 0;
	padding: 0;
}


/* v1.6.20 — hardened live states and direct walkover winner entry. */
.plm-entry-is-live .plm-walkover-hint {
	display: none !important;
}

.plm-entry-is-live .plm-live-row-locked select,
.plm-entry-is-live .plm-live-row-locked .plm-walkover-checkbox,
.plm-entry-is-live select[aria-disabled="true"],
.plm-entry-is-live .plm-walkover-checkbox[aria-disabled="true"] {
	pointer-events: none;
}

.plm-entry-is-live .plm-slot-warning {
	display: none;
}


/* v1.6.21 — instant-feeling live scoring with durable background checkpoints. */
.plm-live-save-state {
	min-width: 46px;
	text-align: right;
}

.plm-live-finish:disabled,
.plm-live-start:disabled {
	opacity: .58;
	cursor: wait;
}


/* v1.6.22 — one clear modal for counter-proposals. */
.plm-amend-modal {
	border: 0;
	padding: 0;
	width: min(680px, calc(100vw - 24px));
	height: min(88dvh, 760px);
	max-height: min(88dvh, 760px);
	border-radius: 14px;
	background: var(--plm-surface);
	box-shadow: 0 20px 60px rgba(10,33,21,.28);
	overflow: hidden;
}

.plm-amend-modal::backdrop {
	background: rgba(10,33,21,.58);
}

.plm-amend-modal-shell {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 0;
	max-height: none;
}

.plm-amend-modal-header {
	position: sticky;
	top: 0;
	z-index: 20;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	background: var(--plm-baize);
	color: #fff;
}

.plm-amend-modal-header > div {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.plm-amend-modal-header strong {
	font-family: "Fraunces", Georgia, serif;
	font-size: 18px;
}

.plm-amend-modal-header span {
	font-size: 11px;
	opacity: .78;
}

.plm-amend-modal-close {
	flex: 0 0 34px;
	position: relative;
	z-index: 21;
	border: 0;
	background: rgba(255,255,255,.12);
	color: #fff;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	font-size: 23px;
	line-height: 1;
	cursor: pointer;
}

.plm-amend-modal-body {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-gutter: stable;
	padding: 12px 14px 16px;
}

.plm-amend-intro {
	margin: 0 0 10px;
	font-size: 12px;
	line-height: 1.4;
	color: rgba(28,33,29,.65);
}

.plm-simple-amendment-form.plm-frame-form {
	padding: 0;
}

.plm-amendment-frame-card {
	border: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
}

.plm-amendment-frame-card > .plm-frame-summary {
	display: none !important;
}

.plm-simple-amendment-form .plm-slot-list {
	display: grid;
	gap: 7px;
}

.plm-simple-amendment-form .plm-slot-row {
	padding: 9px 10px;
	border: 1px solid var(--plm-line);
	border-radius: 9px;
	background: var(--plm-surface-alt);
}

.plm-simple-amendment-form .plm-slot-label-row {
	margin-bottom: 6px;
}

.plm-simple-amendment-form .plm-slot-label {
	font-size: 11px;
}

.plm-simple-amendment-form .plm-slot-sides {
	gap: 7px;
}

.plm-simple-amendment-form .plm-player-select {
	min-height: 34px;
	font-size: 11px;
}

.plm-simple-amendment-form .plm-winner-toggle span {
	min-width: 42px;
	min-height: 34px;
}

.plm-simple-amendment-form .plm-frame-hint,
.plm-simple-amendment-form .plm-live-results-panel,
.plm-simple-amendment-form .plm-live-footer {
	display: none !important;
}

.plm-simple-amendment-form .plm-wizard-footer {
	position: sticky;
	bottom: -16px;
	z-index: 3;
	margin: 10px -14px -16px;
	padding: 10px 14px;
	background: var(--plm-surface);
	border-top: 1px solid var(--plm-line);
}

.plm-simple-amendment-form .plm-wizard-back {
	display: none !important;
}

.plm-simple-amendment-form .plm-wizard-primary-action {
	width: 100%;
	max-width: none;
	min-height: 46px;
}

@media (max-width: 680px) {
	.plm-amend-modal {
		width: calc(100vw - 14px);
		height: 92dvh;
		max-height: 92dvh;
		border-radius: 12px;
	}

	.plm-amend-modal-shell {
		height: 100%;
		max-height: none;
	}

	.plm-amend-modal-header {
		padding: 12px;
	}

	.plm-amend-modal-body {
		padding: 9px 9px 12px;
	}

	.plm-simple-amendment-form .plm-slot-row {
		padding: 8px;
	}

	.plm-simple-amendment-form .plm-slot-sides {
		grid-template-columns: minmax(0,1fr) 76px minmax(0,1fr);
	}

	.plm-simple-amendment-form .plm-wizard-footer {
		bottom: -12px;
		margin: 9px -9px -12px;
		padding: 9px;
	}
}


/* v1.6.23 — simple winner-only proposals and committee workflow */
.plm-proposal-games{display:grid;gap:8px}
.plm-proposal-game{display:grid;grid-template-columns:46px 1fr;align-items:center;gap:8px;padding:8px;border:1px solid var(--plm-line);border-radius:9px;background:var(--plm-surface-alt)}
.plm-proposal-game-key{font-size:14px;text-align:center}
.plm-proposal-winners{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.plm-proposal-winners label,.plm-committee-choice label{cursor:pointer}
.plm-proposal-winners input,.plm-committee-choice input{position:absolute;opacity:0;pointer-events:none}
.plm-proposal-winners span,.plm-committee-choice span{display:flex;align-items:center;justify-content:center;min-height:42px;padding:7px 9px;border:1px solid var(--plm-line);border-radius:8px;background:#fff;font-weight:700;font-size:12px;text-align:center}
.plm-proposal-winners input:checked+span,.plm-committee-choice input:checked+span{background:var(--plm-baize);border-color:var(--plm-baize);color:#fff;box-shadow:0 0 0 2px rgba(18,53,36,.12)}
.plm-proposal-submit{width:100%;margin-top:10px}
.plm-committee-referral-form{margin-top:14px;padding-top:12px;border-top:1px solid var(--plm-line);display:grid;gap:8px}
.plm-committee-referral-form label,.plm-committee-note{display:grid;gap:5px;font-size:12px;font-weight:700}
.plm-committee-referral-form textarea,.plm-committee-note textarea,.plm-committee-refer-compact textarea{width:100%;box-sizing:border-box;border:1px solid var(--plm-line);border-radius:8px;padding:9px;font:inherit;resize:vertical}
.plm-committee-refer-compact{margin-top:10px}
.plm-committee-refer-compact summary{cursor:pointer;font-weight:700;font-size:12px}
.plm-committee-refer-compact form{display:grid;gap:8px;margin-top:8px}
.plm-committee-case,.plm-committee-message{padding:14px;margin:0 0 12px;border:1px solid var(--plm-line);border-radius:10px;background:var(--plm-surface)}
.plm-committee-case-head{display:flex;justify-content:space-between;gap:10px;align-items:center}
.plm-committee-case-head span{font-size:11px;font-weight:700;padding:4px 8px;border-radius:999px;background:var(--plm-surface-alt)}
.plm-committee-choice{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:7px 0 10px}
.plm-committee-decision{font-weight:700;color:var(--plm-baize)}
.plm-committee-decision-form{display:grid;gap:8px}
@media(max-width:520px){.plm-proposal-game{grid-template-columns:38px 1fr;padding:7px}.plm-proposal-winners span{font-size:11px;min-height:40px;padding:6px}.plm-committee-choice{grid-template-columns:1fr}}


/* v1.6.24 — player context in proposals + refined close control. */
.plm-proposal-winners span {
	flex-direction: column;
	gap: 2px;
	line-height: 1.2;
}

.plm-proposal-winners span strong {
	font-size: 12px;
	font-weight: 800;
}

.plm-proposal-winners span small {
	display: block;
	font-size: 10px;
	font-weight: 600;
	opacity: .68;
	white-space: normal;
}

.plm-proposal-winners input:checked + span small {
	opacity: .86;
}

.plm-amend-modal-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid rgba(255,255,255,.22);
	border-radius: 9px;
	background: rgba(255,255,255,.08);
	color: #fff;
	font-size: 0;
	line-height: 1;
	transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.plm-amend-modal-close svg {
	width: 17px;
	height: 17px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
}

.plm-amend-modal-close:hover,
.plm-amend-modal-close:focus-visible {
	background: rgba(255,255,255,.16);
	border-color: rgba(255,255,255,.4);
	outline: none;
}

.plm-amend-modal-close:active {
	transform: scale(.96);
}

@media (max-width: 520px) {
	.plm-proposal-winners span strong { font-size: 11px; }
	.plm-proposal-winners span small { font-size: 9px; }
}


/* v1.6.25 — detailed dispute evidence + professional committee review. */
.plm-committee-page-head{margin-bottom:14px}
.plm-committee-page-head>div{display:flex;align-items:center;gap:11px}
.plm-committee-page-head>.x{}.plm-committee-page-head .dashicons{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:10px;background:var(--plm-baize);color:#fff;font-size:20px}
.plm-committee-page-head h4{margin:0;font:700 20px/1.1 "Fraunces",Georgia,serif;color:var(--plm-baize)}
.plm-committee-page-head p{margin:3px 0 0;font-size:11px;color:rgba(28,33,29,.58)}
.plm-committee-case-pro{padding:0;overflow:hidden;border-radius:13px}
.plm-committee-case-pro .plm-committee-case-head{padding:14px 16px;background:var(--plm-baize);color:#fff}
.plm-committee-case-head>div{display:flex;flex-direction:column;gap:2px}
.plm-committee-case-head strong{font:700 18px/1.15 "Fraunces",Georgia,serif}
.plm-committee-case-head small{font-size:10px;opacity:.68}
.plm-committee-eyebrow{text-transform:uppercase;letter-spacing:.08em;font-size:9px;font-weight:800;opacity:.72}
.plm-committee-status{background:rgba(255,255,255,.13)!important;color:#fff;padding:5px 9px!important;border:1px solid rgba(255,255,255,.18);border-radius:999px}
.plm-committee-explanation{display:flex;gap:9px;margin:14px 14px 0;padding:11px;border-radius:9px;background:var(--plm-surface-alt)}
.plm-committee-explanation>.dashicons{color:var(--plm-baize);font-size:18px}
.plm-committee-explanation strong{font-size:10px;text-transform:uppercase;letter-spacing:.04em}
.plm-committee-explanation p{margin:3px 0 0;font-size:12px;line-height:1.45}
.plm-committee-changes{padding:14px}
.plm-committee-section-title{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin-bottom:8px}
.plm-committee-section-title strong{font-size:13px;color:var(--plm-baize)}
.plm-committee-section-title>span{font-size:9px;font-weight:800;background:var(--plm-surface-alt);padding:4px 7px;border-radius:999px}
.plm-committee-section-title div{display:flex;flex-direction:column;gap:2px}
.plm-committee-section-title small{font-size:10px;color:rgba(28,33,29,.55)}
.plm-committee-change-list{display:grid;gap:7px}
.plm-committee-change{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:9px;padding:9px;border:1px solid var(--plm-line);border-radius:9px}
.plm-committee-game-key{font-size:14px;text-align:center;color:var(--plm-baize)}
.plm-committee-players{display:grid;grid-template-columns:1fr 14px 1fr;align-items:center;gap:4px}
.plm-committee-players>span{display:flex;flex-direction:column;font-size:10px;line-height:1.25}
.plm-committee-players b{font-size:9px;color:rgba(28,33,29,.5);margin-bottom:2px}
.plm-committee-players em{text-align:center;font-style:normal;font-size:9px;color:rgba(28,33,29,.4)}
.plm-committee-change-arrow{display:flex;align-items:center;gap:5px;font-size:9px;font-weight:800;white-space:nowrap}
.plm-committee-change-arrow .was{color:#b34a4a;text-decoration:line-through;text-decoration-thickness:1px}
.plm-committee-change-arrow .proposed{color:#16834a}
.plm-committee-change-arrow .dashicons{font-size:13px;width:13px;height:13px;color:rgba(28,33,29,.35)}
.plm-committee-no-changes{font-size:11px;color:rgba(28,33,29,.6);margin:0}
.plm-committee-decision-pro{padding:14px;border-top:1px solid var(--plm-line);background:rgba(247,246,240,.55)}
.plm-committee-decision-pro .plm-committee-choice span{min-height:58px;flex-direction:column;gap:2px}
.plm-committee-choice span small{font-size:9px;font-weight:600;opacity:.62}
.plm-committee-choice span strong{font-size:13px}
.plm-committee-note>span{display:flex;gap:5px;align-items:baseline}
.plm-committee-note>span small{font-size:9px;font-weight:500;color:rgba(28,33,29,.5)}
.plm-committee-note textarea{min-height:84px;background:#fff}
.plm-committee-submit-row{display:grid;grid-template-columns:18px minmax(0,1fr) auto;align-items:center;gap:7px;margin-top:4px}
.plm-committee-submit-row>.dashicons{font-size:15px;width:15px;height:15px;color:rgba(28,33,29,.42)}
.plm-committee-submit-row>small{font-size:9px;line-height:1.3;color:rgba(28,33,29,.5)}
.plm-committee-empty{text-align:center;padding:28px 14px;border:1px dashed var(--plm-line);border-radius:12px}
.plm-committee-empty .dashicons{display:block;margin:0 auto 6px;color:var(--plm-baize);font-size:28px;width:28px;height:28px}
.plm-committee-empty strong{font-size:13px}.plm-committee-empty p{font-size:10px;color:rgba(28,33,29,.55);margin:4px 0 0}
@media(max-width:680px){
 .plm-committee-case-pro .plm-committee-case-head{padding:12px}
 .plm-committee-changes,.plm-committee-decision-pro{padding:10px}
 .plm-committee-explanation{margin:10px 10px 0}
 .plm-committee-change{grid-template-columns:34px minmax(0,1fr);gap:7px}
 .plm-committee-change-arrow{grid-column:2;justify-content:flex-start;white-space:normal}
 .plm-committee-submit-row{grid-template-columns:16px 1fr}
 .plm-committee-submit-row .plm-btn{grid-column:1/-1;width:100%}
}


/* v1.6.26 — captain committee message read state. */
.plm-committee-message-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.plm-message-status{flex:0 0 auto;padding:4px 8px;border-radius:999px;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.plm-committee-message.is-unread{border-left:3px solid var(--plm-baize);box-shadow:0 4px 14px rgba(18,53,36,.07)}
.plm-committee-message.is-unread .plm-message-status{background:var(--plm-baize);color:#fff}
.plm-committee-message.is-read{opacity:.72}
.plm-committee-message.is-read .plm-message-status{background:var(--plm-surface-alt);color:rgba(28,33,29,.55)}
.plm-mark-read-form{display:flex;justify-content:flex-end;margin-top:10px;padding-top:9px;border-top:1px solid var(--plm-line)}
.plm-mark-read-form .plm-btn{display:inline-flex;align-items:center;gap:5px}
.plm-mark-read-form .dashicons{font-size:14px;width:14px;height:14px}


/* v1.6.28 — fast multi-player team entry. */
.plm-bulk-player-add{margin-top:9px;border-top:1px solid var(--plm-line);padding-top:8px}
.plm-bulk-player-add>summary{display:inline-flex;align-items:center;gap:5px;cursor:pointer;font-size:11px;font-weight:800;color:var(--plm-baize);list-style:none;user-select:none}
.plm-bulk-player-add>summary::-webkit-details-marker{display:none}
.plm-bulk-player-add>summary .dashicons{font-size:15px;width:15px;height:15px}
.plm-bulk-player-form{display:grid;gap:7px;margin-top:9px;padding:10px;border-radius:9px;background:var(--plm-surface-alt)}
.plm-bulk-player-form label{display:grid;gap:5px}
.plm-bulk-player-form label>span{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:rgba(28,33,29,.62)}
.plm-bulk-player-form textarea{box-sizing:border-box;width:100%;min-height:112px;padding:9px 10px;border:1px solid var(--plm-line);border-radius:8px;background:#fff;font:inherit;font-size:12px;line-height:1.45;resize:vertical}
.plm-bulk-player-form textarea:focus{outline:2px solid rgba(18,53,36,.13);border-color:var(--plm-baize)}
.plm-bulk-player-help{font-size:9px;line-height:1.35;color:rgba(28,33,29,.53)}
.plm-bulk-player-form .plm-btn{display:inline-flex;align-items:center;justify-content:center;gap:5px;width:100%;min-height:38px}
.plm-bulk-player-form .plm-btn .dashicons{font-size:15px;width:15px;height:15px}
@media(max-width:520px){.plm-bulk-player-form textarea{min-height:132px;font-size:16px}.plm-bulk-player-form .plm-btn{min-height:44px}}

/* v1.6.32 — reverse an accidental Player unavailable selection. */
.plm-walkover-undo{display:inline-flex;align-items:center;gap:4px;margin:0 0 8px;padding:6px 9px;border:1px solid var(--plm-line);border-radius:7px;background:var(--plm-surface-alt);color:var(--plm-baize);font:700 10px/1.2 inherit;cursor:pointer}
.plm-walkover-undo[hidden]{display:none!important}
.plm-walkover-undo .dashicons{font-size:13px;width:13px;height:13px}
@media(max-width:520px){.plm-walkover-undo{min-height:36px;font-size:11px}}

/* v1.6.33 — deliberate danger-style live score reset. */
.plm-live-reset-trigger{margin-top:8px;border:0;background:transparent;color:#a63c3c;font:700 10px/1.2 inherit;text-decoration:none;cursor:pointer}
.plm-live-reset-trigger:hover{text-decoration:underline}
.plm-live-reset-confirm{margin-top:10px;padding:12px;border:1px solid rgba(166,60,60,.28);border-radius:10px;background:#fff7f7}
.plm-live-reset-confirm[hidden]{display:none!important}
.plm-live-reset-confirm strong{display:block;font-size:13px;color:#8e2f2f}
.plm-live-reset-confirm p{margin:4px 0 10px;font-size:10px;line-height:1.4;color:rgba(80,25,25,.68)}
.plm-live-reset-actions{display:flex;justify-content:flex-end;gap:7px}
.plm-btn-danger{background:#b43636!important;border-color:#b43636!important;color:#fff!important}
.plm-btn-danger:hover,.plm-btn-danger:focus-visible{background:#922a2a!important;border-color:#922a2a!important}
@media(max-width:520px){.plm-live-reset-actions{display:grid;grid-template-columns:1fr 1fr}.plm-live-reset-actions .plm-btn{min-height:42px}.plm-live-reset-trigger{padding:8px}}


/* v1.6.34 — refined reset control and confirmation panel. */
.plm-live-reset-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 9px auto 0;
	padding: 7px 11px;
	border: 1px solid rgba(166,60,60,.20);
	border-radius: 8px;
	background: rgba(166,60,60,.045);
	color: #8f3a3a;
	font: 700 10.5px/1.2 inherit;
	text-decoration: none;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

.plm-live-reset-trigger::before {
	content: "↺";
	font-size: 13px;
	line-height: 1;
	opacity: .78;
}

.plm-live-reset-trigger:hover,
.plm-live-reset-trigger:focus-visible {
	background: rgba(166,60,60,.09);
	border-color: rgba(166,60,60,.34);
	color: #772d2d;
	text-decoration: none;
	outline: none;
}

.plm-live-reset-trigger:active {
	transform: translateY(1px);
}

.plm-live-reset-confirm {
	position: relative;
	margin-top: 10px;
	padding: 13px 13px 12px;
	border: 1px solid rgba(166,60,60,.20);
	border-radius: 11px;
	background: linear-gradient(180deg, #fffafa 0%, #fff6f6 100%);
	box-shadow: 0 4px 14px rgba(112,35,35,.06);
}

.plm-live-reset-confirm::before {
	content: "!";
	position: absolute;
	top: 13px;
	left: 13px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: rgba(180,54,54,.10);
	color: #9d3434;
	font-weight: 900;
	font-size: 13px;
}

.plm-live-reset-confirm > div:first-child {
	padding-left: 34px;
}

.plm-live-reset-confirm strong {
	display: block;
	margin: 0 0 3px;
	font-size: 13px;
	color: #7d2c2c;
}

.plm-live-reset-confirm p {
	margin: 0;
	font-size: 10px;
	line-height: 1.45;
	color: rgba(90,35,35,.66);
}

.plm-live-reset-actions {
	display: flex;
	justify-content: flex-end;
	gap: 7px;
	margin-top: 11px;
	padding-top: 10px;
	border-top: 1px solid rgba(166,60,60,.12);
}

.plm-live-reset-actions .plm-btn {
	min-height: 38px;
	border-radius: 8px;
	font-size: 10.5px;
}

.plm-live-reset-actions .plm-btn-secondary {
	background: #fff;
	border-color: rgba(28,33,29,.14);
	color: var(--plm-ink);
}

.plm-btn-danger {
	background: #a93d3d !important;
	border-color: #a93d3d !important;
	color: #fff !important;
	box-shadow: none !important;
}

.plm-btn-danger:hover,
.plm-btn-danger:focus-visible {
	background: #8d3030 !important;
	border-color: #8d3030 !important;
}

@media (max-width: 520px) {
	.plm-live-reset-trigger {
		width: auto;
		min-height: 36px;
		padding: 8px 12px;
		font-size: 10.5px;
	}

	.plm-live-reset-confirm {
		padding: 12px;
		border-radius: 10px;
	}

	.plm-live-reset-confirm::before {
		top: 12px;
		left: 12px;
	}

	.plm-live-reset-confirm > div:first-child {
		padding-left: 33px;
	}

	.plm-live-reset-actions {
		grid-template-columns: 1fr 1fr;
	}

	.plm-live-reset-actions .plm-btn {
		min-height: 42px;
	}
}

/* v1.6.36 — frame-level dispute clarity and committee decisions. */
.plm-proposal-summary{margin:0 0 10px;padding:10px;border-radius:9px;background:rgba(198,154,61,.10);border:1px solid rgba(198,154,61,.22)}
.plm-proposal-summary>strong{display:block;font-size:11px;color:var(--plm-baize);margin-bottom:6px}
.plm-proposal-summary [data-plm-proposal-summary-list]{display:flex;flex-wrap:wrap;gap:5px}
.plm-proposal-summary [data-plm-proposal-summary-list] span{padding:4px 7px;border-radius:999px;background:#fff;font-size:9px;font-weight:800;color:var(--plm-baize)}
.plm-proposal-game{grid-template-columns:1fr}.plm-proposal-game-head{display:flex;justify-content:space-between;align-items:center;gap:8px}
.plm-proposal-game.is-changed{border-color:rgba(198,154,61,.58);background:rgba(198,154,61,.07);box-shadow:inset 3px 0 0 var(--plm-brass)}
.plm-proposal-game.is-committee-locked{opacity:.72;background:rgba(28,33,29,.035)}
.plm-committee-locked-pill{display:inline-flex;align-items:center;gap:3px;padding:4px 6px;border-radius:999px;background:rgba(28,33,29,.08);font-size:8.5px;font-weight:800;color:rgba(28,33,29,.62)}
.plm-committee-locked-pill .dashicons{font-size:11px;width:11px;height:11px}
.plm-proposal-change-note{margin-top:8px;padding-top:8px;border-top:1px solid rgba(198,154,61,.22)}.plm-proposal-change-note[hidden]{display:none!important}
.plm-proposal-change-line{margin-bottom:6px;font-size:10px;font-weight:800;color:var(--plm-baize)}
.plm-proposal-change-note label{display:grid;gap:4px}.plm-proposal-change-note label>span{font-size:9px;font-weight:800;color:rgba(28,33,29,.6)}
.plm-proposal-change-note textarea{width:100%;box-sizing:border-box;min-height:54px;padding:8px;border:1px solid var(--plm-line);border-radius:7px;background:#fff;font:inherit;font-size:11px;resize:vertical}
.plm-proposal-actions{position:sticky;bottom:-16px;z-index:5;margin:10px -14px -16px;padding:10px 14px 14px;border-top:1px solid var(--plm-line);background:var(--plm-surface)}
.plm-referral-box{margin-top:9px;padding:9px;border:1px solid var(--plm-line);border-radius:9px;background:var(--plm-surface-alt)}.plm-referral-box[hidden]{display:none!important}
.plm-referral-box-head{display:flex;gap:7px;align-items:flex-start;margin-bottom:8px}.plm-referral-box-head .dashicons{color:var(--plm-baize);font-size:17px;width:17px;height:17px}
.plm-referral-box-head div{display:flex;flex-direction:column;gap:2px}.plm-referral-box-head strong{font-size:10.5px;color:var(--plm-baize)}.plm-referral-box-head small{font-size:9px;line-height:1.35;color:rgba(28,33,29,.56)}.plm-refer-selected-btn{width:100%}
.plm-committee-full-result{padding:12px}.plm-committee-result-list{display:grid;gap:8px}.plm-committee-result-row{padding:10px;border:1px solid var(--plm-line);border-radius:10px;background:var(--plm-surface)}
.plm-committee-result-row.is-disputed{border-color:rgba(198,154,61,.5);background:rgba(198,154,61,.055);box-shadow:inset 3px 0 0 var(--plm-brass)}
.plm-committee-result-key{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:7px}.plm-committee-result-key strong{font-size:14px;color:var(--plm-baize)}.plm-committee-result-key span{font-size:8.5px;font-weight:800;text-transform:uppercase;color:rgba(28,33,29,.48)}
.plm-committee-result-sides{display:grid;grid-template-columns:1fr 20px 1fr;gap:6px;align-items:stretch}.plm-committee-side{display:flex;flex-direction:column;justify-content:center;gap:2px;min-height:48px;padding:7px 8px;border-radius:8px;background:var(--plm-surface-alt)}
.plm-committee-side.is-current-winner{background:rgba(22,131,74,.08);border:1px solid rgba(22,131,74,.18)}.plm-committee-side b{font-size:10px;color:var(--plm-baize)}.plm-committee-side small{font-size:10px;line-height:1.25}.plm-committee-v{display:flex;align-items:center;justify-content:center;font-size:9px;font-weight:800;color:rgba(28,33,29,.4)}
.plm-committee-dispute-context{margin-top:8px;padding:8px;border-radius:8px;background:#fff}.plm-committee-change-line{display:flex;align-items:center;flex-wrap:wrap;gap:5px;font-size:9.5px}.plm-committee-change-line>span:first-child{color:#a54a4a}.plm-committee-change-line strong{color:#16834a}.plm-committee-change-line .dashicons{font-size:13px;width:13px;height:13px;color:rgba(28,33,29,.38)}
.plm-committee-frame-comment{display:flex;gap:6px;align-items:flex-start;margin-top:7px;padding-top:7px;border-top:1px solid var(--plm-line)}.plm-committee-frame-comment .dashicons{font-size:14px;width:14px;height:14px;color:var(--plm-baize)}.plm-committee-frame-comment p{margin:0;font-size:10.5px;line-height:1.4}
.plm-committee-frame-decision{margin-top:9px}.plm-committee-frame-decision>span{display:block;margin-bottom:5px;font-size:9px;font-weight:800;color:rgba(28,33,29,.6)}
.plm-committee-agreed-result{display:flex;align-items:center;gap:4px;margin-top:7px;font-size:9px;font-weight:700;color:rgba(28,33,29,.5)}.plm-committee-agreed-result .dashicons{font-size:12px;width:12px;height:12px}
.plm-committee-message-changes{display:grid;gap:5px;margin:7px 0}.plm-committee-message-changes>div{display:flex;justify-content:space-between;gap:8px;padding:6px 8px;border-radius:7px;background:var(--plm-surface-alt);font-size:10px}.plm-committee-message-changes strong{color:var(--plm-baize)}
@media(max-width:680px){.plm-proposal-actions{bottom:-12px;margin:9px -9px -12px;padding:9px}.plm-committee-full-result{padding:9px}.plm-committee-result-sides{grid-template-columns:1fr 16px 1fr;gap:4px}.plm-committee-side{padding:6px}.plm-committee-choice{grid-template-columns:1fr 1fr}}


/* v1.6.37 — private two-sided committee statements. */
.plm-committee-response-request{
	margin:0 0 12px;
	padding:14px;
	border:1px solid rgba(198,154,61,.34);
	border-radius:11px;
	background:rgba(198,154,61,.055);
	box-shadow:inset 3px 0 0 var(--plm-brass);
}
.plm-committee-response-request>p{font-size:11px;line-height:1.45;color:rgba(28,33,29,.68)}
.plm-response-disputed-games{display:grid;gap:5px;margin:9px 0}
.plm-response-disputed-games>div{display:flex;justify-content:space-between;gap:8px;padding:7px 8px;border-radius:7px;background:#fff;font-size:10px}
.plm-response-disputed-games strong{color:var(--plm-baize)}
.plm-committee-response-form{display:grid;gap:8px}
.plm-committee-response-form label{display:grid;gap:5px}
.plm-committee-response-form label>span{font-size:10px;font-weight:800;color:var(--plm-baize)}
.plm-committee-response-form textarea{width:100%;box-sizing:border-box;min-height:90px;padding:9px;border:1px solid var(--plm-line);border-radius:8px;background:#fff;font:inherit;font-size:12px;resize:vertical}
.plm-committee-response-actions{display:flex;justify-content:flex-end;gap:7px}
.plm-committee-private-statements{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:12px}
.plm-committee-statement{padding:10px;border:1px solid var(--plm-line);border-radius:9px;background:var(--plm-surface-alt)}
.plm-committee-statement>span{display:block;margin-bottom:7px;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.05em;color:rgba(28,33,29,.55)}
.plm-committee-statement>div{padding:6px 0;border-top:1px solid var(--plm-line)}
.plm-committee-statement>div:first-of-type{border-top:0;padding-top:0}
.plm-committee-statement strong{font-size:10px;color:var(--plm-baize)}
.plm-committee-statement p{margin:3px 0 0;font-size:10.5px;line-height:1.4}
@media(max-width:680px){
	.plm-committee-private-statements{grid-template-columns:1fr;padding:9px}
	.plm-committee-response-actions{display:grid;grid-template-columns:1fr 1fr}
}


/* v1.6.38 — clearer proposal-vs-escalation hierarchy. */
.plm-proposal-submit {
	min-height: 46px;
	font-size: 12px;
	font-weight: 800;
	border-radius: 9px;
	box-shadow: 0 3px 10px rgba(18,53,36,.10);
}

.plm-referral-box {
	margin-top: 12px;
	padding: 0;
	border: 0;
	background: transparent;
}

.plm-referral-divider {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 2px 0 8px;
	color: rgba(28,33,29,.44);
	font-size: 8.5px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .05em;
}

.plm-referral-divider::before,
.plm-referral-divider::after {
	content: "";
	flex: 1 1 auto;
	height: 1px;
	background: var(--plm-line);
}

.plm-referral-box-head {
	margin: 0;
	padding: 8px 9px;
	border-radius: 8px;
	background: rgba(28,33,29,.035);
}

.plm-referral-box-head .dashicons {
	color: rgba(28,33,29,.5);
	font-size: 15px;
	width: 15px;
	height: 15px;
}

.plm-referral-box-head strong {
	font-size: 10px;
	color: rgba(28,33,29,.72);
}

.plm-referral-box-head small {
	font-size: 8.8px;
	line-height: 1.4;
	color: rgba(28,33,29,.5);
}

.plm-refer-selected-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	min-height: 32px;
	margin: 7px 0 0 auto;
	padding: 6px 10px;
	border: 1px solid rgba(120,90,30,.24);
	border-radius: 7px;
	background: rgba(198,154,61,.07);
	color: #7a5b21;
	font: 700 9.5px/1.2 inherit;
	cursor: pointer;
	box-shadow: none;
}

.plm-refer-selected-btn:hover,
.plm-refer-selected-btn:focus-visible {
	background: rgba(198,154,61,.12);
	border-color: rgba(120,90,30,.34);
	color: #624817;
	outline: none;
}

@media (max-width: 680px) {
	.plm-proposal-submit {
		min-height: 48px;
		font-size: 12.5px;
	}

	.plm-referral-divider {
		font-size: 8px;
	}

	.plm-referral-box-head {
		padding: 8px;
	}

	.plm-refer-selected-btn {
		min-height: 34px;
		font-size: 9.5px;
	}
}


/* v1.6.39 — clearer action colours for proposal and escalation. */
.plm-proposal-submit {
	background: #167a46 !important;
	border-color: #167a46 !important;
	color: #fff !important;
}
.plm-proposal-submit:hover,
.plm-proposal-submit:focus-visible {
	background: #11663a !important;
	border-color: #11663a !important;
	color: #fff !important;
}

.plm-refer-selected-btn {
	background: #71364f;
	border-color: #71364f;
	color: #fff;
}
.plm-refer-selected-btn:hover,
.plm-refer-selected-btn:focus-visible {
	background: #5d2b41;
	border-color: #5d2b41;
	color: #fff;
}


/* v1.6.40 — show referrals to owners while awaiting the second captain. */
.plm-committee-status.is-waiting {
	background: rgba(255,255,255,.12) !important;
	color: #fff;
	border: 1px solid rgba(255,255,255,.22);
}

.plm-committee-waiting {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	margin: 12px;
	padding: 11px;
	border: 1px solid rgba(198,154,61,.28);
	border-radius: 9px;
	background: rgba(198,154,61,.08);
}

.plm-committee-waiting > .dashicons {
	flex: 0 0 auto;
	color: #9a6d18;
	font-size: 18px;
	width: 18px;
	height: 18px;
}

.plm-committee-waiting strong {
	display: block;
	font-size: 11px;
	color: var(--plm-baize);
}

.plm-committee-waiting p {
	margin: 3px 0 0;
	font-size: 10px;
	line-height: 1.4;
	color: rgba(28,33,29,.62);
}

.plm-committee-pending-summary {
	margin: 0 12px 12px;
	padding: 10px;
	border-radius: 8px;
	background: var(--plm-surface-alt);
}

.plm-committee-pending-summary strong {
	font-size: 11px;
	color: var(--plm-baize);
}

.plm-committee-pending-summary p {
	margin: 3px 0 0;
	font-size: 9.5px;
	color: rgba(28,33,29,.55);
}


/* v1.6.41 — committee referral replaces normal opponent review actions. */
.plm-inline-committee-response{
	margin-top:10px;
	padding:12px;
	border:1px solid rgba(113,54,79,.25);
	border-radius:11px;
	background:rgba(113,54,79,.045);
	box-shadow:inset 3px 0 0 #71364f;
}
.plm-inline-committee-head{display:flex;align-items:flex-start;gap:8px}
.plm-inline-committee-head>.dashicons{flex:0 0 auto;color:#71364f;font-size:18px;width:18px;height:18px}
.plm-inline-committee-head strong{display:block;font-size:12px;color:#5d2b41}
.plm-inline-committee-head p{margin:3px 0 0;font-size:10px;line-height:1.4;color:rgba(28,33,29,.62)}
.plm-inline-disputed-games{display:grid;gap:5px;margin:10px 0}
.plm-inline-disputed-games>div{display:flex;justify-content:space-between;gap:8px;padding:7px 8px;border-radius:7px;background:#fff;font-size:10px}
.plm-inline-disputed-games strong{color:var(--plm-baize)}
.plm-inline-disputed-games span{font-weight:700;color:#71364f}
.plm-private-note{display:flex;align-items:center;gap:5px;margin:8px 0!important;font-size:9px!important;color:rgba(28,33,29,.52)!important}
.plm-private-note .dashicons{font-size:13px;width:13px;height:13px}
.plm-inline-response-form{display:grid;gap:8px;margin-top:8px}
.plm-inline-response-form label{display:grid;gap:5px}
.plm-inline-response-form label>span{font-size:10px;font-weight:800;color:var(--plm-baize)}
.plm-inline-response-form textarea{width:100%;box-sizing:border-box;min-height:88px;padding:9px;border:1px solid var(--plm-line);border-radius:8px;background:#fff;font:inherit;font-size:12px;resize:vertical}
.plm-inline-response-actions{display:flex;justify-content:flex-end;gap:7px}
.plm-committee-wait-state{display:flex;align-items:flex-start;gap:8px;margin-top:10px;padding:11px;border:1px solid rgba(198,154,61,.25);border-radius:9px;background:rgba(198,154,61,.065)}
.plm-committee-wait-state>.dashicons{flex:0 0 auto;color:#9a6d18;font-size:17px;width:17px;height:17px}
.plm-committee-wait-state strong{display:block;font-size:11px;color:var(--plm-baize)}
.plm-committee-wait-state p{margin:3px 0 0;font-size:9.5px;line-height:1.4;color:rgba(28,33,29,.58)}
.plm-committee-wait-state.is-ready{border-color:rgba(113,54,79,.22);background:rgba(113,54,79,.04)}
.plm-committee-wait-state.is-ready>.dashicons{color:#71364f}
@media(max-width:680px){.plm-inline-response-actions{display:grid;grid-template-columns:1fr 1fr}.plm-inline-response-actions .plm-btn{min-height:42px}}


/* v1.6.42 — clear route from awaiting state to committee messages. */
.plm-committee-messages-link{
	display:inline-flex;
	align-items:center;
	gap:5px;
	margin-top:8px;
	padding:6px 9px;
	border:1px solid rgba(18,53,36,.18);
	border-radius:7px;
	background:#fff;
	color:var(--plm-baize);
	font-size:9.5px;
	font-weight:800;
	line-height:1.2;
	text-decoration:none !important;
}
.plm-committee-messages-link .dashicons{
	font-size:14px;
	width:14px;
	height:14px;
}
.plm-committee-messages-link:hover,
.plm-committee-messages-link:focus-visible{
	background:rgba(18,53,36,.06);
	color:var(--plm-baize);
	text-decoration:none !important;
}


/* v1.6.43 — simplified committee evidence and automatic-score guidance. */
.plm-committee-statements-title{
	padding:12px 12px 0;
	display:flex;
	flex-direction:column;
	gap:2px;
}
.plm-committee-statements-title strong{
	font-size:12px;
	color:var(--plm-baize);
}
.plm-committee-statements-title small{
	font-size:9px;
	line-height:1.35;
	color:rgba(28,33,29,.52);
}
.plm-committee-private-statements{
	padding-top:8px;
}
.plm-committee-statement{
	background:#fff;
	border:1px solid var(--plm-line);
}
.plm-committee-statement-head{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:8px;
	padding-bottom:7px;
	margin-bottom:7px;
	border-bottom:1px solid var(--plm-line);
}
.plm-committee-statement-head>span{
	font-size:11px;
	font-weight:900;
	color:var(--plm-baize);
	text-transform:none;
	letter-spacing:0;
}
.plm-committee-statement-head>small{
	font-size:8.5px;
	font-weight:700;
	color:rgba(28,33,29,.45);
}
.plm-committee-statement-item{
	padding:6px 0 !important;
	border-top:1px solid var(--plm-line);
}
.plm-committee-statement-item:first-of-type{
	border-top:0;
	padding-top:0 !important;
}
.plm-committee-statement-item strong{
	display:inline-block;
	min-width:28px;
	margin-right:5px;
	font-size:10px;
	color:var(--plm-baize);
}
.plm-committee-statement-item p{
	margin:2px 0 0;
	font-size:10.5px;
	line-height:1.45;
	color:rgba(28,33,29,.72);
}
.plm-committee-frame-comment{
	display:none !important;
}


/* v1.6.44 — Committee Messages inbox/archive split. */
.plm-committee-messages-head{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:10px;
}
.plm-committee-messages-head .plm-portal-heading{
	margin-bottom:0;
}
.plm-committee-archive-toggle{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	flex:0 0 34px;
	width:34px;
	height:34px;
	border:1px solid var(--plm-line);
	border-radius:8px;
	background:#fff;
	color:var(--plm-baize);
	text-decoration:none !important;
}
.plm-committee-archive-toggle:hover,
.plm-committee-archive-toggle:focus-visible,
.plm-committee-archive-toggle.is-active{
	background:var(--plm-surface-alt);
	color:var(--plm-baize);
	text-decoration:none !important;
	outline:none;
}
.plm-committee-archive-toggle .dashicons{
	font-size:16px;
	width:16px;
	height:16px;
}
.plm-committee-messages-sub{
	margin:5px 0 12px;
	font-size:9.5px;
	line-height:1.4;
	color:rgba(28,33,29,.52);
}
.plm-committee-message.is-read{
	opacity:1;
}
.plm-committee-message.is-read .plm-message-status{
	background:rgba(28,33,29,.07);
	color:rgba(28,33,29,.55);
}
.plm-mark-read-form .plm-btn .dashicons{
	font-size:13px;
	width:13px;
	height:13px;
}


/* v1.6.45 — clean captain ↔ committee conversation threads. */
.plm-committee-chat{
	margin:0 0 14px;
	border:1px solid var(--plm-line);
	border-radius:11px;
	background:#fff;
	overflow:hidden;
}
.plm-committee-chat>summary{
	display:grid;
	grid-template-columns:34px minmax(0,1fr) 18px;
	align-items:center;
	gap:8px;
	padding:10px;
	cursor:pointer;
	list-style:none;
}
.plm-committee-chat>summary::-webkit-details-marker{display:none}
.plm-committee-chat-icon{
	display:flex;align-items:center;justify-content:center;
	width:34px;height:34px;border-radius:9px;
	background:rgba(18,53,36,.07);color:var(--plm-baize);
}
.plm-committee-chat-icon .dashicons{font-size:17px;width:17px;height:17px}
.plm-committee-chat>summary>span:nth-child(2){display:flex;flex-direction:column;gap:2px}
.plm-committee-chat>summary strong{font-size:11px;color:var(--plm-baize)}
.plm-committee-chat>summary small{font-size:9px;color:rgba(28,33,29,.52)}
.plm-chat-chevron{font-size:14px;width:14px;height:14px;color:rgba(28,33,29,.4);transition:transform .15s ease}
.plm-committee-chat[open] .plm-chat-chevron,.plm-owner-chat-thread[open]>summary>.dashicons:last-child{transform:rotate(180deg)}
.plm-committee-chat-body{padding:10px;border-top:1px solid var(--plm-line);background:var(--plm-surface-alt)}
.plm-chat-thread{display:flex;flex-direction:column;gap:7px;max-height:330px;overflow:auto;padding:2px 2px 8px}
.plm-chat-message{display:flex}.plm-chat-message.is-mine{justify-content:flex-end}.plm-chat-message.is-committee{justify-content:flex-start}
.plm-chat-bubble{max-width:82%;padding:8px 9px;border-radius:11px;background:#fff;border:1px solid var(--plm-line)}
.plm-chat-message.is-mine .plm-chat-bubble{background:var(--plm-baize);border-color:var(--plm-baize);color:#fff;border-bottom-right-radius:4px}
.plm-chat-message.is-committee .plm-chat-bubble{border-bottom-left-radius:4px}
.plm-chat-bubble p{margin:0;font-size:10.5px;line-height:1.42}
.plm-chat-bubble small{display:block;margin-top:4px;font-size:8px;opacity:.62}
.plm-chat-empty{text-align:center;padding:15px 8px;color:rgba(28,33,29,.5)}
.plm-chat-empty .dashicons{font-size:22px;width:22px;height:22px}.plm-chat-empty p{margin:4px 0 0;font-size:9.5px}
.plm-chat-compose{display:grid;grid-template-columns:minmax(0,1fr) 38px;gap:6px;align-items:end;margin-top:6px}
.plm-chat-compose textarea{box-sizing:border-box;width:100%;min-height:42px;max-height:100px;padding:9px;border:1px solid var(--plm-line);border-radius:9px;background:#fff;font:inherit;font-size:11px;resize:vertical}
.plm-chat-send{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border:0;border-radius:50%;background:var(--plm-baize);color:#fff;cursor:pointer}
.plm-chat-send .dashicons{font-size:16px;width:16px;height:16px}
.plm-owner-chat-section{margin-bottom:18px;padding-bottom:16px;border-bottom:1px solid var(--plm-line)}
.plm-owner-chat-title>div{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.plm-owner-chat-title>.x{}.plm-owner-chat-title .dashicons{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:8px;background:rgba(18,53,36,.07);color:var(--plm-baize)}
.plm-owner-chat-title div div{display:flex;flex-direction:column}.plm-owner-chat-title strong{font-size:12px;color:var(--plm-baize)}.plm-owner-chat-title small{font-size:9px;color:rgba(28,33,29,.52)}
.plm-owner-chat-thread{margin-bottom:7px;border:1px solid var(--plm-line);border-radius:9px;background:#fff;overflow:hidden}
.plm-owner-chat-thread>summary{display:grid;grid-template-columns:32px minmax(0,1fr) auto 16px;align-items:center;gap:8px;padding:8px 9px;cursor:pointer;list-style:none}
.plm-owner-chat-thread>summary::-webkit-details-marker{display:none}
.plm-owner-chat-avatar{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:var(--plm-baize);color:#fff;font-size:11px;font-weight:900}
.plm-owner-chat-meta{display:flex;flex-direction:column;min-width:0}.plm-owner-chat-meta strong{font-size:10.5px;color:var(--plm-baize)}.plm-owner-chat-meta small{font-size:8.5px;color:rgba(28,33,29,.5);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.plm-owner-chat-unread{display:flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 4px;border-radius:999px;background:#71364f;color:#fff;font-size:8px;font-weight:900}
.plm-owner-chat-thread-body{padding:9px;border-top:1px solid var(--plm-line);background:var(--plm-surface-alt)}
.plm-owner-chat-empty{margin:0;font-size:9.5px;color:rgba(28,33,29,.5)}
@media(max-width:520px){.plm-chat-bubble{max-width:88%}.plm-chat-compose textarea{font-size:16px}.plm-owner-chat-thread>summary{grid-template-columns:30px minmax(0,1fr) auto 14px}}


/* v1.6.46 — refined committee chat styling on captain + owner sides. */

/* Shared conversation surface */
.plm-committee-chat,
.plm-owner-chat-thread {
	border: 1px solid rgba(18,53,36,.12);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 3px 12px rgba(18,53,36,.045);
	overflow: hidden;
}

.plm-committee-chat > summary,
.plm-owner-chat-thread > summary {
	background: #fff;
	transition: background .15s ease;
}

.plm-committee-chat > summary:hover,
.plm-owner-chat-thread > summary:hover {
	background: rgba(18,53,36,.025);
}

.plm-committee-chat-body,
.plm-owner-chat-thread-body {
	background: #f7f8f5;
	border-top: 1px solid rgba(18,53,36,.09);
}

/* Cleaner message area */
.plm-chat-thread {
	gap: 9px;
	max-height: 360px;
	padding: 4px 3px 10px;
	scrollbar-width: thin;
}

.plm-chat-message {
	align-items: flex-end;
}

.plm-chat-bubble {
	max-width: 78%;
	padding: 9px 11px;
	border: 0;
	border-radius: 13px;
	box-shadow: 0 1px 3px rgba(18,53,36,.06);
}

.plm-chat-message.is-committee .plm-chat-bubble {
	background: #fff;
	border: 1px solid rgba(18,53,36,.09);
	color: var(--plm-ink);
	border-bottom-left-radius: 5px;
}

.plm-chat-message.is-mine .plm-chat-bubble {
	background: var(--plm-baize);
	color: #fff;
	border-bottom-right-radius: 5px;
}

.plm-chat-bubble p {
	font-size: 11px;
	line-height: 1.45;
}

.plm-chat-bubble small {
	margin-top: 5px;
	font-size: 8px;
	opacity: .62;
}

/* Composer — integrated send button, not floating circle */
.plm-chat-compose {
	display: grid;
	grid-template-columns: minmax(0,1fr) auto;
	align-items: stretch;
	gap: 7px;
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid rgba(18,53,36,.08);
}

.plm-chat-compose textarea {
	min-height: 44px;
	max-height: 110px;
	padding: 10px 11px;
	border: 1px solid rgba(18,53,36,.14);
	border-radius: 9px;
	background: #fff;
	font-size: 11px;
	line-height: 1.35;
	box-shadow: none;
}

.plm-chat-compose textarea:focus {
	outline: none;
	border-color: rgba(18,53,36,.38);
	box-shadow: 0 0 0 2px rgba(18,53,36,.06);
}

.plm-chat-send {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	width: auto;
	height: auto;
	min-width: 72px;
	min-height: 44px;
	padding: 0 12px;
	border: 0;
	border-radius: 9px;
	background: var(--plm-baize);
	color: #fff;
	font: 800 10.5px/1 inherit;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(18,53,36,.12);
	transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}

.plm-chat-send:hover,
.plm-chat-send:focus-visible {
	background: #0f472f;
	outline: none;
	box-shadow: 0 3px 8px rgba(18,53,36,.16);
}

.plm-chat-send:active {
	transform: translateY(1px);
}

.plm-chat-send .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
}

/* Captain side */
.plm-committee-chat > summary {
	grid-template-columns: 36px minmax(0,1fr) 16px;
	padding: 11px 12px;
}

.plm-committee-chat-icon {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: rgba(18,53,36,.075);
}

.plm-committee-chat > summary strong {
	font-size: 11.5px;
}

.plm-committee-chat > summary small {
	font-size: 9px;
	line-height: 1.3;
}

.plm-committee-chat-body {
	padding: 11px;
}

/* Owner side: simplify inbox-like thread cards */
.plm-owner-chat-section {
	margin: 0 0 18px;
	padding: 0 0 16px;
	border-bottom: 1px solid var(--plm-line);
}

.plm-owner-chat-title {
	margin-bottom: 10px;
}

.plm-owner-chat-title > div {
	margin-bottom: 0;
}

.plm-owner-chat-title .dashicons {
	width: 34px;
	height: 34px;
	border-radius: 9px;
	background: rgba(18,53,36,.075);
}

.plm-owner-chat-title strong {
	font-size: 12px;
}

.plm-owner-chat-title small {
	font-size: 9px;
	line-height: 1.3;
}

.plm-owner-chat-thread {
	margin-bottom: 8px;
	border-radius: 10px;
	box-shadow: none;
}

.plm-owner-chat-thread > summary {
	grid-template-columns: 34px minmax(0,1fr) auto 14px;
	gap: 9px;
	padding: 9px 10px;
}

.plm-owner-chat-avatar {
	width: 34px;
	height: 34px;
	font-size: 11px;
	box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}

.plm-owner-chat-meta strong {
	font-size: 11px;
}

.plm-owner-chat-meta small {
	margin-top: 2px;
	font-size: 8.5px;
}

.plm-owner-chat-unread {
	min-width: 19px;
	height: 19px;
	padding: 0 5px;
	background: #71364f;
	font-size: 8px;
}

.plm-owner-chat-thread-body {
	padding: 10px;
}

/* Make owner messages visually intuitive:
   captain = left/light, committee = right/green */
.plm-owner-chat-thread-body .plm-chat-message.is-committee {
	justify-content: flex-start;
}

.plm-owner-chat-thread-body .plm-chat-message.is-mine {
	justify-content: flex-end;
}

.plm-owner-chat-thread-body .plm-chat-message.is-committee .plm-chat-bubble {
	background: #fff;
	color: var(--plm-ink);
}

.plm-owner-chat-thread-body .plm-chat-message.is-mine .plm-chat-bubble {
	background: var(--plm-baize);
	color: #fff;
}

/* Reduce visual clutter around empty states */
.plm-chat-empty,
.plm-owner-chat-empty {
	padding: 18px 10px;
	color: rgba(28,33,29,.48);
}

.plm-chat-empty p,
.plm-owner-chat-empty {
	font-size: 9.5px;
	line-height: 1.4;
}

@media (max-width: 520px) {
	.plm-chat-bubble {
		max-width: 86%;
	}

	.plm-chat-compose {
		grid-template-columns: minmax(0,1fr) auto;
	}

	.plm-chat-compose textarea {
		min-height: 46px;
		font-size: 16px;
	}

	.plm-chat-send {
		min-width: 68px;
		min-height: 46px;
		padding: 0 10px;
		font-size: 10px;
	}

	.plm-owner-chat-thread > summary {
		grid-template-columns: 32px minmax(0,1fr) auto 14px;
		padding: 9px;
	}
}


/* v1.6.47 — multi-role portal identity switcher. */
.plm-portal-header-actions{
	display:flex;
	align-items:center;
	justify-content:flex-end;
	gap:8px;
}
.plm-role-switcher{
	margin:0;
}
.plm-role-switcher label{
	display:block;
}
.plm-role-switcher select{
	min-height:36px;
	padding:6px 30px 6px 10px;
	border:1px solid rgba(255,255,255,.25);
	border-radius:8px;
	background-color:rgba(255,255,255,.10);
	color:#fff;
	font:700 10.5px/1.2 inherit;
	cursor:pointer;
	box-shadow:none;
}
.plm-role-switcher select:hover,
.plm-role-switcher select:focus{
	background-color:rgba(255,255,255,.16);
	border-color:rgba(255,255,255,.38);
	outline:none;
}
.plm-role-switcher select option{
	color:#1c211d;
	background:#fff;
}
@media(max-width:560px){
	.plm-portal-header{
		align-items:flex-start;
		gap:10px;
	}
	.plm-portal-header-actions{
		flex-direction:column;
		align-items:flex-end;
		gap:6px;
	}
	.plm-role-switcher select{
		min-height:34px;
		max-width:130px;
	}
}


/* v1.6.52 — collapsed fixture Activity log. */
.plm-owner-activity-log{
	margin-top:10px;
	border:1px solid var(--plm-line);
	border-radius:9px;
	background:var(--plm-surface-alt);
	overflow:hidden;
}
.plm-owner-activity-log>summary{
	display:grid;
	grid-template-columns:minmax(0,1fr) auto 16px;
	align-items:center;
	gap:8px;
	padding:9px 10px;
	list-style:none;
	cursor:pointer;
	background:rgba(28,33,29,.025);
}
.plm-owner-activity-log>summary::-webkit-details-marker{display:none}
.plm-owner-activity-log-title{
	display:inline-flex;
	align-items:center;
	gap:6px;
	font-size:10.5px;
	font-weight:800;
	color:var(--plm-baize);
}
.plm-owner-activity-log-title .dashicons{
	font-size:14px;
	width:14px;
	height:14px;
}
.plm-owner-activity-log-count{
	padding:3px 6px;
	border-radius:999px;
	background:#fff;
	border:1px solid var(--plm-line);
	font-size:8.5px;
	font-weight:700;
	color:rgba(28,33,29,.55);
}
.plm-owner-activity-chevron{
	font-size:13px;
	width:13px;
	height:13px;
	color:rgba(28,33,29,.4);
	transition:transform .15s ease;
}
.plm-owner-activity-log[open] .plm-owner-activity-chevron{
	transform:rotate(180deg);
}
.plm-owner-activity-log-body{
	max-height:360px;
	overflow:auto;
	border-top:1px solid var(--plm-line);
	background:#fff;
}
.plm-owner-activity-log .plm-owner-history-list{
	margin:0;
	padding:0;
	list-style:none;
	counter-reset:plm-activity;
}
.plm-owner-activity-log .plm-owner-history-list li{
	counter-increment:plm-activity;
	display:grid;
	grid-template-columns:minmax(0,1fr) auto;
	gap:8px;
	align-items:start;
	padding:8px 10px 8px 34px;
	position:relative;
	border-bottom:1px solid rgba(28,33,29,.07);
	font-size:9.5px;
	line-height:1.4;
}
.plm-owner-activity-log .plm-owner-history-list li:last-child{border-bottom:0}
.plm-owner-activity-log .plm-owner-history-list li::before{
	content:counter(plm-activity);
	position:absolute;
	left:10px;
	top:9px;
	display:flex;
	align-items:center;
	justify-content:center;
	width:16px;
	height:16px;
	border-radius:50%;
	background:var(--plm-surface-alt);
	color:rgba(28,33,29,.52);
	font-size:7.5px;
	font-weight:800;
}
.plm-owner-history-main{
	display:flex;
	flex-wrap:wrap;
	gap:3px 5px;
	min-width:0;
}
.plm-owner-history-main strong{color:var(--plm-baize)}
.plm-owner-history-note{color:rgba(28,33,29,.68)}
.plm-owner-activity-log .plm-muted-portal{
	white-space:nowrap;
	font-size:8px;
	color:rgba(28,33,29,.45);
}
@media(max-width:600px){
	.plm-owner-activity-log .plm-owner-history-list li{
		grid-template-columns:1fr;
	}
	.plm-owner-activity-log .plm-muted-portal{
		white-space:normal;
	}
}

/* v1.6.53 — reversible schedule regeneration. */
.plm-owner-schedule-restore{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:9px 0 14px;padding:10px;border:1px solid rgba(198,154,61,.30);border-radius:9px;background:rgba(198,154,61,.065)}
.plm-owner-schedule-restore>div{display:flex;align-items:center;gap:8px;min-width:0}.plm-owner-schedule-restore>div>.dashicons{flex:0 0 auto;color:#9a6d18;font-size:18px;width:18px;height:18px}
.plm-owner-schedule-restore>div>div{display:flex;flex-direction:column;gap:2px}.plm-owner-schedule-restore strong{font-size:10.5px;color:var(--plm-baize)}.plm-owner-schedule-restore small{font-size:8.5px;line-height:1.35;color:rgba(28,33,29,.55)}
@media(max-width:600px){.plm-owner-schedule-restore{align-items:stretch;flex-direction:column}.plm-owner-schedule-restore .plm-btn{width:100%;min-height:40px}}

/* v1.6.58 — consistent portal controls, spacing and built-in help. */
.plm-wrap input[type=text],.plm-wrap input[type=email],.plm-wrap input[type=password],.plm-wrap input[type=date],.plm-wrap input[type=number],.plm-wrap input[type=url],.plm-wrap select{min-height:42px;height:42px;padding:7px 10px;border-radius:8px;line-height:1.2;box-sizing:border-box;vertical-align:middle}
.plm-wrap textarea{width:100%;min-height:100px;padding:10px 11px;border-radius:8px;line-height:1.45;box-sizing:border-box;resize:vertical}
.plm-wrap .plm-btn{display:inline-flex;align-items:center;justify-content:center;min-height:42px;height:42px;padding:0 14px;line-height:1.1;box-sizing:border-box}
.plm-owner-form,.plm-owner-inline-form,.plm-owner-inline-form-tight,.plm-owner-generate,.plm-owner-season-picker{align-items:center}
.plm-owner-form label,.plm-form label{display:flex;flex-direction:column;gap:5px}.plm-owner-form label>span,.plm-form label>span{font-weight:700}
.plm-owner-body{padding-top:18px;padding-bottom:22px}.plm-owner-nav{min-height:44px;align-items:center}.plm-owner-nav-link{display:inline-flex;align-items:center;gap:4px}
.plm-dashboard-tiles{align-items:stretch}.plm-dashboard-tile{height:100%;min-height:138px;justify-content:flex-start}.plm-dashboard-tile-desc{line-height:1.4}
.plm-owner-team-card,.plm-owner-round-group,.plm-committee-case,.plm-owner-chat-section{border-radius:10px}

.plm-docs-shell{display:grid;gap:12px}.plm-docs-hero{display:flex;align-items:flex-start;gap:11px;padding:14px;border:1px solid var(--plm-line);border-left:4px solid var(--plm-brass);border-radius:10px;background:#fff}.plm-docs-hero>.dashicons{flex:0 0 auto;font-size:24px;width:24px;height:24px;color:var(--plm-baize)}.plm-docs-hero h4{margin:0 0 3px;font-family:"Fraunces",Georgia,serif;font-size:17px;color:var(--plm-baize)}.plm-docs-hero p{margin:0;font-size:10px;line-height:1.5;color:rgba(28,33,29,.62)}
.plm-docs-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.plm-docs-card{position:relative;min-height:125px;padding:13px 13px 13px 47px;border:1px solid var(--plm-line);border-radius:10px;background:#fff}.plm-docs-step{position:absolute;left:12px;top:13px;display:flex;align-items:center;justify-content:center;width:25px;height:25px;border-radius:50%;background:var(--plm-baize);color:#fff;font:800 10px/1 "Inter",sans-serif}.plm-docs-card h5{margin:0 0 5px;font-size:11.5px;color:var(--plm-baize)}.plm-docs-card p{margin:0;font-size:9.5px;line-height:1.55;color:rgba(28,33,29,.65)}
.plm-docs-details{border:1px solid var(--plm-line);border-radius:9px;background:#fff;overflow:hidden}.plm-docs-details summary{padding:10px 12px;cursor:pointer;font-size:10px;font-weight:800;color:var(--plm-baize);background:var(--plm-surface-alt)}.plm-docs-details p{margin:0;padding:10px 12px;border-top:1px solid var(--plm-line);font-size:9.5px;line-height:1.55;color:rgba(28,33,29,.65)}
@media(max-width:600px){.plm-wrap input[type=text],.plm-wrap input[type=email],.plm-wrap input[type=password],.plm-wrap input[type=date],.plm-wrap input[type=number],.plm-wrap input[type=url],.plm-wrap select,.plm-wrap textarea{font-size:16px}.plm-owner-form,.plm-owner-inline-form,.plm-owner-inline-form-tight,.plm-owner-generate{align-items:stretch}.plm-owner-form>.plm-btn,.plm-owner-inline-form>.plm-btn,.plm-owner-inline-form-tight>.plm-btn{width:100%}.plm-docs-grid{grid-template-columns:1fr}.plm-docs-card{min-height:0}.plm-dashboard-tile{min-height:118px}}


/* v1.6.59 — roomier season selectors and Captain / Vice Captain login forms. */
.plm-owner-season-picker{display:flex;align-items:center;gap:8px}.plm-owner-season-picker label{display:flex;align-items:center;gap:8px;font-weight:700}.plm-owner-season-picker select{min-width:280px;margin-left:0!important;padding-left:11px!important;padding-right:34px!important}
.plm-owner-captain-identity{display:flex;flex-direction:column;gap:2px;min-width:0}.plm-owner-captain-identity strong{font-size:10px;color:var(--plm-baize)}.plm-owner-captain-identity small{font-size:9px;color:rgba(28,33,29,.58);overflow-wrap:anywhere}.plm-owner-captain-row{justify-content:space-between;gap:10px}
.plm-owner-add-login{margin-top:8px;padding-top:7px;border-top:1px solid var(--plm-line)}.plm-owner-add-login summary{cursor:pointer;font-size:10px;font-weight:800;color:var(--plm-baize)}.plm-owner-login-form{display:grid;grid-template-columns:minmax(115px,.7fr) minmax(140px,1fr) minmax(190px,1.25fr) minmax(130px,.8fr) auto;gap:8px;align-items:end;margin-top:9px}.plm-owner-login-form label{display:flex;flex-direction:column;gap:4px;font-size:9.5px;font-weight:700}.plm-owner-login-form input,.plm-owner-login-form select{width:100%;min-width:0}.plm-owner-login-help{display:block;margin-top:6px;font-size:9px;color:rgba(28,33,29,.6)}
@media(max-width:760px){.plm-owner-login-form{grid-template-columns:1fr 1fr}.plm-owner-login-form .plm-btn{grid-column:1/-1;width:100%}.plm-owner-season-picker label{align-items:stretch;flex-direction:column;width:100%}.plm-owner-season-picker select{width:100%;min-width:0}}
@media(max-width:520px){.plm-owner-login-form{grid-template-columns:1fr}}


/* v1.6.61 — mobile-first portal polish. The portal should feel like an app, not a squeezed desktop admin page. */
.plm-owner-team-card{overflow:hidden}
.plm-owner-add-login>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:38px;padding:0 10px;border:1px solid var(--plm-line);border-radius:8px;background:#fff;list-style:none}
.plm-owner-add-login>summary::-webkit-details-marker{display:none}
.plm-owner-add-login>summary:after{content:"+";font-size:16px;font-weight:700;color:rgba(28,33,29,.5)}
.plm-owner-add-login[open]>summary:after{content:"−"}
.plm-owner-add-login[open] .plm-owner-login-form{padding:10px;margin-top:8px;border:1px solid var(--plm-line);border-radius:9px;background:#fff}

@media(max-width:760px){
 body:has(.plm-wrap){overflow-x:hidden}
 .plm-wrap{width:100%!important;max-width:100%!important;margin:0!important;border-radius:0!important;box-shadow:none!important;overflow:hidden!important}
 .plm-portal-header{position:sticky;top:0;z-index:30;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 12px!important;background:var(--plm-baize);box-shadow:0 2px 10px rgba(0,0,0,.16)}
 .plm-portal-header>div:first-child{min-width:0}
 .plm-portal-team{font-size:13px!important;line-height:1.15}
 .plm-portal-welcome{font-size:9px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:48vw}
 .plm-portal-header-actions{display:flex;align-items:center;gap:6px;flex:0 0 auto}
 .plm-portal-header-actions .plm-btn,.plm-portal-logout{min-height:36px!important;height:36px!important;padding:0 10px!important;font-size:10px!important;border-radius:9px!important}
 .plm-owner-nav{position:sticky;top:58px;z-index:25;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;padding:8px 10px!important;background:#fff!important;border-bottom:1px solid var(--plm-line)!important;box-shadow:0 2px 7px rgba(0,0,0,.04)}
 .plm-owner-nav-link{min-height:36px;padding:0 10px!important;display:inline-flex!important;align-items:center!important;border:1px solid var(--plm-line);background:var(--plm-surface-alt);border-radius:9px!important;font-size:9px!important;text-transform:none!important;letter-spacing:0!important}
 .plm-owner-nav-crumb{font-size:12px!important;font-weight:800!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .plm-owner-body{padding:12px 10px 88px!important;background:#f4f6f4}
 .plm-portal-heading{margin:15px 2px 8px!important;font-size:15px!important;line-height:1.25}

 .plm-owner-season-picker{display:block!important;margin:0 0 10px!important;padding:10px!important;border:1px solid var(--plm-line);border-radius:12px;background:#fff}
 .plm-owner-season-picker label{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:5px!important;width:100%;font-size:10px!important}
 .plm-owner-season-picker select{width:100%!important;min-width:0!important;min-height:48px!important;height:48px!important;border-radius:10px!important;font-size:16px!important;background:#fff}

 .plm-owner-form,.plm-owner-inline-form,.plm-owner-inline-form-tight,.plm-owner-generate{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;width:100%;padding:10px!important;margin:0 0 12px!important;border-radius:12px!important;background:#fff!important;box-sizing:border-box}
 .plm-owner-form label,.plm-owner-inline-form label{width:100%;font-size:10px!important}
 .plm-owner-form input,.plm-owner-owner-form select,.plm-owner-inline-form input,.plm-owner-inline-form select,.plm-owner-inline-form textarea,.plm-owner-form textarea{width:100%!important;min-width:0!important;max-width:none!important;min-height:48px!important;height:48px!important;font-size:16px!important;border-radius:10px!important;box-sizing:border-box}
 .plm-owner-form textarea,.plm-owner-inline-form textarea{height:auto!important;min-height:116px!important}
 .plm-owner-form .plm-btn,.plm-owner-inline-form .plm-btn,.plm-owner-inline-form-tight .plm-btn,.plm-owner-generate .plm-btn{width:100%!important;min-height:48px!important;height:48px!important;border-radius:10px!important;font-size:13px!important}

 .plm-owner-team-list{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}
 .plm-owner-team-card{width:100%;padding:0!important;border:1px solid var(--plm-line)!important;border-left:0!important;border-radius:14px!important;background:#fff!important;box-shadow:0 2px 8px rgba(0,0,0,.045);box-sizing:border-box}
 .plm-owner-team-card-header{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;margin:0!important;padding:12px 12px 10px!important;background:var(--plm-surface-alt);border-bottom:1px solid var(--plm-line)}
 .plm-owner-team-card-header strong{min-width:0;font-size:15px!important;line-height:1.25;overflow-wrap:anywhere}
 .plm-owner-team-card-header form{flex:0 0 auto;margin:0!important}
 .plm-owner-team-section{margin:0!important;padding:11px 12px!important;border-top:0!important;border-bottom:1px solid var(--plm-line)!important}
 .plm-owner-team-section:last-child{border-bottom:0!important}
 .plm-owner-team-label{margin:0 0 8px!important;font-size:9px!important;letter-spacing:.07em}
 .plm-owner-captain-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:8px!important;margin:0 0 7px!important;padding:9px!important;border:1px solid var(--plm-line);border-radius:10px;background:#fff}
 .plm-owner-captain-identity code{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}
 .plm-owner-captain-identity small{font-size:9px!important}
 .plm-text-btn-portal{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:34px;padding:0 8px!important;border:1px solid var(--plm-line)!important;border-radius:8px!important;background:var(--plm-surface-alt)!important;text-decoration:none!important;font-size:9px!important;white-space:nowrap}
 .plm-owner-add-login{margin:8px 0 0!important;padding:0!important;border:0!important}
 .plm-owner-add-login>summary{min-height:42px!important;padding:0 11px!important;border-radius:10px!important;font-size:10px!important;background:var(--plm-surface-alt)!important}
 .plm-owner-add-login[open] .plm-owner-login-form{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;padding:10px!important;margin-top:7px!important;border-radius:10px!important}
 .plm-owner-login-form label{font-size:10px!important}
 .plm-owner-login-form input,.plm-owner-login-form select{width:100%!important;min-height:48px!important;height:48px!important;font-size:16px!important;border-radius:10px!important}
 .plm-owner-login-form .plm-btn{width:100%!important;min-height:48px!important;height:48px!important}
 .plm-owner-login-help{padding:0 2px;font-size:9px!important;line-height:1.45}

 .plm-owner-roster-list{display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important;margin:0!important;padding:0!important}
 .plm-owner-roster-list li{display:flex!important;align-items:center!important;justify-content:space-between!important;min-width:0;padding:7px 7px 7px 9px!important;border-radius:9px!important;background:var(--plm-surface-alt)!important;font-size:10px!important;line-height:1.25;overflow-wrap:anywhere}
 .plm-owner-roster-list li form{flex:0 0 auto}
 .plm-bulk-player-add{margin-top:9px!important}
 .plm-bulk-player-add>summary{min-height:40px!important;display:flex!important;align-items:center!important;padding:0 10px!important;border:1px solid var(--plm-line)!important;border-radius:10px!important;background:var(--plm-surface-alt)!important;font-size:10px!important}
 .plm-bulk-player-form{padding:9px!important;border-radius:10px!important}
 .plm-bulk-player-form textarea{font-size:16px!important;min-height:130px!important}

 .plm-dashboard-tiles{grid-template-columns:1fr 1fr!important;gap:9px!important}
 .plm-dashboard-tile{min-height:118px!important;aspect-ratio:auto!important;padding:14px 10px!important;border-radius:14px!important;background:#fff!important;box-shadow:0 2px 8px rgba(0,0,0,.035)}
 .plm-dashboard-tile .dashicons{font-size:24px!important;width:24px!important;height:24px!important}
 .plm-dashboard-tile-label{font-size:11px!important}
 .plm-dashboard-tile-desc{font-size:8.5px!important;line-height:1.35!important}

 .plm-owner-round-group,.plm-owner-chat-section,.plm-committee-case,.plm-docs-hero,.plm-docs-card,.plm-docs-details{border-radius:13px!important;background:#fff!important}
 .plm-owner-fixture-rounds{display:grid!important;gap:10px!important}
 .plm-owner-fixture-row>summary{min-height:52px!important;padding:9px 10px!important}
 .plm-owner-fixture-row form{padding:10px!important}
 .plm-owner-activity-log-body{max-height:55vh!important}
}
@media(max-width:390px){
 .plm-owner-roster-list{grid-template-columns:1fr!important}
 .plm-dashboard-tiles{grid-template-columns:1fr 1fr!important;gap:7px!important}
 .plm-dashboard-tile{min-height:108px!important;padding:12px 8px!important}
}


/* 1.6.62: compact team directory + mobile checkbox sizing */
.plm-owner-team-directory{display:grid;gap:8px;margin:0 0 18px}
.plm-owner-team-directory-row{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:58px;padding:10px 14px;border:1px solid var(--plm-line);border-radius:10px;background:#fff;color:inherit;text-decoration:none!important;box-sizing:border-box;transition:background .15s ease,border-color .15s ease,transform .15s ease}
.plm-owner-team-directory-row:hover{background:var(--plm-surface-alt);border-color:rgba(20,87,51,.28);transform:translateY(-1px)}
.plm-owner-team-directory-main{display:flex;flex-direction:column;gap:3px;min-width:0}
.plm-owner-team-directory-main strong{font-size:14px;line-height:1.25;overflow-wrap:anywhere}
.plm-owner-team-directory-main small{font-size:11px;color:rgba(28,33,29,.58)}
.plm-owner-team-directory-row>.dashicons{flex:0 0 auto;color:var(--plm-baize)}
.plm-owner-team-detail-nav{display:flex;align-items:center;margin:0 0 10px}
.plm-owner-back-link{display:inline-flex;align-items:center;gap:5px;min-height:38px;padding:0 10px;border:1px solid var(--plm-line);border-radius:9px;background:#fff;color:var(--plm-baize);font-size:12px;font-weight:700;text-decoration:none!important}
.plm-owner-team-detail-title{display:flex;flex-direction:column;gap:2px;min-width:0}
.plm-owner-team-detail-title small{font-size:9px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:rgba(28,33,29,.5)}
.plm-owner-team-card-detail{max-width:880px}

@media(max-width:760px){
 .plm-owner-checkbox{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:9px!important;min-height:44px!important;padding:8px 2px!important}
 .plm-owner-form .plm-owner-checkbox input[type="checkbox"]{appearance:auto!important;-webkit-appearance:checkbox!important;width:20px!important;min-width:20px!important;max-width:20px!important;height:20px!important;min-height:20px!important;max-height:20px!important;margin:0!important;padding:0!important;flex:0 0 20px!important;border-radius:3px!important}
 .plm-owner-checkbox span{font-size:12px!important;line-height:1.3!important}
 .plm-owner-team-directory{gap:7px!important}
 .plm-owner-team-directory-row{min-height:64px!important;padding:10px 12px!important;border-radius:12px!important}
 .plm-owner-team-directory-main strong{font-size:14px!important}
 .plm-owner-team-directory-main small{font-size:10px!important;line-height:1.3}
 .plm-owner-team-card-detail{max-width:none;width:100%}
 .plm-owner-team-detail-nav{margin-bottom:8px!important}
 .plm-owner-back-link{min-height:42px!important;border-radius:10px!important}
}

/* 1.6.63: Add a Team is collapsed by default */
.plm-owner-add-team{margin:0 0 18px;border:1px solid var(--plm-line);border-radius:10px;background:#fff;overflow:hidden}
.plm-owner-add-team>summary{display:flex;align-items:center;gap:7px;min-height:46px;padding:0 14px;cursor:pointer;color:var(--plm-baize);font-size:13px;font-weight:700;list-style:none;box-sizing:border-box}
.plm-owner-add-team>summary::-webkit-details-marker{display:none}
.plm-owner-add-team>summary:after{content:'+';margin-left:auto;font-size:20px;font-weight:400;line-height:1}
.plm-owner-add-team[open]>summary:after{content:'−'}
.plm-owner-add-team[open]>summary{border-bottom:1px solid var(--plm-line)}
.plm-owner-add-team>.plm-owner-inline-form{padding:14px;margin:0}
@media(max-width:760px){.plm-owner-add-team{border-radius:12px}.plm-owner-add-team>summary{min-height:50px;padding:0 12px}.plm-owner-add-team>.plm-owner-inline-form{padding:12px}}

/* Portal utility actions, branding and password reset (1.6.65) */
.plm-portal-header-actions .plm-change-password-form { margin: 0; }
.plm-return-site-btn,
.plm-change-password-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    text-decoration: none !important;
}
.plm-return-site-btn {
    background: #fff !important;
    color: #172033 !important;
    border: 1px solid rgba(255,255,255,.72) !important;
    box-shadow: 0 5px 18px rgba(0,0,0,.12);
}
.plm-return-site-btn:hover { transform: translateY(-1px); }
.plm-return-site-btn img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 6px;
    flex: 0 0 28px;
}
.plm-return-site-btn .dashicons,
.plm-change-password-btn .dashicons { width: 18px; height: 18px; font-size: 18px; }
.plm-change-password-btn {
    background: rgba(255,255,255,.12) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.34) !important;
}
.plm-forgot-password {
    margin-top: 16px;
    border-top: 1px solid rgba(15,23,42,.10);
    padding-top: 12px;
}
.plm-forgot-password > summary {
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    text-align: center;
    color: inherit;
    padding: 8px;
}
.plm-forgot-password > summary::-webkit-details-marker { display: none; }
.plm-forgot-password-form { margin-top: 10px; }
.plm-password-reset-card .plm-btn { width: 100%; }

@media (max-width: 700px) {
    .plm-portal-header-actions {
        width: 100%;
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 8px !important;
    }
    .plm-portal-header-actions > form,
    .plm-portal-header-actions > .plm-btn,
    .plm-portal-header-actions .plm-role-switcher { width: 100%; margin: 0 !important; }
    .plm-portal-header-actions .plm-btn,
    .plm-portal-header-actions select { width: 100%; min-width: 0; }
    .plm-return-site-btn { grid-column: 1 / -1; }
}


/* Dashboard account actions (1.6.66) */
.plm-dashboard-account-actions {
    margin-top: 18px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid var(--plm-line);
    border-radius: 14px;
    background: #fff;
    box-sizing: border-box;
}
.plm-dashboard-account-actions-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.plm-dashboard-account-actions-copy strong { font-size: 14px; color: #172033; }
.plm-dashboard-account-actions-copy span { font-size: 12px; line-height: 1.45; color: #64748b; }
.plm-dashboard-account-actions-buttons {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
}
.plm-dashboard-account-actions-buttons .plm-change-password-form { margin: 0; }
.plm-dashboard-account-actions .plm-return-site-btn,
.plm-dashboard-account-actions .plm-change-password-btn {
    min-height: 44px;
    border-radius: 10px;
    padding: 0 14px;
    box-shadow: none;
}
.plm-dashboard-account-actions .plm-return-site-btn {
    color: #172033 !important;
    border: 1px solid #d9e0e8 !important;
    background: #fff !important;
}
.plm-dashboard-account-actions .plm-change-password-btn {
    color: #fff !important;
    background: var(--plm-baize) !important;
    border: 1px solid var(--plm-baize) !important;
}
@media (max-width: 700px) {
    .plm-portal-header-actions {
        display: flex !important;
        width: auto;
        gap: 8px !important;
    }
    .plm-portal-header-actions > form,
    .plm-portal-header-actions .plm-role-switcher { width: auto; }
    .plm-portal-header-actions .plm-btn,
    .plm-portal-header-actions select { width: auto; }
    .plm-dashboard-account-actions {
        margin-top: 14px;
        padding: 14px;
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }
    .plm-dashboard-account-actions-buttons {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        width: 100%;
    }
    .plm-dashboard-account-actions-buttons > .plm-btn,
    .plm-dashboard-account-actions-buttons > form,
    .plm-dashboard-account-actions-buttons .plm-btn { width: 100%; }
    .plm-dashboard-account-actions .plm-return-site-btn,
    .plm-dashboard-account-actions .plm-change-password-btn { min-height: 50px; }
}


/* Dashboard return tile + compact password action (1.6.67) */
.plm-dashboard-tile-logo{width:42px;height:42px;object-fit:contain;border-radius:9px;margin-bottom:2px}
.plm-dashboard-account-actions{padding:12px 14px;gap:12px}
.plm-dashboard-account-actions .plm-change-password-btn{min-height:36px!important;padding:0 11px!important;border-radius:8px!important;font-size:12px!important}
.plm-dashboard-account-actions .plm-change-password-btn .dashicons{width:16px;height:16px;font-size:16px}
@media(max-width:700px){
 .plm-dashboard-account-actions{padding:12px;gap:9px}
 .plm-dashboard-account-actions-buttons{display:flex;width:auto}
 .plm-dashboard-account-actions-buttons>form{width:auto!important}
 .plm-dashboard-account-actions-buttons .plm-btn{width:auto!important;min-height:36px!important}
}

/* Seasons: keep creation out of the way until explicitly requested. */
.plm-owner-create-season {
	margin-top: 24px;
}
.plm-owner-create-season > summary {
	list-style: none;
	cursor: pointer;
	width: fit-content;
}
.plm-owner-create-season > summary::-webkit-details-marker {
	display: none;
}
.plm-owner-create-season-panel {
	margin-top: 14px;
}
@media (max-width: 700px) {
	.plm-owner-create-season > summary {
		width: 100%;
		justify-content: center;
	}
}

/* Season drill-down: keep the season list simple, then show season-specific actions. */
.plm-owner-season-open { font-weight: 700; text-decoration: none; }
.plm-season-detail-card { margin-top: 14px; }
.plm-season-detail-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; }
.plm-season-detail-head .plm-portal-heading { margin:0 0 6px; }
.plm-season-detail-actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:14px; }
.plm-season-rollover-panel { margin-top:14px; }
@media (max-width: 640px) {
  .plm-season-detail-actions { align-items:center; }
  .plm-season-detail-actions .plm-btn { width:auto; min-height:40px; padding:8px 12px; }
}

/* v1.6.72: compact season drill-down on desktop; keep mobile tiles touch-friendly. */
@media (min-width: 761px) {
  .plm-season-detail-card .plm-dashboard-tiles {
    grid-template-columns: repeat(2, minmax(0, 220px));
    justify-content: start;
    gap: 10px;
  }
  .plm-season-detail-card .plm-dashboard-tile {
    min-height: 92px;
    height: auto;
    padding: 14px 16px;
    border-radius: 12px;
  }
  .plm-season-detail-card .plm-dashboard-tile-icon,
  .plm-season-detail-card .plm-dashboard-tile .dashicons {
    width: 24px;
    height: 24px;
    font-size: 24px;
  }
  .plm-season-detail-card .plm-dashboard-tile-label {
    font-size: 14px;
  }
  .plm-season-detail-card .plm-dashboard-tile-desc {
    font-size: 12px;
    margin-top: 3px;
  }
}

.plm-owner-roster-list .plm-player-delete-form {
  display: inline-flex;
  align-items: center;
  margin: 0;
}


/* Demo / maintenance notice */
.plm-demo-mode-notice{display:flex;align-items:flex-start;gap:10px;margin:0 0 16px;padding:12px 14px;border:1px solid #d8b45d;border-radius:10px;background:#fff8e5;color:#5d470d;box-sizing:border-box}
.plm-demo-mode-notice strong{flex:0 0 auto}
.plm-demo-mode-notice span{line-height:1.4}
@media(max-width:600px){.plm-demo-mode-notice{display:block;padding:11px 12px}.plm-demo-mode-notice strong{display:block;margin-bottom:3px}}


/* v1.6.75: portal loading state — an app-style rolling 8 ball. */
.plm-portal-loader[hidden]{display:none!important}
.plm-portal-loader{position:fixed;inset:0;z-index:999999;display:flex;align-items:center;justify-content:center;padding:20px;box-sizing:border-box}
.plm-portal-loader-backdrop{position:absolute;inset:0;background:rgba(10,16,23,.42);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px)}
.plm-eight-ball-loader{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:13px;min-width:118px;padding:18px 22px;border-radius:18px;background:rgba(255,255,255,.96);box-shadow:0 18px 50px rgba(0,0,0,.22)}
.plm-eight-ball{position:relative;width:68px;height:68px;border-radius:50%;background:radial-gradient(circle at 31% 24%,#4b4f55 0 4%,#24282d 15%,#08090a 56%,#000 74%);box-shadow:inset -8px -10px 14px rgba(0,0,0,.55),inset 7px 7px 13px rgba(255,255,255,.08),0 9px 15px rgba(0,0,0,.26);animation:plm-eight-ball-roll .78s cubic-bezier(.45,.05,.55,.95) infinite}
.plm-eight-ball:before{content:"";position:absolute;left:14px;top:9px;width:18px;height:10px;border-radius:50%;background:rgba(255,255,255,.28);filter:blur(1px);transform:rotate(-30deg)}
.plm-eight-ball:after{content:"";position:absolute;left:13px;right:13px;bottom:-12px;height:9px;border-radius:50%;background:rgba(0,0,0,.2);filter:blur(3px);animation:plm-eight-ball-shadow .78s ease-in-out infinite}
.plm-eight-ball-spot{position:absolute;left:50%;top:50%;display:flex;align-items:center;justify-content:center;width:31px;height:31px;border-radius:50%;transform:translate(-50%,-50%);background:#f7f7f4;color:#111;font:700 20px/1 Arial,sans-serif;box-shadow:inset 0 0 0 1px rgba(0,0,0,.12)}
.plm-eight-ball-loading-text{font-size:13px;font-weight:700;letter-spacing:.01em;color:#252b33}
.plm-portal.is-loading{cursor:progress}
@keyframes plm-eight-ball-roll{0%{transform:translateX(-5px) translateY(0) rotate(-12deg)}25%{transform:translateX(0) translateY(-4px) rotate(78deg)}50%{transform:translateX(5px) translateY(0) rotate(168deg)}75%{transform:translateX(0) translateY(-4px) rotate(258deg)}100%{transform:translateX(-5px) translateY(0) rotate(348deg)}}
@keyframes plm-eight-ball-shadow{0%,50%,100%{transform:translateX(5px) scaleX(1);opacity:.22}25%,75%{transform:translateX(0) scaleX(.78);opacity:.14}}
@media(max-width:600px){.plm-eight-ball-loader{min-width:108px;padding:16px 19px;border-radius:16px}.plm-eight-ball{width:62px;height:62px}.plm-eight-ball-spot{width:29px;height:29px;font-size:19px}}
@media(prefers-reduced-motion:reduce){.plm-eight-ball,.plm-eight-ball:after{animation-duration:1.6s}}


/* v1.6.77 — branded committee broadcast email composer. */
.plm-captain-broadcast{margin:0 0 18px;border:1px solid var(--plm-line);border-radius:14px;background:#fff;overflow:hidden}
.plm-captain-broadcast>summary{list-style:none;display:flex;align-items:center;gap:12px;padding:16px 18px;cursor:pointer;user-select:none}
.plm-captain-broadcast>summary::-webkit-details-marker{display:none}
.plm-captain-broadcast>summary>.plm-captain-broadcast-icon{display:flex;align-items:center;justify-content:center;width:38px;height:38px;flex:0 0 38px;border-radius:10px;background:rgba(18,53,36,.08);color:var(--plm-baize)}
.plm-captain-broadcast>summary>span:nth-child(2){display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}
.plm-captain-broadcast>summary strong{font-size:14px;color:var(--plm-baize)}
.plm-captain-broadcast>summary small{font-size:11px;line-height:1.45;color:rgba(28,33,29,.6)}
.plm-captain-broadcast>summary>.dashicons-arrow-down-alt2{transition:transform .18s ease}
.plm-captain-broadcast[open]>summary>.dashicons-arrow-down-alt2{transform:rotate(180deg)}
.plm-captain-broadcast-body{padding:0 18px 18px;border-top:1px solid var(--plm-line)}
.plm-captain-broadcast-note{display:flex;gap:9px;align-items:flex-start;margin:15px 0;padding:11px 13px;border-radius:10px;background:rgba(18,53,36,.05);font-size:11px;line-height:1.5;color:rgba(28,33,29,.72)}
.plm-captain-broadcast-note .dashicons{color:var(--plm-baize);flex:0 0 auto}
.plm-captain-broadcast-form{display:grid;gap:14px;max-width:720px}
.plm-captain-broadcast-form label{display:grid;gap:6px}
.plm-captain-broadcast-form label>span{font-size:11px;font-weight:700;color:var(--plm-baize)}
.plm-captain-broadcast-form input,.plm-captain-broadcast-form textarea{width:100%;box-sizing:border-box;border:1px solid var(--plm-line);border-radius:9px;background:#fff;padding:11px 12px;font:inherit}
.plm-captain-broadcast-form textarea{min-height:150px;resize:vertical;line-height:1.55}
.plm-captain-broadcast-preview{display:flex;gap:12px;align-items:flex-start;padding:12px 14px;border:1px dashed rgba(18,53,36,.22);border-radius:10px;background:#fafcfb;font-size:11px;line-height:1.5}
.plm-captain-broadcast-preview strong{color:var(--plm-baize)}
.plm-captain-broadcast-preview span{color:rgba(28,33,29,.68)}
.plm-captain-broadcast-form .plm-btn{justify-self:start;display:inline-flex;align-items:center;gap:7px}
@media(max-width:640px){
 .plm-captain-broadcast>summary{padding:14px}
 .plm-captain-broadcast-body{padding:0 14px 14px}
 .plm-captain-broadcast-preview{flex-direction:column;gap:5px}
 .plm-captain-broadcast-form .plm-btn{width:100%;justify-content:center;min-height:48px}
}

/* v1.6.78 captain account actions */
.plm-owner-captain-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.plm-text-btn-portal-danger{color:#b42318!important}.plm-text-btn-portal-danger:hover{color:#7a271a!important}
@media(max-width:700px){.plm-owner-captain-actions{width:100%;justify-content:flex-start}}

/* v1.6.80 — Admin portal game-by-game result corrections. */
.plm-owner-frame-correction-form{
	dis:grid;
	gap:12px;
	margin:0;
	padding:14px;
	background:#fff;
	border-top:1px solid var(--plm-line);
}
.plm-owner-frame-correction-head{
	dis:flex;
	align-items:flex-end;
	justify-content:space-between;
	gap:14px;
}
.plm-owner-frame-correction-head>div{display:grid;gap:3px;min-width:0}
.plm-owner-frame-correction-head strong{font-size:13px}
.plm-owner-frame-correction-head small{color:rgba(28,33,29,.62);font-size:10.5px;line-height:1.4}
.plm-owner-frame-correction-head label{display:grid;gap:4px;flex:0 0 auto;font-size:10px;font-weight:800;color:rgba(28,33,29,.62)}
.plm-owner-frame-correction-head input[type=date]{min-height:38px;height:38px}
.plm-owner-frame-correction-grid{
	dis:grid;
	grid-template-columns:repeat(3,minmax(0,1fr));
	gap:7px;
}
.plm-owner-frame-correction-row{
	dis:flex;
	align-items:center;
	justify-content:space-between;
	gap:9px;
	min-width:0;
	padding:8px 9px;
	border:1px solid var(--plm-line);
	border-radius:9px;
	background:rgba(248,248,246,.8);
}
.plm-owner-frame-correction-row>div{display:grid;gap:2px;min-width:0}
.plm-owner-frame-correction-row>div strong{font-size:11px}
.plm-owner-frame-correction-row>div small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:rgba(28,33,29,.58);font-size:9.5px}
.plm-owner-frame-correction-row select{width:auto;max-width:145px;min-width:105px;min-height:36px;height:36px;font-size:11px}
.plm-owner-frame-correction-footer{
	dis:flex;
	align-items:center;
	justify-content:flex-end;
	gap:12px;
}
.plm-owner-frame-correction-footer>strong{font-size:11px}
.plm-owner-legacy-result-note{grid-column:1/-1;color:rgba(28,33,29,.55);font-size:9.5px}
@media(max-width:900px){.plm-owner-frame-correction-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){
	.plm-owner-frame-correction-form{padding:10px;gap:9px}
	.plm-owner-frame-correction-head,.plm-owner-frame-correction-footer{align-items:stretch;flex-direction:column}
	.plm-owner-frame-correction-head input[type=date]{width:100%;min-height:46px;height:46px;font-size:16px}
	.plm-owner-frame-correction-grid{grid-template-columns:1fr}
	.plm-owner-frame-correction-row{padding:8px;min-height:48px}
	.plm-owner-frame-correction-row select{width:43%;max-width:none;min-height:42px;height:42px;font-size:12px}
	.plm-owner-frame-correction-footer .plm-btn{width:100%;min-height:46px}
}

/* v1.6.82 - Matchday Simulator indicator */
.plm-portal-demo-banner{display:flex;align-items:center;gap:12px;margin:0 0 16px;padding:12px 14px;border:1px solid #d7b8f1;border-radius:12px;background:linear-gradient(135deg,#fbf7ff,#f5effc);color:#4b1f68;box-shadow:0 2px 8px rgba(79,31,104,.06)}.plm-portal-demo-banner>div{display:grid;gap:2px;min-width:0}.plm-portal-demo-banner strong{font-size:14px}.plm-portal-demo-banner span:not(.plm-portal-demo-ball){font-size:12px;line-height:1.4;color:#6a447d}.plm-portal-demo-ball{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;flex:0 0 30px;background:#111;color:#111;font-size:12px;font-weight:800;position:relative;box-shadow:inset -4px -5px 8px rgba(255,255,255,.08),0 2px 5px rgba(0,0,0,.18)}.plm-portal-demo-ball:before{content:"";position:absolute;width:17px;height:17px;border-radius:50%;background:#fff}.plm-portal-demo-ball{z-index:0}.plm-portal-demo-ball::after{content:"8";position:absolute;z-index:2;color:#111;font-size:10px;font-weight:800}.plm-portal-demo-ball{font-size:0}@media(max-width:600px){.plm-portal-demo-banner{align-items:flex-start;padding:11px 12px}.plm-portal-demo-banner span:not(.plm-portal-demo-ball){font-size:11.5px}}


/* Matchday Simulator: two isolated captain sessions in one browser */
.plm-demo-dual-shell{width:min(1800px,100%);margin:0 auto;padding:14px;box-sizing:border-box;background:#eef1f4;min-height:100vh}.plm-demo-dual-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px;padding:12px 14px;background:#15191e;color:#fff;border-radius:12px}.plm-demo-dual-toolbar div{display:flex;flex-direction:column;gap:2px}.plm-demo-dual-toolbar span{font-size:12px;opacity:.78}.plm-demo-dual-refresh{border:0;border-radius:8px;background:#fff;color:#15191e;padding:8px 12px;font-weight:700;cursor:pointer}.plm-demo-dual-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.plm-demo-dual-pane{min-width:0;background:#fff;border:1px solid #d8dde3;border-radius:12px;overflow:hidden;box-shadow:0 4px 18px rgba(20,28,38,.08)}.plm-demo-dual-pane>header{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:8px;padding:9px 12px;background:#252b33;color:#fff}.plm-demo-dual-pane>header span{font-size:10px;font-weight:800;letter-spacing:.08em;opacity:.7}.plm-demo-dual-pane>header strong{font-size:14px}.plm-demo-dual-pane>header small{font-size:11px;opacity:.75}.plm-demo-dual-pane iframe{display:block;width:100%;height:calc(100vh - 105px);min-height:680px;border:0;background:#fff}.plm-demo-actor-chip{display:inline-flex;align-items:center;min-height:34px;padding:0 10px;border-radius:999px;background:#eee8ff;color:#4d267c;font-size:12px;font-weight:800}.plm-portal[data-plm-demo-actor] .plm-portal-demo-banner{position:relative}@media(max-width:900px){.plm-demo-dual-grid{grid-template-columns:1fr}.plm-demo-dual-pane iframe{height:760px;min-height:760px}.plm-demo-dual-toolbar{align-items:flex-start;flex-direction:column}.plm-demo-dual-refresh{width:100%}}

/* v1.6.86 — live match controls must obey their state even when the theme styles buttons. */
.plm-live-footer .plm-live-start[hidden],
.plm-live-footer .plm-live-finish[hidden],
.plm-live-footer .plm-live-amend[hidden],
.plm-live-footer .plm-live-prev[hidden],
.plm-live-footer .plm-live-return[hidden],
.plm-live-footer .plm-live-reset-trigger[hidden] {
	display: none !important;
}


/* v1.6.87 — make the current match frame unmistakable. */
.plm-slot-label-row {
	position: relative;
	justify-content: center;
}

.plm-slot-label {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	text-align: center;
}

.plm-slot-label-key {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 64px;
	padding: 5px 15px;
	border-radius: 999px;
	background: var(--plm-baize);
	color: var(--plm-cream);
	font-size: 24px;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: .04em;
}

.plm-slot-label-type {
	font-size: 11px;
	letter-spacing: .08em;
}

.plm-walkover-toggle {
	margin-left: 0;
}

@media (max-width: 720px) {
	.plm-slot-label-row {
		flex-wrap: wrap;
		justify-content: center;
		gap: 7px;
		margin-bottom: 9px;
	}

	.plm-slot-label {
		font-size: inherit;
		gap: 2px;
		white-space: normal;
	}

	.plm-slot-label-key {
		min-width: 66px;
		padding: 6px 16px;
		font-size: 26px;
	}

	.plm-slot-label-type {
		font-size: 10px;
		letter-spacing: .07em;
	}

	.plm-walkover-toggle {
		margin-left: 0;
	}
}


/* Counter-proposal review: make the changed game impossible to miss. */
.plm-proposal-review-notice {
	display: flex;
	flex-direction: column;
	gap: 3px;
	margin: 0 0 12px;
	padding: 11px 12px;
	border: 1px solid #d6a21f;
	border-radius: 10px;
	background: #fff8df;
	color: #49370b;
	font-size: 12px;
	line-height: 1.4;
}

.plm-proposal-review-notice strong {
	font-size: 13px;
}

.plm-frame-breakdown-list li.plm-frame-proposed-change {
	position: relative;
	flex-wrap: wrap;
	margin: 5px 0;
	padding: 10px 10px 9px;
	border: 2px solid #d6a21f;
	border-radius: 10px;
	background: #fffaf0;
	box-shadow: 0 2px 8px rgba(83, 61, 7, .08);
}

.plm-proposed-change-badge {
	margin-left: auto;
	padding: 3px 7px;
	border-radius: 999px;
	background: #8a6300;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
}

.plm-proposed-change-comment {
	flex: 0 0 100%;
	display: flex;
	gap: 5px;
	align-items: flex-start;
	margin-top: 7px;
	padding-top: 7px;
	border-top: 1px solid rgba(138, 99, 0, .22);
	color: #49370b;
	font-size: 11px;
	line-height: 1.45;
}

.plm-proposed-change-comment strong {
	flex: 0 0 auto;
}

@media (max-width: 680px) {
	.plm-frame-breakdown-list li.plm-frame-proposed-change {
		padding: 10px 8px;
	}

	.plm-proposed-change-badge {
		flex: 0 0 auto;
		margin-left: 32px;
	}
}


/* v1.6.91 — proposal review/modal resilience. */
.plm-frame-breakdown-list li.plm-frame-proposed-change {
	display: grid !important;
	grid-template-columns: minmax(30px, auto) minmax(0, 1fr) auto minmax(0, 1fr);
	column-gap: 8px;
	row-gap: 8px;
	align-items: center;
	width: 100%;
	box-sizing: border-box;
}

.plm-frame-proposed-change .plm-proposed-change-badge {
	grid-column: 1 / -1;
	justify-self: start;
	margin: 0 !important;
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	padding: 5px 9px;
	background: #8a6300 !important;
	border: 1px solid #725200;
	color: #ffffff !important;
	opacity: 1 !important;
	font-size: 10px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: .01em;
	white-space: normal;
}

.plm-frame-proposed-change .plm-proposed-change-comment {
	grid-column: 1 / -1;
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 8px 9px;
	border: 1px solid rgba(138,99,0,.18);
	border-radius: 8px;
	background: #fff;
	color: #49370b !important;
}

.plm-frame-proposed-change .plm-proposed-change-comment strong,
.plm-frame-proposed-change .plm-proposed-change-comment span {
	color: #49370b !important;
	opacity: 1 !important;
}

.plm-amend-modal,
.plm-amend-modal-shell,
.plm-amend-modal-body,
.plm-winner-proposal-form {
	box-sizing: border-box;
}

.plm-amend-modal {
	background: #fff !important;
}

.plm-amend-modal-shell,
.plm-amend-modal-body {
	background: #fff;
}

.plm-amend-modal-body {
	position: relative;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
}

.plm-winner-proposal-form {
	display: block;
	width: 100%;
	min-width: 0;
}

.plm-proposal-games {
	min-width: 0;
}

.plm-proposal-game,
.plm-proposal-winners,
.plm-proposal-winners label,
.plm-proposal-winners span {
	min-width: 0;
}

.plm-proposal-summary [data-plm-proposal-summary-list] {
	display: grid;
	grid-template-columns: 1fr;
	gap: 5px;
}

.plm-proposal-summary [data-plm-proposal-summary-list] span {
	display: block;
	width: 100%;
	box-sizing: border-box;
	white-space: normal;
	overflow-wrap: anywhere;
	line-height: 1.35;
}

.plm-proposal-actions {
	position: sticky;
	bottom: 0;
	z-index: 8;
	margin: 10px -14px -16px;
	padding: 10px 14px 14px;
	background: #fff;
	box-shadow: 0 -8px 18px rgba(10,33,21,.06);
}

.plm-amend-modal.is-submitting-proposal .plm-amend-modal-body::after {
	content: "Submitting proposal…";
	position: sticky;
	left: 0;
	bottom: 0;
	z-index: 30;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 44px;
	margin-top: 8px;
	padding: 10px 12px;
	box-sizing: border-box;
	border-radius: 9px;
	background: #123524;
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	text-align: center;
}

.plm-amend-modal.is-submitting-proposal .plm-proposal-submit {
	cursor: wait;
	opacity: .78;
}

@media (max-width: 680px) {
	.plm-frame-breakdown-list li.plm-frame-proposed-change {
		grid-template-columns: 32px minmax(0, 1fr) 14px minmax(0, 1fr);
		column-gap: 5px;
		padding: 10px 8px;
	}

	.plm-frame-proposed-change .plm-proposed-change-badge {
		font-size: 9.5px;
	}

	.plm-proposal-actions {
		margin: 9px -9px -12px;
		padding: 9px 9px 12px;
	}
}


/* v1.6.94 — simulator phone-width viewport toggle. */
.plm-demo-dual-pane > header {
	grid-template-columns: auto minmax(0, 1fr) auto;
}

.plm-demo-pane-tools {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	min-width: 0;
}

.plm-demo-phone-toggle {
	flex: 0 0 auto;
	border: 1px solid rgba(255,255,255,.28);
	border-radius: 7px;
	background: rgba(255,255,255,.1);
	color: #fff;
	padding: 5px 8px;
	font-size: 10px;
	font-weight: 800;
	line-height: 1.2;
	cursor: pointer;
	white-space: nowrap;
}

.plm-demo-phone-toggle:hover,
.plm-demo-phone-toggle:focus-visible,
.plm-demo-phone-toggle[aria-pressed="true"] {
	background: #fff;
	color: #15191e;
	outline: none;
}

.plm-demo-viewport-stage {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	width: 100%;
	min-width: 0;
	background: #fff;
	overflow-x: auto;
	transition: background .18s ease, padding .18s ease;
}

.plm-demo-dual-pane .plm-demo-viewport-stage iframe {
	flex: 0 0 auto;
	width: 100%;
	max-width: 100%;
	transition: width .18s ease, max-width .18s ease, box-shadow .18s ease, border-radius .18s ease;
}

.plm-demo-dual-pane.is-phone-width .plm-demo-viewport-stage {
	padding: 14px;
	box-sizing: border-box;
	background: #dfe4e9;
}

.plm-demo-dual-pane.is-phone-width .plm-demo-viewport-stage iframe {
	width: 390px;
	max-width: 100%;
	border-radius: 18px;
	box-shadow: 0 8px 28px rgba(20,28,38,.2);
}

@media (max-width: 560px) {
	.plm-demo-dual-pane > header {
		grid-template-columns: 1fr auto;
	}

	.plm-demo-dual-pane > header > span {
		grid-column: 1 / -1;
	}

	.plm-demo-pane-tools {
		gap: 6px;
	}

	.plm-demo-pane-tools small {
		display: none;
	}

	.plm-demo-dual-pane.is-phone-width .plm-demo-viewport-stage {
		padding: 8px;
	}

	.plm-demo-dual-pane.is-phone-width .plm-demo-viewport-stage iframe {
		width: 390px;
	}
}


/* v1.6.95 — instant-message unread indicators. */
.plm-dashboard-tile {
	position: relative;
}

.plm-dashboard-tile-badge {
	position: absolute;
	top: 9px;
	right: 9px;
	z-index: 4;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 24px;
	padding: 0 7px;
	box-sizing: border-box;
	border: 2px solid #fff;
	border-radius: 999px;
	background: #c62828;
	color: #fff !important;
	font-size: 11px;
	font-weight: 900;
	line-height: 1;
	box-shadow: 0 2px 7px rgba(0,0,0,.18);
}

.plm-owner-chat-thread.has-unread {
	border-color: #c99316;
	box-shadow: 0 0 0 2px rgba(201,147,22,.12);
}

.plm-owner-chat-thread.has-unread > summary,
.plm-committee-chat.has-unread > summary {
	background: #fff8df;
}

.plm-owner-chat-thread.has-unread .plm-owner-chat-meta strong,
.plm-committee-chat.has-unread summary strong {
	color: #49370b;
}

.plm-owner-chat-unread {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	box-sizing: border-box;
	border-radius: 999px;
	background: #c62828;
	color: #fff !important;
	font-size: 10px;
	font-weight: 900;
	line-height: 1;
}

.plm-chat-message.is-unread-message .plm-chat-bubble {
	border: 2px solid #d29a15;
	box-shadow: 0 3px 12px rgba(104,76,10,.13);
}

.plm-chat-new-label {
	display: inline-flex;
	align-items: center;
	margin: 0 0 6px;
	padding: 3px 7px;
	border-radius: 999px;
	background: #8a6300;
	color: #fff !important;
	font-size: 9px;
	font-weight: 900;
	line-height: 1.25;
	letter-spacing: .03em;
	text-transform: uppercase;
}

.plm-chat-message.is-unread-message .plm-chat-bubble small {
	font-weight: 800;
	color: #49370b;
}

@media (max-width: 680px) {
	.plm-dashboard-tile-badge {
		top: 7px;
		right: 7px;
		min-width: 22px;
		height: 22px;
		font-size: 10px;
	}
}


/* v1.6.98 — full-time scoring is always step-by-step. */
.plm-wizard-controls {
	justify-content: flex-end;
}

.plm-wizard-step-label {
	margin-left: auto;
}

/* Read-only dashboard feature preview. */
.plm-dashboard-tile-readonly{cursor:default;opacity:.72;border-style:dashed}
.plm-dashboard-tile-readonly:hover{transform:none;box-shadow:none;border-color:var(--plm-line)}
.plm-dashboard-tile-readonly .plm-dashboard-tile-desc{font-weight:700;letter-spacing:.02em}


/* Portal login branding (1.7.03) */
.plm-login-logo{display:flex;justify-content:center;align-items:center;margin:4px auto 14px;max-width:100%;}
.plm-login-title{text-align:center;margin:0 0 14px;}
.plm-login-logo img{display:block;max-width:180px;max-height:100px;width:auto;height:auto;object-fit:contain;}
@media(max-width:600px){.plm-login-logo img{max-width:160px;max-height:90px;}}


/* v1.7.04 — guided portal onboarding tutorial. */
.plm-docs-replay {
	display: flex;
	justify-content: flex-end;
	margin: 0 0 12px;
}
.plm-docs-replay .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	margin-right: 5px;
}
.plm-tutorial-blocker {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	background: transparent;
	cursor: default;
}
.plm-tutorial-focus {
	position: fixed;
	z-index: 2147483001;
	border: 3px solid #fff;
	border-radius: 18px;
	box-sizing: border-box;
	box-shadow:
		0 0 0 4px rgba(255,255,255,.28),
		0 0 0 9999px rgba(8,16,27,.74),
		0 12px 36px rgba(0,0,0,.3);
	pointer-events: none;
	transition: left .2s ease, top .2s ease, width .2s ease, height .2s ease;
}
.plm-tutorial-card {
	position: fixed;
	z-index: 2147483002;
	box-sizing: border-box;
	width: min(390px, calc(100vw - 30px));
	padding: 18px;
	border: 1px solid rgba(17,24,39,.12);
	border-radius: 18px;
	background: #fff;
	color: #172033;
	box-shadow: 0 18px 55px rgba(0,0,0,.3);
}
.plm-tutorial-progress {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}
.plm-tutorial-count {
	font-size: 11px;
	font-weight: 900;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #667085;
}
.plm-tutorial-skip {
	border: 0;
	background: transparent;
	padding: 4px 0;
	color: #596579;
	font: inherit;
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.plm-tutorial-title {
	margin: 0 0 8px;
	color: #111827;
	font-size: 22px;
	line-height: 1.15;
}
.plm-tutorial-text {
	margin: 0;
	color: #475467;
	font-size: 14px;
	line-height: 1.55;
}
.plm-tutorial-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 9px;
	margin-top: 18px;
}
.plm-tutorial-actions .plm-btn {
	min-width: 86px;
	margin: 0;
}
.plm-tutorial-target {
	position: relative;
}
html.plm-tutorial-active,
html.plm-tutorial-active body {
	overscroll-behavior: none;
}
@media (max-width: 640px) {
	.plm-tutorial-card {
		width: auto !important;
		max-height: min(48vh, 360px);
		overflow-y: auto;
		padding: 16px;
		border-radius: 16px;
	}
	.plm-tutorial-title {
		font-size: 19px;
	}
	.plm-tutorial-text {
		font-size: 13px;
	}
	.plm-tutorial-focus {
		border-radius: 15px;
	}
}


/* v1.7.08 — tutorial uses the genuine Enter Scores component. */
.plm-tutorial-live-shell {
	max-width: 100%;
}
.plm-tutorial-demo-banner {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}
.plm-tutorial-demo-banner > div {
	flex: 1 1 auto;
	min-width: 0;
}
.plm-tutorial-demo-banner .plm-tutorial-demo-skip {
	flex: 0 0 auto;
	margin-left: auto;
}
.plm-tutorial-real-score-card .plm-frame-card {
	margin-top: 0;
}
.plm-tutorial-demo-form .plm-live-save-state {
	font-weight: 700;
}
@media (max-width: 680px) {
	.plm-tutorial-demo-banner {
		align-items: flex-start;
		flex-wrap: wrap;
	}
	.plm-tutorial-demo-banner .plm-tutorial-demo-skip {
		width: 100%;
		margin-left: 0;
	}
}

/* v1.7.10 — Captain post-match notes for Matchweek Reports. */
.plm-match-notes-section{margin-top:22px}
.plm-match-notes-intro{display:flex;align-items:flex-start;gap:12px;padding:16px;margin-bottom:12px;border:1px solid rgba(15,23,42,.1);border-radius:16px;background:#f8fafc}
.plm-match-notes-intro>.dashicons{flex:0 0 auto;width:24px;height:24px;font-size:24px}
.plm-match-notes-intro strong{display:block;margin-bottom:3px}
.plm-match-notes-intro p{margin:0;color:#667085;font-size:13px;line-height:1.5}
.plm-match-note-list{display:grid;gap:10px}
.plm-match-note-card{border:1px solid rgba(15,23,42,.1);border-radius:15px;background:#fff;overflow:hidden}
.plm-match-note-card>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;cursor:pointer;list-style:none}
.plm-match-note-card>summary::-webkit-details-marker{display:none}
.plm-match-note-card>summary>span:first-child{display:flex;flex-direction:column;gap:2px;min-width:0}
.plm-match-note-card>summary strong{font-size:14px}
.plm-match-note-card>summary small{font-size:11px;color:#667085;font-weight:700}
.plm-match-note-state{flex:0 0 auto;padding:5px 9px;border-radius:999px;background:#eef2f7;color:#475467;font-size:11px;font-weight:800}
.plm-match-note-form{padding:15px 16px 16px;border-top:1px solid rgba(15,23,42,.08);background:#fbfcfe}
.plm-match-note-form label>span{display:block;margin-bottom:6px;font-size:12px;font-weight:800}
.plm-match-note-form textarea{box-sizing:border-box;width:100%;min-height:110px;resize:vertical}
.plm-match-note-help{display:flex;justify-content:space-between;gap:12px;margin:7px 0 12px;color:#667085;font-size:11px;line-height:1.4}
.plm-match-note-help small{white-space:nowrap}
.plm-match-note-report-exists{display:flex;align-items:flex-start;gap:6px;padding:9px 10px;margin:0 0 12px;border-radius:10px;background:#fff7ed;color:#9a3412;font-size:11px;line-height:1.4}
.plm-match-note-report-exists .dashicons{flex:0 0 auto;width:16px;height:16px;font-size:16px}
@media(max-width:600px){.plm-match-note-card>summary{align-items:flex-start}.plm-match-note-help{flex-direction:column;gap:3px}.plm-match-note-help small{white-space:normal}}


/* v1.7.12 — professional AI Matchweek report presentation. */
.plm-matchweek-report{
	--plm-report-ink:#101828;
	--plm-report-muted:#667085;
	--plm-report-line:#e4e7ec;
	--plm-report-soft:#f7f8fa;
	max-width:900px;
	margin:18px auto 34px;
	color:var(--plm-report-ink);
	font-size:17px;
	line-height:1.72;
}
.plm-report-hero{
	display:flex;
	align-items:center;
	gap:18px;
	padding:24px 26px;
	border-radius:22px;
	background:linear-gradient(135deg,#111827 0%,#1f2937 100%);
	color:#fff;
	box-shadow:0 14px 36px rgba(16,24,40,.16);
}
.plm-report-hero-ball,.plm-report-footer-ball{
	display:grid;
	place-items:center;
	flex:0 0 auto;
	width:58px;height:58px;
	border-radius:50%;
	background:#050505;
	color:#fff;
	border:4px solid rgba(255,255,255,.92);
	font-size:24px;
	font-weight:950;
	box-shadow:inset 0 0 0 1px rgba(255,255,255,.18);
}
.plm-report-hero-copy{min-width:0}
.plm-report-eyebrow{
	display:block;
	margin-bottom:4px;
	font-size:11px;
	font-weight:900;
	letter-spacing:.13em;
	text-transform:uppercase;
	color:#d0d5dd;
}
.plm-report-hero-copy>strong{
	display:block;
	font-size:clamp(24px,4vw,38px);
	line-height:1.05;
	letter-spacing:-.025em;
}
.plm-report-meta{display:flex;gap:8px;flex-wrap:wrap;margin-top:11px}
.plm-report-meta span{
	padding:5px 9px;
	border:1px solid rgba(255,255,255,.18);
	border-radius:999px;
	background:rgba(255,255,255,.08);
	font-size:12px;
	font-weight:750;
}
.plm-report-demo-warning{
	display:flex;gap:10px;align-items:center;
	margin:14px 0 0;padding:11px 14px;
	border:1px solid #f2c94c;border-radius:12px;background:#fff9e8;color:#624600;
	font-size:13px;
}
.plm-report-demo-warning span{color:#765b13}
.plm-report-scoreboard{margin:22px 0 26px}
.plm-report-scoreboard-head{
	display:flex;justify-content:space-between;align-items:end;gap:12px;
	margin-bottom:9px;padding:0 2px;
}
.plm-report-scoreboard-head span{font-size:14px;font-weight:900}
.plm-report-scoreboard-head small{font-size:12px;color:var(--plm-report-muted)}
.plm-report-score-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.plm-report-score-card{
	display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px;
	min-height:68px;padding:12px 14px;
	border:1px solid var(--plm-report-line);border-radius:15px;background:#fff;
	box-shadow:0 4px 14px rgba(16,24,40,.05);
}
.plm-report-team{font-size:13px;font-weight:800;line-height:1.25}
.plm-report-team.is-home{text-align:right}
.plm-report-team.is-away{text-align:left}
.plm-report-score{display:flex;align-items:center;gap:5px;white-space:nowrap}
.plm-report-score b{font-size:22px;line-height:1}
.plm-report-score i{font-style:normal;color:#98a2b3}
.plm-report-story{
	padding:6px 4px 0;
	font-size:17px;
	line-height:1.76;
}
.plm-report-story p{margin:0 0 1.15em}
.plm-report-story h2{
	margin:2em 0 .65em;
	padding:0 0 .45em;
	border-bottom:2px solid var(--plm-report-line);
	font-size:clamp(21px,3vw,28px);
	line-height:1.18;
	letter-spacing:-.018em;
}
.plm-report-story h3{
	margin:1.55em 0 .55em;
	font-size:19px;
	line-height:1.25;
}
.plm-report-story ul{margin:.6em 0 1.3em;padding-left:1.25em}
.plm-report-story li{margin:.3em 0}
.plm-report-footer{
	display:flex;align-items:center;justify-content:center;gap:9px;
	margin-top:28px;padding-top:16px;border-top:1px solid var(--plm-report-line);
	color:var(--plm-report-muted);font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;
}
.plm-report-footer-ball{width:25px;height:25px;border-width:2px;font-size:10px}
@media(max-width:700px){
	.plm-matchweek-report{font-size:16px}
	.plm-report-hero{padding:18px;border-radius:18px;gap:13px}
	.plm-report-hero-ball{width:45px;height:45px;border-width:3px;font-size:18px}
	.plm-report-score-grid{grid-template-columns:1fr}
	.plm-report-score-card{min-height:62px}
	.plm-report-story{font-size:16px;padding-inline:1px}
}
