.speedcup-scoring,
.speedcup-participants {
	--speedcup-border-color: #e6e6e8;
	--speedcup-border-soft: rgba(29, 35, 39, 0.06);
}
.speedcup-scoring tr.junior td { color: #4498bf; font-weight: bold; }
.speedcup-participants tr.junior td { color: #4498bf; font-weight: bold; }
.speedcup-scoring .control-label { color: #50575e; font-weight: 600; font-size: 0.92em; }
.speedcup-scoring .control-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px 12px;
	margin-bottom: 1em;
}
.speedcup-scoring .control-bar-left,
.speedcup-scoring .control-bar-right {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 10px;
}
.speedcup-scoring .control-group {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.speedcup-scoring .control-select {
	min-width: 84px;
	height: 38px;
	padding: 7px 34px 7px 12px;
	border: 1px solid var(--speedcup-border-color);
	border-radius: 999px;
	background-color: #f6f7f7;
	background-image:
		linear-gradient(45deg, transparent 50%, #50575e 50%),
		linear-gradient(135deg, #50575e 50%, transparent 50%);
	background-position:
		calc(100% - 18px) calc(50% - 2px),
		calc(100% - 13px) calc(50% - 2px);
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
	color: #1d2327;
	font-size: 0.92em;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
.speedcup-scoring .control-select:focus {
	outline: none;
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
}
.speedcup-scoring .pill {
	border: 1px solid var(--speedcup-border-color);
	background: #f6f7f7;
	color: #1d2327;
	height: 34px;
	padding: 5px 12px;
	border-radius: 999px;
	cursor: pointer;
	font: inherit;
	font-size: 0.92em;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
.speedcup-scoring .pill.active {
	background: #2271b1;
	border-color: #2271b1;
	color: #fff;
	box-shadow: none;
}
.speedcup-scoring .toggle-chip {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0;
	height: 34px;
	padding: 5px 12px;
	border: 1px solid var(--speedcup-border-color);
	border-radius: 999px;
	background: #f6f7f7;
	color: #50575e;
	font-weight: 600;
	font-size: 0.92em;
	white-space: nowrap;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.speedcup-scoring .toggle-chip input[type="checkbox"] {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}
.speedcup-scoring .toggle-chip.is-active {
	background: #2271b1;
	border-color: #2271b1;
	color: #fff;
	box-shadow: none;
}
.speedcup-scoring .toggle-chip.is-disabled {
	opacity: 0.55;
	cursor: not-allowed;
}
.speedcup-scoring .toggle-chip.is-disabled input[type="checkbox"] {
	cursor: not-allowed;
}
.speedcup-scoring .overall-heading {
	margin-top: 28px;
}
.speedcup-scoring .no-junior-message {
	display: none;
	color: inherit;
	font-weight: 400;
}
.speedcup-scoring .scoring-table,
.speedcup-participants .scoring-table {
	box-shadow: inset 0 -1px 0 var(--speedcup-border-color);
}
.speedcup-scoring .scoring-table .rank-badge,
.speedcup-participants .scoring-table .rank-badge {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px 2px 6px;
	border-radius: 999px;
	background: rgba(34, 113, 177, 0.08);
	color: #2271b1;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
}
.speedcup-scoring .scoring-table-compact,
.speedcup-participants .scoring-table-compact {
	table-layout: fixed;
	width: 100%;
	margin: 0;
	font-size: 15px;
	border-collapse: separate;
	border-spacing: 0 8px;
	box-shadow: none;
	background: transparent;
}
.speedcup-participants .participants-table {
	table-layout: fixed;
}
.speedcup-scoring .scoring-table-compact .rank-badge,
.speedcup-participants .scoring-table-compact .rank-badge {
	font-size: 13px;
}
.speedcup-participants .participants-table .rank-badge {
	margin-right: 4px;
}
.speedcup-scoring .scoring-table-compact .pilot-link,
.speedcup-participants .scoring-table-compact .pilot-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: inherit;
	text-decoration: none;
}
.speedcup-scoring .speedcup-icon,
.speedcup-participants .speedcup-icon {
	display: inline-block;
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	color: #4498bf;
	background-color: currentColor;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
}
.speedcup-scoring .speedcup-icon-plane,
.speedcup-participants .speedcup-icon-plane {
	-webkit-mask-image: url("../icons/plane.svg");
	mask-image: url("../icons/plane.svg");
}
.speedcup-scoring .speedcup-icon-user,
.speedcup-participants .speedcup-icon-user {
	-webkit-mask-image: url("../icons/user.svg");
	mask-image: url("../icons/user.svg");
}
.speedcup-scoring .scoring-table-compact .junior .pilot-link,
.speedcup-participants .scoring-table-compact .junior .pilot-link {
	color: #4498bf;
}
.speedcup-scoring .scoring-table-compact .col-rank,
.speedcup-participants .scoring-table-compact .col-rank {
	width: 8%;
}
.speedcup-scoring .scoring-table-compact .col-rankpoints {
	width: 14%;
}
.speedcup-scoring .scoring-table-compact .col-weglide {
	width: 16%;
}
.speedcup-scoring .round-table .col-date {
	width: 16%;
}
.speedcup-scoring .scoring-table-compact .col-pilot {
	width: 46%;
}
.speedcup-scoring .simple-overall-table .col-flights {
	width: 16%;
}
.speedcup-scoring .scoring-table-compact thead th:first-child,
.speedcup-scoring .scoring-table-compact tbody td:first-child,
.speedcup-participants .scoring-table-compact thead th:first-child,
.speedcup-participants .scoring-table-compact tbody td:first-child {
	text-align: center;
}
.speedcup-scoring .round-table thead th:nth-child(2),
.speedcup-scoring .round-table thead th:nth-child(3),
.speedcup-scoring .round-table tbody td:nth-child(2),
.speedcup-scoring .round-table tbody td:nth-child(3),
.speedcup-scoring .simple-overall-table thead th:nth-child(2),
.speedcup-scoring .simple-overall-table thead th:nth-child(3),
.speedcup-scoring .simple-overall-table thead th:nth-child(5),
.speedcup-scoring .simple-overall-table tbody td:nth-child(2),
.speedcup-scoring .simple-overall-table tbody td:nth-child(3),
.speedcup-scoring .simple-overall-table tbody td:nth-child(5) {
	text-align: right;
}
.speedcup-scoring .round-table thead th:nth-child(4),
.speedcup-scoring .round-table tbody td:nth-child(4) {
	text-align: left;
	white-space: nowrap;
}
.speedcup-scoring .round-table thead th:nth-child(5),
.speedcup-scoring .round-table tbody td:nth-child(5),
.speedcup-scoring .simple-overall-table thead th:nth-child(4),
.speedcup-scoring .simple-overall-table tbody td:nth-child(4) {
	text-align: left;
}
.speedcup-scoring .round-wertung,
.speedcup-scoring .overall-wertung {
	overflow: hidden;
	border: 1px solid var(--speedcup-border-color);
	border-radius: 8px;
}
.speedcup-scoring .scoring-table-compact,
.speedcup-participants .scoring-table-compact {
	border: 0;
}
.speedcup-scoring .scoring-table-compact thead th,
.speedcup-participants .scoring-table-compact thead th {
	background: #f6f7f7;
}
.speedcup-scoring .scoring-table-compact thead th,
.speedcup-participants .scoring-table-compact thead th {
	border-top: 1px solid var(--speedcup-border-color);
	border-bottom: 1px solid var(--speedcup-border-color);
}
.speedcup-scoring .scoring-table-compact thead .col-rank,
.speedcup-participants .scoring-table-compact thead .col-rank {
	border-left: 1px solid var(--speedcup-border-color);
	border-top-left-radius: 7px;
	border-bottom-left-radius: 7px;
}
.speedcup-scoring .scoring-table-compact th:last-child,
.speedcup-participants .scoring-table-compact th:last-child {
	border-right: 1px solid var(--speedcup-border-color);
	border-top-right-radius: 7px;
	border-bottom-right-radius: 7px;
}
.speedcup-scoring .scoring-table-compact th,
.speedcup-scoring .scoring-table-compact td,
.speedcup-participants .scoring-table-compact th,
.speedcup-participants .scoring-table-compact td {
	border-top: 0;
	border-left: 0;
	border-right: 0;
	border-bottom: 1px solid var(--speedcup-border-color);
}
.speedcup-scoring .scoring-table-compact tbody tr:last-child td,
.speedcup-participants .scoring-table-compact tbody tr:last-child td {
	border-bottom: 1px solid var(--speedcup-border-color);
}
.speedcup-scoring .round-table tbody td {
	padding-top: 5px;
	padding-bottom: 5px;
}
.speedcup-scoring .scoring-table-compact th:last-child,
.speedcup-scoring .scoring-table-compact td:last-child,
.speedcup-participants .scoring-table-compact th:last-child,
.speedcup-participants .scoring-table-compact td:last-child {
	border-right: 1px solid var(--speedcup-border-color);
}
.speedcup-scoring .scoring-table-compact tbody td,
.speedcup-participants .scoring-table-compact tbody td {
	background: #fbfcfd;
	border-top: 1px solid var(--speedcup-border-color);
	border-bottom: 1px solid var(--speedcup-border-color);
}
.speedcup-scoring .scoring-table-compact tbody td:first-child,
.speedcup-participants .scoring-table-compact tbody td:first-child {
	border-left: 1px solid var(--speedcup-border-color);
	border-top-left-radius: 7px;
	border-bottom-left-radius: 7px;
}
.speedcup-scoring .scoring-table-compact tbody td:last-child,
.speedcup-participants .scoring-table-compact tbody td:last-child {
	padding-left: 10px;
	border-right: 1px solid var(--speedcup-border-color);
	border-top-right-radius: 7px;
	border-bottom-right-radius: 7px;
}
.speedcup-participants .participants-table tbody td:last-child {
	padding-left: 6px;
}
.speedcup-scoring .table-shell,
.speedcup-participants .table-shell {
	margin-top: 12px;
	padding: 16px;
	border: 1px solid var(--speedcup-border-soft);
	border-radius: 11px;
	background: linear-gradient(180deg, #f8fafc 0%, #f5f7f9 100%);
}
.speedcup-scoring .table-shell-inner,
.speedcup-participants .table-shell-inner {
	margin-top: 12px;
	padding: 0 8px;
	border: 1px solid var(--speedcup-border-color);
	border-radius: 9px;
	background: #fff;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
	overflow: hidden;
}
.speedcup-scoring .table-shell .round-wertung,
.speedcup-scoring .table-shell .overall-wertung {
	margin: 0;
}
.speedcup-participants .table-shell-inner .participants-table {
	margin: 0;
}
.speedcup-participants .participants-table .col-rank {
	width: 10%;
}
.speedcup-participants .participants-table .col-pilot {
	width: 40%;
}
.speedcup-participants .participants-table .col-club {
	width: 22%;
}
.speedcup-participants .participants-table .col-date {
	width: 30%;
}
.speedcup-participants .participants-table thead th:nth-child(2),
.speedcup-participants .participants-table tbody td:nth-child(2),
.speedcup-participants .participants-table thead th:nth-child(3),
.speedcup-participants .participants-table tbody td:nth-child(3),
.speedcup-participants .participants-table thead th:nth-child(4),
.speedcup-participants .participants-table tbody td:nth-child(4) {
	text-align: left;
}
.speedcup-participants .participants-table thead th:nth-child(2),
.speedcup-participants .participants-table tbody td:nth-child(2) {
	padding-left: 10px;
}
.speedcup-participants .participant-name-group {
	display: flex;
	align-items: center;
	gap: 0;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}
.speedcup-participants .participant-junior {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	margin-left: 0;
}
.speedcup-participants .participant-junior-mobile {
	display: none;
}
.speedcup-participants .participant-name-link {
	display: flex;
	align-items: center;
	flex: 1 1 auto;
	max-width: 100%;
	min-width: 0;
	overflow: hidden;
}
.speedcup-participants .pilot-link-text,
.speedcup-participants .participant-club {
	display: block;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.speedcup-participants .pilot-link-text {
	flex: 1 1 auto;
	min-width: 0;
}
.speedcup-participants .participant-name-group > .pilot-link-text {
	flex: 1 1 auto;
}
.speedcup-participants .participant-club {
	min-width: 0;
}
.speedcup-participants .participant-date {
	font-variant-numeric: tabular-nums;
	display: inline-block;
	max-width: 100%;
	white-space: normal;
	overflow-wrap: anywhere;
}
.speedcup-participants .participants-table tbody td {
	padding-top: 5px;
	padding-bottom: 5px;
}
.speedcup-scoring .detail-cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	align-items: start;
	margin-top: 12px;
	padding: 16px;
	border: 1px solid var(--speedcup-border-soft);
	border-radius: 7px;
	background: linear-gradient(180deg, #f8fafc 0%, #f5f7f9 100%);
}
.speedcup-scoring .detail-cards-title {
	margin: 0 0 10px;
	font-size: 19px;
	font-weight: 600;
}
.speedcup-scoring .ranking-card {
	margin-bottom: 12px;
	border: 1px solid var(--speedcup-border-color);
	border-radius: 7px;
	background: #fff;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
	overflow: hidden;
}
.speedcup-scoring .ranking-card:last-child {
	margin-bottom: 0;
}
.speedcup-scoring .ranking-card.junior-card {
	border-color: rgba(68, 152, 191, 0.35);
	box-shadow: 0 8px 22px rgba(68, 152, 191, 0.14);
}
.speedcup-scoring .ranking-header {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 10px;
	align-items: center;
	padding: 14px 14px 12px;
}
.speedcup-scoring .ranking-rank-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	border-radius: 999px;
	background: #f6f7f7;
	color: #1d2327;
	font-weight: 700;
}
.speedcup-scoring .ranking-rank-badge.junior,
.speedcup-scoring .ranking-pilot-total strong.junior {
	color: #4498bf;
}
.speedcup-scoring .ranking-pilot {
	min-width: 0;
}
.speedcup-scoring .ranking-pilot-name {
	margin: 0 0 2px;
	color: #1d2327;
	font-size: 15px;
	font-weight: 700;
}
.speedcup-scoring .ranking-pilot-name.junior,
.speedcup-scoring .ranking-card.junior-card .ranking-pilot-name {
	color: #4498bf;
}
.speedcup-scoring .ranking-pilot-subline {
	margin: 0;
	color: #50575e;
	font-size: 12px;
	font-weight: 400;
}
.speedcup-scoring .ranking-pilot-total {
	text-align: right;
}
.speedcup-scoring .ranking-pilot-total strong {
	display: block;
	color: #1d2327;
	font-size: 15px;
	font-weight: 700;
}
.speedcup-scoring .ranking-pilot-total span {
	color: #50575e;
	font-size: 12px;
}
.speedcup-scoring .flight-group {
	margin: 0 14px 14px;
	padding: 10px;
	border: 1px solid var(--speedcup-border-color);
	border-radius: 7px;
	background: #fff;
}
.speedcup-scoring .flight-group-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 6px;
	font-weight: 600;
}
.speedcup-scoring .flight-count {
	color: #50575e;
	font-size: 12px;
	font-weight: 500;
}
.speedcup-scoring .flight-list {
	display: grid;
	gap: 6px;
}
.speedcup-scoring .flight-row {
	display: grid;
	grid-template-columns: 80px minmax(0, 1fr);
	gap: 6px;
	align-items: center;
	padding: 4px;
	border-top: 0;
	background: #f3f4f5;
	border-radius: 7px;
}
.speedcup-scoring .flight-row:first-child {
	padding-top: 4px;
}
.speedcup-scoring .flight-row .metric {
	align-self: center;
}
.speedcup-scoring .flight-row.is-highlighted,
.speedcup-scoring .flight-row.is-highlighted:first-child {
	padding: 4px;
	border-top: 0;
	background: rgba(219, 166, 23, 0.16);
	border-radius: 7px;
	box-shadow: inset 0 0 0 1px rgba(219, 166, 23, 0.18);
}
.speedcup-scoring .flight-row.is-highlighted .metric {
	background: rgba(255, 255, 255, 0.45);
	align-self: center;
}
.speedcup-scoring .flight-title {
	margin: 0;
	color: #4498bf;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	line-height: 1;
	white-space: nowrap;
}
.speedcup-scoring .flight-title a {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: inherit;
	text-decoration: none;
}
.speedcup-scoring .flight-title .speedcup-icon {
	width: 14px;
	height: 14px;
}
.speedcup-scoring .flight-title a:hover,
.speedcup-scoring .flight-title a:focus {
	text-decoration: underline;
}
.speedcup-scoring .flight-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 6px;
}
.speedcup-scoring .metric {
	padding: 5px 6px;
	border-radius: 7px;
	background: rgba(255, 255, 255, 0.72);
	font-size: 12px;
	line-height: 1.2;
}
.speedcup-scoring .metric-label {
	display: block;
	margin-bottom: 1px;
	color: #50575e;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	line-height: 1;
	text-align: center;
}
.speedcup-scoring .metric-value {
	display: block;
	color: #1d2327;
	font-weight: 700;
	line-height: 1.05;
	text-align: right;
}
.speedcup-scoring .scoring-footer {
	margin: 12px 0 0;
	text-align: center;
	font-size: 14px;
}
@media (max-width: 782px) {
	.speedcup-scoring .control-bar {
		align-items: flex-start;
		justify-content: flex-start;
	}
	.speedcup-scoring .ranking-header {
		grid-template-columns: auto 1fr;
	}
	.speedcup-scoring .ranking-pilot-total {
		grid-column: 1 / -1;
		text-align: left;
	}
}
@media (max-width: 640px) {
	.speedcup-scoring .control-bar {
		display: grid;
		grid-template-columns: 1fr;
		width: 100%;
		gap: 8px;
	}
	.speedcup-scoring .control-bar-left,
	.speedcup-scoring .control-bar-right {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		width: 100%;
		gap: 8px;
	}
	.speedcup-scoring .control-group {
		display: grid;
		grid-template-columns: 1fr;
		gap: 8px;
	}
	.speedcup-scoring .control-bar-right .control-label {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}
	.speedcup-scoring .control-select,
	.speedcup-scoring .pill,
	.speedcup-scoring .toggle-chip {
		display: inline-flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		min-width: 0;
		min-height: 36px;
		height: 36px;
		padding: 6px 12px;
		font-size: 13px;
		border-radius: 999px;
	}
	.speedcup-scoring .control-select {
		padding-right: 34px;
		background-position:
			calc(100% - 18px) calc(50% - 1px),
			calc(100% - 13px) calc(50% - 1px);
	}
	.speedcup-scoring .table-shell {
		padding: 10px;
	}
	.speedcup-scoring .scoring-table-compact,
	.speedcup-participants .scoring-table-compact {
		font-size: 13px;
	}
	.speedcup-scoring .scoring-table-compact .col-rank,
	.speedcup-participants .scoring-table-compact .col-rank {
		width: 10%;
	}
	.speedcup-scoring .scoring-table-compact .col-rankpoints {
		width: 12%;
	}
	.speedcup-scoring .scoring-table-compact .col-weglide {
		width: 16%;
	}
	.speedcup-scoring .round-table .col-date {
		width: 18%;
	}
	.speedcup-scoring .scoring-table-compact .col-pilot {
		width: 46%;
	}
	.speedcup-scoring .simple-overall-table .col-flights {
		width: 18%;
	}
	.speedcup-participants .participants-table .col-rank {
		width: 7%;
	}
	.speedcup-participants .participants-table .col-pilot {
		width: 39%;
	}
	.speedcup-participants .participants-table .col-club {
		width: 21%;
	}
	.speedcup-participants .participants-table .col-date {
		width: 33%;
	}
	.speedcup-scoring .scoring-table-compact thead th,
	.speedcup-scoring .scoring-table-compact tbody td,
	.speedcup-participants .scoring-table-compact thead th,
	.speedcup-participants .scoring-table-compact tbody td {
		padding: 10px 6px;
	}
	.speedcup-scoring .scoring-table-compact .rank-badge,
	.speedcup-participants .scoring-table-compact .rank-badge {
		padding: 1px 7px 1px 5px;
		font-size: 13px;
	}
	.speedcup-scoring .scoring-table-compact .pilot-link,
	.speedcup-participants .scoring-table-compact .pilot-link {
		gap: 4px;
	}
	.speedcup-participants .participant-name-link .speedcup-icon {
		display: none;
	}
	.speedcup-participants .participant-junior-desktop {
		display: none;
	}
	.speedcup-participants .participant-junior-mobile {
		display: inline-flex;
	}
	.speedcup-scoring .scoring-table-compact .pilot-link .speedcup-icon,
	.speedcup-participants .scoring-table-compact .pilot-link .speedcup-icon {
		width: 15px;
		height: 15px;
	}
	.speedcup-participants .table-shell {
		padding: 10px;
	}
}
